@trudb/tru-common-lib 0.2.48 → 0.2.50
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.
|
@@ -5995,12 +5995,12 @@ class TruDataGridPkeyCellRenderer {
|
|
|
5995
5995
|
}
|
|
5996
5996
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDataGridPkeyCellRenderer, deps: [{ token: TruDataGridClipboard }, { token: TruUtil }], target: i0.ɵɵFactoryTarget.Component });
|
|
5997
5997
|
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)">{{displayValue}}
|
|
5998
|
-
<div style="visibility: hidden; position:
|
|
5998
|
+
<div style="visibility: hidden; position: relative"
|
|
5999
|
+
[style.left]="contextMenuPosition.x"
|
|
6000
|
+
[style.top]="contextMenuPosition.y"
|
|
5999
6001
|
[matMenuTriggerFor]="truDataGridContextMenu">
|
|
6000
6002
|
</div>
|
|
6001
|
-
<mat-menu #truDataGridContextMenu="matMenu"
|
|
6002
|
-
[style.left]="contextMenuPosition.x"
|
|
6003
|
-
[style.top]="contextMenuPosition.y">
|
|
6003
|
+
<mat-menu #truDataGridContextMenu="matMenu">
|
|
6004
6004
|
<button mat-menu-item [disabled]="copyIsDisabled" (click)="onCopy($event)">
|
|
6005
6005
|
<mat-icon [svgIcon]="'copy-icon'"></mat-icon>
|
|
6006
6006
|
<span>Copy</span>
|
|
@@ -6026,12 +6026,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
6026
6026
|
MatButtonModule,
|
|
6027
6027
|
MatMenuModule
|
|
6028
6028
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: `<div (contextmenu)="onRightClick($event)">{{displayValue}}
|
|
6029
|
-
<div style="visibility: hidden; position:
|
|
6029
|
+
<div style="visibility: hidden; position: relative"
|
|
6030
|
+
[style.left]="contextMenuPosition.x"
|
|
6031
|
+
[style.top]="contextMenuPosition.y"
|
|
6030
6032
|
[matMenuTriggerFor]="truDataGridContextMenu">
|
|
6031
6033
|
</div>
|
|
6032
|
-
<mat-menu #truDataGridContextMenu="matMenu"
|
|
6033
|
-
[style.left]="contextMenuPosition.x"
|
|
6034
|
-
[style.top]="contextMenuPosition.y">
|
|
6034
|
+
<mat-menu #truDataGridContextMenu="matMenu">
|
|
6035
6035
|
<button mat-menu-item [disabled]="copyIsDisabled" (click)="onCopy($event)">
|
|
6036
6036
|
<mat-icon [svgIcon]="'copy-icon'"></mat-icon>
|
|
6037
6037
|
<span>Copy</span>
|
|
@@ -8413,12 +8413,14 @@ class TruDesktopWindowStateMonitor {
|
|
|
8413
8413
|
}
|
|
8414
8414
|
onFocusIn(event) {
|
|
8415
8415
|
if (this.active) {
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8416
|
+
setTimeout(() => {
|
|
8417
|
+
let target = event.target;
|
|
8418
|
+
this.focusableElements = this.getFocusableChildElements();
|
|
8419
|
+
let firstFocusableElement = this.focusableElements[0];
|
|
8420
|
+
if (target !== null && !this.el.nativeElement.contains(target)) {
|
|
8421
|
+
firstFocusableElement.focus();
|
|
8422
|
+
}
|
|
8423
|
+
});
|
|
8422
8424
|
}
|
|
8423
8425
|
}
|
|
8424
8426
|
ngOnChanges(changes) {
|