@seelen-ui/lib 2.5.8 → 2.5.9

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.
Files changed (306) hide show
  1. package/esm/gen/types/AppNotification.d.ts +3 -0
  2. package/esm/gen/types/AppNotification.d.ts.map +1 -1
  3. package/esm/gen/types/BackupStatus.d.ts +10 -0
  4. package/esm/gen/types/BackupStatus.d.ts.map +1 -0
  5. package/esm/gen/types/BluetoothDevice.d.ts +1 -0
  6. package/esm/gen/types/BluetoothDevice.d.ts.map +1 -1
  7. package/esm/gen/types/ClipboardData.d.ts +15 -0
  8. package/esm/gen/types/ClipboardData.d.ts.map +1 -0
  9. package/esm/gen/types/ClipboardEntry.d.ts +24 -0
  10. package/esm/gen/types/ClipboardEntry.d.ts.map +1 -0
  11. package/esm/gen/types/ClipboardEntry.js +1 -0
  12. package/esm/gen/types/ClipboardEntryContent.d.ts +16 -0
  13. package/esm/gen/types/ClipboardEntryContent.d.ts.map +1 -0
  14. package/esm/gen/types/FancyToolbarSettings.d.ts +6 -0
  15. package/esm/gen/types/FancyToolbarSettings.d.ts.map +1 -1
  16. package/esm/gen/types/NotificationsMode.d.ts +6 -0
  17. package/esm/gen/types/NotificationsMode.d.ts.map +1 -0
  18. package/esm/gen/types/NotificationsMode.js +7 -0
  19. package/esm/gen/types/ResolvedShortcut.d.ts +9 -0
  20. package/esm/gen/types/ResolvedShortcut.d.ts.map +1 -0
  21. package/esm/gen/types/ResolvedShortcut.js +2 -0
  22. package/esm/gen/types/ResourceId.d.ts +6 -2
  23. package/esm/gen/types/ResourceId.d.ts.map +1 -1
  24. package/esm/gen/types/SeelenCommandActivateNotificationArgs.d.ts +3 -0
  25. package/esm/gen/types/SeelenCommandActivateNotificationArgs.d.ts.map +1 -1
  26. package/esm/gen/types/SeelenCommandActivateNotificationArgs.js +0 -1
  27. package/esm/gen/types/SeelenCommandArgument.d.ts +36 -5
  28. package/esm/gen/types/SeelenCommandArgument.d.ts.map +1 -1
  29. package/esm/gen/types/SeelenCommandClipboardDeleteEntryArgs.d.ts +4 -0
  30. package/esm/gen/types/SeelenCommandClipboardDeleteEntryArgs.d.ts.map +1 -0
  31. package/esm/gen/types/SeelenCommandClipboardDeleteEntryArgs.js +2 -0
  32. package/esm/gen/types/SeelenCommandClipboardPasteArgs.d.ts +4 -0
  33. package/esm/gen/types/SeelenCommandClipboardPasteArgs.d.ts.map +1 -0
  34. package/esm/gen/types/SeelenCommandClipboardPasteArgs.js +2 -0
  35. package/esm/gen/types/SeelenCommandClipboardSetContentArgs.d.ts +4 -0
  36. package/esm/gen/types/SeelenCommandClipboardSetContentArgs.d.ts.map +1 -0
  37. package/esm/gen/types/SeelenCommandClipboardSetContentArgs.js +2 -0
  38. package/esm/gen/types/SeelenCommandConnectBluetoothDeviceArgs.d.ts +4 -0
  39. package/esm/gen/types/SeelenCommandConnectBluetoothDeviceArgs.d.ts.map +1 -0
  40. package/esm/gen/types/SeelenCommandConnectBluetoothDeviceArgs.js +2 -0
  41. package/esm/gen/types/SeelenCommandReturn.d.ts +34 -6
  42. package/esm/gen/types/SeelenCommandReturn.d.ts.map +1 -1
  43. package/esm/gen/types/SeelenCommandSetFocusAssistArgs.d.ts +4 -0
  44. package/esm/gen/types/SeelenCommandSetFocusAssistArgs.d.ts.map +1 -0
  45. package/esm/gen/types/SeelenCommandSetFocusAssistArgs.js +2 -0
  46. package/esm/gen/types/SeelenCommandSetNotificationsModeArgs.d.ts +5 -0
  47. package/esm/gen/types/SeelenCommandSetNotificationsModeArgs.d.ts.map +1 -0
  48. package/esm/gen/types/SeelenCommandSetNotificationsModeArgs.js +1 -0
  49. package/esm/gen/types/SeelenCommandWlanForgetArgs.d.ts +4 -0
  50. package/esm/gen/types/SeelenCommandWlanForgetArgs.d.ts.map +1 -0
  51. package/esm/gen/types/SeelenCommandWlanForgetArgs.js +2 -0
  52. package/esm/gen/types/SeelenEventPayload.d.ts +16 -2
  53. package/esm/gen/types/SeelenEventPayload.d.ts.map +1 -1
  54. package/esm/gen/types/SeelenFont.d.ts +4 -0
  55. package/esm/gen/types/SeelenFont.d.ts.map +1 -0
  56. package/esm/gen/types/SeelenFont.js +2 -0
  57. package/esm/gen/types/SeelenWallSettings.d.ts +6 -0
  58. package/esm/gen/types/SeelenWallSettings.d.ts.map +1 -1
  59. package/esm/gen/types/SeelenWegSettings.d.ts +11 -0
  60. package/esm/gen/types/SeelenWegSettings.d.ts.map +1 -1
  61. package/esm/gen/types/Settings.d.ts +4 -0
  62. package/esm/gen/types/Settings.d.ts.map +1 -1
  63. package/esm/gen/types/SettingsByWidget.d.ts +7 -0
  64. package/esm/gen/types/SettingsByWidget.d.ts.map +1 -1
  65. package/esm/gen/types/SluShortcutsSettings.d.ts +9 -2
  66. package/esm/gen/types/SluShortcutsSettings.d.ts.map +1 -1
  67. package/esm/gen/types/SluShortcutsSettings.js +1 -0
  68. package/esm/gen/types/SystemShortcutDeclaration.d.ts +16 -0
  69. package/esm/gen/types/SystemShortcutDeclaration.d.ts.map +1 -0
  70. package/esm/gen/types/SystemShortcutDeclaration.js +2 -0
  71. package/esm/gen/types/ThemeConfigDefinition.d.ts +2 -4
  72. package/esm/gen/types/ThemeConfigDefinition.d.ts.map +1 -1
  73. package/esm/gen/types/ThemeConfigGroupVariant.d.ts +5 -0
  74. package/esm/gen/types/ThemeConfigGroupVariant.d.ts.map +1 -0
  75. package/esm/gen/types/ThemeConfigGroupVariant.js +1 -0
  76. package/esm/gen/types/ThemeVariableDefinition.d.ts +2 -0
  77. package/esm/gen/types/ThemeVariableDefinition.d.ts.map +1 -1
  78. package/esm/gen/types/ThirdPartyWidgetSettings.d.ts +7 -0
  79. package/esm/gen/types/ThirdPartyWidgetSettings.d.ts.map +1 -1
  80. package/esm/gen/types/WegMiddleClickAction.d.ts +5 -0
  81. package/esm/gen/types/WegMiddleClickAction.d.ts.map +1 -0
  82. package/esm/gen/types/WegMiddleClickAction.js +6 -0
  83. package/esm/gen/types/Widget.d.ts +7 -0
  84. package/esm/gen/types/Widget.d.ts.map +1 -1
  85. package/esm/gen/types/WidgetConfigDefinition.d.ts +2 -4
  86. package/esm/gen/types/WidgetConfigDefinition.d.ts.map +1 -1
  87. package/esm/gen/types/WidgetConfigGroupVariant.d.ts +5 -0
  88. package/esm/gen/types/WidgetConfigGroupVariant.d.ts.map +1 -0
  89. package/esm/gen/types/WidgetConfigGroupVariant.js +1 -0
  90. package/esm/gen/types/WidgetSelectOption.d.ts +1 -1
  91. package/esm/gen/types/WidgetSelectOption.d.ts.map +1 -1
  92. package/esm/gen/types/WidgetSettingColor.d.ts +4 -4
  93. package/esm/gen/types/WidgetSettingColor.d.ts.map +1 -1
  94. package/esm/gen/types/WidgetSettingFont.d.ts +34 -0
  95. package/esm/gen/types/WidgetSettingFont.d.ts.map +1 -0
  96. package/esm/gen/types/WidgetSettingFont.js +1 -0
  97. package/esm/gen/types/WidgetSettingInputNumber.d.ts +4 -4
  98. package/esm/gen/types/WidgetSettingInputNumber.d.ts.map +1 -1
  99. package/esm/gen/types/WidgetSettingInputText.d.ts +4 -4
  100. package/esm/gen/types/WidgetSettingInputText.d.ts.map +1 -1
  101. package/esm/gen/types/WidgetSettingItem.d.ts +4 -1
  102. package/esm/gen/types/WidgetSettingItem.d.ts.map +1 -1
  103. package/esm/gen/types/WidgetSettingRange.d.ts +4 -4
  104. package/esm/gen/types/WidgetSettingRange.d.ts.map +1 -1
  105. package/esm/gen/types/WidgetSettingSelect.d.ts +4 -4
  106. package/esm/gen/types/WidgetSettingSelect.d.ts.map +1 -1
  107. package/esm/gen/types/WidgetSettingSwitch.d.ts +4 -4
  108. package/esm/gen/types/WidgetSettingSwitch.d.ts.map +1 -1
  109. package/esm/gen/types/WidgetShortcutDeclaration.d.ts +33 -0
  110. package/esm/gen/types/WidgetShortcutDeclaration.d.ts.map +1 -0
  111. package/esm/gen/types/WidgetShortcutDeclaration.js +1 -0
  112. package/esm/gen/types/WindowManagerSettings.d.ts +6 -0
  113. package/esm/gen/types/WindowManagerSettings.d.ts.map +1 -1
  114. package/esm/gen/types/WlanBssEntry.d.ts +15 -6
  115. package/esm/gen/types/WlanBssEntry.d.ts.map +1 -1
  116. package/esm/gen/types/mod.d.ts +264 -247
  117. package/esm/gen/types/mod.d.ts.map +1 -1
  118. package/esm/gen/types/mod.js +264 -247
  119. package/esm/src/handlers/commands.d.ts +16 -4
  120. package/esm/src/handlers/commands.d.ts.map +1 -1
  121. package/esm/src/handlers/commands.js +15 -3
  122. package/esm/src/handlers/events.d.ts +7 -2
  123. package/esm/src/handlers/events.d.ts.map +1 -1
  124. package/esm/src/handlers/events.js +6 -1
  125. package/esm/src/state/theme/theming.d.ts +1 -0
  126. package/esm/src/state/theme/theming.d.ts.map +1 -1
  127. package/esm/src/state/theme/theming.js +21 -1
  128. package/esm/src/state/widget/interfaces.d.ts +11 -0
  129. package/esm/src/state/widget/interfaces.d.ts.map +1 -1
  130. package/esm/src/state/widget/mod.d.ts +9 -6
  131. package/esm/src/state/widget/mod.d.ts.map +1 -1
  132. package/esm/src/state/widget/mod.js +62 -79
  133. package/esm/src/state/widget/positioning.js +1 -1
  134. package/esm/src/state/widget/sizing.d.ts +14 -3
  135. package/esm/src/state/widget/sizing.d.ts.map +1 -1
  136. package/esm/src/state/widget/sizing.js +60 -17
  137. package/esm/src/utils/async.d.ts +12 -0
  138. package/esm/src/utils/async.d.ts.map +1 -1
  139. package/esm/src/utils/async.js +46 -0
  140. package/esm/src/utils/mod.d.ts +1 -0
  141. package/esm/src/utils/mod.d.ts.map +1 -1
  142. package/esm/src/utils/mod.js +4 -0
  143. package/package.json +4 -3
  144. package/script/gen/types/AppNotification.d.ts +3 -0
  145. package/script/gen/types/AppNotification.d.ts.map +1 -1
  146. package/script/gen/types/BackupStatus.d.ts +10 -0
  147. package/script/gen/types/BackupStatus.d.ts.map +1 -0
  148. package/script/gen/types/BluetoothDevice.d.ts +1 -0
  149. package/script/gen/types/BluetoothDevice.d.ts.map +1 -1
  150. package/script/gen/types/ClipboardData.d.ts +15 -0
  151. package/script/gen/types/ClipboardData.d.ts.map +1 -0
  152. package/script/gen/types/ClipboardEntry.d.ts +24 -0
  153. package/script/gen/types/ClipboardEntry.d.ts.map +1 -0
  154. package/script/gen/types/ClipboardEntry.js +2 -0
  155. package/script/gen/types/ClipboardEntryContent.d.ts +16 -0
  156. package/script/gen/types/ClipboardEntryContent.d.ts.map +1 -0
  157. package/script/gen/types/FancyToolbarSettings.d.ts +6 -0
  158. package/script/gen/types/FancyToolbarSettings.d.ts.map +1 -1
  159. package/script/gen/types/NotificationsMode.d.ts +6 -0
  160. package/script/gen/types/NotificationsMode.d.ts.map +1 -0
  161. package/script/gen/types/NotificationsMode.js +10 -0
  162. package/script/gen/types/ResolvedShortcut.d.ts +9 -0
  163. package/script/gen/types/ResolvedShortcut.d.ts.map +1 -0
  164. package/script/gen/types/ResolvedShortcut.js +3 -0
  165. package/script/gen/types/ResourceId.d.ts +6 -2
  166. package/script/gen/types/ResourceId.d.ts.map +1 -1
  167. package/script/gen/types/SeelenCommandActivateNotificationArgs.d.ts +3 -0
  168. package/script/gen/types/SeelenCommandActivateNotificationArgs.d.ts.map +1 -1
  169. package/script/gen/types/SeelenCommandActivateNotificationArgs.js +0 -1
  170. package/script/gen/types/SeelenCommandArgument.d.ts +36 -5
  171. package/script/gen/types/SeelenCommandArgument.d.ts.map +1 -1
  172. package/script/gen/types/SeelenCommandClipboardDeleteEntryArgs.d.ts +4 -0
  173. package/script/gen/types/SeelenCommandClipboardDeleteEntryArgs.d.ts.map +1 -0
  174. package/script/gen/types/SeelenCommandClipboardDeleteEntryArgs.js +3 -0
  175. package/script/gen/types/SeelenCommandClipboardPasteArgs.d.ts +4 -0
  176. package/script/gen/types/SeelenCommandClipboardPasteArgs.d.ts.map +1 -0
  177. package/script/gen/types/SeelenCommandClipboardPasteArgs.js +3 -0
  178. package/script/gen/types/SeelenCommandClipboardSetContentArgs.d.ts +4 -0
  179. package/script/gen/types/SeelenCommandClipboardSetContentArgs.d.ts.map +1 -0
  180. package/script/gen/types/SeelenCommandClipboardSetContentArgs.js +3 -0
  181. package/script/gen/types/SeelenCommandConnectBluetoothDeviceArgs.d.ts +4 -0
  182. package/script/gen/types/SeelenCommandConnectBluetoothDeviceArgs.d.ts.map +1 -0
  183. package/script/gen/types/SeelenCommandConnectBluetoothDeviceArgs.js +3 -0
  184. package/script/gen/types/SeelenCommandReturn.d.ts +34 -6
  185. package/script/gen/types/SeelenCommandReturn.d.ts.map +1 -1
  186. package/script/gen/types/SeelenCommandSetFocusAssistArgs.d.ts +4 -0
  187. package/script/gen/types/SeelenCommandSetFocusAssistArgs.d.ts.map +1 -0
  188. package/script/gen/types/SeelenCommandSetFocusAssistArgs.js +3 -0
  189. package/script/gen/types/SeelenCommandSetNotificationsModeArgs.d.ts +5 -0
  190. package/script/gen/types/SeelenCommandSetNotificationsModeArgs.d.ts.map +1 -0
  191. package/script/gen/types/SeelenCommandSetNotificationsModeArgs.js +2 -0
  192. package/script/gen/types/SeelenCommandWlanForgetArgs.d.ts +4 -0
  193. package/script/gen/types/SeelenCommandWlanForgetArgs.d.ts.map +1 -0
  194. package/script/gen/types/SeelenCommandWlanForgetArgs.js +3 -0
  195. package/script/gen/types/SeelenEventPayload.d.ts +16 -2
  196. package/script/gen/types/SeelenEventPayload.d.ts.map +1 -1
  197. package/script/gen/types/SeelenFont.d.ts +4 -0
  198. package/script/gen/types/SeelenFont.d.ts.map +1 -0
  199. package/script/gen/types/SeelenFont.js +3 -0
  200. package/script/gen/types/SeelenWallSettings.d.ts +6 -0
  201. package/script/gen/types/SeelenWallSettings.d.ts.map +1 -1
  202. package/script/gen/types/SeelenWegSettings.d.ts +11 -0
  203. package/script/gen/types/SeelenWegSettings.d.ts.map +1 -1
  204. package/script/gen/types/Settings.d.ts +4 -0
  205. package/script/gen/types/Settings.d.ts.map +1 -1
  206. package/script/gen/types/SettingsByWidget.d.ts +7 -0
  207. package/script/gen/types/SettingsByWidget.d.ts.map +1 -1
  208. package/script/gen/types/SluShortcutsSettings.d.ts +9 -2
  209. package/script/gen/types/SluShortcutsSettings.d.ts.map +1 -1
  210. package/script/gen/types/SluShortcutsSettings.js +1 -0
  211. package/script/gen/types/SystemShortcutDeclaration.d.ts +16 -0
  212. package/script/gen/types/SystemShortcutDeclaration.d.ts.map +1 -0
  213. package/script/gen/types/SystemShortcutDeclaration.js +3 -0
  214. package/script/gen/types/ThemeConfigDefinition.d.ts +2 -4
  215. package/script/gen/types/ThemeConfigDefinition.d.ts.map +1 -1
  216. package/script/gen/types/ThemeConfigGroupVariant.d.ts +5 -0
  217. package/script/gen/types/ThemeConfigGroupVariant.d.ts.map +1 -0
  218. package/script/gen/types/ThemeConfigGroupVariant.js +2 -0
  219. package/script/gen/types/ThemeVariableDefinition.d.ts +2 -0
  220. package/script/gen/types/ThemeVariableDefinition.d.ts.map +1 -1
  221. package/script/gen/types/ThirdPartyWidgetSettings.d.ts +7 -0
  222. package/script/gen/types/ThirdPartyWidgetSettings.d.ts.map +1 -1
  223. package/script/gen/types/WegMiddleClickAction.d.ts +5 -0
  224. package/script/gen/types/WegMiddleClickAction.d.ts.map +1 -0
  225. package/script/gen/types/WegMiddleClickAction.js +9 -0
  226. package/script/gen/types/Widget.d.ts +7 -0
  227. package/script/gen/types/Widget.d.ts.map +1 -1
  228. package/script/gen/types/WidgetConfigDefinition.d.ts +2 -4
  229. package/script/gen/types/WidgetConfigDefinition.d.ts.map +1 -1
  230. package/script/gen/types/WidgetConfigGroupVariant.d.ts +5 -0
  231. package/script/gen/types/WidgetConfigGroupVariant.d.ts.map +1 -0
  232. package/script/gen/types/WidgetConfigGroupVariant.js +2 -0
  233. package/script/gen/types/WidgetSelectOption.d.ts +1 -1
  234. package/script/gen/types/WidgetSelectOption.d.ts.map +1 -1
  235. package/script/gen/types/WidgetSettingColor.d.ts +4 -4
  236. package/script/gen/types/WidgetSettingColor.d.ts.map +1 -1
  237. package/script/gen/types/WidgetSettingFont.d.ts +34 -0
  238. package/script/gen/types/WidgetSettingFont.d.ts.map +1 -0
  239. package/script/gen/types/WidgetSettingFont.js +2 -0
  240. package/script/gen/types/WidgetSettingInputNumber.d.ts +4 -4
  241. package/script/gen/types/WidgetSettingInputNumber.d.ts.map +1 -1
  242. package/script/gen/types/WidgetSettingInputText.d.ts +4 -4
  243. package/script/gen/types/WidgetSettingInputText.d.ts.map +1 -1
  244. package/script/gen/types/WidgetSettingItem.d.ts +4 -1
  245. package/script/gen/types/WidgetSettingItem.d.ts.map +1 -1
  246. package/script/gen/types/WidgetSettingRange.d.ts +4 -4
  247. package/script/gen/types/WidgetSettingRange.d.ts.map +1 -1
  248. package/script/gen/types/WidgetSettingSelect.d.ts +4 -4
  249. package/script/gen/types/WidgetSettingSelect.d.ts.map +1 -1
  250. package/script/gen/types/WidgetSettingSwitch.d.ts +4 -4
  251. package/script/gen/types/WidgetSettingSwitch.d.ts.map +1 -1
  252. package/script/gen/types/WidgetShortcutDeclaration.d.ts +33 -0
  253. package/script/gen/types/WidgetShortcutDeclaration.d.ts.map +1 -0
  254. package/script/gen/types/WidgetShortcutDeclaration.js +2 -0
  255. package/script/gen/types/WindowManagerSettings.d.ts +6 -0
  256. package/script/gen/types/WindowManagerSettings.d.ts.map +1 -1
  257. package/script/gen/types/WlanBssEntry.d.ts +15 -6
  258. package/script/gen/types/WlanBssEntry.d.ts.map +1 -1
  259. package/script/gen/types/mod.d.ts +264 -247
  260. package/script/gen/types/mod.d.ts.map +1 -1
  261. package/script/gen/types/mod.js +264 -247
  262. package/script/src/handlers/commands.d.ts +16 -4
  263. package/script/src/handlers/commands.d.ts.map +1 -1
  264. package/script/src/handlers/commands.js +15 -3
  265. package/script/src/handlers/events.d.ts +7 -2
  266. package/script/src/handlers/events.d.ts.map +1 -1
  267. package/script/src/handlers/events.js +6 -1
  268. package/script/src/state/theme/theming.d.ts +1 -0
  269. package/script/src/state/theme/theming.d.ts.map +1 -1
  270. package/script/src/state/theme/theming.js +22 -1
  271. package/script/src/state/widget/interfaces.d.ts +11 -0
  272. package/script/src/state/widget/interfaces.d.ts.map +1 -1
  273. package/script/src/state/widget/mod.d.ts +9 -6
  274. package/script/src/state/widget/mod.d.ts.map +1 -1
  275. package/script/src/state/widget/mod.js +61 -78
  276. package/script/src/state/widget/positioning.js +2 -2
  277. package/script/src/state/widget/sizing.d.ts +14 -3
  278. package/script/src/state/widget/sizing.d.ts.map +1 -1
  279. package/script/src/state/widget/sizing.js +61 -18
  280. package/script/src/utils/async.d.ts +12 -0
  281. package/script/src/utils/async.d.ts.map +1 -1
  282. package/script/src/utils/async.js +49 -0
  283. package/script/src/utils/mod.d.ts +1 -0
  284. package/script/src/utils/mod.d.ts.map +1 -1
  285. package/script/src/utils/mod.js +5 -0
  286. package/styles/colors.css +521 -0
  287. package/styles/reset.css +129 -0
  288. package/styles/spacings.css +9 -0
  289. package/esm/gen/types/SluHotkey.d.ts +0 -17
  290. package/esm/gen/types/SluHotkey.d.ts.map +0 -1
  291. package/esm/gen/types/SluHotkeyAction.d.ts +0 -96
  292. package/esm/gen/types/SluHotkeyAction.d.ts.map +0 -1
  293. package/esm/gen/types/WlanProfile.d.ts +0 -8
  294. package/esm/gen/types/WlanProfile.d.ts.map +0 -1
  295. package/script/gen/types/SluHotkey.d.ts +0 -17
  296. package/script/gen/types/SluHotkey.d.ts.map +0 -1
  297. package/script/gen/types/SluHotkeyAction.d.ts +0 -96
  298. package/script/gen/types/SluHotkeyAction.d.ts.map +0 -1
  299. package/script/gen/types/WlanProfile.d.ts +0 -8
  300. package/script/gen/types/WlanProfile.d.ts.map +0 -1
  301. /package/esm/gen/types/{SluHotkeyAction.js → BackupStatus.js} +0 -0
  302. /package/esm/gen/types/{SluHotkey.js → ClipboardData.js} +0 -0
  303. /package/esm/gen/types/{WlanProfile.js → ClipboardEntryContent.js} +0 -0
  304. /package/script/gen/types/{SluHotkeyAction.js → BackupStatus.js} +0 -0
  305. /package/script/gen/types/{SluHotkey.js → ClipboardData.js} +0 -0
  306. /package/script/gen/types/{WlanProfile.js → ClipboardEntryContent.js} +0 -0
