@surdeddd/wmkit 0.5.0 → 0.6.0
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/dist/angular.cjs +3 -3
- package/dist/angular.d.cts +1 -1
- package/dist/angular.d.ts +1 -1
- package/dist/angular.js +1 -1
- package/dist/{binder-EBroZTRw.d.cts → binder-CQzQJdVj.d.cts} +13 -0
- package/dist/{binder-Ca3GOfZX.d.ts → binder-CkmOoo1U.d.ts} +13 -0
- package/dist/{chunk-L43XBN44.js → chunk-3HLKVOSI.js} +301 -80
- package/dist/chunk-3HLKVOSI.js.map +1 -0
- package/dist/{chunk-RXAMUBUJ.cjs → chunk-DYZQY3BE.cjs} +301 -80
- package/dist/chunk-DYZQY3BE.cjs.map +1 -0
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/react.cjs +3 -3
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +1 -1
- package/dist/solid.cjs +3 -3
- package/dist/solid.d.cts +1 -1
- package/dist/solid.d.ts +1 -1
- package/dist/solid.js +1 -1
- package/dist/svelte.cjs +3 -3
- package/dist/svelte.d.cts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/svelte.js +1 -1
- package/dist/themes/glass.css +68 -2
- package/dist/themes/light.css +68 -2
- package/dist/themes/retro.css +46 -1
- package/dist/vue.cjs +3 -3
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.ts +1 -1
- package/dist/vue.js +1 -1
- package/package.json +7 -7
- package/dist/chunk-L43XBN44.js.map +0 -1
- package/dist/chunk-RXAMUBUJ.cjs.map +0 -1
package/dist/angular.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDYZQY3BE_cjs = require('./chunk-DYZQY3BE.cjs');
|
|
4
4
|
var core = require('@angular/core');
|
|
5
5
|
|
|
6
6
|
function onDestroy(dispose) {
|
|
@@ -13,7 +13,7 @@ function onDestroy(dispose) {
|
|
|
13
13
|
destroyRef?.onDestroy(dispose);
|
|
14
14
|
}
|
|
15
15
|
function useWindowManager(options) {
|
|
16
|
-
const wm =
|
|
16
|
+
const wm = chunkDYZQY3BE_cjs.createWindowManager(options);
|
|
17
17
|
onDestroy(() => wm.destroy());
|
|
18
18
|
return wm;
|
|
19
19
|
}
|
|
@@ -28,7 +28,7 @@ function useWmWindow(wm, id) {
|
|
|
28
28
|
return core.computed(() => state().windows[id]);
|
|
29
29
|
}
|
|
30
30
|
function createDesktop(wm, options) {
|
|
31
|
-
const binder =
|
|
31
|
+
const binder = chunkDYZQY3BE_cjs.createDesktopBinder(wm, options);
|
|
32
32
|
onDestroy(() => binder.destroy());
|
|
33
33
|
return {
|
|
34
34
|
binder,
|
package/dist/angular.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Signal } from '@angular/core';
|
|
2
2
|
import { W as WindowManager, M as ManagerOptions, a as ManagerState, b as WindowState } from './types-LP7Inhxx.cjs';
|
|
3
|
-
import { D as DesktopBinder, W as WindowAttachOptions, a as DesktopOptions } from './binder-
|
|
3
|
+
import { D as DesktopBinder, W as WindowAttachOptions, a as DesktopOptions } from './binder-CQzQJdVj.cjs';
|
|
4
4
|
|
|
5
5
|
declare function useWindowManager(options?: ManagerOptions): WindowManager;
|
|
6
6
|
declare function useWmState(wm: WindowManager): Signal<ManagerState>;
|
package/dist/angular.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Signal } from '@angular/core';
|
|
2
2
|
import { W as WindowManager, M as ManagerOptions, a as ManagerState, b as WindowState } from './types-LP7Inhxx.js';
|
|
3
|
-
import { D as DesktopBinder, W as WindowAttachOptions, a as DesktopOptions } from './binder-
|
|
3
|
+
import { D as DesktopBinder, W as WindowAttachOptions, a as DesktopOptions } from './binder-CkmOoo1U.js';
|
|
4
4
|
|
|
5
5
|
declare function useWindowManager(options?: ManagerOptions): WindowManager;
|
|
6
6
|
declare function useWmState(wm: WindowManager): Signal<ManagerState>;
|
package/dist/angular.js
CHANGED
|
@@ -57,6 +57,11 @@ interface MagnetismOptions {
|
|
|
57
57
|
interface GroupingOptions {
|
|
58
58
|
dwell?: number;
|
|
59
59
|
}
|
|
60
|
+
interface StackingOptions {
|
|
61
|
+
base?: number;
|
|
62
|
+
gap?: number;
|
|
63
|
+
isolate?: boolean;
|
|
64
|
+
}
|
|
60
65
|
interface DesktopOptions {
|
|
61
66
|
grouping?: boolean | GroupingOptions;
|
|
62
67
|
snap?: boolean | DesktopSnapOptions;
|
|
@@ -65,9 +70,17 @@ interface DesktopOptions {
|
|
|
65
70
|
autoViewport?: boolean;
|
|
66
71
|
hitAreas?: HitAreaOptions;
|
|
67
72
|
magnetism?: boolean | MagnetismOptions;
|
|
73
|
+
stacking?: StackingOptions;
|
|
74
|
+
animation?: boolean | AnimationOptions;
|
|
75
|
+
interactiveSelector?: string;
|
|
76
|
+
beforeClose?: (window: WindowState) => boolean | void;
|
|
68
77
|
minimizeTarget?: (window: WindowState) => Element | null;
|
|
69
78
|
onTitlebarContextMenu?: (window: WindowState, event: MouseEvent) => void;
|
|
70
79
|
}
|
|
80
|
+
interface AnimationOptions {
|
|
81
|
+
duration?: number;
|
|
82
|
+
easing?: string;
|
|
83
|
+
}
|
|
71
84
|
interface WindowAttachOptions {
|
|
72
85
|
handle?: HTMLElement | string;
|
|
73
86
|
resizeHandles?: boolean;
|
|
@@ -57,6 +57,11 @@ interface MagnetismOptions {
|
|
|
57
57
|
interface GroupingOptions {
|
|
58
58
|
dwell?: number;
|
|
59
59
|
}
|
|
60
|
+
interface StackingOptions {
|
|
61
|
+
base?: number;
|
|
62
|
+
gap?: number;
|
|
63
|
+
isolate?: boolean;
|
|
64
|
+
}
|
|
60
65
|
interface DesktopOptions {
|
|
61
66
|
grouping?: boolean | GroupingOptions;
|
|
62
67
|
snap?: boolean | DesktopSnapOptions;
|
|
@@ -65,9 +70,17 @@ interface DesktopOptions {
|
|
|
65
70
|
autoViewport?: boolean;
|
|
66
71
|
hitAreas?: HitAreaOptions;
|
|
67
72
|
magnetism?: boolean | MagnetismOptions;
|
|
73
|
+
stacking?: StackingOptions;
|
|
74
|
+
animation?: boolean | AnimationOptions;
|
|
75
|
+
interactiveSelector?: string;
|
|
76
|
+
beforeClose?: (window: WindowState) => boolean | void;
|
|
68
77
|
minimizeTarget?: (window: WindowState) => Element | null;
|
|
69
78
|
onTitlebarContextMenu?: (window: WindowState, event: MouseEvent) => void;
|
|
70
79
|
}
|
|
80
|
+
interface AnimationOptions {
|
|
81
|
+
duration?: number;
|
|
82
|
+
easing?: string;
|
|
83
|
+
}
|
|
71
84
|
interface WindowAttachOptions {
|
|
72
85
|
handle?: HTMLElement | string;
|
|
73
86
|
resizeHandles?: boolean;
|