@den4ik92/ng2-smart-table 1.0.6 → 1.0.8

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.
Files changed (59) hide show
  1. package/esm2020/lib/components/cell/cell-edit-mode/custom-edit.component.mjs +15 -22
  2. package/esm2020/lib/components/cell/cell-edit-mode/default-edit.component.mjs +7 -67
  3. package/esm2020/lib/components/cell/cell-edit-mode/edit-cell-default.mjs +15 -15
  4. package/esm2020/lib/components/cell/cell-edit-mode/edit-cell.component.mjs +29 -43
  5. package/esm2020/lib/components/cell/cell-editors/checkbox-editor.component.mjs +16 -14
  6. package/esm2020/lib/components/cell/cell-editors/completer-editor.component.mjs +18 -10
  7. package/esm2020/lib/components/cell/cell-editors/default-editor.mjs +19 -19
  8. package/esm2020/lib/components/cell/cell-editors/input-editor.component.mjs +17 -13
  9. package/esm2020/lib/components/cell/cell-editors/select-editor.component.mjs +24 -31
  10. package/esm2020/lib/components/cell/cell-editors/textarea-editor.component.mjs +18 -14
  11. package/esm2020/lib/components/cell/cell-view-mode/custom-view.component.mjs +17 -24
  12. package/esm2020/lib/components/cell/cell-view-mode/view-cell.component.mjs +19 -46
  13. package/esm2020/lib/components/cell/cell.component.mjs +36 -52
  14. package/esm2020/lib/components/cell/cell.module.mjs +21 -22
  15. package/esm2020/lib/components/filter/custom-filter.component.mjs +15 -24
  16. package/esm2020/lib/components/filter/default-filter.component.mjs +39 -63
  17. package/esm2020/lib/components/filter/filter-default.mjs +17 -17
  18. package/esm2020/lib/components/filter/filter-types/checkbox-filter.component.mjs +14 -29
  19. package/esm2020/lib/components/filter/filter-types/completer-filter.component.mjs +19 -10
  20. package/esm2020/lib/components/filter/filter-types/default-filter.mjs +17 -17
  21. package/esm2020/lib/components/filter/filter-types/input-filter.component.mjs +17 -15
  22. package/esm2020/lib/components/filter/filter-types/select-filter.component.mjs +24 -43
  23. package/esm2020/lib/components/filter/filter.component.mjs +24 -40
  24. package/esm2020/lib/components/filter/filter.module.mjs +23 -24
  25. package/esm2020/lib/components/pager/pager.component.mjs +66 -132
  26. package/esm2020/lib/components/pager/pager.module.mjs +20 -21
  27. package/esm2020/lib/components/tbody/cells/create-cancel.component.mjs +23 -29
  28. package/esm2020/lib/components/tbody/cells/custom.component.mjs +24 -32
  29. package/esm2020/lib/components/tbody/cells/edit-delete.component.mjs +32 -52
  30. package/esm2020/lib/components/tbody/tbody.component.mjs +43 -167
  31. package/esm2020/lib/components/tbody/tbody.module.mjs +23 -24
  32. package/esm2020/lib/components/thead/cells/actions-title.component.mjs +14 -20
  33. package/esm2020/lib/components/thead/cells/actions.component.mjs +21 -25
  34. package/esm2020/lib/components/thead/cells/add-button.component.mjs +19 -30
  35. package/esm2020/lib/components/thead/cells/checkbox-select-all.component.mjs +16 -19
  36. package/esm2020/lib/components/thead/cells/column-title.component.mjs +20 -23
  37. package/esm2020/lib/components/thead/cells/title/title.component.mjs +21 -41
  38. package/esm2020/lib/components/thead/rows/thead-filters-row.component.mjs +36 -65
  39. package/esm2020/lib/components/thead/rows/thead-form-row.component.mjs +37 -66
  40. package/esm2020/lib/components/thead/rows/thead-titles-row.component.mjs +32 -67
  41. package/esm2020/lib/components/thead/thead.component.mjs +21 -56
  42. package/esm2020/lib/components/thead/thead.module.mjs +25 -26
  43. package/esm2020/lib/lib/data-source/data-source.mjs +22 -21
  44. package/esm2020/lib/lib/data-source/local/local.data-source.mjs +20 -17
  45. package/esm2020/lib/lib/data-source/local/local.filter.mjs +1 -1
  46. package/esm2020/lib/lib/interfaces/smart-table.models.mjs +16 -2
  47. package/esm2020/lib/ng2-smart-table.component.mjs +33 -66
  48. package/esm2020/lib/ng2-smart-table.module.mjs +27 -28
  49. package/fesm2015/den4ik92-ng2-smart-table.mjs +651 -1642
  50. package/fesm2015/den4ik92-ng2-smart-table.mjs.map +1 -1
  51. package/fesm2020/den4ik92-ng2-smart-table.mjs +1065 -1676
  52. package/fesm2020/den4ik92-ng2-smart-table.mjs.map +1 -1
  53. package/lib/components/tbody/tbody.component.d.ts +2 -2
  54. package/lib/lib/data-source/data-source.d.ts +20 -19
  55. package/lib/lib/data-source/local/local.data-source.d.ts +29 -28
  56. package/lib/lib/data-source/local/local.filter.d.ts +1 -1
  57. package/lib/lib/interfaces/smart-table.models.d.ts +40 -3
  58. package/lib/ng2-smart-table.component.d.ts +1 -2
  59. package/package.json +1 -1
@@ -583,23 +583,21 @@ class EditCellDefault {
583
583
  event.stopPropagation();
584
584
  }
585
585
  }
586
- EditCellDefault.ɵfac = function EditCellDefault_Factory(t) { return new (t || EditCellDefault)(); };
587
- EditCellDefault.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EditCellDefault, selectors: [["ng-component"]], inputs: { cell: "cell", inputClass: "inputClass" }, outputs: { edited: "edited" }, decls: 0, vars: 0, template: function EditCellDefault_Template(rf, ctx) { }, encapsulation: 2 });
588
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EditCellDefault, [{
589
- type: Component,
590
- args: [{
591
- template: ''
592
- }]
593
- }], null, { cell: [{
594
- type: Input
595
- }], inputClass: [{
596
- type: Input
597
- }], edited: [{
598
- type: Output
599
- }] }); })();
600
-
601
- const _c0$c = ["dynamicTarget"];
602
- function CustomEditComponent_ng_template_0_Template(rf, ctx) { }
586
+ EditCellDefault.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EditCellDefault, deps: [], target: i0.ɵɵFactoryTarget.Component });
587
+ 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 });
588
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EditCellDefault, decorators: [{
589
+ type: Component,
590
+ args: [{
591
+ template: ''
592
+ }]
593
+ }], propDecorators: { cell: [{
594
+ type: Input
595
+ }], inputClass: [{
596
+ type: Input
597
+ }], edited: [{
598
+ type: Output
599
+ }] } });
600
+
603
601
  class CustomEditComponent extends EditCellDefault {
604
602
  constructor(resolver) {
605
603
  super();
@@ -623,27 +621,22 @@ class CustomEditComponent extends EditCellDefault {
623
621
  }
624
622
  }
625
623
  }
626
- CustomEditComponent.ɵfac = function CustomEditComponent_Factory(t) { return new (t || CustomEditComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver)); };
627
- CustomEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CustomEditComponent, selectors: [["table-cell-custom-editor"]], viewQuery: function CustomEditComponent_Query(rf, ctx) { if (rf & 1) {
628
- i0.ɵɵviewQuery(_c0$c, 7, ViewContainerRef);
629
- } if (rf & 2) {
630
- let _t;
631
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dynamicTarget = _t.first);
632
- } }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 2, vars: 0, consts: [["dynamicTarget", ""]], template: function CustomEditComponent_Template(rf, ctx) { if (rf & 1) {
633
- i0.ɵɵtemplate(0, CustomEditComponent_ng_template_0_Template, 0, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
634
- } }, encapsulation: 2 });
635
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomEditComponent, [{
636
- type: Component,
637
- args: [{
638
- selector: 'table-cell-custom-editor',
639
- template: `
624
+ CustomEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomEditComponent, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
625
+ 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: `
626
+ <ng-template #dynamicTarget></ng-template>
627
+ `, isInline: true });
628
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomEditComponent, decorators: [{
629
+ type: Component,
630
+ args: [{
631
+ selector: 'table-cell-custom-editor',
632
+ template: `
640
633
  <ng-template #dynamicTarget></ng-template>
641
634
  `,
642
- }]
643
- }], function () { return [{ type: i0.ComponentFactoryResolver }]; }, { dynamicTarget: [{
644
- type: ViewChild,
645
- args: ['dynamicTarget', { read: ViewContainerRef, static: true }]
646
- }] }); })();
635
+ }]
636
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }]; }, propDecorators: { dynamicTarget: [{
637
+ type: ViewChild,
638
+ args: ['dynamicTarget', { read: ViewContainerRef, static: true }]
639
+ }] } });
647
640
 
648
641
  class DefaultEditor {
649
642
  constructor() {
@@ -652,24 +645,24 @@ class DefaultEditor {
652
645
  this.onClick = new EventEmitter();
653
646
  }
654
647
  }
655
- DefaultEditor.ɵfac = function DefaultEditor_Factory(t) { return new (t || DefaultEditor)(); };
656
- DefaultEditor.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DefaultEditor, selectors: [["ng-component"]], inputs: { cell: "cell", inputClass: "inputClass" }, outputs: { onStopEditing: "onStopEditing", onEdited: "onEdited", onClick: "onClick" }, decls: 0, vars: 0, template: function DefaultEditor_Template(rf, ctx) { }, encapsulation: 2 });
657
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultEditor, [{
658
- type: Component,
659
- args: [{
660
- template: '',
661
- }]
662
- }], null, { cell: [{
663
- type: Input
664
- }], inputClass: [{
665
- type: Input
666
- }], onStopEditing: [{
667
- type: Output
668
- }], onEdited: [{
669
- type: Output
670
- }], onClick: [{
671
- type: Output
672
- }] }); })();
648
+ DefaultEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultEditor, deps: [], target: i0.ɵɵFactoryTarget.Component });
649
+ 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 });
650
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultEditor, decorators: [{
651
+ type: Component,
652
+ args: [{
653
+ template: '',
654
+ }]
655
+ }], propDecorators: { cell: [{
656
+ type: Input
657
+ }], inputClass: [{
658
+ type: Input
659
+ }], onStopEditing: [{
660
+ type: Output
661
+ }], onEdited: [{
662
+ type: Output
663
+ }], onClick: [{
664
+ type: Output
665
+ }] } });
673
666
 
674
667
  class CheckboxEditorComponent extends DefaultEditor {
675
668
  constructor() {
@@ -681,18 +674,20 @@ class CheckboxEditorComponent extends DefaultEditor {
681
674
  this.cell.newValue = event.target.checked ? trueVal : falseVal;
682
675
  }
683
676
  }
684
- CheckboxEditorComponent.ɵfac = function CheckboxEditorComponent_Factory(t) { return new (t || CheckboxEditorComponent)(); };
685
- CheckboxEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckboxEditorComponent, selectors: [["checkbox-editor"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 4, consts: [["type", "checkbox", 1, "form-control", 3, "ngClass", "name", "disabled", "checked", "click", "change"]], template: function CheckboxEditorComponent_Template(rf, ctx) { if (rf & 1) {
686
- i0.ɵɵelementStart(0, "input", 0);
687
- i0.ɵɵlistener("click", function CheckboxEditorComponent_Template_input_click_0_listener($event) { return ctx.onClick.emit($event); })("change", function CheckboxEditorComponent_Template_input_change_0_listener($event) { return ctx.onChange($event); });
688
- i0.ɵɵelementEnd();
689
- } if (rf & 2) {
690
- let tmp_3_0;
691
- i0.ɵɵproperty("ngClass", ctx.inputClass)("name", ctx.cell.getId())("disabled", !ctx.cell.isEditable())("checked", ctx.cell.getValue() == (((tmp_3_0 = ctx.cell.getColumn().getConfig()) == null ? null : tmp_3_0.true) || true));
692
- } }, dependencies: [i1.NgClass], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;line-height:normal;padding:.375em .75em}"] });
693
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxEditorComponent, [{
694
- type: Component,
695
- args: [{ selector: 'checkbox-editor', template: `
677
+ CheckboxEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
678
+ CheckboxEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CheckboxEditorComponent, selector: "checkbox-editor", usesInheritance: true, ngImport: i0, template: `
679
+ <input [ngClass]="inputClass"
680
+ type="checkbox"
681
+ class="form-control"
682
+ [name]="cell.getId()"
683
+ [disabled]="!cell.isEditable()"
684
+ [checked]="cell.getValue() == (cell.getColumn().getConfig()?.true || true)"
685
+ (click)="onClick.emit($event)"
686
+ (change)="onChange($event)">
687
+ `, 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"] }] });
688
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxEditorComponent, decorators: [{
689
+ type: Component,
690
+ args: [{ selector: 'checkbox-editor', template: `
696
691
  <input [ngClass]="inputClass"
697
692
  type="checkbox"
698
693
  class="form-control"
@@ -702,7 +697,7 @@ CheckboxEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Che
702
697
  (click)="onClick.emit($event)"
703
698
  (change)="onChange($event)">
704
699
  `, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"] }]
705
- }], function () { return []; }, null); })();
700
+ }], ctorParameters: function () { return []; } });
706
701
 
707
702
  class CompleterEditorComponent extends DefaultEditor {
708
703
  constructor() {
@@ -721,13 +716,21 @@ class CompleterEditorComponent extends DefaultEditor {
721
716
  return false;
722
717
  }
723
718
  }
724
- CompleterEditorComponent.ɵfac = function CompleterEditorComponent_Factory(t) { return new (t || CompleterEditorComponent)(); };
725
- CompleterEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompleterEditorComponent, selectors: [["completer-editor"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function CompleterEditorComponent_Template(rf, ctx) { }, encapsulation: 2 });
726
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompleterEditorComponent, [{
727
- type: Component,
728
- args: [{
729
- selector: 'completer-editor',
730
- template: `
719
+ CompleterEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompleterEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
720
+ CompleterEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CompleterEditorComponent, selector: "completer-editor", usesInheritance: true, ngImport: i0, template: `
721
+ <!-- <ng2-completer [(ngModel)]="completerStr"
722
+ [dataService]="cell.getColumn().getConfig().completer.dataService"
723
+ [minSearchLength]="cell.getColumn().getConfig().completer.minSearchLength || 0"
724
+ [pause]="cell.getColumn().getConfig().completer.pause || 0"
725
+ [placeholder]="cell.getColumn().getConfig().completer.placeholder || 'Start typing...'"
726
+ (selected)="onEditedCompleter($event)">
727
+ </ng2-completer> -->
728
+ `, isInline: true });
729
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompleterEditorComponent, decorators: [{
730
+ type: Component,
731
+ args: [{
732
+ selector: 'completer-editor',
733
+ template: `
731
734
  <!-- <ng2-completer [(ngModel)]="completerStr"
732
735
  [dataService]="cell.getColumn().getConfig().completer.dataService"
733
736
  [minSearchLength]="cell.getColumn().getConfig().completer.minSearchLength || 0"
@@ -736,25 +739,29 @@ CompleterEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Co
736
739
  (selected)="onEditedCompleter($event)">
737
740
  </ng2-completer> -->
738
741
  `,
739
- }]
740
- }], function () { return []; }, null); })();
742
+ }]
743
+ }], ctorParameters: function () { return []; } });
741
744
 
742
745
  class InputEditorComponent extends DefaultEditor {
743
746
  constructor() {
744
747
  super();
745
748
  }
746
749
  }
747
- InputEditorComponent.ɵfac = function InputEditorComponent_Factory(t) { return new (t || InputEditorComponent)(); };
748
- InputEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputEditorComponent, selectors: [["input-editor"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 5, consts: [[1, "form-control", 3, "ngClass", "ngModel", "name", "placeholder", "disabled", "ngModelChange", "click", "keydown.enter", "keydown.esc"]], template: function InputEditorComponent_Template(rf, ctx) { if (rf & 1) {
749
- i0.ɵɵelementStart(0, "input", 0);
750
- i0.ɵɵlistener("ngModelChange", function InputEditorComponent_Template_input_ngModelChange_0_listener($event) { return ctx.cell.newValue = $event; })("click", function InputEditorComponent_Template_input_click_0_listener($event) { return ctx.onClick.emit($event); })("keydown.enter", function InputEditorComponent_Template_input_keydown_enter_0_listener($event) { return ctx.onEdited.emit($event); })("keydown.esc", function InputEditorComponent_Template_input_keydown_esc_0_listener() { return ctx.onStopEditing.emit(); });
751
- i0.ɵɵelementEnd();
752
- } if (rf & 2) {
753
- i0.ɵɵproperty("ngClass", ctx.inputClass)("ngModel", ctx.cell.newValue)("name", ctx.cell.getId())("placeholder", ctx.cell.getTitle())("disabled", !ctx.cell.isEditable());
754
- } }, dependencies: [i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgModel], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;line-height:normal;padding:.375em .75em}"] });
755
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputEditorComponent, [{
756
- type: Component,
757
- args: [{ selector: 'input-editor', template: `
750
+ InputEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
751
+ InputEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputEditorComponent, selector: "input-editor", usesInheritance: true, ngImport: i0, template: `
752
+ <input [ngClass]="inputClass"
753
+ class="form-control"
754
+ [(ngModel)]="cell.newValue"
755
+ [name]="cell.getId()"
756
+ [placeholder]="cell.getTitle()"
757
+ [disabled]="!cell.isEditable()"
758
+ (click)="onClick.emit($event)"
759
+ (keydown.enter)="onEdited.emit($event)"
760
+ (keydown.esc)="onStopEditing.emit()">
761
+ `, 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"] }] });
762
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputEditorComponent, decorators: [{
763
+ type: Component,
764
+ args: [{ selector: 'input-editor', template: `
758
765
  <input [ngClass]="inputClass"
759
766
  class="form-control"
760
767
  [(ngModel)]="cell.newValue"
@@ -765,41 +772,34 @@ InputEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputE
765
772
  (keydown.enter)="onEdited.emit($event)"
766
773
  (keydown.esc)="onStopEditing.emit()">
767
774
  `, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"] }]
768
- }], function () { return []; }, null); })();
769
-
770
- function SelectEditorComponent_option_1_Template(rf, ctx) { if (rf & 1) {
771
- i0.ɵɵelementStart(0, "option", 2);
772
- i0.ɵɵtext(1);
773
- i0.ɵɵelementEnd();
774
- } if (rf & 2) {
775
- const option_r1 = ctx.$implicit;
776
- const ctx_r0 = i0.ɵɵnextContext();
777
- i0.ɵɵproperty("value", option_r1.value)("selected", option_r1.value === ctx_r0.cell.getValue());
778
- i0.ɵɵadvance(1);
779
- i0.ɵɵtextInterpolate1("", option_r1.title, " ");
780
- } }
775
+ }], ctorParameters: function () { return []; } });
776
+
781
777
  class SelectEditorComponent extends DefaultEditor {
782
778
  constructor() {
783
779
  super();
784
780
  }
785
781
  }
