LP1835982 Remove more deprecated cellPrintValue refs
authorBill Erickson <berickxx@gmail.com>
Wed, 20 Nov 2019 16:57:26 +0000 (11:57 -0500)
committerJane Sandberg <sandbej@linnbenton.edu>
Sat, 18 Jan 2020 18:39:12 +0000 (10:39 -0800)
cellPrintValue inputs were replaced with grid-wide cellTextGenerator
handlers.  This patch removes a few remaining references to
cellPrintValue inputs.  Having them linger was breaking --prod builds,
since they referred to nonexistent methods.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/share/grid/grid-column.component.ts
Open-ILS/src/eg2/src/app/share/grid/grid.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.html
Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html

index bb30842..f2171dd 100644 (file)
@@ -39,7 +39,6 @@ export class GridColumnComponent implements OnInit {
     // Used in conjunction with cellTemplate
     @Input() cellContext: any;
     @Input() cellTemplate: TemplateRef<any>;
-    @Input() cellPrintValue: (row: any, cell: GridColumn) => string;
 
     @Input() disableTooltip: boolean;
 
@@ -61,7 +60,6 @@ export class GridColumnComponent implements OnInit {
         col.hidden = this.hidden === true;
         col.isIndex = this.index === true;
         col.cellTemplate = this.cellTemplate;
-        col.cellPrintValue = this.cellPrintValue;
         col.cellContext = this.cellContext;
         col.disableTooltip = this.disableTooltip;
         col.isSortable = this.sortable;
index 20bde50..93094c3 100644 (file)
@@ -31,10 +31,6 @@ export class GridColumn {
     timezoneContextOrg: number;
     cellTemplate: TemplateRef<any>;
 
-    // Provide a way for cells that are generated via cellTemplate's
-    // to provide an alternate text value suitable for printing.
-    cellPrintValue: (row: any, cell: GridColumn) => string;
-
     cellContext: any;
     isIndex: boolean;
     isDragTarget: boolean;
index 16c97da..b3b39a8 100644 (file)
@@ -144,13 +144,12 @@ because there are a lot of them.
 
   <eg-grid-column name="id" [index]="true" [hidden]="true"></eg-grid-column>
   <eg-grid-column i18n-label label="Matches" name="+matches" 
-    [cellTemplate]="matchesTmpl" [cellPrintValue]="cellPrintValues"></eg-grid-column>
+    [cellTemplate]="matchesTmpl"></eg-grid-column>
   <eg-grid-column name="import_error" i18n-label
-    label="Import Errors" [cellTemplate]="errorsTmpl" 
-      [cellPrintValue]="cellPrintValues"></eg-grid-column>
+    label="Import Errors" [cellTemplate]="errorsTmpl"></eg-grid-column>
   <eg-grid-column name="import_time" i18n-label
     label="Import Date" datatype="timestamp"></eg-grid-column>
   <eg-grid-column name="imported_as" i18n-label label="Imported As" 
-    [cellTemplate]="importedAsTmpl" [cellPrintValue]="cellPrintValues"></eg-grid-column>
+    [cellTemplate]="importedAsTmpl"></eg-grid-column>
 </eg-grid>
 
index 2d6707b..8c511c3 100644 (file)
@@ -60,8 +60,7 @@
       path="active_date" datatype="timestamp">
     </eg-grid-column>
     <eg-grid-column i18n-label label="Holdable?" name="holdable" 
-      [cellTemplate]="holdableTemplate" [cellContext]="copyContext" 
-      [cellPrintValue]="cellPrintValues">
+      [cellTemplate]="holdableTemplate" [cellContext]="copyContext">
     </eg-grid-column>
     <eg-grid-column i18n-label label="Status" path="copy_status">
     </eg-grid-column>