@vokril/ui-solid 0.31.0 → 0.32.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.
Files changed (358) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +67 -4
  3. package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
  4. package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
  5. package/dist/{Button-4meERfnv.js → Button-CX7mylBT.js} +125 -117
  6. package/dist/Button-lMUW5P3O.cjs +1 -0
  7. package/dist/CommandPalette-DAR9VMqY.cjs +2 -0
  8. package/dist/CommandPalette-DlLcdd4o.js +4029 -0
  9. package/dist/CopyButton-BVvv5M8g.js +63 -0
  10. package/dist/CopyButton-Dnd8_2Lj.cjs +1 -0
  11. package/dist/DateRangePicker-BlJWtJBA.cjs +9 -0
  12. package/dist/DateRangePicker-CHmUU4PA.js +552 -0
  13. package/dist/GuidedTour-9rqvNB_m.js +483 -0
  14. package/dist/GuidedTour-DbXeuTc7.cjs +1 -0
  15. package/dist/{HostPortal-Ba3MD9CG.js → HostPortal-De65s6CU.js} +1 -1
  16. package/dist/{HostPortal-CpWsArs6.cjs → HostPortal-Dm4BmY8M.cjs} +1 -1
  17. package/dist/{IconPicker-D1G8HK92.js → IconPicker-CsYW8CXe.js} +4 -4
  18. package/dist/IconPicker-D-GU1mD3.cjs +1 -0
  19. package/dist/Input-C3rEQffK.js +382 -0
  20. package/dist/Input-CHtvL4_4.cjs +1 -0
  21. package/dist/Modal-3L6p7Dwt.js +599 -0
  22. package/dist/Modal-CtrWEnJ7.cjs +1 -0
  23. package/dist/OverlayScrollArea-Cr0VAApT.cjs +1 -0
  24. package/dist/OverlayScrollArea-CrrPFLq9.js +180 -0
  25. package/dist/{PageSkeleton-zNyjLPlk.js → PageSkeleton-BRuqaDzr.js} +372 -371
  26. package/dist/PageSkeleton-Cz2bckO4.cjs +30 -0
  27. package/dist/Popover-CLTXG8W0.cjs +1 -0
  28. package/dist/Popover-DkqGvMNy.js +207 -0
  29. package/dist/SearchableSelect-C-lV1vSv.cjs +1 -0
  30. package/dist/SearchableSelect-Du12kcI9.js +328 -0
  31. package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +50 -0
  32. package/dist/{StatusBarNotificationBell-ZTEhZFmJ.js → StatusBarNotificationBell-CgsYrrpj.js} +4868 -4790
  33. package/dist/Stepper-DzI-gtKd.js +586 -0
  34. package/dist/Stepper-rpu7lpzB.cjs +1 -0
  35. package/dist/{Textarea-DASNQNoi.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
  36. package/dist/{Textarea-szHXQahi.js → Textarea-DOzZCc-O.js} +1 -1
  37. package/dist/TimeSeriesChart-BJqQpeEJ.cjs +1 -0
  38. package/dist/TimeSeriesChart-DvAhuyVl.js +442 -0
  39. package/dist/ToggleButton-B-hBpdzk.js +2144 -0
  40. package/dist/ToggleButton-BMH1A-IX.cjs +1 -0
  41. package/dist/_internal/app/onboarding/pageTourState.d.cts +0 -2
  42. package/dist/_internal/app/onboarding/pageTourState.d.ts +0 -2
  43. package/dist/_internal/app/onboarding/pageTourTypes.d.cts +2 -1
  44. package/dist/_internal/app/onboarding/pageTourTypes.d.ts +2 -1
  45. package/dist/_internal/contract/notification.d.cts +19 -3
  46. package/dist/_internal/contract/notification.d.ts +19 -3
  47. package/dist/a11y/index.cjs +1 -1
  48. package/dist/a11y/index.js +1 -1
  49. package/dist/appThemeDerivation-Be_oKljl.cjs +1 -0
  50. package/dist/{server/appThemeDerivation-DBAOkGl7.js → appThemeDerivation-CKoSe4KP.js} +231 -260
  51. package/dist/base.css +1 -1
  52. package/dist/charts/index.cjs +1 -1
  53. package/dist/charts/index.js +1 -1
  54. package/dist/createDialogShellFocus-DI1rUvYf.js +282 -0
  55. package/dist/createDialogShellFocus-kzkNSLWS.cjs +1 -0
  56. package/dist/createResizableSidebar--Ve6DbDu.js +504 -0
  57. package/dist/createResizableSidebar-DlVAuq5t.cjs +1 -0
  58. package/dist/desktop/index.cjs +1 -1
  59. package/dist/desktop/index.js +228 -227
  60. package/dist/feedback/index.cjs +1 -1
  61. package/dist/feedback/index.js +4 -4
  62. package/dist/{focusModality-BISb6-yg.cjs → focusModality-D704CJVN.cjs} +1 -1
  63. package/dist/{focusModality-FoLPWF-_.js → focusModality-ROUF6YGR.js} +1 -1
  64. package/dist/forms/index.cjs +1 -1
  65. package/dist/forms/index.js +9 -9
  66. package/dist/grid/index.cjs +1 -1
  67. package/dist/grid/index.js +1 -1
  68. package/dist/host/index.cjs +1 -1
  69. package/dist/host/index.d.cts +1 -0
  70. package/dist/host/index.d.ts +1 -0
  71. package/dist/host/index.js +38 -39
  72. package/dist/host/kitHost.d.cts +8 -0
  73. package/dist/host/kitHost.d.ts +8 -0
  74. package/dist/index.cjs +1 -1
  75. package/dist/index.js +940 -938
  76. package/dist/kitHost-BMMWpU4w.js +47 -0
  77. package/dist/kitHost-u0-mKvEK.cjs +1 -0
  78. package/dist/layout/index.cjs +1 -1
  79. package/dist/layout/index.js +2 -2
  80. package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
  81. package/dist/mainRealmDom-DydRT2Us.js +54 -0
  82. package/dist/navigation/index.cjs +1 -1
  83. package/dist/navigation/index.js +1 -1
  84. package/dist/notificationCatalog-CRERhjp6.js +168 -0
  85. package/dist/notificationCatalog-DqTkd7M6.cjs +1 -0
  86. package/dist/notifications/holdWhileShown.d.cts +18 -0
  87. package/dist/notifications/holdWhileShown.d.ts +18 -0
  88. package/dist/notifications/index.cjs +1 -1
  89. package/dist/notifications/index.js +2 -2
  90. package/dist/notifications/nativeEngine.d.cts +34 -2
  91. package/dist/notifications/nativeEngine.d.ts +34 -2
  92. package/dist/notifications/notificationEntryList.d.cts +18 -5
  93. package/dist/notifications/notificationEntryList.d.ts +18 -5
  94. package/dist/overlay/Modal.d.cts +16 -3
  95. package/dist/overlay/Modal.d.ts +16 -3
  96. package/dist/overlay/index.cjs +1 -1
  97. package/dist/overlay/index.d.cts +2 -1
  98. package/dist/overlay/index.d.ts +2 -1
  99. package/dist/overlay/index.js +46 -43
  100. package/dist/overlay/modalDefaults.d.cts +23 -0
  101. package/dist/overlay/modalDefaults.d.ts +23 -0
  102. package/dist/overlay/modalViewport.d.cts +16 -2
  103. package/dist/overlay/modalViewport.d.ts +16 -2
  104. package/dist/pageTourState-BuA-GBYO.cjs +5 -0
  105. package/dist/{server/pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
  106. package/dist/rowSource-BRGZHclZ.js +1231 -0
  107. package/dist/rowSource-C3zlzAtR.cjs +1 -0
  108. package/dist/server/AttributeGrid-B9j_c2wM.js +281 -0
  109. package/dist/server/AttributeGrid-BALCTvOI.cjs +1 -0
  110. package/dist/server/Button-DHefmmYz.cjs +1 -0
  111. package/dist/server/Button-ft_8RNJj.js +226 -0
  112. package/dist/server/CommandPalette-CHdfYtxs.js +3305 -0
  113. package/dist/server/CommandPalette-D0Prl7by.cjs +1 -0
  114. package/dist/server/CopyButton-CiYcsQcI.js +64 -0
  115. package/dist/server/CopyButton-D2q7tQ0m.cjs +1 -0
  116. package/dist/server/DateRangePicker-C6wZI7No.js +487 -0
  117. package/dist/server/DateRangePicker-CF70G2yr.cjs +9 -0
  118. package/dist/server/GuidedTour-BmDAWNfN.cjs +1 -0
  119. package/dist/server/GuidedTour-DYBhprVK.js +400 -0
  120. package/dist/server/{HostPortal-C4IrAeWN.js → HostPortal-C4xdfRyM.js} +1 -1
  121. package/dist/server/{HostPortal-D5ECrJvn.cjs → HostPortal-CwyePpDX.cjs} +1 -1
  122. package/dist/server/{IconPicker-DDWgB7sm.js → IconPicker--Xso9fUf.js} +5 -5
  123. package/dist/server/IconPicker-BTI4cNgf.cjs +1 -0
  124. package/dist/server/Input-UX0Hk53M.cjs +1 -0
  125. package/dist/server/Input-V9Szcw6w.js +249 -0
  126. package/dist/server/Modal-CBnNlaTx.cjs +1 -0
  127. package/dist/server/Modal-D9CjieKK.js +426 -0
  128. package/dist/server/OverlayScrollArea-DuwGRSMm.cjs +1 -0
  129. package/dist/server/OverlayScrollArea-h6G3yk6U.js +66 -0
  130. package/dist/server/{PageSkeleton-DoxlE_bD.js → PageSkeleton-CFs7AdTA.js} +267 -266
  131. package/dist/server/PageSkeleton-D0KOKLsb.cjs +30 -0
  132. package/dist/server/Popover-BBDBIpT6.cjs +1 -0
  133. package/dist/server/Popover-e9JpRh11.js +439 -0
  134. package/dist/server/SearchableSelect-B2ZFnp6i.js +205 -0
  135. package/dist/server/SearchableSelect-BBu5cP6P.cjs +1 -0
  136. package/dist/server/{StatusBarNotificationBell-DW2l5O9B.js → StatusBarNotificationBell-CJJFE4rf.js} +4468 -4390
  137. package/dist/server/StatusBarNotificationBell-Cxs_bVKX.cjs +49 -0
  138. package/dist/server/Stepper-C04rOZcI.cjs +1 -0
  139. package/dist/server/Stepper-CVAOsf3o.js +381 -0
  140. package/dist/server/{Textarea-Bh5LVrBn.cjs → Textarea-BG6F8taO.cjs} +1 -1
  141. package/dist/server/{Textarea-DVkfGkP0.js → Textarea-DM4zpgWo.js} +1 -1
  142. package/dist/server/TimeSeriesChart-kuuqH7we.js +242 -0
  143. package/dist/server/TimeSeriesChart-tWbSF6fJ.cjs +1 -0
  144. package/dist/server/ToggleButton-BdqufQ7G.js +1344 -0
  145. package/dist/server/ToggleButton-Bo24NK3o.cjs +1 -0
  146. package/dist/server/a11y/index.cjs +1 -1
  147. package/dist/server/a11y/index.js +1 -1
  148. package/dist/server/appThemeDerivation-Be_oKljl.cjs +1 -0
  149. package/dist/{appThemeDerivation-DBAOkGl7.js → server/appThemeDerivation-CKoSe4KP.js} +231 -260
  150. package/dist/server/charts/index.cjs +1 -1
  151. package/dist/server/charts/index.js +1 -1
  152. package/dist/server/createDialogShellFocus-DvoNWpIu.cjs +1 -0
  153. package/dist/server/createDialogShellFocus-J8wqPlsa.js +370 -0
  154. package/dist/server/{createResizableSidebar-Dvu7iEk1.js → createResizableSidebar-CIrhLNKW.js} +104 -102
  155. package/dist/server/createResizableSidebar-DcZ2Cnpf.cjs +1 -0
  156. package/dist/server/desktop/index.cjs +1 -1
  157. package/dist/server/desktop/index.js +153 -152
  158. package/dist/server/feedback/index.cjs +1 -1
  159. package/dist/server/feedback/index.js +4 -4
  160. package/dist/server/{focusModality-nWNVX3JG.js → focusModality-Bu4Kuwm4.js} +1 -1
  161. package/dist/server/{focusModality-D-nxv8Er.cjs → focusModality-G2i60_7y.cjs} +1 -1
  162. package/dist/server/forms/index.cjs +1 -1
  163. package/dist/server/forms/index.js +9 -9
  164. package/dist/server/grid/index.cjs +1 -1
  165. package/dist/server/grid/index.js +1 -1
  166. package/dist/server/host/index.cjs +1 -1
  167. package/dist/server/host/index.js +38 -39
  168. package/dist/server/{index-BEARfm54.js → index-CPUZyKo7.js} +2 -2
  169. package/dist/server/{index-C6rYfWCJ.cjs → index-CVbkasNJ.cjs} +1 -1
  170. package/dist/server/index.cjs +1 -1
  171. package/dist/server/index.js +673 -671
  172. package/dist/server/kitHost-BMMWpU4w.js +47 -0
  173. package/dist/server/kitHost-u0-mKvEK.cjs +1 -0
  174. package/dist/server/layout/index.cjs +1 -1
  175. package/dist/server/layout/index.js +2 -2
  176. package/dist/server/mainRealmDom-BuGEeM_r.cjs +1 -0
  177. package/dist/server/{EmptyState-Csydyy_7.js → mainRealmDom-CzckS_ss.js} +12 -8
  178. package/dist/server/navigation/index.cjs +1 -1
  179. package/dist/server/navigation/index.js +1 -1
  180. package/dist/server/notificationCatalog-CEDltsJS.cjs +1 -0
  181. package/dist/server/notificationCatalog-Cl1dH4aJ.js +122 -0
  182. package/dist/server/notifications/index.cjs +1 -1
  183. package/dist/server/notifications/index.js +2 -2
  184. package/dist/server/overlay/index.cjs +1 -1
  185. package/dist/server/overlay/index.js +32 -29
  186. package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
  187. package/dist/{pageTourState-BcBF8w89.js → server/pageTourState-DsSKdPOu.js} +160 -169
  188. package/dist/server/rowSource-C1F4l0xZ.cjs +1 -0
  189. package/dist/server/rowSource-CoeHYNsV.js +1123 -0
  190. package/dist/server/tokens/index.cjs +1 -1
  191. package/dist/server/tokens/index.js +29 -28
  192. package/dist/server/tokens/palette/index.cjs +1 -0
  193. package/dist/server/tokens/palette/index.js +31 -0
  194. package/dist/server/tree/index.cjs +1 -1
  195. package/dist/server/tree/index.js +1 -1
  196. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
  197. package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
  198. package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
  199. package/dist/solid/desktop/WindowControls.jsx +6 -3
  200. package/dist/solid/feedback/Badge.jsx +9 -5
  201. package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
  202. package/dist/solid/forms/Button.jsx +15 -9
  203. package/dist/solid/forms/Checkbox.jsx +5 -4
  204. package/dist/solid/forms/Combobox.jsx +12 -10
  205. package/dist/solid/forms/CopyButton.jsx +7 -4
  206. package/dist/solid/forms/DatePicker.jsx +12 -7
  207. package/dist/solid/forms/Dropzone.jsx +17 -13
  208. package/dist/solid/forms/FilePickerButton.jsx +5 -4
  209. package/dist/solid/forms/HiddenFileInput.jsx +3 -1
  210. package/dist/solid/forms/InputMessage.jsx +11 -10
  211. package/dist/solid/forms/MultiSearchableSelect.jsx +8 -7
  212. package/dist/solid/forms/NumberInput.jsx +25 -19
  213. package/dist/solid/forms/Picker.jsx +8 -6
  214. package/dist/solid/forms/PressableSurface.jsx +14 -9
  215. package/dist/solid/forms/RadioGroup.jsx +4 -3
  216. package/dist/solid/forms/SearchInput.jsx +4 -3
  217. package/dist/solid/forms/SearchableSelect.jsx +4 -3
  218. package/dist/solid/forms/SegmentedControl.jsx +4 -3
  219. package/dist/solid/forms/TagInput.jsx +22 -16
  220. package/dist/solid/forms/ToggleButton.jsx +4 -3
  221. package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +12 -10
  222. package/dist/solid/grid/Pagination.jsx +7 -3
  223. package/dist/solid/host/kitHost.jsx +5 -1
  224. package/dist/solid/layout/PageHeaderIcon.jsx +11 -9
  225. package/dist/solid/layout/ResizableSplitPane.jsx +4 -4
  226. package/dist/solid/layout/ResizeHandle.jsx +6 -5
  227. package/dist/solid/navigation/Accordion.jsx +8 -5
  228. package/dist/solid/navigation/Tabs.jsx +11 -8
  229. package/dist/solid/notifications/NotificationItem.jsx +59 -55
  230. package/dist/solid/notifications/NotificationPanel.jsx +16 -8
  231. package/dist/solid/notifications/NotificationsCenter.jsx +2 -0
  232. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  233. package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
  234. package/dist/solid/notifications/holdWhileShown.js +30 -0
  235. package/dist/solid/notifications/nativeEngine.js +52 -1
  236. package/dist/solid/notifications/notificationEntryList.js +25 -9
  237. package/dist/solid/notifications/toast.js +4 -0
  238. package/dist/solid/overlay/ConfirmDialog.jsx +21 -16
  239. package/dist/solid/overlay/DangerousActionDialogParts.jsx +5 -3
  240. package/dist/solid/overlay/Disclosure.jsx +4 -3
  241. package/dist/solid/overlay/DropdownMenu.jsx +6 -4
  242. package/dist/solid/overlay/FloatingWindow.jsx +3 -3
  243. package/dist/solid/overlay/HoverTooltip.jsx +9 -7
  244. package/dist/solid/overlay/Modal.jsx +44 -35
  245. package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
  246. package/dist/solid/overlay/Tooltip.jsx +5 -4
  247. package/dist/solid/overlay/command-palette/CommandPalette.jsx +7 -7
  248. package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +65 -50
  249. package/dist/solid/overlay/index.js +2 -1
  250. package/dist/solid/overlay/menu/MenuParts.jsx +11 -8
  251. package/dist/solid/overlay/modalDefaults.jsx +10 -0
  252. package/dist/solid/overlay/modalViewport.js +17 -4
  253. package/dist/solid/overlay/popover/Popover.jsx +17 -11
  254. package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
  255. package/dist/solid/tokens/palette/index.js +1 -0
  256. package/dist/solid/tree/TreeRow.jsx +19 -16
  257. package/dist/solid/tree/TreeSurface.jsx +15 -14
  258. package/dist/solid/widgets/SettingsField.jsx +11 -10
  259. package/dist/style.css +3 -2
  260. package/dist/theme.css +2 -1
  261. package/dist/tokens/index.cjs +1 -1
  262. package/dist/tokens/index.js +29 -28
  263. package/dist/tokens/palette/index.cjs +1 -0
  264. package/dist/tokens/palette/index.d.cts +12 -0
  265. package/dist/tokens/palette/index.d.ts +12 -0
  266. package/dist/tokens/palette/index.js +31 -0
  267. package/dist/tokens/tokens.css +2 -1
  268. package/dist/tree/index.cjs +1 -1
  269. package/dist/tree/index.js +1 -1
  270. package/dist/ui.css +1 -1
  271. package/package.json +25 -1
  272. package/dist/AttributeGrid-Ch1k9v5j.cjs +0 -1
  273. package/dist/AttributeGrid-DqFd4gBm.js +0 -320
  274. package/dist/Button-OyZHrl-t.cjs +0 -1
  275. package/dist/CommandPalette-CxYZUJtN.cjs +0 -2
  276. package/dist/CommandPalette-DwOp8y1-.js +0 -4018
  277. package/dist/CopyButton-16QNPgz6.cjs +0 -1
  278. package/dist/CopyButton-BVS49lMS.js +0 -63
  279. package/dist/DateRangePicker-8QvydugY.js +0 -550
  280. package/dist/DateRangePicker-DI-06xWY.cjs +0 -9
  281. package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
  282. package/dist/EmptyState-Dph6HU74.js +0 -50
  283. package/dist/GuidedTour-DUQwdW8n.cjs +0 -1
  284. package/dist/GuidedTour-DXMmHn0o.js +0 -483
  285. package/dist/IconPicker-Q-ZDtNkd.cjs +0 -1
  286. package/dist/Input-Brp5EDhg.cjs +0 -1
  287. package/dist/Input-CZi8KEfm.js +0 -374
  288. package/dist/Modal-CBi7Wd2V.cjs +0 -1
  289. package/dist/Modal-iyY1HUtr.js +0 -588
  290. package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
  291. package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
  292. package/dist/PageSkeleton-B_-4fz1q.cjs +0 -30
  293. package/dist/Popover-DVi179wu.js +0 -207
  294. package/dist/Popover-DXrczbt9.cjs +0 -1
  295. package/dist/SearchableSelect-DtHbWJhR.js +0 -328
  296. package/dist/SearchableSelect-yLVqCGFo.cjs +0 -1
  297. package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +0 -50
  298. package/dist/Stepper-CyRgzWlR.js +0 -583
  299. package/dist/Stepper-u2ZsE5oP.cjs +0 -1
  300. package/dist/TimeSeriesChart-D7lIqolp.js +0 -441
  301. package/dist/TimeSeriesChart-DGzM9B--.cjs +0 -1
  302. package/dist/ToggleButton-B22PsCqo.js +0 -2138
  303. package/dist/ToggleButton-DWslrIBN.cjs +0 -1
  304. package/dist/appThemeDerivation-BylmT80v.cjs +0 -1
  305. package/dist/createDialogShellFocus-CQ0VNC2g.cjs +0 -1
  306. package/dist/createDialogShellFocus-DbiQmLgb.js +0 -282
  307. package/dist/createResizableSidebar-COlpGQ7H.cjs +0 -1
  308. package/dist/createResizableSidebar-cmCKTIg_.js +0 -504
  309. package/dist/kitHost-BfJExE1G.cjs +0 -1
  310. package/dist/kitHost-CVAEi9sF.js +0 -23
  311. package/dist/mainRealmDom-B215swW-.js +0 -166
  312. package/dist/mainRealmDom-BYGSE-fo.cjs +0 -1
  313. package/dist/pageTourState-CrbEU7QW.cjs +0 -5
  314. package/dist/rowSource-D__7o4h0.js +0 -1230
  315. package/dist/rowSource-DiwTu_r8.cjs +0 -1
  316. package/dist/server/AttributeGrid-Bpjlauuz.js +0 -281
  317. package/dist/server/AttributeGrid-DNYdKb8J.cjs +0 -1
  318. package/dist/server/Button-0AXWRw9Q.cjs +0 -1
  319. package/dist/server/Button-3yNrnn4P.js +0 -220
  320. package/dist/server/CommandPalette-BuVxnqBG.cjs +0 -1
  321. package/dist/server/CommandPalette-Dn3NKXPM.js +0 -3291
  322. package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
  323. package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
  324. package/dist/server/DateRangePicker-BFzNjaME.cjs +0 -9
  325. package/dist/server/DateRangePicker-CnYkTgXX.js +0 -484
  326. package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
  327. package/dist/server/GuidedTour-BZardPYW.js +0 -400
  328. package/dist/server/GuidedTour-yhdZk2SU.cjs +0 -1
  329. package/dist/server/IconPicker-C5lAN9pX.cjs +0 -1
  330. package/dist/server/Input-AdF-i0O8.js +0 -245
  331. package/dist/server/Input-XF9Jr0G9.cjs +0 -1
  332. package/dist/server/Modal-C5dzgcRW.js +0 -420
  333. package/dist/server/Modal-nAhBS1L9.cjs +0 -1
  334. package/dist/server/OverlayScrollArea-221dfKyz.js +0 -65
  335. package/dist/server/OverlayScrollArea-D4e9D9Nd.cjs +0 -1
  336. package/dist/server/PageSkeleton-DBo7hQq-.cjs +0 -30
  337. package/dist/server/Popover-C5avmGWz.cjs +0 -1
  338. package/dist/server/Popover-H3AAYZI0.js +0 -439
  339. package/dist/server/SearchableSelect-CZrXDKfC.cjs +0 -1
  340. package/dist/server/SearchableSelect-DMqed5Er.js +0 -205
  341. package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +0 -49
  342. package/dist/server/Stepper-CpapA_WH.cjs +0 -1
  343. package/dist/server/Stepper-gGA7JwjV.js +0 -375
  344. package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
  345. package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
  346. package/dist/server/ToggleButton-CA9T-OsI.cjs +0 -1
  347. package/dist/server/ToggleButton-CBNKajZa.js +0 -1335
  348. package/dist/server/appThemeDerivation-BylmT80v.cjs +0 -1
  349. package/dist/server/createDialogShellFocus-CDaLuPg8.cjs +0 -1
  350. package/dist/server/createDialogShellFocus-LGDBOVnr.js +0 -369
  351. package/dist/server/createResizableSidebar-v40ZOb-Q.cjs +0 -1
  352. package/dist/server/kitHost-BfJExE1G.cjs +0 -1
  353. package/dist/server/kitHost-CVAEi9sF.js +0 -23
  354. package/dist/server/mainRealmDom-DPNaDWtw.js +0 -121
  355. package/dist/server/mainRealmDom-DwZVMPnO.cjs +0 -1
  356. package/dist/server/pageTourState-CrbEU7QW.cjs +0 -5
  357. package/dist/server/rowSource-D-wcDmFU.js +0 -1122
  358. package/dist/server/rowSource-DltiY0o3.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { For, Show, createSignal } from 'solid-js';
1
+ import { For, Show, createMemo, createSignal } from 'solid-js';
2
2
  import { createSelectionIndicator } from './createSelectionIndicator';
3
3
  import styles from './Tabs.module.css.js';
4
4
  import { rovingTabIndex } from './tablistKeyboardNavigation';
@@ -10,6 +10,9 @@ import { OverlayScrollArea } from '../overlay/OverlayScrollArea';
10
10
  import { t } from '../i18n/i18n';
11
11
  import { isKey } from '../_internal/base/keys';
12
12
  export function Tabs(props) {
13
+ const tabs = createMemo(() => props.tabs);
14
+ const reorderable = createMemo(() => Boolean(props.reorderable));
15
+ const closable = createMemo(() => props.closable === true);
13
16
  const selectedIndex = () => props.tabs.findIndex((tab) => tab.value === props.value);
14
17
  const handleKeyDown = createTablistKeyboardHandler(props.orientation ? { orientation: props.orientation } : undefined);
15
18
  let listEl;
@@ -46,21 +49,21 @@ export function Tabs(props) {
46
49
  <For each={props.tabs}>
47
50
  {(tab, index) => {
48
51
  const selected = () => props.value === tab.value;
49
- const isTabClosable = () => (props.closable === true || tab.closable === true) &&
50
- props.onClose !== undefined;
52
+ const isTabClosable = createMemo(() => (closable() || tab.closable === true) &&
53
+ props.onClose !== undefined);
51
54
  return (<button type="button" role="tab" title={tab.title} aria-label={tab.ariaLabel ?? tab.title} id={props.idPrefix !== undefined
52
55
  ? tabId(props.idPrefix, tab.value)
53
56
  : undefined} aria-controls={props.idPrefix !== undefined
54
57
  ? tabPanelId(props.idPrefix, tab.value)
55
58
  : undefined} aria-selected={selected()} tabindex={rovingTabIndex(index(), selectedIndex())} class={`${styles.tab} ${selected()
56
59
  ? `${styles.active} ${tab.activeClass ?? ''}`.trim()
57
- : ''} ${props.reorderable ? styles.draggableTab : ''} ${dragOverIndex() === index() ? styles.dragOver : ''} ${tab.class ?? ''}`.trim()} disabled={tab.disabled} draggable={props.reorderable && !tab.disabled} onPointerDown={tab.onPointerDown} onContextMenu={tab.onContextMenu} {...(tab.dataAttributes ?? {})} onDragStart={(e) => {
58
- if (!props.reorderable)
60
+ : ''} ${reorderable() ? styles.draggableTab : ''} ${dragOverIndex() === index() ? styles.dragOver : ''} ${tab.class ?? ''}`.trim()} disabled={tab.disabled} draggable={reorderable() && !tab.disabled} onPointerDown={tab.onPointerDown} onContextMenu={tab.onContextMenu} {...(tab.dataAttributes ?? {})} onDragStart={(e) => {
61
+ if (!reorderable())
59
62
  return;
60
63
  e.dataTransfer?.setData('text/plain', String(index()));
61
64
  e.dataTransfer?.setData('application/x-vokril-tab', String(index()));
62
65
  }} onDragOver={(e) => {
63
- if (props.reorderable) {
66
+ if (reorderable()) {
64
67
  e.preventDefault();
65
68
  setDragOverIndex(index());
66
69
  }
@@ -70,7 +73,7 @@ export function Tabs(props) {
70
73
  }
71
74
  }} onDrop={(e) => {
72
75
  setDragOverIndex(null);
73
- if (!props.reorderable || !props.onReorder)
76
+ if (!reorderable() || !props.onReorder)
74
77
  return;
75
78
  e.preventDefault();
76
79
  const rawIdx = e.dataTransfer?.getData('application/x-vokril-tab') ||
@@ -78,7 +81,7 @@ export function Tabs(props) {
78
81
  const fromIdx = Number(rawIdx);
79
82
  const toIdx = index();
80
83
  if (!Number.isNaN(fromIdx) && fromIdx !== toIdx) {
81
- const next = [...props.tabs];
84
+ const next = [...tabs()];
82
85
  const moved = next.splice(fromIdx, 1)[0];
83
86
  if (moved) {
84
87
  next.splice(toIdx, 0, moved);
@@ -55,6 +55,9 @@ const CUSTOM_ICONS = {
55
55
  lock: VpLock,
56
56
  };
57
57
  export const NotificationItem = (props) => {
58
+ const controllerProp = createMemo(() => props.controller);
59
+ const itemProp = createMemo(() => props.item);
60
+ const shellProp = createMemo(() => props.shell);
58
61
  const now = useRelativeNow();
59
62
  const desktopMenu = useContext(DesktopContextMenuContext);
60
63
  const [isExiting, setIsExiting] = createSignal(false);
@@ -63,32 +66,32 @@ export const NotificationItem = (props) => {
63
66
  if (exitTimer !== undefined)
64
67
  clearTimeout(exitTimer);
65
68
  });
66
- const closable = createMemo(() => !isProgressRunning(props.item));
69
+ const closable = createMemo(() => !isProgressRunning(itemProp()));
67
70
  const close = () => {
68
71
  if (isExiting())
69
72
  return;
70
73
  if (!closable() || prefersReducedMotion(document)) {
71
- props.controller.close(props.item.id);
74
+ controllerProp().close(itemProp().id);
72
75
  return;
73
76
  }
74
77
  setIsExiting(true);
75
78
  if (exitTimer !== undefined)
76
79
  clearTimeout(exitTimer);
77
- exitTimer = setTimeout(() => props.controller.close(props.item.id), 180);
80
+ exitTimer = setTimeout(() => controllerProp().close(itemProp().id), 180);
78
81
  };
79
- const setFocus = (focused) => props.controller.setFocus(props.item.id, focused);
80
- const setHover = (hovered) => props.controller.setHover(props.item.id, hovered);
81
- const toggleExpanded = () => props.controller.toggleExpanded(props.item.id);
82
+ const setFocus = (focused) => controllerProp().setFocus(itemProp().id, focused);
83
+ const setHover = (hovered) => controllerProp().setHover(itemProp().id, hovered);
84
+ const toggleExpanded = () => controllerProp().toggleExpanded(itemProp().id);
82
85
  const severityIcon = createMemo(() => {
83
- const customName = props.item.icon;
86
+ const customName = itemProp().icon;
84
87
  if (customName && CUSTOM_ICONS[customName])
85
88
  return CUSTOM_ICONS[customName];
86
- return SEVERITY_ICON[props.item.severity];
89
+ return SEVERITY_ICON[itemProp().severity];
87
90
  });
88
- const relativeAgo = createMemo(() => formatRelativeAgo(props.item.createdAt, now()));
89
- const exactTimestamp = createMemo(() => formatExactTimestamp(props.item.createdAt));
90
- const isSticky = createMemo(() => props.controller.isSticky(props.item));
91
- const duration = createMemo(() => props.controller.duration(props.item));
91
+ const relativeAgo = createMemo(() => formatRelativeAgo(itemProp().createdAt, now()));
92
+ const exactTimestamp = createMemo(() => formatExactTimestamp(itemProp().createdAt));
93
+ const isSticky = createMemo(() => controllerProp().isSticky(itemProp()));
94
+ const duration = createMemo(() => controllerProp().duration(itemProp()));
92
95
  const hasTimer = createMemo(() => {
93
96
  if (isSticky())
94
97
  return false;
@@ -102,11 +105,11 @@ export const NotificationItem = (props) => {
102
105
  const focused = isFocused();
103
106
  if (!hovered && !focused)
104
107
  return;
105
- const item = props.item;
108
+ const item = itemProp();
106
109
  if (item === undefined)
107
110
  return;
108
111
  const { id } = item;
109
- const controller = props.controller;
112
+ const controller = controllerProp();
110
113
  queueMicrotask(() => {
111
114
  if (hovered)
112
115
  controller.setHover(id, false);
@@ -117,7 +120,7 @@ export const NotificationItem = (props) => {
117
120
  const [runCounter, setRunCounter] = createSignal(0);
118
121
  const isPaused = createMemo(() => isHovered() ||
119
122
  isFocused() ||
120
- Boolean(props.item.hovered || props.item.focused));
123
+ Boolean(itemProp().hovered || itemProp().focused));
121
124
  let wasPaused = false;
122
125
  createEffect(() => {
123
126
  const paused = isPaused();
@@ -126,39 +129,39 @@ export const NotificationItem = (props) => {
126
129
  }
127
130
  wasPaused = paused;
128
131
  });
129
- let prevExpanded = props.item.expanded;
132
+ let prevExpanded = itemProp().expanded;
130
133
  createEffect(() => {
131
- const curExpanded = props.item.expanded;
134
+ const curExpanded = itemProp().expanded;
132
135
  if (curExpanded !== prevExpanded) {
133
136
  prevExpanded = curExpanded;
134
137
  setRunCounter((c) => c + 1);
135
138
  }
136
139
  });
137
- const fuseKey = createMemo(() => hasTimer() ? `${props.item.id}-${duration()}-${runCounter()}` : null);
138
- const announcement = () => props.item.announce ??
139
- (props.item.severity === 'error' ? 'assertive' : 'polite');
140
+ const fuseKey = createMemo(() => hasTimer() ? `${itemProp().id}-${duration()}-${runCounter()}` : null);
141
+ const announcement = () => itemProp().announce ??
142
+ (itemProp().severity === 'error' ? 'assertive' : 'polite');
140
143
  createEffect(() => {
141
144
  if (props.inCenter)
142
145
  return;
143
- const title = props.item.title;
144
- const body = props.item.body;
146
+ const title = itemProp().title;
147
+ const body = itemProp().body;
145
148
  const text = body ? `${title}: ${body}` : title;
146
149
  if (announcement() === 'assertive') {
147
- props.controller.announcer.assertive(text);
150
+ controllerProp().announcer.assertive(text);
148
151
  }
149
152
  else {
150
- props.controller.announcer.polite(text);
153
+ controllerProp().announcer.polite(text);
151
154
  }
152
155
  });
153
156
  const bodyHtml = createMemo(() => {
154
- const body = props.item.body;
157
+ const body = itemProp().body;
155
158
  if (!body)
156
159
  return '';
157
- if (props.item.markdown)
158
- return renderNotificationMarkdown(body, props.shell !== null);
160
+ if (itemProp().markdown)
161
+ return renderNotificationMarkdown(body, shellProp() !== null);
159
162
  return escapeHtml(body).replace(/\n/g, '<br>');
160
163
  });
161
- const openLink = (url) => props.controller.openExternal(url);
164
+ const openLink = (url) => controllerProp().openExternal(url);
162
165
  const handleBodyClick = (event) => {
163
166
  const target = event.target;
164
167
  const link = target?.closest('a');
@@ -170,7 +173,7 @@ export const NotificationItem = (props) => {
170
173
  openLink(href);
171
174
  return;
172
175
  }
173
- const shell = props.shell;
176
+ const shell = shellProp();
174
177
  if (shell === null) {
175
178
  event.preventDefault();
176
179
  return;
@@ -178,16 +181,17 @@ export const NotificationItem = (props) => {
178
181
  const interactive = target?.closest('a, button, [role="button"], input, select, textarea');
179
182
  if (interactive)
180
183
  return;
181
- const route = props.item.defaultRoute;
184
+ const route = itemProp().defaultRoute;
182
185
  if (route)
183
186
  shell.navigate(route);
184
187
  };
185
188
  const handleContextMenu = (event) => {
186
189
  if (!desktopMenu)
187
190
  return;
188
- const text = `${props.item.title}${props.item.body ? `\n${props.item.body}` : ''}`.trim();
189
- const match = props.item.vendorError
190
- ? props.controller.resolveVendorError(props.item.vendorError)
191
+ const card = itemProp();
192
+ const text = `${card.title}${card.body ? `\n${card.body}` : ''}`.trim();
193
+ const match = card.vendorError
194
+ ? controllerProp().resolveVendorError(card.vendorError)
191
195
  : null;
192
196
  event.preventDefault();
193
197
  event.stopPropagation();
@@ -225,7 +229,7 @@ export const NotificationItem = (props) => {
225
229
  ]);
226
230
  };
227
231
  const openGearMenu = (event) => {
228
- const shell = props.shell;
232
+ const shell = shellProp();
229
233
  if (shell === null)
230
234
  return;
231
235
  if (!desktopMenu)
@@ -233,16 +237,16 @@ export const NotificationItem = (props) => {
233
237
  event.preventDefault();
234
238
  event.stopPropagation();
235
239
  if (desktopMenu.state() &&
236
- lastGearOpenedFor.get(desktopMenu) === props.item.id) {
240
+ lastGearOpenedFor.get(desktopMenu) === itemProp().id) {
237
241
  desktopMenu.close();
238
242
  lastGearOpenedFor.set(desktopMenu, null);
239
243
  return;
240
244
  }
241
- lastGearOpenedFor.set(desktopMenu, props.item.id);
245
+ lastGearOpenedFor.set(desktopMenu, itemProp().id);
242
246
  const gearTrigger = event.currentTarget;
243
- const source = props.item.source;
244
- const dontShowKey = props.item.neverShowAgainKey;
245
- const remindKey = cardRemindKey(props.item);
247
+ const source = itemProp().source;
248
+ const dontShowKey = itemProp().neverShowAgainKey;
249
+ const remindKey = cardRemindKey(itemProp());
246
250
  const items = [];
247
251
  if (dontShowKey) {
248
252
  items.push({
@@ -293,7 +297,7 @@ export const NotificationItem = (props) => {
293
297
  onSelect: () => shell.setSourceMuted(source, !muted),
294
298
  });
295
299
  }
296
- const secondary = props.item.secondaryActions;
300
+ const secondary = itemProp().secondaryActions;
297
301
  if (secondary && secondary.length > 0) {
298
302
  if (items.length > 0)
299
303
  items.push({ type: 'separator' });
@@ -323,9 +327,9 @@ export const NotificationItem = (props) => {
323
327
  close();
324
328
  }
325
329
  };
326
- return (<div class={`${styles.item} card ${isExiting() ? styles.itemExiting : ''}`} id={props.inCenter ? undefined : `notification-card-${props.item.id}`} tabIndex={-1} data-severity={props.item.severity} data-expanded={props.item.expanded} data-edge={props.corner === undefined ? undefined : toastCornerEdge(props.corner)} data-has-actions={props.item.actions && props.item.actions.length > 0 ? 'true' : 'false'} data-has-timer={hasTimer() ? 'true' : 'false'} {...(props.inCenter ? notificationEntryMark : { 'aria-live': announcement() })} aria-atomic={props.inCenter ? undefined : 'true'} aria-label={t('{severity}: {title}', {
327
- severity: t(NOTIFICATION_SEVERITY_LABELS[props.item.severity]),
328
- title: props.item.title,
330
+ return (<div class={`${styles.item} card ${isExiting() ? styles.itemExiting : ''}`} id={props.inCenter ? undefined : `notification-card-${itemProp().id}`} tabIndex={-1} data-severity={itemProp().severity} data-expanded={itemProp().expanded} data-edge={props.corner === undefined ? undefined : toastCornerEdge(props.corner)} data-has-actions={props.item.actions && props.item.actions.length > 0 ? 'true' : 'false'} data-has-timer={hasTimer() ? 'true' : 'false'} {...(props.inCenter ? notificationEntryMark : { 'aria-live': announcement() })} aria-atomic={props.inCenter ? undefined : 'true'} aria-label={t('{severity}: {title}', {
331
+ severity: t(NOTIFICATION_SEVERITY_LABELS[itemProp().severity]),
332
+ title: itemProp().title,
329
333
  })} onMouseEnter={() => {
330
334
  setIsHovered(true);
331
335
  setHover(true);
@@ -340,17 +344,17 @@ export const NotificationItem = (props) => {
340
344
  setFocus(false);
341
345
  }} onContextMenu={handleContextMenu}>
342
346
  <div class={styles.mainRow}>
343
- <span class={styles.icon} data-severity={props.item.severity} aria-hidden="true">
347
+ <span class={styles.icon} data-severity={itemProp().severity} aria-hidden="true">
344
348
  <Dynamic component={severityIcon()} size={16}/>
345
349
  </span>
346
350
  <div class={`${styles.body} body`}>
347
351
  <div class={styles.titleRow}>
348
- <span class={`${styles.title} title`}>{props.item.title}</span>
352
+ <span class={`${styles.title} title`}>{itemProp().title}</span>
349
353
  <HoverTooltip content={exactTimestamp()} delayMs={400}>
350
354
  <span class={styles.timestamp}>{relativeAgo()}</span>
351
355
  </HoverTooltip>
352
356
  </div>
353
- <Show when={props.item.body}>
357
+ <Show when={itemProp().body}>
354
358
  <OverlayScrollArea rootClass={styles.subtitleCollapse} viewportClass={styles.subtitleViewport} hideHorizontal>
355
359
  <div class={styles.subtitle} tabIndex={-1} onClick={handleBodyClick} onKeyDown={(e) => {
356
360
  if (isKey(e, 'Enter'))
@@ -360,12 +364,12 @@ export const NotificationItem = (props) => {
360
364
  </Show>
361
365
  </div>
362
366
  <Panel.Toolbar class={styles.toolbar}>
363
- <Show when={props.item.body}>
364
- <Button variant="ghost" size="sm" iconOnly aria-label={props.item.expanded ? t('Collapse') : t('Expand')} title={props.item.expanded ? t('Collapse') : t('Expand')} onClick={toggleExpanded}>
367
+ <Show when={itemProp().body}>
368
+ <Button variant="ghost" size="sm" iconOnly aria-label={itemProp().expanded ? t('Collapse') : t('Expand')} title={itemProp().expanded ? t('Collapse') : t('Expand')} onClick={toggleExpanded}>
365
369
  <VpChevronDown class={`${iconScale.iconMd} ${styles.chevron}`}/>
366
370
  </Button>
367
371
  </Show>
368
- <Show when={props.shell !== null}>
372
+ <Show when={shellProp() !== null}>
369
373
  <Button variant="ghost" size="sm" iconOnly aria-label={t('More actions')} title={t('More actions')} onMouseDown={(event) => event.stopPropagation()} onClick={openGearMenu}>
370
374
  <VpGear class={iconScale.iconMd}/>
371
375
  </Button>
@@ -396,7 +400,7 @@ export const NotificationItem = (props) => {
396
400
  <div class={styles.detailsRow}>
397
401
  <Show when={props.item.actions && props.item.actions.length > 0}>
398
402
  <div class={styles.actions}>
399
- <For each={props.item.actions}>
403
+ <For each={itemProp().actions}>
400
404
  {(action) => (<Button variant={action.primary ? 'primary' : 'secondary'} size="sm" class={`${action.primary ? 'primary ' : ''}btn`} onClick={() => void runAction(action)}>
401
405
  {action.label}
402
406
  </Button>)}
@@ -408,7 +412,7 @@ export const NotificationItem = (props) => {
408
412
  props.item.source !== 'general' &&
409
413
  props.item.source !== 'undefined'}>
410
414
  <span class={styles.source}>
411
- {t('Source: {source}', { source: String(props.item.source) })}
415
+ {t('Source: {source}', { source: String(itemProp().source) })}
412
416
  </span>
413
417
  </Show>
414
418
  </div>
@@ -417,11 +421,11 @@ export const NotificationItem = (props) => {
417
421
 
418
422
  <Show when={props.item.progress && !props.item.progress.done}>
419
423
  <div class={styles.progressRow}>
420
- <Show when={typeof props.item.progress?.value === 'number'} fallback={<Progress indeterminate size="2xs" class={styles.progress} ariaLabel={t('Progress')}/>}>
421
- <Progress value={props.item.progress?.value ?? 0} max={1} size="2xs" class={styles.progress} ariaLabel={t('Progress')}/>
424
+ <Show when={typeof itemProp().progress?.value === 'number'} fallback={<Progress indeterminate size="2xs" class={styles.progress} ariaLabel={t('Progress')}/>}>
425
+ <Progress value={itemProp().progress?.value ?? 0} max={1} size="2xs" class={styles.progress} ariaLabel={t('Progress')}/>
422
426
  </Show>
423
- <Show when={props.item.progress?.onCancel}>
424
- <Button iconOnly variant="ghost" size="sm" class={styles.progressCancel} title={t('Cancel')} aria-label={t('Cancel')} onClick={() => props.item.progress?.onCancel?.()}>
427
+ <Show when={itemProp().progress?.onCancel}>
428
+ <Button iconOnly variant="ghost" size="sm" class={styles.progressCancel} title={t('Cancel')} aria-label={t('Cancel')} onClick={() => itemProp().progress?.onCancel?.()}>
425
429
  <VpTreeClose />
426
430
  </Button>
427
431
  </Show>
@@ -19,7 +19,7 @@ import { openExternalUrl } from '../_internal/app/platform/electronBridge';
19
19
  import { useKitHost } from '../host/kitHost';
20
20
  import { realmNotificationShell } from './notificationCardServices';
21
21
  import { RunningProgressCards, useRunningProgressCards, } from './RunningProgressCards';
22
- import { followNotificationListFocus, moveNotificationEntryFocus, notificationEntryMark, timelineEntryAriaLabel, } from './notificationEntryList';
22
+ import { followNotificationListFocus, moveNotificationEntryFocus, notificationEntryMark, notificationListMark, timelineEntryAriaLabel, } from './notificationEntryList';
23
23
  import { notificationSettings } from '../_internal/app/settings/descriptors/notification';
24
24
  import { useSettingsSubscription } from '../_internal/app/settings/useSettingsSubscription';
25
25
  import { useDesktopContextMenu } from '../context/DesktopContextMenuContext';
@@ -34,6 +34,7 @@ import { LogFilterBar } from '.';
34
34
  import { OverlayScrollArea } from '../overlay/OverlayScrollArea';
35
35
  import { compileNotificationSearchMatcher, filterNotificationTimeline, } from './notificationTimelineFilter';
36
36
  import { toggleInSet } from './setToggleInSet';
37
+ import { holdWhileShown } from './holdWhileShown';
37
38
  import styles from './NotificationPanel.module.css.js';
38
39
  import { useHostDocument } from '../_internal/app/windows/window/HostWindowContext';
39
40
  function formatNotificationTime(createdAt) {
@@ -68,6 +69,8 @@ const ALL_TONES = ['error', 'warning', 'info', 'success'];
68
69
  const HEADER_OVERFLOW_BASE = 189;
69
70
  const HEADER_OVERFLOW_STEP = 27;
70
71
  export function NotificationPanel(props) {
72
+ const timelineProp = createMemo(() => props.notificationTimeline);
73
+ const timelineRecords = () => timelineProp()();
71
74
  const hostDocument = useHostDocument();
72
75
  const host = useKitHost();
73
76
  const { notifications } = host;
@@ -92,7 +95,7 @@ export function NotificationPanel(props) {
92
95
  const desktopMenu = useDesktopContextMenu();
93
96
  const running = useRunningProgressCards();
94
97
  const compiledSearch = createMemo(() => compileNotificationSearchMatcher(searchQuery(), regexMode()));
95
- const filteredEntries = createMemo(() => filterNotificationTimeline(props.notificationTimeline(), {
98
+ const filteredEntries = createMemo(() => filterNotificationTimeline(timelineRecords(), {
96
99
  tones: toneSelection(),
97
100
  sources: sourceFilter(),
98
101
  priorities: priorityFilter(),
@@ -101,7 +104,7 @@ export function NotificationPanel(props) {
101
104
  }));
102
105
  const availableSources = createMemo(() => {
103
106
  const set = new Set();
104
- for (const e of props.notificationTimeline())
107
+ for (const e of timelineRecords())
105
108
  set.add(e.source);
106
109
  return Array.from(set).sort();
107
110
  });
@@ -128,7 +131,7 @@ export function NotificationPanel(props) {
128
131
  followNotificationListFocus({
129
132
  container: () => listEl,
130
133
  drawn: () => [running(), displayRows(), expandedGroupKeys()],
131
- fallback: () => panelEl.focus(),
134
+ fallback: (container) => container.focus(),
132
135
  });
133
136
  const toggleGroupExpanded = (groupId) => {
134
137
  toggleInSet(setExpandedGroupKeys, groupId);
@@ -267,7 +270,11 @@ export function NotificationPanel(props) {
267
270
  };
268
271
  onMount(() => {
269
272
  const unsubscribe = timeline.subscribeUnread(setUnreadCount);
270
- onCleanup(unsubscribe);
273
+ const stopShown = holdWhileShown(panelEl, () => notifications.stack.registerShownCenter());
274
+ onCleanup(() => {
275
+ unsubscribe();
276
+ stopShown();
277
+ });
271
278
  });
272
279
  const ackUnread = () => {
273
280
  if (unreadCount() > 0)
@@ -411,7 +418,7 @@ export function NotificationPanel(props) {
411
418
  };
412
419
  const bulkPinSelected = (pin) => {
413
420
  const sel = selectedIds();
414
- const entries = props.notificationTimeline().filter((e) => sel.has(e.id));
421
+ const entries = timelineRecords().filter((e) => sel.has(e.id));
415
422
  for (const e of entries) {
416
423
  if ((e.pinned ?? false) !== pin)
417
424
  timeline.togglePin(e.id);
@@ -554,7 +561,7 @@ export function NotificationPanel(props) {
554
561
  id: 'clear',
555
562
  icon: () => <VpTrash class={styles.notificationActionIcon}/>,
556
563
  label: () => t('Clear all notifications'),
557
- disabled: () => props.notificationTimeline().length === 0,
564
+ disabled: () => timelineRecords().length === 0,
558
565
  onSelect: clearAllNotifications,
559
566
  },
560
567
  ]);
@@ -648,9 +655,10 @@ export function NotificationPanel(props) {
648
655
  </Button>
649
656
  </Show>
650
657
  </LogFilterBar>
658
+
651
659
  <OverlayScrollArea viewportClass={styles.notificationTimeline} viewportRef={(element) => {
652
660
  listEl = element;
653
- }} data-tour-target="notifications-timeline" onKeyDown={(event) => moveNotificationEntryFocus(event, event.currentTarget)}>
661
+ }} {...notificationListMark} role="group" tabIndex={0} aria-label={t('Notifications')} data-tour-target="notifications-timeline" onKeyDown={(event) => moveNotificationEntryFocus(event, event.currentTarget)}>
654
662
  <RunningProgressCards items={running()}/>
655
663
  <Show when={filteredEntries().length > 0} fallback={<Show when={hasActiveFilter() || running().length === 0}>
656
664
  <p class={styles.notificationEmpty}>
@@ -60,9 +60,11 @@ export function NotificationsCenter(props) {
60
60
  onMount(() => {
61
61
  const unsubscribe = notifications.timeline.subscribe(setEntries);
62
62
  const filterChange = notifications.onDidChangeFilter((filter) => setFiltered(filter !== 'off'));
63
+ const shown = notifications.stack.registerShownCenter();
63
64
  onCleanup(() => {
64
65
  unsubscribe();
65
66
  filterChange.dispose();
67
+ shown.dispose();
66
68
  });
67
69
  });
68
70
  useSettingsSubscription(notificationSettings, () => {
@@ -1,4 +1,4 @@
1
- import { Show, createEffect, createSignal, on, onCleanup, onMount } from 'solid-js';
1
+ import { Show, createEffect, createMemo, createSignal, on, onCleanup, onMount } from 'solid-js';
2
2
  import { PressableSurface } from '../forms/PressableSurface';
3
3
  import { VpBell, VpBellOff } from '@vokril/icons';
4
4
  import { Popover } from '../overlay/popover/Popover';
@@ -10,10 +10,11 @@ import { hiddenRunningProgress } from './nativeEngine';
10
10
  import { t } from '../i18n/i18n';
11
11
  import styles from './StatusBarNotificationBell.module.css.js';
12
12
  export function StatusBarNotificationBell(props) {
13
+ const openProp = createMemo(() => props.open);
13
14
  const notifications = useKitHost().notifications;
14
15
  const { timeline, stack } = notifications;
15
16
  const [ownOpen, setOwnOpen] = createSignal(false);
16
- const open = () => props.open ?? ownOpen();
17
+ const open = () => openProp() ?? ownOpen();
17
18
  const [unread, setUnread] = createSignal(0);
18
19
  const [dndSetting, setDndSetting] = createSignal(notificationSettings.get().doNotDisturb);
19
20
  const [filtered, setFiltered] = createSignal(notifications.getFilter() !== 'off');
@@ -36,7 +37,7 @@ export function StatusBarNotificationBell(props) {
36
37
  const setOpen = (next) => {
37
38
  if (next === open())
38
39
  return;
39
- if (props.open === undefined)
40
+ if (openProp() === undefined)
40
41
  setOwnOpen(next);
41
42
  props.onOpenChange?.(next);
42
43
  };
@@ -37,6 +37,8 @@ function progressHandle(handle, payload) {
37
37
  }),
38
38
  state: () => handle.state(),
39
39
  onDidChangeState: handle.onDidChangeState,
40
+ visible: () => handle.visible(),
41
+ onDidChangeVisibility: handle.onDidChangeVisibility,
40
42
  };
41
43
  }
42
44
  const inert = () => undefined;
@@ -0,0 +1,30 @@
1
+ export function hasShownBox(element) {
2
+ if (!element.isConnected)
3
+ return false;
4
+ const box = element.getBoundingClientRect();
5
+ return box.width > 0 && box.height > 0;
6
+ }
7
+ export function holdWhileShown(element, hold) {
8
+ let held;
9
+ const sync = () => {
10
+ const shown = hasShownBox(element);
11
+ if (shown && held === undefined) {
12
+ held = hold();
13
+ }
14
+ else if (!shown && held !== undefined) {
15
+ const release = held;
16
+ held = undefined;
17
+ release.dispose();
18
+ }
19
+ };
20
+ const Observer = element.ownerDocument.defaultView?.ResizeObserver;
21
+ const observer = Observer === undefined ? undefined : new Observer(sync);
22
+ observer?.observe(element);
23
+ sync();
24
+ return () => {
25
+ observer?.disconnect();
26
+ const release = held;
27
+ held = undefined;
28
+ release?.dispose();
29
+ };
30
+ }
@@ -127,6 +127,28 @@ export function createNativeNotificationEngine(dependencies) {
127
127
  }
128
128
  }
129
129
  reevaluateSchedules();
130
+ reportVisibility();
131
+ }
132
+ let shownCenters = 0;
133
+ function isVisible(item) {
134
+ if (shownCenters > 0)
135
+ return true;
136
+ if (item.priority === 'acknowledgment-required') {
137
+ return snapshot().find((card) => card.priority === 'acknowledgment-required')?.id === item.id;
138
+ }
139
+ return item.outOfSightSince === undefined;
140
+ }
141
+ function reportVisibility() {
142
+ for (const [id, run] of runs) {
143
+ const item = items.get(id);
144
+ if (item === undefined)
145
+ continue;
146
+ const visible = isVisible(item);
147
+ if (run.visible === visible)
148
+ continue;
149
+ run.visible = visible;
150
+ run.visibility.fire(visible);
151
+ }
130
152
  }
131
153
  function isSticky(item) {
132
154
  if (isNotificationSticky(item, getSettings()))
@@ -149,7 +171,12 @@ export function createNativeNotificationEngine(dependencies) {
149
171
  const current = runs.get(id);
150
172
  if (current)
151
173
  return current;
152
- const run = { state: 'open', changed: new Emitter() };
174
+ const run = {
175
+ state: 'open',
176
+ changed: new Emitter(),
177
+ visible: false,
178
+ visibility: new Emitter(),
179
+ };
153
180
  runs.set(id, run);
154
181
  return run;
155
182
  }
@@ -163,8 +190,13 @@ export function createNativeNotificationEngine(dependencies) {
163
190
  function announceEnd(run) {
164
191
  if (!run)
165
192
  return;
193
+ if (run.visible) {
194
+ run.visible = false;
195
+ run.visibility.fire(false);
196
+ }
166
197
  run.changed.fire(run.state);
167
198
  run.changed.dispose();
199
+ run.visibility.dispose();
168
200
  }
169
201
  function closeCard(id, state) {
170
202
  cancelHide(id);
@@ -275,6 +307,8 @@ export function createNativeNotificationEngine(dependencies) {
275
307
  close: () => undefined,
276
308
  state: () => 'suppressed',
277
309
  onDidChangeState: () => NO_SUBSCRIPTION,
310
+ visible: () => false,
311
+ onDidChangeVisibility: () => NO_SUBSCRIPTION,
278
312
  };
279
313
  }
280
314
  const id = dedupId ?? nextId();
@@ -312,6 +346,8 @@ export function createNativeNotificationEngine(dependencies) {
312
346
  },
313
347
  state: () => run.state,
314
348
  onDidChangeState: (listener, thisArgs) => run.state === 'open' ? run.changed.event(listener, thisArgs) : NO_SUBSCRIPTION,
349
+ visible: () => run.visible,
350
+ onDidChangeVisibility: (listener, thisArgs) => run.state === 'open' ? run.visibility.event(listener, thisArgs) : NO_SUBSCRIPTION,
315
351
  };
316
352
  }
317
353
  function subscribeNotifications(listener) {
@@ -394,6 +430,20 @@ export function createNativeNotificationEngine(dependencies) {
394
430
  if (recordSight())
395
431
  emit();
396
432
  }
433
+ function registerShownCenter() {
434
+ shownCenters += 1;
435
+ reportVisibility();
436
+ let shown = true;
437
+ return {
438
+ dispose: () => {
439
+ if (!shown)
440
+ return;
441
+ shown = false;
442
+ shownCenters -= 1;
443
+ reportVisibility();
444
+ },
445
+ };
446
+ }
397
447
  function dispose() {
398
448
  for (const id of timers.keys())
399
449
  cancelHide(id);
@@ -415,6 +465,7 @@ export function createNativeNotificationEngine(dependencies) {
415
465
  suppress: suppressNotifications,
416
466
  reject: rejectNotification,
417
467
  refresh,
468
+ registerShownCenter,
418
469
  dispose,
419
470
  };
420
471
  }