@@ -48,6 +48,7 @@ export var SeelenCommand;
48
48
  SeelenCommand["StateGetSettingsByApp"] = "state_get_settings_by_app";
49
49
  SeelenCommand["StateGetPlugins"] = "state_get_plugins";
50
50
  SeelenCommand["StateGetWidgets"] = "state_get_widgets";
51
+ SeelenCommand["StateGetSystemShortcuts"] = "state_get_system_shortcuts";
51
52
  SeelenCommand["StateGetIconPacks"] = "state_get_icon_packs";
52
53
  SeelenCommand["StateGetWallpapers"] = "state_get_wallpapers";
53
54
  SeelenCommand["StateSetCustomIconPack"] = "state_add_icon_to_custom_icon_pack";
@@ -98,11 +99,10 @@ export var SeelenCommand;
98
99
  SeelenCommand["UpdatePopup"] = "update_popup";
99
100
  SeelenCommand["ClosePopup"] = "close_popup";
100
101
  SeelenCommand["GetPopupConfig"] = "get_popup_config";
101
- SeelenCommand["WlanGetProfiles"] = "wlan_get_profiles";
102
- SeelenCommand["WlanStartScanning"] = "wlan_start_scanning";
103
- SeelenCommand["WlanStopScanning"] = "wlan_stop_scanning";
102
+ SeelenCommand["WlanScan"] = "wlan_scan";
104
103
  SeelenCommand["WlanConnect"] = "wlan_connect";