786
- SelectEditorComponent.ɵfac = function SelectEditorComponent_Factory(t) { return new (t || SelectEditorComponent)(); };
787
- SelectEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectEditorComponent, selectors: [["select-editor"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 5, consts: [[1, "form-control", 3, "ngClass", "ngModel", "name", "disabled", "ngModelChange", "click", "keydown.enter", "keydown.esc"], [3, "value", "selected", 4, "ngFor", "ngForOf"], [3, "value", "selected"]], template: function SelectEditorComponent_Template(rf, ctx) { if (rf & 1) {
788
- i0.ɵɵelementStart(0, "select", 0);
789
- i0.ɵɵlistener("ngModelChange", function SelectEditorComponent_Template_select_ngModelChange_0_listener($event) { return ctx.cell.newValue = $event; })("click", function SelectEditorComponent_Template_select_click_0_listener($event) { return ctx.onClick.emit($event); })("keydown.enter", function SelectEditorComponent_Template_select_keydown_enter_0_listener($event) { return ctx.onEdited.emit($event); })("keydown.esc", function SelectEditorComponent_Template_select_keydown_esc_0_listener() { return ctx.onStopEditing.emit(); });
790
- i0.ɵɵtemplate(1, SelectEditorComponent_option_1_Template, 2, 3, "option", 1);
791
- i0.ɵɵelementEnd();
792
- } if (rf & 2) {
793
- let tmp_4_0;
794
- i0.ɵɵproperty("ngClass", ctx.inputClass)("ngModel", ctx.cell.newValue)("name", ctx.cell.getId())("disabled", !ctx.cell.isEditable());
795
- i0.ɵɵadvance(1);
796
- i0.ɵɵproperty("ngForOf", (tmp_4_0 = ctx.cell.getColumn().getConfig()) == null ? null : tmp_4_0.list);
797
- } }, dependencies: [i1.NgClass, i1.NgForOf, i2.NgSelectOption, i2.ɵNgSelectMultipleOption, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgModel], encapsulation: 2 });
798
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectEditorComponent, [{
799
- type: Component,
800
- args: [{
801
- selector: 'select-editor',
802
- template: `
782
+ SelectEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
783
+ SelectEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SelectEditorComponent, selector: "select-editor", usesInheritance: true, ngImport: i0, template: `
784
+ <select [ngClass]="inputClass"
785
+ class="form-control"
786
+ [(ngModel)]="cell.newValue"
787
+ [name]="cell.getId()"
788
+ [disabled]="!cell.isEditable()"
789
+ (click)="onClick.emit($event)"
790
+ (keydown.enter)="onEdited.emit($event)"
791
+ (keydown.esc)="onStopEditing.emit()">
792
+
793
+ <option *ngFor="let option of cell.getColumn().getConfig()?.list" [value]="option.value"
794
+ [selected]="option.value === cell.getValue()">{{ option.title }}
795
+ </option>
796
+ </select>
797
+ `, 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"] }] });
798
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectEditorComponent, decorators: [{
799
+ type: Component,
800
+ args: [{
801
+ selector: 'select-editor',
802
+ template: `
803
803
  <select [ngClass]="inputClass"
804
804
  class="form-control"
805
805
  [(ngModel)]="cell.newValue"
@@ -814,26 +814,30 @@ SelectEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Selec
814
814
  </option>
815
815
  </select>
816
816
  `,
817
- }]
818
- }], function () { return []; }, null); })();
817
+ }]
818
+ }], ctorParameters: function () { return []; } });
819
819
 
820
820
  class TextareaEditorComponent extends DefaultEditor {
821
821
  constructor() {
822
822
  super();
823
823
  }
824
824
  }
825
- TextareaEditorComponent.ɵfac = function TextareaEditorComponent_Factory(t) { return new (t || TextareaEditorComponent)(); };
826
- TextareaEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextareaEditorComponent, selectors: [["textarea-editor"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 5, consts: [[1, "form-control", 3, "ngClass", "ngModel", "name", "disabled", "placeholder", "ngModelChange", "click", "keydown.enter", "keydown.esc"]], template: function TextareaEditorComponent_Template(rf, ctx) { if (rf & 1) {
827
- i0.ɵɵelementStart(0, "textarea", 0);
828
- i0.ɵɵlistener("ngModelChange", function TextareaEditorComponent_Template_textarea_ngModelChange_0_listener($event) { return ctx.cell.newValue = $event; })("click", function TextareaEditorComponent_Template_textarea_click_0_listener($event) { return ctx.onClick.emit($event); })("keydown.enter", function TextareaEditorComponent_Template_textarea_keydown_enter_0_listener($event) { return ctx.onEdited.emit($event); })("keydown.esc", function TextareaEditorComponent_Template_textarea_keydown_esc_0_listener() { return ctx.onStopEditing.emit(); });
829
- i0.ɵɵtext(1, " ");
830
- i0.ɵɵelementEnd();
831
- } if (rf & 2) {
832
- i0.ɵɵproperty("ngClass", ctx.inputClass)("ngModel", ctx.cell.newValue)("name", ctx.cell.getId())("disabled", !ctx.cell.isEditable())("placeholder", ctx.cell.getTitle());
833
- } }, dependencies: [i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgModel], styles: ["[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;line-height:normal;padding:.375em .75em}"] });
834
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TextareaEditorComponent, [{
835
- type: Component,
836
- args: [{ selector: 'textarea-editor', template: `
825
+ TextareaEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextareaEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
826
+ TextareaEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TextareaEditorComponent, selector: "textarea-editor", usesInheritance: true, ngImport: i0, template: `
827
+ <textarea [ngClass]="inputClass"
828
+ class="form-control"
829
+ [(ngModel)]="cell.newValue"
830
+ [name]="cell.getId()"
831
+ [disabled]="!cell.isEditable()"
832
+ [placeholder]="cell.getTitle()"
833
+ (click)="onClick.emit($event)"
834
+ (keydown.enter)="onEdited.emit($event)"
835
+ (keydown.esc)="onStopEditing.emit()">
836
+ </textarea>
837
+ `, 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"] }] });
838
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextareaEditorComponent, decorators: [{
839
+ type: Component,
840
+ args: [{ selector: 'textarea-editor', template: `
837
841
  <textarea [ngClass]="inputClass"
838
842
  class="form-control"
839
843
  [(ngModel)]="cell.newValue"
@@ -845,50 +849,8 @@ TextareaEditorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Tex
845
849
  (keydown.esc)="onStopEditing.emit()">
846
850
  </textarea>
847
851
  `, styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"] }]
848
- }], function () { return []; }, null); })();
849
-
850
- function DefaultEditComponent_select_editor_1_Template(rf, ctx) { if (rf & 1) {
851
- const _r6 = i0.ɵɵgetCurrentView();
852
- i0.ɵɵelementStart(0, "select-editor", 5);
853
- 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()); });
854
- i0.ɵɵelementEnd();
855
- } if (rf & 2) {
856
- const ctx_r0 = i0.ɵɵnextContext();
857
- i0.ɵɵproperty("cell", ctx_r0.cell)("inputClass", ctx_r0.inputClass);
858
- } }
859
- function DefaultEditComponent_textarea_editor_2_Template(rf, ctx) { if (rf & 1) {
860
- const _r10 = i0.ɵɵgetCurrentView();
861
- i0.ɵɵelementStart(0, "textarea-editor", 5);
862
- 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()); });
863
- i0.ɵɵelementEnd();
864
- } if (rf & 2) {
865
- const ctx_r1 = i0.ɵɵnextContext();
866
- i0.ɵɵproperty("cell", ctx_r1.cell)("inputClass", ctx_r1.inputClass);
867
- } }
868
- function DefaultEditComponent_checkbox_editor_3_Template(rf, ctx) { if (rf & 1) {
869
- const _r14 = i0.ɵɵgetCurrentView();
870
- i0.ɵɵelementStart(0, "checkbox-editor", 6);
871
- 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)); });
872
- i0.ɵɵelementEnd();
873
- } if (rf & 2) {
874
- const ctx_r2 = i0.ɵɵnextContext();
875
- i0.ɵɵproperty("cell", ctx_r2.cell)("inputClass", ctx_r2.inputClass);
876
- } }
877
- function DefaultEditComponent_completer_editor_4_Template(rf, ctx) { if (rf & 1) {
878
- i0.ɵɵelement(0, "completer-editor", 7);
879
- } if (rf & 2) {
880
- const ctx_r3 = i0.ɵɵnextContext();
881
- i0.ɵɵproperty("cell", ctx_r3.cell);
882
- } }
883
- function DefaultEditComponent_input_editor_5_Template(rf, ctx) { if (rf & 1) {
884
- const _r16 = i0.ɵɵgetCurrentView();
885
- i0.ɵɵelementStart(0, "input-editor", 5);
886
- 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()); });
887
- i0.ɵɵelementEnd();
888
- } if (rf & 2) {
889
- const ctx_r4 = i0.ɵɵnextContext();
890
- i0.ɵɵproperty("cell", ctx_r4.cell)("inputClass", ctx_r4.inputClass);
891
- } }
852
+ }], ctorParameters: function () { return []; } });
853
+
892
854
  class DefaultEditComponent extends EditCellDefault {
893
855
  constructor() {
894
856
  super();
@@ -897,49 +859,13 @@ class DefaultEditComponent extends EditCellDefault {
897
859
  return this.cell.getColumn().editor && this.cell.getColumn().editor.type;
898
860
  }
899
861
  }
900
- DefaultEditComponent.ɵfac = function DefaultEditComponent_Factory(t) { return new (t || DefaultEditComponent)(); };
901
- DefaultEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DefaultEditComponent, selectors: [["table-cell-default-editor"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 5, consts: [[3, "ngSwitch"], [3, "cell", "inputClass", "onClick", "onEdited", "onStopEditing", 4, "ngSwitchCase"], [3, "cell", "inputClass", "onClick", 4, "ngSwitchCase"], [3, "cell", 4, "ngSwitchCase"], [3, "cell", "inputClass", "onClick", "onEdited", "onStopEditing", 4, "ngSwitchDefault"], [3, "cell", "inputClass", "onClick", "onEdited", "onStopEditing"], [3, "cell", "inputClass", "onClick"], [3, "cell"]], template: function DefaultEditComponent_Template(rf, ctx) { if (rf & 1) {
902
- i0.ɵɵelementStart(0, "div", 0);
903
- i0.ɵɵtemplate(1, DefaultEditComponent_select_editor_1_Template, 1, 2, "select-editor", 1);
904
- i0.ɵɵtemplate(2, DefaultEditComponent_textarea_editor_2_Template, 1, 2, "textarea-editor", 1);
905
- i0.ɵɵtemplate(3, DefaultEditComponent_checkbox_editor_3_Template, 1, 2, "checkbox-editor", 2);
906
- i0.ɵɵtemplate(4, DefaultEditComponent_completer_editor_4_Template, 1, 1, "completer-editor", 3);
907
- i0.ɵɵtemplate(5, DefaultEditComponent_input_editor_5_Template, 1, 2, "input-editor", 4);
908
- i0.ɵɵelementEnd();
909
- } if (rf & 2) {
910
- i0.ɵɵproperty("ngSwitch", ctx.getEditorType());
911
- i0.ɵɵadvance(1);
912
- i0.ɵɵproperty("ngSwitchCase", "list");
913
- i0.ɵɵadvance(1);
914
- i0.ɵɵproperty("ngSwitchCase", "textarea");
915
- i0.ɵɵadvance(1);
916
- i0.ɵɵproperty("ngSwitchCase", "checkbox");
917
- i0.ɵɵadvance(1);
918
- i0.ɵɵproperty("ngSwitchCase", "completer");
919
- } }, dependencies: [i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, CheckboxEditorComponent, CompleterEditorComponent, InputEditorComponent, SelectEditorComponent, TextareaEditorComponent], encapsulation: 2 });
920
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultEditComponent, [{
921
- type: Component,
922
- 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>" }]
923
- }], function () { return []; }, null); })();
924
-
925
- function EditCellComponent_table_cell_custom_editor_1_Template(rf, ctx) { if (rf & 1) {
926
- const _r3 = i0.ɵɵgetCurrentView();
927
- i0.ɵɵelementStart(0, "table-cell-custom-editor", 3);
928
- 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)); });
929
- i0.ɵɵelementEnd();
930
- } if (rf & 2) {
931
- const ctx_r0 = i0.ɵɵnextContext();
932
- i0.ɵɵproperty("cell", ctx_r0.cell)("inputClass", ctx_r0.inputClass);
933
- } }
934
- function EditCellComponent_table_cell_default_editor_2_Template(rf, ctx) { if (rf & 1) {
935
- const _r5 = i0.ɵɵgetCurrentView();
936
- i0.ɵɵelementStart(0, "table-cell-default-editor", 3);
937
- 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)); });
938
- i0.ɵɵelementEnd();
939
- } if (rf & 2) {
940
- const ctx_r1 = i0.ɵɵnextContext();
941
- i0.ɵɵproperty("cell", ctx_r1.cell)("inputClass", ctx_r1.inputClass);
942
- } }
862
+ DefaultEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
863
+ 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" }] });
864
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultEditComponent, decorators: [{
865
+ type: Component,
866
+ 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>" }]
867
+ }], ctorParameters: function () { return []; } });
868
+
943
869
  class EditCellComponent {
944
870
  constructor() {
945
871
  this.inputClass = '';
@@ -953,22 +879,26 @@ class EditCellComponent {
953
879
  return this.cell.getColumn().editor && this.cell.getColumn().editor.type;
954
880
  }
955
881
  }
956
- EditCellComponent.ɵfac = function EditCellComponent_Factory(t) { return new (t || EditCellComponent)(); };
957
- EditCellComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EditCellComponent, selectors: [["table-cell-edit-mode"]], inputs: { cell: "cell", inputClass: "inputClass" }, outputs: { edited: "edited" }, decls: 3, vars: 2, consts: [[3, "ngSwitch"], [3, "cell", "inputClass", "edited", 4, "ngSwitchCase"], [3, "cell", "inputClass", "edited", 4, "ngSwitchDefault"], [3, "cell", "inputClass", "edited"]], template: function EditCellComponent_Template(rf, ctx) { if (rf & 1) {
958
- i0.ɵɵelementStart(0, "div", 0);
959
- i0.ɵɵtemplate(1, EditCellComponent_table_cell_custom_editor_1_Template, 1, 2, "table-cell-custom-editor", 1);
960
- i0.ɵɵtemplate(2, EditCellComponent_table_cell_default_editor_2_Template, 1, 2, "table-cell-default-editor", 2);
961
- i0.ɵɵelementEnd();
962
- } if (rf & 2) {
963
- i0.ɵɵproperty("ngSwitch", ctx.getEditorType());
964
- i0.ɵɵadvance(1);
965
- i0.ɵɵproperty("ngSwitchCase", "custom");
966
- } }, dependencies: [i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, CustomEditComponent, DefaultEditComponent], encapsulation: 2 });
967
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EditCellComponent, [{
968
- type: Component,
969
- args: [{
970
- selector: 'table-cell-edit-mode',
971
- template: `
882
+ EditCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EditCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
883
+ 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: `
884
+ <div [ngSwitch]="getEditorType()">
885
+ <table-cell-custom-editor *ngSwitchCase="'custom'"
886
+ [cell]="cell"
887
+ [inputClass]="inputClass"
888
+ (edited)="onEdited($event)">
889
+ </table-cell-custom-editor>
890
+ <table-cell-default-editor *ngSwitchDefault
891
+ [cell]="cell"
892
+ [inputClass]="inputClass"
893
+ (edited)="onEdited($event)">
894
+ </table-cell-default-editor>
895
+ </div>
896
+ `, 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" }] });
897
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EditCellComponent, decorators: [{
898
+ type: Component,
899
+ args: [{
900
+ selector: 'table-cell-edit-mode',
901
+ template: `
972
902
  <div [ngSwitch]="getEditorType()">
973
903
  <table-cell-custom-editor *ngSwitchCase="'custom'"
974
904
  [cell]="cell"
@@ -982,17 +912,15 @@ EditCellComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EditCellC
982
912
  </table-cell-default-editor>
983
913
  </div>
984
914
  `,
985
- }]
986
- }], null, { cell: [{
987
- type: Input
988
- }], inputClass: [{
989
- type: Input
990
- }], edited: [{
991
- type: Output
992
- }] }); })();
993
-
994
- const _c0$b = ["dynamicTarget"];
995
- function CustomViewComponent_ng_template_0_Template(rf, ctx) { }
915
+ }]
916
+ }], propDecorators: { cell: [{
917
+ type: Input
918
+ }], inputClass: [{
919
+ type: Input
920
+ }], edited: [{
921
+ type: Output
922
+ }] } });
923
+
996
924
  class CustomViewComponent {
997
925
  constructor(resolver) {
998
926
  this.resolver = resolver;
@@ -1027,99 +955,52 @@ class CustomViewComponent {
1027
955
  };
1028
956
  }
1029
957
  }
1030
- CustomViewComponent.ɵfac = function CustomViewComponent_Factory(t) { return new (t || CustomViewComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver)); };
1031
- CustomViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CustomViewComponent, selectors: [["custom-view-component"]], viewQuery: function CustomViewComponent_Query(rf, ctx) { if (rf & 1) {
1032
- i0.ɵɵviewQuery(_c0$b, 7, ViewContainerRef);
1033
- } if (rf & 2) {
1034
- let _t;
1035
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dynamicTarget = _t.first);
1036
- } }, inputs: { cell: "cell" }, decls: 2, vars: 0, consts: [["dynamicTarget", ""]], template: function CustomViewComponent_Template(rf, ctx) { if (rf & 1) {
1037
- i0.ɵɵtemplate(0, CustomViewComponent_ng_template_0_Template, 0, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
1038
- } }, encapsulation: 2 });
1039
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomViewComponent, [{
1040
- type: Component,
1041
- args: [{
1042
- selector: 'custom-view-component',
1043
- template: `
958
+ CustomViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomViewComponent, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
959
+ 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: `
960
+ <ng-template #dynamicTarget></ng-template>
961
+ `, isInline: true });
962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomViewComponent, decorators: [{
963
+ type: Component,
964
+ args: [{
965
+ selector: 'custom-view-component',
966
+ template: `
1044
967
  <ng-template #dynamicTarget></ng-template>
1045
968
  `,
1046
- }]
1047
- }], function () { return [{ type: i0.ComponentFactoryResolver }]; }, { cell: [{
1048
- type: Input
1049
- }], dynamicTarget: [{
1050
- type: ViewChild,
1051
- args: ['dynamicTarget', { read: ViewContainerRef, static: true }]
1052
- }] }); })();
1053
-
1054
- function ViewCellComponent_custom_view_component_1_Template(rf, ctx) { if (rf & 1) {
1055
- i0.ɵɵelement(0, "custom-view-component", 4);
1056
- } if (rf & 2) {
1057
- const ctx_r0 = i0.ɵɵnextContext();
1058
- i0.ɵɵproperty("cell", ctx_r0.cell);
1059
- } }
1060
- function ViewCellComponent_div_2_Template(rf, ctx) { if (rf & 1) {
1061
- i0.ɵɵelement(0, "div", 5);
1062
- } if (rf & 2) {
1063
- const ctx_r1 = i0.ɵɵnextContext();
1064
- i0.ɵɵproperty("innerHTML", ctx_r1.cell.getValue(), i0.ɵɵsanitizeHtml);
1065
- } }
1066
- function ViewCellComponent_div_3_Template(rf, ctx) { if (rf & 1) {
1067
- i0.ɵɵelementStart(0, "div");
1068
- i0.ɵɵtext(1);
1069
- i0.ɵɵelementEnd();
1070
- } if (rf & 2) {
1071
- const ctx_r2 = i0.ɵɵnextContext();
1072
- i0.ɵɵadvance(1);
1073
- i0.ɵɵtextInterpolate(ctx_r2.cell.getValue());
1074
- } }
969
+ }]
970
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }]; }, propDecorators: { cell: [{
971
+ type: Input
972
+ }], dynamicTarget: [{
973
+ type: ViewChild,
974
+ args: ['dynamicTarget', { read: ViewContainerRef, static: true }]
975
+ }] } });
976
+
1075
977
  class ViewCellComponent {
1076
978
  }
1077
- ViewCellComponent.ɵfac = function ViewCellComponent_Factory(t) { return new (t || ViewCellComponent)(); };
1078
- ViewCellComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ViewCellComponent, selectors: [["table-cell-view-mode"]], inputs: { cell: "cell" }, decls: 4, vars: 3, consts: [[3, "ngSwitch"], [3, "cell", 4, "ngSwitchCase"], [3, "innerHTML", 4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "cell"], [3, "innerHTML"]], template: function ViewCellComponent_Template(rf, ctx) { if (rf & 1) {
1079
- i0.ɵɵelementStart(0, "div", 0);
1080
- i0.ɵɵtemplate(1, ViewCellComponent_custom_view_component_1_Template, 1, 1, "custom-view-component", 1);
1081
- i0.ɵɵtemplate(2, ViewCellComponent_div_2_Template, 1, 1, "div", 2);
1082
- i0.ɵɵtemplate(3, ViewCellComponent_div_3_Template, 2, 1, "div", 3);
1083
- i0.ɵɵelementEnd();
1084
- } if (rf & 2) {
1085
- i0.ɵɵproperty("ngSwitch", ctx.cell.getColumn().type);
1086
- i0.ɵɵadvance(1);
1087
- i0.ɵɵproperty("ngSwitchCase", "custom");
1088
- i0.ɵɵadvance(1);
1089
- i0.ɵɵproperty("ngSwitchCase", "html");
1090
- } }, dependencies: [i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, CustomViewComponent], encapsulation: 2, changeDetection: 0 });
1091
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewCellComponent, [{
1092
- type: Component,
1093
- args: [{
1094
- selector: 'table-cell-view-mode',
1095
- changeDetection: ChangeDetectionStrategy.OnPush,
1096
- template: `
979
+ ViewCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ViewCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
980
+ 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: `
981
+ <div [ngSwitch]="cell.getColumn().type">
982
+ <custom-view-component *ngSwitchCase="'custom'" [cell]="cell"></custom-view-component>
983
+ <div *ngSwitchCase="'html'" [innerHTML]="cell.getValue()"></div>
984
+ <div *ngSwitchDefault>{{ cell.getValue() }}</div>
985
+ </div>
986
+ `, 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 });
987
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ViewCellComponent, decorators: [{
988
+ type: Component,
989
+ args: [{
990
+ selector: 'table-cell-view-mode',
991
+ changeDetection: ChangeDetectionStrategy.OnPush,
992
+ template: `
1097
993
  <div [ngSwitch]="cell.getColumn().type">
1098
994
  <custom-view-component *ngSwitchCase="'custom'" [cell]="cell"></custom-view-component>
1099
995
  <div *ngSwitchCase="'html'" [innerHTML]="cell.getValue()"></div>
1100
996
  <div *ngSwitchDefault>{{ cell.getValue() }}</div>
1101
997
  </div>
1102
998
  `,
1103
- }]
1104
- }], null, { cell: [{
1105
- type: Input
1106
- }] }); })();
1107
-
1108
- function CellComponent_table_cell_view_mode_0_Template(rf, ctx) { if (rf & 1) {
1109
- i0.ɵɵelement(0, "table-cell-view-mode", 2);
1110
- } if (rf & 2) {
1111
- const ctx_r0 = i0.ɵɵnextContext();
1112
- i0.ɵɵproperty("cell", ctx_r0.cell);
1113
- } }
1114
- function CellComponent_table_cell_edit_mode_1_Template(rf, ctx) { if (rf & 1) {
1115
- const _r3 = i0.ɵɵgetCurrentView();
1116
- i0.ɵɵelementStart(0, "table-cell-edit-mode", 3);
1117
- 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)); });
1118
- i0.ɵɵelementEnd();
1119
- } if (rf & 2) {
1120
- const ctx_r1 = i0.ɵɵnextContext();
1121
- i0.ɵɵproperty("cell", ctx_r1.cell)("inputClass", ctx_r1.inputClass);
1122
- } }
999
+ }]
1000
+ }], propDecorators: { cell: [{
1001
+ type: Input
1002
+ }] } });
1003
+
1123
1004
  class CellComponent {
1124
1005
  constructor() {
1125
1006
  this.inputClass = '';
@@ -1136,48 +1017,47 @@ class CellComponent {
1136
1017
  }
1137
1018
  }
1138
1019
  }
1139
- CellComponent.ɵfac = function CellComponent_Factory(t) { return new (t || CellComponent)(); };
1140
- CellComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CellComponent, selectors: [["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" }, decls: 2, vars: 2, consts: [[3, "cell", 4, "ngIf"], [3, "cell", "inputClass", "edited", 4, "ngIf"], [3, "cell"], [3, "cell", "inputClass", "edited"]], template: function CellComponent_Template(rf, ctx) { if (rf & 1) {
1141
- i0.ɵɵtemplate(0, CellComponent_table_cell_view_mode_0_Template, 1, 1, "table-cell-view-mode", 0);
1142
- i0.ɵɵtemplate(1, CellComponent_table_cell_edit_mode_1_Template, 1, 2, "table-cell-edit-mode", 1);
1143
- } if (rf & 2) {
1144
- i0.ɵɵproperty("ngIf", !ctx.isInEditing);
1145
- i0.ɵɵadvance(1);
1146
- i0.ɵɵproperty("ngIf", ctx.isInEditing);
1147
- } }, dependencies: [i1.NgIf, EditCellComponent, ViewCellComponent], encapsulation: 2 });
1148
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CellComponent, [{
1149
- type: Component,
1150
- args: [{
1151
- selector: 'ng2-smart-table-cell',
1152
- template: `
1020
+ CellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1021
+ 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: `
1022
+ <table-cell-view-mode *ngIf="!isInEditing" [cell]="cell"></table-cell-view-mode>
1023
+ <table-cell-edit-mode *ngIf="isInEditing" [cell]="cell"
1024
+ [inputClass]="inputClass"
1025
+ (edited)="onEdited($event)">
1026
+ </table-cell-edit-mode>
1027
+ `, 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"] }] });
1028
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellComponent, decorators: [{
1029
+ type: Component,
1030
+ args: [{
1031
+ selector: 'ng2-smart-table-cell',
1032
+ template: `
1153
1033
  <table-cell-view-mode *ngIf="!isInEditing" [cell]="cell"></table-cell-view-mode>
1154
1034
  <table-cell-edit-mode *ngIf="isInEditing" [cell]="cell"
1155
1035
  [inputClass]="inputClass"
1156
1036
  (edited)="onEdited($event)">
1157
1037
  </table-cell-edit-mode>
1158
1038
  `,
1159
- }]
1160
- }], null, { grid: [{
1161
- type: Input
1162
- }], row: [{
1163
- type: Input
1164
- }], editConfirm: [{
1165
- type: Input
1166
- }], createConfirm: [{
1167
- type: Input
1168
- }], isNew: [{
1169
- type: Input
1170
- }], cell: [{
1171
- type: Input
1172
- }], inputClass: [{
1173
- type: Input
1174
- }], mode: [{
1175
- type: Input
1176
- }], isInEditing: [{
1177
- type: Input
1178
- }], edited: [{
1179
- type: Output
1180
- }] }); })();
1039
+ }]
1040
+ }], propDecorators: { grid: [{
1041
+ type: Input
1042
+ }], row: [{
1043
+ type: Input
1044
+ }], editConfirm: [{
1045
+ type: Input
1046
+ }], createConfirm: [{
1047
+ type: Input
1048
+ }], isNew: [{
1049
+ type: Input
1050
+ }], cell: [{
1051
+ type: Input
1052
+ }], inputClass: [{
1053
+ type: Input
1054
+ }], mode: [{
1055
+ type: Input
1056
+ }], isInEditing: [{
1057
+ type: Input
1058
+ }], edited: [{
1059
+ type: Output
1060
+ }] } });
1181
1061
 
