@trudb/tru-common-lib 0.1.995 → 0.1.998
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.
|
@@ -5889,11 +5889,17 @@ class TruDataGridCellRenderer {
|
|
|
5889
5889
|
}
|
|
5890
5890
|
|
|
5891
5891
|
class TruDataGridPkeyCellRenderer {
|
|
5892
|
+
contextMenu;
|
|
5892
5893
|
params;
|
|
5894
|
+
contextMenuPosition = { x: '0px', y: '0px' };
|
|
5893
5895
|
// private eGui: is an empty element to satisfy the getGui method.
|
|
5894
5896
|
eGui;
|
|
5895
5897
|
onRightClick = (event) => {
|
|
5896
5898
|
event.preventDefault();
|
|
5899
|
+
this.contextMenuPosition.x = event.clientX + 'px';
|
|
5900
|
+
this.contextMenuPosition.y = event.clientY + 'px';
|
|
5901
|
+
this.contextMenu.menu?.focusFirstItem('mouse');
|
|
5902
|
+
this.contextMenu.openMenu();
|
|
5897
5903
|
};
|
|
5898
5904
|
agInit(params) {
|
|
5899
5905
|
this.params = params;
|
|
@@ -5913,7 +5919,7 @@ class TruDataGridPkeyCellRenderer {
|
|
|
5913
5919
|
}
|
|
5914
5920
|
destroy() { }
|
|
5915
5921
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridPkeyCellRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5916
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.3", type: TruDataGridPkeyCellRenderer, isStandalone: true, selector: "ng-component", ngImport: i0, template: `<
|
|
5922
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.3", type: TruDataGridPkeyCellRenderer, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "contextMenu", first: true, predicate: MatMenuTrigger, descendants: true }], ngImport: i0, template: `<div (contextmenu)="onRightClick($event)">{{params.value}}
|
|
5917
5923
|
<mat-menu #truDataGridContextMenu="matMenu">
|
|
5918
5924
|
<button mat-menu-item>
|
|
5919
5925
|
<span>Copy</span>
|
|
@@ -5925,7 +5931,7 @@ class TruDataGridPkeyCellRenderer {
|
|
|
5925
5931
|
<span>Insert At Top</span>
|
|
5926
5932
|
</button>
|
|
5927
5933
|
</mat-menu>
|
|
5928
|
-
</
|
|
5934
|
+
</div>`, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i5.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i5.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5929
5935
|
}
|
|
5930
5936
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridPkeyCellRenderer, decorators: [{
|
|
5931
5937
|
type: Component,
|
|
@@ -5937,7 +5943,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
5937
5943
|
MatButtonModule,
|
|
5938
5944
|
MatMenuModule,
|
|
5939
5945
|
MatIconModule
|
|
5940
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: `<
|
|
5946
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: `<div (contextmenu)="onRightClick($event)">{{params.value}}
|
|
5941
5947
|
<mat-menu #truDataGridContextMenu="matMenu">
|
|
5942
5948
|
<button mat-menu-item>
|
|
5943
5949
|
<span>Copy</span>
|
|
@@ -5949,8 +5955,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
5949
5955
|
<span>Insert At Top</span>
|
|
5950
5956
|
</button>
|
|
5951
5957
|
</mat-menu>
|
|
5952
|
-
</
|
|
5953
|
-
}]
|
|
5958
|
+
</div>` }]
|
|
5959
|
+
}], propDecorators: { contextMenu: [{
|
|
5960
|
+
type: ViewChild,
|
|
5961
|
+
args: [MatMenuTrigger]
|
|
5962
|
+
}] } });
|
|
5954
5963
|
|
|
5955
5964
|
var TruDataGridTypes;
|
|
5956
5965
|
(function (TruDataGridTypes) {
|