105
104
  SeelenCommand["WlanDisconnect"] = "wlan_disconnect";
105
+ SeelenCommand["WlanForget"] = "wlan_forget";
106
106
  SeelenCommand["GetNetworkDefaultLocalIp"] = "get_network_default_local_ip";
107
107
  SeelenCommand["GetNetworkAdapters"] = "get_network_adapters";
108
108
  SeelenCommand["GetNetworkInternetConnection"] = "get_network_internet_connection";
@@ -124,6 +124,7 @@ export var SeelenCommand;
124
124
  SeelenCommand["RequestPairBluetoothDevice"] = "request_pair_bluetooth_device";
125
125
  SeelenCommand["ConfirmBluetoothDevicePairing"] = "confirm_bluetooth_device_pairing";
126
126
  SeelenCommand["DisconnectBluetoothDevice"] = "disconnect_bluetooth_device";
127
+ SeelenCommand["ConnectBluetoothDevice"] = "connect_bluetooth_device";
127
128
  SeelenCommand["ForgetBluetoothDevice"] = "forget_bluetooth_device";
128
129
  SeelenCommand["GetStartMenuItems"] = "get_start_menu_items";
129
130
  SeelenCommand["GetNativeStartMenu"] = "get_native_start_menu";
@@ -132,4 +133,15 @@ export var SeelenCommand;
132
133
  SeelenCommand["GetSeelenSession"] = "get_seelen_session";
