@den4ik92/ng2-smart-table 19.6.4 → 19.6.42
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.
|
@@ -905,7 +905,7 @@ class InputEditorComponent extends BaseEditorComponent {
|
|
|
905
905
|
type="text"
|
|
906
906
|
[class]="inputClass()"
|
|
907
907
|
class="form-control"
|
|
908
|
-
[ngModel]="cell().
|
|
908
|
+
[ngModel]="cell().getValue()"
|
|
909
909
|
(ngModelChange)="cell().setNewValue($event)"
|
|
910
910
|
[name]="cell().id"
|
|
911
911
|
[placeholder]="cell().title"
|
|
@@ -919,7 +919,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
919
919
|
type="text"
|
|
920
920
|
[class]="inputClass()"
|
|
921
921
|
class="form-control"
|
|
922
|
-
[ngModel]="cell().
|
|
922
|
+
[ngModel]="cell().getValue()"
|
|
923
923
|
(ngModelChange)="cell().setNewValue($event)"
|
|
924
924
|
[name]="cell().id"
|
|
925
925
|
[placeholder]="cell().title"
|
|
@@ -933,7 +933,7 @@ class SelectEditorComponent extends BaseEditorComponent {
|
|
|
933
933
|
<select
|
|
934
934
|
[class]="inputClass()"
|
|
935
935
|
class="form-control"
|
|
936
|
-
[ngModel]="cell().
|
|
936
|
+
[ngModel]="cell().getValue()"
|
|
937
937
|
(ngModelChange)="cell().setNewValue($event)"
|
|
938
938
|
[name]="cell().id"
|
|
939
939
|
[disabled]="!cell().isEditable()">
|
|
@@ -953,7 +953,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
953
953
|
<select
|
|
954
954
|
[class]="inputClass()"
|
|
955
955
|
class="form-control"
|
|
956
|
-
[ngModel]="cell().
|
|
956
|
+
[ngModel]="cell().getValue()"
|
|
957
957
|
(ngModelChange)="cell().setNewValue($event)"
|
|
958
958
|
[name]="cell().id"
|
|
959
959
|
[disabled]="!cell().isEditable()">
|
|
@@ -975,7 +975,7 @@ class TextareaEditorComponent extends BaseEditorComponent {
|
|
|
975
975
|
<textarea
|
|
976
976
|
[class]="inputClass()"
|
|
977
977
|
class="form-control"
|
|
978
|
-
[ngModel]="cell().
|
|
978
|
+
[ngModel]="cell().getValue()"
|
|
979
979
|
(ngModelChange)="cell().setNewValue($event)"
|
|
980
980
|
[name]="cell().id"
|
|
981
981
|
[disabled]="!cell().isEditable()"
|
|
@@ -989,7 +989,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
989
989
|
<textarea
|
|
990
990
|
[class]="inputClass()"
|
|
991
991
|
class="form-control"
|
|
992
|
-
[ngModel]="cell().
|
|
992
|
+
[ngModel]="cell().getValue()"
|
|
993
993
|
(ngModelChange)="cell().setNewValue($event)"
|
|
994
994
|
[name]="cell().id"
|
|
995
995
|
[disabled]="!cell().isEditable()"
|
|
@@ -2612,12 +2612,17 @@ class Ng2SmartTableComponent {
|
|
|
2612
2612
|
ngAfterViewInit() {
|
|
2613
2613
|
this.setupResizeObserver();
|
|
2614
2614
|
if (this.isPagerDisplay() && this.paginationSlot()) {
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2615
|
+
try {
|
|
2616
|
+
this.paginationComponentRef = this.paginationSlot().createComponent(PagerComponent, {
|
|
2617
|
+
injector: this.injector,
|
|
2618
|
+
});
|
|
2619
|
+
this.paginationComponentRef.setInput('source', this.source());
|
|
2620
|
+
if (this.paginationTemplateData()) {
|
|
2621
|
+
this.paginationComponentRef.setInput('content', this.paginationTemplateData());
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
catch {
|
|
2625
|
+
//do nothing
|
|
2621
2626
|
}
|
|
2622
2627
|
}
|
|
2623
2628
|
}
|
|
@@ -2625,7 +2630,7 @@ class Ng2SmartTableComponent {
|
|
|
2625
2630
|
this.grid.detach();
|
|
2626
2631
|
this.destroyResizeObserver();
|
|
2627
2632
|
if (this.paginationComponentRef) {
|
|
2628
|
-
this.paginationComponentRef
|
|
2633
|
+
this.paginationComponentRef?.destroy();
|
|
2629
2634
|
this.paginationComponentRef = null;
|
|
2630
2635
|
this.paginationSlot()?.detach();
|
|
2631
2636
|
}
|
|
@@ -2720,7 +2725,7 @@ class Ng2SmartTableComponent {
|
|
|
2720
2725
|
});
|
|
2721
2726
|
}, 20);
|
|
2722
2727
|
});
|
|
2723
|
-
const hostElement = this.elementRef
|
|
2728
|
+
const hostElement = this.elementRef?.nativeElement;
|
|
2724
2729
|
if (hostElement) {
|
|
2725
2730
|
this.resizeObserver.observe(hostElement);
|
|
2726
2731
|
}
|