@trudb/tru-common-lib 0.0.445 → 0.0.447
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/esm2020/lib/base-views/search/tru-search-view-base.mjs +3 -17
- package/fesm2015/trudb-tru-common-lib.mjs +2 -16
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +2 -16
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-views/search/tru-search-view-base.d.ts +2 -5
- package/package.json +1 -1
|
@@ -460,7 +460,6 @@ class TruSearchViewBase {
|
|
|
460
460
|
this.isSearching = false;
|
|
461
461
|
this.entities = [];
|
|
462
462
|
this.hasDetailView = true;
|
|
463
|
-
this.subs = [];
|
|
464
463
|
this.searchPanelConfig = {
|
|
465
464
|
side: 'right',
|
|
466
465
|
active: true,
|
|
@@ -483,21 +482,8 @@ class TruSearchViewBase {
|
|
|
483
482
|
}
|
|
484
483
|
};
|
|
485
484
|
}
|
|
486
|
-
|
|
487
|
-
this.
|
|
488
|
-
this.tablePluralName = this.view.window.tablePluralName;
|
|
489
|
-
this.tablePluralLabel = this.view.window.tablePluralLabel;
|
|
490
|
-
this.pkeyName = this.tableName + 'Ref';
|
|
491
|
-
this.windowTitle = this.desktopManager.getUniqueTitle(this.tablePluralLabel);
|
|
492
|
-
this.windowConfig = this.view.window;
|
|
493
|
-
this.contextFilters = this.view.window.globals;
|
|
494
|
-
this.subs.push(this.view.onActive().subscribe((active) => {
|
|
495
|
-
if (active)
|
|
496
|
-
this.view.window.title = this.desktopManager.getUniqueTitle(this.tablePluralLabel);
|
|
497
|
-
}));
|
|
498
|
-
}
|
|
499
|
-
ngOnDestroy() {
|
|
500
|
-
this.subs.forEach(s => s.unsubscribe());
|
|
485
|
+
setWindowTitle() {
|
|
486
|
+
this.view.window.title = this.desktopManager.getUniqueTitle(this.tablePluralLabel);
|
|
501
487
|
}
|
|
502
488
|
}
|
|
503
489
|
TruSearchViewBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TruSearchViewBase, deps: [{ token: TruDesktopManager }, { token: TruWindowEventHandler }], target: i0.ɵɵFactoryTarget.Component });
|