@trudb/tru-common-lib 0.1.641 → 0.1.643
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/base-views/detail/tru-detail-view-base.mjs +2 -2
- package/esm2022/lib/components/clone-view/tru-clone-view.mjs +7 -4
- package/esm2022/lib/components/desktop/services/tru-desktop-manager.mjs +9 -8
- package/esm2022/lib/components/desktop/services/tru-desktop-service.mjs +2 -1
- package/esm2022/lib/components/desktop/services/tru-window-event-args.mjs +2 -2
- package/fesm2022/trudb-tru-common-lib.mjs +17 -12
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/clone-view/tru-clone-view.d.ts +1 -0
- package/lib/components/desktop/services/tru-desktop-manager.d.ts +3 -2
- package/lib/components/desktop/services/tru-desktop-service.d.ts +2 -0
- package/lib/components/desktop/services/tru-window-event-args.d.ts +2 -1
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ export declare class TruCloneView extends TruViewBase {
|
|
|
31
31
|
processedCount: number;
|
|
32
32
|
doneProcessing: boolean;
|
|
33
33
|
displayTree: (Node | null)[];
|
|
34
|
+
parentDataContext: TruDataContext;
|
|
34
35
|
constructor(textManager: TruTextManager, windowEventHandler: TruWindowEventHandler, dataContext: TruDataContext, modelTableLookup: TruModelTableLookup, modelPropertyLookup: TruModelPropertyLookup, modelTypeLookup: TruModelTypeLookup, modelNavigationPropertiesLookup: TruModelNavigationPropertiesLookup, uiNotification: TruUiNotification);
|
|
35
36
|
private getNumberOfCopies;
|
|
36
37
|
private propertyIsAllowed;
|
|
@@ -3,12 +3,13 @@ import { TruContextFilters } from "../../../services/tru-context-filters";
|
|
|
3
3
|
import { TruDesktopTitle } from "../classes/tru-desktop-title";
|
|
4
4
|
import { TruDesktopEventHandler } from "./tru-desktop-event-handler";
|
|
5
5
|
import { TruWindowEventArgs } from './tru-window-event-args';
|
|
6
|
+
import { TruDataContext } from "../../../services/tru-data-context";
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class TruDesktopManager {
|
|
8
9
|
private contextFilters;
|
|
9
10
|
private desktopEventHandler;
|
|
10
11
|
constructor(contextFilters: TruContextFilters, desktopEventHandler: TruDesktopEventHandler);
|
|
11
|
-
getWindowEvent: (tableName: string, tablePluralName: string, tablePluralLabel: string, isModal: boolean, componentName: string, entities?: Array<TruEntityBase>, openAsDetaiView?: boolean, showNavigation?: boolean) => TruWindowEventArgs;
|
|
12
|
+
getWindowEvent: (tableName: string, tablePluralName: string, tablePluralLabel: string, isModal: boolean, componentName: string, entities?: Array<TruEntityBase>, entityIndex?: number, openAsDetaiView?: boolean, showNavigation?: boolean, parentDataContext?: TruDataContext | null) => TruWindowEventArgs;
|
|
12
13
|
/**
|
|
13
14
|
* Opens a window for a directive.
|
|
14
15
|
* @param {string} directiveName - name of the view directive.
|
|
@@ -17,7 +18,7 @@ export declare class TruDesktopManager {
|
|
|
17
18
|
* directive, then shows its window instead of creating a new one.
|
|
18
19
|
*/
|
|
19
20
|
addWindow: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities?: Array<TruEntityBase>, openAsDetaiView?: boolean, showNavigation?: boolean, showIfExists?: boolean) => void;
|
|
20
|
-
addModalWindow: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities
|
|
21
|
+
addModalWindow: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities: TruEntityBase[] | undefined, entityIndex: number | undefined, parentDataContext: TruDataContext, openAsDetaiView?: boolean, showNavigation?: boolean, showIfExists?: boolean) => void;
|
|
21
22
|
addWindowForQueryResult: (tableName: string, tablePluralName: string, tablePluralLabel: string, componentName: string, entities?: Array<TruEntityBase>, openAsDetaiView?: boolean, showNavigation?: boolean, showIfExists?: boolean) => void;
|
|
22
23
|
addCustomWindow: (componentName: string, data?: object | null) => void;
|
|
23
24
|
windowTitlesByBaseText: any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TruContextFilter } from '../../../classes/tru-context-filter';
|
|
2
2
|
import { TruDesktopViewConfig } from '../classes/tru-desktop-view-config';
|
|
3
|
+
import { TruDataContext } from '../../../services/tru-data-context';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class TruDesktopService {
|
|
5
6
|
/**
|
|
@@ -91,5 +92,6 @@ export declare class WindowConfig {
|
|
|
91
92
|
unsubscribes: Array<any>;
|
|
92
93
|
wasReadOnly: boolean;
|
|
93
94
|
contextFilters: Array<TruContextFilter>;
|
|
95
|
+
parentDataContext: TruDataContext | null;
|
|
94
96
|
destroy: () => void;
|
|
95
97
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { TruContextFilter } from '../../../classes/tru-context-filter';
|
|
2
|
+
import { TruDataContext } from '../../../services/tru-data-context';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class TruWindowEventArgs {
|
|
4
5
|
title: string;
|
|
5
6
|
tableName: string;
|
|
6
7
|
tablePluralName: string;
|
|
7
8
|
tablePluralLabel: string;
|
|
8
|
-
|
|
9
|
+
parentDataContext: TruDataContext | null;
|
|
9
10
|
isModal: boolean;
|
|
10
11
|
showNavigation: boolean;
|
|
11
12
|
contentBottom: string;
|