@trudb/tru-common-lib 0.2.293 → 0.2.295
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.
|
@@ -6512,14 +6512,14 @@ class TruDataGridPkeyCellRenderer {
|
|
|
6512
6512
|
this.dataGridClipboard = dataGridClipboard;
|
|
6513
6513
|
}
|
|
6514
6514
|
onRightClick = (event) => {
|
|
6515
|
-
event.preventDefault();
|
|
6516
|
-
this.copyIsDisabled = this.params.api.getSelectedRows().length ? false : true;
|
|
6517
|
-
this.pasteIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
|
|
6518
|
-
this.insertAtTopIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
|
|
6519
|
-
this.contextMenuPosition.x = event.pageX + 'px';
|
|
6520
|
-
this.contextMenuPosition.y = (event.pageY) + 'px';
|
|
6521
|
-
this.contextMenu.menu?.focusFirstItem('mouse');
|
|
6522
|
-
this.contextMenu.openMenu();
|
|
6515
|
+
//event.preventDefault();
|
|
6516
|
+
//this.copyIsDisabled = this.params.api.getSelectedRows().length ? false : true;
|
|
6517
|
+
//this.pasteIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
|
|
6518
|
+
//this.insertAtTopIsDisabled = this.dataGridClipboard.getCopiedRows().length && this.params.api.getSelectedRows().length ? false : true;
|
|
6519
|
+
//this.contextMenuPosition.x = event.pageX + 'px';
|
|
6520
|
+
//this.contextMenuPosition.y = (event.pageY) + 'px';
|
|
6521
|
+
//this.contextMenu.menu?.focusFirstItem('mouse');
|
|
6522
|
+
//this.contextMenu.openMenu();
|
|
6523
6523
|
};
|
|
6524
6524
|
onMouseDown = (event) => {
|
|
6525
6525
|
};
|
|
@@ -8147,10 +8147,14 @@ class TruDataGrid {
|
|
|
8147
8147
|
else {
|
|
8148
8148
|
if (!rowData.event.shiftKey) {
|
|
8149
8149
|
if (rowData.event.ctrlKey) {
|
|
8150
|
-
if (this.rowSelectedOnMousedown)
|
|
8150
|
+
if (this.rowSelectedOnMousedown) {
|
|
8151
8151
|
rowData.node.setSelected(false);
|
|
8152
|
-
|
|
8152
|
+
if (!target.classList.contains('ag-cell-focus'))
|
|
8153
|
+
target.classList.remove('ag-cell-focus');
|
|
8154
|
+
}
|
|
8155
|
+
else {
|
|
8153
8156
|
rowData.node.setSelected(true);
|
|
8157
|
+
}
|
|
8154
8158
|
}
|
|
8155
8159
|
else {
|
|
8156
8160
|
rowData.api.deselectAll();
|