@trudb/tru-common-lib 0.2.52 → 0.2.54
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.
- package/fesm2022/trudb-tru-common-lib.mjs +19 -8
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-views/search/services/tru-search-view-event-handler.d.ts +3 -0
- package/lib/components/desktop/directives/window-state-monitor/tru-desktop-window-state-monitor.d.ts +3 -1
- package/package.json +1 -1
|
@@ -62,11 +62,12 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
|
62
62
|
import { MatSortModule } from '@angular/material/sort';
|
|
63
63
|
import * as i5$1 from '@angular/material/table';
|
|
64
64
|
import { MatTableModule, MatTable } from '@angular/material/table';
|
|
65
|
-
import * as i2$
|
|
65
|
+
import * as i2$3 from '@angular/material/tabs';
|
|
66
66
|
import { MatTabsModule, MatTab, MatTabGroup } from '@angular/material/tabs';
|
|
67
67
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
68
68
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
69
69
|
import { MatTreeModule } from '@angular/material/tree';
|
|
70
|
+
import * as i2$2 from '@angular/cdk/overlay';
|
|
70
71
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
71
72
|
import { PasswordStrengthMeterComponent } from 'angular-password-strength-meter';
|
|
72
73
|
import * as i1$2 from 'ngx-toastr';
|
|
@@ -4118,6 +4119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
4118
4119
|
|
|
4119
4120
|
class TruSearchViewEventHandler {
|
|
4120
4121
|
search$ = new BehaviorSubject(null);
|
|
4122
|
+
searchFromParent$ = new BehaviorSubject(null);
|
|
4121
4123
|
filter$ = new BehaviorSubject(null);
|
|
4122
4124
|
search(query) {
|
|
4123
4125
|
this.search$.next(query);
|
|
@@ -4125,6 +4127,12 @@ class TruSearchViewEventHandler {
|
|
|
4125
4127
|
onSearch() {
|
|
4126
4128
|
return this.search$.asObservable();
|
|
4127
4129
|
}
|
|
4130
|
+
initiateChildSearch() {
|
|
4131
|
+
this.searchFromParent$.next(null);
|
|
4132
|
+
}
|
|
4133
|
+
onParentInitiatedSearch() {
|
|
4134
|
+
return this.searchFromParent$.asObservable();
|
|
4135
|
+
}
|
|
4128
4136
|
filter(query) {
|
|
4129
4137
|
this.filter$.next(query);
|
|
4130
4138
|
}
|
|
@@ -5997,7 +6005,6 @@ class TruDataGridPkeyCellRenderer {
|
|
|
5997
6005
|
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
6006
|
<div style="visibility: hidden; position: relative"
|
|
5999
6007
|
[style.left]="contextMenuPosition.x"
|
|
6000
|
-
[style.top]="contextMenuPosition.y"
|
|
6001
6008
|
[matMenuTriggerFor]="truDataGridContextMenu">
|
|
6002
6009
|
</div>
|
|
6003
6010
|
<mat-menu #truDataGridContextMenu="matMenu">
|
|
@@ -6028,7 +6035,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
6028
6035
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: `<div (contextmenu)="onRightClick($event)">{{displayValue}}
|
|
6029
6036
|
<div style="visibility: hidden; position: relative"
|
|
6030
6037
|
[style.left]="contextMenuPosition.x"
|
|
6031
|
-
[style.top]="contextMenuPosition.y"
|
|
6032
6038
|
[matMenuTriggerFor]="truDataGridContextMenu">
|
|
6033
6039
|
</div>
|
|
6034
6040
|
<mat-menu #truDataGridContextMenu="matMenu">
|
|
@@ -8357,14 +8363,16 @@ class TruDesktopWindowStateMonitor {
|
|
|
8357
8363
|
el;
|
|
8358
8364
|
renderer;
|
|
8359
8365
|
windowEventHandler;
|
|
8366
|
+
overlayContainer;
|
|
8360
8367
|
active = true;
|
|
8361
8368
|
tabListener;
|
|
8362
8369
|
focusListener;
|
|
8363
8370
|
focusableElements = [];
|
|
8364
|
-
constructor(el, renderer, windowEventHandler) {
|
|
8371
|
+
constructor(el, renderer, windowEventHandler, overlayContainer) {
|
|
8365
8372
|
this.el = el;
|
|
8366
8373
|
this.renderer = renderer;
|
|
8367
8374
|
this.windowEventHandler = windowEventHandler;
|
|
8375
|
+
this.overlayContainer = overlayContainer;
|
|
8368
8376
|
}
|
|
8369
8377
|
setWindowState = () => {
|
|
8370
8378
|
if (this.active)
|
|
@@ -8413,6 +8421,9 @@ class TruDesktopWindowStateMonitor {
|
|
|
8413
8421
|
}
|
|
8414
8422
|
onFocusIn(event) {
|
|
8415
8423
|
if (this.active) {
|
|
8424
|
+
let overlayElement = this.overlayContainer.getContainerElement();
|
|
8425
|
+
if (overlayElement.childElementCount > 0)
|
|
8426
|
+
return; // Ignore focus events when overlays are present
|
|
8416
8427
|
setTimeout(() => {
|
|
8417
8428
|
let target = event.target;
|
|
8418
8429
|
this.focusableElements = this.getFocusableChildElements();
|
|
@@ -8441,7 +8452,7 @@ class TruDesktopWindowStateMonitor {
|
|
|
8441
8452
|
this.tabListener();
|
|
8442
8453
|
this.focusListener();
|
|
8443
8454
|
}
|
|
8444
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDesktopWindowStateMonitor, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: TruWindowEventHandler }], target: i0.ɵɵFactoryTarget.Directive });
|
|
8455
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDesktopWindowStateMonitor, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: TruWindowEventHandler }, { token: i2$2.OverlayContainer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
8445
8456
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: TruDesktopWindowStateMonitor, isStandalone: true, selector: "[truDesktopWindowStateMonitor]", inputs: { active: ["truDesktopWindowStateMonitor", "active"] }, usesOnChanges: true, ngImport: i0 });
|
|
8446
8457
|
}
|
|
8447
8458
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruDesktopWindowStateMonitor, decorators: [{
|
|
@@ -8449,7 +8460,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
8449
8460
|
args: [{
|
|
8450
8461
|
selector: '[truDesktopWindowStateMonitor]'
|
|
8451
8462
|
}]
|
|
8452
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: TruWindowEventHandler }], propDecorators: { active: [{
|
|
8463
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: TruWindowEventHandler }, { type: i2$2.OverlayContainer }], propDecorators: { active: [{
|
|
8453
8464
|
type: Input,
|
|
8454
8465
|
args: ['truDesktopWindowStateMonitor']
|
|
8455
8466
|
}] } });
|
|
@@ -10126,7 +10137,7 @@ class TruTab {
|
|
|
10126
10137
|
this.tabGroupEventNotifier.isActive = isActive;
|
|
10127
10138
|
};
|
|
10128
10139
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruTab, deps: [{ token: TruTabGroupEventNotifier }], target: i0.ɵɵFactoryTarget.Component });
|
|
10129
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.3", type: TruTab, isStandalone: true, selector: "tru-tab", inputs: { view: "view", label: "label" }, providers: [TruTabGroupEventNotifier], viewQueries: [{ propertyName: "matTab", first: true, predicate: MatTab, descendants: true }], ngImport: i0, template: "<mat-tab [label]=\"label\" [disabled]=\"!view.window.isActive()\">\r\n <ng-content></ng-content>\r\n</mat-tab>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i2$
|
|
10140
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.3", type: TruTab, isStandalone: true, selector: "tru-tab", inputs: { view: "view", label: "label" }, providers: [TruTabGroupEventNotifier], viewQueries: [{ propertyName: "matTab", first: true, predicate: MatTab, descendants: true }], ngImport: i0, template: "<mat-tab [label]=\"label\" [disabled]=\"!view.window.isActive()\">\r\n <ng-content></ng-content>\r\n</mat-tab>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i2$3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
10130
10141
|
}
|
|
10131
10142
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruTab, decorators: [{
|
|
10132
10143
|
type: Component,
|
|
@@ -10162,7 +10173,7 @@ class TruTabGroup {
|
|
|
10162
10173
|
});
|
|
10163
10174
|
}
|
|
10164
10175
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruTabGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10165
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.3", type: TruTabGroup, isStandalone: true, selector: "tru-tab-group", queries: [{ propertyName: "tabs", predicate: TruTab }], viewQueries: [{ propertyName: "tabGroup", first: true, predicate: MatTabGroup, descendants: true }], ngImport: i0, template: "<mat-tab-group #tabGroup\r\n (selectedTabChange)=\"onChange($event)\"\r\n animationDuration=\"0ms\">\r\n <ng-content #outlet></ng-content>\r\n</mat-tab-group>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i2$
|
|
10176
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.3", type: TruTabGroup, isStandalone: true, selector: "tru-tab-group", queries: [{ propertyName: "tabs", predicate: TruTab }], viewQueries: [{ propertyName: "tabGroup", first: true, predicate: MatTabGroup, descendants: true }], ngImport: i0, template: "<mat-tab-group #tabGroup\r\n (selectedTabChange)=\"onChange($event)\"\r\n animationDuration=\"0ms\">\r\n <ng-content #outlet></ng-content>\r\n</mat-tab-group>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i2$3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
10166
10177
|
}
|
|
10167
10178
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruTabGroup, decorators: [{
|
|
10168
10179
|
type: Component,
|