133
134
  SeelenCommand["SeelenLogin"] = "seelen_login";
134
135
  SeelenCommand["SeelenLogout"] = "seelen_logout";
136
+ SeelenCommand["GetBackupStatus"] = "get_backup_status";
137
+ SeelenCommand["ClipboardGetData"] = "clipboard_get_data";
138
+ SeelenCommand["ClipboardDeleteEntry"] = "clipboard_delete_entry";
139
+ SeelenCommand["ClipboardClearHistory"] = "clipboard_clear_history";
140
+ SeelenCommand["ClipboardSetContent"] = "clipboard_set_content";
141
+ SeelenCommand["ClipboardPaste"] = "clipboard_paste";
142
+ SeelenCommand["GetFonts"] = "get_fonts";
143
+ SeelenCommand["GetFocusAssist"] = "get_focus_assist";
144
+ SeelenCommand["SetFocusAssist"] = "set_focus_assist";
145
+ SeelenCommand["GetNotificationsMode"] = "get_notifications_mode";
146
+ SeelenCommand["SetNotificationsMode"] = "set_notifications_mode";
135
147
  })(SeelenCommand || (SeelenCommand = {}));
@@ -18,11 +18,11 @@ export declare enum SeelenEvent {
18
18
  NetworkAdapters = "network-adapters",
19
19
  NetworkInternetConnection = "network-internet-connection",
20
20
  NetworkWlanScanned = "wlan-scanned",
21
- Notifications = "notifications",
22
21
  PowerStatus = "power-status",
23
22
  PowerMode = "power-mode",
24
23
  BatteriesStatus = "batteries-status",
25
24
  ColorsChanged = "colors-changed",
25
+ SystemFontsChanged = "system::fonts-changed",
26
26
  WMSetReservation = "wm::set-reservation",
27
27
  WMForceRetiling = "wm::force-retiling",
28
28
  WMTreeChanged = "wm::tree-changed",
@@ -46,6 +46,11 @@ export declare enum SeelenEvent {
46
46
  StartMenuItemsChanged = "start-menu::items-changed",
47
47
  WegAddItem = "weg::add-item",
48
48
  TrashBinChanged = "trash-bin::changed",
49
- SeelenSessionChanged = "session::changed"
49
+ SeelenSessionChanged = "session::changed",
50
+ SeelenBackupStatusChanged = "backup::status-changed",
51
+ ClipboardDataChanged = "clipboard::data-changed",
52
+ FocusAssistChanged = "focus-assist::changed",
53
+ NotificationsModeChanged = "notifications::mode-changed",
54
+ Notifications = "notifications"
50
55
  }
51
56
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/src/handlers/events.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,sBAAsB,8BAA8B;IACpD,kBAAkB,yBAAyB;IAC3C,eAAe,sBAAsB;IACrC,qBAAqB,mBAAmB;IACxC,qBAAqB,6BAA6B;IAClD,sBAAsB,8BAA8B;IACpD,+BAA+B,wCAAwC;IACvE,WAAW,iBAAiB;IAC5B,iBAAiB,+BAA+B;IAChD,qBAAqB,0BAA0B;IAC/C,6BAA6B,mCAAmC;IAChE,aAAa,mBAAmB;IAChC,YAAY,mBAAmB;IAC/B,WAAW,iBAAiB;IAC5B,YAAY,kBAAkB;IAC9B,qBAAqB,6BAA6B;IAClD,eAAe,qBAAqB;IACpC,yBAAyB,gCAAgC;IACzD,kBAAkB,iBAAiB;IACnC,aAAa,kBAAkB;IAC/B,WAAW,iBAAiB;IAC5B,SAAS,eAAe;IACxB,eAAe,qBAAqB;IACpC,aAAa,mBAAmB;IAChC,gBAAgB,wBAAwB;IACxC,eAAe,uBAAuB;IACtC,aAAa,qBAAqB;IAClC,mBAAmB,0BAA0B;IAC7C,oBAAoB,qBAAqB;IACzC,yBAAyB,oBAAoB;IAC7C,kBAAkB,WAAW;IAC7B,qBAAqB,eAAe;IACpC,mBAAmB,oBAAoB;IACvC,mBAAmB,oBAAoB;IACvC,sBAAsB,sCAAsC;IAC5D,iBAAiB,yBAAyB;IAC1C,2BAA2B,oCAAoC;IAC/D,eAAe,sBAAsB;IACrC,aAAa,mBAAmB;IAChC,kBAAkB,0BAA0B;IAC5C,oBAAoB,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5C,uBAAuB,8BAA8B;IACrD,qBAAqB,8BAA8B;IACnD,UAAU,kBAAkB;IAC5B,eAAe,uBAAuB;IACtC,oBAAoB,qBAAqB;IACzC,yBAAyB,2BAA2B;IACpD,oBAAoB,4BAA4B;IAChD,kBAAkB,0BAA0B;IAC5C,wBAAwB,gCAAgC;IACxD,aAAa,kBAAkB;CAChC"}
@@ -20,11 +20,11 @@ export var SeelenEvent;
20
20
  SeelenEvent["NetworkAdapters"] = "network-adapters";
21
21
  SeelenEvent["NetworkInternetConnection"] = "network-internet-connection";
22
22
  SeelenEvent["NetworkWlanScanned"] = "wlan-scanned";
23
- SeelenEvent["Notifications"] = "notifications";
24
23
  SeelenEvent["PowerStatus"] = "power-status";
25
24
  SeelenEvent["PowerMode"] = "power-mode";
26
25
  SeelenEvent["BatteriesStatus"] = "batteries-status";
27
26
  SeelenEvent["ColorsChanged"] = "colors-changed";
27
+ SeelenEvent["SystemFontsChanged"] = "system::fonts-changed";
28
28
  SeelenEvent["WMSetReservation"] = "wm::set-reservation";
29
29
  SeelenEvent["WMForceRetiling"] = "wm::force-retiling";
30
30
  SeelenEvent["WMTreeChanged"] = "wm::tree-changed";
@@ -49,4 +49,9 @@ export var SeelenEvent;
49
49
  SeelenEvent["WegAddItem"] = "weg::add-item";
50
50
  SeelenEvent["TrashBinChanged"] = "trash-bin::changed";
51
51
  SeelenEvent["SeelenSessionChanged"] = "session::changed";
52
+ SeelenEvent["SeelenBackupStatusChanged"] = "backup::status-changed";
53
+ SeelenEvent["ClipboardDataChanged"] = "clipboard::data-changed";
54
+ SeelenEvent["FocusAssistChanged"] = "focus-assist::changed";
55
+ SeelenEvent["NotificationsModeChanged"] = "notifications::mode-changed";
56
+ SeelenEvent["Notifications"] = "notifications";
52
57
  })(SeelenEvent || (SeelenEvent = {}));
