@den4ik92/ng2-smart-table 3.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/tbody/cells/custom.component.mjs +3 -3
- package/esm2022/lib/components/tbody/tbody.component.mjs +3 -3
- package/esm2022/lib/components/thead/rows/thead-filters-row.component.mjs +49 -55
- package/esm2022/lib/components/thead/rows/thead-form-row.component.mjs +3 -3
- package/esm2022/lib/components/thead/rows/thead-titles-row.component.mjs +5 -5
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/den4ik92-ng2-smart-table.mjs +55 -61
- package/fesm2022/den4ik92-ng2-smart-table.mjs.map +1 -1
- package/lib/components/thead/rows/thead-filters-row.component.d.ts +3 -3
- package/lib/components/thead/rows/thead-titles-row.component.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -2136,7 +2136,7 @@ class TbodyCustomComponent {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TbodyCustomComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2138
2138
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: TbodyCustomComponent, selector: "ng2-st-tbody-custom", inputs: { grid: "grid", row: "row", source: "source" }, outputs: { custom: "custom" }, ngImport: i0, template: `
|
|
2139
|
-
@for (action of customActions(); track
|
|
2139
|
+
@for (action of customActions(); track $index) {
|
|
2140
2140
|
<a
|
|
2141
2141
|
[id]="'row-' + row.index + '_action-' + action.name + '-button'"
|
|
2142
2142
|
href="#"
|
|
@@ -2153,7 +2153,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
2153
2153
|
selector: "ng2-st-tbody-custom",
|
|
2154
2154
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2155
2155
|
template: `
|
|
2156
|
-
@for (action of customActions(); track
|
|
2156
|
+
@for (action of customActions(); track $index) {
|
|
2157
2157
|
<a
|
|
2158
2158
|
[id]="'row-' + row.index + '_action-' + action.name + '-button'"
|
|
2159
2159
|
href="#"
|
|
@@ -2220,11 +2220,11 @@ class Ng2SmartTableTbodyComponent {
|
|
|
2220
2220
|
return item?.id || index;
|
|
2221
2221
|
}
|
|
2222
2222
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Ng2SmartTableTbodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2223
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: Ng2SmartTableTbodyComponent, selector: "[ng2-st-tbody]", inputs: { grid: "grid", source: "source", deleteConfirm: "deleteConfirm", editConfirm: "editConfirm", rowClassFunction: "rowClassFunction" }, outputs: { save: "save", cancel: "cancel", edit: "edit", editCancel: "editCancel", delete: "delete", custom: "custom", edited: "edited", userSelectRow: "userSelectRow", userClickedRow: "userClickedRow", editRowSelect: "editRowSelect", multipleSelectRow: "multipleSelectRow" }, usesOnChanges: true, ngImport: i0, template: "@if (grid.getRows().length) { @for (row of grid.getRows(); track\ntrackByIdOrIndex($index, row)) {\n<tr\n (click)=\"userClickedRow.emit(row)\"\n class=\"ng2-smart-row\"\n [className]=\"rowClassFunction(row)\"\n [ngClass]=\"{ selected: row.isSelected }\"\n>\n @if (isMultiSelectVisible) {\n <td\n class=\"ng2-smart-actions ng2-smart-action-multiple-select\"\n (click)=\"$event.stopPropagation(); multipleSelectRow.emit(row)\"\n >\n <input\n type=\"checkbox\"\n [id]=\"'row-' + row.index + '_select-checkbox'\"\n class=\"form-control\"\n [ngModel]=\"row.isSelected\"\n />\n </td>\n } @if (!row.isInEditing && showActionColumnLeft) {\n <td class=\"ng2-smart-actions\" (click)=\"$event.stopPropagation()\">\n <ng2-st-tbody-custom\n [grid]=\"grid\"\n (custom)=\"custom.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n ></ng2-st-tbody-custom>\n <ng2-st-tbody-edit-delete\n [grid]=\"grid\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n (edit)=\"edit.emit(row)\"\n (delete)=\"delete.emit(row)\"\n (editRowSelect)=\"editRowSelect.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n >\n </ng2-st-tbody-edit-delete>\n </td>\n } @if (row.isInEditing && showActionColumnLeft) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n [editCancel]=\"editCancel\"\n ></ng2-st-tbody-create-cancel>\n </td>\n } @for (cell of getVisibleCells(row.cells); track cell) {\n <td [ngClass]=\"cell.getColumnClass()\">\n <ng2-smart-table-cell\n [cell]=\"cell\"\n [grid]=\"grid\"\n [row]=\"row\"\n [isNew]=\"false\"\n [mode]=\"mode\"\n [editConfirm]=\"editConfirm\"\n [inputClass]=\"editInputClass\"\n [isInEditing]=\"row.isInEditing\"\n >\n </ng2-smart-table-cell>\n </td>\n } @if (row.isInEditing && showActionColumnRight) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n ></ng2-st-tbody-create-cancel>\n </td>\n } @if (!row.isInEditing && showActionColumnRight) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-custom\n [grid]=\"grid\"\n (custom)=\"custom.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n ></ng2-st-tbody-custom>\n <ng2-st-tbody-edit-delete\n [grid]=\"grid\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n [row]=\"row\"\n [source]=\"source\"\n (edit)=\"edit.emit(row)\"\n (delete)=\"delete.emit(row)\"\n (editRowSelect)=\"editRowSelect.emit($event)\"\n >\n </ng2-st-tbody-edit-delete>\n </td>\n }\n</tr>\n} } @else {\n<tr>\n <td [attr.colspan]=\"tableColumnsCount\">\n {{ noDataMessage }}\n </td>\n</tr>\n}\n", styles: [":host .ng2-smart-row.selected{background:#0000000d}:host .ng2-smart-row .ng2-smart-actions.ng2-smart-action-multiple-select{text-align:center}:host ::ng-deep ng2-st-tbody-edit-delete a:first-child,:host ::ng-deep ng2-st-tbody-create-cancel a:first-child{margin-right:.25rem}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: CellComponent, selector: "ng2-smart-table-cell", inputs: ["grid", "row", "editConfirm", "createConfirm", "isNew", "cell", "inputClass", "mode", "isInEditing"], outputs: ["edited"] }, { kind: "component", type: TbodyCreateCancelComponent, selector: "ng2-st-tbody-create-cancel", inputs: ["grid", "row", "editConfirm", "editCancel"] }, { kind: "component", type: TbodyEditDeleteComponent, selector: "ng2-st-tbody-edit-delete", inputs: ["grid", "row", "source", "deleteConfirm", "editConfirm"], outputs: ["edit", "delete", "editRowSelect"] }, { kind: "component", type: TbodyCustomComponent, selector: "ng2-st-tbody-custom", inputs: ["grid", "row", "source"], outputs: ["custom"] }] }); }
|
|
2223
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: Ng2SmartTableTbodyComponent, selector: "[ng2-st-tbody]", inputs: { grid: "grid", source: "source", deleteConfirm: "deleteConfirm", editConfirm: "editConfirm", rowClassFunction: "rowClassFunction" }, outputs: { save: "save", cancel: "cancel", edit: "edit", editCancel: "editCancel", delete: "delete", custom: "custom", edited: "edited", userSelectRow: "userSelectRow", userClickedRow: "userClickedRow", editRowSelect: "editRowSelect", multipleSelectRow: "multipleSelectRow" }, usesOnChanges: true, ngImport: i0, template: "@if (grid.getRows().length) { @for (row of grid.getRows(); track\ntrackByIdOrIndex($index, row)) {\n<tr\n (click)=\"userClickedRow.emit(row)\"\n class=\"ng2-smart-row\"\n [className]=\"rowClassFunction(row)\"\n [ngClass]=\"{ selected: row.isSelected }\"\n>\n @if (isMultiSelectVisible) {\n <td\n class=\"ng2-smart-actions ng2-smart-action-multiple-select\"\n (click)=\"$event.stopPropagation(); multipleSelectRow.emit(row)\"\n >\n <input\n type=\"checkbox\"\n [id]=\"'row-' + row.index + '_select-checkbox'\"\n class=\"form-control\"\n [ngModel]=\"row.isSelected\"\n />\n </td>\n } @if (!row.isInEditing && showActionColumnLeft) {\n <td class=\"ng2-smart-actions\" (click)=\"$event.stopPropagation()\">\n <ng2-st-tbody-custom\n [grid]=\"grid\"\n (custom)=\"custom.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n ></ng2-st-tbody-custom>\n <ng2-st-tbody-edit-delete\n [grid]=\"grid\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n (edit)=\"edit.emit(row)\"\n (delete)=\"delete.emit(row)\"\n (editRowSelect)=\"editRowSelect.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n >\n </ng2-st-tbody-edit-delete>\n </td>\n } @if (row.isInEditing && showActionColumnLeft) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n [editCancel]=\"editCancel\"\n ></ng2-st-tbody-create-cancel>\n </td>\n } @for (cell of getVisibleCells(row.cells); track cell.getId()) {\n <td [ngClass]=\"cell.getColumnClass()\">\n <ng2-smart-table-cell\n [cell]=\"cell\"\n [grid]=\"grid\"\n [row]=\"row\"\n [isNew]=\"false\"\n [mode]=\"mode\"\n [editConfirm]=\"editConfirm\"\n [inputClass]=\"editInputClass\"\n [isInEditing]=\"row.isInEditing\"\n >\n </ng2-smart-table-cell>\n </td>\n } @if (row.isInEditing && showActionColumnRight) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n ></ng2-st-tbody-create-cancel>\n </td>\n } @if (!row.isInEditing && showActionColumnRight) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-custom\n [grid]=\"grid\"\n (custom)=\"custom.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n ></ng2-st-tbody-custom>\n <ng2-st-tbody-edit-delete\n [grid]=\"grid\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n [row]=\"row\"\n [source]=\"source\"\n (edit)=\"edit.emit(row)\"\n (delete)=\"delete.emit(row)\"\n (editRowSelect)=\"editRowSelect.emit($event)\"\n >\n </ng2-st-tbody-edit-delete>\n </td>\n }\n</tr>\n} } @else {\n<tr>\n <td [attr.colspan]=\"tableColumnsCount\">\n {{ noDataMessage }}\n </td>\n</tr>\n}\n", styles: [":host .ng2-smart-row.selected{background:#0000000d}:host .ng2-smart-row .ng2-smart-actions.ng2-smart-action-multiple-select{text-align:center}:host ::ng-deep ng2-st-tbody-edit-delete a:first-child,:host ::ng-deep ng2-st-tbody-create-cancel a:first-child{margin-right:.25rem}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: CellComponent, selector: "ng2-smart-table-cell", inputs: ["grid", "row", "editConfirm", "createConfirm", "isNew", "cell", "inputClass", "mode", "isInEditing"], outputs: ["edited"] }, { kind: "component", type: TbodyCreateCancelComponent, selector: "ng2-st-tbody-create-cancel", inputs: ["grid", "row", "editConfirm", "editCancel"] }, { kind: "component", type: TbodyEditDeleteComponent, selector: "ng2-st-tbody-edit-delete", inputs: ["grid", "row", "source", "deleteConfirm", "editConfirm"], outputs: ["edit", "delete", "editRowSelect"] }, { kind: "component", type: TbodyCustomComponent, selector: "ng2-st-tbody-custom", inputs: ["grid", "row", "source"], outputs: ["custom"] }] }); }
|
|
2224
2224
|
}
|
|
2225
2225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: Ng2SmartTableTbodyComponent, decorators: [{
|
|
2226
2226
|
type: Component,
|
|
2227
|
-
args: [{ selector: '[ng2-st-tbody]', template: "@if (grid.getRows().length) { @for (row of grid.getRows(); track\ntrackByIdOrIndex($index, row)) {\n<tr\n (click)=\"userClickedRow.emit(row)\"\n class=\"ng2-smart-row\"\n [className]=\"rowClassFunction(row)\"\n [ngClass]=\"{ selected: row.isSelected }\"\n>\n @if (isMultiSelectVisible) {\n <td\n class=\"ng2-smart-actions ng2-smart-action-multiple-select\"\n (click)=\"$event.stopPropagation(); multipleSelectRow.emit(row)\"\n >\n <input\n type=\"checkbox\"\n [id]=\"'row-' + row.index + '_select-checkbox'\"\n class=\"form-control\"\n [ngModel]=\"row.isSelected\"\n />\n </td>\n } @if (!row.isInEditing && showActionColumnLeft) {\n <td class=\"ng2-smart-actions\" (click)=\"$event.stopPropagation()\">\n <ng2-st-tbody-custom\n [grid]=\"grid\"\n (custom)=\"custom.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n ></ng2-st-tbody-custom>\n <ng2-st-tbody-edit-delete\n [grid]=\"grid\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n (edit)=\"edit.emit(row)\"\n (delete)=\"delete.emit(row)\"\n (editRowSelect)=\"editRowSelect.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n >\n </ng2-st-tbody-edit-delete>\n </td>\n } @if (row.isInEditing && showActionColumnLeft) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n [editCancel]=\"editCancel\"\n ></ng2-st-tbody-create-cancel>\n </td>\n } @for (cell of getVisibleCells(row.cells); track cell) {\n <td [ngClass]=\"cell.getColumnClass()\">\n <ng2-smart-table-cell\n [cell]=\"cell\"\n [grid]=\"grid\"\n [row]=\"row\"\n [isNew]=\"false\"\n [mode]=\"mode\"\n [editConfirm]=\"editConfirm\"\n [inputClass]=\"editInputClass\"\n [isInEditing]=\"row.isInEditing\"\n >\n </ng2-smart-table-cell>\n </td>\n } @if (row.isInEditing && showActionColumnRight) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n ></ng2-st-tbody-create-cancel>\n </td>\n } @if (!row.isInEditing && showActionColumnRight) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-custom\n [grid]=\"grid\"\n (custom)=\"custom.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n ></ng2-st-tbody-custom>\n <ng2-st-tbody-edit-delete\n [grid]=\"grid\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n [row]=\"row\"\n [source]=\"source\"\n (edit)=\"edit.emit(row)\"\n (delete)=\"delete.emit(row)\"\n (editRowSelect)=\"editRowSelect.emit($event)\"\n >\n </ng2-st-tbody-edit-delete>\n </td>\n }\n</tr>\n} } @else {\n<tr>\n <td [attr.colspan]=\"tableColumnsCount\">\n {{ noDataMessage }}\n </td>\n</tr>\n}\n", styles: [":host .ng2-smart-row.selected{background:#0000000d}:host .ng2-smart-row .ng2-smart-actions.ng2-smart-action-multiple-select{text-align:center}:host ::ng-deep ng2-st-tbody-edit-delete a:first-child,:host ::ng-deep ng2-st-tbody-create-cancel a:first-child{margin-right:.25rem}\n"] }]
|
|
2227
|
+
args: [{ selector: '[ng2-st-tbody]', template: "@if (grid.getRows().length) { @for (row of grid.getRows(); track\ntrackByIdOrIndex($index, row)) {\n<tr\n (click)=\"userClickedRow.emit(row)\"\n class=\"ng2-smart-row\"\n [className]=\"rowClassFunction(row)\"\n [ngClass]=\"{ selected: row.isSelected }\"\n>\n @if (isMultiSelectVisible) {\n <td\n class=\"ng2-smart-actions ng2-smart-action-multiple-select\"\n (click)=\"$event.stopPropagation(); multipleSelectRow.emit(row)\"\n >\n <input\n type=\"checkbox\"\n [id]=\"'row-' + row.index + '_select-checkbox'\"\n class=\"form-control\"\n [ngModel]=\"row.isSelected\"\n />\n </td>\n } @if (!row.isInEditing && showActionColumnLeft) {\n <td class=\"ng2-smart-actions\" (click)=\"$event.stopPropagation()\">\n <ng2-st-tbody-custom\n [grid]=\"grid\"\n (custom)=\"custom.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n ></ng2-st-tbody-custom>\n <ng2-st-tbody-edit-delete\n [grid]=\"grid\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n (edit)=\"edit.emit(row)\"\n (delete)=\"delete.emit(row)\"\n (editRowSelect)=\"editRowSelect.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n >\n </ng2-st-tbody-edit-delete>\n </td>\n } @if (row.isInEditing && showActionColumnLeft) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n [editCancel]=\"editCancel\"\n ></ng2-st-tbody-create-cancel>\n </td>\n } @for (cell of getVisibleCells(row.cells); track cell.getId()) {\n <td [ngClass]=\"cell.getColumnClass()\">\n <ng2-smart-table-cell\n [cell]=\"cell\"\n [grid]=\"grid\"\n [row]=\"row\"\n [isNew]=\"false\"\n [mode]=\"mode\"\n [editConfirm]=\"editConfirm\"\n [inputClass]=\"editInputClass\"\n [isInEditing]=\"row.isInEditing\"\n >\n </ng2-smart-table-cell>\n </td>\n } @if (row.isInEditing && showActionColumnRight) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n ></ng2-st-tbody-create-cancel>\n </td>\n } @if (!row.isInEditing && showActionColumnRight) {\n <td class=\"ng2-smart-actions\">\n <ng2-st-tbody-custom\n [grid]=\"grid\"\n (custom)=\"custom.emit($event)\"\n [row]=\"row\"\n [source]=\"source\"\n ></ng2-st-tbody-custom>\n <ng2-st-tbody-edit-delete\n [grid]=\"grid\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n [row]=\"row\"\n [source]=\"source\"\n (edit)=\"edit.emit(row)\"\n (delete)=\"delete.emit(row)\"\n (editRowSelect)=\"editRowSelect.emit($event)\"\n >\n </ng2-st-tbody-edit-delete>\n </td>\n }\n</tr>\n} } @else {\n<tr>\n <td [attr.colspan]=\"tableColumnsCount\">\n {{ noDataMessage }}\n </td>\n</tr>\n}\n", styles: [":host .ng2-smart-row.selected{background:#0000000d}:host .ng2-smart-row .ng2-smart-actions.ng2-smart-action-multiple-select{text-align:center}:host ::ng-deep ng2-st-tbody-edit-delete a:first-child,:host ::ng-deep ng2-st-tbody-create-cancel a:first-child{margin-right:.25rem}\n"] }]
|
|
2228
2228
|
}], propDecorators: { grid: [{
|
|
2229
2229
|
type: Input
|
|
2230
2230
|
}], source: [{
|
|
@@ -2683,13 +2683,13 @@ class TheadFitlersRowComponent {
|
|
|
2683
2683
|
this.isMultiSelectVisible = false;
|
|
2684
2684
|
this.showActionColumnLeft = false;
|
|
2685
2685
|
this.showActionColumnRight = false;
|
|
2686
|
-
this.filterInputClass =
|
|
2686
|
+
this.filterInputClass = "";
|
|
2687
2687
|
}
|
|
2688
2688
|
ngOnChanges() {
|
|
2689
2689
|
this.isMultiSelectVisible = this.grid.isMultiSelectVisible();
|
|
2690
|
-
this.showActionColumnLeft = this.grid.showActionColumn(
|
|
2691
|
-
this.showActionColumnRight = this.grid.showActionColumn(
|
|
2692
|
-
this.filterInputClass = this.grid.getSetting(
|
|
2690
|
+
this.showActionColumnLeft = this.grid.showActionColumn("left");
|
|
2691
|
+
this.showActionColumnRight = this.grid.showActionColumn("right");
|
|
2692
|
+
this.filterInputClass = this.grid.getSetting("filter.inputClass", "");
|
|
2693
2693
|
}
|
|
2694
2694
|
getVisibleColumns(columns) {
|
|
2695
2695
|
return (columns || []).filter((column) => !column.hide);
|
|
@@ -2697,63 +2697,57 @@ class TheadFitlersRowComponent {
|
|
|
2697
2697
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TheadFitlersRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2698
2698
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: TheadFitlersRowComponent, selector: "[ng2-st-thead-filters-row]", inputs: { grid: "grid", source: "source" }, outputs: { create: "create", filter: "filter" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2699
2699
|
@if (isMultiSelectVisible) {
|
|
2700
|
-
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
</th>
|
|
2707
|
-
}
|
|
2708
|
-
@for (column of getVisibleColumns(grid.getColumns()); track column) {
|
|
2709
|
-
<th class="ng2-smart-th {{ column.id }}">
|
|
2710
|
-
<ng2-smart-table-filter [source]="source"
|
|
2711
|
-
[column]="column"
|
|
2712
|
-
[inputClass]="filterInputClass"
|
|
2713
|
-
(filter)="filter.emit($event)">
|
|
2714
|
-
</ng2-smart-table-filter>
|
|
2715
|
-
</th>
|
|
2716
|
-
}
|
|
2717
|
-
@if (showActionColumnRight) {
|
|
2718
|
-
<th ng2-st-add-button
|
|
2719
|
-
[grid]="grid"
|
|
2700
|
+
<th></th>
|
|
2701
|
+
} @if (showActionColumnLeft) {
|
|
2702
|
+
<th ng2-st-add-button [grid]="grid" (create)="create.emit($event)"></th>
|
|
2703
|
+
} @for (column of getVisibleColumns(grid.getColumns()); track column.id) {
|
|
2704
|
+
<th class="ng2-smart-th {{ column.id }}">
|
|
2705
|
+
<ng2-smart-table-filter
|
|
2720
2706
|
[source]="source"
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2707
|
+
[column]="column"
|
|
2708
|
+
[inputClass]="filterInputClass"
|
|
2709
|
+
(filter)="filter.emit($event)"
|
|
2710
|
+
>
|
|
2711
|
+
</ng2-smart-table-filter>
|
|
2712
|
+
</th>
|
|
2713
|
+
} @if (showActionColumnRight) {
|
|
2714
|
+
<th
|
|
2715
|
+
ng2-st-add-button
|
|
2716
|
+
[grid]="grid"
|
|
2717
|
+
[source]="source"
|
|
2718
|
+
(create)="create.emit($event)"
|
|
2719
|
+
></th>
|
|
2720
|
+
}
|
|
2721
|
+
`, isInline: true, dependencies: [{ kind: "component", type: FilterComponent, selector: "ng2-smart-table-filter" }, { kind: "component", type: AddButtonComponent, selector: "[ng2-st-add-button]", inputs: ["grid", "source"], outputs: ["create"] }] }); }
|
|
2725
2722
|
}
|
|
2726
2723
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TheadFitlersRowComponent, decorators: [{
|
|
2727
2724
|
type: Component,
|
|
2728
2725
|
args: [{
|
|
2729
|
-
selector:
|
|
2726
|
+
selector: "[ng2-st-thead-filters-row]",
|
|
2730
2727
|
template: `
|
|
2731
2728
|
@if (isMultiSelectVisible) {
|
|
2732
|
-
|
|
2733
|
-
}
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
</th>
|
|
2739
|
-
}
|
|
2740
|
-
@for (column of getVisibleColumns(grid.getColumns()); track column) {
|
|
2741
|
-
<th class="ng2-smart-th {{ column.id }}">
|
|
2742
|
-
<ng2-smart-table-filter [source]="source"
|
|
2743
|
-
[column]="column"
|
|
2744
|
-
[inputClass]="filterInputClass"
|
|
2745
|
-
(filter)="filter.emit($event)">
|
|
2746
|
-
</ng2-smart-table-filter>
|
|
2747
|
-
</th>
|
|
2748
|
-
}
|
|
2749
|
-
@if (showActionColumnRight) {
|
|
2750
|
-
<th ng2-st-add-button
|
|
2751
|
-
[grid]="grid"
|
|
2729
|
+
<th></th>
|
|
2730
|
+
} @if (showActionColumnLeft) {
|
|
2731
|
+
<th ng2-st-add-button [grid]="grid" (create)="create.emit($event)"></th>
|
|
2732
|
+
} @for (column of getVisibleColumns(grid.getColumns()); track column.id) {
|
|
2733
|
+
<th class="ng2-smart-th {{ column.id }}">
|
|
2734
|
+
<ng2-smart-table-filter
|
|
2752
2735
|
[source]="source"
|
|
2753
|
-
|
|
2754
|
-
|
|
2736
|
+
[column]="column"
|
|
2737
|
+
[inputClass]="filterInputClass"
|
|
2738
|
+
(filter)="filter.emit($event)"
|
|
2739
|
+
>
|
|
2740
|
+
</ng2-smart-table-filter>
|
|
2741
|
+
</th>
|
|
2742
|
+
} @if (showActionColumnRight) {
|
|
2743
|
+
<th
|
|
2744
|
+
ng2-st-add-button
|
|
2745
|
+
[grid]="grid"
|
|
2746
|
+
[source]="source"
|
|
2747
|
+
(create)="create.emit($event)"
|
|
2748
|
+
></th>
|
|
2755
2749
|
}
|
|
2756
|
-
|
|
2750
|
+
`,
|
|
2757
2751
|
}]
|
|
2758
2752
|
}], propDecorators: { grid: [{
|
|
2759
2753
|
type: Input
|
|
@@ -2836,7 +2830,7 @@ class TheadFormRowComponent {
|
|
|
2836
2830
|
(create)="onCreate($event)"
|
|
2837
2831
|
></ng2-st-actions>
|
|
2838
2832
|
</td>
|
|
2839
|
-
} @for (cell of getVisibleCells(grid.getNewRow().getCells()); track cell) {
|
|
2833
|
+
} @for (cell of getVisibleCells(grid.getNewRow().getCells()); track cell.getId()) {
|
|
2840
2834
|
<td>
|
|
2841
2835
|
<ng2-smart-table-cell
|
|
2842
2836
|
[cell]="cell"
|
|
@@ -2873,7 +2867,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
2873
2867
|
(create)="onCreate($event)"
|
|
2874
2868
|
></ng2-st-actions>
|
|
2875
2869
|
</td>
|
|
2876
|
-
} @for (cell of getVisibleCells(grid.getNewRow().getCells()); track cell) {
|
|
2870
|
+
} @for (cell of getVisibleCells(grid.getNewRow().getCells()); track cell.getId()) {
|
|
2877
2871
|
<td>
|
|
2878
2872
|
<ng2-smart-table-cell
|
|
2879
2873
|
[cell]="cell"
|
|
@@ -3093,7 +3087,7 @@ class TheadTitlesRowComponent {
|
|
|
3093
3087
|
@if (showActionColumnLeft) {
|
|
3094
3088
|
<th ng2-st-actions-title [grid]="grid"></th>
|
|
3095
3089
|
}
|
|
3096
|
-
@for (column of getVisibleColumns(grid.getColumns()); track column) {
|
|
3090
|
+
@for (column of getVisibleColumns(grid.getColumns()); track column.id) {
|
|
3097
3091
|
<th
|
|
3098
3092
|
class="ng2-smart-th {{ column.id }}"
|
|
3099
3093
|
[ngClass]="column.class"
|
|
@@ -3121,7 +3115,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
3121
3115
|
@if (showActionColumnLeft) {
|
|
3122
3116
|
<th ng2-st-actions-title [grid]="grid"></th>
|
|
3123
3117
|
}
|
|
3124
|
-
@for (column of getVisibleColumns(grid.getColumns()); track column) {
|
|
3118
|
+
@for (column of getVisibleColumns(grid.getColumns()); track column.id) {
|
|
3125
3119
|
<th
|
|
3126
3120
|
class="ng2-smart-th {{ column.id }}"
|
|
3127
3121
|
[ngClass]="column.class"
|
|
@@ -3613,5 +3607,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
3613
3607
|
* Generated bundle index. Do not edit.
|
|
3614
3608
|
*/
|
|
3615
3609
|
|
|
3616
|
-
export { Cell, Column, DataSource, DefaultEditor, DefaultFilter, LocalDataSource, Ng2SmartTableComponent, Ng2SmartTableModule, Row, SmartTableOnChangedEventName };
|
|
3610
|
+
export { Cell, Column, DataSource, DefaultEditor, DefaultFilter, Deferred, LocalDataSource, Ng2SmartTableComponent, Ng2SmartTableModule, Row, SmartTableOnChangedEventName };
|
|
3617
3611
|
//# sourceMappingURL=den4ik92-ng2-smart-table.mjs.map
|