@trudb/tru-common-lib 0.2.285 → 0.2.286
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.
|
@@ -8127,41 +8127,41 @@ class TruDataGrid {
|
|
|
8127
8127
|
this.rowFocuedOnMousedown = cellData.node;
|
|
8128
8128
|
};
|
|
8129
8129
|
onCellClicked = (cellData) => {
|
|
8130
|
-
let target = cellData.event.target;
|
|
8131
|
-
if (!target.classList.contains('ag-cell-last-left-pinned')) {
|
|
8132
|
-
|
|
8133
|
-
}
|
|
8134
|
-
else {
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
}
|
|
8130
|
+
//let target = cellData.event.target as Element;
|
|
8131
|
+
//if (!target.classList.contains('ag-cell-last-left-pinned')) {
|
|
8132
|
+
// cellData.api.deselectAll();
|
|
8133
|
+
//}
|
|
8134
|
+
//else {
|
|
8135
|
+
// if (!cellData.event.shiftKey) {
|
|
8136
|
+
// if (cellData.event.ctrlKey) {
|
|
8137
|
+
// if (this.rowSelectedOnMousedown)
|
|
8138
|
+
// cellData.node.setSelected(false);
|
|
8139
|
+
// else
|
|
8140
|
+
// cellData.node.setSelected(true);
|
|
8141
|
+
// } else {
|
|
8142
|
+
// cellData.api.deselectAll();
|
|
8143
|
+
// cellData.node.setSelected(true);
|
|
8144
|
+
// }
|
|
8145
|
+
// }
|
|
8146
|
+
//}
|
|
8148
8147
|
};
|
|
8149
8148
|
onRowClicked = (rowData) => {
|
|
8150
8149
|
let target = rowData.event.target;
|
|
8151
8150
|
if (!target.classList.contains('ag-cell-last-left-pinned')) {
|
|
8152
8151
|
rowData.api.deselectAll();
|
|
8153
8152
|
}
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8153
|
+
if (!rowData.event.rowData) {
|
|
8154
|
+
if (rowData.event.ctrlKey) {
|
|
8155
|
+
if (this.rowSelectedOnMousedown)
|
|
8156
|
+
rowData.node.setSelected(false);
|
|
8157
|
+
else
|
|
8158
|
+
rowData.node.setSelected(true);
|
|
8159
|
+
}
|
|
8160
|
+
else {
|
|
8161
|
+
rowData.api.deselectAll();
|
|
8162
|
+
rowData.node.setSelected(true);
|
|
8163
|
+
}
|
|
8164
|
+
}
|
|
8165
8165
|
};
|
|
8166
8166
|
onCellDoubleClicked = (gridConfig) => {
|
|
8167
8167
|
if (gridConfig.colDef.cellClass === 'ag-pk-aligned-cell')
|