@trudb/tru-common-lib 0.2.469 → 0.2.472
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 +36 -10
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/desktop/classes/tru-desktop-view-config.d.ts +2 -0
- package/lib/components/desktop/services/tru-window-manager.d.ts +5 -1
- package/lib/components/desktop/window/tru-desktop-window.d.ts +1 -0
- package/package.json +1 -1
|
@@ -12,6 +12,8 @@ export declare class TruDesktopViewConfig {
|
|
|
12
12
|
isDirty: boolean;
|
|
13
13
|
isEditing: boolean;
|
|
14
14
|
isInvalid: boolean;
|
|
15
|
+
requiresCleanDataContext: boolean;
|
|
16
|
+
suppressWindowSaveRevert: boolean;
|
|
15
17
|
componentName: string;
|
|
16
18
|
openAsDetaiView: boolean;
|
|
17
19
|
actionRefs: string;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { TruEntityBase } from "../../../base-classes/tru-entity-base";
|
|
2
2
|
import { TruWindowEventHandler } from "./tru-window-event-handler";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
export type TruCustomViewOptions = {
|
|
5
|
+
requiresCleanDataContext?: boolean;
|
|
6
|
+
suppressWindowSaveRevert?: boolean;
|
|
7
|
+
};
|
|
4
8
|
export declare class TruWindowManager {
|
|
5
9
|
private windowEventHandler;
|
|
6
10
|
constructor(windowEventHandler: TruWindowEventHandler);
|
|
7
|
-
addCustomView: (componentName: string, entities: Array<TruEntityBase>, entityIndex: number) => void;
|
|
11
|
+
addCustomView: (componentName: string, entities: Array<TruEntityBase>, entityIndex: number, options?: boolean | TruCustomViewOptions) => void;
|
|
8
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruWindowManager, never>;
|
|
9
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<TruWindowManager>;
|
|
10
14
|
}
|
|
@@ -17,6 +17,7 @@ export declare class TruDesktopWindow implements OnInit, AfterViewInit {
|
|
|
17
17
|
window: any;
|
|
18
18
|
viewportCtrl: any;
|
|
19
19
|
desktopCtrl: any;
|
|
20
|
+
get saveRevertSuppressed(): boolean;
|
|
20
21
|
constructor(dataContext: TruDataContext, uiNotification: TruUiNotification, textManager: TruTextManager, windowEventHandler: TruWindowEventHandler, elementRef: ElementRef, util: TruUtil, cd: ChangeDetectorRef);
|
|
21
22
|
x: number;
|
|
22
23
|
y: number;
|