1182
1062
  const CELL_COMPONENTS = [
1183
1063
  CellComponent,
@@ -1196,26 +1076,8 @@ const CELL_COMPONENTS = [
1196
1076
  ];
1197
1077
  class CellModule {
1198
1078
  }
1199
- CellModule.ɵfac = function CellModule_Factory(t) { return new (t || CellModule)(); };
1200
- CellModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CellModule });
1201
- CellModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
1202
- FormsModule] });
1203
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CellModule, [{
1204
- type: NgModule,
1205
- args: [{
1206
- imports: [
1207
- CommonModule,
1208
- FormsModule,
1209
- ],
1210
- declarations: [
1211
- ...CELL_COMPONENTS,
1212
- ],
1213
- exports: [
1214
- ...CELL_COMPONENTS,
1215
- ],
1216
- }]
1217
- }], null, null); })();
1218
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CellModule, { declarations: [CellComponent,
1079
+ CellModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1080
+ CellModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CellModule, declarations: [CellComponent,
1219
1081
  EditCellDefault,
1220
1082
  DefaultEditor,
1221
1083
  CustomEditComponent,
@@ -1240,7 +1102,40 @@ CellModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
1240
1102
  SelectEditorComponent,
1241
1103
  TextareaEditorComponent,
1242
1104
  CustomViewComponent,
1243
- ViewCellComponent] }); })();
1105
+ ViewCellComponent] });
1106
+ CellModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellModule, imports: [CommonModule,
1107
+ FormsModule] });
1108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CellModule, decorators: [{
1109
+ type: NgModule,
1110
+ args: [{
1111
+ imports: [
1112
+ CommonModule,
1113
+ FormsModule,
1114
+ ],
1115
+ declarations: [
1116
+ ...CELL_COMPONENTS,
1117
+ ],
1118
+ exports: [
1119
+ ...CELL_COMPONENTS,
1120
+ ],
1121
+ }]
1122
+ }] });
1123
+
1124
+ var SmartTableOnChangedEventName;
1125
+ (function (SmartTableOnChangedEventName) {
1126
+ SmartTableOnChangedEventName["load"] = "load";
1127
+ SmartTableOnChangedEventName["paging"] = "paging";
1128
+ SmartTableOnChangedEventName["update"] = "update";
1129
+ SmartTableOnChangedEventName["page"] = "page";
1130
+ SmartTableOnChangedEventName["filter"] = "filter";
1131
+ SmartTableOnChangedEventName["empty"] = "empty";
1132
+ SmartTableOnChangedEventName["sort"] = "sort";
1133
+ SmartTableOnChangedEventName["add"] = "add";
1134
+ SmartTableOnChangedEventName["remove"] = "remove";
1135
+ SmartTableOnChangedEventName["append"] = "append";
1136
+ SmartTableOnChangedEventName["prepend"] = "prepend";
1137
+ SmartTableOnChangedEventName["refresh"] = "refresh";
1138
+ })(SmartTableOnChangedEventName || (SmartTableOnChangedEventName = {}));
1244
1139
 
1245
1140
  class DataSource {
1246
1141
  constructor() {
@@ -1250,11 +1145,11 @@ class DataSource {
1250
1145
  this.onRemovedSource = new Subject();
1251
1146
  }
1252
1147
  refresh() {
1253
- this.emitOnChanged('refresh');
1148
+ this.emitOnChanged(SmartTableOnChangedEventName.refresh);
1254
1149
  }
1255
1150
  load(data) {
1256
- this.emitOnChanged('load');
1257
- return Promise.resolve();
1151
+ this.emitOnChanged(SmartTableOnChangedEventName.load);
1152
+ return Promise.resolve(true);
1258
1153
  }
1259
1154
  onChanged() {
1260
1155
  return this.onChangedSource.asObservable();
@@ -1270,56 +1165,56 @@ class DataSource {
1270
1165
  }
1271
1166
  prepend(element) {
1272
1167
  this.emitOnAdded(element);
1273
- this.emitOnChanged('prepend');
1274
- return Promise.resolve();
1168
+ this.emitOnChanged(SmartTableOnChangedEventName.prepend);
1169
+ return Promise.resolve(true);
1275
1170
  }
1276
1171
  append(element) {
1277
1172
  this.emitOnAdded(element);
1278
- this.emitOnChanged('append');
1279
- return Promise.resolve();
1173
+ this.emitOnChanged(SmartTableOnChangedEventName.append);
1174
+ return Promise.resolve(true);
1280
1175
  }
1281
1176
  add(element) {
1282
1177
  this.emitOnAdded(element);
1283
- this.emitOnChanged('add');
1284
- return Promise.resolve();
1178
+ this.emitOnChanged(SmartTableOnChangedEventName.add);
1179
+ return Promise.resolve(true);
1285
1180
  }
1286
1181
  remove(element) {
1287
1182
  this.emitOnRemoved(element);
1288
- this.emitOnChanged('remove');
1289
- return Promise.resolve();
1183
+ this.emitOnChanged(SmartTableOnChangedEventName.remove);
1184
+ return Promise.resolve(true);
1290
1185
  }
1291
1186
  update(element, values) {
1292
1187
  this.emitOnUpdated(element);
1293
- this.emitOnChanged('update');
1294
- return Promise.resolve();
1188
+ this.emitOnChanged(SmartTableOnChangedEventName.update);
1189
+ return Promise.resolve(true);
1295
1190
  }
1296
1191
  empty() {
1297
- this.emitOnChanged('empty');
1298
- return Promise.resolve();
1192
+ this.emitOnChanged(SmartTableOnChangedEventName.empty);
1193
+ return Promise.resolve(true);
1299
1194
  }
1300
1195
  setSort(conf, doEmit) {
1301
1196
  if (doEmit) {
1302
- this.emitOnChanged('sort');
1197
+ this.emitOnChanged(SmartTableOnChangedEventName.sort);
1303
1198
  }
1304
1199
  }
1305
1200
  setFilter(conf, andOperator, doEmit) {
1306
1201
  if (doEmit) {
1307
- this.emitOnChanged('filter');
1202
+ this.emitOnChanged(SmartTableOnChangedEventName.filter);
1308
1203
  }
1309
1204
  }
1310
1205
  addFilter(fieldConf, andOperator, doEmit) {
1311
1206
  if (doEmit) {
1312
- this.emitOnChanged('filter');
1207
+ this.emitOnChanged(SmartTableOnChangedEventName.filter);
1313
1208
  }
1314
1209
  }
1315
1210
  setPaging(page, perPage, doEmit) {
1316
1211
  if (doEmit) {
1317
- this.emitOnChanged('paging');
1212
+ this.emitOnChanged(SmartTableOnChangedEventName.paging);
1318
1213
  }
1319
1214
  }
1320
1215
  setPage(page, doEmit) {
1321
1216
  if (doEmit) {
1322
- this.emitOnChanged('page');
1217
+ this.emitOnChanged(SmartTableOnChangedEventName.page);
1323
1218
  }
1324
1219
  }
1325
1220
  emitOnRemoved(element) {
@@ -1356,22 +1251,22 @@ class FilterDefault {
1356
1251
  });
1357
1252
  }
1358
1253
  }
1359
- FilterDefault.ɵfac = function FilterDefault_Factory(t) { return new (t || FilterDefault)(); };
1360
- FilterDefault.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilterDefault, selectors: [["ng-component"]], inputs: { column: "column", source: "source", inputClass: "inputClass" }, outputs: { filter: "filter" }, decls: 0, vars: 0, template: function FilterDefault_Template(rf, ctx) { }, encapsulation: 2 });
1361
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilterDefault, [{
1362
- type: Component,
1363
- args: [{
1364
- template: '',
1365
- }]
1366
- }], null, { column: [{
1367
- type: Input
1368
- }], source: [{
1369
- type: Input
1370
- }], inputClass: [{
1371
- type: Input
1372
- }], filter: [{
1373
- type: Output
1374
- }] }); })();
1254
+ FilterDefault.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterDefault, deps: [], target: i0.ɵɵFactoryTarget.Component });
1255
+ 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 });
1256
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterDefault, decorators: [{
1257
+ type: Component,
1258
+ args: [{
1259
+ template: '',
1260
+ }]
1261
+ }], propDecorators: { column: [{
1262
+ type: Input
1263
+ }], source: [{
1264
+ type: Input
1265
+ }], inputClass: [{
1266
+ type: Input
1267
+ }], filter: [{
1268
+ type: Output
1269
+ }] } });
1375
1270
 
1376
1271
  class DefaultFilter {
1377
1272
  constructor() {
@@ -1387,35 +1282,23 @@ class DefaultFilter {
1387
1282
  this.filter.emit(this.query);
1388
1283
  }
1389
1284
  }
1390
- DefaultFilter.ɵfac = function DefaultFilter_Factory(t) { return new (t || DefaultFilter)(); };
1391
- DefaultFilter.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DefaultFilter, selectors: [["ng-component"]], inputs: { query: "query", inputClass: "inputClass", column: "column" }, outputs: { filter: "filter" }, decls: 0, vars: 0, template: function DefaultFilter_Template(rf, ctx) { }, encapsulation: 2 });
1392
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultFilter, [{
1393
- type: Component,
1394
- args: [{
1395
- template: '',
1396
- }]
1397
- }], null, { query: [{
1398
- type: Input
1399
- }], inputClass: [{
1400
- type: Input
1401
- }], column: [{
1402
- type: Input
1403
- }], filter: [{
1404
- type: Output
1405
- }] }); })();
1406
-
1407
- function CheckboxFilterComponent_a_1_Template(rf, ctx) { if (rf & 1) {
1408
- const _r2 = i0.ɵɵgetCurrentView();
1409
- i0.ɵɵelementStart(0, "a", 2);
1410
- 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)); });
1411
- i0.ɵɵtext(1);
1412
- i0.ɵɵelementEnd();
1413
- } if (rf & 2) {
1414
- const ctx_r0 = i0.ɵɵnextContext();
1415
- let tmp_0_0;
1416
- i0.ɵɵadvance(1);
1417
- i0.ɵɵtextInterpolate(((tmp_0_0 = ctx_r0.column.getFilterConfig()) == null ? null : tmp_0_0.resetText) || "reset");
1418
- } }
1285
+ DefaultFilter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultFilter, deps: [], target: i0.ɵɵFactoryTarget.Component });
1286
+ 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 });
1287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultFilter, decorators: [{
1288
+ type: Component,
1289
+ args: [{
1290
+ template: '',
1291
+ }]
1292
+ }], propDecorators: { query: [{
1293
+ type: Input
1294
+ }], inputClass: [{
1295
+ type: Input
1296
+ }], column: [{
1297
+ type: Input
1298
+ }], filter: [{
1299
+ type: Output
1300
+ }] } });
1301
+
1419
1302
  class CheckboxFilterComponent extends DefaultFilter {
1420
1303
  constructor() {
1421
1304
  super();
@@ -1441,26 +1324,23 @@ class CheckboxFilterComponent extends DefaultFilter {
1441
1324
  this.setFilter();
1442
1325
  }
1443
1326
  }
1444
- CheckboxFilterComponent.ɵfac = function CheckboxFilterComponent_Factory(t) { return new (t || CheckboxFilterComponent)(); };
1445
- CheckboxFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckboxFilterComponent, selectors: [["checkbox-filter"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 3, consts: [["type", "checkbox", 1, "form-control", 3, "formControl", "ngClass"], ["href", "#", 3, "click", 4, "ngIf"], ["href", "#", 3, "click"]], template: function CheckboxFilterComponent_Template(rf, ctx) { if (rf & 1) {
1446
- i0.ɵɵelement(0, "input", 0);
1447
- i0.ɵɵtemplate(1, CheckboxFilterComponent_a_1_Template, 2, 1, "a", 1);
1448
- } if (rf & 2) {
1449
- i0.ɵɵproperty("formControl", ctx.inputControl)("ngClass", ctx.inputClass);
1450
- i0.ɵɵadvance(1);
1451
- i0.ɵɵproperty("ngIf", ctx.filterActive);
1452
- } }, dependencies: [i1.NgClass, i1.NgIf, i2.CheckboxControlValueAccessor, i2.NgControlStatus, i2.FormControlDirective], encapsulation: 2 });
1453
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxFilterComponent, [{
1454
- type: Component,
1455
- args: [{
1456
- selector: 'checkbox-filter',
1457
- template: `
1327
+ CheckboxFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1328
+ CheckboxFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CheckboxFilterComponent, selector: "checkbox-filter", usesInheritance: true, ngImport: i0, template: `
1329
+ <input type="checkbox" [formControl]="inputControl" [ngClass]="inputClass" class="form-control">
1330
+ <a href="#" *ngIf="filterActive"
1331
+ (click)="resetFilter($event)">{{column.getFilterConfig()?.resetText || 'reset'}}</a>
1332
+ `, 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"] }] });
1333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxFilterComponent, decorators: [{
1334
+ type: Component,
1335
+ args: [{
1336
+ selector: 'checkbox-filter',
1337
+ template: `
1458
1338
  <input type="checkbox" [formControl]="inputControl" [ngClass]="inputClass" class="form-control">
1459
1339
  <a href="#" *ngIf="filterActive"
1460
1340
  (click)="resetFilter($event)">{{column.getFilterConfig()?.resetText || 'reset'}}</a>
1461
1341
  `,
1462
- }]
1463
- }], function () { return []; }, null); })();
1342
+ }]
1343
+ }], ctorParameters: function () { return []; } });
1464
1344
 
1465
1345
  class CompleterFilterComponent extends DefaultFilter {
1466
1346
  constructor() {
@@ -1491,13 +1371,22 @@ class CompleterFilterComponent extends DefaultFilter {
1491
1371
  }
1492
1372
  }
1493
1373
  }
1494
- CompleterFilterComponent.ɵfac = function CompleterFilterComponent_Factory(t) { return new (t || CompleterFilterComponent)(); };
1495
- CompleterFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompleterFilterComponent, selectors: [["completer-filter"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function CompleterFilterComponent_Template(rf, ctx) { }, encapsulation: 2 });
1496
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompleterFilterComponent, [{
1497
- type: Component,
1498
- args: [{
1499
- selector: 'completer-filter',
1500
- template: `
1374
+ CompleterFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompleterFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1375
+ CompleterFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: CompleterFilterComponent, selector: "completer-filter", usesInheritance: true, ngImport: i0, template: `
1376
+ <!-- <ng2-completer [(ngModel)]="query"
1377
+ (ngModelChange)="inputTextChanged($event)"
1378
+ [dataService]="column.getFilterConfig().completer.dataService"
1379
+ [minSearchLength]="column.getFilterConfig().completer.minSearchLength || 0"
1380
+ [pause]="column.getFilterConfig().completer.pause || 0"
1381
+ [placeholder]="column.getFilterConfig().completer.placeholder || 'Start typing...'"
1382
+ (selected)="completerContent.next($event)">
1383
+ </ng2-completer> -->
1384
+ `, isInline: true });
1385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CompleterFilterComponent, decorators: [{
1386
+ type: Component,
1387
+ args: [{
1388
+ selector: 'completer-filter',
1389
+ template: `
1501
1390
  <!-- <ng2-completer [(ngModel)]="query"
1502
1391
  (ngModelChange)="inputTextChanged($event)"
1503
1392
  [dataService]="column.getFilterConfig().completer.dataService"
@@ -1507,8 +1396,8 @@ CompleterFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Co
1507
1396
  (selected)="completerContent.next($event)">
1508
1397
  </ng2-completer> -->
1509
1398
  `,
1510
- }]
1511
- }], function () { return []; }, null); })();
1399
+ }]
1400
+ }], ctorParameters: function () { return []; } });
1512
1401
 
1513
1402
  class InputFilterComponent extends DefaultFilter {
1514
1403
  constructor() {
@@ -1532,18 +1421,20 @@ class InputFilterComponent extends DefaultFilter {
1532
1421
  }
1533
1422
  }
1534
1423
  }
1535
- InputFilterComponent.ɵfac = function InputFilterComponent_Factory(t) { return new (t || InputFilterComponent)(); };
1536
- InputFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputFilterComponent, selectors: [["input-filter"]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 3, consts: [["type", "text", 1, "form-control", 3, "ngClass", "formControl", "placeholder"]], template: function InputFilterComponent_Template(rf, ctx) { if (rf & 1) {
1537
- i0.ɵɵelement(0, "input", 0);
1538
- } if (rf & 2) {
1539
- i0.ɵɵpropertyInterpolate("placeholder", ctx.column.title);
1540
- i0.ɵɵproperty("ngClass", ctx.inputClass)("formControl", ctx.inputControl);
1541
- } }, dependencies: [i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], encapsulation: 2 });
1542
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputFilterComponent, [{
1543
- type: Component,
1544
- args: [{
1545
- selector: 'input-filter',
1546
- template: `
1424
+ InputFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1425
+ InputFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputFilterComponent, selector: "input-filter", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
1426
+ <input
1427
+ [ngClass]="inputClass"
1428
+ [formControl]="inputControl"
1429
+ class="form-control"
1430
+ type="text"
1431
+ placeholder="{{ column.title }}"/>
1432
+ `, 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"] }] });
1433
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputFilterComponent, decorators: [{
1434
+ type: Component,
1435
+ args: [{
1436
+ selector: 'input-filter',
1437
+ template: `
1547
1438
  <input
1548
1439
  [ngClass]="inputClass"
1549
1440
  [formControl]="inputControl"
@@ -1551,20 +1442,9 @@ InputFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputF
1551
1442
  type="text"
1552
1443
  placeholder="{{ column.title }}"/>
1553
1444
  `,
1554
- }]
1555
- }], function () { return []; }, null); })();
1556
-
1557
- const _c0$a = ["inputControl"];
1558
- function SelectFilterComponent_option_4_Template(rf, ctx) { if (rf & 1) {
1559
- i0.ɵɵelementStart(0, "option", 4);
1560
- i0.ɵɵtext(1);
1561
- i0.ɵɵelementEnd();
1562
- } if (rf & 2) {
1563
- const option_r2 = ctx.$implicit;
1564
- i0.ɵɵproperty("value", option_r2.value);
1565
- i0.ɵɵadvance(1);
1566
- i0.ɵɵtextInterpolate1(" ", option_r2.title, " ");
1567
- } }
1445
+ }]
1446
+ }], ctorParameters: function () { return []; } });
1447
+
1568
1448
  class SelectFilterComponent extends DefaultFilter {
1569
1449
  constructor() {
1570
1450
  super();
@@ -1575,32 +1455,24 @@ class SelectFilterComponent extends DefaultFilter {
1575
1455
  .subscribe((value) => this.setFilter());
1576
1456
  }
1577
1457
  }
1578
- SelectFilterComponent.ɵfac = function SelectFilterComponent_Factory(t) { return new (t || SelectFilterComponent)(); };
1579
- SelectFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFilterComponent, selectors: [["select-filter"]], viewQuery: function SelectFilterComponent_Query(rf, ctx) { if (rf & 1) {
1580
- i0.ɵɵviewQuery(_c0$a, 7, NgControl);
1581
- } if (rf & 2) {
1582
- let _t;
1583
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputControl = _t.first);
1584
- } }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 4, consts: [[1, "form-control", 3, "ngClass", "ngModel", "ngModelChange"], ["inputControl", ""], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function SelectFilterComponent_Template(rf, ctx) { if (rf & 1) {
1585
- i0.ɵɵelementStart(0, "select", 0, 1);
1586
- i0.ɵɵlistener("ngModelChange", function SelectFilterComponent_Template_select_ngModelChange_0_listener($event) { return ctx.query = $event; });
1587
- i0.ɵɵelementStart(2, "option", 2);
1588
- i0.ɵɵtext(3);
1589
- i0.ɵɵelementEnd();
1590
- i0.ɵɵtemplate(4, SelectFilterComponent_option_4_Template, 2, 2, "option", 3);
1591
- i0.ɵɵelementEnd();
1592
- } if (rf & 2) {
1593
- i0.ɵɵproperty("ngClass", ctx.inputClass)("ngModel", ctx.query);
1594
- i0.ɵɵadvance(3);
1595
- i0.ɵɵtextInterpolate(ctx.column.getFilterConfig().selectText);
1596
- i0.ɵɵadvance(1);
1597
- i0.ɵɵproperty("ngForOf", ctx.column.getFilterConfig().list);
1598
- } }, dependencies: [i1.NgClass, i1.NgForOf, i2.NgSelectOption, i2.ɵNgSelectMultipleOption, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgModel], encapsulation: 2 });
1599
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFilterComponent, [{
1600
- type: Component,
1601
- args: [{
1602
- selector: 'select-filter',
1603
- template: `
1458
+ SelectFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1459
+ 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: `
1460
+ <select [ngClass]="inputClass"
1461
+ class="form-control"
1462
+ #inputControl
1463
+ [(ngModel)]="query">
1464
+
1465
+ <option value="">{{ column.getFilterConfig().selectText }}</option>
1466
+ <option *ngFor="let option of column.getFilterConfig().list" [value]="option.value">
1467
+ {{ option.title }}
1468
+ </option>
1469
+ </select>
1470
+ `, 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"] }] });
1471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SelectFilterComponent, decorators: [{
1472
+ type: Component,
1473
+ args: [{
1474
+ selector: 'select-filter',
1475
+ template: `
1604
1476
  <select [ngClass]="inputClass"
1605
1477
  class="form-control"
1606
1478
  #inputControl
@@ -1612,72 +1484,48 @@ SelectFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Selec
1612
1484
  </option>
1613
1485
  </select>
1614
1486
  `,
1615
- }]
1616
- }], function () { return []; }, { inputControl: [{
1617
- type: ViewChild,
1618
- args: ['inputControl', { read: NgControl, static: true }]
1619
- }] }); })();
1620
-
1621
- function DefaultFilterComponent_select_filter_1_Template(rf, ctx) { if (rf & 1) {
1622
- const _r5 = i0.ɵɵgetCurrentView();
1623
- i0.ɵɵelementStart(0, "select-filter", 3);
1624
- 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)); });
1625
- i0.ɵɵelementEnd();
1626
- } if (rf & 2) {
1627
- const ctx_r0 = i0.ɵɵnextContext();
1628
- i0.ɵɵproperty("query", ctx_r0.query)("ngClass", ctx_r0.inputClass)("column", ctx_r0.column);
1629
- } }
1630
- function DefaultFilterComponent_checkbox_filter_2_Template(rf, ctx) { if (rf & 1) {
1631
- const _r7 = i0.ɵɵgetCurrentView();
1632
- i0.ɵɵelementStart(0, "checkbox-filter", 3);
1633
- 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)); });
1634
- i0.ɵɵelementEnd();
1635
- } if (rf & 2) {
1636
- const ctx_r1 = i0.ɵɵnextContext();
1637
- i0.ɵɵproperty("query", ctx_r1.query)("ngClass", ctx_r1.inputClass)("column", ctx_r1.column);
1638
- } }
1639
- function DefaultFilterComponent_completer_filter_3_Template(rf, ctx) { if (rf & 1) {
1640
- const _r9 = i0.ɵɵgetCurrentView();
1641
- i0.ɵɵelementStart(0, "completer-filter", 3);
1642
- 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)); });
1643
- i0.ɵɵelementEnd();
1644
- } if (rf & 2) {
1645
- const ctx_r2 = i0.ɵɵnextContext();
1646
- i0.ɵɵproperty("query", ctx_r2.query)("ngClass", ctx_r2.inputClass)("column", ctx_r2.column);
1647
- } }
1648
- function DefaultFilterComponent_input_filter_4_Template(rf, ctx) { if (rf & 1) {
1649
- const _r11 = i0.ɵɵgetCurrentView();
1650
- i0.ɵɵelementStart(0, "input-filter", 3);
1651
- 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)); });
1652
- i0.ɵɵelementEnd();
1653
- } if (rf & 2) {
1654
- const ctx_r3 = i0.ɵɵnextContext();
1655
- i0.ɵɵproperty("query", ctx_r3.query)("ngClass", ctx_r3.inputClass)("column", ctx_r3.column);
1656
- } }
1487
+ }]
1488
+ }], ctorParameters: function () { return []; }, propDecorators: { inputControl: [{
1489
+ type: ViewChild,
1490
+ args: ['inputControl', { read: NgControl, static: true }]
1491
+ }] } });
1492
+
1657
1493
  class DefaultFilterComponent extends FilterDefault {
1658
1494
  }
1659
- DefaultFilterComponent.ɵfac = /*@__PURE__*/ function () { let ɵDefaultFilterComponent_BaseFactory; return function DefaultFilterComponent_Factory(t) { return (ɵDefaultFilterComponent_BaseFactory || (ɵDefaultFilterComponent_BaseFactory = i0.ɵɵgetInheritedFactory(DefaultFilterComponent)))(t || DefaultFilterComponent); }; }();
1660
- DefaultFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DefaultFilterComponent, selectors: [["default-table-filter"]], inputs: { query: "query" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 4, consts: [[3, "ngSwitch"], [3, "query", "ngClass", "column", "filter", 4, "ngSwitchCase"], [3, "query", "ngClass", "column", "filter", 4, "ngSwitchDefault"], [3, "query", "ngClass", "column", "filter"]], template: function DefaultFilterComponent_Template(rf, ctx) { if (rf & 1) {
1661
- i0.ɵɵelementContainerStart(0, 0);
1662
- i0.ɵɵtemplate(1, DefaultFilterComponent_select_filter_1_Template, 1, 3, "select-filter", 1);
1663
- i0.ɵɵtemplate(2, DefaultFilterComponent_checkbox_filter_2_Template, 1, 3, "checkbox-filter", 1);
1664
- i0.ɵɵtemplate(3, DefaultFilterComponent_completer_filter_3_Template, 1, 3, "completer-filter", 1);
1665
- i0.ɵɵtemplate(4, DefaultFilterComponent_input_filter_4_Template, 1, 3, "input-filter", 2);
1666
- i0.ɵɵelementContainerEnd();
1667
- } if (rf & 2) {
1668
- i0.ɵɵproperty("ngSwitch", ctx.column.getFilterType());
1669
- i0.ɵɵadvance(1);
1670
- i0.ɵɵproperty("ngSwitchCase", "list");
1671
- i0.ɵɵadvance(1);
1672
- i0.ɵɵproperty("ngSwitchCase", "checkbox");
1673
- i0.ɵɵadvance(1);
1674
- i0.ɵɵproperty("ngSwitchCase", "completer");
1675
- } }, dependencies: [i1.NgClass, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, CheckboxFilterComponent, CompleterFilterComponent, InputFilterComponent, SelectFilterComponent], encapsulation: 2 });
1676
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DefaultFilterComponent, [{
1677
- type: Component,
1678
- args: [{
1679
- selector: 'default-table-filter',
1680
- template: `
1495
+ DefaultFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1496
+ 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: `
1497
+ <ng-container [ngSwitch]="column.getFilterType()">
1498
+ <select-filter *ngSwitchCase="'list'"
1499
+ [query]="query"
1500
+ [ngClass]="inputClass"
1501
+ [column]="column"
1502
+ (filter)="onFilter($event)">
1503
+ </select-filter>
1504
+ <checkbox-filter *ngSwitchCase="'checkbox'"
1505
+ [query]="query"
1506
+ [ngClass]="inputClass"
1507
+ [column]="column"
1508
+ (filter)="onFilter($event)">
1509
+ </checkbox-filter>
1510
+ <completer-filter *ngSwitchCase="'completer'"
1511
+ [query]="query"
1512
+ [ngClass]="inputClass"
1513
+ [column]="column"
1514
+ (filter)="onFilter($event)">
1515
+ </completer-filter>
1516
+ <input-filter *ngSwitchDefault
1517
+ [query]="query"
1518
+ [ngClass]="inputClass"
1519
+ [column]="column"
1520
+ (filter)="onFilter($event)">
1521
+ </input-filter>
1522
+ </ng-container>
1523
+ `, 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" }] });
1524
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DefaultFilterComponent, decorators: [{
1525
+ type: Component,
1526
+ args: [{
1527
+ selector: 'default-table-filter',
1528
+ template: `
1681
1529
  <ng-container [ngSwitch]="column.getFilterType()">
1682
1530
  <select-filter *ngSwitchCase="'list'"
1683
1531
  [query]="query"
@@ -1705,13 +1553,11 @@ DefaultFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Defa
1705
1553
  </input-filter>
1706
1554
  </ng-container>
1707
1555
  `,
1708
- }]
1709
- }], null, { query: [{
1710
- type: Input
1711
- }] }); })();
1556
+ }]
1557
+ }], propDecorators: { query: [{
1558
+ type: Input
1559
+ }] } });
1712
1560
 
