@trudb/tru-common-lib 0.0.177 → 0.0.181
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/components/confirm-dialog/tru-confirm-dialog-module.mjs +19 -0
- package/esm2020/lib/components/confirm-dialog/tru-confirm-dialog.mjs +36 -0
- package/esm2020/lib/components/desktop/directives/resizable/tru-desktop-resizable-module.mjs +19 -0
- package/esm2020/lib/components/desktop/directives/resizable/tru-desktop-resizable.mjs +109 -0
- package/esm2020/lib/components/desktop/menubar/tru-desktop-menubar-module.mjs +44 -0
- package/esm2020/lib/components/desktop/menubar/tru-desktop-menubar.mjs +29 -0
- package/esm2020/lib/components/desktop/services/tru-desktop-service.mjs +136 -0
- package/esm2020/lib/components/desktop/statusbar/tru-desktop-statusbar-module.mjs +19 -0
- package/esm2020/lib/components/desktop/statusbar/tru-desktop-statusbar.mjs +18 -0
- package/esm2020/lib/components/desktop/taskbar/tru-desktop-taskbar-module.mjs +21 -0
- package/esm2020/lib/components/desktop/taskbar/tru-desktop-taskbar.mjs +40 -0
- package/esm2020/lib/components/desktop/tru-desktop-module.mjs +72 -0
- package/esm2020/lib/components/desktop/tru-desktop.mjs +703 -0
- package/esm2020/lib/components/desktop/view/tru-desktop-view-module.mjs +19 -0
- package/esm2020/lib/components/desktop/view/tru-desktop-view.mjs +25 -0
- package/esm2020/lib/components/desktop/viewport/tru-desktop-viewport-module.mjs +20 -0
- package/esm2020/lib/components/desktop/viewport/tru-desktop-viewport.mjs +109 -0
- package/esm2020/lib/components/desktop/window/tru-desktop-window-module.mjs +58 -0
- package/esm2020/lib/components/desktop/window/tru-desktop-window.mjs +449 -0
- package/esm2020/lib/components/export-dialog/tru-export-dialog-module.mjs +20 -0
- package/esm2020/lib/components/export-dialog/tru-export-dialog.mjs +57 -0
- package/esm2020/lib/components/toolbar/button/tru-toolbar-button-module.mjs +32 -0
- package/esm2020/lib/components/toolbar/button/tru-toolbar-button.mjs +35 -0
- package/esm2020/lib/components/toolbar/context-filter/tru-toolbar-context-filter-module.mjs +40 -0
- package/esm2020/lib/components/toolbar/context-filter/tru-toolbar-context-filter.mjs +24 -0
- package/esm2020/lib/components/toolbar/dropdown/tru-toolbar-dropdown-module.mjs +32 -0
- package/esm2020/lib/components/toolbar/dropdown/tru-toolbar-dropdown.mjs +42 -0
- package/esm2020/lib/components/toolbar/menu/menu-button/tru-toolbar-menu-button-module.mjs +19 -0
- package/esm2020/lib/components/toolbar/menu/menu-button/tru-toolbar-menu-button.mjs +16 -0
- package/esm2020/lib/components/toolbar/menu/menu-item/tru-toolbar-menu-item-module.mjs +19 -0
- package/esm2020/lib/components/toolbar/menu/menu-item/tru-toolbar-menu-item.mjs +26 -0
- package/esm2020/lib/components/toolbar/menu/tru-toolbar-menu-module.mjs +32 -0
- package/esm2020/lib/components/toolbar/menu/tru-toolbar-menu.mjs +33 -0
- package/esm2020/lib/components/toolbar/separator/tru-toolbar-separator-module.mjs +19 -0
- package/esm2020/lib/components/toolbar/separator/tru-toolbar-separator.mjs +12 -0
- package/esm2020/lib/components/toolbar/text/tru-toolbar-text-module.mjs +32 -0
- package/esm2020/lib/components/toolbar/text/tru-toolbar-text.mjs +28 -0
- package/esm2020/lib/components/toolbar/tru-toolbar-module.mjs +66 -0
- package/esm2020/lib/components/toolbar/tru-toolbar.mjs +21 -0
- package/esm2020/lib/material.module.mjs +192 -0
- package/esm2020/lib/services/tru-app-environment.mjs +75 -0
- package/esm2020/lib/services/tru-breeze-context-factory.mjs +71 -0
- package/esm2020/lib/services/tru-data-context.mjs +207 -0
- package/esm2020/lib/services/tru-entity-accessor.mjs +188 -0
- package/esm2020/lib/services/tru-predicate-map.mjs +11 -0
- package/esm2020/lib/services/tru-search-group-event-handler.mjs +1 -1
- package/esm2020/lib/services/tru-text-manager.mjs +134 -0
- package/esm2020/lib/services/tru-ui-notification.mjs +90 -0
- package/esm2020/lib/services/tru-user.mjs +54 -0
- package/esm2020/lib/tru-common-module.mjs +1 -1
- package/esm2020/public-api.mjs +33 -2
- package/fesm2015/trudb-tru-common-lib.mjs +3203 -65
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +3197 -65
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/confirm-dialog/tru-confirm-dialog-module.d.ts +9 -0
- package/lib/components/confirm-dialog/tru-confirm-dialog.d.ts +20 -0
- package/lib/components/desktop/directives/resizable/tru-desktop-resizable-module.d.ts +9 -0
- package/lib/components/desktop/directives/resizable/tru-desktop-resizable.d.ts +32 -0
- package/lib/components/desktop/menubar/tru-desktop-menubar-module.d.ts +14 -0
- package/lib/components/desktop/menubar/tru-desktop-menubar.d.ts +12 -0
- package/lib/components/desktop/services/tru-desktop-service.d.ts +110 -0
- package/lib/components/desktop/statusbar/tru-desktop-statusbar-module.d.ts +9 -0
- package/lib/components/desktop/statusbar/tru-desktop-statusbar.d.ts +10 -0
- package/lib/components/desktop/taskbar/tru-desktop-taskbar-module.d.ts +11 -0
- package/lib/components/desktop/taskbar/tru-desktop-taskbar.d.ts +15 -0
- package/lib/components/desktop/tru-desktop-module.d.ts +20 -0
- package/lib/components/desktop/tru-desktop.d.ts +334 -0
- package/lib/components/desktop/view/tru-desktop-view-module.d.ts +9 -0
- package/lib/components/desktop/view/tru-desktop-view.d.ts +13 -0
- package/lib/components/desktop/viewport/tru-desktop-viewport-module.d.ts +10 -0
- package/lib/components/desktop/viewport/tru-desktop-viewport.d.ts +46 -0
- package/lib/components/desktop/window/tru-desktop-window-module.d.ts +17 -0
- package/lib/components/desktop/window/tru-desktop-window.d.ts +184 -0
- package/lib/components/export-dialog/tru-export-dialog-module.d.ts +10 -0
- package/lib/components/export-dialog/tru-export-dialog.d.ts +26 -0
- package/lib/components/toolbar/button/tru-toolbar-button-module.d.ts +11 -0
- package/lib/components/toolbar/button/tru-toolbar-button.d.ts +14 -0
- package/lib/components/toolbar/context-filter/tru-toolbar-context-filter-module.d.ts +13 -0
- package/lib/components/toolbar/context-filter/tru-toolbar-context-filter.d.ts +11 -0
- package/lib/components/toolbar/dropdown/tru-toolbar-dropdown-module.d.ts +11 -0
- package/lib/components/toolbar/dropdown/tru-toolbar-dropdown.d.ts +18 -0
- package/lib/components/toolbar/menu/menu-button/tru-toolbar-menu-button-module.d.ts +9 -0
- package/lib/components/toolbar/menu/menu-button/tru-toolbar-menu-button.d.ts +7 -0
- package/lib/components/toolbar/menu/menu-item/tru-toolbar-menu-item-module.d.ts +9 -0
- package/lib/components/toolbar/menu/menu-item/tru-toolbar-menu-item.d.ts +8 -0
- package/lib/components/toolbar/menu/tru-toolbar-menu-module.d.ts +11 -0
- package/lib/components/toolbar/menu/tru-toolbar-menu.d.ts +10 -0
- package/lib/components/toolbar/separator/tru-toolbar-separator-module.d.ts +9 -0
- package/lib/components/toolbar/separator/tru-toolbar-separator.d.ts +6 -0
- package/lib/components/toolbar/text/tru-toolbar-text-module.d.ts +11 -0
- package/lib/components/toolbar/text/tru-toolbar-text.d.ts +12 -0
- package/lib/components/toolbar/tru-toolbar-module.d.ts +15 -0
- package/lib/components/toolbar/tru-toolbar.d.ts +13 -0
- package/lib/material.module.d.ts +50 -0
- package/lib/services/tru-app-environment.d.ts +48 -0
- package/lib/services/tru-breeze-context-factory.d.ts +30 -0
- package/lib/services/tru-data-context.d.ts +32 -0
- package/lib/services/tru-entity-accessor.d.ts +41 -0
- package/lib/services/tru-predicate-map.d.ts +6 -0
- package/lib/services/tru-text-manager.d.ts +68 -0
- package/lib/services/tru-ui-notification.d.ts +35 -0
- package/lib/services/tru-user.d.ts +21 -0
- package/package.json +1 -1
- package/public-api.d.ts +29 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-confirm-dialog";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class TruConfirmDialogModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruConfirmDialogModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruConfirmDialogModule, [typeof i1.TruConfirmDialog], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.TruConfirmDialog]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruConfirmDialogModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TruConfirmDialog implements OnInit {
|
|
5
|
+
dialogRef: MatDialogRef<TruConfirmDialog>;
|
|
6
|
+
data: TruConfirmDialog;
|
|
7
|
+
title: string;
|
|
8
|
+
message: string;
|
|
9
|
+
constructor(dialogRef: MatDialogRef<TruConfirmDialog>, data: TruConfirmDialog);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
onConfirm(): void;
|
|
12
|
+
onDismiss(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruConfirmDialog, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruConfirmDialog, "tru-confirm-dialog", never, {}, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
16
|
+
export declare class TruConfirmDialogConfig {
|
|
17
|
+
title: string;
|
|
18
|
+
message: string;
|
|
19
|
+
constructor(title: string, message: string);
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-desktop-resizable";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class TruDesktopResizableModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopResizableModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruDesktopResizableModule, [typeof i1.TruDesktopResizable], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.TruDesktopResizable]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruDesktopResizableModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnInit, ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TruDesktopResizable implements OnInit {
|
|
4
|
+
private elementRef;
|
|
5
|
+
window: any;
|
|
6
|
+
maximized: any;
|
|
7
|
+
direction: any;
|
|
8
|
+
constructor(elementRef: ElementRef);
|
|
9
|
+
currentHeight: any;
|
|
10
|
+
currentWidth: any;
|
|
11
|
+
currentTop: any;
|
|
12
|
+
currentLeft: any;
|
|
13
|
+
currentRight: any;
|
|
14
|
+
currentBottom: any;
|
|
15
|
+
currentMinHeight: any;
|
|
16
|
+
currentMinWidth: any;
|
|
17
|
+
mouseOffsetX: number;
|
|
18
|
+
mouseOffsetY: number;
|
|
19
|
+
lastMouseX: number;
|
|
20
|
+
lastMouseY: number;
|
|
21
|
+
originalHeight: number;
|
|
22
|
+
originalWidth: number;
|
|
23
|
+
viewport: any;
|
|
24
|
+
mouseDown: (event: any) => void;
|
|
25
|
+
mouseMove: (event: any) => void;
|
|
26
|
+
mouseUp: (event: any) => void;
|
|
27
|
+
getViewport: () => Element;
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopResizable, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TruDesktopResizable, "[tru-desktop-resizable]", never, { "window": "window"; "maximized": "maximized"; "direction": "direction"; }, {}, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-desktop-menubar";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../../toolbar/tru-toolbar-module";
|
|
6
|
+
import * as i5 from "../../toolbar/menu/tru-toolbar-menu-module";
|
|
7
|
+
import * as i6 from "../../toolbar/dropdown/tru-toolbar-dropdown-module";
|
|
8
|
+
import * as i7 from "../../toolbar/separator/tru-toolbar-separator-module";
|
|
9
|
+
import * as i8 from "../../toolbar/context-filter/tru-toolbar-context-filter-module";
|
|
10
|
+
export declare class TruDesktopMenubarModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopMenubarModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruDesktopMenubarModule, [typeof i1.TruDesktopMenubar], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.TruToolbarModule, typeof i5.TruToolbarMenuModule, typeof i6.TruToolbarDropdownModule, typeof i7.TruToolbarSeparatorModule, typeof i8.TruToolbarContextFilterModule], [typeof i1.TruDesktopMenubar]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruDesktopMenubarModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TruDesktopMenubar implements OnInit {
|
|
4
|
+
desktopCtrl: any;
|
|
5
|
+
constructor();
|
|
6
|
+
options: any | null;
|
|
7
|
+
configs: any | null;
|
|
8
|
+
openWindow: (event: any, windowOverrides: any) => void;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopMenubar, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruDesktopMenubar, "tru-desktop-menubar", never, { "desktopCtrl": "desktopCtrl"; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TruDesktopService {
|
|
3
|
+
/**
|
|
4
|
+
* @tru.doc function
|
|
5
|
+
* @name DesktopService.createDesktop
|
|
6
|
+
* @module tru.desktop
|
|
7
|
+
*
|
|
8
|
+
* @description
|
|
9
|
+
* Creates a new desktop instance.
|
|
10
|
+
*
|
|
11
|
+
* @returns {object} Desktop
|
|
12
|
+
*/
|
|
13
|
+
createDesktop: () => Desktop;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TruDesktopService>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @tru.desktop.doc class
|
|
19
|
+
* @name DesktopService.Desktop
|
|
20
|
+
* @module tru.desktop
|
|
21
|
+
*
|
|
22
|
+
* @description Desktop defines a logical desktop. Any non-dom properties and elements needed by the desktop should
|
|
23
|
+
* be defined in this class
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class Desktop {
|
|
27
|
+
options: DesktopOptions;
|
|
28
|
+
windowConfig: WindowConfig;
|
|
29
|
+
viewConfig: ViewConfig;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @tru.desktop.doc class
|
|
33
|
+
* @name DesktopService.DesktopOptions
|
|
34
|
+
* @module tru.desktop
|
|
35
|
+
*
|
|
36
|
+
* @description Default DesktopOptions class. DesktopOptions are defined by the application developer and overlaid
|
|
37
|
+
* over this object.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare class DesktopOptions {
|
|
41
|
+
allowDirtyClose: boolean;
|
|
42
|
+
allowInvalidClose: boolean;
|
|
43
|
+
cancelEditingOnNavigation: boolean;
|
|
44
|
+
canCloseFn: undefined;
|
|
45
|
+
canNavigateFn: undefined;
|
|
46
|
+
displayViewportDimensions: boolean;
|
|
47
|
+
enableAnimation: boolean;
|
|
48
|
+
enableWindowCascading: boolean;
|
|
49
|
+
logoUrl: undefined;
|
|
50
|
+
menubarHeight: number;
|
|
51
|
+
menubarConfig: undefined;
|
|
52
|
+
showLaunchMenu: boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @tru.desktop.doc class
|
|
56
|
+
* @name DesktopService.WindowConfig
|
|
57
|
+
* @module tru.desktop
|
|
58
|
+
*
|
|
59
|
+
* @description
|
|
60
|
+
* Default configuration object for a window. windowConfig properties can be defined by the application developer and overlaid
|
|
61
|
+
* over this object.
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
export declare class WindowConfig {
|
|
65
|
+
active: boolean;
|
|
66
|
+
bottom: string;
|
|
67
|
+
globals: undefined;
|
|
68
|
+
height: string;
|
|
69
|
+
isDirty: boolean;
|
|
70
|
+
isInvalid: boolean;
|
|
71
|
+
left: number;
|
|
72
|
+
maximized: undefined;
|
|
73
|
+
minHeight: string;
|
|
74
|
+
minimized: boolean;
|
|
75
|
+
minWidth: string;
|
|
76
|
+
outOfBounds: boolean;
|
|
77
|
+
savedPosition: {};
|
|
78
|
+
right: string;
|
|
79
|
+
scope: undefined;
|
|
80
|
+
title: string;
|
|
81
|
+
top: number;
|
|
82
|
+
width: string;
|
|
83
|
+
views: ViewConfig[];
|
|
84
|
+
zIndex: number;
|
|
85
|
+
context: any | undefined;
|
|
86
|
+
isReadOnly: boolean;
|
|
87
|
+
unsubscribes: Array<any>;
|
|
88
|
+
wasReadOnly: boolean;
|
|
89
|
+
destroy: () => void;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @tru.desktop.doc class
|
|
93
|
+
* @name truDesktopComponent.ViewConfig
|
|
94
|
+
* @module tru.desktop
|
|
95
|
+
*
|
|
96
|
+
* @description
|
|
97
|
+
* Default configuration object for a view. viewConfig properties can be defined by the application developer and overlaid
|
|
98
|
+
* over this object.
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
export declare class ViewConfig {
|
|
102
|
+
active: boolean;
|
|
103
|
+
entities: undefined;
|
|
104
|
+
entityIndex: number;
|
|
105
|
+
isDirty: boolean;
|
|
106
|
+
isEditing: boolean;
|
|
107
|
+
isInvalid: boolean;
|
|
108
|
+
componentName: undefined;
|
|
109
|
+
windowConfig: null;
|
|
110
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-desktop-statusbar";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class TruDesktopStatusbarModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopStatusbarModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruDesktopStatusbarModule, [typeof i1.TruDesktopStatusbar], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.TruDesktopStatusbar]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruDesktopStatusbarModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TruDesktopStatusbar implements OnInit {
|
|
4
|
+
desktopCtrl: any;
|
|
5
|
+
label: string;
|
|
6
|
+
constructor();
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopStatusbar, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruDesktopStatusbar, "tru-desktop-statusbar", never, { "desktopCtrl": "desktopCtrl"; }, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-desktop-taskbar";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../../toolbar/button/tru-toolbar-button-module";
|
|
6
|
+
import * as i5 from "@angular/material/icon";
|
|
7
|
+
export declare class TruDesktopTaskbarModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopTaskbarModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruDesktopTaskbarModule, [typeof i1.TruDesktopTaskbar], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.TruToolbarButtonModule, typeof i5.MatIconModule], [typeof i1.TruDesktopTaskbar]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruDesktopTaskbarModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TruDesktopTaskbar implements OnInit {
|
|
4
|
+
windows: any;
|
|
5
|
+
desktopCtrl: any;
|
|
6
|
+
options: null;
|
|
7
|
+
desktopShown: boolean;
|
|
8
|
+
constructor();
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
updateWindowState: (wdw: any) => void;
|
|
11
|
+
hideShowAll: () => void;
|
|
12
|
+
close: (e: any, wdw: any) => void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopTaskbar, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruDesktopTaskbar, "tru-desktop-taskbar", never, { "windows": "windows"; "desktopCtrl": "desktopCtrl"; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-desktop";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/platform-browser";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "@angular/common/http";
|
|
7
|
+
import * as i6 from "@angular/platform-browser/animations";
|
|
8
|
+
import * as i7 from "@angular/material/button";
|
|
9
|
+
import * as i8 from "@angular/material/icon";
|
|
10
|
+
import * as i9 from "./menubar/tru-desktop-menubar-module";
|
|
11
|
+
import * as i10 from "./statusbar/tru-desktop-statusbar-module";
|
|
12
|
+
import * as i11 from "./taskbar/tru-desktop-taskbar-module";
|
|
13
|
+
import * as i12 from "./viewport/tru-desktop-viewport-module";
|
|
14
|
+
import * as i13 from "./window/tru-desktop-window-module";
|
|
15
|
+
import * as i14 from "./view/tru-desktop-view-module";
|
|
16
|
+
export declare class TruDesktopModule {
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopModule, never>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruDesktopModule, [typeof i1.TruDesktop], [typeof i2.CommonModule, typeof i3.BrowserModule, typeof i4.FormsModule, typeof i5.HttpClientModule, typeof i6.BrowserAnimationsModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.TruDesktopMenubarModule, typeof i10.TruDesktopStatusbarModule, typeof i11.TruDesktopTaskbarModule, typeof i12.TruDesktopViewportModule, typeof i13.TruDesktopWindowModule, typeof i14.TruDesktopViewModule], [typeof i1.TruDesktop]>;
|
|
19
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruDesktopModule>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TruWindowEventHandler } from '../../services/tru-window-event-handler';
|
|
3
|
+
import { TruDesktopService } from './services/tru-desktop-service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TruDesktop implements OnInit {
|
|
6
|
+
private desktopService;
|
|
7
|
+
private truWindowEventHandler;
|
|
8
|
+
options: any;
|
|
9
|
+
constructor(desktopService: TruDesktopService, truWindowEventHandler: TruWindowEventHandler);
|
|
10
|
+
minimizeAll: boolean;
|
|
11
|
+
desktop: import("./services/tru-desktop-service").Desktop;
|
|
12
|
+
minWindowCascadePosition: number;
|
|
13
|
+
maxWindowCascadePosition: number;
|
|
14
|
+
lastWindowCascadePosition: {
|
|
15
|
+
top: number;
|
|
16
|
+
left: number;
|
|
17
|
+
};
|
|
18
|
+
shiftPressed: boolean;
|
|
19
|
+
altPressed: boolean;
|
|
20
|
+
xPressed: boolean;
|
|
21
|
+
keyboardMap: string[];
|
|
22
|
+
logoUrl: null;
|
|
23
|
+
/**
|
|
24
|
+
* @tru.doc function
|
|
25
|
+
* @name truDesktopComponent.getDesktop
|
|
26
|
+
* @module tru.desktop
|
|
27
|
+
*
|
|
28
|
+
* @description
|
|
29
|
+
* Return an object of desktop.
|
|
30
|
+
*
|
|
31
|
+
* @returns {object} desktop.
|
|
32
|
+
*/
|
|
33
|
+
getDesktop: () => import("./services/tru-desktop-service").Desktop;
|
|
34
|
+
/**
|
|
35
|
+
* @tru.doc function
|
|
36
|
+
* @name truDesktopComponent.getOptions
|
|
37
|
+
* @module tru.desktop
|
|
38
|
+
*
|
|
39
|
+
* @description
|
|
40
|
+
* Return an object of desktop options.
|
|
41
|
+
*
|
|
42
|
+
* @returns {object} options.
|
|
43
|
+
*/
|
|
44
|
+
getOptions: () => any;
|
|
45
|
+
/**
|
|
46
|
+
* @tru.doc function
|
|
47
|
+
* @name truDesktopComponent.getWindows
|
|
48
|
+
* @module tru.desktop
|
|
49
|
+
*
|
|
50
|
+
* @description
|
|
51
|
+
* Return an array of windows.
|
|
52
|
+
*
|
|
53
|
+
* @returns {array} windows.
|
|
54
|
+
*/
|
|
55
|
+
getWindows: () => any[];
|
|
56
|
+
/**
|
|
57
|
+
* @tru.doc function
|
|
58
|
+
* @name truDesktopComponent.getNextMaxZIndex
|
|
59
|
+
* @module tru.desktop
|
|
60
|
+
*
|
|
61
|
+
* @description
|
|
62
|
+
* Iterates through all window objects in the windows array to find the max z-index
|
|
63
|
+
* and increases the value found by 1.
|
|
64
|
+
*
|
|
65
|
+
* @returns {int}
|
|
66
|
+
*/
|
|
67
|
+
getNextMaxZIndex: () => number;
|
|
68
|
+
/**
|
|
69
|
+
* @tru.doc function
|
|
70
|
+
* @name truDesktopComponent.clearActive
|
|
71
|
+
* @module tru.desktop
|
|
72
|
+
*
|
|
73
|
+
* @description
|
|
74
|
+
* Iterates through all window objects in the windows
|
|
75
|
+
* and sets the active property to false.
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
clearActive: () => void;
|
|
79
|
+
/**
|
|
80
|
+
* @tru.doc function
|
|
81
|
+
* @name truDesktopComponent.getActiveWindow
|
|
82
|
+
* @module tru.desktop
|
|
83
|
+
*
|
|
84
|
+
* @description
|
|
85
|
+
* Gets the active window.
|
|
86
|
+
*
|
|
87
|
+
* @returns {object} view object.
|
|
88
|
+
*/
|
|
89
|
+
getActiveWindow: () => any;
|
|
90
|
+
/**
|
|
91
|
+
* @tru.doc function
|
|
92
|
+
* @name truDesktopComponent.getActiveView
|
|
93
|
+
* @module tru.desktop
|
|
94
|
+
*
|
|
95
|
+
* @description
|
|
96
|
+
* Gets the active view.
|
|
97
|
+
*
|
|
98
|
+
* @returns {object} view object.
|
|
99
|
+
*/
|
|
100
|
+
getActiveView: (wdw: any) => null;
|
|
101
|
+
/**
|
|
102
|
+
* @tru.doc function
|
|
103
|
+
* @name truDesktopComponent.allWindowsAreMinimized
|
|
104
|
+
* @module tru.desktop
|
|
105
|
+
*
|
|
106
|
+
* @description
|
|
107
|
+
* Iterates through windows to determine if all are minimized.
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
allWindowsAreMinimized: () => boolean;
|
|
111
|
+
/**
|
|
112
|
+
* @tru.doc function
|
|
113
|
+
* @name truDesktopComponent.hideShowAll
|
|
114
|
+
* @module tru.desktop
|
|
115
|
+
*
|
|
116
|
+
* @description
|
|
117
|
+
* Hides/shows all windows
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
hideShowAll: () => boolean;
|
|
121
|
+
/**
|
|
122
|
+
* @tru.doc function
|
|
123
|
+
* @name truDesktopComponent.findWindowViewDirective
|
|
124
|
+
* @module tru.desktop
|
|
125
|
+
*
|
|
126
|
+
* @description
|
|
127
|
+
* Looks for previously open window with a view directive
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
findWindowViewDirective: (windowViewDirective: any) => any;
|
|
131
|
+
/**
|
|
132
|
+
* @tru.doc function
|
|
133
|
+
* @name truDesktopComponent.openWindow
|
|
134
|
+
* @module tru.desktop
|
|
135
|
+
*
|
|
136
|
+
* @description
|
|
137
|
+
* Displays a new window. All window properties defined by the application developer will be
|
|
138
|
+
* overlaid here before displaying the window
|
|
139
|
+
*
|
|
140
|
+
*/
|
|
141
|
+
openWindow: (windowConfigOverlays: any, singleInstance: any) => void;
|
|
142
|
+
/**
|
|
143
|
+
* @tru.doc function
|
|
144
|
+
* @name truDesktopComponent.configureWindow
|
|
145
|
+
* @module tru.desktop
|
|
146
|
+
*
|
|
147
|
+
* @description
|
|
148
|
+
* Creates a new window instance.
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
configureWindow: (windowConfigOverlays: any) => any;
|
|
152
|
+
/**
|
|
153
|
+
* @tru.doc function
|
|
154
|
+
* @name truDesktopComponent.configureViews
|
|
155
|
+
* @module tru.desktop
|
|
156
|
+
*
|
|
157
|
+
* @description
|
|
158
|
+
* Creates one or more view instances
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
161
|
+
configureViews: (windowConfigOverlays: any, configuredWindow: any) => Array<any>;
|
|
162
|
+
/**
|
|
163
|
+
* @tru.doc function
|
|
164
|
+
* @name truDesktopComponent.closeWindow
|
|
165
|
+
* @module tru.desktop
|
|
166
|
+
*
|
|
167
|
+
* @description
|
|
168
|
+
* Remove a window {object} from the windows array.
|
|
169
|
+
*
|
|
170
|
+
* @returns {boolean} returns true if window was closed, false if not closed.
|
|
171
|
+
*/
|
|
172
|
+
closeWindow: (wdw: any) => boolean;
|
|
173
|
+
/**
|
|
174
|
+
* @tru.doc function
|
|
175
|
+
* @name truDesktopComponent.activateForemostWindow
|
|
176
|
+
* @module tru.desktop
|
|
177
|
+
*
|
|
178
|
+
* @description
|
|
179
|
+
* Set the foremost window to an active state
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
activateForemostWindow: () => void;
|
|
183
|
+
/**
|
|
184
|
+
* @tru.doc function
|
|
185
|
+
* @name truDesktopComponent.activateNextWindow
|
|
186
|
+
* @module tru.desktop
|
|
187
|
+
*
|
|
188
|
+
* @description
|
|
189
|
+
* Set the next window to an active state
|
|
190
|
+
*
|
|
191
|
+
*/
|
|
192
|
+
activateNextWindow: (activeWindowLocation: any) => void;
|
|
193
|
+
/**
|
|
194
|
+
* @tru.doc function
|
|
195
|
+
* @name truDesktopComponent.activatePreviousWindow
|
|
196
|
+
* @module tru.desktop
|
|
197
|
+
*
|
|
198
|
+
* @description
|
|
199
|
+
* Set the previous window to an active state
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
activatePreviousWindow: (activeWindowLocation: any) => void;
|
|
203
|
+
/**
|
|
204
|
+
* @tru.doc function
|
|
205
|
+
* @name truDesktopComponent.minimize
|
|
206
|
+
* @module tru.desktop
|
|
207
|
+
*
|
|
208
|
+
* @description
|
|
209
|
+
* Visually removes window from the viewport.
|
|
210
|
+
*
|
|
211
|
+
*/
|
|
212
|
+
minimize: (window: any) => void;
|
|
213
|
+
/**
|
|
214
|
+
* @tru.doc function
|
|
215
|
+
* @name truDesktopComponent.maximize
|
|
216
|
+
* @module tru.desktop
|
|
217
|
+
*
|
|
218
|
+
* @description
|
|
219
|
+
* Positions window such that it fills the whole viewport.
|
|
220
|
+
*
|
|
221
|
+
*/
|
|
222
|
+
maximize: (window: any) => void;
|
|
223
|
+
/**
|
|
224
|
+
* @tru.doc function
|
|
225
|
+
* @name truDesktopComponent.maximizeLeft
|
|
226
|
+
* @module tru.desktop
|
|
227
|
+
*
|
|
228
|
+
* @description
|
|
229
|
+
* Positions window such that it fills the left portion viewport.
|
|
230
|
+
*
|
|
231
|
+
*/
|
|
232
|
+
maximizeLeft: (window: any) => void;
|
|
233
|
+
/**
|
|
234
|
+
* @tru.doc function
|
|
235
|
+
* @name truDesktopComponent.maximizeRight
|
|
236
|
+
* @module tru.desktop
|
|
237
|
+
*
|
|
238
|
+
* @description
|
|
239
|
+
* Positions window such that it fills the right portion viewport.
|
|
240
|
+
*
|
|
241
|
+
*/
|
|
242
|
+
maximizeRight: (window: any) => void;
|
|
243
|
+
/**
|
|
244
|
+
* @tru.doc function
|
|
245
|
+
* @name truDesktopComponent.recover
|
|
246
|
+
* @module tru.desktop
|
|
247
|
+
*
|
|
248
|
+
* @description
|
|
249
|
+
* Brings window back into view when it has escaped the viewport.
|
|
250
|
+
*
|
|
251
|
+
*/
|
|
252
|
+
recover: (window: any) => void;
|
|
253
|
+
/**
|
|
254
|
+
* @tru.doc function
|
|
255
|
+
* @name truDesktopComponent.restore
|
|
256
|
+
* @module tru.desktop
|
|
257
|
+
*
|
|
258
|
+
* @description
|
|
259
|
+
*
|
|
260
|
+
*/
|
|
261
|
+
restore: (wdw: any) => void;
|
|
262
|
+
/**
|
|
263
|
+
* @tru.doc function
|
|
264
|
+
* @name truDesktopComponent.bringToFront
|
|
265
|
+
* @module tru.desktop
|
|
266
|
+
*
|
|
267
|
+
* @description
|
|
268
|
+
*
|
|
269
|
+
*/
|
|
270
|
+
updateWindowState: (wdw: any) => void;
|
|
271
|
+
/**
|
|
272
|
+
* @tru.doc function
|
|
273
|
+
* @name truDesktopComponent.restoreSavedPosition
|
|
274
|
+
* @module tru.desktop
|
|
275
|
+
*
|
|
276
|
+
* @description
|
|
277
|
+
* Set the windows last know position to the current position.
|
|
278
|
+
*
|
|
279
|
+
*/
|
|
280
|
+
restoreSavedPosition: (wdw: any) => void;
|
|
281
|
+
/**
|
|
282
|
+
* @tru.doc function
|
|
283
|
+
* @name truDesktopComponent.savePosition
|
|
284
|
+
* @module tru.desktop
|
|
285
|
+
*
|
|
286
|
+
* @description
|
|
287
|
+
* Save the windows last know position.
|
|
288
|
+
*
|
|
289
|
+
*/
|
|
290
|
+
savePosition: (wdw: any) => void;
|
|
291
|
+
/**
|
|
292
|
+
* @tru.doc function
|
|
293
|
+
* @name truDesktopComponent.closeWindow
|
|
294
|
+
* @module tru.desktop
|
|
295
|
+
*
|
|
296
|
+
* @description
|
|
297
|
+
* Moves a window to the next cascade position.
|
|
298
|
+
*
|
|
299
|
+
*/
|
|
300
|
+
cascadeWindow: (window: any) => void;
|
|
301
|
+
/**
|
|
302
|
+
* @tru.doc function
|
|
303
|
+
* @name truDesktopComponent.getKeyCode
|
|
304
|
+
* @module tru.desktop
|
|
305
|
+
*
|
|
306
|
+
* @description
|
|
307
|
+
*
|
|
308
|
+
*/
|
|
309
|
+
getKeySequence: (event: any) => string;
|
|
310
|
+
/**
|
|
311
|
+
* @tru.doc event
|
|
312
|
+
* @module tru.desktop
|
|
313
|
+
*
|
|
314
|
+
* @description
|
|
315
|
+
*
|
|
316
|
+
*/
|
|
317
|
+
onKeyDown: (event: any) => void;
|
|
318
|
+
onKeyUp: (event: any) => void;
|
|
319
|
+
/**
|
|
320
|
+
* @tru.doc function
|
|
321
|
+
* @name truDesktopComponent.handleSelectAttempt
|
|
322
|
+
* @module tru.desktop
|
|
323
|
+
*
|
|
324
|
+
* @description
|
|
325
|
+
* Prevents the user from highlight desktop elements.
|
|
326
|
+
*
|
|
327
|
+
*/
|
|
328
|
+
handleSelectAttempt: (e: any) => boolean;
|
|
329
|
+
windows: Array<any>;
|
|
330
|
+
ngOnInit(): void;
|
|
331
|
+
ngOnDestroy(): void;
|
|
332
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktop, never>;
|
|
333
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruDesktop, "tru-desktop", never, { "options": "options"; }, {}, never, never, false, never>;
|
|
334
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-desktop-view";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class TruDesktopViewModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopViewModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruDesktopViewModule, [typeof i1.TruDesktopView], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.TruDesktopView]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruDesktopViewModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit, ComponentFactoryResolver, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { TruComponentLookup } from '../../../services/tru-component-lookup';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TruDesktopView implements OnInit {
|
|
5
|
+
private viewContainerRef;
|
|
6
|
+
private componentFactoryResolver;
|
|
7
|
+
private componentLookup;
|
|
8
|
+
view: any;
|
|
9
|
+
constructor(viewContainerRef: ViewContainerRef, componentFactoryResolver: ComponentFactoryResolver, componentLookup: TruComponentLookup);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopView, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TruDesktopView, "tru-desktop-view", never, { "view": "view"; }, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tru-desktop-viewport";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../window/tru-desktop-window-module";
|
|
6
|
+
export declare class TruDesktopViewportModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruDesktopViewportModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TruDesktopViewportModule, [typeof i1.TruDesktopViewport], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.TruDesktopWindowModule], [typeof i1.TruDesktopViewport]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TruDesktopViewportModule>;
|
|
10
|
+
}
|