@trudb/tru-common-lib 0.1.994 → 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,12 +5889,20 @@ class TruDataGridCellRenderer {
|
|
|
5889
5889
|
}
|
|
5890
5890
|
|
|
5891
5891
|
class TruDataGridPkeyCellRenderer {
|
|
5892
|
+
contextMenu;
|
|
5893
|
+
params;
|
|
5894
|
+
contextMenuPosition = { x: '0px', y: '0px' };
|
|
5892
5895
|
// private eGui: is an empty element to satisfy the getGui method.
|
|
5893
5896
|
eGui;
|
|
5894
5897
|
onRightClick = (event) => {
|
|
5895
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();
|
|
5896
5903
|
};
|
|
5897
|
-
|
|
5904
|
+
agInit(params) {
|
|
5905
|
+
this.params = params;
|
|
5898
5906
|
//params.eGridCell.innerHTML = '';
|
|
5899
5907
|
//let value = params.value;
|
|
5900
5908
|
//if (params.value < 0)
|
|
@@ -5911,7 +5919,7 @@ class TruDataGridPkeyCellRenderer {
|
|
|
5911
5919
|
}
|
|
5912
5920
|
destroy() { }
|
|
5913
5921
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridPkeyCellRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5914
|
-
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}}
|
|
5915
5923
|
<mat-menu #truDataGridContextMenu="matMenu">
|
|
5916
5924
|
<button mat-menu-item>
|
|
5917
5925
|
<span>Copy</span>
|
|
@@ -5923,7 +5931,7 @@ class TruDataGridPkeyCellRenderer {
|
|
|
5923
5931
|
<span>Insert At Top</span>
|
|
5924
5932
|
</button>
|
|
5925
5933
|
</mat-menu>
|
|
5926
|
-
</
|
|
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 });
|
|
5927
5935
|
}
|
|
5928
5936
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridPkeyCellRenderer, decorators: [{
|
|
5929
5937
|
type: Component,
|
|
@@ -5935,7 +5943,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
5935
5943
|
MatButtonModule,
|
|
5936
5944
|
MatMenuModule,
|
|
5937
5945
|
MatIconModule
|
|
5938
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: `<
|
|
5946
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: `<div (contextmenu)="onRightClick($event)">{{params.value}}
|
|
5939
5947
|
<mat-menu #truDataGridContextMenu="matMenu">
|
|
5940
5948
|
<button mat-menu-item>
|
|
5941
5949
|
<span>Copy</span>
|
|
@@ -5947,8 +5955,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
5947
5955
|
<span>Insert At Top</span>
|
|
5948
5956
|
</button>
|
|
5949
5957
|
</mat-menu>
|
|
5950
|
-
</
|
|
5951
|
-
}]
|
|
5958
|
+
</div>` }]
|
|
5959
|
+
}], propDecorators: { contextMenu: [{
|
|
5960
|
+
type: ViewChild,
|
|
5961
|
+
args: [MatMenuTrigger]
|
|
5962
|
+
}] } });
|
|
5952
5963
|
|
|
5953
5964
|
var TruDataGridTypes;
|
|
5954
5965
|
(function (TruDataGridTypes) {
|