@trudb/tru-common-lib 0.1.596 → 0.1.599
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/esm2022/lib/components/clone-view/tru-clone-view-module.mjs +8 -4
- package/esm2022/lib/components/desktop/services/tru-desktop-event-handler.mjs +24 -0
- package/esm2022/lib/components/desktop/services/tru-desktop-manager.mjs +11 -19
- package/esm2022/lib/components/desktop/services/tru-window-event-handler.mjs +3 -16
- package/esm2022/lib/components/desktop/tru-desktop.mjs +8 -8
- package/esm2022/lib/components/desktop/window/tru-desktop-window.mjs +4 -3
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/trudb-tru-common-lib.mjs +179 -175
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/clone-view/tru-clone-view-module.d.ts +2 -1
- package/lib/components/desktop/services/tru-desktop-event-handler.d.ts +11 -0
- package/lib/components/desktop/services/tru-desktop-manager.d.ts +3 -4
- package/lib/components/desktop/services/tru-window-event-handler.d.ts +0 -5
- package/lib/components/desktop/tru-desktop.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -7,8 +7,9 @@ import * as i5 from "@angular/material/sidenav";
|
|
|
7
7
|
import * as i6 from "../toolbar/tru-toolbar-module";
|
|
8
8
|
import * as i7 from "../toolbar/button/tru-toolbar-button-module";
|
|
9
9
|
import * as i8 from "../toolbar/dropdown/tru-toolbar-dropdown-module";
|
|
10
|
+
import * as i9 from "../../assets/tru-icon-module";
|
|
10
11
|
export declare class TruCloneViewModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruCloneViewModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TruCloneViewModule, [typeof i1.TruCloneView], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MaterialModule, typeof i5.MatSidenavModule, typeof i6.TruToolbarModule, typeof i7.TruToolbarButtonModule, typeof i8.TruToolbarDropdownModule], [typeof i1.TruCloneView]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruCloneViewModule, [typeof i1.TruCloneView], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MaterialModule, typeof i5.MatSidenavModule, typeof i6.TruToolbarModule, typeof i7.TruToolbarButtonModule, typeof i8.TruToolbarDropdownModule, typeof i9.TruIconModule], [typeof i1.TruCloneView]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<TruCloneViewModule>;
|
|
14
15
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { TruWindowEventArgs } from './tru-window-event-args';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TruDesktopEventHandler {
|
|
5
|
+
private open$;
|
|
6
|
+
onOpen(): Subject<TruWindowEventArgs>;
|
|
7
|
+
open(windowEvent: TruWindowEventArgs): void;
|
|
8
|
+
openCustom(windowEvent: TruWindowEventArgs): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopEventHandler, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TruDesktopEventHandler>;
|
|
11
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TruWindowEventHandler } from './tru-window-event-handler';
|
|
2
1
|
import { TruWindowEventArgs } from './tru-window-event-args';
|
|
3
2
|
import { TruContextFilters } from "../../../services/tru-context-filters";
|
|
4
3
|
import { TruEntityBase } from "../../../base-classes/tru-entity-base";
|
|
5
4
|
import { TruDesktopTitle } from "../classes/tru-desktop-title";
|
|
5
|
+
import { TruDesktopEventHandler } from "./tru-desktop-event-handler";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class TruDesktopManager {
|
|
8
8
|
private contextFilters;
|
|
9
|
-
private
|
|
10
|
-
constructor(contextFilters: TruContextFilters,
|
|
9
|
+
private desktopEventHandler;
|
|
10
|
+
constructor(contextFilters: TruContextFilters, desktopEventHandler: TruDesktopEventHandler);
|
|
11
11
|
getWindowEvent: (tableName: string, tablePluralName: string, tablePluralLabel: string, isModal: boolean, componentName: string, entities?: Array<TruEntityBase>, openAsDetaiView?: boolean, showNavigation?: boolean) => TruWindowEventArgs;
|
|
12
12
|
/**
|
|
13
13
|
* Opens a window for a directive.
|
|
@@ -20,7 +20,6 @@ export declare class TruDesktopManager {
|
|
|
20
20
|
addModalWindow: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities?: Array<TruEntityBase>, openAsDetaiView?: boolean, showNavigation?: boolean, showIfExists?: boolean) => void;
|
|
21
21
|
addWindowForQueryResult: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities?: Array<TruEntityBase>, openAsDetaiView?: boolean, showNavigation?: boolean, showIfExists?: boolean) => void;
|
|
22
22
|
addCustomWindow: (componentName: string, data?: object | null) => void;
|
|
23
|
-
addCustomView: (componentName: string, entities: Array<TruEntityBase>, entityIndex: number) => void;
|
|
24
23
|
windowTitlesByBaseText: any;
|
|
25
24
|
/**
|
|
26
25
|
* Returns a unique string for the base name of a window. At first, returns the input.
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
|
-
import { TruWindowEventArgs } from './tru-window-event-args';
|
|
3
2
|
import { TruDesktopViewConfig } from '../classes/tru-desktop-view-config';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class TruWindowEventHandler {
|
|
6
|
-
private open$;
|
|
7
5
|
private addView$;
|
|
8
6
|
private setWindowTitle$;
|
|
9
7
|
private removeForwadViews$;
|
|
10
|
-
onOpen(): Subject<TruWindowEventArgs>;
|
|
11
|
-
open(windowEvent: TruWindowEventArgs): void;
|
|
12
|
-
openCustom(windowEvent: TruWindowEventArgs): void;
|
|
13
8
|
onAddView(): Subject<TruDesktopViewConfig>;
|
|
14
9
|
addView(windowAddViewEvent: TruDesktopViewConfig): void;
|
|
15
10
|
onRemoveForwardViews(): Subject<null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { TruDesktopEventHandler } from './services/tru-desktop-event-handler';
|
|
3
3
|
import { TruDesktopService } from './services/tru-desktop-service';
|
|
4
4
|
import { TruTextManager } from '../../services/tru-text-manager';
|
|
5
5
|
import { TruUtil } from '../../services/tru-util';
|
|
@@ -7,11 +7,11 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class TruDesktop implements OnInit {
|
|
8
8
|
private desktopService;
|
|
9
9
|
private textManager;
|
|
10
|
-
private
|
|
10
|
+
private truDesktopEventHandler;
|
|
11
11
|
private util;
|
|
12
12
|
options: any;
|
|
13
13
|
private viewportComponent;
|
|
14
|
-
constructor(desktopService: TruDesktopService, textManager: TruTextManager,
|
|
14
|
+
constructor(desktopService: TruDesktopService, textManager: TruTextManager, truDesktopEventHandler: TruDesktopEventHandler, util: TruUtil);
|
|
15
15
|
minimizeAll: boolean;
|
|
16
16
|
desktop: any;
|
|
17
17
|
minWindowCascadePosition: number;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export * from './lib/components/desktop/services/tru-desktop-view-event-notifier
|
|
|
78
78
|
export * from './lib/components/desktop/services/tru-window-action-event-handler';
|
|
79
79
|
export * from './lib/components/desktop/services/tru-window-event-args';
|
|
80
80
|
export * from './lib/components/desktop/services/tru-window-event-handler';
|
|
81
|
+
export * from './lib/components/desktop/services/tru-desktop-event-handler';
|
|
81
82
|
export * from './lib/components/error-dialog/services/tru-error-interceptor';
|
|
82
83
|
export * from './lib/components/error-dialog/tru-error-dialog';
|
|
83
84
|
export * from './lib/components/error-dialog/tru-error-dialog-module';
|