@trudb/tru-common-lib 0.2.291 → 0.2.293

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.
@@ -7817,13 +7817,6 @@ class TruDataGrid {
7817
7817
  this.subs.push(this.connectionHub.subscribe(this.dataContext, this.config.resultConfig.entityType, this.config.resultConfig.entityType.name, this.addEntity, this.getRowData, () => { return this.latestSetupQuery; }, this.config.resultConfig.expands, [], () => { return true; }).subscribe((dataChange) => {
7818
7818
  let rowNodesToRemove = [];
7819
7819
  dataChange.dataChanges.forEach((change) => {
7820
- if (change.changeOperation === 'U') {
7821
- this.api.forEachNode((rowNode) => {
7822
- if (rowNode.data.$entity.Ref === change.tableRef) {
7823
- rowNodesToRemove.push(rowNode.data);
7824
- }
7825
- });
7826
- }
7827
7820
  if (change.changeOperation === 'D') {
7828
7821
  this.api.forEachNode((rowNode) => {
7829
7822
  if (rowNode.data.$entity.Ref === change.tableRef) {
@@ -8151,16 +8144,18 @@ class TruDataGrid {
8151
8144
  if (!target.classList.contains('ag-cell-last-left-pinned')) {
8152
8145
  rowData.api.deselectAll();
8153
8146
  }
8154
- if (!rowData.event.rowData) {
8155
- if (rowData.event.ctrlKey) {
8156
- if (this.rowSelectedOnMousedown)
8157
- rowData.node.setSelected(false);
8158
- else
8147
+ else {
8148
+ if (!rowData.event.shiftKey) {
8149
+ if (rowData.event.ctrlKey) {
8150
+ if (this.rowSelectedOnMousedown)
8151
+ rowData.node.setSelected(false);
8152
+ else
8153
+ rowData.node.setSelected(true);
8154
+ }
8155
+ else {
8156
+ rowData.api.deselectAll();
8159
8157
  rowData.node.setSelected(true);
8160
- }
8161
- else {
8162
- rowData.api.deselectAll();
8163
- rowData.node.setSelected(true);
8158
+ }
8164
8159
  }
8165
8160
  }
8166
8161
  };