1713
- const _c0$9 = ["dynamicTarget"];
1714
- function CustomFilterComponent_ng_template_0_Template(rf, ctx) { }
1715
1561
  class CustomFilterComponent extends FilterDefault {
1716
1562
  constructor(resolver) {
1717
1563
  super();
@@ -1738,57 +1584,21 @@ class CustomFilterComponent extends FilterDefault {
1738
1584
  }
1739
1585
  }
1740
1586
  }
1741
- CustomFilterComponent.ɵfac = function CustomFilterComponent_Factory(t) { return new (t || CustomFilterComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver)); };
1742
- CustomFilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CustomFilterComponent, selectors: [["custom-table-filter"]], viewQuery: function CustomFilterComponent_Query(rf, ctx) { if (rf & 1) {
1743
- i0.ɵɵviewQuery(_c0$9, 7, ViewContainerRef);
1744
- } if (rf & 2) {
1745
- let _t;
1746
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dynamicTarget = _t.first);
1747
- } }, inputs: { query: "query" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 2, vars: 0, consts: [["dynamicTarget", ""]], template: function CustomFilterComponent_Template(rf, ctx) { if (rf & 1) {
1748
- i0.ɵɵtemplate(0, CustomFilterComponent_ng_template_0_Template, 0, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
1749
- } }, encapsulation: 2 });
1750
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomFilterComponent, [{
1751
- type: Component,
1752
- args: [{
1753
- selector: 'custom-table-filter',
1754
- template: `<ng-template #dynamicTarget></ng-template>`,
1755
- }]
1756
- }], function () { return [{ type: i0.ComponentFactoryResolver }]; }, { query: [{
1757
- type: Input
1758
- }], dynamicTarget: [{
1759
- type: ViewChild,
1760
- args: ['dynamicTarget', { read: ViewContainerRef, static: true }]
1761
- }] }); })();
1762
-
1763
- function FilterComponent_div_0_custom_table_filter_1_Template(rf, ctx) { if (rf & 1) {
1764
- const _r4 = i0.ɵɵgetCurrentView();
1765
- i0.ɵɵelementStart(0, "custom-table-filter", 4);
1766
- 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)); });
1767
- i0.ɵɵelementEnd();
1768
- } if (rf & 2) {
1769
- const ctx_r1 = i0.ɵɵnextContext(2);
1770
- i0.ɵɵproperty("query", ctx_r1.query)("column", ctx_r1.column)("source", ctx_r1.source)("inputClass", ctx_r1.inputClass);
1771
- } }
1772
- function FilterComponent_div_0_default_table_filter_2_Template(rf, ctx) { if (rf & 1) {
1773
- const _r6 = i0.ɵɵgetCurrentView();
1774
- i0.ɵɵelementStart(0, "default-table-filter", 4);
1775
- 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)); });
1776
- i0.ɵɵelementEnd();
1777
- } if (rf & 2) {
1778
- const ctx_r2 = i0.ɵɵnextContext(2);
1779
- i0.ɵɵproperty("query", ctx_r2.query)("column", ctx_r2.column)("source", ctx_r2.source)("inputClass", ctx_r2.inputClass);
1780
- } }
1781
- function FilterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
1782
- i0.ɵɵelementStart(0, "div", 1);
1783
- i0.ɵɵtemplate(1, FilterComponent_div_0_custom_table_filter_1_Template, 1, 4, "custom-table-filter", 2);
1784
- i0.ɵɵtemplate(2, FilterComponent_div_0_default_table_filter_2_Template, 1, 4, "default-table-filter", 3);
1785
- i0.ɵɵelementEnd();
1786
- } if (rf & 2) {
1787
- const ctx_r0 = i0.ɵɵnextContext();
1788
- i0.ɵɵproperty("ngSwitch", ctx_r0.column.getFilterType());
1789
- i0.ɵɵadvance(1);
1790
- i0.ɵɵproperty("ngSwitchCase", "custom");
1791
- } }
1587
+ CustomFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomFilterComponent, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
1588
+ 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 });
1589
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CustomFilterComponent, decorators: [{
1590
+ type: Component,
1591
+ args: [{
1592
+ selector: 'custom-table-filter',
1593
+ template: `<ng-template #dynamicTarget></ng-template>`,
1594
+ }]
1595
+ }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }]; }, propDecorators: { query: [{
1596
+ type: Input
1597
+ }], dynamicTarget: [{
1598
+ type: ViewChild,
1599
+ args: ['dynamicTarget', { read: ViewContainerRef, static: true }]
1600
+ }] } });
1601
+
1792
1602
  class FilterComponent extends FilterDefault {
1793
1603
  constructor() {
1794
1604
  super(...arguments);
@@ -1817,15 +1627,28 @@ class FilterComponent extends FilterDefault {
1817
1627
  }
1818
1628
  }
1819
1629
  }
1820
- FilterComponent.ɵfac = /*@__PURE__*/ function () { let ɵFilterComponent_BaseFactory; return function FilterComponent_Factory(t) { return (ɵFilterComponent_BaseFactory || (ɵFilterComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FilterComponent)))(t || FilterComponent); }; }();
1821
- FilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilterComponent, selectors: [["ng2-smart-table-filter"]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "ng2-smart-filter", 3, "ngSwitch", 4, "ngIf"], [1, "ng2-smart-filter", 3, "ngSwitch"], [3, "query", "column", "source", "inputClass", "filter", 4, "ngSwitchCase"], [3, "query", "column", "source", "inputClass", "filter", 4, "ngSwitchDefault"], [3, "query", "column", "source", "inputClass", "filter"]], template: function FilterComponent_Template(rf, ctx) { if (rf & 1) {
1822
- i0.ɵɵtemplate(0, FilterComponent_div_0_Template, 3, 2, "div", 0);
1823
- } if (rf & 2) {
1824
- i0.ɵɵproperty("ngIf", ctx.column.isFilterable);
1825
- } }, dependencies: [i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, DefaultFilterComponent, CustomFilterComponent], styles: ["[_nghost-%COMP%] .ng2-smart-filter[_ngcontent-%COMP%] input, [_nghost-%COMP%] .ng2-smart-filter[_ngcontent-%COMP%] select{width:100%;line-height:normal;padding:.375em .75em;font-weight:400}[_nghost-%COMP%] .ng2-smart-filter[_ngcontent-%COMP%] input[type=search]{box-sizing:inherit}[_nghost-%COMP%] .ng2-smart-filter[_ngcontent-%COMP%] .completer-dropdown-holder{font-weight:400}[_nghost-%COMP%] .ng2-smart-filter[_ngcontent-%COMP%] a{font-weight:400}"] });
1826
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilterComponent, [{
1827
- type: Component,
1828
- args: [{ selector: 'ng2-smart-table-filter', template: `
1630
+ FilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1631
+ 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: `
1632
+ <div class="ng2-smart-filter" *ngIf="column.isFilterable" [ngSwitch]="column.getFilterType()">
1633
+ <custom-table-filter *ngSwitchCase="'custom'"
1634
+ [query]="query"
1635
+ [column]="column"
1636
+ [source]="source"
1637
+ [inputClass]="inputClass"
1638
+ (filter)="onFilter($event)">
1639
+ </custom-table-filter>
1640
+ <default-table-filter *ngSwitchDefault
1641
+ [query]="query"
1642
+ [column]="column"
1643
+ [source]="source"
1644
+ [inputClass]="inputClass"
1645
+ (filter)="onFilter($event)">
1646
+ </default-table-filter>
1647
+ </div>
1648
+ `, 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"] }] });
1649
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterComponent, decorators: [{
1650
+ type: Component,
1651
+ args: [{ selector: 'ng2-smart-table-filter', template: `
1829
1652
  <div class="ng2-smart-filter" *ngIf="column.isFilterable" [ngSwitch]="column.getFilterType()">
1830
1653
  <custom-table-filter *ngSwitchCase="'custom'"
1831
1654
  [query]="query"
@@ -1843,7 +1666,7 @@ FilterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilterCompo
1843
1666
  </default-table-filter>
1844
1667
  </div>
1845
1668
  `, 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"] }]
1846
- }], null, null); })();
1669
+ }] });
1847
1670
 
1848
1671
  const FILTER_COMPONENTS = [
1849
1672
  FilterDefault,
@@ -1858,28 +1681,8 @@ const FILTER_COMPONENTS = [
1858
1681
  ];
1859
1682
  class FilterModule {
1860
1683
  }
1861
- FilterModule.ɵfac = function FilterModule_Factory(t) { return new (t || FilterModule)(); };
1862
- FilterModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: FilterModule });
1863
- FilterModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
1864
- FormsModule,
1865
- ReactiveFormsModule] });
1866
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FilterModule, [{
1867
- type: NgModule,
1868
- args: [{
1869
- imports: [
1870
- CommonModule,
1871
- FormsModule,
1872
- ReactiveFormsModule,
1873
- ],
1874
- declarations: [
1875
- ...FILTER_COMPONENTS,
1876
- ],
1877
- exports: [
1878
- ...FILTER_COMPONENTS,
1879
- ],
1880
- }]
1881
- }], null, null); })();
1882
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(FilterModule, { declarations: [FilterDefault,
1684
+ FilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1685
+ FilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, declarations: [FilterDefault,
1883
1686
  DefaultFilter,
1884
1687
  FilterComponent,
1885
1688
  DefaultFilterComponent,
@@ -1897,120 +1700,27 @@ FilterModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModul
1897
1700
  CheckboxFilterComponent,
1898
1701
  CompleterFilterComponent,
1899
1702
  InputFilterComponent,
1900
- SelectFilterComponent] }); })();
1901
-
1902
- function PagerComponent_nav_0_li_14_span_1_Template(rf, ctx) { if (rf & 1) {
1903
- i0.ɵɵelementStart(0, "span", 14);
1904
- i0.ɵɵtext(1);
1905
- i0.ɵɵelementStart(2, "span", 7);
1906
- i0.ɵɵtext(3, "(current)");
1907
- i0.ɵɵelementEnd()();
1908
- } if (rf & 2) {
1909
- const page_r3 = i0.ɵɵnextContext().$implicit;
1910
- i0.ɵɵadvance(1);
1911
- i0.ɵɵtextInterpolate1("", page_r3, " ");
1912
- } }
1913
- function PagerComponent_nav_0_li_14_a_2_Template(rf, ctx) { if (rf & 1) {
1914
- const _r9 = i0.ɵɵgetCurrentView();
1915
- i0.ɵɵelementStart(0, "a", 15);
1916
- 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)); });
1917
- i0.ɵɵtext(1);
1918
- i0.ɵɵelementEnd();
1919
- } if (rf & 2) {
1920
- const page_r3 = i0.ɵɵnextContext().$implicit;
1921
- i0.ɵɵadvance(1);
1922
- i0.ɵɵtextInterpolate(page_r3);
1923
- } }
1924
- const _c0$8 = function (a0) { return { active: a0 }; };
1925
- function PagerComponent_nav_0_li_14_Template(rf, ctx) { if (rf & 1) {
1926
- i0.ɵɵelementStart(0, "li", 4);
1927
- i0.ɵɵtemplate(1, PagerComponent_nav_0_li_14_span_1_Template, 4, 1, "span", 12);
1928
- i0.ɵɵtemplate(2, PagerComponent_nav_0_li_14_a_2_Template, 2, 1, "a", 13);
1929
- i0.ɵɵelementEnd();
1930
- } if (rf & 2) {
1931
- const page_r3 = ctx.$implicit;
1932
- const ctx_r2 = i0.ɵɵnextContext(2);
1933
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$8, ctx_r2.getPage() == page_r3));
1934
- i0.ɵɵadvance(1);
1935
- i0.ɵɵproperty("ngIf", ctx_r2.getPage() == page_r3);
1936
- i0.ɵɵadvance(1);
1937
- i0.ɵɵproperty("ngIf", ctx_r2.getPage() != page_r3);
1938
- } }
1939
- const _c1$1 = function (a0) { return { disabled: a0 }; };
1940
- function PagerComponent_nav_0_Template(rf, ctx) { if (rf & 1) {
1941
- const _r12 = i0.ɵɵgetCurrentView();
1942
- i0.ɵɵelementStart(0, "nav", 2)(1, "ul", 3)(2, "li", 4)(3, "a", 5);
1943
- 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)); });
1944
- i0.ɵɵelementStart(4, "span", 6);
1945
- i0.ɵɵtext(5, "\u00AB");
1946
- i0.ɵɵelementEnd();
1947
- i0.ɵɵelementStart(6, "span", 7);
1948
- i0.ɵɵtext(7, "First");
1949
- i0.ɵɵelementEnd()()();
1950
- i0.ɵɵelementStart(8, "li", 4)(9, "a", 8);
1951
- 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()); });
1952
- i0.ɵɵelementStart(10, "span", 6);
1953
- i0.ɵɵtext(11, "<");
1954
- i0.ɵɵelementEnd();
1955
- i0.ɵɵelementStart(12, "span", 7);
1956
- i0.ɵɵtext(13, "Prev");
1957
- i0.ɵɵelementEnd()()();
1958
- i0.ɵɵtemplate(14, PagerComponent_nav_0_li_14_Template, 3, 5, "li", 9);
1959
- i0.ɵɵelementStart(15, "li", 4)(16, "a", 10);
1960
- 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()); });
1961
- i0.ɵɵelementStart(17, "span", 6);
1962
- i0.ɵɵtext(18, ">");
1963
- i0.ɵɵelementEnd();
1964
- i0.ɵɵelementStart(19, "span", 7);
1965
- i0.ɵɵtext(20, "Next");
1966
- i0.ɵɵelementEnd()()();
1967
- i0.ɵɵelementStart(21, "li", 4)(22, "a", 11);
1968
- 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())); });
1969
- i0.ɵɵelementStart(23, "span", 6);
1970
- i0.ɵɵtext(24, "\u00BB");
1971
- i0.ɵɵelementEnd();
1972
- i0.ɵɵelementStart(25, "span", 7);
1973
- i0.ɵɵtext(26, "Last");
1974
- i0.ɵɵelementEnd()()()()();
1975
- } if (rf & 2) {
1976
- const ctx_r0 = i0.ɵɵnextContext();
1977
- i0.ɵɵadvance(2);
1978
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c1$1, ctx_r0.getPage() == 1));
1979
- i0.ɵɵadvance(6);
1980
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$1, ctx_r0.getPage() == 1));
1981
- i0.ɵɵadvance(6);
1982
- i0.ɵɵproperty("ngForOf", ctx_r0.getPages());
1983
- i0.ɵɵadvance(1);
1984
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$1, ctx_r0.getPage() == ctx_r0.getLast()));
1985
- i0.ɵɵadvance(6);
1986
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$1, ctx_r0.getPage() == ctx_r0.getLast()));
1987
- } }
1988
- function PagerComponent_nav_1_option_4_Template(rf, ctx) { if (rf & 1) {
1989
- i0.ɵɵelementStart(0, "option", 20);
1990
- i0.ɵɵtext(1);
1991
- i0.ɵɵelementEnd();
1992
- } if (rf & 2) {
1993
- const item_r17 = ctx.$implicit;
1994
- i0.ɵɵproperty("value", item_r17);
1995
- i0.ɵɵadvance(1);
1996
- i0.ɵɵtextInterpolate(item_r17);
1997
- } }
1998
- function PagerComponent_nav_1_Template(rf, ctx) { if (rf & 1) {
1999
- const _r19 = i0.ɵɵgetCurrentView();
2000
- i0.ɵɵelementStart(0, "nav", 16)(1, "label", 17);
2001
- i0.ɵɵtext(2, " Per Page: ");
2002
- i0.ɵɵelementEnd();
2003
- i0.ɵɵelementStart(3, "select", 18);
2004
- 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); });
2005
- i0.ɵɵtemplate(4, PagerComponent_nav_1_option_4_Template, 2, 2, "option", 19);
2006
- i0.ɵɵelementEnd()();
2007
- } if (rf & 2) {
2008
- const ctx_r1 = i0.ɵɵnextContext();
2009
- i0.ɵɵadvance(3);
2010
- i0.ɵɵproperty("ngModel", ctx_r1.currentPerPage);
2011
- i0.ɵɵadvance(1);
2012
- i0.ɵɵproperty("ngForOf", ctx_r1.perPageSelect);
2013
- } }
1703
+ SelectFilterComponent] });
1704
+ FilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, imports: [CommonModule,
1705
+ FormsModule,
1706
+ ReactiveFormsModule] });
1707
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilterModule, decorators: [{
1708
+ type: NgModule,
1709
+ args: [{
1710
+ imports: [
1711
+ CommonModule,
1712
+ FormsModule,
1713
+ ReactiveFormsModule,
1714
+ ],
1715
+ declarations: [
1716
+ ...FILTER_COMPONENTS,
1717
+ ],
1718
+ exports: [
1719
+ ...FILTER_COMPONENTS,
1720
+ ],
1721
+ }]
1722
+ }] });
1723
+
2014
1724
  class PagerComponent {
2015
1725
  constructor() {
2016
1726
  this.perPageSelect = [];
@@ -2105,18 +1815,64 @@ class PagerComponent {
2105
1815
  }
2106
1816
  }
2107
1817
  }
2108
- PagerComponent.ɵfac = function PagerComponent_Factory(t) { return new (t || PagerComponent)(); };
2109
- PagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PagerComponent, selectors: [["ng2-smart-table-pager"]], inputs: { source: "source", perPageSelect: "perPageSelect" }, outputs: { changePage: "changePage" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["class", "ng2-smart-pagination-nav", 4, "ngIf"], ["class", "ng2-smart-pagination-per-page", 4, "ngIf"], [1, "ng2-smart-pagination-nav"], [1, "ng2-smart-pagination", "pagination"], [1, "ng2-smart-page-item", "page-item", 3, "ngClass"], ["href", "#", "aria-label", "First", 1, "ng2-smart-page-link", "page-link", 3, "click"], ["aria-hidden", "true"], [1, "sr-only"], ["href", "#", "aria-label", "Prev", 1, "ng2-smart-page-link", "page-link", "page-link-prev", 3, "click"], ["class", "ng2-smart-page-item page-item", 3, "ngClass", 4, "ngFor", "ngForOf"], ["href", "#", "aria-label", "Next", 1, "ng2-smart-page-link", "page-link", "page-link-next", 3, "click"], ["href", "#", "aria-label", "Last", 1, "ng2-smart-page-link", "page-link", 3, "click"], ["class", "ng2-smart-page-link page-link", 4, "ngIf"], ["class", "ng2-smart-page-link page-link", "href", "#", 3, "click", 4, "ngIf"], [1, "ng2-smart-page-link", "page-link"], ["href", "#", 1, "ng2-smart-page-link", "page-link", 3, "click"], [1, "ng2-smart-pagination-per-page"], ["for", "per-page"], ["id", "per-page", 3, "ngModel", "change", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function PagerComponent_Template(rf, ctx) { if (rf & 1) {
2110
- i0.ɵɵtemplate(0, PagerComponent_nav_0_Template, 27, 13, "nav", 0);
2111
- i0.ɵɵtemplate(1, PagerComponent_nav_1_Template, 5, 2, "nav", 1);
2112
- } if (rf & 2) {
2113
- i0.ɵɵproperty("ngIf", ctx.shouldShow());
2114
- i0.ɵɵadvance(1);
2115
- i0.ɵɵproperty("ngIf", ctx.perPageSelect && ctx.perPageSelect.length > 0);
2116
- } }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2.NgSelectOption, i2.ɵNgSelectMultipleOption, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgModel], styles: [".ng2-smart-pagination[_ngcontent-%COMP%]{display:inline-flex;font-size:.875em;padding:0}.ng2-smart-pagination[_ngcontent-%COMP%] .sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.ng2-smart-pagination[_ngcontent-%COMP%] .ng2-smart-page-item[_ngcontent-%COMP%]{display:inline}.ng2-smart-pagination[_ngcontent-%COMP%] .page-link-next[_ngcontent-%COMP%], .ng2-smart-pagination[_ngcontent-%COMP%] .page-link-prev[_ngcontent-%COMP%]{font-size:10px}[_nghost-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] select[_ngcontent-%COMP%]{margin:1rem 0 1rem 1rem}[_nghost-%COMP%] label[_ngcontent-%COMP%]{margin:1rem 0 1rem 1rem;line-height:2.5rem}"] });
2117
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PagerComponent, [{
2118
- type: Component,
2119
- args: [{ selector: 'ng2-smart-table-pager', template: `
1818
+ PagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1819
+ 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: `
1820
+ <nav *ngIf="shouldShow()" class="ng2-smart-pagination-nav">
1821
+ <ul class="ng2-smart-pagination pagination">
1822
+ <li class="ng2-smart-page-item page-item" [ngClass]="{disabled: getPage() == 1}">
1823
+ <a class="ng2-smart-page-link page-link" href="#"
1824
+ (click)="getPage() == 1 ? false : paginate(1)" aria-label="First">
1825
+ <span aria-hidden="true">&laquo;</span>
1826
+ <span class="sr-only">First</span>
1827
+ </a>
1828
+ </li>
1829
+ <li class="ng2-smart-page-item page-item" [ngClass]="{disabled: getPage() == 1}">
1830
+ <a class="ng2-smart-page-link page-link page-link-prev" href="#"
1831
+ (click)="getPage() == 1 ? false : prev()" aria-label="Prev">
1832
+ <span aria-hidden="true">&lt;</span>
1833
+ <span class="sr-only">Prev</span>
1834
+ </a>
1835
+ </li>
1836
+ <li class="ng2-smart-page-item page-item"
1837
+ [ngClass]="{active: getPage() == page}" *ngFor="let page of getPages()">
1838
+ <span class="ng2-smart-page-link page-link"
1839
+ *ngIf="getPage() == page">{{ page }} <span class="sr-only">(current)</span></span>
1840
+ <a class="ng2-smart-page-link page-link" href="#"
1841
+ (click)="paginate(page)" *ngIf="getPage() != page">{{ page }}</a>
1842
+ </li>
1843
+
1844
+ <li class="ng2-smart-page-item page-item"
1845
+ [ngClass]="{disabled: getPage() == getLast()}">
1846
+ <a class="ng2-smart-page-link page-link page-link-next" href="#"
1847
+ (click)="getPage() == getLast() ? false : next()" aria-label="Next">
1848
+ <span aria-hidden="true">&gt;</span>
1849
+ <span class="sr-only">Next</span>
1850
+ </a>
1851
+ </li>
1852
+
1853
+ <li class="ng2-smart-page-item page-item"
1854
+ [ngClass]="{disabled: getPage() == getLast()}">
1855
+ <a class="ng2-smart-page-link page-link" href="#"
1856
+ (click)="getPage() == getLast() ? false : paginate(getLast())" aria-label="Last">
1857
+ <span aria-hidden="true">&raquo;</span>
1858
+ <span class="sr-only">Last</span>
1859
+ </a>
1860
+ </li>
1861
+ </ul>
1862
+ </nav>
1863
+
1864
+ <nav *ngIf="perPageSelect && perPageSelect.length > 0" class="ng2-smart-pagination-per-page">
1865
+ <label for="per-page">
1866
+ Per Page:
1867
+ </label>
1868
+ <select (change)="onChangePerPage($event)" [(ngModel)]="currentPerPage" id="per-page">
1869
+ <option *ngFor="let item of perPageSelect" [value]="item">{{ item }}</option>
1870
+ </select>
1871
+ </nav>
1872
+ `, 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"] }] });
1873
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerComponent, decorators: [{
1874
+ type: Component,
1875
+ args: [{ selector: 'ng2-smart-table-pager', template: `
2120
1876
  <nav *ngIf="shouldShow()" class="ng2-smart-pagination-nav">
2121
1877
  <ul class="ng2-smart-pagination pagination">
2122
1878
  <li class="ng2-smart-page-item page-item" [ngClass]="{disabled: getPage() == 1}">
@@ -2170,37 +1926,36 @@ PagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PagerCompone
2170
1926
  </select>
2171
1927
  </nav>
2172
1928
  `, 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"] }]
2173
- }], null, { source: [{
2174
- type: Input
2175
- }], perPageSelect: [{
2176
- type: Input
2177
- }], changePage: [{
2178
- type: Output
2179
- }] }); })();
1929
+ }], propDecorators: { source: [{
1930
+ type: Input
1931
+ }], perPageSelect: [{
1932
+ type: Input
1933
+ }], changePage: [{
1934
+ type: Output
1935
+ }] } });
2180
1936
 
