@vokril/ui-solid 0.9.3 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/README.md +110 -31
- package/dist/{AttributeGrid-Bnn1w5XX.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
- package/dist/{AttributeGrid-DJdW32LQ.js → AttributeGrid-CVyqzT7-.js} +5 -5
- package/dist/{Button-BZWXPn8y.js → Button-BiKPB3cH.js} +2 -2
- package/dist/{Button-X8QR6llv.cjs → Button-Nx7byQZc.cjs} +1 -1
- package/dist/CommandPalette-BFi0_e3t.cjs +2 -0
- package/dist/CommandPalette-CAH08DGN.js +4013 -0
- package/dist/{CopyButton-D3dIRRnn.js → CopyButton-BF7L1TCO.js} +1 -1
- package/dist/{CopyButton-3cX5MHAf.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
- package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
- package/dist/{DateRangePicker-BcqoUao4.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-9tjEtmqt.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
- package/dist/{IconPicker-CXbFmJ3y.js → IconPicker-Df6uIUpJ.js} +4 -4
- package/dist/{Input-BEnk4FCF.cjs → Input-CZruORyy.cjs} +1 -1
- package/dist/{Input-PZ5wRvPx.js → Input-DkPhsdfk.js} +2 -2
- package/dist/Modal-CQG8l4x7.cjs +1 -0
- package/dist/{Modal-CsiV55WW.js → Modal-CUPe98-o.js} +5 -5
- package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
- package/dist/{PageSkeleton-CyTXvZYm.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-C6KL7e42.js → SearchableSelect-C01brsF0.js} +5 -5
- package/dist/{SearchableSelect-zT8XNpmt.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
- package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
- package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
- package/dist/{Stepper-BxXwbDq4.js → Stepper-38IAEOyT.js} +3 -3
- package/dist/{Stepper-DoJFCfC7.cjs → Stepper-CtaTpnQu.cjs} +1 -1
- package/dist/{Textarea-BUxibzkR.js → Textarea-B5QqqKnI.js} +1 -1
- package/dist/{Textarea-BunKEY68.cjs → Textarea-CeAGf08O.cjs} +1 -1
- package/dist/{TimeSeriesChart-DBrDzBGE.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
- package/dist/{TimeSeriesChart-CS4jQflv.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
- package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
- package/dist/{ToggleButton-BfjXnp-P.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 +27 -14
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +27 -14
- 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/a11y/announcerService.d.cts +9 -13
- package/dist/_internal/platform/a11y/announcerService.d.ts +9 -13
- 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 +0 -5
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -5
- 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-B1MaujhY.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-64lFnqTt.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{server/headerIconOverrides-BCzeaBA1.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +15 -16
- package/dist/host/index.d.ts +15 -16
- package/dist/host/index.js +56 -90
- package/dist/host/kitHost.d.cts +65 -0
- package/dist/host/kitHost.d.ts +65 -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/{i18n-CYq-dVvv.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 +973 -992
- 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/kitHost-BfJExE1G.cjs +1 -0
- package/dist/kitHost-CVAEi9sF.js +23 -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 +7 -12
- package/dist/notifications/index.d.ts +7 -12
- package/dist/notifications/index.js +64 -98
- 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 +20 -10
- package/dist/overlay/ConfirmDialog.d.ts +20 -10
- package/dist/overlay/DangerousActionDialog.d.cts +2 -2
- package/dist/overlay/DangerousActionDialog.d.ts +2 -2
- 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/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-BCYNwNjw.js → AttributeGrid-B2s_rp00.js} +3 -3
- package/dist/server/{AttributeGrid-BVAQshm3.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
- package/dist/server/{Button-BhqhjFpY.js → Button-Ck03cbUs.js} +1 -1
- package/dist/server/{Button-CFOM8pOv.cjs → Button-DWFMF5y0.cjs} +1 -1
- package/dist/server/CommandPalette-2UppyMxU.js +3271 -0
- package/dist/server/CommandPalette-DwpZyhO6.cjs +1 -0
- package/dist/server/{CopyButton-C2jzn9tR.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
- package/dist/server/{CopyButton-CChDa2p3.js → CopyButton-UvtFwOtA.js} +1 -1
- package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
- package/dist/server/{DateRangePicker-QV6U1adB.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-BEACrT09.cjs → IconPicker-9DfOxql6.cjs} +1 -1
- package/dist/server/{IconPicker-at_coEi6.js → IconPicker-N0wub1Aj.js} +4 -4
- package/dist/server/Modal-D__GTo-n.cjs +1 -0
- package/dist/server/{Modal-usxkqDtK.js → Modal-DeQjfpkG.js} +3 -3
- package/dist/server/{PageSkeleton-Bpgep9QW.js → PageSkeleton-C41pXOcr.js} +457 -455
- package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
- package/dist/server/{SearchableSelect-0dP7bp0a.js → SearchableSelect-CEcuBnge.js} +2 -2
- package/dist/server/{SearchableSelect-nMecJAYS.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-DvoJXLcM.cjs → Stepper--pusyxso.cjs} +1 -1
- package/dist/server/{Stepper-B8hDDujj.js → Stepper-B_eL85hK.js} +1 -1
- package/dist/server/{TimeSeriesChart-C1LbL_xp.js → TimeSeriesChart-aSHquoBv.js} +1 -1
- package/dist/server/{TimeSeriesChart-DtldQrxS.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
- package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
- package/dist/server/{ToggleButton--G4HCOTD.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-CW_FVfq2.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-DWkJAggS.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-nWNVX3JG.js +126 -0
- 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-64lFnqTt.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{headerIconOverrides-BCzeaBA1.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +56 -90
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/server/{i18n-CYq-dVvv.js → i18n-DW9kcu0G.js} +180 -178
- package/dist/server/i18n-DZ0JlZal.cjs +4 -0
- package/dist/server/{index-BFT4Uh9D.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 +1022 -1041
- package/dist/server/kitHost-BfJExE1G.cjs +1 -0
- package/dist/server/kitHost-CVAEi9sF.js +23 -0
- 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 -97
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +109 -114
- 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/{notification-DFbp3S_f.js → server/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 +11 -29
- 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/a11y/announcerService.js +0 -24
- 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 +5 -6
- 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 +9 -16
- package/dist/solid/host/kitHost.jsx +15 -0
- 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 -103
- 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 +4 -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 +2 -54
- 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-GV0L9lXH.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/{server/notification-DFbp3S_f.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-DToM9pUp.cjs +0 -2
- package/dist/CommandPalette-ZCFlLqrP.js +0 -3950
- package/dist/DateRangePicker-DHI3SNna.cjs +0 -9
- package/dist/GuidedTour-B-BXe3ul.js +0 -11214
- package/dist/GuidedTour-c7XiyOmE.cjs +0 -21
- package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/Modal-DpDHzCWT.cjs +0 -1
- package/dist/PageSkeleton-DzKYTuNy.cjs +0 -30
- package/dist/Progress-B5YmNeyU.js +0 -56
- package/dist/Progress-BNy0wsJl.cjs +0 -1
- package/dist/StatusBarNotificationBell-CZmym2gV.js +0 -2140
- package/dist/StatusBarNotificationBell-DG8Pe6R-.cjs +0 -4
- package/dist/ToggleButton-Bjxv8KGH.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/instantiation/common/descriptors.d.cts +0 -9
- package/dist/_internal/platform/instantiation/common/descriptors.d.ts +0 -9
- package/dist/_internal/platform/instantiation/common/instantiation.d.cts +0 -99
- package/dist/_internal/platform/instantiation/common/instantiation.d.ts +0 -99
- package/dist/_internal/platform/instantiation/common/serviceCollection.d.cts +0 -8
- package/dist/_internal/platform/instantiation/common/serviceCollection.d.ts +0 -8
- 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/announcerService-B7yicxvU.js +0 -97
- package/dist/announcerService-D_pFE24a.cjs +0 -1
- package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/catalogNotify-C9RzbC6x.cjs +0 -27
- package/dist/catalogNotify-CIhFuJ1b.js +0 -1210
- package/dist/createResizableSidebar-2TgiFZp1.js +0 -461
- package/dist/createResizableSidebar-pDoO-7q9.cjs +0 -1
- package/dist/defineSettings-By5ell8e.js +0 -391
- package/dist/defineSettings-DRv1FRbv.cjs +0 -1
- package/dist/descriptor-lw1fA9mi.cjs +0 -1
- package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/displayOwner-BNw2Foa_.cjs +0 -1
- package/dist/displayOwner-B_ezJv-O.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-B150daiS.js +0 -133
- package/dist/focusModality-PPfeW05D.cjs +0 -1
- package/dist/format-Dih0q9gm.cjs +0 -1
- package/dist/format-UGlMj0HW.js +0 -298
- package/dist/i18n-B9ccWgcR.cjs +0 -4
- package/dist/keys-BeeC5_RZ.cjs +0 -1
- package/dist/mainRealmDom-COGBiX78.js +0 -102
- package/dist/mainRealmDom-DijAgSXt.cjs +0 -1
- package/dist/menuFavorites-Db1DpHX6.js +0 -69
- package/dist/menuFavorites-EluLLTfi.cjs +0 -1
- package/dist/notification-CrxHMXsk.cjs +0 -1
- package/dist/notificationSuppressions-CBIJ4bC4.js +0 -430
- package/dist/notificationSuppressions-DFbFpayS.cjs +0 -1
- 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-BhUd3K9p.js +0 -65
- package/dist/preferencesCache-DJPCTPYx.cjs +0 -1
- package/dist/rendererLogging-B4XML4_G.cjs +0 -7
- package/dist/rendererLogging-Edo4ALXU.js +0 -822
- package/dist/server/CommandPalette-C3Bw1teR.cjs +0 -1
- package/dist/server/CommandPalette-S7tfmFMb.js +0 -3208
- package/dist/server/DateRangePicker-sX2m4194.cjs +0 -9
- package/dist/server/GuidedTour-BhJGkoPa.js +0 -10981
- package/dist/server/GuidedTour-Dx0endYh.cjs +0 -20
- package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/server/Modal-CAVr4DU6.cjs +0 -1
- package/dist/server/PageSkeleton-KwYRrZua.cjs +0 -30
- package/dist/server/Progress-CRbj6nEy.cjs +0 -1
- package/dist/server/Progress-nsDy6clG.js +0 -41
- package/dist/server/StatusBarNotificationBell-BJyGqDCX.cjs +0 -4
- package/dist/server/StatusBarNotificationBell-C9MCuKT6.js +0 -1974
- package/dist/server/ToggleButton-DTI2HB97.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/announcerService-B7yicxvU.js +0 -97
- package/dist/server/announcerService-D_pFE24a.cjs +0 -1
- package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/server/catalogNotify-BPPTINme.cjs +0 -27
- package/dist/server/catalogNotify-mUcKuUmZ.js +0 -1248
- package/dist/server/createResizableSidebar-CCrAgu_K.js +0 -299
- package/dist/server/createResizableSidebar-DGd-3PrM.cjs +0 -1
- package/dist/server/defineSettings-By5ell8e.js +0 -391
- package/dist/server/defineSettings-DRv1FRbv.cjs +0 -1
- package/dist/server/descriptor-IJq9wdXK.cjs +0 -1
- package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/server/displayOwner-BNw2Foa_.cjs +0 -1
- package/dist/server/displayOwner-B_ezJv-O.js +0 -75
- package/dist/server/focusModality-CeTPyRiF.cjs +0 -1
- package/dist/server/focusModality-DmOZptla.js +0 -124
- package/dist/server/format-x-8syaS2.cjs +0 -1
- package/dist/server/i18n-B9ccWgcR.cjs +0 -4
- package/dist/server/index-Xlas73iC.cjs +0 -1
- package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
- package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
- package/dist/server/menuFavorites-Db1DpHX6.js +0 -69
- package/dist/server/menuFavorites-EluLLTfi.cjs +0 -1
- package/dist/server/notification-CrxHMXsk.cjs +0 -1
- package/dist/server/notificationSuppressions-D7FZmJy8.cjs +0 -1
- package/dist/server/notificationSuppressions-DkrUMXHx.js +0 -391
- package/dist/server/pageTourState-CIr8ockR.js +0 -92
- package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
- package/dist/server/preferencesCache-BhUd3K9p.js +0 -65
- package/dist/server/preferencesCache-DJPCTPYx.cjs +0 -1
- package/dist/server/rendererLogging-B4XML4_G.cjs +0 -7
- package/dist/server/rendererLogging-Edo4ALXU.js +0 -822
- package/dist/server/settingsSearchContributor-DZj7Wc8l.cjs +0 -1
- package/dist/server/settingsSearchContributor-DeMn-njw.js +0 -199
- 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-C-UJc7Xc.js +0 -199
- package/dist/settingsSearchContributor-Du0SDpJt.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/instantiation/common/descriptors.js +0 -10
- package/dist/solid/_internal/platform/instantiation/common/instantiation.js +0 -35
- package/dist/solid/_internal/platform/instantiation/common/serviceCollection.js +0 -14
- 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-y5YP3tsJ.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,287 @@
|
|
|
1
|
+
import { ssr as f, ssrAttribute as a, escape as t, createComponent as l, Dynamic as E, memo as N, ssrStyleProperty as G } from "solid-js/web";
|
|
2
|
+
import { createSignal as m, createMemo as C, createEffect as B, onCleanup as L, Show as I, batch as U } from "solid-js";
|
|
3
|
+
import { u as X } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
4
|
+
import { a as F, s as J } from "./headerIconOverrides-Dh2PaOcO.js";
|
|
5
|
+
import { g as Q, l as Y, I as j } from "./IconPicker-N0wub1Aj.js";
|
|
6
|
+
import { B as x } from "./Button-Ck03cbUs.js";
|
|
7
|
+
import { t as D } from "./i18n-DW9kcu0G.js";
|
|
8
|
+
import { V as q } from "./VpRefresh-CjGV1jUv.js";
|
|
9
|
+
import { O as W } from "./OverlayScrollArea-221dfKyz.js";
|
|
10
|
+
import { g as T } from "./windowRegistry-DeGmXt6W.js";
|
|
11
|
+
import { u as Z } from "./kitHost-CVAEi9sF.js";
|
|
12
|
+
var p = ["<div", ">", "</div>"];
|
|
13
|
+
function ee(e) {
|
|
14
|
+
X();
|
|
15
|
+
const n = F(), [o, i] = m(null), g = () => o() === e.pageId, [k, h] = m(null), _ = C(() => n()[e.pageId] ?? (e.fallbackPageId ? n()[e.fallbackPageId] : null) ?? null);
|
|
16
|
+
B(() => {
|
|
17
|
+
e.pageId, i(null);
|
|
18
|
+
}), B(() => {
|
|
19
|
+
const u = _();
|
|
20
|
+
if (!u) {
|
|
21
|
+
h(null);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const s = Q(u.name);
|
|
25
|
+
if (s) {
|
|
26
|
+
h(() => s);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
h(null);
|
|
30
|
+
let v = !1;
|
|
31
|
+
L(() => {
|
|
32
|
+
v = !0;
|
|
33
|
+
}), Y().then((b) => {
|
|
34
|
+
const z = _();
|
|
35
|
+
v || !z || z.name !== u.name || h(() => b[u.name] ?? null);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
const $ = C(() => k() ?? e.fallbackIcon), w = (u) => {
|
|
39
|
+
const s = o();
|
|
40
|
+
!s || s !== e.pageId || (J(s, {
|
|
41
|
+
set: "tb",
|
|
42
|
+
name: u
|
|
43
|
+
}), i(null));
|
|
44
|
+
};
|
|
45
|
+
return [f(p, a("class", t(e.class, !0), !1) + a("aria-label", t(e.ariaLabel, !0), !1), t(l(E, {
|
|
46
|
+
get component() {
|
|
47
|
+
return $();
|
|
48
|
+
},
|
|
49
|
+
get class() {
|
|
50
|
+
return e.iconClass;
|
|
51
|
+
},
|
|
52
|
+
"aria-hidden": "true"
|
|
53
|
+
}))), l(I, {
|
|
54
|
+
get when() {
|
|
55
|
+
return g();
|
|
56
|
+
},
|
|
57
|
+
get children() {
|
|
58
|
+
return l(j, {
|
|
59
|
+
open: g,
|
|
60
|
+
onClose: () => i(null),
|
|
61
|
+
onSelect: w,
|
|
62
|
+
get currentIconName() {
|
|
63
|
+
var u;
|
|
64
|
+
return ((u = _()) == null ? void 0 : u.name) ?? null;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
})];
|
|
69
|
+
}
|
|
70
|
+
const te = "vk_header_7CNKc", ae = "vk_headerLeft_-fa7V", ne = "vk_headerActions_aaFA-", re = "vk_headerIcon_c1sgk", ie = "vk_headerIconSvg_7jyQp", le = "vk_titleRow_0A-NY", oe = "vk_backButton_GIWbu", se = "vk_title_k1DVA", ce = "vk_subtitle_RXfOz", de = "vk_refreshIconButton_bVyMc", ue = "vk_compact_e7ku-", c = {
|
|
71
|
+
header: te,
|
|
72
|
+
headerLeft: ae,
|
|
73
|
+
headerActions: ne,
|
|
74
|
+
headerIcon: re,
|
|
75
|
+
headerIconSvg: ie,
|
|
76
|
+
titleRow: le,
|
|
77
|
+
backButton: oe,
|
|
78
|
+
title: se,
|
|
79
|
+
subtitle: ce,
|
|
80
|
+
refreshIconButton: de,
|
|
81
|
+
compact: ue
|
|
82
|
+
};
|
|
83
|
+
var ge = ["<div", ">", "<h2", ">", "</h2></div>"], he = ["<p", ">", "</p>"], ve = ["<div", ">", "", "</div>"], fe = ['<header class="', '"><div', ">", "<div>", "", "</div></div>", "</header>"], me = ["<h2", ">", "</h2>"];
|
|
84
|
+
function Qe(e) {
|
|
85
|
+
return f(fe, `${t(c.header, !0)} ${e.variant === "compact" ? t(t(c.compact, !0), !0) : ""}`, a("class", t(c.headerLeft, !0), !1), t(l(I, {
|
|
86
|
+
get when() {
|
|
87
|
+
return N(() => e.fallbackIcon != null)() && e.pageId != null;
|
|
88
|
+
},
|
|
89
|
+
get children() {
|
|
90
|
+
return l(ee, {
|
|
91
|
+
get pageId() {
|
|
92
|
+
return e.pageId;
|
|
93
|
+
},
|
|
94
|
+
get fallbackPageId() {
|
|
95
|
+
return e.fallbackIconPageId;
|
|
96
|
+
},
|
|
97
|
+
get fallbackIcon() {
|
|
98
|
+
return e.fallbackIcon;
|
|
99
|
+
},
|
|
100
|
+
get class() {
|
|
101
|
+
return c.headerIcon;
|
|
102
|
+
},
|
|
103
|
+
get iconClass() {
|
|
104
|
+
return c.headerIconSvg;
|
|
105
|
+
},
|
|
106
|
+
get ariaLabel() {
|
|
107
|
+
return e.iconAriaLabel;
|
|
108
|
+
},
|
|
109
|
+
get onSettings() {
|
|
110
|
+
return e.onSettings;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
})), t(l(I, {
|
|
115
|
+
get when() {
|
|
116
|
+
return e.onBack != null;
|
|
117
|
+
},
|
|
118
|
+
get fallback() {
|
|
119
|
+
return f(me, a("class", t(c.title, !0), !1), t(e.title));
|
|
120
|
+
},
|
|
121
|
+
get children() {
|
|
122
|
+
return f(ge, a("class", t(c.titleRow, !0), !1), t(l(x, {
|
|
123
|
+
variant: "secondary",
|
|
124
|
+
size: "sm",
|
|
125
|
+
get class() {
|
|
126
|
+
return c.backButton;
|
|
127
|
+
},
|
|
128
|
+
onClick: () => e.onBack(),
|
|
129
|
+
get children() {
|
|
130
|
+
return ["← ", e.backLabel ?? D("Back")];
|
|
131
|
+
}
|
|
132
|
+
})), a("class", t(c.title, !0), !1), t(e.title));
|
|
133
|
+
}
|
|
134
|
+
})), t(l(I, {
|
|
135
|
+
get when() {
|
|
136
|
+
return e.subtitle != null;
|
|
137
|
+
},
|
|
138
|
+
get children() {
|
|
139
|
+
return f(he, a("class", t(c.subtitle, !0), !1), t(e.subtitle));
|
|
140
|
+
}
|
|
141
|
+
})), t(l(I, {
|
|
142
|
+
get when() {
|
|
143
|
+
return e.onRefresh != null || e.actions != null;
|
|
144
|
+
},
|
|
145
|
+
get children() {
|
|
146
|
+
return f(ve, a("class", t(c.headerActions, !0), !1), t(l(I, {
|
|
147
|
+
get when() {
|
|
148
|
+
return e.onRefresh != null;
|
|
149
|
+
},
|
|
150
|
+
get children() {
|
|
151
|
+
return l(x, {
|
|
152
|
+
size: "md",
|
|
153
|
+
variant: "secondary",
|
|
154
|
+
iconOnly: !0,
|
|
155
|
+
get class() {
|
|
156
|
+
return c.refreshIconButton;
|
|
157
|
+
},
|
|
158
|
+
get disabled() {
|
|
159
|
+
return e.refreshDisabled;
|
|
160
|
+
},
|
|
161
|
+
get loading() {
|
|
162
|
+
return e.refreshing;
|
|
163
|
+
},
|
|
164
|
+
loadingDelay: 0,
|
|
165
|
+
get "aria-label"() {
|
|
166
|
+
return e.refreshAriaLabel ?? D("Refresh");
|
|
167
|
+
},
|
|
168
|
+
onClick: () => e.onRefresh(),
|
|
169
|
+
get children() {
|
|
170
|
+
return l(q, {
|
|
171
|
+
"aria-hidden": "true"
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
})), t(e.actions));
|
|
177
|
+
}
|
|
178
|
+
})));
|
|
179
|
+
}
|
|
180
|
+
const _e = "vk_handle_fHazX", be = "vk_dragging_7oGBz", ke = "vk_horizontal_nwaLt", Ie = "vk_vertical_wzd-m", ze = "vk_indicator_aLgDs", y = {
|
|
181
|
+
handle: _e,
|
|
182
|
+
dragging: be,
|
|
183
|
+
horizontal: ke,
|
|
184
|
+
vertical: Ie,
|
|
185
|
+
indicator: ze
|
|
186
|
+
};
|
|
187
|
+
var Se = ['<div role="separator" tabindex="0"', ' class="', '"><div', ' aria-hidden="true"></div></div>'];
|
|
188
|
+
function Ye(e) {
|
|
189
|
+
const [n, o] = m(!1), i = () => e.orientation ?? "horizontal";
|
|
190
|
+
return L(() => {
|
|
191
|
+
}), f(Se, a("aria-orientation", t(i(), !0), !1) + a("aria-valuenow", t(e.value, !0), !1) + a("aria-valuemin", t(e.min, !0), !1) + a("aria-valuemax", t(e.max, !0), !1) + a("aria-label", t(e.ariaLabel ?? "Resize separator", !0), !1), `${t(y.handle, !0)} ${i() === "horizontal" ? t(y.horizontal, !0) : t(y.vertical, !0)} ${n() ? t(y.dragging, !0) : ""} ${t(e.class ?? "", !0)}`, a("class", t(y.indicator, !0), !1));
|
|
192
|
+
}
|
|
193
|
+
const ye = "vk_container_DGAoE", $e = "vk_horizontal_GnS2m", we = "vk_vertical_oOyQM", Le = "vk_firstPane_kDkKK", Re = "vk_secondPane_61mm8", Pe = "vk_paneScroll_-7IJF", Ce = "vk_separator_Gadcl", Be = "vk_separatorHorizontal_0e62B", xe = "vk_separatorVertical_zIDqL", De = "vk_dragging_iMvN6", We = "vk_handle_7YOEJ", d = {
|
|
194
|
+
container: ye,
|
|
195
|
+
horizontal: $e,
|
|
196
|
+
vertical: we,
|
|
197
|
+
firstPane: Le,
|
|
198
|
+
secondPane: Re,
|
|
199
|
+
paneScroll: Pe,
|
|
200
|
+
separator: Ce,
|
|
201
|
+
separatorHorizontal: Be,
|
|
202
|
+
separatorVertical: xe,
|
|
203
|
+
dragging: De,
|
|
204
|
+
handle: We
|
|
205
|
+
};
|
|
206
|
+
var Ae = ['<div class="', '"><div', ' style="', '">', '</div><div role="separator" tabindex="0"', ' class="', '"><div', ' aria-hidden="true"></div></div><div', ">", "</div></div>"];
|
|
207
|
+
function je(e) {
|
|
208
|
+
const n = () => e.direction ?? "horizontal", o = () => e.minSize ?? 15, i = () => e.maxSize ?? 85, [g, k] = m(Math.min(i(), Math.max(o(), e.initialSize ?? 50))), [h, _] = m(!1);
|
|
209
|
+
return f(Ae, `${t(d.container, !0)} ${n() === "horizontal" ? t(d.horizontal, !0) : t(d.vertical, !0)} ${h() ? t(d.dragging, !0) : ""} ${t(e.class ?? "", !0)}`, a("class", t(d.firstPane, !0), !1), G((n() === "horizontal" ? "width" : "height") + ":", `${t(g(), !0)}%`), t(l(W, {
|
|
210
|
+
get rootClass() {
|
|
211
|
+
return d.paneScroll;
|
|
212
|
+
},
|
|
213
|
+
get children() {
|
|
214
|
+
return e.first;
|
|
215
|
+
}
|
|
216
|
+
})), a("aria-orientation", t(n(), !0), !1) + a("aria-valuenow", t(Math.round(g()), !0), !1) + a("aria-valuemin", t(o(), !0), !1) + a("aria-valuemax", t(i(), !0), !1) + a("aria-label", t(e.ariaLabel ?? "Resize pane", !0), !1), `${t(d.separator, !0)} ${n() === "horizontal" ? t(d.separatorHorizontal, !0) : t(d.separatorVertical, !0)}`, a("class", t(d.handle, !0), !1), a("class", t(d.secondPane, !0), !1), t(l(W, {
|
|
217
|
+
get rootClass() {
|
|
218
|
+
return d.paneScroll;
|
|
219
|
+
},
|
|
220
|
+
get children() {
|
|
221
|
+
return e.second;
|
|
222
|
+
}
|
|
223
|
+
})));
|
|
224
|
+
}
|
|
225
|
+
function R(e, n, o) {
|
|
226
|
+
return Math.max(n, Math.min(o, e));
|
|
227
|
+
}
|
|
228
|
+
function He(e, n, o, i) {
|
|
229
|
+
return typeof e != "number" || Number.isNaN(e) ? n : R(e, o, i);
|
|
230
|
+
}
|
|
231
|
+
function qe(e) {
|
|
232
|
+
const { layout: n } = Z(), o = () => {
|
|
233
|
+
var r;
|
|
234
|
+
return He(
|
|
235
|
+
(r = n.getUiLayout().sidebarWidths) == null ? void 0 : r[e.storageKey],
|
|
236
|
+
e.defaultWidth,
|
|
237
|
+
e.min,
|
|
238
|
+
e.max
|
|
239
|
+
);
|
|
240
|
+
}, i = () => {
|
|
241
|
+
var r;
|
|
242
|
+
return ((r = n.getUiLayout().sidebarCollapsed) == null ? void 0 : r[e.collapsedKey]) === !0;
|
|
243
|
+
}, [g, k] = m(o()), [h, _] = m(i()), [$, w] = m(!1), u = n.onDidChangeSidebar((r) => {
|
|
244
|
+
$() || r !== e.storageKey && r !== e.collapsedKey || U(() => {
|
|
245
|
+
k(o()), _(i());
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
L(() => u.dispose());
|
|
249
|
+
let s = null, v = null, b = typeof window < "u" ? window : globalThis;
|
|
250
|
+
const z = () => {
|
|
251
|
+
s && b.removeEventListener("mousemove", s), v && b.removeEventListener("mouseup", v), s = null, v = null;
|
|
252
|
+
}, A = (r, S) => {
|
|
253
|
+
r.preventDefault(), w(!0), b = T(S);
|
|
254
|
+
const O = S.getBoundingClientRect().left;
|
|
255
|
+
s = (V) => {
|
|
256
|
+
k(R(V.clientX - O, e.min, e.max));
|
|
257
|
+
}, v = () => {
|
|
258
|
+
w(!1), n.setSidebarWidth(e.storageKey, g()), z();
|
|
259
|
+
}, b.addEventListener("mousemove", s), b.addEventListener("mouseup", v);
|
|
260
|
+
}, H = () => {
|
|
261
|
+
const r = !h();
|
|
262
|
+
_(r), n.setSidebarCollapsed(e.collapsedKey, r);
|
|
263
|
+
}, P = (r) => {
|
|
264
|
+
const S = R(r, e.min, e.max);
|
|
265
|
+
k(S), n.setSidebarWidth(e.storageKey, S);
|
|
266
|
+
}, K = (r) => {
|
|
267
|
+
P(g() + r);
|
|
268
|
+
}, M = () => {
|
|
269
|
+
P(e.defaultWidth);
|
|
270
|
+
};
|
|
271
|
+
return L(z), {
|
|
272
|
+
width: g,
|
|
273
|
+
collapsed: h,
|
|
274
|
+
isResizing: $,
|
|
275
|
+
startResize: A,
|
|
276
|
+
resizeBy: K,
|
|
277
|
+
resetWidth: M,
|
|
278
|
+
toggleCollapse: H
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
export {
|
|
282
|
+
Qe as P,
|
|
283
|
+
je as R,
|
|
284
|
+
ee as a,
|
|
285
|
+
Ye as b,
|
|
286
|
+
qe as c
|
|
287
|
+
};
|
package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs}
RENAMED
|
@@ -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;
|