@seelen-ui/lib 2.6.10 → 2.7.1
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/ContextMenuItem.d.ts +1 -0
- package/esm/gen/types/ContextMenuItem.d.ts.map +1 -1
- package/esm/gen/types/Dialog.d.ts +10 -0
- package/esm/gen/types/Dialog.d.ts.map +1 -0
- package/esm/gen/types/{SluPopupContent.d.ts → DialogContent.d.ts} +11 -10
- package/esm/gen/types/DialogContent.d.ts.map +1 -0
- package/esm/gen/types/ImeState.d.ts +151 -0
- package/esm/gen/types/ImeState.d.ts.map +1 -0
- package/esm/gen/types/KeyboardLayout.d.ts +3 -2
- package/esm/gen/types/KeyboardLayout.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandArgument.d.ts +13 -13
- package/esm/gen/types/SeelenCommandArgument.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandDeleteUserCustomAppIconArgs.d.ts +5 -0
- package/esm/gen/types/SeelenCommandDeleteUserCustomAppIconArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandRegisterUserCustomAppIconArgs.d.ts +6 -0
- package/esm/gen/types/SeelenCommandRegisterUserCustomAppIconArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandReturn.d.ts +10 -10
- package/esm/gen/types/SeelenCommandReturn.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandSetSelfZOrderArgs.d.ts +5 -0
- package/esm/gen/types/SeelenCommandSetSelfZOrderArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandSetSelfZOrderArgs.js +1 -0
- package/esm/gen/types/SeelenCommandTriggerDialogArgs.d.ts +5 -0
- package/esm/gen/types/SeelenCommandTriggerDialogArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandTriggerDialogArgs.js +1 -0
- package/esm/gen/types/SeelenEventPayload.d.ts +6 -3
- package/esm/gen/types/SeelenEventPayload.d.ts.map +1 -1
- package/esm/gen/types/Settings.d.ts +4 -0
- package/esm/gen/types/Settings.d.ts.map +1 -1
- package/esm/gen/types/UserAppWindow.d.ts +6 -0
- package/esm/gen/types/UserAppWindow.d.ts.map +1 -1
- package/esm/gen/types/UserAppWindowColors.d.ts +2 -0
- package/esm/gen/types/UserAppWindowColors.d.ts.map +1 -1
- package/esm/gen/types/WallpaperCollection.d.ts +1 -0
- package/esm/gen/types/WallpaperCollection.d.ts.map +1 -1
- package/esm/gen/types/WidgetDebugInfo.d.ts +1 -0
- package/esm/gen/types/WidgetDebugInfo.d.ts.map +1 -1
- package/esm/gen/types/ZOrder.d.ts +7 -0
- package/esm/gen/types/ZOrder.d.ts.map +1 -0
- package/esm/gen/types/ZOrder.js +8 -0
- package/esm/gen/types/mod.d.ts +278 -277
- package/esm/gen/types/mod.d.ts.map +1 -1
- package/esm/gen/types/mod.js +278 -277
- package/esm/src/handlers/commands.d.ts +5 -5
- package/esm/src/handlers/commands.d.ts.map +1 -1
- package/esm/src/handlers/commands.js +5 -5
- package/esm/src/handlers/events.d.ts +3 -2
- package/esm/src/handlers/events.d.ts.map +1 -1
- package/esm/src/handlers/events.js +2 -1
- package/esm/src/state/icon_pack.d.ts +7 -26
- package/esm/src/state/icon_pack.d.ts.map +1 -1
- package/esm/src/state/icon_pack.js +23 -36
- package/esm/src/state/widget/mod.d.ts.map +1 -1
- package/esm/src/state/widget/mod.js +1 -1
- package/package.json +1 -1
- package/script/gen/types/ContextMenuItem.d.ts +1 -0
- package/script/gen/types/ContextMenuItem.d.ts.map +1 -1
- package/script/gen/types/Dialog.d.ts +10 -0
- package/script/gen/types/Dialog.d.ts.map +1 -0
- package/script/gen/types/{SluPopupContent.d.ts → DialogContent.d.ts} +11 -10
- package/script/gen/types/DialogContent.d.ts.map +1 -0
- package/script/gen/types/ImeState.d.ts +151 -0
- package/script/gen/types/ImeState.d.ts.map +1 -0
- package/script/gen/types/KeyboardLayout.d.ts +3 -2
- package/script/gen/types/KeyboardLayout.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandArgument.d.ts +13 -13
- package/script/gen/types/SeelenCommandArgument.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandDeleteUserCustomAppIconArgs.d.ts +5 -0
- package/script/gen/types/SeelenCommandDeleteUserCustomAppIconArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandRegisterUserCustomAppIconArgs.d.ts +6 -0
- package/script/gen/types/SeelenCommandRegisterUserCustomAppIconArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandReturn.d.ts +10 -10
- package/script/gen/types/SeelenCommandReturn.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandSetSelfZOrderArgs.d.ts +5 -0
- package/script/gen/types/SeelenCommandSetSelfZOrderArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandSetSelfZOrderArgs.js +2 -0
- package/script/gen/types/SeelenCommandTriggerDialogArgs.d.ts +5 -0
- package/script/gen/types/SeelenCommandTriggerDialogArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandTriggerDialogArgs.js +2 -0
- package/script/gen/types/SeelenEventPayload.d.ts +6 -3
- package/script/gen/types/SeelenEventPayload.d.ts.map +1 -1
- package/script/gen/types/Settings.d.ts +4 -0
- package/script/gen/types/Settings.d.ts.map +1 -1
- package/script/gen/types/UserAppWindow.d.ts +6 -0
- package/script/gen/types/UserAppWindow.d.ts.map +1 -1
- package/script/gen/types/UserAppWindowColors.d.ts +2 -0
- package/script/gen/types/UserAppWindowColors.d.ts.map +1 -1
- package/script/gen/types/WallpaperCollection.d.ts +1 -0
- package/script/gen/types/WallpaperCollection.d.ts.map +1 -1
- package/script/gen/types/WidgetDebugInfo.d.ts +1 -0
- package/script/gen/types/WidgetDebugInfo.d.ts.map +1 -1
- package/script/gen/types/ZOrder.d.ts +7 -0
- package/script/gen/types/ZOrder.d.ts.map +1 -0
- package/script/gen/types/ZOrder.js +11 -0
- package/script/gen/types/mod.d.ts +278 -277
- package/script/gen/types/mod.d.ts.map +1 -1
- package/script/gen/types/mod.js +278 -277
- package/script/src/handlers/commands.d.ts +5 -5
- package/script/src/handlers/commands.d.ts.map +1 -1
- package/script/src/handlers/commands.js +5 -5
- package/script/src/handlers/events.d.ts +3 -2
- package/script/src/handlers/events.d.ts.map +1 -1
- package/script/src/handlers/events.js +2 -1
- package/script/src/state/icon_pack.d.ts +7 -26
- package/script/src/state/icon_pack.d.ts.map +1 -1
- package/script/src/state/icon_pack.js +23 -36
- package/script/src/state/widget/mod.d.ts.map +1 -1
- package/script/src/state/widget/mod.js +1 -1
- package/esm/gen/types/ImeStatus.d.ts +0 -5
- package/esm/gen/types/ImeStatus.d.ts.map +0 -1
- package/esm/gen/types/SeelenCommandClosePopupArgs.d.ts +0 -4
- package/esm/gen/types/SeelenCommandClosePopupArgs.d.ts.map +0 -1
- package/esm/gen/types/SeelenCommandClosePopupArgs.js +0 -2
- package/esm/gen/types/SeelenCommandCreatePopupArgs.d.ts +0 -5
- package/esm/gen/types/SeelenCommandCreatePopupArgs.d.ts.map +0 -1
- package/esm/gen/types/SeelenCommandGetPopupConfigArgs.d.ts +0 -4
- package/esm/gen/types/SeelenCommandGetPopupConfigArgs.d.ts.map +0 -1
- package/esm/gen/types/SeelenCommandGetPopupConfigArgs.js +0 -2
- package/esm/gen/types/SeelenCommandUpdatePopupArgs.d.ts +0 -6
- package/esm/gen/types/SeelenCommandUpdatePopupArgs.d.ts.map +0 -1
- package/esm/gen/types/SluPopupConfig.d.ts +0 -9
- package/esm/gen/types/SluPopupConfig.d.ts.map +0 -1
- package/esm/gen/types/SluPopupContent.d.ts.map +0 -1
- package/script/gen/types/ImeStatus.d.ts +0 -5
- package/script/gen/types/ImeStatus.d.ts.map +0 -1
- package/script/gen/types/SeelenCommandClosePopupArgs.d.ts +0 -4
- package/script/gen/types/SeelenCommandClosePopupArgs.d.ts.map +0 -1
- package/script/gen/types/SeelenCommandClosePopupArgs.js +0 -3
- package/script/gen/types/SeelenCommandCreatePopupArgs.d.ts +0 -5
- package/script/gen/types/SeelenCommandCreatePopupArgs.d.ts.map +0 -1
- package/script/gen/types/SeelenCommandGetPopupConfigArgs.d.ts +0 -4
- package/script/gen/types/SeelenCommandGetPopupConfigArgs.d.ts.map +0 -1
- package/script/gen/types/SeelenCommandGetPopupConfigArgs.js +0 -3
- package/script/gen/types/SeelenCommandUpdatePopupArgs.d.ts +0 -6
- package/script/gen/types/SeelenCommandUpdatePopupArgs.d.ts.map +0 -1
- package/script/gen/types/SluPopupConfig.d.ts +0 -9
- package/script/gen/types/SluPopupConfig.d.ts.map +0 -1
- package/script/gen/types/SluPopupContent.d.ts.map +0 -1
- /package/esm/gen/types/{SeelenCommandCreatePopupArgs.js → Dialog.js} +0 -0
- /package/esm/gen/types/{SeelenCommandUpdatePopupArgs.js → DialogContent.js} +0 -0
- /package/esm/gen/types/{ImeStatus.js → ImeState.js} +0 -0
- /package/esm/gen/types/{SluPopupConfig.js → SeelenCommandDeleteUserCustomAppIconArgs.js} +0 -0
- /package/esm/gen/types/{SluPopupContent.js → SeelenCommandRegisterUserCustomAppIconArgs.js} +0 -0
- /package/script/gen/types/{SeelenCommandCreatePopupArgs.js → Dialog.js} +0 -0
- /package/script/gen/types/{SeelenCommandUpdatePopupArgs.js → DialogContent.js} +0 -0
- /package/script/gen/types/{ImeStatus.js → ImeState.js} +0 -0
- /package/script/gen/types/{SluPopupConfig.js → SeelenCommandDeleteUserCustomAppIconArgs.js} +0 -0
- /package/script/gen/types/{SluPopupContent.js → SeelenCommandRegisterUserCustomAppIconArgs.js} +0 -0
|
@@ -35,6 +35,7 @@ export var SeelenCommand;
|
|
|
35
35
|
SeelenCommand["SystemSetAccentColor"] = "set_system_accent_color";
|
|
36
36
|
SeelenCommand["SystemGetLanguages"] = "get_system_languages";
|
|
37
37
|
SeelenCommand["SystemSetKeyboardLayout"] = "set_system_keyboard_layout";
|
|
38
|
+
SeelenCommand["SystemGetImeState"] = "get_ime_state";
|
|
38
39
|
SeelenCommand["RegisterAppBar"] = "register_app_bar";
|
|
39
40
|
SeelenCommand["UnregisterAppBar"] = "unregister_app_bar";
|
|
40
41
|
SeelenCommand["StateGetDefaultSettings"] = "state_get_default_settings";
|
|
@@ -58,16 +59,19 @@ export var SeelenCommand;
|
|
|
58
59
|
SeelenCommand["StateGetWallpapers"] = "state_get_wallpapers";
|
|
59
60
|
SeelenCommand["StateSetCustomIconPack"] = "state_add_icon_to_custom_icon_pack";
|
|
60
61
|
SeelenCommand["StateDeleteCachedIcons"] = "state_delete_cached_icons";
|
|
62
|
+
SeelenCommand["RegisterUserCustomAppIcon"] = "register_user_custom_app_icon";
|
|
63
|
+
SeelenCommand["DeleteUserCustomAppIcon"] = "delete_user_custom_app_icon";
|
|
61
64
|
SeelenCommand["StateRequestWallpaperAddition"] = "state_request_wallpaper_addition";
|
|
62
65
|
SeelenCommand["StateGetPerformanceMode"] = "state_get_performance_mode";
|
|
63
66
|
SeelenCommand["DebugGetWidgetsStatuses"] = "debug_get_widgets_statuses";
|
|
64
67
|
SeelenCommand["DebugOpenDevTools"] = "debug_open_dev_tools";
|
|
65
68
|
SeelenCommand["TriggerWidget"] = "trigger_widget";
|
|
66
69
|
SeelenCommand["TriggerContextMenu"] = "trigger_context_menu";
|
|
70
|
+
SeelenCommand["TriggerDialog"] = "trigger_dialog";
|
|
67
71
|
SeelenCommand["SetCurrentWidgetStatus"] = "set_current_widget_status";
|
|
68
72
|
SeelenCommand["GetSelfWindowId"] = "get_self_window_handle";
|
|
69
73
|
SeelenCommand["SetSelfPosition"] = "set_self_position";
|
|
70
|
-
SeelenCommand["
|
|
74
|
+
SeelenCommand["SetSelfZOrder"] = "set_self_z_order";
|
|
71
75
|
SeelenCommand["WriteFile"] = "write_data_file";
|
|
72
76
|
SeelenCommand["ReadFile"] = "read_data_file";
|
|
73
77
|
SeelenCommand["GetNativeShellWallpaper"] = "get_native_shell_wallpaper";
|
|
@@ -105,10 +109,6 @@ export var SeelenCommand;
|
|
|
105
109
|
SeelenCommand["SetAppWindowsPositions"] = "set_app_windows_positions";
|
|
106
110
|
SeelenCommand["RequestFocus"] = "request_focus";
|
|
107
111
|
SeelenCommand["WmSetStackActiveWindow"] = "wm_set_stack_active_window";
|
|
108
|
-
SeelenCommand["CreatePopup"] = "create_popup";
|
|
109
|
-
SeelenCommand["UpdatePopup"] = "update_popup";
|
|
110
|
-
SeelenCommand["ClosePopup"] = "close_popup";
|
|
111
|
-
SeelenCommand["GetPopupConfig"] = "get_popup_config";
|
|
112
112
|
SeelenCommand["WlanScan"] = "wlan_scan";
|
|
113
113
|
SeelenCommand["WlanConnect"] = "wlan_connect";
|
|
114
114
|
SeelenCommand["WlanDisconnect"] = "wlan_disconnect";
|
|
@@ -4,6 +4,7 @@ export declare enum SeelenEvent {
|
|
|
4
4
|
GlobalMouseMove = "global-mouse-move",
|
|
5
5
|
SystemMonitorsChanged = "system::monitors-changed",
|
|
6
6
|
SystemLanguagesChanged = "system::languages-changed",
|
|
7
|
+
SystemImeStateChanged = "system::ime-state-changed",
|
|
7
8
|
SystemMonitorsBrightnessChanged = "system::monitors-brightness-changed",
|
|
8
9
|
UserChanged = "user-changed",
|
|
9
10
|
UserFolderChanged = "user::known-folder-changed",
|
|
@@ -27,7 +28,6 @@ export declare enum SeelenEvent {
|
|
|
27
28
|
WMSetReservation = "wm::set-reservation",
|
|
28
29
|
WMForceRetiling = "wm::force-retiling",
|
|
29
30
|
WMTreeChanged = "wm::tree-changed",
|
|
30
|
-
PopupContentChanged = "popup-content-changed",
|
|
31
31
|
StateSettingsChanged = "settings-changed",
|
|
32
32
|
StateThemesChanged = "themes",
|
|
33
33
|
StateIconPacksChanged = "icon-packs",
|
|
@@ -53,6 +53,7 @@ export declare enum SeelenEvent {
|
|
|
53
53
|
NotificationsModeChanged = "notifications::mode-changed",
|
|
54
54
|
Notifications = "notifications",
|
|
55
55
|
PluginEnabled = "plugin::enabled",
|
|
56
|
-
ShortcutsPaused = "shortcuts::paused"
|
|
56
|
+
ShortcutsPaused = "shortcuts::paused",
|
|
57
|
+
WidgetDebugInfoChanged = "widget::debug-info-changed"
|
|
57
58
|
}
|
|
58
59
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/src/handlers/events.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,sBAAsB,8BAA8B;IACpD,kBAAkB,yBAAyB;IAC3C,eAAe,sBAAsB;IACrC,qBAAqB,6BAA6B;IAClD,sBAAsB,8BAA8B;IACpD,+BAA+B,wCAAwC;IACvE,WAAW,iBAAiB;IAC5B,iBAAiB,+BAA+B;IAChD,qBAAqB,0BAA0B;IAC/C,6BAA6B,mCAAmC;IAChE,2BAA2B,iCAAiC;IAC5D,aAAa,mBAAmB;IAChC,YAAY,mBAAmB;IAC/B,WAAW,iBAAiB;IAC5B,YAAY,kBAAkB;IAC9B,aAAa,oBAAoB;IACjC,qBAAqB,6BAA6B;IAClD,eAAe,qBAAqB;IACpC,yBAAyB,gCAAgC;IACzD,kBAAkB,iBAAiB;IACnC,WAAW,iBAAiB;IAC5B,SAAS,eAAe;IACxB,eAAe,qBAAqB;IACpC,aAAa,mBAAmB;IAChC,kBAAkB,0BAA0B;IAC5C,gBAAgB,wBAAwB;IACxC,eAAe,uBAAuB;IACtC,aAAa,qBAAqB;IAClC,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/src/handlers/events.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,sBAAsB,8BAA8B;IACpD,kBAAkB,yBAAyB;IAC3C,eAAe,sBAAsB;IACrC,qBAAqB,6BAA6B;IAClD,sBAAsB,8BAA8B;IACpD,qBAAqB,8BAA8B;IACnD,+BAA+B,wCAAwC;IACvE,WAAW,iBAAiB;IAC5B,iBAAiB,+BAA+B;IAChD,qBAAqB,0BAA0B;IAC/C,6BAA6B,mCAAmC;IAChE,2BAA2B,iCAAiC;IAC5D,aAAa,mBAAmB;IAChC,YAAY,mBAAmB;IAC/B,WAAW,iBAAiB;IAC5B,YAAY,kBAAkB;IAC9B,aAAa,oBAAoB;IACjC,qBAAqB,6BAA6B;IAClD,eAAe,qBAAqB;IACpC,yBAAyB,gCAAgC;IACzD,kBAAkB,iBAAiB;IACnC,WAAW,iBAAiB;IAC5B,SAAS,eAAe;IACxB,eAAe,qBAAqB;IACpC,aAAa,mBAAmB;IAChC,kBAAkB,0BAA0B;IAC5C,gBAAgB,wBAAwB;IACxC,eAAe,uBAAuB;IACtC,aAAa,qBAAqB;IAClC,oBAAoB,qBAAqB;IACzC,kBAAkB,WAAW;IAC7B,qBAAqB,eAAe;IACpC,mBAAmB,oBAAoB;IACvC,mBAAmB,oBAAoB;IACvC,sBAAsB,sCAAsC;IAC5D,iBAAiB,yBAAyB;IAC1C,2BAA2B,oCAAoC;IAC/D,eAAe,sBAAsB;IACrC,aAAa,mBAAmB;IAChC,kBAAkB,0BAA0B;IAC5C,oBAAoB,4BAA4B;IAChD,mBAAmB,2BAA2B;IAC9C,kBAAkB,0BAA0B;IAC5C,uBAAuB,8BAA8B;IACrD,qBAAqB,8BAA8B;IACnD,UAAU,kBAAkB;IAC5B,eAAe,uBAAuB;IACtC,oBAAoB,qBAAqB;IACzC,yBAAyB,2BAA2B;IACpD,oBAAoB,4BAA4B;IAChD,kBAAkB,0BAA0B;IAC5C,wBAAwB,gCAAgC;IACxD,aAAa,kBAAkB;IAC/B,aAAa,oBAAoB;IACjC,eAAe,sBAAsB;IACrC,sBAAsB,+BAA+B;CACtD"}
|
|
@@ -6,6 +6,7 @@ export var SeelenEvent;
|
|
|
6
6
|
SeelenEvent["GlobalMouseMove"] = "global-mouse-move";
|
|
7
7
|
SeelenEvent["SystemMonitorsChanged"] = "system::monitors-changed";
|
|
8
8
|
SeelenEvent["SystemLanguagesChanged"] = "system::languages-changed";
|
|
9
|
+
SeelenEvent["SystemImeStateChanged"] = "system::ime-state-changed";
|
|
9
10
|
SeelenEvent["SystemMonitorsBrightnessChanged"] = "system::monitors-brightness-changed";
|
|
10
11
|
SeelenEvent["UserChanged"] = "user-changed";
|
|
11
12
|
SeelenEvent["UserFolderChanged"] = "user::known-folder-changed";
|
|
@@ -29,7 +30,6 @@ export var SeelenEvent;
|
|
|
29
30
|
SeelenEvent["WMSetReservation"] = "wm::set-reservation";
|
|
30
31
|
SeelenEvent["WMForceRetiling"] = "wm::force-retiling";
|
|
31
32
|
SeelenEvent["WMTreeChanged"] = "wm::tree-changed";
|
|
32
|
-
SeelenEvent["PopupContentChanged"] = "popup-content-changed";
|
|
33
33
|
SeelenEvent["StateSettingsChanged"] = "settings-changed";
|
|
34
34
|
SeelenEvent["StateThemesChanged"] = "themes";
|
|
35
35
|
SeelenEvent["StateIconPacksChanged"] = "icon-packs";
|
|
@@ -56,4 +56,5 @@ export var SeelenEvent;
|
|
|
56
56
|
SeelenEvent["Notifications"] = "notifications";
|
|
57
57
|
SeelenEvent["PluginEnabled"] = "plugin::enabled";
|
|
58
58
|
SeelenEvent["ShortcutsPaused"] = "shortcuts::paused";
|
|
59
|
+
SeelenEvent["WidgetDebugInfoChanged"] = "widget::debug-info-changed";
|
|
59
60
|
})(SeelenEvent || (SeelenEvent = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Icon as IIcon, IconPack, IconPack as IIconPack, SeelenCommandGetIconArgs } from "../../gen/types/mod.js";
|
|
1
|
+
import type { Icon as IIcon, IconPack, IconPack as IIconPack, IconPackEntry, SeelenCommandGetIconArgs } from "../../gen/types/mod.js";
|
|
2
2
|
import { List } from "../utils/List.js";
|
|
3
3
|
import { type UnSubscriber } from "../handlers/mod.js";
|
|
4
4
|
import type { UnlistenFn } from "@tauri-apps/api/event";
|
|
@@ -60,31 +60,7 @@ export declare class IconPackManager {
|
|
|
60
60
|
* @see {@link UnlistenFn} for the type of the function returned by this method.
|
|
61
61
|
*/
|
|
62
62
|
onChange(cb: () => void): Promise<UnlistenFn>;
|
|
63
|
-
|
|
64
|
-
* Returns the icon path for an app or file. If no icon is available, returns `null`.
|
|
65
|
-
*
|
|
66
|
-
* The search for icons follows this priority order:
|
|
67
|
-
* 1. UMID (App User Model Id)
|
|
68
|
-
* 2. Full path
|
|
69
|
-
* 3. Filename (this is only used to match executable files like .exe)
|
|
70
|
-
* 4. Extension
|
|
71
|
-
*
|
|
72
|
-
* @param {Object} args - Arguments for retrieving the icon path.
|
|
73
|
-
* @param {string} [args.path] - The full path to the app or file.
|
|
74
|
-
* @param {string} [args.umid] - The UMID of the app.
|
|
75
|
-
* @returns {string | null} - The path to the icon, or `null` if no icon is found.
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* // Example 1: Get icon by full path
|
|
79
|
-
* const iconPath = instance.getIconPath({
|
|
80
|
-
* path: "C:\\Program Files\\Steam\\steam.exe"
|
|
81
|
-
* });
|
|
82
|
-
*
|
|
83
|
-
* // Example 2: Get icon by UMID
|
|
84
|
-
* const iconPath = instance.getIconPath({
|
|
85
|
-
* umid: "Seelen.SeelenUI_p6yyn03m1894e!App"
|
|
86
|
-
* });
|
|
87
|
-
*/
|
|
63
|
+
getIconEntry(args: SeelenCommandGetIconArgs): IconPackEntry | null;
|
|
88
64
|
getIconPath(args: SeelenCommandGetIconArgs): IIcon | null;
|
|
89
65
|
getIcon({ path, umid }: SeelenCommandGetIconArgs): IIcon | null;
|
|
90
66
|
/**
|
|
@@ -97,6 +73,11 @@ export declare class IconPackManager {
|
|
|
97
73
|
* If no icon pack haves a missing icon, will return null.
|
|
98
74
|
*/
|
|
99
75
|
getMissingIcon(): IIcon | null;
|
|
76
|
+
/**
|
|
77
|
+
* Will return the specific icon entry from the highest priority icon pack.
|
|
78
|
+
* If no icon pack haves the searched icon, will return null.
|
|
79
|
+
*/
|
|
80
|
+
getCustomIconEntry(name: string): IconPackEntry | null;
|
|
100
81
|
/**
|
|
101
82
|
* Will return the specific icon path from the highest priority icon pack.
|
|
102
83
|
* If no icon pack haves the searched icon, will return null.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon_pack.d.ts","sourceRoot":"","sources":["../../../src/src/state/icon_pack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,IAAI,KAAK,EACb,QAAQ,EACR,QAAQ,IAAI,SAAS,EACrB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"icon_pack.d.ts","sourceRoot":"","sources":["../../../src/src/state/icon_pack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,IAAI,KAAK,EACb,QAAQ,EACR,QAAQ,IAAI,SAAS,EACrB,aAAa,EACb,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAsC,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGxD,qBAAa,YAAa,SAAQ,IAAI,CAAC,SAAS,CAAC;IAC/C,MAAM,CAAC,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC;IAIxC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC;CAG5E;AAED;;GAEG;AACH,qBAAa,eAAe;IASxB,SAAS,CAAC,mBAAmB,EAAE,QAAQ,EAAE;IACzC,SAAS,CAAC,kBAAkB,EAAE,MAAM,EAAE;IATxC,OAAO,CAAC,SAAS,CAA8B;IAC/C,OAAO,CAAC,WAAW,CAAoB;IACvC,OAAO,CAAC,qBAAqB,CAAS;IAGtC,OAAO,CAAC,eAAe,CAAkB;IAEzC,SAAS,aACG,mBAAmB,EAAE,QAAQ,EAAE,EAC/B,kBAAkB,EAAE,MAAM,EAAE;IAGxC,IAAI,SAAS,IAAI,QAAQ,EAAE,CAE1B;IAED,IAAI,iBAAiB,IAAI,MAAM,EAAE,CAEhC;IAED,SAAS,CAAC,qBAAqB,IAAI,IAAI;IAwBvC,SAAS,CAAC,oBAAoB,IAAI,IAAI;IAUtC;;;;;OAKG;WACiB,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC;IAUtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACU,QAAQ,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC;IA6BnD,YAAY,CAAC,IAAI,EAAE,wBAAwB,GAAG,aAAa,GAAG,IAAI;IA2FlE,WAAW,CAAC,IAAI,EAAE,wBAAwB,GAAG,KAAK,GAAG,IAAI;IAKzD,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,wBAAwB,GAAG,KAAK,GAAG,IAAI;IAKtE;;;OAGG;IACI,kBAAkB,IAAI,KAAK,GAAG,IAAI;IASzC;;;OAGG;IACI,cAAc,IAAI,KAAK,GAAG,IAAI;IAKrC;;;OAGG;IACI,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAU7D;;;OAGG;IACI,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI;IAKpD;;;OAGG;IACI,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI;IAKhD;;;;;;;;;;;;OAYG;WACW,qBAAqB,CAAC,GAAG,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjF;;;OAGG;WACW,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CAGhD"}
|
|
@@ -129,33 +129,8 @@ export class IconPackManager {
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
*
|
|
135
|
-
* The search for icons follows this priority order:
|
|
136
|
-
* 1. UMID (App User Model Id)
|
|
137
|
-
* 2. Full path
|
|
138
|
-
* 3. Filename (this is only used to match executable files like .exe)
|
|
139
|
-
* 4. Extension
|
|
140
|
-
*
|
|
141
|
-
* @param {Object} args - Arguments for retrieving the icon path.
|
|
142
|
-
* @param {string} [args.path] - The full path to the app or file.
|
|
143
|
-
* @param {string} [args.umid] - The UMID of the app.
|
|
144
|
-
* @returns {string | null} - The path to the icon, or `null` if no icon is found.
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* // Example 1: Get icon by full path
|
|
148
|
-
* const iconPath = instance.getIconPath({
|
|
149
|
-
* path: "C:\\Program Files\\Steam\\steam.exe"
|
|
150
|
-
* });
|
|
151
|
-
*
|
|
152
|
-
* // Example 2: Get icon by UMID
|
|
153
|
-
* const iconPath = instance.getIconPath({
|
|
154
|
-
* umid: "Seelen.SeelenUI_p6yyn03m1894e!App"
|
|
155
|
-
* });
|
|
156
|
-
*/
|
|
157
|
-
getIconPath(args) {
|
|
158
|
-
const { path, umid, __seen = new Set() } = args;
|
|
132
|
+
getIconEntry(args) {
|
|
133
|
+
const { path, umid, __seen = new Set(), } = args;
|
|
159
134
|
// If neither path nor UMID is provided, return null
|
|
160
135
|
if (!path && !umid) {
|
|
161
136
|
return null;
|
|
@@ -165,7 +140,7 @@ export class IconPackManager {
|
|
|
165
140
|
// to avoid treating directory names without dots as extensions.
|
|
166
141
|
const lastDot = lowerPath?.lastIndexOf(".");
|
|
167
142
|
const lastSlash = lowerPath?.lastIndexOf("\\") ?? -1;
|
|
168
|
-
const extension =
|
|
143
|
+
const extension = lastDot !== undefined && lastDot > lastSlash ? lowerPath.slice(lastDot + 1) : undefined;
|
|
169
144
|
// Add the starting path to __seen so that direct A→B→A cycles are caught in 2 hops.
|
|
170
145
|
if (lowerPath) {
|
|
171
146
|
__seen.add(lowerPath);
|
|
@@ -201,10 +176,10 @@ export class IconPackManager {
|
|
|
201
176
|
return null;
|
|
202
177
|
}
|
|
203
178
|
__seen.add(entry.redirect);
|
|
204
|
-
return this.
|
|
179
|
+
return this.getIconEntry({ path: entry.redirect, __seen });
|
|
205
180
|
}
|
|
206
181
|
if (entry.icon) {
|
|
207
|
-
return entry
|
|
182
|
+
return entry;
|
|
208
183
|
}
|
|
209
184
|
}
|
|
210
185
|
}
|
|
@@ -213,16 +188,20 @@ export class IconPackManager {
|
|
|
213
188
|
return null;
|
|
214
189
|
}
|
|
215
190
|
for (const pack of this.activeIconPacks) {
|
|
216
|
-
const
|
|
191
|
+
const entry = pack.entries.find((e) => {
|
|
217
192
|
return e.type === "shared" && e.extension === extension;
|
|
218
193
|
});
|
|
219
|
-
if (
|
|
220
|
-
return
|
|
194
|
+
if (entry) {
|
|
195
|
+
return entry;
|
|
221
196
|
}
|
|
222
197
|
}
|
|
223
198
|
// If no icon is found in any icon pack, return null
|
|
224
199
|
return null;
|
|
225
200
|
}
|
|
201
|
+
getIconPath(args) {
|
|
202
|
+
const entry = this.getIconEntry(args);
|
|
203
|
+
return entry?.icon || null;
|
|
204
|
+
}
|
|
226
205
|
getIcon({ path, umid }) {
|
|
227
206
|
const iconPath = this.getIconPath({ path, umid });
|
|
228
207
|
return iconPath ? resolveAsSrc(iconPath) : null;
|
|
@@ -248,18 +227,26 @@ export class IconPackManager {
|
|
|
248
227
|
return iconPath ? resolveAsSrc(iconPath) : null;
|
|
249
228
|
}
|
|
250
229
|
/**
|
|
251
|
-
* Will return the specific icon
|
|
230
|
+
* Will return the specific icon entry from the highest priority icon pack.
|
|
252
231
|
* If no icon pack haves the searched icon, will return null.
|
|
253
232
|
*/
|
|
254
|
-
|
|
233
|
+
getCustomIconEntry(name) {
|
|
255
234
|
for (const pack of this.activeIconPacks) {
|
|
256
235
|
const entry = pack.entries.find((e) => e.type === "custom" && e.key === name);
|
|
257
236
|
if (entry) {
|
|
258
|
-
return entry
|
|
237
|
+
return entry;
|
|
259
238
|
}
|
|
260
239
|
}
|
|
261
240
|
return null;
|
|
262
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Will return the specific icon path from the highest priority icon pack.
|
|
244
|
+
* If no icon pack haves the searched icon, will return null.
|
|
245
|
+
*/
|
|
246
|
+
getCustomIconPath(name) {
|
|
247
|
+
const entry = this.getCustomIconEntry(name);
|
|
248
|
+
return entry?.icon || null;
|
|
249
|
+
}
|
|
263
250
|
/**
|
|
264
251
|
* Will return the specific icon SRC from the highest priority icon pack.
|
|
265
252
|
* If no icon pack haves the searched icon, will return null.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/mod.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,IAAI,EACT,KAAK,wBAAwB,EAC7B,KAAK,MAAM,IAAI,OAAO,EAEtB,KAAK,QAAQ,EAIb,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAOnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEhG,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAoB,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAUvE;;GAEG;AACH,qBAAa,MAAM;IACjB;;;OAGG;IACH,MAAM,CAAC,UAAU,IAAI,MAAM;IAU3B,iCAAiC;IACjC,MAAM,KAAK,IAAI,IAAI,MAAM,CAExB;IAED,gBAAgB;IAChB,SAAgB,EAAE,EAAE,QAAQ,CAAC;IAC7B,wBAAwB;IACxB,SAAgB,GAAG,EAAE,OAAO,CAAC;IAC7B,0CAA0C;IAC1C,SAAgB,OAAO,EAAE,iBAAiB,CAAC;IAC3C,kDAAkD;IAClD,SAAgB,OAAO,EAAE,OAAO,CAAC;IACjC,iDAAiD;IACjD,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B,OAAO,CAAC,SAAS,CAAC,CAAkB;IACpC,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAKlB;IAEF,OAAO;IAkBP,kDAAkD;IAClD,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,kFAAkF;IAC3E,gBAAgB,IAAI,wBAAwB;IAQnD,+DAA+D;IAC/D,OAAO,CAAC,kBAAkB;IAE1B,gEAAgE;IAChE,OAAO,CAAC,kBAAkB;IAE1B,6DAA6D;IAC7D,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,eAAe;IAqBvB;;;OAGG;YACW,sBAAsB;YAwCtB,yBAAyB;IAavC;;;;OAIG;IACU,IAAI,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IA0DjE;;;;;OAKG;IACU,KAAK,CAAC,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB5D,SAAS,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,GAAG,IAAI;IAMnD,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBxE;;;OAGG;IACU,oBAAoB,CAC/B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,EACzB,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,GACxB,OAAO,CAAC,IAAI,CAAC;IAyBH,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAMtC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKlC,uCAAuC;IAC1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ5B,IAAI,IAAI,IAAI;CAMpB;AAWD,eAAO,MAAM,sBAAsB,EAAE,QAAyC,CAAC;AAC/E,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/mod.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,IAAI,EACT,KAAK,wBAAwB,EAC7B,KAAK,MAAM,IAAI,OAAO,EAEtB,KAAK,QAAQ,EAIb,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAOnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEhG,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAoB,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAUvE;;GAEG;AACH,qBAAa,MAAM;IACjB;;;OAGG;IACH,MAAM,CAAC,UAAU,IAAI,MAAM;IAU3B,iCAAiC;IACjC,MAAM,KAAK,IAAI,IAAI,MAAM,CAExB;IAED,gBAAgB;IAChB,SAAgB,EAAE,EAAE,QAAQ,CAAC;IAC7B,wBAAwB;IACxB,SAAgB,GAAG,EAAE,OAAO,CAAC;IAC7B,0CAA0C;IAC1C,SAAgB,OAAO,EAAE,iBAAiB,CAAC;IAC3C,kDAAkD;IAClD,SAAgB,OAAO,EAAE,OAAO,CAAC;IACjC,iDAAiD;IACjD,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B,OAAO,CAAC,SAAS,CAAC,CAAkB;IACpC,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAKlB;IAEF,OAAO;IAkBP,kDAAkD;IAClD,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,kFAAkF;IAC3E,gBAAgB,IAAI,wBAAwB;IAQnD,+DAA+D;IAC/D,OAAO,CAAC,kBAAkB;IAE1B,gEAAgE;IAChE,OAAO,CAAC,kBAAkB;IAE1B,6DAA6D;IAC7D,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,eAAe;IAqBvB;;;OAGG;YACW,sBAAsB;YAwCtB,yBAAyB;IAavC;;;;OAIG;IACU,IAAI,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;IA0DjE;;;;;OAKG;IACU,KAAK,CAAC,OAAO,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB5D,SAAS,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,GAAG,IAAI;IAMnD,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBxE;;;OAGG;IACU,oBAAoB,CAC/B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,EACzB,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,GACxB,OAAO,CAAC,IAAI,CAAC;IAyBH,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAMtC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKlC,uCAAuC;IAC1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ5B,IAAI,IAAI,IAAI;CAMpB;AAWD,eAAO,MAAM,sBAAsB,EAAE,QAAyC,CAAC;AAC/E,eAAO,MAAM,mBAAmB,EAAE,QAAuC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,EAAE,QAAoC,CAAC;AACrE,eAAO,MAAM,qBAAqB,EAAE,QAA8C,CAAC;AACnF,eAAO,MAAM,2BAA2B,EAAE,QAA+C,CAAC;AAC1F,eAAO,MAAM,kBAAkB,EAAE,QAAkD,CAAC"}
|
|
@@ -305,7 +305,7 @@ const debouncedClose = debounce(() => {
|
|
|
305
305
|
Widget.self.window.close();
|
|
306
306
|
}, 30_000);
|
|
307
307
|
export const SeelenSettingsWidgetId = "@seelen/settings";
|
|
308
|
-
export const SeelenPopupWidgetId = "@seelen/
|
|
308
|
+
export const SeelenPopupWidgetId = "@seelen/dialog";
|
|
309
309
|
export const SeelenWegWidgetId = "@seelen/weg";
|
|
310
310
|
export const SeelenToolbarWidgetId = "@seelen/fancy-toolbar";
|
|
311
311
|
export const SeelenWindowManagerWidgetId = "@seelen/window-manager";
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuItem.d.ts","sourceRoot":"","sources":["../../../src/gen/types/ContextMenuItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IACrJ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"ContextMenuItem.d.ts","sourceRoot":"","sources":["../../../src/gen/types/ContextMenuItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,eAAe,GAAG;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IACrJ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DialogContent } from "./DialogContent.js";
|
|
2
|
+
export type Dialog = {
|
|
3
|
+
identifier: string;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
title: Array<DialogContent>;
|
|
7
|
+
content: Array<DialogContent>;
|
|
8
|
+
footer: Array<DialogContent>;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/gen/types/Dialog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,MAAM,MAAM,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAAE,CAAC"}
|
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
import type { CssStyles } from "./CssStyles.js";
|
|
2
|
-
export type
|
|
2
|
+
export type DialogContent = {
|
|
3
3
|
"type": "text";
|
|
4
4
|
value: string;
|
|
5
|
-
styles
|
|
5
|
+
styles?: CssStyles | null;
|
|
6
6
|
} | {
|
|
7
7
|
"type": "icon";
|
|
8
8
|
/**
|
|
9
9
|
* react icon name. ex: `FaGithub`
|
|
10
10
|
*/
|
|
11
11
|
name: string;
|
|
12
|
-
styles
|
|
12
|
+
styles?: CssStyles | null;
|
|
13
13
|
} | {
|
|
14
14
|
"type": "image";
|
|
15
15
|
href: string;
|
|
16
|
-
styles
|
|
16
|
+
styles?: CssStyles | null;
|
|
17
17
|
} | {
|
|
18
18
|
"type": "button";
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
skin?: string | null;
|
|
20
|
+
inner: Array<DialogContent>;
|
|
21
|
+
styles?: CssStyles | null;
|
|
21
22
|
/**
|
|
22
23
|
* event name to be emitted on click ex: `test::clicked`
|
|
23
24
|
*/
|
|
24
25
|
onClick: string;
|
|
25
26
|
} | {
|
|
26
27
|
"type": "group";
|
|
27
|
-
items: Array<
|
|
28
|
-
styles
|
|
28
|
+
items: Array<DialogContent>;
|
|
29
|
+
styles?: CssStyles | null;
|
|
29
30
|
} | {
|
|
30
31
|
"type": "loader";
|
|
31
|
-
styles
|
|
32
|
+
styles?: CssStyles | null;
|
|
32
33
|
};
|
|
33
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=DialogContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogContent.d.ts","sourceRoot":"","sources":["../../../src/gen/types/DialogContent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAC7G;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC9M;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAAE,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Current IME conversion state.
|
|
3
|
+
*
|
|
4
|
+
* These flags originate from IMM32 (`IME_CMODE_*`) and are shared between
|
|
5
|
+
* Chinese, Japanese and Korean IMEs. Not every language or IME uses every
|
|
6
|
+
* flag. Modern TSF-based IMEs may also ignore some of them.
|
|
7
|
+
*
|
|
8
|
+
* # Language support
|
|
9
|
+
*
|
|
10
|
+
* | Field | Chinese | Japanese | Korean |
|
|
11
|
+
* |---------|---------|----------|---------|
|
|
12
|
+
* | `native` | ✅ | ✅ | ✅ |
|
|
13
|
+
* | `full_shape` | ✅ | ✅ | ⚠️ Rare |
|
|
14
|
+
* | `katakana` | ❌ | ✅ | ❌ |
|
|
15
|
+
* | `roman` | ❌ | ✅ | ❌ |
|
|
16
|
+
* | `hanja` | ❌ | ❌ | ✅ |
|
|
17
|
+
* | `open` | ✅ | ✅ | ✅ |
|
|
18
|
+
*
|
|
19
|
+
* # Common states
|
|
20
|
+
*
|
|
21
|
+
* ## Japanese
|
|
22
|
+
*
|
|
23
|
+
* | State | open | native | katakana | full_shape |
|
|
24
|
+
* |---------|---------|---------|---------|---------|
|
|
25
|
+
* | A (Direct Input) | false | false | false | false |
|
|
26
|
+
* | A (Half-width Alphanumeric) | true | false | false | false |
|
|
27
|
+
* | A (Full-width Alphanumeric) | true | false | false | true |
|
|
28
|
+
* | あ (Hiragana) | true | true | false | false |
|
|
29
|
+
* | ア (Full-width Katakana) | true | true | true | true |
|
|
30
|
+
* | ア (Half-width Katakana) | true | true | true | false |
|
|
31
|
+
*
|
|
32
|
+
* ## Chinese (Pinyin)
|
|
33
|
+
*
|
|
34
|
+
* | State | open | native | full_shape |
|
|
35
|
+
* |---------|---------|---------|---------|
|
|
36
|
+
* | English | false* | false | false |
|
|
37
|
+
* | Chinese | true | true | false |
|
|
38
|
+
* | Chinese Full-width | true | true | true |
|
|
39
|
+
*
|
|
40
|
+
* *Some IMEs keep `open=true` even while in English mode.
|
|
41
|
+
*
|
|
42
|
+
* ## Korean
|
|
43
|
+
*
|
|
44
|
+
* | State | open | native | hanja |
|
|
45
|
+
* |---------|---------|---------|---------|
|
|
46
|
+
* | English | false | false | false |
|
|
47
|
+
* | Hangul | true | true | false |
|
|
48
|
+
* | Hanja Conversion | true | true | true |
|
|
49
|
+
*
|
|
50
|
+
* # Notes
|
|
51
|
+
*
|
|
52
|
+
* - `native` corresponds to `IME_CMODE_NATIVE` (`0x0001`).
|
|
53
|
+
* The meaning depends on the active language:
|
|
54
|
+
* - Chinese: Chinese input mode.
|
|
55
|
+
* - Japanese: Kana/Hiragana input mode.
|
|
56
|
+
* - Korean: Hangul input mode.
|
|
57
|
+
*
|
|
58
|
+
* - `full_shape` corresponds to `IME_CMODE_FULLSHAPE` (`0x0008`).
|
|
59
|
+
* Enables full-width characters.
|
|
60
|
+
* Examples:
|
|
61
|
+
* - `A` → `A`
|
|
62
|
+
* - `1` → `1`
|
|
63
|
+
* - `ア` ↔ `ア`
|
|
64
|
+
*
|
|
65
|
+
* - `katakana` corresponds to `IME_CMODE_KATAKANA` (`0x0002`).
|
|
66
|
+
* Japanese-only.
|
|
67
|
+
* When `native=true`:
|
|
68
|
+
* - `false` = Hiragana (`あ`)
|
|
69
|
+
* - `true` = Katakana (`ア` or `ア`)
|
|
70
|
+
*
|
|
71
|
+
* - `roman` corresponds to `IME_CMODE_ROMAN` (`0x0010`).
|
|
72
|
+
* Japanese-only.
|
|
73
|
+
* Indicates Romaji input mode:
|
|
74
|
+
* - `ka` → `か`
|
|
75
|
+
* - `shi` → `し`
|
|
76
|
+
*
|
|
77
|
+
* When disabled, the IME may use direct Kana input from a Japanese keyboard.
|
|
78
|
+
* Most modern users keep this enabled at all times.
|
|
79
|
+
*
|
|
80
|
+
* - `hanja` corresponds to `IME_CMODE_HANJACONVERT` (`0x0040`).
|
|
81
|
+
* Korean-only.
|
|
82
|
+
* Indicates Hanja conversion mode.
|
|
83
|
+
*
|
|
84
|
+
* - `open` corresponds to `ImmGetOpenStatus()` or
|
|
85
|
+
* `IMC_GETOPENSTATUS`.
|
|
86
|
+
* Indicates whether the IME is active.
|
|
87
|
+
*
|
|
88
|
+
* # Unsupported IMM32 flags
|
|
89
|
+
*
|
|
90
|
+
* The following IMM32 flags exist but are not currently exposed because
|
|
91
|
+
* they are uncommon, legacy, or rarely implemented by modern IMEs:
|
|
92
|
+
*
|
|
93
|
+
* - `IME_CMODE_CHARCODE`
|
|
94
|
+
* - `IME_CMODE_EUDC`
|
|
95
|
+
* - `IME_CMODE_FIXED`
|
|
96
|
+
* - `IME_CMODE_NATIVESYMBOL`
|
|
97
|
+
* - `IME_CMODE_SOFTKBD`
|
|
98
|
+
* - `IME_CMODE_NOCONVERSION`
|
|
99
|
+
* - `IME_CMODE_SYMBOL`
|
|
100
|
+
*
|
|
101
|
+
* Modern TSF-based IMEs often do not report these consistently.
|
|
102
|
+
*/
|
|
103
|
+
export type ImeState = {
|
|
104
|
+
/**
|
|
105
|
+
* Native language mode.
|
|
106
|
+
*
|
|
107
|
+
* Meaning depends on the active language:
|
|
108
|
+
* - Chinese: Chinese mode.
|
|
109
|
+
* - Japanese: Hiragana/Kana mode.
|
|
110
|
+
* - Korean: Hangul mode.
|
|
111
|
+
*/
|
|
112
|
+
native: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Full-width character mode.
|
|
115
|
+
*
|
|
116
|
+
* Examples:
|
|
117
|
+
* - A -> A
|
|
118
|
+
* - 1 -> 1
|
|
119
|
+
* - ア -> ア
|
|
120
|
+
*/
|
|
121
|
+
fullShape: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Japanese-only.
|
|
124
|
+
*
|
|
125
|
+
* When `native` is enabled:
|
|
126
|
+
* - false = Hiragana
|
|
127
|
+
* - true = Katakana
|
|
128
|
+
*/
|
|
129
|
+
katakana: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Japanese-only.
|
|
132
|
+
*
|
|
133
|
+
* Romaji input mode:
|
|
134
|
+
* - ka -> か
|
|
135
|
+
* - shi -> し
|
|
136
|
+
*
|
|
137
|
+
* Usually enabled on modern systems.
|
|
138
|
+
*/
|
|
139
|
+
roman: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Korean-only.
|
|
142
|
+
*
|
|
143
|
+
* Hanja conversion mode.
|
|
144
|
+
*/
|
|
145
|
+
hanja: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Whether the IME is currently active/open.
|
|
148
|
+
*/
|
|
149
|
+
open: boolean;
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=ImeState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImeState.d.ts","sourceRoot":"","sources":["../../../src/gen/types/ImeState.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AACH,MAAM,MAAM,QAAQ,GAAG;IACvB;;;;;;;OAOG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;;;;;OAOG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;CAAE,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export type KeyboardLayout = {
|
|
2
2
|
/**
|
|
3
|
-
* KLID
|
|
3
|
+
* HKL-based: KLID e.g. "00000409". TSF: full tip e.g. "0412:{CLSID}{ProfileGUID}".
|
|
4
4
|
*/
|
|
5
5
|
id: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Full input method tip: "LANGID:KLID" or "LANGID:{CLSID}{ProfileGUID}".
|
|
8
|
+
* Passed back to the backend as-is when activating this layout.
|
|
8
9
|
*/
|
|
9
10
|
handle: string;
|
|
10
11
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardLayout.d.ts","sourceRoot":"","sources":["../../../src/gen/types/KeyboardLayout.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX
|
|
1
|
+
{"version":3,"file":"KeyboardLayout.d.ts","sourceRoot":"","sources":["../../../src/gen/types/KeyboardLayout.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;CAAE,CAAC"}
|