@@ -3,5 +3,6 @@
3
3
  * when the themes or settings change. Also will add the systehm ui colors to the document.
4
4
  */
5
5
  export declare function startThemingTool(): Promise<void>;
6
+ export declare function setPerformanceStyles(): void;
6
7
  export declare function startDateCssVariables(): void;
7
8
  //# sourceMappingURL=theming.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theming.d.ts","sourceRoot":"","sources":["../../../../src/src/state/theme/theming.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAoBtD;AAED,wBAAgB,qBAAqB,IAAI,IAAI,CAK5C"}
1
+ {"version":3,"file":"theming.d.ts","sourceRoot":"","sources":["../../../../src/src/state/theme/theming.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAqBtD;AAiBD,wBAAgB,oBAAoB,IAAI,IAAI,CAI3C;AAED,wBAAgB,qBAAqB,IAAI,IAAI,CAK5C"}
@@ -17,11 +17,31 @@ export async function startThemingTool() {
17
17
  settings = newSettings;
18
18
  themes.applyToDocument(settings.activeThemes, settings.byTheme);
19
19
  });
20
+ setPerformanceStyles();
21
+ startDateCssVariables();
20
22
  (await UIColors.getAsync()).setAsCssVariables();
21
23
  await UIColors.onChange((colors) => colors.setAsCssVariables());
22
- startDateCssVariables();
23
24
  themes.applyToDocument(settings.activeThemes, settings.byTheme);
24
25
  }
