@seelen-ui/lib 2.5.3 → 2.5.8-next.2604111036
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/esm/gen/types/ClipboardData.d.ts +15 -0
- package/esm/gen/types/ClipboardData.d.ts.map +1 -0
- package/esm/gen/types/ClipboardEntry.d.ts +24 -0
- package/esm/gen/types/ClipboardEntry.d.ts.map +1 -0
- package/esm/gen/types/ClipboardEntryContent.d.ts +16 -0
- package/esm/gen/types/ClipboardEntryContent.d.ts.map +1 -0
- package/esm/gen/types/FancyToolbarSettings.d.ts +10 -2
- package/esm/gen/types/FancyToolbarSettings.d.ts.map +1 -1
- package/esm/gen/types/{PinnedWegItemData.d.ts → OldWegItemData.d.ts} +5 -10
- package/esm/gen/types/OldWegItemData.d.ts.map +1 -0
- package/esm/gen/types/{WegItemSubtype.d.ts → OldWegItemSubtype.d.ts} +2 -2
- package/esm/gen/types/OldWegItemSubtype.d.ts.map +1 -0
- package/esm/gen/types/OldWegItemSubtype.js +8 -0
- package/esm/gen/types/Relaunch.d.ts +20 -0
- package/esm/gen/types/Relaunch.d.ts.map +1 -0
- package/esm/gen/types/Relaunch.js +1 -0
- package/esm/gen/types/Resource.d.ts +12 -5
- package/esm/gen/types/Resource.d.ts.map +1 -1
- package/esm/gen/types/ResourceId.d.ts +6 -2
- package/esm/gen/types/ResourceId.d.ts.map +1 -1
- package/esm/gen/types/ResourceMetadata.d.ts +4 -0
- package/esm/gen/types/ResourceMetadata.d.ts.map +1 -1
- package/esm/gen/types/ResourcePendingUpdate.d.ts +20 -0
- package/esm/gen/types/ResourcePendingUpdate.d.ts.map +1 -0
- package/esm/gen/types/ResourcePendingUpdate.js +1 -0
- package/esm/gen/types/SeelenCommandArgument.d.ts +26 -2
- package/esm/gen/types/SeelenCommandArgument.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandClipboardDeleteEntryArgs.d.ts +4 -0
- package/esm/gen/types/SeelenCommandClipboardDeleteEntryArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandClipboardDeleteEntryArgs.js +2 -0
- package/esm/gen/types/SeelenCommandClipboardPasteArgs.d.ts +4 -0
- package/esm/gen/types/SeelenCommandClipboardPasteArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandClipboardPasteArgs.js +2 -0
- package/esm/gen/types/SeelenCommandClipboardSetContentArgs.d.ts +4 -0
- package/esm/gen/types/SeelenCommandClipboardSetContentArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandClipboardSetContentArgs.js +2 -0
- package/esm/gen/types/SeelenCommandReturn.d.ts +25 -0
- package/esm/gen/types/SeelenCommandReturn.d.ts.map +1 -1
- package/esm/gen/types/SeelenEventPayload.d.ts +13 -3
- package/esm/gen/types/SeelenEventPayload.d.ts.map +1 -1
- package/esm/gen/types/SeelenSession.d.ts +15 -0
- package/esm/gen/types/SeelenSession.d.ts.map +1 -0
- package/esm/gen/types/SeelenSession.js +2 -0
- package/esm/gen/types/SeelenWegSettings.d.ts +4 -0
- package/esm/gen/types/SeelenWegSettings.d.ts.map +1 -1
- package/esm/gen/types/Settings.d.ts +9 -0
- package/esm/gen/types/Settings.d.ts.map +1 -1
- package/esm/gen/types/SluHotkeyAction.d.ts +2 -0
- package/esm/gen/types/SluHotkeyAction.d.ts.map +1 -1
- package/esm/gen/types/Slug.d.ts +9 -0
- package/esm/gen/types/Slug.d.ts.map +1 -0
- package/esm/gen/types/Slug.js +2 -0
- package/esm/gen/types/TrashBinInfo.d.ts +11 -0
- package/esm/gen/types/TrashBinInfo.d.ts.map +1 -0
- package/esm/gen/types/TrashBinInfo.js +2 -0
- package/esm/gen/types/UserAppWindow.d.ts +9 -0
- package/esm/gen/types/UserAppWindow.d.ts.map +1 -1
- package/esm/gen/types/WegItem.d.ts +9 -5
- package/esm/gen/types/WegItem.d.ts.map +1 -1
- package/esm/gen/types/WegItemData.d.ts +32 -0
- package/esm/gen/types/WegItemData.d.ts.map +1 -0
- package/esm/gen/types/WegItemData.js +1 -0
- package/esm/gen/types/WegItemType.d.ts +3 -3
- package/esm/gen/types/WegItemType.d.ts.map +1 -1
- package/esm/gen/types/WegItemType.js +2 -2
- package/esm/gen/types/mod.d.ts +252 -242
- package/esm/gen/types/mod.d.ts.map +1 -1
- package/esm/gen/types/mod.js +252 -242
- package/esm/src/handlers/commands.d.ts +12 -1
- package/esm/src/handlers/commands.d.ts.map +1 -1
- package/esm/src/handlers/commands.js +11 -0
- package/esm/src/handlers/events.d.ts +6 -3
- package/esm/src/handlers/events.d.ts.map +1 -1
- package/esm/src/handlers/events.js +5 -2
- package/esm/src/state/icon_pack.d.ts.map +1 -1
- package/esm/src/state/icon_pack.js +11 -2
- package/esm/src/state/mod.d.ts +0 -2
- package/esm/src/state/mod.d.ts.map +1 -1
- package/esm/src/state/mod.js +0 -2
- package/esm/src/state/theme/theming.d.ts +1 -0
- package/esm/src/state/theme/theming.d.ts.map +1 -1
- package/esm/src/state/theme/theming.js +21 -1
- package/esm/src/state/widget/interfaces.d.ts +17 -0
- package/esm/src/state/widget/interfaces.d.ts.map +1 -1
- package/esm/src/state/widget/mod.d.ts +15 -9
- package/esm/src/state/widget/mod.d.ts.map +1 -1
- package/esm/src/state/widget/mod.js +87 -94
- package/esm/src/state/widget/performance.d.ts +2 -0
- package/esm/src/state/widget/performance.d.ts.map +1 -0
- package/esm/src/state/widget/performance.js +18 -0
- package/esm/src/state/widget/sizing.d.ts +14 -3
- package/esm/src/state/widget/sizing.d.ts.map +1 -1
- package/esm/src/state/widget/sizing.js +61 -18
- package/esm/src/system_state/ui_colors.d.ts +0 -2
- package/esm/src/system_state/ui_colors.d.ts.map +1 -1
- package/esm/src/system_state/ui_colors.js +0 -8
- package/esm/src/utils/async.d.ts +12 -0
- package/esm/src/utils/async.d.ts.map +1 -1
- package/esm/src/utils/async.js +46 -0
- package/esm/src/utils/mod.d.ts +1 -0
- package/esm/src/utils/mod.d.ts.map +1 -1
- package/esm/src/utils/mod.js +4 -0
- package/package.json +1 -1
- package/script/gen/types/ClipboardData.d.ts +15 -0
- package/script/gen/types/ClipboardData.d.ts.map +1 -0
- package/script/gen/types/ClipboardEntry.d.ts +24 -0
- package/script/gen/types/ClipboardEntry.d.ts.map +1 -0
- package/script/gen/types/ClipboardEntryContent.d.ts +16 -0
- package/script/gen/types/ClipboardEntryContent.d.ts.map +1 -0
- package/script/gen/types/FancyToolbarSettings.d.ts +10 -2
- package/script/gen/types/FancyToolbarSettings.d.ts.map +1 -1
- package/script/gen/types/{PinnedWegItemData.d.ts → OldWegItemData.d.ts} +5 -10
- package/script/gen/types/OldWegItemData.d.ts.map +1 -0
- package/script/gen/types/{WegItemSubtype.d.ts → OldWegItemSubtype.d.ts} +2 -2
- package/script/gen/types/OldWegItemSubtype.d.ts.map +1 -0
- package/script/gen/types/OldWegItemSubtype.js +11 -0
- package/script/gen/types/Relaunch.d.ts +20 -0
- package/script/gen/types/Relaunch.d.ts.map +1 -0
- package/script/gen/types/Relaunch.js +2 -0
- package/script/gen/types/Resource.d.ts +12 -5
- package/script/gen/types/Resource.d.ts.map +1 -1
- package/script/gen/types/ResourceId.d.ts +6 -2
- package/script/gen/types/ResourceId.d.ts.map +1 -1
- package/script/gen/types/ResourceMetadata.d.ts +4 -0
- package/script/gen/types/ResourceMetadata.d.ts.map +1 -1
- package/script/gen/types/ResourcePendingUpdate.d.ts +20 -0
- package/script/gen/types/ResourcePendingUpdate.d.ts.map +1 -0
- package/script/gen/types/ResourcePendingUpdate.js +2 -0
- package/script/gen/types/SeelenCommandArgument.d.ts +26 -2
- package/script/gen/types/SeelenCommandArgument.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandClipboardDeleteEntryArgs.d.ts +4 -0
- package/script/gen/types/SeelenCommandClipboardDeleteEntryArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandClipboardDeleteEntryArgs.js +3 -0
- package/script/gen/types/SeelenCommandClipboardPasteArgs.d.ts +4 -0
- package/script/gen/types/SeelenCommandClipboardPasteArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandClipboardPasteArgs.js +3 -0
- package/script/gen/types/SeelenCommandClipboardSetContentArgs.d.ts +4 -0
- package/script/gen/types/SeelenCommandClipboardSetContentArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandClipboardSetContentArgs.js +3 -0
- package/script/gen/types/SeelenCommandReturn.d.ts +25 -0
- package/script/gen/types/SeelenCommandReturn.d.ts.map +1 -1
- package/script/gen/types/SeelenEventPayload.d.ts +13 -3
- package/script/gen/types/SeelenEventPayload.d.ts.map +1 -1
- package/script/gen/types/SeelenSession.d.ts +15 -0
- package/script/gen/types/SeelenSession.d.ts.map +1 -0
- package/script/gen/types/SeelenSession.js +3 -0
- package/script/gen/types/SeelenWegSettings.d.ts +4 -0
- package/script/gen/types/SeelenWegSettings.d.ts.map +1 -1
- package/script/gen/types/Settings.d.ts +9 -0
- package/script/gen/types/Settings.d.ts.map +1 -1
- package/script/gen/types/SluHotkeyAction.d.ts +2 -0
- package/script/gen/types/SluHotkeyAction.d.ts.map +1 -1
- package/script/gen/types/Slug.d.ts +9 -0
- package/script/gen/types/Slug.d.ts.map +1 -0
- package/script/gen/types/Slug.js +3 -0
- package/script/gen/types/TrashBinInfo.d.ts +11 -0
- package/script/gen/types/TrashBinInfo.d.ts.map +1 -0
- package/script/gen/types/TrashBinInfo.js +3 -0
- package/script/gen/types/UserAppWindow.d.ts +9 -0
- package/script/gen/types/UserAppWindow.d.ts.map +1 -1
- package/script/gen/types/WegItem.d.ts +9 -5
- package/script/gen/types/WegItem.d.ts.map +1 -1
- package/script/gen/types/WegItemData.d.ts +32 -0
- package/script/gen/types/WegItemData.d.ts.map +1 -0
- package/script/gen/types/WegItemData.js +2 -0
- package/script/gen/types/WegItemType.d.ts +3 -3
- package/script/gen/types/WegItemType.d.ts.map +1 -1
- package/script/gen/types/WegItemType.js +2 -2
- package/script/gen/types/mod.d.ts +252 -242
- package/script/gen/types/mod.d.ts.map +1 -1
- package/script/gen/types/mod.js +252 -242
- package/script/src/handlers/commands.d.ts +12 -1
- package/script/src/handlers/commands.d.ts.map +1 -1
- package/script/src/handlers/commands.js +11 -0
- package/script/src/handlers/events.d.ts +6 -3
- package/script/src/handlers/events.d.ts.map +1 -1
- package/script/src/handlers/events.js +5 -2
- package/script/src/state/icon_pack.d.ts.map +1 -1
- package/script/src/state/icon_pack.js +11 -2
- package/script/src/state/mod.d.ts +0 -2
- package/script/src/state/mod.d.ts.map +1 -1
- package/script/src/state/mod.js +0 -2
- package/script/src/state/theme/theming.d.ts +1 -0
- package/script/src/state/theme/theming.d.ts.map +1 -1
- package/script/src/state/theme/theming.js +22 -1
- package/script/src/state/widget/interfaces.d.ts +17 -0
- package/script/src/state/widget/interfaces.d.ts.map +1 -1
- package/script/src/state/widget/mod.d.ts +15 -9
- package/script/src/state/widget/mod.d.ts.map +1 -1
- package/script/src/state/widget/mod.js +86 -93
- package/script/src/state/widget/performance.d.ts +2 -0
- package/script/src/state/widget/performance.d.ts.map +1 -0
- package/script/src/state/widget/performance.js +21 -0
- package/script/src/state/widget/sizing.d.ts +14 -3
- package/script/src/state/widget/sizing.d.ts.map +1 -1
- package/script/src/state/widget/sizing.js +62 -19
- package/script/src/system_state/ui_colors.d.ts +0 -2
- package/script/src/system_state/ui_colors.d.ts.map +1 -1
- package/script/src/system_state/ui_colors.js +0 -8
- package/script/src/utils/async.d.ts +12 -0
- package/script/src/utils/async.d.ts.map +1 -1
- package/script/src/utils/async.js +49 -0
- package/script/src/utils/mod.d.ts +1 -0
- package/script/src/utils/mod.d.ts.map +1 -1
- package/script/src/utils/mod.js +5 -0
- package/esm/gen/types/PinnedWegItemData.d.ts.map +0 -1
- package/esm/gen/types/SeelenCommandStateGetWegItemsArgs.d.ts +0 -5
- package/esm/gen/types/SeelenCommandStateGetWegItemsArgs.d.ts.map +0 -1
- package/esm/gen/types/WegAppGroupItem.d.ts +0 -12
- package/esm/gen/types/WegAppGroupItem.d.ts.map +0 -1
- package/esm/gen/types/WegItemSubtype.d.ts.map +0 -1
- package/esm/gen/types/WegItemSubtype.js +0 -8
- package/esm/src/state/weg_items.d.ts +0 -14
- package/esm/src/state/weg_items.d.ts.map +0 -1
- package/esm/src/state/weg_items.js +0 -23
- package/esm/src/state/wm_layout.d.ts +0 -2
- package/esm/src/state/wm_layout.d.ts.map +0 -1
- package/script/gen/types/PinnedWegItemData.d.ts.map +0 -1
- package/script/gen/types/SeelenCommandStateGetWegItemsArgs.d.ts +0 -5
- package/script/gen/types/SeelenCommandStateGetWegItemsArgs.d.ts.map +0 -1
- package/script/gen/types/WegAppGroupItem.d.ts +0 -12
- package/script/gen/types/WegAppGroupItem.d.ts.map +0 -1
- package/script/gen/types/WegItemSubtype.d.ts.map +0 -1
- package/script/gen/types/WegItemSubtype.js +0 -11
- package/script/src/state/weg_items.d.ts +0 -14
- package/script/src/state/weg_items.d.ts.map +0 -1
- package/script/src/state/weg_items.js +0 -27
- package/script/src/state/wm_layout.d.ts +0 -2
- package/script/src/state/wm_layout.d.ts.map +0 -1
- /package/esm/gen/types/{PinnedWegItemData.js → ClipboardData.js} +0 -0
- /package/esm/gen/types/{SeelenCommandStateGetWegItemsArgs.js → ClipboardEntry.js} +0 -0
- /package/esm/gen/types/{WegAppGroupItem.js → ClipboardEntryContent.js} +0 -0
- /package/esm/{src/state/wm_layout.js → gen/types/OldWegItemData.js} +0 -0
- /package/script/gen/types/{PinnedWegItemData.js → ClipboardData.js} +0 -0
- /package/script/gen/types/{SeelenCommandStateGetWegItemsArgs.js → ClipboardEntry.js} +0 -0
- /package/script/gen/types/{WegAppGroupItem.js → ClipboardEntryContent.js} +0 -0
- /package/script/{src/state/wm_layout.js → gen/types/OldWegItemData.js} +0 -0
|
@@ -1,24 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WidgetAutoSizer = void 0;
|
|
4
|
-
const dpi_1 = require("@tauri-apps/api/dpi");
|
|
3
|
+
exports.WidgetAutoSizer = exports.OPTIMISTIC_FRAME = void 0;
|
|
5
4
|
const mod_js_1 = require("../../../gen/types/mod.js");
|
|
5
|
+
const async_js_1 = require("../../utils/async.js");
|
|
6
|
+
const positioning_js_1 = require("./positioning.js");
|
|
7
|
+
class OptimisiticFrame {
|
|
8
|
+
x = 0;
|
|
9
|
+
y = 0;
|
|
10
|
+
width = 0;
|
|
11
|
+
height = 0;
|
|
12
|
+
async init(widget) {
|
|
13
|
+
const { width, height } = await widget.window.outerSize();
|
|
14
|
+
const { x, y } = await widget.window.outerPosition();
|
|
15
|
+
this.width = width;
|
|
16
|
+
this.height = height;
|
|
17
|
+
this.x = x;
|
|
18
|
+
this.y = y;
|
|
19
|
+
widget.window.onResized((e) => {
|
|
20
|
+
exports.OPTIMISTIC_FRAME.runExclusive((ref) => {
|
|
21
|
+
ref.width = e.payload.width;
|
|
22
|
+
ref.height = e.payload.height;
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
widget.window.onMoved((e) => {
|
|
26
|
+
exports.OPTIMISTIC_FRAME.runExclusive((ref) => {
|
|
27
|
+
ref.x = e.payload.x;
|
|
28
|
+
ref.y = e.payload.y;
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.OPTIMISTIC_FRAME = new async_js_1.Mutex(new OptimisiticFrame());
|
|
6
34
|
class WidgetAutoSizer {
|
|
7
35
|
widget;
|
|
8
36
|
element;
|
|
37
|
+
fitOnScreen;
|
|
9
38
|
/** From which side the widget will grow */
|
|
10
|
-
originX
|
|
39
|
+
originX;
|
|
11
40
|
/** From which side the widget will grow */
|
|
12
|
-
originY
|
|
13
|
-
constructor(widget, element) {
|
|
41
|
+
originY;
|
|
42
|
+
constructor(widget, element, fitOnScreen) {
|
|
14
43
|
this.widget = widget;
|
|
15
44
|
this.element = element;
|
|
45
|
+
this.fitOnScreen = fitOnScreen;
|
|
16
46
|
this.execute = this.execute.bind(this);
|
|
17
47
|
this.setup();
|
|
18
48
|
}
|
|
19
49
|
setup() {
|
|
20
50
|
// Disable resizing by the user
|
|
21
|
-
this.widget.
|
|
51
|
+
this.widget.window.setResizable(false);
|
|
52
|
+
this.widget.onTrigger(({ alignX, alignY }) => {
|
|
53
|
+
exports.OPTIMISTIC_FRAME.runExclusive(() => {
|
|
54
|
+
this.originX = alignX;
|
|
55
|
+
this.originY = alignY;
|
|
56
|
+
});
|
|
57
|
+
});
|
|
22
58
|
const observer = new ResizeObserver(this.execute);
|
|
23
59
|
observer.observe(this.element, {
|
|
24
60
|
box: "border-box",
|
|
@@ -28,8 +64,9 @@ class WidgetAutoSizer {
|
|
|
28
64
|
};
|
|
29
65
|
}
|
|
30
66
|
async execute() {
|
|
31
|
-
const
|
|
32
|
-
const
|
|
67
|
+
const guard = await exports.OPTIMISTIC_FRAME.acquire();
|
|
68
|
+
const { x, y, width, height } = guard.value;
|
|
69
|
+
let frame = {
|
|
33
70
|
x,
|
|
34
71
|
y,
|
|
35
72
|
width: Math.ceil(this.element.scrollWidth * globalThis.window.devicePixelRatio),
|
|
@@ -39,9 +76,12 @@ class WidgetAutoSizer {
|
|
|
39
76
|
const heightDiff = frame.height - height;
|
|
40
77
|
// Only update if the difference is more than 1px (avoid infinite loops from decimal differences)
|
|
41
78
|
if (widthDiff === 0 && heightDiff === 0) {
|
|
79
|
+
guard.release();
|
|
42
80
|
return;
|
|
43
81
|
}
|
|
44
|
-
console.
|
|
82
|
+
/* console.debug(
|
|
83
|
+
`Auto resizing from ${width}x${height} to ${frame.width}x${frame.height} using ${this.originX}/${this.originY} origin`,
|
|
84
|
+
); */
|
|
45
85
|
if (this.originX === mod_js_1.Alignment.Center) {
|
|
46
86
|
frame.x -= widthDiff / 2;
|
|
47
87
|
}
|
|
@@ -54,17 +94,20 @@ class WidgetAutoSizer {
|
|
|
54
94
|
else if (this.originY === mod_js_1.Alignment.End) {
|
|
55
95
|
frame.y -= heightDiff;
|
|
56
96
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
97
|
+
if (this.fitOnScreen) {
|
|
98
|
+
frame = (0, positioning_js_1.fitIntoMonitor)(frame);
|
|
99
|
+
}
|
|
100
|
+
try {
|
|
101
|
+
await this.widget.__unsafe_setPosition({
|
|
102
|
+
left: frame.x,
|
|
103
|
+
top: frame.y,
|
|
104
|
+
right: frame.x + frame.width,
|
|
105
|
+
bottom: frame.y + frame.height,
|
|
106
|
+
}, guard.value);
|
|
107
|
+
}
|
|
108
|
+
finally {
|
|
109
|
+
guard.release();
|
|
61
110
|
}
|
|
62
|
-
await this.widget.setPosition({
|
|
63
|
-
left: frame.x,
|
|
64
|
-
top: frame.y,
|
|
65
|
-
right: frame.x + frame.width,
|
|
66
|
-
bottom: frame.y + frame.height,
|
|
67
|
-
});
|
|
68
111
|
}
|
|
69
112
|
}
|
|
70
113
|
exports.WidgetAutoSizer = WidgetAutoSizer;
|
|
@@ -23,8 +23,6 @@ export declare class Color {
|
|
|
23
23
|
* the name will be parsed to lower kebab case and remove non-alphanumeric characters
|
|
24
24
|
* this will create some css variables as:\
|
|
25
25
|
* `--color-{name}` -> #RRGGBBAA\
|
|
26
|
-
* `--color-{name}-rgb` -> R, G, B
|
|
27
|
-
* `--color-{name}-rgba` -> R, G, B, A
|
|
28
26
|
*/
|
|
29
27
|
setAsCssVariable(name: string): void;
|
|
30
28
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui_colors.d.ts","sourceRoot":"","sources":["../../../src/src/system_state/ui_colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGnF,OAAO,KAAK,EAAE,KAAK,IAAI,MAAM,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAErF,qBAAa,QAAQ;IACA,KAAK,EAAE,SAAS;gBAAhB,KAAK,EAAE,SAAS;IAEnC,MAAM,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIpC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC;IAIvE,MAAM,CAAC,OAAO,IAAI,QAAQ;IAe1B,iBAAiB,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"ui_colors.d.ts","sourceRoot":"","sources":["../../../src/src/system_state/ui_colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGnF,OAAO,KAAK,EAAE,KAAK,IAAI,MAAM,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAErF,qBAAa,QAAQ;IACA,KAAK,EAAE,SAAS;gBAAhB,KAAK,EAAE,SAAS;IAEnC,MAAM,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIpC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC;IAIvE,MAAM,CAAC,OAAO,IAAI,QAAQ;IAe1B,iBAAiB,IAAI,IAAI;CA2B1B;AAED,MAAM,WAAW,KAAM,SAAQ,MAAM;CAAG;AAExC,qBAAa,KAAK;gBACJ,GAAG,EAAE,MAAM;IAOvB,qCAAqC;IACrC,MAAM,CAAC,MAAM,IAAI,KAAK;IAStB,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK;IAyBlC,WAAW,IAAI,MAAM;IAUrB,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,oBAAoB;IAkB5B;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAWpC;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM;IAYzC,aAAa,IAAI,KAAK;CAQvB"}
|
|
@@ -45,10 +45,6 @@ class UIColors {
|
|
|
45
45
|
oldStyles.addVariable(`--config-${name}-color-rgb`, `${r}, ${g}, ${b}`);
|
|
46
46
|
if (name.startsWith("accent")) {
|
|
47
47
|
newStyles.addVariable(`--system-${name}-color`, value.slice(0, 7));
|
|
48
|
-
newStyles.addVariable(`--system-${name}-color-rgb`, `${r}, ${g}, ${b}`);
|
|
49
|
-
const complement = color.complementary();
|
|
50
|
-
newStyles.addVariable(`--system-${name}-complementary-color`, complement.toHexString());
|
|
51
|
-
newStyles.addVariable(`--system-${name}-complementary-color-rgb`, `${complement.r}, ${complement.g}, ${complement.b}`);
|
|
52
48
|
}
|
|
53
49
|
}
|
|
54
50
|
oldStyles.applyToDocument();
|
|
@@ -132,8 +128,6 @@ class Color {
|
|
|
132
128
|
* the name will be parsed to lower kebab case and remove non-alphanumeric characters
|
|
133
129
|
* this will create some css variables as:\
|
|
134
130
|
* `--color-{name}` -> #RRGGBBAA\
|
|
135
|
-
* `--color-{name}-rgb` -> R, G, B
|
|
136
|
-
* `--color-{name}-rgba` -> R, G, B, A
|
|
137
131
|
*/
|
|
138
132
|
setAsCssVariable(name) {
|
|
139
133
|
const parsedName = name
|
|
@@ -142,8 +136,6 @@ class Color {
|
|
|
142
136
|
.toLowerCase();
|
|
143
137
|
this.insertIntoStyleSheet({
|
|
144
138
|
[`--color-${parsedName}`]: this.toHexString(),
|
|
145
|
-
[`--color-${parsedName}-rgb`]: `${this.r}, ${this.g}, ${this.b}`,
|
|
146
|
-
[`--color-${parsedName}-rgba`]: `${this.r}, ${this.g}, ${this.b}, ${this.a}`,
|
|
147
139
|
});
|
|
148
140
|
}
|
|
149
141
|
/**
|
|
@@ -5,4 +5,16 @@ export interface DebouncedFunction<T extends (...args: any[]) => any> {
|
|
|
5
5
|
pending(): boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function debounce<T extends (...args: any[]) => any>(fn: T, delay: number): DebouncedFunction<T>;
|
|
8
|
+
export declare class Mutex<T> {
|
|
9
|
+
private _rawValue;
|
|
10
|
+
constructor(_rawValue: T);
|
|
11
|
+
private lock;
|
|
12
|
+
acquire(): Promise<Guard<T>>;
|
|
13
|
+
runExclusive<U>(fn: (v: T) => U): Promise<U>;
|
|
14
|
+
}
|
|
15
|
+
export declare class Guard<T> {
|
|
16
|
+
value: T;
|
|
17
|
+
release: () => void;
|
|
18
|
+
constructor(value: T, release: () => void);
|
|
19
|
+
}
|
|
8
20
|
//# sourceMappingURL=async.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../../src/src/utils/async.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;IAClE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAC/B,MAAM,IAAI,IAAI,CAAC;IACf,KAAK,IAAI,IAAI,CAAC;IACd,OAAO,IAAI,OAAO,CAAC;CACpB;AAGD,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,EAAE,EAAE,CAAC,EACL,KAAK,EAAE,MAAM,GACZ,iBAAiB,CAAC,CAAC,CAAC,CA6CtB"}
|
|
1
|
+
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../../src/src/utils/async.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;IAClE,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAC/B,MAAM,IAAI,IAAI,CAAC;IACf,KAAK,IAAI,IAAI,CAAC;IACd,OAAO,IAAI,OAAO,CAAC;CACpB;AAGD,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACxD,EAAE,EAAE,CAAC,EACL,KAAK,EAAE,MAAM,GACZ,iBAAiB,CAAC,CAAC,CAAC,CA6CtB;AAED,qBAAa,KAAK,CAAC,CAAC;IACN,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,CAAC;IAEhC,OAAO,CAAC,IAAI,CAII;IAEV,OAAO,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IA0B5B,YAAY,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAQnD;AAED,qBAAa,KAAK,CAAC,CAAC;IAET,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,MAAM,IAAI;gBADnB,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,MAAM,IAAI;CAE7B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Guard = exports.Mutex = void 0;
|
|
3
4
|
exports.debounce = debounce;
|
|
4
5
|
// deno-lint-ignore no-explicit-any
|
|
5
6
|
function debounce(fn, delay) {
|
|
@@ -40,3 +41,51 @@ function debounce(fn, delay) {
|
|
|
40
41
|
};
|
|
41
42
|
return debounced;
|
|
42
43
|
}
|
|
44
|
+
class Mutex {
|
|
45
|
+
_rawValue;
|
|
46
|
+
constructor(_rawValue) {
|
|
47
|
+
this._rawValue = _rawValue;
|
|
48
|
+
}
|
|
49
|
+
lock = null;
|
|
50
|
+
async acquire() {
|
|
51
|
+
if (this.lock) {
|
|
52
|
+
await this.lock.__promise;
|
|
53
|
+
}
|
|
54
|
+
// deno-lint-ignore no-explicit-any
|
|
55
|
+
let __resolve;
|
|
56
|
+
// deno-lint-ignore no-explicit-any
|
|
57
|
+
let __reject;
|
|
58
|
+
const __promise = new Promise((resolve, reject) => {
|
|
59
|
+
__resolve = resolve;
|
|
60
|
+
__reject = reject;
|
|
61
|
+
});
|
|
62
|
+
this.lock = {
|
|
63
|
+
__promise,
|
|
64
|
+
__resolve,
|
|
65
|
+
__reject,
|
|
66
|
+
};
|
|
67
|
+
return new Guard(this._rawValue, () => {
|
|
68
|
+
this.lock = null;
|
|
69
|
+
__resolve();
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
async runExclusive(fn) {
|
|
73
|
+
const guard = await this.acquire();
|
|
74
|
+
try {
|
|
75
|
+
return await fn(guard.value);
|
|
76
|
+
}
|
|
77
|
+
finally {
|
|
78
|
+
guard.release();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.Mutex = Mutex;
|
|
83
|
+
class Guard {
|
|
84
|
+
value;
|
|
85
|
+
release;
|
|
86
|
+
constructor(value, release) {
|
|
87
|
+
this.value = value;
|
|
88
|
+
this.release = release;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.Guard = Guard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/utils/mod.ts"],"names":[],"mappings":"AAAA,qBAAa,IAAI;IACf,IAAI,SAAK;IACT,GAAG,SAAK;IACR,KAAK,SAAK;IACV,MAAM,SAAK;CACZ"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/utils/mod.ts"],"names":[],"mappings":"AAAA,qBAAa,IAAI;IACf,IAAI,SAAK;IACT,GAAG,SAAK;IACR,KAAK,SAAK;IACV,MAAM,SAAK;CACZ;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAG3C"}
|
package/script/src/utils/mod.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Rect = void 0;
|
|
4
|
+
exports.isSeelenUIRuntime = isSeelenUIRuntime;
|
|
4
5
|
class Rect {
|
|
5
6
|
left = 0;
|
|
6
7
|
top = 0;
|
|
@@ -8,3 +9,7 @@ class Rect {
|
|
|
8
9
|
bottom = 0;
|
|
9
10
|
}
|
|
10
11
|
exports.Rect = Rect;
|
|
12
|
+
function isSeelenUIRuntime() {
|
|
13
|
+
// deno-lint-ignore no-explicit-any
|
|
14
|
+
return !!globalThis.window.__SLU_WIDGET;
|
|
15
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PinnedWegItemData.d.ts","sourceRoot":"","sources":["../../../src/gen/types/PinnedWegItemData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACvC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAChC;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SeelenCommandStateGetWegItemsArgs.d.ts","sourceRoot":"","sources":["../../../src/gen/types/SeelenCommandStateGetWegItemsArgs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,iCAAiC,GAAG;IAAE,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type WegAppGroupItem = {
|
|
2
|
-
handle: number;
|
|
3
|
-
title: string;
|
|
4
|
-
isIconic: boolean;
|
|
5
|
-
isZoomed: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* last time the app was active, timestamp in milliseconds,
|
|
8
|
-
* could be 0 if we don't know when the app was actived
|
|
9
|
-
*/
|
|
10
|
-
lastActive: number;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=WegAppGroupItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WegAppGroupItem.d.ts","sourceRoot":"","sources":["../../../src/gen/types/WegAppGroupItem.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IACpG;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;CAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WegItemSubtype.d.ts","sourceRoot":"","sources":["../../../src/gen/types/WegItemSubtype.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc;IAAG,MAAM,SAAS;IAAE,QAAQ,WAAW;IAAE,KAAK,QAAQ;IAAE,eAAe,kBAAkB;CAAE"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
-
export var WegItemSubtype;
|
|
3
|
-
(function (WegItemSubtype) {
|
|
4
|
-
WegItemSubtype["File"] = "File";
|
|
5
|
-
WegItemSubtype["Folder"] = "Folder";
|
|
6
|
-
WegItemSubtype["App"] = "App";
|
|
7
|
-
WegItemSubtype["UnknownV2_1_6"] = "UnknownV2_1_6";
|
|
8
|
-
})(WegItemSubtype || (WegItemSubtype = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { MonitorId, WegItems as IWegItems } from "../../gen/types/mod.js";
|
|
2
|
-
import { type UnSubscriber } from "../handlers/mod.js";
|
|
3
|
-
export declare class WegItems {
|
|
4
|
-
inner: IWegItems;
|
|
5
|
-
constructor(inner: IWegItems);
|
|
6
|
-
/** Will return the weg items state without filtering by monitor */
|
|
7
|
-
static getNonFiltered(): Promise<WegItems>;
|
|
8
|
-
/** Will return the weg items state for a specific monitor */
|
|
9
|
-
static getForMonitor(monitorId: MonitorId): Promise<WegItems>;
|
|
10
|
-
static onChange(cb: () => void): Promise<UnSubscriber>;
|
|
11
|
-
/** Will store the weg items placeoments on disk */
|
|
12
|
-
save(): Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=weg_items.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"weg_items.d.ts","sourceRoot":"","sources":["../../../src/src/state/weg_items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAiD,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGtG,qBAAa,QAAQ;IACA,KAAK,EAAE,SAAS;gBAAhB,KAAK,EAAE,SAAS;IAEnC,mEAAmE;IACnE,MAAM,CAAC,cAAc,IAAI,OAAO,CAAC,QAAQ,CAAC;IAI1C,6DAA6D;IAC7D,MAAM,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI7D,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC;IAItD,mDAAmD;IACnD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { invoke, SeelenCommand, SeelenEvent, subscribe } from "../handlers/mod.js";
|
|
2
|
-
import { newFromInvoke } from "../utils/State.js";
|
|
3
|
-
export class WegItems {
|
|
4
|
-
inner;
|
|
5
|
-
constructor(inner) {
|
|
6
|
-
this.inner = inner;
|
|
7
|
-
}
|
|
8
|
-
/** Will return the weg items state without filtering by monitor */
|
|
9
|
-
static getNonFiltered() {
|
|
10
|
-
return newFromInvoke(this, SeelenCommand.StateGetWegItems);
|
|
11
|
-
}
|
|
12
|
-
/** Will return the weg items state for a specific monitor */
|
|
13
|
-
static getForMonitor(monitorId) {
|
|
14
|
-
return newFromInvoke(this, SeelenCommand.StateGetWegItems, { monitorId });
|
|
15
|
-
}
|
|
16
|
-
static onChange(cb) {
|
|
17
|
-
return subscribe(SeelenEvent.StateWegItemsChanged, () => cb());
|
|
18
|
-
}
|
|
19
|
-
/** Will store the weg items placeoments on disk */
|
|
20
|
-
save() {
|
|
21
|
-
return invoke(SeelenCommand.StateWriteWegItems, { items: this.inner });
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wm_layout.d.ts","sourceRoot":"","sources":["../../../src/src/state/wm_layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PinnedWegItemData.d.ts","sourceRoot":"","sources":["../../../src/gen/types/PinnedWegItemData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACvC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAChC;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SeelenCommandStateGetWegItemsArgs.d.ts","sourceRoot":"","sources":["../../../src/gen/types/SeelenCommandStateGetWegItemsArgs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,iCAAiC,GAAG;IAAE,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type WegAppGroupItem = {
|
|
2
|
-
handle: number;
|
|
3
|
-
title: string;
|
|
4
|
-
isIconic: boolean;
|
|
5
|
-
isZoomed: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* last time the app was active, timestamp in milliseconds,
|
|
8
|
-
* could be 0 if we don't know when the app was actived
|
|
9
|
-
*/
|
|
10
|
-
lastActive: number;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=WegAppGroupItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WegAppGroupItem.d.ts","sourceRoot":"","sources":["../../../src/gen/types/WegAppGroupItem.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IACpG;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;CAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WegItemSubtype.d.ts","sourceRoot":"","sources":["../../../src/gen/types/WegItemSubtype.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc;IAAG,MAAM,SAAS;IAAE,QAAQ,WAAW;IAAE,KAAK,QAAQ;IAAE,eAAe,kBAAkB;CAAE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WegItemSubtype = void 0;
|
|
5
|
-
var WegItemSubtype;
|
|
6
|
-
(function (WegItemSubtype) {
|
|
7
|
-
WegItemSubtype["File"] = "File";
|
|
8
|
-
WegItemSubtype["Folder"] = "Folder";
|
|
9
|
-
WegItemSubtype["App"] = "App";
|
|
10
|
-
WegItemSubtype["UnknownV2_1_6"] = "UnknownV2_1_6";
|
|
11
|
-
})(WegItemSubtype || (exports.WegItemSubtype = WegItemSubtype = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { MonitorId, WegItems as IWegItems } from "../../gen/types/mod.js";
|
|
2
|
-
import { type UnSubscriber } from "../handlers/mod.js";
|
|
3
|
-
export declare class WegItems {
|
|
4
|
-
inner: IWegItems;
|
|
5
|
-
constructor(inner: IWegItems);
|
|
6
|
-
/** Will return the weg items state without filtering by monitor */
|
|
7
|
-
static getNonFiltered(): Promise<WegItems>;
|
|
8
|
-
/** Will return the weg items state for a specific monitor */
|
|
9
|
-
static getForMonitor(monitorId: MonitorId): Promise<WegItems>;
|
|
10
|
-
static onChange(cb: () => void): Promise<UnSubscriber>;
|
|
11
|
-
/** Will store the weg items placeoments on disk */
|
|
12
|
-
save(): Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=weg_items.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"weg_items.d.ts","sourceRoot":"","sources":["../../../src/src/state/weg_items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAiD,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGtG,qBAAa,QAAQ;IACA,KAAK,EAAE,SAAS;gBAAhB,KAAK,EAAE,SAAS;IAEnC,mEAAmE;IACnE,MAAM,CAAC,cAAc,IAAI,OAAO,CAAC,QAAQ,CAAC;IAI1C,6DAA6D;IAC7D,MAAM,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI7D,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC;IAItD,mDAAmD;IACnD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtB"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WegItems = void 0;
|
|
4
|
-
const mod_js_1 = require("../handlers/mod.js");
|
|
5
|
-
const State_js_1 = require("../utils/State.js");
|
|
6
|
-
class WegItems {
|
|
7
|
-
inner;
|
|
8
|
-
constructor(inner) {
|
|
9
|
-
this.inner = inner;
|
|
10
|
-
}
|
|
11
|
-
/** Will return the weg items state without filtering by monitor */
|
|
12
|
-
static getNonFiltered() {
|
|
13
|
-
return (0, State_js_1.newFromInvoke)(this, mod_js_1.SeelenCommand.StateGetWegItems);
|
|
14
|
-
}
|
|
15
|
-
/** Will return the weg items state for a specific monitor */
|
|
16
|
-
static getForMonitor(monitorId) {
|
|
17
|
-
return (0, State_js_1.newFromInvoke)(this, mod_js_1.SeelenCommand.StateGetWegItems, { monitorId });
|
|
18
|
-
}
|
|
19
|
-
static onChange(cb) {
|
|
20
|
-
return (0, mod_js_1.subscribe)(mod_js_1.SeelenEvent.StateWegItemsChanged, () => cb());
|
|
21
|
-
}
|
|
22
|
-
/** Will store the weg items placeoments on disk */
|
|
23
|
-
save() {
|
|
24
|
-
return (0, mod_js_1.invoke)(mod_js_1.SeelenCommand.StateWriteWegItems, { items: this.inner });
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.WegItems = WegItems;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wm_layout.d.ts","sourceRoot":"","sources":["../../../src/src/state/wm_layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|