@trudb/tru-common-lib 0.2.279 → 0.2.281
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.
|
@@ -7827,7 +7827,10 @@ class TruDataGrid {
|
|
|
7827
7827
|
});
|
|
7828
7828
|
if (!entityAlreadyInGrid) {
|
|
7829
7829
|
let enhancedEntity = this.enhanceRowDataForEntity(entity);
|
|
7830
|
-
|
|
7830
|
+
if (changeArgs.entity.Ref < 0)
|
|
7831
|
+
this.rowData.push(enhancedEntity);
|
|
7832
|
+
else
|
|
7833
|
+
this.rowData.unshift(enhancedEntity);
|
|
7831
7834
|
this.api.applyTransaction({ add: [enhancedEntity] });
|
|
7832
7835
|
}
|
|
7833
7836
|
}
|
|
@@ -7985,11 +7988,14 @@ class TruDataGrid {
|
|
|
7985
7988
|
}
|
|
7986
7989
|
else {
|
|
7987
7990
|
let enhancedEntity = this.enhanceRowDataForEntity(newEntity);
|
|
7988
|
-
|
|
7989
|
-
|
|
7991
|
+
if (dataNotification) {
|
|
7992
|
+
this.rowData.unshift(enhancedEntity);
|
|
7990
7993
|
this.api.applyTransaction({ add: [enhancedEntity] });
|
|
7991
|
-
|
|
7994
|
+
}
|
|
7995
|
+
else {
|
|
7996
|
+
this.rowData.push(enhancedEntity);
|
|
7992
7997
|
this.api.applyTransaction({ add: [enhancedEntity], addIndex: 0 });
|
|
7998
|
+
}
|
|
7993
7999
|
}
|
|
7994
8000
|
};
|
|
7995
8001
|
getMergeData = (config, entityToValidate) => {
|
|
@@ -8099,10 +8105,6 @@ class TruDataGrid {
|
|
|
8099
8105
|
cellData.node.setSelected(false);
|
|
8100
8106
|
else
|
|
8101
8107
|
cellData.node.setSelected(true);
|
|
8102
|
-
cellData.api.refreshCells({
|
|
8103
|
-
rowNodes: [cellData.node],
|
|
8104
|
-
columns: [cellData.column.colId],
|
|
8105
|
-
});
|
|
8106
8108
|
}
|
|
8107
8109
|
else {
|
|
8108
8110
|
cellData.api.deselectAll();
|