26
+ // Used by performance mode to reduce cpu/gpu usage
27
+ const PERF_CSS = `
28
+ html[data-animations-off] *,
29
+ html[data-animations-off] *::before,
30
+ html[data-animations-off] *::after {
31
+ animation-duration: 0.001ms !important;
32
+ animation-iteration-count: 1 !important;
33
+ animation-delay: 0s !important;
34
+
35
+ transition-duration: 0.001ms !important;
36
+ transition-delay: 0s !important;
37
+
38
+ scroll-behavior: auto !important;
39
+ }`;
40
+ export function setPerformanceStyles() {
41
+ const styleSheet = new RuntimeStyleSheet("@static/performance");
42
+ styleSheet.addStyle(PERF_CSS);
43
+ styleSheet.applyToDocument();
44
+ }
25
45
  export function startDateCssVariables() {
26
46
  // Set initial values immediately
27
47
  updateDateCssVariables();
@@ -19,6 +19,17 @@ export interface InitWidgetOptions {
19
19
  * @default undefined
20
20
  */
21
21
  autoSizeByContent?: HTMLElement | null;
22
+ /**
23
+ * If autoSizeByContent is set, and this is true, will auto size the widget and
24
+ * adjusts the position to fit on screen
25
+ * @default true
26
+ */
27
+ autoSizeFitOnScreen?: boolean;
28
+ /**
29
+ * Will normalize the device pixel ratio to 1:1
30
+ * @default false
31
+ */
32
+ normalizeDevicePixelRatio?: boolean;
22
33
  /**
23
34
  * Will save the position and size of the widget on change.
24
35
  * This is intedeed to be used when the size and position of the widget is
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gEAAgE;IAChE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,MAAM,EAAE;QAAE,QAAQ,EAAE,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM;KAAE,CAAC;CAC/C;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACvC;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gEAAgE;IAChE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,MAAM,EAAE;QAAE,QAAQ,EAAE,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM;KAAE,CAAC;CAC/C;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}
@@ -1,4 +1,4 @@
1
- import { type Frame, type Rect, type ThirdPartyWidgetSettings, type Widget as IWidget, type WidgetId, type WidgetTriggerPayload } from "../../../gen/types/mod.js";
1
+ import { type Alignment, type Frame, type Rect, type ThirdPartyWidgetSettings, type Widget as IWidget, type WidgetId, type WidgetTriggerPayload } from "../../../gen/types/mod.js";
2
2
  import type { InitWidgetOptions, ReadyWidgetOptions, WidgetInformation } from "./interfaces.js";
3
3
  import { type Webview } from "@tauri-apps/api/webview";
4
4
  import { type Window } from "@tauri-apps/api/window";
@@ -28,11 +28,8 @@ export declare class Widget {
28
28
  private constructor();
29
29
  /** Returns the current window id of the widget */
30
30
  get windowId(): number;
31
- /** Returns the current position and size of the widget */
32
- get frame(): Frame;
33
31
  /** Returns the default config of the widget, declared on the widget definition */
34
32
  getDefaultConfig(): ThirdPartyWidgetSettings;
35
- private applyInvisiblePreset;
36
33
  /** Will apply the recommended settings for a desktop widget */
37
34
  private applyDesktopPreset;
38
35
  /** Will apply the recommended settings for an overlay widget */
@@ -43,7 +40,8 @@ export declare class Widget {
43
40
  * Will restore the saved position and size of the widget on start,
44
41
  * after that will store the position and size of the widget on change.
45
42
  */
46
- persistPositionAndSize(): Promise<void>;
43
+ private persistPositionAndSize;
44
+ private normalizeDevicePixelRatio;
47
45
  /**
48
46
  * Will initialize the widget based on the preset and mark it as `pending`, this function won't show the widget.
49
47
  * This should be called before any other action on the widget. After this you should call
@@ -58,7 +56,12 @@ export declare class Widget {
58
56
  */
59
57
  ready(options?: ReadyWidgetOptions): Promise<void>;
60
58
  onTrigger(cb: (args: WidgetTriggerPayload) => void): void;
61
- /** If animations are enabled this will animate the movement of the widget */
59
+ __unsafe_setPosition(rect: Rect, ref: Frame): Promise<void>;
60
+ /**
61
+ * This will adjust the position of the widget based on the current placement and alignX/alignY arguments.
62
+ * This makes the widget fit into the monitor where it was placed, avoiding monitor overflow.
63
+ */
64
+ adjustAndSetPosition(x: number, y: number, alignX?: Alignment | null, alignY?: Alignment | null): Promise<void>;
62
65
  setPosition(rect: Rect): Promise<void>;
63
66
  show(): Promise<void>;
64
67
  /** Will force foreground the widget */
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/mod.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,IAAI,EACT,KAAK,wBAAwB,EAC7B,KAAK,MAAM,IAAI,OAAO,EAEtB,KAAK,QAAQ,EAIb,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AAOnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEhG,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAoB,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAiBvE;;GAEG;AACH,qBAAa,MAAM;IACjB;;;OAGG;IACH,MAAM,CAAC,UAAU,IAAI,MAAM;IAU3B,iCAAiC;I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AAM,2BAA2B,EAAE,QAA+C,CAAC;AAC1F,eAAO,MAAM,kBAAkB,EAAE,QAAkD,CAAC"}
@@ -3,7 +3,7 @@ import { WidgetPreset, WidgetStatus, } from "../../../gen/types/mod.js";
3
3
  import { invoke, SeelenCommand, SeelenEvent } from "../../handlers/mod.js";
4
4
  import { decodeBase64Url } from "../../../deps/jsr.io/@std/encoding/1.0.10/mod.js";
5
5
  import { debounce } from "../../utils/async.js";
6
- import { WidgetAutoSizer } from "./sizing.js";
6
+ import { OPTIMISTIC_FRAME, WidgetAutoSizer } from "./sizing.js";
7
7
  import { adjustPositionByPlacement, fitIntoMonitor, initMonitorsState } from "./positioning.js";
8
8
  import { startThemingTool } from "../theme/theming.js";
9
9
  import { disableAnimationsOnPerformanceMode } from "./performance.js";
@@ -43,14 +43,6 @@ export class Widget {
43
43
  hwnd: 0,
44
44
  initialized: false,
45
45
  ready: false,
46
- position: {
47
- x: 0,
48
- y: 0,
49
- },
50
- size: {
51
- width: 0,
52
- height: 0,
53
- },
54
46
  firstFocus: true,
55
47
  };
56
48
  constructor(widget) {
@@ -72,15 +64,6 @@ export class Widget {
72
64
  get windowId() {
73
65
  return this.runtimeState.hwnd;
74
66
  }
75
- /** Returns the current position and size of the widget */
76
- get frame() {
77
- return {
78
- x: this.runtimeState.position.x,
79
- y: this.runtimeState.position.y,
80
- width: this.runtimeState.size.width,
81
- height: this.runtimeState.size.height,
82
- };
83
- }
84
67
  /** Returns the default config of the widget, declared on the widget definition */
85
68
  getDefaultConfig() {
86
69
  const config = { enabled: true };
@@ -89,29 +72,12 @@ export class Widget {
89
72
  }
90
73
  return config;
91
74
  }
92
- applyInvisiblePreset() {
93
- return [
94
- this.window.setDecorations(false), // no title bar
95
- this.window.setShadow(false), // no shadows
96
- // hide from native shell
97
- this.window.setSkipTaskbar(true),
98
- // as a (desktop/overlay) widget we don't wanna allow nothing of these
99
- this.window.setMinimizable(false),
100
- this.window.setMaximizable(false),
101
- this.window.setClosable(false),
102
- ];
103
- }
104
75
  /** Will apply the recommended settings for a desktop widget */
105
- async applyDesktopPreset() {
106
- await Promise.all([...this.applyInvisiblePreset(), this.window.setAlwaysOnBottom(true)]);
107
- }
76
+ applyDesktopPreset() { }
108
77
  /** Will apply the recommended settings for an overlay widget */
109
- async applyOverlayPreset() {
110
- await Promise.all([...this.applyInvisiblePreset(), this.window.setAlwaysOnTop(true)]);
111
- }
78
+ applyOverlayPreset() { }
112
79
  /** Will apply the recommended settings for a popup widget */
113
- async applyPopupPreset() {
114
- await Promise.all([...this.applyInvisiblePreset(), this.window.setAlwaysOnTop(true)]);
80
+ applyPopupPreset() {
115
81
  const hideWidget = debounce(() => {
116
82
  this.hide(true);
117
83
  }, 100);
@@ -126,27 +92,8 @@ export class Widget {
126
92
  this.onTrigger(async ({ desiredPosition, alignX, alignY }) => {
127
93
  // avoid flickering when clicking a button that triggers the widget
128
94
  hideWidget.cancel();
129
- if (this.autoSizer && alignX && alignY) {
130
- this.autoSizer.originX = alignX;
131
- this.autoSizer.originY = alignY;
132
- }
133
95
  if (desiredPosition) {
134
- const adjusted = adjustPositionByPlacement({
135
- frame: {
136
- x: desiredPosition.x,
137
- y: desiredPosition.y,
138
- width: this.runtimeState.size.width,
139
- height: this.runtimeState.size.height,
140
- },
141
- originX: alignX,
142
- originY: alignY,
143
- });
144
- await this.setPosition({
145
- left: adjusted.x,
146
- top: adjusted.y,
147
- right: adjusted.x + adjusted.width,
148
- bottom: adjusted.y + adjusted.height,
149
- });
96
+ await this.adjustAndSetPosition(desiredPosition.x, desiredPosition.y, alignX, alignY);
150
97
  }
151
98
  await this.show();
152
99
  await this.focus();
@@ -187,6 +134,18 @@ export class Widget {
187
134
  console.info(`Widget size saved: ${width} ${height}`);
188
135
  }, 500));
189
136
  }
137
+ async normalizeDevicePixelRatio() {
138
+ // play with zoom level to reset device pixel ratio to 1:1
139
+ let oldDPR = globalThis.devicePixelRatio;
140
+ await this.webview.setZoom(1 / oldDPR);
141
+ this.window.onScaleChanged(() => {
142
+ if (globalThis.devicePixelRatio !== oldDPR) {
143
+ // when zoom was set dpr changed, so in case of change this is accomulative unit
144
+ oldDPR = oldDPR * globalThis.devicePixelRatio;
145
+ this.webview.setZoom(1 / (oldDPR * globalThis.devicePixelRatio));
146
+ }
147
+ });
148
+ }
190
149
  /**
191
150
  * Will initialize the widget based on the preset and mark it as `pending`, this function won't show the widget.
192
151
  * This should be called before any other action on the widget. After this you should call
@@ -199,8 +158,11 @@ export class Widget {
199
158
  }
200
159
  this.runtimeState.hwnd = await invoke(SeelenCommand.GetSelfWindowId);
201
160
  this.runtimeState.initialized = true;
161
+ if (options.normalizeDevicePixelRatio) {
162
+ await this.normalizeDevicePixelRatio();
163
+ }
202
164
  if (options.autoSizeByContent) {
203
- this.autoSizer = new WidgetAutoSizer(this, options.autoSizeByContent);
165
+ this.autoSizer = new WidgetAutoSizer(this, options.autoSizeByContent, options.autoSizeFitOnScreen ?? true);
204
166
  }
205
167
  else if (options.saveAndRestoreLastRect ?? this.def.preset === WidgetPreset.Desktop) {
206
168
  await this.persistPositionAndSize();
@@ -209,13 +171,13 @@ export class Widget {
209
171
  case WidgetPreset.None:
210
172
  break;
211
173
  case WidgetPreset.Desktop:
212
- await this.applyDesktopPreset();
174
+ this.applyDesktopPreset();
213
175
  break;
214
176
  case WidgetPreset.Overlay:
215
- await this.applyOverlayPreset();
177
+ this.applyOverlayPreset();
216
178
  break;
217
179
  case WidgetPreset.Popup:
218
- await this.applyPopupPreset();
180
+ this.applyPopupPreset();
219
181
  break;
220
182
  }
221
183
  await startThemingTool();
@@ -226,16 +188,8 @@ export class Widget {
226
188
  else {
227
189
  console.trace("Animations won't be disabled because widget configuration");
228
190
  }
229
- // state initialization
230
- this.runtimeState.size = await this.window.outerSize();
231
- this.runtimeState.position = await this.window.outerPosition();
232
- this.window.onResized((e) => {
233
- this.runtimeState.size.width = e.payload.width;
234
- this.runtimeState.size.height = e.payload.height;
235
- });
236
- this.window.onMoved((e) => {
237
- this.runtimeState.position.x = e.payload.x;
238
- this.runtimeState.position.y = e.payload.y;
191
+ await OPTIMISTIC_FRAME.runExclusive(async (state) => {
192
+ await state.init(this);
239
193
  });
240
194
  }
241
195
  /**
@@ -267,13 +221,8 @@ export class Widget {
267
221
  cb(payload);
268
222
  });
269
223
  }
270
- /** If animations are enabled this will animate the movement of the widget */
271
- setPosition(rect) {
272
- this.runtimeState.position.x = rect.left;
273
- this.runtimeState.position.y = rect.top;
274
- this.runtimeState.size.width = rect.right - rect.left;
275
- this.runtimeState.size.height = rect.bottom - rect.top;
276
- return invoke(SeelenCommand.SetSelfPosition, {
224
+ async __unsafe_setPosition(rect, ref) {
225
+ await invoke(SeelenCommand.SetSelfPosition, {
277
226
  rect: {
278
227
  left: Math.round(rect.left),
279
228
  top: Math.round(rect.top),
@@ -281,6 +230,40 @@ export class Widget {
281
230
  bottom: Math.round(rect.bottom),
282
231
  },
283
232
  });
233
+ // optimistically update state, as arrived event after change is async
234
+ ref.x = rect.left;
235
+ ref.y = rect.top;
236
+ ref.width = rect.right - rect.left;
237
+ ref.height = rect.bottom - rect.top;
238
+ }
239
+ /**
240
+ * This will adjust the position of the widget based on the current placement and alignX/alignY arguments.
241
+ * This makes the widget fit into the monitor where it was placed, avoiding monitor overflow.
242
+ */
243
+ async adjustAndSetPosition(x, y, alignX, alignY) {
244
+ await OPTIMISTIC_FRAME.runExclusive(async (ref) => {
245
+ const adjusted = adjustPositionByPlacement({
246
+ frame: {
247
+ x,
248
+ y,
249
+ width: ref.width,
250
+ height: ref.height,
251
+ },
252
+ originX: alignX,
253
+ originY: alignY,
254
+ });
255
+ await Widget.self.__unsafe_setPosition({
256
+ left: adjusted.x,
257
+ top: adjusted.y,
258
+ right: adjusted.x + adjusted.width,
259
+ bottom: adjusted.y + adjusted.height,
260
+ }, ref);
261
+ });
262
+ }
263
+ async setPosition(rect) {
264
+ await OPTIMISTIC_FRAME.runExclusive(async (frame) => {
265
+ await this.__unsafe_setPosition(rect, frame);
266
+ });
284
267
  }
285
268
  async show() {
286
269
  debouncedClose.cancel();
@@ -1,6 +1,6 @@
1
1
  import { Alignment } from "../../../gen/types/mod.js";
2
2
  import { invoke, subscribe } from "../../handlers/mod.js";
3
- import { SeelenCommand } from "../../lib.js";
3
+ import { SeelenCommand } from "../../handlers/commands.js";
4
4
  import { SeelenEvent } from "../../handlers/events.js";
5
5
  const monitors = {
6
6
  value: [],
@@ -1,14 +1,25 @@
1
1
  import type { Widget } from "./mod.js";
2
2
  import { Alignment } from "../../../gen/types/mod.js";
3
+ import { Mutex } from "../../utils/async.js";
4
+ declare class OptimisiticFrame {
5
+ x: number;
6
+ y: number;
7
+ width: number;
8
+ height: number;
9
+ init(widget: Widget): Promise<void>;
10
+ }
11
+ export declare const OPTIMISTIC_FRAME: Mutex<OptimisiticFrame>;
3
12
  export declare class WidgetAutoSizer {
4
13
  private widget;
5
14
  private element;
15
+ private fitOnScreen;
6
16
  /** From which side the widget will grow */
7
- originX: Alignment;
17
+ originX?: Alignment | null;
8
18
  /** From which side the widget will grow */
9
- originY: Alignment;
10
- constructor(widget: Widget, element: HTMLElement);
19
+ originY?: Alignment | null;
20
+ constructor(widget: Widget, element: HTMLElement, fitOnScreen: boolean);
11
21
  private setup;
12
22
  execute(): Promise<void>;
13
23
  }
24
+ export {};
14
25
  //# sourceMappingURL=sizing.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"sizing.d.ts","sourceRoot":"","sources":["../../../../src/src/state/widget/sizing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAG7C,cAAM,gBAAgB;IACpB,CAAC,EAAE,MAAM,CAAK;IACd,CAAC,EAAE,MAAM,CAAK;IACd,KAAK,EAAE,MAAM,CAAK;IAClB,MAAM,EAAE,MAAM,CAAK;IAEb,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAuB1C;AAED,eAAO,MAAM,gBAAgB,yBAAoC,CAAC;AAElE,qBAAa,eAAe;IAOxB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,WAAW;IARrB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;gBAGjB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,OAAO;IAM9B,OAAO,CAAC,KAAK;IAqBP,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAsD/B"}
@@ -1,21 +1,57 @@
1
- import { PhysicalSize } from "@tauri-apps/api/dpi";
2
1
  import { Alignment } from "../../../gen/types/mod.js";
2
+ import { Mutex } from "../../utils/async.js";
3
+ import { fitIntoMonitor } from "./positioning.js";
4
+ class OptimisiticFrame {
5
+ x = 0;
6
+ y = 0;
7
+ width = 0;
8
+ height = 0;
9
+ async init(widget) {
10
+ const { width, height } = await widget.window.outerSize();
11
+ const { x, y } = await widget.window.outerPosition();
12
+ this.width = width;
13
+ this.height = height;
14
+ this.x = x;
15
+ this.y = y;
16
+ widget.window.onResized((e) => {
17
+ OPTIMISTIC_FRAME.runExclusive((ref) => {
18
+ ref.width = e.payload.width;
19
+ ref.height = e.payload.height;
20
+ });
21
+ });
22
+ widget.window.onMoved((e) => {
23
+ OPTIMISTIC_FRAME.runExclusive((ref) => {
24
+ ref.x = e.payload.x;
25
+ ref.y = e.payload.y;
26
+ });
27
+ });
28
+ }
29
+ }
30
+ export const OPTIMISTIC_FRAME = new Mutex(new OptimisiticFrame());
3
31
  export class WidgetAutoSizer {
4
32
  widget;
5
33
  element;
34
+ fitOnScreen;
6
35
  /** From which side the widget will grow */
7
- originX = Alignment.Start;
36
+ originX;
8
37
  /** From which side the widget will grow */
9
- originY = Alignment.Start;
10
- constructor(widget, element) {
38
+ originY;
39
+ constructor(widget, element, fitOnScreen) {
11
40
  this.widget = widget;
12
41
  this.element = element;
42
+ this.fitOnScreen = fitOnScreen;
13
43
  this.execute = this.execute.bind(this);
14
44
  this.setup();
15
45
  }
16
46
  setup() {
17
47
  // Disable resizing by the user
18
48
  this.widget.window.setResizable(false);
49
+ this.widget.onTrigger(({ alignX, alignY }) => {
50
+ OPTIMISTIC_FRAME.runExclusive(() => {
51
+ this.originX = alignX;
52
+ this.originY = alignY;
53
+ });
54
+ });
19
55
  const observer = new ResizeObserver(this.execute);
20
56
  observer.observe(this.element, {
21
57
  box: "border-box",
@@ -25,8 +61,9 @@ export class WidgetAutoSizer {
25
61
  };
26
62
  }
27
63
  async execute() {
28
- const { x, y, width, height } = this.widget.frame;
29
- const frame = {
64
+ const guard = await OPTIMISTIC_FRAME.acquire();
65
+ const { x, y, width, height } = guard.value;
66
+ let frame = {
30
67
  x,
31
68
  y,
32
69
  width: Math.ceil(this.element.scrollWidth * globalThis.window.devicePixelRatio),
@@ -36,9 +73,12 @@ export class WidgetAutoSizer {
36
73
  const heightDiff = frame.height - height;
37
74
  // Only update if the difference is more than 1px (avoid infinite loops from decimal differences)
38
75
  if (widthDiff === 0 && heightDiff === 0) {
76
+ guard.release();
39
77
  return;
40
78
  }
41
- console.trace(`Auto resize from ${width}x${height} to ${frame.width}x${frame.height}`);
79
+ /* console.debug(
80
+ `Auto resizing from ${width}x${height} to ${frame.width}x${frame.height} using ${this.originX}/${this.originY} origin`,
81
+ ); */
42
82
  if (this.originX === Alignment.Center) {
43
83
  frame.x -= widthDiff / 2;
44
84
  }
@@ -51,16 +91,19 @@ export class WidgetAutoSizer {
51
91
  else if (this.originY === Alignment.End) {
52
92
  frame.y -= heightDiff;
53
93
  }
54
- // only update size no position on this case
55
- if (frame.x === x && frame.y === y) {
56
- await this.widget.window.setSize(new PhysicalSize(frame.width, frame.height));
57
- return;
94
+ if (this.fitOnScreen) {
95
+ frame = fitIntoMonitor(frame);
96
+ }
97
+ try {
98
+ await this.widget.__unsafe_setPosition({
99
+ left: frame.x,
100
+ top: frame.y,
101
+ right: frame.x + frame.width,
102
+ bottom: frame.y + frame.height,
103
+ }, guard.value);
104
+ }
105
+ finally {
106
+ guard.release();
58
107
  }
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
- });
65
108
  }
66
109
  }
@@ -5,4 +5,16 @@ export interface DebouncedFunction<T extends (...args: any[]) => any> {
5
5
  pending(): boolean;
6
6
  }
7
7
  export declare function debounce<T extends (...args: any[]) => any>(fn: T, delay: number): DebouncedFunction<T>;
8
+ export declare class Mutex<T> {
9
+ private _rawValue;
10
+ constructor(_rawValue: T);
11
+ private lock;
12
+ acquire(): Promise<Guard<T>>;
13
+ runExclusive<U>(fn: (v: T) => U): Promise<U>;
14
+ }
15
+ export declare class Guard<T> {
16
+ value: T;
17
+ release: () => void;
18
+ constructor(value: T, release: () => void);
19
+ }
8
20
  //# sourceMappingURL=async.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../../src/src/utils/async.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