@vokril/ui-solid 0.13.0 → 0.18.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 (585) hide show
  1. package/CHANGELOG.md +52 -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-BH7c1cbU.js +3968 -0
  8. package/dist/CommandPalette-Dfb4V-Hb.cjs +2 -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/settings/settingsTypes.d.cts +5 -0
  76. package/dist/_internal/platform/settings/settingsTypes.d.ts +5 -0
  77. package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
  78. package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
  79. package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
  80. package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
  81. package/dist/a11y/index.cjs +1 -1
  82. package/dist/a11y/index.js +1 -1
  83. package/dist/actions-DtaFGwh2.cjs +1 -0
  84. package/dist/actions-wwAHs3ZU.js +16 -0
  85. package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
  86. package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
  87. package/dist/async/createGuardedListLoader.d.cts +3 -0
  88. package/dist/async/createGuardedListLoader.d.ts +3 -0
  89. package/dist/charts/index.cjs +1 -1
  90. package/dist/charts/index.js +1 -1
  91. package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
  92. package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
  93. package/dist/createResizableSidebar-CfFxQUny.js +449 -0
  94. package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
  95. package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  96. package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
  97. package/dist/defineSettings-D0CSMcyy.cjs +1 -0
  98. package/dist/defineSettings-Di1sG81q.js +407 -0
  99. package/dist/descriptor-CaHgh9N_.cjs +1 -0
  100. package/dist/{descriptor-CrCl515S.js → descriptor-eGtcBtpI.js} +5 -5
  101. package/dist/desktop/index.cjs +1 -1
  102. package/dist/desktop/index.js +500 -426
  103. package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
  104. package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
  105. package/dist/electronBridge-BK92fycw.js +235 -0
  106. package/dist/electronBridge-cT0xww92.cjs +1 -0
  107. package/dist/errorHandler-BvPGW-Nm.js +373 -0
  108. package/dist/errorHandler-DoDAPpv2.cjs +3 -0
  109. package/dist/feedback/Loader.d.cts +6 -1
  110. package/dist/feedback/Loader.d.ts +6 -1
  111. package/dist/feedback/createPreference.d.cts +4 -1
  112. package/dist/feedback/createPreference.d.ts +4 -1
  113. package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
  114. package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
  115. package/dist/feedback/index.cjs +1 -1
  116. package/dist/feedback/index.js +37 -38
  117. package/dist/feedback/readFailureText.d.cts +20 -1
  118. package/dist/feedback/readFailureText.d.ts +20 -1
  119. package/dist/focusModality-BISb6-yg.cjs +1 -0
  120. package/dist/focusModality-FoLPWF-_.js +135 -0
  121. package/dist/forms/index.cjs +1 -1
  122. package/dist/forms/index.js +9 -9
  123. package/dist/grid/index.cjs +1 -1
  124. package/dist/grid/index.js +1 -1
  125. package/dist/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  126. package/dist/{server/headerIconOverrides-B7TQUBmD.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
  127. package/dist/host/index.cjs +1 -1
  128. package/dist/host/index.d.cts +14 -16
  129. package/dist/host/index.d.ts +14 -16
  130. package/dist/host/index.js +53 -90
  131. package/dist/host/kitHost.d.cts +42 -0
  132. package/dist/host/kitHost.d.ts +42 -0
  133. package/dist/host/window.d.cts +3 -11
  134. package/dist/host/window.d.ts +3 -11
  135. package/dist/i18n/index.cjs +1 -1
  136. package/dist/i18n/index.js +1 -1
  137. package/dist/{server/i18n-D9k9xwuD.js → i18n-DW9kcu0G.js} +180 -178
  138. package/dist/i18n-DZ0JlZal.cjs +4 -0
  139. package/dist/index.cjs +1 -1
  140. package/dist/index.d.cts +1 -1
  141. package/dist/index.d.ts +1 -1
  142. package/dist/index.js +665 -738
  143. package/dist/isOneOf-9EXOSYJu.cjs +1 -0
  144. package/dist/isOneOf-Dtomuazg.js +6 -0
  145. package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
  146. package/dist/keys-GMxY2wcl.cjs +1 -0
  147. package/dist/layout/createResizableSidebar.d.cts +14 -0
  148. package/dist/layout/createResizableSidebar.d.ts +14 -0
  149. package/dist/layout/index.cjs +1 -1
  150. package/dist/layout/index.js +3 -3
  151. package/dist/layout/sidebarWidthClamp.d.cts +1 -1
  152. package/dist/layout/sidebarWidthClamp.d.ts +1 -1
  153. package/dist/mainRealmDom-C12lr9lm.js +171 -0
  154. package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
  155. package/dist/navigation/index.cjs +1 -1
  156. package/dist/navigation/index.js +1 -1
  157. package/dist/notifications/NotificationHost.d.cts +7 -1
  158. package/dist/notifications/NotificationHost.d.ts +7 -1
  159. package/dist/notifications/NotificationItem.d.cts +48 -15
  160. package/dist/notifications/NotificationItem.d.ts +48 -15
  161. package/dist/notifications/catalogAdapter.d.cts +28 -6
  162. package/dist/notifications/catalogAdapter.d.ts +28 -6
  163. package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
  164. package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
  165. package/dist/notifications/customSoundCache.d.cts +24 -24
  166. package/dist/notifications/customSoundCache.d.ts +24 -24
  167. package/dist/notifications/emailDigest.d.cts +34 -16
  168. package/dist/notifications/emailDigest.d.ts +34 -16
  169. package/dist/notifications/errorActionButtons.d.cts +18 -1
  170. package/dist/notifications/errorActionButtons.d.ts +18 -1
  171. package/dist/notifications/fireNotification.d.cts +27 -17
  172. package/dist/notifications/fireNotification.d.ts +27 -17
  173. package/dist/notifications/index.cjs +1 -1
  174. package/dist/notifications/index.d.cts +6 -12
  175. package/dist/notifications/index.d.ts +6 -12
  176. package/dist/notifications/index.js +64 -104
  177. package/dist/notifications/nativeEngine.d.cts +18 -15
  178. package/dist/notifications/nativeEngine.d.ts +18 -15
  179. package/dist/notifications/notificationAnalytics.d.cts +11 -6
  180. package/dist/notifications/notificationAnalytics.d.ts +11 -6
  181. package/dist/notifications/notificationAudio.d.cts +30 -23
  182. package/dist/notifications/notificationAudio.d.ts +30 -23
  183. package/dist/notifications/notificationCardServices.d.cts +23 -0
  184. package/dist/notifications/notificationCardServices.d.ts +23 -0
  185. package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
  186. package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
  187. package/dist/notifications/notificationOverlaySync.d.cts +7 -2
  188. package/dist/notifications/notificationOverlaySync.d.ts +7 -2
  189. package/dist/notifications/notificationService.d.cts +101 -0
  190. package/dist/notifications/notificationService.d.ts +101 -0
  191. package/dist/notifications/notificationTimeline.d.cts +47 -49
  192. package/dist/notifications/notificationTimeline.d.ts +47 -49
  193. package/dist/notifications/notifications.notifications.d.cts +0 -4
  194. package/dist/notifications/notifications.notifications.d.ts +0 -4
  195. package/dist/notifications/toast.d.cts +24 -28
  196. package/dist/notifications/toast.d.ts +24 -28
  197. package/dist/notifications/webhookDelivery.d.cts +12 -17
  198. package/dist/notifications/webhookDelivery.d.ts +12 -17
  199. package/dist/overlay/ConfirmDialog.d.cts +16 -17
  200. package/dist/overlay/ConfirmDialog.d.ts +16 -17
  201. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
  202. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
  203. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
  204. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
  205. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
  206. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
  207. package/dist/overlay/dialogShellKeyIntent.d.cts +3 -3
  208. package/dist/overlay/dialogShellKeyIntent.d.ts +3 -3
  209. package/dist/overlay/index.cjs +1 -1
  210. package/dist/overlay/index.d.cts +2 -3
  211. package/dist/overlay/index.d.ts +2 -3
  212. package/dist/overlay/index.js +114 -119
  213. package/dist/pageTourState-BcBF8w89.js +516 -0
  214. package/dist/pageTourState-CrbEU7QW.cjs +5 -0
  215. package/dist/server/{AttributeGrid-UJtHTip2.js → AttributeGrid-B2s_rp00.js} +3 -3
  216. package/dist/server/{AttributeGrid-CyMsR4GC.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
  217. package/dist/server/{Button-BesBg6eW.js → Button-Ck03cbUs.js} +1 -1
  218. package/dist/server/{Button-PZulLru4.cjs → Button-DWFMF5y0.cjs} +1 -1
  219. package/dist/server/CommandPalette-DwlWZI1s.js +3224 -0
  220. package/dist/server/CommandPalette-VewDIghb.cjs +1 -0
  221. package/dist/server/{CopyButton-D_sN2Ggp.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
  222. package/dist/server/{CopyButton-I5xsXV07.js → CopyButton-UvtFwOtA.js} +1 -1
  223. package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
  224. package/dist/server/{DateRangePicker-DGUl2aE3.js → DateRangePicker-Cr58DczM.js} +158 -143
  225. package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
  226. package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
  227. package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
  228. package/dist/server/HostPortal-X1iw719T.js +33 -0
  229. package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
  230. package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
  231. package/dist/server/{IconPicker-BlD0VBca.cjs → IconPicker-9DfOxql6.cjs} +1 -1
  232. package/dist/server/{IconPicker-o8hUxjYU.js → IconPicker-N0wub1Aj.js} +4 -4
  233. package/dist/server/Modal-D__GTo-n.cjs +1 -0
  234. package/dist/server/{Modal-DmF6CwfY.js → Modal-DeQjfpkG.js} +3 -3
  235. package/dist/server/{PageSkeleton-BigztY5i.js → PageSkeleton-C41pXOcr.js} +460 -458
  236. package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
  237. package/dist/server/{SearchableSelect-Dn-cssWx.js → SearchableSelect-CEcuBnge.js} +2 -2
  238. package/dist/server/{SearchableSelect-R0Dwz9rz.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
  239. package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
  240. package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
  241. package/dist/server/{Stepper-dBm8YaCw.cjs → Stepper--pusyxso.cjs} +1 -1
  242. package/dist/server/{Stepper-BaQ6Kexj.js → Stepper-B_eL85hK.js} +1 -1
  243. package/dist/server/{TimeSeriesChart-BbbfDyeA.js → TimeSeriesChart-aSHquoBv.js} +1 -1
  244. package/dist/server/{TimeSeriesChart-qPgMkkaW.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
  245. package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
  246. package/dist/server/{ToggleButton-C0_QpslP.js → ToggleButton-DjlWwgLJ.js} +4 -4
  247. package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
  248. package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
  249. package/dist/server/a11y/index.cjs +1 -1
  250. package/dist/server/a11y/index.js +1 -1
  251. package/dist/server/actions-DtaFGwh2.cjs +1 -0
  252. package/dist/server/actions-wwAHs3ZU.js +16 -0
  253. package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
  254. package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
  255. package/dist/server/charts/index.cjs +1 -1
  256. package/dist/server/charts/index.js +1 -1
  257. package/dist/server/{format-CYCi8g4r.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
  258. package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
  259. package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
  260. package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
  261. package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  262. package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
  263. package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
  264. package/dist/server/defineSettings-Di1sG81q.js +407 -0
  265. package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
  266. package/dist/server/{descriptor-DtZDXBe6.js → descriptor-GLoKPx6x.js} +4 -4
  267. package/dist/server/desktop/index.cjs +1 -1
  268. package/dist/server/desktop/index.js +389 -315
  269. package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
  270. package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
  271. package/dist/server/electronBridge-BK92fycw.js +235 -0
  272. package/dist/server/electronBridge-cT0xww92.cjs +1 -0
  273. package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
  274. package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
  275. package/dist/server/feedback/index.cjs +1 -1
  276. package/dist/server/feedback/index.js +37 -38
  277. package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
  278. package/dist/server/{focusModality-BCX5GH0P.js → focusModality-nWNVX3JG.js} +41 -41
  279. package/dist/server/forms/index.cjs +1 -1
  280. package/dist/server/forms/index.js +7 -7
  281. package/dist/server/grid/index.cjs +1 -1
  282. package/dist/server/grid/index.js +1 -1
  283. package/dist/server/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  284. package/dist/{headerIconOverrides-B7TQUBmD.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
  285. package/dist/server/host/index.cjs +1 -1
  286. package/dist/server/host/index.js +53 -90
  287. package/dist/server/i18n/index.cjs +1 -1
  288. package/dist/server/i18n/index.js +1 -1
  289. package/dist/{i18n-D9k9xwuD.js → server/i18n-DW9kcu0G.js} +180 -178
  290. package/dist/server/i18n-DZ0JlZal.cjs +4 -0
  291. package/dist/server/{index-B4epvfiq.js → index-BNYr6EIW.js} +89 -90
  292. package/dist/server/index-Cqod09d_.cjs +1 -0
  293. package/dist/server/index.cjs +1 -1
  294. package/dist/server/index.js +825 -898
  295. package/dist/server/layout/index.cjs +1 -1
  296. package/dist/server/layout/index.js +3 -3
  297. package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
  298. package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
  299. package/dist/server/navigation/index.cjs +1 -1
  300. package/dist/server/navigation/index.js +1 -1
  301. package/dist/server/notifications/index.cjs +1 -1
  302. package/dist/server/notifications/index.js +63 -103
  303. package/dist/server/overlay/index.cjs +1 -1
  304. package/dist/server/overlay/index.js +115 -120
  305. package/dist/server/pageTourState-BcBF8w89.js +516 -0
  306. package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
  307. package/dist/server/settings/index.cjs +1 -1
  308. package/dist/server/settings/index.js +23 -24
  309. package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
  310. package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
  311. package/dist/server/tokens/index.cjs +1 -1
  312. package/dist/server/tokens/index.js +19 -20
  313. package/dist/server/tree/index.cjs +1 -1
  314. package/dist/server/tree/index.js +1 -1
  315. package/dist/server/useListCommands-BO_XrRHj.js +38 -0
  316. package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
  317. package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  318. package/dist/server/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  319. package/dist/server/window-CUK6x8Pj.js +36 -0
  320. package/dist/server/window-_BfSgFGO.cjs +1 -0
  321. package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
  322. package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
  323. package/dist/settings/index.cjs +1 -1
  324. package/dist/settings/index.d.cts +1 -1
  325. package/dist/settings/index.d.ts +1 -1
  326. package/dist/settings/index.js +23 -24
  327. package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
  328. package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
  329. package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
  330. package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
  331. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
  332. package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
  333. package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
  334. package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +0 -10
  335. package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
  336. package/dist/solid/_internal/contract/catalogNotify.js +1 -24
  337. package/dist/solid/_internal/contract/hostErrorText.js +1 -14
  338. package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
  339. package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
  340. package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
  341. package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
  342. package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
  343. package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
  344. package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
  345. package/dist/solid/a11y/AriaAnnouncer.jsx +2 -3
  346. package/dist/solid/async/createGuardedListLoader.js +1 -1
  347. package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
  348. package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
  349. package/dist/solid/feedback/Loader.jsx +1 -2
  350. package/dist/solid/feedback/createPreference.js +3 -2
  351. package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
  352. package/dist/solid/feedback/preference.notifications.js +1 -2
  353. package/dist/solid/feedback/readFailureText.js +1 -2
  354. package/dist/solid/host/index.js +8 -16
  355. package/dist/solid/host/window.js +15 -22
  356. package/dist/solid/i18n/i18n.js +5 -6
  357. package/dist/solid/index.js +0 -1
  358. package/dist/solid/layout/createResizableSidebar.js +15 -23
  359. package/dist/solid/notifications/NotificationHost.jsx +21 -29
  360. package/dist/solid/notifications/NotificationItem.jsx +28 -104
  361. package/dist/solid/notifications/NotificationPanel.jsx +33 -44
  362. package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
  363. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  364. package/dist/solid/notifications/catalogAdapter.js +61 -62
  365. package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
  366. package/dist/solid/notifications/customSoundCache.js +26 -21
  367. package/dist/solid/notifications/emailDigest.js +74 -86
  368. package/dist/solid/notifications/errorActionButtons.js +6 -11
  369. package/dist/solid/notifications/fireNotification.js +14 -19
  370. package/dist/solid/notifications/index.js +3 -12
  371. package/dist/solid/notifications/nativeEngine.js +6 -19
  372. package/dist/solid/notifications/notificationAnalytics.js +32 -38
  373. package/dist/solid/notifications/notificationAudio.js +77 -74
  374. package/dist/solid/notifications/notificationCardServices.js +34 -0
  375. package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
  376. package/dist/solid/notifications/notificationOverlaySync.js +18 -23
  377. package/dist/solid/notifications/notificationService.js +135 -0
  378. package/dist/solid/notifications/notificationTimeline.js +117 -124
  379. package/dist/solid/notifications/notifications.notifications.js +3 -22
  380. package/dist/solid/notifications/toast.js +168 -213
  381. package/dist/solid/notifications/webhookDelivery.js +27 -53
  382. package/dist/solid/overlay/ConfirmDialog.jsx +14 -58
  383. package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
  384. package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
  385. package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
  386. package/dist/solid/overlay/index.js +0 -3
  387. package/dist/solid/settings/index.js +1 -1
  388. package/dist/solid/tokens/index.js +1 -1
  389. package/dist/solid/tokens/palette/themeRegistry.js +20 -22
  390. package/dist/stateDbStore-CThsVch-.cjs +1 -0
  391. package/dist/stateDbStore-DHZFUIEt.js +57 -0
  392. package/dist/style.css +1 -1
  393. package/dist/tokens/index.cjs +1 -1
  394. package/dist/tokens/index.d.cts +1 -1
  395. package/dist/tokens/index.d.ts +1 -1
  396. package/dist/tokens/index.js +19 -20
  397. package/dist/tokens/palette/themeRegistry.d.cts +17 -22
  398. package/dist/tokens/palette/themeRegistry.d.ts +17 -22
  399. package/dist/{tooltipCoordinator-Zim5pWzk.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
  400. package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
  401. package/dist/tree/index.cjs +1 -1
  402. package/dist/tree/index.js +1 -1
  403. package/dist/ui.css +1 -1
  404. package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
  405. package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
  406. package/dist/useListCommands-BO_XrRHj.js +38 -0
  407. package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
  408. package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  409. package/dist/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  410. package/dist/window-CUK6x8Pj.js +36 -0
  411. package/dist/window-_BfSgFGO.cjs +1 -0
  412. package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
  413. package/dist/windowRegistry-DeGmXt6W.js +20 -0
  414. package/package.json +1 -1
  415. package/dist/CommandPalette-DeEImZ8D.cjs +0 -2
  416. package/dist/CommandPalette-yqvM9AuU.js +0 -3897
  417. package/dist/DateRangePicker-7t4JKCp1.cjs +0 -9
  418. package/dist/GuidedTour-C_Lxe1t_.cjs +0 -21
  419. package/dist/GuidedTour-lsljVkPL.js +0 -11216
  420. package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
  421. package/dist/HostWindowContext-KL4U1qUv.js +0 -40
  422. package/dist/Modal-CJhd27dM.cjs +0 -1
  423. package/dist/PageSkeleton-SYSL4Adl.cjs +0 -30
  424. package/dist/Progress-B5YmNeyU.js +0 -56
  425. package/dist/Progress-BNy0wsJl.cjs +0 -1
  426. package/dist/StatusBarNotificationBell-B1bvE_SO.js +0 -2140
  427. package/dist/StatusBarNotificationBell-Cqo6cZbO.cjs +0 -4
  428. package/dist/ToggleButton-BmwDfsn4.cjs +0 -1
  429. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
  430. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
  431. package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
  432. package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
  433. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
  434. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
  435. package/dist/_internal/base/listenerDispatch.d.cts +0 -14
  436. package/dist/_internal/base/listenerDispatch.d.ts +0 -14
  437. package/dist/_internal/contract/appName.d.cts +0 -10
  438. package/dist/_internal/contract/appName.d.ts +0 -10
  439. package/dist/_internal/contract/hostText.d.cts +0 -25
  440. package/dist/_internal/contract/hostText.d.ts +0 -25
  441. package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
  442. package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
  443. package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
  444. package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
  445. package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
  446. package/dist/catalogNotify-BcY9oqVy.js +0 -1223
  447. package/dist/catalogNotify-DacJjC-p.cjs +0 -27
  448. package/dist/createResizableSidebar-BIhyo5zN.cjs +0 -1
  449. package/dist/createResizableSidebar-Cqv-1IXG.js +0 -461
  450. package/dist/defineSettings-CcYXt2Jf.js +0 -391
  451. package/dist/defineSettings-yHQdUwxI.cjs +0 -1
  452. package/dist/descriptor-Dmch-3AF.cjs +0 -1
  453. package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
  454. package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
  455. package/dist/displayOwner-eYQHHvjt.cjs +0 -1
  456. package/dist/displayOwner-mT80Oyi-.js +0 -75
  457. package/dist/feedback/preference.notifications.samples.d.cts +0 -1
  458. package/dist/feedback/preference.notifications.samples.d.ts +0 -1
  459. package/dist/focusModality-BNjYldd9.cjs +0 -1
  460. package/dist/focusModality-DxudpWPs.js +0 -135
  461. package/dist/format-BS7oDguE.js +0 -298
  462. package/dist/format-CuANkXXB.cjs +0 -1
  463. package/dist/i18n-DXXArz-m.cjs +0 -4
  464. package/dist/keys-BeeC5_RZ.cjs +0 -1
  465. package/dist/mainRealmDom-CkoRyNhZ.cjs +0 -1
  466. package/dist/mainRealmDom-kEStLHIY.js +0 -102
  467. package/dist/menuFavorites-BmdM_qV5.js +0 -69
  468. package/dist/menuFavorites-DoDFvtlQ.cjs +0 -1
  469. package/dist/notification-DygvQB_o.cjs +0 -1
  470. package/dist/notificationSuppressions-DGfo2QKG.cjs +0 -1
  471. package/dist/notificationSuppressions-ddyK85cB.js +0 -430
  472. package/dist/notifications/copyToClipboard.d.cts +0 -6
  473. package/dist/notifications/copyToClipboard.d.ts +0 -6
  474. package/dist/notifications/createCopyFlash.d.cts +0 -17
  475. package/dist/notifications/createCopyFlash.d.ts +0 -17
  476. package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
  477. package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
  478. package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
  479. package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
  480. package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
  481. package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
  482. package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
  483. package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
  484. package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
  485. package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
  486. package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
  487. package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
  488. package/dist/overlay/ToastHost.d.cts +0 -7
  489. package/dist/overlay/ToastHost.d.ts +0 -7
  490. package/dist/pageTourState-CIr8ockR.js +0 -92
  491. package/dist/pageTourState-D8Uapyft.cjs +0 -1
  492. package/dist/preferencesCache-Bow6TxP1.js +0 -65
  493. package/dist/preferencesCache-D7mm43_n.cjs +0 -1
  494. package/dist/rendererLogging-Dt5FZ8mq.cjs +0 -7
  495. package/dist/rendererLogging-gAhiHWkA.js +0 -822
  496. package/dist/server/CommandPalette-C8treS8g.cjs +0 -1
  497. package/dist/server/CommandPalette-Dslsq5Ez.js +0 -3155
  498. package/dist/server/DateRangePicker-CDKi9BAf.cjs +0 -9
  499. package/dist/server/GuidedTour-B3T9rAPX.cjs +0 -20
  500. package/dist/server/GuidedTour-DSoSZZby.js +0 -10983
  501. package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
  502. package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
  503. package/dist/server/Modal-CCUwQYso.cjs +0 -1
  504. package/dist/server/PageSkeleton-DdpXfZoC.cjs +0 -30
  505. package/dist/server/Progress-CRbj6nEy.cjs +0 -1
  506. package/dist/server/Progress-nsDy6clG.js +0 -41
  507. package/dist/server/StatusBarNotificationBell-C64Odn2C.js +0 -1974
  508. package/dist/server/StatusBarNotificationBell-DY0Q27su.cjs +0 -4
  509. package/dist/server/ToggleButton-1bNYk35x.cjs +0 -1
  510. package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
  511. package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
  512. package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
  513. package/dist/server/VpTrash-DVBfts9_.js +0 -116
  514. package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
  515. package/dist/server/catalogNotify-MCW2sa2e.cjs +0 -27
  516. package/dist/server/catalogNotify-s3YymAe8.js +0 -1261
  517. package/dist/server/createResizableSidebar-MIzUlfdd.js +0 -299
  518. package/dist/server/createResizableSidebar-TdxLuiY8.cjs +0 -1
  519. package/dist/server/defineSettings-CcYXt2Jf.js +0 -391
  520. package/dist/server/defineSettings-yHQdUwxI.cjs +0 -1
  521. package/dist/server/descriptor-DAyyoF-I.cjs +0 -1
  522. package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
  523. package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
  524. package/dist/server/displayOwner-eYQHHvjt.cjs +0 -1
  525. package/dist/server/displayOwner-mT80Oyi-.js +0 -75
  526. package/dist/server/focusModality-BKgJWRlC.cjs +0 -1
  527. package/dist/server/format-WfZycMBL.cjs +0 -1
  528. package/dist/server/i18n-DXXArz-m.cjs +0 -4
  529. package/dist/server/index-DlQYWckZ.cjs +0 -1
  530. package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
  531. package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
  532. package/dist/server/menuFavorites-BmdM_qV5.js +0 -69
  533. package/dist/server/menuFavorites-DoDFvtlQ.cjs +0 -1
  534. package/dist/server/notification-DygvQB_o.cjs +0 -1
  535. package/dist/server/notificationSuppressions-B-LKq9ZU.js +0 -391
  536. package/dist/server/notificationSuppressions-Dcc2WFBZ.cjs +0 -1
  537. package/dist/server/pageTourState-CIr8ockR.js +0 -92
  538. package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
  539. package/dist/server/preferencesCache-Bow6TxP1.js +0 -65
  540. package/dist/server/preferencesCache-D7mm43_n.cjs +0 -1
  541. package/dist/server/rendererLogging-Dt5FZ8mq.cjs +0 -7
  542. package/dist/server/rendererLogging-gAhiHWkA.js +0 -822
  543. package/dist/server/settingsSearchContributor-CRZsl2Q_.js +0 -199
  544. package/dist/server/settingsSearchContributor-DH8UFpp2.cjs +0 -1
  545. package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
  546. package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
  547. package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
  548. package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
  549. package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
  550. package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  551. package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  552. package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  553. package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
  554. package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
  555. package/dist/settingsSearchContributor-DWP5dwn3.js +0 -199
  556. package/dist/settingsSearchContributor-Dltbs1j_.cjs +0 -1
  557. package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
  558. package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
  559. package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
  560. package/dist/solid/_internal/base/listenerDispatch.js +0 -12
  561. package/dist/solid/_internal/contract/appName.js +0 -7
  562. package/dist/solid/_internal/contract/hostText.js +0 -15
  563. package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
  564. package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
  565. package/dist/solid/feedback/preference.notifications.samples.js +0 -5
  566. package/dist/solid/notifications/copyToClipboard.js +0 -21
  567. package/dist/solid/notifications/createCopyFlash.js +0 -26
  568. package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
  569. package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
  570. package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
  571. package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
  572. package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
  573. package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
  574. package/dist/solid/overlay/ToastHost.jsx +0 -1
  575. package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
  576. package/dist/stateDbStore-THFfFGa0.cjs +0 -1
  577. package/dist/tooltipCoordinator-Causlcgt.cjs +0 -1
  578. package/dist/useListCommands-Bf7aOTXZ.js +0 -61
  579. package/dist/useListCommands-ucngC3t4.cjs +0 -1
  580. package/dist/useSettingsSubscription-cu943hND.js +0 -11
  581. package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  582. package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  583. package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  584. package/dist/windowRegistry-Bk5lXIVd.js +0 -62
  585. package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
@@ -1,199 +0,0 @@
1
- import { createSignal as T, useContext as F, onCleanup as Q, createRenderEffect as P } from "solid-js";
2
- import { t as f, l as q } from "./i18n-D9k9xwuD.js";
3
- import { F as K } from "./notificationSuppressions-ddyK85cB.js";
4
- import { W as M } from "./visibleBrowserRegistry-Dw2Y4y_I.js";
5
- const J = "SCHEMA", [U, Y] = T(null);
6
- function ce(c) {
7
- Y(() => c);
8
- }
9
- const z = 2, G = 200, E = 40;
10
- function N(c, d) {
11
- const e = c.toLowerCase(), a = d.toLowerCase();
12
- return e === a ? 9 : e.startsWith(a) ? 7 : e.includes(a) ? 5 : 0;
13
- }
14
- function ae(c) {
15
- const [d, e] = T([]), [a, r] = T(!1), [u, i] = T(null), o = F(M), p = () => U(), x = () => {
16
- if (!(o != null && o.activeWorkspaceTabId) || !o.workspaceTabs) return null;
17
- const n = o.activeWorkspaceTabId();
18
- return o.workspaceTabs().find((m) => m.id === n) ?? null;
19
- }, k = () => {
20
- var n, m, y;
21
- return ((m = (n = p()) == null ? void 0 : n.getWorkspaceId) == null ? void 0 : m.call(n)) ?? ((y = x()) == null ? void 0 : y.workspaceId) ?? null;
22
- }, B = () => {
23
- var n;
24
- return !!((n = p()) != null && n.getWorkspaceId || o != null && o.workspaceTabs);
25
- }, O = () => {
26
- var n;
27
- return !!((n = p()) != null && n.hasActiveWorkspace()) && (!B() || !!k());
28
- }, _ = () => {
29
- var n;
30
- return ((n = p()) == null ? void 0 : n.getSelectedSchema()) ?? "";
31
- };
32
- let j = 0, g;
33
- const $ = () => {
34
- g !== void 0 && (clearTimeout(g), g = void 0);
35
- };
36
- return Q(() => {
37
- $(), j += 1;
38
- }), P(() => {
39
- const n = c.enabled(), m = c.query().trim();
40
- $();
41
- const y = ++j;
42
- if (!n || !O()) {
43
- e([]), r(!1), i(null);
44
- return;
45
- }
46
- const t = p(), l = (t == null ? void 0 : t.getSelectedSchema()) ?? "", v = k(), W = (t == null ? void 0 : t.getSchemas()) ?? [], I = l ? [l] : W, C = () => k() === v && p() === t && !!(t != null && t.hasActiveWorkspace()) && (t == null ? void 0 : t.getSelectedSchema()) === l, L = () => y === j && C() && c.enabled();
47
- if (m.length < z) {
48
- if (i(null), r(!1), l && t) {
49
- const b = t.getCachedObjectsForSchema(l);
50
- if (b && b.length > 0) {
51
- const S = b.slice(0, 10).map((h) => ({
52
- id: `db:${l}:${h.objectType}:${h.objectName}`,
53
- kind: "database-object",
54
- title: h.objectName,
55
- description: `${h.objectType} · ${l}`,
56
- detail: l,
57
- category: f("Database"),
58
- objectType: h.objectType,
59
- schema: l,
60
- enabled: !0,
61
- score: 1,
62
- run: () => {
63
- C() && t.openObject(l, h);
64
- }
65
- }));
66
- e(S);
67
- return;
68
- }
69
- }
70
- e([]);
71
- return;
72
- }
73
- if (e([]), I.length === 0) {
74
- r(!1), i(null);
75
- return;
76
- }
77
- r(!0), i(null), g = setTimeout(async () => {
78
- if (L())
79
- try {
80
- let b = [];
81
- if (v && (t != null && t.searchObjects))
82
- b = [
83
- ...await t.searchObjects(v, m, {
84
- limit: E,
85
- schemas: I
86
- })
87
- ];
88
- else if (t && l) {
89
- let s = t.getCachedObjectsForSchema(l);
90
- if (s || (s = await t.loadObjectsForSchema(l)), s) {
91
- const R = m.toLowerCase();
92
- b = s.filter((w) => w.objectName.toLowerCase().includes(R)).slice(0, E).map((w) => ({
93
- owner: l,
94
- objectType: w.objectType,
95
- objectName: w.objectName,
96
- status: w.status
97
- }));
98
- }
99
- }
100
- if (!L()) return;
101
- const S = m.toLowerCase(), h = W.filter((s) => s.toLowerCase().includes(S)).slice(0, 3).map((s) => ({
102
- id: `db:schema:${s}`,
103
- kind: "database-object",
104
- title: s,
105
- description: `${f("Schema")} · ${s}`,
106
- detail: f("Schema"),
107
- category: f("Database"),
108
- objectType: J,
109
- schema: s,
110
- enabled: !0,
111
- score: N(s, m) + 1,
112
- run: () => {
113
- C() && (t == null || t.navigateToSchema(s));
114
- }
115
- })), H = b.filter((s) => I.includes(s.owner)).map((s) => ({
116
- id: `db:${s.owner}:${s.objectType}:${s.objectName}`,
117
- kind: "database-object",
118
- title: s.objectName,
119
- description: `${s.objectType} · ${s.owner}`,
120
- detail: s.owner,
121
- category: f("Database"),
122
- objectType: s.objectType,
123
- schema: s.owner,
124
- enabled: !0,
125
- score: N(s.objectName, m),
126
- run: () => {
127
- C() && (t == null || t.openObject(s.owner, s));
128
- },
129
- rawDbObject: s
130
- }));
131
- e([...h, ...H]), r(!1);
132
- } catch (b) {
133
- if (!L()) return;
134
- const S = K(b, f("Failed to search database objects"));
135
- i(S), r(!1);
136
- }
137
- }, G);
138
- }), {
139
- items: d,
140
- loading: a,
141
- error: u,
142
- hasWorkspaceContext: O,
143
- activeSchema: _
144
- };
145
- }
146
- let D = null;
147
- function oe(c) {
148
- D = c;
149
- }
150
- function V(c, d) {
151
- const e = d.toLowerCase();
152
- return (c.labels ?? []).some((a) => q(a).toLowerCase().includes(e));
153
- }
154
- function X(c, d, e) {
155
- const a = d.toLowerCase(), r = c.label.toLowerCase();
156
- if (r === a) return 8;
157
- if (r.startsWith(a)) return 7;
158
- if (r.includes(a)) return 6;
159
- const u = a.split(/\s+/).filter(Boolean);
160
- return u.length > 1 && u.every((p) => r.includes(p)) ? 5 : c.categoryId.toLowerCase().includes(a) ? 4 : (c.keywords ?? []).some(
161
- (p) => p.toLowerCase().includes(a)
162
- ) ? 3 : (e.matches ?? V)(c, d) ? 2 : 0;
163
- }
164
- function A(c, d, e) {
165
- var r, u;
166
- const a = ((r = e.breadcrumb) == null ? void 0 : r.call(e, c.categoryId)) ?? "";
167
- return {
168
- id: `setting:${c.id}`,
169
- kind: "setting",
170
- title: ((u = e.title) == null ? void 0 : u.call(e, c)) ?? c.label,
171
- description: a || f("Settings"),
172
- category: f("Settings"),
173
- enabled: !0,
174
- score: d,
175
- run: () => {
176
- e.open(c);
177
- },
178
- rawSetting: c
179
- };
180
- }
181
- function re(c, d = 20) {
182
- const e = D;
183
- if (!e) return [];
184
- const a = c.trim(), r = e.items();
185
- if (!a)
186
- return (e.popular ? e.popular(r) : r).slice(0, d).map((o) => A(o, 1, e));
187
- const u = [];
188
- for (const i of r) {
189
- const o = X(i, a, e);
190
- o > 0 && u.push({ item: i, score: o });
191
- }
192
- return u.sort((i, o) => o.score - i.score), u.slice(0, d).map(({ item: i, score: o }) => A(i, o, e));
193
- }
194
- export {
195
- oe as a,
196
- re as b,
197
- ae as c,
198
- ce as s
199
- };
@@ -1 +0,0 @@
1
- "use strict";const S=require("solid-js"),m=require("./i18n-DXXArz-m.cjs"),H=require("./notificationSuppressions-DGfo2QKG.cjs"),P=require("./visibleBrowserRegistry-BTfWUlI1.cjs"),Q="SCHEMA",[F,J]=S.createSignal(null);function K(c){J(()=>c)}const M=2,U=200,W=40;function N(c,u){const e=c.toLowerCase(),a=u.toLowerCase();return e===a?9:e.startsWith(a)?7:e.includes(a)?5:0}function Y(c){const[u,e]=S.createSignal([]),[a,r]=S.createSignal(!1),[d,i]=S.createSignal(null),o=S.useContext(P.WorkspaceTabsContext),h=()=>F(),B=()=>{if(!(o!=null&&o.activeWorkspaceTabId)||!o.workspaceTabs)return null;const n=o.activeWorkspaceTabId();return o.workspaceTabs().find(b=>b.id===n)??null},k=()=>{var n,b,C;return((b=(n=h())==null?void 0:n.getWorkspaceId)==null?void 0:b.call(n))??((C=B())==null?void 0:C.workspaceId)??null},R=()=>{var n;return!!((n=h())!=null&&n.getWorkspaceId||o!=null&&o.workspaceTabs)},L=()=>{var n;return!!((n=h())!=null&&n.hasActiveWorkspace())&&(!R()||!!k())},_=()=>{var n;return((n=h())==null?void 0:n.getSelectedSchema())??""};let j=0,y;const $=()=>{y!==void 0&&(clearTimeout(y),y=void 0)};return S.onCleanup(()=>{$(),j+=1}),S.createRenderEffect(()=>{const n=c.enabled(),b=c.query().trim();$();const C=++j;if(!n||!L()){e([]),r(!1),i(null);return}const t=h(),l=(t==null?void 0:t.getSelectedSchema())??"",v=k(),E=(t==null?void 0:t.getSchemas())??[],I=l?[l]:E,T=()=>k()===v&&h()===t&&!!(t!=null&&t.hasActiveWorkspace())&&(t==null?void 0:t.getSelectedSchema())===l,O=()=>C===j&&T()&&c.enabled();if(b.length<M){if(i(null),r(!1),l&&t){const p=t.getCachedObjectsForSchema(l);if(p&&p.length>0){const g=p.slice(0,10).map(f=>({id:`db:${l}:${f.objectType}:${f.objectName}`,kind:"database-object",title:f.objectName,description:`${f.objectType} · ${l}`,detail:l,category:m.t("Database"),objectType:f.objectType,schema:l,enabled:!0,score:1,run:()=>{T()&&t.openObject(l,f)}}));e(g);return}}e([]);return}if(e([]),I.length===0){r(!1),i(null);return}r(!0),i(null),y=setTimeout(async()=>{if(O())try{let p=[];if(v&&(t!=null&&t.searchObjects))p=[...await t.searchObjects(v,b,{limit:W,schemas:I})];else if(t&&l){let s=t.getCachedObjectsForSchema(l);if(s||(s=await t.loadObjectsForSchema(l)),s){const x=b.toLowerCase();p=s.filter(w=>w.objectName.toLowerCase().includes(x)).slice(0,W).map(w=>({owner:l,objectType:w.objectType,objectName:w.objectName,status:w.status}))}}if(!O())return;const g=b.toLowerCase(),f=E.filter(s=>s.toLowerCase().includes(g)).slice(0,3).map(s=>({id:`db:schema:${s}`,kind:"database-object",title:s,description:`${m.t("Schema")} · ${s}`,detail:m.t("Schema"),category:m.t("Database"),objectType:Q,schema:s,enabled:!0,score:N(s,b)+1,run:()=>{T()&&(t==null||t.navigateToSchema(s))}})),q=p.filter(s=>I.includes(s.owner)).map(s=>({id:`db:${s.owner}:${s.objectType}:${s.objectName}`,kind:"database-object",title:s.objectName,description:`${s.objectType} · ${s.owner}`,detail:s.owner,category:m.t("Database"),objectType:s.objectType,schema:s.owner,enabled:!0,score:N(s.objectName,b),run:()=>{T()&&(t==null||t.openObject(s.owner,s))},rawDbObject:s}));e([...f,...q]),r(!1)}catch(p){if(!O())return;const g=H.errorText(p,m.t("Failed to search database objects"));i(g),r(!1)}},U)}),{items:u,loading:a,error:d,hasWorkspaceContext:L,activeSchema:_}}let A=null;function z(c){A=c}function G(c,u){const e=u.toLowerCase();return(c.labels??[]).some(a=>m.labelText(a).toLowerCase().includes(e))}function V(c,u,e){const a=u.toLowerCase(),r=c.label.toLowerCase();if(r===a)return 8;if(r.startsWith(a))return 7;if(r.includes(a))return 6;const d=a.split(/\s+/).filter(Boolean);return d.length>1&&d.every(h=>r.includes(h))?5:c.categoryId.toLowerCase().includes(a)?4:(c.keywords??[]).some(h=>h.toLowerCase().includes(a))?3:(e.matches??G)(c,u)?2:0}function D(c,u,e){var r,d;const a=((r=e.breadcrumb)==null?void 0:r.call(e,c.categoryId))??"";return{id:`setting:${c.id}`,kind:"setting",title:((d=e.title)==null?void 0:d.call(e,c))??c.label,description:a||m.t("Settings"),category:m.t("Settings"),enabled:!0,score:u,run:()=>{e.open(c)},rawSetting:c}}function X(c,u=20){const e=A;if(!e)return[];const a=c.trim(),r=e.items();if(!a)return(e.popular?e.popular(r):r).slice(0,u).map(o=>D(o,1,e));const d=[];for(const i of r){const o=V(i,a,e);o>0&&d.push({item:i,score:o})}return d.sort((i,o)=>o.score-i.score),d.slice(0,u).map(({item:i,score:o})=>D(i,o,e))}exports.createDatabaseObjectSearch=Y;exports.searchSettings=X;exports.setDatabaseObjectSearchProvider=K;exports.setSettingsSearchSource=z;
@@ -1,10 +0,0 @@
1
- import { createContext, useContext } from 'solid-js';
2
- import { BugIndicatingError } from '../../base/errors/bugIndicatingError';
3
- export const WorkspaceTabsContext = createContext();
4
- export function useWorkspaceTabs() {
5
- const ctx = useContext(WorkspaceTabsContext);
6
- if (!ctx) {
7
- throw new BugIndicatingError('useWorkspaceTabs: missing provider');
8
- }
9
- return ctx;
10
- }
@@ -1,5 +0,0 @@
1
- export const APP_THEME_CHANGE_EVENT = 'app-theme-settings-change';
2
- export function onAppThemeChange(handler) {
3
- window.addEventListener(APP_THEME_CHANGE_EVENT, handler);
4
- return () => window.removeEventListener(APP_THEME_CHANGE_EVENT, handler);
5
- }
@@ -1,15 +0,0 @@
1
- import { createSignal } from 'solid-js';
2
- export const SETTINGS_MODAL_KIND = 'app.settings';
3
- export const SETTINGS_MODAL_ID = 'app.settings';
4
- const [requestedCategory, setRequestedCategory] = createSignal(undefined);
5
- let handler = null;
6
- export function setOpenSettingsHandler(next) {
7
- handler = next;
8
- }
9
- export function settingsCategoryRequest() {
10
- return requestedCategory();
11
- }
12
- export function openSettingsModal(category) {
13
- setRequestedCategory(category);
14
- handler?.(category);
15
- }
@@ -1,12 +0,0 @@
1
- import { getLogger } from '../platform/logging/rendererLogging';
2
- const log = getLogger('ListenerDispatch');
3
- export function notifyListeners(listeners, label) {
4
- for (const fn of Array.from(listeners)) {
5
- try {
6
- fn();
7
- }
8
- catch (e) {
9
- log.error(`[${label}] listener error:`, e);
10
- }
11
- }
12
- }
@@ -1,7 +0,0 @@
1
- let appName = '';
2
- export function setAppName(name) {
3
- appName = name.trim();
4
- }
5
- export function getAppName() {
6
- return appName;
7
- }
@@ -1,15 +0,0 @@
1
- import { labelText as i18nLabelText, t as i18nT } from '../../i18n/i18n';
2
- const defaultHostText = { t: i18nT, labelText: i18nLabelText };
3
- let hostCevirmeni = null;
4
- export function provideHostText(host) {
5
- hostCevirmeni = host;
6
- }
7
- function bound() {
8
- return hostCevirmeni ?? defaultHostText;
9
- }
10
- export function t(key, values) {
11
- return bound().t(key, values);
12
- }
13
- export function labelText(label) {
14
- return bound().labelText(label);
15
- }
@@ -1,42 +0,0 @@
1
- import { Logger } from './Logger';
2
- import { ConsoleTransport } from './ConsoleTransport';
3
- import { LogLevel } from '../../base/logging/ILogger';
4
- const consoleTransport = new ConsoleTransport();
5
- let consoleEnabled = true;
6
- let hostTransport = null;
7
- const switchboard = {
8
- log(entry) {
9
- if (consoleEnabled)
10
- consoleTransport.log(entry);
11
- hostTransport?.log(entry);
12
- },
13
- flush() {
14
- consoleTransport.flush?.();
15
- hostTransport?.flush?.();
16
- },
17
- };
18
- const rootLogger = new Logger([switchboard], LogLevel.Info);
19
- export function provideHostLogTransport(transport, options = {}) {
20
- hostTransport = transport;
21
- consoleEnabled = transport === null || options.keepConsole === true;
22
- }
23
- let devMode = false;
24
- export function configureRendererLogging(opts) {
25
- devMode = opts.dev;
26
- rootLogger.setLevel(opts.dev ? LogLevel.Debug : LogLevel.Info);
27
- }
28
- export function addRendererLogTransport(transport) {
29
- rootLogger.addTransport(transport);
30
- }
31
- export function setRendererLogLevel(level) {
32
- const effective = devMode && level > LogLevel.Debug ? LogLevel.Debug : level;
33
- rootLogger.setLevel(effective);
34
- }
35
- export function getLogger(tag) {
36
- return rootLogger.withTag(tag);
37
- }
38
- export function summarizeText(value) {
39
- if (!value)
40
- return '(empty)';
41
- return value.replace(/\s+/g, ' ').slice(0, 120);
42
- }
@@ -1,329 +0,0 @@
1
- import { getLogger } from '../logging/rendererLogging';
2
- const log = getLogger('PreferencesCache');
3
- const EMPTY_STATE = () => ({
4
- workspacePreferences: {},
5
- sshState: {},
6
- uiLayoutState: {},
7
- });
8
- let _state = EMPTY_STATE();
9
- let _hydrated = false;
10
- export function hydratePreferencesCache(settings) {
11
- _state = {
12
- workspacePreferences: settings.workspacePreferences
13
- ? { ...settings.workspacePreferences }
14
- : {},
15
- sshState: settings.sshState ? { ...settings.sshState } : {},
16
- uiLayoutState: settings.uiLayoutState ? { ...settings.uiLayoutState } : {},
17
- };
18
- _hydrated = true;
19
- }
20
- export function getConnectionPreferences(connectionId) {
21
- if (!connectionId)
22
- return {};
23
- return _state.workspacePreferences[connectionId] ?? {};
24
- }
25
- const CONNECTION_PREFERENCES_CHANGE_EVENT = 'app-connection-preferences-change';
26
- export function getConnectionPreferencesChangeEventName() {
27
- return CONNECTION_PREFERENCES_CHANGE_EVENT;
28
- }
29
- function dispatchConnectionPreferencesChange(connectionId) {
30
- if (typeof window === 'undefined')
31
- return;
32
- window.dispatchEvent(new CustomEvent(CONNECTION_PREFERENCES_CHANGE_EVENT, {
33
- detail: { connectionId },
34
- }));
35
- }
36
- export function patchConnectionPreferences(connectionId, patch) {
37
- const current = _state.workspacePreferences[connectionId] ?? {};
38
- _state = {
39
- ..._state,
40
- workspacePreferences: {
41
- ..._state.workspacePreferences,
42
- [connectionId]: { ...current, ...patch },
43
- },
44
- };
45
- schedulePersist();
46
- dispatchConnectionPreferencesChange(connectionId);
47
- }
48
- export function getConnectionsWithExecutionOverrides() {
49
- return Object.entries(_state.workspacePreferences)
50
- .filter(([, prefs]) => {
51
- const ov = prefs.executionOverrides;
52
- return (!!ov &&
53
- (ov.safeMode !== undefined ||
54
- ov.confirmDestructive !== undefined ||
55
- ov.stopOnError !== undefined));
56
- })
57
- .map(([connectionId]) => connectionId);
58
- }
59
- export function getSshState() {
60
- return _state.sshState;
61
- }
62
- export function patchSshState(patch) {
63
- _state = { ..._state, sshState: { ..._state.sshState, ...patch } };
64
- schedulePersist();
65
- }
66
- export function setSshRefreshForInstance(instanceId, unit, setting) {
67
- const all = { ...(_state.sshState.refreshByInstance ?? {}) };
68
- all[String(instanceId)] = {
69
- ...(all[String(instanceId)] ?? {}),
70
- [unit]: setting,
71
- };
72
- _state = {
73
- ..._state,
74
- sshState: { ..._state.sshState, refreshByInstance: all },
75
- };
76
- schedulePersist();
77
- }
78
- export function setSshProcessColumnsForInstance(instanceId, columns) {
79
- const all = { ...(_state.sshState.processColumnsByInstance ?? {}) };
80
- all[String(instanceId)] = [...columns];
81
- _state = {
82
- ..._state,
83
- sshState: { ..._state.sshState, processColumnsByInstance: all },
84
- };
85
- schedulePersist();
86
- }
87
- const SSH_HISTORY_CHANGE_EVENT = 'app-ssh-history-change';
88
- const MAX_SSH_HISTORY_ENTRIES = 30;
89
- export function getSshHistoryChangeEventName() {
90
- return SSH_HISTORY_CHANGE_EVENT;
91
- }
92
- function dispatchSshHistoryChange() {
93
- if (typeof window === 'undefined')
94
- return;
95
- window.dispatchEvent(new CustomEvent(SSH_HISTORY_CHANGE_EVENT));
96
- }
97
- export function sshHistoryDedupKey(username, host, port, bastionHost) {
98
- const base = `${username.trim()}@${host.trim()}:${port}`;
99
- return bastionHost?.trim() ? `${base} via ${bastionHost.trim()}` : base;
100
- }
101
- export function getSshHistory() {
102
- return _state.sshState.history ? [..._state.sshState.history] : [];
103
- }
104
- export function recordSshHistory(entry) {
105
- const targetKey = sshHistoryDedupKey(entry.username, entry.host, entry.port, entry.bastionHost);
106
- const existingList = _state.sshState.history ?? [];
107
- const existing = existingList.find((e) => sshHistoryDedupKey(e.username, e.host, e.port, e.bastionHost) ===
108
- targetKey);
109
- const resolvedLabel = entry.label ?? existing?.label;
110
- const newEntry = {
111
- host: entry.host,
112
- port: entry.port,
113
- username: entry.username,
114
- authMethod: entry.authMethod,
115
- ...(entry.bastionHost ? { bastionHost: entry.bastionHost } : {}),
116
- ...(typeof resolvedLabel === 'string' && resolvedLabel.length > 0
117
- ? { label: resolvedLabel }
118
- : {}),
119
- lastConnectedAt: entry.lastConnectedAt ?? Date.now(),
120
- useCount: existing ? (existing.useCount || 0) + 1 : (entry.useCount ?? 1),
121
- };
122
- const filtered = existingList.filter((e) => sshHistoryDedupKey(e.username, e.host, e.port, e.bastionHost) !==
123
- targetKey);
124
- const history = [newEntry, ...filtered].slice(0, MAX_SSH_HISTORY_ENTRIES);
125
- _state = {
126
- ..._state,
127
- sshState: {
128
- ..._state.sshState,
129
- history,
130
- },
131
- };
132
- schedulePersist();
133
- dispatchSshHistoryChange();
134
- }
135
- export function removeSshHistoryEntry(username, host, port, bastionHost) {
136
- const targetKey = sshHistoryDedupKey(username, host, port, bastionHost);
137
- const existingList = _state.sshState.history ?? [];
138
- const history = existingList.filter((e) => sshHistoryDedupKey(e.username, e.host, e.port, e.bastionHost) !==
139
- targetKey);
140
- _state = {
141
- ..._state,
142
- sshState: {
143
- ..._state.sshState,
144
- history,
145
- },
146
- };
147
- schedulePersist();
148
- dispatchSshHistoryChange();
149
- }
150
- export function clearSshHistory() {
151
- _state = {
152
- ..._state,
153
- sshState: {
154
- ..._state.sshState,
155
- history: [],
156
- },
157
- };
158
- schedulePersist();
159
- dispatchSshHistoryChange();
160
- }
161
- let layoutHost = null;
162
- export function provideLayoutPreferences(next) {
163
- layoutHost = next;
164
- }
165
- export function getUiLayout() {
166
- if (layoutHost)
167
- return layoutHost.getUiLayout();
168
- return _state.uiLayoutState;
169
- }
170
- const SIDEBAR_LAYOUT_CHANGE_EVENT = 'app-sidebar-layout-change';
171
- export function getSidebarLayoutChangeEventName() {
172
- return SIDEBAR_LAYOUT_CHANGE_EVENT;
173
- }
174
- function dispatchSidebarLayoutChange(key, kind) {
175
- if (typeof window === 'undefined')
176
- return;
177
- window.dispatchEvent(new CustomEvent(SIDEBAR_LAYOUT_CHANGE_EVENT, { detail: { key, kind } }));
178
- }
179
- export function setSidebarWidth(key, width) {
180
- if (layoutHost) {
181
- layoutHost.setSidebarWidth(key, width);
182
- return;
183
- }
184
- const widths = { ...(_state.uiLayoutState.sidebarWidths ?? {}) };
185
- widths[key] = width;
186
- _state = {
187
- ..._state,
188
- uiLayoutState: { ..._state.uiLayoutState, sidebarWidths: widths },
189
- };
190
- schedulePersist();
191
- dispatchSidebarLayoutChange(key, 'width');
192
- }
193
- export function setSidebarCollapsed(key, collapsed) {
194
- if (layoutHost) {
195
- layoutHost.setSidebarCollapsed(key, collapsed);
196
- return;
197
- }
198
- const map = { ...(_state.uiLayoutState.sidebarCollapsed ?? {}) };
199
- map[key] = collapsed;
200
- _state = {
201
- ..._state,
202
- uiLayoutState: { ..._state.uiLayoutState, sidebarCollapsed: map },
203
- };
204
- schedulePersist();
205
- dispatchSidebarLayoutChange(key, 'collapsed');
206
- }
207
- export function resetSidebarLayout(widthKey, collapsedKey) {
208
- let next = _state.uiLayoutState;
209
- let mutated = false;
210
- if (next.sidebarWidths && widthKey in next.sidebarWidths) {
211
- const widths = { ...next.sidebarWidths };
212
- delete widths[widthKey];
213
- next = { ...next, sidebarWidths: widths };
214
- mutated = true;
215
- }
216
- if (next.sidebarCollapsed && collapsedKey in next.sidebarCollapsed) {
217
- const map = { ...next.sidebarCollapsed };
218
- delete map[collapsedKey];
219
- next = { ...next, sidebarCollapsed: map };
220
- mutated = true;
221
- }
222
- if (!mutated)
223
- return;
224
- _state = { ..._state, uiLayoutState: next };
225
- schedulePersist();
226
- dispatchSidebarLayoutChange(widthKey, 'reset');
227
- if (widthKey !== collapsedKey)
228
- dispatchSidebarLayoutChange(collapsedKey, 'reset');
229
- }
230
- const COLUMN_VISIBILITY_CHANGE_EVENT = 'app-column-visibility-change';
231
- export function getColumnVisibilityChangeEventName() {
232
- return COLUMN_VISIBILITY_CHANGE_EVENT;
233
- }
234
- function dispatchColumnVisibilityChange(key) {
235
- if (typeof window === 'undefined')
236
- return;
237
- window.dispatchEvent(new CustomEvent(COLUMN_VISIBILITY_CHANGE_EVENT, { detail: { key } }));
238
- }
239
- export function setColumnVisibility(key, hidden) {
240
- const map = { ...(_state.uiLayoutState.columnVisibility ?? {}) };
241
- map[key] = [...hidden];
242
- _state = {
243
- ..._state,
244
- uiLayoutState: { ..._state.uiLayoutState, columnVisibility: map },
245
- };
246
- schedulePersist();
247
- dispatchColumnVisibilityChange(key);
248
- }
249
- export function getTableColumnWidths(key) {
250
- const widths = _state.uiLayoutState.tableColumnWidths?.[key];
251
- return widths && widths.length > 0 ? [...widths] : null;
252
- }
253
- export function setTableColumnWidths(key, widths) {
254
- if (widths.length === 0)
255
- return;
256
- const map = { ...(_state.uiLayoutState.tableColumnWidths ?? {}) };
257
- map[key] = [...widths];
258
- _state = {
259
- ..._state,
260
- uiLayoutState: { ..._state.uiLayoutState, tableColumnWidths: map },
261
- };
262
- schedulePersist();
263
- }
264
- export function resetColumnVisibility(key) {
265
- const existing = _state.uiLayoutState.columnVisibility;
266
- if (!existing || !(key in existing))
267
- return;
268
- const map = { ...existing };
269
- delete map[key];
270
- _state = {
271
- ..._state,
272
- uiLayoutState: { ..._state.uiLayoutState, columnVisibility: map },
273
- };
274
- schedulePersist();
275
- dispatchColumnVisibilityChange(key);
276
- }
277
- let _persistTimer = null;
278
- const PERSIST_DEBOUNCE_MS = 250;
279
- function schedulePersist() {
280
- if (_persistTimer)
281
- clearTimeout(_persistTimer);
282
- _persistTimer = setTimeout(() => {
283
- _persistTimer = null;
284
- void flushPreferences();
285
- }, PERSIST_DEBOUNCE_MS);
286
- }
287
- export async function flushPreferences() {
288
- if (_persistTimer) {
289
- clearTimeout(_persistTimer);
290
- _persistTimer = null;
291
- }
292
- if (!_hydrated)
293
- return;
294
- try {
295
- await _persist?.({
296
- workspacePreferences: _state.workspacePreferences,
297
- sshState: _state.sshState,
298
- uiLayoutState: _state.uiLayoutState,
299
- });
300
- }
301
- catch (err) {
302
- log.error('flush failed', err);
303
- }
304
- }
305
- export async function flushPreferencesStrict() {
306
- if (_persistTimer) {
307
- clearTimeout(_persistTimer);
308
- _persistTimer = null;
309
- }
310
- if (!_hydrated)
311
- return;
312
- await _persist?.({
313
- workspacePreferences: _state.workspacePreferences,
314
- sshState: _state.sshState,
315
- uiLayoutState: _state.uiLayoutState,
316
- });
317
- }
318
- let _persist = null;
319
- export function configurePreferencesPersistence(persist) {
320
- _persist = persist;
321
- }
322
- export async function flushSshState() {
323
- return flushPreferences();
324
- }
325
- if (typeof window !== 'undefined') {
326
- window.addEventListener('beforeunload', () => {
327
- void flushPreferences();
328
- });
329
- }
@@ -1,5 +0,0 @@
1
- import { defineNotificationScenario } from '../_internal/contract/notificationCatalog';
2
- import { preferenceNotSaved } from './preference.notifications';
3
- export const preferenceNotificationSamples = [
4
- defineNotificationScenario('preferences.write.not-saved', preferenceNotSaved, { cause: new Error('The settings store is read-only.') }),
5
- ];
@@ -1,21 +0,0 @@
1
- import { notifyFromCatalog } from '../_internal/contract/catalogNotify';
2
- import { copyToClipboard_success_1, copyToClipboard_error_2, } from './notifications.notifications';
3
- import { getActiveWindow } from '../_internal/app/windows/window/windowRegistry';
4
- import { getLogger } from '../_internal/platform/logging/rendererLogging';
5
- const log = getLogger('copyToClipboard');
6
- export async function copyTextToClipboard(value, options) {
7
- try {
8
- await getActiveWindow().window.navigator.clipboard.writeText(value);
9
- if (!options?.silentOnSuccess) {
10
- notifyFromCatalog(copyToClipboard_success_1, options?.successMessage
11
- ? { successNotice: options.successMessage }
12
- : {});
13
- }
14
- return true;
15
- }
16
- catch (error) {
17
- log.warn('clipboard write failed', error);
18
- notifyFromCatalog(copyToClipboard_error_2, {});
19
- return false;
20
- }
21
- }