2181
1937
  class PagerModule {
2182
1938
  }
2183
- PagerModule.ɵfac = function PagerModule_Factory(t) { return new (t || PagerModule)(); };
2184
- PagerModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PagerModule });
2185
- PagerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
1939
+ PagerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1940
+ PagerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, declarations: [PagerComponent], imports: [CommonModule,
1941
+ FormsModule], exports: [PagerComponent] });
1942
+ PagerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, imports: [CommonModule,
2186
1943
  FormsModule] });
2187
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PagerModule, [{
2188
- type: NgModule,
2189
- args: [{
2190
- imports: [
2191
- CommonModule,
2192
- FormsModule,
2193
- ],
2194
- declarations: [
2195
- PagerComponent,
2196
- ],
2197
- exports: [
2198
- PagerComponent,
2199
- ],
2200
- }]
2201
- }], null, null); })();
2202
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PagerModule, { declarations: [PagerComponent], imports: [CommonModule,
2203
- FormsModule], exports: [PagerComponent] }); })();
1944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PagerModule, decorators: [{
1945
+ type: NgModule,
1946
+ args: [{
1947
+ imports: [
1948
+ CommonModule,
1949
+ FormsModule,
1950
+ ],
1951
+ declarations: [
1952
+ PagerComponent,
1953
+ ],
1954
+ exports: [
1955
+ PagerComponent,
1956
+ ],
1957
+ }]
1958
+ }] });
2204
1959
 
