@trudb/tru-common-lib 0.2.300 → 0.2.301
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.
|
@@ -8146,25 +8146,26 @@ 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();
|
|
8150
8149
|
rowData.api.deselectAll();
|
|
8151
8150
|
}
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8151
|
+
else {
|
|
8152
|
+
if (!rowData.event.shiftKey) {
|
|
8153
|
+
if (rowData.event.ctrlKey) {
|
|
8154
|
+
if (rowData.node.isSelected()) {
|
|
8155
|
+
rowData.node.setSelected(false);
|
|
8156
|
+
if (target.classList.contains('ag-cell-focus'))
|
|
8157
|
+
target.classList.remove('ag-cell-focus');
|
|
8158
|
+
}
|
|
8159
|
+
else {
|
|
8160
|
+
rowData.node.setSelected(true);
|
|
8161
|
+
}
|
|
8162
|
+
}
|
|
8163
|
+
else {
|
|
8164
|
+
rowData.api.deselectAll();
|
|
8165
|
+
rowData.node.setSelected(true);
|
|
8166
|
+
}
|
|
8167
|
+
}
|
|
8168
|
+
}
|
|
8168
8169
|
};
|
|
8169
8170
|
onCellDoubleClicked = (gridConfig) => {
|
|
8170
8171
|
if (gridConfig.colDef.cellClass === 'ag-pk-aligned-cell')
|