@den4ik92/ng2-smart-table 2.0.6 → 2.1.2
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/{esm2020 → esm2022}/lib/components/cell/cell-edit-mode/custom-edit.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/cell/cell-edit-mode/default-edit.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/cell/cell-edit-mode/edit-cell-default.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/cell/cell-edit-mode/edit-cell.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/cell/cell-editors/checkbox-editor.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/cell/cell-editors/default-editor.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/cell/cell-editors/input-editor.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/cell/cell-editors/select-editor.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/cell/cell-editors/textarea-editor.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/cell/cell-view-mode/custom-view.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/cell/cell-view-mode/view-cell.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/cell/cell.component.mjs +8 -8
- package/{esm2020 → esm2022}/lib/components/cell/cell.module.mjs +29 -29
- package/{esm2020 → esm2022}/lib/components/filter/custom-filter.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/filter/default-filter.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/filter/filter-default.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/filter/filter-types/checkbox-filter.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/filter/filter-types/default-filter.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/filter/filter-types/input-filter.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/filter/filter-types/select-filter.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/filter/filter.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/filter/filter.module.mjs +23 -23
- package/{esm2020 → esm2022}/lib/components/pager/pager.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/pager/pager.module.mjs +7 -7
- package/esm2022/lib/components/tbody/cells/create-cancel.component.mjs +198 -0
- package/esm2022/lib/components/tbody/cells/custom.component.mjs +58 -0
- package/esm2022/lib/components/tbody/cells/edit-delete.component.mjs +236 -0
- package/esm2022/lib/components/tbody/tbody.component.mjs +95 -0
- package/{esm2020 → esm2022}/lib/components/tbody/tbody.module.mjs +15 -15
- package/{esm2020 → esm2022}/lib/components/thead/cells/actions-title.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/thead/cells/actions.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/thead/cells/add-button.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/thead/cells/checkbox-select-all.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/thead/cells/column-title.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/thead/cells/title/title.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/thead/rows/thead-filters-row.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/thead/rows/thead-form-row.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/thead/rows/thead-titles-row.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/components/thead/thead.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/components/thead/thead.module.mjs +29 -29
- package/esm2022/lib/lib/data-set/cell.mjs +43 -0
- package/esm2022/lib/lib/data-set/column.mjs +74 -0
- package/esm2022/lib/lib/data-set/row.mjs +47 -0
- package/{esm2020 → esm2022}/lib/lib/data-source/local/local.data-source.mjs +1 -1
- package/esm2022/lib/lib/grid.mjs +218 -0
- package/{esm2020 → esm2022}/lib/lib/helpers.mjs +1 -1
- package/{esm2020 → esm2022}/lib/lib/interfaces/smart-table.models.mjs +1 -1
- package/{esm2020 → esm2022}/lib/ng2-smart-table.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/ng2-smart-table.module.mjs +19 -19
- package/{fesm2020 → fesm2022}/den4ik92-ng2-smart-table.mjs +752 -438
- package/fesm2022/den4ik92-ng2-smart-table.mjs.map +1 -0
- package/lib/components/cell/cell-edit-mode/edit-cell-default.d.ts +1 -1
- package/lib/components/cell/cell-edit-mode/edit-cell.component.d.ts +1 -1
- package/lib/components/cell/cell-editors/default-editor.d.ts +1 -1
- package/lib/components/cell/cell-view-mode/custom-view.component.d.ts +1 -1
- package/lib/components/cell/cell-view-mode/view-cell.component.d.ts +1 -1
- package/lib/components/cell/cell.component.d.ts +2 -2
- package/lib/components/filter/filter-default.d.ts +1 -1
- package/lib/components/filter/filter-types/default-filter.d.ts +1 -1
- package/lib/components/pager/pager.component.d.ts +1 -1
- package/lib/components/tbody/cells/create-cancel.component.d.ts +4 -4
- package/lib/components/tbody/cells/custom.component.d.ts +8 -6
- package/lib/components/tbody/cells/edit-delete.component.d.ts +5 -5
- package/lib/components/tbody/tbody.component.d.ts +1 -1
- package/lib/components/thead/cells/actions-title.component.d.ts +1 -1
- package/lib/components/thead/cells/actions.component.d.ts +1 -1
- package/lib/components/thead/cells/add-button.component.d.ts +1 -1
- package/lib/components/thead/cells/checkbox-select-all.component.d.ts +1 -1
- package/lib/components/thead/cells/column-title.component.d.ts +1 -1
- package/lib/components/thead/cells/title/title.component.d.ts +1 -1
- package/lib/components/thead/rows/thead-filters-row.component.d.ts +1 -1
- package/lib/components/thead/rows/thead-form-row.component.d.ts +1 -1
- package/lib/components/thead/rows/thead-titles-row.component.d.ts +1 -1
- package/lib/components/thead/thead.component.d.ts +1 -1
- package/lib/lib/data-set/cell.d.ts +3 -2
- package/lib/lib/data-set/column.d.ts +3 -3
- package/lib/lib/data-set/row.d.ts +1 -0
- package/lib/lib/helpers.d.ts +4 -4
- package/lib/lib/interfaces/smart-table.models.d.ts +1 -1
- package/lib/ng2-smart-table.component.d.ts +1 -1
- package/package.json +8 -14
- package/esm2020/lib/components/tbody/cells/create-cancel.component.mjs +0 -53
- package/esm2020/lib/components/tbody/cells/custom.component.mjs +0 -49
- package/esm2020/lib/components/tbody/cells/edit-delete.component.mjs +0 -85
- package/esm2020/lib/components/tbody/tbody.component.mjs +0 -95
- package/esm2020/lib/lib/data-set/cell.mjs +0 -41
- package/esm2020/lib/lib/data-set/column.mjs +0 -74
- package/esm2020/lib/lib/data-set/row.mjs +0 -46
- package/esm2020/lib/lib/grid.mjs +0 -211
- package/fesm2015/den4ik92-ng2-smart-table.mjs +0 -3175
- package/fesm2015/den4ik92-ng2-smart-table.mjs.map +0 -1
- package/fesm2020/den4ik92-ng2-smart-table.mjs.map +0 -1
- /package/{esm2020 → esm2022}/den4ik92-ng2-smart-table.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/cell/cell-view-mode/view-cell.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/lib/data-set/data-set.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/lib/data-source/data-source.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/lib/data-source/local/local.filter.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/lib/data-source/local/local.pager.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/lib/data-source/local/local.sorter.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
|
@@ -7,6 +7,95 @@ import { FormsModule, UntypedFormControl, NgControl, ReactiveFormsModule } from
|
|
|
7
7
|
import { Subject } from 'rxjs';
|
|
8
8
|
import { debounceTime, distinctUntilChanged, skip } from 'rxjs/operators';
|
|
9
9
|
|
|
10
|
+
function prepareValue(value) { return value; }
|
|
11
|
+
class Cell {
|
|
12
|
+
static { this.PREPARE = prepareValue; }
|
|
13
|
+
constructor(value, row, column, dataSet) {
|
|
14
|
+
this.value = value;
|
|
15
|
+
this.row = row;
|
|
16
|
+
this.column = column;
|
|
17
|
+
this.dataSet = dataSet;
|
|
18
|
+
this.newValue = '';
|
|
19
|
+
this.newValue = value;
|
|
20
|
+
}
|
|
21
|
+
getColumn() {
|
|
22
|
+
return this.column;
|
|
23
|
+
}
|
|
24
|
+
getColumnClass() {
|
|
25
|
+
return this.column.class;
|
|
26
|
+
}
|
|
27
|
+
getRow() {
|
|
28
|
+
return this.row;
|
|
29
|
+
}
|
|
30
|
+
getValue() {
|
|
31
|
+
const prepare = this.column.getValuePrepareFunction() || Cell.PREPARE;
|
|
32
|
+
return prepare.call(null, this.value, this.row.getData(), this);
|
|
33
|
+
}
|
|
34
|
+
setValue(value) {
|
|
35
|
+
this.newValue = value;
|
|
36
|
+
}
|
|
37
|
+
getId() {
|
|
38
|
+
return this.getColumn().id;
|
|
39
|
+
}
|
|
40
|
+
getTitle() {
|
|
41
|
+
return this.getColumn().title;
|
|
42
|
+
}
|
|
43
|
+
isEditable() {
|
|
44
|
+
if (this.getRow().index === -1) {
|
|
45
|
+
return this.getColumn().isAddable;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return this.getColumn().isEditable;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
class Row {
|
|
54
|
+
constructor(index, data, _dataSet) {
|
|
55
|
+
this.index = index;
|
|
56
|
+
this.data = data;
|
|
57
|
+
this._dataSet = _dataSet;
|
|
58
|
+
this.pending = false;
|
|
59
|
+
this.isSelected = false;
|
|
60
|
+
this.isInEditing = false;
|
|
61
|
+
this.cells = [];
|
|
62
|
+
this.process();
|
|
63
|
+
}
|
|
64
|
+
getCell(column) {
|
|
65
|
+
return this.cells.find(el => el.getColumn() === column);
|
|
66
|
+
}
|
|
67
|
+
getCells() {
|
|
68
|
+
return this.cells;
|
|
69
|
+
}
|
|
70
|
+
getData() {
|
|
71
|
+
return this.data;
|
|
72
|
+
}
|
|
73
|
+
getIsSelected() {
|
|
74
|
+
return this.isSelected;
|
|
75
|
+
}
|
|
76
|
+
getNewData() {
|
|
77
|
+
const values = Object.assign({}, this.data);
|
|
78
|
+
this.getCells().forEach((cell) => values[cell.getColumn().id] = cell.newValue);
|
|
79
|
+
return values;
|
|
80
|
+
}
|
|
81
|
+
setData(data) {
|
|
82
|
+
this.data = data;
|
|
83
|
+
this.process();
|
|
84
|
+
}
|
|
85
|
+
process() {
|
|
86
|
+
this.cells = [];
|
|
87
|
+
this._dataSet.getColumns().forEach((column) => {
|
|
88
|
+
const cell = this.createCell(column);
|
|
89
|
+
this.cells.push(cell);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
createCell(column) {
|
|
93
|
+
const defValue = column.settings.defaultValue ? column.settings.defaultValue : '';
|
|
94
|
+
const value = typeof this.data[column.id] === 'undefined' ? defValue : this.data[column.id];
|
|
95
|
+
return new Cell(value, this, column, this._dataSet);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
10
99
|
/**
|
|
11
100
|
* Extending object that entered in first argument.
|
|
12
101
|
*
|
|
@@ -91,92 +180,6 @@ function getPageForRowIndex(index, perPage) {
|
|
|
91
180
|
return Math.floor(index / perPage) + 1;
|
|
92
181
|
}
|
|
93
182
|
|
|
94
|
-
function prepareValue(value) { return value; }
|
|
95
|
-
class Cell {
|
|
96
|
-
constructor(value, row, column, dataSet) {
|
|
97
|
-
this.value = value;
|
|
98
|
-
this.row = row;
|
|
99
|
-
this.column = column;
|
|
100
|
-
this.dataSet = dataSet;
|
|
101
|
-
this.newValue = '';
|
|
102
|
-
this.newValue = value;
|
|
103
|
-
}
|
|
104
|
-
getColumn() {
|
|
105
|
-
return this.column;
|
|
106
|
-
}
|
|
107
|
-
getRow() {
|
|
108
|
-
return this.row;
|
|
109
|
-
}
|
|
110
|
-
getValue() {
|
|
111
|
-
const valid = this.column.getValuePrepareFunction() instanceof Function;
|
|
112
|
-
const prepare = valid ? this.column.getValuePrepareFunction() : Cell.PREPARE;
|
|
113
|
-
return prepare.call(null, this.value, this.row.getData(), this);
|
|
114
|
-
}
|
|
115
|
-
setValue(value) {
|
|
116
|
-
this.newValue = value;
|
|
117
|
-
}
|
|
118
|
-
getId() {
|
|
119
|
-
return this.getColumn().id;
|
|
120
|
-
}
|
|
121
|
-
getTitle() {
|
|
122
|
-
return this.getColumn().title;
|
|
123
|
-
}
|
|
124
|
-
isEditable() {
|
|
125
|
-
if (this.getRow().index === -1) {
|
|
126
|
-
return this.getColumn().isAddable;
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return this.getColumn().isEditable;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
Cell.PREPARE = prepareValue;
|
|
134
|
-
|
|
135
|
-
class Row {
|
|
136
|
-
constructor(index, data, _dataSet) {
|
|
137
|
-
this.index = index;
|
|
138
|
-
this.data = data;
|
|
139
|
-
this._dataSet = _dataSet;
|
|
140
|
-
this.isSelected = false;
|
|
141
|
-
this.isInEditing = false;
|
|
142
|
-
this.cells = [];
|
|
143
|
-
this.process();
|
|
144
|
-
}
|
|
145
|
-
getCell(column) {
|
|
146
|
-
return this.cells.find(el => el.getColumn() === column);
|
|
147
|
-
}
|
|
148
|
-
getCells() {
|
|
149
|
-
return this.cells;
|
|
150
|
-
}
|
|
151
|
-
getData() {
|
|
152
|
-
return this.data;
|
|
153
|
-
}
|
|
154
|
-
getIsSelected() {
|
|
155
|
-
return this.isSelected;
|
|
156
|
-
}
|
|
157
|
-
getNewData() {
|
|
158
|
-
const values = Object.assign({}, this.data);
|
|
159
|
-
this.getCells().forEach((cell) => values[cell.getColumn().id] = cell.newValue);
|
|
160
|
-
return values;
|
|
161
|
-
}
|
|
162
|
-
setData(data) {
|
|
163
|
-
this.data = data;
|
|
164
|
-
this.process();
|
|
165
|
-
}
|
|
166
|
-
process() {
|
|
167
|
-
this.cells = [];
|
|
168
|
-
this._dataSet.getColumns().forEach((column) => {
|
|
169
|
-
const cell = this.createCell(column);
|
|
170
|
-
this.cells.push(cell);
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
createCell(column) {
|
|
174
|
-
const defValue = column.settings.defaultValue ? column.settings.defaultValue : '';
|
|
175
|
-
const value = typeof this.data[column.id] === 'undefined' ? defValue : this.data[column.id];
|
|
176
|
-
return new Cell(value, this, column, this._dataSet);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
183
|
class Column {
|
|
181
184
|
constructor(id, settings, dataSet) {
|
|
182
185
|
this.id = id;
|
|
@@ -195,7 +198,7 @@ class Column {
|
|
|
195
198
|
this.defaultSortDirection = false;
|
|
196
199
|
this.editor = false;
|
|
197
200
|
this.filter = false;
|
|
198
|
-
this.process();
|
|
201
|
+
this.process(this.settings);
|
|
199
202
|
}
|
|
200
203
|
getCompareFunction() {
|
|
201
204
|
return this.compareFunction;
|
|
@@ -221,30 +224,30 @@ class Column {
|
|
|
221
224
|
}
|
|
222
225
|
return false;
|
|
223
226
|
}
|
|
224
|
-
process() {
|
|
225
|
-
this.title =
|
|
226
|
-
this.class =
|
|
227
|
-
this.width =
|
|
228
|
-
this.hide = !!
|
|
229
|
-
this.type =
|
|
230
|
-
if (
|
|
231
|
-
this.editor =
|
|
232
|
-
}
|
|
233
|
-
if (
|
|
234
|
-
this.filter =
|
|
235
|
-
}
|
|
236
|
-
if (
|
|
237
|
-
this.renderComponent =
|
|
238
|
-
}
|
|
239
|
-
this.isFilterable = typeof
|
|
240
|
-
this.defaultSortDirection =
|
|
241
|
-
this.isSortable = typeof
|
|
242
|
-
this.isEditable = typeof
|
|
243
|
-
this.isAddable = typeof
|
|
227
|
+
process(settings) {
|
|
228
|
+
this.title = settings.title;
|
|
229
|
+
this.class = settings.class || '';
|
|
230
|
+
this.width = settings.width || '';
|
|
231
|
+
this.hide = !!settings.hide;
|
|
232
|
+
this.type = settings.type;
|
|
233
|
+
if (settings?.editor) {
|
|
234
|
+
this.editor = settings.editor;
|
|
235
|
+
}
|
|
236
|
+
if (settings?.filter) {
|
|
237
|
+
this.filter = settings.filter;
|
|
238
|
+
}
|
|
239
|
+
if (settings.type === 'custom' && settings.renderComponent) {
|
|
240
|
+
this.renderComponent = settings.renderComponent;
|
|
241
|
+
}
|
|
242
|
+
this.isFilterable = typeof settings.filter === 'undefined' ? true : !!settings['filter'];
|
|
243
|
+
this.defaultSortDirection = settings?.sortDirection || false;
|
|
244
|
+
this.isSortable = typeof settings.sort === 'undefined' ? true : settings.sort;
|
|
245
|
+
this.isEditable = typeof settings.editable === 'undefined' ? true : settings.editable;
|
|
246
|
+
this.isAddable = typeof settings.addable === 'undefined' ? true : settings.addable;
|
|
244
247
|
this.sortDirection = this.prepareSortDirection();
|
|
245
|
-
this.compareFunction =
|
|
246
|
-
this.valuePrepareFunction =
|
|
247
|
-
this.filterFunction =
|
|
248
|
+
this.compareFunction = settings.compareFunction;
|
|
249
|
+
this.valuePrepareFunction = settings.valuePrepareFunction;
|
|
250
|
+
this.filterFunction = settings.filterFunction;
|
|
248
251
|
}
|
|
249
252
|
prepareSortDirection() {
|
|
250
253
|
return this.defaultSortDirection === 'desc' ? 'desc' : 'asc';
|
|
@@ -429,9 +432,11 @@ class Grid {
|
|
|
429
432
|
row.isInEditing = true;
|
|
430
433
|
}
|
|
431
434
|
create(row, confirmEmitter) {
|
|
435
|
+
row.pending = true;
|
|
432
436
|
const deferred = new Deferred();
|
|
433
437
|
deferred.promise
|
|
434
438
|
.then((newData) => {
|
|
439
|
+
row.pending = false;
|
|
435
440
|
newData = newData ? newData : row.getNewData();
|
|
436
441
|
this.source.prepend(newData).then(() => {
|
|
437
442
|
this.createFormShown = false;
|
|
@@ -439,7 +444,7 @@ class Grid {
|
|
|
439
444
|
});
|
|
440
445
|
})
|
|
441
446
|
.catch((err) => {
|
|
442
|
-
|
|
447
|
+
row.pending = false;
|
|
443
448
|
});
|
|
444
449
|
if (this.getSetting("add.confirmCreate")) {
|
|
445
450
|
confirmEmitter.emit({
|
|
@@ -449,20 +454,22 @@ class Grid {
|
|
|
449
454
|
});
|
|
450
455
|
}
|
|
451
456
|
else {
|
|
452
|
-
deferred.resolve();
|
|
457
|
+
deferred.resolve(false);
|
|
453
458
|
}
|
|
454
459
|
}
|
|
455
460
|
save(row, confirmEmitter) {
|
|
461
|
+
row.pending = true;
|
|
456
462
|
const deferred = new Deferred();
|
|
457
463
|
deferred.promise
|
|
458
464
|
.then((newData) => {
|
|
465
|
+
row.pending = false;
|
|
459
466
|
newData = newData ? newData : row.getNewData();
|
|
460
467
|
this.source.update(row.getData(), newData).then(() => {
|
|
461
468
|
row.isInEditing = false;
|
|
462
469
|
});
|
|
463
470
|
})
|
|
464
471
|
.catch((err) => {
|
|
465
|
-
|
|
472
|
+
row.pending = false;
|
|
466
473
|
});
|
|
467
474
|
if (this.getSetting("edit.confirmSave")) {
|
|
468
475
|
confirmEmitter.emit({
|
|
@@ -473,16 +480,19 @@ class Grid {
|
|
|
473
480
|
});
|
|
474
481
|
}
|
|
475
482
|
else {
|
|
476
|
-
deferred.resolve();
|
|
483
|
+
deferred.resolve(false);
|
|
477
484
|
}
|
|
478
485
|
}
|
|
479
486
|
delete(row, confirmEmitter) {
|
|
487
|
+
row.pending = true;
|
|
480
488
|
const deferred = new Deferred();
|
|
481
489
|
deferred.promise
|
|
482
490
|
.then(() => {
|
|
491
|
+
row.pending = false;
|
|
483
492
|
this.source.remove(row.getData());
|
|
484
493
|
})
|
|
485
494
|
.catch((err) => {
|
|
495
|
+
row.pending = false;
|
|
486
496
|
// doing nothing
|
|
487
497
|
});
|
|
488
498
|
if (this.getSetting("delete.confirmDelete")) {
|
|
@@ -493,7 +503,7 @@ class Grid {
|
|
|
493
503
|
});
|
|
494
504
|
}
|
|
495
505
|
else {
|
|
496
|
-
deferred.resolve();
|
|
506
|
+
deferred.resolve(false);
|
|
497
507
|
}
|
|
498
508
|
if (row.isSelected) {
|
|
499
509
|
this.dataSet.selectRow(row, false);
|
|
@@ -569,10 +579,10 @@ class EditCellDefault {
|
|
|
569
579
|
onClick(event) {
|
|
570
580
|
event.stopPropagation();
|
|
571
581
|
}
|
|
582
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditCellDefault, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
583
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EditCellDefault, selector: "ng-component", inputs: { cell: "cell", inputClass: "inputClass" }, outputs: { edited: "edited" }, ngImport: i0, template: '', isInline: true }); }
|
|
572
584
|
}
|
|
573
|
-
|
|
574
|
-
EditCellDefault.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: EditCellDefault, selector: "ng-component", inputs: { cell: "cell", inputClass: "inputClass" }, outputs: { edited: "edited" }, ngImport: i0, template: '', isInline: true });
|
|
575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EditCellDefault, decorators: [{
|
|
585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditCellDefault, decorators: [{
|
|
576
586
|
type: Component,
|
|
577
587
|
args: [{
|
|
578
588
|
template: ''
|
|
@@ -608,12 +618,12 @@ class CustomEditComponent extends EditCellDefault {
|
|
|
608
618
|
this.customComponent.destroy();
|
|
609
619
|
}
|
|
610
620
|
}
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
CustomEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CustomEditComponent, selector: "table-cell-custom-editor", viewQueries: [{ propertyName: "dynamicTarget", first: true, predicate: ["dynamicTarget"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
621
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomEditComponent, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
622
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomEditComponent, selector: "table-cell-custom-editor", viewQueries: [{ propertyName: "dynamicTarget", first: true, predicate: ["dynamicTarget"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
614
623
|
<ng-template #dynamicTarget></ng-template>
|
|
615
|
-
`, isInline: true });
|
|
616
|
-
|
|
624
|
+
`, isInline: true }); }
|
|
625
|
+
}
|
|
626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomEditComponent, decorators: [{
|
|
617
627
|
type: Component,
|
|
618
628
|
args: [{
|
|
619
629
|
selector: 'table-cell-custom-editor',
|
|
@@ -633,10 +643,10 @@ class DefaultEditor {
|
|
|
633
643
|
this.onEdited = new EventEmitter();
|
|
634
644
|
this.onClick = new EventEmitter();
|
|
635
645
|
}
|
|
646
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultEditor, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
647
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DefaultEditor, selector: "ng-component", inputs: { cell: "cell", inputClass: "inputClass" }, outputs: { onStopEditing: "onStopEditing", onEdited: "onEdited", onClick: "onClick" }, ngImport: i0, template: '', isInline: true }); }
|
|
636
648
|
}
|
|
637
|
-
|
|
638
|
-
DefaultEditor.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DefaultEditor, selector: "ng-component", inputs: { cell: "cell", inputClass: "inputClass" }, outputs: { onStopEditing: "onStopEditing", onEdited: "onEdited", onClick: "onClick" }, ngImport: i0, template: '', isInline: true });
|
|
639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultEditor, decorators: [{
|
|
649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultEditor, decorators: [{
|
|
640
650
|
type: Component,
|
|
641
651
|
args: [{
|
|
642
652
|
template: '',
|
|
@@ -663,9 +673,8 @@ class CheckboxEditorComponent extends DefaultEditor {
|
|
|
663
673
|
const falseVal = (config && config?.false) || false;
|
|
664
674
|
this.cell.newValue = event.target.checked ? trueVal : falseVal;
|
|
665
675
|
}
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
CheckboxEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CheckboxEditorComponent, selector: "checkbox-editor", usesInheritance: true, ngImport: i0, template: `
|
|
676
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
677
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CheckboxEditorComponent, selector: "checkbox-editor", usesInheritance: true, ngImport: i0, template: `
|
|
669
678
|
<input [ngClass]="inputClass"
|
|
670
679
|
type="checkbox"
|
|
671
680
|
class="form-control"
|
|
@@ -674,8 +683,9 @@ CheckboxEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
674
683
|
[checked]="cell.getValue() === (cell.getColumn().getConfig()?.true || true)"
|
|
675
684
|
(click)="onClick.emit($event)"
|
|
676
685
|
(change)="onChange($event)">
|
|
677
|
-
`, isInline: true, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
678
|
-
|
|
686
|
+
`, isInline: true, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
687
|
+
}
|
|
688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxEditorComponent, decorators: [{
|
|
679
689
|
type: Component,
|
|
680
690
|
args: [{ selector: 'checkbox-editor', template: `
|
|
681
691
|
<input [ngClass]="inputClass"
|
|
@@ -693,9 +703,8 @@ class InputEditorComponent extends DefaultEditor {
|
|
|
693
703
|
constructor() {
|
|
694
704
|
super();
|
|
695
705
|
}
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
InputEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputEditorComponent, selector: "input-editor", usesInheritance: true, ngImport: i0, template: `
|
|
706
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
707
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: InputEditorComponent, selector: "input-editor", usesInheritance: true, ngImport: i0, template: `
|
|
699
708
|
<input [ngClass]="inputClass"
|
|
700
709
|
class="form-control"
|
|
701
710
|
[(ngModel)]="cell.newValue"
|
|
@@ -705,8 +714,9 @@ InputEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
705
714
|
(click)="onClick.emit($event)"
|
|
706
715
|
(keydown.enter)="onEdited.emit($event)"
|
|
707
716
|
(keydown.esc)="onStopEditing.emit()">
|
|
708
|
-
`, isInline: true, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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"] }] });
|
|
709
|
-
|
|
717
|
+
`, isInline: true, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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"] }] }); }
|
|
718
|
+
}
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputEditorComponent, decorators: [{
|
|
710
720
|
type: Component,
|
|
711
721
|
args: [{ selector: 'input-editor', template: `
|
|
712
722
|
<input [ngClass]="inputClass"
|
|
@@ -725,9 +735,8 @@ class SelectEditorComponent extends DefaultEditor {
|
|
|
725
735
|
constructor() {
|
|
726
736
|
super();
|
|
727
737
|
}
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
SelectEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectEditorComponent, selector: "select-editor", usesInheritance: true, ngImport: i0, template: `
|
|
738
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
739
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SelectEditorComponent, selector: "select-editor", usesInheritance: true, ngImport: i0, template: `
|
|
731
740
|
<select [ngClass]="inputClass"
|
|
732
741
|
class="form-control"
|
|
733
742
|
[(ngModel)]="cell.newValue"
|
|
@@ -741,8 +750,9 @@ SelectEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
741
750
|
[selected]="option.value === cell.getValue()">{{ option.title }}
|
|
742
751
|
</option>
|
|
743
752
|
</select>
|
|
744
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { 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"] }] });
|
|
745
|
-
|
|
753
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { 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"] }] }); }
|
|
754
|
+
}
|
|
755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectEditorComponent, decorators: [{
|
|
746
756
|
type: Component,
|
|
747
757
|
args: [{
|
|
748
758
|
selector: 'select-editor',
|
|
@@ -768,9 +778,8 @@ class TextareaEditorComponent extends DefaultEditor {
|
|
|
768
778
|
constructor() {
|
|
769
779
|
super();
|
|
770
780
|
}
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
TextareaEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TextareaEditorComponent, selector: "textarea-editor", usesInheritance: true, ngImport: i0, template: `
|
|
781
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextareaEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
782
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TextareaEditorComponent, selector: "textarea-editor", usesInheritance: true, ngImport: i0, template: `
|
|
774
783
|
<textarea [ngClass]="inputClass"
|
|
775
784
|
class="form-control"
|
|
776
785
|
[(ngModel)]="cell.newValue"
|
|
@@ -781,8 +790,9 @@ TextareaEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
781
790
|
(keydown.enter)="onEdited.emit($event)"
|
|
782
791
|
(keydown.esc)="onStopEditing.emit()">
|
|
783
792
|
</textarea>
|
|
784
|
-
`, isInline: true, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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"] }] });
|
|
785
|
-
|
|
793
|
+
`, isInline: true, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { 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"] }] }); }
|
|
794
|
+
}
|
|
795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TextareaEditorComponent, decorators: [{
|
|
786
796
|
type: Component,
|
|
787
797
|
args: [{ selector: 'textarea-editor', template: `
|
|
788
798
|
<textarea [ngClass]="inputClass"
|
|
@@ -809,10 +819,10 @@ class DefaultEditComponent extends EditCellDefault {
|
|
|
809
819
|
}
|
|
810
820
|
return 'text';
|
|
811
821
|
}
|
|
822
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
823
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DefaultEditComponent, selector: "table-cell-default-editor", usesInheritance: true, ngImport: i0, template: "<div [ngSwitch]=\"getEditorType()\">\n <select-editor *ngSwitchCase=\"'list'\"\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\"\n (onEdited)=\"onEdited($event)\"\n (onStopEditing)=\"onStopEditing()\">\n </select-editor>\n\n <textarea-editor *ngSwitchCase=\"'textarea'\"\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\"\n (onEdited)=\"onEdited($event)\"\n (onStopEditing)=\"onStopEditing()\">\n </textarea-editor>\n\n <checkbox-editor *ngSwitchCase=\"'checkbox'\"\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\">\n </checkbox-editor>\n\n <input-editor *ngSwitchDefault\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\"\n (onEdited)=\"onEdited($event)\"\n (onStopEditing)=\"onStopEditing()\">\n </input-editor>\n</div>", dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: CheckboxEditorComponent, selector: "checkbox-editor" }, { kind: "component", type: InputEditorComponent, selector: "input-editor" }, { kind: "component", type: SelectEditorComponent, selector: "select-editor" }, { kind: "component", type: TextareaEditorComponent, selector: "textarea-editor" }] }); }
|
|
812
824
|
}
|
|
813
|
-
|
|
814
|
-
DefaultEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DefaultEditComponent, selector: "table-cell-default-editor", usesInheritance: true, ngImport: i0, template: "<div [ngSwitch]=\"getEditorType()\">\n <select-editor *ngSwitchCase=\"'list'\"\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\"\n (onEdited)=\"onEdited($event)\"\n (onStopEditing)=\"onStopEditing()\">\n </select-editor>\n\n <textarea-editor *ngSwitchCase=\"'textarea'\"\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\"\n (onEdited)=\"onEdited($event)\"\n (onStopEditing)=\"onStopEditing()\">\n </textarea-editor>\n\n <checkbox-editor *ngSwitchCase=\"'checkbox'\"\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\">\n </checkbox-editor>\n\n <input-editor *ngSwitchDefault\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\"\n (onEdited)=\"onEdited($event)\"\n (onStopEditing)=\"onStopEditing()\">\n </input-editor>\n</div>", dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: CheckboxEditorComponent, selector: "checkbox-editor" }, { kind: "component", type: InputEditorComponent, selector: "input-editor" }, { kind: "component", type: SelectEditorComponent, selector: "select-editor" }, { kind: "component", type: TextareaEditorComponent, selector: "textarea-editor" }] });
|
|
815
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultEditComponent, decorators: [{
|
|
825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultEditComponent, decorators: [{
|
|
816
826
|
type: Component,
|
|
817
827
|
args: [{ selector: 'table-cell-default-editor', template: "<div [ngSwitch]=\"getEditorType()\">\n <select-editor *ngSwitchCase=\"'list'\"\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\"\n (onEdited)=\"onEdited($event)\"\n (onStopEditing)=\"onStopEditing()\">\n </select-editor>\n\n <textarea-editor *ngSwitchCase=\"'textarea'\"\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\"\n (onEdited)=\"onEdited($event)\"\n (onStopEditing)=\"onStopEditing()\">\n </textarea-editor>\n\n <checkbox-editor *ngSwitchCase=\"'checkbox'\"\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\">\n </checkbox-editor>\n\n <input-editor *ngSwitchDefault\n [cell]=\"cell\"\n [inputClass]=\"inputClass\"\n (onClick)=\"onClick($event)\"\n (onEdited)=\"onEdited($event)\"\n (onStopEditing)=\"onStopEditing()\">\n </input-editor>\n</div>" }]
|
|
818
828
|
}], ctorParameters: function () { return []; } });
|
|
@@ -833,9 +843,8 @@ class EditCellComponent {
|
|
|
833
843
|
}
|
|
834
844
|
return 'text';
|
|
835
845
|
}
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
EditCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: EditCellComponent, selector: "table-cell-edit-mode", inputs: { cell: "cell", inputClass: "inputClass" }, outputs: { edited: "edited" }, ngImport: i0, template: `
|
|
846
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
847
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EditCellComponent, selector: "table-cell-edit-mode", inputs: { cell: "cell", inputClass: "inputClass" }, outputs: { edited: "edited" }, ngImport: i0, template: `
|
|
839
848
|
<div [ngSwitch]="getEditorType()">
|
|
840
849
|
<table-cell-custom-editor *ngSwitchCase="'custom'"
|
|
841
850
|
[cell]="cell"
|
|
@@ -848,8 +857,9 @@ EditCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
|
848
857
|
(edited)="onEdited($event)">
|
|
849
858
|
</table-cell-default-editor>
|
|
850
859
|
</div>
|
|
851
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: CustomEditComponent, selector: "table-cell-custom-editor" }, { kind: "component", type: DefaultEditComponent, selector: "table-cell-default-editor" }] });
|
|
852
|
-
|
|
860
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: CustomEditComponent, selector: "table-cell-custom-editor" }, { kind: "component", type: DefaultEditComponent, selector: "table-cell-default-editor" }] }); }
|
|
861
|
+
}
|
|
862
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditCellComponent, decorators: [{
|
|
853
863
|
type: Component,
|
|
854
864
|
args: [{
|
|
855
865
|
selector: 'table-cell-edit-mode',
|
|
@@ -904,12 +914,12 @@ class CustomViewComponent {
|
|
|
904
914
|
rowData: this.cell.getRow().getData()
|
|
905
915
|
};
|
|
906
916
|
}
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
CustomViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CustomViewComponent, selector: "custom-view-component", inputs: { cell: "cell" }, viewQueries: [{ propertyName: "dynamicTarget", first: true, predicate: ["dynamicTarget"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `
|
|
917
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomViewComponent, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
918
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomViewComponent, selector: "custom-view-component", inputs: { cell: "cell" }, viewQueries: [{ propertyName: "dynamicTarget", first: true, predicate: ["dynamicTarget"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: `
|
|
910
919
|
<ng-template #dynamicTarget></ng-template>
|
|
911
|
-
`, isInline: true });
|
|
912
|
-
|
|
920
|
+
`, isInline: true }); }
|
|
921
|
+
}
|
|
922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomViewComponent, decorators: [{
|
|
913
923
|
type: Component,
|
|
914
924
|
args: [{
|
|
915
925
|
selector: 'custom-view-component',
|
|
@@ -925,16 +935,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
925
935
|
}] } });
|
|
926
936
|
|
|
927
937
|
class ViewCellComponent {
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
ViewCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ViewCellComponent, selector: "table-cell-view-mode", inputs: { cell: "cell" }, ngImport: i0, template: `
|
|
938
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ViewCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
939
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ViewCellComponent, selector: "table-cell-view-mode", inputs: { cell: "cell" }, ngImport: i0, template: `
|
|
931
940
|
<div [ngSwitch]="cell.getColumn().type">
|
|
932
941
|
<custom-view-component *ngSwitchCase="'custom'" [cell]="cell"></custom-view-component>
|
|
933
942
|
<div *ngSwitchCase="'html'" [innerHTML]="cell.getValue()"></div>
|
|
934
943
|
<div *ngSwitchDefault>{{ cell.getValue() }}</div>
|
|
935
944
|
</div>
|
|
936
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: CustomViewComponent, selector: "custom-view-component", inputs: ["cell"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
937
|
-
|
|
945
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: CustomViewComponent, selector: "custom-view-component", inputs: ["cell"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
946
|
+
}
|
|
947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ViewCellComponent, decorators: [{
|
|
938
948
|
type: Component,
|
|
939
949
|
args: [{
|
|
940
950
|
selector: 'table-cell-view-mode',
|
|
@@ -966,16 +976,16 @@ class CellComponent {
|
|
|
966
976
|
this.grid.save(this.row, this.editConfirm);
|
|
967
977
|
}
|
|
968
978
|
}
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
CellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CellComponent, selector: "ng2-smart-table-cell", inputs: { grid: "grid", row: "row", editConfirm: "editConfirm", createConfirm: "createConfirm", isNew: "isNew", cell: "cell", inputClass: "inputClass", mode: "mode", isInEditing: "isInEditing" }, outputs: { edited: "edited" }, ngImport: i0, template: `
|
|
979
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
980
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CellComponent, selector: "ng2-smart-table-cell", inputs: { grid: "grid", row: "row", editConfirm: "editConfirm", createConfirm: "createConfirm", isNew: "isNew", cell: "cell", inputClass: "inputClass", mode: "mode", isInEditing: "isInEditing" }, outputs: { edited: "edited" }, ngImport: i0, template: `
|
|
972
981
|
<table-cell-view-mode *ngIf="!isInEditing" [cell]="cell"></table-cell-view-mode>
|
|
973
982
|
<table-cell-edit-mode *ngIf="isInEditing" [cell]="cell"
|
|
974
983
|
[inputClass]="inputClass"
|
|
975
984
|
(edited)="onEdited($event)">
|
|
976
985
|
</table-cell-edit-mode>
|
|
977
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EditCellComponent, selector: "table-cell-edit-mode", inputs: ["cell", "inputClass"], outputs: ["edited"] }, { kind: "component", type: ViewCellComponent, selector: "table-cell-view-mode", inputs: ["cell"] }] });
|
|
978
|
-
|
|
986
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EditCellComponent, selector: "table-cell-edit-mode", inputs: ["cell", "inputClass"], outputs: ["edited"] }, { kind: "component", type: ViewCellComponent, selector: "table-cell-view-mode", inputs: ["cell"] }] }); }
|
|
987
|
+
}
|
|
988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellComponent, decorators: [{
|
|
979
989
|
type: Component,
|
|
980
990
|
args: [{
|
|
981
991
|
selector: 'ng2-smart-table-cell',
|
|
@@ -1024,35 +1034,35 @@ const CELL_COMPONENTS = [
|
|
|
1024
1034
|
ViewCellComponent,
|
|
1025
1035
|
];
|
|
1026
1036
|
class CellModule {
|
|
1037
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1038
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CellModule, declarations: [CellComponent,
|
|
1039
|
+
EditCellDefault,
|
|
1040
|
+
DefaultEditor,
|
|
1041
|
+
CustomEditComponent,
|
|
1042
|
+
DefaultEditComponent,
|
|
1043
|
+
EditCellComponent,
|
|
1044
|
+
CheckboxEditorComponent,
|
|
1045
|
+
InputEditorComponent,
|
|
1046
|
+
SelectEditorComponent,
|
|
1047
|
+
TextareaEditorComponent,
|
|
1048
|
+
CustomViewComponent,
|
|
1049
|
+
ViewCellComponent], imports: [CommonModule,
|
|
1050
|
+
FormsModule], exports: [CellComponent,
|
|
1051
|
+
EditCellDefault,
|
|
1052
|
+
DefaultEditor,
|
|
1053
|
+
CustomEditComponent,
|
|
1054
|
+
DefaultEditComponent,
|
|
1055
|
+
EditCellComponent,
|
|
1056
|
+
CheckboxEditorComponent,
|
|
1057
|
+
InputEditorComponent,
|
|
1058
|
+
SelectEditorComponent,
|
|
1059
|
+
TextareaEditorComponent,
|
|
1060
|
+
CustomViewComponent,
|
|
1061
|
+
ViewCellComponent] }); }
|
|
1062
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellModule, imports: [CommonModule,
|
|
1063
|
+
FormsModule] }); }
|
|
1027
1064
|
}
|
|
1028
|
-
|
|
1029
|
-
CellModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CellModule, declarations: [CellComponent,
|
|
1030
|
-
EditCellDefault,
|
|
1031
|
-
DefaultEditor,
|
|
1032
|
-
CustomEditComponent,
|
|
1033
|
-
DefaultEditComponent,
|
|
1034
|
-
EditCellComponent,
|
|
1035
|
-
CheckboxEditorComponent,
|
|
1036
|
-
InputEditorComponent,
|
|
1037
|
-
SelectEditorComponent,
|
|
1038
|
-
TextareaEditorComponent,
|
|
1039
|
-
CustomViewComponent,
|
|
1040
|
-
ViewCellComponent], imports: [CommonModule,
|
|
1041
|
-
FormsModule], exports: [CellComponent,
|
|
1042
|
-
EditCellDefault,
|
|
1043
|
-
DefaultEditor,
|
|
1044
|
-
CustomEditComponent,
|
|
1045
|
-
DefaultEditComponent,
|
|
1046
|
-
EditCellComponent,
|
|
1047
|
-
CheckboxEditorComponent,
|
|
1048
|
-
InputEditorComponent,
|
|
1049
|
-
SelectEditorComponent,
|
|
1050
|
-
TextareaEditorComponent,
|
|
1051
|
-
CustomViewComponent,
|
|
1052
|
-
ViewCellComponent] });
|
|
1053
|
-
CellModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellModule, imports: [CommonModule,
|
|
1054
|
-
FormsModule] });
|
|
1055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellModule, decorators: [{
|
|
1065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellModule, decorators: [{
|
|
1056
1066
|
type: NgModule,
|
|
1057
1067
|
args: [{
|
|
1058
1068
|
imports: [
|
|
@@ -1483,10 +1493,10 @@ class FilterDefault {
|
|
|
1483
1493
|
filter: this.column.getFilterFunction(),
|
|
1484
1494
|
});
|
|
1485
1495
|
}
|
|
1496
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterDefault, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1497
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FilterDefault, selector: "ng-component", inputs: { column: "column", source: "source", inputClass: "inputClass", query: "query" }, outputs: { filter: "filter" }, ngImport: i0, template: '', isInline: true }); }
|
|
1486
1498
|
}
|
|
1487
|
-
|
|
1488
|
-
FilterDefault.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilterDefault, selector: "ng-component", inputs: { column: "column", source: "source", inputClass: "inputClass", query: "query" }, outputs: { filter: "filter" }, ngImport: i0, template: '', isInline: true });
|
|
1489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterDefault, decorators: [{
|
|
1499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterDefault, decorators: [{
|
|
1490
1500
|
type: Component,
|
|
1491
1501
|
args: [{
|
|
1492
1502
|
template: '',
|
|
@@ -1518,10 +1528,10 @@ class DefaultFilter {
|
|
|
1518
1528
|
setFilter() {
|
|
1519
1529
|
this.filter.emit(this.query);
|
|
1520
1530
|
}
|
|
1531
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultFilter, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1532
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DefaultFilter, selector: "ng-component", inputs: { query: "query", inputClass: "inputClass", column: "column" }, outputs: { filter: "filter" }, ngImport: i0, template: '', isInline: true }); }
|
|
1521
1533
|
}
|
|
1522
|
-
|
|
1523
|
-
DefaultFilter.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DefaultFilter, selector: "ng-component", inputs: { query: "query", inputClass: "inputClass", column: "column" }, outputs: { filter: "filter" }, ngImport: i0, template: '', isInline: true });
|
|
1524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultFilter, decorators: [{
|
|
1534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultFilter, decorators: [{
|
|
1525
1535
|
type: Component,
|
|
1526
1536
|
args: [{
|
|
1527
1537
|
template: '',
|
|
@@ -1560,14 +1570,14 @@ class CheckboxFilterComponent extends DefaultFilter {
|
|
|
1560
1570
|
this.filterActive = false;
|
|
1561
1571
|
this.setFilter();
|
|
1562
1572
|
}
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
CheckboxFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CheckboxFilterComponent, selector: "checkbox-filter", usesInheritance: true, ngImport: i0, template: `
|
|
1573
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1574
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CheckboxFilterComponent, selector: "checkbox-filter", usesInheritance: true, ngImport: i0, template: `
|
|
1566
1575
|
<input type="checkbox" [formControl]="inputControl" [ngClass]="inputClass" class="form-control">
|
|
1567
1576
|
<a href="#" *ngIf="filterActive"
|
|
1568
1577
|
(click)="resetFilter($event)">{{column.getFilterConfig()?.resetText || 'reset'}}</a>
|
|
1569
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
1570
|
-
|
|
1578
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
1579
|
+
}
|
|
1580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxFilterComponent, decorators: [{
|
|
1571
1581
|
type: Component,
|
|
1572
1582
|
args: [{
|
|
1573
1583
|
selector: 'checkbox-filter',
|
|
@@ -1600,17 +1610,17 @@ class InputFilterComponent extends DefaultFilter {
|
|
|
1600
1610
|
this.inputControl.setValue(this.query);
|
|
1601
1611
|
}
|
|
1602
1612
|
}
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
InputFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputFilterComponent, selector: "input-filter", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
1613
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1614
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: InputFilterComponent, selector: "input-filter", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
1606
1615
|
<input
|
|
1607
1616
|
[ngClass]="inputClass"
|
|
1608
1617
|
[formControl]="inputControl"
|
|
1609
1618
|
class="form-control"
|
|
1610
1619
|
type="text"
|
|
1611
1620
|
placeholder="{{ column.title }}"/>
|
|
1612
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
1613
|
-
|
|
1621
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] }); }
|
|
1622
|
+
}
|
|
1623
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputFilterComponent, decorators: [{
|
|
1614
1624
|
type: Component,
|
|
1615
1625
|
args: [{
|
|
1616
1626
|
selector: 'input-filter',
|
|
@@ -1636,9 +1646,8 @@ class SelectFilterComponent extends DefaultFilter {
|
|
|
1636
1646
|
.subscribe((value) => this.setFilter());
|
|
1637
1647
|
}
|
|
1638
1648
|
}
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
SelectFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectFilterComponent, selector: "select-filter", viewQueries: [{ propertyName: "inputControl", first: true, predicate: ["inputControl"], descendants: true, read: NgControl, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1650
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SelectFilterComponent, selector: "select-filter", viewQueries: [{ propertyName: "inputControl", first: true, predicate: ["inputControl"], descendants: true, read: NgControl, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1642
1651
|
<select [ngClass]="inputClass"
|
|
1643
1652
|
class="form-control"
|
|
1644
1653
|
#inputControl
|
|
@@ -1649,8 +1658,9 @@ SelectFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
1649
1658
|
{{ option.title }}
|
|
1650
1659
|
</option>
|
|
1651
1660
|
</select>
|
|
1652
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { 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"] }] });
|
|
1653
|
-
|
|
1661
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { 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"] }] }); }
|
|
1662
|
+
}
|
|
1663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectFilterComponent, decorators: [{
|
|
1654
1664
|
type: Component,
|
|
1655
1665
|
args: [{
|
|
1656
1666
|
selector: 'select-filter',
|
|
@@ -1673,9 +1683,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1673
1683
|
}] } });
|
|
1674
1684
|
|
|
1675
1685
|
class DefaultFilterComponent extends FilterDefault {
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
DefaultFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DefaultFilterComponent, selector: "default-table-filter", usesInheritance: true, ngImport: i0, template: `
|
|
1686
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1687
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DefaultFilterComponent, selector: "default-table-filter", usesInheritance: true, ngImport: i0, template: `
|
|
1679
1688
|
<ng-container [ngSwitch]="column.getFilterType()">
|
|
1680
1689
|
<select-filter *ngSwitchCase="'list'"
|
|
1681
1690
|
[query]="query"
|
|
@@ -1696,8 +1705,9 @@ DefaultFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
1696
1705
|
(filter)="onFilter($event)">
|
|
1697
1706
|
</input-filter>
|
|
1698
1707
|
</ng-container>
|
|
1699
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: CheckboxFilterComponent, selector: "checkbox-filter" }, { kind: "component", type: InputFilterComponent, selector: "input-filter" }, { kind: "component", type: SelectFilterComponent, selector: "select-filter" }] });
|
|
1700
|
-
|
|
1708
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: CheckboxFilterComponent, selector: "checkbox-filter" }, { kind: "component", type: InputFilterComponent, selector: "input-filter" }, { kind: "component", type: SelectFilterComponent, selector: "select-filter" }] }); }
|
|
1709
|
+
}
|
|
1710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultFilterComponent, decorators: [{
|
|
1701
1711
|
type: Component,
|
|
1702
1712
|
args: [{
|
|
1703
1713
|
selector: 'default-table-filter',
|
|
@@ -1752,10 +1762,10 @@ class CustomFilterComponent extends FilterDefault {
|
|
|
1752
1762
|
this.customComponent.destroy();
|
|
1753
1763
|
}
|
|
1754
1764
|
}
|
|
1765
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomFilterComponent, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1766
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomFilterComponent, selector: "custom-table-filter", viewQueries: [{ propertyName: "dynamicTarget", first: true, predicate: ["dynamicTarget"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `<ng-template #dynamicTarget></ng-template>`, isInline: true }); }
|
|
1755
1767
|
}
|
|
1756
|
-
|
|
1757
|
-
CustomFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CustomFilterComponent, selector: "custom-table-filter", viewQueries: [{ propertyName: "dynamicTarget", first: true, predicate: ["dynamicTarget"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `<ng-template #dynamicTarget></ng-template>`, isInline: true });
|
|
1758
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomFilterComponent, decorators: [{
|
|
1768
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomFilterComponent, decorators: [{
|
|
1759
1769
|
type: Component,
|
|
1760
1770
|
args: [{
|
|
1761
1771
|
selector: 'custom-table-filter',
|
|
@@ -1789,9 +1799,8 @@ class FilterComponent extends FilterDefault {
|
|
|
1789
1799
|
});
|
|
1790
1800
|
}
|
|
1791
1801
|
}
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
FilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilterComponent, selector: "ng2-smart-table-filter", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
1802
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1803
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FilterComponent, selector: "ng2-smart-table-filter", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
1795
1804
|
<div class="ng2-smart-filter" *ngIf="column.isFilterable" [ngSwitch]="column.getFilterType()">
|
|
1796
1805
|
<custom-table-filter *ngSwitchCase="'custom'"
|
|
1797
1806
|
[query]="query"
|
|
@@ -1808,8 +1817,9 @@ FilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
1808
1817
|
(filter)="onFilter($event)">
|
|
1809
1818
|
</default-table-filter>
|
|
1810
1819
|
</div>
|
|
1811
|
-
`, isInline: true, styles: [":host .ng2-smart-filter ::ng-deep input,:host .ng2-smart-filter ::ng-deep select{width:100%;line-height:normal;padding:.375em .75em;font-weight:400}:host .ng2-smart-filter ::ng-deep input[type=search]{box-sizing:inherit}:host .ng2-smart-filter ::ng-deep .completer-dropdown-holder{font-weight:400}:host .ng2-smart-filter ::ng-deep a{font-weight:400}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: DefaultFilterComponent, selector: "default-table-filter" }, { kind: "component", type: CustomFilterComponent, selector: "custom-table-filter" }] });
|
|
1812
|
-
|
|
1820
|
+
`, isInline: true, styles: [":host .ng2-smart-filter ::ng-deep input,:host .ng2-smart-filter ::ng-deep select{width:100%;line-height:normal;padding:.375em .75em;font-weight:400}:host .ng2-smart-filter ::ng-deep input[type=search]{box-sizing:inherit}:host .ng2-smart-filter ::ng-deep .completer-dropdown-holder{font-weight:400}:host .ng2-smart-filter ::ng-deep a{font-weight:400}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: DefaultFilterComponent, selector: "default-table-filter" }, { kind: "component", type: CustomFilterComponent, selector: "custom-table-filter" }] }); }
|
|
1821
|
+
}
|
|
1822
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterComponent, decorators: [{
|
|
1813
1823
|
type: Component,
|
|
1814
1824
|
args: [{ selector: 'ng2-smart-table-filter', template: `
|
|
1815
1825
|
<div class="ng2-smart-filter" *ngIf="column.isFilterable" [ngSwitch]="column.getFilterType()">
|
|
@@ -1842,29 +1852,29 @@ const FILTER_COMPONENTS = [
|
|
|
1842
1852
|
SelectFilterComponent,
|
|
1843
1853
|
];
|
|
1844
1854
|
class FilterModule {
|
|
1855
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1856
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FilterModule, declarations: [FilterDefault,
|
|
1857
|
+
DefaultFilter,
|
|
1858
|
+
FilterComponent,
|
|
1859
|
+
DefaultFilterComponent,
|
|
1860
|
+
CustomFilterComponent,
|
|
1861
|
+
CheckboxFilterComponent,
|
|
1862
|
+
InputFilterComponent,
|
|
1863
|
+
SelectFilterComponent], imports: [CommonModule,
|
|
1864
|
+
FormsModule,
|
|
1865
|
+
ReactiveFormsModule], exports: [FilterDefault,
|
|
1866
|
+
DefaultFilter,
|
|
1867
|
+
FilterComponent,
|
|
1868
|
+
DefaultFilterComponent,
|
|
1869
|
+
CustomFilterComponent,
|
|
1870
|
+
CheckboxFilterComponent,
|
|
1871
|
+
InputFilterComponent,
|
|
1872
|
+
SelectFilterComponent] }); }
|
|
1873
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterModule, imports: [CommonModule,
|
|
1874
|
+
FormsModule,
|
|
1875
|
+
ReactiveFormsModule] }); }
|
|
1845
1876
|
}
|
|
1846
|
-
|
|
1847
|
-
FilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, declarations: [FilterDefault,
|
|
1848
|
-
DefaultFilter,
|
|
1849
|
-
FilterComponent,
|
|
1850
|
-
DefaultFilterComponent,
|
|
1851
|
-
CustomFilterComponent,
|
|
1852
|
-
CheckboxFilterComponent,
|
|
1853
|
-
InputFilterComponent,
|
|
1854
|
-
SelectFilterComponent], imports: [CommonModule,
|
|
1855
|
-
FormsModule,
|
|
1856
|
-
ReactiveFormsModule], exports: [FilterDefault,
|
|
1857
|
-
DefaultFilter,
|
|
1858
|
-
FilterComponent,
|
|
1859
|
-
DefaultFilterComponent,
|
|
1860
|
-
CustomFilterComponent,
|
|
1861
|
-
CheckboxFilterComponent,
|
|
1862
|
-
InputFilterComponent,
|
|
1863
|
-
SelectFilterComponent] });
|
|
1864
|
-
FilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, imports: [CommonModule,
|
|
1865
|
-
FormsModule,
|
|
1866
|
-
ReactiveFormsModule] });
|
|
1867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, decorators: [{
|
|
1877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterModule, decorators: [{
|
|
1868
1878
|
type: NgModule,
|
|
1869
1879
|
args: [{
|
|
1870
1880
|
imports: [
|
|
@@ -1977,9 +1987,8 @@ class PagerComponent {
|
|
|
1977
1987
|
this.source.refresh();
|
|
1978
1988
|
this.initPages();
|
|
1979
1989
|
}
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
PagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PagerComponent, selector: "ng2-smart-table-pager", inputs: { source: "source", perPageSelect: "perPageSelect" }, outputs: { changePage: "changePage" }, usesOnChanges: true, ngImport: i0, template: `
|
|
1990
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1991
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PagerComponent, selector: "ng2-smart-table-pager", inputs: { source: "source", perPageSelect: "perPageSelect" }, outputs: { changePage: "changePage" }, usesOnChanges: true, ngImport: i0, template: `
|
|
1983
1992
|
<nav *ngIf="shouldShow()" class="ng2-smart-pagination-nav">
|
|
1984
1993
|
<ul class="ng2-smart-pagination pagination">
|
|
1985
1994
|
<li class="ng2-smart-page-item page-item" [ngClass]="{disabled: getPage() == 1}">
|
|
@@ -2032,8 +2041,9 @@ PagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version
|
|
|
2032
2041
|
<option *ngFor="let item of perPageSelect" [value]="item">{{ item }}</option>
|
|
2033
2042
|
</select>
|
|
2034
2043
|
</nav>
|
|
2035
|
-
`, isInline: true, styles: [".ng2-smart-pagination{display:inline-flex;font-size:.875em;padding:0}.ng2-smart-pagination .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ng2-smart-pagination .ng2-smart-page-item{display:inline}.ng2-smart-pagination .page-link-next,.ng2-smart-pagination .page-link-prev{font-size:10px}:host{display:flex;justify-content:space-between}:host select{margin:1rem 0 1rem 1rem}:host label{margin:1rem 0 1rem 1rem;line-height:2.5rem}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { 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"] }] });
|
|
2036
|
-
|
|
2044
|
+
`, isInline: true, styles: [".ng2-smart-pagination{display:inline-flex;font-size:.875em;padding:0}.ng2-smart-pagination .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ng2-smart-pagination .ng2-smart-page-item{display:inline}.ng2-smart-pagination .page-link-next,.ng2-smart-pagination .page-link-prev{font-size:10px}:host{display:flex;justify-content:space-between}:host select{margin:1rem 0 1rem 1rem}:host label{margin:1rem 0 1rem 1rem;line-height:2.5rem}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { 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"] }] }); }
|
|
2045
|
+
}
|
|
2046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerComponent, decorators: [{
|
|
2037
2047
|
type: Component,
|
|
2038
2048
|
args: [{ selector: 'ng2-smart-table-pager', template: `
|
|
2039
2049
|
<nav *ngIf="shouldShow()" class="ng2-smart-pagination-nav">
|
|
@@ -2098,13 +2108,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2098
2108
|
}] } });
|
|
2099
2109
|
|
|
2100
2110
|
class PagerModule {
|
|
2111
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2112
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PagerModule, declarations: [PagerComponent], imports: [CommonModule,
|
|
2113
|
+
FormsModule], exports: [PagerComponent] }); }
|
|
2114
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerModule, imports: [CommonModule,
|
|
2115
|
+
FormsModule] }); }
|
|
2101
2116
|
}
|
|
2102
|
-
|
|
2103
|
-
PagerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, declarations: [PagerComponent], imports: [CommonModule,
|
|
2104
|
-
FormsModule], exports: [PagerComponent] });
|
|
2105
|
-
PagerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, imports: [CommonModule,
|
|
2106
|
-
FormsModule] });
|
|
2107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, decorators: [{
|
|
2117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PagerModule, decorators: [{
|
|
2108
2118
|
type: NgModule,
|
|
2109
2119
|
args: [{
|
|
2110
2120
|
imports: [
|
|
@@ -2122,8 +2132,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2122
2132
|
|
|
2123
2133
|
class TbodyCreateCancelComponent {
|
|
2124
2134
|
constructor() {
|
|
2125
|
-
this.cancelButtonContent =
|
|
2126
|
-
this.saveButtonContent =
|
|
2135
|
+
this.cancelButtonContent = "";
|
|
2136
|
+
this.saveButtonContent = "";
|
|
2127
2137
|
}
|
|
2128
2138
|
onSave(event) {
|
|
2129
2139
|
event.preventDefault();
|
|
@@ -2137,26 +2147,170 @@ class TbodyCreateCancelComponent {
|
|
|
2137
2147
|
this.row.isInEditing = false;
|
|
2138
2148
|
}
|
|
2139
2149
|
ngOnChanges() {
|
|
2140
|
-
this.saveButtonContent = this.grid.getSetting(
|
|
2141
|
-
this.cancelButtonContent = this.grid.getSetting(
|
|
2142
|
-
}
|
|
2150
|
+
this.saveButtonContent = this.grid.getSetting("edit.saveButtonContent", "save");
|
|
2151
|
+
this.cancelButtonContent = this.grid.getSetting("edit.cancelButtonContent", "cancel");
|
|
2152
|
+
}
|
|
2153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TbodyCreateCancelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2154
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TbodyCreateCancelComponent, selector: "ng2-st-tbody-create-cancel", inputs: { grid: "grid", row: "row", editConfirm: "editConfirm", editCancel: "editCancel" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2155
|
+
<ng-container *ngIf="!row.pending; else loader">
|
|
2156
|
+
<a
|
|
2157
|
+
href="#"
|
|
2158
|
+
[id]="'row-' + row.index + '_editing-confirm-button'"
|
|
2159
|
+
class="ng2-smart-action ng2-smart-action-edit-save"
|
|
2160
|
+
[innerHTML]="saveButtonContent"
|
|
2161
|
+
(click)="onSave($event)"
|
|
2162
|
+
></a>
|
|
2163
|
+
<a
|
|
2164
|
+
href="#"
|
|
2165
|
+
[id]="'row-' + row.index + '_editing-cancel-button'"
|
|
2166
|
+
class="ng2-smart-action ng2-smart-action-edit-cancel"
|
|
2167
|
+
[innerHTML]="cancelButtonContent"
|
|
2168
|
+
(click)="onCancelEdit($event)"
|
|
2169
|
+
></a>
|
|
2170
|
+
</ng-container>
|
|
2171
|
+
<ng-template #loader>
|
|
2172
|
+
<div style="display: flex;">
|
|
2173
|
+
<svg
|
|
2174
|
+
(click)="$event.stopPropagation()"
|
|
2175
|
+
style="height: 2rem; width: 2rem;"
|
|
2176
|
+
version="1.1"
|
|
2177
|
+
id="L9"
|
|
2178
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2179
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2180
|
+
x="0px"
|
|
2181
|
+
y="0px"
|
|
2182
|
+
viewBox="0 0 100 100"
|
|
2183
|
+
enable-background="new 0 0 0 0"
|
|
2184
|
+
xml:space="preserve"
|
|
2185
|
+
>
|
|
2186
|
+
<path
|
|
2187
|
+
fill="#e9e9e9"
|
|
2188
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
2189
|
+
>
|
|
2190
|
+
<animateTransform
|
|
2191
|
+
attributeName="transform"
|
|
2192
|
+
attributeType="XML"
|
|
2193
|
+
type="rotate"
|
|
2194
|
+
dur="1s"
|
|
2195
|
+
from="0 50 50"
|
|
2196
|
+
to="360 50 50"
|
|
2197
|
+
repeatCount="indefinite"
|
|
2198
|
+
/>
|
|
2199
|
+
</path>
|
|
2200
|
+
</svg>
|
|
2201
|
+
<svg
|
|
2202
|
+
(click)="$event.stopPropagation()"
|
|
2203
|
+
style="height: 2rem; width: 2rem; "
|
|
2204
|
+
version="1.1"
|
|
2205
|
+
id="L9"
|
|
2206
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2207
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2208
|
+
x="0px"
|
|
2209
|
+
y="0px"
|
|
2210
|
+
viewBox="0 0 100 100"
|
|
2211
|
+
enable-background="new 0 0 0 0"
|
|
2212
|
+
xml:space="preserve"
|
|
2213
|
+
>
|
|
2214
|
+
<path
|
|
2215
|
+
fill="#e9e9e9"
|
|
2216
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
2217
|
+
>
|
|
2218
|
+
<animateTransform
|
|
2219
|
+
attributeName="transform"
|
|
2220
|
+
attributeType="XML"
|
|
2221
|
+
type="rotate"
|
|
2222
|
+
dur="1s"
|
|
2223
|
+
from="0 50 50"
|
|
2224
|
+
to="360 50 50"
|
|
2225
|
+
repeatCount="indefinite"
|
|
2226
|
+
/>
|
|
2227
|
+
</path>
|
|
2228
|
+
</svg>
|
|
2229
|
+
</div>
|
|
2230
|
+
</ng-template>
|
|
2231
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2143
2232
|
}
|
|
2144
|
-
|
|
2145
|
-
TbodyCreateCancelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TbodyCreateCancelComponent, selector: "ng2-st-tbody-create-cancel", inputs: { grid: "grid", row: "row", editConfirm: "editConfirm", editCancel: "editCancel" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2146
|
-
<a href="#" class="ng2-smart-action ng2-smart-action-edit-save"
|
|
2147
|
-
[innerHTML]="saveButtonContent" (click)="onSave($event)"></a>
|
|
2148
|
-
<a href="#" class="ng2-smart-action ng2-smart-action-edit-cancel"
|
|
2149
|
-
[innerHTML]="cancelButtonContent" (click)="onCancelEdit($event)"></a>
|
|
2150
|
-
`, isInline: true });
|
|
2151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCreateCancelComponent, decorators: [{
|
|
2233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TbodyCreateCancelComponent, decorators: [{
|
|
2152
2234
|
type: Component,
|
|
2153
2235
|
args: [{
|
|
2154
|
-
selector:
|
|
2236
|
+
selector: "ng2-st-tbody-create-cancel",
|
|
2155
2237
|
template: `
|
|
2156
|
-
<
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
[
|
|
2238
|
+
<ng-container *ngIf="!row.pending; else loader">
|
|
2239
|
+
<a
|
|
2240
|
+
href="#"
|
|
2241
|
+
[id]="'row-' + row.index + '_editing-confirm-button'"
|
|
2242
|
+
class="ng2-smart-action ng2-smart-action-edit-save"
|
|
2243
|
+
[innerHTML]="saveButtonContent"
|
|
2244
|
+
(click)="onSave($event)"
|
|
2245
|
+
></a>
|
|
2246
|
+
<a
|
|
2247
|
+
href="#"
|
|
2248
|
+
[id]="'row-' + row.index + '_editing-cancel-button'"
|
|
2249
|
+
class="ng2-smart-action ng2-smart-action-edit-cancel"
|
|
2250
|
+
[innerHTML]="cancelButtonContent"
|
|
2251
|
+
(click)="onCancelEdit($event)"
|
|
2252
|
+
></a>
|
|
2253
|
+
</ng-container>
|
|
2254
|
+
<ng-template #loader>
|
|
2255
|
+
<div style="display: flex;">
|
|
2256
|
+
<svg
|
|
2257
|
+
(click)="$event.stopPropagation()"
|
|
2258
|
+
style="height: 2rem; width: 2rem;"
|
|
2259
|
+
version="1.1"
|
|
2260
|
+
id="L9"
|
|
2261
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2262
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2263
|
+
x="0px"
|
|
2264
|
+
y="0px"
|
|
2265
|
+
viewBox="0 0 100 100"
|
|
2266
|
+
enable-background="new 0 0 0 0"
|
|
2267
|
+
xml:space="preserve"
|
|
2268
|
+
>
|
|
2269
|
+
<path
|
|
2270
|
+
fill="#e9e9e9"
|
|
2271
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
2272
|
+
>
|
|
2273
|
+
<animateTransform
|
|
2274
|
+
attributeName="transform"
|
|
2275
|
+
attributeType="XML"
|
|
2276
|
+
type="rotate"
|
|
2277
|
+
dur="1s"
|
|
2278
|
+
from="0 50 50"
|
|
2279
|
+
to="360 50 50"
|
|
2280
|
+
repeatCount="indefinite"
|
|
2281
|
+
/>
|
|
2282
|
+
</path>
|
|
2283
|
+
</svg>
|
|
2284
|
+
<svg
|
|
2285
|
+
(click)="$event.stopPropagation()"
|
|
2286
|
+
style="height: 2rem; width: 2rem; "
|
|
2287
|
+
version="1.1"
|
|
2288
|
+
id="L9"
|
|
2289
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2290
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2291
|
+
x="0px"
|
|
2292
|
+
y="0px"
|
|
2293
|
+
viewBox="0 0 100 100"
|
|
2294
|
+
enable-background="new 0 0 0 0"
|
|
2295
|
+
xml:space="preserve"
|
|
2296
|
+
>
|
|
2297
|
+
<path
|
|
2298
|
+
fill="#e9e9e9"
|
|
2299
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
2300
|
+
>
|
|
2301
|
+
<animateTransform
|
|
2302
|
+
attributeName="transform"
|
|
2303
|
+
attributeType="XML"
|
|
2304
|
+
type="rotate"
|
|
2305
|
+
dur="1s"
|
|
2306
|
+
from="0 50 50"
|
|
2307
|
+
to="360 50 50"
|
|
2308
|
+
repeatCount="indefinite"
|
|
2309
|
+
/>
|
|
2310
|
+
</path>
|
|
2311
|
+
</svg>
|
|
2312
|
+
</div>
|
|
2313
|
+
</ng-template>
|
|
2160
2314
|
`,
|
|
2161
2315
|
}]
|
|
2162
2316
|
}], propDecorators: { grid: [{
|
|
@@ -2176,8 +2330,8 @@ class TbodyEditDeleteComponent {
|
|
|
2176
2330
|
this.editRowSelect = new EventEmitter();
|
|
2177
2331
|
this.isActionEdit = false;
|
|
2178
2332
|
this.isActionDelete = false;
|
|
2179
|
-
this.editRowButtonContent =
|
|
2180
|
-
this.deleteRowButtonContent =
|
|
2333
|
+
this.editRowButtonContent = "";
|
|
2334
|
+
this.deleteRowButtonContent = "";
|
|
2181
2335
|
}
|
|
2182
2336
|
onEdit(event) {
|
|
2183
2337
|
event.preventDefault();
|
|
@@ -2187,14 +2341,14 @@ class TbodyEditDeleteComponent {
|
|
|
2187
2341
|
data: this.row.getData(),
|
|
2188
2342
|
source: this.source,
|
|
2189
2343
|
});
|
|
2190
|
-
if (this.grid.getSetting(
|
|
2344
|
+
if (this.grid.getSetting("mode") !== "external") {
|
|
2191
2345
|
this.grid.edit(this.row);
|
|
2192
2346
|
}
|
|
2193
2347
|
}
|
|
2194
2348
|
onDelete(event) {
|
|
2195
2349
|
event.preventDefault();
|
|
2196
2350
|
event.stopPropagation();
|
|
2197
|
-
if (this.grid.getSetting(
|
|
2351
|
+
if (this.grid.getSetting("mode") === "external") {
|
|
2198
2352
|
this.delete.emit({
|
|
2199
2353
|
data: this.row.getData(),
|
|
2200
2354
|
source: this.source,
|
|
@@ -2205,29 +2359,180 @@ class TbodyEditDeleteComponent {
|
|
|
2205
2359
|
}
|
|
2206
2360
|
}
|
|
2207
2361
|
ngOnChanges() {
|
|
2208
|
-
this.isActionEdit = this.grid.getSetting(
|
|
2209
|
-
this.isActionDelete = this.grid.getSetting(
|
|
2210
|
-
this.editRowButtonContent = this.grid.getSetting(
|
|
2211
|
-
this.deleteRowButtonContent = this.grid.getSetting(
|
|
2212
|
-
}
|
|
2362
|
+
this.isActionEdit = this.grid.getSetting("actions.edit");
|
|
2363
|
+
this.isActionDelete = this.grid.getSetting("actions.delete");
|
|
2364
|
+
this.editRowButtonContent = this.grid.getSetting("edit.editButtonContent");
|
|
2365
|
+
this.deleteRowButtonContent = this.grid.getSetting("delete.deleteButtonContent");
|
|
2366
|
+
}
|
|
2367
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TbodyEditDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2368
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TbodyEditDeleteComponent, selector: "ng2-st-tbody-edit-delete", inputs: { grid: "grid", row: "row", source: "source", deleteConfirm: "deleteConfirm", editConfirm: "editConfirm" }, outputs: { edit: "edit", delete: "delete", editRowSelect: "editRowSelect" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2369
|
+
<ng-container *ngIf="!row.pending; else loader">
|
|
2370
|
+
<a
|
|
2371
|
+
href="#"
|
|
2372
|
+
*ngIf="isActionEdit"
|
|
2373
|
+
[id]="'row-' + row.index + '_action-edit-button'"
|
|
2374
|
+
class="ng2-smart-action ng2-smart-action-edit-edit"
|
|
2375
|
+
[innerHTML]="editRowButtonContent"
|
|
2376
|
+
(click)="onEdit($event)"
|
|
2377
|
+
></a>
|
|
2378
|
+
<a
|
|
2379
|
+
href="#"
|
|
2380
|
+
*ngIf="isActionDelete"
|
|
2381
|
+
[id]="'row-' + row.index + '_action-delete-button'"
|
|
2382
|
+
class="ng2-smart-action ng2-smart-action-delete-delete"
|
|
2383
|
+
[innerHTML]="deleteRowButtonContent"
|
|
2384
|
+
(click)="onDelete($event)"
|
|
2385
|
+
></a>
|
|
2386
|
+
</ng-container>
|
|
2387
|
+
<ng-template #loader>
|
|
2388
|
+
<div style="display: flex;">
|
|
2389
|
+
<svg
|
|
2390
|
+
*ngIf="isActionEdit"
|
|
2391
|
+
(click)="$event.stopPropagation()"
|
|
2392
|
+
style="height: 2rem; width: 2rem;"
|
|
2393
|
+
version="1.1"
|
|
2394
|
+
id="L9"
|
|
2395
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2396
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2397
|
+
x="0px"
|
|
2398
|
+
y="0px"
|
|
2399
|
+
viewBox="0 0 100 100"
|
|
2400
|
+
enable-background="new 0 0 0 0"
|
|
2401
|
+
xml:space="preserve"
|
|
2402
|
+
>
|
|
2403
|
+
<path
|
|
2404
|
+
fill="#e9e9e9"
|
|
2405
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
2406
|
+
>
|
|
2407
|
+
<animateTransform
|
|
2408
|
+
attributeName="transform"
|
|
2409
|
+
attributeType="XML"
|
|
2410
|
+
type="rotate"
|
|
2411
|
+
dur="1s"
|
|
2412
|
+
from="0 50 50"
|
|
2413
|
+
to="360 50 50"
|
|
2414
|
+
repeatCount="indefinite"
|
|
2415
|
+
/>
|
|
2416
|
+
</path>
|
|
2417
|
+
</svg>
|
|
2418
|
+
<svg
|
|
2419
|
+
*ngIf="isActionDelete"
|
|
2420
|
+
(click)="$event.stopPropagation()"
|
|
2421
|
+
style="height: 2rem; width: 2rem;"
|
|
2422
|
+
version="1.1"
|
|
2423
|
+
id="L9"
|
|
2424
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2425
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2426
|
+
x="0px"
|
|
2427
|
+
y="0px"
|
|
2428
|
+
viewBox="0 0 100 100"
|
|
2429
|
+
enable-background="new 0 0 0 0"
|
|
2430
|
+
xml:space="preserve"
|
|
2431
|
+
>
|
|
2432
|
+
<path
|
|
2433
|
+
fill="#e9e9e9"
|
|
2434
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
2435
|
+
>
|
|
2436
|
+
<animateTransform
|
|
2437
|
+
attributeName="transform"
|
|
2438
|
+
attributeType="XML"
|
|
2439
|
+
type="rotate"
|
|
2440
|
+
dur="1s"
|
|
2441
|
+
from="0 50 50"
|
|
2442
|
+
to="360 50 50"
|
|
2443
|
+
repeatCount="indefinite"
|
|
2444
|
+
/>
|
|
2445
|
+
</path>
|
|
2446
|
+
</svg>
|
|
2447
|
+
</div>
|
|
2448
|
+
</ng-template>
|
|
2449
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2213
2450
|
}
|
|
2214
|
-
|
|
2215
|
-
TbodyEditDeleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TbodyEditDeleteComponent, selector: "ng2-st-tbody-edit-delete", inputs: { grid: "grid", row: "row", source: "source", deleteConfirm: "deleteConfirm", editConfirm: "editConfirm" }, outputs: { edit: "edit", delete: "delete", editRowSelect: "editRowSelect" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2216
|
-
<a href="#" *ngIf="isActionEdit" class="ng2-smart-action ng2-smart-action-edit-edit"
|
|
2217
|
-
[innerHTML]="editRowButtonContent" (click)="onEdit($event)"></a>
|
|
2218
|
-
<a href="#" *ngIf="isActionDelete" class="ng2-smart-action ng2-smart-action-delete-delete"
|
|
2219
|
-
[innerHTML]="deleteRowButtonContent" (click)="onDelete($event)"></a>
|
|
2220
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyEditDeleteComponent, decorators: [{
|
|
2451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TbodyEditDeleteComponent, decorators: [{
|
|
2222
2452
|
type: Component,
|
|
2223
2453
|
args: [{
|
|
2224
|
-
selector:
|
|
2225
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2454
|
+
selector: "ng2-st-tbody-edit-delete",
|
|
2226
2455
|
template: `
|
|
2227
|
-
<
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2456
|
+
<ng-container *ngIf="!row.pending; else loader">
|
|
2457
|
+
<a
|
|
2458
|
+
href="#"
|
|
2459
|
+
*ngIf="isActionEdit"
|
|
2460
|
+
[id]="'row-' + row.index + '_action-edit-button'"
|
|
2461
|
+
class="ng2-smart-action ng2-smart-action-edit-edit"
|
|
2462
|
+
[innerHTML]="editRowButtonContent"
|
|
2463
|
+
(click)="onEdit($event)"
|
|
2464
|
+
></a>
|
|
2465
|
+
<a
|
|
2466
|
+
href="#"
|
|
2467
|
+
*ngIf="isActionDelete"
|
|
2468
|
+
[id]="'row-' + row.index + '_action-delete-button'"
|
|
2469
|
+
class="ng2-smart-action ng2-smart-action-delete-delete"
|
|
2470
|
+
[innerHTML]="deleteRowButtonContent"
|
|
2471
|
+
(click)="onDelete($event)"
|
|
2472
|
+
></a>
|
|
2473
|
+
</ng-container>
|
|
2474
|
+
<ng-template #loader>
|
|
2475
|
+
<div style="display: flex;">
|
|
2476
|
+
<svg
|
|
2477
|
+
*ngIf="isActionEdit"
|
|
2478
|
+
(click)="$event.stopPropagation()"
|
|
2479
|
+
style="height: 2rem; width: 2rem;"
|
|
2480
|
+
version="1.1"
|
|
2481
|
+
id="L9"
|
|
2482
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2483
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2484
|
+
x="0px"
|
|
2485
|
+
y="0px"
|
|
2486
|
+
viewBox="0 0 100 100"
|
|
2487
|
+
enable-background="new 0 0 0 0"
|
|
2488
|
+
xml:space="preserve"
|
|
2489
|
+
>
|
|
2490
|
+
<path
|
|
2491
|
+
fill="#e9e9e9"
|
|
2492
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
2493
|
+
>
|
|
2494
|
+
<animateTransform
|
|
2495
|
+
attributeName="transform"
|
|
2496
|
+
attributeType="XML"
|
|
2497
|
+
type="rotate"
|
|
2498
|
+
dur="1s"
|
|
2499
|
+
from="0 50 50"
|
|
2500
|
+
to="360 50 50"
|
|
2501
|
+
repeatCount="indefinite"
|
|
2502
|
+
/>
|
|
2503
|
+
</path>
|
|
2504
|
+
</svg>
|
|
2505
|
+
<svg
|
|
2506
|
+
*ngIf="isActionDelete"
|
|
2507
|
+
(click)="$event.stopPropagation()"
|
|
2508
|
+
style="height: 2rem; width: 2rem;"
|
|
2509
|
+
version="1.1"
|
|
2510
|
+
id="L9"
|
|
2511
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2512
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
2513
|
+
x="0px"
|
|
2514
|
+
y="0px"
|
|
2515
|
+
viewBox="0 0 100 100"
|
|
2516
|
+
enable-background="new 0 0 0 0"
|
|
2517
|
+
xml:space="preserve"
|
|
2518
|
+
>
|
|
2519
|
+
<path
|
|
2520
|
+
fill="#e9e9e9"
|
|
2521
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
2522
|
+
>
|
|
2523
|
+
<animateTransform
|
|
2524
|
+
attributeName="transform"
|
|
2525
|
+
attributeType="XML"
|
|
2526
|
+
type="rotate"
|
|
2527
|
+
dur="1s"
|
|
2528
|
+
from="0 50 50"
|
|
2529
|
+
to="360 50 50"
|
|
2530
|
+
repeatCount="indefinite"
|
|
2531
|
+
/>
|
|
2532
|
+
</path>
|
|
2533
|
+
</svg>
|
|
2534
|
+
</div>
|
|
2535
|
+
</ng-template>
|
|
2231
2536
|
`,
|
|
2232
2537
|
}]
|
|
2233
2538
|
}], propDecorators: { grid: [{
|
|
@@ -2252,34 +2557,43 @@ class TbodyCustomComponent {
|
|
|
2252
2557
|
constructor() {
|
|
2253
2558
|
this.custom = new EventEmitter();
|
|
2254
2559
|
}
|
|
2255
|
-
onCustom(action
|
|
2256
|
-
event.preventDefault();
|
|
2257
|
-
event.stopPropagation();
|
|
2560
|
+
onCustom(action) {
|
|
2258
2561
|
this.custom.emit({
|
|
2259
2562
|
action: action.name,
|
|
2260
2563
|
data: this.row.getData(),
|
|
2261
|
-
source: this.source
|
|
2564
|
+
source: this.source,
|
|
2262
2565
|
});
|
|
2263
2566
|
}
|
|
2567
|
+
customActions() {
|
|
2568
|
+
return this.grid.getSetting("actions.custom");
|
|
2569
|
+
}
|
|
2570
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TbodyCustomComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2571
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TbodyCustomComponent, selector: "ng2-st-tbody-custom", inputs: { grid: "grid", row: "row", source: "source" }, outputs: { custom: "custom" }, ngImport: i0, template: `
|
|
2572
|
+
<a
|
|
2573
|
+
*ngFor="let action of customActions()"
|
|
2574
|
+
[id]="'row-' + row.index + '_action-' + action.name + '-button'"
|
|
2575
|
+
href="#"
|
|
2576
|
+
class="ng2-smart-action ng2-smart-action-custom-custom"
|
|
2577
|
+
[innerHTML]="action.title"
|
|
2578
|
+
(click)="$event.stopPropagation(); $event.preventDefault(); onCustom(action)"
|
|
2579
|
+
></a>
|
|
2580
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2264
2581
|
}
|
|
2265
|
-
|
|
2266
|
-
TbodyCustomComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TbodyCustomComponent, selector: "ng2-st-tbody-custom", inputs: { grid: "grid", row: "row", source: "source" }, outputs: { custom: "custom" }, ngImport: i0, template: `
|
|
2267
|
-
<a *ngFor="let action of grid.getSetting('actions.custom')" href="#"
|
|
2268
|
-
class="ng2-smart-action ng2-smart-action-custom-custom"
|
|
2269
|
-
[innerHTML]="action.title"
|
|
2270
|
-
(click)="onCustom(action, $event)"></a>
|
|
2271
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCustomComponent, decorators: [{
|
|
2582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TbodyCustomComponent, decorators: [{
|
|
2273
2583
|
type: Component,
|
|
2274
2584
|
args: [{
|
|
2275
|
-
selector:
|
|
2585
|
+
selector: "ng2-st-tbody-custom",
|
|
2276
2586
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2277
2587
|
template: `
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2588
|
+
<a
|
|
2589
|
+
*ngFor="let action of customActions()"
|
|
2590
|
+
[id]="'row-' + row.index + '_action-' + action.name + '-button'"
|
|
2591
|
+
href="#"
|
|
2592
|
+
class="ng2-smart-action ng2-smart-action-custom-custom"
|
|
2593
|
+
[innerHTML]="action.title"
|
|
2594
|
+
(click)="$event.stopPropagation(); $event.preventDefault(); onCustom(action)"
|
|
2595
|
+
></a>
|
|
2596
|
+
`,
|
|
2283
2597
|
}]
|
|
2284
2598
|
}], propDecorators: { grid: [{
|
|
2285
2599
|
type: Input
|
|
@@ -2336,12 +2650,12 @@ class Ng2SmartTableTbodyComponent {
|
|
|
2336
2650
|
trackByIdOrIndex(index, item) {
|
|
2337
2651
|
return item?.id || index;
|
|
2338
2652
|
}
|
|
2653
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Ng2SmartTableTbodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2654
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.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: "<ng-container *ngIf=\"grid.getRows()?.length; noRows\">\n <tr\n *ngFor=\"let row of grid.getRows(); trackBy: trackByIdOrIndex\"\n (click)=\"userClickedRow.emit(row)\"\n class=\"ng2-smart-row\"\n [className]=\"rowClassFunction(row)\"\n [ngClass]=\"{ selected: row.isSelected }\"\n >\n <td\n *ngIf=\"isMultiSelectVisible\"\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 <td\n *ngIf=\"!row.isInEditing && showActionColumnLeft\"\n class=\"ng2-smart-actions\"\n (click)=\"$event.stopPropagation()\"\n >\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\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 <td\n *ngIf=\"row.isInEditing && showActionColumnLeft\"\n class=\"ng2-smart-actions\"\n >\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 <td\n *ngFor=\"let cell of getVisibleCells(row.cells)\"\n [ngClass]=\"cell.getColumnClass()\"\n >\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\n <td\n *ngIf=\"row.isInEditing && showActionColumnRight\"\n class=\"ng2-smart-actions\"\n >\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n ></ng2-st-tbody-create-cancel>\n </td>\n\n <td\n *ngIf=\"!row.isInEditing && showActionColumnRight\"\n class=\"ng2-smart-actions\"\n >\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\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 </tr>\n</ng-container>\n\n<ng-template #noRows>\n <tr>\n <td [attr.colspan]=\"tableColumnsCount\">\n {{ noDataMessage }}\n </td>\n </tr>\n</ng-template>\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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] }); }
|
|
2339
2655
|
}
|
|
2340
|
-
|
|
2341
|
-
Ng2SmartTableTbodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", 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: "<tr\n *ngFor=\"let row of grid.getRows(); trackBy: trackByIdOrIndex\"\n (click)=\"userClickedRow.emit(row)\"\n class=\"ng2-smart-row\"\n [className]=\"rowClassFunction(row)\"\n [ngClass]=\"{ selected: row.isSelected }\"\n>\n <td\n *ngIf=\"isMultiSelectVisible\"\n class=\"ng2-smart-actions ng2-smart-action-multiple-select\"\n (click)=\"multipleSelectRow.emit(row); $event.stopPropagation()\"\n >\n <input type=\"checkbox\" class=\"form-control\" [ngModel]=\"row.isSelected\" />\n </td>\n <td\n *ngIf=\"!row.isInEditing && showActionColumnLeft\"\n class=\"ng2-smart-actions\"\n (click)=\"$event.stopPropagation()\"\n >\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\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 <td *ngIf=\"row.isInEditing && showActionColumnLeft\" 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 <td *ngFor=\"let cell of getVisibleCells(row.cells)\">\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\n <td\n *ngIf=\"row.isInEditing && showActionColumnRight\"\n class=\"ng2-smart-actions\"\n >\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n ></ng2-st-tbody-create-cancel>\n </td>\n\n <td\n *ngIf=\"!row.isInEditing && showActionColumnRight\"\n class=\"ng2-smart-actions\"\n >\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\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</tr>\n\n<tr *ngIf=\"grid.getRows().length == 0\">\n <td [attr.colspan]=\"tableColumnsCount\">\n {{ noDataMessage }}\n </td>\n</tr>\n", styles: [":host .ng2-smart-row.selected{background:rgba(0,0,0,.05)}: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: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
|
|
2342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableTbodyComponent, decorators: [{
|
|
2656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Ng2SmartTableTbodyComponent, decorators: [{
|
|
2343
2657
|
type: Component,
|
|
2344
|
-
args: [{ selector: '[ng2-st-tbody]', template: "<tr\n
|
|
2658
|
+
args: [{ selector: '[ng2-st-tbody]', template: "<ng-container *ngIf=\"grid.getRows()?.length; noRows\">\n <tr\n *ngFor=\"let row of grid.getRows(); trackBy: trackByIdOrIndex\"\n (click)=\"userClickedRow.emit(row)\"\n class=\"ng2-smart-row\"\n [className]=\"rowClassFunction(row)\"\n [ngClass]=\"{ selected: row.isSelected }\"\n >\n <td\n *ngIf=\"isMultiSelectVisible\"\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 <td\n *ngIf=\"!row.isInEditing && showActionColumnLeft\"\n class=\"ng2-smart-actions\"\n (click)=\"$event.stopPropagation()\"\n >\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\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 <td\n *ngIf=\"row.isInEditing && showActionColumnLeft\"\n class=\"ng2-smart-actions\"\n >\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 <td\n *ngFor=\"let cell of getVisibleCells(row.cells)\"\n [ngClass]=\"cell.getColumnClass()\"\n >\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\n <td\n *ngIf=\"row.isInEditing && showActionColumnRight\"\n class=\"ng2-smart-actions\"\n >\n <ng2-st-tbody-create-cancel\n [grid]=\"grid\"\n [row]=\"row\"\n [editConfirm]=\"editConfirm\"\n ></ng2-st-tbody-create-cancel>\n </td>\n\n <td\n *ngIf=\"!row.isInEditing && showActionColumnRight\"\n class=\"ng2-smart-actions\"\n >\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\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 </tr>\n</ng-container>\n\n<ng-template #noRows>\n <tr>\n <td [attr.colspan]=\"tableColumnsCount\">\n {{ noDataMessage }}\n </td>\n </tr>\n</ng-template>\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"] }]
|
|
2345
2659
|
}], propDecorators: { grid: [{
|
|
2346
2660
|
type: Input
|
|
2347
2661
|
}], source: [{
|
|
@@ -2383,21 +2697,21 @@ const TBODY_COMPONENTS = [
|
|
|
2383
2697
|
Ng2SmartTableTbodyComponent
|
|
2384
2698
|
];
|
|
2385
2699
|
class TBodyModule {
|
|
2700
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TBodyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2701
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TBodyModule, declarations: [TbodyCreateCancelComponent,
|
|
2702
|
+
TbodyEditDeleteComponent,
|
|
2703
|
+
TbodyCustomComponent,
|
|
2704
|
+
Ng2SmartTableTbodyComponent], imports: [CommonModule,
|
|
2705
|
+
FormsModule,
|
|
2706
|
+
CellModule], exports: [TbodyCreateCancelComponent,
|
|
2707
|
+
TbodyEditDeleteComponent,
|
|
2708
|
+
TbodyCustomComponent,
|
|
2709
|
+
Ng2SmartTableTbodyComponent] }); }
|
|
2710
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TBodyModule, imports: [CommonModule,
|
|
2711
|
+
FormsModule,
|
|
2712
|
+
CellModule] }); }
|
|
2386
2713
|
}
|
|
2387
|
-
|
|
2388
|
-
TBodyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, declarations: [TbodyCreateCancelComponent,
|
|
2389
|
-
TbodyEditDeleteComponent,
|
|
2390
|
-
TbodyCustomComponent,
|
|
2391
|
-
Ng2SmartTableTbodyComponent], imports: [CommonModule,
|
|
2392
|
-
FormsModule,
|
|
2393
|
-
CellModule], exports: [TbodyCreateCancelComponent,
|
|
2394
|
-
TbodyEditDeleteComponent,
|
|
2395
|
-
TbodyCustomComponent,
|
|
2396
|
-
Ng2SmartTableTbodyComponent] });
|
|
2397
|
-
TBodyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, imports: [CommonModule,
|
|
2398
|
-
FormsModule,
|
|
2399
|
-
CellModule] });
|
|
2400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, decorators: [{
|
|
2714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TBodyModule, decorators: [{
|
|
2401
2715
|
type: NgModule,
|
|
2402
2716
|
args: [{
|
|
2403
2717
|
imports: [
|
|
@@ -2440,13 +2754,13 @@ class AddButtonComponent {
|
|
|
2440
2754
|
this.grid.createFormShown = true;
|
|
2441
2755
|
}
|
|
2442
2756
|
}
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
-
AddButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AddButtonComponent, selector: "[ng2-st-add-button]", inputs: { grid: "grid", source: "source" }, outputs: { create: "create" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2757
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AddButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2758
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: AddButtonComponent, selector: "[ng2-st-add-button]", inputs: { grid: "grid", source: "source" }, outputs: { create: "create" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2446
2759
|
<a *ngIf="isActionAdd" href="#" class="ng2-smart-action ng2-smart-action-add-add"
|
|
2447
2760
|
[innerHTML]="addNewButtonContent" (click)="onAdd($event)"></a>
|
|
2448
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2449
|
-
|
|
2761
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2762
|
+
}
|
|
2763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AddButtonComponent, decorators: [{
|
|
2450
2764
|
type: Component,
|
|
2451
2765
|
args: [{
|
|
2452
2766
|
selector: '[ng2-st-add-button]',
|
|
@@ -2481,9 +2795,8 @@ class TheadFitlersRowComponent {
|
|
|
2481
2795
|
getVisibleColumns(columns) {
|
|
2482
2796
|
return (columns || []).filter((column) => !column.hide);
|
|
2483
2797
|
}
|
|
2484
|
-
}
|
|
2485
|
-
|
|
2486
|
-
TheadFitlersRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TheadFitlersRowComponent, selector: "[ng2-st-thead-filters-row]", inputs: { grid: "grid", source: "source" }, outputs: { create: "create", filter: "filter" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2798
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TheadFitlersRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2799
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TheadFitlersRowComponent, selector: "[ng2-st-thead-filters-row]", inputs: { grid: "grid", source: "source" }, outputs: { create: "create", filter: "filter" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2487
2800
|
<th *ngIf="isMultiSelectVisible"></th>
|
|
2488
2801
|
<th ng2-st-add-button *ngIf="showActionColumnLeft"
|
|
2489
2802
|
[grid]="grid"
|
|
@@ -2501,8 +2814,9 @@ TheadFitlersRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0
|
|
|
2501
2814
|
[source]="source"
|
|
2502
2815
|
(create)="create.emit($event)">
|
|
2503
2816
|
</th>
|
|
2504
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FilterComponent, selector: "ng2-smart-table-filter" }, { kind: "component", type: AddButtonComponent, selector: "[ng2-st-add-button]", inputs: ["grid", "source"], outputs: ["create"] }] });
|
|
2505
|
-
|
|
2817
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FilterComponent, selector: "ng2-smart-table-filter" }, { kind: "component", type: AddButtonComponent, selector: "[ng2-st-add-button]", inputs: ["grid", "source"], outputs: ["create"] }] }); }
|
|
2818
|
+
}
|
|
2819
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TheadFitlersRowComponent, decorators: [{
|
|
2506
2820
|
type: Component,
|
|
2507
2821
|
args: [{
|
|
2508
2822
|
selector: '[ng2-st-thead-filters-row]',
|
|
@@ -2546,17 +2860,17 @@ class ActionsComponent {
|
|
|
2546
2860
|
this.createButtonContent = this.grid.getSetting('add.createButtonContent');
|
|
2547
2861
|
this.cancelButtonContent = this.grid.getSetting('add.cancelButtonContent');
|
|
2548
2862
|
}
|
|
2549
|
-
}
|
|
2550
|
-
|
|
2551
|
-
ActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ActionsComponent, selector: "ng2-st-actions", inputs: { grid: "grid" }, outputs: { create: "create" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2863
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2864
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionsComponent, selector: "ng2-st-actions", inputs: { grid: "grid" }, outputs: { create: "create" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2552
2865
|
<a href="#" class="ng2-smart-action ng2-smart-action-add-create"
|
|
2553
2866
|
[innerHTML]="createButtonContent"
|
|
2554
2867
|
(click)="$event.preventDefault();create.emit($event)"></a>
|
|
2555
2868
|
<a href="#" class="ng2-smart-action ng2-smart-action-add-cancel"
|
|
2556
2869
|
[innerHTML]="cancelButtonContent"
|
|
2557
2870
|
(click)="$event.preventDefault();grid.createFormShown = false;"></a>
|
|
2558
|
-
`, isInline: true });
|
|
2559
|
-
|
|
2871
|
+
`, isInline: true }); }
|
|
2872
|
+
}
|
|
2873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsComponent, decorators: [{
|
|
2560
2874
|
type: Component,
|
|
2561
2875
|
args: [{
|
|
2562
2876
|
selector: 'ng2-st-actions',
|
|
@@ -2596,9 +2910,8 @@ class TheadFormRowComponent {
|
|
|
2596
2910
|
getVisibleCells(cells) {
|
|
2597
2911
|
return (cells || []).filter((cell) => !cell.getColumn().hide);
|
|
2598
2912
|
}
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
TheadFormRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TheadFormRowComponent, selector: "[ng2-st-thead-form-row]", inputs: { grid: "grid", row: "row", createConfirm: "createConfirm" }, outputs: { create: "create" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2913
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TheadFormRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2914
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TheadFormRowComponent, selector: "[ng2-st-thead-form-row]", inputs: { grid: "grid", row: "row", createConfirm: "createConfirm" }, outputs: { create: "create" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2602
2915
|
<td *ngIf="grid.isMultiSelectVisible"></td>
|
|
2603
2916
|
<td *ngIf="showActionColumnLeft" class="ng2-smart-actions">
|
|
2604
2917
|
<ng2-st-actions [grid]="grid" (create)="onCreate($event)"></ng2-st-actions>
|
|
@@ -2616,8 +2929,9 @@ TheadFormRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
2616
2929
|
<td *ngIf="showActionColumnRight" class="ng2-smart-actions">
|
|
2617
2930
|
<ng2-st-actions [grid]="grid" (create)="onCreate($event)"></ng2-st-actions>
|
|
2618
2931
|
</td>
|
|
2619
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CellComponent, selector: "ng2-smart-table-cell", inputs: ["grid", "row", "editConfirm", "createConfirm", "isNew", "cell", "inputClass", "mode", "isInEditing"], outputs: ["edited"] }, { kind: "component", type: ActionsComponent, selector: "ng2-st-actions", inputs: ["grid"], outputs: ["create"] }] });
|
|
2620
|
-
|
|
2932
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CellComponent, selector: "ng2-smart-table-cell", inputs: ["grid", "row", "editConfirm", "createConfirm", "isNew", "cell", "inputClass", "mode", "isInEditing"], outputs: ["edited"] }, { kind: "component", type: ActionsComponent, selector: "ng2-st-actions", inputs: ["grid"], outputs: ["create"] }] }); }
|
|
2933
|
+
}
|
|
2934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TheadFormRowComponent, decorators: [{
|
|
2621
2935
|
type: Component,
|
|
2622
2936
|
args: [{
|
|
2623
2937
|
selector: '[ng2-st-thead-form-row]',
|
|
@@ -2662,12 +2976,12 @@ class ActionsTitleComponent {
|
|
|
2662
2976
|
ngOnChanges() {
|
|
2663
2977
|
this.actionsColumnTitle = this.grid.getSetting('actions.columnTitle');
|
|
2664
2978
|
}
|
|
2665
|
-
}
|
|
2666
|
-
|
|
2667
|
-
ActionsTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ActionsTitleComponent, selector: "[ng2-st-actions-title]", inputs: { grid: "grid" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2979
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsTitleComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2980
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ActionsTitleComponent, selector: "[ng2-st-actions-title]", inputs: { grid: "grid" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2668
2981
|
<div class="ng2-smart-title">{{ actionsColumnTitle }}</div>
|
|
2669
|
-
`, isInline: true });
|
|
2670
|
-
|
|
2982
|
+
`, isInline: true }); }
|
|
2983
|
+
}
|
|
2984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsTitleComponent, decorators: [{
|
|
2671
2985
|
type: Component,
|
|
2672
2986
|
args: [{
|
|
2673
2987
|
selector: '[ng2-st-actions-title]',
|
|
@@ -2680,12 +2994,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2680
2994
|
}] } });
|
|
2681
2995
|
|
|
2682
2996
|
class CheckboxSelectAllComponent {
|
|
2683
|
-
}
|
|
2684
|
-
|
|
2685
|
-
CheckboxSelectAllComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CheckboxSelectAllComponent, selector: "[ng2-st-checkbox-select-all]", inputs: { grid: "grid", source: "source" }, ngImport: i0, template: `
|
|
2997
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxSelectAllComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2998
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CheckboxSelectAllComponent, selector: "[ng2-st-checkbox-select-all]", inputs: { grid: "grid", source: "source" }, ngImport: i0, template: `
|
|
2686
2999
|
<input type="checkbox" [ngModel]="this.grid.dataSet.isAllSelected">
|
|
2687
|
-
`, isInline: true, dependencies: [{ 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"] }] });
|
|
2688
|
-
|
|
3000
|
+
`, isInline: true, dependencies: [{ 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"] }] }); }
|
|
3001
|
+
}
|
|
3002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CheckboxSelectAllComponent, decorators: [{
|
|
2689
3003
|
type: Component,
|
|
2690
3004
|
args: [{
|
|
2691
3005
|
selector: '[ng2-st-checkbox-select-all]',
|
|
@@ -2743,9 +3057,8 @@ class TitleComponent {
|
|
|
2743
3057
|
}
|
|
2744
3058
|
return this.currentDirection;
|
|
2745
3059
|
}
|
|
2746
|
-
}
|
|
2747
|
-
|
|
2748
|
-
TitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TitleComponent, selector: "ng2-smart-table-title", inputs: { column: "column", source: "source" }, outputs: { sort: "sort" }, usesOnChanges: true, ngImport: i0, template: `
|
|
3060
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3061
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TitleComponent, selector: "ng2-smart-table-title", inputs: { column: "column", source: "source" }, outputs: { sort: "sort" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2749
3062
|
<a href="#" *ngIf="column.isSortable"
|
|
2750
3063
|
(click)="_sort($event)"
|
|
2751
3064
|
class="ng2-smart-sort-link sort"
|
|
@@ -2753,8 +3066,9 @@ TitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version
|
|
|
2753
3066
|
{{ column.title }}
|
|
2754
3067
|
</a>
|
|
2755
3068
|
<span class="ng2-smart-sort" *ngIf="!column.isSortable">{{ column.title }}</span>
|
|
2756
|
-
`, isInline: true, styles: ["a.sort.asc,a.sort.desc{font-weight:700}a.sort.asc:after,a.sort.desc:after{content:\"\";display:inline-block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,.3);border-top:4px solid transparent;border-left:4px solid transparent;border-right:4px solid transparent;margin-bottom:2px}a.sort.desc:after{transform:rotate(-180deg);margin-bottom:-2px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2757
|
-
|
|
3069
|
+
`, isInline: true, styles: ["a.sort.asc,a.sort.desc{font-weight:700}a.sort.asc:after,a.sort.desc:after{content:\"\";display:inline-block;width:0;height:0;border-bottom:4px solid rgba(0,0,0,.3);border-top:4px solid transparent;border-left:4px solid transparent;border-right:4px solid transparent;margin-bottom:2px}a.sort.desc:after{transform:rotate(-180deg);margin-bottom:-2px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
3070
|
+
}
|
|
3071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TitleComponent, decorators: [{
|
|
2758
3072
|
type: Component,
|
|
2759
3073
|
args: [{ selector: 'ng2-smart-table-title', template: `
|
|
2760
3074
|
<a href="#" *ngIf="column.isSortable"
|
|
@@ -2777,14 +3091,14 @@ class ColumnTitleComponent {
|
|
|
2777
3091
|
constructor() {
|
|
2778
3092
|
this.sort = new EventEmitter();
|
|
2779
3093
|
}
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
ColumnTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ColumnTitleComponent, selector: "ng2-st-column-title", inputs: { column: "column", source: "source" }, outputs: { sort: "sort" }, ngImport: i0, template: `
|
|
3094
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3095
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColumnTitleComponent, selector: "ng2-st-column-title", inputs: { column: "column", source: "source" }, outputs: { sort: "sort" }, ngImport: i0, template: `
|
|
2783
3096
|
<div class="ng2-smart-title">
|
|
2784
3097
|
<ng2-smart-table-title [source]="source" [column]="column" (sort)="sort.emit($event)"></ng2-smart-table-title>
|
|
2785
3098
|
</div>
|
|
2786
|
-
`, isInline: true, dependencies: [{ kind: "component", type: TitleComponent, selector: "ng2-smart-table-title", inputs: ["column", "source"], outputs: ["sort"] }] });
|
|
2787
|
-
|
|
3099
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TitleComponent, selector: "ng2-smart-table-title", inputs: ["column", "source"], outputs: ["sort"] }] }); }
|
|
3100
|
+
}
|
|
3101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColumnTitleComponent, decorators: [{
|
|
2788
3102
|
type: Component,
|
|
2789
3103
|
args: [{
|
|
2790
3104
|
selector: 'ng2-st-column-title',
|
|
@@ -2818,9 +3132,8 @@ class TheadTitlesRowComponent {
|
|
|
2818
3132
|
getVisibleColumns(columns) {
|
|
2819
3133
|
return (columns || []).filter((column) => !column.hide);
|
|
2820
3134
|
}
|
|
2821
|
-
}
|
|
2822
|
-
|
|
2823
|
-
TheadTitlesRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TheadTitlesRowComponent, selector: "[ng2-st-thead-titles-row]", inputs: { grid: "grid", source: "source" }, outputs: { sort: "sort", selectAllRows: "selectAllRows" }, usesOnChanges: true, ngImport: i0, template: `
|
|
3135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TheadTitlesRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3136
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TheadTitlesRowComponent, selector: "[ng2-st-thead-titles-row]", inputs: { grid: "grid", source: "source" }, outputs: { sort: "sort", selectAllRows: "selectAllRows" }, usesOnChanges: true, ngImport: i0, template: `
|
|
2824
3137
|
<th ng2-st-checkbox-select-all *ngIf="isMultiSelectVisible"
|
|
2825
3138
|
[grid]="grid"
|
|
2826
3139
|
[source]="source"
|
|
@@ -2834,8 +3147,9 @@ TheadTitlesRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
2834
3147
|
<ng2-st-column-title [source]="source" [column]="column" (sort)="sort.emit($event)"></ng2-st-column-title>
|
|
2835
3148
|
</th>
|
|
2836
3149
|
<th ng2-st-actions-title *ngIf="showActionColumnRight" [grid]="grid"></th>
|
|
2837
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ActionsTitleComponent, selector: "[ng2-st-actions-title]", inputs: ["grid"] }, { kind: "component", type: CheckboxSelectAllComponent, selector: "[ng2-st-checkbox-select-all]", inputs: ["grid", "source"] }, { kind: "component", type: ColumnTitleComponent, selector: "ng2-st-column-title", inputs: ["column", "source"], outputs: ["sort"] }] });
|
|
2838
|
-
|
|
3150
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ActionsTitleComponent, selector: "[ng2-st-actions-title]", inputs: ["grid"] }, { kind: "component", type: CheckboxSelectAllComponent, selector: "[ng2-st-checkbox-select-all]", inputs: ["grid", "source"] }, { kind: "component", type: ColumnTitleComponent, selector: "ng2-st-column-title", inputs: ["column", "source"], outputs: ["sort"] }] }); }
|
|
3151
|
+
}
|
|
3152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TheadTitlesRowComponent, decorators: [{
|
|
2839
3153
|
type: Component,
|
|
2840
3154
|
args: [{
|
|
2841
3155
|
selector: '[ng2-st-thead-titles-row]',
|
|
@@ -2878,10 +3192,10 @@ class Ng2SmartTableTheadComponent {
|
|
|
2878
3192
|
this.isHideHeader = this.grid.getSetting('hideHeader', false);
|
|
2879
3193
|
this.isHideSubHeader = this.grid.getSetting('hideSubHeader', false);
|
|
2880
3194
|
}
|
|
3195
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Ng2SmartTableTheadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3196
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Ng2SmartTableTheadComponent, selector: "[ng2-st-thead]", inputs: { grid: "grid", source: "source", createConfirm: "createConfirm" }, outputs: { sort: "sort", selectAllRows: "selectAllRows", create: "create", filter: "filter" }, usesOnChanges: true, ngImport: i0, template: "<tr ng2-st-thead-titles-row *ngIf=\"!isHideHeader\"\n class=\"ng2-smart-titles\"\n [grid]=\"grid\"\n [source]=\"source\"\n (sort)=\"sort.emit($event)\"\n (selectAllRows)=\"selectAllRows.emit($event)\">\n</tr>\n\n<tr ng2-st-thead-filters-row *ngIf=\"!isHideSubHeader\"\n class=\"ng2-smart-filters\"\n [grid]=\"grid\"\n [source]=\"source\"\n (create)=\"create.emit($event)\"\n (filter)=\"filter.emit($event)\">\n</tr>\n\n<tr ng2-st-thead-form-row *ngIf=\"grid.createFormShown\"\n [grid]=\"grid\"\n [createConfirm]=\"createConfirm\">\n</tr>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TheadFitlersRowComponent, selector: "[ng2-st-thead-filters-row]", inputs: ["grid", "source"], outputs: ["create", "filter"] }, { kind: "component", type: TheadFormRowComponent, selector: "[ng2-st-thead-form-row]", inputs: ["grid", "row", "createConfirm"], outputs: ["create"] }, { kind: "component", type: TheadTitlesRowComponent, selector: "[ng2-st-thead-titles-row]", inputs: ["grid", "source"], outputs: ["sort", "selectAllRows"] }] }); }
|
|
2881
3197
|
}
|
|
2882
|
-
|
|
2883
|
-
Ng2SmartTableTheadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: Ng2SmartTableTheadComponent, selector: "[ng2-st-thead]", inputs: { grid: "grid", source: "source", createConfirm: "createConfirm" }, outputs: { sort: "sort", selectAllRows: "selectAllRows", create: "create", filter: "filter" }, usesOnChanges: true, ngImport: i0, template: "<tr ng2-st-thead-titles-row *ngIf=\"!isHideHeader\"\n class=\"ng2-smart-titles\"\n [grid]=\"grid\"\n [source]=\"source\"\n (sort)=\"sort.emit($event)\"\n (selectAllRows)=\"selectAllRows.emit($event)\">\n</tr>\n\n<tr ng2-st-thead-filters-row *ngIf=\"!isHideSubHeader\"\n class=\"ng2-smart-filters\"\n [grid]=\"grid\"\n [source]=\"source\"\n (create)=\"create.emit($event)\"\n (filter)=\"filter.emit($event)\">\n</tr>\n\n<tr ng2-st-thead-form-row *ngIf=\"grid.createFormShown\"\n [grid]=\"grid\"\n [createConfirm]=\"createConfirm\">\n</tr>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TheadFitlersRowComponent, selector: "[ng2-st-thead-filters-row]", inputs: ["grid", "source"], outputs: ["create", "filter"] }, { kind: "component", type: TheadFormRowComponent, selector: "[ng2-st-thead-form-row]", inputs: ["grid", "row", "createConfirm"], outputs: ["create"] }, { kind: "component", type: TheadTitlesRowComponent, selector: "[ng2-st-thead-titles-row]", inputs: ["grid", "source"], outputs: ["sort", "selectAllRows"] }] });
|
|
2884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableTheadComponent, decorators: [{
|
|
3198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Ng2SmartTableTheadComponent, decorators: [{
|
|
2885
3199
|
type: Component,
|
|
2886
3200
|
args: [{ selector: '[ng2-st-thead]', template: "<tr ng2-st-thead-titles-row *ngIf=\"!isHideHeader\"\n class=\"ng2-smart-titles\"\n [grid]=\"grid\"\n [source]=\"source\"\n (sort)=\"sort.emit($event)\"\n (selectAllRows)=\"selectAllRows.emit($event)\">\n</tr>\n\n<tr ng2-st-thead-filters-row *ngIf=\"!isHideSubHeader\"\n class=\"ng2-smart-filters\"\n [grid]=\"grid\"\n [source]=\"source\"\n (create)=\"create.emit($event)\"\n (filter)=\"filter.emit($event)\">\n</tr>\n\n<tr ng2-st-thead-form-row *ngIf=\"grid.createFormShown\"\n [grid]=\"grid\"\n [createConfirm]=\"createConfirm\">\n</tr>\n" }]
|
|
2887
3201
|
}], propDecorators: { grid: [{
|
|
@@ -2913,35 +3227,35 @@ const THEAD_COMPONENTS = [
|
|
|
2913
3227
|
Ng2SmartTableTheadComponent,
|
|
2914
3228
|
];
|
|
2915
3229
|
class THeadModule {
|
|
3230
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: THeadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3231
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: THeadModule, declarations: [ActionsComponent,
|
|
3232
|
+
ActionsTitleComponent,
|
|
3233
|
+
AddButtonComponent,
|
|
3234
|
+
CheckboxSelectAllComponent,
|
|
3235
|
+
ColumnTitleComponent,
|
|
3236
|
+
TitleComponent,
|
|
3237
|
+
TheadFitlersRowComponent,
|
|
3238
|
+
TheadFormRowComponent,
|
|
3239
|
+
TheadTitlesRowComponent,
|
|
3240
|
+
Ng2SmartTableTheadComponent], imports: [CommonModule,
|
|
3241
|
+
FormsModule,
|
|
3242
|
+
FilterModule,
|
|
3243
|
+
CellModule], exports: [ActionsComponent,
|
|
3244
|
+
ActionsTitleComponent,
|
|
3245
|
+
AddButtonComponent,
|
|
3246
|
+
CheckboxSelectAllComponent,
|
|
3247
|
+
ColumnTitleComponent,
|
|
3248
|
+
TitleComponent,
|
|
3249
|
+
TheadFitlersRowComponent,
|
|
3250
|
+
TheadFormRowComponent,
|
|
3251
|
+
TheadTitlesRowComponent,
|
|
3252
|
+
Ng2SmartTableTheadComponent] }); }
|
|
3253
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: THeadModule, imports: [CommonModule,
|
|
3254
|
+
FormsModule,
|
|
3255
|
+
FilterModule,
|
|
3256
|
+
CellModule] }); }
|
|
2916
3257
|
}
|
|
2917
|
-
|
|
2918
|
-
THeadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, declarations: [ActionsComponent,
|
|
2919
|
-
ActionsTitleComponent,
|
|
2920
|
-
AddButtonComponent,
|
|
2921
|
-
CheckboxSelectAllComponent,
|
|
2922
|
-
ColumnTitleComponent,
|
|
2923
|
-
TitleComponent,
|
|
2924
|
-
TheadFitlersRowComponent,
|
|
2925
|
-
TheadFormRowComponent,
|
|
2926
|
-
TheadTitlesRowComponent,
|
|
2927
|
-
Ng2SmartTableTheadComponent], imports: [CommonModule,
|
|
2928
|
-
FormsModule,
|
|
2929
|
-
FilterModule,
|
|
2930
|
-
CellModule], exports: [ActionsComponent,
|
|
2931
|
-
ActionsTitleComponent,
|
|
2932
|
-
AddButtonComponent,
|
|
2933
|
-
CheckboxSelectAllComponent,
|
|
2934
|
-
ColumnTitleComponent,
|
|
2935
|
-
TitleComponent,
|
|
2936
|
-
TheadFitlersRowComponent,
|
|
2937
|
-
TheadFormRowComponent,
|
|
2938
|
-
TheadTitlesRowComponent,
|
|
2939
|
-
Ng2SmartTableTheadComponent] });
|
|
2940
|
-
THeadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, imports: [CommonModule,
|
|
2941
|
-
FormsModule,
|
|
2942
|
-
FilterModule,
|
|
2943
|
-
CellModule] });
|
|
2944
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, decorators: [{
|
|
3258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: THeadModule, decorators: [{
|
|
2945
3259
|
type: NgModule,
|
|
2946
3260
|
args: [{
|
|
2947
3261
|
imports: [
|
|
@@ -3085,10 +3399,10 @@ class Ng2SmartTableComponent {
|
|
|
3085
3399
|
selected: this.grid.dataSet.getSelectedRowsData(),
|
|
3086
3400
|
});
|
|
3087
3401
|
}
|
|
3402
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Ng2SmartTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3403
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: Ng2SmartTableComponent, selector: "ng2-smart-table", inputs: { source: "source", settings: "settings" }, outputs: { multiRowSelect: "multiRowSelect", rowClicked: "rowClicked", delete: "delete", edit: "edit", editCancel: "editCancel", create: "create", custom: "custom", deleteConfirm: "deleteConfirm", editConfirm: "editConfirm", createConfirm: "createConfirm", rowHover: "rowHover" }, usesOnChanges: true, ngImport: i0, template: "<table [id]=\"tableId\" [ngClass]=\"tableClass\">\n\n <thead ng2-st-thead *ngIf=\"!isHideHeader || !isHideSubHeader\"\n [grid]=\"grid\"\n [source]=\"source\"\n [createConfirm]=\"createConfirm\"\n (create)=\"create.emit($event)\"\n (selectAllRows)=\"onSelectAllRows()\">\n </thead>\n\n <tbody ng2-st-tbody [grid]=\"grid\"\n [source]=\"source\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n [rowClassFunction]=\"rowClassFunction\"\n (edit)=\"edit.emit($event)\"\n (editCancel)=\"editCancel.emit($event)\"\n (delete)=\"delete.emit($event)\"\n (custom)=\"custom.emit($event)\"\n (userClickedRow)=\"emitUserRowClicked($event)\"\n (multipleSelectRow)=\"multipleSelectRow($event)\">\n </tbody>\n\n</table>\n\n<ng2-smart-table-pager *ngIf=\"isPagerDisplay\"\n [source]=\"source\"\n [perPageSelect]=\"perPageSelect\">\n</ng2-smart-table-pager>\n", styles: [":host{font-size:1rem}:host ::ng-deep *{box-sizing:border-box}:host ::ng-deep button,:host ::ng-deep input,:host ::ng-deep optgroup,:host ::ng-deep select,:host ::ng-deep textarea{color:inherit;font:inherit;margin:0}:host ::ng-deep table{line-height:1.5em;border-collapse:collapse;border-spacing:0;display:table;width:100%;max-width:100%;word-break:normal;word-break:keep-all;overflow:auto}:host ::ng-deep table tr th{font-weight:700}:host ::ng-deep table tr section{font-size:.75em;font-weight:700}:host ::ng-deep table tr td,:host ::ng-deep table tr th{font-size:.875em;margin:0;padding:.5em 1em}:host ::ng-deep a{color:#1e6bb8;text-decoration:none}:host ::ng-deep a:hover{text-decoration:underline}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: PagerComponent, selector: "ng2-smart-table-pager", inputs: ["source", "perPageSelect"], outputs: ["changePage"] }, { kind: "component", type: Ng2SmartTableTbodyComponent, selector: "[ng2-st-tbody]", inputs: ["grid", "source", "deleteConfirm", "editConfirm", "rowClassFunction"], outputs: ["save", "cancel", "edit", "editCancel", "delete", "custom", "edited", "userSelectRow", "userClickedRow", "editRowSelect", "multipleSelectRow"] }, { kind: "component", type: Ng2SmartTableTheadComponent, selector: "[ng2-st-thead]", inputs: ["grid", "source", "createConfirm"], outputs: ["sort", "selectAllRows", "create", "filter"] }] }); }
|
|
3088
3404
|
}
|
|
3089
|
-
|
|
3090
|
-
Ng2SmartTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: Ng2SmartTableComponent, selector: "ng2-smart-table", inputs: { source: "source", settings: "settings" }, outputs: { multiRowSelect: "multiRowSelect", rowClicked: "rowClicked", delete: "delete", edit: "edit", editCancel: "editCancel", create: "create", custom: "custom", deleteConfirm: "deleteConfirm", editConfirm: "editConfirm", createConfirm: "createConfirm", rowHover: "rowHover" }, usesOnChanges: true, ngImport: i0, template: "<table [id]=\"tableId\" [ngClass]=\"tableClass\">\n\n <thead ng2-st-thead *ngIf=\"!isHideHeader || !isHideSubHeader\"\n [grid]=\"grid\"\n [source]=\"source\"\n [createConfirm]=\"createConfirm\"\n (create)=\"create.emit($event)\"\n (selectAllRows)=\"onSelectAllRows()\">\n </thead>\n\n <tbody ng2-st-tbody [grid]=\"grid\"\n [source]=\"source\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n [rowClassFunction]=\"rowClassFunction\"\n (edit)=\"edit.emit($event)\"\n (editCancel)=\"editCancel.emit($event)\"\n (delete)=\"delete.emit($event)\"\n (custom)=\"custom.emit($event)\"\n (userClickedRow)=\"emitUserRowClicked($event)\"\n (multipleSelectRow)=\"multipleSelectRow($event)\">\n </tbody>\n\n</table>\n\n<ng2-smart-table-pager *ngIf=\"isPagerDisplay\"\n [source]=\"source\"\n [perPageSelect]=\"perPageSelect\">\n</ng2-smart-table-pager>\n", styles: [":host{font-size:1rem}:host ::ng-deep *{box-sizing:border-box}:host ::ng-deep button,:host ::ng-deep input,:host ::ng-deep optgroup,:host ::ng-deep select,:host ::ng-deep textarea{color:inherit;font:inherit;margin:0}:host ::ng-deep table{line-height:1.5em;border-collapse:collapse;border-spacing:0;display:table;width:100%;max-width:100%;word-break:normal;word-break:keep-all;overflow:auto}:host ::ng-deep table tr th{font-weight:700}:host ::ng-deep table tr section{font-size:.75em;font-weight:700}:host ::ng-deep table tr td,:host ::ng-deep table tr th{font-size:.875em;margin:0;padding:.5em 1em}:host ::ng-deep a{color:#1e6bb8;text-decoration:none}:host ::ng-deep a:hover{text-decoration:underline}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: PagerComponent, selector: "ng2-smart-table-pager", inputs: ["source", "perPageSelect"], outputs: ["changePage"] }, { kind: "component", type: Ng2SmartTableTbodyComponent, selector: "[ng2-st-tbody]", inputs: ["grid", "source", "deleteConfirm", "editConfirm", "rowClassFunction"], outputs: ["save", "cancel", "edit", "editCancel", "delete", "custom", "edited", "userSelectRow", "userClickedRow", "editRowSelect", "multipleSelectRow"] }, { kind: "component", type: Ng2SmartTableTheadComponent, selector: "[ng2-st-thead]", inputs: ["grid", "source", "createConfirm"], outputs: ["sort", "selectAllRows", "create", "filter"] }] });
|
|
3091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableComponent, decorators: [{
|
|
3405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Ng2SmartTableComponent, decorators: [{
|
|
3092
3406
|
type: Component,
|
|
3093
3407
|
args: [{ selector: 'ng2-smart-table', template: "<table [id]=\"tableId\" [ngClass]=\"tableClass\">\n\n <thead ng2-st-thead *ngIf=\"!isHideHeader || !isHideSubHeader\"\n [grid]=\"grid\"\n [source]=\"source\"\n [createConfirm]=\"createConfirm\"\n (create)=\"create.emit($event)\"\n (selectAllRows)=\"onSelectAllRows()\">\n </thead>\n\n <tbody ng2-st-tbody [grid]=\"grid\"\n [source]=\"source\"\n [deleteConfirm]=\"deleteConfirm\"\n [editConfirm]=\"editConfirm\"\n [rowClassFunction]=\"rowClassFunction\"\n (edit)=\"edit.emit($event)\"\n (editCancel)=\"editCancel.emit($event)\"\n (delete)=\"delete.emit($event)\"\n (custom)=\"custom.emit($event)\"\n (userClickedRow)=\"emitUserRowClicked($event)\"\n (multipleSelectRow)=\"multipleSelectRow($event)\">\n </tbody>\n\n</table>\n\n<ng2-smart-table-pager *ngIf=\"isPagerDisplay\"\n [source]=\"source\"\n [perPageSelect]=\"perPageSelect\">\n</ng2-smart-table-pager>\n", styles: [":host{font-size:1rem}:host ::ng-deep *{box-sizing:border-box}:host ::ng-deep button,:host ::ng-deep input,:host ::ng-deep optgroup,:host ::ng-deep select,:host ::ng-deep textarea{color:inherit;font:inherit;margin:0}:host ::ng-deep table{line-height:1.5em;border-collapse:collapse;border-spacing:0;display:table;width:100%;max-width:100%;word-break:normal;word-break:keep-all;overflow:auto}:host ::ng-deep table tr th{font-weight:700}:host ::ng-deep table tr section{font-size:.75em;font-weight:700}:host ::ng-deep table tr td,:host ::ng-deep table tr th{font-size:.875em;margin:0;padding:.5em 1em}:host ::ng-deep a{color:#1e6bb8;text-decoration:none}:host ::ng-deep a:hover{text-decoration:underline}\n"] }]
|
|
3094
3408
|
}], propDecorators: { source: [{
|
|
@@ -3120,25 +3434,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
3120
3434
|
}] } });
|
|
3121
3435
|
|
|
3122
3436
|
class Ng2SmartTableModule {
|
|
3437
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Ng2SmartTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3438
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: Ng2SmartTableModule, declarations: [Ng2SmartTableComponent], imports: [CommonModule,
|
|
3439
|
+
FormsModule,
|
|
3440
|
+
ReactiveFormsModule,
|
|
3441
|
+
CellModule,
|
|
3442
|
+
FilterModule,
|
|
3443
|
+
PagerModule,
|
|
3444
|
+
TBodyModule,
|
|
3445
|
+
THeadModule], exports: [Ng2SmartTableComponent] }); }
|
|
3446
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Ng2SmartTableModule, imports: [CommonModule,
|
|
3447
|
+
FormsModule,
|
|
3448
|
+
ReactiveFormsModule,
|
|
3449
|
+
CellModule,
|
|
3450
|
+
FilterModule,
|
|
3451
|
+
PagerModule,
|
|
3452
|
+
TBodyModule,
|
|
3453
|
+
THeadModule] }); }
|
|
3123
3454
|
}
|
|
3124
|
-
|
|
3125
|
-
Ng2SmartTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, declarations: [Ng2SmartTableComponent], imports: [CommonModule,
|
|
3126
|
-
FormsModule,
|
|
3127
|
-
ReactiveFormsModule,
|
|
3128
|
-
CellModule,
|
|
3129
|
-
FilterModule,
|
|
3130
|
-
PagerModule,
|
|
3131
|
-
TBodyModule,
|
|
3132
|
-
THeadModule], exports: [Ng2SmartTableComponent] });
|
|
3133
|
-
Ng2SmartTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, imports: [CommonModule,
|
|
3134
|
-
FormsModule,
|
|
3135
|
-
ReactiveFormsModule,
|
|
3136
|
-
CellModule,
|
|
3137
|
-
FilterModule,
|
|
3138
|
-
PagerModule,
|
|
3139
|
-
TBodyModule,
|
|
3140
|
-
THeadModule] });
|
|
3141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, decorators: [{
|
|
3455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Ng2SmartTableModule, decorators: [{
|
|
3142
3456
|
type: NgModule,
|
|
3143
3457
|
args: [{
|
|
3144
3458
|
imports: [
|