@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.
- package/esm2020/lib/components/cell/cell-edit-mode/custom-edit.component.mjs +15 -22
- package/esm2020/lib/components/cell/cell-edit-mode/default-edit.component.mjs +7 -67
- package/esm2020/lib/components/cell/cell-edit-mode/edit-cell-default.mjs +15 -15
- package/esm2020/lib/components/cell/cell-edit-mode/edit-cell.component.mjs +29 -43
- package/esm2020/lib/components/cell/cell-editors/checkbox-editor.component.mjs +16 -14
- package/esm2020/lib/components/cell/cell-editors/completer-editor.component.mjs +18 -10
- package/esm2020/lib/components/cell/cell-editors/default-editor.mjs +19 -19
- package/esm2020/lib/components/cell/cell-editors/input-editor.component.mjs +17 -13
- package/esm2020/lib/components/cell/cell-editors/select-editor.component.mjs +24 -31
- package/esm2020/lib/components/cell/cell-editors/textarea-editor.component.mjs +18 -14
- package/esm2020/lib/components/cell/cell-view-mode/custom-view.component.mjs +17 -24
- package/esm2020/lib/components/cell/cell-view-mode/view-cell.component.mjs +19 -46
- package/esm2020/lib/components/cell/cell.component.mjs +36 -52
- package/esm2020/lib/components/cell/cell.module.mjs +21 -22
- package/esm2020/lib/components/filter/custom-filter.component.mjs +15 -24
- package/esm2020/lib/components/filter/default-filter.component.mjs +39 -63
- package/esm2020/lib/components/filter/filter-default.mjs +17 -17
- package/esm2020/lib/components/filter/filter-types/checkbox-filter.component.mjs +14 -29
- package/esm2020/lib/components/filter/filter-types/completer-filter.component.mjs +19 -10
- package/esm2020/lib/components/filter/filter-types/default-filter.mjs +17 -17
- package/esm2020/lib/components/filter/filter-types/input-filter.component.mjs +17 -15
- package/esm2020/lib/components/filter/filter-types/select-filter.component.mjs +24 -43
- package/esm2020/lib/components/filter/filter.component.mjs +24 -40
- package/esm2020/lib/components/filter/filter.module.mjs +23 -24
- package/esm2020/lib/components/pager/pager.component.mjs +66 -132
- package/esm2020/lib/components/pager/pager.module.mjs +20 -21
- package/esm2020/lib/components/tbody/cells/create-cancel.component.mjs +23 -29
- package/esm2020/lib/components/tbody/cells/custom.component.mjs +24 -32
- package/esm2020/lib/components/tbody/cells/edit-delete.component.mjs +32 -52
- package/esm2020/lib/components/tbody/tbody.component.mjs +43 -167
- package/esm2020/lib/components/tbody/tbody.module.mjs +23 -24
- package/esm2020/lib/components/thead/cells/actions-title.component.mjs +14 -20
- package/esm2020/lib/components/thead/cells/actions.component.mjs +21 -25
- package/esm2020/lib/components/thead/cells/add-button.component.mjs +19 -30
- package/esm2020/lib/components/thead/cells/checkbox-select-all.component.mjs +16 -19
- package/esm2020/lib/components/thead/cells/column-title.component.mjs +20 -23
- package/esm2020/lib/components/thead/cells/title/title.component.mjs +21 -41
- package/esm2020/lib/components/thead/rows/thead-filters-row.component.mjs +36 -65
- package/esm2020/lib/components/thead/rows/thead-form-row.component.mjs +37 -66
- package/esm2020/lib/components/thead/rows/thead-titles-row.component.mjs +32 -67
- package/esm2020/lib/components/thead/thead.component.mjs +21 -56
- package/esm2020/lib/components/thead/thead.module.mjs +25 -26
- package/esm2020/lib/lib/data-source/data-source.mjs +22 -21
- package/esm2020/lib/lib/data-source/local/local.data-source.mjs +20 -17
- package/esm2020/lib/lib/data-source/local/local.filter.mjs +1 -1
- package/esm2020/lib/lib/interfaces/smart-table.models.mjs +16 -2
- package/esm2020/lib/ng2-smart-table.component.mjs +33 -66
- package/esm2020/lib/ng2-smart-table.module.mjs +27 -28
- package/fesm2015/den4ik92-ng2-smart-table.mjs +651 -1642
- package/fesm2015/den4ik92-ng2-smart-table.mjs.map +1 -1
- package/fesm2020/den4ik92-ng2-smart-table.mjs +1065 -1676
- package/fesm2020/den4ik92-ng2-smart-table.mjs.map +1 -1
- package/lib/components/tbody/tbody.component.d.ts +2 -2
- package/lib/lib/data-source/data-source.d.ts +20 -19
- package/lib/lib/data-source/local/local.data-source.d.ts +29 -28
- package/lib/lib/data-source/local/local.filter.d.ts +1 -1
- package/lib/lib/interfaces/smart-table.models.d.ts +40 -3
- package/lib/ng2-smart-table.component.d.ts +1 -2
- package/package.json +1 -1
|
@@ -583,23 +583,21 @@ class EditCellDefault {
|
|
|
583
583
|
event.stopPropagation();
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
EditCellDefault.ɵfac =
|
|
587
|
-
EditCellDefault.ɵcmp =
|
|
588
|
-
(
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
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 =
|
|
627
|
-
CustomEditComponent.ɵcmp =
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
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
|
-
|
|
644
|
-
|
|
645
|
-
|
|
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 =
|
|
656
|
-
DefaultEditor.ɵcmp =
|
|
657
|
-
(
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
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 =
|
|
685
|
-
CheckboxEditorComponent.ɵcmp =
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
(
|
|
694
|
-
|
|
695
|
-
|
|
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
|
-
|
|
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 =
|
|
725
|
-
CompleterEditorComponent.ɵcmp =
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
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
|
-
|
|
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 =
|
|
748
|
-
InputEditorComponent.ɵcmp =
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
(
|
|
756
|
-
|
|
757
|
-
|
|
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
|
-
|
|
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 =
|
|
787
|
-
SelectEditorComponent.ɵcmp =
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
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
|
-
|
|
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 =
|
|
826
|
-
TextareaEditorComponent.ɵcmp =
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
(
|
|
835
|
-
|
|
836
|
-
|
|
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
|
-
|
|
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 =
|
|
901
|
-
DefaultEditComponent.ɵcmp =
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
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 =
|
|
957
|
-
EditCellComponent.ɵcmp =
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
(
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
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
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
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 =
|
|
1031
|
-
CustomViewComponent.ɵcmp =
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
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
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
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 =
|
|
1078
|
-
ViewCellComponent.ɵcmp =
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
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
|
-
|
|
1105
|
-
|
|
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 =
|
|
1140
|
-
CellComponent.ɵcmp =
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
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
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
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 =
|
|
1200
|
-
CellModule.ɵmod =
|
|
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(
|
|
1148
|
+
this.emitOnChanged(SmartTableOnChangedEventName.refresh);
|
|
1254
1149
|
}
|
|
1255
1150
|
load(data) {
|
|
1256
|
-
this.emitOnChanged(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
1294
|
-
return Promise.resolve();
|
|
1188
|
+
this.emitOnChanged(SmartTableOnChangedEventName.update);
|
|
1189
|
+
return Promise.resolve(true);
|
|
1295
1190
|
}
|
|
1296
1191
|
empty() {
|
|
1297
|
-
this.emitOnChanged(
|
|
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(
|
|
1197
|
+
this.emitOnChanged(SmartTableOnChangedEventName.sort);
|
|
1303
1198
|
}
|
|
1304
1199
|
}
|
|
1305
1200
|
setFilter(conf, andOperator, doEmit) {
|
|
1306
1201
|
if (doEmit) {
|
|
1307
|
-
this.emitOnChanged(
|
|
1202
|
+
this.emitOnChanged(SmartTableOnChangedEventName.filter);
|
|
1308
1203
|
}
|
|
1309
1204
|
}
|
|
1310
1205
|
addFilter(fieldConf, andOperator, doEmit) {
|
|
1311
1206
|
if (doEmit) {
|
|
1312
|
-
this.emitOnChanged(
|
|
1207
|
+
this.emitOnChanged(SmartTableOnChangedEventName.filter);
|
|
1313
1208
|
}
|
|
1314
1209
|
}
|
|
1315
1210
|
setPaging(page, perPage, doEmit) {
|
|
1316
1211
|
if (doEmit) {
|
|
1317
|
-
this.emitOnChanged(
|
|
1212
|
+
this.emitOnChanged(SmartTableOnChangedEventName.paging);
|
|
1318
1213
|
}
|
|
1319
1214
|
}
|
|
1320
1215
|
setPage(page, doEmit) {
|
|
1321
1216
|
if (doEmit) {
|
|
1322
|
-
this.emitOnChanged(
|
|
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 =
|
|
1360
|
-
FilterDefault.ɵcmp =
|
|
1361
|
-
(
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
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 =
|
|
1391
|
-
DefaultFilter.ɵcmp =
|
|
1392
|
-
(
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
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 =
|
|
1445
|
-
CheckboxFilterComponent.ɵcmp =
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
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
|
-
|
|
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 =
|
|
1495
|
-
CompleterFilterComponent.ɵcmp =
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
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
|
-
|
|
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 =
|
|
1536
|
-
InputFilterComponent.ɵcmp =
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
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
|
-
|
|
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 =
|
|
1579
|
-
SelectFilterComponent.ɵcmp =
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
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
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
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 =
|
|
1660
|
-
DefaultFilterComponent.ɵcmp =
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
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
|
-
|
|
1710
|
-
|
|
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 =
|
|
1742
|
-
CustomFilterComponent.ɵcmp =
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
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 =
|
|
1821
|
-
FilterComponent.ɵcmp =
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
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
|
-
|
|
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 =
|
|
1862
|
-
FilterModule.ɵmod =
|
|
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
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
}
|
|
1920
|
-
|
|
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 =
|
|
2109
|
-
PagerComponent.ɵcmp =
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
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">«</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"><</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">></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">»</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
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
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 =
|
|
2184
|
-
PagerModule.ɵmod =
|
|
2185
|
-
|
|
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
|
-
(
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
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 =
|
|
2223
|
-
TbodyCreateCancelComponent.ɵcmp =
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
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
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
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 =
|
|
2313
|
-
TbodyEditDeleteComponent.ɵcmp =
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
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
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
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 =
|
|
2375
|
-
TbodyCustomComponent.ɵcmp =
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
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
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
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 =
|
|
2554
|
-
Ng2SmartTableTbodyComponent.ɵcmp =
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
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 =
|
|
2610
|
-
TBodyModule.ɵmod =
|
|
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
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
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 =
|
|
2676
|
-
AddButtonComponent.ɵcmp =
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
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
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
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 =
|
|
2748
|
-
TheadFitlersRowComponent.ɵcmp =
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
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
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
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 =
|
|
2806
|
-
ActionsComponent.ɵcmp =
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
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
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
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 =
|
|
2891
|
-
TheadFormRowComponent.ɵcmp =
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
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
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
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 =
|
|
2951
|
-
ActionsTitleComponent.ɵcmp =
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
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
|
-
|
|
2968
|
-
|
|
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 =
|
|
2975
|
-
CheckboxSelectAllComponent.ɵcmp =
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
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
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
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 =
|
|
3062
|
-
TitleComponent.ɵcmp =
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
(
|
|
3071
|
-
|
|
3072
|
-
|
|
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
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
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 =
|
|
3095
|
-
ColumnTitleComponent.ɵcmp =
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
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
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
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 =
|
|
3172
|
-
TheadTitlesRowComponent.ɵcmp =
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
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
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
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 =
|
|
3254
|
-
Ng2SmartTableTheadComponent.ɵcmp =
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
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 =
|
|
3299
|
-
THeadModule.ɵmod =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3537
|
-
this.pagingConf
|
|
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
|
|
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
|
|
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
|
|
2998
|
+
if (fieldConf.search?.length > 0) {
|
|
3576
2999
|
data = LocalFilter
|
|
3577
|
-
.filter(data, fieldConf
|
|
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
|
|
3007
|
+
if (fieldConf.search?.length > 0) {
|
|
3585
3008
|
mergedData = mergedData.concat(LocalFilter
|
|
3586
|
-
.filter(data, fieldConf
|
|
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
|
|
3599
|
-
data = LocalPager.paginate(data, this.pagingConf
|
|
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 =
|
|
3754
|
-
Ng2SmartTableComponent.ɵcmp =
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
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 =
|
|
3804
|
-
Ng2SmartTableModule.ɵmod =
|
|
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
|
-
|
|
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]
|
|
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 = '' } = {}) {
|