@trudb/tru-common-lib 0.2.127 → 0.2.128
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.
|
@@ -6019,7 +6019,7 @@ class TruDataGridCellRenderer {
|
|
|
6019
6019
|
let clickedElement = event.target;
|
|
6020
6020
|
if (clickedElement instanceof Element) {
|
|
6021
6021
|
let rect = clickedElement.getBoundingClientRect();
|
|
6022
|
-
this.contextMenuPosition.x =
|
|
6022
|
+
this.contextMenuPosition.x = event.pageX + 'px';
|
|
6023
6023
|
this.contextMenuPosition.y = (event.pageY) + 'px';
|
|
6024
6024
|
this.contextMenu.menu?.focusFirstItem('mouse');
|
|
6025
6025
|
this.contextMenu.openMenu();
|
|
@@ -6069,7 +6069,7 @@ class TruDataGridCellRenderer {
|
|
|
6069
6069
|
}
|
|
6070
6070
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridCellRenderer, deps: [{ token: TruDataContext }, { token: TruDataGridClipboard }], target: i0.ɵɵFactoryTarget.Component });
|
|
6071
6071
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.3", type: TruDataGridCellRenderer, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "contextMenu", first: true, predicate: MatMenuTrigger, descendants: true }], ngImport: i0, template: `<div (contextmenu)="onRightClick($event)">{{displayValue}}
|
|
6072
|
-
<div style="visibility: hidden; position:
|
|
6072
|
+
<div style="visibility: hidden; position: absolute; left: 0"
|
|
6073
6073
|
[style.left]="contextMenuPosition.x"
|
|
6074
6074
|
[matMenuTriggerFor]="truDataGridContextMenu">
|
|
6075
6075
|
</div>
|
|
@@ -6095,7 +6095,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
6095
6095
|
MatButtonModule,
|
|
6096
6096
|
MatMenuModule
|
|
6097
6097
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: `<div (contextmenu)="onRightClick($event)">{{displayValue}}
|
|
6098
|
-
<div style="visibility: hidden; position:
|
|
6098
|
+
<div style="visibility: hidden; position: absolute; left: 0"
|
|
6099
6099
|
[style.left]="contextMenuPosition.x"
|
|
6100
6100
|
[matMenuTriggerFor]="truDataGridContextMenu">
|
|
6101
6101
|
</div>
|