@finsemble/finsemble-ui 8.0.2 → 8.1.0-beta.2
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/FEA.d.ts +48 -3
- package/FEA.d.ts.map +1 -1
- package/FEA.js.map +1 -1
- package/clients/Interop/FinsembleDesktopAgent.js +1 -1
- package/clients/Startup/FSBLDesktop.d.ts +2 -14
- package/clients/Startup/FSBLDesktop.d.ts.map +1 -1
- package/clients/Startup/FSBLDesktop.js +4 -21
- package/clients/Startup/FSBLDesktop.js.map +1 -1
- package/clients/Startup/types.d.ts +17 -0
- package/clients/Startup/types.d.ts.map +1 -1
- package/clients/Startup/windowStartup.d.ts.map +1 -1
- package/clients/Startup/windowStartup.js +16 -14
- package/clients/Startup/windowStartup.js.map +1 -1
- package/clients/routerClient.d.ts +2 -169
- package/clients/routerClient.d.ts.map +1 -1
- package/clients/routerClient.js +4 -7
- package/clients/routerClient.js.map +1 -1
- package/common/Desktop.d.ts +8 -0
- package/common/Desktop.d.ts.map +1 -1
- package/common/Desktop.js +23 -0
- package/common/Desktop.js.map +1 -1
- package/common/FinsembleWindow.d.ts +1 -2
- package/common/FinsembleWindow.d.ts.map +1 -1
- package/common/FinsembleWindow.js +1 -1
- package/common/FinsembleWindow.js.map +1 -1
- package/common/Monitors.d.ts +6 -0
- package/common/Monitors.d.ts.map +1 -1
- package/common/Monitors.js +22 -0
- package/common/Monitors.js.map +1 -1
- package/common/system.d.ts +1 -1
- package/common/system.d.ts.map +1 -1
- package/main.d.ts +29 -29
- package/package.json +44 -44
- package/platform/services/Interop/types.d.ts +1 -0
- package/platform/services/Interop/types.d.ts.map +1 -1
- package/platform/services/Interop/types.js.map +1 -1
- package/platform/services/router/routerTransport.d.ts.map +1 -1
- package/platform/services/router/routerTransport.js +5 -7
- package/platform/services/router/routerTransport.js.map +1 -1
- package/platform/services/router/types.d.ts +214 -0
- package/platform/services/router/types.d.ts.map +1 -0
- package/platform/services/router/types.js +2 -0
- package/platform/services/router/types.js.map +1 -0
- package/platform/services/types.d.ts +1 -0
- package/platform/services/types.d.ts.map +1 -1
- package/platform/services/types.js +1 -0
- package/platform/services/types.js.map +1 -1
- package/platform/services/window/Common/Pools/ObjectPool.d.ts +11 -0
- package/platform/services/window/Common/Pools/ObjectPool.d.ts.map +1 -0
- package/platform/services/window/Common/Pools/ObjectPool.js +43 -0
- package/platform/services/window/Common/Pools/ObjectPool.js.map +1 -0
- package/platform/services/window/Common/Pools/PoolSingletons.d.ts +10 -0
- package/platform/services/window/Common/Pools/PoolSingletons.d.ts.map +1 -0
- package/platform/services/window/Common/Pools/PoolSingletons.js +10 -0
- package/platform/services/window/Common/Pools/PoolSingletons.js.map +1 -0
- package/platform/services/window/Common/Pools/WindowPool.d.ts +7 -0
- package/platform/services/window/Common/Pools/WindowPool.d.ts.map +1 -0
- package/platform/services/window/Common/Pools/WindowPool.js +16 -0
- package/platform/services/window/Common/Pools/WindowPool.js.map +1 -0
- package/platform/services/window/Docking/boxMath.d.ts +144 -0
- package/platform/services/window/Docking/boxMath.d.ts.map +1 -0
- package/platform/services/window/Docking/boxMath.js +511 -0
- package/platform/services/window/Docking/boxMath.js.map +1 -0
- package/platform/services/window/Docking/constants.d.ts +29 -0
- package/platform/services/window/Docking/constants.d.ts.map +1 -0
- package/platform/services/window/Docking/constants.js +29 -0
- package/platform/services/window/Docking/constants.js.map +1 -0
- package/platform/services/window/Docking/dockableBox.d.ts +117 -0
- package/platform/services/window/Docking/dockableBox.d.ts.map +1 -0
- package/platform/services/window/Docking/dockableBox.js +525 -0
- package/platform/services/window/Docking/dockableBox.js.map +1 -0
- package/platform/services/window/Docking/dockableGroup.d.ts +252 -0
- package/platform/services/window/Docking/dockableGroup.d.ts.map +1 -0
- package/platform/services/window/Docking/dockableGroup.js +1054 -0
- package/platform/services/window/Docking/dockableGroup.js.map +1 -0
- package/platform/services/window/Docking/dockableMonitor.d.ts +99 -0
- package/platform/services/window/Docking/dockableMonitor.d.ts.map +1 -0
- package/platform/services/window/Docking/dockableMonitor.js +427 -0
- package/platform/services/window/Docking/dockableMonitor.js.map +1 -0
- package/platform/services/window/Docking/dockableWindow.d.ts +272 -0
- package/platform/services/window/Docking/dockableWindow.d.ts.map +1 -0
- package/platform/services/window/Docking/dockableWindow.js +1239 -0
- package/platform/services/window/Docking/dockableWindow.js.map +1 -0
- package/platform/services/window/Docking/dockingCalculator.d.ts +749 -0
- package/platform/services/window/Docking/dockingCalculator.d.ts.map +1 -0
- package/platform/services/window/Docking/dockingCalculator.js +3473 -0
- package/platform/services/window/Docking/dockingCalculator.js.map +1 -0
- package/platform/services/window/Docking/dockingMain.d.ts +349 -0
- package/platform/services/window/Docking/dockingMain.d.ts.map +1 -0
- package/platform/services/window/Docking/dockingMain.js +2584 -0
- package/platform/services/window/Docking/dockingMain.js.map +1 -0
- package/platform/services/window/Docking/maskBoundsCalculator.d.ts +28 -0
- package/platform/services/window/Docking/maskBoundsCalculator.d.ts.map +1 -0
- package/platform/services/window/Docking/maskBoundsCalculator.js +67 -0
- package/platform/services/window/Docking/maskBoundsCalculator.js.map +1 -0
- package/platform/services/window/Docking/monitorUpdateHandler.d.ts +32 -0
- package/platform/services/window/Docking/monitorUpdateHandler.d.ts.map +1 -0
- package/platform/services/window/Docking/monitorUpdateHandler.js +117 -0
- package/platform/services/window/Docking/monitorUpdateHandler.js.map +1 -0
- package/platform/services/window/Docking/types.d.ts +334 -0
- package/platform/services/window/Docking/types.d.ts.map +1 -0
- package/platform/services/window/Docking/types.js +12 -0
- package/platform/services/window/Docking/types.js.map +1 -0
- package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts +90 -0
- package/platform/services/window/MultiWindowFeatures/autoArrange.d.ts.map +1 -0
- package/platform/services/window/MultiWindowFeatures/autoArrange.js +510 -0
- package/platform/services/window/MultiWindowFeatures/autoArrange.js.map +1 -0
- package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts +411 -0
- package/platform/services/window/StackedWindowManager/stackedWindowManager.d.ts.map +1 -0
- package/platform/services/window/StackedWindowManager/stackedWindowManager.js +1641 -0
- package/platform/services/window/StackedWindowManager/stackedWindowManager.js.map +1 -0
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts +9 -0
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.d.ts.map +1 -0
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js +23 -0
- package/platform/services/window/WindowAbstractions/FinsembleWindowInternal.js.map +1 -0
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts +227 -0
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.d.ts.map +1 -0
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.js +1168 -0
- package/platform/services/window/WindowAbstractions/WebWindowWrapper.js.map +1 -0
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts +121 -0
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.d.ts.map +1 -0
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.js +591 -0
- package/platform/services/window/WindowAbstractions/externalWindowWrapper.js.map +1 -0
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts +194 -0
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.d.ts.map +1 -0
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js +680 -0
- package/platform/services/window/WindowAbstractions/stackedWindowWrapper.js.map +1 -0
- package/platform/services/window/types.d.ts +13 -13
- package/platform/services/window/windowGroup.d.ts +86 -0
- package/platform/services/window/windowGroup.d.ts.map +1 -0
- package/platform/services/window/windowGroup.js +323 -0
- package/platform/services/window/windowGroup.js.map +1 -0
- package/platform/services/workspace/windowStorageManager.d.ts +178 -0
- package/platform/services/workspace/windowStorageManager.d.ts.map +1 -0
- package/platform/services/workspace/windowStorageManager.js +195 -0
- package/platform/services/workspace/windowStorageManager.js.map +1 -0
- package/platform/services/workspace/workspaceAdminAPI.d.ts +1 -1
- package/platform/services/workspace/workspaceAdminAPI.d.ts.map +1 -1
- package/react/actions/smartDesktopDesignerActions.d.ts +2 -0
- package/react/actions/smartDesktopDesignerActions.d.ts.map +1 -1
- package/react/actions/smartDesktopDesignerActions.js +1 -0
- package/react/actions/smartDesktopDesignerActions.js.map +1 -1
- package/react/assets/css/download.css +119 -0
- package/react/assets/css/userPreferences.css +50 -0
- package/react/assets/css/windowTitleBar.css +2 -1
- package/react/assets/icons/cancel.svg +15 -0
- package/react/assets/icons/gear.svg +9 -0
- package/react/assets/icons/pause.svg +15 -0
- package/react/assets/icons/resume.svg +17 -0
- package/react/assets/img/Finsemble-installation.gif +0 -0
- package/react/components/common/Button.d.ts +1 -0
- package/react/components/common/Button.d.ts.map +1 -1
- package/react/components/common/Button.js.map +1 -1
- package/react/components/common/ButtonIcon.d.ts.map +1 -1
- package/react/components/common/ButtonIcon.js +3 -2
- package/react/components/common/ButtonIcon.js.map +1 -1
- package/react/components/common/FinsembleIcon.d.ts +1 -1
- package/react/components/common/FinsembleIcon.d.ts.map +1 -1
- package/react/components/common/FinsembleIcon.js +8 -0
- package/react/components/common/FinsembleIcon.js.map +1 -1
- package/react/components/common/css/button.css +8 -2
- package/react/components/downloadManager/DownloadItem.d.ts +16 -0
- package/react/components/downloadManager/DownloadItem.d.ts.map +1 -0
- package/react/components/downloadManager/DownloadItem.js +74 -0
- package/react/components/downloadManager/DownloadItem.js.map +1 -0
- package/react/components/downloadManager/DownloadManager.d.ts +10 -0
- package/react/components/downloadManager/DownloadManager.d.ts.map +1 -0
- package/react/components/downloadManager/DownloadManager.js +42 -0
- package/react/components/downloadManager/DownloadManager.js.map +1 -0
- package/react/components/downloadManager/index.d.ts +2 -0
- package/react/components/downloadManager/index.d.ts.map +1 -0
- package/react/components/downloadManager/index.js +2 -0
- package/react/components/downloadManager/index.js.map +1 -0
- package/react/components/fdc3Resolver/ResolverDialog.css +1 -1
- package/react/components/index.d.ts +1 -0
- package/react/components/index.d.ts.map +1 -1
- package/react/components/index.js +1 -0
- package/react/components/index.js.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.d.ts.map +1 -1
- package/react/components/processMonitor/ProcessMonitor.js +56 -75
- package/react/components/processMonitor/ProcessMonitor.js.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.d.ts +5 -7
- package/react/components/processMonitor/components/ChildWindow.d.ts.map +1 -1
- package/react/components/processMonitor/components/ChildWindow.js +30 -33
- package/react/components/processMonitor/components/ChildWindow.js.map +1 -1
- package/react/components/processMonitor/components/ListHeader.d.ts +4 -16
- package/react/components/processMonitor/components/ListHeader.d.ts.map +1 -1
- package/react/components/processMonitor/components/ListHeader.js +30 -39
- package/react/components/processMonitor/components/ListHeader.js.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.d.ts +3 -6
- package/react/components/processMonitor/components/ProcessStatistics.d.ts.map +1 -1
- package/react/components/processMonitor/components/ProcessStatistics.js +18 -23
- package/react/components/processMonitor/components/ProcessStatistics.js.map +1 -1
- package/react/components/sdd/Dashboard.css +21 -0
- package/react/components/sdd/css/export.css +33 -3
- package/react/components/sdd/css/nav.css +1 -1
- package/react/components/shared/DefaultDropdownButton.js +1 -1
- package/react/components/shared/DefaultDropdownButton.js.map +1 -1
- package/react/components/toolbar/DownloadButton.d.ts +8 -0
- package/react/components/toolbar/DownloadButton.d.ts.map +1 -0
- package/react/components/toolbar/DownloadButton.js +30 -0
- package/react/components/toolbar/DownloadButton.js.map +1 -0
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.d.ts.map +1 -1
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js +6 -0
- package/react/components/toolbar/advancedAppLauncher/stores/StoreActions.js.map +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js +1 -1
- package/react/components/toolbar/appLauncher/AppLauncherMenu.js.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.d.ts.map +1 -1
- package/react/components/toolbar/dashbar/Dashbar.js +72 -47
- package/react/components/toolbar/dashbar/Dashbar.js.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.d.ts +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.d.ts.map +1 -1
- package/react/components/toolbar/dashbar/DashbarItem.js +25 -4
- package/react/components/toolbar/dashbar/DashbarItem.js.map +1 -1
- package/react/components/toolbar/index.d.ts +1 -0
- package/react/components/toolbar/index.d.ts.map +1 -1
- package/react/components/toolbar/index.js +1 -0
- package/react/components/toolbar/index.js.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts +3 -4
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.d.ts.map +1 -1
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js +3 -10
- package/react/components/toolbar/workspaceManagementMenu/components/WorkspaceActions.js.map +1 -1
- package/react/components/userPreferences/components/content/General.d.ts.map +1 -1
- package/react/components/userPreferences/components/content/General.js +3 -0
- package/react/components/userPreferences/components/content/General.js.map +1 -1
- package/react/components/userPreferences/components/general/DownloadPreferences.d.ts +10 -0
- package/react/components/userPreferences/components/general/DownloadPreferences.d.ts.map +1 -0
- package/react/components/userPreferences/components/general/DownloadPreferences.js +111 -0
- package/react/components/userPreferences/components/general/DownloadPreferences.js.map +1 -0
- package/react/components/userPreferences/stores/UserPreferencesStore.d.ts +6 -0
- package/react/components/userPreferences/stores/UserPreferencesStore.d.ts.map +1 -1
- package/react/components/userPreferences/stores/UserPreferencesStore.js +11 -0
- package/react/components/userPreferences/stores/UserPreferencesStore.js.map +1 -1
- package/react/components/windowTitleBar/components/right/CloseButton.d.ts +2 -26
- package/react/components/windowTitleBar/components/right/CloseButton.d.ts.map +1 -1
- package/react/components/windowTitleBar/components/right/CloseButton.js +8 -25
- package/react/components/windowTitleBar/components/right/CloseButton.js.map +1 -1
- package/react/hooks/useDownloadItems.d.ts +24 -0
- package/react/hooks/useDownloadItems.d.ts.map +1 -0
- package/react/hooks/useDownloadItems.js +68 -0
- package/react/hooks/useDownloadItems.js.map +1 -0
- package/react/hooks/useNotifications.d.ts +1 -1
- package/react/reducers/rootReducer.d.ts +4 -0
- package/react/reducers/rootReducer.d.ts.map +1 -1
- package/react/reducers/smartDesktopDesignerReducer.d.ts.map +1 -1
- package/react/reducers/smartDesktopDesignerReducer.js +4 -0
- package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
- package/react/store.d.ts +8 -0
- package/react/store.d.ts.map +1 -1
- package/react/types/dashbarTypes.d.ts +3 -1
- package/react/types/dashbarTypes.d.ts.map +1 -1
- package/react/types/smartDesktopDesignerTypes.d.ts +2 -0
- package/react/types/smartDesktopDesignerTypes.d.ts.map +1 -1
- package/react/types/smartDesktopDesignerTypes.js.map +1 -1
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import DockableWindow from "./dockableWindow";
|
|
2
|
+
import DockingMain from "./dockingMain";
|
|
3
|
+
import DockableMonitor from "./dockableMonitor";
|
|
4
|
+
export declare type BoundingBox = {
|
|
5
|
+
min: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
};
|
|
9
|
+
max: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const EmptyBoundingBox: BoundingBox;
|
|
15
|
+
export declare type SnappingRegions = {
|
|
16
|
+
left: BoundingBox;
|
|
17
|
+
bottom: BoundingBox;
|
|
18
|
+
right: BoundingBox;
|
|
19
|
+
top: BoundingBox;
|
|
20
|
+
topLeft?: BoundingBox;
|
|
21
|
+
topRight?: BoundingBox;
|
|
22
|
+
rightTop?: BoundingBox;
|
|
23
|
+
rightBottom?: BoundingBox;
|
|
24
|
+
bottomLeft?: BoundingBox;
|
|
25
|
+
bottomRight?: BoundingBox;
|
|
26
|
+
leftTop?: BoundingBox;
|
|
27
|
+
leftBottom?: BoundingBox;
|
|
28
|
+
inner?: BoundingBox;
|
|
29
|
+
};
|
|
30
|
+
export declare type MonitorRectangle = {
|
|
31
|
+
left: number;
|
|
32
|
+
top: number;
|
|
33
|
+
right: number;
|
|
34
|
+
bottom: number;
|
|
35
|
+
width?: number;
|
|
36
|
+
height?: number;
|
|
37
|
+
};
|
|
38
|
+
export declare type MonitorDimensions = {
|
|
39
|
+
left: number;
|
|
40
|
+
top: number;
|
|
41
|
+
right: number;
|
|
42
|
+
bottom: number;
|
|
43
|
+
width: number;
|
|
44
|
+
height: number;
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
export declare type CompleteBounds = Required<MonitorRectangle>;
|
|
48
|
+
export declare type IncompleteBounds = Partial<MonitorRectangle>;
|
|
49
|
+
export declare type BoxCoordinates = {
|
|
50
|
+
left: number;
|
|
51
|
+
top: number;
|
|
52
|
+
right: number;
|
|
53
|
+
bottom: number;
|
|
54
|
+
width?: number;
|
|
55
|
+
height?: number;
|
|
56
|
+
windowBoundingBox?: BoundingBox;
|
|
57
|
+
name?: string;
|
|
58
|
+
persistBounds?: boolean;
|
|
59
|
+
finished?: boolean;
|
|
60
|
+
};
|
|
61
|
+
export declare type BoxEdge = {
|
|
62
|
+
left?: number;
|
|
63
|
+
top?: number;
|
|
64
|
+
right?: number;
|
|
65
|
+
bottom?: number;
|
|
66
|
+
};
|
|
67
|
+
export declare type TetrisBounds = {
|
|
68
|
+
left: number;
|
|
69
|
+
right: number;
|
|
70
|
+
bottom: number;
|
|
71
|
+
top: number;
|
|
72
|
+
width: number;
|
|
73
|
+
height: number;
|
|
74
|
+
vertices: Record<string, Vertex>;
|
|
75
|
+
};
|
|
76
|
+
export declare const InitializedBoxCoordinates: BoxCoordinates;
|
|
77
|
+
export declare type XYCoordinates = {
|
|
78
|
+
x: number;
|
|
79
|
+
y: number;
|
|
80
|
+
};
|
|
81
|
+
export declare type TopLeftCoordinates = {
|
|
82
|
+
top: number;
|
|
83
|
+
left: number;
|
|
84
|
+
};
|
|
85
|
+
export declare type XYOrTopLeft = XYCoordinates | TopLeftCoordinates;
|
|
86
|
+
export declare type Vertex = {
|
|
87
|
+
x: number;
|
|
88
|
+
y: number;
|
|
89
|
+
label: string;
|
|
90
|
+
top?: number;
|
|
91
|
+
left?: number;
|
|
92
|
+
};
|
|
93
|
+
export declare type MoveRequest = {
|
|
94
|
+
left: number;
|
|
95
|
+
right: number;
|
|
96
|
+
bottom: number;
|
|
97
|
+
top: number;
|
|
98
|
+
width: number;
|
|
99
|
+
height: number;
|
|
100
|
+
dockedWidth?: number;
|
|
101
|
+
dockedHeight?: number;
|
|
102
|
+
windowBoundingBox: BoundingBox;
|
|
103
|
+
innerBuffer: BoundingBox;
|
|
104
|
+
snappingRegions: SnappingRegions;
|
|
105
|
+
mousePosition: XYCoordinates;
|
|
106
|
+
changeType: number;
|
|
107
|
+
snappedEdge: string;
|
|
108
|
+
name?: string;
|
|
109
|
+
dockableEdges?: string[];
|
|
110
|
+
};
|
|
111
|
+
export declare type BetweenParams = {
|
|
112
|
+
num: number;
|
|
113
|
+
min: number;
|
|
114
|
+
max: number;
|
|
115
|
+
inclusive: boolean;
|
|
116
|
+
};
|
|
117
|
+
export declare type Edges = {
|
|
118
|
+
left: BoundingBox;
|
|
119
|
+
right: BoundingBox;
|
|
120
|
+
bottom: BoundingBox;
|
|
121
|
+
top: BoundingBox;
|
|
122
|
+
};
|
|
123
|
+
export declare type SharedEdges = {
|
|
124
|
+
left: boolean;
|
|
125
|
+
right: boolean;
|
|
126
|
+
bottom: boolean;
|
|
127
|
+
top: boolean;
|
|
128
|
+
};
|
|
129
|
+
export declare type SharedCorners = {
|
|
130
|
+
topLeft: boolean;
|
|
131
|
+
topRight: boolean;
|
|
132
|
+
bottomLeft: boolean;
|
|
133
|
+
bottomRight: boolean;
|
|
134
|
+
rightTop: boolean;
|
|
135
|
+
rightBottom: boolean;
|
|
136
|
+
leftTop: boolean;
|
|
137
|
+
leftBottom: boolean;
|
|
138
|
+
};
|
|
139
|
+
export declare type SnappedObject = {
|
|
140
|
+
canGroup: boolean;
|
|
141
|
+
name: string;
|
|
142
|
+
edges: SharedEdges;
|
|
143
|
+
corners: SharedCorners;
|
|
144
|
+
};
|
|
145
|
+
export declare type DockingConfig = {
|
|
146
|
+
name: string;
|
|
147
|
+
isMovable?: boolean;
|
|
148
|
+
ungroupedAlwaysOnTopState?: object;
|
|
149
|
+
MINIMUM_HEIGHT: number;
|
|
150
|
+
MINIMUM_WIDTH: number;
|
|
151
|
+
};
|
|
152
|
+
export declare type SystemMove = {
|
|
153
|
+
name: string;
|
|
154
|
+
bounds: BoxCoordinates;
|
|
155
|
+
isMaximized?: boolean;
|
|
156
|
+
};
|
|
157
|
+
export declare type JSONGroupRepresentation = {
|
|
158
|
+
windowNames: string[];
|
|
159
|
+
isMovable: boolean;
|
|
160
|
+
isAlwaysOnTop: boolean;
|
|
161
|
+
topRightWindow: string;
|
|
162
|
+
isARectangle: boolean;
|
|
163
|
+
ungroupedAlwaysOnTopState: object;
|
|
164
|
+
};
|
|
165
|
+
export declare type SnapObject = {
|
|
166
|
+
name: string;
|
|
167
|
+
edge: string;
|
|
168
|
+
segment?: Edges | BoundingBox[];
|
|
169
|
+
handle?: string;
|
|
170
|
+
win: DockableWindow;
|
|
171
|
+
};
|
|
172
|
+
export declare type Point = {
|
|
173
|
+
name: string;
|
|
174
|
+
val: XYCoordinates;
|
|
175
|
+
};
|
|
176
|
+
export declare type Corner = {
|
|
177
|
+
window?: string;
|
|
178
|
+
x: number;
|
|
179
|
+
y: number;
|
|
180
|
+
label: string;
|
|
181
|
+
};
|
|
182
|
+
export declare type Edge = {
|
|
183
|
+
window?: string;
|
|
184
|
+
min: {
|
|
185
|
+
x: number;
|
|
186
|
+
y: number;
|
|
187
|
+
};
|
|
188
|
+
max: {
|
|
189
|
+
x: number;
|
|
190
|
+
y: number;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export declare type CornersAndEdges = {
|
|
194
|
+
corners: Corner[];
|
|
195
|
+
edges: Edge[];
|
|
196
|
+
};
|
|
197
|
+
export declare type DockingBounds = {
|
|
198
|
+
left: number;
|
|
199
|
+
right: number;
|
|
200
|
+
height?: number;
|
|
201
|
+
width?: number;
|
|
202
|
+
bottom?: number;
|
|
203
|
+
top?: number;
|
|
204
|
+
internal?: boolean;
|
|
205
|
+
persistBounds?: boolean;
|
|
206
|
+
duration?: number;
|
|
207
|
+
};
|
|
208
|
+
export declare type MoveToParams = {
|
|
209
|
+
top?: number;
|
|
210
|
+
left?: number;
|
|
211
|
+
height?: number;
|
|
212
|
+
name?: string;
|
|
213
|
+
changeType?: number;
|
|
214
|
+
anchor: DockableWindow;
|
|
215
|
+
systemMoved?: boolean;
|
|
216
|
+
triggeredByAutoArrange: boolean;
|
|
217
|
+
};
|
|
218
|
+
export declare type ScaledBounds = {
|
|
219
|
+
left: number;
|
|
220
|
+
top: number;
|
|
221
|
+
width: number;
|
|
222
|
+
height: number;
|
|
223
|
+
right?: number;
|
|
224
|
+
bottom?: number;
|
|
225
|
+
name?: string;
|
|
226
|
+
limits?: number;
|
|
227
|
+
};
|
|
228
|
+
export declare type DockableMonitorParams = {
|
|
229
|
+
dockingMain: DockingMain;
|
|
230
|
+
bounds: BoundingBox;
|
|
231
|
+
monitor: DockableMonitor;
|
|
232
|
+
};
|
|
233
|
+
export declare type DockableMonitorJSON = {
|
|
234
|
+
bounds: BoundingBox;
|
|
235
|
+
availableRect: DockingBounds;
|
|
236
|
+
monitorRect: any;
|
|
237
|
+
name: string;
|
|
238
|
+
top: number;
|
|
239
|
+
right: number;
|
|
240
|
+
bottom: number;
|
|
241
|
+
left: number;
|
|
242
|
+
};
|
|
243
|
+
export declare type DockingConfigOptions = {
|
|
244
|
+
dockable?: boolean;
|
|
245
|
+
isDocked?: boolean;
|
|
246
|
+
dockedWidth?: number;
|
|
247
|
+
dockedHeight?: number;
|
|
248
|
+
height?: number;
|
|
249
|
+
undockedWidth?: number;
|
|
250
|
+
undockedHeight?: number;
|
|
251
|
+
ephemeral?: boolean;
|
|
252
|
+
undockedParams?: DockedDimensions;
|
|
253
|
+
dockedParams?: DockedDimensions;
|
|
254
|
+
startsDocked?: boolean;
|
|
255
|
+
overwriteDockedOptions?: boolean;
|
|
256
|
+
ignoreSnappingRequests?: boolean;
|
|
257
|
+
showTaskbarIcon?: boolean;
|
|
258
|
+
minHeight?: number;
|
|
259
|
+
maxHeight?: number;
|
|
260
|
+
minWidth?: number;
|
|
261
|
+
maxWidth?: number;
|
|
262
|
+
claimSpace?: {
|
|
263
|
+
enabled: boolean;
|
|
264
|
+
alwaysOnTop?: boolean;
|
|
265
|
+
};
|
|
266
|
+
preventOverlapClaimSpace?: boolean;
|
|
267
|
+
BUFFER_SIZE?: number;
|
|
268
|
+
assimilationEnabled?: boolean;
|
|
269
|
+
DEBUG?: boolean;
|
|
270
|
+
ALLOW_GROUPS_TO_SNAP?: boolean;
|
|
271
|
+
GROUP_MODE?: boolean | {
|
|
272
|
+
enabled: boolean;
|
|
273
|
+
behavior: string;
|
|
274
|
+
groupTileBuffer: number;
|
|
275
|
+
headerHeight: number;
|
|
276
|
+
requireRectangularityForGroupResize: number;
|
|
277
|
+
fillHolesOnUndock: boolean;
|
|
278
|
+
undockDisbandsEntireGroup: boolean;
|
|
279
|
+
};
|
|
280
|
+
SNAPPING_OPACITY?: number;
|
|
281
|
+
RESIZE_EVENT_THROTTLE_PERIOD?: number;
|
|
282
|
+
};
|
|
283
|
+
export declare type DefaultDockingOptions = {
|
|
284
|
+
isDockable: boolean;
|
|
285
|
+
undockedWidth: number;
|
|
286
|
+
undockedHeight: number;
|
|
287
|
+
isDocked: boolean;
|
|
288
|
+
dockedWidth: number;
|
|
289
|
+
dockedHeight: number;
|
|
290
|
+
height: number;
|
|
291
|
+
showTaskbarIcon?: boolean;
|
|
292
|
+
locValue?: string;
|
|
293
|
+
};
|
|
294
|
+
export declare const defaultDockingOptions: DefaultDockingOptions;
|
|
295
|
+
export declare type DockedDimensions = {
|
|
296
|
+
width: number;
|
|
297
|
+
height: number;
|
|
298
|
+
alwaysOnTop?: boolean;
|
|
299
|
+
};
|
|
300
|
+
export declare type MonitorDockablePositions = {
|
|
301
|
+
TOP?: number;
|
|
302
|
+
LEFT?: number;
|
|
303
|
+
RIGHT?: number;
|
|
304
|
+
BOTTOM?: number;
|
|
305
|
+
NONE?: number;
|
|
306
|
+
};
|
|
307
|
+
export declare type DockingSimulatedEvent = {
|
|
308
|
+
data: any;
|
|
309
|
+
source?: string;
|
|
310
|
+
};
|
|
311
|
+
export declare type BoundingBoxesDiag = {
|
|
312
|
+
A?: any;
|
|
313
|
+
B?: any;
|
|
314
|
+
C?: any;
|
|
315
|
+
D?: any;
|
|
316
|
+
E?: any;
|
|
317
|
+
F?: any;
|
|
318
|
+
G?: any;
|
|
319
|
+
H?: any;
|
|
320
|
+
I?: any;
|
|
321
|
+
};
|
|
322
|
+
export declare type ResizeObject = {
|
|
323
|
+
handle?: string;
|
|
324
|
+
type?: string;
|
|
325
|
+
scalingGroup?: boolean;
|
|
326
|
+
correctedHandle?: string;
|
|
327
|
+
movingEdges?: {
|
|
328
|
+
top: boolean;
|
|
329
|
+
right: boolean;
|
|
330
|
+
left: boolean;
|
|
331
|
+
bottom: boolean;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/platform/services/window/Docking/types.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,oBAAY,WAAW,GAAG;IACzB,GAAG,EAAE;QACJ,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACV,CAAC;IACF,GAAG,EAAE;QACJ,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;KACV,CAAC;CACF,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,WAA0D,CAAC;AAE1F,oBAAY,eAAe,GAAG;IAC7B,IA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;CACd,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IACnC,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAAE,CAAC,CAAC,EAAE,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAEpH,oBAAY,YAAY,GAAG;IAE1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE;QACb,GAAG,EAAE,OAAO,CAAC;QACb,KAAK,EAAE,OAAO,CAAC;QACf,IAAI,EAAE,OAAO,CAAC;QACd,MAAM,EAAE,OAAO,CAAC;KAChB,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const EmptyBoundingBox = { min: { x: 0, y: 0 }, max: { x: 0, y: 0 } };
|
|
2
|
+
export const InitializedBoxCoordinates = { left: 0, right: 0, top: 0, bottom: 0 };
|
|
3
|
+
export const defaultDockingOptions = {
|
|
4
|
+
isDockable: false,
|
|
5
|
+
undockedWidth: 300,
|
|
6
|
+
undockedHeight: 30,
|
|
7
|
+
isDocked: false,
|
|
8
|
+
dockedWidth: 300,
|
|
9
|
+
dockedHeight: 39,
|
|
10
|
+
height: 39,
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/platform/services/window/Docking/types.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,gBAAgB,GAAgB,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;AAqE1F,MAAM,CAAC,MAAM,yBAAyB,GAAmB,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AA2PlG,MAAM,CAAC,MAAM,qBAAqB,GAA0B;IAC3D,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,GAAG;IAClB,cAAc,EAAE,EAAE;IAClB,QAAQ,EAAE,KAAK;IACf,WAAW,EAAE,GAAG;IAChB,YAAY,EAAE,EAAE;IAChB,MAAM,EAAE,EAAE;CACV,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import DockingCalculator from "../Docking/dockingMain";
|
|
2
|
+
import DockableWindow from "../Docking/dockableWindow";
|
|
3
|
+
import { MonitorDimensions } from "../Docking/types";
|
|
4
|
+
import { FinsembleWindowData } from "../types";
|
|
5
|
+
declare type WindowsData = {
|
|
6
|
+
aspectRatio: number;
|
|
7
|
+
top: number;
|
|
8
|
+
bottom: number;
|
|
9
|
+
left: number;
|
|
10
|
+
right: number;
|
|
11
|
+
dockableWindow: DockableWindow;
|
|
12
|
+
windows?: WindowsData[];
|
|
13
|
+
isGroup?: boolean;
|
|
14
|
+
name?: string;
|
|
15
|
+
};
|
|
16
|
+
declare class AutoArrange {
|
|
17
|
+
isArranged: object;
|
|
18
|
+
DockingCalculator: DockingCalculator;
|
|
19
|
+
constructor(params: any);
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* For more, see {@link https://medium.com/@jtreitz/the-algorithm-for-a-perfectly-balanced-photo-gallery-914c94a5d8af#.c09v4fn1e}. This is a javascript port of a python solution to the linear partition problem.
|
|
23
|
+
* @param {Array} aspectRatios An array of numbers; in this case, aspect ratios.
|
|
24
|
+
* @param {Number} rows Number of rows to distribute aspectRatios across.
|
|
25
|
+
* @returns {Array} ans Returns an array of arrays. Each internal array represents a row.
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
linearPartition(aspectRatios: WindowsData[], rows: number): WindowsData[][];
|
|
29
|
+
/**
|
|
30
|
+
* @private
|
|
31
|
+
* @param {LauncherClient~windowDescriptor} win
|
|
32
|
+
* @param {monitorDimensions} monitorDimensions
|
|
33
|
+
* @returns {boolean} Whether window is on the current monitor.
|
|
34
|
+
*/
|
|
35
|
+
windowOnMonitor(windowDescriptor: any, monitorDimensions: any): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Takes a list of windows and returns only the ones that are subject to being auto-arranged
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
getArrangableWindows(windowDescriptorList: FinsembleWindowData[]): FinsembleWindowData[];
|
|
41
|
+
getWindowsOnMonitor(windowDescriptorList: FinsembleWindowData[], monitorDimensions: MonitorDimensions): WindowsData[];
|
|
42
|
+
/**
|
|
43
|
+
* Get windowData for all windows in the active workspace
|
|
44
|
+
*/
|
|
45
|
+
getAllWindowsInActiveWorkspace(): Promise<FinsembleWindowData[]>;
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves information about the passed in StackedWindow
|
|
48
|
+
* @param {*} win
|
|
49
|
+
*/
|
|
50
|
+
retrieveInformationForStackReconciliation(win: any): Promise<{
|
|
51
|
+
stack: null;
|
|
52
|
+
stackName: string;
|
|
53
|
+
} | {
|
|
54
|
+
stack: FinsembleWindowData | undefined;
|
|
55
|
+
stackName: any;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Given a window, if its a StackedWindow, this will search the monitor's auto arrange cache for any children of the stack
|
|
59
|
+
* and replace the cache representation with the StackedWindow
|
|
60
|
+
* @param {*} win
|
|
61
|
+
*/
|
|
62
|
+
reconcileStackCreationWithAutoArrangedWindows(win: any): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Given a window, if its a StackedWindow, this will search the monitor's auto arrange cache for the remaining window
|
|
65
|
+
* in that stack and will replace the auto arrange cache with the remaining window
|
|
66
|
+
* @param {*} win
|
|
67
|
+
*/
|
|
68
|
+
reconcileStackDeletionWithAutoArrangedWindows(win: any): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* boxesToArrange is a concatenation of windows and groups built into singular objects
|
|
71
|
+
* so they can be treated as 'boxes to rearrange' wrather than individual windows
|
|
72
|
+
*
|
|
73
|
+
* groupBoxes is an array of 'windows' that are actually a group of windows.
|
|
74
|
+
* Built into a single object that looks like a 'window' by the arrangement code
|
|
75
|
+
*/
|
|
76
|
+
private getBoxesToArrange;
|
|
77
|
+
animateWindow(request: any): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Arranges all windows in the current workspace that are visible on the current monitor. For more about the algorithm used to distribute windows across rows, see {@link https://medium.com/@jtreitz/the-algorithm-for-a-perfectly-balanced-photo-gallery-914c94a5d8af#.c09v4fn1e this post}. The algorithm chooses the number of rows by taking the square root of the number of windows on the monitor and rounding down. 3 windows results in 1 row. 4 windows results in 2 rows. 8 windows will be arranged across 2 rows. 9 windows will be arranged across 3 rows. Other breakpoints are 16, 25, and 36.
|
|
80
|
+
* @param {Object} monitorDimensions Monitor dimensions of a given monitor. This value is passed
|
|
81
|
+
* in from {@link util#getMonitorInfo}.
|
|
82
|
+
*/
|
|
83
|
+
arrange(monitorDimensions: MonitorDimensions): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Returns windows to where they were before an auto-arrange occurred.
|
|
86
|
+
*/
|
|
87
|
+
revertArrangedWindows(monitorDimensions: any): void;
|
|
88
|
+
}
|
|
89
|
+
export default AutoArrange;
|
|
90
|
+
//# sourceMappingURL=autoArrange.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autoArrange.d.ts","sourceRoot":"","sources":["../../../../../../src/platform/services/window/MultiWindowFeatures/autoArrange.ts"],"names":[],"mappings":"AAMA,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C,aAAK,WAAW,GAAG;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,cAAc,CAAC;IAC/B,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAWF,cAAM,WAAW;IAChB,UAAU,EAAE,MAAM,CAAC;IAEnB,iBAAiB,EAAE,iBAAiB,CAAC;gBAEzB,MAAM,KAAA;IAKlB;;;;;;;OAOG;IACH,eAAe,CAAC,YAAY,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,EAAE;IAoE3E;;;;;OAKG;IACH,eAAe,CAAC,gBAAgB,KAAA,EAAE,iBAAiB,KAAA;IAKnD;;;OAGG;IACH,oBAAoB,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,GAAG,mBAAmB,EAAE;IAgBxF,mBAAmB,CAAC,oBAAoB,EAAE,mBAAmB,EAAE,EAAE,iBAAiB,EAAE,iBAAiB;IA8DrG;;OAEG;IACG,8BAA8B;IAKpC;;;OAGG;IACG,yCAAyC,CAAC,GAAG,KAAA;;;;;;;IAyBnD;;;;OAIG;IACG,6CAA6C,CAAC,GA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