2205
1960
  class TbodyCreateCancelComponent {
2206
1961
  onSave(event) {
@@ -2219,58 +1974,34 @@ class TbodyCreateCancelComponent {
2219
1974
  this.cancelButtonContent = this.grid.getSetting('edit.cancelButtonContent');
2220
1975
  }
2221
1976
  }
2222
- TbodyCreateCancelComponent.ɵfac = function TbodyCreateCancelComponent_Factory(t) { return new (t || TbodyCreateCancelComponent)(); };
2223
- TbodyCreateCancelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TbodyCreateCancelComponent, selectors: [["ng2-st-tbody-create-cancel"]], inputs: { grid: "grid", row: "row", editConfirm: "editConfirm", editCancel: "editCancel" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["href", "#", 1, "ng2-smart-action", "ng2-smart-action-edit-save", 3, "innerHTML", "click"], ["href", "#", 1, "ng2-smart-action", "ng2-smart-action-edit-cancel", 3, "innerHTML", "click"]], template: function TbodyCreateCancelComponent_Template(rf, ctx) { if (rf & 1) {
2224
- i0.ɵɵelementStart(0, "a", 0);
2225
- i0.ɵɵlistener("click", function TbodyCreateCancelComponent_Template_a_click_0_listener($event) { return ctx.onSave($event); });
2226
- i0.ɵɵelementEnd();
2227
- i0.ɵɵelementStart(1, "a", 1);
2228
- i0.ɵɵlistener("click", function TbodyCreateCancelComponent_Template_a_click_1_listener($event) { return ctx.onCancelEdit($event); });
2229
- i0.ɵɵelementEnd();
2230
- } if (rf & 2) {
2231
- i0.ɵɵproperty("innerHTML", ctx.saveButtonContent, i0.ɵɵsanitizeHtml);
2232
- i0.ɵɵadvance(1);
2233
- i0.ɵɵproperty("innerHTML", ctx.cancelButtonContent, i0.ɵɵsanitizeHtml);
2234
- } }, encapsulation: 2 });
2235
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TbodyCreateCancelComponent, [{
2236
- type: Component,
2237
- args: [{
2238
- selector: 'ng2-st-tbody-create-cancel',
2239
- template: `
1977
+ TbodyCreateCancelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCreateCancelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1978
+ 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: `
1979
+ <a href="#" class="ng2-smart-action ng2-smart-action-edit-save"
1980
+ [innerHTML]="saveButtonContent" (click)="onSave($event)"></a>
1981
+ <a href="#" class="ng2-smart-action ng2-smart-action-edit-cancel"
1982
+ [innerHTML]="cancelButtonContent" (click)="onCancelEdit($event)"></a>
1983
+ `, isInline: true });
1984
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCreateCancelComponent, decorators: [{
1985
+ type: Component,
1986
+ args: [{
1987
+ selector: 'ng2-st-tbody-create-cancel',
1988
+ template: `
2240
1989
  <a href="#" class="ng2-smart-action ng2-smart-action-edit-save"
2241
1990
  [innerHTML]="saveButtonContent" (click)="onSave($event)"></a>
2242
1991
  <a href="#" class="ng2-smart-action ng2-smart-action-edit-cancel"
2243
1992
  [innerHTML]="cancelButtonContent" (click)="onCancelEdit($event)"></a>
2244
1993
  `,
2245
- }]
2246
- }], null, { grid: [{
2247
- type: Input
2248
- }], row: [{
2249
- type: Input
2250
- }], editConfirm: [{
2251
- type: Input
2252
- }], editCancel: [{
2253
- type: Input
2254
- }] }); })();
2255
-
2256
- function TbodyEditDeleteComponent_a_0_Template(rf, ctx) { if (rf & 1) {
2257
- const _r3 = i0.ɵɵgetCurrentView();
2258
- i0.ɵɵelementStart(0, "a", 2);
2259
- 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)); });
2260
- i0.ɵɵelementEnd();
2261
- } if (rf & 2) {
2262
- const ctx_r0 = i0.ɵɵnextContext();
2263
- i0.ɵɵproperty("innerHTML", ctx_r0.editRowButtonContent, i0.ɵɵsanitizeHtml);
2264
- } }
2265
- function TbodyEditDeleteComponent_a_1_Template(rf, ctx) { if (rf & 1) {
2266
- const _r5 = i0.ɵɵgetCurrentView();
2267
- i0.ɵɵelementStart(0, "a", 3);
2268
- 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)); });
2269
- i0.ɵɵelementEnd();
2270
- } if (rf & 2) {
2271
- const ctx_r1 = i0.ɵɵnextContext();
2272
- i0.ɵɵproperty("innerHTML", ctx_r1.deleteRowButtonContent, i0.ɵɵsanitizeHtml);
2273
- } }
1994
+ }]
1995
+ }], propDecorators: { grid: [{
1996
+ type: Input
1997
+ }], row: [{
1998
+ type: Input
1999
+ }], editConfirm: [{
2000
+ type: Input
2001
+ }], editCancel: [{
2002
+ type: Input
2003
+ }] } });
2004
+
2274
2005
  class TbodyEditDeleteComponent {
2275
2006
  constructor() {
2276
2007
  this.edit = new EventEmitter();
@@ -2309,54 +2040,43 @@ class TbodyEditDeleteComponent {
2309
2040
  this.deleteRowButtonContent = this.grid.getSetting('delete.deleteButtonContent');
2310
2041
  }
2311
2042
  }
2312
- TbodyEditDeleteComponent.ɵfac = function TbodyEditDeleteComponent_Factory(t) { return new (t || TbodyEditDeleteComponent)(); };
2313
- TbodyEditDeleteComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TbodyEditDeleteComponent, selectors: [["ng2-st-tbody-edit-delete"]], inputs: { grid: "grid", row: "row", source: "source", deleteConfirm: "deleteConfirm", editConfirm: "editConfirm" }, outputs: { edit: "edit", delete: "delete", editRowSelect: "editRowSelect" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["href", "#", "class", "ng2-smart-action ng2-smart-action-edit-edit", 3, "innerHTML", "click", 4, "ngIf"], ["href", "#", "class", "ng2-smart-action ng2-smart-action-delete-delete", 3, "innerHTML", "click", 4, "ngIf"], ["href", "#", 1, "ng2-smart-action", "ng2-smart-action-edit-edit", 3, "innerHTML", "click"], ["href", "#", 1, "ng2-smart-action", "ng2-smart-action-delete-delete", 3, "innerHTML", "click"]], template: function TbodyEditDeleteComponent_Template(rf, ctx) { if (rf & 1) {
2314
- i0.ɵɵtemplate(0, TbodyEditDeleteComponent_a_0_Template, 1, 1, "a", 0);
2315
- i0.ɵɵtemplate(1, TbodyEditDeleteComponent_a_1_Template, 1, 1, "a", 1);
2316
- } if (rf & 2) {
2317
- i0.ɵɵproperty("ngIf", ctx.isActionEdit);
2318
- i0.ɵɵadvance(1);
2319
- i0.ɵɵproperty("ngIf", ctx.isActionDelete);
2320
- } }, dependencies: [i1.NgIf], encapsulation: 2, changeDetection: 0 });
2321
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TbodyEditDeleteComponent, [{
2322
- type: Component,
2323
- args: [{
2324
- selector: 'ng2-st-tbody-edit-delete',
2325
- changeDetection: ChangeDetectionStrategy.OnPush,
2326
- template: `
2043
+ TbodyEditDeleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyEditDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2044
+ 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: `
2045
+ <a href="#" *ngIf="isActionEdit" class="ng2-smart-action ng2-smart-action-edit-edit"
2046
+ [innerHTML]="editRowButtonContent" (click)="onEdit($event)"></a>
2047
+ <a href="#" *ngIf="isActionDelete" class="ng2-smart-action ng2-smart-action-delete-delete"
2048
+ [innerHTML]="deleteRowButtonContent" (click)="onDelete($event)"></a>
2049
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2050
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyEditDeleteComponent, decorators: [{
2051
+ type: Component,
2052
+ args: [{
2053
+ selector: 'ng2-st-tbody-edit-delete',
2054
+ changeDetection: ChangeDetectionStrategy.OnPush,
2055
+ template: `
2327
2056
  <a href="#" *ngIf="isActionEdit" class="ng2-smart-action ng2-smart-action-edit-edit"
2328
2057
  [innerHTML]="editRowButtonContent" (click)="onEdit($event)"></a>
2329
2058
  <a href="#" *ngIf="isActionDelete" class="ng2-smart-action ng2-smart-action-delete-delete"
2330
2059
  [innerHTML]="deleteRowButtonContent" (click)="onDelete($event)"></a>
2331
2060
  `,
2332
- }]
2333
- }], null, { grid: [{
2334
- type: Input
2335
- }], row: [{
2336
- type: Input
2337
- }], source: [{
2338
- type: Input
2339
- }], deleteConfirm: [{
2340
- type: Input
2341
- }], editConfirm: [{
2342
- type: Input
2343
- }], edit: [{
2344
- type: Output
2345
- }], delete: [{
2346
- type: Output
2347
- }], editRowSelect: [{
2348
- type: Output
2349
- }] }); })();
2350
-
2351
- function TbodyCustomComponent_a_0_Template(rf, ctx) { if (rf & 1) {
2352
- const _r3 = i0.ɵɵgetCurrentView();
2353
- i0.ɵɵelementStart(0, "a", 1);
2354
- 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)); });
2355
- i0.ɵɵelementEnd();
2356
- } if (rf & 2) {
2357
- const action_r1 = ctx.$implicit;
2358
- i0.ɵɵproperty("innerHTML", action_r1.title, i0.ɵɵsanitizeHtml);
2359
- } }
2061
+ }]
2062
+ }], propDecorators: { grid: [{
2063
+ type: Input
2064
+ }], row: [{
2065
+ type: Input
2066
+ }], source: [{
2067
+ type: Input
2068
+ }], deleteConfirm: [{
2069
+ type: Input
2070
+ }], editConfirm: [{
2071
+ type: Input
2072
+ }], edit: [{
2073
+ type: Output
2074
+ }], delete: [{
2075
+ type: Output
2076
+ }], editRowSelect: [{
2077
+ type: Output
2078
+ }] } });
2079
+
2360
2080
  class TbodyCustomComponent {
2361
2081
  constructor() {
2362
2082
  this.custom = new EventEmitter();
@@ -2371,151 +2091,35 @@ class TbodyCustomComponent {
2371
2091
  });
2372
2092
  }
2373
2093
  }
2374
- TbodyCustomComponent.ɵfac = function TbodyCustomComponent_Factory(t) { return new (t || TbodyCustomComponent)(); };
2375
- TbodyCustomComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TbodyCustomComponent, selectors: [["ng2-st-tbody-custom"]], inputs: { grid: "grid", row: "row", source: "source" }, outputs: { custom: "custom" }, decls: 1, vars: 1, consts: [["href", "#", "class", "ng2-smart-action ng2-smart-action-custom-custom", 3, "innerHTML", "click", 4, "ngFor", "ngForOf"], ["href", "#", 1, "ng2-smart-action", "ng2-smart-action-custom-custom", 3, "innerHTML", "click"]], template: function TbodyCustomComponent_Template(rf, ctx) { if (rf & 1) {
2376
- i0.ɵɵtemplate(0, TbodyCustomComponent_a_0_Template, 1, 1, "a", 0);
2377
- } if (rf & 2) {
2378
- i0.ɵɵproperty("ngForOf", ctx.grid.getSetting("actions.custom"));
2379
- } }, dependencies: [i1.NgForOf], encapsulation: 2, changeDetection: 0 });
2380
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TbodyCustomComponent, [{
2381
- type: Component,
2382
- args: [{
2383
- selector: 'ng2-st-tbody-custom',
2384
- changeDetection: ChangeDetectionStrategy.OnPush,
2385
- template: `
2094
+ TbodyCustomComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCustomComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2095
+ 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: `
2096
+ <a *ngFor="let action of grid.getSetting('actions.custom')" href="#"
2097
+ class="ng2-smart-action ng2-smart-action-custom-custom"
2098
+ [innerHTML]="action.title"
2099
+ (click)="onCustom(action, $event)"></a>
2100
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TbodyCustomComponent, decorators: [{
2102
+ type: Component,
2103
+ args: [{
2104
+ selector: 'ng2-st-tbody-custom',
2105
+ changeDetection: ChangeDetectionStrategy.OnPush,
2106
+ template: `
2386
2107
  <a *ngFor="let action of grid.getSetting('actions.custom')" href="#"
2387
2108
  class="ng2-smart-action ng2-smart-action-custom-custom"
2388
2109
  [innerHTML]="action.title"
2389
2110
  (click)="onCustom(action, $event)"></a>
2390
2111
  `
2391
- }]
2392
- }], null, { grid: [{
2393
- type: Input
2394
- }], row: [{
2395
- type: Input
2396
- }], source: [{
2397
- type: Input
2398
- }], custom: [{
2399
- type: Output
2400
- }] }); })();
2401
-
2402
- const _c0$7 = ["ng2-st-tbody", ""];
2403
- function Ng2SmartTableTbodyComponent_tr_0_td_1_Template(rf, ctx) { if (rf & 1) {
2404
- const _r11 = i0.ɵɵgetCurrentView();
2405
- i0.ɵɵelementStart(0, "td", 7);
2406
- 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()); });
2407
- i0.ɵɵelement(1, "input", 8);
2408
- i0.ɵɵelementEnd();
2409
- } if (rf & 2) {
2410
- const row_r2 = i0.ɵɵnextContext().$implicit;
2411
- i0.ɵɵadvance(1);
2412
- i0.ɵɵproperty("ngModel", row_r2.isSelected);
2413
- } }
2414
- function Ng2SmartTableTbodyComponent_tr_0_td_2_Template(rf, ctx) { if (rf & 1) {
2415
- const _r15 = i0.ɵɵgetCurrentView();
2416
- i0.ɵɵelementStart(0, "td", 9);
2417
- i0.ɵɵlistener("click", function Ng2SmartTableTbodyComponent_tr_0_td_2_Template_td_click_0_listener($event) { return $event.stopPropagation(); });
2418
- i0.ɵɵelementStart(1, "ng2-st-tbody-custom", 10);
2419
- 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)); });
2420
- i0.ɵɵelementEnd();
2421
- i0.ɵɵelementStart(2, "ng2-st-tbody-edit-delete", 11);
2422
- 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)); });
2423
- i0.ɵɵelementEnd()();
2424
- } if (rf & 2) {
2425
- const row_r2 = i0.ɵɵnextContext().$implicit;
2426
- const ctx_r4 = i0.ɵɵnextContext();
2427
- i0.ɵɵadvance(1);
2428
- i0.ɵɵproperty("grid", ctx_r4.grid)("row", row_r2)("source", ctx_r4.source);
2429
- i0.ɵɵadvance(1);
2430
- i0.ɵɵproperty("grid", ctx_r4.grid)("deleteConfirm", ctx_r4.deleteConfirm)("editConfirm", ctx_r4.editConfirm)("row", row_r2)("source", ctx_r4.source);
2431
- } }
2432
- function Ng2SmartTableTbodyComponent_tr_0_td_3_Template(rf, ctx) { if (rf & 1) {
2433
- i0.ɵɵelementStart(0, "td", 12);
2434
- i0.ɵɵelement(1, "ng2-st-tbody-create-cancel", 13);
2435
- i0.ɵɵelementEnd();
2436
- } if (rf & 2) {
2437
- const row_r2 = i0.ɵɵnextContext().$implicit;
2438
- const ctx_r5 = i0.ɵɵnextContext();
2439
- i0.ɵɵadvance(1);
2440
- i0.ɵɵproperty("grid", ctx_r5.grid)("row", row_r2)("editConfirm", ctx_r5.editConfirm)("editCancel", ctx_r5.editCancel);
2441
- } }
2442
- function Ng2SmartTableTbodyComponent_tr_0_td_4_Template(rf, ctx) { if (rf & 1) {
2443
- i0.ɵɵelementStart(0, "td");
2444
- i0.ɵɵelement(1, "ng2-smart-table-cell", 14);
2445
- i0.ɵɵelementEnd();
2446
- } if (rf & 2) {
2447
- const cell_r23 = ctx.$implicit;
2448
- const row_r2 = i0.ɵɵnextContext().$implicit;
2449
- const ctx_r6 = i0.ɵɵnextContext();
2450
- i0.ɵɵadvance(1);
2451
- 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);
2452
- } }
2453
- function Ng2SmartTableTbodyComponent_tr_0_td_5_Template(rf, ctx) { if (rf & 1) {
2454
- i0.ɵɵelementStart(0, "td", 12);
2455
- i0.ɵɵelement(1, "ng2-st-tbody-create-cancel", 15);
2456
- i0.ɵɵelementEnd();
2457
- } if (rf & 2) {
2458
- const row_r2 = i0.ɵɵnextContext().$implicit;
2459
- const ctx_r7 = i0.ɵɵnextContext();
2460
- i0.ɵɵadvance(1);
2461
- i0.ɵɵproperty("grid", ctx_r7.grid)("row", row_r2)("editConfirm", ctx_r7.editConfirm);
2462
- } }
2463
- function Ng2SmartTableTbodyComponent_tr_0_td_6_Template(rf, ctx) { if (rf & 1) {
2464
- const _r27 = i0.ɵɵgetCurrentView();
2465
- i0.ɵɵelementStart(0, "td", 12)(1, "ng2-st-tbody-custom", 10);
2466
- 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)); });
2467
- i0.ɵɵelementEnd();
2468
- i0.ɵɵelementStart(2, "ng2-st-tbody-edit-delete", 11);
2469
- 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)); });
2470
- i0.ɵɵelementEnd()();
2471
- } if (rf & 2) {
2472
- const row_r2 = i0.ɵɵnextContext().$implicit;
2473
- const ctx_r8 = i0.ɵɵnextContext();
2474
- i0.ɵɵadvance(1);
2475
- i0.ɵɵproperty("grid", ctx_r8.grid)("row", row_r2)("source", ctx_r8.source);
2476
- i0.ɵɵadvance(1);
2477
- i0.ɵɵproperty("grid", ctx_r8.grid)("deleteConfirm", ctx_r8.deleteConfirm)("editConfirm", ctx_r8.editConfirm)("row", row_r2)("source", ctx_r8.source);
2478
- } }
2479
- const _c1 = function (a0) { return { selected: a0 }; };
2480
- function Ng2SmartTableTbodyComponent_tr_0_Template(rf, ctx) { if (rf & 1) {
2481
- const _r35 = i0.ɵɵgetCurrentView();
2482
- i0.ɵɵelementStart(0, "tr", 2);
2483
- 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)); });
2484
- i0.ɵɵtemplate(1, Ng2SmartTableTbodyComponent_tr_0_td_1_Template, 2, 1, "td", 3);
2485
- i0.ɵɵtemplate(2, Ng2SmartTableTbodyComponent_tr_0_td_2_Template, 3, 8, "td", 4);
2486
- i0.ɵɵtemplate(3, Ng2SmartTableTbodyComponent_tr_0_td_3_Template, 2, 4, "td", 5);
2487
- i0.ɵɵtemplate(4, Ng2SmartTableTbodyComponent_tr_0_td_4_Template, 2, 8, "td", 6);
2488
- i0.ɵɵtemplate(5, Ng2SmartTableTbodyComponent_tr_0_td_5_Template, 2, 3, "td", 5);
2489
- i0.ɵɵtemplate(6, Ng2SmartTableTbodyComponent_tr_0_td_6_Template, 3, 8, "td", 5);
2490
- i0.ɵɵelementEnd();
2491
- } if (rf & 2) {
2492
- const row_r2 = ctx.$implicit;
2493
- const ctx_r0 = i0.ɵɵnextContext();
2494
- i0.ɵɵproperty("className", ctx_r0.rowClassFunction(row_r2))("ngClass", i0.ɵɵpureFunction1(8, _c1, row_r2.isSelected));
2495
- i0.ɵɵadvance(1);
2496
- i0.ɵɵproperty("ngIf", ctx_r0.isMultiSelectVisible);
2497
- i0.ɵɵadvance(1);
2498
- i0.ɵɵproperty("ngIf", !row_r2.isInEditing && ctx_r0.showActionColumnLeft);
2499
- i0.ɵɵadvance(1);
2500
- i0.ɵɵproperty("ngIf", row_r2.isInEditing && ctx_r0.showActionColumnLeft);
2501
- i0.ɵɵadvance(1);
2502
- i0.ɵɵproperty("ngForOf", ctx_r0.getVisibleCells(row_r2.cells));
2503
- i0.ɵɵadvance(1);
2504
- i0.ɵɵproperty("ngIf", row_r2.isInEditing && ctx_r0.showActionColumnRight);
2505
- i0.ɵɵadvance(1);
2506
- i0.ɵɵproperty("ngIf", !row_r2.isInEditing && ctx_r0.showActionColumnRight);
2507
- } }
2508
- function Ng2SmartTableTbodyComponent_tr_1_Template(rf, ctx) { if (rf & 1) {
2509
- i0.ɵɵelementStart(0, "tr")(1, "td");
2510
- i0.ɵɵtext(2);
2511
- i0.ɵɵelementEnd()();
2512
- } if (rf & 2) {
2513
- const ctx_r1 = i0.ɵɵnextContext();
2514
- i0.ɵɵadvance(1);
2515
- i0.ɵɵattribute("colspan", ctx_r1.tableColumnsCount);
2516
- i0.ɵɵadvance(1);
2517
- i0.ɵɵtextInterpolate1(" ", ctx_r1.noDataMessage, " ");
2518
- } }
2112
+ }]
2113
+ }], propDecorators: { grid: [{
2114
+ type: Input
2115
+ }], row: [{
2116
+ type: Input
2117
+ }], source: [{
2118
+ type: Input
2119
+ }], custom: [{
2120
+ type: Output
2121
+ }] } });
2122
+
2519
2123
  class Ng2SmartTableTbodyComponent {
2520
2124
  constructor() {
2521
2125
  this.save = new EventEmitter();
@@ -2529,7 +2133,6 @@ class Ng2SmartTableTbodyComponent {
2529
2133
  this.userClickedRow = new EventEmitter();
2530
2134
  this.editRowSelect = new EventEmitter();
2531
2135
  this.multipleSelectRow = new EventEmitter();
2532
- this.rowHover = new EventEmitter();
2533
2136
  }
2534
2137
  get tableColumnsCount() {
2535
2138
  const actionColumns = this.isActionAdd || this.isActionEdit || this.isActionDelete ? 1 : 0;
@@ -2549,54 +2152,48 @@ class Ng2SmartTableTbodyComponent {
2549
2152
  getVisibleCells(cells) {
2550
2153
  return (cells || []).filter((cell) => !cell.getColumn().hide);
2551
2154
  }
2155
+ trackByIdOrIndex(index, item) {
2156
+ return item?.id || index;
2157
+ }
2552
2158
  }
2553
- Ng2SmartTableTbodyComponent.ɵfac = function Ng2SmartTableTbodyComponent_Factory(t) { return new (t || Ng2SmartTableTbodyComponent)(); };
2554
- Ng2SmartTableTbodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Ng2SmartTableTbodyComponent, selectors: [["", "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", rowHover: "rowHover" }, features: [i0.ɵɵNgOnChangesFeature], attrs: _c0$7, decls: 2, vars: 2, consts: [["class", "ng2-smart-row", 3, "className", "ngClass", "click", "mouseover", 4, "ngFor", "ngForOf"], [4, "ngIf"], [1, "ng2-smart-row", 3, "className", "ngClass", "click", "mouseover"], ["class", "ng2-smart-actions ng2-smart-action-multiple-select", 3, "click", 4, "ngIf"], ["class", "ng2-smart-actions", 3, "click", 4, "ngIf"], ["class", "ng2-smart-actions", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "ng2-smart-actions", "ng2-smart-action-multiple-select", 3, "click"], ["type", "checkbox", 1, "form-control", 3, "ngModel"], [1, "ng2-smart-actions", 3, "click"], [3, "grid", "row", "source", "custom"], [3, "grid", "deleteConfirm", "editConfirm", "row", "source", "edit", "delete", "editRowSelect"], [1, "ng2-smart-actions"], [3, "grid", "row", "editConfirm", "editCancel"], [3, "cell", "grid", "row", "isNew", "mode", "editConfirm", "inputClass", "isInEditing"], [3, "grid", "row", "editConfirm"]], template: function Ng2SmartTableTbodyComponent_Template(rf, ctx) { if (rf & 1) {
2555
- i0.ɵɵtemplate(0, Ng2SmartTableTbodyComponent_tr_0_Template, 7, 10, "tr", 0);
2556
- i0.ɵɵtemplate(1, Ng2SmartTableTbodyComponent_tr_1_Template, 3, 2, "tr", 1);
2557
- } if (rf & 2) {
2558
- i0.ɵɵproperty("ngForOf", ctx.grid.getRows());
2559
- i0.ɵɵadvance(1);
2560
- i0.ɵɵproperty("ngIf", ctx.grid.getRows().length == 0);
2561
- } }, 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}"] });
2562
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Ng2SmartTableTbodyComponent, [{
2563
- type: Component,
2564
- args: [{ selector: '[ng2-st-tbody]', template: "<tr *ngFor=\"let row of grid.getRows()\" (click)=\"userClickedRow.emit(row)\" (mouseover)=\"rowHover.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"] }]
2565
- }], null, { grid: [{
2566
- type: Input
2567
- }], source: [{
2568
- type: Input
2569
- }], deleteConfirm: [{
2570
- type: Input
2571
- }], editConfirm: [{
2572
- type: Input
2573
- }], rowClassFunction: [{
2574
- type: Input
2575
- }], save: [{
2576
- type: Output
2577
- }], cancel: [{
2578
- type: Output
2579
- }], edit: [{
2580
- type: Output
2581
- }], editCancel: [{
2582
- type: Output
2583
- }], delete: [{
2584
- type: Output
2585
- }], custom: [{
2586
- type: Output
2587
- }], edited: [{
2588
- type: Output
2589
- }], userSelectRow: [{
2590
- type: Output
2591
- }], userClickedRow: [{
2592
- type: Output
2593
- }], editRowSelect: [{
2594
- type: Output
2595
- }], multipleSelectRow: [{
2596
- type: Output
2597
- }], rowHover: [{
2598
- type: Output
2599
- }] }); })();
2159
+ Ng2SmartTableTbodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableTbodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2160
+ 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"] }] });
2161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableTbodyComponent, decorators: [{
2162
+ type: Component,
2163
+ 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"] }]
2164
+ }], propDecorators: { grid: [{
2165
+ type: Input
2166
+ }], source: [{
2167
+ type: Input
2168
+ }], deleteConfirm: [{
2169
+ type: Input
2170
+ }], editConfirm: [{
2171
+ type: Input
2172
+ }], rowClassFunction: [{
2173
+ type: Input
2174
+ }], save: [{
2175
+ type: Output
2176
+ }], cancel: [{
2177
+ type: Output
2178
+ }], edit: [{
2179
+ type: Output
2180
+ }], editCancel: [{
2181
+ type: Output
2182
+ }], delete: [{
2183
+ type: Output
2184
+ }], custom: [{
2185
+ type: Output
2186
+ }], edited: [{
2187
+ type: Output
2188
+ }], userSelectRow: [{
2189
+ type: Output
2190
+ }], userClickedRow: [{
2191
+ type: Output
2192
+ }], editRowSelect: [{
2193
+ type: Output
2194
+ }], multipleSelectRow: [{
2195
+ type: Output
2196
+ }] } });
2600
2197
 
2601
2198
  const TBODY_COMPONENTS = [
2602
2199
  TbodyCreateCancelComponent,
@@ -2606,28 +2203,8 @@ const TBODY_COMPONENTS = [
2606
2203
  ];
2607
2204
  class TBodyModule {
2608
2205
  }
2609
- TBodyModule.ɵfac = function TBodyModule_Factory(t) { return new (t || TBodyModule)(); };
2610
- TBodyModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: TBodyModule });
2611
- TBodyModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
2612
- FormsModule,
2613
- CellModule] });
2614
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TBodyModule, [{
2615
- type: NgModule,
2616
- args: [{
2617
- imports: [
2618
- CommonModule,
2619
- FormsModule,
2620
- CellModule,
2621
- ],
2622
- declarations: [
2623
- ...TBODY_COMPONENTS,
2624
- ],
2625
- exports: [
2626
- ...TBODY_COMPONENTS,
2627
- ],
2628
- }]
2629
- }], null, null); })();
2630
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TBodyModule, { declarations: [TbodyCreateCancelComponent,
2206
+ TBodyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2207
+ TBodyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, declarations: [TbodyCreateCancelComponent,
2631
2208
  TbodyEditDeleteComponent,
2632
2209
  TbodyCustomComponent,
2633
2210
  Ng2SmartTableTbodyComponent], imports: [CommonModule,
@@ -2635,18 +2212,27 @@ TBodyModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
2635
2212
  CellModule], exports: [TbodyCreateCancelComponent,
2636
2213
  TbodyEditDeleteComponent,
2637
2214
  TbodyCustomComponent,
2638
- Ng2SmartTableTbodyComponent] }); })();
2639
-
2640
- const _c0$6 = ["ng2-st-add-button", ""];
2641
- function AddButtonComponent_a_0_Template(rf, ctx) { if (rf & 1) {
2642
- const _r2 = i0.ɵɵgetCurrentView();
2643
- i0.ɵɵelementStart(0, "a", 1);
2644
- 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)); });
2645
- i0.ɵɵelementEnd();
2646
- } if (rf & 2) {
2647
- const ctx_r0 = i0.ɵɵnextContext();
2648
- i0.ɵɵproperty("innerHTML", ctx_r0.addNewButtonContent, i0.ɵɵsanitizeHtml);
2649
- } }
2215
+ Ng2SmartTableTbodyComponent] });
2216
+ TBodyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, imports: [CommonModule,
2217
+ FormsModule,
2218
+ CellModule] });
2219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TBodyModule, decorators: [{
2220
+ type: NgModule,
2221
+ args: [{
2222
+ imports: [
2223
+ CommonModule,
2224
+ FormsModule,
2225
+ CellModule,
2226
+ ],
2227
+ declarations: [
2228
+ ...TBODY_COMPONENTS,
2229
+ ],
2230
+ exports: [
2231
+ ...TBODY_COMPONENTS,
2232
+ ],
2233
+ }]
2234
+ }] });
2235
+
2650
2236
  class AddButtonComponent {
2651
2237
  constructor(ref) {
2652
2238
  this.ref = ref;
@@ -2672,63 +2258,28 @@ class AddButtonComponent {
2672
2258
  }
2673
2259
  }
2674
2260
  }
2675
- AddButtonComponent.ɵfac = function AddButtonComponent_Factory(t) { return new (t || AddButtonComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
2676
- AddButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddButtonComponent, selectors: [["", "ng2-st-add-button", ""]], inputs: { grid: "grid", source: "source" }, outputs: { create: "create" }, features: [i0.ɵɵNgOnChangesFeature], attrs: _c0$6, decls: 1, vars: 1, consts: [["href", "#", "class", "ng2-smart-action ng2-smart-action-add-add", 3, "innerHTML", "click", 4, "ngIf"], ["href", "#", 1, "ng2-smart-action", "ng2-smart-action-add-add", 3, "innerHTML", "click"]], template: function AddButtonComponent_Template(rf, ctx) { if (rf & 1) {
2677
- i0.ɵɵtemplate(0, AddButtonComponent_a_0_Template, 1, 1, "a", 0);
2678
- } if (rf & 2) {
2679
- i0.ɵɵproperty("ngIf", ctx.isActionAdd);
2680
- } }, dependencies: [i1.NgIf], encapsulation: 2 });
2681
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddButtonComponent, [{
2682
- type: Component,
2683
- args: [{
2684
- selector: '[ng2-st-add-button]',
2685
- template: `
2261
+ AddButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
2262
+ 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: `
2263
+ <a *ngIf="isActionAdd" href="#" class="ng2-smart-action ng2-smart-action-add-add"
2264
+ [innerHTML]="addNewButtonContent" (click)="onAdd($event)"></a>
2265
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2266
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AddButtonComponent, decorators: [{
2267
+ type: Component,
2268
+ args: [{
2269
+ selector: '[ng2-st-add-button]',
2270
+ template: `
2686
2271
  <a *ngIf="isActionAdd" href="#" class="ng2-smart-action ng2-smart-action-add-add"
2687
2272
  [innerHTML]="addNewButtonContent" (click)="onAdd($event)"></a>
2688
2273
  `,
2689
- }]
2690
- }], function () { return [{ type: i0.ElementRef }]; }, { grid: [{
2691
- type: Input
2692
- }], source: [{
2693
- type: Input
2694
- }], create: [{
2695
- type: Output
2696
- }] }); })();
2697
-
2698
- const _c0$5 = ["ng2-st-thead-filters-row", ""];
2699
- function TheadFitlersRowComponent_th_0_Template(rf, ctx) { if (rf & 1) {
2700
- i0.ɵɵelement(0, "th");
2701
- } }
2702
- function TheadFitlersRowComponent_th_1_Template(rf, ctx) { if (rf & 1) {
2703
- const _r5 = i0.ɵɵgetCurrentView();
2704
- i0.ɵɵelementStart(0, "th", 4);
2705
- 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)); });
2706
- i0.ɵɵelementEnd();
2707
- } if (rf & 2) {
2708
- const ctx_r1 = i0.ɵɵnextContext();
2709
- i0.ɵɵproperty("grid", ctx_r1.grid);
2710
- } }
2711
- function TheadFitlersRowComponent_th_2_Template(rf, ctx) { if (rf & 1) {
2712
- const _r8 = i0.ɵɵgetCurrentView();
2713
- i0.ɵɵelementStart(0, "th")(1, "ng2-smart-table-filter", 5);
2714
- 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)); });
2715
- i0.ɵɵelementEnd()();
2716
- } if (rf & 2) {
2717
- const column_r6 = ctx.$implicit;
2718
- const ctx_r2 = i0.ɵɵnextContext();
2719
- i0.ɵɵclassMapInterpolate1("ng2-smart-th ", column_r6.id, "");
2720
- i0.ɵɵadvance(1);
2721
- i0.ɵɵproperty("source", ctx_r2.source)("column", column_r6)("inputClass", ctx_r2.filterInputClass);
2722
- } }
2723
- function TheadFitlersRowComponent_th_3_Template(rf, ctx) { if (rf & 1) {
2724
- const _r10 = i0.ɵɵgetCurrentView();
2725
- i0.ɵɵelementStart(0, "th", 6);
2726
- 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)); });
2727
- i0.ɵɵelementEnd();
2728
- } if (rf & 2) {
2729
- const ctx_r3 = i0.ɵɵnextContext();
2730
- i0.ɵɵproperty("grid", ctx_r3.grid)("source", ctx_r3.source);
2731
- } }
2274
+ }]
2275
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { grid: [{
2276
+ type: Input
2277
+ }], source: [{
2278
+ type: Input
2279
+ }], create: [{
2280
+ type: Output
2281
+ }] } });
2282
+
2732
2283
  class TheadFitlersRowComponent {
2733
2284
  constructor() {
2734
2285
  this.create = new EventEmitter();
@@ -2744,26 +2295,31 @@ class TheadFitlersRowComponent {
2744
2295
  return (columns || []).filter((column) => !column.hide);
2745
2296
  }
2746
2297
  }
2747
- TheadFitlersRowComponent.ɵfac = function TheadFitlersRowComponent_Factory(t) { return new (t || TheadFitlersRowComponent)(); };
2748
- TheadFitlersRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TheadFitlersRowComponent, selectors: [["", "ng2-st-thead-filters-row", ""]], inputs: { grid: "grid", source: "source" }, outputs: { create: "create", filter: "filter" }, features: [i0.ɵɵNgOnChangesFeature], attrs: _c0$5, decls: 4, vars: 4, consts: [[4, "ngIf"], ["ng2-st-add-button", "", 3, "grid", "create", 4, "ngIf"], [3, "class", 4, "ngFor", "ngForOf"], ["ng2-st-add-button", "", 3, "grid", "source", "create", 4, "ngIf"], ["ng2-st-add-button", "", 3, "grid", "create"], [3, "source", "column", "inputClass", "filter"], ["ng2-st-add-button", "", 3, "grid", "source", "create"]], template: function TheadFitlersRowComponent_Template(rf, ctx) { if (rf & 1) {
2749
- i0.ɵɵtemplate(0, TheadFitlersRowComponent_th_0_Template, 1, 0, "th", 0);
2750
- i0.ɵɵtemplate(1, TheadFitlersRowComponent_th_1_Template, 1, 1, "th", 1);
2751
- i0.ɵɵtemplate(2, TheadFitlersRowComponent_th_2_Template, 2, 6, "th", 2);
2752
- i0.ɵɵtemplate(3, TheadFitlersRowComponent_th_3_Template, 1, 2, "th", 3);
2753
- } if (rf & 2) {
2754
- i0.ɵɵproperty("ngIf", ctx.isMultiSelectVisible);
2755
- i0.ɵɵadvance(1);
2756
- i0.ɵɵproperty("ngIf", ctx.showActionColumnLeft);
2757
- i0.ɵɵadvance(1);
2758
- i0.ɵɵproperty("ngForOf", ctx.getVisibleColumns(ctx.grid.getColumns()));
2759
- i0.ɵɵadvance(1);
2760
- i0.ɵɵproperty("ngIf", ctx.showActionColumnRight);
2761
- } }, dependencies: [i1.NgForOf, i1.NgIf, FilterComponent, AddButtonComponent], encapsulation: 2 });
2762
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TheadFitlersRowComponent, [{
2763
- type: Component,
2764
- args: [{
2765
- selector: '[ng2-st-thead-filters-row]',
2766
- template: `
2298
+ TheadFitlersRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadFitlersRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2299
+ 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: `
2300
+ <th *ngIf="isMultiSelectVisible"></th>
2301
+ <th ng2-st-add-button *ngIf="showActionColumnLeft"
2302
+ [grid]="grid"
2303
+ (create)="create.emit($event)">
2304
+ </th>
2305
+ <th *ngFor="let column of getVisibleColumns(grid.getColumns())" class="ng2-smart-th {{ column.id }}">
2306
+ <ng2-smart-table-filter [source]="source"
2307
+ [column]="column"
2308
+ [inputClass]="filterInputClass"
2309
+ (filter)="filter.emit($event)">
2310
+ </ng2-smart-table-filter>
2311
+ </th>
2312
+ <th ng2-st-add-button *ngIf="showActionColumnRight"
2313
+ [grid]="grid"
2314
+ [source]="source"
2315
+ (create)="create.emit($event)">
2316
+ </th>
2317
+ `, 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"] }] });
2318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadFitlersRowComponent, decorators: [{
2319
+ type: Component,
2320
+ args: [{
2321
+ selector: '[ng2-st-thead-filters-row]',
2322
+ template: `
2767
2323
  <th *ngIf="isMultiSelectVisible"></th>
2768
2324
  <th ng2-st-add-button *ngIf="showActionColumnLeft"
2769
2325
  [grid]="grid"
@@ -2782,16 +2338,16 @@ TheadFitlersRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Th
2782
2338
  (create)="create.emit($event)">
2783
2339
  </th>
2784
2340
  `,
2785
- }]
2786
- }], null, { grid: [{
2787
- type: Input
2788
- }], source: [{
2789
- type: Input
2790
- }], create: [{
2791
- type: Output
2792
- }], filter: [{
2793
- type: Output
2794
- }] }); })();
2341
+ }]
2342
+ }], propDecorators: { grid: [{
2343
+ type: Input
2344
+ }], source: [{
2345
+ type: Input
2346
+ }], create: [{
2347
+ type: Output
2348
+ }], filter: [{
2349
+ type: Output
2350
+ }] } });
2795
2351
 
