@seelen-ui/lib 2.4.10 → 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
|
@@ -33,43 +33,36 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
36
|
+
exports.SeelenWallWidgetId = exports.SeelenWindowManagerWidgetId = exports.SeelenToolbarWidgetId = exports.SeelenWegWidgetId = exports.SeelenPopupWidgetId = exports.SeelenSettingsWidgetId = exports.Widget = void 0;
|
|
37
37
|
const dntShim = __importStar(require("../../../_dnt.shims.js"));
|
|
38
38
|
const mod_js_1 = require("../../../gen/types/mod.js");
|
|
39
39
|
const mod_js_2 = require("../../handlers/mod.js");
|
|
40
|
-
const List_js_1 = require("../../utils/List.js");
|
|
41
|
-
const State_js_1 = require("../../utils/State.js");
|
|
42
40
|
const webviewWindow_1 = require("@tauri-apps/api/webviewWindow");
|
|
43
41
|
const mod_js_3 = require("../../../deps/jsr.io/@std/encoding/1.0.10/mod.js");
|
|
44
|
-
const dpi_1 = require("@tauri-apps/api/dpi");
|
|
45
|
-
const window_1 = require("@tauri-apps/api/window");
|
|
46
42
|
const async_js_1 = require("../../utils/async.js");
|
|
47
43
|
const sizing_js_1 = require("./sizing.js");
|
|
48
44
|
const positioning_js_1 = require("./positioning.js");
|
|
49
45
|
const theming_js_1 = require("../theme/theming.js");
|
|
50
|
-
|
|
51
|
-
exports.SeelenPopupWidgetId = "@seelen/popup";
|
|
52
|
-
exports.SeelenWegWidgetId = "@seelen/weg";
|
|
53
|
-
exports.SeelenToolbarWidgetId = "@seelen/fancy-toolbar";
|
|
54
|
-
exports.SeelenWindowManagerWidgetId = "@seelen/window-manager";
|
|
55
|
-
exports.SeelenLauncherWidgetId = "@seelen/launcher";
|
|
56
|
-
exports.SeelenWallWidgetId = "@seelen/wallpaper-manager";
|
|
57
|
-
class WidgetList extends List_js_1.List {
|
|
58
|
-
static getAsync() {
|
|
59
|
-
return (0, State_js_1.newFromInvoke)(this, mod_js_2.SeelenCommand.StateGetWidgets);
|
|
60
|
-
}
|
|
61
|
-
static onChange(cb) {
|
|
62
|
-
return (0, State_js_1.newOnEvent)(cb, this, mod_js_2.SeelenEvent.StateWidgetsChanged);
|
|
63
|
-
}
|
|
64
|
-
findById(id) {
|
|
65
|
-
return this.asArray().find((widget) => widget.id === id);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.WidgetList = WidgetList;
|
|
46
|
+
const webview_1 = require("@tauri-apps/api/webview");
|
|
69
47
|
/**
|
|
70
48
|
* Represents the widget instance running in the current webview
|
|
71
49
|
*/
|
|
72
50
|
class Widget {
|
|
51
|
+
/**
|
|
52
|
+
* Alternative accesor for the current running widget.\
|
|
53
|
+
* Will throw if the library is being used on a non Seelen UI environment
|
|
54
|
+
*/
|
|
55
|
+
static getCurrent() {
|
|
56
|
+
const scope = dntShim.dntGlobalThis;
|
|
57
|
+
if (!scope.__SLU_WIDGET) {
|
|
58
|
+
throw new Error("The library is being used on a non Seelen UI environment");
|
|
59
|
+
}
|
|
60
|
+
return (scope.__SLU_WIDGET_INSTANCE || (scope.__SLU_WIDGET_INSTANCE = new Widget(scope.__SLU_WIDGET)));
|
|
61
|
+
}
|
|
62
|
+
/** The current running widget */
|
|
63
|
+
static get self() {
|
|
64
|
+
return Widget.getCurrent();
|
|
65
|
+
}
|
|
73
66
|
/** widget id */
|
|
74
67
|
id;
|
|
75
68
|
/** widget definition */
|
|
@@ -79,15 +72,24 @@ class Widget {
|
|
|
79
72
|
/** current webview window */
|
|
80
73
|
webview;
|
|
81
74
|
autoSizer;
|
|
82
|
-
initOptions = {};
|
|
83
75
|
runtimeState = {
|
|
76
|
+
hwnd: 0,
|
|
84
77
|
initialized: false,
|
|
85
78
|
ready: false,
|
|
79
|
+
position: {
|
|
80
|
+
x: 0,
|
|
81
|
+
y: 0,
|
|
82
|
+
},
|
|
83
|
+
size: {
|
|
84
|
+
width: 0,
|
|
85
|
+
height: 0,
|
|
86
|
+
},
|
|
87
|
+
firstFocus: true,
|
|
86
88
|
};
|
|
87
89
|
constructor(widget) {
|
|
88
90
|
this.def = widget;
|
|
89
91
|
this.webview = (0, webviewWindow_1.getCurrentWebviewWindow)();
|
|
90
|
-
const [id, query] =
|
|
92
|
+
const [id, query] = getDecodedWebviewLabel();
|
|
91
93
|
const params = new URLSearchParams(query);
|
|
92
94
|
const paramsObj = Object.freeze(Object.fromEntries(params));
|
|
93
95
|
this.id = id;
|
|
@@ -98,43 +100,24 @@ class Widget {
|
|
|
98
100
|
params: Object.freeze(Object.fromEntries(params)),
|
|
99
101
|
});
|
|
100
102
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
const [id, query] = decodedLabel.split("?");
|
|
105
|
-
if (!id) {
|
|
106
|
-
throw new Error("Missing widget id on webview label");
|
|
107
|
-
}
|
|
108
|
-
return [id, query];
|
|
109
|
-
}
|
|
110
|
-
/** Will throw if the library is being used on a non Seelen UI environment */
|
|
111
|
-
static getCurrentWidgetId() {
|
|
112
|
-
return this.getCurrent().id;
|
|
113
|
-
}
|
|
114
|
-
/** Will throw if the library is being used on a non Seelen UI environment */
|
|
115
|
-
static getCurrent() {
|
|
116
|
-
const scope = dntShim.dntGlobalThis;
|
|
117
|
-
if (!scope.__SLU_WIDGET) {
|
|
118
|
-
throw new Error("The library is being used on a non Seelen UI environment");
|
|
119
|
-
}
|
|
120
|
-
return (scope.__SLU_WIDGET_INSTANCE || (scope.__SLU_WIDGET_INSTANCE = new Widget(scope.__SLU_WIDGET)));
|
|
103
|
+
/** Returns the current window id of the widget */
|
|
104
|
+
get windowId() {
|
|
105
|
+
return this.runtimeState.hwnd;
|
|
121
106
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
107
|
+
/** Returns the current position and size of the widget */
|
|
108
|
+
get frame() {
|
|
109
|
+
return {
|
|
110
|
+
x: this.runtimeState.position.x,
|
|
111
|
+
y: this.runtimeState.position.y,
|
|
112
|
+
width: this.runtimeState.size.width,
|
|
113
|
+
height: this.runtimeState.size.height,
|
|
125
114
|
};
|
|
126
|
-
for (const item of entry.children) {
|
|
127
|
-
Object.assign(config, Widget.getEntryDefaultValues(item));
|
|
128
|
-
}
|
|
129
|
-
return config;
|
|
130
115
|
}
|
|
131
116
|
/** Returns the default config of the widget, declared on the widget definition */
|
|
132
117
|
getDefaultConfig() {
|
|
133
118
|
const config = { enabled: true };
|
|
134
|
-
for (const
|
|
135
|
-
|
|
136
|
-
Object.assign(config, Widget.getEntryDefaultValues(entry));
|
|
137
|
-
}
|
|
119
|
+
for (const definition of this.def.settings) {
|
|
120
|
+
Object.assign(config, getDefinitionDefaultValues(definition));
|
|
138
121
|
}
|
|
139
122
|
return config;
|
|
140
123
|
}
|
|
@@ -152,32 +135,17 @@ class Widget {
|
|
|
152
135
|
}
|
|
153
136
|
/** Will apply the recommended settings for a desktop widget */
|
|
154
137
|
async applyDesktopPreset() {
|
|
155
|
-
await Promise.all([
|
|
156
|
-
...this.applyInvisiblePreset(),
|
|
157
|
-
// Desktop widgets are always on bottom
|
|
158
|
-
this.webview.setAlwaysOnBottom(true),
|
|
159
|
-
this.persistPositionAndSize(),
|
|
160
|
-
]);
|
|
138
|
+
await Promise.all([...this.applyInvisiblePreset(), this.webview.setAlwaysOnBottom(true)]);
|
|
161
139
|
}
|
|
162
140
|
/** Will apply the recommended settings for an overlay widget */
|
|
163
141
|
async applyOverlayPreset() {
|
|
164
|
-
await Promise.all([
|
|
165
|
-
...this.applyInvisiblePreset(),
|
|
166
|
-
// Overlay widgets are always on top
|
|
167
|
-
this.webview.setAlwaysOnTop(true),
|
|
168
|
-
this.persistPositionAndSize(),
|
|
169
|
-
]);
|
|
142
|
+
await Promise.all([...this.applyInvisiblePreset(), this.webview.setAlwaysOnTop(true)]);
|
|
170
143
|
}
|
|
171
144
|
/** Will apply the recommended settings for a popup widget */
|
|
172
145
|
async applyPopupPreset() {
|
|
173
|
-
await Promise.all([...this.applyInvisiblePreset()]);
|
|
174
|
-
// auto close after 1 minute when not in use to save resources
|
|
175
|
-
const closeOnTimeout = (0, async_js_1.debounce)(() => {
|
|
176
|
-
this.webview.close();
|
|
177
|
-
}, 60_000);
|
|
146
|
+
await Promise.all([...this.applyInvisiblePreset(), this.webview.setAlwaysOnTop(true)]);
|
|
178
147
|
const hideWebview = (0, async_js_1.debounce)(() => {
|
|
179
|
-
this.
|
|
180
|
-
closeOnTimeout();
|
|
148
|
+
this.hide(true);
|
|
181
149
|
}, 100);
|
|
182
150
|
this.webview.onFocusChanged(({ payload: focused }) => {
|
|
183
151
|
if (focused) {
|
|
@@ -190,20 +158,30 @@ class Widget {
|
|
|
190
158
|
this.onTrigger(async ({ desiredPosition, alignX, alignY }) => {
|
|
191
159
|
// avoid flickering when clicking a button that triggers the widget
|
|
192
160
|
hideWebview.cancel();
|
|
161
|
+
if (this.autoSizer && alignX && alignY) {
|
|
162
|
+
this.autoSizer.originX = alignX;
|
|
163
|
+
this.autoSizer.originY = alignY;
|
|
164
|
+
}
|
|
193
165
|
if (desiredPosition) {
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
166
|
+
const adjusted = (0, positioning_js_1.adjustPositionByPlacement)({
|
|
167
|
+
frame: {
|
|
168
|
+
x: desiredPosition.x,
|
|
169
|
+
y: desiredPosition.y,
|
|
170
|
+
width: this.runtimeState.size.width,
|
|
171
|
+
height: this.runtimeState.size.height,
|
|
172
|
+
},
|
|
173
|
+
originX: alignX,
|
|
174
|
+
originY: alignY,
|
|
175
|
+
});
|
|
176
|
+
await this.setPosition({
|
|
177
|
+
left: adjusted.x,
|
|
178
|
+
top: adjusted.y,
|
|
179
|
+
right: adjusted.x + adjusted.width,
|
|
180
|
+
bottom: adjusted.y + adjusted.height,
|
|
202
181
|
});
|
|
203
|
-
await this.webview.setPosition(new dpi_1.PhysicalPosition(pos.x, pos.y));
|
|
204
182
|
}
|
|
205
|
-
await this.
|
|
206
|
-
await this.
|
|
183
|
+
await this.show();
|
|
184
|
+
await this.focus();
|
|
207
185
|
});
|
|
208
186
|
}
|
|
209
187
|
/**
|
|
@@ -212,30 +190,32 @@ class Widget {
|
|
|
212
190
|
*/
|
|
213
191
|
async persistPositionAndSize() {
|
|
214
192
|
const storage = globalThis.window.localStorage;
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
193
|
+
const [x, y, width, height] = [`x`, `y`, `width`, `height`].map((k) => storage.getItem(`${k}`));
|
|
194
|
+
if (x && y && width && height) {
|
|
195
|
+
const frame = {
|
|
196
|
+
x: Number(x),
|
|
197
|
+
y: Number(y),
|
|
198
|
+
width: Number(width),
|
|
199
|
+
height: Number(height),
|
|
200
|
+
};
|
|
201
|
+
const safeFrame = (0, positioning_js_1.fitIntoMonitor)(frame);
|
|
202
|
+
await this.setPosition({
|
|
203
|
+
left: safeFrame.x,
|
|
204
|
+
top: safeFrame.y,
|
|
205
|
+
right: safeFrame.x + safeFrame.width,
|
|
206
|
+
bottom: safeFrame.y + safeFrame.height,
|
|
207
|
+
});
|
|
228
208
|
}
|
|
229
209
|
this.webview.onMoved((0, async_js_1.debounce)((e) => {
|
|
230
210
|
const { x, y } = e.payload;
|
|
231
|
-
storage.setItem(
|
|
232
|
-
storage.setItem(
|
|
211
|
+
storage.setItem(`x`, x.toString());
|
|
212
|
+
storage.setItem(`y`, y.toString());
|
|
233
213
|
console.info(`Widget position saved: ${x} ${y}`);
|
|
234
214
|
}, 500));
|
|
235
215
|
this.webview.onResized((0, async_js_1.debounce)((e) => {
|
|
236
216
|
const { width, height } = e.payload;
|
|
237
|
-
storage.setItem(
|
|
238
|
-
storage.setItem(
|
|
217
|
+
storage.setItem(`width`, width.toString());
|
|
218
|
+
storage.setItem(`height`, height.toString());
|
|
239
219
|
console.info(`Widget size saved: ${width} ${height}`);
|
|
240
220
|
}, 500));
|
|
241
221
|
}
|
|
@@ -249,8 +229,14 @@ class Widget {
|
|
|
249
229
|
console.warn(`Widget already initialized`);
|
|
250
230
|
return;
|
|
251
231
|
}
|
|
232
|
+
this.runtimeState.hwnd = await (0, mod_js_2.invoke)(mod_js_2.SeelenCommand.GetSelfWindowId);
|
|
252
233
|
this.runtimeState.initialized = true;
|
|
253
|
-
|
|
234
|
+
if (options.autoSizeByContent) {
|
|
235
|
+
this.autoSizer = new sizing_js_1.WidgetAutoSizer(this, options.autoSizeByContent);
|
|
236
|
+
}
|
|
237
|
+
else if (options.saveAndRestoreLastRect ?? this.def.preset === mod_js_1.WidgetPreset.Desktop) {
|
|
238
|
+
await this.persistPositionAndSize();
|
|
239
|
+
}
|
|
254
240
|
switch (this.def.preset) {
|
|
255
241
|
case mod_js_1.WidgetPreset.None:
|
|
256
242
|
break;
|
|
@@ -265,9 +251,18 @@ class Widget {
|
|
|
265
251
|
break;
|
|
266
252
|
}
|
|
267
253
|
await (0, theming_js_1.startThemingTool)();
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
254
|
+
await (0, positioning_js_1.initMonitorsState)();
|
|
255
|
+
// state initialization
|
|
256
|
+
this.runtimeState.size = await this.webview.outerSize();
|
|
257
|
+
this.runtimeState.position = await this.webview.outerPosition();
|
|
258
|
+
this.webview.onResized((e) => {
|
|
259
|
+
this.runtimeState.size.width = e.payload.width;
|
|
260
|
+
this.runtimeState.size.height = e.payload.height;
|
|
261
|
+
});
|
|
262
|
+
this.webview.onMoved((e) => {
|
|
263
|
+
this.runtimeState.position.x = e.payload.x;
|
|
264
|
+
this.runtimeState.position.y = e.payload.y;
|
|
265
|
+
});
|
|
271
266
|
}
|
|
272
267
|
/**
|
|
273
268
|
* Will mark the widget as `ready` and pool pending triggers.
|
|
@@ -275,7 +270,8 @@ class Widget {
|
|
|
275
270
|
* If the widget is not lazy this will inmediately show the widget.
|
|
276
271
|
* Lazy widget should be shown on trigger action.
|
|
277
272
|
*/
|
|
278
|
-
async ready() {
|
|
273
|
+
async ready(options = {}) {
|
|
274
|
+
const { show = !this.def.lazy } = options;
|
|
279
275
|
if (!this.runtimeState.initialized) {
|
|
280
276
|
throw new Error(`Widget was not initialized before ready`);
|
|
281
277
|
}
|
|
@@ -285,18 +281,88 @@ class Widget {
|
|
|
285
281
|
}
|
|
286
282
|
this.runtimeState.ready = true;
|
|
287
283
|
await this.autoSizer?.execute();
|
|
288
|
-
if (
|
|
289
|
-
await this.
|
|
284
|
+
if (show && !(await this.webview.isVisible())) {
|
|
285
|
+
await this.show();
|
|
286
|
+
await this.focus();
|
|
290
287
|
}
|
|
291
288
|
// this will mark the widget as ready, and send pending trigger event if exists
|
|
292
289
|
await (0, mod_js_2.invoke)(mod_js_2.SeelenCommand.SetCurrentWidgetStatus, { status: mod_js_1.WidgetStatus.Ready });
|
|
293
290
|
}
|
|
294
291
|
onTrigger(cb) {
|
|
295
292
|
this.webview.listen(mod_js_2.SeelenEvent.WidgetTriggered, ({ payload }) => {
|
|
296
|
-
// fix for cutted popups, ensure correct size on trigger.
|
|
297
|
-
// await this.autoSizer?.execute();
|
|
298
293
|
cb(payload);
|
|
299
294
|
});
|
|
300
295
|
}
|
|
296
|
+
/** If animations are enabled this will animate the movement of the widget */
|
|
297
|
+
setPosition(rect) {
|
|
298
|
+
this.runtimeState.position.x = rect.left;
|
|
299
|
+
this.runtimeState.position.y = rect.top;
|
|
300
|
+
this.runtimeState.size.width = rect.right - rect.left;
|
|
301
|
+
this.runtimeState.size.height = rect.bottom - rect.top;
|
|
302
|
+
return (0, mod_js_2.invoke)(mod_js_2.SeelenCommand.SetSelfPosition, {
|
|
303
|
+
rect: {
|
|
304
|
+
left: Math.round(rect.left),
|
|
305
|
+
top: Math.round(rect.top),
|
|
306
|
+
right: Math.round(rect.right),
|
|
307
|
+
bottom: Math.round(rect.bottom),
|
|
308
|
+
},
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
async show() {
|
|
312
|
+
debouncedClose.cancel();
|
|
313
|
+
await this.webview.show();
|
|
314
|
+
}
|
|
315
|
+
/** Will force foreground the widget */
|
|
316
|
+
async focus() {
|
|
317
|
+
if (this.runtimeState.firstFocus) {
|
|
318
|
+
await (0, webview_1.getCurrentWebview)().setFocus();
|
|
319
|
+
this.runtimeState.firstFocus = false;
|
|
320
|
+
}
|
|
321
|
+
await (0, mod_js_2.invoke)(mod_js_2.SeelenCommand.RequestFocus, { hwnd: this.runtimeState.hwnd }).catch(() => {
|
|
322
|
+
console.warn(`Failed to focus widget: ${this.decoded.label}`);
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
hide(closeAfterInactivity) {
|
|
326
|
+
Widget.self.webview.hide();
|
|
327
|
+
if (closeAfterInactivity) {
|
|
328
|
+
debouncedClose();
|
|
329
|
+
}
|
|
330
|
+
}
|
|
301
331
|
}
|
|
302
332
|
exports.Widget = Widget;
|
|
333
|
+
const debouncedClose = (0, async_js_1.debounce)(() => {
|
|
334
|
+
Widget.self.webview.close();
|
|
335
|
+
}, 30_000);
|
|
336
|
+
exports.SeelenSettingsWidgetId = "@seelen/settings";
|
|
337
|
+
exports.SeelenPopupWidgetId = "@seelen/popup";
|
|
338
|
+
exports.SeelenWegWidgetId = "@seelen/weg";
|
|
339
|
+
exports.SeelenToolbarWidgetId = "@seelen/fancy-toolbar";
|
|
340
|
+
exports.SeelenWindowManagerWidgetId = "@seelen/window-manager";
|
|
341
|
+
exports.SeelenWallWidgetId = "@seelen/wallpaper-manager";
|
|
342
|
+
function getDecodedWebviewLabel() {
|
|
343
|
+
const encondedLabel = (0, webviewWindow_1.getCurrentWebviewWindow)().label;
|
|
344
|
+
const decodedLabel = new TextDecoder().decode((0, mod_js_3.decodeBase64Url)(encondedLabel));
|
|
345
|
+
const [id, query] = decodedLabel.split("?");
|
|
346
|
+
if (!id) {
|
|
347
|
+
throw new Error("Missing widget id on webview label");
|
|
348
|
+
}
|
|
349
|
+
return [id, query];
|
|
350
|
+
}
|
|
351
|
+
function getDefinitionDefaultValues(definition) {
|
|
352
|
+
const config = {};
|
|
353
|
+
// Check if it's a group (has "group" property)
|
|
354
|
+
if ("group" in definition) {
|
|
355
|
+
// Recursively process all items in the group
|
|
356
|
+
for (const item of definition.group.items) {
|
|
357
|
+
Object.assign(config, getDefinitionDefaultValues(item));
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
else {
|
|
361
|
+
// It's a setting item, extract key and defaultValue
|
|
362
|
+
const item = definition;
|
|
363
|
+
if ("key" in item && "defaultValue" in item) {
|
|
364
|
+
config[item.key] = item.defaultValue;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
return config;
|
|
368
|
+
}
|
|
@@ -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,62 +1,76 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
3
|
+
exports.initMonitorsState = initMonitorsState;
|
|
4
|
+
exports.adjustPositionByPlacement = adjustPositionByPlacement;
|
|
5
|
+
exports.fitIntoMonitor = fitIntoMonitor;
|
|
5
6
|
const mod_js_1 = require("../../../gen/types/mod.js");
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
const mod_js_2 = require("../../handlers/mod.js");
|
|
8
|
+
const lib_js_1 = require("../../lib.js");
|
|
9
|
+
const events_js_1 = require("../../handlers/events.js");
|
|
10
|
+
const monitors = {
|
|
11
|
+
value: [],
|
|
12
|
+
};
|
|
13
|
+
async function initMonitorsState() {
|
|
14
|
+
monitors.value = await (0, mod_js_2.invoke)(lib_js_1.SeelenCommand.SystemGetMonitors);
|
|
15
|
+
(0, mod_js_2.subscribe)(events_js_1.SeelenEvent.SystemMonitorsChanged, ({ payload }) => {
|
|
16
|
+
monitors.value = payload;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function monitorFromPoint(x, y) {
|
|
20
|
+
return monitors.value.find((m) => m.rect.left <= x && x < m.rect.right && m.rect.top <= y && y < m.rect.bottom);
|
|
21
|
+
}
|
|
22
|
+
function primaryMonitor() {
|
|
23
|
+
return monitors.value.find((m) => m.isPrimary);
|
|
24
|
+
}
|
|
25
|
+
function adjustPositionByPlacement({ frame: { x, y, width, height }, originX, originY, }) {
|
|
26
|
+
if (originX === mod_js_1.Alignment.Center) {
|
|
8
27
|
x -= width / 2;
|
|
9
28
|
}
|
|
10
|
-
else if (
|
|
29
|
+
else if (originX === mod_js_1.Alignment.End) {
|
|
11
30
|
x -= width;
|
|
12
31
|
}
|
|
13
|
-
if (
|
|
32
|
+
if (originY === mod_js_1.Alignment.Center) {
|
|
14
33
|
y -= height / 2;
|
|
15
34
|
}
|
|
16
|
-
else if (
|
|
35
|
+
else if (originY === mod_js_1.Alignment.End) {
|
|
17
36
|
y -= height;
|
|
18
37
|
}
|
|
19
|
-
const
|
|
38
|
+
const newFrame = fitIntoMonitor({ x, y, width, height });
|
|
20
39
|
return {
|
|
21
|
-
x: Math.round(
|
|
22
|
-
y: Math.round(
|
|
40
|
+
x: Math.round(newFrame.x),
|
|
41
|
+
y: Math.round(newFrame.y),
|
|
42
|
+
width: Math.round(newFrame.width),
|
|
43
|
+
height: Math.round(newFrame.height),
|
|
23
44
|
};
|
|
24
45
|
}
|
|
25
|
-
|
|
26
|
-
const monitor =
|
|
46
|
+
function fitIntoMonitor({ x, y, width, height }) {
|
|
47
|
+
const monitor = monitorFromPoint(Math.round(x), Math.round(y)) || primaryMonitor();
|
|
27
48
|
if (monitor) {
|
|
49
|
+
width = Math.min(width, monitor.rect.right - monitor.rect.left);
|
|
50
|
+
height = Math.min(height, monitor.rect.bottom - monitor.rect.top);
|
|
28
51
|
const x2 = x + width;
|
|
29
52
|
const y2 = y + height;
|
|
30
|
-
const mx = monitor.position.x;
|
|
31
|
-
const my = monitor.position.y;
|
|
32
|
-
const mx2 = mx + monitor.size.width;
|
|
33
|
-
const my2 = my + monitor.size.height;
|
|
34
53
|
// check left edge
|
|
35
|
-
if (x <
|
|
36
|
-
x =
|
|
54
|
+
if (x < monitor.rect.left) {
|
|
55
|
+
x = monitor.rect.left;
|
|
37
56
|
}
|
|
38
57
|
// check top edge
|
|
39
|
-
if (y <
|
|
40
|
-
y =
|
|
58
|
+
if (y < monitor.rect.top) {
|
|
59
|
+
y = monitor.rect.top;
|
|
41
60
|
}
|
|
42
61
|
// check right edge
|
|
43
|
-
if (x2 >
|
|
44
|
-
x =
|
|
62
|
+
if (x2 > monitor.rect.right) {
|
|
63
|
+
x = monitor.rect.right - width;
|
|
45
64
|
}
|
|
46
65
|
// check bottom edge
|
|
47
|
-
if (y2 >
|
|
48
|
-
y =
|
|
49
|
-
}
|
|
50
|
-
// ensure final position is still within monitor bounds (in case window is larger than monitor)
|
|
51
|
-
if (x < mx) {
|
|
52
|
-
x = mx;
|
|
53
|
-
}
|
|
54
|
-
if (y < my) {
|
|
55
|
-
y = my;
|
|
66
|
+
if (y2 > monitor.rect.bottom) {
|
|
67
|
+
y = monitor.rect.bottom - height;
|
|
56
68
|
}
|
|
57
69
|
}
|
|
58
70
|
return {
|
|
59
71
|
x,
|
|
60
72
|
y,
|
|
73
|
+
width,
|
|
74
|
+
height,
|
|
61
75
|
};
|
|
62
76
|
}
|
|
@@ -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"}
|