@owdproject/nuxt 0.0.0-stage → 4.0.0-alpha.4
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/LICENSE +20 -0
- package/README.md +77 -2
- package/dist/kit/authoring.d.ts +88 -0
- package/dist/kit/authoring.js +276 -0
- package/dist/kit/defineDesktopApp.d.ts +1 -0
- package/dist/kit/defineDesktopApp.js +1 -0
- package/dist/kit/defineDesktopPlugin.d.ts +1 -0
- package/dist/kit/defineDesktopPlugin.js +1 -0
- package/dist/module.d.mts +245 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +681 -0
- package/dist/runtime/components/Application/DesktopCoreApplicationRender.d.vue.ts +6 -0
- package/dist/runtime/components/Application/DesktopCoreApplicationRender.vue +18 -0
- package/dist/runtime/components/Application/DesktopCoreApplicationRender.vue.d.ts +6 -0
- package/dist/runtime/components/Application/DesktopCoreApplicationWindowsRender.d.vue.ts +9 -0
- package/dist/runtime/components/Application/DesktopCoreApplicationWindowsRender.vue +31 -0
- package/dist/runtime/components/Application/DesktopCoreApplicationWindowsRender.vue.d.ts +9 -0
- package/dist/runtime/components/DesktopCore.d.vue.ts +19 -0
- package/dist/runtime/components/DesktopCore.vue +37 -0
- package/dist/runtime/components/DesktopCore.vue.d.ts +19 -0
- package/dist/runtime/components/background/DesktopCoreBackground.d.vue.ts +13 -0
- package/dist/runtime/components/background/DesktopCoreBackground.vue +16 -0
- package/dist/runtime/components/background/DesktopCoreBackground.vue.d.ts +13 -0
- package/dist/runtime/components/time/DesktopCoreTime.d.vue.ts +3 -0
- package/dist/runtime/components/time/DesktopCoreTime.vue +44 -0
- package/dist/runtime/components/time/DesktopCoreTime.vue.d.ts +3 -0
- package/dist/runtime/components/window/DesktopCoreWindow.d.vue.ts +49 -0
- package/dist/runtime/components/window/DesktopCoreWindow.vue +438 -0
- package/dist/runtime/components/window/DesktopCoreWindow.vue.d.ts +49 -0
- package/dist/runtime/components/window/DesktopCoreWindowContent.d.vue.ts +13 -0
- package/dist/runtime/components/window/DesktopCoreWindowContent.vue +34 -0
- package/dist/runtime/components/window/DesktopCoreWindowContent.vue.d.ts +13 -0
- package/dist/runtime/components/window/DesktopCoreWindowNav.d.vue.ts +13 -0
- package/dist/runtime/components/window/DesktopCoreWindowNav.vue +54 -0
- package/dist/runtime/components/window/DesktopCoreWindowNav.vue.d.ts +13 -0
- package/dist/runtime/components/window/DesktopCoreWindowSnapHintsBase.d.vue.ts +19 -0
- package/dist/runtime/components/window/DesktopCoreWindowSnapHintsBase.vue +46 -0
- package/dist/runtime/components/window/DesktopCoreWindowSnapHintsBase.vue.d.ts +19 -0
- package/dist/runtime/components/workspace/DesktopCoreWorkspaceEdgeHintsBase.d.vue.ts +24 -0
- package/dist/runtime/components/workspace/DesktopCoreWorkspaceEdgeHintsBase.vue +50 -0
- package/dist/runtime/components/workspace/DesktopCoreWorkspaceEdgeHintsBase.vue.d.ts +24 -0
- package/dist/runtime/composables/application/state.d.ts +1 -0
- package/dist/runtime/composables/application/state.js +2 -0
- package/dist/runtime/composables/application/useDesktopApplicationDefine.d.ts +4 -0
- package/dist/runtime/composables/application/useDesktopApplicationDefine.js +36 -0
- package/dist/runtime/composables/application/useDesktopApplicationExec.d.ts +3 -0
- package/dist/runtime/composables/application/useDesktopApplicationExec.js +26 -0
- package/dist/runtime/composables/application/useDesktopApplicationProcess.d.ts +24 -0
- package/dist/runtime/composables/application/useDesktopApplicationProcess.js +140 -0
- package/dist/runtime/composables/application/useDesktopApplicationRegistry.d.ts +11 -0
- package/dist/runtime/composables/application/useDesktopApplicationRegistry.js +60 -0
- package/dist/runtime/composables/useApplicationEntries.d.ts +5 -0
- package/dist/runtime/composables/useApplicationEntries.js +10 -0
- package/dist/runtime/composables/useApplicationManager.d.ts +16 -0
- package/dist/runtime/composables/useApplicationManager.js +30 -0
- package/dist/runtime/composables/useBlockNonInputContextMenu.d.ts +5 -0
- package/dist/runtime/composables/useBlockNonInputContextMenu.js +19 -0
- package/dist/runtime/composables/useDesktop.d.ts +210 -0
- package/dist/runtime/composables/useDesktop.js +52 -0
- package/dist/runtime/composables/useDesktopApplication.d.ts +34 -0
- package/dist/runtime/composables/useDesktopApplication.js +17 -0
- package/dist/runtime/composables/useDesktopCommands.d.ts +12 -0
- package/dist/runtime/composables/useDesktopCommands.js +348 -0
- package/dist/runtime/composables/useDesktopConfig.d.ts +3 -0
- package/dist/runtime/composables/useDesktopConfig.js +10 -0
- package/dist/runtime/composables/useDesktopDefaultApps.d.ts +15 -0
- package/dist/runtime/composables/useDesktopDefaultApps.js +21 -0
- package/dist/runtime/composables/useDesktopDialogs.d.ts +5 -0
- package/dist/runtime/composables/useDesktopDialogs.js +8 -0
- package/dist/runtime/composables/useDesktopDrag.d.ts +1 -0
- package/dist/runtime/composables/useDesktopDrag.js +1 -0
- package/dist/runtime/composables/useDesktopHooks.d.ts +15 -0
- package/dist/runtime/composables/useDesktopHooks.js +12 -0
- package/dist/runtime/composables/useDesktopIPC.d.ts +35 -0
- package/dist/runtime/composables/useDesktopIPC.js +72 -0
- package/dist/runtime/composables/useDesktopIdentity.d.ts +22 -0
- package/dist/runtime/composables/useDesktopIdentity.js +65 -0
- package/dist/runtime/composables/useDesktopManifest.d.ts +6 -0
- package/dist/runtime/composables/useDesktopManifest.js +17 -0
- package/dist/runtime/composables/useDesktopNotification.d.ts +13 -0
- package/dist/runtime/composables/useDesktopNotification.js +13 -0
- package/dist/runtime/composables/useDesktopResize.d.ts +1 -0
- package/dist/runtime/composables/useDesktopResize.js +1 -0
- package/dist/runtime/composables/useDesktopSession.d.ts +4 -0
- package/dist/runtime/composables/useDesktopSession.js +17 -0
- package/dist/runtime/composables/useDesktopShellIdentity.d.ts +1 -0
- package/dist/runtime/composables/useDesktopShellIdentity.js +3 -0
- package/dist/runtime/composables/useDesktopShellOptions.d.ts +5 -0
- package/dist/runtime/composables/useDesktopShellOptions.js +18 -0
- package/dist/runtime/composables/useDesktopTray.d.ts +5 -0
- package/dist/runtime/composables/useDesktopTray.js +10 -0
- package/dist/runtime/composables/useDesktopVolume.d.ts +4 -0
- package/dist/runtime/composables/useDesktopVolume.js +9 -0
- package/dist/runtime/composables/useDesktopWorkArea.d.ts +1 -0
- package/dist/runtime/composables/useDesktopWorkArea.js +3 -0
- package/dist/runtime/composables/useDesktopWorkarea.d.ts +12 -0
- package/dist/runtime/composables/useDesktopWorkarea.js +72 -0
- package/dist/runtime/composables/useTerminalManager.d.ts +15 -0
- package/dist/runtime/composables/useTerminalManager.js +9 -0
- package/dist/runtime/composables/useToggleWindowMaximize.d.ts +1 -0
- package/dist/runtime/composables/useToggleWindowMaximize.js +12 -0
- package/dist/runtime/composables/useWindowDragHandlers.d.ts +7 -0
- package/dist/runtime/composables/useWindowDragHandlers.js +7 -0
- package/dist/runtime/composables/window/useDesktopWindow.d.ts +14 -0
- package/dist/runtime/composables/window/useDesktopWindow.js +192 -0
- package/dist/runtime/composables/window/useDesktopWindowSnapDrop.d.ts +13 -0
- package/dist/runtime/composables/window/useDesktopWindowSnapDrop.js +78 -0
- package/dist/runtime/composables/workspace/useDesktopWorkspaceEdgeDrop.d.ts +25 -0
- package/dist/runtime/composables/workspace/useDesktopWorkspaceEdgeDrop.js +119 -0
- package/dist/runtime/composables/workspace/useDesktopWorkspaceManager.d.ts +8 -0
- package/dist/runtime/composables/workspace/useDesktopWorkspaceManager.js +46 -0
- package/dist/runtime/composables/workspace/useDesktopWorkspaceOverviewCapture.d.ts +20 -0
- package/dist/runtime/composables/workspace/useDesktopWorkspaceOverviewCapture.js +60 -0
- package/dist/runtime/composables/workspace/useDesktopWorkspaceOverviewLiveScale.d.ts +31 -0
- package/dist/runtime/composables/workspace/useDesktopWorkspaceOverviewLiveScale.js +92 -0
- package/dist/runtime/constants/desktopShellKeys.d.ts +5 -0
- package/dist/runtime/constants/desktopShellKeys.js +2 -0
- package/dist/runtime/constants/shellLayout.d.ts +4 -0
- package/dist/runtime/constants/shellLayout.js +2 -0
- package/dist/runtime/dialogs/desktopDialogProvider.d.ts +6 -0
- package/dist/runtime/dialogs/desktopDialogProvider.js +12 -0
- package/dist/runtime/internal/controllers/ApplicationController.d.ts +44 -0
- package/dist/runtime/internal/controllers/ApplicationController.js +470 -0
- package/dist/runtime/internal/controllers/WindowController.d.ts +83 -0
- package/dist/runtime/internal/controllers/WindowController.js +435 -0
- package/dist/runtime/plugins/01.desktop-shell-init.client.d.ts +2 -0
- package/dist/runtime/plugins/01.desktop-shell-init.client.js +18 -0
- package/dist/runtime/plugins/02.desktop-register-desktop-apps.client.d.ts +2 -0
- package/dist/runtime/plugins/02.desktop-register-desktop-apps.client.js +7 -0
- package/dist/runtime/stores/storeApplicationMeta.d.ts +2 -0
- package/dist/runtime/stores/storeApplicationMeta.js +30 -0
- package/dist/runtime/stores/storeApplicationWindows.d.ts +2 -0
- package/dist/runtime/stores/storeApplicationWindows.js +43 -0
- package/dist/runtime/stores/storeDesktop.d.ts +17 -0
- package/dist/runtime/stores/storeDesktop.js +29 -0
- package/dist/runtime/stores/storeDesktopDefaultApps.d.ts +8 -0
- package/dist/runtime/stores/storeDesktopDefaultApps.js +21 -0
- package/dist/runtime/stores/storeDesktopTray.d.ts +6 -0
- package/dist/runtime/stores/storeDesktopTray.js +21 -0
- package/dist/runtime/stores/storeDesktopVolume.d.ts +4 -0
- package/dist/runtime/stores/storeDesktopVolume.js +12 -0
- package/dist/runtime/stores/storeDesktopWorkspace.d.ts +26 -0
- package/dist/runtime/stores/storeDesktopWorkspace.js +103 -0
- package/dist/runtime/stores/storeNotification.d.ts +27 -0
- package/dist/runtime/stores/storeNotification.js +62 -0
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/utils/defineDesktopApp.d.ts +2 -0
- package/dist/runtime/utils/defineDesktopApp.js +5 -0
- package/dist/runtime/utils/defineDesktopPlugin.d.ts +19 -0
- package/dist/runtime/utils/defineDesktopPlugin.js +29 -0
- package/dist/runtime/utils/utilApp.d.ts +2 -0
- package/dist/runtime/utils/utilApp.js +9 -0
- package/dist/runtime/utils/utilCaptureElementToCanvas.d.ts +1 -0
- package/dist/runtime/utils/utilCaptureElementToCanvas.js +21 -0
- package/dist/runtime/utils/utilDebug.d.ts +4 -0
- package/dist/runtime/utils/utilDebug.js +24 -0
- package/dist/runtime/utils/utilDetectSnapZone.d.ts +1 -0
- package/dist/runtime/utils/utilDetectSnapZone.js +5 -0
- package/dist/runtime/utils/utilWindowControllerAdapter.d.ts +2 -0
- package/dist/runtime/utils/utilWindowControllerAdapter.js +151 -0
- package/dist/runtime/utils/utilWindowLayout.d.ts +4 -0
- package/dist/runtime/utils/utilWindowLayout.js +34 -0
- package/dist/runtime/utils/utilWorkspaceWindows.d.ts +2 -0
- package/dist/runtime/utils/utilWorkspaceWindows.js +12 -0
- package/dist/types/index.d.ts +164 -0
- package/dist/types/index.js +1 -0
- package/dist/types.d.mts +2 -0
- package/package.json +151 -4
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import * as _owdproject_core from '@owdproject/core';
|
|
3
|
+
import { WindowConfig, WindowState, WindowSize, WindowPosition, WindowLayout, Desktop, DesktopOptions, WindowInstance, ApplicationInstance, WorkspaceState, DesktopCommand, DesktopKernelEvent, WindowManager, WindowBounds, DesktopWorkareaRect, SnapZoneHint, ResizeDirection, WindowOverride, WindowStoredState, WindowSizeValue } from '@owdproject/core';
|
|
4
|
+
export * from '@owdproject/core';
|
|
5
|
+
import { Raw, Component, ShallowRef, ComputedRef } from 'vue';
|
|
6
|
+
export { defineDesktopConfig, defineDesktopModule, defineDesktopTheme, hasDesktopModule, mergeDesktopExtensionConfig, setDesktopExtensionConfig } from '../dist/kit/authoring.js';
|
|
7
|
+
export * from '../dist/types/index.js';
|
|
8
|
+
|
|
9
|
+
interface DesktopWindowConfig extends Omit<WindowConfig, 'component'> {
|
|
10
|
+
component?: Raw<Component> | any;
|
|
11
|
+
}
|
|
12
|
+
interface IDesktopWindowActions {
|
|
13
|
+
setActive(value: boolean): void;
|
|
14
|
+
setFocus(value: boolean): void;
|
|
15
|
+
bringToFront(): void;
|
|
16
|
+
focus(): void;
|
|
17
|
+
setPosition(data: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
}): void;
|
|
21
|
+
startDrag(): void;
|
|
22
|
+
stopDrag(): void;
|
|
23
|
+
startResize(): void;
|
|
24
|
+
stopResize(): void;
|
|
25
|
+
setSize(data: {
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
}): void;
|
|
29
|
+
minimize(): boolean;
|
|
30
|
+
unminimize(): boolean;
|
|
31
|
+
toggleMinimize(): void;
|
|
32
|
+
toggleMaximize(): boolean;
|
|
33
|
+
maximize(): boolean;
|
|
34
|
+
unmaximize(): boolean;
|
|
35
|
+
setLayout(layout: WindowLayout): boolean;
|
|
36
|
+
clearLayout(): boolean;
|
|
37
|
+
saveBoundsBeforeLayout(): void;
|
|
38
|
+
destroy(): boolean;
|
|
39
|
+
setWorkspace(workspaceId: string): void;
|
|
40
|
+
setTitleOverride(value: undefined | string): void;
|
|
41
|
+
resetTitleOverride(): void;
|
|
42
|
+
setWindowTitleOverride(value: undefined | string): void;
|
|
43
|
+
resetWindowTitleOverride(): void;
|
|
44
|
+
}
|
|
45
|
+
interface IDesktopWindowController {
|
|
46
|
+
application: any;
|
|
47
|
+
instanced: boolean;
|
|
48
|
+
model: string;
|
|
49
|
+
stateValue: string;
|
|
50
|
+
config: DesktopWindowConfig;
|
|
51
|
+
override: Record<string, any>;
|
|
52
|
+
state: WindowState;
|
|
53
|
+
meta: any;
|
|
54
|
+
title: string;
|
|
55
|
+
windowTitle: string;
|
|
56
|
+
icon: string | undefined;
|
|
57
|
+
size: WindowSize;
|
|
58
|
+
position: WindowPosition | undefined;
|
|
59
|
+
isMinimizable: boolean;
|
|
60
|
+
isMaximizable: boolean;
|
|
61
|
+
isMaximized: boolean;
|
|
62
|
+
isDestroyable: boolean;
|
|
63
|
+
isDraggable: boolean;
|
|
64
|
+
isResizable: boolean;
|
|
65
|
+
actions: IDesktopWindowActions;
|
|
66
|
+
menu: any[];
|
|
67
|
+
setMenu(menu: any[]): void;
|
|
68
|
+
dispose(): void;
|
|
69
|
+
destroy(): boolean;
|
|
70
|
+
startDrag(): void;
|
|
71
|
+
stopDrag(): void;
|
|
72
|
+
startResize(): void;
|
|
73
|
+
stopResize(): void;
|
|
74
|
+
}
|
|
75
|
+
/** Desktop shell configuration, shared by inline options and desktop.config.ts. */
|
|
76
|
+
interface DesktopConfig {
|
|
77
|
+
theme?: string;
|
|
78
|
+
apps?: string[];
|
|
79
|
+
modules?: string[];
|
|
80
|
+
coreVersion?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Stable identity of this desktop distribution (e.g. `'atproto-os'`).
|
|
83
|
+
* Namespaces the persisted profile (AT Protocol record rkeys and local
|
|
84
|
+
* IndexedDB keys) so two different OWD products never share state.
|
|
85
|
+
*/
|
|
86
|
+
id?: string;
|
|
87
|
+
/** Directories a desktop distribution collects extensions from (see {@link DesktopExtensionDirs}). */
|
|
88
|
+
collect?: DesktopExtensionDirs;
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Directories a desktop distribution collects extensions from, relative to its root.
|
|
93
|
+
* Convention: one directory per extension kind. The monorepo keeps framework modules
|
|
94
|
+
* under `packages/`, so the `modules` slot lists both.
|
|
95
|
+
*/
|
|
96
|
+
interface DesktopExtensionDirs {
|
|
97
|
+
apps: string[];
|
|
98
|
+
modules: string[];
|
|
99
|
+
themes: string[];
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare function useDesktop(desktopOrOptions?: Desktop | DesktopOptions): {
|
|
103
|
+
desktop: Desktop;
|
|
104
|
+
windows: ShallowRef<readonly WindowInstance[]>;
|
|
105
|
+
applications: ShallowRef<readonly ApplicationInstance[]>;
|
|
106
|
+
workspace: ShallowRef<WorkspaceState>;
|
|
107
|
+
commands: ShallowRef<readonly DesktopCommand[]>;
|
|
108
|
+
events: ShallowRef<readonly DesktopKernelEvent[]>;
|
|
109
|
+
focusedWindow: ComputedRef<WindowInstance | undefined>;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
declare function useWindowManager(manager?: WindowManager): {
|
|
113
|
+
windows: ShallowRef<WindowInstance[]>;
|
|
114
|
+
focused: ComputedRef<WindowInstance | undefined>;
|
|
115
|
+
manager: WindowManager;
|
|
116
|
+
};
|
|
117
|
+
declare const useVueWindowManager: typeof useWindowManager;
|
|
118
|
+
|
|
119
|
+
declare function useWindowInstance(instance: WindowInstance): {
|
|
120
|
+
state: ShallowRef<WindowState>;
|
|
121
|
+
instance: WindowInstance;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
interface DesktopDragOptions {
|
|
125
|
+
getBounds: () => WindowBounds;
|
|
126
|
+
getWorkarea?: () => DesktopWorkareaRect | undefined;
|
|
127
|
+
onStart?: () => void;
|
|
128
|
+
onMove?: (bounds: WindowBounds, snapZone: SnapZoneHint | null) => void;
|
|
129
|
+
onEnd?: (finalBounds: WindowBounds, snapZone: SnapZoneHint | null) => void;
|
|
130
|
+
onCancel?: () => void;
|
|
131
|
+
}
|
|
132
|
+
declare function useDesktopDrag(options: DesktopDragOptions): {
|
|
133
|
+
startDrag: (event: PointerEvent) => () => void;
|
|
134
|
+
};
|
|
135
|
+
interface DesktopResizeOptions {
|
|
136
|
+
getBounds: () => WindowBounds;
|
|
137
|
+
minWidth?: number;
|
|
138
|
+
minHeight?: number;
|
|
139
|
+
maxWidth?: number;
|
|
140
|
+
maxHeight?: number;
|
|
141
|
+
onStart?: () => void;
|
|
142
|
+
onMove?: (bounds: WindowBounds) => void;
|
|
143
|
+
onEnd?: (finalBounds: WindowBounds) => void;
|
|
144
|
+
onCancel?: () => void;
|
|
145
|
+
}
|
|
146
|
+
declare function useDesktopResize(options: DesktopResizeOptions): {
|
|
147
|
+
startResize: (event: PointerEvent, direction: ResizeDirection) => () => void;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
declare class WindowController implements IDesktopWindowController {
|
|
151
|
+
readonly application: any;
|
|
152
|
+
readonly instanced: boolean;
|
|
153
|
+
readonly model: string;
|
|
154
|
+
private readonly _stateValue;
|
|
155
|
+
get stateValue(): string;
|
|
156
|
+
config: WindowConfig;
|
|
157
|
+
override: WindowOverride;
|
|
158
|
+
private storedState;
|
|
159
|
+
private windowActor;
|
|
160
|
+
private isDisposed;
|
|
161
|
+
readonly actions: IDesktopWindowActions;
|
|
162
|
+
constructor(application: any, model: string, windowConfig: WindowConfig, windowStoredState: WindowStoredState, options?: {
|
|
163
|
+
onFocus?: (win: WindowController) => void;
|
|
164
|
+
onLayoutChange?: (win: WindowController, layout: WindowLayout) => void;
|
|
165
|
+
getWorkarea?: () => {
|
|
166
|
+
x: number;
|
|
167
|
+
y: number;
|
|
168
|
+
width: number;
|
|
169
|
+
height: number;
|
|
170
|
+
};
|
|
171
|
+
incrementPositionZ?: () => number;
|
|
172
|
+
getWindows?: () => WindowController[];
|
|
173
|
+
});
|
|
174
|
+
private setConfig;
|
|
175
|
+
get state(): WindowState;
|
|
176
|
+
private restoreState;
|
|
177
|
+
get meta(): any;
|
|
178
|
+
setPosition(data: {
|
|
179
|
+
x: number;
|
|
180
|
+
y: number;
|
|
181
|
+
}): void;
|
|
182
|
+
setActive(value: boolean): void;
|
|
183
|
+
setFocus(value: boolean): void;
|
|
184
|
+
focus(): void;
|
|
185
|
+
get title(): string;
|
|
186
|
+
get windowTitle(): string;
|
|
187
|
+
get icon(): any;
|
|
188
|
+
get position(): _owdproject_core.WindowPosition | undefined;
|
|
189
|
+
get size(): {
|
|
190
|
+
width: WindowSizeValue;
|
|
191
|
+
height: WindowSizeValue;
|
|
192
|
+
minWidth: WindowSizeValue;
|
|
193
|
+
maxWidth: WindowSizeValue;
|
|
194
|
+
minHeight: WindowSizeValue;
|
|
195
|
+
maxHeight: WindowSizeValue;
|
|
196
|
+
};
|
|
197
|
+
setSize(data: {
|
|
198
|
+
width: number;
|
|
199
|
+
height: number;
|
|
200
|
+
}): void;
|
|
201
|
+
get isMinimizable(): boolean;
|
|
202
|
+
minimize(): boolean;
|
|
203
|
+
unminimize(): boolean;
|
|
204
|
+
toggleMinimize(): void;
|
|
205
|
+
get isMaximizable(): boolean;
|
|
206
|
+
get isMaximized(): boolean;
|
|
207
|
+
private parseSizeValue;
|
|
208
|
+
saveBoundsBeforeLayout(): void;
|
|
209
|
+
setLayout(layout: WindowLayout): boolean;
|
|
210
|
+
clearLayout(): boolean;
|
|
211
|
+
toggleMaximize(): boolean;
|
|
212
|
+
maximize(): boolean;
|
|
213
|
+
unmaximize(): boolean;
|
|
214
|
+
get isDestroyable(): boolean;
|
|
215
|
+
dispose(): void;
|
|
216
|
+
destroy(): boolean;
|
|
217
|
+
get isDraggable(): boolean;
|
|
218
|
+
get isResizable(): boolean;
|
|
219
|
+
setWorkspace(workspaceId: string): void;
|
|
220
|
+
startDrag(): void;
|
|
221
|
+
stopDrag(): void;
|
|
222
|
+
startResize(): void;
|
|
223
|
+
stopResize(): void;
|
|
224
|
+
setTitleOverride(value: undefined | string): void;
|
|
225
|
+
resetTitleOverride(): void;
|
|
226
|
+
setWindowTitleOverride(value: undefined | string): void;
|
|
227
|
+
resetWindowTitleOverride(): void;
|
|
228
|
+
menu: any[];
|
|
229
|
+
setMenu(menu: any[]): void;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
declare const _default: _nuxt_schema.NuxtModule<DesktopConfig, DesktopConfig, false>;
|
|
233
|
+
|
|
234
|
+
type ModuleOptions = DesktopConfig;
|
|
235
|
+
declare module '@nuxt/schema' {
|
|
236
|
+
interface NuxtConfig {
|
|
237
|
+
desktop?: DesktopConfig;
|
|
238
|
+
}
|
|
239
|
+
interface NuxtOptions {
|
|
240
|
+
desktop?: DesktopConfig;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export { WindowController, _default as default, useDesktop, useDesktopDrag, useDesktopResize, useVueWindowManager, useWindowInstance, useWindowManager };
|
|
245
|
+
export type { DesktopDragOptions, DesktopResizeOptions, ModuleOptions };
|
package/dist/module.json
ADDED