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