@trudb/tru-common-lib 0.2.139 → 0.2.144
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.
|
@@ -5937,6 +5937,8 @@ class TruContextMenuTrigger extends MatMenuTrigger {
|
|
|
5937
5937
|
}
|
|
5938
5938
|
ngOnDestroy() {
|
|
5939
5939
|
this['_closingActionsSubscription'].unsubscribe();
|
|
5940
|
+
this['_menuCloseSubscription'].unsubscribe();
|
|
5941
|
+
this['_hoverSubscription'].unsubscribe();
|
|
5940
5942
|
super.closeMenu();
|
|
5941
5943
|
super.ngOnDestroy();
|
|
5942
5944
|
}
|
|
@@ -6119,9 +6121,11 @@ class TruDataGridCellRenderer {
|
|
|
6119
6121
|
}
|
|
6120
6122
|
destroy() {
|
|
6121
6123
|
document.removeEventListener('mouseover', this.onMouseOver);
|
|
6124
|
+
this.contextMenu.closeMenu();
|
|
6125
|
+
this.contextMenu.ngOnDestroy();
|
|
6122
6126
|
}
|
|
6123
6127
|
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 });
|
|
6124
|
-
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: TruContextMenuTrigger, descendants: true }], ngImport: i0, template: `<div
|
|
6128
|
+
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: TruContextMenuTrigger, descendants: true }], ngImport: i0, template: `<div>{{displayValue}}
|
|
6125
6129
|
<div style="visibility: hidden; position: absolute;"
|
|
6126
6130
|
[truContextMenuTriggerFor]="truDataGridCellContextMenu">
|
|
6127
6131
|
</div>
|
|
@@ -6147,7 +6151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
6147
6151
|
MatButtonModule,
|
|
6148
6152
|
MatMenuModule,
|
|
6149
6153
|
TruContextMenuTrigger
|
|
6150
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: `<div
|
|
6154
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: `<div>{{displayValue}}
|
|
6151
6155
|
<div style="visibility: hidden; position: absolute;"
|
|
6152
6156
|
[truContextMenuTriggerFor]="truDataGridCellContextMenu">
|
|
6153
6157
|
</div>
|