@smartbit4all/ng-client 5.0.9 → 5.0.11
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.
|
@@ -7430,6 +7430,16 @@ class Table {
|
|
|
7430
7430
|
this.onSelectionChanged = new Subject();
|
|
7431
7431
|
this.asyncTranslationResult = (translator, param) => translator(param);
|
|
7432
7432
|
this.ACTION_SEPERATOR = '_actionSeparator_';
|
|
7433
|
+
const origRenderRows = this.myTableChild.renderRows.bind(this.myTableChild);
|
|
7434
|
+
this.myTableChild.renderRows = () => {
|
|
7435
|
+
try {
|
|
7436
|
+
origRenderRows();
|
|
7437
|
+
}
|
|
7438
|
+
catch (error) {
|
|
7439
|
+
console.error('Table rendering error: ', error);
|
|
7440
|
+
this.smartTable.tableRows = [...this.smartTable.tableRows];
|
|
7441
|
+
}
|
|
7442
|
+
};
|
|
7433
7443
|
}
|
|
7434
7444
|
ngOnInit() {
|
|
7435
7445
|
if (this.smartTable.sortable)
|
|
@@ -7912,7 +7922,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
7912
7922
|
type: Component,
|
|
7913
7923
|
args: [{
|
|
7914
7924
|
template: '',
|
|
7915
|
-
standalone: false
|
|
7925
|
+
standalone: false,
|
|
7916
7926
|
}]
|
|
7917
7927
|
}], ctorParameters: () => [{ type: ComponentFactoryService }], propDecorators: { triggers: [{
|
|
7918
7928
|
type: ViewChildren,
|
|
@@ -7978,11 +7988,13 @@ class MaterialTableComponent extends Table {
|
|
|
7978
7988
|
super(cfService);
|
|
7979
7989
|
}
|
|
7980
7990
|
trackByFn(index, item) {
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7991
|
+
if (this.smartTable) {
|
|
7992
|
+
const selectionProp = this.smartTable?.selectionProperty;
|
|
7993
|
+
if (!!selectionProp) {
|
|
7994
|
+
const selectionKey = this.smartTable.getValueDeeply(item, selectionProp);
|
|
7995
|
+
if (selectionKey) {
|
|
7996
|
+
return selectionKey;
|
|
7997
|
+
}
|
|
7986
7998
|
}
|
|
7987
7999
|
}
|
|
7988
8000
|
const id = item.id;
|