2796
2352
  class ActionsComponent {
2797
2353
  constructor() {
@@ -2802,24 +2358,20 @@ class ActionsComponent {
2802
2358
  this.cancelButtonContent = this.grid.getSetting('add.cancelButtonContent');
2803
2359
  }
2804
2360
  }
2805
- ActionsComponent.ɵfac = function ActionsComponent_Factory(t) { return new (t || ActionsComponent)(); };
2806
- ActionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ActionsComponent, selectors: [["ng2-st-actions"]], inputs: { grid: "grid" }, outputs: { create: "create" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["href", "#", 1, "ng2-smart-action", "ng2-smart-action-add-create", 3, "innerHTML", "click"], ["href", "#", 1, "ng2-smart-action", "ng2-smart-action-add-cancel", 3, "innerHTML", "click"]], template: function ActionsComponent_Template(rf, ctx) { if (rf & 1) {
2807
- i0.ɵɵelementStart(0, "a", 0);
2808
- i0.ɵɵlistener("click", function ActionsComponent_Template_a_click_0_listener($event) { $event.preventDefault(); return ctx.create.emit($event); });
2809
- i0.ɵɵelementEnd();
2810
- i0.ɵɵelementStart(1, "a", 1);
2811
- i0.ɵɵlistener("click", function ActionsComponent_Template_a_click_1_listener($event) { $event.preventDefault(); return ctx.grid.createFormShown = false; });
2812
- i0.ɵɵelementEnd();
2813
- } if (rf & 2) {
2814
- i0.ɵɵproperty("innerHTML", ctx.createButtonContent, i0.ɵɵsanitizeHtml);
2815
- i0.ɵɵadvance(1);
2816
- i0.ɵɵproperty("innerHTML", ctx.cancelButtonContent, i0.ɵɵsanitizeHtml);
2817
- } }, encapsulation: 2 });
2818
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActionsComponent, [{
2819
- type: Component,
2820
- args: [{
2821
- selector: 'ng2-st-actions',
2822
- template: `
2361
+ ActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2362
+ 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: `
2363
+ <a href="#" class="ng2-smart-action ng2-smart-action-add-create"
2364
+ [innerHTML]="createButtonContent"
2365
+ (click)="$event.preventDefault();create.emit($event)"></a>
2366
+ <a href="#" class="ng2-smart-action ng2-smart-action-add-cancel"
2367
+ [innerHTML]="cancelButtonContent"
2368
+ (click)="$event.preventDefault();grid.createFormShown = false;"></a>
2369
+ `, isInline: true });
2370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsComponent, decorators: [{
2371
+ type: Component,
2372
+ args: [{
2373
+ selector: 'ng2-st-actions',
2374
+ template: `
2823
2375
  <a href="#" class="ng2-smart-action ng2-smart-action-add-create"
2824
2376
  [innerHTML]="createButtonContent"
2825
2377
  (click)="$event.preventDefault();create.emit($event)"></a>
@@ -2827,48 +2379,13 @@ ActionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ActionsCom
2827
2379
  [innerHTML]="cancelButtonContent"
2828
2380
  (click)="$event.preventDefault();grid.createFormShown = false;"></a>
2829
2381
  `,
2830
- }]
2831
- }], null, { grid: [{
2832
- type: Input
2833
- }], create: [{
2834
- type: Output
2835
- }] }); })();
2836
-
2837
- const _c0$4 = ["ng2-st-thead-form-row", ""];
2838
- function TheadFormRowComponent_td_0_Template(rf, ctx) { if (rf & 1) {
2839
- i0.ɵɵelement(0, "td");
2840
- } }
2841
- function TheadFormRowComponent_td_1_Template(rf, ctx) { if (rf & 1) {
2842
- const _r5 = i0.ɵɵgetCurrentView();
2843
- i0.ɵɵelementStart(0, "td", 3)(1, "ng2-st-actions", 4);
2844
- 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)); });
2845
- i0.ɵɵelementEnd()();
2846
- } if (rf & 2) {
2847
- const ctx_r1 = i0.ɵɵnextContext();
2848
- i0.ɵɵadvance(1);
2849
- i0.ɵɵproperty("grid", ctx_r1.grid);
2850
- } }
2851
- function TheadFormRowComponent_td_2_Template(rf, ctx) { if (rf & 1) {
2852
- const _r8 = i0.ɵɵgetCurrentView();
2853
- i0.ɵɵelementStart(0, "td")(1, "ng2-smart-table-cell", 5);
2854
- 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)); });
2855
- i0.ɵɵelementEnd()();
2856
- } if (rf & 2) {
2857
- const cell_r6 = ctx.$implicit;
2858
- const ctx_r2 = i0.ɵɵnextContext();
2859
- i0.ɵɵadvance(1);
2860
- 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);
2861
- } }
2862
- function TheadFormRowComponent_td_3_Template(rf, ctx) { if (rf & 1) {
2863
- const _r10 = i0.ɵɵgetCurrentView();
2864
- i0.ɵɵelementStart(0, "td", 3)(1, "ng2-st-actions", 4);
2865
- 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)); });
2866
- i0.ɵɵelementEnd()();
2867
- } if (rf & 2) {
2868
- const ctx_r3 = i0.ɵɵnextContext();
2869
- i0.ɵɵadvance(1);
2870
- i0.ɵɵproperty("grid", ctx_r3.grid);
2871
- } }
2382
+ }]
2383
+ }], propDecorators: { grid: [{
2384
+ type: Input
2385
+ }], create: [{
2386
+ type: Output
2387
+ }] } });
2388
+
2872
2389
  class TheadFormRowComponent {
2873
2390
  constructor() {
2874
2391
  this.create = new EventEmitter();
@@ -2887,26 +2404,32 @@ class TheadFormRowComponent {
2887
2404
  return (cells || []).filter((cell) => !cell.getColumn().hide);
2888
2405
  }
2889
2406
  }
2890
- TheadFormRowComponent.ɵfac = function TheadFormRowComponent_Factory(t) { return new (t || TheadFormRowComponent)(); };
2891
- TheadFormRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TheadFormRowComponent, selectors: [["", "ng2-st-thead-form-row", ""]], inputs: { grid: "grid", row: "row", createConfirm: "createConfirm" }, outputs: { create: "create" }, features: [i0.ɵɵNgOnChangesFeature], attrs: _c0$4, decls: 4, vars: 3, consts: [[4, "ngIf"], ["class", "ng2-smart-actions", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "ng2-smart-actions"], [3, "grid", "create"], [3, "cell", "grid", "isNew", "createConfirm", "inputClass", "isInEditing", "edited"]], template: function TheadFormRowComponent_Template(rf, ctx) { if (rf & 1) {
2892
- i0.ɵɵtemplate(0, TheadFormRowComponent_td_0_Template, 1, 0, "td", 0);
2893
- i0.ɵɵtemplate(1, TheadFormRowComponent_td_1_Template, 2, 1, "td", 1);
2894
- i0.ɵɵtemplate(2, TheadFormRowComponent_td_2_Template, 2, 6, "td", 2);
2895
- i0.ɵɵtemplate(3, TheadFormRowComponent_td_3_Template, 2, 1, "td", 1);
2896
- } if (rf & 2) {
2897
- i0.ɵɵadvance(1);
2898
- i0.ɵɵproperty("ngIf", ctx.showActionColumnLeft);
2899
- i0.ɵɵadvance(1);
2900
- i0.ɵɵproperty("ngForOf", ctx.getVisibleCells(ctx.grid.getNewRow().getCells()));
2901
- i0.ɵɵadvance(1);
2902
- i0.ɵɵproperty("ngIf", ctx.showActionColumnRight);
2903
- } }, dependencies: [i1.NgForOf, i1.NgIf, CellComponent, ActionsComponent], encapsulation: 2 });
2904
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TheadFormRowComponent, [{
2905
- type: Component,
2906
- args: [{
2907
- selector: '[ng2-st-thead-form-row]',
2908
- template: `
2909
- <td *ngIf=""></td>
2407
+ TheadFormRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadFormRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2408
+ 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: `
2409
+ <td *ngIf="grid.isMultiSelectVisible"></td>
2410
+ <td *ngIf="showActionColumnLeft" class="ng2-smart-actions">
2411
+ <ng2-st-actions [grid]="grid" (create)="onCreate($event)"></ng2-st-actions>
2412
+ </td>
2413
+ <td *ngFor="let cell of getVisibleCells(grid.getNewRow().getCells())">
2414
+ <ng2-smart-table-cell [cell]="cell"
2415
+ [grid]="grid"
2416
+ [isNew]="true"
2417
+ [createConfirm]="createConfirm"
2418
+ [inputClass]="addInputClass"
2419
+ [isInEditing]="grid.getNewRow().isInEditing"
2420
+ (edited)="onCreate($event)">
2421
+ </ng2-smart-table-cell>
2422
+ </td>
2423
+ <td *ngIf="showActionColumnRight" class="ng2-smart-actions">
2424
+ <ng2-st-actions [grid]="grid" (create)="onCreate($event)"></ng2-st-actions>
2425
+ </td>
2426
+ `, 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"] }] });
2427
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadFormRowComponent, decorators: [{
2428
+ type: Component,
2429
+ args: [{
2430
+ selector: '[ng2-st-thead-form-row]',
2431
+ template: `
2432
+ <td *ngIf="grid.isMultiSelectVisible"></td>
2910
2433
  <td *ngIf="showActionColumnLeft" class="ng2-smart-actions">
2911
2434
  <ng2-st-actions [grid]="grid" (create)="onCreate($event)"></ng2-st-actions>
2912
2435
  </td>
@@ -2924,18 +2447,17 @@ TheadFormRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Thead
2924
2447
  <ng2-st-actions [grid]="grid" (create)="onCreate($event)"></ng2-st-actions>
2925
2448
  </td>
2926
2449
  `,
2927
- }]
2928
- }], null, { grid: [{
2929
- type: Input
2930
- }], row: [{
2931
- type: Input
2932
- }], createConfirm: [{
2933
- type: Input
2934
- }], create: [{
2935
- type: Output
2936
- }] }); })();
2937
-
2938
- const _c0$3 = ["ng2-st-actions-title", ""];
2450
+ }]
2451
+ }], propDecorators: { grid: [{
2452
+ type: Input
2453
+ }], row: [{
2454
+ type: Input
2455
+ }], createConfirm: [{
2456
+ type: Input
2457
+ }], create: [{
2458
+ type: Output
2459
+ }] } });
2460
+
2939
2461
  class ActionsTitleComponent {
2940
2462
  constructor(ref) {
2941
2463
  this.ref = ref;
@@ -2947,71 +2469,42 @@ class ActionsTitleComponent {
2947
2469
  this.actionsColumnTitle = this.grid.getSetting('actions.columnTitle');
2948
2470
  }
2949
2471
  }
2950
- ActionsTitleComponent.ɵfac = function ActionsTitleComponent_Factory(t) { return new (t || ActionsTitleComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
2951
- ActionsTitleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ActionsTitleComponent, selectors: [["", "ng2-st-actions-title", ""]], inputs: { grid: "grid" }, features: [i0.ɵɵNgOnChangesFeature], attrs: _c0$3, decls: 2, vars: 1, consts: [[1, "ng2-smart-title"]], template: function ActionsTitleComponent_Template(rf, ctx) { if (rf & 1) {
2952
- i0.ɵɵelementStart(0, "div", 0);
2953
- i0.ɵɵtext(1);
2954
- i0.ɵɵelementEnd();
2955
- } if (rf & 2) {
2956
- i0.ɵɵadvance(1);
2957
- i0.ɵɵtextInterpolate(ctx.actionsColumnTitle);
2958
- } }, encapsulation: 2 });
2959
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActionsTitleComponent, [{
2960
- type: Component,
2961
- args: [{
2962
- selector: '[ng2-st-actions-title]',
2963
- template: `
2472
+ ActionsTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsTitleComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
2473
+ 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: `
2474
+ <div class="ng2-smart-title">{{ actionsColumnTitle }}</div>
2475
+ `, isInline: true });
2476
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ActionsTitleComponent, decorators: [{
2477
+ type: Component,
2478
+ args: [{
2479
+ selector: '[ng2-st-actions-title]',
2480
+ template: `
2964
2481
  <div class="ng2-smart-title">{{ actionsColumnTitle }}</div>
2965
2482
  `,
2966
- }]
2967
- }], function () { return [{ type: i0.ElementRef }]; }, { grid: [{
2968
- type: Input
2969
- }] }); })();
2483
+ }]
2484
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { grid: [{
2485
+ type: Input
2486
+ }] } });
2970
2487
 
2971
- const _c0$2 = ["ng2-st-checkbox-select-all", ""];
2972
2488
  class CheckboxSelectAllComponent {
2973
2489
  }
2974
- CheckboxSelectAllComponent.ɵfac = function CheckboxSelectAllComponent_Factory(t) { return new (t || CheckboxSelectAllComponent)(); };
2975
- CheckboxSelectAllComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckboxSelectAllComponent, selectors: [["", "ng2-st-checkbox-select-all", ""]], inputs: { grid: "grid", source: "source" }, attrs: _c0$2, decls: 1, vars: 1, consts: [["type", "checkbox", 3, "ngModel"]], template: function CheckboxSelectAllComponent_Template(rf, ctx) { if (rf & 1) {
2976
- i0.ɵɵelement(0, "input", 0);
2977
- } if (rf & 2) {
2978
- i0.ɵɵproperty("ngModel", ctx.grid.dataSet.isAllSelected);
2979
- } }, dependencies: [i2.CheckboxControlValueAccessor, i2.NgControlStatus, i2.NgModel], encapsulation: 2 });
2980
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxSelectAllComponent, [{
2981
- type: Component,
2982
- args: [{
2983
- selector: '[ng2-st-checkbox-select-all]',
2984
- template: `
2490
+ CheckboxSelectAllComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxSelectAllComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2491
+ 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: `
2492
+ <input type="checkbox" [ngModel]="this.grid.dataSet.isAllSelected">
2493
+ `, 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"] }] });
2494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CheckboxSelectAllComponent, decorators: [{
2495
+ type: Component,
2496
+ args: [{
2497
+ selector: '[ng2-st-checkbox-select-all]',
2498
+ template: `
2985
2499
  <input type="checkbox" [ngModel]="this.grid.dataSet.isAllSelected">
2986
2500
  `,
2987
- }]
2988
- }], null, { grid: [{
2989
- type: Input
2990
- }], source: [{
2991
- type: Input
2992
- }] }); })();
2993
-
2994
- function TitleComponent_a_0_Template(rf, ctx) { if (rf & 1) {
2995
- const _r3 = i0.ɵɵgetCurrentView();
2996
- i0.ɵɵelementStart(0, "a", 2);
2997
- 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)); });
2998
- i0.ɵɵtext(1);
2999
- i0.ɵɵelementEnd();
3000
- } if (rf & 2) {
3001
- const ctx_r0 = i0.ɵɵnextContext();
3002
- i0.ɵɵproperty("ngClass", ctx_r0.currentDirection);
3003
- i0.ɵɵadvance(1);
3004
- i0.ɵɵtextInterpolate1(" ", ctx_r0.column.title, " ");
3005
- } }
3006
- function TitleComponent_span_1_Template(rf, ctx) { if (rf & 1) {
3007
- i0.ɵɵelementStart(0, "span", 3);
3008
- i0.ɵɵtext(1);
3009
- i0.ɵɵelementEnd();
3010
- } if (rf & 2) {
3011
- const ctx_r1 = i0.ɵɵnextContext();
3012
- i0.ɵɵadvance(1);
3013
- i0.ɵɵtextInterpolate(ctx_r1.column.title);
3014
- } }
2501
+ }]
2502
+ }], propDecorators: { grid: [{
2503
+ type: Input
2504
+ }], source: [{
2505
+ type: Input
2506
+ }] } });
2507
+
3015
2508
  class TitleComponent {
3016
2509
  constructor() {
3017
2510
  this.currentDirection = '';
@@ -3058,18 +2551,19 @@ class TitleComponent {
3058
2551
  return this.currentDirection;
3059
2552
  }
3060
2553
  }
3061
- TitleComponent.ɵfac = function TitleComponent_Factory(t) { return new (t || TitleComponent)(); };
3062
- TitleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TitleComponent, selectors: [["ng2-smart-table-title"]], inputs: { column: "column", source: "source" }, outputs: { sort: "sort" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["href", "#", "class", "ng2-smart-sort-link sort", 3, "ngClass", "click", 4, "ngIf"], ["class", "ng2-smart-sort", 4, "ngIf"], ["href", "#", 1, "ng2-smart-sort-link", "sort", 3, "ngClass", "click"], [1, "ng2-smart-sort"]], template: function TitleComponent_Template(rf, ctx) { if (rf & 1) {
3063
- i0.ɵɵtemplate(0, TitleComponent_a_0_Template, 2, 2, "a", 0);
3064
- i0.ɵɵtemplate(1, TitleComponent_span_1_Template, 2, 1, "span", 1);
3065
- } if (rf & 2) {
3066
- i0.ɵɵproperty("ngIf", ctx.column.isSortable);
3067
- i0.ɵɵadvance(1);
3068
- i0.ɵɵproperty("ngIf", !ctx.column.isSortable);
3069
- } }, 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}"] });
3070
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TitleComponent, [{
3071
- type: Component,
3072
- args: [{ selector: 'ng2-smart-table-title', template: `
2554
+ TitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2555
+ 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: `
2556
+ <a href="#" *ngIf="column.isSortable"
2557
+ (click)="_sort($event)"
2558
+ class="ng2-smart-sort-link sort"
2559
+ [ngClass]="currentDirection">
2560
+ {{ column.title }}
2561
+ </a>
2562
+ <span class="ng2-smart-sort" *ngIf="!column.isSortable">{{ column.title }}</span>
2563
+ `, 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"] }] });
2564
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TitleComponent, decorators: [{
2565
+ type: Component,
2566
+ args: [{ selector: 'ng2-smart-table-title', template: `
3073
2567
  <a href="#" *ngIf="column.isSortable"
3074
2568
  (click)="_sort($event)"
3075
2569
  class="ng2-smart-sort-link sort"
@@ -3078,82 +2572,43 @@ TitleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TitleCompone
3078
2572
  </a>
3079
2573
  <span class="ng2-smart-sort" *ngIf="!column.isSortable">{{ column.title }}</span>
3080
2574
  `, 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"] }]
3081
- }], null, { column: [{
3082
- type: Input
3083
- }], source: [{
3084
- type: Input
3085
- }], sort: [{
3086
- type: Output
3087
- }] }); })();
2575
+ }], propDecorators: { column: [{
2576
+ type: Input
2577
+ }], source: [{
2578
+ type: Input
2579
+ }], sort: [{
2580
+ type: Output
2581
+ }] } });
3088
2582
 
3089
2583
  class ColumnTitleComponent {
3090
2584
  constructor() {
3091
2585
  this.sort = new EventEmitter();
3092
2586
  }
3093
2587
  }
3094
- ColumnTitleComponent.ɵfac = function ColumnTitleComponent_Factory(t) { return new (t || ColumnTitleComponent)(); };
3095
- ColumnTitleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ColumnTitleComponent, selectors: [["ng2-st-column-title"]], inputs: { column: "column", source: "source" }, outputs: { sort: "sort" }, decls: 2, vars: 2, consts: [[1, "ng2-smart-title"], [3, "source", "column", "sort"]], template: function ColumnTitleComponent_Template(rf, ctx) { if (rf & 1) {
3096
- i0.ɵɵelementStart(0, "div", 0)(1, "ng2-smart-table-title", 1);
3097
- i0.ɵɵlistener("sort", function ColumnTitleComponent_Template_ng2_smart_table_title_sort_1_listener($event) { return ctx.sort.emit($event); });
3098
- i0.ɵɵelementEnd()();
3099
- } if (rf & 2) {
3100
- i0.ɵɵadvance(1);
3101
- i0.ɵɵproperty("source", ctx.source)("column", ctx.column);
3102
- } }, dependencies: [TitleComponent], encapsulation: 2 });
3103
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ColumnTitleComponent, [{
3104
- type: Component,
3105
- args: [{
3106
- selector: 'ng2-st-column-title',
3107
- template: `
2588
+ ColumnTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2589
+ 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: `
2590
+ <div class="ng2-smart-title">
2591
+ <ng2-smart-table-title [source]="source" [column]="column" (sort)="sort.emit($event)"></ng2-smart-table-title>
2592
+ </div>
2593
+ `, isInline: true, dependencies: [{ kind: "component", type: TitleComponent, selector: "ng2-smart-table-title", inputs: ["column", "source"], outputs: ["sort"] }] });
2594
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ColumnTitleComponent, decorators: [{
2595
+ type: Component,
2596
+ args: [{
2597
+ selector: 'ng2-st-column-title',
2598
+ template: `
3108
2599
  <div class="ng2-smart-title">
3109
2600
  <ng2-smart-table-title [source]="source" [column]="column" (sort)="sort.emit($event)"></ng2-smart-table-title>
3110
2601
  </div>
3111
2602
  `,
3112
- }]
3113
- }], null, { column: [{
3114
- type: Input
3115
- }], source: [{
3116
- type: Input
3117
- }], sort: [{
3118
- type: Output
3119
- }] }); })();
3120
-
3121
- const _c0$1 = ["ng2-st-thead-titles-row", ""];
3122
- function TheadTitlesRowComponent_th_0_Template(rf, ctx) { if (rf & 1) {
3123
- const _r5 = i0.ɵɵgetCurrentView();
3124
- i0.ɵɵelementStart(0, "th", 3);
3125
- 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)); });
3126
- i0.ɵɵelementEnd();
3127
- } if (rf & 2) {
3128
- const ctx_r0 = i0.ɵɵnextContext();
3129
- i0.ɵɵproperty("grid", ctx_r0.grid)("source", ctx_r0.source);
3130
- } }
3131
- function TheadTitlesRowComponent_th_1_Template(rf, ctx) { if (rf & 1) {
3132
- i0.ɵɵelement(0, "th", 4);
3133
- } if (rf & 2) {
3134
- const ctx_r1 = i0.ɵɵnextContext();
3135
- i0.ɵɵproperty("grid", ctx_r1.grid);
3136
- } }
3137
- function TheadTitlesRowComponent_th_2_Template(rf, ctx) { if (rf & 1) {
3138
- const _r8 = i0.ɵɵgetCurrentView();
3139
- i0.ɵɵelementStart(0, "th", 5)(1, "ng2-st-column-title", 6);
3140
- 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)); });
3141
- i0.ɵɵelementEnd()();
3142
- } if (rf & 2) {
3143
- const column_r6 = ctx.$implicit;
3144
- const ctx_r2 = i0.ɵɵnextContext();
3145
- i0.ɵɵclassMapInterpolate1("ng2-smart-th ", column_r6.id, "");
3146
- i0.ɵɵstyleProp("width", column_r6.width);
3147
- i0.ɵɵproperty("ngClass", column_r6.class);
3148
- i0.ɵɵadvance(1);
3149
- i0.ɵɵproperty("source", ctx_r2.source)("column", column_r6);
3150
- } }
3151
- function TheadTitlesRowComponent_th_3_Template(rf, ctx) { if (rf & 1) {
3152
- i0.ɵɵelement(0, "th", 4);
3153
- } if (rf & 2) {
3154
- const ctx_r3 = i0.ɵɵnextContext();
3155
- i0.ɵɵproperty("grid", ctx_r3.grid);
3156
- } }
2603
+ }]
2604
+ }], propDecorators: { column: [{
2605
+ type: Input
2606
+ }], source: [{
2607
+ type: Input
2608
+ }], sort: [{
2609
+ type: Output
2610
+ }] } });
2611
+
3157
2612
  class TheadTitlesRowComponent {
3158
2613
  constructor() {
3159
2614
  this.sort = new EventEmitter();
@@ -3168,26 +2623,27 @@ class TheadTitlesRowComponent {
3168
2623
  return (columns || []).filter((column) => !column.hide);
3169
2624
  }
3170
2625
  }
3171
- TheadTitlesRowComponent.ɵfac = function TheadTitlesRowComponent_Factory(t) { return new (t || TheadTitlesRowComponent)(); };
3172
- TheadTitlesRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TheadTitlesRowComponent, selectors: [["", "ng2-st-thead-titles-row", ""]], inputs: { grid: "grid", source: "source" }, outputs: { sort: "sort", selectAllRows: "selectAllRows" }, features: [i0.ɵɵNgOnChangesFeature], attrs: _c0$1, decls: 4, vars: 4, consts: [["ng2-st-checkbox-select-all", "", 3, "grid", "source", "click", 4, "ngIf"], ["ng2-st-actions-title", "", 3, "grid", 4, "ngIf"], [3, "class", "ngClass", "width", 4, "ngFor", "ngForOf"], ["ng2-st-checkbox-select-all", "", 3, "grid", "source", "click"], ["ng2-st-actions-title", "", 3, "grid"], [3, "ngClass"], [3, "source", "column", "sort"]], template: function TheadTitlesRowComponent_Template(rf, ctx) { if (rf & 1) {
3173
- i0.ɵɵtemplate(0, TheadTitlesRowComponent_th_0_Template, 1, 2, "th", 0);
3174
- i0.ɵɵtemplate(1, TheadTitlesRowComponent_th_1_Template, 1, 1, "th", 1);
3175
- i0.ɵɵtemplate(2, TheadTitlesRowComponent_th_2_Template, 2, 8, "th", 2);
3176
- i0.ɵɵtemplate(3, TheadTitlesRowComponent_th_3_Template, 1, 1, "th", 1);
3177
- } if (rf & 2) {
3178
- i0.ɵɵproperty("ngIf", ctx.isMultiSelectVisible);
3179
- i0.ɵɵadvance(1);
3180
- i0.ɵɵproperty("ngIf", ctx.showActionColumnLeft);
3181
- i0.ɵɵadvance(1);
3182
- i0.ɵɵproperty("ngForOf", ctx.getVisibleColumns(ctx.grid.getColumns()));
3183
- i0.ɵɵadvance(1);
3184
- i0.ɵɵproperty("ngIf", ctx.showActionColumnRight);
3185
- } }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, ActionsTitleComponent, CheckboxSelectAllComponent, ColumnTitleComponent], encapsulation: 2 });
3186
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TheadTitlesRowComponent, [{
3187
- type: Component,
3188
- args: [{
3189
- selector: '[ng2-st-thead-titles-row]',
3190
- template: `
2626
+ TheadTitlesRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadTitlesRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2627
+ 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: `
2628
+ <th ng2-st-checkbox-select-all *ngIf="isMultiSelectVisible"
2629
+ [grid]="grid"
2630
+ [source]="source"
2631
+ (click)="selectAllRows.emit($event)">
2632
+ </th>
2633
+ <th ng2-st-actions-title *ngIf="showActionColumnLeft" [grid]="grid"></th>
2634
+ <th *ngFor="let column of getVisibleColumns(grid.getColumns())"
2635
+ class="ng2-smart-th {{ column.id }}"
2636
+ [ngClass]="column.class"
2637
+ [style.width]="column.width">
2638
+ <ng2-st-column-title [source]="source" [column]="column" (sort)="sort.emit($event)"></ng2-st-column-title>
2639
+ </th>
2640
+ <th ng2-st-actions-title *ngIf="showActionColumnRight" [grid]="grid"></th>
2641
+ `, 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"] }] });
2642
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TheadTitlesRowComponent, decorators: [{
2643
+ type: Component,
2644
+ args: [{
2645
+ selector: '[ng2-st-thead-titles-row]',
2646
+ template: `
3191
2647
  <th ng2-st-checkbox-select-all *ngIf="isMultiSelectVisible"
3192
2648
  [grid]="grid"
3193
2649
  [source]="source"
@@ -3202,42 +2658,17 @@ TheadTitlesRowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: The
3202
2658
  </th>
3203
2659
  <th ng2-st-actions-title *ngIf="showActionColumnRight" [grid]="grid"></th>
3204
2660
  `,
3205
- }]
3206
- }], null, { grid: [{
3207
- type: Input
3208
- }], source: [{
3209
- type: Input
3210
- }], sort: [{
3211
- type: Output
3212
- }], selectAllRows: [{
3213
- type: Output
3214
- }] }); })();
3215
-
3216
- const _c0 = ["ng2-st-thead", ""];
3217
- function Ng2SmartTableTheadComponent_tr_0_Template(rf, ctx) { if (rf & 1) {
3218
- const _r4 = i0.ɵɵgetCurrentView();
3219
- i0.ɵɵelementStart(0, "tr", 3);
3220
- 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)); });
3221
- i0.ɵɵelementEnd();
3222
- } if (rf & 2) {
3223
- const ctx_r0 = i0.ɵɵnextContext();
3224
- i0.ɵɵproperty("grid", ctx_r0.grid)("source", ctx_r0.source);
3225
- } }
3226
- function Ng2SmartTableTheadComponent_tr_1_Template(rf, ctx) { if (rf & 1) {
3227
- const _r7 = i0.ɵɵgetCurrentView();
3228
- i0.ɵɵelementStart(0, "tr", 4);
3229
- 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)); });
3230
- i0.ɵɵelementEnd();
3231
- } if (rf & 2) {
3232
- const ctx_r1 = i0.ɵɵnextContext();
3233
- i0.ɵɵproperty("grid", ctx_r1.grid)("source", ctx_r1.source);
3234
- } }
3235
- function Ng2SmartTableTheadComponent_tr_2_Template(rf, ctx) { if (rf & 1) {
3236
- i0.ɵɵelement(0, "tr", 5);
3237
- } if (rf & 2) {
3238
- const ctx_r2 = i0.ɵɵnextContext();
3239
- i0.ɵɵproperty("grid", ctx_r2.grid)("createConfirm", ctx_r2.createConfirm);
3240
- } }
2661
+ }]
2662
+ }], propDecorators: { grid: [{
2663
+ type: Input
2664
+ }], source: [{
2665
+ type: Input
2666
+ }], sort: [{
2667
+ type: Output
2668
+ }], selectAllRows: [{
2669
+ type: Output
2670
+ }] } });
2671
+
3241
2672
  class Ng2SmartTableTheadComponent {
3242
2673
  constructor() {
3243
2674
  this.sort = new EventEmitter();
@@ -3250,36 +2681,26 @@ class Ng2SmartTableTheadComponent {
3250
2681
  this.isHideSubHeader = this.grid.getSetting('hideSubHeader');
3251
2682
  }
3252
2683
  }
3253
- Ng2SmartTableTheadComponent.ɵfac = function Ng2SmartTableTheadComponent_Factory(t) { return new (t || Ng2SmartTableTheadComponent)(); };
3254
- Ng2SmartTableTheadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Ng2SmartTableTheadComponent, selectors: [["", "ng2-st-thead", ""]], inputs: { grid: "grid", source: "source", createConfirm: "createConfirm" }, outputs: { sort: "sort", selectAllRows: "selectAllRows", create: "create", filter: "filter" }, features: [i0.ɵɵNgOnChangesFeature], attrs: _c0, decls: 3, vars: 3, consts: [["ng2-st-thead-titles-row", "", "class", "ng2-smart-titles", 3, "grid", "source", "sort", "selectAllRows", 4, "ngIf"], ["ng2-st-thead-filters-row", "", "class", "ng2-smart-filters", 3, "grid", "source", "create", "filter", 4, "ngIf"], ["ng2-st-thead-form-row", "", 3, "grid", "createConfirm", 4, "ngIf"], ["ng2-st-thead-titles-row", "", 1, "ng2-smart-titles", 3, "grid", "source", "sort", "selectAllRows"], ["ng2-st-thead-filters-row", "", 1, "ng2-smart-filters", 3, "grid", "source", "create", "filter"], ["ng2-st-thead-form-row", "", 3, "grid", "createConfirm"]], template: function Ng2SmartTableTheadComponent_Template(rf, ctx) { if (rf & 1) {
3255
- i0.ɵɵtemplate(0, Ng2SmartTableTheadComponent_tr_0_Template, 1, 2, "tr", 0);
3256
- i0.ɵɵtemplate(1, Ng2SmartTableTheadComponent_tr_1_Template, 1, 2, "tr", 1);
3257
- i0.ɵɵtemplate(2, Ng2SmartTableTheadComponent_tr_2_Template, 1, 2, "tr", 2);
3258
- } if (rf & 2) {
3259
- i0.ɵɵproperty("ngIf", !ctx.isHideHeader);
3260
- i0.ɵɵadvance(1);
3261
- i0.ɵɵproperty("ngIf", !ctx.isHideSubHeader);
3262
- i0.ɵɵadvance(1);
3263
- i0.ɵɵproperty("ngIf", ctx.grid.createFormShown);
3264
- } }, dependencies: [i1.NgIf, TheadFitlersRowComponent, TheadFormRowComponent, TheadTitlesRowComponent], encapsulation: 2 });
3265
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Ng2SmartTableTheadComponent, [{
3266
- type: Component,
3267
- 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" }]
3268
- }], null, { grid: [{
3269
- type: Input
3270
- }], source: [{
3271
- type: Input
3272
- }], createConfirm: [{
3273
- type: Input
3274
- }], sort: [{
3275
- type: Output
3276
- }], selectAllRows: [{
3277
- type: Output
3278
- }], create: [{
3279
- type: Output
3280
- }], filter: [{
3281
- type: Output
3282
- }] }); })();
2684
+ Ng2SmartTableTheadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableTheadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2685
+ 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"] }] });
2686
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableTheadComponent, decorators: [{
2687
+ type: Component,
2688
+ 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" }]
2689
+ }], propDecorators: { grid: [{
2690
+ type: Input
2691
+ }], source: [{
2692
+ type: Input
2693
+ }], createConfirm: [{
2694
+ type: Input
2695
+ }], sort: [{
2696
+ type: Output
2697
+ }], selectAllRows: [{
2698
+ type: Output
2699
+ }], create: [{
2700
+ type: Output
2701
+ }], filter: [{
2702
+ type: Output
2703
+ }] } });
3283
2704
 
3284
2705
  const THEAD_COMPONENTS = [
3285
2706
  ActionsComponent,
@@ -3295,30 +2716,8 @@ const THEAD_COMPONENTS = [
3295
2716
  ];
3296
2717
  class THeadModule {
3297
2718
  }
3298
- THeadModule.ɵfac = function THeadModule_Factory(t) { return new (t || THeadModule)(); };
3299
- THeadModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: THeadModule });
3300
- THeadModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
3301
- FormsModule,
3302
- FilterModule,
3303
- CellModule] });
3304
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(THeadModule, [{
3305
- type: NgModule,
3306
- args: [{
3307
- imports: [
3308
- CommonModule,
3309
- FormsModule,
3310
- FilterModule,
3311
- CellModule,
3312
- ],
3313
- declarations: [
3314
- ...THEAD_COMPONENTS,
3315
- ],
3316
- exports: [
3317
- ...THEAD_COMPONENTS,
3318
- ],
3319
- }]
3320
- }], null, null); })();
3321
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(THeadModule, { declarations: [ActionsComponent,
2719
+ THeadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2720
+ THeadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, declarations: [ActionsComponent,
3322
2721
  ActionsTitleComponent,
3323
2722
  AddButtonComponent,
3324
2723
  CheckboxSelectAllComponent,
@@ -3339,7 +2738,28 @@ THeadModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule
3339
2738
  TheadFitlersRowComponent,
3340
2739
  TheadFormRowComponent,
3341
2740
  TheadTitlesRowComponent,
3342
- Ng2SmartTableTheadComponent] }); })();
2741
+ Ng2SmartTableTheadComponent] });
2742
+ THeadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, imports: [CommonModule,
2743
+ FormsModule,
2744
+ FilterModule,
2745
+ CellModule] });
2746
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: THeadModule, decorators: [{
2747
+ type: NgModule,
2748
+ args: [{
2749
+ imports: [
2750
+ CommonModule,
2751
+ FormsModule,
2752
+ FilterModule,
2753
+ CellModule,
2754
+ ],
2755
+ declarations: [
2756
+ ...THEAD_COMPONENTS,
2757
+ ],
2758
+ exports: [
2759
+ ...THEAD_COMPONENTS,
2760
+ ],
2761
+ }]
2762
+ }] });
3343
2763
 
3344
2764
  function compareValues(direction, a, b) {
3345
2765
  if (a < b) {
@@ -3389,7 +2809,10 @@ class LocalDataSource extends DataSource {
3389
2809
  filters: [],
3390
2810
  andOperator: true,
3391
2811
  };
3392
- this.pagingConf = {};
2812
+ this.pagingConf = {
2813
+ page: 1,
2814
+ perPage: 1,
2815
+ };
3393
2816
  this.data = data;
3394
2817
  }
3395
2818
  load(data) {
@@ -3449,7 +2872,7 @@ class LocalDataSource extends DataSource {
3449
2872
  andOperator: true,
3450
2873
  };
3451
2874
  this.sortConf = [];
3452
- this.pagingConf['page'] = 1;
2875
+ this.pagingConf.page = 1;
3453
2876
  }
3454
2877
  else {
3455
2878
  this.setFilter([], true, false);
@@ -3477,7 +2900,7 @@ class LocalDataSource extends DataSource {
3477
2900
  setSort(conf, doEmit = true) {
3478
2901
  if (conf !== null) {
3479
2902
  conf.forEach((fieldConf) => {
3480
- if (!fieldConf['field'] || typeof fieldConf['direction'] === 'undefined') {
2903
+ if (!fieldConf.field || typeof fieldConf.direction === 'undefined') {
3481
2904
  throw new Error('Sort configuration object is not valid');
3482
2905
  }
3483
2906
  });
@@ -3510,17 +2933,17 @@ class LocalDataSource extends DataSource {
3510
2933
  };
3511
2934
  }
3512
2935
  this.filterConf.andOperator = andOperator;
3513
- this.pagingConf['page'] = 1;
2936
+ this.pagingConf.page = 1;
3514
2937
  super.setFilter(conf, andOperator, doEmit);
3515
2938
  return this;
3516
2939
  }
3517
2940
  addFilter(fieldConf, andOperator = true, doEmit = true) {
3518
- if (!fieldConf['field'] || typeof fieldConf['search'] === 'undefined') {
2941
+ if (!fieldConf.field || typeof fieldConf.search === 'undefined') {
3519
2942
  throw new Error('Filter configuration object is not valid');
3520
2943
  }
3521
2944
  let found = false;
3522
2945
  this.filterConf.filters.forEach((currentFieldConf, index) => {
3523
- if (currentFieldConf['field'] === fieldConf['field']) {
2946
+ if (currentFieldConf.field === fieldConf.field) {
3524
2947
  this.filterConf.filters[index] = fieldConf;
3525
2948
  found = true;
3526
2949
  }
@@ -3533,13 +2956,13 @@ class LocalDataSource extends DataSource {
3533
2956
  return this;
3534
2957
  }
3535
2958
  setPaging(page, perPage, doEmit = true) {
3536
- this.pagingConf['page'] = page;
3537
- this.pagingConf['perPage'] = perPage;
2959
+ this.pagingConf.page = page;
2960
+ this.pagingConf.perPage = perPage;
3538
2961
  super.setPaging(page, perPage, doEmit);
3539
2962
  return this;
3540
2963
  }
3541
2964
  setPage(page, doEmit = true) {
3542
- this.pagingConf['page'] = page;
2965
+ this.pagingConf.page = page;
3543
2966
  super.setPage(page, doEmit);
3544
2967
  return this;
3545
2968
  }
@@ -3562,7 +2985,7 @@ class LocalDataSource extends DataSource {
3562
2985
  if (this.sortConf) {
3563
2986
  this.sortConf.forEach((fieldConf) => {
3564
2987
  data = LocalSorter
3565
- .sort(data, fieldConf['field'], fieldConf['direction'], fieldConf['compare']);
2988
+ .sort(data, fieldConf.field, fieldConf.direction, fieldConf.compare);
3566
2989
  });
3567
2990
  }
3568
2991
  return data;
@@ -3572,18 +2995,18 @@ class LocalDataSource extends DataSource {
3572
2995
  if (this.filterConf.filters) {
3573
2996
  if (this.filterConf.andOperator) {
3574
2997
  this.filterConf.filters.forEach((fieldConf) => {
3575
- if (fieldConf['search']?.length > 0) {
2998
+ if (fieldConf.search?.length > 0) {
3576
2999
  data = LocalFilter
3577
- .filter(data, fieldConf['field'], fieldConf['search'], fieldConf['filter']);
3000
+ .filter(data, fieldConf.field, fieldConf.search, fieldConf.filter);
3578
3001
  }
3579
3002
  });
3580
3003
  }
3581
3004
  else {
3582
3005
  let mergedData = [];
3583
3006
  this.filterConf.filters.forEach((fieldConf) => {
3584
- if (fieldConf['search']?.length > 0) {
3007
+ if (fieldConf.search?.length > 0) {
3585
3008
  mergedData = mergedData.concat(LocalFilter
3586
- .filter(data, fieldConf['field'], fieldConf['search'], fieldConf['filter']));
3009
+ .filter(data, fieldConf.field, fieldConf.search, fieldConf.filter));
3587
3010
  }
3588
3011
  });
3589
3012
  // remove non unique items
@@ -3595,28 +3018,13 @@ class LocalDataSource extends DataSource {
3595
3018
  return data;
3596
3019
  }
3597
3020
  paginate(data) {
3598
- if (this.pagingConf && this.pagingConf['page'] && this.pagingConf['perPage']) {
3599
- data = LocalPager.paginate(data, this.pagingConf['page'], this.pagingConf['perPage']);
3021
+ if (this.pagingConf && this.pagingConf.page && this.pagingConf.perPage) {
3022
+ data = LocalPager.paginate(data, this.pagingConf.page, this.pagingConf.perPage);
3600
3023
  }
3601
3024
  return data;
3602
3025
  }
3603
3026
  }
3604
3027
 
3605
- function Ng2SmartTableComponent_thead_1_Template(rf, ctx) { if (rf & 1) {
3606
- const _r3 = i0.ɵɵgetCurrentView();
3607
- i0.ɵɵelementStart(0, "thead", 4);
3608
- 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()); });
3609
- i0.ɵɵelementEnd();
3610
- } if (rf & 2) {
3611
- const ctx_r0 = i0.ɵɵnextContext();
3612
- i0.ɵɵproperty("grid", ctx_r0.grid)("source", ctx_r0.source)("createConfirm", ctx_r0.createConfirm);
3613
- } }
3614
- function Ng2SmartTableComponent_ng2_smart_table_pager_3_Template(rf, ctx) { if (rf & 1) {
3615
- i0.ɵɵelement(0, "ng2-smart-table-pager", 5);
3616
- } if (rf & 2) {
3617
- const ctx_r1 = i0.ɵɵnextContext();
3618
- i0.ɵɵproperty("source", ctx_r1.source)("perPageSelect", ctx_r1.perPageSelect);
3619
- } }
3620
3028
  class Ng2SmartTableComponent {
3621
3029
  constructor() {
3622
3030
  this.multiRowSelect = new EventEmitter();
@@ -3707,9 +3115,6 @@ class Ng2SmartTableComponent {
3707
3115
  this.perPageSelect = this.grid.getSetting('pager.perPageSelect');
3708
3116
  this.rowClassFunction = this.grid.getSetting('rowClassFunction');
3709
3117
  }
3710
- onRowHover(row) {
3711
- this.rowHover.emit(row);
3712
- }
3713
3118
  multipleSelectRow(row) {
3714
3119
  this.grid.multipleSelectRow(row);
3715
3120
  this.emitUserSelectRow(row);
@@ -3750,95 +3155,79 @@ class Ng2SmartTableComponent {
3750
3155
  });
3751
3156
  }
3752
3157
  }
3753
- Ng2SmartTableComponent.ɵfac = function Ng2SmartTableComponent_Factory(t) { return new (t || Ng2SmartTableComponent)(); };
3754
- Ng2SmartTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Ng2SmartTableComponent, selectors: [["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" }, features: [i0.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [[3, "id", "ngClass"], ["ng2-st-thead", "", 3, "grid", "source", "createConfirm", "create", "selectAllRows", 4, "ngIf"], ["ng2-st-tbody", "", 3, "grid", "source", "deleteConfirm", "editConfirm", "rowClassFunction", "edit", "editCancel", "delete", "custom", "userClickedRow", "multipleSelectRow", "rowHover"], [3, "source", "perPageSelect", 4, "ngIf"], ["ng2-st-thead", "", 3, "grid", "source", "createConfirm", "create", "selectAllRows"], [3, "source", "perPageSelect"]], template: function Ng2SmartTableComponent_Template(rf, ctx) { if (rf & 1) {
3755
- i0.ɵɵelementStart(0, "table", 0);
3756
- i0.ɵɵtemplate(1, Ng2SmartTableComponent_thead_1_Template, 1, 3, "thead", 1);
3757
- i0.ɵɵelementStart(2, "tbody", 2);
3758
- 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); });
3759
- i0.ɵɵelementEnd()();
3760
- i0.ɵɵtemplate(3, Ng2SmartTableComponent_ng2_smart_table_pager_3_Template, 1, 2, "ng2-smart-table-pager", 3);
3761
- } if (rf & 2) {
3762
- i0.ɵɵproperty("id", ctx.tableId)("ngClass", ctx.tableClass);
3763
- i0.ɵɵadvance(1);
3764
- i0.ɵɵproperty("ngIf", !ctx.isHideHeader || !ctx.isHideSubHeader);
3765
- i0.ɵɵadvance(1);
3766
- i0.ɵɵproperty("grid", ctx.grid)("source", ctx.source)("deleteConfirm", ctx.deleteConfirm)("editConfirm", ctx.editConfirm)("rowClassFunction", ctx.rowClassFunction);
3767
- i0.ɵɵadvance(1);
3768
- i0.ɵɵproperty("ngIf", ctx.isPagerDisplay);
3769
- } }, 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}"] });
3770
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Ng2SmartTableComponent, [{
3771
- type: Component,
3772
- 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 (rowHover)=\"onRowHover($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"] }]
3773
- }], null, { source: [{
3774
- type: Input
3775
- }], settings: [{
3776
- type: Input
3777
- }], multiRowSelect: [{
3778
- type: Output
3779
- }], rowClicked: [{
3780
- type: Output
3781
- }], delete: [{
3782
- type: Output
3783
- }], edit: [{
3784
- type: Output
3785
- }], editCancel: [{
3786
- type: Output
3787
- }], create: [{
3788
- type: Output
3789
- }], custom: [{
3790
- type: Output
3791
- }], deleteConfirm: [{
3792
- type: Output
3793
- }], editConfirm: [{
3794
- type: Output
3795
- }], createConfirm: [{
3796
- type: Output
3797
- }], rowHover: [{
3798
- type: Output
3799
- }] }); })();
3158
+ Ng2SmartTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3159
+ 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"] }] });
3160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableComponent, decorators: [{
3161
+ type: Component,
3162
+ 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"] }]
3163
+ }], propDecorators: { source: [{
3164
+ type: Input
3165
+ }], settings: [{
3166
+ type: Input
3167
+ }], multiRowSelect: [{
3168
+ type: Output
3169
+ }], rowClicked: [{
3170
+ type: Output
3171
+ }], delete: [{
3172
+ type: Output
3173
+ }], edit: [{
3174
+ type: Output
3175
+ }], editCancel: [{
3176
+ type: Output
3177
+ }], create: [{
3178
+ type: Output
3179
+ }], custom: [{
3180
+ type: Output
3181
+ }], deleteConfirm: [{
3182
+ type: Output
3183
+ }], editConfirm: [{
3184
+ type: Output
3185
+ }], createConfirm: [{
3186
+ type: Output
3187
+ }], rowHover: [{
3188
+ type: Output
3189
+ }] } });
3800
3190
 
3801
3191
  class Ng2SmartTableModule {
3802
3192
  }
3803
- Ng2SmartTableModule.ɵfac = function Ng2SmartTableModule_Factory(t) { return new (t || Ng2SmartTableModule)(); };
3804
- Ng2SmartTableModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: Ng2SmartTableModule });
3805
- Ng2SmartTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
3193
+ Ng2SmartTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3194
+ Ng2SmartTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, declarations: [Ng2SmartTableComponent], imports: [CommonModule,
3806
3195
  FormsModule,
3807
3196
  ReactiveFormsModule,
3808
3197
  CellModule,
3809
3198
  FilterModule,
3810
3199
  PagerModule,
3811
3200
  TBodyModule,
3812
- THeadModule] });
3813
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Ng2SmartTableModule, [{
3814
- type: NgModule,
3815
- args: [{
3816
- imports: [
3817
- CommonModule,
3818
- FormsModule,
3819
- ReactiveFormsModule,
3820
- CellModule,
3821
- FilterModule,
3822
- PagerModule,
3823
- TBodyModule,
3824
- THeadModule,
3825
- ],
3826
- declarations: [
3827
- Ng2SmartTableComponent,
3828
- ],
3829
- exports: [
3830
- Ng2SmartTableComponent,
3831
- ],
3832
- }]
3833
- }], null, null); })();
3834
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(Ng2SmartTableModule, { declarations: [Ng2SmartTableComponent], imports: [CommonModule,
3201
+ THeadModule], exports: [Ng2SmartTableComponent] });
3202
+ Ng2SmartTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, imports: [CommonModule,
3835
3203
  FormsModule,
3836
3204
  ReactiveFormsModule,
3837
3205
  CellModule,
3838
3206
  FilterModule,
3839
3207
  PagerModule,
3840
3208
  TBodyModule,
3841
- THeadModule], exports: [Ng2SmartTableComponent] }); })();
3209
+ THeadModule] });
3210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: Ng2SmartTableModule, decorators: [{
3211
+ type: NgModule,
3212
+ args: [{
3213
+ imports: [
3214
+ CommonModule,
3215
+ FormsModule,
3216
+ ReactiveFormsModule,
3217
+ CellModule,
3218
+ FilterModule,
3219
+ PagerModule,
3220
+ TBodyModule,
3221
+ THeadModule,
3222
+ ],
3223
+ declarations: [
3224
+ Ng2SmartTableComponent,
3225
+ ],
3226
+ exports: [
3227
+ Ng2SmartTableComponent,
3228
+ ],
3229
+ }]
3230
+ }] });
3842
3231
 
3843
3232
  class ServerSourceConf {
3844
3233
  constructor({ endPoint = '', sortFieldKey = '', sortDirKey = '', pagerPageKey = '', pagerLimitKey = '', filterFieldKey = '', totalKey = '', dataKey = '' } = {}) {