@trudb/tru-common-lib 0.2.298 → 0.2.300
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.
|
@@ -8120,9 +8120,9 @@ class TruDataGrid {
|
|
|
8120
8120
|
}
|
|
8121
8121
|
};
|
|
8122
8122
|
onCellMouseDown = (cellData) => {
|
|
8123
|
-
this.rowSelectedOnMousedown = cellData.node.isSelected();
|
|
8124
|
-
if (!cellData.event?.shiftKey)
|
|
8125
|
-
|
|
8123
|
+
//this.rowSelectedOnMousedown = cellData.node.isSelected();
|
|
8124
|
+
//if (!cellData.event?.shiftKey)
|
|
8125
|
+
// this.rowFocuedOnMousedown = cellData.node;
|
|
8126
8126
|
};
|
|
8127
8127
|
onCellClicked = (cellData) => {
|
|
8128
8128
|
//let target = cellData.event.target as Element;
|
|
@@ -8146,26 +8146,25 @@ class TruDataGrid {
|
|
|
8146
8146
|
onRowClicked = (rowData) => {
|
|
8147
8147
|
let target = rowData.event.target;
|
|
8148
8148
|
if (!target.classList.contains('ag-cell-last-left-pinned')) {
|
|
8149
|
+
rowData.event.preventDefault();
|
|
8149
8150
|
rowData.api.deselectAll();
|
|
8150
8151
|
}
|
|
8151
|
-
else {
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
}
|
|
8168
|
-
}
|
|
8152
|
+
//else {
|
|
8153
|
+
// if (!rowData.event.shiftKey) {
|
|
8154
|
+
// if (rowData.event.ctrlKey) {
|
|
8155
|
+
// if (rowData.node.isSelected()) {
|
|
8156
|
+
// rowData.node.setSelected(false);
|
|
8157
|
+
// if (target.classList.contains('ag-cell-focus'))
|
|
8158
|
+
// target.classList.remove('ag-cell-focus');
|
|
8159
|
+
// } else {
|
|
8160
|
+
// rowData.node.setSelected(true);
|
|
8161
|
+
// }
|
|
8162
|
+
// } else {
|
|
8163
|
+
// rowData.api.deselectAll();
|
|
8164
|
+
// rowData.node.setSelected(true);
|
|
8165
|
+
// }
|
|
8166
|
+
// }
|
|
8167
|
+
//}
|
|
8169
8168
|
};
|
|
8170
8169
|
onCellDoubleClicked = (gridConfig) => {
|
|
8171
8170
|
if (gridConfig.colDef.cellClass === 'ag-pk-aligned-cell')
|