@den4ik92/ng2-smart-table 1.0.6 → 1.0.7
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/lib/components/cell/cell-edit-mode/custom-edit.component.mjs +15 -22
- package/esm2020/lib/components/cell/cell-edit-mode/default-edit.component.mjs +7 -67
- package/esm2020/lib/components/cell/cell-edit-mode/edit-cell-default.mjs +15 -15
- package/esm2020/lib/components/cell/cell-edit-mode/edit-cell.component.mjs +29 -43
- package/esm2020/lib/components/cell/cell-editors/checkbox-editor.component.mjs +16 -14
- package/esm2020/lib/components/cell/cell-editors/completer-editor.component.mjs +18 -10
- package/esm2020/lib/components/cell/cell-editors/default-editor.mjs +19 -19
- package/esm2020/lib/components/cell/cell-editors/input-editor.component.mjs +17 -13
- package/esm2020/lib/components/cell/cell-editors/select-editor.component.mjs +24 -31
- package/esm2020/lib/components/cell/cell-editors/textarea-editor.component.mjs +18 -14
- package/esm2020/lib/components/cell/cell-view-mode/custom-view.component.mjs +17 -24
- package/esm2020/lib/components/cell/cell-view-mode/view-cell.component.mjs +19 -46
- package/esm2020/lib/components/cell/cell.component.mjs +36 -52
- package/esm2020/lib/components/cell/cell.module.mjs +21 -22
- package/esm2020/lib/components/filter/custom-filter.component.mjs +15 -24
- package/esm2020/lib/components/filter/default-filter.component.mjs +39 -63
- package/esm2020/lib/components/filter/filter-default.mjs +17 -17
- package/esm2020/lib/components/filter/filter-types/checkbox-filter.component.mjs +14 -29
- package/esm2020/lib/components/filter/filter-types/completer-filter.component.mjs +19 -10
- package/esm2020/lib/components/filter/filter-types/default-filter.mjs +17 -17
- package/esm2020/lib/components/filter/filter-types/input-filter.component.mjs +17 -15
- package/esm2020/lib/components/filter/filter-types/select-filter.component.mjs +24 -43
- package/esm2020/lib/components/filter/filter.component.mjs +24 -40
- package/esm2020/lib/components/filter/filter.module.mjs +23 -24
- package/esm2020/lib/components/pager/pager.component.mjs +66 -132
- package/esm2020/lib/components/pager/pager.module.mjs +20 -21
- package/esm2020/lib/components/tbody/cells/create-cancel.component.mjs +23 -29
- package/esm2020/lib/components/tbody/cells/custom.component.mjs +24 -32
- package/esm2020/lib/components/tbody/cells/edit-delete.component.mjs +32 -52
- package/esm2020/lib/components/tbody/tbody.component.mjs +43 -167
- package/esm2020/lib/components/tbody/tbody.module.mjs +23 -24
- package/esm2020/lib/components/thead/cells/actions-title.component.mjs +14 -20
- package/esm2020/lib/components/thead/cells/actions.component.mjs +21 -25
- package/esm2020/lib/components/thead/cells/add-button.component.mjs +19 -30
- package/esm2020/lib/components/thead/cells/checkbox-select-all.component.mjs +16 -19
- package/esm2020/lib/components/thead/cells/column-title.component.mjs +20 -23
- package/esm2020/lib/components/thead/cells/title/title.component.mjs +21 -41
- package/esm2020/lib/components/thead/rows/thead-filters-row.component.mjs +36 -65
- package/esm2020/lib/components/thead/rows/thead-form-row.component.mjs +37 -66
- package/esm2020/lib/components/thead/rows/thead-titles-row.component.mjs +32 -67
- package/esm2020/lib/components/thead/thead.component.mjs +21 -56
- package/esm2020/lib/components/thead/thead.module.mjs +25 -26
- package/esm2020/lib/lib/data-source/data-source.mjs +22 -21
- package/esm2020/lib/lib/data-source/local/local.data-source.mjs +20 -17
- package/esm2020/lib/lib/data-source/local/local.filter.mjs +1 -1
- package/esm2020/lib/lib/interfaces/smart-table.models.mjs +16 -2
- package/esm2020/lib/ng2-smart-table.component.mjs +33 -66
- package/esm2020/lib/ng2-smart-table.module.mjs +27 -28
- package/fesm2015/den4ik92-ng2-smart-table.mjs +651 -1642
- package/fesm2015/den4ik92-ng2-smart-table.mjs.map +1 -1
- package/fesm2020/den4ik92-ng2-smart-table.mjs +1065 -1676
- package/fesm2020/den4ik92-ng2-smart-table.mjs.map +1 -1
- package/lib/components/tbody/tbody.component.d.ts +2 -2
- package/lib/lib/data-source/data-source.d.ts +20 -19
- package/lib/lib/data-source/local/local.data-source.d.ts +29 -28
- package/lib/lib/data-source/local/local.filter.d.ts +1 -1
- package/lib/lib/interfaces/smart-table.models.d.ts +38 -1
- package/lib/ng2-smart-table.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -25,25 +25,21 @@ class EditCellDefault {
|
|
|
25
25
|
event.stopPropagation();
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
EditCellDefault.ɵfac =
|
|
29
|
-
EditCellDefault.ɵcmp =
|
|
30
|
-
(
|
|
31
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EditCellDefault, [{
|
|
28
|
+
EditCellDefault.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EditCellDefault, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
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 });
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EditCellDefault, decorators: [{
|
|
32
31
|
type: Component,
|
|
33
32
|
args: [{
|
|
34
33
|
template: ''
|
|
35
34
|
}]
|
|
36
|
-
}],
|
|
35
|
+
}], propDecorators: { cell: [{
|
|
37
36
|
type: Input
|
|
38
37
|
}], inputClass: [{
|
|
39
38
|
type: Input
|
|
40
39
|
}], edited: [{
|
|
41
40
|
type: Output
|
|
42
|
-
}] });
|
|
43
|
-
})();
|
|
41
|
+
}] } });
|
|
44
42
|
|
|
45
|
-
const _c0$c = ["dynamicTarget"];
|
|
46
|
-
function CustomEditComponent_ng_template_0_Template(rf, ctx) { }
|
|
47
43
|
class CustomEditComponent extends EditCellDefault {
|
|
48
44
|
constructor(resolver) {
|
|
49
45
|
super();
|
|
@@ -67,22 +63,11 @@ class CustomEditComponent extends EditCellDefault {
|
|
|
67
63
|
}
|
|
68
64
|
}
|
|
69
65
|
}
|
|
70
|
-
CustomEditComponent.ɵfac =
|
|
71
|
-
CustomEditComponent.ɵcmp =
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (rf & 2) {
|
|
76
|
-
let _t;
|
|
77
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dynamicTarget = _t.first);
|
|
78
|
-
}
|
|
79
|
-
}, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 2, vars: 0, consts: [["dynamicTarget", ""]], template: function CustomEditComponent_Template(rf, ctx) {
|
|
80
|
-
if (rf & 1) {
|
|
81
|
-
i0.ɵɵtemplate(0, CustomEditComponent_ng_template_0_Template, 0, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
82
|
-
}
|
|
83
|
-
}, encapsulation: 2 });
|
|
84
|
-
(function () {
|
|
85
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomEditComponent, [{
|
|
66
|
+
CustomEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomEditComponent, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
|
67
|
+
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: `
|
|
68
|
+
<ng-template #dynamicTarget></ng-template>
|
|
69
|
+
`, isInline: true });
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomEditComponent, decorators: [{
|
|
86
71
|
type: Component,
|
|
87
72
|
args: [{
|
|
88
73
|
selector: 'table-cell-custom-editor',
|
|
@@ -90,11 +75,10 @@ CustomEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CustomE
|
|
|
90
75
|
<ng-template #dynamicTarget></ng-template>
|
|
91
76
|
`,
|
|
92
77
|
}]
|
|
93
|
-
}], function () { return [{ type: i0.ComponentFactoryResolver }]; }, { dynamicTarget: [{
|
|
78
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }]; }, propDecorators: { dynamicTarget: [{
|
|
94
79
|
type: ViewChild,
|
|
95
80
|
args: ['dynamicTarget', { read: ViewContainerRef, static: true }]
|
|
96
|
-
}] });
|
|
97
|
-
})();
|
|
81
|
+
}] } });
|
|
98
82
|
|
|
99
83
|
class DefaultEditor {
|
|
100
84
|
constructor() {
|
|
@@ -103,15 +87,14 @@ class DefaultEditor {
|
|
|
103
87
|
this.onClick = new EventEmitter();
|
|
104
88
|
}
|
|
105
89
|
}
|
|
106
|
-
DefaultEditor.ɵfac =
|
|
107
|
-
DefaultEditor.ɵcmp =
|
|
108
|
-
(
|
|
109
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultEditor, [{
|
|
90
|
+
DefaultEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultEditor, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
91
|
+
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 });
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultEditor, decorators: [{
|
|
110
93
|
type: Component,
|
|
111
94
|
args: [{
|
|
112
95
|
template: '',
|
|
113
96
|
}]
|
|
114
|
-
}],
|
|
97
|
+
}], propDecorators: { cell: [{
|
|
115
98
|
type: Input
|
|
116
99
|
}], inputClass: [{
|
|
117
100
|
type: Input
|
|
@@ -121,8 +104,7 @@ DefaultEditor.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DefaultEditor
|
|
|
121
104
|
type: Output
|
|
122
105
|
}], onClick: [{
|
|
123
106
|
type: Output
|
|
124
|
-
}] });
|
|
125
|
-
})();
|
|
107
|
+
}] } });
|
|
126
108
|
|
|
127
109
|
class CheckboxEditorComponent extends DefaultEditor {
|
|
128
110
|
constructor() {
|
|
@@ -134,20 +116,18 @@ class CheckboxEditorComponent extends DefaultEditor {
|
|
|
134
116
|
this.cell.newValue = event.target.checked ? trueVal : falseVal;
|
|
135
117
|
}
|
|
136
118
|
}
|
|
137
|
-
CheckboxEditorComponent.ɵfac =
|
|
138
|
-
CheckboxEditorComponent.ɵcmp =
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
(function () {
|
|
150
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxEditorComponent, [{
|
|
119
|
+
CheckboxEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
120
|
+
CheckboxEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CheckboxEditorComponent, selector: "checkbox-editor", usesInheritance: true, ngImport: i0, template: `
|
|
121
|
+
<input [ngClass]="inputClass"
|
|
122
|
+
type="checkbox"
|
|
123
|
+
class="form-control"
|
|
124
|
+
[name]="cell.getId()"
|
|
125
|
+
[disabled]="!cell.isEditable()"
|
|
126
|
+
[checked]="cell.getValue() == (cell.getColumn().getConfig()?.true || true)"
|
|
127
|
+
(click)="onClick.emit($event)"
|
|
128
|
+
(change)="onChange($event)">
|
|
129
|
+
`, 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"] }] });
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxEditorComponent, decorators: [{
|
|
151
131
|
type: Component,
|
|
152
132
|
args: [{ selector: 'checkbox-editor', template: `
|
|
153
133
|
<input [ngClass]="inputClass"
|
|
@@ -159,8 +139,7 @@ CheckboxEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Che
|
|
|
159
139
|
(click)="onClick.emit($event)"
|
|
160
140
|
(change)="onChange($event)">
|
|
161
141
|
`, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"] }]
|
|
162
|
-
}], function () { return []; }
|
|
163
|
-
})();
|
|
142
|
+
}], ctorParameters: function () { return []; } });
|
|
164
143
|
|
|
165
144
|
class CompleterEditorComponent extends DefaultEditor {
|
|
166
145
|
constructor() {
|
|
@@ -179,10 +158,17 @@ class CompleterEditorComponent extends DefaultEditor {
|
|
|
179
158
|
return false;
|
|
180
159
|
}
|
|
181
160
|
}
|
|
182
|
-
CompleterEditorComponent.ɵfac =
|
|
183
|
-
CompleterEditorComponent.ɵcmp =
|
|
184
|
-
|
|
185
|
-
|
|
161
|
+
CompleterEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompleterEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
162
|
+
CompleterEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CompleterEditorComponent, selector: "completer-editor", usesInheritance: true, ngImport: i0, template: `
|
|
163
|
+
<!-- <ng2-completer [(ngModel)]="completerStr"
|
|
164
|
+
[dataService]="cell.getColumn().getConfig().completer.dataService"
|
|
165
|
+
[minSearchLength]="cell.getColumn().getConfig().completer.minSearchLength || 0"
|
|
166
|
+
[pause]="cell.getColumn().getConfig().completer.pause || 0"
|
|
167
|
+
[placeholder]="cell.getColumn().getConfig().completer.placeholder || 'Start typing...'"
|
|
168
|
+
(selected)="onEditedCompleter($event)">
|
|
169
|
+
</ng2-completer> -->
|
|
170
|
+
`, isInline: true });
|
|
171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompleterEditorComponent, decorators: [{
|
|
186
172
|
type: Component,
|
|
187
173
|
args: [{
|
|
188
174
|
selector: 'completer-editor',
|
|
@@ -196,27 +182,26 @@ CompleterEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Co
|
|
|
196
182
|
</ng2-completer> -->
|
|
197
183
|
`,
|
|
198
184
|
}]
|
|
199
|
-
}], function () { return []; }
|
|
200
|
-
})();
|
|
185
|
+
}], ctorParameters: function () { return []; } });
|
|
201
186
|
|
|
202
187
|
class InputEditorComponent extends DefaultEditor {
|
|
203
188
|
constructor() {
|
|
204
189
|
super();
|
|
205
190
|
}
|
|
206
191
|
}
|
|
207
|
-
InputEditorComponent.ɵfac =
|
|
208
|
-
InputEditorComponent.ɵcmp =
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
(
|
|
219
|
-
|
|
192
|
+
InputEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
193
|
+
InputEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputEditorComponent, selector: "input-editor", usesInheritance: true, ngImport: i0, template: `
|
|
194
|
+
<input [ngClass]="inputClass"
|
|
195
|
+
class="form-control"
|
|
196
|
+
[(ngModel)]="cell.newValue"
|
|
197
|
+
[name]="cell.getId()"
|
|
198
|
+
[placeholder]="cell.getTitle()"
|
|
199
|
+
[disabled]="!cell.isEditable()"
|
|
200
|
+
(click)="onClick.emit($event)"
|
|
201
|
+
(keydown.enter)="onEdited.emit($event)"
|
|
202
|
+
(keydown.esc)="onStopEditing.emit()">
|
|
203
|
+
`, 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"] }] });
|
|
204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputEditorComponent, decorators: [{
|
|
220
205
|
type: Component,
|
|
221
206
|
args: [{ selector: 'input-editor', template: `
|
|
222
207
|
<input [ngClass]="inputClass"
|
|
@@ -229,45 +214,30 @@ InputEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputE
|
|
|
229
214
|
(keydown.enter)="onEdited.emit($event)"
|
|
230
215
|
(keydown.esc)="onStopEditing.emit()">
|
|
231
216
|
`, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"] }]
|
|
232
|
-
}], function () { return []; }
|
|
233
|
-
})();
|
|
217
|
+
}], ctorParameters: function () { return []; } });
|
|
234
218
|
|
|
235
|
-
function SelectEditorComponent_option_1_Template(rf, ctx) {
|
|
236
|
-
if (rf & 1) {
|
|
237
|
-
i0.ɵɵelementStart(0, "option", 2);
|
|
238
|
-
i0.ɵɵtext(1);
|
|
239
|
-
i0.ɵɵelementEnd();
|
|
240
|
-
}
|
|
241
|
-
if (rf & 2) {
|
|
242
|
-
const option_r1 = ctx.$implicit;
|
|
243
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
244
|
-
i0.ɵɵproperty("value", option_r1.value)("selected", option_r1.value === ctx_r0.cell.getValue());
|
|
245
|
-
i0.ɵɵadvance(1);
|
|
246
|
-
i0.ɵɵtextInterpolate1("", option_r1.title, " ");
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
219
|
class SelectEditorComponent extends DefaultEditor {
|
|
250
220
|
constructor() {
|
|
251
221
|
super();
|
|
252
222
|
}
|
|
253
223
|
}
|
|
254
|
-
SelectEditorComponent.ɵfac =
|
|
255
|
-
SelectEditorComponent.ɵcmp =
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
(
|
|
270
|
-
|
|
224
|
+
SelectEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
225
|
+
SelectEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectEditorComponent, selector: "select-editor", usesInheritance: true, ngImport: i0, template: `
|
|
226
|
+
<select [ngClass]="inputClass"
|
|
227
|
+
class="form-control"
|
|
228
|
+
[(ngModel)]="cell.newValue"
|
|
229
|
+
[name]="cell.getId()"
|
|
230
|
+
[disabled]="!cell.isEditable()"
|
|
231
|
+
(click)="onClick.emit($event)"
|
|
232
|
+
(keydown.enter)="onEdited.emit($event)"
|
|
233
|
+
(keydown.esc)="onStopEditing.emit()">
|
|
234
|
+
|
|
235
|
+
<option *ngFor="let option of cell.getColumn().getConfig()?.list" [value]="option.value"
|
|
236
|
+
[selected]="option.value === cell.getValue()">{{ option.title }}
|
|
237
|
+
</option>
|
|
238
|
+
</select>
|
|
239
|
+
`, 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"] }] });
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectEditorComponent, decorators: [{
|
|
271
241
|
type: Component,
|
|
272
242
|
args: [{
|
|
273
243
|
selector: 'select-editor',
|
|
@@ -287,28 +257,27 @@ SelectEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Selec
|
|
|
287
257
|
</select>
|
|
288
258
|
`,
|
|
289
259
|
}]
|
|
290
|
-
}], function () { return []; }
|
|
291
|
-
})();
|
|
260
|
+
}], ctorParameters: function () { return []; } });
|
|
292
261
|
|
|
293
262
|
class TextareaEditorComponent extends DefaultEditor {
|
|
294
263
|
constructor() {
|
|
295
264
|
super();
|
|
296
265
|
}
|
|
297
266
|
}
|
|
298
|
-
TextareaEditorComponent.ɵfac =
|
|
299
|
-
TextareaEditorComponent.ɵcmp =
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
(
|
|
311
|
-
|
|
267
|
+
TextareaEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextareaEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
268
|
+
TextareaEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TextareaEditorComponent, selector: "textarea-editor", usesInheritance: true, ngImport: i0, template: `
|
|
269
|
+
<textarea [ngClass]="inputClass"
|
|
270
|
+
class="form-control"
|
|
271
|
+
[(ngModel)]="cell.newValue"
|
|
272
|
+
[name]="cell.getId()"
|
|
273
|
+
[disabled]="!cell.isEditable()"
|
|
274
|
+
[placeholder]="cell.getTitle()"
|
|
275
|
+
(click)="onClick.emit($event)"
|
|
276
|
+
(keydown.enter)="onEdited.emit($event)"
|
|
277
|
+
(keydown.esc)="onStopEditing.emit()">
|
|
278
|
+
</textarea>
|
|
279
|
+
`, 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"] }] });
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextareaEditorComponent, decorators: [{
|
|
312
281
|
type: Component,
|
|
313
282
|
args: [{ selector: 'textarea-editor', template: `
|
|
314
283
|
<textarea [ngClass]="inputClass"
|
|
@@ -322,66 +291,8 @@ TextareaEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Tex
|
|
|
322
291
|
(keydown.esc)="onStopEditing.emit()">
|
|
323
292
|
</textarea>
|
|
324
293
|
`, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"] }]
|
|
325
|
-
}], function () { return []; }
|
|
326
|
-
})();
|
|
294
|
+
}], ctorParameters: function () { return []; } });
|
|
327
295
|
|
|
328
|
-
function DefaultEditComponent_select_editor_1_Template(rf, ctx) {
|
|
329
|
-
if (rf & 1) {
|
|
330
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
331
|
-
i0.ɵɵelementStart(0, "select-editor", 5);
|
|
332
|
-
i0.ɵɵlistener("onClick", function DefaultEditComponent_select_editor_1_Template_select_editor_onClick_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.onClick($event)); })("onEdited", function DefaultEditComponent_select_editor_1_Template_select_editor_onEdited_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.onEdited($event)); })("onStopEditing", function DefaultEditComponent_select_editor_1_Template_select_editor_onStopEditing_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.onStopEditing()); });
|
|
333
|
-
i0.ɵɵelementEnd();
|
|
334
|
-
}
|
|
335
|
-
if (rf & 2) {
|
|
336
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
337
|
-
i0.ɵɵproperty("cell", ctx_r0.cell)("inputClass", ctx_r0.inputClass);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
function DefaultEditComponent_textarea_editor_2_Template(rf, ctx) {
|
|
341
|
-
if (rf & 1) {
|
|
342
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
343
|
-
i0.ɵɵelementStart(0, "textarea-editor", 5);
|
|
344
|
-
i0.ɵɵlistener("onClick", function DefaultEditComponent_textarea_editor_2_Template_textarea_editor_onClick_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.onClick($event)); })("onEdited", function DefaultEditComponent_textarea_editor_2_Template_textarea_editor_onEdited_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.onEdited($event)); })("onStopEditing", function DefaultEditComponent_textarea_editor_2_Template_textarea_editor_onStopEditing_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r12 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r12.onStopEditing()); });
|
|
345
|
-
i0.ɵɵelementEnd();
|
|
346
|
-
}
|
|
347
|
-
if (rf & 2) {
|
|
348
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
349
|
-
i0.ɵɵproperty("cell", ctx_r1.cell)("inputClass", ctx_r1.inputClass);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
function DefaultEditComponent_checkbox_editor_3_Template(rf, ctx) {
|
|
353
|
-
if (rf & 1) {
|
|
354
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
355
|
-
i0.ɵɵelementStart(0, "checkbox-editor", 6);
|
|
356
|
-
i0.ɵɵlistener("onClick", function DefaultEditComponent_checkbox_editor_3_Template_checkbox_editor_onClick_0_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.onClick($event)); });
|
|
357
|
-
i0.ɵɵelementEnd();
|
|
358
|
-
}
|
|
359
|
-
if (rf & 2) {
|
|
360
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
361
|
-
i0.ɵɵproperty("cell", ctx_r2.cell)("inputClass", ctx_r2.inputClass);
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
function DefaultEditComponent_completer_editor_4_Template(rf, ctx) {
|
|
365
|
-
if (rf & 1) {
|
|
366
|
-
i0.ɵɵelement(0, "completer-editor", 7);
|
|
367
|
-
}
|
|
368
|
-
if (rf & 2) {
|
|
369
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
370
|
-
i0.ɵɵproperty("cell", ctx_r3.cell);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
function DefaultEditComponent_input_editor_5_Template(rf, ctx) {
|
|
374
|
-
if (rf & 1) {
|
|
375
|
-
const _r16 = i0.ɵɵgetCurrentView();
|
|
376
|
-
i0.ɵɵelementStart(0, "input-editor", 5);
|
|
377
|
-
i0.ɵɵlistener("onClick", function DefaultEditComponent_input_editor_5_Template_input_editor_onClick_0_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.onClick($event)); })("onEdited", function DefaultEditComponent_input_editor_5_Template_input_editor_onEdited_0_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r17 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r17.onEdited($event)); })("onStopEditing", function DefaultEditComponent_input_editor_5_Template_input_editor_onStopEditing_0_listener() { i0.ɵɵrestoreView(_r16); const ctx_r18 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r18.onStopEditing()); });
|
|
378
|
-
i0.ɵɵelementEnd();
|
|
379
|
-
}
|
|
380
|
-
if (rf & 2) {
|
|
381
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
|
382
|
-
i0.ɵɵproperty("cell", ctx_r4.cell)("inputClass", ctx_r4.inputClass);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
296
|
class DefaultEditComponent extends EditCellDefault {
|
|
386
297
|
constructor() {
|
|
387
298
|
super();
|
|
@@ -390,60 +301,13 @@ class DefaultEditComponent extends EditCellDefault {
|
|
|
390
301
|
return this.cell.getColumn().editor && this.cell.getColumn().editor.type;
|
|
391
302
|
}
|
|
392
303
|
}
|
|
393
|
-
DefaultEditComponent.ɵfac =
|
|
394
|
-
DefaultEditComponent.ɵcmp =
|
|
395
|
-
|
|
396
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
397
|
-
i0.ɵɵtemplate(1, DefaultEditComponent_select_editor_1_Template, 1, 2, "select-editor", 1);
|
|
398
|
-
i0.ɵɵtemplate(2, DefaultEditComponent_textarea_editor_2_Template, 1, 2, "textarea-editor", 1);
|
|
399
|
-
i0.ɵɵtemplate(3, DefaultEditComponent_checkbox_editor_3_Template, 1, 2, "checkbox-editor", 2);
|
|
400
|
-
i0.ɵɵtemplate(4, DefaultEditComponent_completer_editor_4_Template, 1, 1, "completer-editor", 3);
|
|
401
|
-
i0.ɵɵtemplate(5, DefaultEditComponent_input_editor_5_Template, 1, 2, "input-editor", 4);
|
|
402
|
-
i0.ɵɵelementEnd();
|
|
403
|
-
}
|
|
404
|
-
if (rf & 2) {
|
|
405
|
-
i0.ɵɵproperty("ngSwitch", ctx.getEditorType());
|
|
406
|
-
i0.ɵɵadvance(1);
|
|
407
|
-
i0.ɵɵproperty("ngSwitchCase", "list");
|
|
408
|
-
i0.ɵɵadvance(1);
|
|
409
|
-
i0.ɵɵproperty("ngSwitchCase", "textarea");
|
|
410
|
-
i0.ɵɵadvance(1);
|
|
411
|
-
i0.ɵɵproperty("ngSwitchCase", "checkbox");
|
|
412
|
-
i0.ɵɵadvance(1);
|
|
413
|
-
i0.ɵɵproperty("ngSwitchCase", "completer");
|
|
414
|
-
}
|
|
415
|
-
}, dependencies: [i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, CheckboxEditorComponent, CompleterEditorComponent, InputEditorComponent, SelectEditorComponent, TextareaEditorComponent], encapsulation: 2 });
|
|
416
|
-
(function () {
|
|
417
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultEditComponent, [{
|
|
304
|
+
DefaultEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
305
|
+
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 <completer-editor *ngSwitchCase=\"'completer'\"\n [cell]=\"cell\">\n </completer-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: CompleterEditorComponent, selector: "completer-editor" }, { kind: "component", type: InputEditorComponent, selector: "input-editor" }, { kind: "component", type: SelectEditorComponent, selector: "select-editor" }, { kind: "component", type: TextareaEditorComponent, selector: "textarea-editor" }] });
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultEditComponent, decorators: [{
|
|
418
307
|
type: Component,
|
|
419
308
|
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 <completer-editor *ngSwitchCase=\"'completer'\"\n [cell]=\"cell\">\n </completer-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>" }]
|
|
420
|
-
}], function () { return []; }
|
|
421
|
-
})();
|
|
309
|
+
}], ctorParameters: function () { return []; } });
|
|
422
310
|
|
|
423
|
-
function EditCellComponent_table_cell_custom_editor_1_Template(rf, ctx) {
|
|
424
|
-
if (rf & 1) {
|
|
425
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
426
|
-
i0.ɵɵelementStart(0, "table-cell-custom-editor", 3);
|
|
427
|
-
i0.ɵɵlistener("edited", function EditCellComponent_table_cell_custom_editor_1_Template_table_cell_custom_editor_edited_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onEdited($event)); });
|
|
428
|
-
i0.ɵɵelementEnd();
|
|
429
|
-
}
|
|
430
|
-
if (rf & 2) {
|
|
431
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
432
|
-
i0.ɵɵproperty("cell", ctx_r0.cell)("inputClass", ctx_r0.inputClass);
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
function EditCellComponent_table_cell_default_editor_2_Template(rf, ctx) {
|
|
436
|
-
if (rf & 1) {
|
|
437
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
438
|
-
i0.ɵɵelementStart(0, "table-cell-default-editor", 3);
|
|
439
|
-
i0.ɵɵlistener("edited", function EditCellComponent_table_cell_default_editor_2_Template_table_cell_default_editor_edited_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onEdited($event)); });
|
|
440
|
-
i0.ɵɵelementEnd();
|
|
441
|
-
}
|
|
442
|
-
if (rf & 2) {
|
|
443
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
444
|
-
i0.ɵɵproperty("cell", ctx_r1.cell)("inputClass", ctx_r1.inputClass);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
311
|
class EditCellComponent {
|
|
448
312
|
constructor() {
|
|
449
313
|
this.inputClass = '';
|
|
@@ -457,22 +321,22 @@ class EditCellComponent {
|
|
|
457
321
|
return this.cell.getColumn().editor && this.cell.getColumn().editor.type;
|
|
458
322
|
}
|
|
459
323
|
}
|
|
460
|
-
EditCellComponent.ɵfac =
|
|
461
|
-
EditCellComponent.ɵcmp =
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
324
|
+
EditCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EditCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
325
|
+
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: `
|
|
326
|
+
<div [ngSwitch]="getEditorType()">
|
|
327
|
+
<table-cell-custom-editor *ngSwitchCase="'custom'"
|
|
328
|
+
[cell]="cell"
|
|
329
|
+
[inputClass]="inputClass"
|
|
330
|
+
(edited)="onEdited($event)">
|
|
331
|
+
</table-cell-custom-editor>
|
|
332
|
+
<table-cell-default-editor *ngSwitchDefault
|
|
333
|
+
[cell]="cell"
|
|
334
|
+
[inputClass]="inputClass"
|
|
335
|
+
(edited)="onEdited($event)">
|
|
336
|
+
</table-cell-default-editor>
|
|
337
|
+
</div>
|
|
338
|
+
`, 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" }] });
|
|
339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EditCellComponent, decorators: [{
|
|
476
340
|
type: Component,
|
|
477
341
|
args: [{
|
|
478
342
|
selector: 'table-cell-edit-mode',
|
|
@@ -491,17 +355,14 @@ EditCellComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EditCellC
|
|
|
491
355
|
</div>
|
|
492
356
|
`,
|
|
493
357
|
}]
|
|
494
|
-
}],
|
|
358
|
+
}], propDecorators: { cell: [{
|
|
495
359
|
type: Input
|
|
496
360
|
}], inputClass: [{
|
|
497
361
|
type: Input
|
|
498
362
|
}], edited: [{
|
|
499
363
|
type: Output
|
|
500
|
-
}] });
|
|
501
|
-
})();
|
|
364
|
+
}] } });
|
|
502
365
|
|
|
503
|
-
const _c0$b = ["dynamicTarget"];
|
|
504
|
-
function CustomViewComponent_ng_template_0_Template(rf, ctx) { }
|
|
505
366
|
class CustomViewComponent {
|
|
506
367
|
constructor(resolver) {
|
|
507
368
|
this.resolver = resolver;
|
|
@@ -536,22 +397,11 @@ class CustomViewComponent {
|
|
|
536
397
|
};
|
|
537
398
|
}
|
|
538
399
|
}
|
|
539
|
-
CustomViewComponent.ɵfac =
|
|
540
|
-
CustomViewComponent.ɵcmp =
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
if (rf & 2) {
|
|
545
|
-
let _t;
|
|
546
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dynamicTarget = _t.first);
|
|
547
|
-
}
|
|
548
|
-
}, inputs: { cell: "cell" }, decls: 2, vars: 0, consts: [["dynamicTarget", ""]], template: function CustomViewComponent_Template(rf, ctx) {
|
|
549
|
-
if (rf & 1) {
|
|
550
|
-
i0.ɵɵtemplate(0, CustomViewComponent_ng_template_0_Template, 0, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
551
|
-
}
|
|
552
|
-
}, encapsulation: 2 });
|
|
553
|
-
(function () {
|
|
554
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomViewComponent, [{
|
|
400
|
+
CustomViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomViewComponent, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
|
401
|
+
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: `
|
|
402
|
+
<ng-template #dynamicTarget></ng-template>
|
|
403
|
+
`, isInline: true });
|
|
404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomViewComponent, decorators: [{
|
|
555
405
|
type: Component,
|
|
556
406
|
args: [{
|
|
557
407
|
selector: 'custom-view-component',
|
|
@@ -559,65 +409,24 @@ CustomViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CustomV
|
|
|
559
409
|
<ng-template #dynamicTarget></ng-template>
|
|
560
410
|
`,
|
|
561
411
|
}]
|
|
562
|
-
}], function () { return [{ type: i0.ComponentFactoryResolver }]; }, { cell: [{
|
|
412
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }]; }, propDecorators: { cell: [{
|
|
563
413
|
type: Input
|
|
564
414
|
}], dynamicTarget: [{
|
|
565
415
|
type: ViewChild,
|
|
566
416
|
args: ['dynamicTarget', { read: ViewContainerRef, static: true }]
|
|
567
|
-
}] });
|
|
568
|
-
})();
|
|
417
|
+
}] } });
|
|
569
418
|
|
|
570
|
-
function ViewCellComponent_custom_view_component_1_Template(rf, ctx) {
|
|
571
|
-
if (rf & 1) {
|
|
572
|
-
i0.ɵɵelement(0, "custom-view-component", 4);
|
|
573
|
-
}
|
|
574
|
-
if (rf & 2) {
|
|
575
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
576
|
-
i0.ɵɵproperty("cell", ctx_r0.cell);
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
function ViewCellComponent_div_2_Template(rf, ctx) {
|
|
580
|
-
if (rf & 1) {
|
|
581
|
-
i0.ɵɵelement(0, "div", 5);
|
|
582
|
-
}
|
|
583
|
-
if (rf & 2) {
|
|
584
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
585
|
-
i0.ɵɵproperty("innerHTML", ctx_r1.cell.getValue(), i0.ɵɵsanitizeHtml);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
function ViewCellComponent_div_3_Template(rf, ctx) {
|
|
589
|
-
if (rf & 1) {
|
|
590
|
-
i0.ɵɵelementStart(0, "div");
|
|
591
|
-
i0.ɵɵtext(1);
|
|
592
|
-
i0.ɵɵelementEnd();
|
|
593
|
-
}
|
|
594
|
-
if (rf & 2) {
|
|
595
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
596
|
-
i0.ɵɵadvance(1);
|
|
597
|
-
i0.ɵɵtextInterpolate(ctx_r2.cell.getValue());
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
419
|
class ViewCellComponent {
|
|
601
420
|
}
|
|
602
|
-
ViewCellComponent.ɵfac =
|
|
603
|
-
ViewCellComponent.ɵcmp =
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
if (rf & 2) {
|
|
612
|
-
i0.ɵɵproperty("ngSwitch", ctx.cell.getColumn().type);
|
|
613
|
-
i0.ɵɵadvance(1);
|
|
614
|
-
i0.ɵɵproperty("ngSwitchCase", "custom");
|
|
615
|
-
i0.ɵɵadvance(1);
|
|
616
|
-
i0.ɵɵproperty("ngSwitchCase", "html");
|
|
617
|
-
}
|
|
618
|
-
}, dependencies: [i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, CustomViewComponent], encapsulation: 2, changeDetection: 0 });
|
|
619
|
-
(function () {
|
|
620
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewCellComponent, [{
|
|
421
|
+
ViewCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ViewCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
422
|
+
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: `
|
|
423
|
+
<div [ngSwitch]="cell.getColumn().type">
|
|
424
|
+
<custom-view-component *ngSwitchCase="'custom'" [cell]="cell"></custom-view-component>
|
|
425
|
+
<div *ngSwitchCase="'html'" [innerHTML]="cell.getValue()"></div>
|
|
426
|
+
<div *ngSwitchDefault>{{ cell.getValue() }}</div>
|
|
427
|
+
</div>
|
|
428
|
+
`, 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 });
|
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ViewCellComponent, decorators: [{
|
|
621
430
|
type: Component,
|
|
622
431
|
args: [{
|
|
623
432
|
selector: 'table-cell-view-mode',
|
|
@@ -630,32 +439,10 @@ ViewCellComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ViewCellC
|
|
|
630
439
|
</div>
|
|
631
440
|
`,
|
|
632
441
|
}]
|
|
633
|
-
}],
|
|
442
|
+
}], propDecorators: { cell: [{
|
|
634
443
|
type: Input
|
|
635
|
-
}] });
|
|
636
|
-
})();
|
|
444
|
+
}] } });
|
|
637
445
|
|
|
638
|
-
function CellComponent_table_cell_view_mode_0_Template(rf, ctx) {
|
|
639
|
-
if (rf & 1) {
|
|
640
|
-
i0.ɵɵelement(0, "table-cell-view-mode", 2);
|
|
641
|
-
}
|
|
642
|
-
if (rf & 2) {
|
|
643
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
644
|
-
i0.ɵɵproperty("cell", ctx_r0.cell);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
function CellComponent_table_cell_edit_mode_1_Template(rf, ctx) {
|
|
648
|
-
if (rf & 1) {
|
|
649
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
650
|
-
i0.ɵɵelementStart(0, "table-cell-edit-mode", 3);
|
|
651
|
-
i0.ɵɵlistener("edited", function CellComponent_table_cell_edit_mode_1_Template_table_cell_edit_mode_edited_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onEdited($event)); });
|
|
652
|
-
i0.ɵɵelementEnd();
|
|
653
|
-
}
|
|
654
|
-
if (rf & 2) {
|
|
655
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
656
|
-
i0.ɵɵproperty("cell", ctx_r1.cell)("inputClass", ctx_r1.inputClass);
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
446
|
class CellComponent {
|
|
660
447
|
constructor() {
|
|
661
448
|
this.inputClass = '';
|
|
@@ -672,20 +459,15 @@ class CellComponent {
|
|
|
672
459
|
}
|
|
673
460
|
}
|
|
674
461
|
}
|
|
675
|
-
CellComponent.ɵfac =
|
|
676
|
-
CellComponent.ɵcmp =
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
i0.ɵɵproperty("ngIf", ctx.isInEditing);
|
|
685
|
-
}
|
|
686
|
-
}, dependencies: [i1.NgIf, EditCellComponent, ViewCellComponent], encapsulation: 2 });
|
|
687
|
-
(function () {
|
|
688
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CellComponent, [{
|
|
462
|
+
CellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
463
|
+
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: `
|
|
464
|
+
<table-cell-view-mode *ngIf="!isInEditing" [cell]="cell"></table-cell-view-mode>
|
|
465
|
+
<table-cell-edit-mode *ngIf="isInEditing" [cell]="cell"
|
|
466
|
+
[inputClass]="inputClass"
|
|
467
|
+
(edited)="onEdited($event)">
|
|
468
|
+
</table-cell-edit-mode>
|
|
469
|
+
`, 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"] }] });
|
|
470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellComponent, decorators: [{
|
|
689
471
|
type: Component,
|
|
690
472
|
args: [{
|
|
691
473
|
selector: 'ng2-smart-table-cell',
|
|
@@ -697,7 +479,7 @@ CellComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CellComponent
|
|
|
697
479
|
</table-cell-edit-mode>
|
|
698
480
|
`,
|
|
699
481
|
}]
|
|
700
|
-
}],
|
|
482
|
+
}], propDecorators: { grid: [{
|
|
701
483
|
type: Input
|
|
702
484
|
}], row: [{
|
|
703
485
|
type: Input
|
|
@@ -717,8 +499,7 @@ CellComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CellComponent
|
|
|
717
499
|
type: Input
|
|
718
500
|
}], edited: [{
|
|
719
501
|
type: Output
|
|
720
|
-
}] });
|
|
721
|
-
})();
|
|
502
|
+
}] } });
|
|
722
503
|
|
|
723
504
|
const CELL_COMPONENTS = [
|
|
724
505
|
CellComponent,
|
|
@@ -737,12 +518,36 @@ const CELL_COMPONENTS = [
|
|
|
737
518
|
];
|
|
738
519
|
class CellModule {
|
|
739
520
|
}
|
|
740
|
-
CellModule.ɵfac =
|
|
741
|
-
CellModule.ɵmod =
|
|
742
|
-
|
|
521
|
+
CellModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
522
|
+
CellModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CellModule, declarations: [CellComponent,
|
|
523
|
+
EditCellDefault,
|
|
524
|
+
DefaultEditor,
|
|
525
|
+
CustomEditComponent,
|
|
526
|
+
DefaultEditComponent,
|
|
527
|
+
EditCellComponent,
|
|
528
|
+
CheckboxEditorComponent,
|
|
529
|
+
CompleterEditorComponent,
|
|
530
|
+
InputEditorComponent,
|
|
531
|
+
SelectEditorComponent,
|
|
532
|
+
TextareaEditorComponent,
|
|
533
|
+
CustomViewComponent,
|
|
534
|
+
ViewCellComponent], imports: [CommonModule,
|
|
535
|
+
FormsModule], exports: [CellComponent,
|
|
536
|
+
EditCellDefault,
|
|
537
|
+
DefaultEditor,
|
|
538
|
+
CustomEditComponent,
|
|
539
|
+
DefaultEditComponent,
|
|
540
|
+
EditCellComponent,
|
|
541
|
+
CheckboxEditorComponent,
|
|
542
|
+
CompleterEditorComponent,
|
|
543
|
+
InputEditorComponent,
|
|
544
|
+
SelectEditorComponent,
|
|
545
|
+
TextareaEditorComponent,
|
|
546
|
+
CustomViewComponent,
|
|
547
|
+
ViewCellComponent] });
|
|
548
|
+
CellModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellModule, imports: [CommonModule,
|
|
743
549
|
FormsModule] });
|
|
744
|
-
(
|
|
745
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CellModule, [{
|
|
550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellModule, decorators: [{
|
|
746
551
|
type: NgModule,
|
|
747
552
|
args: [{
|
|
748
553
|
imports: [
|
|
@@ -756,36 +561,7 @@ CellModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
|
756
561
|
...CELL_COMPONENTS,
|
|
757
562
|
],
|
|
758
563
|
}]
|
|
759
|
-
}]
|
|
760
|
-
})();
|
|
761
|
-
(function () {
|
|
762
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CellModule, { declarations: [CellComponent,
|
|
763
|
-
EditCellDefault,
|
|
764
|
-
DefaultEditor,
|
|
765
|
-
CustomEditComponent,
|
|
766
|
-
DefaultEditComponent,
|
|
767
|
-
EditCellComponent,
|
|
768
|
-
CheckboxEditorComponent,
|
|
769
|
-
CompleterEditorComponent,
|
|
770
|
-
InputEditorComponent,
|
|
771
|
-
SelectEditorComponent,
|
|
772
|
-
TextareaEditorComponent,
|
|
773
|
-
CustomViewComponent,
|
|
774
|
-
ViewCellComponent], imports: [CommonModule,
|
|
775
|
-
FormsModule], exports: [CellComponent,
|
|
776
|
-
EditCellDefault,
|
|
777
|
-
DefaultEditor,
|
|
778
|
-
CustomEditComponent,
|
|
779
|
-
DefaultEditComponent,
|
|
780
|
-
EditCellComponent,
|
|
781
|
-
CheckboxEditorComponent,
|
|
782
|
-
CompleterEditorComponent,
|
|
783
|
-
InputEditorComponent,
|
|
784
|
-
SelectEditorComponent,
|
|
785
|
-
TextareaEditorComponent,
|
|
786
|
-
CustomViewComponent,
|
|
787
|
-
ViewCellComponent] });
|
|
788
|
-
})();
|
|
564
|
+
}] });
|
|
789
565
|
|
|
790
566
|
class FilterDefault {
|
|
791
567
|
constructor() {
|
|
@@ -801,15 +577,14 @@ class FilterDefault {
|
|
|
801
577
|
});
|
|
802
578
|
}
|
|
803
579
|
}
|
|
804
|
-
FilterDefault.ɵfac =
|
|
805
|
-
FilterDefault.ɵcmp =
|
|
806
|
-
(
|
|
807
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilterDefault, [{
|
|
580
|
+
FilterDefault.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterDefault, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
581
|
+
FilterDefault.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilterDefault, selector: "ng-component", inputs: { column: "column", source: "source", inputClass: "inputClass" }, outputs: { filter: "filter" }, ngImport: i0, template: '', isInline: true });
|
|
582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterDefault, decorators: [{
|
|
808
583
|
type: Component,
|
|
809
584
|
args: [{
|
|
810
585
|
template: '',
|
|
811
586
|
}]
|
|
812
|
-
}],
|
|
587
|
+
}], propDecorators: { column: [{
|
|
813
588
|
type: Input
|
|
814
589
|
}], source: [{
|
|
815
590
|
type: Input
|
|
@@ -817,8 +592,7 @@ FilterDefault.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilterDefault
|
|
|
817
592
|
type: Input
|
|
818
593
|
}], filter: [{
|
|
819
594
|
type: Output
|
|
820
|
-
}] });
|
|
821
|
-
})();
|
|
595
|
+
}] } });
|
|
822
596
|
|
|
823
597
|
class DefaultFilter {
|
|
824
598
|
constructor() {
|
|
@@ -834,15 +608,14 @@ class DefaultFilter {
|
|
|
834
608
|
this.filter.emit(this.query);
|
|
835
609
|
}
|
|
836
610
|
}
|
|
837
|
-
DefaultFilter.ɵfac =
|
|
838
|
-
DefaultFilter.ɵcmp =
|
|
839
|
-
(
|
|
840
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultFilter, [{
|
|
611
|
+
DefaultFilter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultFilter, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
612
|
+
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 });
|
|
613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultFilter, decorators: [{
|
|
841
614
|
type: Component,
|
|
842
615
|
args: [{
|
|
843
616
|
template: '',
|
|
844
617
|
}]
|
|
845
|
-
}],
|
|
618
|
+
}], propDecorators: { query: [{
|
|
846
619
|
type: Input
|
|
847
620
|
}], inputClass: [{
|
|
848
621
|
type: Input
|
|
@@ -850,24 +623,8 @@ DefaultFilter.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DefaultFilter
|
|
|
850
623
|
type: Input
|
|
851
624
|
}], filter: [{
|
|
852
625
|
type: Output
|
|
853
|
-
}] });
|
|
854
|
-
})();
|
|
626
|
+
}] } });
|
|
855
627
|
|
|
856
|
-
function CheckboxFilterComponent_a_1_Template(rf, ctx) {
|
|
857
|
-
if (rf & 1) {
|
|
858
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
859
|
-
i0.ɵɵelementStart(0, "a", 2);
|
|
860
|
-
i0.ɵɵlistener("click", function CheckboxFilterComponent_a_1_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.resetFilter($event)); });
|
|
861
|
-
i0.ɵɵtext(1);
|
|
862
|
-
i0.ɵɵelementEnd();
|
|
863
|
-
}
|
|
864
|
-
if (rf & 2) {
|
|
865
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
866
|
-
let tmp_0_0;
|
|
867
|
-
i0.ɵɵadvance(1);
|
|
868
|
-
i0.ɵɵtextInterpolate(((tmp_0_0 = ctx_r0.column.getFilterConfig()) == null ? null : tmp_0_0.resetText) || "reset");
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
628
|
class CheckboxFilterComponent extends DefaultFilter {
|
|
872
629
|
constructor() {
|
|
873
630
|
super();
|
|
@@ -893,20 +650,13 @@ class CheckboxFilterComponent extends DefaultFilter {
|
|
|
893
650
|
this.setFilter();
|
|
894
651
|
}
|
|
895
652
|
}
|
|
896
|
-
CheckboxFilterComponent.ɵfac =
|
|
897
|
-
CheckboxFilterComponent.ɵcmp =
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
i0.ɵɵproperty("formControl", ctx.inputControl)("ngClass", ctx.inputClass);
|
|
904
|
-
i0.ɵɵadvance(1);
|
|
905
|
-
i0.ɵɵproperty("ngIf", ctx.filterActive);
|
|
906
|
-
}
|
|
907
|
-
}, dependencies: [i1.NgClass, i1.NgIf, i2.CheckboxControlValueAccessor, i2.NgControlStatus, i2.FormControlDirective], encapsulation: 2 });
|
|
908
|
-
(function () {
|
|
909
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxFilterComponent, [{
|
|
653
|
+
CheckboxFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
654
|
+
CheckboxFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CheckboxFilterComponent, selector: "checkbox-filter", usesInheritance: true, ngImport: i0, template: `
|
|
655
|
+
<input type="checkbox" [formControl]="inputControl" [ngClass]="inputClass" class="form-control">
|
|
656
|
+
<a href="#" *ngIf="filterActive"
|
|
657
|
+
(click)="resetFilter($event)">{{column.getFilterConfig()?.resetText || 'reset'}}</a>
|
|
658
|
+
`, 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"] }] });
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxFilterComponent, decorators: [{
|
|
910
660
|
type: Component,
|
|
911
661
|
args: [{
|
|
912
662
|
selector: 'checkbox-filter',
|
|
@@ -916,8 +666,7 @@ CheckboxFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Che
|
|
|
916
666
|
(click)="resetFilter($event)">{{column.getFilterConfig()?.resetText || 'reset'}}</a>
|
|
917
667
|
`,
|
|
918
668
|
}]
|
|
919
|
-
}], function () { return []; }
|
|
920
|
-
})();
|
|
669
|
+
}], ctorParameters: function () { return []; } });
|
|
921
670
|
|
|
922
671
|
class CompleterFilterComponent extends DefaultFilter {
|
|
923
672
|
constructor() {
|
|
@@ -948,10 +697,18 @@ class CompleterFilterComponent extends DefaultFilter {
|
|
|
948
697
|
}
|
|
949
698
|
}
|
|
950
699
|
}
|
|
951
|
-
CompleterFilterComponent.ɵfac =
|
|
952
|
-
CompleterFilterComponent.ɵcmp =
|
|
953
|
-
|
|
954
|
-
|
|
700
|
+
CompleterFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompleterFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
701
|
+
CompleterFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CompleterFilterComponent, selector: "completer-filter", usesInheritance: true, ngImport: i0, template: `
|
|
702
|
+
<!-- <ng2-completer [(ngModel)]="query"
|
|
703
|
+
(ngModelChange)="inputTextChanged($event)"
|
|
704
|
+
[dataService]="column.getFilterConfig().completer.dataService"
|
|
705
|
+
[minSearchLength]="column.getFilterConfig().completer.minSearchLength || 0"
|
|
706
|
+
[pause]="column.getFilterConfig().completer.pause || 0"
|
|
707
|
+
[placeholder]="column.getFilterConfig().completer.placeholder || 'Start typing...'"
|
|
708
|
+
(selected)="completerContent.next($event)">
|
|
709
|
+
</ng2-completer> -->
|
|
710
|
+
`, isInline: true });
|
|
711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompleterFilterComponent, decorators: [{
|
|
955
712
|
type: Component,
|
|
956
713
|
args: [{
|
|
957
714
|
selector: 'completer-filter',
|
|
@@ -966,8 +723,7 @@ CompleterFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Co
|
|
|
966
723
|
</ng2-completer> -->
|
|
967
724
|
`,
|
|
968
725
|
}]
|
|
969
|
-
}], function () { return []; }
|
|
970
|
-
})();
|
|
726
|
+
}], ctorParameters: function () { return []; } });
|
|
971
727
|
|
|
972
728
|
class InputFilterComponent extends DefaultFilter {
|
|
973
729
|
constructor() {
|
|
@@ -991,18 +747,16 @@ class InputFilterComponent extends DefaultFilter {
|
|
|
991
747
|
}
|
|
992
748
|
}
|
|
993
749
|
}
|
|
994
|
-
InputFilterComponent.ɵfac =
|
|
995
|
-
InputFilterComponent.ɵcmp =
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
(function () {
|
|
1005
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputFilterComponent, [{
|
|
750
|
+
InputFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
751
|
+
InputFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputFilterComponent, selector: "input-filter", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
752
|
+
<input
|
|
753
|
+
[ngClass]="inputClass"
|
|
754
|
+
[formControl]="inputControl"
|
|
755
|
+
class="form-control"
|
|
756
|
+
type="text"
|
|
757
|
+
placeholder="{{ column.title }}"/>
|
|
758
|
+
`, 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"] }] });
|
|
759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFilterComponent, decorators: [{
|
|
1006
760
|
type: Component,
|
|
1007
761
|
args: [{
|
|
1008
762
|
selector: 'input-filter',
|
|
@@ -1015,23 +769,8 @@ InputFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputF
|
|
|
1015
769
|
placeholder="{{ column.title }}"/>
|
|
1016
770
|
`,
|
|
1017
771
|
}]
|
|
1018
|
-
}], function () { return []; }
|
|
1019
|
-
})();
|
|
772
|
+
}], ctorParameters: function () { return []; } });
|
|
1020
773
|
|
|
1021
|
-
const _c0$a = ["inputControl"];
|
|
1022
|
-
function SelectFilterComponent_option_4_Template(rf, ctx) {
|
|
1023
|
-
if (rf & 1) {
|
|
1024
|
-
i0.ɵɵelementStart(0, "option", 4);
|
|
1025
|
-
i0.ɵɵtext(1);
|
|
1026
|
-
i0.ɵɵelementEnd();
|
|
1027
|
-
}
|
|
1028
|
-
if (rf & 2) {
|
|
1029
|
-
const option_r2 = ctx.$implicit;
|
|
1030
|
-
i0.ɵɵproperty("value", option_r2.value);
|
|
1031
|
-
i0.ɵɵadvance(1);
|
|
1032
|
-
i0.ɵɵtextInterpolate1(" ", option_r2.title, " ");
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
774
|
class SelectFilterComponent extends DefaultFilter {
|
|
1036
775
|
constructor() {
|
|
1037
776
|
super();
|
|
@@ -1042,35 +781,20 @@ class SelectFilterComponent extends DefaultFilter {
|
|
|
1042
781
|
.subscribe((value) => this.setFilter());
|
|
1043
782
|
}
|
|
1044
783
|
}
|
|
1045
|
-
SelectFilterComponent.ɵfac =
|
|
1046
|
-
SelectFilterComponent.ɵcmp =
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
i0.ɵɵtext(3);
|
|
1060
|
-
i0.ɵɵelementEnd();
|
|
1061
|
-
i0.ɵɵtemplate(4, SelectFilterComponent_option_4_Template, 2, 2, "option", 3);
|
|
1062
|
-
i0.ɵɵelementEnd();
|
|
1063
|
-
}
|
|
1064
|
-
if (rf & 2) {
|
|
1065
|
-
i0.ɵɵproperty("ngClass", ctx.inputClass)("ngModel", ctx.query);
|
|
1066
|
-
i0.ɵɵadvance(3);
|
|
1067
|
-
i0.ɵɵtextInterpolate(ctx.column.getFilterConfig().selectText);
|
|
1068
|
-
i0.ɵɵadvance(1);
|
|
1069
|
-
i0.ɵɵproperty("ngForOf", ctx.column.getFilterConfig().list);
|
|
1070
|
-
}
|
|
1071
|
-
}, dependencies: [i1.NgClass, i1.NgForOf, i2.NgSelectOption, i2.ɵNgSelectMultipleOption, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgModel], encapsulation: 2 });
|
|
1072
|
-
(function () {
|
|
1073
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFilterComponent, [{
|
|
784
|
+
SelectFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
785
|
+
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: `
|
|
786
|
+
<select [ngClass]="inputClass"
|
|
787
|
+
class="form-control"
|
|
788
|
+
#inputControl
|
|
789
|
+
[(ngModel)]="query">
|
|
790
|
+
|
|
791
|
+
<option value="">{{ column.getFilterConfig().selectText }}</option>
|
|
792
|
+
<option *ngFor="let option of column.getFilterConfig().list" [value]="option.value">
|
|
793
|
+
{{ option.title }}
|
|
794
|
+
</option>
|
|
795
|
+
</select>
|
|
796
|
+
`, 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"] }] });
|
|
797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectFilterComponent, decorators: [{
|
|
1074
798
|
type: Component,
|
|
1075
799
|
args: [{
|
|
1076
800
|
selector: 'select-filter',
|
|
@@ -1087,84 +811,43 @@ SelectFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Selec
|
|
|
1087
811
|
</select>
|
|
1088
812
|
`,
|
|
1089
813
|
}]
|
|
1090
|
-
}], function () { return []; }, { inputControl: [{
|
|
814
|
+
}], ctorParameters: function () { return []; }, propDecorators: { inputControl: [{
|
|
1091
815
|
type: ViewChild,
|
|
1092
816
|
args: ['inputControl', { read: NgControl, static: true }]
|
|
1093
|
-
}] });
|
|
1094
|
-
})();
|
|
817
|
+
}] } });
|
|
1095
818
|
|
|
1096
|
-
function DefaultFilterComponent_select_filter_1_Template(rf, ctx) {
|
|
1097
|
-
if (rf & 1) {
|
|
1098
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
1099
|
-
i0.ɵɵelementStart(0, "select-filter", 3);
|
|
1100
|
-
i0.ɵɵlistener("filter", function DefaultFilterComponent_select_filter_1_Template_select_filter_filter_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onFilter($event)); });
|
|
1101
|
-
i0.ɵɵelementEnd();
|
|
1102
|
-
}
|
|
1103
|
-
if (rf & 2) {
|
|
1104
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1105
|
-
i0.ɵɵproperty("query", ctx_r0.query)("ngClass", ctx_r0.inputClass)("column", ctx_r0.column);
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
function DefaultFilterComponent_checkbox_filter_2_Template(rf, ctx) {
|
|
1109
|
-
if (rf & 1) {
|
|
1110
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
1111
|
-
i0.ɵɵelementStart(0, "checkbox-filter", 3);
|
|
1112
|
-
i0.ɵɵlistener("filter", function DefaultFilterComponent_checkbox_filter_2_Template_checkbox_filter_filter_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.onFilter($event)); });
|
|
1113
|
-
i0.ɵɵelementEnd();
|
|
1114
|
-
}
|
|
1115
|
-
if (rf & 2) {
|
|
1116
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
1117
|
-
i0.ɵɵproperty("query", ctx_r1.query)("ngClass", ctx_r1.inputClass)("column", ctx_r1.column);
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
function DefaultFilterComponent_completer_filter_3_Template(rf, ctx) {
|
|
1121
|
-
if (rf & 1) {
|
|
1122
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
1123
|
-
i0.ɵɵelementStart(0, "completer-filter", 3);
|
|
1124
|
-
i0.ɵɵlistener("filter", function DefaultFilterComponent_completer_filter_3_Template_completer_filter_filter_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.onFilter($event)); });
|
|
1125
|
-
i0.ɵɵelementEnd();
|
|
1126
|
-
}
|
|
1127
|
-
if (rf & 2) {
|
|
1128
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
1129
|
-
i0.ɵɵproperty("query", ctx_r2.query)("ngClass", ctx_r2.inputClass)("column", ctx_r2.column);
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
function DefaultFilterComponent_input_filter_4_Template(rf, ctx) {
|
|
1133
|
-
if (rf & 1) {
|
|
1134
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
1135
|
-
i0.ɵɵelementStart(0, "input-filter", 3);
|
|
1136
|
-
i0.ɵɵlistener("filter", function DefaultFilterComponent_input_filter_4_Template_input_filter_filter_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.onFilter($event)); });
|
|
1137
|
-
i0.ɵɵelementEnd();
|
|
1138
|
-
}
|
|
1139
|
-
if (rf & 2) {
|
|
1140
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
1141
|
-
i0.ɵɵproperty("query", ctx_r3.query)("ngClass", ctx_r3.inputClass)("column", ctx_r3.column);
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
819
|
class DefaultFilterComponent extends FilterDefault {
|
|
1145
820
|
}
|
|
1146
|
-
DefaultFilterComponent.ɵfac =
|
|
1147
|
-
DefaultFilterComponent.ɵcmp =
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
821
|
+
DefaultFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
822
|
+
DefaultFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DefaultFilterComponent, selector: "default-table-filter", inputs: { query: "query" }, usesInheritance: true, ngImport: i0, template: `
|
|
823
|
+
<ng-container [ngSwitch]="column.getFilterType()">
|
|
824
|
+
<select-filter *ngSwitchCase="'list'"
|
|
825
|
+
[query]="query"
|
|
826
|
+
[ngClass]="inputClass"
|
|
827
|
+
[column]="column"
|
|
828
|
+
(filter)="onFilter($event)">
|
|
829
|
+
</select-filter>
|
|
830
|
+
<checkbox-filter *ngSwitchCase="'checkbox'"
|
|
831
|
+
[query]="query"
|
|
832
|
+
[ngClass]="inputClass"
|
|
833
|
+
[column]="column"
|
|
834
|
+
(filter)="onFilter($event)">
|
|
835
|
+
</checkbox-filter>
|
|
836
|
+
<completer-filter *ngSwitchCase="'completer'"
|
|
837
|
+
[query]="query"
|
|
838
|
+
[ngClass]="inputClass"
|
|
839
|
+
[column]="column"
|
|
840
|
+
(filter)="onFilter($event)">
|
|
841
|
+
</completer-filter>
|
|
842
|
+
<input-filter *ngSwitchDefault
|
|
843
|
+
[query]="query"
|
|
844
|
+
[ngClass]="inputClass"
|
|
845
|
+
[column]="column"
|
|
846
|
+
(filter)="onFilter($event)">
|
|
847
|
+
</input-filter>
|
|
848
|
+
</ng-container>
|
|
849
|
+
`, 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: CompleterFilterComponent, selector: "completer-filter" }, { kind: "component", type: InputFilterComponent, selector: "input-filter" }, { kind: "component", type: SelectFilterComponent, selector: "select-filter" }] });
|
|
850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultFilterComponent, decorators: [{
|
|
1168
851
|
type: Component,
|
|
1169
852
|
args: [{
|
|
1170
853
|
selector: 'default-table-filter',
|
|
@@ -1197,13 +880,10 @@ DefaultFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Defa
|
|
|
1197
880
|
</ng-container>
|
|
1198
881
|
`,
|
|
1199
882
|
}]
|
|
1200
|
-
}],
|
|
883
|
+
}], propDecorators: { query: [{
|
|
1201
884
|
type: Input
|
|
1202
|
-
}] });
|
|
1203
|
-
})();
|
|
885
|
+
}] } });
|
|
1204
886
|
|
|
1205
|
-
const _c0$9 = ["dynamicTarget"];
|
|
1206
|
-
function CustomFilterComponent_ng_template_0_Template(rf, ctx) { }
|
|
1207
887
|
class CustomFilterComponent extends FilterDefault {
|
|
1208
888
|
constructor(resolver) {
|
|
1209
889
|
super();
|
|
@@ -1230,73 +910,21 @@ class CustomFilterComponent extends FilterDefault {
|
|
|
1230
910
|
}
|
|
1231
911
|
}
|
|
1232
912
|
}
|
|
1233
|
-
CustomFilterComponent.ɵfac =
|
|
1234
|
-
CustomFilterComponent.ɵcmp =
|
|
1235
|
-
|
|
1236
|
-
i0.ɵɵviewQuery(_c0$9, 7, ViewContainerRef);
|
|
1237
|
-
}
|
|
1238
|
-
if (rf & 2) {
|
|
1239
|
-
let _t;
|
|
1240
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dynamicTarget = _t.first);
|
|
1241
|
-
}
|
|
1242
|
-
}, inputs: { query: "query" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 2, vars: 0, consts: [["dynamicTarget", ""]], template: function CustomFilterComponent_Template(rf, ctx) {
|
|
1243
|
-
if (rf & 1) {
|
|
1244
|
-
i0.ɵɵtemplate(0, CustomFilterComponent_ng_template_0_Template, 0, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
1245
|
-
}
|
|
1246
|
-
}, encapsulation: 2 });
|
|
1247
|
-
(function () {
|
|
1248
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomFilterComponent, [{
|
|
913
|
+
CustomFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomFilterComponent, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
|
914
|
+
CustomFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CustomFilterComponent, selector: "custom-table-filter", inputs: { query: "query" }, 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 });
|
|
915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomFilterComponent, decorators: [{
|
|
1249
916
|
type: Component,
|
|
1250
917
|
args: [{
|
|
1251
918
|
selector: 'custom-table-filter',
|
|
1252
919
|
template: `<ng-template #dynamicTarget></ng-template>`,
|
|
1253
920
|
}]
|
|
1254
|
-
}], function () { return [{ type: i0.ComponentFactoryResolver }]; }, { query: [{
|
|
921
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }]; }, propDecorators: { query: [{
|
|
1255
922
|
type: Input
|
|
1256
923
|
}], dynamicTarget: [{
|
|
1257
924
|
type: ViewChild,
|
|
1258
925
|
args: ['dynamicTarget', { read: ViewContainerRef, static: true }]
|
|
1259
|
-
}] });
|
|
1260
|
-
})();
|
|
926
|
+
}] } });
|
|
1261
927
|
|
|
1262
|
-
function FilterComponent_div_0_custom_table_filter_1_Template(rf, ctx) {
|
|
1263
|
-
if (rf & 1) {
|
|
1264
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
1265
|
-
i0.ɵɵelementStart(0, "custom-table-filter", 4);
|
|
1266
|
-
i0.ɵɵlistener("filter", function FilterComponent_div_0_custom_table_filter_1_Template_custom_table_filter_filter_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.onFilter($event)); });
|
|
1267
|
-
i0.ɵɵelementEnd();
|
|
1268
|
-
}
|
|
1269
|
-
if (rf & 2) {
|
|
1270
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1271
|
-
i0.ɵɵproperty("query", ctx_r1.query)("column", ctx_r1.column)("source", ctx_r1.source)("inputClass", ctx_r1.inputClass);
|
|
1272
|
-
}
|
|
1273
|
-
}
|
|
1274
|
-
function FilterComponent_div_0_default_table_filter_2_Template(rf, ctx) {
|
|
1275
|
-
if (rf & 1) {
|
|
1276
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
1277
|
-
i0.ɵɵelementStart(0, "default-table-filter", 4);
|
|
1278
|
-
i0.ɵɵlistener("filter", function FilterComponent_div_0_default_table_filter_2_Template_default_table_filter_filter_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r5.onFilter($event)); });
|
|
1279
|
-
i0.ɵɵelementEnd();
|
|
1280
|
-
}
|
|
1281
|
-
if (rf & 2) {
|
|
1282
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1283
|
-
i0.ɵɵproperty("query", ctx_r2.query)("column", ctx_r2.column)("source", ctx_r2.source)("inputClass", ctx_r2.inputClass);
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
function FilterComponent_div_0_Template(rf, ctx) {
|
|
1287
|
-
if (rf & 1) {
|
|
1288
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
1289
|
-
i0.ɵɵtemplate(1, FilterComponent_div_0_custom_table_filter_1_Template, 1, 4, "custom-table-filter", 2);
|
|
1290
|
-
i0.ɵɵtemplate(2, FilterComponent_div_0_default_table_filter_2_Template, 1, 4, "default-table-filter", 3);
|
|
1291
|
-
i0.ɵɵelementEnd();
|
|
1292
|
-
}
|
|
1293
|
-
if (rf & 2) {
|
|
1294
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1295
|
-
i0.ɵɵproperty("ngSwitch", ctx_r0.column.getFilterType());
|
|
1296
|
-
i0.ɵɵadvance(1);
|
|
1297
|
-
i0.ɵɵproperty("ngSwitchCase", "custom");
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
928
|
class FilterComponent extends FilterDefault {
|
|
1301
929
|
constructor() {
|
|
1302
930
|
super(...arguments);
|
|
@@ -1325,17 +953,26 @@ class FilterComponent extends FilterDefault {
|
|
|
1325
953
|
}
|
|
1326
954
|
}
|
|
1327
955
|
}
|
|
1328
|
-
FilterComponent.ɵfac =
|
|
1329
|
-
FilterComponent.ɵcmp =
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
956
|
+
FilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
957
|
+
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: `
|
|
958
|
+
<div class="ng2-smart-filter" *ngIf="column.isFilterable" [ngSwitch]="column.getFilterType()">
|
|
959
|
+
<custom-table-filter *ngSwitchCase="'custom'"
|
|
960
|
+
[query]="query"
|
|
961
|
+
[column]="column"
|
|
962
|
+
[source]="source"
|
|
963
|
+
[inputClass]="inputClass"
|
|
964
|
+
(filter)="onFilter($event)">
|
|
965
|
+
</custom-table-filter>
|
|
966
|
+
<default-table-filter *ngSwitchDefault
|
|
967
|
+
[query]="query"
|
|
968
|
+
[column]="column"
|
|
969
|
+
[source]="source"
|
|
970
|
+
[inputClass]="inputClass"
|
|
971
|
+
(filter)="onFilter($event)">
|
|
972
|
+
</default-table-filter>
|
|
973
|
+
</div>
|
|
974
|
+
`, 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", inputs: ["query"] }, { kind: "component", type: CustomFilterComponent, selector: "custom-table-filter", inputs: ["query"] }] });
|
|
975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterComponent, decorators: [{
|
|
1339
976
|
type: Component,
|
|
1340
977
|
args: [{ selector: 'ng2-smart-table-filter', template: `
|
|
1341
978
|
<div class="ng2-smart-filter" *ngIf="column.isFilterable" [ngSwitch]="column.getFilterType()">
|
|
@@ -1355,8 +992,7 @@ FilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilterCompo
|
|
|
1355
992
|
</default-table-filter>
|
|
1356
993
|
</div>
|
|
1357
994
|
`, 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"] }]
|
|
1358
|
-
}]
|
|
1359
|
-
})();
|
|
995
|
+
}] });
|
|
1360
996
|
|
|
1361
997
|
const FILTER_COMPONENTS = [
|
|
1362
998
|
FilterDefault,
|
|
@@ -1371,13 +1007,30 @@ const FILTER_COMPONENTS = [
|
|
|
1371
1007
|
];
|
|
1372
1008
|
class FilterModule {
|
|
1373
1009
|
}
|
|
1374
|
-
FilterModule.ɵfac =
|
|
1375
|
-
FilterModule.ɵmod =
|
|
1376
|
-
|
|
1010
|
+
FilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1011
|
+
FilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, declarations: [FilterDefault,
|
|
1012
|
+
DefaultFilter,
|
|
1013
|
+
FilterComponent,
|
|
1014
|
+
DefaultFilterComponent,
|
|
1015
|
+
CustomFilterComponent,
|
|
1016
|
+
CheckboxFilterComponent,
|
|
1017
|
+
CompleterFilterComponent,
|
|
1018
|
+
InputFilterComponent,
|
|
1019
|
+
SelectFilterComponent], imports: [CommonModule,
|
|
1020
|
+
FormsModule,
|
|
1021
|
+
ReactiveFormsModule], exports: [FilterDefault,
|
|
1022
|
+
DefaultFilter,
|
|
1023
|
+
FilterComponent,
|
|
1024
|
+
DefaultFilterComponent,
|
|
1025
|
+
CustomFilterComponent,
|
|
1026
|
+
CheckboxFilterComponent,
|
|
1027
|
+
CompleterFilterComponent,
|
|
1028
|
+
InputFilterComponent,
|
|
1029
|
+
SelectFilterComponent] });
|
|
1030
|
+
FilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, imports: [CommonModule,
|
|
1377
1031
|
FormsModule,
|
|
1378
1032
|
ReactiveFormsModule] });
|
|
1379
|
-
(
|
|
1380
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilterModule, [{
|
|
1033
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, decorators: [{
|
|
1381
1034
|
type: NgModule,
|
|
1382
1035
|
args: [{
|
|
1383
1036
|
imports: [
|
|
@@ -1392,160 +1045,8 @@ FilterModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModul
|
|
|
1392
1045
|
...FILTER_COMPONENTS,
|
|
1393
1046
|
],
|
|
1394
1047
|
}]
|
|
1395
|
-
}]
|
|
1396
|
-
})();
|
|
1397
|
-
(function () {
|
|
1398
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FilterModule, { declarations: [FilterDefault,
|
|
1399
|
-
DefaultFilter,
|
|
1400
|
-
FilterComponent,
|
|
1401
|
-
DefaultFilterComponent,
|
|
1402
|
-
CustomFilterComponent,
|
|
1403
|
-
CheckboxFilterComponent,
|
|
1404
|
-
CompleterFilterComponent,
|
|
1405
|
-
InputFilterComponent,
|
|
1406
|
-
SelectFilterComponent], imports: [CommonModule,
|
|
1407
|
-
FormsModule,
|
|
1408
|
-
ReactiveFormsModule], exports: [FilterDefault,
|
|
1409
|
-
DefaultFilter,
|
|
1410
|
-
FilterComponent,
|
|
1411
|
-
DefaultFilterComponent,
|
|
1412
|
-
CustomFilterComponent,
|
|
1413
|
-
CheckboxFilterComponent,
|
|
1414
|
-
CompleterFilterComponent,
|
|
1415
|
-
InputFilterComponent,
|
|
1416
|
-
SelectFilterComponent] });
|
|
1417
|
-
})();
|
|
1048
|
+
}] });
|
|
1418
1049
|
|
|
1419
|
-
function PagerComponent_nav_0_li_14_span_1_Template(rf, ctx) {
|
|
1420
|
-
if (rf & 1) {
|
|
1421
|
-
i0.ɵɵelementStart(0, "span", 14);
|
|
1422
|
-
i0.ɵɵtext(1);
|
|
1423
|
-
i0.ɵɵelementStart(2, "span", 7);
|
|
1424
|
-
i0.ɵɵtext(3, "(current)");
|
|
1425
|
-
i0.ɵɵelementEnd()();
|
|
1426
|
-
}
|
|
1427
|
-
if (rf & 2) {
|
|
1428
|
-
const page_r3 = i0.ɵɵnextContext().$implicit;
|
|
1429
|
-
i0.ɵɵadvance(1);
|
|
1430
|
-
i0.ɵɵtextInterpolate1("", page_r3, " ");
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
function PagerComponent_nav_0_li_14_a_2_Template(rf, ctx) {
|
|
1434
|
-
if (rf & 1) {
|
|
1435
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
1436
|
-
i0.ɵɵelementStart(0, "a", 15);
|
|
1437
|
-
i0.ɵɵlistener("click", function PagerComponent_nav_0_li_14_a_2_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r9); const page_r3 = i0.ɵɵnextContext().$implicit; const ctx_r7 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r7.paginate(page_r3)); });
|
|
1438
|
-
i0.ɵɵtext(1);
|
|
1439
|
-
i0.ɵɵelementEnd();
|
|
1440
|
-
}
|
|
1441
|
-
if (rf & 2) {
|
|
1442
|
-
const page_r3 = i0.ɵɵnextContext().$implicit;
|
|
1443
|
-
i0.ɵɵadvance(1);
|
|
1444
|
-
i0.ɵɵtextInterpolate(page_r3);
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
const _c0$8 = function (a0) { return { active: a0 }; };
|
|
1448
|
-
function PagerComponent_nav_0_li_14_Template(rf, ctx) {
|
|
1449
|
-
if (rf & 1) {
|
|
1450
|
-
i0.ɵɵelementStart(0, "li", 4);
|
|
1451
|
-
i0.ɵɵtemplate(1, PagerComponent_nav_0_li_14_span_1_Template, 4, 1, "span", 12);
|
|
1452
|
-
i0.ɵɵtemplate(2, PagerComponent_nav_0_li_14_a_2_Template, 2, 1, "a", 13);
|
|
1453
|
-
i0.ɵɵelementEnd();
|
|
1454
|
-
}
|
|
1455
|
-
if (rf & 2) {
|
|
1456
|
-
const page_r3 = ctx.$implicit;
|
|
1457
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1458
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$8, ctx_r2.getPage() == page_r3));
|
|
1459
|
-
i0.ɵɵadvance(1);
|
|
1460
|
-
i0.ɵɵproperty("ngIf", ctx_r2.getPage() == page_r3);
|
|
1461
|
-
i0.ɵɵadvance(1);
|
|
1462
|
-
i0.ɵɵproperty("ngIf", ctx_r2.getPage() != page_r3);
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
const _c1$1 = function (a0) { return { disabled: a0 }; };
|
|
1466
|
-
function PagerComponent_nav_0_Template(rf, ctx) {
|
|
1467
|
-
if (rf & 1) {
|
|
1468
|
-
const _r12 = i0.ɵɵgetCurrentView();
|
|
1469
|
-
i0.ɵɵelementStart(0, "nav", 2)(1, "ul", 3)(2, "li", 4)(3, "a", 5);
|
|
1470
|
-
i0.ɵɵlistener("click", function PagerComponent_nav_0_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.getPage() == 1 ? false : ctx_r11.paginate(1)); });
|
|
1471
|
-
i0.ɵɵelementStart(4, "span", 6);
|
|
1472
|
-
i0.ɵɵtext(5, "\u00AB");
|
|
1473
|
-
i0.ɵɵelementEnd();
|
|
1474
|
-
i0.ɵɵelementStart(6, "span", 7);
|
|
1475
|
-
i0.ɵɵtext(7, "First");
|
|
1476
|
-
i0.ɵɵelementEnd()()();
|
|
1477
|
-
i0.ɵɵelementStart(8, "li", 4)(9, "a", 8);
|
|
1478
|
-
i0.ɵɵlistener("click", function PagerComponent_nav_0_Template_a_click_9_listener() { i0.ɵɵrestoreView(_r12); const ctx_r13 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r13.getPage() == 1 ? false : ctx_r13.prev()); });
|
|
1479
|
-
i0.ɵɵelementStart(10, "span", 6);
|
|
1480
|
-
i0.ɵɵtext(11, "<");
|
|
1481
|
-
i0.ɵɵelementEnd();
|
|
1482
|
-
i0.ɵɵelementStart(12, "span", 7);
|
|
1483
|
-
i0.ɵɵtext(13, "Prev");
|
|
1484
|
-
i0.ɵɵelementEnd()()();
|
|
1485
|
-
i0.ɵɵtemplate(14, PagerComponent_nav_0_li_14_Template, 3, 5, "li", 9);
|
|
1486
|
-
i0.ɵɵelementStart(15, "li", 4)(16, "a", 10);
|
|
1487
|
-
i0.ɵɵlistener("click", function PagerComponent_nav_0_Template_a_click_16_listener() { i0.ɵɵrestoreView(_r12); const ctx_r14 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r14.getPage() == ctx_r14.getLast() ? false : ctx_r14.next()); });
|
|
1488
|
-
i0.ɵɵelementStart(17, "span", 6);
|
|
1489
|
-
i0.ɵɵtext(18, ">");
|
|
1490
|
-
i0.ɵɵelementEnd();
|
|
1491
|
-
i0.ɵɵelementStart(19, "span", 7);
|
|
1492
|
-
i0.ɵɵtext(20, "Next");
|
|
1493
|
-
i0.ɵɵelementEnd()()();
|
|
1494
|
-
i0.ɵɵelementStart(21, "li", 4)(22, "a", 11);
|
|
1495
|
-
i0.ɵɵlistener("click", function PagerComponent_nav_0_Template_a_click_22_listener() { i0.ɵɵrestoreView(_r12); const ctx_r15 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r15.getPage() == ctx_r15.getLast() ? false : ctx_r15.paginate(ctx_r15.getLast())); });
|
|
1496
|
-
i0.ɵɵelementStart(23, "span", 6);
|
|
1497
|
-
i0.ɵɵtext(24, "\u00BB");
|
|
1498
|
-
i0.ɵɵelementEnd();
|
|
1499
|
-
i0.ɵɵelementStart(25, "span", 7);
|
|
1500
|
-
i0.ɵɵtext(26, "Last");
|
|
1501
|
-
i0.ɵɵelementEnd()()()()();
|
|
1502
|
-
}
|
|
1503
|
-
if (rf & 2) {
|
|
1504
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1505
|
-
i0.ɵɵadvance(2);
|
|
1506
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c1$1, ctx_r0.getPage() == 1));
|
|
1507
|
-
i0.ɵɵadvance(6);
|
|
1508
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$1, ctx_r0.getPage() == 1));
|
|
1509
|
-
i0.ɵɵadvance(6);
|
|
1510
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.getPages());
|
|
1511
|
-
i0.ɵɵadvance(1);
|
|
1512
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$1, ctx_r0.getPage() == ctx_r0.getLast()));
|
|
1513
|
-
i0.ɵɵadvance(6);
|
|
1514
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$1, ctx_r0.getPage() == ctx_r0.getLast()));
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
function PagerComponent_nav_1_option_4_Template(rf, ctx) {
|
|
1518
|
-
if (rf & 1) {
|
|
1519
|
-
i0.ɵɵelementStart(0, "option", 20);
|
|
1520
|
-
i0.ɵɵtext(1);
|
|
1521
|
-
i0.ɵɵelementEnd();
|
|
1522
|
-
}
|
|
1523
|
-
if (rf & 2) {
|
|
1524
|
-
const item_r17 = ctx.$implicit;
|
|
1525
|
-
i0.ɵɵproperty("value", item_r17);
|
|
1526
|
-
i0.ɵɵadvance(1);
|
|
1527
|
-
i0.ɵɵtextInterpolate(item_r17);
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
function PagerComponent_nav_1_Template(rf, ctx) {
|
|
1531
|
-
if (rf & 1) {
|
|
1532
|
-
const _r19 = i0.ɵɵgetCurrentView();
|
|
1533
|
-
i0.ɵɵelementStart(0, "nav", 16)(1, "label", 17);
|
|
1534
|
-
i0.ɵɵtext(2, " Per Page: ");
|
|
1535
|
-
i0.ɵɵelementEnd();
|
|
1536
|
-
i0.ɵɵelementStart(3, "select", 18);
|
|
1537
|
-
i0.ɵɵlistener("change", function PagerComponent_nav_1_Template_select_change_3_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r18.onChangePerPage($event)); })("ngModelChange", function PagerComponent_nav_1_Template_select_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r20 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r20.currentPerPage = $event); });
|
|
1538
|
-
i0.ɵɵtemplate(4, PagerComponent_nav_1_option_4_Template, 2, 2, "option", 19);
|
|
1539
|
-
i0.ɵɵelementEnd()();
|
|
1540
|
-
}
|
|
1541
|
-
if (rf & 2) {
|
|
1542
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
1543
|
-
i0.ɵɵadvance(3);
|
|
1544
|
-
i0.ɵɵproperty("ngModel", ctx_r1.currentPerPage);
|
|
1545
|
-
i0.ɵɵadvance(1);
|
|
1546
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.perPageSelect);
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
1050
|
class PagerComponent {
|
|
1550
1051
|
constructor() {
|
|
1551
1052
|
this.perPageSelect = [];
|
|
@@ -1640,20 +1141,62 @@ class PagerComponent {
|
|
|
1640
1141
|
}
|
|
1641
1142
|
}
|
|
1642
1143
|
}
|
|
1643
|
-
PagerComponent.ɵfac =
|
|
1644
|
-
PagerComponent.ɵcmp =
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1144
|
+
PagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1145
|
+
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: `
|
|
1146
|
+
<nav *ngIf="shouldShow()" class="ng2-smart-pagination-nav">
|
|
1147
|
+
<ul class="ng2-smart-pagination pagination">
|
|
1148
|
+
<li class="ng2-smart-page-item page-item" [ngClass]="{disabled: getPage() == 1}">
|
|
1149
|
+
<a class="ng2-smart-page-link page-link" href="#"
|
|
1150
|
+
(click)="getPage() == 1 ? false : paginate(1)" aria-label="First">
|
|
1151
|
+
<span aria-hidden="true">«</span>
|
|
1152
|
+
<span class="sr-only">First</span>
|
|
1153
|
+
</a>
|
|
1154
|
+
</li>
|
|
1155
|
+
<li class="ng2-smart-page-item page-item" [ngClass]="{disabled: getPage() == 1}">
|
|
1156
|
+
<a class="ng2-smart-page-link page-link page-link-prev" href="#"
|
|
1157
|
+
(click)="getPage() == 1 ? false : prev()" aria-label="Prev">
|
|
1158
|
+
<span aria-hidden="true"><</span>
|
|
1159
|
+
<span class="sr-only">Prev</span>
|
|
1160
|
+
</a>
|
|
1161
|
+
</li>
|
|
1162
|
+
<li class="ng2-smart-page-item page-item"
|
|
1163
|
+
[ngClass]="{active: getPage() == page}" *ngFor="let page of getPages()">
|
|
1164
|
+
<span class="ng2-smart-page-link page-link"
|
|
1165
|
+
*ngIf="getPage() == page">{{ page }} <span class="sr-only">(current)</span></span>
|
|
1166
|
+
<a class="ng2-smart-page-link page-link" href="#"
|
|
1167
|
+
(click)="paginate(page)" *ngIf="getPage() != page">{{ page }}</a>
|
|
1168
|
+
</li>
|
|
1169
|
+
|
|
1170
|
+
<li class="ng2-smart-page-item page-item"
|
|
1171
|
+
[ngClass]="{disabled: getPage() == getLast()}">
|
|
1172
|
+
<a class="ng2-smart-page-link page-link page-link-next" href="#"
|
|
1173
|
+
(click)="getPage() == getLast() ? false : next()" aria-label="Next">
|
|
1174
|
+
<span aria-hidden="true">></span>
|
|
1175
|
+
<span class="sr-only">Next</span>
|
|
1176
|
+
</a>
|
|
1177
|
+
</li>
|
|
1178
|
+
|
|
1179
|
+
<li class="ng2-smart-page-item page-item"
|
|
1180
|
+
[ngClass]="{disabled: getPage() == getLast()}">
|
|
1181
|
+
<a class="ng2-smart-page-link page-link" href="#"
|
|
1182
|
+
(click)="getPage() == getLast() ? false : paginate(getLast())" aria-label="Last">
|
|
1183
|
+
<span aria-hidden="true">»</span>
|
|
1184
|
+
<span class="sr-only">Last</span>
|
|
1185
|
+
</a>
|
|
1186
|
+
</li>
|
|
1187
|
+
</ul>
|
|
1188
|
+
</nav>
|
|
1189
|
+
|
|
1190
|
+
<nav *ngIf="perPageSelect && perPageSelect.length > 0" class="ng2-smart-pagination-per-page">
|
|
1191
|
+
<label for="per-page">
|
|
1192
|
+
Per Page:
|
|
1193
|
+
</label>
|
|
1194
|
+
<select (change)="onChangePerPage($event)" [(ngModel)]="currentPerPage" id="per-page">
|
|
1195
|
+
<option *ngFor="let item of perPageSelect" [value]="item">{{ item }}</option>
|
|
1196
|
+
</select>
|
|
1197
|
+
</nav>
|
|
1198
|
+
`, 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"] }] });
|
|
1199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerComponent, decorators: [{
|
|
1657
1200
|
type: Component,
|
|
1658
1201
|
args: [{ selector: 'ng2-smart-table-pager', template: `
|
|
1659
1202
|
<nav *ngIf="shouldShow()" class="ng2-smart-pagination-nav">
|
|
@@ -1709,23 +1252,22 @@ PagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PagerCompone
|
|
|
1709
1252
|
</select>
|
|
1710
1253
|
</nav>
|
|
1711
1254
|
`, 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"] }]
|
|
1712
|
-
}],
|
|
1255
|
+
}], propDecorators: { source: [{
|
|
1713
1256
|
type: Input
|
|
1714
1257
|
}], perPageSelect: [{
|
|
1715
1258
|
type: Input
|
|
1716
1259
|
}], changePage: [{
|
|
1717
1260
|
type: Output
|
|
1718
|
-
}] });
|
|
1719
|
-
})();
|
|
1261
|
+
}] } });
|
|
1720
1262
|
|
|
1721
1263
|
class PagerModule {
|
|
1722
1264
|
}
|
|
1723
|
-
PagerModule.ɵfac =
|
|
1724
|
-
PagerModule.ɵmod =
|
|
1725
|
-
|
|
1265
|
+
PagerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1266
|
+
PagerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, declarations: [PagerComponent], imports: [CommonModule,
|
|
1267
|
+
FormsModule], exports: [PagerComponent] });
|
|
1268
|
+
PagerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, imports: [CommonModule,
|
|
1726
1269
|
FormsModule] });
|
|
1727
|
-
(
|
|
1728
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PagerModule, [{
|
|
1270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, decorators: [{
|
|
1729
1271
|
type: NgModule,
|
|
1730
1272
|
args: [{
|
|
1731
1273
|
imports: [
|
|
@@ -1739,12 +1281,7 @@ PagerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
|
|
|
1739
1281
|
PagerComponent,
|
|
1740
1282
|
],
|
|
1741
1283
|
}]
|
|
1742
|
-
}]
|
|
1743
|
-
})();
|
|
1744
|
-
(function () {
|
|
1745
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PagerModule, { declarations: [PagerComponent], imports: [CommonModule,
|
|
1746
|
-
FormsModule], exports: [PagerComponent] });
|
|
1747
|
-
})();
|
|
1284
|
+
}] });
|
|
1748
1285
|
|
|
1749
1286
|
class TbodyCreateCancelComponent {
|
|
1750
1287
|
onSave(event) {
|
|
@@ -1763,24 +1300,14 @@ class TbodyCreateCancelComponent {
|
|
|
1763
1300
|
this.cancelButtonContent = this.grid.getSetting('edit.cancelButtonContent');
|
|
1764
1301
|
}
|
|
1765
1302
|
}
|
|
1766
|
-
TbodyCreateCancelComponent.ɵfac =
|
|
1767
|
-
TbodyCreateCancelComponent.ɵcmp =
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
i0.ɵɵelementEnd();
|
|
1775
|
-
}
|
|
1776
|
-
if (rf & 2) {
|
|
1777
|
-
i0.ɵɵproperty("innerHTML", ctx.saveButtonContent, i0.ɵɵsanitizeHtml);
|
|
1778
|
-
i0.ɵɵadvance(1);
|
|
1779
|
-
i0.ɵɵproperty("innerHTML", ctx.cancelButtonContent, i0.ɵɵsanitizeHtml);
|
|
1780
|
-
}
|
|
1781
|
-
}, encapsulation: 2 });
|
|
1782
|
-
(function () {
|
|
1783
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TbodyCreateCancelComponent, [{
|
|
1303
|
+
TbodyCreateCancelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCreateCancelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1304
|
+
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: `
|
|
1305
|
+
<a href="#" class="ng2-smart-action ng2-smart-action-edit-save"
|
|
1306
|
+
[innerHTML]="saveButtonContent" (click)="onSave($event)"></a>
|
|
1307
|
+
<a href="#" class="ng2-smart-action ng2-smart-action-edit-cancel"
|
|
1308
|
+
[innerHTML]="cancelButtonContent" (click)="onCancelEdit($event)"></a>
|
|
1309
|
+
`, isInline: true });
|
|
1310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCreateCancelComponent, decorators: [{
|
|
1784
1311
|
type: Component,
|
|
1785
1312
|
args: [{
|
|
1786
1313
|
selector: 'ng2-st-tbody-create-cancel',
|
|
@@ -1791,7 +1318,7 @@ TbodyCreateCancelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
1791
1318
|
[innerHTML]="cancelButtonContent" (click)="onCancelEdit($event)"></a>
|
|
1792
1319
|
`,
|
|
1793
1320
|
}]
|
|
1794
|
-
}],
|
|
1321
|
+
}], propDecorators: { grid: [{
|
|
1795
1322
|
type: Input
|
|
1796
1323
|
}], row: [{
|
|
1797
1324
|
type: Input
|
|
@@ -1799,33 +1326,8 @@ TbodyCreateCancelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
1799
1326
|
type: Input
|
|
1800
1327
|
}], editCancel: [{
|
|
1801
1328
|
type: Input
|
|
1802
|
-
}] });
|
|
1803
|
-
})();
|
|
1329
|
+
}] } });
|
|
1804
1330
|
|
|
1805
|
-
function TbodyEditDeleteComponent_a_0_Template(rf, ctx) {
|
|
1806
|
-
if (rf & 1) {
|
|
1807
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
1808
|
-
i0.ɵɵelementStart(0, "a", 2);
|
|
1809
|
-
i0.ɵɵlistener("click", function TbodyEditDeleteComponent_a_0_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onEdit($event)); });
|
|
1810
|
-
i0.ɵɵelementEnd();
|
|
1811
|
-
}
|
|
1812
|
-
if (rf & 2) {
|
|
1813
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
1814
|
-
i0.ɵɵproperty("innerHTML", ctx_r0.editRowButtonContent, i0.ɵɵsanitizeHtml);
|
|
1815
|
-
}
|
|
1816
|
-
}
|
|
1817
|
-
function TbodyEditDeleteComponent_a_1_Template(rf, ctx) {
|
|
1818
|
-
if (rf & 1) {
|
|
1819
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
1820
|
-
i0.ɵɵelementStart(0, "a", 3);
|
|
1821
|
-
i0.ɵɵlistener("click", function TbodyEditDeleteComponent_a_1_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onDelete($event)); });
|
|
1822
|
-
i0.ɵɵelementEnd();
|
|
1823
|
-
}
|
|
1824
|
-
if (rf & 2) {
|
|
1825
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
1826
|
-
i0.ɵɵproperty("innerHTML", ctx_r1.deleteRowButtonContent, i0.ɵɵsanitizeHtml);
|
|
1827
|
-
}
|
|
1828
|
-
}
|
|
1829
1331
|
class TbodyEditDeleteComponent {
|
|
1830
1332
|
constructor() {
|
|
1831
1333
|
this.edit = new EventEmitter();
|
|
@@ -1864,20 +1366,14 @@ class TbodyEditDeleteComponent {
|
|
|
1864
1366
|
this.deleteRowButtonContent = this.grid.getSetting('delete.deleteButtonContent');
|
|
1865
1367
|
}
|
|
1866
1368
|
}
|
|
1867
|
-
TbodyEditDeleteComponent.ɵfac =
|
|
1868
|
-
TbodyEditDeleteComponent.ɵcmp =
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
i0.ɵɵadvance(1);
|
|
1876
|
-
i0.ɵɵproperty("ngIf", ctx.isActionDelete);
|
|
1877
|
-
}
|
|
1878
|
-
}, dependencies: [i1.NgIf], encapsulation: 2, changeDetection: 0 });
|
|
1879
|
-
(function () {
|
|
1880
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TbodyEditDeleteComponent, [{
|
|
1369
|
+
TbodyEditDeleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyEditDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1370
|
+
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: `
|
|
1371
|
+
<a href="#" *ngIf="isActionEdit" class="ng2-smart-action ng2-smart-action-edit-edit"
|
|
1372
|
+
[innerHTML]="editRowButtonContent" (click)="onEdit($event)"></a>
|
|
1373
|
+
<a href="#" *ngIf="isActionDelete" class="ng2-smart-action ng2-smart-action-delete-delete"
|
|
1374
|
+
[innerHTML]="deleteRowButtonContent" (click)="onDelete($event)"></a>
|
|
1375
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyEditDeleteComponent, decorators: [{
|
|
1881
1377
|
type: Component,
|
|
1882
1378
|
args: [{
|
|
1883
1379
|
selector: 'ng2-st-tbody-edit-delete',
|
|
@@ -1889,7 +1385,7 @@ TbodyEditDeleteComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Tb
|
|
|
1889
1385
|
[innerHTML]="deleteRowButtonContent" (click)="onDelete($event)"></a>
|
|
1890
1386
|
`,
|
|
1891
1387
|
}]
|
|
1892
|
-
}],
|
|
1388
|
+
}], propDecorators: { grid: [{
|
|
1893
1389
|
type: Input
|
|
1894
1390
|
}], row: [{
|
|
1895
1391
|
type: Input
|
|
@@ -1905,21 +1401,8 @@ TbodyEditDeleteComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Tb
|
|
|
1905
1401
|
type: Output
|
|
1906
1402
|
}], editRowSelect: [{
|
|
1907
1403
|
type: Output
|
|
1908
|
-
}] });
|
|
1909
|
-
})();
|
|
1404
|
+
}] } });
|
|
1910
1405
|
|
|
1911
|
-
function TbodyCustomComponent_a_0_Template(rf, ctx) {
|
|
1912
|
-
if (rf & 1) {
|
|
1913
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
1914
|
-
i0.ɵɵelementStart(0, "a", 1);
|
|
1915
|
-
i0.ɵɵlistener("click", function TbodyCustomComponent_a_0_Template_a_click_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r3); const action_r1 = restoredCtx.$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onCustom(action_r1, $event)); });
|
|
1916
|
-
i0.ɵɵelementEnd();
|
|
1917
|
-
}
|
|
1918
|
-
if (rf & 2) {
|
|
1919
|
-
const action_r1 = ctx.$implicit;
|
|
1920
|
-
i0.ɵɵproperty("innerHTML", action_r1.title, i0.ɵɵsanitizeHtml);
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
1406
|
class TbodyCustomComponent {
|
|
1924
1407
|
constructor() {
|
|
1925
1408
|
this.custom = new EventEmitter();
|
|
@@ -1934,17 +1417,14 @@ class TbodyCustomComponent {
|
|
|
1934
1417
|
});
|
|
1935
1418
|
}
|
|
1936
1419
|
}
|
|
1937
|
-
TbodyCustomComponent.ɵfac =
|
|
1938
|
-
TbodyCustomComponent.ɵcmp =
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
}, dependencies: [i1.NgForOf], encapsulation: 2, changeDetection: 0 });
|
|
1946
|
-
(function () {
|
|
1947
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TbodyCustomComponent, [{
|
|
1420
|
+
TbodyCustomComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCustomComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1421
|
+
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: `
|
|
1422
|
+
<a *ngFor="let action of grid.getSetting('actions.custom')" href="#"
|
|
1423
|
+
class="ng2-smart-action ng2-smart-action-custom-custom"
|
|
1424
|
+
[innerHTML]="action.title"
|
|
1425
|
+
(click)="onCustom(action, $event)"></a>
|
|
1426
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCustomComponent, decorators: [{
|
|
1948
1428
|
type: Component,
|
|
1949
1429
|
args: [{
|
|
1950
1430
|
selector: 'ng2-st-tbody-custom',
|
|
@@ -1956,7 +1436,7 @@ TbodyCustomComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TbodyC
|
|
|
1956
1436
|
(click)="onCustom(action, $event)"></a>
|
|
1957
1437
|
`
|
|
1958
1438
|
}]
|
|
1959
|
-
}],
|
|
1439
|
+
}], propDecorators: { grid: [{
|
|
1960
1440
|
type: Input
|
|
1961
1441
|
}], row: [{
|
|
1962
1442
|
type: Input
|
|
@@ -1964,150 +1444,8 @@ TbodyCustomComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TbodyC
|
|
|
1964
1444
|
type: Input
|
|
1965
1445
|
}], custom: [{
|
|
1966
1446
|
type: Output
|
|
1967
|
-
}] });
|
|
1968
|
-
})();
|
|
1447
|
+
}] } });
|
|
1969
1448
|
|
|
1970
|
-
const _c0$7 = ["ng2-st-tbody", ""];
|
|
1971
|
-
function Ng2SmartTableTbodyComponent_tr_0_td_1_Template(rf, ctx) {
|
|
1972
|
-
if (rf & 1) {
|
|
1973
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
1974
|
-
i0.ɵɵelementStart(0, "td", 7);
|
|
1975
|
-
i0.ɵɵlistener("click", function Ng2SmartTableTbodyComponent_tr_0_td_1_Template_td_click_0_listener($event) { i0.ɵɵrestoreView(_r11); const row_r2 = i0.ɵɵnextContext().$implicit; const ctx_r9 = i0.ɵɵnextContext(); ctx_r9.multipleSelectRow.emit(row_r2); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
1976
|
-
i0.ɵɵelement(1, "input", 8);
|
|
1977
|
-
i0.ɵɵelementEnd();
|
|
1978
|
-
}
|
|
1979
|
-
if (rf & 2) {
|
|
1980
|
-
const row_r2 = i0.ɵɵnextContext().$implicit;
|
|
1981
|
-
i0.ɵɵadvance(1);
|
|
1982
|
-
i0.ɵɵproperty("ngModel", row_r2.isSelected);
|
|
1983
|
-
}
|
|
1984
|
-
}
|
|
1985
|
-
function Ng2SmartTableTbodyComponent_tr_0_td_2_Template(rf, ctx) {
|
|
1986
|
-
if (rf & 1) {
|
|
1987
|
-
const _r15 = i0.ɵɵgetCurrentView();
|
|
1988
|
-
i0.ɵɵelementStart(0, "td", 9);
|
|
1989
|
-
i0.ɵɵlistener("click", function Ng2SmartTableTbodyComponent_tr_0_td_2_Template_td_click_0_listener($event) { return $event.stopPropagation(); });
|
|
1990
|
-
i0.ɵɵelementStart(1, "ng2-st-tbody-custom", 10);
|
|
1991
|
-
i0.ɵɵlistener("custom", function Ng2SmartTableTbodyComponent_tr_0_td_2_Template_ng2_st_tbody_custom_custom_1_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r14 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r14.custom.emit($event)); });
|
|
1992
|
-
i0.ɵɵelementEnd();
|
|
1993
|
-
i0.ɵɵelementStart(2, "ng2-st-tbody-edit-delete", 11);
|
|
1994
|
-
i0.ɵɵlistener("edit", function Ng2SmartTableTbodyComponent_tr_0_td_2_Template_ng2_st_tbody_edit_delete_edit_2_listener() { i0.ɵɵrestoreView(_r15); const row_r2 = i0.ɵɵnextContext().$implicit; const ctx_r16 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r16.edit.emit(row_r2)); })("delete", function Ng2SmartTableTbodyComponent_tr_0_td_2_Template_ng2_st_tbody_edit_delete_delete_2_listener() { i0.ɵɵrestoreView(_r15); const row_r2 = i0.ɵɵnextContext().$implicit; const ctx_r18 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r18.delete.emit(row_r2)); })("editRowSelect", function Ng2SmartTableTbodyComponent_tr_0_td_2_Template_ng2_st_tbody_edit_delete_editRowSelect_2_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r20 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r20.editRowSelect.emit($event)); });
|
|
1995
|
-
i0.ɵɵelementEnd()();
|
|
1996
|
-
}
|
|
1997
|
-
if (rf & 2) {
|
|
1998
|
-
const row_r2 = i0.ɵɵnextContext().$implicit;
|
|
1999
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
|
2000
|
-
i0.ɵɵadvance(1);
|
|
2001
|
-
i0.ɵɵproperty("grid", ctx_r4.grid)("row", row_r2)("source", ctx_r4.source);
|
|
2002
|
-
i0.ɵɵadvance(1);
|
|
2003
|
-
i0.ɵɵproperty("grid", ctx_r4.grid)("deleteConfirm", ctx_r4.deleteConfirm)("editConfirm", ctx_r4.editConfirm)("row", row_r2)("source", ctx_r4.source);
|
|
2004
|
-
}
|
|
2005
|
-
}
|
|
2006
|
-
function Ng2SmartTableTbodyComponent_tr_0_td_3_Template(rf, ctx) {
|
|
2007
|
-
if (rf & 1) {
|
|
2008
|
-
i0.ɵɵelementStart(0, "td", 12);
|
|
2009
|
-
i0.ɵɵelement(1, "ng2-st-tbody-create-cancel", 13);
|
|
2010
|
-
i0.ɵɵelementEnd();
|
|
2011
|
-
}
|
|
2012
|
-
if (rf & 2) {
|
|
2013
|
-
const row_r2 = i0.ɵɵnextContext().$implicit;
|
|
2014
|
-
const ctx_r5 = i0.ɵɵnextContext();
|
|
2015
|
-
i0.ɵɵadvance(1);
|
|
2016
|
-
i0.ɵɵproperty("grid", ctx_r5.grid)("row", row_r2)("editConfirm", ctx_r5.editConfirm)("editCancel", ctx_r5.editCancel);
|
|
2017
|
-
}
|
|
2018
|
-
}
|
|
2019
|
-
function Ng2SmartTableTbodyComponent_tr_0_td_4_Template(rf, ctx) {
|
|
2020
|
-
if (rf & 1) {
|
|
2021
|
-
i0.ɵɵelementStart(0, "td");
|
|
2022
|
-
i0.ɵɵelement(1, "ng2-smart-table-cell", 14);
|
|
2023
|
-
i0.ɵɵelementEnd();
|
|
2024
|
-
}
|
|
2025
|
-
if (rf & 2) {
|
|
2026
|
-
const cell_r23 = ctx.$implicit;
|
|
2027
|
-
const row_r2 = i0.ɵɵnextContext().$implicit;
|
|
2028
|
-
const ctx_r6 = i0.ɵɵnextContext();
|
|
2029
|
-
i0.ɵɵadvance(1);
|
|
2030
|
-
i0.ɵɵproperty("cell", cell_r23)("grid", ctx_r6.grid)("row", row_r2)("isNew", false)("mode", ctx_r6.mode)("editConfirm", ctx_r6.editConfirm)("inputClass", ctx_r6.editInputClass)("isInEditing", row_r2.isInEditing);
|
|
2031
|
-
}
|
|
2032
|
-
}
|
|
2033
|
-
function Ng2SmartTableTbodyComponent_tr_0_td_5_Template(rf, ctx) {
|
|
2034
|
-
if (rf & 1) {
|
|
2035
|
-
i0.ɵɵelementStart(0, "td", 12);
|
|
2036
|
-
i0.ɵɵelement(1, "ng2-st-tbody-create-cancel", 15);
|
|
2037
|
-
i0.ɵɵelementEnd();
|
|
2038
|
-
}
|
|
2039
|
-
if (rf & 2) {
|
|
2040
|
-
const row_r2 = i0.ɵɵnextContext().$implicit;
|
|
2041
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
2042
|
-
i0.ɵɵadvance(1);
|
|
2043
|
-
i0.ɵɵproperty("grid", ctx_r7.grid)("row", row_r2)("editConfirm", ctx_r7.editConfirm);
|
|
2044
|
-
}
|
|
2045
|
-
}
|
|
2046
|
-
function Ng2SmartTableTbodyComponent_tr_0_td_6_Template(rf, ctx) {
|
|
2047
|
-
if (rf & 1) {
|
|
2048
|
-
const _r27 = i0.ɵɵgetCurrentView();
|
|
2049
|
-
i0.ɵɵelementStart(0, "td", 12)(1, "ng2-st-tbody-custom", 10);
|
|
2050
|
-
i0.ɵɵlistener("custom", function Ng2SmartTableTbodyComponent_tr_0_td_6_Template_ng2_st_tbody_custom_custom_1_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r26 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r26.custom.emit($event)); });
|
|
2051
|
-
i0.ɵɵelementEnd();
|
|
2052
|
-
i0.ɵɵelementStart(2, "ng2-st-tbody-edit-delete", 11);
|
|
2053
|
-
i0.ɵɵlistener("edit", function Ng2SmartTableTbodyComponent_tr_0_td_6_Template_ng2_st_tbody_edit_delete_edit_2_listener() { i0.ɵɵrestoreView(_r27); const row_r2 = i0.ɵɵnextContext().$implicit; const ctx_r28 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r28.edit.emit(row_r2)); })("delete", function Ng2SmartTableTbodyComponent_tr_0_td_6_Template_ng2_st_tbody_edit_delete_delete_2_listener() { i0.ɵɵrestoreView(_r27); const row_r2 = i0.ɵɵnextContext().$implicit; const ctx_r30 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r30.delete.emit(row_r2)); })("editRowSelect", function Ng2SmartTableTbodyComponent_tr_0_td_6_Template_ng2_st_tbody_edit_delete_editRowSelect_2_listener($event) { i0.ɵɵrestoreView(_r27); const ctx_r32 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r32.editRowSelect.emit($event)); });
|
|
2054
|
-
i0.ɵɵelementEnd()();
|
|
2055
|
-
}
|
|
2056
|
-
if (rf & 2) {
|
|
2057
|
-
const row_r2 = i0.ɵɵnextContext().$implicit;
|
|
2058
|
-
const ctx_r8 = i0.ɵɵnextContext();
|
|
2059
|
-
i0.ɵɵadvance(1);
|
|
2060
|
-
i0.ɵɵproperty("grid", ctx_r8.grid)("row", row_r2)("source", ctx_r8.source);
|
|
2061
|
-
i0.ɵɵadvance(1);
|
|
2062
|
-
i0.ɵɵproperty("grid", ctx_r8.grid)("deleteConfirm", ctx_r8.deleteConfirm)("editConfirm", ctx_r8.editConfirm)("row", row_r2)("source", ctx_r8.source);
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
2065
|
-
const _c1 = function (a0) { return { selected: a0 }; };
|
|
2066
|
-
function Ng2SmartTableTbodyComponent_tr_0_Template(rf, ctx) {
|
|
2067
|
-
if (rf & 1) {
|
|
2068
|
-
const _r35 = i0.ɵɵgetCurrentView();
|
|
2069
|
-
i0.ɵɵelementStart(0, "tr", 2);
|
|
2070
|
-
i0.ɵɵlistener("click", function Ng2SmartTableTbodyComponent_tr_0_Template_tr_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r35); const row_r2 = restoredCtx.$implicit; const ctx_r34 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r34.userClickedRow.emit(row_r2)); })("mouseover", function Ng2SmartTableTbodyComponent_tr_0_Template_tr_mouseover_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r35); const row_r2 = restoredCtx.$implicit; const ctx_r36 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r36.rowHover.emit(row_r2)); });
|
|
2071
|
-
i0.ɵɵtemplate(1, Ng2SmartTableTbodyComponent_tr_0_td_1_Template, 2, 1, "td", 3);
|
|
2072
|
-
i0.ɵɵtemplate(2, Ng2SmartTableTbodyComponent_tr_0_td_2_Template, 3, 8, "td", 4);
|
|
2073
|
-
i0.ɵɵtemplate(3, Ng2SmartTableTbodyComponent_tr_0_td_3_Template, 2, 4, "td", 5);
|
|
2074
|
-
i0.ɵɵtemplate(4, Ng2SmartTableTbodyComponent_tr_0_td_4_Template, 2, 8, "td", 6);
|
|
2075
|
-
i0.ɵɵtemplate(5, Ng2SmartTableTbodyComponent_tr_0_td_5_Template, 2, 3, "td", 5);
|
|
2076
|
-
i0.ɵɵtemplate(6, Ng2SmartTableTbodyComponent_tr_0_td_6_Template, 3, 8, "td", 5);
|
|
2077
|
-
i0.ɵɵelementEnd();
|
|
2078
|
-
}
|
|
2079
|
-
if (rf & 2) {
|
|
2080
|
-
const row_r2 = ctx.$implicit;
|
|
2081
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
2082
|
-
i0.ɵɵproperty("className", ctx_r0.rowClassFunction(row_r2))("ngClass", i0.ɵɵpureFunction1(8, _c1, row_r2.isSelected));
|
|
2083
|
-
i0.ɵɵadvance(1);
|
|
2084
|
-
i0.ɵɵproperty("ngIf", ctx_r0.isMultiSelectVisible);
|
|
2085
|
-
i0.ɵɵadvance(1);
|
|
2086
|
-
i0.ɵɵproperty("ngIf", !row_r2.isInEditing && ctx_r0.showActionColumnLeft);
|
|
2087
|
-
i0.ɵɵadvance(1);
|
|
2088
|
-
i0.ɵɵproperty("ngIf", row_r2.isInEditing && ctx_r0.showActionColumnLeft);
|
|
2089
|
-
i0.ɵɵadvance(1);
|
|
2090
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.getVisibleCells(row_r2.cells));
|
|
2091
|
-
i0.ɵɵadvance(1);
|
|
2092
|
-
i0.ɵɵproperty("ngIf", row_r2.isInEditing && ctx_r0.showActionColumnRight);
|
|
2093
|
-
i0.ɵɵadvance(1);
|
|
2094
|
-
i0.ɵɵproperty("ngIf", !row_r2.isInEditing && ctx_r0.showActionColumnRight);
|
|
2095
|
-
}
|
|
2096
|
-
}
|
|
2097
|
-
function Ng2SmartTableTbodyComponent_tr_1_Template(rf, ctx) {
|
|
2098
|
-
if (rf & 1) {
|
|
2099
|
-
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
2100
|
-
i0.ɵɵtext(2);
|
|
2101
|
-
i0.ɵɵelementEnd()();
|
|
2102
|
-
}
|
|
2103
|
-
if (rf & 2) {
|
|
2104
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2105
|
-
i0.ɵɵadvance(1);
|
|
2106
|
-
i0.ɵɵattribute("colspan", ctx_r1.tableColumnsCount);
|
|
2107
|
-
i0.ɵɵadvance(1);
|
|
2108
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.noDataMessage, " ");
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
1449
|
class Ng2SmartTableTbodyComponent {
|
|
2112
1450
|
constructor() {
|
|
2113
1451
|
this.save = new EventEmitter();
|
|
@@ -2121,7 +1459,6 @@ class Ng2SmartTableTbodyComponent {
|
|
|
2121
1459
|
this.userClickedRow = new EventEmitter();
|
|
2122
1460
|
this.editRowSelect = new EventEmitter();
|
|
2123
1461
|
this.multipleSelectRow = new EventEmitter();
|
|
2124
|
-
this.rowHover = new EventEmitter();
|
|
2125
1462
|
}
|
|
2126
1463
|
get tableColumnsCount() {
|
|
2127
1464
|
const actionColumns = this.isActionAdd || this.isActionEdit || this.isActionDelete ? 1 : 0;
|
|
@@ -2141,24 +1478,16 @@ class Ng2SmartTableTbodyComponent {
|
|
|
2141
1478
|
getVisibleCells(cells) {
|
|
2142
1479
|
return (cells || []).filter((cell) => !cell.getColumn().hide);
|
|
2143
1480
|
}
|
|
1481
|
+
trackByIdOrIndex(index, item) {
|
|
1482
|
+
return (item === null || item === void 0 ? void 0 : item.id) || index;
|
|
1483
|
+
}
|
|
2144
1484
|
}
|
|
2145
|
-
Ng2SmartTableTbodyComponent.ɵfac =
|
|
2146
|
-
Ng2SmartTableTbodyComponent.ɵcmp =
|
|
2147
|
-
|
|
2148
|
-
i0.ɵɵtemplate(0, Ng2SmartTableTbodyComponent_tr_0_Template, 7, 10, "tr", 0);
|
|
2149
|
-
i0.ɵɵtemplate(1, Ng2SmartTableTbodyComponent_tr_1_Template, 3, 2, "tr", 1);
|
|
2150
|
-
}
|
|
2151
|
-
if (rf & 2) {
|
|
2152
|
-
i0.ɵɵproperty("ngForOf", ctx.grid.getRows());
|
|
2153
|
-
i0.ɵɵadvance(1);
|
|
2154
|
-
i0.ɵɵproperty("ngIf", ctx.grid.getRows().length == 0);
|
|
2155
|
-
}
|
|
2156
|
-
}, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2.CheckboxControlValueAccessor, i2.NgControlStatus, i2.NgModel, CellComponent, TbodyCreateCancelComponent, TbodyEditDeleteComponent, TbodyCustomComponent], styles: ["[_nghost-%COMP%] .ng2-smart-row.selected[_ngcontent-%COMP%]{background:rgba(0,0,0,.05)}[_nghost-%COMP%] .ng2-smart-row[_ngcontent-%COMP%] .ng2-smart-actions.ng2-smart-action-multiple-select[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] ng2-st-tbody-edit-delete a:first-child, [_nghost-%COMP%] ng2-st-tbody-create-cancel a:first-child{margin-right:.25rem}"] });
|
|
2157
|
-
(function () {
|
|
2158
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Ng2SmartTableTbodyComponent, [{
|
|
1485
|
+
Ng2SmartTableTbodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableTbodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1486
|
+
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 *ngFor=\"let row of grid.getRows(); trackBy: trackByIdOrIndex\" (click)=\"userClickedRow.emit(row)\" class=\"ng2-smart-row\" [className]=\"rowClassFunction(row)\" [ngClass]=\"{selected: row.isSelected}\">\n <td *ngIf=\"isMultiSelectVisible\" class=\"ng2-smart-actions ng2-smart-action-multiple-select\" (click)=\"multipleSelectRow.emit(row); $event.stopPropagation();\">\n <input type=\"checkbox\" class=\"form-control\" [ngModel]=\"row.isSelected\">\n </td>\n <td *ngIf=\"!row.isInEditing && showActionColumnLeft\" class=\"ng2-smart-actions\" (click)=\"$event.stopPropagation()\">\n <ng2-st-tbody-custom [grid]=\"grid\" (custom)=\"custom.emit($event)\" [row]=\"row\" [source]=\"source\"></ng2-st-tbody-custom>\n\n <ng2-st-tbody-edit-delete [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 </ng2-st-tbody-edit-delete>\n </td>\n <td *ngIf=\"row.isInEditing && showActionColumnLeft\" class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel [grid]=\"grid\" [row]=\"row\" [editConfirm]=\"editConfirm\" [editCancel]=\"editCancel\"></ng2-st-tbody-create-cancel>\n </td>\n <td *ngFor=\"let cell of getVisibleCells(row.cells)\">\n <ng2-smart-table-cell [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 </ng2-smart-table-cell>\n </td>\n\n <td *ngIf=\"row.isInEditing && showActionColumnRight\" class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel [grid]=\"grid\" [row]=\"row\" [editConfirm]=\"editConfirm\"></ng2-st-tbody-create-cancel>\n </td>\n\n <td *ngIf=\"!row.isInEditing && showActionColumnRight\" class=\"ng2-smart-actions\">\n <ng2-st-tbody-custom [grid]=\"grid\" (custom)=\"custom.emit($event)\" [row]=\"row\" [source]=\"source\"></ng2-st-tbody-custom>\n\n <ng2-st-tbody-edit-delete [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 </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"] }] });
|
|
1487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableTbodyComponent, decorators: [{
|
|
2159
1488
|
type: Component,
|
|
2160
|
-
args: [{ selector: '[ng2-st-tbody]', template: "<tr *ngFor=\"let row of grid.getRows()\" (click)=\"userClickedRow.emit(row)\"
|
|
2161
|
-
}],
|
|
1489
|
+
args: [{ selector: '[ng2-st-tbody]', template: "<tr *ngFor=\"let row of grid.getRows(); trackBy: trackByIdOrIndex\" (click)=\"userClickedRow.emit(row)\" class=\"ng2-smart-row\" [className]=\"rowClassFunction(row)\" [ngClass]=\"{selected: row.isSelected}\">\n <td *ngIf=\"isMultiSelectVisible\" class=\"ng2-smart-actions ng2-smart-action-multiple-select\" (click)=\"multipleSelectRow.emit(row); $event.stopPropagation();\">\n <input type=\"checkbox\" class=\"form-control\" [ngModel]=\"row.isSelected\">\n </td>\n <td *ngIf=\"!row.isInEditing && showActionColumnLeft\" class=\"ng2-smart-actions\" (click)=\"$event.stopPropagation()\">\n <ng2-st-tbody-custom [grid]=\"grid\" (custom)=\"custom.emit($event)\" [row]=\"row\" [source]=\"source\"></ng2-st-tbody-custom>\n\n <ng2-st-tbody-edit-delete [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 </ng2-st-tbody-edit-delete>\n </td>\n <td *ngIf=\"row.isInEditing && showActionColumnLeft\" class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel [grid]=\"grid\" [row]=\"row\" [editConfirm]=\"editConfirm\" [editCancel]=\"editCancel\"></ng2-st-tbody-create-cancel>\n </td>\n <td *ngFor=\"let cell of getVisibleCells(row.cells)\">\n <ng2-smart-table-cell [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 </ng2-smart-table-cell>\n </td>\n\n <td *ngIf=\"row.isInEditing && showActionColumnRight\" class=\"ng2-smart-actions\">\n <ng2-st-tbody-create-cancel [grid]=\"grid\" [row]=\"row\" [editConfirm]=\"editConfirm\"></ng2-st-tbody-create-cancel>\n </td>\n\n <td *ngIf=\"!row.isInEditing && showActionColumnRight\" class=\"ng2-smart-actions\">\n <ng2-st-tbody-custom [grid]=\"grid\" (custom)=\"custom.emit($event)\" [row]=\"row\" [source]=\"source\"></ng2-st-tbody-custom>\n\n <ng2-st-tbody-edit-delete [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 </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"] }]
|
|
1490
|
+
}], propDecorators: { grid: [{
|
|
2162
1491
|
type: Input
|
|
2163
1492
|
}], source: [{
|
|
2164
1493
|
type: Input
|
|
@@ -2190,10 +1519,7 @@ Ng2SmartTableTbodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
2190
1519
|
type: Output
|
|
2191
1520
|
}], multipleSelectRow: [{
|
|
2192
1521
|
type: Output
|
|
2193
|
-
}]
|
|
2194
|
-
type: Output
|
|
2195
|
-
}] });
|
|
2196
|
-
})();
|
|
1522
|
+
}] } });
|
|
2197
1523
|
|
|
2198
1524
|
const TBODY_COMPONENTS = [
|
|
2199
1525
|
TbodyCreateCancelComponent,
|
|
@@ -2203,13 +1529,20 @@ const TBODY_COMPONENTS = [
|
|
|
2203
1529
|
];
|
|
2204
1530
|
class TBodyModule {
|
|
2205
1531
|
}
|
|
2206
|
-
TBodyModule.ɵfac =
|
|
2207
|
-
TBodyModule.ɵmod =
|
|
2208
|
-
|
|
1532
|
+
TBodyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1533
|
+
TBodyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, declarations: [TbodyCreateCancelComponent,
|
|
1534
|
+
TbodyEditDeleteComponent,
|
|
1535
|
+
TbodyCustomComponent,
|
|
1536
|
+
Ng2SmartTableTbodyComponent], imports: [CommonModule,
|
|
1537
|
+
FormsModule,
|
|
1538
|
+
CellModule], exports: [TbodyCreateCancelComponent,
|
|
1539
|
+
TbodyEditDeleteComponent,
|
|
1540
|
+
TbodyCustomComponent,
|
|
1541
|
+
Ng2SmartTableTbodyComponent] });
|
|
1542
|
+
TBodyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, imports: [CommonModule,
|
|
2209
1543
|
FormsModule,
|
|
2210
1544
|
CellModule] });
|
|
2211
|
-
(
|
|
2212
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TBodyModule, [{
|
|
1545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, decorators: [{
|
|
2213
1546
|
type: NgModule,
|
|
2214
1547
|
args: [{
|
|
2215
1548
|
imports: [
|
|
@@ -2224,33 +1557,8 @@ TBodyModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
|
|
|
2224
1557
|
...TBODY_COMPONENTS,
|
|
2225
1558
|
],
|
|
2226
1559
|
}]
|
|
2227
|
-
}]
|
|
2228
|
-
})();
|
|
2229
|
-
(function () {
|
|
2230
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TBodyModule, { declarations: [TbodyCreateCancelComponent,
|
|
2231
|
-
TbodyEditDeleteComponent,
|
|
2232
|
-
TbodyCustomComponent,
|
|
2233
|
-
Ng2SmartTableTbodyComponent], imports: [CommonModule,
|
|
2234
|
-
FormsModule,
|
|
2235
|
-
CellModule], exports: [TbodyCreateCancelComponent,
|
|
2236
|
-
TbodyEditDeleteComponent,
|
|
2237
|
-
TbodyCustomComponent,
|
|
2238
|
-
Ng2SmartTableTbodyComponent] });
|
|
2239
|
-
})();
|
|
1560
|
+
}] });
|
|
2240
1561
|
|
|
2241
|
-
const _c0$6 = ["ng2-st-add-button", ""];
|
|
2242
|
-
function AddButtonComponent_a_0_Template(rf, ctx) {
|
|
2243
|
-
if (rf & 1) {
|
|
2244
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
2245
|
-
i0.ɵɵelementStart(0, "a", 1);
|
|
2246
|
-
i0.ɵɵlistener("click", function AddButtonComponent_a_0_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onAdd($event)); });
|
|
2247
|
-
i0.ɵɵelementEnd();
|
|
2248
|
-
}
|
|
2249
|
-
if (rf & 2) {
|
|
2250
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
2251
|
-
i0.ɵɵproperty("innerHTML", ctx_r0.addNewButtonContent, i0.ɵɵsanitizeHtml);
|
|
2252
|
-
}
|
|
2253
|
-
}
|
|
2254
1562
|
class AddButtonComponent {
|
|
2255
1563
|
constructor(ref) {
|
|
2256
1564
|
this.ref = ref;
|
|
@@ -2276,17 +1584,12 @@ class AddButtonComponent {
|
|
|
2276
1584
|
}
|
|
2277
1585
|
}
|
|
2278
1586
|
}
|
|
2279
|
-
AddButtonComponent.ɵfac =
|
|
2280
|
-
AddButtonComponent.ɵcmp =
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
i0.ɵɵproperty("ngIf", ctx.isActionAdd);
|
|
2286
|
-
}
|
|
2287
|
-
}, dependencies: [i1.NgIf], encapsulation: 2 });
|
|
2288
|
-
(function () {
|
|
2289
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddButtonComponent, [{
|
|
1587
|
+
AddButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1588
|
+
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: `
|
|
1589
|
+
<a *ngIf="isActionAdd" href="#" class="ng2-smart-action ng2-smart-action-add-add"
|
|
1590
|
+
[innerHTML]="addNewButtonContent" (click)="onAdd($event)"></a>
|
|
1591
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddButtonComponent, decorators: [{
|
|
2290
1593
|
type: Component,
|
|
2291
1594
|
args: [{
|
|
2292
1595
|
selector: '[ng2-st-add-button]',
|
|
@@ -2295,60 +1598,14 @@ AddButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddButto
|
|
|
2295
1598
|
[innerHTML]="addNewButtonContent" (click)="onAdd($event)"></a>
|
|
2296
1599
|
`,
|
|
2297
1600
|
}]
|
|
2298
|
-
}], function () { return [{ type: i0.ElementRef }]; }, { grid: [{
|
|
1601
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { grid: [{
|
|
2299
1602
|
type: Input
|
|
2300
1603
|
}], source: [{
|
|
2301
1604
|
type: Input
|
|
2302
1605
|
}], create: [{
|
|
2303
1606
|
type: Output
|
|
2304
|
-
}] });
|
|
2305
|
-
})();
|
|
1607
|
+
}] } });
|
|
2306
1608
|
|
|
2307
|
-
const _c0$5 = ["ng2-st-thead-filters-row", ""];
|
|
2308
|
-
function TheadFitlersRowComponent_th_0_Template(rf, ctx) {
|
|
2309
|
-
if (rf & 1) {
|
|
2310
|
-
i0.ɵɵelement(0, "th");
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
function TheadFitlersRowComponent_th_1_Template(rf, ctx) {
|
|
2314
|
-
if (rf & 1) {
|
|
2315
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
2316
|
-
i0.ɵɵelementStart(0, "th", 4);
|
|
2317
|
-
i0.ɵɵlistener("create", function TheadFitlersRowComponent_th_1_Template_th_create_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.create.emit($event)); });
|
|
2318
|
-
i0.ɵɵelementEnd();
|
|
2319
|
-
}
|
|
2320
|
-
if (rf & 2) {
|
|
2321
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2322
|
-
i0.ɵɵproperty("grid", ctx_r1.grid);
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
function TheadFitlersRowComponent_th_2_Template(rf, ctx) {
|
|
2326
|
-
if (rf & 1) {
|
|
2327
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
2328
|
-
i0.ɵɵelementStart(0, "th")(1, "ng2-smart-table-filter", 5);
|
|
2329
|
-
i0.ɵɵlistener("filter", function TheadFitlersRowComponent_th_2_Template_ng2_smart_table_filter_filter_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.filter.emit($event)); });
|
|
2330
|
-
i0.ɵɵelementEnd()();
|
|
2331
|
-
}
|
|
2332
|
-
if (rf & 2) {
|
|
2333
|
-
const column_r6 = ctx.$implicit;
|
|
2334
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
2335
|
-
i0.ɵɵclassMapInterpolate1("ng2-smart-th ", column_r6.id, "");
|
|
2336
|
-
i0.ɵɵadvance(1);
|
|
2337
|
-
i0.ɵɵproperty("source", ctx_r2.source)("column", column_r6)("inputClass", ctx_r2.filterInputClass);
|
|
2338
|
-
}
|
|
2339
|
-
}
|
|
2340
|
-
function TheadFitlersRowComponent_th_3_Template(rf, ctx) {
|
|
2341
|
-
if (rf & 1) {
|
|
2342
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
2343
|
-
i0.ɵɵelementStart(0, "th", 6);
|
|
2344
|
-
i0.ɵɵlistener("create", function TheadFitlersRowComponent_th_3_Template_th_create_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.create.emit($event)); });
|
|
2345
|
-
i0.ɵɵelementEnd();
|
|
2346
|
-
}
|
|
2347
|
-
if (rf & 2) {
|
|
2348
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
2349
|
-
i0.ɵɵproperty("grid", ctx_r3.grid)("source", ctx_r3.source);
|
|
2350
|
-
}
|
|
2351
|
-
}
|
|
2352
1609
|
class TheadFitlersRowComponent {
|
|
2353
1610
|
constructor() {
|
|
2354
1611
|
this.create = new EventEmitter();
|
|
@@ -2364,26 +1621,27 @@ class TheadFitlersRowComponent {
|
|
|
2364
1621
|
return (columns || []).filter((column) => !column.hide);
|
|
2365
1622
|
}
|
|
2366
1623
|
}
|
|
2367
|
-
TheadFitlersRowComponent.ɵfac =
|
|
2368
|
-
TheadFitlersRowComponent.ɵcmp =
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
1624
|
+
TheadFitlersRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadFitlersRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1625
|
+
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: `
|
|
1626
|
+
<th *ngIf="isMultiSelectVisible"></th>
|
|
1627
|
+
<th ng2-st-add-button *ngIf="showActionColumnLeft"
|
|
1628
|
+
[grid]="grid"
|
|
1629
|
+
(create)="create.emit($event)">
|
|
1630
|
+
</th>
|
|
1631
|
+
<th *ngFor="let column of getVisibleColumns(grid.getColumns())" class="ng2-smart-th {{ column.id }}">
|
|
1632
|
+
<ng2-smart-table-filter [source]="source"
|
|
1633
|
+
[column]="column"
|
|
1634
|
+
[inputClass]="filterInputClass"
|
|
1635
|
+
(filter)="filter.emit($event)">
|
|
1636
|
+
</ng2-smart-table-filter>
|
|
1637
|
+
</th>
|
|
1638
|
+
<th ng2-st-add-button *ngIf="showActionColumnRight"
|
|
1639
|
+
[grid]="grid"
|
|
1640
|
+
[source]="source"
|
|
1641
|
+
(create)="create.emit($event)">
|
|
1642
|
+
</th>
|
|
1643
|
+
`, 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"] }] });
|
|
1644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadFitlersRowComponent, decorators: [{
|
|
2387
1645
|
type: Component,
|
|
2388
1646
|
args: [{
|
|
2389
1647
|
selector: '[ng2-st-thead-filters-row]',
|
|
@@ -2407,7 +1665,7 @@ TheadFitlersRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Th
|
|
|
2407
1665
|
</th>
|
|
2408
1666
|
`,
|
|
2409
1667
|
}]
|
|
2410
|
-
}],
|
|
1668
|
+
}], propDecorators: { grid: [{
|
|
2411
1669
|
type: Input
|
|
2412
1670
|
}], source: [{
|
|
2413
1671
|
type: Input
|
|
@@ -2415,8 +1673,7 @@ TheadFitlersRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Th
|
|
|
2415
1673
|
type: Output
|
|
2416
1674
|
}], filter: [{
|
|
2417
1675
|
type: Output
|
|
2418
|
-
}] });
|
|
2419
|
-
})();
|
|
1676
|
+
}] } });
|
|
2420
1677
|
|
|
2421
1678
|
class ActionsComponent {
|
|
2422
1679
|
constructor() {
|
|
@@ -2427,24 +1684,16 @@ class ActionsComponent {
|
|
|
2427
1684
|
this.cancelButtonContent = this.grid.getSetting('add.cancelButtonContent');
|
|
2428
1685
|
}
|
|
2429
1686
|
}
|
|
2430
|
-
ActionsComponent.ɵfac =
|
|
2431
|
-
ActionsComponent.ɵcmp =
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
if (rf & 2) {
|
|
2441
|
-
i0.ɵɵproperty("innerHTML", ctx.createButtonContent, i0.ɵɵsanitizeHtml);
|
|
2442
|
-
i0.ɵɵadvance(1);
|
|
2443
|
-
i0.ɵɵproperty("innerHTML", ctx.cancelButtonContent, i0.ɵɵsanitizeHtml);
|
|
2444
|
-
}
|
|
2445
|
-
}, encapsulation: 2 });
|
|
2446
|
-
(function () {
|
|
2447
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActionsComponent, [{
|
|
1687
|
+
ActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1688
|
+
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: `
|
|
1689
|
+
<a href="#" class="ng2-smart-action ng2-smart-action-add-create"
|
|
1690
|
+
[innerHTML]="createButtonContent"
|
|
1691
|
+
(click)="$event.preventDefault();create.emit($event)"></a>
|
|
1692
|
+
<a href="#" class="ng2-smart-action ng2-smart-action-add-cancel"
|
|
1693
|
+
[innerHTML]="cancelButtonContent"
|
|
1694
|
+
(click)="$event.preventDefault();grid.createFormShown = false;"></a>
|
|
1695
|
+
`, isInline: true });
|
|
1696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsComponent, decorators: [{
|
|
2448
1697
|
type: Component,
|
|
2449
1698
|
args: [{
|
|
2450
1699
|
selector: 'ng2-st-actions',
|
|
@@ -2457,59 +1706,12 @@ ActionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ActionsCom
|
|
|
2457
1706
|
(click)="$event.preventDefault();grid.createFormShown = false;"></a>
|
|
2458
1707
|
`,
|
|
2459
1708
|
}]
|
|
2460
|
-
}],
|
|
1709
|
+
}], propDecorators: { grid: [{
|
|
2461
1710
|
type: Input
|
|
2462
1711
|
}], create: [{
|
|
2463
1712
|
type: Output
|
|
2464
|
-
}] });
|
|
2465
|
-
})();
|
|
1713
|
+
}] } });
|
|
2466
1714
|
|
|
2467
|
-
const _c0$4 = ["ng2-st-thead-form-row", ""];
|
|
2468
|
-
function TheadFormRowComponent_td_0_Template(rf, ctx) {
|
|
2469
|
-
if (rf & 1) {
|
|
2470
|
-
i0.ɵɵelement(0, "td");
|
|
2471
|
-
}
|
|
2472
|
-
}
|
|
2473
|
-
function TheadFormRowComponent_td_1_Template(rf, ctx) {
|
|
2474
|
-
if (rf & 1) {
|
|
2475
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
2476
|
-
i0.ɵɵelementStart(0, "td", 3)(1, "ng2-st-actions", 4);
|
|
2477
|
-
i0.ɵɵlistener("create", function TheadFormRowComponent_td_1_Template_ng2_st_actions_create_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onCreate($event)); });
|
|
2478
|
-
i0.ɵɵelementEnd()();
|
|
2479
|
-
}
|
|
2480
|
-
if (rf & 2) {
|
|
2481
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2482
|
-
i0.ɵɵadvance(1);
|
|
2483
|
-
i0.ɵɵproperty("grid", ctx_r1.grid);
|
|
2484
|
-
}
|
|
2485
|
-
}
|
|
2486
|
-
function TheadFormRowComponent_td_2_Template(rf, ctx) {
|
|
2487
|
-
if (rf & 1) {
|
|
2488
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
2489
|
-
i0.ɵɵelementStart(0, "td")(1, "ng2-smart-table-cell", 5);
|
|
2490
|
-
i0.ɵɵlistener("edited", function TheadFormRowComponent_td_2_Template_ng2_smart_table_cell_edited_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.onCreate($event)); });
|
|
2491
|
-
i0.ɵɵelementEnd()();
|
|
2492
|
-
}
|
|
2493
|
-
if (rf & 2) {
|
|
2494
|
-
const cell_r6 = ctx.$implicit;
|
|
2495
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
2496
|
-
i0.ɵɵadvance(1);
|
|
2497
|
-
i0.ɵɵproperty("cell", cell_r6)("grid", ctx_r2.grid)("isNew", true)("createConfirm", ctx_r2.createConfirm)("inputClass", ctx_r2.addInputClass)("isInEditing", ctx_r2.grid.getNewRow().isInEditing);
|
|
2498
|
-
}
|
|
2499
|
-
}
|
|
2500
|
-
function TheadFormRowComponent_td_3_Template(rf, ctx) {
|
|
2501
|
-
if (rf & 1) {
|
|
2502
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
2503
|
-
i0.ɵɵelementStart(0, "td", 3)(1, "ng2-st-actions", 4);
|
|
2504
|
-
i0.ɵɵlistener("create", function TheadFormRowComponent_td_3_Template_ng2_st_actions_create_1_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.onCreate($event)); });
|
|
2505
|
-
i0.ɵɵelementEnd()();
|
|
2506
|
-
}
|
|
2507
|
-
if (rf & 2) {
|
|
2508
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
2509
|
-
i0.ɵɵadvance(1);
|
|
2510
|
-
i0.ɵɵproperty("grid", ctx_r3.grid);
|
|
2511
|
-
}
|
|
2512
|
-
}
|
|
2513
1715
|
class TheadFormRowComponent {
|
|
2514
1716
|
constructor() {
|
|
2515
1717
|
this.create = new EventEmitter();
|
|
@@ -2528,30 +1730,32 @@ class TheadFormRowComponent {
|
|
|
2528
1730
|
return (cells || []).filter((cell) => !cell.getColumn().hide);
|
|
2529
1731
|
}
|
|
2530
1732
|
}
|
|
2531
|
-
TheadFormRowComponent.ɵfac =
|
|
2532
|
-
TheadFormRowComponent.ɵcmp =
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
1733
|
+
TheadFormRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadFormRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1734
|
+
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: `
|
|
1735
|
+
<td *ngIf="grid.isMultiSelectVisible"></td>
|
|
1736
|
+
<td *ngIf="showActionColumnLeft" class="ng2-smart-actions">
|
|
1737
|
+
<ng2-st-actions [grid]="grid" (create)="onCreate($event)"></ng2-st-actions>
|
|
1738
|
+
</td>
|
|
1739
|
+
<td *ngFor="let cell of getVisibleCells(grid.getNewRow().getCells())">
|
|
1740
|
+
<ng2-smart-table-cell [cell]="cell"
|
|
1741
|
+
[grid]="grid"
|
|
1742
|
+
[isNew]="true"
|
|
1743
|
+
[createConfirm]="createConfirm"
|
|
1744
|
+
[inputClass]="addInputClass"
|
|
1745
|
+
[isInEditing]="grid.getNewRow().isInEditing"
|
|
1746
|
+
(edited)="onCreate($event)">
|
|
1747
|
+
</ng2-smart-table-cell>
|
|
1748
|
+
</td>
|
|
1749
|
+
<td *ngIf="showActionColumnRight" class="ng2-smart-actions">
|
|
1750
|
+
<ng2-st-actions [grid]="grid" (create)="onCreate($event)"></ng2-st-actions>
|
|
1751
|
+
</td>
|
|
1752
|
+
`, 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"] }] });
|
|
1753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadFormRowComponent, decorators: [{
|
|
2550
1754
|
type: Component,
|
|
2551
1755
|
args: [{
|
|
2552
1756
|
selector: '[ng2-st-thead-form-row]',
|
|
2553
1757
|
template: `
|
|
2554
|
-
<td *ngIf=""></td>
|
|
1758
|
+
<td *ngIf="grid.isMultiSelectVisible"></td>
|
|
2555
1759
|
<td *ngIf="showActionColumnLeft" class="ng2-smart-actions">
|
|
2556
1760
|
<ng2-st-actions [grid]="grid" (create)="onCreate($event)"></ng2-st-actions>
|
|
2557
1761
|
</td>
|
|
@@ -2570,7 +1774,7 @@ TheadFormRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Thead
|
|
|
2570
1774
|
</td>
|
|
2571
1775
|
`,
|
|
2572
1776
|
}]
|
|
2573
|
-
}],
|
|
1777
|
+
}], propDecorators: { grid: [{
|
|
2574
1778
|
type: Input
|
|
2575
1779
|
}], row: [{
|
|
2576
1780
|
type: Input
|
|
@@ -2578,10 +1782,8 @@ TheadFormRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Thead
|
|
|
2578
1782
|
type: Input
|
|
2579
1783
|
}], create: [{
|
|
2580
1784
|
type: Output
|
|
2581
|
-
}] });
|
|
2582
|
-
})();
|
|
1785
|
+
}] } });
|
|
2583
1786
|
|
|
2584
|
-
const _c0$3 = ["ng2-st-actions-title", ""];
|
|
2585
1787
|
class ActionsTitleComponent {
|
|
2586
1788
|
constructor(ref) {
|
|
2587
1789
|
this.ref = ref;
|
|
@@ -2593,20 +1795,11 @@ class ActionsTitleComponent {
|
|
|
2593
1795
|
this.actionsColumnTitle = this.grid.getSetting('actions.columnTitle');
|
|
2594
1796
|
}
|
|
2595
1797
|
}
|
|
2596
|
-
ActionsTitleComponent.ɵfac =
|
|
2597
|
-
ActionsTitleComponent.ɵcmp =
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
i0.ɵɵelementEnd();
|
|
2602
|
-
}
|
|
2603
|
-
if (rf & 2) {
|
|
2604
|
-
i0.ɵɵadvance(1);
|
|
2605
|
-
i0.ɵɵtextInterpolate(ctx.actionsColumnTitle);
|
|
2606
|
-
}
|
|
2607
|
-
}, encapsulation: 2 });
|
|
2608
|
-
(function () {
|
|
2609
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActionsTitleComponent, [{
|
|
1798
|
+
ActionsTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsTitleComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1799
|
+
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: `
|
|
1800
|
+
<div class="ng2-smart-title">{{ actionsColumnTitle }}</div>
|
|
1801
|
+
`, isInline: true });
|
|
1802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsTitleComponent, decorators: [{
|
|
2610
1803
|
type: Component,
|
|
2611
1804
|
args: [{
|
|
2612
1805
|
selector: '[ng2-st-actions-title]',
|
|
@@ -2614,25 +1807,17 @@ ActionsTitleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Actio
|
|
|
2614
1807
|
<div class="ng2-smart-title">{{ actionsColumnTitle }}</div>
|
|
2615
1808
|
`,
|
|
2616
1809
|
}]
|
|
2617
|
-
}], function () { return [{ type: i0.ElementRef }]; }, { grid: [{
|
|
1810
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { grid: [{
|
|
2618
1811
|
type: Input
|
|
2619
|
-
}] });
|
|
2620
|
-
})();
|
|
1812
|
+
}] } });
|
|
2621
1813
|
|
|
2622
|
-
const _c0$2 = ["ng2-st-checkbox-select-all", ""];
|
|
2623
1814
|
class CheckboxSelectAllComponent {
|
|
2624
1815
|
}
|
|
2625
|
-
CheckboxSelectAllComponent.ɵfac =
|
|
2626
|
-
CheckboxSelectAllComponent.ɵcmp =
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
if (rf & 2) {
|
|
2631
|
-
i0.ɵɵproperty("ngModel", ctx.grid.dataSet.isAllSelected);
|
|
2632
|
-
}
|
|
2633
|
-
}, dependencies: [i2.CheckboxControlValueAccessor, i2.NgControlStatus, i2.NgModel], encapsulation: 2 });
|
|
2634
|
-
(function () {
|
|
2635
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxSelectAllComponent, [{
|
|
1816
|
+
CheckboxSelectAllComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxSelectAllComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1817
|
+
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: `
|
|
1818
|
+
<input type="checkbox" [ngModel]="this.grid.dataSet.isAllSelected">
|
|
1819
|
+
`, 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"] }] });
|
|
1820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxSelectAllComponent, decorators: [{
|
|
2636
1821
|
type: Component,
|
|
2637
1822
|
args: [{
|
|
2638
1823
|
selector: '[ng2-st-checkbox-select-all]',
|
|
@@ -2640,40 +1825,12 @@ CheckboxSelectAllComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
2640
1825
|
<input type="checkbox" [ngModel]="this.grid.dataSet.isAllSelected">
|
|
2641
1826
|
`,
|
|
2642
1827
|
}]
|
|
2643
|
-
}],
|
|
1828
|
+
}], propDecorators: { grid: [{
|
|
2644
1829
|
type: Input
|
|
2645
1830
|
}], source: [{
|
|
2646
1831
|
type: Input
|
|
2647
|
-
}] });
|
|
2648
|
-
})();
|
|
1832
|
+
}] } });
|
|
2649
1833
|
|
|
2650
|
-
function TitleComponent_a_0_Template(rf, ctx) {
|
|
2651
|
-
if (rf & 1) {
|
|
2652
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
2653
|
-
i0.ɵɵelementStart(0, "a", 2);
|
|
2654
|
-
i0.ɵɵlistener("click", function TitleComponent_a_0_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2._sort($event)); });
|
|
2655
|
-
i0.ɵɵtext(1);
|
|
2656
|
-
i0.ɵɵelementEnd();
|
|
2657
|
-
}
|
|
2658
|
-
if (rf & 2) {
|
|
2659
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
2660
|
-
i0.ɵɵproperty("ngClass", ctx_r0.currentDirection);
|
|
2661
|
-
i0.ɵɵadvance(1);
|
|
2662
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.column.title, " ");
|
|
2663
|
-
}
|
|
2664
|
-
}
|
|
2665
|
-
function TitleComponent_span_1_Template(rf, ctx) {
|
|
2666
|
-
if (rf & 1) {
|
|
2667
|
-
i0.ɵɵelementStart(0, "span", 3);
|
|
2668
|
-
i0.ɵɵtext(1);
|
|
2669
|
-
i0.ɵɵelementEnd();
|
|
2670
|
-
}
|
|
2671
|
-
if (rf & 2) {
|
|
2672
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2673
|
-
i0.ɵɵadvance(1);
|
|
2674
|
-
i0.ɵɵtextInterpolate(ctx_r1.column.title);
|
|
2675
|
-
}
|
|
2676
|
-
}
|
|
2677
1834
|
class TitleComponent {
|
|
2678
1835
|
constructor() {
|
|
2679
1836
|
this.currentDirection = '';
|
|
@@ -2720,20 +1877,17 @@ class TitleComponent {
|
|
|
2720
1877
|
return this.currentDirection;
|
|
2721
1878
|
}
|
|
2722
1879
|
}
|
|
2723
|
-
TitleComponent.ɵfac =
|
|
2724
|
-
TitleComponent.ɵcmp =
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
}, dependencies: [i1.NgClass, i1.NgIf], styles: ["a.sort.asc[_ngcontent-%COMP%], a.sort.desc[_ngcontent-%COMP%]{font-weight:700}a.sort.asc[_ngcontent-%COMP%]:after, a.sort.desc[_ngcontent-%COMP%]: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[_ngcontent-%COMP%]:after{transform:rotate(-180deg);margin-bottom:-2px}"] });
|
|
2735
|
-
(function () {
|
|
2736
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TitleComponent, [{
|
|
1880
|
+
TitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1881
|
+
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: `
|
|
1882
|
+
<a href="#" *ngIf="column.isSortable"
|
|
1883
|
+
(click)="_sort($event)"
|
|
1884
|
+
class="ng2-smart-sort-link sort"
|
|
1885
|
+
[ngClass]="currentDirection">
|
|
1886
|
+
{{ column.title }}
|
|
1887
|
+
</a>
|
|
1888
|
+
<span class="ng2-smart-sort" *ngIf="!column.isSortable">{{ column.title }}</span>
|
|
1889
|
+
`, 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"] }] });
|
|
1890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TitleComponent, decorators: [{
|
|
2737
1891
|
type: Component,
|
|
2738
1892
|
args: [{ selector: 'ng2-smart-table-title', template: `
|
|
2739
1893
|
<a href="#" *ngIf="column.isSortable"
|
|
@@ -2744,34 +1898,26 @@ TitleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TitleCompone
|
|
|
2744
1898
|
</a>
|
|
2745
1899
|
<span class="ng2-smart-sort" *ngIf="!column.isSortable">{{ column.title }}</span>
|
|
2746
1900
|
`, 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"] }]
|
|
2747
|
-
}],
|
|
1901
|
+
}], propDecorators: { column: [{
|
|
2748
1902
|
type: Input
|
|
2749
1903
|
}], source: [{
|
|
2750
1904
|
type: Input
|
|
2751
1905
|
}], sort: [{
|
|
2752
1906
|
type: Output
|
|
2753
|
-
}] });
|
|
2754
|
-
})();
|
|
1907
|
+
}] } });
|
|
2755
1908
|
|
|
2756
1909
|
class ColumnTitleComponent {
|
|
2757
1910
|
constructor() {
|
|
2758
1911
|
this.sort = new EventEmitter();
|
|
2759
1912
|
}
|
|
2760
1913
|
}
|
|
2761
|
-
ColumnTitleComponent.ɵfac =
|
|
2762
|
-
ColumnTitleComponent.ɵcmp =
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
if (rf & 2) {
|
|
2769
|
-
i0.ɵɵadvance(1);
|
|
2770
|
-
i0.ɵɵproperty("source", ctx.source)("column", ctx.column);
|
|
2771
|
-
}
|
|
2772
|
-
}, dependencies: [TitleComponent], encapsulation: 2 });
|
|
2773
|
-
(function () {
|
|
2774
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ColumnTitleComponent, [{
|
|
1914
|
+
ColumnTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1915
|
+
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: `
|
|
1916
|
+
<div class="ng2-smart-title">
|
|
1917
|
+
<ng2-smart-table-title [source]="source" [column]="column" (sort)="sort.emit($event)"></ng2-smart-table-title>
|
|
1918
|
+
</div>
|
|
1919
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TitleComponent, selector: "ng2-smart-table-title", inputs: ["column", "source"], outputs: ["sort"] }] });
|
|
1920
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnTitleComponent, decorators: [{
|
|
2775
1921
|
type: Component,
|
|
2776
1922
|
args: [{
|
|
2777
1923
|
selector: 'ng2-st-column-title',
|
|
@@ -2781,63 +1927,14 @@ ColumnTitleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Column
|
|
|
2781
1927
|
</div>
|
|
2782
1928
|
`,
|
|
2783
1929
|
}]
|
|
2784
|
-
}],
|
|
1930
|
+
}], propDecorators: { column: [{
|
|
2785
1931
|
type: Input
|
|
2786
1932
|
}], source: [{
|
|
2787
1933
|
type: Input
|
|
2788
1934
|
}], sort: [{
|
|
2789
1935
|
type: Output
|
|
2790
|
-
}] });
|
|
2791
|
-
})();
|
|
1936
|
+
}] } });
|
|
2792
1937
|
|
|
2793
|
-
const _c0$1 = ["ng2-st-thead-titles-row", ""];
|
|
2794
|
-
function TheadTitlesRowComponent_th_0_Template(rf, ctx) {
|
|
2795
|
-
if (rf & 1) {
|
|
2796
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
2797
|
-
i0.ɵɵelementStart(0, "th", 3);
|
|
2798
|
-
i0.ɵɵlistener("click", function TheadTitlesRowComponent_th_0_Template_th_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.selectAllRows.emit($event)); });
|
|
2799
|
-
i0.ɵɵelementEnd();
|
|
2800
|
-
}
|
|
2801
|
-
if (rf & 2) {
|
|
2802
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
2803
|
-
i0.ɵɵproperty("grid", ctx_r0.grid)("source", ctx_r0.source);
|
|
2804
|
-
}
|
|
2805
|
-
}
|
|
2806
|
-
function TheadTitlesRowComponent_th_1_Template(rf, ctx) {
|
|
2807
|
-
if (rf & 1) {
|
|
2808
|
-
i0.ɵɵelement(0, "th", 4);
|
|
2809
|
-
}
|
|
2810
|
-
if (rf & 2) {
|
|
2811
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2812
|
-
i0.ɵɵproperty("grid", ctx_r1.grid);
|
|
2813
|
-
}
|
|
2814
|
-
}
|
|
2815
|
-
function TheadTitlesRowComponent_th_2_Template(rf, ctx) {
|
|
2816
|
-
if (rf & 1) {
|
|
2817
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
2818
|
-
i0.ɵɵelementStart(0, "th", 5)(1, "ng2-st-column-title", 6);
|
|
2819
|
-
i0.ɵɵlistener("sort", function TheadTitlesRowComponent_th_2_Template_ng2_st_column_title_sort_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.sort.emit($event)); });
|
|
2820
|
-
i0.ɵɵelementEnd()();
|
|
2821
|
-
}
|
|
2822
|
-
if (rf & 2) {
|
|
2823
|
-
const column_r6 = ctx.$implicit;
|
|
2824
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
2825
|
-
i0.ɵɵclassMapInterpolate1("ng2-smart-th ", column_r6.id, "");
|
|
2826
|
-
i0.ɵɵstyleProp("width", column_r6.width);
|
|
2827
|
-
i0.ɵɵproperty("ngClass", column_r6.class);
|
|
2828
|
-
i0.ɵɵadvance(1);
|
|
2829
|
-
i0.ɵɵproperty("source", ctx_r2.source)("column", column_r6);
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2832
|
-
function TheadTitlesRowComponent_th_3_Template(rf, ctx) {
|
|
2833
|
-
if (rf & 1) {
|
|
2834
|
-
i0.ɵɵelement(0, "th", 4);
|
|
2835
|
-
}
|
|
2836
|
-
if (rf & 2) {
|
|
2837
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
2838
|
-
i0.ɵɵproperty("grid", ctx_r3.grid);
|
|
2839
|
-
}
|
|
2840
|
-
}
|
|
2841
1938
|
class TheadTitlesRowComponent {
|
|
2842
1939
|
constructor() {
|
|
2843
1940
|
this.sort = new EventEmitter();
|
|
@@ -2852,26 +1949,23 @@ class TheadTitlesRowComponent {
|
|
|
2852
1949
|
return (columns || []).filter((column) => !column.hide);
|
|
2853
1950
|
}
|
|
2854
1951
|
}
|
|
2855
|
-
TheadTitlesRowComponent.ɵfac =
|
|
2856
|
-
TheadTitlesRowComponent.ɵcmp =
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
}, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, ActionsTitleComponent, CheckboxSelectAllComponent, ColumnTitleComponent], encapsulation: 2 });
|
|
2873
|
-
(function () {
|
|
2874
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TheadTitlesRowComponent, [{
|
|
1952
|
+
TheadTitlesRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadTitlesRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1953
|
+
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: `
|
|
1954
|
+
<th ng2-st-checkbox-select-all *ngIf="isMultiSelectVisible"
|
|
1955
|
+
[grid]="grid"
|
|
1956
|
+
[source]="source"
|
|
1957
|
+
(click)="selectAllRows.emit($event)">
|
|
1958
|
+
</th>
|
|
1959
|
+
<th ng2-st-actions-title *ngIf="showActionColumnLeft" [grid]="grid"></th>
|
|
1960
|
+
<th *ngFor="let column of getVisibleColumns(grid.getColumns())"
|
|
1961
|
+
class="ng2-smart-th {{ column.id }}"
|
|
1962
|
+
[ngClass]="column.class"
|
|
1963
|
+
[style.width]="column.width">
|
|
1964
|
+
<ng2-st-column-title [source]="source" [column]="column" (sort)="sort.emit($event)"></ng2-st-column-title>
|
|
1965
|
+
</th>
|
|
1966
|
+
<th ng2-st-actions-title *ngIf="showActionColumnRight" [grid]="grid"></th>
|
|
1967
|
+
`, 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"] }] });
|
|
1968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadTitlesRowComponent, decorators: [{
|
|
2875
1969
|
type: Component,
|
|
2876
1970
|
args: [{
|
|
2877
1971
|
selector: '[ng2-st-thead-titles-row]',
|
|
@@ -2891,7 +1985,7 @@ TheadTitlesRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: The
|
|
|
2891
1985
|
<th ng2-st-actions-title *ngIf="showActionColumnRight" [grid]="grid"></th>
|
|
2892
1986
|
`,
|
|
2893
1987
|
}]
|
|
2894
|
-
}],
|
|
1988
|
+
}], propDecorators: { grid: [{
|
|
2895
1989
|
type: Input
|
|
2896
1990
|
}], source: [{
|
|
2897
1991
|
type: Input
|
|
@@ -2899,43 +1993,8 @@ TheadTitlesRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: The
|
|
|
2899
1993
|
type: Output
|
|
2900
1994
|
}], selectAllRows: [{
|
|
2901
1995
|
type: Output
|
|
2902
|
-
}] });
|
|
2903
|
-
})();
|
|
1996
|
+
}] } });
|
|
2904
1997
|
|
|
2905
|
-
const _c0 = ["ng2-st-thead", ""];
|
|
2906
|
-
function Ng2SmartTableTheadComponent_tr_0_Template(rf, ctx) {
|
|
2907
|
-
if (rf & 1) {
|
|
2908
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
2909
|
-
i0.ɵɵelementStart(0, "tr", 3);
|
|
2910
|
-
i0.ɵɵlistener("sort", function Ng2SmartTableTheadComponent_tr_0_Template_tr_sort_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.sort.emit($event)); })("selectAllRows", function Ng2SmartTableTheadComponent_tr_0_Template_tr_selectAllRows_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.selectAllRows.emit($event)); });
|
|
2911
|
-
i0.ɵɵelementEnd();
|
|
2912
|
-
}
|
|
2913
|
-
if (rf & 2) {
|
|
2914
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
2915
|
-
i0.ɵɵproperty("grid", ctx_r0.grid)("source", ctx_r0.source);
|
|
2916
|
-
}
|
|
2917
|
-
}
|
|
2918
|
-
function Ng2SmartTableTheadComponent_tr_1_Template(rf, ctx) {
|
|
2919
|
-
if (rf & 1) {
|
|
2920
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
2921
|
-
i0.ɵɵelementStart(0, "tr", 4);
|
|
2922
|
-
i0.ɵɵlistener("create", function Ng2SmartTableTheadComponent_tr_1_Template_tr_create_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.create.emit($event)); })("filter", function Ng2SmartTableTheadComponent_tr_1_Template_tr_filter_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.filter.emit($event)); });
|
|
2923
|
-
i0.ɵɵelementEnd();
|
|
2924
|
-
}
|
|
2925
|
-
if (rf & 2) {
|
|
2926
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2927
|
-
i0.ɵɵproperty("grid", ctx_r1.grid)("source", ctx_r1.source);
|
|
2928
|
-
}
|
|
2929
|
-
}
|
|
2930
|
-
function Ng2SmartTableTheadComponent_tr_2_Template(rf, ctx) {
|
|
2931
|
-
if (rf & 1) {
|
|
2932
|
-
i0.ɵɵelement(0, "tr", 5);
|
|
2933
|
-
}
|
|
2934
|
-
if (rf & 2) {
|
|
2935
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
2936
|
-
i0.ɵɵproperty("grid", ctx_r2.grid)("createConfirm", ctx_r2.createConfirm);
|
|
2937
|
-
}
|
|
2938
|
-
}
|
|
2939
1998
|
class Ng2SmartTableTheadComponent {
|
|
2940
1999
|
constructor() {
|
|
2941
2000
|
this.sort = new EventEmitter();
|
|
@@ -2948,26 +2007,12 @@ class Ng2SmartTableTheadComponent {
|
|
|
2948
2007
|
this.isHideSubHeader = this.grid.getSetting('hideSubHeader');
|
|
2949
2008
|
}
|
|
2950
2009
|
}
|
|
2951
|
-
Ng2SmartTableTheadComponent.ɵfac =
|
|
2952
|
-
Ng2SmartTableTheadComponent.ɵcmp =
|
|
2953
|
-
|
|
2954
|
-
i0.ɵɵtemplate(0, Ng2SmartTableTheadComponent_tr_0_Template, 1, 2, "tr", 0);
|
|
2955
|
-
i0.ɵɵtemplate(1, Ng2SmartTableTheadComponent_tr_1_Template, 1, 2, "tr", 1);
|
|
2956
|
-
i0.ɵɵtemplate(2, Ng2SmartTableTheadComponent_tr_2_Template, 1, 2, "tr", 2);
|
|
2957
|
-
}
|
|
2958
|
-
if (rf & 2) {
|
|
2959
|
-
i0.ɵɵproperty("ngIf", !ctx.isHideHeader);
|
|
2960
|
-
i0.ɵɵadvance(1);
|
|
2961
|
-
i0.ɵɵproperty("ngIf", !ctx.isHideSubHeader);
|
|
2962
|
-
i0.ɵɵadvance(1);
|
|
2963
|
-
i0.ɵɵproperty("ngIf", ctx.grid.createFormShown);
|
|
2964
|
-
}
|
|
2965
|
-
}, dependencies: [i1.NgIf, TheadFitlersRowComponent, TheadFormRowComponent, TheadTitlesRowComponent], encapsulation: 2 });
|
|
2966
|
-
(function () {
|
|
2967
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Ng2SmartTableTheadComponent, [{
|
|
2010
|
+
Ng2SmartTableTheadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableTheadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2011
|
+
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"] }] });
|
|
2012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableTheadComponent, decorators: [{
|
|
2968
2013
|
type: Component,
|
|
2969
2014
|
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" }]
|
|
2970
|
-
}],
|
|
2015
|
+
}], propDecorators: { grid: [{
|
|
2971
2016
|
type: Input
|
|
2972
2017
|
}], source: [{
|
|
2973
2018
|
type: Input
|
|
@@ -2981,8 +2026,7 @@ Ng2SmartTableTheadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
2981
2026
|
type: Output
|
|
2982
2027
|
}], filter: [{
|
|
2983
2028
|
type: Output
|
|
2984
|
-
}] });
|
|
2985
|
-
})();
|
|
2029
|
+
}] } });
|
|
2986
2030
|
|
|
2987
2031
|
const THEAD_COMPONENTS = [
|
|
2988
2032
|
ActionsComponent,
|
|
@@ -2998,14 +2042,34 @@ const THEAD_COMPONENTS = [
|
|
|
2998
2042
|
];
|
|
2999
2043
|
class THeadModule {
|
|
3000
2044
|
}
|
|
3001
|
-
THeadModule.ɵfac =
|
|
3002
|
-
THeadModule.ɵmod =
|
|
3003
|
-
|
|
2045
|
+
THeadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2046
|
+
THeadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, declarations: [ActionsComponent,
|
|
2047
|
+
ActionsTitleComponent,
|
|
2048
|
+
AddButtonComponent,
|
|
2049
|
+
CheckboxSelectAllComponent,
|
|
2050
|
+
ColumnTitleComponent,
|
|
2051
|
+
TitleComponent,
|
|
2052
|
+
TheadFitlersRowComponent,
|
|
2053
|
+
TheadFormRowComponent,
|
|
2054
|
+
TheadTitlesRowComponent,
|
|
2055
|
+
Ng2SmartTableTheadComponent], imports: [CommonModule,
|
|
2056
|
+
FormsModule,
|
|
2057
|
+
FilterModule,
|
|
2058
|
+
CellModule], exports: [ActionsComponent,
|
|
2059
|
+
ActionsTitleComponent,
|
|
2060
|
+
AddButtonComponent,
|
|
2061
|
+
CheckboxSelectAllComponent,
|
|
2062
|
+
ColumnTitleComponent,
|
|
2063
|
+
TitleComponent,
|
|
2064
|
+
TheadFitlersRowComponent,
|
|
2065
|
+
TheadFormRowComponent,
|
|
2066
|
+
TheadTitlesRowComponent,
|
|
2067
|
+
Ng2SmartTableTheadComponent] });
|
|
2068
|
+
THeadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, imports: [CommonModule,
|
|
3004
2069
|
FormsModule,
|
|
3005
2070
|
FilterModule,
|
|
3006
2071
|
CellModule] });
|
|
3007
|
-
(
|
|
3008
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(THeadModule, [{
|
|
2072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, decorators: [{
|
|
3009
2073
|
type: NgModule,
|
|
3010
2074
|
args: [{
|
|
3011
2075
|
imports: [
|
|
@@ -3021,32 +2085,7 @@ THeadModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
|
|
|
3021
2085
|
...THEAD_COMPONENTS,
|
|
3022
2086
|
],
|
|
3023
2087
|
}]
|
|
3024
|
-
}]
|
|
3025
|
-
})();
|
|
3026
|
-
(function () {
|
|
3027
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(THeadModule, { declarations: [ActionsComponent,
|
|
3028
|
-
ActionsTitleComponent,
|
|
3029
|
-
AddButtonComponent,
|
|
3030
|
-
CheckboxSelectAllComponent,
|
|
3031
|
-
ColumnTitleComponent,
|
|
3032
|
-
TitleComponent,
|
|
3033
|
-
TheadFitlersRowComponent,
|
|
3034
|
-
TheadFormRowComponent,
|
|
3035
|
-
TheadTitlesRowComponent,
|
|
3036
|
-
Ng2SmartTableTheadComponent], imports: [CommonModule,
|
|
3037
|
-
FormsModule,
|
|
3038
|
-
FilterModule,
|
|
3039
|
-
CellModule], exports: [ActionsComponent,
|
|
3040
|
-
ActionsTitleComponent,
|
|
3041
|
-
AddButtonComponent,
|
|
3042
|
-
CheckboxSelectAllComponent,
|
|
3043
|
-
ColumnTitleComponent,
|
|
3044
|
-
TitleComponent,
|
|
3045
|
-
TheadFitlersRowComponent,
|
|
3046
|
-
TheadFormRowComponent,
|
|
3047
|
-
TheadTitlesRowComponent,
|
|
3048
|
-
Ng2SmartTableTheadComponent] });
|
|
3049
|
-
})();
|
|
2088
|
+
}] });
|
|
3050
2089
|
|
|
3051
2090
|
/**
|
|
3052
2091
|
* Extending object that entered in first argument.
|
|
@@ -3606,6 +2645,22 @@ class Grid {
|
|
|
3606
2645
|
}
|
|
3607
2646
|
}
|
|
3608
2647
|
|
|
2648
|
+
var SmartTableOnChangedEventName;
|
|
2649
|
+
(function (SmartTableOnChangedEventName) {
|
|
2650
|
+
SmartTableOnChangedEventName["load"] = "load";
|
|
2651
|
+
SmartTableOnChangedEventName["paging"] = "paging";
|
|
2652
|
+
SmartTableOnChangedEventName["update"] = "update";
|
|
2653
|
+
SmartTableOnChangedEventName["page"] = "page";
|
|
2654
|
+
SmartTableOnChangedEventName["filter"] = "filter";
|
|
2655
|
+
SmartTableOnChangedEventName["empty"] = "empty";
|
|
2656
|
+
SmartTableOnChangedEventName["sort"] = "sort";
|
|
2657
|
+
SmartTableOnChangedEventName["add"] = "add";
|
|
2658
|
+
SmartTableOnChangedEventName["remove"] = "remove";
|
|
2659
|
+
SmartTableOnChangedEventName["append"] = "append";
|
|
2660
|
+
SmartTableOnChangedEventName["prepend"] = "prepend";
|
|
2661
|
+
SmartTableOnChangedEventName["refresh"] = "refresh";
|
|
2662
|
+
})(SmartTableOnChangedEventName || (SmartTableOnChangedEventName = {}));
|
|
2663
|
+
|
|
3609
2664
|
class DataSource {
|
|
3610
2665
|
constructor() {
|
|
3611
2666
|
this.onChangedSource = new Subject();
|
|
@@ -3614,11 +2669,11 @@ class DataSource {
|
|
|
3614
2669
|
this.onRemovedSource = new Subject();
|
|
3615
2670
|
}
|
|
3616
2671
|
refresh() {
|
|
3617
|
-
this.emitOnChanged(
|
|
2672
|
+
this.emitOnChanged(SmartTableOnChangedEventName.refresh);
|
|
3618
2673
|
}
|
|
3619
2674
|
load(data) {
|
|
3620
|
-
this.emitOnChanged(
|
|
3621
|
-
return Promise.resolve();
|
|
2675
|
+
this.emitOnChanged(SmartTableOnChangedEventName.load);
|
|
2676
|
+
return Promise.resolve(true);
|
|
3622
2677
|
}
|
|
3623
2678
|
onChanged() {
|
|
3624
2679
|
return this.onChangedSource.asObservable();
|
|
@@ -3634,56 +2689,56 @@ class DataSource {
|
|
|
3634
2689
|
}
|
|
3635
2690
|
prepend(element) {
|
|
3636
2691
|
this.emitOnAdded(element);
|
|
3637
|
-
this.emitOnChanged(
|
|
3638
|
-
return Promise.resolve();
|
|
2692
|
+
this.emitOnChanged(SmartTableOnChangedEventName.prepend);
|
|
2693
|
+
return Promise.resolve(true);
|
|
3639
2694
|
}
|
|
3640
2695
|
append(element) {
|
|
3641
2696
|
this.emitOnAdded(element);
|
|
3642
|
-
this.emitOnChanged(
|
|
3643
|
-
return Promise.resolve();
|
|
2697
|
+
this.emitOnChanged(SmartTableOnChangedEventName.append);
|
|
2698
|
+
return Promise.resolve(true);
|
|
3644
2699
|
}
|
|
3645
2700
|
add(element) {
|
|
3646
2701
|
this.emitOnAdded(element);
|
|
3647
|
-
this.emitOnChanged(
|
|
3648
|
-
return Promise.resolve();
|
|
2702
|
+
this.emitOnChanged(SmartTableOnChangedEventName.add);
|
|
2703
|
+
return Promise.resolve(true);
|
|
3649
2704
|
}
|
|
3650
2705
|
remove(element) {
|
|
3651
2706
|
this.emitOnRemoved(element);
|
|
3652
|
-
this.emitOnChanged(
|
|
3653
|
-
return Promise.resolve();
|
|
2707
|
+
this.emitOnChanged(SmartTableOnChangedEventName.remove);
|
|
2708
|
+
return Promise.resolve(true);
|
|
3654
2709
|
}
|
|
3655
2710
|
update(element, values) {
|
|
3656
2711
|
this.emitOnUpdated(element);
|
|
3657
|
-
this.emitOnChanged(
|
|
3658
|
-
return Promise.resolve();
|
|
2712
|
+
this.emitOnChanged(SmartTableOnChangedEventName.update);
|
|
2713
|
+
return Promise.resolve(true);
|
|
3659
2714
|
}
|
|
3660
2715
|
empty() {
|
|
3661
|
-
this.emitOnChanged(
|
|
3662
|
-
return Promise.resolve();
|
|
2716
|
+
this.emitOnChanged(SmartTableOnChangedEventName.empty);
|
|
2717
|
+
return Promise.resolve(true);
|
|
3663
2718
|
}
|
|
3664
2719
|
setSort(conf, doEmit) {
|
|
3665
2720
|
if (doEmit) {
|
|
3666
|
-
this.emitOnChanged(
|
|
2721
|
+
this.emitOnChanged(SmartTableOnChangedEventName.sort);
|
|
3667
2722
|
}
|
|
3668
2723
|
}
|
|
3669
2724
|
setFilter(conf, andOperator, doEmit) {
|
|
3670
2725
|
if (doEmit) {
|
|
3671
|
-
this.emitOnChanged(
|
|
2726
|
+
this.emitOnChanged(SmartTableOnChangedEventName.filter);
|
|
3672
2727
|
}
|
|
3673
2728
|
}
|
|
3674
2729
|
addFilter(fieldConf, andOperator, doEmit) {
|
|
3675
2730
|
if (doEmit) {
|
|
3676
|
-
this.emitOnChanged(
|
|
2731
|
+
this.emitOnChanged(SmartTableOnChangedEventName.filter);
|
|
3677
2732
|
}
|
|
3678
2733
|
}
|
|
3679
2734
|
setPaging(page, perPage, doEmit) {
|
|
3680
2735
|
if (doEmit) {
|
|
3681
|
-
this.emitOnChanged(
|
|
2736
|
+
this.emitOnChanged(SmartTableOnChangedEventName.paging);
|
|
3682
2737
|
}
|
|
3683
2738
|
}
|
|
3684
2739
|
setPage(page, doEmit) {
|
|
3685
2740
|
if (doEmit) {
|
|
3686
|
-
this.emitOnChanged(
|
|
2741
|
+
this.emitOnChanged(SmartTableOnChangedEventName.page);
|
|
3687
2742
|
}
|
|
3688
2743
|
}
|
|
3689
2744
|
emitOnRemoved(element) {
|
|
@@ -3754,7 +2809,10 @@ class LocalDataSource extends DataSource {
|
|
|
3754
2809
|
filters: [],
|
|
3755
2810
|
andOperator: true,
|
|
3756
2811
|
};
|
|
3757
|
-
this.pagingConf = {
|
|
2812
|
+
this.pagingConf = {
|
|
2813
|
+
page: 1,
|
|
2814
|
+
perPage: 1,
|
|
2815
|
+
};
|
|
3758
2816
|
this.data = data;
|
|
3759
2817
|
}
|
|
3760
2818
|
load(data) {
|
|
@@ -3814,7 +2872,7 @@ class LocalDataSource extends DataSource {
|
|
|
3814
2872
|
andOperator: true,
|
|
3815
2873
|
};
|
|
3816
2874
|
this.sortConf = [];
|
|
3817
|
-
this.pagingConf
|
|
2875
|
+
this.pagingConf.page = 1;
|
|
3818
2876
|
}
|
|
3819
2877
|
else {
|
|
3820
2878
|
this.setFilter([], true, false);
|
|
@@ -3842,7 +2900,7 @@ class LocalDataSource extends DataSource {
|
|
|
3842
2900
|
setSort(conf, doEmit = true) {
|
|
3843
2901
|
if (conf !== null) {
|
|
3844
2902
|
conf.forEach((fieldConf) => {
|
|
3845
|
-
if (!fieldConf
|
|
2903
|
+
if (!fieldConf.field || typeof fieldConf.direction === 'undefined') {
|
|
3846
2904
|
throw new Error('Sort configuration object is not valid');
|
|
3847
2905
|
}
|
|
3848
2906
|
});
|
|
@@ -3875,17 +2933,17 @@ class LocalDataSource extends DataSource {
|
|
|
3875
2933
|
};
|
|
3876
2934
|
}
|
|
3877
2935
|
this.filterConf.andOperator = andOperator;
|
|
3878
|
-
this.pagingConf
|
|
2936
|
+
this.pagingConf.page = 1;
|
|
3879
2937
|
super.setFilter(conf, andOperator, doEmit);
|
|
3880
2938
|
return this;
|
|
3881
2939
|
}
|
|
3882
2940
|
addFilter(fieldConf, andOperator = true, doEmit = true) {
|
|
3883
|
-
if (!fieldConf
|
|
2941
|
+
if (!fieldConf.field || typeof fieldConf.search === 'undefined') {
|
|
3884
2942
|
throw new Error('Filter configuration object is not valid');
|
|
3885
2943
|
}
|
|
3886
2944
|
let found = false;
|
|
3887
2945
|
this.filterConf.filters.forEach((currentFieldConf, index) => {
|
|
3888
|
-
if (currentFieldConf
|
|
2946
|
+
if (currentFieldConf.field === fieldConf.field) {
|
|
3889
2947
|
this.filterConf.filters[index] = fieldConf;
|
|
3890
2948
|
found = true;
|
|
3891
2949
|
}
|
|
@@ -3898,13 +2956,13 @@ class LocalDataSource extends DataSource {
|
|
|
3898
2956
|
return this;
|
|
3899
2957
|
}
|
|
3900
2958
|
setPaging(page, perPage, doEmit = true) {
|
|
3901
|
-
this.pagingConf
|
|
3902
|
-
this.pagingConf
|
|
2959
|
+
this.pagingConf.page = page;
|
|
2960
|
+
this.pagingConf.perPage = perPage;
|
|
3903
2961
|
super.setPaging(page, perPage, doEmit);
|
|
3904
2962
|
return this;
|
|
3905
2963
|
}
|
|
3906
2964
|
setPage(page, doEmit = true) {
|
|
3907
|
-
this.pagingConf
|
|
2965
|
+
this.pagingConf.page = page;
|
|
3908
2966
|
super.setPage(page, doEmit);
|
|
3909
2967
|
return this;
|
|
3910
2968
|
}
|
|
@@ -3927,7 +2985,7 @@ class LocalDataSource extends DataSource {
|
|
|
3927
2985
|
if (this.sortConf) {
|
|
3928
2986
|
this.sortConf.forEach((fieldConf) => {
|
|
3929
2987
|
data = LocalSorter
|
|
3930
|
-
.sort(data, fieldConf
|
|
2988
|
+
.sort(data, fieldConf.field, fieldConf.direction, fieldConf.compare);
|
|
3931
2989
|
});
|
|
3932
2990
|
}
|
|
3933
2991
|
return data;
|
|
@@ -3938,9 +2996,9 @@ class LocalDataSource extends DataSource {
|
|
|
3938
2996
|
if (this.filterConf.andOperator) {
|
|
3939
2997
|
this.filterConf.filters.forEach((fieldConf) => {
|
|
3940
2998
|
var _a;
|
|
3941
|
-
if (((_a = fieldConf
|
|
2999
|
+
if (((_a = fieldConf.search) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
3942
3000
|
data = LocalFilter
|
|
3943
|
-
.filter(data, fieldConf
|
|
3001
|
+
.filter(data, fieldConf.field, fieldConf.search, fieldConf.filter);
|
|
3944
3002
|
}
|
|
3945
3003
|
});
|
|
3946
3004
|
}
|
|
@@ -3948,9 +3006,9 @@ class LocalDataSource extends DataSource {
|
|
|
3948
3006
|
let mergedData = [];
|
|
3949
3007
|
this.filterConf.filters.forEach((fieldConf) => {
|
|
3950
3008
|
var _a;
|
|
3951
|
-
if (((_a = fieldConf
|
|
3009
|
+
if (((_a = fieldConf.search) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
3952
3010
|
mergedData = mergedData.concat(LocalFilter
|
|
3953
|
-
.filter(data, fieldConf
|
|
3011
|
+
.filter(data, fieldConf.field, fieldConf.search, fieldConf.filter));
|
|
3954
3012
|
}
|
|
3955
3013
|
});
|
|
3956
3014
|
// remove non unique items
|
|
@@ -3962,34 +3020,13 @@ class LocalDataSource extends DataSource {
|
|
|
3962
3020
|
return data;
|
|
3963
3021
|
}
|
|
3964
3022
|
paginate(data) {
|
|
3965
|
-
if (this.pagingConf && this.pagingConf
|
|
3966
|
-
data = LocalPager.paginate(data, this.pagingConf
|
|
3023
|
+
if (this.pagingConf && this.pagingConf.page && this.pagingConf.perPage) {
|
|
3024
|
+
data = LocalPager.paginate(data, this.pagingConf.page, this.pagingConf.perPage);
|
|
3967
3025
|
}
|
|
3968
3026
|
return data;
|
|
3969
3027
|
}
|
|
3970
3028
|
}
|
|
3971
3029
|
|
|
3972
|
-
function Ng2SmartTableComponent_thead_1_Template(rf, ctx) {
|
|
3973
|
-
if (rf & 1) {
|
|
3974
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
3975
|
-
i0.ɵɵelementStart(0, "thead", 4);
|
|
3976
|
-
i0.ɵɵlistener("create", function Ng2SmartTableComponent_thead_1_Template_thead_create_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.create.emit($event)); })("selectAllRows", function Ng2SmartTableComponent_thead_1_Template_thead_selectAllRows_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onSelectAllRows()); });
|
|
3977
|
-
i0.ɵɵelementEnd();
|
|
3978
|
-
}
|
|
3979
|
-
if (rf & 2) {
|
|
3980
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
3981
|
-
i0.ɵɵproperty("grid", ctx_r0.grid)("source", ctx_r0.source)("createConfirm", ctx_r0.createConfirm);
|
|
3982
|
-
}
|
|
3983
|
-
}
|
|
3984
|
-
function Ng2SmartTableComponent_ng2_smart_table_pager_3_Template(rf, ctx) {
|
|
3985
|
-
if (rf & 1) {
|
|
3986
|
-
i0.ɵɵelement(0, "ng2-smart-table-pager", 5);
|
|
3987
|
-
}
|
|
3988
|
-
if (rf & 2) {
|
|
3989
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
3990
|
-
i0.ɵɵproperty("source", ctx_r1.source)("perPageSelect", ctx_r1.perPageSelect);
|
|
3991
|
-
}
|
|
3992
|
-
}
|
|
3993
3030
|
class Ng2SmartTableComponent {
|
|
3994
3031
|
constructor() {
|
|
3995
3032
|
this.multiRowSelect = new EventEmitter();
|
|
@@ -4080,9 +3117,6 @@ class Ng2SmartTableComponent {
|
|
|
4080
3117
|
this.perPageSelect = this.grid.getSetting('pager.perPageSelect');
|
|
4081
3118
|
this.rowClassFunction = this.grid.getSetting('rowClassFunction');
|
|
4082
3119
|
}
|
|
4083
|
-
onRowHover(row) {
|
|
4084
|
-
this.rowHover.emit(row);
|
|
4085
|
-
}
|
|
4086
3120
|
multipleSelectRow(row) {
|
|
4087
3121
|
this.grid.multipleSelectRow(row);
|
|
4088
3122
|
this.emitUserSelectRow(row);
|
|
@@ -4123,31 +3157,12 @@ class Ng2SmartTableComponent {
|
|
|
4123
3157
|
});
|
|
4124
3158
|
}
|
|
4125
3159
|
}
|
|
4126
|
-
Ng2SmartTableComponent.ɵfac =
|
|
4127
|
-
Ng2SmartTableComponent.ɵcmp =
|
|
4128
|
-
|
|
4129
|
-
i0.ɵɵelementStart(0, "table", 0);
|
|
4130
|
-
i0.ɵɵtemplate(1, Ng2SmartTableComponent_thead_1_Template, 1, 3, "thead", 1);
|
|
4131
|
-
i0.ɵɵelementStart(2, "tbody", 2);
|
|
4132
|
-
i0.ɵɵlistener("edit", function Ng2SmartTableComponent_Template_tbody_edit_2_listener($event) { return ctx.edit.emit($event); })("editCancel", function Ng2SmartTableComponent_Template_tbody_editCancel_2_listener($event) { return ctx.editCancel.emit($event); })("delete", function Ng2SmartTableComponent_Template_tbody_delete_2_listener($event) { return ctx.delete.emit($event); })("custom", function Ng2SmartTableComponent_Template_tbody_custom_2_listener($event) { return ctx.custom.emit($event); })("userClickedRow", function Ng2SmartTableComponent_Template_tbody_userClickedRow_2_listener($event) { return ctx.emitUserRowClicked($event); })("multipleSelectRow", function Ng2SmartTableComponent_Template_tbody_multipleSelectRow_2_listener($event) { return ctx.multipleSelectRow($event); })("rowHover", function Ng2SmartTableComponent_Template_tbody_rowHover_2_listener($event) { return ctx.onRowHover($event); });
|
|
4133
|
-
i0.ɵɵelementEnd()();
|
|
4134
|
-
i0.ɵɵtemplate(3, Ng2SmartTableComponent_ng2_smart_table_pager_3_Template, 1, 2, "ng2-smart-table-pager", 3);
|
|
4135
|
-
}
|
|
4136
|
-
if (rf & 2) {
|
|
4137
|
-
i0.ɵɵproperty("id", ctx.tableId)("ngClass", ctx.tableClass);
|
|
4138
|
-
i0.ɵɵadvance(1);
|
|
4139
|
-
i0.ɵɵproperty("ngIf", !ctx.isHideHeader || !ctx.isHideSubHeader);
|
|
4140
|
-
i0.ɵɵadvance(1);
|
|
4141
|
-
i0.ɵɵproperty("grid", ctx.grid)("source", ctx.source)("deleteConfirm", ctx.deleteConfirm)("editConfirm", ctx.editConfirm)("rowClassFunction", ctx.rowClassFunction);
|
|
4142
|
-
i0.ɵɵadvance(1);
|
|
4143
|
-
i0.ɵɵproperty("ngIf", ctx.isPagerDisplay);
|
|
4144
|
-
}
|
|
4145
|
-
}, dependencies: [i1.NgClass, i1.NgIf, PagerComponent, Ng2SmartTableTbodyComponent, Ng2SmartTableTheadComponent], styles: ["[_nghost-%COMP%]{font-size:1rem}[_nghost-%COMP%] *{box-sizing:border-box}[_nghost-%COMP%] button, [_nghost-%COMP%] input, [_nghost-%COMP%] optgroup, [_nghost-%COMP%] select, [_nghost-%COMP%] textarea{color:inherit;font:inherit;margin:0}[_nghost-%COMP%] table{line-height:1.5em;border-collapse:collapse;border-spacing:0;display:table;width:100%;max-width:100%;overflow:auto;word-break:normal;word-break:keep-all}[_nghost-%COMP%] table tr th{font-weight:700}[_nghost-%COMP%] table tr section{font-size:.75em;font-weight:700}[_nghost-%COMP%] table tr td, [_nghost-%COMP%] table tr th{font-size:.875em;margin:0;padding:.5em 1em}[_nghost-%COMP%] a{color:#1e6bb8;text-decoration:none}[_nghost-%COMP%] a:hover{text-decoration:underline}"] });
|
|
4146
|
-
(function () {
|
|
4147
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Ng2SmartTableComponent, [{
|
|
3160
|
+
Ng2SmartTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3161
|
+
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%;overflow:auto;word-break:normal;word-break:keep-all}: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"] }] });
|
|
3162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableComponent, decorators: [{
|
|
4148
3163
|
type: Component,
|
|
4149
|
-
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)\"
|
|
4150
|
-
}],
|
|
3164
|
+
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%;overflow:auto;word-break:normal;word-break:keep-all}: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"] }]
|
|
3165
|
+
}], propDecorators: { source: [{
|
|
4151
3166
|
type: Input
|
|
4152
3167
|
}], settings: [{
|
|
4153
3168
|
type: Input
|
|
@@ -4173,14 +3188,20 @@ Ng2SmartTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Ng2S
|
|
|
4173
3188
|
type: Output
|
|
4174
3189
|
}], rowHover: [{
|
|
4175
3190
|
type: Output
|
|
4176
|
-
}] });
|
|
4177
|
-
})();
|
|
3191
|
+
}] } });
|
|
4178
3192
|
|
|
4179
3193
|
class Ng2SmartTableModule {
|
|
4180
3194
|
}
|
|
4181
|
-
Ng2SmartTableModule.ɵfac =
|
|
4182
|
-
Ng2SmartTableModule.ɵmod =
|
|
4183
|
-
|
|
3195
|
+
Ng2SmartTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3196
|
+
Ng2SmartTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, declarations: [Ng2SmartTableComponent], imports: [CommonModule,
|
|
3197
|
+
FormsModule,
|
|
3198
|
+
ReactiveFormsModule,
|
|
3199
|
+
CellModule,
|
|
3200
|
+
FilterModule,
|
|
3201
|
+
PagerModule,
|
|
3202
|
+
TBodyModule,
|
|
3203
|
+
THeadModule], exports: [Ng2SmartTableComponent] });
|
|
3204
|
+
Ng2SmartTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, imports: [CommonModule,
|
|
4184
3205
|
FormsModule,
|
|
4185
3206
|
ReactiveFormsModule,
|
|
4186
3207
|
CellModule,
|
|
@@ -4188,8 +3209,7 @@ Ng2SmartTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Comm
|
|
|
4188
3209
|
PagerModule,
|
|
4189
3210
|
TBodyModule,
|
|
4190
3211
|
THeadModule] });
|
|
4191
|
-
(
|
|
4192
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Ng2SmartTableModule, [{
|
|
3212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, decorators: [{
|
|
4193
3213
|
type: NgModule,
|
|
4194
3214
|
args: [{
|
|
4195
3215
|
imports: [
|
|
@@ -4209,18 +3229,7 @@ Ng2SmartTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Comm
|
|
|
4209
3229
|
Ng2SmartTableComponent,
|
|
4210
3230
|
],
|
|
4211
3231
|
}]
|
|
4212
|
-
}]
|
|
4213
|
-
})();
|
|
4214
|
-
(function () {
|
|
4215
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(Ng2SmartTableModule, { declarations: [Ng2SmartTableComponent], imports: [CommonModule,
|
|
4216
|
-
FormsModule,
|
|
4217
|
-
ReactiveFormsModule,
|
|
4218
|
-
CellModule,
|
|
4219
|
-
FilterModule,
|
|
4220
|
-
PagerModule,
|
|
4221
|
-
TBodyModule,
|
|
4222
|
-
THeadModule], exports: [Ng2SmartTableComponent] });
|
|
4223
|
-
})();
|
|
3232
|
+
}] });
|
|
4224
3233
|
|
|
4225
3234
|
class ServerSourceConf {
|
|
4226
3235
|
constructor({ endPoint = '', sortFieldKey = '', sortDirKey = '', pagerPageKey = '', pagerLimitKey = '', filterFieldKey = '', totalKey = '', dataKey = '' } = {}) {
|