@seelen-ui/lib 2.4.11 → 2.5.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/esm/gen/types/AppNotification.d.ts +1 -1
- package/esm/gen/types/AppsConfigurationList.d.ts +3 -0
- package/esm/gen/types/AppsConfigurationList.d.ts.map +1 -0
- package/esm/gen/types/BluetoothDevice.d.ts +1 -1
- package/esm/gen/types/ContextMenu.d.ts +6 -0
- package/esm/gen/types/ContextMenu.d.ts.map +1 -0
- package/esm/gen/types/ContextMenuItem.d.ts +26 -0
- package/esm/gen/types/ContextMenuItem.d.ts.map +1 -0
- package/esm/gen/types/Core.d.ts +7 -0
- package/esm/gen/types/Core.d.ts.map +1 -0
- package/esm/gen/types/CssStyles.d.ts +1 -1
- package/esm/gen/types/CssStyles.d.ts.map +1 -1
- package/esm/gen/types/DesktopWorkspace.d.ts +2 -0
- package/esm/gen/types/DesktopWorkspace.d.ts.map +1 -1
- package/esm/gen/types/Disk.d.ts +11 -0
- package/esm/gen/types/Disk.d.ts.map +1 -0
- package/esm/gen/types/FolderChangedArgs.d.ts +1 -2
- package/esm/gen/types/FolderChangedArgs.d.ts.map +1 -1
- package/esm/gen/types/FolderType.d.ts +0 -1
- package/esm/gen/types/FolderType.d.ts.map +1 -1
- package/esm/gen/types/FolderType.js +0 -1
- package/esm/gen/types/Frame.d.ts +7 -0
- package/esm/gen/types/Frame.d.ts.map +1 -0
- package/esm/gen/types/ImeStatus.d.ts +5 -0
- package/esm/gen/types/ImeStatus.d.ts.map +1 -0
- package/esm/gen/types/KeyboardLayout.d.ts +1 -1
- package/esm/gen/types/MediaPlayerTimeline.d.ts +6 -6
- package/esm/gen/types/Memory.d.ts +7 -0
- package/esm/gen/types/Memory.d.ts.map +1 -0
- package/esm/gen/types/MonitorBrightness.d.ts +8 -0
- package/esm/gen/types/MonitorBrightness.d.ts.map +1 -0
- package/esm/gen/types/MonitorConfiguration.d.ts +13 -0
- package/esm/gen/types/MonitorConfiguration.d.ts.map +1 -1
- package/esm/gen/types/MultimonitorBehaviour.d.ts +5 -0
- package/esm/gen/types/MultimonitorBehaviour.d.ts.map +1 -0
- package/esm/gen/types/MultimonitorBehaviour.js +6 -0
- package/esm/gen/types/NetworkStatistics.d.ts +8 -0
- package/esm/gen/types/NetworkStatistics.d.ts.map +1 -0
- package/esm/gen/types/PhysicalMonitor.d.ts +1 -1
- package/esm/gen/types/PhysicalMonitor.d.ts.map +1 -1
- package/esm/gen/types/Point.d.ts +5 -0
- package/esm/gen/types/Point.d.ts.map +1 -0
- package/esm/gen/types/Rect.d.ts +6 -0
- package/esm/gen/types/Rect.d.ts.map +1 -1
- package/esm/gen/types/Resource.d.ts +3 -1
- package/esm/gen/types/Resource.d.ts.map +1 -1
- package/esm/gen/types/ResourceId.d.ts +2 -1
- package/esm/gen/types/ResourceId.d.ts.map +1 -1
- package/esm/gen/types/ResourceMetadata.d.ts +6 -1
- package/esm/gen/types/ResourceMetadata.d.ts.map +1 -1
- package/esm/gen/types/ResourceText.d.ts +1 -1
- package/esm/gen/types/ResourceText.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandActivateNotificationArgs.d.ts +1 -1
- package/esm/gen/types/SeelenCommandActivateNotificationArgs.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandArgument.d.ts +67 -31
- package/esm/gen/types/SeelenCommandArgument.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandCreateWorkspaceArgs.d.ts +5 -0
- package/esm/gen/types/SeelenCommandCreateWorkspaceArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandDestroyWorkspaceArgs.d.ts +5 -0
- package/esm/gen/types/SeelenCommandDestroyWorkspaceArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandGetKeyStateArgs.d.ts +4 -0
- package/esm/gen/types/SeelenCommandGetKeyStateArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandReadFileArgs.d.ts +4 -0
- package/esm/gen/types/SeelenCommandReadFileArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandRenameWorkspaceArgs.d.ts +6 -0
- package/esm/gen/types/SeelenCommandRenameWorkspaceArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandReturn.d.ts +72 -35
- package/esm/gen/types/SeelenCommandReturn.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandRunArgs.d.ts +1 -0
- package/esm/gen/types/SeelenCommandRunArgs.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandSetAppWindowsPositionsArgs.d.ts +1 -1
- package/esm/gen/types/SeelenCommandSetAppWindowsPositionsArgs.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandSetMonitorBrightnessArgs.d.ts +5 -0
- package/esm/gen/types/SeelenCommandSetMonitorBrightnessArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandSetMonitorBrightnessArgs.js +2 -0
- package/esm/gen/types/SeelenCommandSetSelfPositionArgs.d.ts +5 -0
- package/esm/gen/types/SeelenCommandSetSelfPositionArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandStateWriteToolbarItemsArgs.d.ts +5 -0
- package/esm/gen/types/SeelenCommandStateWriteToolbarItemsArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandSwitchWorkspaceArgs.d.ts +2 -3
- package/esm/gen/types/SeelenCommandSwitchWorkspaceArgs.d.ts.map +1 -1
- package/esm/gen/types/SeelenCommandTriggerContextMenuArgs.d.ts +6 -0
- package/esm/gen/types/SeelenCommandTriggerContextMenuArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandWallpaperSaveThumbnailArgs.d.ts +6 -0
- package/esm/gen/types/SeelenCommandWallpaperSaveThumbnailArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandWriteFileArgs.d.ts +5 -0
- package/esm/gen/types/SeelenCommandWriteFileArgs.d.ts.map +1 -0
- package/esm/gen/types/SeelenCommandWriteFileArgs.js +2 -0
- package/esm/gen/types/SeelenEventPayload.d.ts +28 -17
- package/esm/gen/types/SeelenEventPayload.d.ts.map +1 -1
- package/esm/gen/types/SeelenWallSettings.d.ts +13 -1
- package/esm/gen/types/SeelenWallSettings.d.ts.map +1 -1
- package/esm/gen/types/SeelenWegSettings.d.ts +0 -4
- package/esm/gen/types/SeelenWegSettings.d.ts.map +1 -1
- package/esm/gen/types/Settings.d.ts +14 -1
- package/esm/gen/types/Settings.d.ts.map +1 -1
- package/esm/gen/types/SettingsByWidget.d.ts +3 -5
- package/esm/gen/types/SettingsByWidget.d.ts.map +1 -1
- package/esm/gen/types/SluHotkeyAction.d.ts +1 -1
- package/esm/gen/types/SluHotkeyAction.d.ts.map +1 -1
- package/esm/gen/types/StartMenuItem.d.ts +4 -0
- package/esm/gen/types/StartMenuItem.d.ts.map +1 -1
- package/esm/gen/types/StartMenuLayout.d.ts +5 -0
- package/esm/gen/types/StartMenuLayout.d.ts.map +1 -0
- package/esm/gen/types/StartMenuLayoutItem.d.ts +10 -0
- package/esm/gen/types/StartMenuLayoutItem.d.ts.map +1 -0
- package/esm/gen/types/StartMenuLayoutItem.js +2 -0
- package/esm/gen/types/StartOfWeek.d.ts +6 -0
- package/esm/gen/types/StartOfWeek.d.ts.map +1 -0
- package/esm/gen/types/StartOfWeek.js +7 -0
- package/esm/gen/types/SystemLanguage.d.ts +4 -1
- package/esm/gen/types/SystemLanguage.d.ts.map +1 -1
- package/esm/gen/types/ThemeSettings.d.ts +1 -1
- package/esm/gen/types/ThemeSettings.d.ts.map +1 -1
- package/esm/gen/types/ThirdPartyWidgetSettings.d.ts +3 -3
- package/esm/gen/types/ThirdPartyWidgetSettings.d.ts.map +1 -1
- package/esm/gen/types/ToolbarItem.d.ts +40 -39
- package/esm/gen/types/ToolbarItem.d.ts.map +1 -1
- package/esm/gen/types/ToolbarJsScope.d.ts +17 -0
- package/esm/gen/types/ToolbarJsScope.d.ts.map +1 -0
- package/esm/gen/types/ToolbarJsScope.js +18 -0
- package/esm/gen/types/{Placeholder.d.ts → ToolbarState.d.ts} +2 -2
- package/esm/gen/types/ToolbarState.d.ts.map +1 -0
- package/esm/gen/types/UniqueIconPackEntry.d.ts +4 -0
- package/esm/gen/types/UniqueIconPackEntry.d.ts.map +1 -1
- package/esm/gen/types/User.d.ts +1 -0
- package/esm/gen/types/User.d.ts.map +1 -1
- package/esm/gen/types/UserAppWindowPreview.d.ts +7 -0
- package/esm/gen/types/UserAppWindowPreview.d.ts.map +1 -0
- package/esm/gen/types/UserAppWindowPreview.js +2 -0
- package/esm/gen/types/VirtualDesktopMonitor.d.ts +1 -3
- package/esm/gen/types/VirtualDesktopMonitor.d.ts.map +1 -1
- package/esm/gen/types/VirtualDesktops.d.ts +1 -1
- package/esm/gen/types/VirtualDesktops.d.ts.map +1 -1
- package/esm/gen/types/WallpaperCollection.d.ts +7 -0
- package/esm/gen/types/WallpaperCollection.d.ts.map +1 -0
- package/esm/gen/types/WegAppGroupItem.d.ts +1 -1
- package/esm/gen/types/WegItem.d.ts +3 -0
- package/esm/gen/types/WegItem.d.ts.map +1 -1
- package/esm/gen/types/WegItemType.d.ts +2 -1
- package/esm/gen/types/WegItemType.d.ts.map +1 -1
- package/esm/gen/types/WegItemType.js +1 -0
- package/esm/gen/types/WidgetConfigDefinition.d.ts +9 -0
- package/esm/gen/types/WidgetConfigDefinition.d.ts.map +1 -0
- package/esm/gen/types/WidgetConfigGroup.d.ts +20 -0
- package/esm/gen/types/WidgetConfigGroup.d.ts.map +1 -0
- package/esm/gen/types/WidgetLoader.d.ts +1 -0
- package/esm/gen/types/WidgetLoader.d.ts.map +1 -1
- package/esm/gen/types/WidgetLoader.js +1 -0
- package/esm/gen/types/WidgetSelectOption.d.ts +19 -0
- package/esm/gen/types/WidgetSelectOption.d.ts.map +1 -0
- package/esm/gen/types/WidgetSelectSubtype.d.ts +8 -0
- package/esm/gen/types/WidgetSelectSubtype.d.ts.map +1 -0
- package/esm/gen/types/WidgetSelectSubtype.js +9 -0
- package/esm/gen/types/WidgetSettingColor.d.ts +38 -0
- package/esm/gen/types/WidgetSettingColor.d.ts.map +1 -0
- package/esm/gen/types/WidgetSettingInputNumber.d.ts +46 -0
- package/esm/gen/types/WidgetSettingInputNumber.d.ts.map +1 -0
- package/esm/gen/types/WidgetSettingInputText.d.ts +46 -0
- package/esm/gen/types/WidgetSettingInputText.d.ts.map +1 -0
- package/esm/gen/types/WidgetSettingItem.d.ts +23 -0
- package/esm/gen/types/WidgetSettingItem.d.ts.map +1 -0
- package/esm/gen/types/WidgetSettingRange.d.ts +46 -0
- package/esm/gen/types/WidgetSettingRange.d.ts.map +1 -0
- package/esm/gen/types/WidgetSettingSelect.d.ts +44 -0
- package/esm/gen/types/WidgetSettingSelect.d.ts.map +1 -0
- package/esm/gen/types/WidgetSettingSwitch.d.ts +34 -0
- package/esm/gen/types/WidgetSettingSwitch.d.ts.map +1 -0
- package/esm/gen/types/WidgetSettingsDeclarationList.d.ts +7 -8
- package/esm/gen/types/WidgetSettingsDeclarationList.d.ts.map +1 -1
- package/esm/gen/types/WidgetStatus.d.ts +1 -1
- package/esm/gen/types/WidgetStatus.d.ts.map +1 -1
- package/esm/gen/types/WidgetStatus.js +1 -1
- package/esm/gen/types/WidgetTriggerPayload.d.ts +3 -2
- package/esm/gen/types/WidgetTriggerPayload.d.ts.map +1 -1
- package/esm/gen/types/WindowManagerSettings.d.ts +5 -0
- package/esm/gen/types/WindowManagerSettings.d.ts.map +1 -1
- package/esm/gen/types/WmAnimations.d.ts +1 -1
- package/esm/gen/types/WmDragBehavior.d.ts +5 -0
- package/esm/gen/types/WmDragBehavior.d.ts.map +1 -0
- package/esm/gen/types/WmDragBehavior.js +6 -0
- package/esm/gen/types/WmRenderTree.d.ts +6 -0
- package/esm/gen/types/WmRenderTree.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceConfiguration.d.ts +8 -0
- package/esm/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
- package/esm/gen/types/WorkspaceConfiguration.js +2 -0
- package/esm/gen/types/mod.d.ts +44 -41
- package/esm/gen/types/mod.d.ts.map +1 -1
- package/esm/gen/types/mod.js +44 -41
- package/esm/src/handlers/commands.d.ts +33 -18
- package/esm/src/handlers/commands.d.ts.map +1 -1
- package/esm/src/handlers/commands.js +32 -17
- package/esm/src/handlers/events.d.ts +12 -9
- package/esm/src/handlers/events.d.ts.map +1 -1
- package/esm/src/handlers/events.js +11 -8
- package/esm/src/lib.d.ts +1 -1
- package/esm/src/lib.d.ts.map +1 -1
- package/esm/src/state/icon_pack.d.ts.map +1 -1
- package/esm/src/state/mod.d.ts +0 -13
- package/esm/src/state/mod.d.ts.map +1 -1
- package/esm/src/state/mod.js +0 -19
- package/esm/src/state/plugin/mod.js +1 -1
- package/esm/src/state/settings/mod.d.ts +1 -8
- package/esm/src/state/settings/mod.d.ts.map +1 -1
- package/esm/src/state/settings/mod.js +1 -23
- package/esm/src/state/theme/mod.js +1 -1
- package/esm/src/state/widget/interfaces.d.ts +39 -0
- package/esm/src/state/widget/interfaces.d.ts.map +1 -0
- package/esm/src/state/widget/mod.d.ts +26 -49
- package/esm/src/state/widget/mod.d.ts.map +1 -1
- package/esm/src/state/widget/mod.js +179 -112
- package/esm/src/state/widget/positioning.d.ts +7 -11
- package/esm/src/state/widget/positioning.d.ts.map +1 -1
- package/esm/src/state/widget/positioning.js +42 -30
- package/esm/src/state/widget/sizing.d.ts +8 -6
- package/esm/src/state/widget/sizing.d.ts.map +1 -1
- package/esm/src/state/widget/sizing.js +46 -22
- package/esm/src/system_state/language.d.ts +1 -13
- package/esm/src/system_state/language.d.ts.map +1 -1
- package/esm/src/system_state/user.d.ts +1 -30
- package/esm/src/system_state/user.d.ts.map +1 -1
- package/esm/src/system_state/user.js +1 -48
- package/package.json +6 -6
- package/readme.md +1 -1
- package/script/gen/types/AppNotification.d.ts +1 -1
- package/script/gen/types/AppsConfigurationList.d.ts +3 -0
- package/script/gen/types/AppsConfigurationList.d.ts.map +1 -0
- package/script/gen/types/BluetoothDevice.d.ts +1 -1
- package/script/gen/types/ContextMenu.d.ts +6 -0
- package/script/gen/types/ContextMenu.d.ts.map +1 -0
- package/script/gen/types/ContextMenuItem.d.ts +26 -0
- package/script/gen/types/ContextMenuItem.d.ts.map +1 -0
- package/script/gen/types/Core.d.ts +7 -0
- package/script/gen/types/Core.d.ts.map +1 -0
- package/script/gen/types/CssStyles.d.ts +1 -1
- package/script/gen/types/CssStyles.d.ts.map +1 -1
- package/script/gen/types/DesktopWorkspace.d.ts +2 -0
- package/script/gen/types/DesktopWorkspace.d.ts.map +1 -1
- package/script/gen/types/Disk.d.ts +11 -0
- package/script/gen/types/Disk.d.ts.map +1 -0
- package/script/gen/types/FolderChangedArgs.d.ts +1 -2
- package/script/gen/types/FolderChangedArgs.d.ts.map +1 -1
- package/script/gen/types/FolderType.d.ts +0 -1
- package/script/gen/types/FolderType.d.ts.map +1 -1
- package/script/gen/types/FolderType.js +0 -1
- package/script/gen/types/Frame.d.ts +7 -0
- package/script/gen/types/Frame.d.ts.map +1 -0
- package/script/gen/types/ImeStatus.d.ts +5 -0
- package/script/gen/types/ImeStatus.d.ts.map +1 -0
- package/script/gen/types/KeyboardLayout.d.ts +1 -1
- package/script/gen/types/MediaPlayerTimeline.d.ts +6 -6
- package/script/gen/types/Memory.d.ts +7 -0
- package/script/gen/types/Memory.d.ts.map +1 -0
- package/script/gen/types/MonitorBrightness.d.ts +8 -0
- package/script/gen/types/MonitorBrightness.d.ts.map +1 -0
- package/script/gen/types/MonitorConfiguration.d.ts +13 -0
- package/script/gen/types/MonitorConfiguration.d.ts.map +1 -1
- package/script/gen/types/MultimonitorBehaviour.d.ts +5 -0
- package/script/gen/types/MultimonitorBehaviour.d.ts.map +1 -0
- package/script/gen/types/MultimonitorBehaviour.js +9 -0
- package/script/gen/types/NetworkStatistics.d.ts +8 -0
- package/script/gen/types/NetworkStatistics.d.ts.map +1 -0
- package/script/gen/types/PhysicalMonitor.d.ts +1 -1
- package/script/gen/types/PhysicalMonitor.d.ts.map +1 -1
- package/script/gen/types/Point.d.ts +5 -0
- package/script/gen/types/Point.d.ts.map +1 -0
- package/script/gen/types/Rect.d.ts +6 -0
- package/script/gen/types/Rect.d.ts.map +1 -1
- package/script/gen/types/Resource.d.ts +3 -1
- package/script/gen/types/Resource.d.ts.map +1 -1
- package/script/gen/types/ResourceId.d.ts +2 -1
- package/script/gen/types/ResourceId.d.ts.map +1 -1
- package/script/gen/types/ResourceMetadata.d.ts +6 -1
- package/script/gen/types/ResourceMetadata.d.ts.map +1 -1
- package/script/gen/types/ResourceText.d.ts +1 -1
- package/script/gen/types/ResourceText.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandActivateNotificationArgs.d.ts +1 -1
- package/script/gen/types/SeelenCommandActivateNotificationArgs.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandArgument.d.ts +67 -31
- package/script/gen/types/SeelenCommandArgument.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandCreateWorkspaceArgs.d.ts +5 -0
- package/script/gen/types/SeelenCommandCreateWorkspaceArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandDestroyWorkspaceArgs.d.ts +5 -0
- package/script/gen/types/SeelenCommandDestroyWorkspaceArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandGetKeyStateArgs.d.ts +4 -0
- package/script/gen/types/SeelenCommandGetKeyStateArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandReadFileArgs.d.ts +4 -0
- package/script/gen/types/SeelenCommandReadFileArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandRenameWorkspaceArgs.d.ts +6 -0
- package/script/gen/types/SeelenCommandRenameWorkspaceArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandReturn.d.ts +72 -35
- package/script/gen/types/SeelenCommandReturn.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandRunArgs.d.ts +1 -0
- package/script/gen/types/SeelenCommandRunArgs.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandSetAppWindowsPositionsArgs.d.ts +1 -1
- package/script/gen/types/SeelenCommandSetAppWindowsPositionsArgs.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandSetMonitorBrightnessArgs.d.ts +5 -0
- package/script/gen/types/SeelenCommandSetMonitorBrightnessArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandSetMonitorBrightnessArgs.js +3 -0
- package/script/gen/types/SeelenCommandSetSelfPositionArgs.d.ts +5 -0
- package/script/gen/types/SeelenCommandSetSelfPositionArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandStateWriteToolbarItemsArgs.d.ts +5 -0
- package/script/gen/types/SeelenCommandStateWriteToolbarItemsArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandSwitchWorkspaceArgs.d.ts +2 -3
- package/script/gen/types/SeelenCommandSwitchWorkspaceArgs.d.ts.map +1 -1
- package/script/gen/types/SeelenCommandTriggerContextMenuArgs.d.ts +6 -0
- package/script/gen/types/SeelenCommandTriggerContextMenuArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandWallpaperSaveThumbnailArgs.d.ts +6 -0
- package/script/gen/types/SeelenCommandWallpaperSaveThumbnailArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandWriteFileArgs.d.ts +5 -0
- package/script/gen/types/SeelenCommandWriteFileArgs.d.ts.map +1 -0
- package/script/gen/types/SeelenCommandWriteFileArgs.js +3 -0
- package/script/gen/types/SeelenEventPayload.d.ts +28 -17
- package/script/gen/types/SeelenEventPayload.d.ts.map +1 -1
- package/script/gen/types/SeelenWallSettings.d.ts +13 -1
- package/script/gen/types/SeelenWallSettings.d.ts.map +1 -1
- package/script/gen/types/SeelenWegSettings.d.ts +0 -4
- package/script/gen/types/SeelenWegSettings.d.ts.map +1 -1
- package/script/gen/types/Settings.d.ts +14 -1
- package/script/gen/types/Settings.d.ts.map +1 -1
- package/script/gen/types/SettingsByWidget.d.ts +3 -5
- package/script/gen/types/SettingsByWidget.d.ts.map +1 -1
- package/script/gen/types/SluHotkeyAction.d.ts +1 -1
- package/script/gen/types/SluHotkeyAction.d.ts.map +1 -1
- package/script/gen/types/StartMenuItem.d.ts +4 -0
- package/script/gen/types/StartMenuItem.d.ts.map +1 -1
- package/script/gen/types/StartMenuLayout.d.ts +5 -0
- package/script/gen/types/StartMenuLayout.d.ts.map +1 -0
- package/script/gen/types/StartMenuLayoutItem.d.ts +10 -0
- package/script/gen/types/StartMenuLayoutItem.d.ts.map +1 -0
- package/script/gen/types/StartMenuLayoutItem.js +3 -0
- package/script/gen/types/StartOfWeek.d.ts +6 -0
- package/script/gen/types/StartOfWeek.d.ts.map +1 -0
- package/script/gen/types/StartOfWeek.js +10 -0
- package/script/gen/types/SystemLanguage.d.ts +4 -1
- package/script/gen/types/SystemLanguage.d.ts.map +1 -1
- package/script/gen/types/ThemeSettings.d.ts +1 -1
- package/script/gen/types/ThemeSettings.d.ts.map +1 -1
- package/script/gen/types/ThirdPartyWidgetSettings.d.ts +3 -3
- package/script/gen/types/ThirdPartyWidgetSettings.d.ts.map +1 -1
- package/script/gen/types/ToolbarItem.d.ts +40 -39
- package/script/gen/types/ToolbarItem.d.ts.map +1 -1
- package/script/gen/types/ToolbarJsScope.d.ts +17 -0
- package/script/gen/types/ToolbarJsScope.d.ts.map +1 -0
- package/script/gen/types/ToolbarJsScope.js +21 -0
- package/script/gen/types/{Placeholder.d.ts → ToolbarState.d.ts} +2 -2
- package/script/gen/types/ToolbarState.d.ts.map +1 -0
- package/script/gen/types/UniqueIconPackEntry.d.ts +4 -0
- package/script/gen/types/UniqueIconPackEntry.d.ts.map +1 -1
- package/script/gen/types/User.d.ts +1 -0
- package/script/gen/types/User.d.ts.map +1 -1
- package/script/gen/types/UserAppWindowPreview.d.ts +7 -0
- package/script/gen/types/UserAppWindowPreview.d.ts.map +1 -0
- package/script/gen/types/UserAppWindowPreview.js +3 -0
- package/script/gen/types/VirtualDesktopMonitor.d.ts +1 -3
- package/script/gen/types/VirtualDesktopMonitor.d.ts.map +1 -1
- package/script/gen/types/VirtualDesktops.d.ts +1 -1
- package/script/gen/types/VirtualDesktops.d.ts.map +1 -1
- package/script/gen/types/WallpaperCollection.d.ts +7 -0
- package/script/gen/types/WallpaperCollection.d.ts.map +1 -0
- package/script/gen/types/WegAppGroupItem.d.ts +1 -1
- package/script/gen/types/WegItem.d.ts +3 -0
- package/script/gen/types/WegItem.d.ts.map +1 -1
- package/script/gen/types/WegItemType.d.ts +2 -1
- package/script/gen/types/WegItemType.d.ts.map +1 -1
- package/script/gen/types/WegItemType.js +1 -0
- package/script/gen/types/WidgetConfigDefinition.d.ts +9 -0
- package/script/gen/types/WidgetConfigDefinition.d.ts.map +1 -0
- package/script/gen/types/WidgetConfigGroup.d.ts +20 -0
- package/script/gen/types/WidgetConfigGroup.d.ts.map +1 -0
- package/script/gen/types/WidgetLoader.d.ts +1 -0
- package/script/gen/types/WidgetLoader.d.ts.map +1 -1
- package/script/gen/types/WidgetLoader.js +1 -0
- package/script/gen/types/WidgetSelectOption.d.ts +19 -0
- package/script/gen/types/WidgetSelectOption.d.ts.map +1 -0
- package/script/gen/types/WidgetSelectSubtype.d.ts +8 -0
- package/script/gen/types/WidgetSelectSubtype.d.ts.map +1 -0
- package/script/gen/types/WidgetSelectSubtype.js +12 -0
- package/script/gen/types/WidgetSettingColor.d.ts +38 -0
- package/script/gen/types/WidgetSettingColor.d.ts.map +1 -0
- package/script/gen/types/WidgetSettingInputNumber.d.ts +46 -0
- package/script/gen/types/WidgetSettingInputNumber.d.ts.map +1 -0
- package/script/gen/types/WidgetSettingInputText.d.ts +46 -0
- package/script/gen/types/WidgetSettingInputText.d.ts.map +1 -0
- package/script/gen/types/WidgetSettingItem.d.ts +23 -0
- package/script/gen/types/WidgetSettingItem.d.ts.map +1 -0
- package/script/gen/types/WidgetSettingRange.d.ts +46 -0
- package/script/gen/types/WidgetSettingRange.d.ts.map +1 -0
- package/script/gen/types/WidgetSettingSelect.d.ts +44 -0
- package/script/gen/types/WidgetSettingSelect.d.ts.map +1 -0
- package/script/gen/types/WidgetSettingSwitch.d.ts +34 -0
- package/script/gen/types/WidgetSettingSwitch.d.ts.map +1 -0
- package/script/gen/types/WidgetSettingsDeclarationList.d.ts +7 -8
- package/script/gen/types/WidgetSettingsDeclarationList.d.ts.map +1 -1
- package/script/gen/types/WidgetStatus.d.ts +1 -1
- package/script/gen/types/WidgetStatus.d.ts.map +1 -1
- package/script/gen/types/WidgetStatus.js +1 -1
- package/script/gen/types/WidgetTriggerPayload.d.ts +3 -2
- package/script/gen/types/WidgetTriggerPayload.d.ts.map +1 -1
- package/script/gen/types/WindowManagerSettings.d.ts +5 -0
- package/script/gen/types/WindowManagerSettings.d.ts.map +1 -1
- package/script/gen/types/WmAnimations.d.ts +1 -1
- package/script/gen/types/WmDragBehavior.d.ts +5 -0
- package/script/gen/types/WmDragBehavior.d.ts.map +1 -0
- package/script/gen/types/WmDragBehavior.js +9 -0
- package/script/gen/types/WmRenderTree.d.ts +6 -0
- package/script/gen/types/WmRenderTree.d.ts.map +1 -0
- package/script/gen/types/WorkspaceConfiguration.d.ts +8 -0
- package/script/gen/types/WorkspaceConfiguration.d.ts.map +1 -0
- package/script/gen/types/WorkspaceConfiguration.js +3 -0
- package/script/gen/types/mod.d.ts +44 -41
- package/script/gen/types/mod.d.ts.map +1 -1
- package/script/gen/types/mod.js +44 -41
- package/script/src/handlers/commands.d.ts +33 -18
- package/script/src/handlers/commands.d.ts.map +1 -1
- package/script/src/handlers/commands.js +32 -17
- package/script/src/handlers/events.d.ts +12 -9
- package/script/src/handlers/events.d.ts.map +1 -1
- package/script/src/handlers/events.js +11 -8
- package/script/src/lib.d.ts +1 -1
- package/script/src/lib.d.ts.map +1 -1
- package/script/src/state/icon_pack.d.ts.map +1 -1
- package/script/src/state/mod.d.ts +0 -13
- package/script/src/state/mod.d.ts.map +1 -1
- package/script/src/state/mod.js +0 -21
- package/script/src/state/plugin/mod.js +1 -1
- package/script/src/state/settings/mod.d.ts +1 -8
- package/script/src/state/settings/mod.d.ts.map +1 -1
- package/script/src/state/settings/mod.js +0 -36
- package/script/src/state/theme/mod.js +1 -1
- package/script/src/state/widget/interfaces.d.ts +39 -0
- package/script/src/state/widget/interfaces.d.ts.map +1 -0
- package/script/src/state/widget/mod.d.ts +26 -49
- package/script/src/state/widget/mod.d.ts.map +1 -1
- package/script/src/state/widget/mod.js +179 -113
- package/script/src/state/widget/positioning.d.ts +7 -11
- package/script/src/state/widget/positioning.d.ts.map +1 -1
- package/script/src/state/widget/positioning.js +45 -31
- package/script/src/state/widget/sizing.d.ts +8 -6
- package/script/src/state/widget/sizing.d.ts.map +1 -1
- package/script/src/state/widget/sizing.js +45 -21
- package/script/src/system_state/language.d.ts +1 -13
- package/script/src/system_state/language.d.ts.map +1 -1
- package/script/src/system_state/user.d.ts +1 -30
- package/script/src/system_state/user.d.ts.map +1 -1
- package/script/src/system_state/user.js +1 -56
- package/esm/gen/types/BluetoothToolbarItem.d.ts +0 -193
- package/esm/gen/types/BluetoothToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/Brightness.d.ts +0 -6
- package/esm/gen/types/Brightness.d.ts.map +0 -1
- package/esm/gen/types/DateToolbarItem.d.ts +0 -69
- package/esm/gen/types/DateToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/DeviceToolbarItem.d.ts +0 -61
- package/esm/gen/types/DeviceToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/File.d.ts +0 -5
- package/esm/gen/types/File.d.ts.map +0 -1
- package/esm/gen/types/GenericToolbarItem.d.ts +0 -89
- package/esm/gen/types/GenericToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/KeyboardToolbarItem.d.ts +0 -145
- package/esm/gen/types/KeyboardToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/LauncherHistory.d.ts +0 -4
- package/esm/gen/types/LauncherHistory.d.ts.map +0 -1
- package/esm/gen/types/MediaToolbarItem.d.ts +0 -145
- package/esm/gen/types/MediaToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/NetworkToolbarItem.d.ts +0 -125
- package/esm/gen/types/NetworkToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/NotificationsToolbarItem.d.ts +0 -69
- package/esm/gen/types/NotificationsToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/Placeholder.d.ts.map +0 -1
- package/esm/gen/types/PowerToolbarItem.d.ts +0 -265
- package/esm/gen/types/PowerToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/Profile.d.ts +0 -8
- package/esm/gen/types/Profile.d.ts.map +0 -1
- package/esm/gen/types/ProfileSettings.d.ts +0 -4
- package/esm/gen/types/ProfileSettings.d.ts.map +0 -1
- package/esm/gen/types/SeelenCommandRunAsAdminArgs.d.ts +0 -6
- package/esm/gen/types/SeelenCommandRunAsAdminArgs.d.ts.map +0 -1
- package/esm/gen/types/SeelenCommandSendKeysArgs.d.ts +0 -4
- package/esm/gen/types/SeelenCommandSendKeysArgs.d.ts.map +0 -1
- package/esm/gen/types/SeelenCommandSetMainMonitorBrightnessArgs.d.ts +0 -4
- package/esm/gen/types/SeelenCommandSetMainMonitorBrightnessArgs.d.ts.map +0 -1
- package/esm/gen/types/SeelenCommandSetUserFolderLimitArgs.d.ts +0 -6
- package/esm/gen/types/SeelenCommandSetUserFolderLimitArgs.d.ts.map +0 -1
- package/esm/gen/types/SeelenCommandWegRequestUpdatePreviewsArgs.d.ts +0 -4
- package/esm/gen/types/SeelenCommandWegRequestUpdatePreviewsArgs.d.ts.map +0 -1
- package/esm/gen/types/SeelenLauncherMonitor.d.ts +0 -5
- package/esm/gen/types/SeelenLauncherMonitor.d.ts.map +0 -1
- package/esm/gen/types/SeelenLauncherMonitor.js +0 -6
- package/esm/gen/types/SeelenLauncherRunner.d.ts +0 -7
- package/esm/gen/types/SeelenLauncherRunner.d.ts.map +0 -1
- package/esm/gen/types/SeelenLauncherSettings.d.ts +0 -8
- package/esm/gen/types/SeelenLauncherSettings.d.ts.map +0 -1
- package/esm/gen/types/SettingsToolbarItem.d.ts +0 -61
- package/esm/gen/types/SettingsToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/TextToolbarItem.d.ts +0 -121
- package/esm/gen/types/TextToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/ToolbarModuleType.d.ts +0 -16
- package/esm/gen/types/ToolbarModuleType.d.ts.map +0 -1
- package/esm/gen/types/ToolbarModuleType.js +0 -17
- package/esm/gen/types/UserApplication.d.ts +0 -7
- package/esm/gen/types/UserApplication.d.ts.map +0 -1
- package/esm/gen/types/UserToolbarItem.d.ts +0 -73
- package/esm/gen/types/UserToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/WorkspaceToolbarItem.d.ts +0 -63
- package/esm/gen/types/WorkspaceToolbarItem.d.ts.map +0 -1
- package/esm/gen/types/WorkspaceToolbarItemMode.d.ts +0 -6
- package/esm/gen/types/WorkspaceToolbarItemMode.d.ts.map +0 -1
- package/esm/gen/types/WorkspaceToolbarItemMode.js +0 -7
- package/esm/gen/types/WsdGroup.d.ts +0 -8
- package/esm/gen/types/WsdGroup.d.ts.map +0 -1
- package/esm/gen/types/WsdGroupEntry.d.ts +0 -13
- package/esm/gen/types/WsdGroupEntry.d.ts.map +0 -1
- package/esm/gen/types/WsdItem.d.ts +0 -20
- package/esm/gen/types/WsdItem.d.ts.map +0 -1
- package/esm/gen/types/WsdItemColor.d.ts +0 -25
- package/esm/gen/types/WsdItemColor.d.ts.map +0 -1
- package/esm/gen/types/WsdItemInputNumber.d.ts +0 -26
- package/esm/gen/types/WsdItemInputNumber.d.ts.map +0 -1
- package/esm/gen/types/WsdItemInputText.d.ts +0 -24
- package/esm/gen/types/WsdItemInputText.d.ts.map +0 -1
- package/esm/gen/types/WsdItemRange.d.ts +0 -27
- package/esm/gen/types/WsdItemRange.d.ts.map +0 -1
- package/esm/gen/types/WsdItemSelect.d.ts +0 -28
- package/esm/gen/types/WsdItemSelect.d.ts.map +0 -1
- package/esm/gen/types/WsdItemSelect.js +0 -1
- package/esm/gen/types/WsdItemSelectOption.d.ts +0 -16
- package/esm/gen/types/WsdItemSelectOption.d.ts.map +0 -1
- package/esm/gen/types/WsdItemSelectOption.js +0 -1
- package/esm/gen/types/WsdItemSelectSubtype.d.ts +0 -2
- package/esm/gen/types/WsdItemSelectSubtype.d.ts.map +0 -1
- package/esm/gen/types/WsdItemSwitch.d.ts +0 -24
- package/esm/gen/types/WsdItemSwitch.d.ts.map +0 -1
- package/esm/gen/types/WsdItemSwitch.js +0 -1
- package/esm/src/state/placeholder.d.ts +0 -2
- package/esm/src/state/placeholder.d.ts.map +0 -1
- package/esm/src/state/placeholder.js +0 -1
- package/esm/src/state/profile.d.ts +0 -6
- package/esm/src/state/profile.d.ts.map +0 -1
- package/esm/src/state/profile.js +0 -8
- package/esm/src/state/settings/settings_by_monitor.d.ts +0 -7
- package/esm/src/state/settings/settings_by_monitor.d.ts.map +0 -1
- package/esm/src/state/settings/settings_by_monitor.js +0 -11
- package/esm/src/state/settings_by_app.d.ts +0 -8
- package/esm/src/state/settings_by_app.d.ts.map +0 -1
- package/esm/src/state/settings_by_app.js +0 -12
- package/esm/src/state/startup.d.ts +0 -5
- package/esm/src/state/startup.d.ts.map +0 -1
- package/esm/src/state/startup.js +0 -9
- package/script/gen/types/BluetoothToolbarItem.d.ts +0 -193
- package/script/gen/types/BluetoothToolbarItem.d.ts.map +0 -1
- package/script/gen/types/Brightness.d.ts +0 -6
- package/script/gen/types/Brightness.d.ts.map +0 -1
- package/script/gen/types/DateToolbarItem.d.ts +0 -69
- package/script/gen/types/DateToolbarItem.d.ts.map +0 -1
- package/script/gen/types/DeviceToolbarItem.d.ts +0 -61
- package/script/gen/types/DeviceToolbarItem.d.ts.map +0 -1
- package/script/gen/types/File.d.ts +0 -5
- package/script/gen/types/File.d.ts.map +0 -1
- package/script/gen/types/GenericToolbarItem.d.ts +0 -89
- package/script/gen/types/GenericToolbarItem.d.ts.map +0 -1
- package/script/gen/types/KeyboardToolbarItem.d.ts +0 -145
- package/script/gen/types/KeyboardToolbarItem.d.ts.map +0 -1
- package/script/gen/types/LauncherHistory.d.ts +0 -4
- package/script/gen/types/LauncherHistory.d.ts.map +0 -1
- package/script/gen/types/MediaToolbarItem.d.ts +0 -145
- package/script/gen/types/MediaToolbarItem.d.ts.map +0 -1
- package/script/gen/types/NetworkToolbarItem.d.ts +0 -125
- package/script/gen/types/NetworkToolbarItem.d.ts.map +0 -1
- package/script/gen/types/NotificationsToolbarItem.d.ts +0 -69
- package/script/gen/types/NotificationsToolbarItem.d.ts.map +0 -1
- package/script/gen/types/Placeholder.d.ts.map +0 -1
- package/script/gen/types/PowerToolbarItem.d.ts +0 -265
- package/script/gen/types/PowerToolbarItem.d.ts.map +0 -1
- package/script/gen/types/Profile.d.ts +0 -8
- package/script/gen/types/Profile.d.ts.map +0 -1
- package/script/gen/types/ProfileSettings.d.ts +0 -4
- package/script/gen/types/ProfileSettings.d.ts.map +0 -1
- package/script/gen/types/SeelenCommandRunAsAdminArgs.d.ts +0 -6
- package/script/gen/types/SeelenCommandRunAsAdminArgs.d.ts.map +0 -1
- package/script/gen/types/SeelenCommandSendKeysArgs.d.ts +0 -4
- package/script/gen/types/SeelenCommandSendKeysArgs.d.ts.map +0 -1
- package/script/gen/types/SeelenCommandSetMainMonitorBrightnessArgs.d.ts +0 -4
- package/script/gen/types/SeelenCommandSetMainMonitorBrightnessArgs.d.ts.map +0 -1
- package/script/gen/types/SeelenCommandSetUserFolderLimitArgs.d.ts +0 -6
- package/script/gen/types/SeelenCommandSetUserFolderLimitArgs.d.ts.map +0 -1
- package/script/gen/types/SeelenCommandWegRequestUpdatePreviewsArgs.d.ts +0 -4
- package/script/gen/types/SeelenCommandWegRequestUpdatePreviewsArgs.d.ts.map +0 -1
- package/script/gen/types/SeelenLauncherMonitor.d.ts +0 -5
- package/script/gen/types/SeelenLauncherMonitor.d.ts.map +0 -1
- package/script/gen/types/SeelenLauncherMonitor.js +0 -9
- package/script/gen/types/SeelenLauncherRunner.d.ts +0 -7
- package/script/gen/types/SeelenLauncherRunner.d.ts.map +0 -1
- package/script/gen/types/SeelenLauncherSettings.d.ts +0 -8
- package/script/gen/types/SeelenLauncherSettings.d.ts.map +0 -1
- package/script/gen/types/SettingsToolbarItem.d.ts +0 -61
- package/script/gen/types/SettingsToolbarItem.d.ts.map +0 -1
- package/script/gen/types/TextToolbarItem.d.ts +0 -121
- package/script/gen/types/TextToolbarItem.d.ts.map +0 -1
- package/script/gen/types/ToolbarModuleType.d.ts +0 -16
- package/script/gen/types/ToolbarModuleType.d.ts.map +0 -1
- package/script/gen/types/ToolbarModuleType.js +0 -20
- package/script/gen/types/UserApplication.d.ts +0 -7
- package/script/gen/types/UserApplication.d.ts.map +0 -1
- package/script/gen/types/UserToolbarItem.d.ts +0 -73
- package/script/gen/types/UserToolbarItem.d.ts.map +0 -1
- package/script/gen/types/WorkspaceToolbarItem.d.ts +0 -63
- package/script/gen/types/WorkspaceToolbarItem.d.ts.map +0 -1
- package/script/gen/types/WorkspaceToolbarItemMode.d.ts +0 -6
- package/script/gen/types/WorkspaceToolbarItemMode.d.ts.map +0 -1
- package/script/gen/types/WorkspaceToolbarItemMode.js +0 -10
- package/script/gen/types/WsdGroup.d.ts +0 -8
- package/script/gen/types/WsdGroup.d.ts.map +0 -1
- package/script/gen/types/WsdGroupEntry.d.ts +0 -13
- package/script/gen/types/WsdGroupEntry.d.ts.map +0 -1
- package/script/gen/types/WsdItem.d.ts +0 -20
- package/script/gen/types/WsdItem.d.ts.map +0 -1
- package/script/gen/types/WsdItemColor.d.ts +0 -25
- package/script/gen/types/WsdItemColor.d.ts.map +0 -1
- package/script/gen/types/WsdItemInputNumber.d.ts +0 -26
- package/script/gen/types/WsdItemInputNumber.d.ts.map +0 -1
- package/script/gen/types/WsdItemInputText.d.ts +0 -24
- package/script/gen/types/WsdItemInputText.d.ts.map +0 -1
- package/script/gen/types/WsdItemRange.d.ts +0 -27
- package/script/gen/types/WsdItemRange.d.ts.map +0 -1
- package/script/gen/types/WsdItemSelect.d.ts +0 -28
- package/script/gen/types/WsdItemSelect.d.ts.map +0 -1
- package/script/gen/types/WsdItemSelect.js +0 -2
- package/script/gen/types/WsdItemSelectOption.d.ts +0 -16
- package/script/gen/types/WsdItemSelectOption.d.ts.map +0 -1
- package/script/gen/types/WsdItemSelectOption.js +0 -2
- package/script/gen/types/WsdItemSelectSubtype.d.ts +0 -2
- package/script/gen/types/WsdItemSelectSubtype.d.ts.map +0 -1
- package/script/gen/types/WsdItemSwitch.d.ts +0 -24
- package/script/gen/types/WsdItemSwitch.d.ts.map +0 -1
- package/script/gen/types/WsdItemSwitch.js +0 -2
- package/script/src/state/placeholder.d.ts +0 -2
- package/script/src/state/placeholder.d.ts.map +0 -1
- package/script/src/state/placeholder.js +0 -2
- package/script/src/state/profile.d.ts +0 -6
- package/script/src/state/profile.d.ts.map +0 -1
- package/script/src/state/profile.js +0 -12
- package/script/src/state/settings/settings_by_monitor.d.ts +0 -7
- package/script/src/state/settings/settings_by_monitor.d.ts.map +0 -1
- package/script/src/state/settings/settings_by_monitor.js +0 -15
- package/script/src/state/settings_by_app.d.ts +0 -8
- package/script/src/state/settings_by_app.d.ts.map +0 -1
- package/script/src/state/settings_by_app.js +0 -16
- package/script/src/state/startup.d.ts +0 -5
- package/script/src/state/startup.d.ts.map +0 -1
- package/script/src/state/startup.js +0 -13
- /package/esm/gen/types/{BluetoothToolbarItem.js → AppsConfigurationList.js} +0 -0
- /package/esm/gen/types/{DateToolbarItem.js → ContextMenu.js} +0 -0
- /package/esm/gen/types/{DeviceToolbarItem.js → ContextMenuItem.js} +0 -0
- /package/esm/gen/types/{Brightness.js → Core.js} +0 -0
- /package/esm/gen/types/{File.js → Disk.js} +0 -0
- /package/esm/gen/types/{LauncherHistory.js → Frame.js} +0 -0
- /package/esm/gen/types/{ProfileSettings.js → ImeStatus.js} +0 -0
- /package/esm/gen/types/{SeelenCommandSendKeysArgs.js → Memory.js} +0 -0
- /package/esm/gen/types/{SeelenCommandSetMainMonitorBrightnessArgs.js → MonitorBrightness.js} +0 -0
- /package/esm/gen/types/{SeelenCommandWegRequestUpdatePreviewsArgs.js → NetworkStatistics.js} +0 -0
- /package/esm/gen/types/{SeelenLauncherRunner.js → Point.js} +0 -0
- /package/esm/gen/types/{GenericToolbarItem.js → SeelenCommandCreateWorkspaceArgs.js} +0 -0
- /package/esm/gen/types/{KeyboardToolbarItem.js → SeelenCommandDestroyWorkspaceArgs.js} +0 -0
- /package/esm/gen/types/{UserApplication.js → SeelenCommandGetKeyStateArgs.js} +0 -0
- /package/esm/gen/types/{WsdItemSelectSubtype.js → SeelenCommandReadFileArgs.js} +0 -0
- /package/esm/gen/types/{MediaToolbarItem.js → SeelenCommandRenameWorkspaceArgs.js} +0 -0
- /package/esm/gen/types/{NetworkToolbarItem.js → SeelenCommandSetSelfPositionArgs.js} +0 -0
- /package/esm/gen/types/{NotificationsToolbarItem.js → SeelenCommandStateWriteToolbarItemsArgs.js} +0 -0
- /package/esm/gen/types/{Placeholder.js → SeelenCommandTriggerContextMenuArgs.js} +0 -0
- /package/esm/gen/types/{PowerToolbarItem.js → SeelenCommandWallpaperSaveThumbnailArgs.js} +0 -0
- /package/esm/gen/types/{Profile.js → StartMenuLayout.js} +0 -0
- /package/esm/gen/types/{SeelenCommandRunAsAdminArgs.js → ToolbarState.js} +0 -0
- /package/esm/gen/types/{SeelenCommandSetUserFolderLimitArgs.js → WallpaperCollection.js} +0 -0
- /package/esm/gen/types/{SeelenLauncherSettings.js → WidgetConfigDefinition.js} +0 -0
- /package/esm/gen/types/{SettingsToolbarItem.js → WidgetConfigGroup.js} +0 -0
- /package/esm/gen/types/{TextToolbarItem.js → WidgetSelectOption.js} +0 -0
- /package/esm/gen/types/{UserToolbarItem.js → WidgetSettingColor.js} +0 -0
- /package/esm/gen/types/{WorkspaceToolbarItem.js → WidgetSettingInputNumber.js} +0 -0
- /package/esm/gen/types/{WsdGroup.js → WidgetSettingInputText.js} +0 -0
- /package/esm/gen/types/{WsdGroupEntry.js → WidgetSettingItem.js} +0 -0
- /package/esm/gen/types/{WsdItem.js → WidgetSettingRange.js} +0 -0
- /package/esm/gen/types/{WsdItemColor.js → WidgetSettingSelect.js} +0 -0
- /package/esm/gen/types/{WsdItemInputNumber.js → WidgetSettingSwitch.js} +0 -0
- /package/esm/gen/types/{WsdItemInputText.js → WmRenderTree.js} +0 -0
- /package/esm/{gen/types/WsdItemRange.js → src/state/widget/interfaces.js} +0 -0
- /package/script/gen/types/{BluetoothToolbarItem.js → AppsConfigurationList.js} +0 -0
- /package/script/gen/types/{DateToolbarItem.js → ContextMenu.js} +0 -0
- /package/script/gen/types/{DeviceToolbarItem.js → ContextMenuItem.js} +0 -0
- /package/script/gen/types/{Brightness.js → Core.js} +0 -0
- /package/script/gen/types/{File.js → Disk.js} +0 -0
- /package/script/gen/types/{LauncherHistory.js → Frame.js} +0 -0
- /package/script/gen/types/{ProfileSettings.js → ImeStatus.js} +0 -0
- /package/script/gen/types/{SeelenCommandSendKeysArgs.js → Memory.js} +0 -0
- /package/script/gen/types/{SeelenCommandSetMainMonitorBrightnessArgs.js → MonitorBrightness.js} +0 -0
- /package/script/gen/types/{SeelenCommandWegRequestUpdatePreviewsArgs.js → NetworkStatistics.js} +0 -0
- /package/script/gen/types/{SeelenLauncherRunner.js → Point.js} +0 -0
- /package/script/gen/types/{GenericToolbarItem.js → SeelenCommandCreateWorkspaceArgs.js} +0 -0
- /package/script/gen/types/{KeyboardToolbarItem.js → SeelenCommandDestroyWorkspaceArgs.js} +0 -0
- /package/script/gen/types/{UserApplication.js → SeelenCommandGetKeyStateArgs.js} +0 -0
- /package/script/gen/types/{WsdItemSelectSubtype.js → SeelenCommandReadFileArgs.js} +0 -0
- /package/script/gen/types/{MediaToolbarItem.js → SeelenCommandRenameWorkspaceArgs.js} +0 -0
- /package/script/gen/types/{NetworkToolbarItem.js → SeelenCommandSetSelfPositionArgs.js} +0 -0
- /package/script/gen/types/{NotificationsToolbarItem.js → SeelenCommandStateWriteToolbarItemsArgs.js} +0 -0
- /package/script/gen/types/{Placeholder.js → SeelenCommandTriggerContextMenuArgs.js} +0 -0
- /package/script/gen/types/{PowerToolbarItem.js → SeelenCommandWallpaperSaveThumbnailArgs.js} +0 -0
- /package/script/gen/types/{Profile.js → StartMenuLayout.js} +0 -0
- /package/script/gen/types/{SeelenCommandRunAsAdminArgs.js → ToolbarState.js} +0 -0
- /package/script/gen/types/{SeelenCommandSetUserFolderLimitArgs.js → WallpaperCollection.js} +0 -0
- /package/script/gen/types/{SeelenLauncherSettings.js → WidgetConfigDefinition.js} +0 -0
- /package/script/gen/types/{SettingsToolbarItem.js → WidgetConfigGroup.js} +0 -0
- /package/script/gen/types/{TextToolbarItem.js → WidgetSelectOption.js} +0 -0
- /package/script/gen/types/{UserToolbarItem.js → WidgetSettingColor.js} +0 -0
- /package/script/gen/types/{WorkspaceToolbarItem.js → WidgetSettingInputNumber.js} +0 -0
- /package/script/gen/types/{WsdGroup.js → WidgetSettingInputText.js} +0 -0
- /package/script/gen/types/{WsdGroupEntry.js → WidgetSettingItem.js} +0 -0
- /package/script/gen/types/{WsdItem.js → WidgetSettingRange.js} +0 -0
- /package/script/gen/types/{WsdItemColor.js → WidgetSettingSelect.js} +0 -0
- /package/script/gen/types/{WsdItemInputNumber.js → WidgetSettingSwitch.js} +0 -0
- /package/script/gen/types/{WsdItemInputText.js → WmRenderTree.js} +0 -0
- /package/script/{gen/types/WsdItemRange.js → src/state/widget/interfaces.js} +0 -0
|
@@ -1,38 +1,32 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
2
|
import { WidgetPreset, WidgetStatus, } from "../../../gen/types/mod.js";
|
|
3
3
|
import { invoke, SeelenCommand, SeelenEvent } from "../../handlers/mod.js";
|
|
4
|
-
import { List } from "../../utils/List.js";
|
|
5
|
-
import { newFromInvoke, newOnEvent } from "../../utils/State.js";
|
|
6
4
|
import { getCurrentWebviewWindow } from "@tauri-apps/api/webviewWindow";
|
|
7
5
|
import { decodeBase64Url } from "../../../deps/jsr.io/@std/encoding/1.0.10/mod.js";
|
|
8
|
-
import { PhysicalPosition, PhysicalSize } from "@tauri-apps/api/dpi";
|
|
9
|
-
import { monitorFromPoint } from "@tauri-apps/api/window";
|
|
10
6
|
import { debounce } from "../../utils/async.js";
|
|
11
7
|
import { WidgetAutoSizer } from "./sizing.js";
|
|
12
|
-
import {
|
|
8
|
+
import { adjustPositionByPlacement, fitIntoMonitor, initMonitorsState } from "./positioning.js";
|
|
13
9
|
import { startThemingTool } from "../theme/theming.js";
|
|
14
|
-
|
|
15
|
-
export const SeelenPopupWidgetId = "@seelen/popup";
|
|
16
|
-
export const SeelenWegWidgetId = "@seelen/weg";
|
|
17
|
-
export const SeelenToolbarWidgetId = "@seelen/fancy-toolbar";
|
|
18
|
-
export const SeelenWindowManagerWidgetId = "@seelen/window-manager";
|
|
19
|
-
export const SeelenLauncherWidgetId = "@seelen/launcher";
|
|
20
|
-
export const SeelenWallWidgetId = "@seelen/wallpaper-manager";
|
|
21
|
-
export class WidgetList extends List {
|
|
22
|
-
static getAsync() {
|
|
23
|
-
return newFromInvoke(this, SeelenCommand.StateGetWidgets);
|
|
24
|
-
}
|
|
25
|
-
static onChange(cb) {
|
|
26
|
-
return newOnEvent(cb, this, SeelenEvent.StateWidgetsChanged);
|
|
27
|
-
}
|
|
28
|
-
findById(id) {
|
|
29
|
-
return this.asArray().find((widget) => widget.id === id);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
10
|
+
import { getCurrentWebview } from "@tauri-apps/api/webview";
|
|
32
11
|
/**
|
|
33
12
|
* Represents the widget instance running in the current webview
|
|
34
13
|
*/
|
|
35
14
|
export class Widget {
|
|
15
|
+
/**
|
|
16
|
+
* Alternative accesor for the current running widget.\
|
|
17
|
+
* Will throw if the library is being used on a non Seelen UI environment
|
|
18
|
+
*/
|
|
19
|
+
static getCurrent() {
|
|
20
|
+
const scope = dntShim.dntGlobalThis;
|
|
21
|
+
if (!scope.__SLU_WIDGET) {
|
|
22
|
+
throw new Error("The library is being used on a non Seelen UI environment");
|
|
23
|
+
}
|
|
24
|
+
return (scope.__SLU_WIDGET_INSTANCE || (scope.__SLU_WIDGET_INSTANCE = new Widget(scope.__SLU_WIDGET)));
|
|
25
|
+
}
|
|
26
|
+
/** The current running widget */
|
|
27
|
+
static get self() {
|
|
28
|
+
return Widget.getCurrent();
|
|
29
|
+
}
|
|
36
30
|
/** widget id */
|
|
37
31
|
id;
|
|
38
32
|
/** widget definition */
|
|
@@ -42,15 +36,24 @@ export class Widget {
|
|
|
42
36
|
/** current webview window */
|
|
43
37
|
webview;
|
|
44
38
|
autoSizer;
|
|
45
|
-
initOptions = {};
|
|
46
39
|
runtimeState = {
|
|
40
|
+
hwnd: 0,
|
|
47
41
|
initialized: false,
|
|
48
42
|
ready: false,
|
|
43
|
+
position: {
|
|
44
|
+
x: 0,
|
|
45
|
+
y: 0,
|
|
46
|
+
},
|
|
47
|
+
size: {
|
|
48
|
+
width: 0,
|
|
49
|
+
height: 0,
|
|
50
|
+
},
|
|
51
|
+
firstFocus: true,
|
|
49
52
|
};
|
|
50
53
|
constructor(widget) {
|
|
51
54
|
this.def = widget;
|
|
52
55
|
this.webview = getCurrentWebviewWindow();
|
|
53
|
-
const [id, query] =
|
|
56
|
+
const [id, query] = getDecodedWebviewLabel();
|
|
54
57
|
const params = new URLSearchParams(query);
|
|
55
58
|
const paramsObj = Object.freeze(Object.fromEntries(params));
|
|
56
59
|
this.id = id;
|
|
@@ -61,43 +64,24 @@ export class Widget {
|
|
|
61
64
|
params: Object.freeze(Object.fromEntries(params)),
|
|
62
65
|
});
|
|
63
66
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const [id, query] = decodedLabel.split("?");
|
|
68
|
-
if (!id) {
|
|
69
|
-
throw new Error("Missing widget id on webview label");
|
|
70
|
-
}
|
|
71
|
-
return [id, query];
|
|
72
|
-
}
|
|
73
|
-
/** Will throw if the library is being used on a non Seelen UI environment */
|
|
74
|
-
static getCurrentWidgetId() {
|
|
75
|
-
return this.getCurrent().id;
|
|
76
|
-
}
|
|
77
|
-
/** Will throw if the library is being used on a non Seelen UI environment */
|
|
78
|
-
static getCurrent() {
|
|
79
|
-
const scope = dntShim.dntGlobalThis;
|
|
80
|
-
if (!scope.__SLU_WIDGET) {
|
|
81
|
-
throw new Error("The library is being used on a non Seelen UI environment");
|
|
82
|
-
}
|
|
83
|
-
return (scope.__SLU_WIDGET_INSTANCE || (scope.__SLU_WIDGET_INSTANCE = new Widget(scope.__SLU_WIDGET)));
|
|
67
|
+
/** Returns the current window id of the widget */
|
|
68
|
+
get windowId() {
|
|
69
|
+
return this.runtimeState.hwnd;
|
|
84
70
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
71
|
+
/** Returns the current position and size of the widget */
|
|
72
|
+
get frame() {
|
|
73
|
+
return {
|
|
74
|
+
x: this.runtimeState.position.x,
|
|
75
|
+
y: this.runtimeState.position.y,
|
|
76
|
+
width: this.runtimeState.size.width,
|
|
77
|
+
height: this.runtimeState.size.height,
|
|
88
78
|
};
|
|
89
|
-
for (const item of entry.children) {
|
|
90
|
-
Object.assign(config, Widget.getEntryDefaultValues(item));
|
|
91
|
-
}
|
|
92
|
-
return config;
|
|
93
79
|
}
|
|
94
80
|
/** Returns the default config of the widget, declared on the widget definition */
|
|
95
81
|
getDefaultConfig() {
|
|
96
82
|
const config = { enabled: true };
|
|
97
|
-
for (const
|
|
98
|
-
|
|
99
|
-
Object.assign(config, Widget.getEntryDefaultValues(entry));
|
|
100
|
-
}
|
|
83
|
+
for (const definition of this.def.settings) {
|
|
84
|
+
Object.assign(config, getDefinitionDefaultValues(definition));
|
|
101
85
|
}
|
|
102
86
|
return config;
|
|
103
87
|
}
|
|
@@ -115,32 +99,17 @@ export class Widget {
|
|
|
115
99
|
}
|
|
116
100
|
/** Will apply the recommended settings for a desktop widget */
|
|
117
101
|
async applyDesktopPreset() {
|
|
118
|
-
await Promise.all([
|
|
119
|
-
...this.applyInvisiblePreset(),
|
|
120
|
-
// Desktop widgets are always on bottom
|
|
121
|
-
this.webview.setAlwaysOnBottom(true),
|
|
122
|
-
this.persistPositionAndSize(),
|
|
123
|
-
]);
|
|
102
|
+
await Promise.all([...this.applyInvisiblePreset(), this.webview.setAlwaysOnBottom(true)]);
|
|
124
103
|
}
|
|
125
104
|
/** Will apply the recommended settings for an overlay widget */
|
|
126
105
|
async applyOverlayPreset() {
|
|
127
|
-
await Promise.all([
|
|
128
|
-
...this.applyInvisiblePreset(),
|
|
129
|
-
// Overlay widgets are always on top
|
|
130
|
-
this.webview.setAlwaysOnTop(true),
|
|
131
|
-
this.persistPositionAndSize(),
|
|
132
|
-
]);
|
|
106
|
+
await Promise.all([...this.applyInvisiblePreset(), this.webview.setAlwaysOnTop(true)]);
|
|
133
107
|
}
|
|
134
108
|
/** Will apply the recommended settings for a popup widget */
|
|
135
109
|
async applyPopupPreset() {
|
|
136
|
-
await Promise.all([...this.applyInvisiblePreset()]);
|
|
137
|
-
// auto close after 1 minute when not in use to save resources
|
|
138
|
-
const closeOnTimeout = debounce(() => {
|
|
139
|
-
this.webview.close();
|
|
140
|
-
}, 60_000);
|
|
110
|
+
await Promise.all([...this.applyInvisiblePreset(), this.webview.setAlwaysOnTop(true)]);
|
|
141
111
|
const hideWebview = debounce(() => {
|
|
142
|
-
this.
|
|
143
|
-
closeOnTimeout();
|
|
112
|
+
this.hide(true);
|
|
144
113
|
}, 100);
|
|
145
114
|
this.webview.onFocusChanged(({ payload: focused }) => {
|
|
146
115
|
if (focused) {
|
|
@@ -153,20 +122,30 @@ export class Widget {
|
|
|
153
122
|
this.onTrigger(async ({ desiredPosition, alignX, alignY }) => {
|
|
154
123
|
// avoid flickering when clicking a button that triggers the widget
|
|
155
124
|
hideWebview.cancel();
|
|
125
|
+
if (this.autoSizer && alignX && alignY) {
|
|
126
|
+
this.autoSizer.originX = alignX;
|
|
127
|
+
this.autoSizer.originY = alignY;
|
|
128
|
+
}
|
|
156
129
|
if (desiredPosition) {
|
|
157
|
-
const
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
130
|
+
const adjusted = adjustPositionByPlacement({
|
|
131
|
+
frame: {
|
|
132
|
+
x: desiredPosition.x,
|
|
133
|
+
y: desiredPosition.y,
|
|
134
|
+
width: this.runtimeState.size.width,
|
|
135
|
+
height: this.runtimeState.size.height,
|
|
136
|
+
},
|
|
137
|
+
originX: alignX,
|
|
138
|
+
originY: alignY,
|
|
139
|
+
});
|
|
140
|
+
await this.setPosition({
|
|
141
|
+
left: adjusted.x,
|
|
142
|
+
top: adjusted.y,
|
|
143
|
+
right: adjusted.x + adjusted.width,
|
|
144
|
+
bottom: adjusted.y + adjusted.height,
|
|
165
145
|
});
|
|
166
|
-
await this.webview.setPosition(new PhysicalPosition(pos.x, pos.y));
|
|
167
146
|
}
|
|
168
|
-
await this.
|
|
169
|
-
await this.
|
|
147
|
+
await this.show();
|
|
148
|
+
await this.focus();
|
|
170
149
|
});
|
|
171
150
|
}
|
|
172
151
|
/**
|
|
@@ -175,30 +154,32 @@ export class Widget {
|
|
|
175
154
|
*/
|
|
176
155
|
async persistPositionAndSize() {
|
|
177
156
|
const storage = globalThis.window.localStorage;
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
157
|
+
const [x, y, width, height] = [`x`, `y`, `width`, `height`].map((k) => storage.getItem(`${k}`));
|
|
158
|
+
if (x && y && width && height) {
|
|
159
|
+
const frame = {
|
|
160
|
+
x: Number(x),
|
|
161
|
+
y: Number(y),
|
|
162
|
+
width: Number(width),
|
|
163
|
+
height: Number(height),
|
|
164
|
+
};
|
|
165
|
+
const safeFrame = fitIntoMonitor(frame);
|
|
166
|
+
await this.setPosition({
|
|
167
|
+
left: safeFrame.x,
|
|
168
|
+
top: safeFrame.y,
|
|
169
|
+
right: safeFrame.x + safeFrame.width,
|
|
170
|
+
bottom: safeFrame.y + safeFrame.height,
|
|
171
|
+
});
|
|
191
172
|
}
|
|
192
173
|
this.webview.onMoved(debounce((e) => {
|
|
193
174
|
const { x, y } = e.payload;
|
|
194
|
-
storage.setItem(
|
|
195
|
-
storage.setItem(
|
|
175
|
+
storage.setItem(`x`, x.toString());
|
|
176
|
+
storage.setItem(`y`, y.toString());
|
|
196
177
|
console.info(`Widget position saved: ${x} ${y}`);
|
|
197
178
|
}, 500));
|
|
198
179
|
this.webview.onResized(debounce((e) => {
|
|
199
180
|
const { width, height } = e.payload;
|
|
200
|
-
storage.setItem(
|
|
201
|
-
storage.setItem(
|
|
181
|
+
storage.setItem(`width`, width.toString());
|
|
182
|
+
storage.setItem(`height`, height.toString());
|
|
202
183
|
console.info(`Widget size saved: ${width} ${height}`);
|
|
203
184
|
}, 500));
|
|
204
185
|
}
|
|
@@ -212,8 +193,14 @@ export class Widget {
|
|
|
212
193
|
console.warn(`Widget already initialized`);
|
|
213
194
|
return;
|
|
214
195
|
}
|
|
196
|
+
this.runtimeState.hwnd = await invoke(SeelenCommand.GetSelfWindowId);
|
|
215
197
|
this.runtimeState.initialized = true;
|
|
216
|
-
|
|
198
|
+
if (options.autoSizeByContent) {
|
|
199
|
+
this.autoSizer = new WidgetAutoSizer(this, options.autoSizeByContent);
|
|
200
|
+
}
|
|
201
|
+
else if (options.saveAndRestoreLastRect ?? this.def.preset === WidgetPreset.Desktop) {
|
|
202
|
+
await this.persistPositionAndSize();
|
|
203
|
+
}
|
|
217
204
|
switch (this.def.preset) {
|
|
218
205
|
case WidgetPreset.None:
|
|
219
206
|
break;
|
|
@@ -228,9 +215,18 @@ export class Widget {
|
|
|
228
215
|
break;
|
|
229
216
|
}
|
|
230
217
|
await startThemingTool();
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
218
|
+
await initMonitorsState();
|
|
219
|
+
// state initialization
|
|
220
|
+
this.runtimeState.size = await this.webview.outerSize();
|
|
221
|
+
this.runtimeState.position = await this.webview.outerPosition();
|
|
222
|
+
this.webview.onResized((e) => {
|
|
223
|
+
this.runtimeState.size.width = e.payload.width;
|
|
224
|
+
this.runtimeState.size.height = e.payload.height;
|
|
225
|
+
});
|
|
226
|
+
this.webview.onMoved((e) => {
|
|
227
|
+
this.runtimeState.position.x = e.payload.x;
|
|
228
|
+
this.runtimeState.position.y = e.payload.y;
|
|
229
|
+
});
|
|
234
230
|
}
|
|
235
231
|
/**
|
|
236
232
|
* Will mark the widget as `ready` and pool pending triggers.
|
|
@@ -238,7 +234,8 @@ export class Widget {
|
|
|
238
234
|
* If the widget is not lazy this will inmediately show the widget.
|
|
239
235
|
* Lazy widget should be shown on trigger action.
|
|
240
236
|
*/
|
|
241
|
-
async ready() {
|
|
237
|
+
async ready(options = {}) {
|
|
238
|
+
const { show = !this.def.lazy } = options;
|
|
242
239
|
if (!this.runtimeState.initialized) {
|
|
243
240
|
throw new Error(`Widget was not initialized before ready`);
|
|
244
241
|
}
|
|
@@ -248,17 +245,87 @@ export class Widget {
|
|
|
248
245
|
}
|
|
249
246
|
this.runtimeState.ready = true;
|
|
250
247
|
await this.autoSizer?.execute();
|
|
251
|
-
if (
|
|
252
|
-
await this.
|
|
248
|
+
if (show && !(await this.webview.isVisible())) {
|
|
249
|
+
await this.show();
|
|
250
|
+
await this.focus();
|
|
253
251
|
}
|
|
254
252
|
// this will mark the widget as ready, and send pending trigger event if exists
|
|
255
253
|
await invoke(SeelenCommand.SetCurrentWidgetStatus, { status: WidgetStatus.Ready });
|
|
256
254
|
}
|
|
257
255
|
onTrigger(cb) {
|
|
258
256
|
this.webview.listen(SeelenEvent.WidgetTriggered, ({ payload }) => {
|
|
259
|
-
// fix for cutted popups, ensure correct size on trigger.
|
|
260
|
-
// await this.autoSizer?.execute();
|
|
261
257
|
cb(payload);
|
|
262
258
|
});
|
|
263
259
|
}
|
|
260
|
+
/** If animations are enabled this will animate the movement of the widget */
|
|
261
|
+
setPosition(rect) {
|
|
262
|
+
this.runtimeState.position.x = rect.left;
|
|
263
|
+
this.runtimeState.position.y = rect.top;
|
|
264
|
+
this.runtimeState.size.width = rect.right - rect.left;
|
|
265
|
+
this.runtimeState.size.height = rect.bottom - rect.top;
|
|
266
|
+
return invoke(SeelenCommand.SetSelfPosition, {
|
|
267
|
+
rect: {
|
|
268
|
+
left: Math.round(rect.left),
|
|
269
|
+
top: Math.round(rect.top),
|
|
270
|
+
right: Math.round(rect.right),
|
|
271
|
+
bottom: Math.round(rect.bottom),
|
|
272
|
+
},
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
async show() {
|
|
276
|
+
debouncedClose.cancel();
|
|
277
|
+
await this.webview.show();
|
|
278
|
+
}
|
|
279
|
+
/** Will force foreground the widget */
|
|
280
|
+
async focus() {
|
|
281
|
+
if (this.runtimeState.firstFocus) {
|
|
282
|
+
await getCurrentWebview().setFocus();
|
|
283
|
+
this.runtimeState.firstFocus = false;
|
|
284
|
+
}
|
|
285
|
+
await invoke(SeelenCommand.RequestFocus, { hwnd: this.runtimeState.hwnd }).catch(() => {
|
|
286
|
+
console.warn(`Failed to focus widget: ${this.decoded.label}`);
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
hide(closeAfterInactivity) {
|
|
290
|
+
Widget.self.webview.hide();
|
|
291
|
+
if (closeAfterInactivity) {
|
|
292
|
+
debouncedClose();
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
const debouncedClose = debounce(() => {
|
|
297
|
+
Widget.self.webview.close();
|
|
298
|
+
}, 30_000);
|
|
299
|
+
export const SeelenSettingsWidgetId = "@seelen/settings";
|
|
300
|
+
export const SeelenPopupWidgetId = "@seelen/popup";
|
|
301
|
+
export const SeelenWegWidgetId = "@seelen/weg";
|
|
302
|
+
export const SeelenToolbarWidgetId = "@seelen/fancy-toolbar";
|
|
303
|
+
export const SeelenWindowManagerWidgetId = "@seelen/window-manager";
|
|
304
|
+
export const SeelenWallWidgetId = "@seelen/wallpaper-manager";
|
|
305
|
+
function getDecodedWebviewLabel() {
|
|
306
|
+
const encondedLabel = getCurrentWebviewWindow().label;
|
|
307
|
+
const decodedLabel = new TextDecoder().decode(decodeBase64Url(encondedLabel));
|
|
308
|
+
const [id, query] = decodedLabel.split("?");
|
|
309
|
+
if (!id) {
|
|
310
|
+
throw new Error("Missing widget id on webview label");
|
|
311
|
+
}
|
|
312
|
+
return [id, query];
|
|
313
|
+
}
|
|
314
|
+
function getDefinitionDefaultValues(definition) {
|
|
315
|
+
const config = {};
|
|
316
|
+
// Check if it's a group (has "group" property)
|
|
317
|
+
if ("group" in definition) {
|
|
318
|
+
// Recursively process all items in the group
|
|
319
|
+
for (const item of definition.group.items) {
|
|
320
|
+
Object.assign(config, getDefinitionDefaultValues(item));
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
// It's a setting item, extract key and defaultValue
|
|
325
|
+
const item = definition;
|
|
326
|
+
if ("key" in item && "defaultValue" in item) {
|
|
327
|
+
config[item.key] = item.defaultValue;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return config;
|
|
264
331
|
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { Alignment } from "../../../gen/types/mod.js";
|
|
1
|
+
import { Alignment, type Frame } from "../../../gen/types/mod.js";
|
|
2
2
|
interface args {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
height: number;
|
|
7
|
-
alignX?: Alignment | null;
|
|
8
|
-
alignY?: Alignment | null;
|
|
3
|
+
frame: Frame;
|
|
4
|
+
originX?: Alignment | null;
|
|
5
|
+
originY?: Alignment | null;
|
|
9
6
|
}
|
|
10
|
-
export declare function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}>;
|
|
7
|
+
export declare function initMonitorsState(): Promise<void>;
|
|
8
|
+
export declare function adjustPositionByPlacement({ frame: { x, y, width, height }, originX, originY, }: args): Frame;
|
|
9
|
+
export declare function fitIntoMonitor({ x, y, width, height }: Frame): Frame;
|
|
14
10
|
export {};
|
|
15
11
|
//# sourceMappingURL=positioning.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positioning.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/positioning.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"positioning.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/positioning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,KAAK,EAAwB,MAAM,2BAA2B,CAAC;AAKxF,UAAU,IAAI;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC5B;AAMD,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAKvD;AAYD,wBAAgB,yBAAyB,CAAC,EACxC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAC9B,OAAO,EACP,OAAO,GACR,EAAE,IAAI,GAAG,KAAK,CAoBd;AAED,wBAAgB,cAAc,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,GAAG,KAAK,CAoCpE"}
|
|
@@ -1,59 +1,71 @@
|
|
|
1
|
-
import { monitorFromPoint } from "@tauri-apps/api/window";
|
|
2
1
|
import { Alignment } from "../../../gen/types/mod.js";
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { invoke, subscribe } from "../../handlers/mod.js";
|
|
3
|
+
import { SeelenCommand } from "../../lib.js";
|
|
4
|
+
import { SeelenEvent } from "../../handlers/events.js";
|
|
5
|
+
const monitors = {
|
|
6
|
+
value: [],
|
|
7
|
+
};
|
|
8
|
+
export async function initMonitorsState() {
|
|
9
|
+
monitors.value = await invoke(SeelenCommand.SystemGetMonitors);
|
|
10
|
+
subscribe(SeelenEvent.SystemMonitorsChanged, ({ payload }) => {
|
|
11
|
+
monitors.value = payload;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function monitorFromPoint(x, y) {
|
|
15
|
+
return monitors.value.find((m) => m.rect.left <= x && x < m.rect.right && m.rect.top <= y && y < m.rect.bottom);
|
|
16
|
+
}
|
|
17
|
+
function primaryMonitor() {
|
|
18
|
+
return monitors.value.find((m) => m.isPrimary);
|
|
19
|
+
}
|
|
20
|
+
export function adjustPositionByPlacement({ frame: { x, y, width, height }, originX, originY, }) {
|
|
21
|
+
if (originX === Alignment.Center) {
|
|
5
22
|
x -= width / 2;
|
|
6
23
|
}
|
|
7
|
-
else if (
|
|
24
|
+
else if (originX === Alignment.End) {
|
|
8
25
|
x -= width;
|
|
9
26
|
}
|
|
10
|
-
if (
|
|
27
|
+
if (originY === Alignment.Center) {
|
|
11
28
|
y -= height / 2;
|
|
12
29
|
}
|
|
13
|
-
else if (
|
|
30
|
+
else if (originY === Alignment.End) {
|
|
14
31
|
y -= height;
|
|
15
32
|
}
|
|
16
|
-
const
|
|
33
|
+
const newFrame = fitIntoMonitor({ x, y, width, height });
|
|
17
34
|
return {
|
|
18
|
-
x: Math.round(
|
|
19
|
-
y: Math.round(
|
|
35
|
+
x: Math.round(newFrame.x),
|
|
36
|
+
y: Math.round(newFrame.y),
|
|
37
|
+
width: Math.round(newFrame.width),
|
|
38
|
+
height: Math.round(newFrame.height),
|
|
20
39
|
};
|
|
21
40
|
}
|
|
22
|
-
|
|
23
|
-
const monitor =
|
|
41
|
+
export function fitIntoMonitor({ x, y, width, height }) {
|
|
42
|
+
const monitor = monitorFromPoint(Math.round(x), Math.round(y)) || primaryMonitor();
|
|
24
43
|
if (monitor) {
|
|
44
|
+
width = Math.min(width, monitor.rect.right - monitor.rect.left);
|
|
45
|
+
height = Math.min(height, monitor.rect.bottom - monitor.rect.top);
|
|
25
46
|
const x2 = x + width;
|
|
26
47
|
const y2 = y + height;
|
|
27
|
-
const mx = monitor.position.x;
|
|
28
|
-
const my = monitor.position.y;
|
|
29
|
-
const mx2 = mx + monitor.size.width;
|
|
30
|
-
const my2 = my + monitor.size.height;
|
|
31
48
|
// check left edge
|
|
32
|
-
if (x <
|
|
33
|
-
x =
|
|
49
|
+
if (x < monitor.rect.left) {
|
|
50
|
+
x = monitor.rect.left;
|
|
34
51
|
}
|
|
35
52
|
// check top edge
|
|
36
|
-
if (y <
|
|
37
|
-
y =
|
|
53
|
+
if (y < monitor.rect.top) {
|
|
54
|
+
y = monitor.rect.top;
|
|
38
55
|
}
|
|
39
56
|
// check right edge
|
|
40
|
-
if (x2 >
|
|
41
|
-
x =
|
|
57
|
+
if (x2 > monitor.rect.right) {
|
|
58
|
+
x = monitor.rect.right - width;
|
|
42
59
|
}
|
|
43
60
|
// check bottom edge
|
|
44
|
-
if (y2 >
|
|
45
|
-
y =
|
|
46
|
-
}
|
|
47
|
-
// ensure final position is still within monitor bounds (in case window is larger than monitor)
|
|
48
|
-
if (x < mx) {
|
|
49
|
-
x = mx;
|
|
50
|
-
}
|
|
51
|
-
if (y < my) {
|
|
52
|
-
y = my;
|
|
61
|
+
if (y2 > monitor.rect.bottom) {
|
|
62
|
+
y = monitor.rect.bottom - height;
|
|
53
63
|
}
|
|
54
64
|
}
|
|
55
65
|
return {
|
|
56
66
|
x,
|
|
57
67
|
y,
|
|
68
|
+
width,
|
|
69
|
+
height,
|
|
58
70
|
};
|
|
59
71
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
onResize?: () => void;
|
|
4
|
-
}
|
|
1
|
+
import type { Widget } from "./mod.js";
|
|
2
|
+
import { Alignment } from "../../../gen/types/mod.js";
|
|
5
3
|
export declare class WidgetAutoSizer {
|
|
6
|
-
private
|
|
4
|
+
private widget;
|
|
7
5
|
private element;
|
|
8
|
-
|
|
6
|
+
/** From which side the widget will grow */
|
|
7
|
+
originX: Alignment;
|
|
8
|
+
/** From which side the widget will grow */
|
|
9
|
+
originY: Alignment;
|
|
10
|
+
constructor(widget: Widget, element: HTMLElement);
|
|
9
11
|
private setup;
|
|
10
12
|
execute(): Promise<void>;
|
|
11
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/sizing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/sizing.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,qBAAa,eAAe;IAOxB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IAPjB,2CAA2C;IAC3C,OAAO,EAAE,SAAS,CAAmB;IACrC,2CAA2C;IAC3C,OAAO,EAAE,SAAS,CAAmB;gBAG3B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,WAAW;IAM9B,OAAO,CAAC,KAAK;IAcP,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CA6C/B"}
|
|
@@ -1,42 +1,66 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PhysicalSize } from "@tauri-apps/api/dpi";
|
|
2
|
+
import { Alignment } from "../../../gen/types/mod.js";
|
|
2
3
|
export class WidgetAutoSizer {
|
|
3
|
-
|
|
4
|
+
widget;
|
|
4
5
|
element;
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
/** From which side the widget will grow */
|
|
7
|
+
originX = Alignment.Start;
|
|
8
|
+
/** From which side the widget will grow */
|
|
9
|
+
originY = Alignment.Start;
|
|
10
|
+
constructor(widget, element) {
|
|
11
|
+
this.widget = widget;
|
|
7
12
|
this.element = element;
|
|
8
13
|
this.execute = this.execute.bind(this);
|
|
9
14
|
this.setup();
|
|
10
15
|
}
|
|
11
16
|
setup() {
|
|
12
17
|
// Disable resizing by the user
|
|
13
|
-
this.webview.setResizable(false);
|
|
14
|
-
|
|
15
|
-
const observer = new MutationObserver(this.execute);
|
|
18
|
+
this.widget.webview.setResizable(false);
|
|
19
|
+
const observer = new ResizeObserver(this.execute);
|
|
16
20
|
observer.observe(this.element, {
|
|
17
|
-
|
|
18
|
-
subtree: true,
|
|
19
|
-
attributes: true,
|
|
20
|
-
characterData: true,
|
|
21
|
+
box: "border-box",
|
|
21
22
|
});
|
|
22
|
-
// Cleanup function
|
|
23
23
|
return () => {
|
|
24
24
|
observer.disconnect();
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
async execute() {
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
|
|
28
|
+
const { x, y, width, height } = this.widget.frame;
|
|
29
|
+
const frame = {
|
|
30
|
+
x,
|
|
31
|
+
y,
|
|
32
|
+
width: Math.ceil(this.element.scrollWidth * globalThis.window.devicePixelRatio),
|
|
33
|
+
height: Math.ceil(this.element.scrollHeight * globalThis.window.devicePixelRatio),
|
|
34
|
+
};
|
|
35
|
+
const widthDiff = frame.width - width;
|
|
36
|
+
const heightDiff = frame.height - height;
|
|
37
|
+
// Only update if the difference is more than 1px (avoid infinite loops from decimal differences)
|
|
38
|
+
if (widthDiff === 0 && heightDiff === 0) {
|
|
31
39
|
return;
|
|
32
40
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
console.trace(`Auto resize from ${width}x${height} to ${frame.width}x${frame.height}`);
|
|
42
|
+
if (this.originX === Alignment.Center) {
|
|
43
|
+
frame.x -= widthDiff / 2;
|
|
44
|
+
}
|
|
45
|
+
else if (this.originX === Alignment.End) {
|
|
46
|
+
frame.x -= widthDiff;
|
|
47
|
+
}
|
|
48
|
+
if (this.originY === Alignment.Center) {
|
|
49
|
+
frame.y -= heightDiff / 2;
|
|
40
50
|
}
|
|
51
|
+
else if (this.originY === Alignment.End) {
|
|
52
|
+
frame.y -= heightDiff;
|
|
53
|
+
}
|
|
54
|
+
// only update size no position on this case
|
|
55
|
+
if (frame.x === x && frame.y === y) {
|
|
56
|
+
await this.widget.webview.setSize(new PhysicalSize(frame.width, frame.height));
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
await this.widget.setPosition({
|
|
60
|
+
left: frame.x,
|
|
61
|
+
top: frame.y,
|
|
62
|
+
right: frame.x + frame.width,
|
|
63
|
+
bottom: frame.y + frame.height,
|
|
64
|
+
});
|
|
41
65
|
}
|
|
42
66
|
}
|