@vokril/ui-solid 0.13.0 → 0.17.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 (581) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +110 -31
  3. package/dist/{AttributeGrid-Bg88JYZI.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
  4. package/dist/{AttributeGrid-BypjAajJ.js → AttributeGrid-CVyqzT7-.js} +5 -5
  5. package/dist/{Button-Db6wMY-3.js → Button-BiKPB3cH.js} +2 -2
  6. package/dist/{Button-d9jJBibg.cjs → Button-Nx7byQZc.cjs} +1 -1
  7. package/dist/CommandPalette-BFi0_e3t.cjs +2 -0
  8. package/dist/CommandPalette-CAH08DGN.js +4013 -0
  9. package/dist/{CopyButton-C93PFyYK.js → CopyButton-BF7L1TCO.js} +1 -1
  10. package/dist/{CopyButton-CXaZRU7b.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
  11. package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
  12. package/dist/{DateRangePicker-D-5rg3h1.js → DateRangePicker-jSQBwB78.js} +181 -166
  13. package/dist/GuidedTour-CWDtBRHv.js +483 -0
  14. package/dist/GuidedTour-CYaR5Ozj.cjs +1 -0
  15. package/dist/HostPortal-B9Tzk_uN.cjs +1 -0
  16. package/dist/HostPortal-X1iw719T.js +33 -0
  17. package/dist/HostWindowContext-B2m0bVra.js +32 -0
  18. package/dist/HostWindowContext-_VZCt7xE.cjs +1 -0
  19. package/dist/{IconPicker-DPT-QfsC.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
  20. package/dist/{IconPicker-C3ZwWkB1.js → IconPicker-Df6uIUpJ.js} +4 -4
  21. package/dist/{Input-Ca8fLm_s.cjs → Input-CZruORyy.cjs} +1 -1
  22. package/dist/{Input-gq8EcQao.js → Input-DkPhsdfk.js} +2 -2
  23. package/dist/Modal-CQG8l4x7.cjs +1 -0
  24. package/dist/{Modal-C4l_yuY9.js → Modal-CUPe98-o.js} +5 -5
  25. package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
  26. package/dist/{PageSkeleton-C95fXUUk.js → PageSkeleton-CUTLh9Ip.js} +630 -628
  27. package/dist/{Popover-C24npAQ7.js → Popover-Dht1jFEy.js} +1 -1
  28. package/dist/{Popover-hhGcYQ-a.cjs → Popover-YfzC0Tjh.cjs} +1 -1
  29. package/dist/{SearchableSelect-BpOD2_A-.js → SearchableSelect-C01brsF0.js} +5 -5
  30. package/dist/{SearchableSelect-MN5azo9r.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
  31. package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
  32. package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
  33. package/dist/{Stepper-BgDx1cPX.js → Stepper-38IAEOyT.js} +3 -3
  34. package/dist/{Stepper-D7rXGxdg.cjs → Stepper-CtaTpnQu.cjs} +1 -1
  35. package/dist/{Textarea-BueHsjOk.js → Textarea-B5QqqKnI.js} +1 -1
  36. package/dist/{Textarea-BltpSavs.cjs → Textarea-CeAGf08O.cjs} +1 -1
  37. package/dist/{TimeSeriesChart-C3o7NZPh.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
  38. package/dist/{TimeSeriesChart-DhYtrAgX.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
  39. package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
  40. package/dist/{ToggleButton-DCP7f6Uo.js → ToggleButton-D-N0C2Fu.js} +54 -53
  41. package/dist/_internal/app/keybindings/context/keybindingsContext.d.cts +11 -6
  42. package/dist/_internal/app/keybindings/context/keybindingsContext.d.ts +11 -6
  43. package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +4 -3
  44. package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +4 -3
  45. package/dist/_internal/app/keybindings/context/useListCommands.d.cts +6 -5
  46. package/dist/_internal/app/keybindings/context/useListCommands.d.ts +6 -5
  47. package/dist/_internal/app/keybindings/index.d.cts +0 -10
  48. package/dist/_internal/app/keybindings/index.d.ts +0 -10
  49. package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +14 -9
  50. package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +14 -9
  51. package/dist/_internal/app/menu/menuFavorites.d.cts +35 -8
  52. package/dist/_internal/app/menu/menuFavorites.d.ts +35 -8
  53. package/dist/_internal/app/onboarding/pageTourState.d.cts +75 -22
  54. package/dist/_internal/app/onboarding/pageTourState.d.ts +75 -22
  55. package/dist/_internal/app/platform/electronBridge.d.cts +35 -29
  56. package/dist/_internal/app/platform/electronBridge.d.ts +35 -29
  57. package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +8 -4
  58. package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +8 -4
  59. package/dist/_internal/app/windows/window/HostWindowContext.d.cts +8 -14
  60. package/dist/_internal/app/windows/window/HostWindowContext.d.ts +8 -14
  61. package/dist/_internal/contract/catalogNotify.d.cts +6 -19
  62. package/dist/_internal/contract/catalogNotify.d.ts +6 -19
  63. package/dist/_internal/contract/hostErrorText.d.cts +13 -23
  64. package/dist/_internal/contract/hostErrorText.d.ts +13 -23
  65. package/dist/_internal/contract/notificationCatalog.d.cts +16 -5
  66. package/dist/_internal/contract/notificationCatalog.d.ts +16 -5
  67. package/dist/_internal/platform/errors/diagnosticReport.d.cts +3 -1
  68. package/dist/_internal/platform/errors/diagnosticReport.d.ts +3 -1
  69. package/dist/_internal/platform/logging/consoleLogger.d.cts +7 -0
  70. package/dist/_internal/platform/logging/consoleLogger.d.ts +7 -0
  71. package/dist/_internal/platform/settings/registry/defineSettings.d.cts +19 -8
  72. package/dist/_internal/platform/settings/registry/defineSettings.d.ts +19 -8
  73. package/dist/_internal/platform/settings/registry/stateDbStore.d.cts +23 -15
  74. package/dist/_internal/platform/settings/registry/stateDbStore.d.ts +23 -15
  75. package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
  76. package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
  77. package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
  78. package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
  79. package/dist/a11y/index.cjs +1 -1
  80. package/dist/a11y/index.js +1 -1
  81. package/dist/actions-DtaFGwh2.cjs +1 -0
  82. package/dist/actions-wwAHs3ZU.js +16 -0
  83. package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
  84. package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
  85. package/dist/async/createGuardedListLoader.d.cts +3 -0
  86. package/dist/async/createGuardedListLoader.d.ts +3 -0
  87. package/dist/charts/index.cjs +1 -1
  88. package/dist/charts/index.js +1 -1
  89. package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
  90. package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
  91. package/dist/createResizableSidebar-CfFxQUny.js +449 -0
  92. package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
  93. package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  94. package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
  95. package/dist/defineSettings-D0CSMcyy.cjs +1 -0
  96. package/dist/defineSettings-Di1sG81q.js +407 -0
  97. package/dist/descriptor-CaHgh9N_.cjs +1 -0
  98. package/dist/{descriptor-CrCl515S.js → descriptor-eGtcBtpI.js} +5 -5
  99. package/dist/desktop/index.cjs +1 -1
  100. package/dist/desktop/index.js +500 -426
  101. package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
  102. package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
  103. package/dist/electronBridge-BK92fycw.js +235 -0
  104. package/dist/electronBridge-cT0xww92.cjs +1 -0
  105. package/dist/errorHandler-BvPGW-Nm.js +373 -0
  106. package/dist/errorHandler-DoDAPpv2.cjs +3 -0
  107. package/dist/feedback/Loader.d.cts +6 -1
  108. package/dist/feedback/Loader.d.ts +6 -1
  109. package/dist/feedback/createPreference.d.cts +4 -1
  110. package/dist/feedback/createPreference.d.ts +4 -1
  111. package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
  112. package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
  113. package/dist/feedback/index.cjs +1 -1
  114. package/dist/feedback/index.js +37 -38
  115. package/dist/feedback/readFailureText.d.cts +20 -1
  116. package/dist/feedback/readFailureText.d.ts +20 -1
  117. package/dist/focusModality-BISb6-yg.cjs +1 -0
  118. package/dist/focusModality-FoLPWF-_.js +135 -0
  119. package/dist/forms/index.cjs +1 -1
  120. package/dist/forms/index.js +9 -9
  121. package/dist/grid/index.cjs +1 -1
  122. package/dist/grid/index.js +1 -1
  123. package/dist/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  124. package/dist/{server/headerIconOverrides-B7TQUBmD.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
  125. package/dist/host/index.cjs +1 -1
  126. package/dist/host/index.d.cts +14 -16
  127. package/dist/host/index.d.ts +14 -16
  128. package/dist/host/index.js +53 -90
  129. package/dist/host/kitHost.d.cts +42 -0
  130. package/dist/host/kitHost.d.ts +42 -0
  131. package/dist/host/window.d.cts +3 -11
  132. package/dist/host/window.d.ts +3 -11
  133. package/dist/i18n/index.cjs +1 -1
  134. package/dist/i18n/index.js +1 -1
  135. package/dist/{server/i18n-D9k9xwuD.js → i18n-DW9kcu0G.js} +180 -178
  136. package/dist/i18n-DZ0JlZal.cjs +4 -0
  137. package/dist/index.cjs +1 -1
  138. package/dist/index.d.cts +1 -1
  139. package/dist/index.d.ts +1 -1
  140. package/dist/index.js +665 -738
  141. package/dist/isOneOf-9EXOSYJu.cjs +1 -0
  142. package/dist/isOneOf-Dtomuazg.js +6 -0
  143. package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
  144. package/dist/keys-GMxY2wcl.cjs +1 -0
  145. package/dist/layout/createResizableSidebar.d.cts +14 -0
  146. package/dist/layout/createResizableSidebar.d.ts +14 -0
  147. package/dist/layout/index.cjs +1 -1
  148. package/dist/layout/index.js +3 -3
  149. package/dist/layout/sidebarWidthClamp.d.cts +1 -1
  150. package/dist/layout/sidebarWidthClamp.d.ts +1 -1
  151. package/dist/mainRealmDom-C12lr9lm.js +171 -0
  152. package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
  153. package/dist/navigation/index.cjs +1 -1
  154. package/dist/navigation/index.js +1 -1
  155. package/dist/notifications/NotificationHost.d.cts +7 -1
  156. package/dist/notifications/NotificationHost.d.ts +7 -1
  157. package/dist/notifications/NotificationItem.d.cts +48 -15
  158. package/dist/notifications/NotificationItem.d.ts +48 -15
  159. package/dist/notifications/catalogAdapter.d.cts +28 -6
  160. package/dist/notifications/catalogAdapter.d.ts +28 -6
  161. package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
  162. package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
  163. package/dist/notifications/customSoundCache.d.cts +24 -24
  164. package/dist/notifications/customSoundCache.d.ts +24 -24
  165. package/dist/notifications/emailDigest.d.cts +34 -16
  166. package/dist/notifications/emailDigest.d.ts +34 -16
  167. package/dist/notifications/errorActionButtons.d.cts +18 -1
  168. package/dist/notifications/errorActionButtons.d.ts +18 -1
  169. package/dist/notifications/fireNotification.d.cts +27 -17
  170. package/dist/notifications/fireNotification.d.ts +27 -17
  171. package/dist/notifications/index.cjs +1 -1
  172. package/dist/notifications/index.d.cts +6 -12
  173. package/dist/notifications/index.d.ts +6 -12
  174. package/dist/notifications/index.js +64 -104
  175. package/dist/notifications/nativeEngine.d.cts +18 -15
  176. package/dist/notifications/nativeEngine.d.ts +18 -15
  177. package/dist/notifications/notificationAnalytics.d.cts +11 -6
  178. package/dist/notifications/notificationAnalytics.d.ts +11 -6
  179. package/dist/notifications/notificationAudio.d.cts +30 -23
  180. package/dist/notifications/notificationAudio.d.ts +30 -23
  181. package/dist/notifications/notificationCardServices.d.cts +23 -0
  182. package/dist/notifications/notificationCardServices.d.ts +23 -0
  183. package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
  184. package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
  185. package/dist/notifications/notificationOverlaySync.d.cts +7 -2
  186. package/dist/notifications/notificationOverlaySync.d.ts +7 -2
  187. package/dist/notifications/notificationService.d.cts +101 -0
  188. package/dist/notifications/notificationService.d.ts +101 -0
  189. package/dist/notifications/notificationTimeline.d.cts +47 -49
  190. package/dist/notifications/notificationTimeline.d.ts +47 -49
  191. package/dist/notifications/notifications.notifications.d.cts +0 -4
  192. package/dist/notifications/notifications.notifications.d.ts +0 -4
  193. package/dist/notifications/toast.d.cts +24 -28
  194. package/dist/notifications/toast.d.ts +24 -28
  195. package/dist/notifications/webhookDelivery.d.cts +12 -17
  196. package/dist/notifications/webhookDelivery.d.ts +12 -17
  197. package/dist/overlay/ConfirmDialog.d.cts +0 -8
  198. package/dist/overlay/ConfirmDialog.d.ts +0 -8
  199. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
  200. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
  201. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
  202. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
  203. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
  204. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
  205. package/dist/overlay/index.cjs +1 -1
  206. package/dist/overlay/index.d.cts +2 -3
  207. package/dist/overlay/index.d.ts +2 -3
  208. package/dist/overlay/index.js +110 -115
  209. package/dist/pageTourState-BcBF8w89.js +516 -0
  210. package/dist/pageTourState-CrbEU7QW.cjs +5 -0
  211. package/dist/server/{AttributeGrid-UJtHTip2.js → AttributeGrid-B2s_rp00.js} +3 -3
  212. package/dist/server/{AttributeGrid-CyMsR4GC.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
  213. package/dist/server/{Button-BesBg6eW.js → Button-Ck03cbUs.js} +1 -1
  214. package/dist/server/{Button-PZulLru4.cjs → Button-DWFMF5y0.cjs} +1 -1
  215. package/dist/server/CommandPalette-2UppyMxU.js +3271 -0
  216. package/dist/server/CommandPalette-DwpZyhO6.cjs +1 -0
  217. package/dist/server/{CopyButton-D_sN2Ggp.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
  218. package/dist/server/{CopyButton-I5xsXV07.js → CopyButton-UvtFwOtA.js} +1 -1
  219. package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
  220. package/dist/server/{DateRangePicker-DGUl2aE3.js → DateRangePicker-Cr58DczM.js} +158 -143
  221. package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
  222. package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
  223. package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
  224. package/dist/server/HostPortal-X1iw719T.js +33 -0
  225. package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
  226. package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
  227. package/dist/server/{IconPicker-BlD0VBca.cjs → IconPicker-9DfOxql6.cjs} +1 -1
  228. package/dist/server/{IconPicker-o8hUxjYU.js → IconPicker-N0wub1Aj.js} +4 -4
  229. package/dist/server/Modal-D__GTo-n.cjs +1 -0
  230. package/dist/server/{Modal-DmF6CwfY.js → Modal-DeQjfpkG.js} +3 -3
  231. package/dist/server/{PageSkeleton-BigztY5i.js → PageSkeleton-C41pXOcr.js} +460 -458
  232. package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
  233. package/dist/server/{SearchableSelect-Dn-cssWx.js → SearchableSelect-CEcuBnge.js} +2 -2
  234. package/dist/server/{SearchableSelect-R0Dwz9rz.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
  235. package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
  236. package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
  237. package/dist/server/{Stepper-dBm8YaCw.cjs → Stepper--pusyxso.cjs} +1 -1
  238. package/dist/server/{Stepper-BaQ6Kexj.js → Stepper-B_eL85hK.js} +1 -1
  239. package/dist/server/{TimeSeriesChart-BbbfDyeA.js → TimeSeriesChart-aSHquoBv.js} +1 -1
  240. package/dist/server/{TimeSeriesChart-qPgMkkaW.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
  241. package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
  242. package/dist/server/{ToggleButton-C0_QpslP.js → ToggleButton-DjlWwgLJ.js} +4 -4
  243. package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
  244. package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
  245. package/dist/server/a11y/index.cjs +1 -1
  246. package/dist/server/a11y/index.js +1 -1
  247. package/dist/server/actions-DtaFGwh2.cjs +1 -0
  248. package/dist/server/actions-wwAHs3ZU.js +16 -0
  249. package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
  250. package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
  251. package/dist/server/charts/index.cjs +1 -1
  252. package/dist/server/charts/index.js +1 -1
  253. package/dist/server/{format-CYCi8g4r.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
  254. package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
  255. package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
  256. package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
  257. package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  258. package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
  259. package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
  260. package/dist/server/defineSettings-Di1sG81q.js +407 -0
  261. package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
  262. package/dist/server/{descriptor-DtZDXBe6.js → descriptor-GLoKPx6x.js} +4 -4
  263. package/dist/server/desktop/index.cjs +1 -1
  264. package/dist/server/desktop/index.js +389 -315
  265. package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
  266. package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
  267. package/dist/server/electronBridge-BK92fycw.js +235 -0
  268. package/dist/server/electronBridge-cT0xww92.cjs +1 -0
  269. package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
  270. package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
  271. package/dist/server/feedback/index.cjs +1 -1
  272. package/dist/server/feedback/index.js +37 -38
  273. package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
  274. package/dist/server/{focusModality-BCX5GH0P.js → focusModality-nWNVX3JG.js} +41 -41
  275. package/dist/server/forms/index.cjs +1 -1
  276. package/dist/server/forms/index.js +7 -7
  277. package/dist/server/grid/index.cjs +1 -1
  278. package/dist/server/grid/index.js +1 -1
  279. package/dist/server/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  280. package/dist/{headerIconOverrides-B7TQUBmD.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
  281. package/dist/server/host/index.cjs +1 -1
  282. package/dist/server/host/index.js +53 -90
  283. package/dist/server/i18n/index.cjs +1 -1
  284. package/dist/server/i18n/index.js +1 -1
  285. package/dist/{i18n-D9k9xwuD.js → server/i18n-DW9kcu0G.js} +180 -178
  286. package/dist/server/i18n-DZ0JlZal.cjs +4 -0
  287. package/dist/server/{index-B4epvfiq.js → index-BNYr6EIW.js} +89 -90
  288. package/dist/server/index-Cqod09d_.cjs +1 -0
  289. package/dist/server/index.cjs +1 -1
  290. package/dist/server/index.js +810 -883
  291. package/dist/server/layout/index.cjs +1 -1
  292. package/dist/server/layout/index.js +3 -3
  293. package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
  294. package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
  295. package/dist/server/navigation/index.cjs +1 -1
  296. package/dist/server/navigation/index.js +1 -1
  297. package/dist/server/notifications/index.cjs +1 -1
  298. package/dist/server/notifications/index.js +63 -103
  299. package/dist/server/overlay/index.cjs +1 -1
  300. package/dist/server/overlay/index.js +104 -109
  301. package/dist/server/pageTourState-BcBF8w89.js +516 -0
  302. package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
  303. package/dist/server/settings/index.cjs +1 -1
  304. package/dist/server/settings/index.js +23 -24
  305. package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
  306. package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
  307. package/dist/server/tokens/index.cjs +1 -1
  308. package/dist/server/tokens/index.js +19 -20
  309. package/dist/server/tree/index.cjs +1 -1
  310. package/dist/server/tree/index.js +1 -1
  311. package/dist/server/useListCommands-BO_XrRHj.js +38 -0
  312. package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
  313. package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  314. package/dist/server/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  315. package/dist/server/window-CUK6x8Pj.js +36 -0
  316. package/dist/server/window-_BfSgFGO.cjs +1 -0
  317. package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
  318. package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
  319. package/dist/settings/index.cjs +1 -1
  320. package/dist/settings/index.d.cts +1 -1
  321. package/dist/settings/index.d.ts +1 -1
  322. package/dist/settings/index.js +23 -24
  323. package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
  324. package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
  325. package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
  326. package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
  327. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
  328. package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
  329. package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
  330. package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +0 -10
  331. package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
  332. package/dist/solid/_internal/contract/catalogNotify.js +1 -24
  333. package/dist/solid/_internal/contract/hostErrorText.js +1 -14
  334. package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
  335. package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
  336. package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
  337. package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
  338. package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
  339. package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
  340. package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
  341. package/dist/solid/a11y/AriaAnnouncer.jsx +2 -3
  342. package/dist/solid/async/createGuardedListLoader.js +1 -1
  343. package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
  344. package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
  345. package/dist/solid/feedback/Loader.jsx +1 -2
  346. package/dist/solid/feedback/createPreference.js +3 -2
  347. package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
  348. package/dist/solid/feedback/preference.notifications.js +1 -2
  349. package/dist/solid/feedback/readFailureText.js +1 -2
  350. package/dist/solid/host/index.js +8 -16
  351. package/dist/solid/host/window.js +15 -22
  352. package/dist/solid/i18n/i18n.js +5 -6
  353. package/dist/solid/index.js +0 -1
  354. package/dist/solid/layout/createResizableSidebar.js +15 -23
  355. package/dist/solid/notifications/NotificationHost.jsx +21 -29
  356. package/dist/solid/notifications/NotificationItem.jsx +28 -104
  357. package/dist/solid/notifications/NotificationPanel.jsx +33 -44
  358. package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
  359. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  360. package/dist/solid/notifications/catalogAdapter.js +61 -62
  361. package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
  362. package/dist/solid/notifications/customSoundCache.js +26 -21
  363. package/dist/solid/notifications/emailDigest.js +74 -86
  364. package/dist/solid/notifications/errorActionButtons.js +6 -11
  365. package/dist/solid/notifications/fireNotification.js +14 -19
  366. package/dist/solid/notifications/index.js +3 -12
  367. package/dist/solid/notifications/nativeEngine.js +6 -19
  368. package/dist/solid/notifications/notificationAnalytics.js +32 -38
  369. package/dist/solid/notifications/notificationAudio.js +77 -74
  370. package/dist/solid/notifications/notificationCardServices.js +34 -0
  371. package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
  372. package/dist/solid/notifications/notificationOverlaySync.js +18 -23
  373. package/dist/solid/notifications/notificationService.js +135 -0
  374. package/dist/solid/notifications/notificationTimeline.js +117 -124
  375. package/dist/solid/notifications/notifications.notifications.js +3 -22
  376. package/dist/solid/notifications/toast.js +168 -213
  377. package/dist/solid/notifications/webhookDelivery.js +27 -53
  378. package/dist/solid/overlay/ConfirmDialog.jsx +1 -33
  379. package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
  380. package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
  381. package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
  382. package/dist/solid/overlay/index.js +0 -3
  383. package/dist/solid/settings/index.js +1 -1
  384. package/dist/solid/tokens/index.js +1 -1
  385. package/dist/solid/tokens/palette/themeRegistry.js +20 -22
  386. package/dist/stateDbStore-CThsVch-.cjs +1 -0
  387. package/dist/stateDbStore-DHZFUIEt.js +57 -0
  388. package/dist/style.css +1 -1
  389. package/dist/tokens/index.cjs +1 -1
  390. package/dist/tokens/index.d.cts +1 -1
  391. package/dist/tokens/index.d.ts +1 -1
  392. package/dist/tokens/index.js +19 -20
  393. package/dist/tokens/palette/themeRegistry.d.cts +17 -22
  394. package/dist/tokens/palette/themeRegistry.d.ts +17 -22
  395. package/dist/{tooltipCoordinator-Zim5pWzk.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
  396. package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
  397. package/dist/tree/index.cjs +1 -1
  398. package/dist/tree/index.js +1 -1
  399. package/dist/ui.css +1 -1
  400. package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
  401. package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
  402. package/dist/useListCommands-BO_XrRHj.js +38 -0
  403. package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
  404. package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  405. package/dist/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  406. package/dist/window-CUK6x8Pj.js +36 -0
  407. package/dist/window-_BfSgFGO.cjs +1 -0
  408. package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
  409. package/dist/windowRegistry-DeGmXt6W.js +20 -0
  410. package/package.json +1 -1
  411. package/dist/CommandPalette-DeEImZ8D.cjs +0 -2
  412. package/dist/CommandPalette-yqvM9AuU.js +0 -3897
  413. package/dist/DateRangePicker-7t4JKCp1.cjs +0 -9
  414. package/dist/GuidedTour-C_Lxe1t_.cjs +0 -21
  415. package/dist/GuidedTour-lsljVkPL.js +0 -11216
  416. package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
  417. package/dist/HostWindowContext-KL4U1qUv.js +0 -40
  418. package/dist/Modal-CJhd27dM.cjs +0 -1
  419. package/dist/PageSkeleton-SYSL4Adl.cjs +0 -30
  420. package/dist/Progress-B5YmNeyU.js +0 -56
  421. package/dist/Progress-BNy0wsJl.cjs +0 -1
  422. package/dist/StatusBarNotificationBell-B1bvE_SO.js +0 -2140
  423. package/dist/StatusBarNotificationBell-Cqo6cZbO.cjs +0 -4
  424. package/dist/ToggleButton-BmwDfsn4.cjs +0 -1
  425. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
  426. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
  427. package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
  428. package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
  429. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
  430. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
  431. package/dist/_internal/base/listenerDispatch.d.cts +0 -14
  432. package/dist/_internal/base/listenerDispatch.d.ts +0 -14
  433. package/dist/_internal/contract/appName.d.cts +0 -10
  434. package/dist/_internal/contract/appName.d.ts +0 -10
  435. package/dist/_internal/contract/hostText.d.cts +0 -25
  436. package/dist/_internal/contract/hostText.d.ts +0 -25
  437. package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
  438. package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
  439. package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
  440. package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
  441. package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
  442. package/dist/catalogNotify-BcY9oqVy.js +0 -1223
  443. package/dist/catalogNotify-DacJjC-p.cjs +0 -27
  444. package/dist/createResizableSidebar-BIhyo5zN.cjs +0 -1
  445. package/dist/createResizableSidebar-Cqv-1IXG.js +0 -461
  446. package/dist/defineSettings-CcYXt2Jf.js +0 -391
  447. package/dist/defineSettings-yHQdUwxI.cjs +0 -1
  448. package/dist/descriptor-Dmch-3AF.cjs +0 -1
  449. package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
  450. package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
  451. package/dist/displayOwner-eYQHHvjt.cjs +0 -1
  452. package/dist/displayOwner-mT80Oyi-.js +0 -75
  453. package/dist/feedback/preference.notifications.samples.d.cts +0 -1
  454. package/dist/feedback/preference.notifications.samples.d.ts +0 -1
  455. package/dist/focusModality-BNjYldd9.cjs +0 -1
  456. package/dist/focusModality-DxudpWPs.js +0 -135
  457. package/dist/format-BS7oDguE.js +0 -298
  458. package/dist/format-CuANkXXB.cjs +0 -1
  459. package/dist/i18n-DXXArz-m.cjs +0 -4
  460. package/dist/keys-BeeC5_RZ.cjs +0 -1
  461. package/dist/mainRealmDom-CkoRyNhZ.cjs +0 -1
  462. package/dist/mainRealmDom-kEStLHIY.js +0 -102
  463. package/dist/menuFavorites-BmdM_qV5.js +0 -69
  464. package/dist/menuFavorites-DoDFvtlQ.cjs +0 -1
  465. package/dist/notification-DygvQB_o.cjs +0 -1
  466. package/dist/notificationSuppressions-DGfo2QKG.cjs +0 -1
  467. package/dist/notificationSuppressions-ddyK85cB.js +0 -430
  468. package/dist/notifications/copyToClipboard.d.cts +0 -6
  469. package/dist/notifications/copyToClipboard.d.ts +0 -6
  470. package/dist/notifications/createCopyFlash.d.cts +0 -17
  471. package/dist/notifications/createCopyFlash.d.ts +0 -17
  472. package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
  473. package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
  474. package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
  475. package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
  476. package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
  477. package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
  478. package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
  479. package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
  480. package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
  481. package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
  482. package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
  483. package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
  484. package/dist/overlay/ToastHost.d.cts +0 -7
  485. package/dist/overlay/ToastHost.d.ts +0 -7
  486. package/dist/pageTourState-CIr8ockR.js +0 -92
  487. package/dist/pageTourState-D8Uapyft.cjs +0 -1
  488. package/dist/preferencesCache-Bow6TxP1.js +0 -65
  489. package/dist/preferencesCache-D7mm43_n.cjs +0 -1
  490. package/dist/rendererLogging-Dt5FZ8mq.cjs +0 -7
  491. package/dist/rendererLogging-gAhiHWkA.js +0 -822
  492. package/dist/server/CommandPalette-C8treS8g.cjs +0 -1
  493. package/dist/server/CommandPalette-Dslsq5Ez.js +0 -3155
  494. package/dist/server/DateRangePicker-CDKi9BAf.cjs +0 -9
  495. package/dist/server/GuidedTour-B3T9rAPX.cjs +0 -20
  496. package/dist/server/GuidedTour-DSoSZZby.js +0 -10983
  497. package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
  498. package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
  499. package/dist/server/Modal-CCUwQYso.cjs +0 -1
  500. package/dist/server/PageSkeleton-DdpXfZoC.cjs +0 -30
  501. package/dist/server/Progress-CRbj6nEy.cjs +0 -1
  502. package/dist/server/Progress-nsDy6clG.js +0 -41
  503. package/dist/server/StatusBarNotificationBell-C64Odn2C.js +0 -1974
  504. package/dist/server/StatusBarNotificationBell-DY0Q27su.cjs +0 -4
  505. package/dist/server/ToggleButton-1bNYk35x.cjs +0 -1
  506. package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
  507. package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
  508. package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
  509. package/dist/server/VpTrash-DVBfts9_.js +0 -116
  510. package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
  511. package/dist/server/catalogNotify-MCW2sa2e.cjs +0 -27
  512. package/dist/server/catalogNotify-s3YymAe8.js +0 -1261
  513. package/dist/server/createResizableSidebar-MIzUlfdd.js +0 -299
  514. package/dist/server/createResizableSidebar-TdxLuiY8.cjs +0 -1
  515. package/dist/server/defineSettings-CcYXt2Jf.js +0 -391
  516. package/dist/server/defineSettings-yHQdUwxI.cjs +0 -1
  517. package/dist/server/descriptor-DAyyoF-I.cjs +0 -1
  518. package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
  519. package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
  520. package/dist/server/displayOwner-eYQHHvjt.cjs +0 -1
  521. package/dist/server/displayOwner-mT80Oyi-.js +0 -75
  522. package/dist/server/focusModality-BKgJWRlC.cjs +0 -1
  523. package/dist/server/format-WfZycMBL.cjs +0 -1
  524. package/dist/server/i18n-DXXArz-m.cjs +0 -4
  525. package/dist/server/index-DlQYWckZ.cjs +0 -1
  526. package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
  527. package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
  528. package/dist/server/menuFavorites-BmdM_qV5.js +0 -69
  529. package/dist/server/menuFavorites-DoDFvtlQ.cjs +0 -1
  530. package/dist/server/notification-DygvQB_o.cjs +0 -1
  531. package/dist/server/notificationSuppressions-B-LKq9ZU.js +0 -391
  532. package/dist/server/notificationSuppressions-Dcc2WFBZ.cjs +0 -1
  533. package/dist/server/pageTourState-CIr8ockR.js +0 -92
  534. package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
  535. package/dist/server/preferencesCache-Bow6TxP1.js +0 -65
  536. package/dist/server/preferencesCache-D7mm43_n.cjs +0 -1
  537. package/dist/server/rendererLogging-Dt5FZ8mq.cjs +0 -7
  538. package/dist/server/rendererLogging-gAhiHWkA.js +0 -822
  539. package/dist/server/settingsSearchContributor-CRZsl2Q_.js +0 -199
  540. package/dist/server/settingsSearchContributor-DH8UFpp2.cjs +0 -1
  541. package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
  542. package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
  543. package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
  544. package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
  545. package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
  546. package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  547. package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  548. package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  549. package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
  550. package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
  551. package/dist/settingsSearchContributor-DWP5dwn3.js +0 -199
  552. package/dist/settingsSearchContributor-Dltbs1j_.cjs +0 -1
  553. package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
  554. package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
  555. package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
  556. package/dist/solid/_internal/base/listenerDispatch.js +0 -12
  557. package/dist/solid/_internal/contract/appName.js +0 -7
  558. package/dist/solid/_internal/contract/hostText.js +0 -15
  559. package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
  560. package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
  561. package/dist/solid/feedback/preference.notifications.samples.js +0 -5
  562. package/dist/solid/notifications/copyToClipboard.js +0 -21
  563. package/dist/solid/notifications/createCopyFlash.js +0 -26
  564. package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
  565. package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
  566. package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
  567. package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
  568. package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
  569. package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
  570. package/dist/solid/overlay/ToastHost.jsx +0 -1
  571. package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
  572. package/dist/stateDbStore-THFfFGa0.cjs +0 -1
  573. package/dist/tooltipCoordinator-Causlcgt.cjs +0 -1
  574. package/dist/useListCommands-Bf7aOTXZ.js +0 -61
  575. package/dist/useListCommands-ucngC3t4.cjs +0 -1
  576. package/dist/useSettingsSubscription-cu943hND.js +0 -11
  577. package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  578. package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  579. package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  580. package/dist/windowRegistry-Bk5lXIVd.js +0 -62
  581. package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
@@ -1,391 +0,0 @@
1
- import { s as B } from "./stateDbStore-Ds3zJ4cd.js";
2
- import { g as q } from "./rendererLogging-gAhiHWkA.js";
3
- import { B as P } from "./bugIndicatingError-h3J5qkL6.js";
4
- function R(e, t) {
5
- switch (e.kind) {
6
- case "bool":
7
- return typeof t == "boolean" ? t : e.default;
8
- case "enum":
9
- return e.values.includes(t) ? t : e.default;
10
- case "int":
11
- return typeof t == "number" && Number.isFinite(t) ? Math.round(Math.max(e.min, Math.min(e.max, t))) : e.default;
12
- case "string": {
13
- if (e.secret) return e.default;
14
- if (typeof t == "string") {
15
- const s = e.trim ? t.trim() : t;
16
- if (!e.trim || s.length > 0) return s;
17
- }
18
- return e.default;
19
- }
20
- case "custom":
21
- return e.normalize(t, e.default);
22
- }
23
- }
24
- function U(e) {
25
- const t = e, s = {};
26
- for (const c of Object.keys(t)) s[c] = t[c].default;
27
- return s;
28
- }
29
- function I(e) {
30
- const t = e, s = Object.keys(t);
31
- return (c) => {
32
- const l = typeof c == "object" && c !== null ? c : {}, o = {};
33
- for (const i of s) o[i] = R(t[i], l[i]);
34
- return o;
35
- };
36
- }
37
- function Q(e) {
38
- const t = e, s = Object.keys(t);
39
- return (c) => {
40
- const l = typeof c == "object" && c !== null ? c : {}, o = {};
41
- for (const i of s)
42
- i in l && (o[i] = R(t[i], l[i]));
43
- return o;
44
- };
45
- }
46
- function X(e, t) {
47
- const s = {
48
- ...t.application
49
- }, c = t.profile, l = t.connection, o = t.workspace;
50
- for (const i of e) {
51
- const v = o == null ? void 0 : o[i];
52
- if (v !== void 0) {
53
- s[i] = v;
54
- continue;
55
- }
56
- const b = l == null ? void 0 : l[i];
57
- if (b !== void 0) {
58
- s[i] = b;
59
- continue;
60
- }
61
- const g = c == null ? void 0 : c[i];
62
- g !== void 0 && (s[i] = g);
63
- }
64
- return s;
65
- }
66
- function Z(e, t, s = () => e) {
67
- let c = null;
68
- const l = {};
69
- let o = !1;
70
- const i = Symbol("layeredValue.unset");
71
- let v = i;
72
- const b = (d, k) => {
73
- const O = d ?? s();
74
- return Object.values(k).every((w) => w === void 0) || !t ? O : X(t, {
75
- application: O,
76
- profile: k.profile,
77
- connection: k.connection,
78
- workspace: k.workspace
79
- });
80
- }, g = () => (v !== i || (v = b(c, l)), v), m = () => {
81
- v = i;
82
- };
83
- return {
84
- resolve: g,
85
- invalidate: m,
86
- isResolved: () => v !== i,
87
- isEstablished: () => o,
88
- preview: (d, k) => {
89
- const O = d === "application" ? k : c, w = d === "application" ? l : { ...l, [d]: k };
90
- return b(O, w);
91
- },
92
- application: () => c,
93
- override: (d) => d === "application" ? {} : l[d] ?? {},
94
- commit: (d, k) => {
95
- d === "application" ? c = k : l[d] = k, m(), o = !0;
96
- },
97
- deleteOverride: (d) => d === "application" || l[d] === void 0 ? !1 : (delete l[d], m(), !0),
98
- snapshot: () => ({
99
- application: c,
100
- overrides: { ...l }
101
- // spread omits deleted (absent) layers — exactOptionalPropertyTypes safe
102
- }),
103
- restore: (d) => {
104
- c = d.application, delete l.profile, delete l.workspace, d.overrides.profile !== void 0 && (l.profile = d.overrides.profile), d.overrides.workspace !== void 0 && (l.workspace = d.overrides.workspace), m();
105
- },
106
- reset: () => {
107
- c = null, delete l.profile, delete l.workspace, o = !1, m();
108
- },
109
- resetApplication: () => {
110
- c = null, o = l.profile !== void 0 || l.workspace !== void 0, m();
111
- }
112
- };
113
- }
114
- const E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Set();
115
- function K(e) {
116
- const t = e.indexOf(".");
117
- return t === -1 ? { group: e, field: void 0 } : { group: e.slice(0, t), field: e.slice(t + 1) };
118
- }
119
- function V(...e) {
120
- const t = /* @__PURE__ */ new Set();
121
- for (const s of e)
122
- if (s)
123
- for (const c of Object.keys(s)) t.add(K(c).group);
124
- return t;
125
- }
126
- function J(e) {
127
- if (e.size !== 0)
128
- for (const t of C) t(e);
129
- }
130
- function ve(e, t) {
131
- const s = E.get(e);
132
- t && Object.keys(t).length > 0 ? E.set(e, t) : E.delete(e), J(V(s, t));
133
- }
134
- function ge(e) {
135
- const t = E.get(e);
136
- t && (E.delete(e), J(V(t)));
137
- }
138
- function ee(e) {
139
- let t;
140
- for (const s of E.values())
141
- for (const [c, l] of Object.entries(s)) {
142
- const { group: o, field: i } = K(c);
143
- o === e && (t ?? (t = {}), t[i ?? ""] = l);
144
- }
145
- return t;
146
- }
147
- function te(e) {
148
- return C.add(e), () => {
149
- C.delete(e);
150
- };
151
- }
152
- function me() {
153
- E.clear();
154
- }
155
- const z = {
156
- application: 0,
157
- profile: 1,
158
- connection: 2,
159
- workspace: 3
160
- };
161
- function ye(e, t) {
162
- return z[t] <= z[e];
163
- }
164
- function he(e) {
165
- e.reset();
166
- }
167
- const T = [], N = /* @__PURE__ */ new Map();
168
- let _ = !1;
169
- function be() {
170
- _ = !0;
171
- for (const e of T) e.hydrate();
172
- }
173
- function ke() {
174
- return T;
175
- }
176
- function we(e) {
177
- return N.get(e);
178
- }
179
- const M = /* @__PURE__ */ new Set();
180
- function Oe(e) {
181
- return M.add(e), () => {
182
- M.delete(e);
183
- };
184
- }
185
- function ne(e, t) {
186
- for (const s of M) s({ key: e, value: t });
187
- }
188
- function H(e) {
189
- const {
190
- key: t,
191
- changeEvent: s,
192
- scope: c,
193
- store: l,
194
- applyRuntime: o,
195
- defaultValue: i,
196
- normalize: v,
197
- normalizePartial: b,
198
- fieldKeys: g,
199
- uiSchema: m,
200
- secretKeys: r,
201
- protectedDefaultFields: p
202
- } = e;
203
- Object.freeze(i);
204
- const x = (n, u) => {
205
- q(`Settings.${t}`).error(n, u);
206
- }, j = () => {
207
- if (p === "*") return i;
208
- const n = ee(t);
209
- if (!n) return i;
210
- if (!(i !== null && typeof i == "object" && !Array.isArray(i)))
211
- return "" in n ? n[""] : i;
212
- const f = p, y = {};
213
- for (const [h, A] of Object.entries(n))
214
- h !== "" && !(f && f.includes(h)) && (y[h] = A);
215
- return Object.keys(y).length === 0 ? i : { ...i, ...y };
216
- }, a = Z(i, g, j), S = (n) => {
217
- typeof window < "u" && window.dispatchEvent(new CustomEvent(s, { detail: n })), ne(t, n);
218
- }, D = (n, u) => JSON.stringify(n) === JSON.stringify(u), d = (n, u) => JSON.stringify(n) === JSON.stringify(u);
219
- te((n) => {
220
- if (!n.has(t)) return;
221
- const u = a.isResolved(), f = u ? a.resolve() : void 0;
222
- a.invalidate();
223
- const y = a.resolve();
224
- u && D(f, y) || (o == null || o(y), S(y));
225
- });
226
- const k = () => {
227
- const n = a.resolve();
228
- return n !== null && typeof n == "object" ? structuredClone(n) : n;
229
- }, O = () => a.resolve(), w = (n) => {
230
- if (z[n] > z[c])
231
- throw new P(
232
- `[settings] "${t}" is ${c}-scoped — cannot target deeper scope "${n}"`
233
- );
234
- if (n !== "application" && !b)
235
- throw new P(
236
- `[settings] "${t}" is a whole-value group — only the 'application' scope is writable`
237
- );
238
- }, W = async (n, u) => {
239
- try {
240
- await l.write(n, u);
241
- } catch (f) {
242
- throw x(`${t} persist failed`, f), f;
243
- }
244
- }, L = async (n, u) => {
245
- const f = a.snapshot(), y = a.resolve(), h = a.preview(n, u), A = n === "application" ? a.application() : a.override(n);
246
- if (a.isEstablished() && D(y, h) && d(A, u))
247
- return h;
248
- a.commit(n, u), o == null || o(h), S(h);
249
- try {
250
- await W(u, n);
251
- } catch (Y) {
252
- a.restore(f);
253
- const $ = a.resolve();
254
- throw o == null || o($), S($), Y;
255
- }
256
- return h;
257
- }, G = {
258
- key: t,
259
- changeEvent: s,
260
- scope: c,
261
- default: i,
262
- get: k,
263
- peek: O,
264
- update: async (n, u) => {
265
- const f = (u == null ? void 0 : u.target) ?? "application";
266
- if (w(f), f === "application") {
267
- const h = a.application() ?? j(), A = h !== null && typeof h == "object" ? { ...h, ...n } : n;
268
- return L("application", v(A));
269
- }
270
- const y = { ...a.override(f), ...n };
271
- return L(f, b(y));
272
- },
273
- replace: async (n) => L("application", v(n)),
274
- normalize: v,
275
- overrideAt: (n) => (w(n), n === "application" ? {} : { ...a.override(n) }),
276
- clearOverrideField: async (n, u) => {
277
- if (w(n), n === "application")
278
- throw new P(
279
- `${t}: "application" is the baseline, not an override layer — nothing to clear`
280
- );
281
- const f = a.override(n);
282
- if (!(u in f)) return a.resolve();
283
- const y = { ...f };
284
- return delete y[u], L(n, b(y));
285
- },
286
- hydrate: (n = "application") => {
287
- if (w(n), n === "application") {
288
- const f = l.read("application");
289
- f != null ? a.commit("application", v(f)) : a.resetApplication();
290
- } else
291
- a.commit(n, b(l.read(n)));
292
- const u = a.resolve();
293
- return o == null || o(u), u;
294
- },
295
- applyFromBroadcast: (n, u = "application") => {
296
- w(u);
297
- const f = a.resolve(), y = u === "application" ? v(n) : b(n), h = a.preview(u, y);
298
- a.isEstablished() && D(f, h) || (a.commit(u, y), o == null || o(h), S(h));
299
- },
300
- dropScopeLayer: (n) => {
301
- const u = a.resolve();
302
- if (!a.deleteOverride(n)) return;
303
- const f = a.resolve();
304
- D(u, f) || (o == null || o(f), S(f));
305
- },
306
- reset: () => a.reset(),
307
- ...m ? { uiSchema: m } : {},
308
- ...r && r.length > 0 ? { secretKeys: r } : {},
309
- ...g ? { fieldKeys: g } : {}
310
- };
311
- if (N.has(t))
312
- throw new P(
313
- `[settings] Duplicate settings descriptor key: "${t}"`
314
- );
315
- const F = G;
316
- return T.push(F), N.set(t, F), _ && F.hydrate(), G;
317
- }
318
- function Ee(e) {
319
- const t = e.fields, s = Object.keys(t), c = U(e.fields), l = I(e.fields), o = Q(e.fields), i = s.filter((g) => {
320
- const m = t[g];
321
- return m.kind === "string" && m.secret === !0;
322
- }), v = e.disallowPluginDefaults ? "*" : (() => {
323
- const g = s.filter(
324
- (m) => t[m].disallowPluginDefault === !0
325
- );
326
- return g.length > 0 ? g : void 0;
327
- })(), b = (() => {
328
- const g = [];
329
- for (const m of s) {
330
- const r = t[m];
331
- if (!r.label) continue;
332
- const p = {
333
- key: m,
334
- kind: r.kind,
335
- label: r.label
336
- };
337
- r.description !== void 0 && (p.description = r.description), r.helpText !== void 0 && (p.helpText = r.helpText), r.control !== void 0 && (p.control = r.control), r.kind === "enum" ? p.enumValues = r.values : r.enumValues !== void 0 && (p.enumValues = r.enumValues), r.enumLabels !== void 0 && (p.enumLabels = r.enumLabels), r.mono !== void 0 && (p.mono = r.mono);
338
- const x = r.uiMin ?? (r.kind === "int" ? r.min : void 0);
339
- x !== void 0 && (p.min = x);
340
- const j = r.uiMax ?? (r.kind === "int" ? r.max : void 0);
341
- j !== void 0 && (p.max = j), r.uiStep !== void 0 && (p.step = r.uiStep), r.unit !== void 0 && (p.unit = r.unit), r.precision !== void 0 && (p.precision = r.precision), r.visibleWhen !== void 0 && (p.visibleWhen = r.visibleWhen), g.push(p);
342
- }
343
- return g.length > 0 ? g : void 0;
344
- })();
345
- return H({
346
- key: e.key,
347
- changeEvent: e.changeEvent,
348
- scope: e.scope ?? "application",
349
- store: e.store ?? B(e.key),
350
- applyRuntime: e.applyRuntime,
351
- defaultValue: c,
352
- normalize: l,
353
- normalizePartial: o,
354
- fieldKeys: s,
355
- uiSchema: b,
356
- secretKeys: i,
357
- protectedDefaultFields: v
358
- });
359
- }
360
- function je(e) {
361
- return H({
362
- key: e.key,
363
- changeEvent: e.changeEvent,
364
- scope: "application",
365
- store: e.store ?? B(e.key),
366
- applyRuntime: e.applyRuntime,
367
- defaultValue: e.default,
368
- normalize: e.normalize,
369
- protectedDefaultFields: e.disallowPluginDefaults ? "*" : void 0
370
- });
371
- }
372
- export {
373
- je as a,
374
- U as b,
375
- ge as c,
376
- Ee as d,
377
- I as e,
378
- Q as f,
379
- ee as g,
380
- we as h,
381
- ke as i,
382
- be as j,
383
- he as k,
384
- X as l,
385
- ve as m,
386
- R as n,
387
- Oe as o,
388
- te as p,
389
- me as r,
390
- ye as s
391
- };
@@ -1 +0,0 @@
1
- "use strict";const $=require("./stateDbStore-THFfFGa0.cjs"),ee=require("./rendererLogging-Dt5FZ8mq.cjs"),C=require("./bugIndicatingError-D2X5Hfgg.cjs");function T(e,t){switch(e.kind){case"bool":return typeof t=="boolean"?t:e.default;case"enum":return e.values.includes(t)?t:e.default;case"int":return typeof t=="number"&&Number.isFinite(t)?Math.round(Math.max(e.min,Math.min(e.max,t))):e.default;case"string":{if(e.secret)return e.default;if(typeof t=="string"){const s=e.trim?t.trim():t;if(!e.trim||s.length>0)return s}return e.default}case"custom":return e.normalize(t,e.default)}}function K(e){const t=e,s={};for(const c of Object.keys(t))s[c]=t[c].default;return s}function V(e){const t=e,s=Object.keys(t);return c=>{const l=typeof c=="object"&&c!==null?c:{},o={};for(const i of s)o[i]=T(t[i],l[i]);return o}}function q(e){const t=e,s=Object.keys(t);return c=>{const l=typeof c=="object"&&c!==null?c:{},o={};for(const i of s)i in l&&(o[i]=T(t[i],l[i]));return o}}function I(e,t){const s={...t.application},c=t.profile,l=t.connection,o=t.workspace;for(const i of e){const v=o==null?void 0:o[i];if(v!==void 0){s[i]=v;continue}const h=l==null?void 0:l[i];if(h!==void 0){s[i]=h;continue}const g=c==null?void 0:c[i];g!==void 0&&(s[i]=g)}return s}function te(e,t,s=()=>e){let c=null;const l={};let o=!1;const i=Symbol("layeredValue.unset");let v=i;const h=(d,k)=>{const E=d??s();return Object.values(k).every(w=>w===void 0)||!t?E:I(t,{application:E,profile:k.profile,connection:k.connection,workspace:k.workspace})},g=()=>(v!==i||(v=h(c,l)),v),y=()=>{v=i};return{resolve:g,invalidate:y,isResolved:()=>v!==i,isEstablished:()=>o,preview:(d,k)=>{const E=d==="application"?k:c,w=d==="application"?l:{...l,[d]:k};return h(E,w)},application:()=>c,override:d=>d==="application"?{}:l[d]??{},commit:(d,k)=>{d==="application"?c=k:l[d]=k,y(),o=!0},deleteOverride:d=>d==="application"||l[d]===void 0?!1:(delete l[d],y(),!0),snapshot:()=>({application:c,overrides:{...l}}),restore:d=>{c=d.application,delete l.profile,delete l.workspace,d.overrides.profile!==void 0&&(l.profile=d.overrides.profile),d.overrides.workspace!==void 0&&(l.workspace=d.overrides.workspace),y()},reset:()=>{c=null,delete l.profile,delete l.workspace,o=!1,y()},resetApplication:()=>{c=null,o=l.profile!==void 0||l.workspace!==void 0,y()}}}const S=new Map,F=new Set;function J(e){const t=e.indexOf(".");return t===-1?{group:e,field:void 0}:{group:e.slice(0,t),field:e.slice(t+1)}}function _(...e){const t=new Set;for(const s of e)if(s)for(const c of Object.keys(s))t.add(J(c).group);return t}function H(e){if(e.size!==0)for(const t of F)t(e)}function ne(e,t){const s=S.get(e);t&&Object.keys(t).length>0?S.set(e,t):S.delete(e),H(_(s,t))}function oe(e){const t=S.get(e);t&&(S.delete(e),H(_(t)))}function W(e){let t;for(const s of S.values())for(const[c,l]of Object.entries(s)){const{group:o,field:i}=J(c);o===e&&(t??(t={}),t[i??""]=l)}return t}function Y(e){return F.add(e),()=>{F.delete(e)}}function ie(){S.clear()}const L={application:0,profile:1,connection:2,workspace:3};function re(e,t){return L[t]<=L[e]}function se(e){e.reset()}const B=[],N=new Map;let U=!1;function ce(){U=!0;for(const e of B)e.hydrate()}function le(){return B}function ae(e){return N.get(e)}const G=new Set;function ue(e){return G.add(e),()=>{G.delete(e)}}function fe(e,t){for(const s of G)s({key:e,value:t})}function Q(e){const{key:t,changeEvent:s,scope:c,store:l,applyRuntime:o,defaultValue:i,normalize:v,normalizePartial:h,fieldKeys:g,uiSchema:y,secretKeys:r,protectedDefaultFields:p}=e;Object.freeze(i);const j=(n,u)=>{ee.getLogger(`Settings.${t}`).error(n,u)},D=()=>{if(p==="*")return i;const n=W(t);if(!n)return i;if(!(i!==null&&typeof i=="object"&&!Array.isArray(i)))return""in n?n[""]:i;const f=p,m={};for(const[b,x]of Object.entries(n))b!==""&&!(f&&f.includes(b))&&(m[b]=x);return Object.keys(m).length===0?i:{...i,...m}},a=te(i,g,D),O=n=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent(s,{detail:n})),fe(t,n)},P=(n,u)=>JSON.stringify(n)===JSON.stringify(u),d=(n,u)=>JSON.stringify(n)===JSON.stringify(u);Y(n=>{if(!n.has(t))return;const u=a.isResolved(),f=u?a.resolve():void 0;a.invalidate();const m=a.resolve();u&&P(f,m)||(o==null||o(m),O(m))});const k=()=>{const n=a.resolve();return n!==null&&typeof n=="object"?structuredClone(n):n},E=()=>a.resolve(),w=n=>{if(L[n]>L[c])throw new C.BugIndicatingError(`[settings] "${t}" is ${c}-scoped — cannot target deeper scope "${n}"`);if(n!=="application"&&!h)throw new C.BugIndicatingError(`[settings] "${t}" is a whole-value group — only the 'application' scope is writable`)},X=async(n,u)=>{try{await l.write(n,u)}catch(f){throw j(`${t} persist failed`,f),f}},A=async(n,u)=>{const f=a.snapshot(),m=a.resolve(),b=a.preview(n,u),x=n==="application"?a.application():a.override(n);if(a.isEstablished()&&P(m,b)&&d(x,u))return b;a.commit(n,u),o==null||o(b),O(b);try{await X(u,n)}catch(Z){a.restore(f);const R=a.resolve();throw o==null||o(R),O(R),Z}return b},M={key:t,changeEvent:s,scope:c,default:i,get:k,peek:E,update:async(n,u)=>{const f=(u==null?void 0:u.target)??"application";if(w(f),f==="application"){const b=a.application()??D(),x=b!==null&&typeof b=="object"?{...b,...n}:n;return A("application",v(x))}const m={...a.override(f),...n};return A(f,h(m))},replace:async n=>A("application",v(n)),normalize:v,overrideAt:n=>(w(n),n==="application"?{}:{...a.override(n)}),clearOverrideField:async(n,u)=>{if(w(n),n==="application")throw new C.BugIndicatingError(`${t}: "application" is the baseline, not an override layer — nothing to clear`);const f=a.override(n);if(!(u in f))return a.resolve();const m={...f};return delete m[u],A(n,h(m))},hydrate:(n="application")=>{if(w(n),n==="application"){const f=l.read("application");f!=null?a.commit("application",v(f)):a.resetApplication()}else a.commit(n,h(l.read(n)));const u=a.resolve();return o==null||o(u),u},applyFromBroadcast:(n,u="application")=>{w(u);const f=a.resolve(),m=u==="application"?v(n):h(n),b=a.preview(u,m);a.isEstablished()&&P(f,b)||(a.commit(u,m),o==null||o(b),O(b))},dropScopeLayer:n=>{const u=a.resolve();if(!a.deleteOverride(n))return;const f=a.resolve();P(u,f)||(o==null||o(f),O(f))},reset:()=>a.reset(),...y?{uiSchema:y}:{},...r&&r.length>0?{secretKeys:r}:{},...g?{fieldKeys:g}:{}};if(N.has(t))throw new C.BugIndicatingError(`[settings] Duplicate settings descriptor key: "${t}"`);const z=M;return B.push(z),N.set(t,z),U&&z.hydrate(),M}function de(e){const t=e.fields,s=Object.keys(t),c=K(e.fields),l=V(e.fields),o=q(e.fields),i=s.filter(g=>{const y=t[g];return y.kind==="string"&&y.secret===!0}),v=e.disallowPluginDefaults?"*":(()=>{const g=s.filter(y=>t[y].disallowPluginDefault===!0);return g.length>0?g:void 0})(),h=(()=>{const g=[];for(const y of s){const r=t[y];if(!r.label)continue;const p={key:y,kind:r.kind,label:r.label};r.description!==void 0&&(p.description=r.description),r.helpText!==void 0&&(p.helpText=r.helpText),r.control!==void 0&&(p.control=r.control),r.kind==="enum"?p.enumValues=r.values:r.enumValues!==void 0&&(p.enumValues=r.enumValues),r.enumLabels!==void 0&&(p.enumLabels=r.enumLabels),r.mono!==void 0&&(p.mono=r.mono);const j=r.uiMin??(r.kind==="int"?r.min:void 0);j!==void 0&&(p.min=j);const D=r.uiMax??(r.kind==="int"?r.max:void 0);D!==void 0&&(p.max=D),r.uiStep!==void 0&&(p.step=r.uiStep),r.unit!==void 0&&(p.unit=r.unit),r.precision!==void 0&&(p.precision=r.precision),r.visibleWhen!==void 0&&(p.visibleWhen=r.visibleWhen),g.push(p)}return g.length>0?g:void 0})();return Q({key:e.key,changeEvent:e.changeEvent,scope:e.scope??"application",store:e.store??$.stateDbStore(e.key),applyRuntime:e.applyRuntime,defaultValue:c,normalize:l,normalizePartial:o,fieldKeys:s,uiSchema:h,secretKeys:i,protectedDefaultFields:v})}function pe(e){return Q({key:e.key,changeEvent:e.changeEvent,scope:"application",store:e.store??$.stateDbStore(e.key),applyRuntime:e.applyRuntime,defaultValue:e.default,normalize:e.normalize,protectedDefaultFields:e.disallowPluginDefaults?"*":void 0})}exports.clearPluginConfigDefaults=oe;exports.defineSettings=de;exports.defineSettingsValue=pe;exports.deriveDefault=K;exports.deriveNormalize=V;exports.deriveNormalizePartial=q;exports.getContributedGroupDefault=W;exports.getGroupByKey=ae;exports.getRegisteredSettingsGroups=le;exports.hydrateRegisteredSettings=ce;exports.normalizeField=T;exports.onAnySettingsChange=ue;exports.resetPluginConfigDefaultsForTest=ie;exports.resetSettingsGroupForTest=se;exports.resolveLayers=I;exports.scopeAllowsLayer=re;exports.setPluginConfigDefaults=ne;exports.subscribePluginConfigDefaults=Y;
@@ -1 +0,0 @@
1
- "use strict";const a=require("solid-js/web"),S=require("solid-js"),V=require("@vokril/icons"),se=require("./OverlayScrollArea-BSlaXG1h.cjs"),de=require("./i18n-DXXArz-m.cjs"),he=require("./rendererLogging-Dt5FZ8mq.cjs"),W=require("./keys-BeeC5_RZ.cjs"),fe=require("./useListCommands-ucngC3t4.cjs"),ge=require("./builtins-DM7FDxEt.cjs"),we=require("./createVirtualScroller-LN-7QFiv.cjs"),me=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),ye=require("./bugIndicatingError-D2X5Hfgg.cjs"),Y={canExpand:!0,canMultiSelect:!0,canTypeAhead:!0,canRename:!1,canDestroy:!1,expandAll:!1};function z(e,c){return`${e}-row-${c}`}function oe(e){const{treeId:c,label:n,multiSelectable:t,focusMode:o,cursorKey:l}=e;return{role:e.flat===!0?"listbox":"tree",tabIndex:o==="active-descendant"||l===null?0:-1,"aria-label":n,"aria-multiselectable":t?!0:void 0,"aria-activedescendant":o==="active-descendant"&&l!==null?z(c,l):void 0}}function ce(e){const{treeId:c,rows:n,index:t,focusMode:o,isCursor:l,isSelected:r}=e,u=n[t],s=e.flat===!0;let h=t;for(let C=t-1;C>=0;C--){const D=n[C].depth;if(D<u.depth)break;D===u.depth&&(h=C)}let f=t;for(let C=t+1;C<n.length;C++){const D=n[C].depth;if(D<u.depth)break;D===u.depth&&(f=C)}let k=0,_=0;for(let C=h;C<=f;C++)n[C].depth===u.depth&&(k++,C<=t&&_++);return{role:s?"option":"treeitem",id:z(c,u.key),tabIndex:o==="roving-tabindex"&&l?0:-1,"aria-level":s?void 0:u.depth+1,"aria-setsize":k,"aria-posinset":_,"aria-selected":r,"aria-expanded":!s&&u.expandable?u.expanded:void 0,"aria-busy":u.busy===!0?!0:void 0}}const ve=/[\^$.*+?(){}|[\]\\]/;function Se(e){const c=e.trim();if(c.length===0)return null;if(ve.test(c))try{const t=new RegExp(c,"gi");return o=>Ce(o,t)}catch(t){he.bestEffortFailed("fall through to substring",t)}const n=c.toLowerCase();return t=>ke(t,n,c.length)}function Ce(e,c){c.lastIndex=0;const n=[];let t=0,o;for(;(o=c.exec(e))!==null;)o.index>t&&n.push({text:e.slice(t,o.index),match:!1}),n.push({text:o[0],match:!0}),t=o.index+o[0].length,o[0].length===0&&(c.lastIndex+=1);return t<e.length&&n.push({text:e.slice(t),match:!1}),n.length>0?n:[{text:e,match:!1}]}function ke(e,c,n){if(n===0)return[{text:e,match:!1}];const t=e.toLowerCase(),o=[];let l=0;for(;l<=e.length;){const r=t.indexOf(c,l);if(r===-1){l<e.length&&o.push({text:e.slice(l),match:!1});break}r>l&&o.push({text:e.slice(l,r),match:!1}),o.push({text:e.slice(r,r+n),match:!0}),l=r+n}return o.length>0?o:[{text:e,match:!1}]}const xe="vk_treeStickyHost_6aT7a",be="vk_treeViewport_Ku3yB",Te="vk_treeContainer_iMrOQ",Re="vk_treeSlice_homAf",Ie="vk_treeRow_Hh9r0",Ae="vk_treeRowCursor_QlUrp",_e="vk_treeRowSelected_UdZj-",Me="vk_treeIndentGuides_W4J04",Ee="vk_treeIndentGuideActive_9m4l3",De="vk_treeRowChevron_6WMjE",$e="vk_treeRowChevronSpacer_Jbp-q",Ke="vk_treeRowChevronIcon_KP24Y",Ge="vk_treeRowChevronIconOpen_fRKNn",He="vk_treeRowContent_RR7pP",Ne="vk_treeRowActions_LYQUv",Oe="vk_treeEmpty_s8RQ-",Pe="vk_treeRowChevronBusy_lZT8a",Le="vk_treeSpeedSearchBadge_9GHNi",Fe="vk_treeSpeedSearchIcon_48Ae2",qe="vk_treeSpeedSearchText_F4SZ8",Be="vk_treeMatchHighlight_NY75y",T={treeStickyHost:xe,treeViewport:be,treeContainer:Te,treeSlice:Re,treeRow:Ie,treeRowCursor:Ae,treeRowSelected:_e,treeIndentGuides:Me,treeIndentGuideActive:Ee,treeRowChevron:De,treeRowChevronSpacer:$e,treeRowChevronIcon:Ke,treeRowChevronIconOpen:Ge,treeRowContent:He,treeRowActions:Ne,treeEmpty:Oe,treeRowChevronBusy:Pe,treeSpeedSearchBadge:Le,treeSpeedSearchIcon:Fe,treeSpeedSearchText:qe,treeMatchHighlight:Be};var Ue=a.template("<span aria-hidden=true tabindex=-1>"),Q=a.template("<span aria-hidden=true>"),Qe=a.template("<span tabindex=-1>"),Ve=a.template("<div><span>"),We=a.template("<mark>");function Ye(e){return e.ctrlKey||e.metaKey?"toggle":e.shiftKey?"range":"replace"}function X(e){let c;S.createEffect(()=>{if(e.sticky===!0||!e.isCursor||!e.treeHasFocus())return;const t=c;!t||t.contains(t.ownerDocument.activeElement)||queueMicrotask(()=>t.focus({preventScroll:!0}))});const n=()=>a.createComponent(S.Show,{get when(){return e.row.expandable},get fallback(){return(()=>{var t=Q();return a.effect(()=>a.className(t,T.treeRowChevronSpacer)),t})()},get children(){var t=Ue();return t.$$dblclick=o=>o.stopPropagation(),t.$$keydown=o=>{(W.isKey(o,"Enter")||o.key===" ")&&(o.stopPropagation(),e.onToggle(e.row))},t.$$click=o=>{o.stopPropagation(),e.onToggle(e.row)},a.insert(t,a.createComponent(S.Show,{get when(){return e.row.busy},get fallback(){return a.createComponent(V.VpChevronRight,{get class(){return`${T.treeRowChevronIcon} ${e.row.expanded?T.treeRowChevronIconOpen:""}`}})},get children(){return a.createComponent(V.VpLoader2,{"data-motion-exempt":"true",get class(){return`${T.treeRowChevronIcon} ${T.treeRowChevronBusy}`}})}})),a.effect(()=>a.className(t,T.treeRowChevron)),t}});return(()=>{var t=Ve(),o=t.firstChild,l=c;return typeof l=="function"?a.use(l,t):c=t,a.spread(t,a.mergeProps({get tabIndex(){return e.sticky===!0?-1:0}},()=>e.sticky===!0?{tabIndex:-1}:e.aria,{get onKeyDown(){var r;return(r=e.dom)==null?void 0:r.onKeyDown},get class(){var r;return`${T.treeRow} ${((r=e.dom)==null?void 0:r.class)??""}`},get classList(){return{[T.treeRowCursor]:e.isCursor,[T.treeRowSelected]:e.isSelected}},get style(){return{height:`${e.rowHeight}px`,"--tree-depth":String(e.row.depth)}}},()=>e.sticky===!0?{"data-tree-sticky-key":e.row.key}:{"data-tree-row-key":e.row.key},()=>{var r;return((r=e.dom)==null?void 0:r.title)!==void 0?{title:e.dom.title}:{}},()=>{var r;return((r=e.dom)==null?void 0:r.draggable)!==void 0?{draggable:e.dom.draggable}:{}},()=>{var r;return(r=e.dom)!=null&&r.onDragStart?{onDragStart:e.dom.onDragStart}:{}},()=>{var r;return(r=e.dom)!=null&&r.onDragOver?{onDragOver:e.dom.onDragOver}:{}},()=>{var r;return(r=e.dom)!=null&&r.onDragLeave?{onDragLeave:e.dom.onDragLeave}:{}},()=>{var r;return(r=e.dom)!=null&&r.onDrop?{onDrop:e.dom.onDrop}:{}},()=>{var r;return(r=e.dom)!=null&&r.onDragEnd?{onDragEnd:e.dom.onDragEnd}:{}},()=>{var r;return(r=e.dom)!=null&&r.onMouseEnter?{onMouseEnter:e.dom.onMouseEnter}:{}},()=>{var r;return(r=e.dom)!=null&&r.onMouseLeave?{onMouseLeave:e.dom.onMouseLeave}:{}},{onMouseDown:r=>{if(r.button===2){e.isSelected?e.onFocusRow(e.index):e.onSelect(e.index,"replace");return}r.button===0&&e.onSelect(e.index,Ye(r))},onClick:r=>e.onActivateClick(e.row,"single-click",r),onDblClick:r=>e.onActivateClick(e.row,"double-click",r),onContextMenu:r=>{r.preventDefault(),r.stopPropagation(),e.onOpenMenu(e.row,r)}}),!1,!0),a.insert(t,a.createComponent(S.Show,{get when(){return a.memo(()=>e.indentGuide!=="none")()&&e.row.depth>0},get children(){var r=Q();return a.effect(()=>a.className(r,T.treeIndentGuides)),r}}),o),a.insert(t,a.createComponent(S.Show,{get when(){return a.memo(()=>e.indentGuide==="active"&&e.activeGuideDepth>=0)()&&e.row.depth>e.activeGuideDepth},get children(){var r=Q();return a.effect(u=>{var s=T.treeIndentGuideActive,h=`${e.activeGuideDepth}`;return s!==u.e&&a.className(r,u.e=s),h!==u.t&&a.setStyleProperty(r,"--tree-active-col",u.t=h),u},{e:void 0,t:void 0}),r}}),o),a.insert(t,a.createComponent(S.Show,{get when(){return e.showChevronGutter},get children(){return n()}}),o),a.insert(o,()=>e.content),a.insert(t,a.createComponent(S.Show,{get when(){return e.actions},get children(){var r=Qe();return r.$$dblclick=u=>u.stopPropagation(),r.$$keydown=u=>u.stopPropagation(),r.$$click=u=>u.stopPropagation(),a.insert(r,()=>e.actions),a.effect(()=>a.className(r,T.treeRowActions)),r}}),null),a.effect(()=>a.className(o,T.treeRowContent)),t})()}function ze(e){const c=()=>e.query?typeof e.query=="function"?e.query():e.query:"",n=S.createMemo(()=>{const t=c().trim();if(t.length===0)return null;const o=Se(t);return o?o(e.text):null});return a.createComponent(S.Show,{get when(){return n()},get fallback(){return a.memo(()=>e.text)},get children(){return a.createComponent(S.For,{get each(){return n()},children:t=>a.createComponent(S.Show,{get when(){return t.match},get fallback(){return a.memo(()=>t.text)},get children(){var o=We();return a.insert(o,()=>t.text),a.effect(()=>a.className(o,e.class??T.treeMatchHighlight)),o}})})}})}a.delegateEvents(["click","keydown","dblclick"]);const Xe="vk_treeStickyWidget_Q-8QQ",Ze="vk_treeStickyRow_7gWG2",p={treeStickyWidget:Xe,treeStickyRow:Ze};var Je=a.template("<div role=list>"),je=a.template("<div role=listitem>");function pe(e){return(()=>{var c=Je();return a.insert(c,a.createComponent(S.Index,{get each(){return e.rows},children:(n,t)=>(()=>{var o=je();return a.insert(o,a.createComponent(X,{sticky:!0,get row(){return n().row},get index(){return n().index},get rowHeight(){return e.descriptor.rowHeight},get isCursor(){return e.isCursor(n().index)},get isSelected(){return e.isSelected(n().row)},treeHasFocus:()=>!1,get showChevronGutter(){return e.showChevronGutter},get indentGuide(){return e.indentGuide},get activeGuideDepth(){return e.activeGuideDepth},get dom(){var l,r;return(r=(l=e.descriptor).rowProps)==null?void 0:r.call(l,n().row)},get content(){return e.descriptor.renderContent(n().row)},get actions(){var l,r;return(r=(l=e.descriptor).renderActions)==null?void 0:r.call(l,n().row)},get onSelect(){return e.onSelect},get onFocusRow(){return e.onFocusRow},get onToggle(){return e.onToggle},onActivateClick:()=>e.onReveal(n().index),get onOpenMenu(){return e.onOpenMenu}})),a.effect(l=>{var r=p.treeStickyRow,u=`${n().top}px`,s=`${e.rows.length-t}`;return r!==l.e&&a.className(o,l.e=r),u!==l.t&&a.setStyleProperty(o,"top",l.t=u),s!==l.a&&a.setStyleProperty(o,"z-index",l.a=s),l},{e:void 0,t:void 0,a:void 0}),o})()})),a.effect(n=>{var t=p.treeStickyWidget,o=e.label,l=`${e.height}px`;return t!==n.e&&a.className(c,n.e=t),o!==n.t&&a.setAttribute(c,"aria-label",n.t=o),l!==n.a&&a.setStyleProperty(c,"height",n.a=l),n},{e:void 0,t:void 0,a:void 0}),c})()}var et=a.template("<div role=status aria-live=polite aria-atomic=true><span>"),tt=a.template("<div><div>"),nt=a.template("<p>"),rt=a.template("<div>");const ee="roving-tabindex";function ot(e){const c=()=>e.surface.descriptor,n=()=>e.surface.controller;let t;const o=S.createMemo(()=>({...Y,...c().capabilities})),l=()=>o().canExpand&&(c().chevronGutter??!0),r=S.createMemo(()=>{if((c().indentGuide??"none")!=="active")return-1;const m=e.surface.rows()[n().cursorIndex()];return m?m.depth-1:-1});fe.useListCommands({container:()=>t,supportsMultiselect:()=>o().canMultiSelect,verbs:{selectAll:()=>n().selectAll()}});const u=ge.useKeybindingsOptional()===null,s=m=>(m.key==="a"||m.key==="A")&&(m.ctrlKey||m.metaKey)&&!m.altKey&&!m.shiftKey,h=S.createMemo(()=>oe({treeId:c().id,label:c().ariaLabel,multiSelectable:o().canMultiSelect,focusMode:ee,cursorKey:n().cursorKey(),flat:!o().canExpand})),f=m=>{const d=m;return d!=null&&d.tagName?d.tagName==="INPUT"||d.tagName==="TEXTAREA"||d.isContentEditable===!0:!1},k=()=>t!==void 0&&t.contains(t.ownerDocument.activeElement),_=(m,d)=>{n().selectIndex(m,d)},C=(m,d,R)=>{var I,x;(x=(I=c()).onActivate)==null||x.call(I,m,d,R)},D=(m,d)=>{e.surface.openMenu(m,{x:d.clientX,y:d.clientY},d)},O=m=>{t==null||t.focus({preventScroll:!0}),e.surface.scroller.scrollToIndex(m,"auto",e.surface.stickyInsetFor(m))};return(()=>{var m=rt();return a.insert(m,a.createComponent(S.Show,{get when(){return n().typeAheadQuery().length>0},get children(){var d=et(),R=d.firstChild;return a.insert(d,a.createComponent(V.VpSearch,{get class(){return T.treeSpeedSearchIcon}}),R),a.insert(R,()=>n().typeAheadQuery()),a.effect(I=>{var x=T.treeSpeedSearchBadge,K=T.treeSpeedSearchText;return x!==I.e&&a.className(d,I.e=x),K!==I.t&&a.className(R,I.t=K),I},{e:void 0,t:void 0}),d}}),null),a.insert(m,a.createComponent(se.OverlayScrollArea,{viewportRef:d=>{var R;e.surface.scroller.containerRef(d),(R=e.viewportRef)==null||R.call(e,d)},get viewportClass(){return`${T.treeViewport} ${e.viewportClass??""}`.trim()},get children(){return[(()=>{var d=tt(),R=d.firstChild,I=t;return typeof I=="function"?a.use(I,d):t=d,a.spread(d,a.mergeProps(h,{get class(){return T.treeContainer},get style(){return{height:`${e.surface.scroller.totalHeight()}px`}},onKeyDown:x=>{if(!f(x.target)){if(u&&s(x)&&o().canMultiSelect){x.preventDefault(),n().selectAll();return}n().handleKeyDown(x)}},onFocus:x=>{x.target===x.currentTarget&&n().cursorIndex()<0&&n().focusIndex(0)}}),!1,!0),a.insert(R,a.createComponent(S.Index,{get each(){return e.surface.scroller.visibleItems()},children:x=>{const K=()=>x().item,P=()=>x().index,B=()=>n().cursorIndex()===P(),i=()=>n().selectedKeys().has(K().key);return a.createComponent(X,{get row(){return K()},get index(){return P()},get aria(){return ce({treeId:c().id,rows:e.surface.rows(),index:P(),focusMode:ee,isCursor:B(),isSelected:i(),flat:!o().canExpand})},get rowHeight(){return c().rowHeight},get isCursor(){return B()},get isSelected(){return i()},treeHasFocus:k,get showChevronGutter(){return l()},get indentGuide(){return c().indentGuide??"none"},get activeGuideDepth(){return r()},get dom(){var g,w;return(w=(g=c()).rowProps)==null?void 0:w.call(g,K())},get content(){return c().renderContent(K())},get actions(){var g,w;return(w=(g=c()).renderActions)==null?void 0:w.call(g,K())},onSelect:_,onFocusRow:g=>n().focusIndex(g),onToggle:g=>{var w,v;return(v=(w=c()).onToggle)==null?void 0:v.call(w,g)},onActivateClick:C,onOpenMenu:D})}})),a.effect(x=>{var K=T.treeSlice,P=`translate3d(0, ${e.surface.scroller.offsetY()}px, 0)`;return K!==x.e&&a.className(R,x.e=K),P!==x.t&&a.setStyleProperty(R,"transform",x.t=P),x},{e:void 0,t:void 0}),d})(),a.createComponent(S.Show,{get when(){return a.memo(()=>e.surface.rows().length===0)()&&c().emptyLabel},get children(){var d=nt();return a.insert(d,()=>c().emptyLabel),a.effect(()=>a.className(d,T.treeEmpty)),d}})]}}),null),a.insert(m,a.createComponent(S.Show,{get when(){return e.surface.stickyState().rows.length>0},get children(){return a.createComponent(pe,{get rows(){return e.surface.stickyState().rows},get height(){return e.surface.stickyState().height},get label(){return de.t("Sticky parent rows")},get descriptor(){return c()},get showChevronGutter(){return l()},get indentGuide(){return c().indentGuide??"none"},get activeGuideDepth(){return r()},isCursor:d=>n().cursorIndex()===d,isSelected:d=>n().selectedKeys().has(d.key),onSelect:_,onFocusRow:d=>n().focusIndex(d),onToggle:d=>{var R,I;return(I=(R=c()).onToggle)==null?void 0:I.call(R,d)},onReveal:O,onOpenMenu:D})}}),null),a.effect(d=>{var R=T.treeStickyHost,I=`${c().indentBaseRem??0}rem`;return R!==d.e&&a.className(m,d.e=R),I!==d.t&&a.setStyleProperty(m,"--tree-indent-base",d.t=I),d},{e:void 0,t:void 0}),m})()}const te=10,q=(e,c)=>Math.max(0,Math.min(e,c-1));function ct(e){return e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function at(e,c){const{index:n,rowCount:t,capabilities:o}=c;if(t===0)return null;const l=n<0?-1:n;switch(W.namedKeyOf(e)){case"ArrowDown":return e.shiftKey&&o.canMultiSelect?{type:"extend",to:q(l+1,t)}:{type:"move",to:q(l+1,t)};case"ArrowUp":return l<0?{type:"move",to:t-1}:e.shiftKey&&o.canMultiSelect?{type:"extend",to:q(l-1,t)}:{type:"move",to:q(l-1,t)};case"Home":return{type:"move",to:0};case"End":return{type:"move",to:t-1};case"PageDown":return{type:"move",to:q(Math.max(l,0)+te,t)};case"PageUp":return{type:"move",to:q(Math.max(l,0)-te,t)};case"ArrowRight":return o.canExpand?{type:"expandOrDescend"}:{type:"flatNavigate",direction:"in"};case"ArrowLeft":return e.ctrlKey||e.metaKey?null:o.canExpand?{type:"collapseOrAscend"}:{type:"flatNavigate",direction:"out"};case"Enter":return{type:"activate"};case"ContextMenu":return{type:"openMenu"};case"F10":return e.shiftKey?{type:"openMenu"}:null}return e.key===" "?o.canExpand?{type:"toggle"}:null:o.canTypeAhead&&ct(e)?{type:"typeAhead",char:e.key}:null}function L(e,c){const n=e[c];if(!n)return-1;for(let t=c-1;t>=0;t--)if(e[t].depth<n.depth)return t;return-1}function ae(e,c){const n=e[c];if(!n)return null;const t=c+1;if(t>=e.length||e[t].depth<=n.depth)return null;let o=t;for(;o+1<e.length&&e[o+1].depth>n.depth;)o++;return{start:t,end:o}}function lt(e,c,n,t=!1){const o=n.toLowerCase();if(o.length===0)return-1;const l=e.length;if(l===0)return-1;const r=t?0:1;for(let u=r;u<=l;u++){const s=(c+u+l)%l;if(e[s].label.toLowerCase().startsWith(o))return s}for(let u=r;u<=l;u++){const s=(c+u+l)%l;if(e[s].label.toLowerCase().includes(o))return s}return-1}function le(e,c,n){const t=new Map(e.map((f,k)=>[f.key,k])),o=[...n].filter(f=>t.has(f)),l=it(e,c,o,t),r=ut(e,l),u=f=>f.selectable!==!1&&(r===void 0||f.kind===r),s=new Set(o);let h=l<0?-1:L(e,l);for(;;){const f=st(e,h).filter(u).map(C=>C.key);if(h<0)return f;const k=f.length===s.size&&f.every(C=>s.has(C));if(f.length>0&&!k)return f;const _=e[h];if(f.length>0&&u(_))return[_.key,...f];h=L(e,h)}}function it(e,c,n,t){var r;const o=(r=e[c])==null?void 0:r.key;if(o!==void 0&&!n.includes(o))return c;const l=n[0];return l===void 0?-1:t.get(l)??-1}function ut(e,c){const n=e[c];if(n&&n.selectable!==!1)return n.kind;const t=l=>l.selectable!==!1,o=e.slice(Math.max(c,0)).find(t)??e.find(t);return o==null?void 0:o.kind}function st(e,c){if(c<0)return e;const n=ae(e,c);return n?e.slice(n.start,n.end+1):[]}const ne=1e3;function ie(e){const c=()=>({...Y,...e.capabilities,expandAll:!1}),[n,t]=S.createSignal(-1),[o,l]=S.createSignal(new Set),[r,u]=S.createSignal(-1),[s,h]=S.createSignal("");let f=0,k;const _=()=>{k!==void 0&&(clearTimeout(k),k=void 0),s().length>0&&h("")},C=()=>{k!==void 0&&(clearTimeout(k),k=void 0),k=setTimeout(()=>{h(""),k=void 0},ne)};S.onCleanup(()=>{k!==void 0&&(clearTimeout(k),k=void 0)});const D=S.createMemo(()=>{var i;return((i=e.rows()[n()])==null?void 0:i.key)??null}),O=i=>{var w;const g=e.rows();i<0||i>=g.length||i===n()||(t(i),u(i),(w=e.onScrollToIndex)==null||w.call(e,i))},m=(i,g)=>{var b;const w=e.rows(),v=(b=w[i])==null?void 0:b.kind,[y,E]=i<=g?[i,g]:[g,i],M=new Set;for(let $=y;$<=E;$++){const A=w[$];A&&A.selectable!==!1&&(v!==void 0&&A.kind!==v||M.add(A.key))}return M};return{cursorIndex:n,cursorKey:D,selectedKeys:o,typeAheadQuery:s,get capabilities(){return c()},focusIndex:O,selectIndex:(i,g)=>{var y,E,M;_();const v=e.rows()[i];if(v){if(v.selectable===!1&&g!=="range"){O(i);return}if(g==="toggle"&&c().canMultiSelect){const b=new Set(o());b.has(v.key)?b.delete(v.key):b.add(v.key),l(b),t(i),u(i),(y=e.onScrollToIndex)==null||y.call(e,i);return}if(g==="range"&&c().canMultiSelect){const b=r()>=0?r():i;l(m(b,i)),t(i),(E=e.onScrollToIndex)==null||E.call(e,i);return}l(new Set([v.key])),t(i),u(i),(M=e.onScrollToIndex)==null||M.call(e,i)}},clearSelection:()=>{_(),o().size>0&&l(new Set)},selectChildren:i=>{var $;const g=e.rows(),w=g[i];if(!w)return;const v=w.depth+1,y=new Set;let E,M=!1,b=-1;for(let A=i+1;A<g.length;A++){const H=g[A];if(H.depth<=w.depth)break;if(H.depth===v&&H.selectable!==!1){if(!M)E=H.kind,b=A,M=!0;else if(E!==void 0&&H.kind!==E)continue;y.add(H.key)}}y.size!==0&&(l(y),b>=0&&(t(b),u(b),($=e.onScrollToIndex)==null||$.call(e,b)))},selectAll:()=>{c().canMultiSelect&&l(new Set(le(e.rows(),n(),o())))},childKindsHomogeneous:i=>{const g=e.rows(),w=g[i];if(!w)return{homogeneous:!1,total:0,selectable:0};const v=w.depth+1;let y,E=!1,M=0,b=0;for(let $=i+1;$<g.length;$++){const A=g[$];if(A.depth<=w.depth)break;A.depth===v&&A.selectable!==!1&&(M++,E?(y===void 0||A.kind===y)&&b++:(y=A.kind,E=!0,b++))}return{homogeneous:M>0&&M===b,total:M,selectable:b}},handleKeyDown:i=>{var E,M,b,$,A,H,Z,J;if(W.isKey(i,"Escape")&&s().length>0){i.preventDefault(),i.stopPropagation(),_();return}const g=e.rows(),w=n(),v=at(i,{index:w,rowCount:g.length,capabilities:c()});if(!v)return;const y=g[w];switch(v.type){case"move":i.preventDefault(),O(v.to);return;case"extend":{i.preventDefault();const G=r()>=0?r():w;l(m(G,v.to)),t(v.to),(E=e.onScrollToIndex)==null||E.call(e,v.to);return}case"expandOrDescend":if(!y)return;if(i.preventDefault(),y.expandable&&!y.expanded){(M=e.onToggle)==null||M.call(e,y);return}O(w+1);return;case"collapseOrAscend":{if(!y)return;if(i.preventDefault(),y.expandable&&y.expanded){(b=e.onToggle)==null||b.call(e,y);return}const G=L(g,w);G>=0&&O(G);return}case"toggle":if(!(y!=null&&y.expandable))return;i.preventDefault(),($=e.onToggle)==null||$.call(e,y);return;case"flatNavigate":i.preventDefault(),(A=e.onFlatNavigate)==null||A.call(e,v.direction,y);return;case"activate":if(!y)return;i.preventDefault(),(H=e.onActivate)==null||H.call(e,y);return;case"openMenu":{if(!y)return;i.preventDefault();const G=i.target,N=G==null?void 0:G.getBoundingClientRect();(Z=e.onOpenMenu)==null||Z.call(e,y,{x:Math.round((N==null?void 0:N.left)??0),y:Math.round((N==null?void 0:N.bottom)??0)});return}case"typeAhead":{const G=((J=e.now)==null?void 0:J.call(e))??Date.now(),N=G-f>ne,F=N?"":s(),U=F.length===1&&F.toLowerCase()===v.char.toLowerCase()?F:`${F}${v.char}`,j=lt(g,w,U,U.length>1&&!N);if(f=G,j<0){h(F),F.length>0?C():_();return}h(U),C(),i.preventDefault(),O(j);return}}},openMenuAt:(i,g)=>{var v;const w=e.rows()[i];w&&((v=e.onOpenMenu)==null||v.call(e,w,g))}}}const dt=.4,ht={rows:[],height:0};function ue(e){return Math.max(Math.floor(e),1)}function ft(e,c,n){let t=c,o=L(e,t);for(;o!==-1;){if(o===n)return t;t=o,o=L(e,t)}return n===-1?t:-1}function gt(e,c,n,t){let o=e;for(let r=0;r<e.length;r++)if(e[r].top+t>n||r>=c){o=e.slice(0,r);break}const l=o[o.length-1];return l?{rows:o,height:l.top+t}:{rows:[],height:0}}function wt(e){const{rows:c,scrollTop:n,rowHeight:t,viewportHeight:o}=e;if(c.length===0||t<=0)return ht;const l=ue(e.maxCount),r=[];let u=0,s=-1;for(;;){const h=Math.floor((n+u)/t);if(h<0||h>=c.length)break;const f=ft(c,h,s);if(f===-1)break;const k=ae(c,f);if(k===null||f===h&&n===f*t-u)break;const _=(k.end+1)*t-n,C=u,D=C+t>_&&C<=_?_-t:C;if(r.push({index:f,row:c[f],top:D}),u=D+t,s=f,r.length>=l)break}return gt(r,l,o*dt,t)}function mt(e,c,n,t){if(c<0||c>=e.length)return 0;let o=0,l=L(e,c);for(;l!==-1;)o++,l=L(e,l);return Math.min(o,ue(t))*n}const yt=8,re=7,vt={rows:[],height:0};function St(e){const c=S.useContext(me.DesktopContextMenuContext),n=S.createMemo(()=>[...e.rows()]),t=we.createVirtualScroller({items:n,itemHeight:e.rowHeight,overscan:e.overscan??yt}),o=S.createMemo(()=>e.stickyScroll!==!0?vt:wt({rows:n(),scrollTop:t.scrollTop(),rowHeight:e.rowHeight,viewportHeight:t.viewportHeight(),maxCount:e.stickyScrollMaxCount??re})),l=s=>e.stickyScroll===!0?mt(n(),s,e.rowHeight,e.stickyScrollMaxCount??re):0,r=ie({rows:n,...e.capabilities?{capabilities:e.capabilities}:{},onToggle:s=>{var h;return(h=e.onToggle)==null?void 0:h.call(e,s)},onActivate:s=>{var h;return(h=e.onActivate)==null?void 0:h.call(e,s,"keyboard")},onOpenMenu:(s,h)=>u(s,h),onCollapseAll:()=>{var s;return(s=e.onCollapseAll)==null?void 0:s.call(e)},onFlatNavigate:(s,h)=>{var f;return(f=e.onFlatNavigate)==null?void 0:f.call(e,s,h)},onRename:s=>{var h;return(h=e.onRename)==null?void 0:h.call(e,s)},onDestroy:s=>{var h;return(h=e.onDestroy)==null?void 0:h.call(e,s)},onScrollToIndex:s=>t.scrollToIndex(s,"auto",l(s))});function u(s,h,f){if(e.openMenu){e.openMenu(s,h,f);return}if(!e.buildMenu)return;const k=e.buildMenu(s,r.selectedKeys());if(k.length!==0){if(!c)throw new ye.BugIndicatingError("createTreeSurface: descriptor builds a context menu but no DesktopContextMenuProvider is mounted");c.open(h.x,h.y,k,f)}}return{descriptor:e,controller:r,scroller:t,rows:n,stickyState:o,stickyInsetFor:l,openMenu:u}}const Ct=.85;exports.DEFAULT_TREE_CAPABILITIES=Y;exports.TREE_INDENT_STEP_REM=Ct;exports.TreeHighlight=ze;exports.TreeRow=X;exports.TreeSurface=ot;exports.buildTreeContainerAria=oe;exports.buildTreeRowAria=ce;exports.createTreeController=ie;exports.createTreeSurface=St;exports.selectAllInScope=le;exports.treeRowDomId=z;
@@ -1,64 +0,0 @@
1
- import { createComponent as u, Portal as a, mergeProps as m } from "solid-js/web";
2
- import { onMount as i } from "solid-js";
3
- import { u as c, n as d } from "./overlayStack-DvGdPMdq.js";
4
- import { u as f } from "./HostWindowContext-KL4U1qUv.js";
5
- function y(e) {
6
- var r;
7
- const t = e.open ?? (() => !0), n = () => {
8
- const o = e.mount;
9
- return o.nodeType === Node.DOCUMENT_NODE ? o : o.ownerDocument ?? void 0;
10
- }, l = c(t, e.idPrefix ?? "portal-overlay", {
11
- type: e.modal === !0 ? "modal" : e.type,
12
- element: e.element,
13
- document: n
14
- });
15
- return (r = e.onLayer) == null || r.call(e, l), i(() => {
16
- d();
17
- }), u(a, {
18
- get mount() {
19
- return e.mount;
20
- },
21
- get children() {
22
- return e.children;
23
- }
24
- });
25
- }
26
- function D(e) {
27
- const t = f(), n = e.modal === !0 ? {
28
- modal: !0
29
- } : {
30
- type: e.type
31
- };
32
- return u(y, m(n, {
33
- get mount() {
34
- return t.body;
35
- },
36
- get element() {
37
- return e.element;
38
- },
39
- get idPrefix() {
40
- return e.idPrefix ?? "host-portal";
41
- },
42
- get open() {
43
- return e.open;
44
- },
45
- get onLayer() {
46
- return e.onLayer;
47
- },
48
- get children() {
49
- return e.children;
50
- }
51
- }));
52
- }
53
- function P(e, t) {
54
- return e === !0 && t === !1;
55
- }
56
- function v(e) {
57
- return e !== null && typeof e.focus == "function" ? (e.focus(), !0) : !1;
58
- }
59
- export {
60
- D as H,
61
- y as O,
62
- v as r,
63
- P as s
64
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("solid-js/web"),a=require("solid-js"),l=require("./overlayStack-DvKYN7SD.cjs"),s=require("./HostWindowContext-DqDeJmBP.cjs");function c(e){var u;const t=e.open??(()=>!0),o=()=>{const r=e.mount;return r.nodeType===Node.DOCUMENT_NODE?r:r.ownerDocument??void 0},i=l.useOverlayRegistration(t,e.idPrefix??"portal-overlay",{type:e.modal===!0?"modal":e.type,element:e.element,document:o});return(u=e.onLayer)==null||u.call(e,i),a.onMount(()=>{l.notifyOverlayChanged()}),n.createComponent(n.Portal,{get mount(){return e.mount},get children(){return e.children}})}function d(e){const t=s.useHostDocument(),o=e.modal===!0?{modal:!0}:{type:e.type};return n.createComponent(c,n.mergeProps(o,{get mount(){return t.body},get element(){return e.element},get idPrefix(){return e.idPrefix??"host-portal"},get open(){return e.open},get onLayer(){return e.onLayer},get children(){return e.children}}))}function m(e,t){return e===!0&&t===!1}function y(e){return e!==null&&typeof e.focus=="function"?(e.focus(),!0):!1}exports.HostPortal=d;exports.OverlayPortal=c;exports.restoreFocusTo=y;exports.shouldRestoreFocusOnDialogClose=m;
@@ -1 +0,0 @@
1
- "use strict";const _=require("solid-js"),F=require("./rendererLogging-Dt5FZ8mq.cjs"),y=F.getLogger("DisplayOwner");let s=null;function m(e){s=e,a=!1}const t=[],[W,v]=_.createSignal(null);let o,d=null,c=0,a=!1,l=0;function D(){d=null,c=0,a=!1,l=0,o!==void 0&&(clearTimeout(o),o=void 0)}function L(){var i;if(a)return;const e=s;typeof window>"u"||!e||((i=e.available)==null?void 0:i.call(e))===!1||(a=!0,e.onFocusChanged(n=>{n.revision>=l&&(l=n.revision,d=n.focusedWindowId,w())}),e.getFocusState().then(n=>{n.windowId&&(c=n.windowId),n.revision>=l&&(l=n.revision,d=n.focusedWindowId,w())}).catch(()=>{}))}function I(e){var i;if(L(),d!==null){if(e===window)return c!==0&&d===c;const n=e;return typeof n.__vokril_window_id=="number"?n.__vokril_window_id===d:!1}return!!((i=e.document)!=null&&i.hasFocus())}function g(){var i,n;const e=t.filter(({win:r})=>!r.closed);return((i=e.find(({win:r})=>I(r)))==null?void 0:i.win)??((n=e[0])==null?void 0:n.win)??null}function w(){o===void 0&&(o=setTimeout(()=>{o=void 0,v(()=>g())},0))}function b(e){var p;let i=t.find(u=>u.win===e);if(i)i.references++;else if(i={win:e,references:1,onFocusChange:w},t.push(i),e.addEventListener("focus",i.onFocusChange),e.addEventListener("blur",i.onFocusChange),typeof window<"u"&&e!==window){const u=e,h=((p=s==null?void 0:s.hostWindowId)==null?void 0:p.call(s,e))??null;typeof u.__vokril_window_id!="number"&&h&&h.then(f=>{f!==null&&(u.__vokril_window_id=f,w())},f=>y.warn("aux window id could not be read; display owner stays unresolved",f))}v(()=>g());const n=i;let r=!1;return{ownsDisplay:()=>W()===e,dispose:()=>{r||(r=!0,n.references--,n.references===0&&(e.removeEventListener("focus",n.onFocusChange),e.removeEventListener("blur",n.onFocusChange),t.splice(t.indexOf(n),1)),t.length===0&&(clearTimeout(o),o=void 0),v(()=>g()))}}}exports.configureDisplayFocusSource=m;exports.registerDisplayHost=b;exports.resetDisplayOwnerForTesting=D;
@@ -1,75 +0,0 @@
1
- import { createSignal as _ } from "solid-js";
2
- import { g as m } from "./rendererLogging-gAhiHWkA.js";
3
- const F = m("DisplayOwner");
4
- let r = null;
5
- function C(e) {
6
- r = e, a = !1;
7
- }
8
- const t = [], [y, w] = _(null);
9
- let i, d = null, c = 0, a = !1, l = 0;
10
- function x() {
11
- d = null, c = 0, a = !1, l = 0, i !== void 0 && (clearTimeout(i), i = void 0);
12
- }
13
- function W() {
14
- var o;
15
- if (a) return;
16
- const e = r;
17
- typeof window > "u" || !e || ((o = e.available) == null ? void 0 : o.call(e)) === !1 || (a = !0, e.onFocusChanged((n) => {
18
- n.revision >= l && (l = n.revision, d = n.focusedWindowId, v());
19
- }), e.getFocusState().then((n) => {
20
- n.windowId && (c = n.windowId), n.revision >= l && (l = n.revision, d = n.focusedWindowId, v());
21
- }).catch(() => {
22
- }));
23
- }
24
- function I(e) {
25
- var o;
26
- if (W(), d !== null) {
27
- if (e === window)
28
- return c !== 0 && d === c;
29
- const n = e;
30
- return typeof n.__vokril_window_id == "number" ? n.__vokril_window_id === d : !1;
31
- }
32
- return !!((o = e.document) != null && o.hasFocus());
33
- }
34
- function g() {
35
- var o, n;
36
- const e = t.filter(({ win: s }) => !s.closed);
37
- return ((o = e.find(({ win: s }) => I(s))) == null ? void 0 : o.win) ?? ((n = e[0]) == null ? void 0 : n.win) ?? null;
38
- }
39
- function v() {
40
- i === void 0 && (i = setTimeout(() => {
41
- i = void 0, w(() => g());
42
- }, 0));
43
- }
44
- function D(e) {
45
- var p;
46
- let o = t.find((u) => u.win === e);
47
- if (o)
48
- o.references++;
49
- else if (o = { win: e, references: 1, onFocusChange: v }, t.push(o), e.addEventListener("focus", o.onFocusChange), e.addEventListener("blur", o.onFocusChange), typeof window < "u" && e !== window) {
50
- const u = e, h = ((p = r == null ? void 0 : r.hostWindowId) == null ? void 0 : p.call(r, e)) ?? null;
51
- typeof u.__vokril_window_id != "number" && h && h.then(
52
- (f) => {
53
- f !== null && (u.__vokril_window_id = f, v());
54
- },
55
- (f) => F.warn(
56
- "aux window id could not be read; display owner stays unresolved",
57
- f
58
- )
59
- );
60
- }
61
- w(() => g());
62
- const n = o;
63
- let s = !1;
64
- return {
65
- ownsDisplay: () => y() === e,
66
- dispose: () => {
67
- s || (s = !0, n.references--, n.references === 0 && (e.removeEventListener("focus", n.onFocusChange), e.removeEventListener("blur", n.onFocusChange), t.splice(t.indexOf(n), 1)), t.length === 0 && (clearTimeout(i), i = void 0), w(() => g()));
68
- }
69
- };
70
- }
71
- export {
72
- x as a,
73
- C as c,
74
- D as r
75
- };
@@ -1 +0,0 @@
1
- export declare const preferenceNotificationSamples: import("../index.cjs").NotificationScenarioDescriptor[];
@@ -1 +0,0 @@
1
- export declare const preferenceNotificationSamples: import("../index.js").NotificationScenarioDescriptor[];
@@ -1 +0,0 @@
1
- "use strict";const l=require("solid-js/web"),v=require("solid-js"),b=require("./kitHost-BfJExE1G.cjs"),A=require("./displayOwner-eYQHHvjt.cjs"),E=require("./prefersReducedMotion-BQp-Q4UR.cjs"),w=require("./keys-BeeC5_RZ.cjs"),x="vk_announcerRoot_MEbhX",D="vk_srOnly_qR-Nx",T={announcerRoot:x,srOnly:D};var M=l.template("<div><div role=status aria-live=polite aria-atomic=true></div><div role=alert aria-live=assertive aria-atomic=true>");const C=e=>{let o;const[t,i]=v.createSignal(""),[d,f]=v.createSignal(""),{announcer:u}=b.useKitHost();return v.onMount(()=>{const r=o.ownerDocument.defaultView;if(!r)return;const a=A.registerDisplayHost(r);let n;v.createEffect(()=>{a.ownsDisplay()||(clearTimeout(n),n=void 0,i(""),f(""))});const p=u.onDidAnnounce(s=>{if(a.ownsDisplay())if(s.politeness==="assertive")clearTimeout(n),n=void 0,f(s.message);else{const m=e.debounceMs??50;m>0?(clearTimeout(n),n=setTimeout(()=>{a.ownsDisplay()&&i(s.message)},m)):i(s.message)}}),c=u.onDidClear(s=>{(s==="polite"||s==="all")&&(clearTimeout(n),n=void 0,i("")),(s==="assertive"||s==="all")&&f("")});v.onCleanup(()=>{clearTimeout(n),p.dispose(),c.dispose(),a.dispose()})}),(()=>{var r=M(),a=r.firstChild,n=a.nextSibling,p=o;return typeof p=="function"?l.use(p,r):o=r,l.spread(r,l.mergeProps(()=>E.modalBackgroundExemption("live-region"),{get class(){return T.announcerRoot}}),!1,!0),l.insert(a,t),l.insert(n,d),l.effect(c=>{var s=T.srOnly,m=T.srOnly;return s!==c.e&&l.className(a,c.e=s),m!==c.t&&l.className(n,c.t=m),c},{e:void 0,t:void 0}),r})()};function k(e,o,t){return o!==e?"none":t==="asc"?"ascending":"descending"}function I(e){let o="",t=null;const i=()=>{o="",t&&(clearTimeout(t),t=null)};return{push(d){return o+=d,t&&clearTimeout(t),t=setTimeout(i,e.timeoutMs),o},reset:i,dispose:i}}function g(e,o,t){return`${e}-cell-${o}-${t}`}function _(e){const{gridId:o,label:t,cursor:i,startRowIndex:d}=e;return{"aria-label":t,"aria-activedescendant":i===null?void 0:g(o,d+i.row,i.col)}}const y=new Set;function h(e){if(y.has(e))return()=>{};y.add(e);const o=e.document,t=u=>{o.documentElement.getAttribute("data-focus-modality")!==u&&o.documentElement.setAttribute("data-focus-modality",u)};t("pointer");const i=()=>{t("pointer")},d=()=>{t("pointer")},f=u=>{var m;if(["Shift","Control","Alt","Meta"].includes(u.key))return;const r=u.target,a=(m=r==null?void 0:r.tagName)==null?void 0:m.toUpperCase(),n=a==="INPUT",p=n?(r.type||"").toLowerCase():"",c=n&&["checkbox","radio","range","button","submit","reset","file","color","image"].includes(p);(n&&!c||a==="TEXTAREA"||r!=null&&r.isContentEditable)&&!w.isKey(u,"Tab")||t("keyboard")};return e.addEventListener("pointerdown",i,{capture:!0,passive:!0}),e.addEventListener("mousedown",d,{capture:!0,passive:!0}),e.addEventListener("keydown",f,{capture:!0,passive:!0}),()=>{y.delete(e),e.removeEventListener("pointerdown",i,{capture:!0}),e.removeEventListener("mousedown",d,{capture:!0}),e.removeEventListener("keydown",f,{capture:!0})}}function R(){y.clear(),typeof document<"u"&&document.documentElement.removeAttribute("data-focus-modality")}exports.AriaAnnouncer=C;exports._resetFocusModalityForTests=R;exports.buildGridContainerAria=_;exports.columnAriaSort=k;exports.createTypeahead=I;exports.gridCellDomId=g;exports.initFocusModality=h;