@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.
- package/CHANGELOG.md +52 -0
- package/README.md +110 -31
- package/dist/{AttributeGrid-Bg88JYZI.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
- package/dist/{AttributeGrid-BypjAajJ.js → AttributeGrid-CVyqzT7-.js} +5 -5
- package/dist/{Button-Db6wMY-3.js → Button-BiKPB3cH.js} +2 -2
- package/dist/{Button-d9jJBibg.cjs → Button-Nx7byQZc.cjs} +1 -1
- package/dist/CommandPalette-BH7c1cbU.js +3968 -0
- package/dist/CommandPalette-Dfb4V-Hb.cjs +2 -0
- package/dist/{CopyButton-C93PFyYK.js → CopyButton-BF7L1TCO.js} +1 -1
- package/dist/{CopyButton-CXaZRU7b.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
- package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
- package/dist/{DateRangePicker-D-5rg3h1.js → DateRangePicker-jSQBwB78.js} +181 -166
- package/dist/GuidedTour-CWDtBRHv.js +483 -0
- package/dist/GuidedTour-CYaR5Ozj.cjs +1 -0
- package/dist/HostPortal-B9Tzk_uN.cjs +1 -0
- package/dist/HostPortal-X1iw719T.js +33 -0
- package/dist/HostWindowContext-B2m0bVra.js +32 -0
- package/dist/HostWindowContext-_VZCt7xE.cjs +1 -0
- package/dist/{IconPicker-DPT-QfsC.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
- package/dist/{IconPicker-C3ZwWkB1.js → IconPicker-Df6uIUpJ.js} +4 -4
- package/dist/{Input-Ca8fLm_s.cjs → Input-CZruORyy.cjs} +1 -1
- package/dist/{Input-gq8EcQao.js → Input-DkPhsdfk.js} +2 -2
- package/dist/Modal-CQG8l4x7.cjs +1 -0
- package/dist/{Modal-C4l_yuY9.js → Modal-CUPe98-o.js} +5 -5
- package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
- package/dist/{PageSkeleton-C95fXUUk.js → PageSkeleton-CUTLh9Ip.js} +630 -628
- package/dist/{Popover-C24npAQ7.js → Popover-Dht1jFEy.js} +1 -1
- package/dist/{Popover-hhGcYQ-a.cjs → Popover-YfzC0Tjh.cjs} +1 -1
- package/dist/{SearchableSelect-BpOD2_A-.js → SearchableSelect-C01brsF0.js} +5 -5
- package/dist/{SearchableSelect-MN5azo9r.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
- package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
- package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
- package/dist/{Stepper-BgDx1cPX.js → Stepper-38IAEOyT.js} +3 -3
- package/dist/{Stepper-D7rXGxdg.cjs → Stepper-CtaTpnQu.cjs} +1 -1
- package/dist/{Textarea-BueHsjOk.js → Textarea-B5QqqKnI.js} +1 -1
- package/dist/{Textarea-BltpSavs.cjs → Textarea-CeAGf08O.cjs} +1 -1
- package/dist/{TimeSeriesChart-C3o7NZPh.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
- package/dist/{TimeSeriesChart-DhYtrAgX.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
- package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
- package/dist/{ToggleButton-DCP7f6Uo.js → ToggleButton-D-N0C2Fu.js} +54 -53
- package/dist/_internal/app/keybindings/context/keybindingsContext.d.cts +11 -6
- package/dist/_internal/app/keybindings/context/keybindingsContext.d.ts +11 -6
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +4 -3
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +4 -3
- package/dist/_internal/app/keybindings/context/useListCommands.d.cts +6 -5
- package/dist/_internal/app/keybindings/context/useListCommands.d.ts +6 -5
- package/dist/_internal/app/keybindings/index.d.cts +0 -10
- package/dist/_internal/app/keybindings/index.d.ts +0 -10
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +14 -9
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +14 -9
- package/dist/_internal/app/menu/menuFavorites.d.cts +35 -8
- package/dist/_internal/app/menu/menuFavorites.d.ts +35 -8
- package/dist/_internal/app/onboarding/pageTourState.d.cts +75 -22
- package/dist/_internal/app/onboarding/pageTourState.d.ts +75 -22
- package/dist/_internal/app/platform/electronBridge.d.cts +35 -29
- package/dist/_internal/app/platform/electronBridge.d.ts +35 -29
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +8 -4
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +8 -4
- package/dist/_internal/app/windows/window/HostWindowContext.d.cts +8 -14
- package/dist/_internal/app/windows/window/HostWindowContext.d.ts +8 -14
- package/dist/_internal/contract/catalogNotify.d.cts +6 -19
- package/dist/_internal/contract/catalogNotify.d.ts +6 -19
- package/dist/_internal/contract/hostErrorText.d.cts +13 -23
- package/dist/_internal/contract/hostErrorText.d.ts +13 -23
- package/dist/_internal/contract/notificationCatalog.d.cts +16 -5
- package/dist/_internal/contract/notificationCatalog.d.ts +16 -5
- package/dist/_internal/platform/errors/diagnosticReport.d.cts +3 -1
- package/dist/_internal/platform/errors/diagnosticReport.d.ts +3 -1
- package/dist/_internal/platform/logging/consoleLogger.d.cts +7 -0
- package/dist/_internal/platform/logging/consoleLogger.d.ts +7 -0
- package/dist/_internal/platform/settings/registry/defineSettings.d.cts +19 -8
- package/dist/_internal/platform/settings/registry/defineSettings.d.ts +19 -8
- package/dist/_internal/platform/settings/registry/stateDbStore.d.cts +23 -15
- package/dist/_internal/platform/settings/registry/stateDbStore.d.ts +23 -15
- package/dist/_internal/platform/settings/settingsTypes.d.cts +5 -0
- package/dist/_internal/platform/settings/settingsTypes.d.ts +5 -0
- package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
- package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
- package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
- package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/actions-DtaFGwh2.cjs +1 -0
- package/dist/actions-wwAHs3ZU.js +16 -0
- package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
- package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
- package/dist/async/createGuardedListLoader.d.cts +3 -0
- package/dist/async/createGuardedListLoader.d.ts +3 -0
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
- package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
- package/dist/createResizableSidebar-CfFxQUny.js +449 -0
- package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
- package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
- package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
- package/dist/defineSettings-D0CSMcyy.cjs +1 -0
- package/dist/defineSettings-Di1sG81q.js +407 -0
- package/dist/descriptor-CaHgh9N_.cjs +1 -0
- package/dist/{descriptor-CrCl515S.js → descriptor-eGtcBtpI.js} +5 -5
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +500 -426
- package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
- package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
- package/dist/electronBridge-BK92fycw.js +235 -0
- package/dist/electronBridge-cT0xww92.cjs +1 -0
- package/dist/errorHandler-BvPGW-Nm.js +373 -0
- package/dist/errorHandler-DoDAPpv2.cjs +3 -0
- package/dist/feedback/Loader.d.cts +6 -1
- package/dist/feedback/Loader.d.ts +6 -1
- package/dist/feedback/createPreference.d.cts +4 -1
- package/dist/feedback/createPreference.d.ts +4 -1
- package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
- package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +37 -38
- package/dist/feedback/readFailureText.d.cts +20 -1
- package/dist/feedback/readFailureText.d.ts +20 -1
- package/dist/focusModality-BISb6-yg.cjs +1 -0
- package/dist/focusModality-FoLPWF-_.js +135 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{server/headerIconOverrides-B7TQUBmD.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +14 -16
- package/dist/host/index.d.ts +14 -16
- package/dist/host/index.js +53 -90
- package/dist/host/kitHost.d.cts +42 -0
- package/dist/host/kitHost.d.ts +42 -0
- package/dist/host/window.d.cts +3 -11
- package/dist/host/window.d.ts +3 -11
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/{server/i18n-D9k9xwuD.js → i18n-DW9kcu0G.js} +180 -178
- package/dist/i18n-DZ0JlZal.cjs +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +665 -738
- package/dist/isOneOf-9EXOSYJu.cjs +1 -0
- package/dist/isOneOf-Dtomuazg.js +6 -0
- package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
- package/dist/keys-GMxY2wcl.cjs +1 -0
- package/dist/layout/createResizableSidebar.d.cts +14 -0
- package/dist/layout/createResizableSidebar.d.ts +14 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +3 -3
- package/dist/layout/sidebarWidthClamp.d.cts +1 -1
- package/dist/layout/sidebarWidthClamp.d.ts +1 -1
- package/dist/mainRealmDom-C12lr9lm.js +171 -0
- package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/NotificationHost.d.cts +7 -1
- package/dist/notifications/NotificationHost.d.ts +7 -1
- package/dist/notifications/NotificationItem.d.cts +48 -15
- package/dist/notifications/NotificationItem.d.ts +48 -15
- package/dist/notifications/catalogAdapter.d.cts +28 -6
- package/dist/notifications/catalogAdapter.d.ts +28 -6
- package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
- package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
- package/dist/notifications/customSoundCache.d.cts +24 -24
- package/dist/notifications/customSoundCache.d.ts +24 -24
- package/dist/notifications/emailDigest.d.cts +34 -16
- package/dist/notifications/emailDigest.d.ts +34 -16
- package/dist/notifications/errorActionButtons.d.cts +18 -1
- package/dist/notifications/errorActionButtons.d.ts +18 -1
- package/dist/notifications/fireNotification.d.cts +27 -17
- package/dist/notifications/fireNotification.d.ts +27 -17
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +6 -12
- package/dist/notifications/index.d.ts +6 -12
- package/dist/notifications/index.js +64 -104
- package/dist/notifications/nativeEngine.d.cts +18 -15
- package/dist/notifications/nativeEngine.d.ts +18 -15
- package/dist/notifications/notificationAnalytics.d.cts +11 -6
- package/dist/notifications/notificationAnalytics.d.ts +11 -6
- package/dist/notifications/notificationAudio.d.cts +30 -23
- package/dist/notifications/notificationAudio.d.ts +30 -23
- package/dist/notifications/notificationCardServices.d.cts +23 -0
- package/dist/notifications/notificationCardServices.d.ts +23 -0
- package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
- package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
- package/dist/notifications/notificationOverlaySync.d.cts +7 -2
- package/dist/notifications/notificationOverlaySync.d.ts +7 -2
- package/dist/notifications/notificationService.d.cts +101 -0
- package/dist/notifications/notificationService.d.ts +101 -0
- package/dist/notifications/notificationTimeline.d.cts +47 -49
- package/dist/notifications/notificationTimeline.d.ts +47 -49
- package/dist/notifications/notifications.notifications.d.cts +0 -4
- package/dist/notifications/notifications.notifications.d.ts +0 -4
- package/dist/notifications/toast.d.cts +24 -28
- package/dist/notifications/toast.d.ts +24 -28
- package/dist/notifications/webhookDelivery.d.cts +12 -17
- package/dist/notifications/webhookDelivery.d.ts +12 -17
- package/dist/overlay/ConfirmDialog.d.cts +16 -17
- package/dist/overlay/ConfirmDialog.d.ts +16 -17
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
- package/dist/overlay/dialogShellKeyIntent.d.cts +3 -3
- package/dist/overlay/dialogShellKeyIntent.d.ts +3 -3
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -3
- package/dist/overlay/index.d.ts +2 -3
- package/dist/overlay/index.js +114 -119
- package/dist/pageTourState-BcBF8w89.js +516 -0
- package/dist/pageTourState-CrbEU7QW.cjs +5 -0
- package/dist/server/{AttributeGrid-UJtHTip2.js → AttributeGrid-B2s_rp00.js} +3 -3
- package/dist/server/{AttributeGrid-CyMsR4GC.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
- package/dist/server/{Button-BesBg6eW.js → Button-Ck03cbUs.js} +1 -1
- package/dist/server/{Button-PZulLru4.cjs → Button-DWFMF5y0.cjs} +1 -1
- package/dist/server/CommandPalette-DwlWZI1s.js +3224 -0
- package/dist/server/CommandPalette-VewDIghb.cjs +1 -0
- package/dist/server/{CopyButton-D_sN2Ggp.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
- package/dist/server/{CopyButton-I5xsXV07.js → CopyButton-UvtFwOtA.js} +1 -1
- package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
- package/dist/server/{DateRangePicker-DGUl2aE3.js → DateRangePicker-Cr58DczM.js} +158 -143
- package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
- package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
- package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
- package/dist/server/HostPortal-X1iw719T.js +33 -0
- package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
- package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
- package/dist/server/{IconPicker-BlD0VBca.cjs → IconPicker-9DfOxql6.cjs} +1 -1
- package/dist/server/{IconPicker-o8hUxjYU.js → IconPicker-N0wub1Aj.js} +4 -4
- package/dist/server/Modal-D__GTo-n.cjs +1 -0
- package/dist/server/{Modal-DmF6CwfY.js → Modal-DeQjfpkG.js} +3 -3
- package/dist/server/{PageSkeleton-BigztY5i.js → PageSkeleton-C41pXOcr.js} +460 -458
- package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
- package/dist/server/{SearchableSelect-Dn-cssWx.js → SearchableSelect-CEcuBnge.js} +2 -2
- package/dist/server/{SearchableSelect-R0Dwz9rz.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
- package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
- package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
- package/dist/server/{Stepper-dBm8YaCw.cjs → Stepper--pusyxso.cjs} +1 -1
- package/dist/server/{Stepper-BaQ6Kexj.js → Stepper-B_eL85hK.js} +1 -1
- package/dist/server/{TimeSeriesChart-BbbfDyeA.js → TimeSeriesChart-aSHquoBv.js} +1 -1
- package/dist/server/{TimeSeriesChart-qPgMkkaW.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
- package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
- package/dist/server/{ToggleButton-C0_QpslP.js → ToggleButton-DjlWwgLJ.js} +4 -4
- package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
- package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/actions-DtaFGwh2.cjs +1 -0
- package/dist/server/actions-wwAHs3ZU.js +16 -0
- package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
- package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{format-CYCi8g4r.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
- package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
- package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
- package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
- package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
- package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
- package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
- package/dist/server/defineSettings-Di1sG81q.js +407 -0
- package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
- package/dist/server/{descriptor-DtZDXBe6.js → descriptor-GLoKPx6x.js} +4 -4
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +389 -315
- package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
- package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
- package/dist/server/electronBridge-BK92fycw.js +235 -0
- package/dist/server/electronBridge-cT0xww92.cjs +1 -0
- package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
- package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +37 -38
- package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
- package/dist/server/{focusModality-BCX5GH0P.js → focusModality-nWNVX3JG.js} +41 -41
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +7 -7
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{headerIconOverrides-B7TQUBmD.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +53 -90
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/{i18n-D9k9xwuD.js → server/i18n-DW9kcu0G.js} +180 -178
- package/dist/server/i18n-DZ0JlZal.cjs +4 -0
- package/dist/server/{index-B4epvfiq.js → index-BNYr6EIW.js} +89 -90
- package/dist/server/index-Cqod09d_.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +825 -898
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +3 -3
- package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
- package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +63 -103
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +115 -120
- package/dist/server/pageTourState-BcBF8w89.js +516 -0
- package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +23 -24
- package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
- package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +19 -20
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/server/useListCommands-BO_XrRHj.js +38 -0
- package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
- package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
- package/dist/server/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
- package/dist/server/window-CUK6x8Pj.js +36 -0
- package/dist/server/window-_BfSgFGO.cjs +1 -0
- package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
- package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.d.cts +1 -1
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/index.js +23 -24
- package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
- package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
- package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
- package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
- package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
- package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
- package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +0 -10
- package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
- package/dist/solid/_internal/contract/catalogNotify.js +1 -24
- package/dist/solid/_internal/contract/hostErrorText.js +1 -14
- package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
- package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
- package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
- package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
- package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
- package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
- package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
- package/dist/solid/a11y/AriaAnnouncer.jsx +2 -3
- package/dist/solid/async/createGuardedListLoader.js +1 -1
- package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
- package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
- package/dist/solid/feedback/Loader.jsx +1 -2
- package/dist/solid/feedback/createPreference.js +3 -2
- package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
- package/dist/solid/feedback/preference.notifications.js +1 -2
- package/dist/solid/feedback/readFailureText.js +1 -2
- package/dist/solid/host/index.js +8 -16
- package/dist/solid/host/window.js +15 -22
- package/dist/solid/i18n/i18n.js +5 -6
- package/dist/solid/index.js +0 -1
- package/dist/solid/layout/createResizableSidebar.js +15 -23
- package/dist/solid/notifications/NotificationHost.jsx +21 -29
- package/dist/solid/notifications/NotificationItem.jsx +28 -104
- package/dist/solid/notifications/NotificationPanel.jsx +33 -44
- package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
- package/dist/solid/notifications/catalogAdapter.js +61 -62
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
- package/dist/solid/notifications/customSoundCache.js +26 -21
- package/dist/solid/notifications/emailDigest.js +74 -86
- package/dist/solid/notifications/errorActionButtons.js +6 -11
- package/dist/solid/notifications/fireNotification.js +14 -19
- package/dist/solid/notifications/index.js +3 -12
- package/dist/solid/notifications/nativeEngine.js +6 -19
- package/dist/solid/notifications/notificationAnalytics.js +32 -38
- package/dist/solid/notifications/notificationAudio.js +77 -74
- package/dist/solid/notifications/notificationCardServices.js +34 -0
- package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
- package/dist/solid/notifications/notificationOverlaySync.js +18 -23
- package/dist/solid/notifications/notificationService.js +135 -0
- package/dist/solid/notifications/notificationTimeline.js +117 -124
- package/dist/solid/notifications/notifications.notifications.js +3 -22
- package/dist/solid/notifications/toast.js +168 -213
- package/dist/solid/notifications/webhookDelivery.js +27 -53
- package/dist/solid/overlay/ConfirmDialog.jsx +14 -58
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
- package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
- package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
- package/dist/solid/overlay/index.js +0 -3
- package/dist/solid/settings/index.js +1 -1
- package/dist/solid/tokens/index.js +1 -1
- package/dist/solid/tokens/palette/themeRegistry.js +20 -22
- package/dist/stateDbStore-CThsVch-.cjs +1 -0
- package/dist/stateDbStore-DHZFUIEt.js +57 -0
- package/dist/style.css +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +19 -20
- package/dist/tokens/palette/themeRegistry.d.cts +17 -22
- package/dist/tokens/palette/themeRegistry.d.ts +17 -22
- package/dist/{tooltipCoordinator-Zim5pWzk.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
- package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
- package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
- package/dist/useListCommands-BO_XrRHj.js +38 -0
- package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
- package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
- package/dist/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
- package/dist/window-CUK6x8Pj.js +36 -0
- package/dist/window-_BfSgFGO.cjs +1 -0
- package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
- package/dist/windowRegistry-DeGmXt6W.js +20 -0
- package/package.json +1 -1
- package/dist/CommandPalette-DeEImZ8D.cjs +0 -2
- package/dist/CommandPalette-yqvM9AuU.js +0 -3897
- package/dist/DateRangePicker-7t4JKCp1.cjs +0 -9
- package/dist/GuidedTour-C_Lxe1t_.cjs +0 -21
- package/dist/GuidedTour-lsljVkPL.js +0 -11216
- package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/Modal-CJhd27dM.cjs +0 -1
- package/dist/PageSkeleton-SYSL4Adl.cjs +0 -30
- package/dist/Progress-B5YmNeyU.js +0 -56
- package/dist/Progress-BNy0wsJl.cjs +0 -1
- package/dist/StatusBarNotificationBell-B1bvE_SO.js +0 -2140
- package/dist/StatusBarNotificationBell-Cqo6cZbO.cjs +0 -4
- package/dist/ToggleButton-BmwDfsn4.cjs +0 -1
- package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
- package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
- package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
- package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
- package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
- package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
- package/dist/_internal/base/listenerDispatch.d.cts +0 -14
- package/dist/_internal/base/listenerDispatch.d.ts +0 -14
- package/dist/_internal/contract/appName.d.cts +0 -10
- package/dist/_internal/contract/appName.d.ts +0 -10
- package/dist/_internal/contract/hostText.d.cts +0 -25
- package/dist/_internal/contract/hostText.d.ts +0 -25
- package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
- package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
- package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
- package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
- package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/catalogNotify-BcY9oqVy.js +0 -1223
- package/dist/catalogNotify-DacJjC-p.cjs +0 -27
- package/dist/createResizableSidebar-BIhyo5zN.cjs +0 -1
- package/dist/createResizableSidebar-Cqv-1IXG.js +0 -461
- package/dist/defineSettings-CcYXt2Jf.js +0 -391
- package/dist/defineSettings-yHQdUwxI.cjs +0 -1
- package/dist/descriptor-Dmch-3AF.cjs +0 -1
- package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/displayOwner-eYQHHvjt.cjs +0 -1
- package/dist/displayOwner-mT80Oyi-.js +0 -75
- package/dist/feedback/preference.notifications.samples.d.cts +0 -1
- package/dist/feedback/preference.notifications.samples.d.ts +0 -1
- package/dist/focusModality-BNjYldd9.cjs +0 -1
- package/dist/focusModality-DxudpWPs.js +0 -135
- package/dist/format-BS7oDguE.js +0 -298
- package/dist/format-CuANkXXB.cjs +0 -1
- package/dist/i18n-DXXArz-m.cjs +0 -4
- package/dist/keys-BeeC5_RZ.cjs +0 -1
- package/dist/mainRealmDom-CkoRyNhZ.cjs +0 -1
- package/dist/mainRealmDom-kEStLHIY.js +0 -102
- package/dist/menuFavorites-BmdM_qV5.js +0 -69
- package/dist/menuFavorites-DoDFvtlQ.cjs +0 -1
- package/dist/notification-DygvQB_o.cjs +0 -1
- package/dist/notificationSuppressions-DGfo2QKG.cjs +0 -1
- package/dist/notificationSuppressions-ddyK85cB.js +0 -430
- package/dist/notifications/copyToClipboard.d.cts +0 -6
- package/dist/notifications/copyToClipboard.d.ts +0 -6
- package/dist/notifications/createCopyFlash.d.cts +0 -17
- package/dist/notifications/createCopyFlash.d.ts +0 -17
- package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
- package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
- package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
- package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
- package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
- package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
- package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
- package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
- package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
- package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
- package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
- package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
- package/dist/overlay/ToastHost.d.cts +0 -7
- package/dist/overlay/ToastHost.d.ts +0 -7
- package/dist/pageTourState-CIr8ockR.js +0 -92
- package/dist/pageTourState-D8Uapyft.cjs +0 -1
- package/dist/preferencesCache-Bow6TxP1.js +0 -65
- package/dist/preferencesCache-D7mm43_n.cjs +0 -1
- package/dist/rendererLogging-Dt5FZ8mq.cjs +0 -7
- package/dist/rendererLogging-gAhiHWkA.js +0 -822
- package/dist/server/CommandPalette-C8treS8g.cjs +0 -1
- package/dist/server/CommandPalette-Dslsq5Ez.js +0 -3155
- package/dist/server/DateRangePicker-CDKi9BAf.cjs +0 -9
- package/dist/server/GuidedTour-B3T9rAPX.cjs +0 -20
- package/dist/server/GuidedTour-DSoSZZby.js +0 -10983
- package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/server/Modal-CCUwQYso.cjs +0 -1
- package/dist/server/PageSkeleton-DdpXfZoC.cjs +0 -30
- package/dist/server/Progress-CRbj6nEy.cjs +0 -1
- package/dist/server/Progress-nsDy6clG.js +0 -41
- package/dist/server/StatusBarNotificationBell-C64Odn2C.js +0 -1974
- package/dist/server/StatusBarNotificationBell-DY0Q27su.cjs +0 -4
- package/dist/server/ToggleButton-1bNYk35x.cjs +0 -1
- package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
- package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
- package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
- package/dist/server/VpTrash-DVBfts9_.js +0 -116
- package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/server/catalogNotify-MCW2sa2e.cjs +0 -27
- package/dist/server/catalogNotify-s3YymAe8.js +0 -1261
- package/dist/server/createResizableSidebar-MIzUlfdd.js +0 -299
- package/dist/server/createResizableSidebar-TdxLuiY8.cjs +0 -1
- package/dist/server/defineSettings-CcYXt2Jf.js +0 -391
- package/dist/server/defineSettings-yHQdUwxI.cjs +0 -1
- package/dist/server/descriptor-DAyyoF-I.cjs +0 -1
- package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/server/displayOwner-eYQHHvjt.cjs +0 -1
- package/dist/server/displayOwner-mT80Oyi-.js +0 -75
- package/dist/server/focusModality-BKgJWRlC.cjs +0 -1
- package/dist/server/format-WfZycMBL.cjs +0 -1
- package/dist/server/i18n-DXXArz-m.cjs +0 -4
- package/dist/server/index-DlQYWckZ.cjs +0 -1
- package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
- package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
- package/dist/server/menuFavorites-BmdM_qV5.js +0 -69
- package/dist/server/menuFavorites-DoDFvtlQ.cjs +0 -1
- package/dist/server/notification-DygvQB_o.cjs +0 -1
- package/dist/server/notificationSuppressions-B-LKq9ZU.js +0 -391
- package/dist/server/notificationSuppressions-Dcc2WFBZ.cjs +0 -1
- package/dist/server/pageTourState-CIr8ockR.js +0 -92
- package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
- package/dist/server/preferencesCache-Bow6TxP1.js +0 -65
- package/dist/server/preferencesCache-D7mm43_n.cjs +0 -1
- package/dist/server/rendererLogging-Dt5FZ8mq.cjs +0 -7
- package/dist/server/rendererLogging-gAhiHWkA.js +0 -822
- package/dist/server/settingsSearchContributor-CRZsl2Q_.js +0 -199
- package/dist/server/settingsSearchContributor-DH8UFpp2.cjs +0 -1
- package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
- package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
- package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
- package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
- package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
- package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
- package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
- package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
- package/dist/settingsSearchContributor-DWP5dwn3.js +0 -199
- package/dist/settingsSearchContributor-Dltbs1j_.cjs +0 -1
- package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
- package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
- package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
- package/dist/solid/_internal/base/listenerDispatch.js +0 -12
- package/dist/solid/_internal/contract/appName.js +0 -7
- package/dist/solid/_internal/contract/hostText.js +0 -15
- package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
- package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
- package/dist/solid/feedback/preference.notifications.samples.js +0 -5
- package/dist/solid/notifications/copyToClipboard.js +0 -21
- package/dist/solid/notifications/createCopyFlash.js +0 -26
- package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
- package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
- package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
- package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
- package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
- package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
- package/dist/solid/overlay/ToastHost.jsx +0 -1
- package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
- package/dist/stateDbStore-THFfFGa0.cjs +0 -1
- package/dist/tooltipCoordinator-Causlcgt.cjs +0 -1
- package/dist/useListCommands-Bf7aOTXZ.js +0 -61
- package/dist/useListCommands-ucngC3t4.cjs +0 -1
- package/dist/useSettingsSubscription-cu943hND.js +0 -11
- package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
- package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
- package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
- package/dist/windowRegistry-Bk5lXIVd.js +0 -62
- package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
import { insert as w, createComponent as _, Dynamic as Z, effect as R, className as k, setAttribute as L, template as P, delegateEvents as O, memo as F, classList as p, addEventListener as ee, use as te, style as ne } from "solid-js/web";
|
|
2
|
+
import { VpRefresh as ae } from "@vokril/icons";
|
|
3
|
+
import { createSignal as $, createMemo as T, createEffect as J, onCleanup as W, Show as x, batch as re } from "solid-js";
|
|
4
|
+
import { u as ie } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
5
|
+
import { a as oe, c as le, s as ce } from "./headerIconOverrides-Dh2PaOcO.js";
|
|
6
|
+
import { g as de, l as Q, I as se, i as ue } from "./IconPicker-Df6uIUpJ.js";
|
|
7
|
+
import { t as B } from "./i18n-DW9kcu0G.js";
|
|
8
|
+
import { B as j } from "./Button-BiKPB3cH.js";
|
|
9
|
+
import { i as D } from "./keys-B2nlkpqc.js";
|
|
10
|
+
import { O as q } from "./OverlayScrollArea-c8Za77qs.js";
|
|
11
|
+
import { c as ve } from "./errorHandler-BvPGW-Nm.js";
|
|
12
|
+
import { g as he } from "./windowRegistry-DeGmXt6W.js";
|
|
13
|
+
import { u as ge } from "./kitHost-CVAEi9sF.js";
|
|
14
|
+
var fe = /* @__PURE__ */ P("<div>");
|
|
15
|
+
function me(e) {
|
|
16
|
+
const s = ie(), u = oe(), [v, n] = $(null), f = () => v() === e.pageId, [m, a] = $(null), c = T(() => u()[e.pageId] ?? (e.fallbackPageId ? u()[e.fallbackPageId] : null) ?? null);
|
|
17
|
+
J(() => {
|
|
18
|
+
e.pageId, n(null);
|
|
19
|
+
}), J(() => {
|
|
20
|
+
const r = c();
|
|
21
|
+
if (!r) {
|
|
22
|
+
a(null);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const t = de(r.name);
|
|
26
|
+
if (t) {
|
|
27
|
+
a(() => t);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
a(null);
|
|
31
|
+
let i = !1;
|
|
32
|
+
W(() => {
|
|
33
|
+
i = !0;
|
|
34
|
+
}), Q().then((d) => {
|
|
35
|
+
const b = c();
|
|
36
|
+
i || !b || b.name !== r.name || a(() => d[r.name] ?? null);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
const o = T(() => m() ?? e.fallbackIcon), I = (r) => {
|
|
40
|
+
if (e.interactive === !1) return;
|
|
41
|
+
r.preventDefault(), r.stopPropagation();
|
|
42
|
+
const t = e.pageId;
|
|
43
|
+
ue() || Q();
|
|
44
|
+
const i = [], d = e.onSettings;
|
|
45
|
+
d && (i.push({
|
|
46
|
+
label: B("Settings…"),
|
|
47
|
+
onSelect: d
|
|
48
|
+
}), i.push({
|
|
49
|
+
type: "separator"
|
|
50
|
+
})), i.push({
|
|
51
|
+
label: B("Change icon"),
|
|
52
|
+
onSelect: () => {
|
|
53
|
+
e.pageId === t && n(t);
|
|
54
|
+
}
|
|
55
|
+
}), i.push({
|
|
56
|
+
label: B("Reset to default icon"),
|
|
57
|
+
disabled: !u()[e.pageId],
|
|
58
|
+
onSelect: () => {
|
|
59
|
+
e.pageId === t && le(t);
|
|
60
|
+
}
|
|
61
|
+
}), s.open(r.clientX, r.clientY, i, r);
|
|
62
|
+
}, g = (r) => {
|
|
63
|
+
const t = v();
|
|
64
|
+
!t || t !== e.pageId || (ce(t, {
|
|
65
|
+
set: "tb",
|
|
66
|
+
name: r
|
|
67
|
+
}), n(null));
|
|
68
|
+
};
|
|
69
|
+
return [(() => {
|
|
70
|
+
var r = fe();
|
|
71
|
+
return r.$$contextmenu = I, w(r, _(Z, {
|
|
72
|
+
get component() {
|
|
73
|
+
return o();
|
|
74
|
+
},
|
|
75
|
+
get class() {
|
|
76
|
+
return e.iconClass;
|
|
77
|
+
},
|
|
78
|
+
"aria-hidden": "true"
|
|
79
|
+
})), R((t) => {
|
|
80
|
+
var i = e.class, d = e.ariaLabel;
|
|
81
|
+
return i !== t.e && k(r, t.e = i), d !== t.t && L(r, "aria-label", t.t = d), t;
|
|
82
|
+
}, {
|
|
83
|
+
e: void 0,
|
|
84
|
+
t: void 0
|
|
85
|
+
}), r;
|
|
86
|
+
})(), _(x, {
|
|
87
|
+
get when() {
|
|
88
|
+
return f();
|
|
89
|
+
},
|
|
90
|
+
get children() {
|
|
91
|
+
return _(se, {
|
|
92
|
+
open: f,
|
|
93
|
+
onClose: () => n(null),
|
|
94
|
+
onSelect: g,
|
|
95
|
+
get currentIconName() {
|
|
96
|
+
var r;
|
|
97
|
+
return ((r = c()) == null ? void 0 : r.name) ?? null;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
})];
|
|
102
|
+
}
|
|
103
|
+
O(["contextmenu"]);
|
|
104
|
+
const be = "vk_header_7CNKc", ke = "vk_headerLeft_-fa7V", Ie = "vk_headerActions_aaFA-", _e = "vk_headerIcon_c1sgk", ze = "vk_headerIconSvg_7jyQp", we = "vk_titleRow_0A-NY", Se = "vk_backButton_GIWbu", ye = "vk_title_k1DVA", Le = "vk_subtitle_RXfOz", De = "vk_refreshIconButton_bVyMc", Ce = "vk_compact_e7ku-", S = {
|
|
105
|
+
header: be,
|
|
106
|
+
headerLeft: ke,
|
|
107
|
+
headerActions: Ie,
|
|
108
|
+
headerIcon: _e,
|
|
109
|
+
headerIconSvg: ze,
|
|
110
|
+
titleRow: we,
|
|
111
|
+
backButton: Se,
|
|
112
|
+
title: ye,
|
|
113
|
+
subtitle: Le,
|
|
114
|
+
refreshIconButton: De,
|
|
115
|
+
compact: Ce
|
|
116
|
+
};
|
|
117
|
+
var Re = /* @__PURE__ */ P("<div><h2>"), $e = /* @__PURE__ */ P("<p>"), Pe = /* @__PURE__ */ P("<div>"), Ee = /* @__PURE__ */ P("<header><div><div>"), xe = /* @__PURE__ */ P("<h2>");
|
|
118
|
+
function ut(e) {
|
|
119
|
+
return (() => {
|
|
120
|
+
var s = Ee(), u = s.firstChild, v = u.firstChild;
|
|
121
|
+
return w(u, _(x, {
|
|
122
|
+
get when() {
|
|
123
|
+
return F(() => e.fallbackIcon != null)() && e.pageId != null;
|
|
124
|
+
},
|
|
125
|
+
get children() {
|
|
126
|
+
return _(me, {
|
|
127
|
+
get pageId() {
|
|
128
|
+
return e.pageId;
|
|
129
|
+
},
|
|
130
|
+
get fallbackPageId() {
|
|
131
|
+
return e.fallbackIconPageId;
|
|
132
|
+
},
|
|
133
|
+
get fallbackIcon() {
|
|
134
|
+
return e.fallbackIcon;
|
|
135
|
+
},
|
|
136
|
+
get class() {
|
|
137
|
+
return S.headerIcon;
|
|
138
|
+
},
|
|
139
|
+
get iconClass() {
|
|
140
|
+
return S.headerIconSvg;
|
|
141
|
+
},
|
|
142
|
+
get ariaLabel() {
|
|
143
|
+
return e.iconAriaLabel;
|
|
144
|
+
},
|
|
145
|
+
get onSettings() {
|
|
146
|
+
return e.onSettings;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}), v), w(v, _(x, {
|
|
151
|
+
get when() {
|
|
152
|
+
return e.onBack != null;
|
|
153
|
+
},
|
|
154
|
+
get fallback() {
|
|
155
|
+
return (() => {
|
|
156
|
+
var n = xe();
|
|
157
|
+
return w(n, () => e.title), R(() => k(n, S.title)), n;
|
|
158
|
+
})();
|
|
159
|
+
},
|
|
160
|
+
get children() {
|
|
161
|
+
var n = Re(), f = n.firstChild;
|
|
162
|
+
return w(n, _(j, {
|
|
163
|
+
variant: "secondary",
|
|
164
|
+
size: "sm",
|
|
165
|
+
get class() {
|
|
166
|
+
return S.backButton;
|
|
167
|
+
},
|
|
168
|
+
onClick: () => e.onBack(),
|
|
169
|
+
get children() {
|
|
170
|
+
return ["← ", F(() => e.backLabel ?? B("Back"))];
|
|
171
|
+
}
|
|
172
|
+
}), f), w(f, () => e.title), R((m) => {
|
|
173
|
+
var a = S.titleRow, c = S.title;
|
|
174
|
+
return a !== m.e && k(n, m.e = a), c !== m.t && k(f, m.t = c), m;
|
|
175
|
+
}, {
|
|
176
|
+
e: void 0,
|
|
177
|
+
t: void 0
|
|
178
|
+
}), n;
|
|
179
|
+
}
|
|
180
|
+
}), null), w(v, _(x, {
|
|
181
|
+
get when() {
|
|
182
|
+
return e.subtitle != null;
|
|
183
|
+
},
|
|
184
|
+
get children() {
|
|
185
|
+
var n = $e();
|
|
186
|
+
return w(n, () => e.subtitle), R(() => k(n, S.subtitle)), n;
|
|
187
|
+
}
|
|
188
|
+
}), null), w(s, _(x, {
|
|
189
|
+
get when() {
|
|
190
|
+
return e.onRefresh != null || e.actions != null;
|
|
191
|
+
},
|
|
192
|
+
get children() {
|
|
193
|
+
var n = Pe();
|
|
194
|
+
return w(n, _(x, {
|
|
195
|
+
get when() {
|
|
196
|
+
return e.onRefresh != null;
|
|
197
|
+
},
|
|
198
|
+
get children() {
|
|
199
|
+
return _(j, {
|
|
200
|
+
size: "md",
|
|
201
|
+
variant: "secondary",
|
|
202
|
+
iconOnly: !0,
|
|
203
|
+
get class() {
|
|
204
|
+
return S.refreshIconButton;
|
|
205
|
+
},
|
|
206
|
+
get disabled() {
|
|
207
|
+
return e.refreshDisabled;
|
|
208
|
+
},
|
|
209
|
+
get loading() {
|
|
210
|
+
return e.refreshing;
|
|
211
|
+
},
|
|
212
|
+
loadingDelay: 0,
|
|
213
|
+
get "aria-label"() {
|
|
214
|
+
return e.refreshAriaLabel ?? B("Refresh");
|
|
215
|
+
},
|
|
216
|
+
onClick: () => e.onRefresh(),
|
|
217
|
+
get children() {
|
|
218
|
+
return _(ae, {
|
|
219
|
+
"aria-hidden": "true"
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}), null), w(n, () => e.actions, null), R(() => k(n, S.headerActions)), n;
|
|
225
|
+
}
|
|
226
|
+
}), null), R((n) => {
|
|
227
|
+
var f = S.header, m = {
|
|
228
|
+
[S.compact]: e.variant === "compact"
|
|
229
|
+
}, a = S.headerLeft;
|
|
230
|
+
return f !== n.e && k(s, n.e = f), n.t = p(s, m, n.t), a !== n.a && k(u, n.a = a), n;
|
|
231
|
+
}, {
|
|
232
|
+
e: void 0,
|
|
233
|
+
t: void 0,
|
|
234
|
+
a: void 0
|
|
235
|
+
}), s;
|
|
236
|
+
})();
|
|
237
|
+
}
|
|
238
|
+
const Ae = "vk_handle_fHazX", Be = "vk_dragging_7oGBz", Me = "vk_horizontal_nwaLt", Ke = "vk_vertical_wzd-m", We = "vk_indicator_aLgDs", A = {
|
|
239
|
+
handle: Ae,
|
|
240
|
+
dragging: Be,
|
|
241
|
+
horizontal: Me,
|
|
242
|
+
vertical: Ke,
|
|
243
|
+
indicator: We
|
|
244
|
+
};
|
|
245
|
+
var He = /* @__PURE__ */ P("<div role=separator tabindex=0><div aria-hidden=true>");
|
|
246
|
+
function vt(e) {
|
|
247
|
+
const [s, u] = $(!1), v = () => e.orientation ?? "horizontal";
|
|
248
|
+
let n;
|
|
249
|
+
W(() => {
|
|
250
|
+
n == null || n();
|
|
251
|
+
});
|
|
252
|
+
const f = (a) => {
|
|
253
|
+
a.preventDefault();
|
|
254
|
+
const c = a.currentTarget;
|
|
255
|
+
c.setPointerCapture(a.pointerId), u(!0);
|
|
256
|
+
let o = a.clientX, I = a.clientY;
|
|
257
|
+
const g = (t) => {
|
|
258
|
+
var z;
|
|
259
|
+
const i = t.clientX - o, d = t.clientY - I;
|
|
260
|
+
o = t.clientX, I = t.clientY;
|
|
261
|
+
const b = v() === "horizontal" ? i : d;
|
|
262
|
+
(z = e.onResize) == null || z.call(e, b);
|
|
263
|
+
}, r = (t) => {
|
|
264
|
+
try {
|
|
265
|
+
c.releasePointerCapture(t.pointerId);
|
|
266
|
+
} catch {
|
|
267
|
+
}
|
|
268
|
+
c.removeEventListener("pointermove", g), c.removeEventListener("pointerup", r), c.removeEventListener("pointercancel", r), n = void 0, u(!1);
|
|
269
|
+
};
|
|
270
|
+
n = () => {
|
|
271
|
+
c.removeEventListener("pointermove", g), c.removeEventListener("pointerup", r), c.removeEventListener("pointercancel", r);
|
|
272
|
+
}, c.addEventListener("pointermove", g), c.addEventListener("pointerup", r), c.addEventListener("pointercancel", r);
|
|
273
|
+
}, m = (a) => {
|
|
274
|
+
var o, I, g, r;
|
|
275
|
+
const c = a.shiftKey ? 10 : 2;
|
|
276
|
+
v() === "horizontal" ? D(a, "ArrowLeft") ? (a.preventDefault(), (o = e.onResize) == null || o.call(e, -c)) : D(a, "ArrowRight") && (a.preventDefault(), (I = e.onResize) == null || I.call(e, c)) : D(a, "ArrowUp") ? (a.preventDefault(), (g = e.onResize) == null || g.call(e, -c)) : D(a, "ArrowDown") && (a.preventDefault(), (r = e.onResize) == null || r.call(e, c));
|
|
277
|
+
};
|
|
278
|
+
return (() => {
|
|
279
|
+
var a = He(), c = a.firstChild;
|
|
280
|
+
return a.$$keydown = m, ee(a, "dblclick", e.onDoubleClick, !0), a.$$pointerdown = f, R((o) => {
|
|
281
|
+
var I = v(), g = e.value, r = e.min, t = e.max, i = e.ariaLabel ?? "Resize separator", d = `${A.handle} ${v() === "horizontal" ? A.horizontal : A.vertical} ${s() ? A.dragging : ""} ${e.class ?? ""}`, b = A.indicator;
|
|
282
|
+
return I !== o.e && L(a, "aria-orientation", o.e = I), g !== o.t && L(a, "aria-valuenow", o.t = g), r !== o.a && L(a, "aria-valuemin", o.a = r), t !== o.o && L(a, "aria-valuemax", o.o = t), i !== o.i && L(a, "aria-label", o.i = i), d !== o.n && k(a, o.n = d), b !== o.s && k(c, o.s = b), o;
|
|
283
|
+
}, {
|
|
284
|
+
e: void 0,
|
|
285
|
+
t: void 0,
|
|
286
|
+
a: void 0,
|
|
287
|
+
o: void 0,
|
|
288
|
+
i: void 0,
|
|
289
|
+
n: void 0,
|
|
290
|
+
s: void 0
|
|
291
|
+
}), a;
|
|
292
|
+
})();
|
|
293
|
+
}
|
|
294
|
+
O(["pointerdown", "dblclick", "keydown"]);
|
|
295
|
+
const Oe = "vk_container_DGAoE", Xe = "vk_horizontal_GnS2m", Ye = "vk_vertical_oOyQM", Ne = "vk_firstPane_kDkKK", Ve = "vk_secondPane_61mm8", Ue = "vk_paneScroll_-7IJF", Ge = "vk_separator_Gadcl", Fe = "vk_separatorHorizontal_0e62B", Te = "vk_separatorVertical_zIDqL", Je = "vk_dragging_iMvN6", Qe = "vk_handle_7YOEJ", y = {
|
|
296
|
+
container: Oe,
|
|
297
|
+
horizontal: Xe,
|
|
298
|
+
vertical: Ye,
|
|
299
|
+
firstPane: Ne,
|
|
300
|
+
secondPane: Ve,
|
|
301
|
+
paneScroll: Ue,
|
|
302
|
+
separator: Ge,
|
|
303
|
+
separatorHorizontal: Fe,
|
|
304
|
+
separatorVertical: Te,
|
|
305
|
+
dragging: Je,
|
|
306
|
+
handle: Qe
|
|
307
|
+
};
|
|
308
|
+
var je = /* @__PURE__ */ P("<div><div></div><div role=separator tabindex=0><div aria-hidden=true></div></div><div>");
|
|
309
|
+
function ht(e) {
|
|
310
|
+
const s = () => e.direction ?? "horizontal", u = () => e.minSize ?? 15, v = () => e.maxSize ?? 85, [n, f] = $(Math.min(v(), Math.max(u(), e.initialSize ?? 50))), [m, a] = $(!1);
|
|
311
|
+
let c;
|
|
312
|
+
const o = (t) => {
|
|
313
|
+
var d;
|
|
314
|
+
const i = Math.min(v(), Math.max(u(), t));
|
|
315
|
+
f(i), (d = e.onResize) == null || d.call(e, i);
|
|
316
|
+
}, I = () => {
|
|
317
|
+
o(50);
|
|
318
|
+
}, g = (t) => {
|
|
319
|
+
t.preventDefault();
|
|
320
|
+
const i = t.currentTarget;
|
|
321
|
+
i.setPointerCapture(t.pointerId), a(!0);
|
|
322
|
+
const d = (z) => {
|
|
323
|
+
if (!c) return;
|
|
324
|
+
const l = c.getBoundingClientRect();
|
|
325
|
+
let C;
|
|
326
|
+
s() === "horizontal" ? C = (z.clientX - l.left) / l.width * 100 : C = (z.clientY - l.top) / l.height * 100, o(C);
|
|
327
|
+
}, b = (z) => {
|
|
328
|
+
try {
|
|
329
|
+
i.releasePointerCapture(z.pointerId);
|
|
330
|
+
} catch (l) {
|
|
331
|
+
ve("ignore if capture already released", l);
|
|
332
|
+
}
|
|
333
|
+
i.removeEventListener("pointermove", d), i.removeEventListener("pointerup", b), i.removeEventListener("pointercancel", b), a(!1);
|
|
334
|
+
};
|
|
335
|
+
i.addEventListener("pointermove", d), i.addEventListener("pointerup", b), i.addEventListener("pointercancel", b);
|
|
336
|
+
}, r = (t) => {
|
|
337
|
+
if (D(t, "Home")) {
|
|
338
|
+
t.preventDefault(), o(u());
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
341
|
+
if (D(t, "End")) {
|
|
342
|
+
t.preventDefault(), o(v());
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
const i = t.shiftKey ? 5 : 1;
|
|
346
|
+
s() === "horizontal" ? D(t, "ArrowLeft") ? (t.preventDefault(), o(n() - i)) : D(t, "ArrowRight") && (t.preventDefault(), o(n() + i)) : D(t, "ArrowUp") ? (t.preventDefault(), o(n() - i)) : D(t, "ArrowDown") && (t.preventDefault(), o(n() + i));
|
|
347
|
+
};
|
|
348
|
+
return (() => {
|
|
349
|
+
var t = je(), i = t.firstChild, d = i.nextSibling, b = d.firstChild, z = d.nextSibling;
|
|
350
|
+
return te((l) => {
|
|
351
|
+
c = l;
|
|
352
|
+
}, t), w(i, _(q, {
|
|
353
|
+
get rootClass() {
|
|
354
|
+
return y.paneScroll;
|
|
355
|
+
},
|
|
356
|
+
get children() {
|
|
357
|
+
return e.first;
|
|
358
|
+
}
|
|
359
|
+
})), d.$$keydown = r, d.$$dblclick = I, d.$$pointerdown = g, w(z, _(q, {
|
|
360
|
+
get rootClass() {
|
|
361
|
+
return y.paneScroll;
|
|
362
|
+
},
|
|
363
|
+
get children() {
|
|
364
|
+
return e.second;
|
|
365
|
+
}
|
|
366
|
+
})), R((l) => {
|
|
367
|
+
var C = `${y.container} ${s() === "horizontal" ? y.horizontal : y.vertical} ${m() ? y.dragging : ""} ${e.class ?? ""}`, h = y.firstPane, E = {
|
|
368
|
+
[s() === "horizontal" ? "width" : "height"]: `${n()}%`
|
|
369
|
+
}, M = s(), K = Math.round(n()), X = u(), Y = v(), N = e.ariaLabel ?? "Resize pane", V = `${y.separator} ${s() === "horizontal" ? y.separatorHorizontal : y.separatorVertical}`, U = y.handle, G = y.secondPane;
|
|
370
|
+
return C !== l.e && k(t, l.e = C), h !== l.t && k(i, l.t = h), l.a = ne(i, E, l.a), M !== l.o && L(d, "aria-orientation", l.o = M), K !== l.i && L(d, "aria-valuenow", l.i = K), X !== l.n && L(d, "aria-valuemin", l.n = X), Y !== l.s && L(d, "aria-valuemax", l.s = Y), N !== l.h && L(d, "aria-label", l.h = N), V !== l.r && k(d, l.r = V), U !== l.d && k(b, l.d = U), G !== l.l && k(z, l.l = G), l;
|
|
371
|
+
}, {
|
|
372
|
+
e: void 0,
|
|
373
|
+
t: void 0,
|
|
374
|
+
a: void 0,
|
|
375
|
+
o: void 0,
|
|
376
|
+
i: void 0,
|
|
377
|
+
n: void 0,
|
|
378
|
+
s: void 0,
|
|
379
|
+
h: void 0,
|
|
380
|
+
r: void 0,
|
|
381
|
+
d: void 0,
|
|
382
|
+
l: void 0
|
|
383
|
+
}), t;
|
|
384
|
+
})();
|
|
385
|
+
}
|
|
386
|
+
O(["pointerdown", "dblclick", "keydown"]);
|
|
387
|
+
function H(e, s, u) {
|
|
388
|
+
return Math.max(s, Math.min(u, e));
|
|
389
|
+
}
|
|
390
|
+
function qe(e, s, u, v) {
|
|
391
|
+
return typeof e != "number" || Number.isNaN(e) ? s : H(e, u, v);
|
|
392
|
+
}
|
|
393
|
+
function gt(e) {
|
|
394
|
+
const { layout: s } = ge(), u = () => {
|
|
395
|
+
var h;
|
|
396
|
+
return qe(
|
|
397
|
+
(h = s.getUiLayout().sidebarWidths) == null ? void 0 : h[e.storageKey],
|
|
398
|
+
e.defaultWidth,
|
|
399
|
+
e.min,
|
|
400
|
+
e.max
|
|
401
|
+
);
|
|
402
|
+
}, v = () => {
|
|
403
|
+
var h;
|
|
404
|
+
return ((h = s.getUiLayout().sidebarCollapsed) == null ? void 0 : h[e.collapsedKey]) === !0;
|
|
405
|
+
}, [n, f] = $(u()), [m, a] = $(v()), [c, o] = $(!1), I = s.onDidChangeSidebar((h) => {
|
|
406
|
+
c() || h !== e.storageKey && h !== e.collapsedKey || re(() => {
|
|
407
|
+
f(u()), a(v());
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
W(() => I.dispose());
|
|
411
|
+
let g = null, r = null, t = typeof window < "u" ? window : globalThis;
|
|
412
|
+
const i = () => {
|
|
413
|
+
g && t.removeEventListener("mousemove", g), r && t.removeEventListener("mouseup", r), g = null, r = null;
|
|
414
|
+
}, d = (h, E) => {
|
|
415
|
+
h.preventDefault(), o(!0), t = he(E);
|
|
416
|
+
const M = E.getBoundingClientRect().left;
|
|
417
|
+
g = (K) => {
|
|
418
|
+
f(H(K.clientX - M, e.min, e.max));
|
|
419
|
+
}, r = () => {
|
|
420
|
+
o(!1), s.setSidebarWidth(e.storageKey, n()), i();
|
|
421
|
+
}, t.addEventListener("mousemove", g), t.addEventListener("mouseup", r);
|
|
422
|
+
}, b = () => {
|
|
423
|
+
const h = !m();
|
|
424
|
+
a(h), s.setSidebarCollapsed(e.collapsedKey, h);
|
|
425
|
+
}, z = (h) => {
|
|
426
|
+
const E = H(h, e.min, e.max);
|
|
427
|
+
f(E), s.setSidebarWidth(e.storageKey, E);
|
|
428
|
+
}, l = (h) => {
|
|
429
|
+
z(n() + h);
|
|
430
|
+
}, C = () => {
|
|
431
|
+
z(e.defaultWidth);
|
|
432
|
+
};
|
|
433
|
+
return W(i), {
|
|
434
|
+
width: n,
|
|
435
|
+
collapsed: m,
|
|
436
|
+
isResizing: c,
|
|
437
|
+
startResize: d,
|
|
438
|
+
resizeBy: l,
|
|
439
|
+
resetWidth: C,
|
|
440
|
+
toggleCollapse: b
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
export {
|
|
444
|
+
ut as P,
|
|
445
|
+
ht as R,
|
|
446
|
+
me as a,
|
|
447
|
+
vt as b,
|
|
448
|
+
gt as c
|
|
449
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("solid-js/web"),Y=require("@vokril/icons"),v=require("solid-js"),V=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),E=require("./headerIconOverrides-Bn1QuODq.cjs"),D=require("./IconPicker-4bdAeGxS.cjs"),A=require("./i18n-DZ0JlZal.cjs"),O=require("./Button-Nx7byQZc.cjs"),_=require("./keys-GMxY2wcl.cjs"),W=require("./OverlayScrollArea-BSlaXG1h.cjs"),U=require("./errorHandler-DoDAPpv2.cjs"),G=require("./windowRegistry-CxXtP-iY.cjs"),F=require("./kitHost-BfJExE1G.cjs");var J=t.template("<div>");function X(e){const u=V.useDesktopContextMenu(),g=E.getHeaderIconOverrides(),[h,a]=v.createSignal(null),b=()=>h()===e.pageId,[k,r]=v.createSignal(null),s=v.createMemo(()=>g()[e.pageId]??(e.fallbackPageId?g()[e.fallbackPageId]:null)??null);v.createEffect(()=>{e.pageId,a(null)}),v.createEffect(()=>{const i=s();if(!i){r(null);return}const n=D.getIconSync(i.name);if(n){r(()=>n);return}r(null);let o=!1;v.onCleanup(()=>{o=!0}),D.loadIconSet().then(d=>{const S=s();o||!S||S.name!==i.name||r(()=>d[i.name]??null)})});const l=v.createMemo(()=>k()??e.fallbackIcon),I=i=>{if(e.interactive===!1)return;i.preventDefault(),i.stopPropagation();const n=e.pageId;D.isIconSetLoaded()||D.loadIconSet();const o=[],d=e.onSettings;d&&(o.push({label:A.t("Settings…"),onSelect:d}),o.push({type:"separator"})),o.push({label:A.t("Change icon"),onSelect:()=>{e.pageId===n&&a(n)}}),o.push({label:A.t("Reset to default icon"),disabled:!g()[e.pageId],onSelect:()=>{e.pageId===n&&E.clearHeaderIconOverride(n)}}),u.open(i.clientX,i.clientY,o,i)},m=i=>{const n=h();!n||n!==e.pageId||(E.setHeaderIconOverride(n,{set:"tb",name:i}),a(null))};return[(()=>{var i=J();return i.$$contextmenu=I,t.insert(i,t.createComponent(t.Dynamic,{get component(){return l()},get class(){return e.iconClass},"aria-hidden":"true"})),t.effect(n=>{var o=e.class,d=e.ariaLabel;return o!==n.e&&t.className(i,n.e=o),d!==n.t&&t.setAttribute(i,"aria-label",n.t=d),n},{e:void 0,t:void 0}),i})(),t.createComponent(v.Show,{get when(){return b()},get children(){return t.createComponent(D.IconPicker,{open:b,onClose:()=>a(null),onSelect:m,get currentIconName(){var i;return((i=s())==null?void 0:i.name)??null}})}})]}t.delegateEvents(["contextmenu"]);const T="vk_header_7CNKc",Q="vk_headerLeft_-fa7V",j="vk_headerActions_aaFA-",Z="vk_headerIcon_c1sgk",p="vk_headerIconSvg_7jyQp",ee="vk_titleRow_0A-NY",te="vk_backButton_GIWbu",ne="vk_title_k1DVA",ae="vk_subtitle_RXfOz",re="vk_refreshIconButton_bVyMc",ie="vk_compact_e7ku-",w={header:T,headerLeft:Q,headerActions:j,headerIcon:Z,headerIconSvg:p,titleRow:ee,backButton:te,title:ne,subtitle:ae,refreshIconButton:re,compact:ie};var oe=t.template("<div><h2>"),le=t.template("<p>"),ce=t.template("<div>"),se=t.template("<header><div><div>"),de=t.template("<h2>");function ue(e){return(()=>{var u=se(),g=u.firstChild,h=g.firstChild;return t.insert(g,t.createComponent(v.Show,{get when(){return t.memo(()=>e.fallbackIcon!=null)()&&e.pageId!=null},get children(){return t.createComponent(X,{get pageId(){return e.pageId},get fallbackPageId(){return e.fallbackIconPageId},get fallbackIcon(){return e.fallbackIcon},get class(){return w.headerIcon},get iconClass(){return w.headerIconSvg},get ariaLabel(){return e.iconAriaLabel},get onSettings(){return e.onSettings}})}}),h),t.insert(h,t.createComponent(v.Show,{get when(){return e.onBack!=null},get fallback(){return(()=>{var a=de();return t.insert(a,()=>e.title),t.effect(()=>t.className(a,w.title)),a})()},get children(){var a=oe(),b=a.firstChild;return t.insert(a,t.createComponent(O.Button,{variant:"secondary",size:"sm",get class(){return w.backButton},onClick:()=>e.onBack(),get children(){return["← ",t.memo(()=>e.backLabel??A.t("Back"))]}}),b),t.insert(b,()=>e.title),t.effect(k=>{var r=w.titleRow,s=w.title;return r!==k.e&&t.className(a,k.e=r),s!==k.t&&t.className(b,k.t=s),k},{e:void 0,t:void 0}),a}}),null),t.insert(h,t.createComponent(v.Show,{get when(){return e.subtitle!=null},get children(){var a=le();return t.insert(a,()=>e.subtitle),t.effect(()=>t.className(a,w.subtitle)),a}}),null),t.insert(u,t.createComponent(v.Show,{get when(){return e.onRefresh!=null||e.actions!=null},get children(){var a=ce();return t.insert(a,t.createComponent(v.Show,{get when(){return e.onRefresh!=null},get children(){return t.createComponent(O.Button,{size:"md",variant:"secondary",iconOnly:!0,get class(){return w.refreshIconButton},get disabled(){return e.refreshDisabled},get loading(){return e.refreshing},loadingDelay:0,get"aria-label"(){return e.refreshAriaLabel??A.t("Refresh")},onClick:()=>e.onRefresh(),get children(){return t.createComponent(Y.VpRefresh,{"aria-hidden":"true"})}})}}),null),t.insert(a,()=>e.actions,null),t.effect(()=>t.className(a,w.headerActions)),a}}),null),t.effect(a=>{var b=w.header,k={[w.compact]:e.variant==="compact"},r=w.headerLeft;return b!==a.e&&t.className(u,a.e=b),a.t=t.classList(u,k,a.t),r!==a.a&&t.className(g,a.a=r),a},{e:void 0,t:void 0,a:void 0}),u})()}const ve="vk_handle_fHazX",ge="vk_dragging_7oGBz",he="vk_horizontal_nwaLt",fe="vk_vertical_wzd-m",me="vk_indicator_aLgDs",R={handle:ve,dragging:ge,horizontal:he,vertical:fe,indicator:me};var be=t.template("<div role=separator tabindex=0><div aria-hidden=true>");function ke(e){const[u,g]=v.createSignal(!1),h=()=>e.orientation??"horizontal";let a;v.onCleanup(()=>{a==null||a()});const b=r=>{r.preventDefault();const s=r.currentTarget;s.setPointerCapture(r.pointerId),g(!0);let l=r.clientX,I=r.clientY;const m=n=>{var y;const o=n.clientX-l,d=n.clientY-I;l=n.clientX,I=n.clientY;const S=h()==="horizontal"?o:d;(y=e.onResize)==null||y.call(e,S)},i=n=>{try{s.releasePointerCapture(n.pointerId)}catch{}s.removeEventListener("pointermove",m),s.removeEventListener("pointerup",i),s.removeEventListener("pointercancel",i),a=void 0,g(!1)};a=()=>{s.removeEventListener("pointermove",m),s.removeEventListener("pointerup",i),s.removeEventListener("pointercancel",i)},s.addEventListener("pointermove",m),s.addEventListener("pointerup",i),s.addEventListener("pointercancel",i)},k=r=>{var l,I,m,i;const s=r.shiftKey?10:2;h()==="horizontal"?_.isKey(r,"ArrowLeft")?(r.preventDefault(),(l=e.onResize)==null||l.call(e,-s)):_.isKey(r,"ArrowRight")&&(r.preventDefault(),(I=e.onResize)==null||I.call(e,s)):_.isKey(r,"ArrowUp")?(r.preventDefault(),(m=e.onResize)==null||m.call(e,-s)):_.isKey(r,"ArrowDown")&&(r.preventDefault(),(i=e.onResize)==null||i.call(e,s))};return(()=>{var r=be(),s=r.firstChild;return r.$$keydown=k,t.addEventListener(r,"dblclick",e.onDoubleClick,!0),r.$$pointerdown=b,t.effect(l=>{var I=h(),m=e.value,i=e.min,n=e.max,o=e.ariaLabel??"Resize separator",d=`${R.handle} ${h()==="horizontal"?R.horizontal:R.vertical} ${u()?R.dragging:""} ${e.class??""}`,S=R.indicator;return I!==l.e&&t.setAttribute(r,"aria-orientation",l.e=I),m!==l.t&&t.setAttribute(r,"aria-valuenow",l.t=m),i!==l.a&&t.setAttribute(r,"aria-valuemin",l.a=i),n!==l.o&&t.setAttribute(r,"aria-valuemax",l.o=n),o!==l.i&&t.setAttribute(r,"aria-label",l.i=o),d!==l.n&&t.className(r,l.n=d),S!==l.s&&t.className(s,l.s=S),l},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),r})()}t.delegateEvents(["pointerdown","dblclick","keydown"]);const Se="vk_container_DGAoE",Ie="vk_horizontal_GnS2m",ye="vk_vertical_oOyQM",we="vk_firstPane_kDkKK",ze="vk_secondPane_61mm8",_e="vk_paneScroll_-7IJF",Ce="vk_separator_Gadcl",Le="vk_separatorHorizontal_0e62B",De="vk_separatorVertical_zIDqL",Re="vk_dragging_iMvN6",Ae="vk_handle_7YOEJ",z={container:Se,horizontal:Ie,vertical:ye,firstPane:we,secondPane:ze,paneScroll:_e,separator:Ce,separatorHorizontal:Le,separatorVertical:De,dragging:Re,handle:Ae};var Pe=t.template("<div><div></div><div role=separator tabindex=0><div aria-hidden=true></div></div><div>");function $e(e){const u=()=>e.direction??"horizontal",g=()=>e.minSize??15,h=()=>e.maxSize??85,[a,b]=v.createSignal(Math.min(h(),Math.max(g(),e.initialSize??50))),[k,r]=v.createSignal(!1);let s;const l=n=>{var d;const o=Math.min(h(),Math.max(g(),n));b(o),(d=e.onResize)==null||d.call(e,o)},I=()=>{l(50)},m=n=>{n.preventDefault();const o=n.currentTarget;o.setPointerCapture(n.pointerId),r(!0);const d=y=>{if(!s)return;const c=s.getBoundingClientRect();let C;u()==="horizontal"?C=(y.clientX-c.left)/c.width*100:C=(y.clientY-c.top)/c.height*100,l(C)},S=y=>{try{o.releasePointerCapture(y.pointerId)}catch(c){U.bestEffortFailed("ignore if capture already released",c)}o.removeEventListener("pointermove",d),o.removeEventListener("pointerup",S),o.removeEventListener("pointercancel",S),r(!1)};o.addEventListener("pointermove",d),o.addEventListener("pointerup",S),o.addEventListener("pointercancel",S)},i=n=>{if(_.isKey(n,"Home")){n.preventDefault(),l(g());return}if(_.isKey(n,"End")){n.preventDefault(),l(h());return}const o=n.shiftKey?5:1;u()==="horizontal"?_.isKey(n,"ArrowLeft")?(n.preventDefault(),l(a()-o)):_.isKey(n,"ArrowRight")&&(n.preventDefault(),l(a()+o)):_.isKey(n,"ArrowUp")?(n.preventDefault(),l(a()-o)):_.isKey(n,"ArrowDown")&&(n.preventDefault(),l(a()+o))};return(()=>{var n=Pe(),o=n.firstChild,d=o.nextSibling,S=d.firstChild,y=d.nextSibling;return t.use(c=>{s=c},n),t.insert(o,t.createComponent(W.OverlayScrollArea,{get rootClass(){return z.paneScroll},get children(){return e.first}})),d.$$keydown=i,d.$$dblclick=I,d.$$pointerdown=m,t.insert(y,t.createComponent(W.OverlayScrollArea,{get rootClass(){return z.paneScroll},get children(){return e.second}})),t.effect(c=>{var C=`${z.container} ${u()==="horizontal"?z.horizontal:z.vertical} ${k()?z.dragging:""} ${e.class??""}`,f=z.firstPane,L={[u()==="horizontal"?"width":"height"]:`${a()}%`},P=u(),$=Math.round(a()),x=g(),N=h(),B=e.ariaLabel??"Resize pane",M=`${z.separator} ${u()==="horizontal"?z.separatorHorizontal:z.separatorVertical}`,H=z.handle,q=z.secondPane;return C!==c.e&&t.className(n,c.e=C),f!==c.t&&t.className(o,c.t=f),c.a=t.style(o,L,c.a),P!==c.o&&t.setAttribute(d,"aria-orientation",c.o=P),$!==c.i&&t.setAttribute(d,"aria-valuenow",c.i=$),x!==c.n&&t.setAttribute(d,"aria-valuemin",c.n=x),N!==c.s&&t.setAttribute(d,"aria-valuemax",c.s=N),B!==c.h&&t.setAttribute(d,"aria-label",c.h=B),M!==c.r&&t.className(d,c.r=M),H!==c.d&&t.className(S,c.d=H),q!==c.l&&t.className(y,c.l=q),c},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0}),n})()}t.delegateEvents(["pointerdown","dblclick","keydown"]);function K(e,u,g){return Math.max(u,Math.min(g,e))}function Ee(e,u,g,h){return typeof e!="number"||Number.isNaN(e)?u:K(e,g,h)}function Ke(e){const{layout:u}=F.useKitHost(),g=()=>{var f;return Ee((f=u.getUiLayout().sidebarWidths)==null?void 0:f[e.storageKey],e.defaultWidth,e.min,e.max)},h=()=>{var f;return((f=u.getUiLayout().sidebarCollapsed)==null?void 0:f[e.collapsedKey])===!0},[a,b]=v.createSignal(g()),[k,r]=v.createSignal(h()),[s,l]=v.createSignal(!1),I=u.onDidChangeSidebar(f=>{s()||f!==e.storageKey&&f!==e.collapsedKey||v.batch(()=>{b(g()),r(h())})});v.onCleanup(()=>I.dispose());let m=null,i=null,n=typeof window<"u"?window:globalThis;const o=()=>{m&&n.removeEventListener("mousemove",m),i&&n.removeEventListener("mouseup",i),m=null,i=null},d=(f,L)=>{f.preventDefault(),l(!0),n=G.getWindow(L);const P=L.getBoundingClientRect().left;m=$=>{b(K($.clientX-P,e.min,e.max))},i=()=>{l(!1),u.setSidebarWidth(e.storageKey,a()),o()},n.addEventListener("mousemove",m),n.addEventListener("mouseup",i)},S=()=>{const f=!k();r(f),u.setSidebarCollapsed(e.collapsedKey,f)},y=f=>{const L=K(f,e.min,e.max);b(L),u.setSidebarWidth(e.storageKey,L)},c=f=>{y(a()+f)},C=()=>{y(e.defaultWidth)};return v.onCleanup(o),{width:a,collapsed:k,isResizing:s,startResize:d,resizeBy:c,resetWidth:C,toggleCollapse:S}}exports.PageHeader=ue;exports.PageHeaderIcon=X;exports.ResizableSplitPane=$e;exports.ResizeHandle=ke;exports.createResizableSidebar=Ke;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("solid-js"),q=require("./windowRegistry-
|
|
1
|
+
"use strict";const l=require("solid-js"),q=require("./windowRegistry-CxXtP-iY.cjs");function C(e){const o=Math.floor(e.scrollTop/e.itemHeight)-e.overscan;return Math.max(0,o)}function F(e){const o=Math.ceil(e.containerHeight/e.itemHeight),i=Math.floor(e.scrollTop/e.itemHeight)+o+e.overscan;return Math.min(e.itemsLength,i)}function p(e){const o=C({scrollTop:e.scrollTop,itemHeight:e.itemHeight,overscan:e.overscan}),i=F({scrollTop:e.scrollTop,containerHeight:e.containerHeight,itemHeight:e.itemHeight,overscan:e.overscan,itemsLength:e.itemsLength});return{startIndex:o,endIndex:i}}function y(e,o){const i=[];for(let s=o.startIndex;s<o.endIndex;s++)i.push({item:e[s],index:s});return i}function B(e){const o=e.overscan??5,[i,s]=l.createSignal(0),[f,x]=l.createSignal(0);let t=null,r=null;const I=l.createMemo(()=>e.items().length*e.itemHeight),T=l.createMemo(()=>p({scrollTop:i(),containerHeight:f(),itemHeight:e.itemHeight,overscan:o,itemsLength:e.items().length})),v=l.createMemo(()=>T().startIndex),S=l.createMemo(()=>T().endIndex),w=l.createMemo(()=>v()*e.itemHeight),L=l.createMemo(()=>{const n=e.items();return y(n,{startIndex:v(),endIndex:S()})});let c=0,a=0,m=0,h=null;const H=n=>{const g=n.currentTarget;a=g.scrollTop,c===0&&(m=a,s(a),h=q.getWindow(g),c=h.requestAnimationFrame(()=>{c=0,a!==m&&(m=a,s(a))}))},V=n=>{t&&(t.removeEventListener("scroll",H),r==null||r.disconnect()),c!==0&&h&&(h.cancelAnimationFrame(c),c=0),t=n,n&&(x(n.clientHeight),n.addEventListener("scroll",H,{passive:!0}),r=new ResizeObserver(g=>{for(const u of g)x(u.contentRect.height)}),r.observe(n))},E=(n,g="auto",u=0)=>{if(!t)return;const d=n*e.itemHeight;if(g==="center"){const W=Math.max(0,t.scrollHeight-t.clientHeight),b=d-Math.max(0,(t.clientHeight-e.itemHeight)/2);t.scrollTop=Math.max(0,Math.min(W,b));return}const M=d+e.itemHeight,R=t.scrollTop+u,A=t.scrollTop+t.clientHeight;d<R?t.scrollTop=Math.max(0,d-u):M>A&&(t.scrollTop=M-t.clientHeight)};return l.onCleanup(()=>{c!==0&&h&&(h.cancelAnimationFrame(c),c=0),t&&t.removeEventListener("scroll",H),r==null||r.disconnect()}),{visibleItems:L,totalHeight:I,offsetY:w,scrollTop:i,viewportHeight:f,containerRef:V,scrollToIndex:E}}exports.createVirtualScroller=B;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createSignal as M, createMemo as a, onCleanup as C } from "solid-js";
|
|
2
|
-
import {
|
|
2
|
+
import { g as F } from "./windowRegistry-DeGmXt6W.js";
|
|
3
3
|
function q(t) {
|
|
4
4
|
const o = Math.floor(t.scrollTop / t.itemHeight) - t.overscan;
|
|
5
5
|
return Math.max(0, o);
|
|
@@ -32,14 +32,14 @@ function Y(t, o) {
|
|
|
32
32
|
return i;
|
|
33
33
|
}
|
|
34
34
|
function D(t) {
|
|
35
|
-
const o = t.overscan ?? 5, [i, r] = M(0), [
|
|
35
|
+
const o = t.overscan ?? 5, [i, r] = M(0), [f, x] = M(0);
|
|
36
36
|
let e = null, l = null;
|
|
37
37
|
const S = a(
|
|
38
38
|
() => t.items().length * t.itemHeight
|
|
39
39
|
), T = a(
|
|
40
40
|
() => B({
|
|
41
41
|
scrollTop: i(),
|
|
42
|
-
containerHeight:
|
|
42
|
+
containerHeight: f(),
|
|
43
43
|
itemHeight: t.itemHeight,
|
|
44
44
|
overscan: o,
|
|
45
45
|
itemsLength: t.items().length
|
|
@@ -52,13 +52,13 @@ function D(t) {
|
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
let c = 0, s = 0, u = 0, h = null;
|
|
55
|
-
const
|
|
55
|
+
const H = (n) => {
|
|
56
56
|
const g = n.currentTarget;
|
|
57
57
|
s = g.scrollTop, c === 0 && (u = s, r(s), h = F(g), c = h.requestAnimationFrame(() => {
|
|
58
58
|
c = 0, s !== u && (u = s, r(s));
|
|
59
59
|
}));
|
|
60
60
|
}, E = (n) => {
|
|
61
|
-
e && (e.removeEventListener("scroll",
|
|
61
|
+
e && (e.removeEventListener("scroll", H), l == null || l.disconnect()), c !== 0 && h && (h.cancelAnimationFrame(c), c = 0), e = n, n && (x(n.clientHeight), n.addEventListener("scroll", H, { passive: !0 }), l = new ResizeObserver((g) => {
|
|
62
62
|
for (const m of g)
|
|
63
63
|
x(m.contentRect.height);
|
|
64
64
|
}), l.observe(n));
|
|
@@ -77,13 +77,13 @@ function D(t) {
|
|
|
77
77
|
d < A ? e.scrollTop = Math.max(0, d - m) : I > R && (e.scrollTop = I - e.clientHeight);
|
|
78
78
|
};
|
|
79
79
|
return C(() => {
|
|
80
|
-
c !== 0 && h && (h.cancelAnimationFrame(c), c = 0), e && e.removeEventListener("scroll",
|
|
80
|
+
c !== 0 && h && (h.cancelAnimationFrame(c), c = 0), e && e.removeEventListener("scroll", H), l == null || l.disconnect();
|
|
81
81
|
}), {
|
|
82
82
|
visibleItems: p,
|
|
83
83
|
totalHeight: S,
|
|
84
84
|
offsetY: L,
|
|
85
85
|
scrollTop: i,
|
|
86
|
-
viewportHeight:
|
|
86
|
+
viewportHeight: f,
|
|
87
87
|
containerRef: E,
|
|
88
88
|
scrollToIndex: V
|
|
89
89
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const A=require("./stateDbStore-CThsVch-.cjs"),re=require("./errorHandler-DoDAPpv2.cjs"),C=require("./bugIndicatingError-D2X5Hfgg.cjs");function M(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 l=e.trim?t.trim():t;if(!e.trim||l.length>0)return l}return e.default}case"custom":return e.normalize(t,e.default)}}function q(e){const t=e,l={};for(const a of Object.keys(t))l[a]=t[a].default;return l}function I(e){const t=e,l=Object.keys(t);return a=>{const u=typeof a=="object"&&a!==null?a:{},i={};for(const o of l)i[o]=M(t[o],u[o]);return i}}function H(e){const t=e,l=Object.keys(t);return a=>{const u=typeof a=="object"&&a!==null?a:{},i={};for(const o of l)o in u&&(i[o]=M(t[o],u[o]));return i}}function J(e,t){const l={...t.application},a=t.profile,u=t.connection,i=t.workspace;for(const o of e){const v=i==null?void 0:i[o];if(v!==void 0){l[o]=v;continue}const b=u==null?void 0:u[o];if(b!==void 0){l[o]=b;continue}const g=a==null?void 0:a[o];g!==void 0&&(l[o]=g)}return l}function se(e,t,l=()=>e){let a=null;const u={};let i=!1;const o=Symbol("layeredValue.unset");let v=o;const b=(f,w)=>{const E=f??l();return Object.values(w).every(j=>j===void 0)||!t?E:J(t,{application:E,profile:w.profile,connection:w.connection,workspace:w.workspace})},g=()=>(v!==o||(v=b(a,u)),v),y=()=>{v=o};return{resolve:g,invalidate:y,isResolved:()=>v!==o,isEstablished:()=>i,preview:(f,w)=>{const E=f==="application"?w:a,j=f==="application"?u:{...u,[f]:w};return b(E,j)},application:()=>a,override:f=>f==="application"?{}:u[f]??{},commit:(f,w)=>{f==="application"?a=w:u[f]=w,y(),i=!0},deleteOverride:f=>f==="application"||u[f]===void 0?!1:(delete u[f],y(),!0),snapshot:()=>({application:a,overrides:{...u}}),restore:f=>{a=f.application,delete u.profile,delete u.workspace,f.overrides.profile!==void 0&&(u.profile=f.overrides.profile),f.overrides.workspace!==void 0&&(u.workspace=f.overrides.workspace),y()},reset:()=>{a=null,delete u.profile,delete u.workspace,i=!1,y()},resetApplication:()=>{a=null,i=u.profile!==void 0||u.workspace!==void 0,y()}}}const D=new Map,N=new Set;function _(e){const t=e.indexOf(".");return t===-1?{group:e,field:void 0}:{group:e.slice(0,t),field:e.slice(t+1)}}function U(...e){const t=new Set;for(const l of e)if(l)for(const a of Object.keys(l))t.add(_(a).group);return t}function W(e){if(e.size!==0)for(const t of N)t(e)}function ce(e,t){const l=D.get(e);t&&Object.keys(t).length>0?D.set(e,t):D.delete(e),W(U(l,t))}function le(e){const t=D.get(e);t&&(D.delete(e),W(U(t)))}function Y(e){let t;for(const l of D.values())for(const[a,u]of Object.entries(l)){const{group:i,field:o}=_(a);i===e&&(t??(t={}),t[o??""]=u)}return t}function Q(e){return N.add(e),()=>{N.delete(e)}}function ae(){D.clear()}const B={application:0,profile:1,connection:2,workspace:3};function ue(e,t){return B[t]<=B[e]}function fe(e){e.reset()}const R=[],G=new Map;function de(e){A.bindSettingsBackend(e);for(const t of R)t.hydrate()}function pe(){return R}function ve(e){return G.get(e)}const T=new Set;function ge(e){return T.add(e),()=>{T.delete(e)}}function ye(e,t){for(const l of T)l({key:e,value:t})}function X(e){const{key:t,changeEvent:l,scope:a,store:u,applyRuntime:i,defaultValue:o,normalize:v,normalizePartial:b,fieldKeys:g,uiSchema:y,secretKeys:r,protectedDefaultFields:p}=e;Object.freeze(o);let S=!1;const k=()=>{if(!S)throw new C.BugIndicatingError(`[settings] "${t}" used before it was hydrated — the realm hydrates its settings at startup with hydrateRegisteredSettings(backend); a group with its own store calls hydrate().`)},F=()=>{if(p==="*")return o;const n=Y(t);if(!n)return o;if(!(o!==null&&typeof o=="object"&&!Array.isArray(o)))return""in n?n[""]:o;const d=p,h={};for(const[m,P]of Object.entries(n))m!==""&&!(d&&d.includes(m))&&(h[m]=P);return Object.keys(h).length===0?o:{...o,...h}},c=se(o,g,F),O=n=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent(l,{detail:n})),ye(t,n)},f=(n,s)=>JSON.stringify(n)===JSON.stringify(s),w=(n,s)=>JSON.stringify(n)===JSON.stringify(s);Q(n=>{if(!n.has(t))return;if(!S){c.invalidate();return}const s=c.isResolved(),d=s?c.resolve():void 0;c.invalidate();const h=c.resolve();s&&f(d,h)||(i==null||i(h),O(h))});const E=()=>{k();const n=c.resolve();return n!==null&&typeof n=="object"?structuredClone(n):n},j=()=>(k(),c.resolve()),x=n=>{if(B[n]>B[a])throw new C.BugIndicatingError(`[settings] "${t}" is ${a}-scoped — cannot target deeper scope "${n}"`);if(n!=="application"&&!b)throw new C.BugIndicatingError(`[settings] "${t}" is a whole-value group — only the 'application' scope is writable`)},Z=async(n,s)=>{await u.write(n,s)},z=async(n,s)=>{const d=c.snapshot(),h=c.resolve(),m=c.preview(n,s),P=n==="application"?c.application():c.override(n);if(c.isEstablished()&&f(h,m)&&w(P,s))return m;c.commit(n,s),i==null||i(m),O(m);try{await Z(s,n)}catch(oe){c.restore(d);const $=c.resolve();throw i==null||i($),O($),oe}return m},ee=async(n,s)=>{k();const d=(s==null?void 0:s.target)??"application";if(x(d),d==="application"){const m=c.application()??F(),P=m!==null&&typeof m=="object"?{...m,...n}:n;return z("application",v(P))}const h={...c.override(d),...n};return z(d,b(h))},te=async(n,s)=>{if(k(),x(n),n==="application")throw new C.BugIndicatingError(`${t}: "application" is the baseline, not an override layer — nothing to clear`);const d=c.override(n);if(!(s in d))return c.resolve();const h={...d};return delete h[s],z(n,b(h))},ne=n=>(k(),x(n),n==="application"?{}:{...c.override(n)}),ie=async n=>(k(),z("application",v(n))),K=n=>{try{return u.read(n)}catch(s){if(!(s instanceof A.StoredSettingUnreadableError))throw s;re.onUnexpectedError(s);return}},V={key:t,changeEvent:l,scope:a,default:o,get:E,peek:j,update:ee,replace:ie,normalize:v,overrideAt:ne,clearOverrideField:te,hydrate:(n="application")=>{if(x(n),n==="application"){const d=K("application");d!=null?c.commit("application",v(d)):c.resetApplication(),S=!0}else k(),c.commit(n,b(K(n)));const s=c.resolve();return i==null||i(s),s},applyFromBroadcast:(n,s="application")=>{k(),x(s);const d=c.resolve(),h=s==="application"?v(n):b(n),m=c.preview(s,h);c.isEstablished()&&f(d,m)||(c.commit(s,h),i==null||i(m),O(m))},dropScopeLayer:n=>{k();const s=c.resolve();if(!c.deleteOverride(n))return;const d=c.resolve();f(s,d)||(i==null||i(d),O(d))},reset:()=>{c.reset(),S=!1},...y?{uiSchema:y}:{},...r&&r.length>0?{secretKeys:r}:{},...g?{fieldKeys:g}:{}};if(G.has(t))throw new C.BugIndicatingError(`[settings] Duplicate settings descriptor key: "${t}"`);const L=V;return R.push(L),G.set(t,L),A.isSettingsBackendBound()&&L.hydrate(),V}function he(e){const t=e.fields,l=Object.keys(t),a=q(e.fields),u=I(e.fields),i=H(e.fields),o=l.filter(g=>{const y=t[g];return y.kind==="string"&&y.secret===!0}),v=e.disallowPluginDefaults?"*":(()=>{const g=l.filter(y=>t[y].disallowPluginDefault===!0);return g.length>0?g:void 0})(),b=(()=>{const g=[];for(const y of l){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 S=r.uiMin??(r.kind==="int"?r.min:void 0);S!==void 0&&(p.min=S);const k=r.uiMax??(r.kind==="int"?r.max:void 0);k!==void 0&&(p.max=k),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 X({key:e.key,changeEvent:e.changeEvent,scope:e.scope??"application",store:e.store??A.stateDbStore(e.key),applyRuntime:e.applyRuntime,defaultValue:a,normalize:u,normalizePartial:i,fieldKeys:l,uiSchema:b,secretKeys:o,protectedDefaultFields:v})}function me(e){return X({key:e.key,changeEvent:e.changeEvent,scope:"application",store:e.store??A.stateDbStore(e.key),applyRuntime:e.applyRuntime,defaultValue:e.default,normalize:e.normalize,protectedDefaultFields:e.disallowPluginDefaults?"*":void 0})}exports.clearPluginConfigDefaults=le;exports.defineSettings=he;exports.defineSettingsValue=me;exports.deriveDefault=q;exports.deriveNormalize=I;exports.deriveNormalizePartial=H;exports.getContributedGroupDefault=Y;exports.getGroupByKey=ve;exports.getRegisteredSettingsGroups=pe;exports.hydrateRegisteredSettings=de;exports.normalizeField=M;exports.onAnySettingsChange=ge;exports.resetPluginConfigDefaultsForTest=ae;exports.resetSettingsGroupForTest=fe;exports.resolveLayers=J;exports.scopeAllowsLayer=ue;exports.setPluginConfigDefaults=ce;exports.subscribePluginConfigDefaults=Q;
|