@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
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
import { s as B } from "./stateDbStore-Ds3zJ4cd.js";
|
|
2
|
-
import { g as q } from "./rendererLogging-Edo4ALXU.js";
|
|
3
|
-
import { B as P } from "./bugIndicatingError-h3J5qkL6.js";
|
|
4
|
-
function R(e, t) {
|
|
5
|
-
switch (e.kind) {
|
|
6
|
-
case "bool":
|
|
7
|
-
return typeof t == "boolean" ? t : e.default;
|
|
8
|
-
case "enum":
|
|
9
|
-
return e.values.includes(t) ? t : e.default;
|
|
10
|
-
case "int":
|
|
11
|
-
return typeof t == "number" && Number.isFinite(t) ? Math.round(Math.max(e.min, Math.min(e.max, t))) : e.default;
|
|
12
|
-
case "string": {
|
|
13
|
-
if (e.secret) return e.default;
|
|
14
|
-
if (typeof t == "string") {
|
|
15
|
-
const s = e.trim ? t.trim() : t;
|
|
16
|
-
if (!e.trim || s.length > 0) return s;
|
|
17
|
-
}
|
|
18
|
-
return e.default;
|
|
19
|
-
}
|
|
20
|
-
case "custom":
|
|
21
|
-
return e.normalize(t, e.default);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function U(e) {
|
|
25
|
-
const t = e, s = {};
|
|
26
|
-
for (const c of Object.keys(t)) s[c] = t[c].default;
|
|
27
|
-
return s;
|
|
28
|
-
}
|
|
29
|
-
function I(e) {
|
|
30
|
-
const t = e, s = Object.keys(t);
|
|
31
|
-
return (c) => {
|
|
32
|
-
const l = typeof c == "object" && c !== null ? c : {}, o = {};
|
|
33
|
-
for (const i of s) o[i] = R(t[i], l[i]);
|
|
34
|
-
return o;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function Q(e) {
|
|
38
|
-
const t = e, s = Object.keys(t);
|
|
39
|
-
return (c) => {
|
|
40
|
-
const l = typeof c == "object" && c !== null ? c : {}, o = {};
|
|
41
|
-
for (const i of s)
|
|
42
|
-
i in l && (o[i] = R(t[i], l[i]));
|
|
43
|
-
return o;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function X(e, t) {
|
|
47
|
-
const s = {
|
|
48
|
-
...t.application
|
|
49
|
-
}, c = t.profile, l = t.connection, o = t.workspace;
|
|
50
|
-
for (const i of e) {
|
|
51
|
-
const v = o == null ? void 0 : o[i];
|
|
52
|
-
if (v !== void 0) {
|
|
53
|
-
s[i] = v;
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
const b = l == null ? void 0 : l[i];
|
|
57
|
-
if (b !== void 0) {
|
|
58
|
-
s[i] = b;
|
|
59
|
-
continue;
|
|
60
|
-
}
|
|
61
|
-
const g = c == null ? void 0 : c[i];
|
|
62
|
-
g !== void 0 && (s[i] = g);
|
|
63
|
-
}
|
|
64
|
-
return s;
|
|
65
|
-
}
|
|
66
|
-
function Z(e, t, s = () => e) {
|
|
67
|
-
let c = null;
|
|
68
|
-
const l = {};
|
|
69
|
-
let o = !1;
|
|
70
|
-
const i = Symbol("layeredValue.unset");
|
|
71
|
-
let v = i;
|
|
72
|
-
const b = (d, k) => {
|
|
73
|
-
const O = d ?? s();
|
|
74
|
-
return Object.values(k).every((w) => w === void 0) || !t ? O : X(t, {
|
|
75
|
-
application: O,
|
|
76
|
-
profile: k.profile,
|
|
77
|
-
connection: k.connection,
|
|
78
|
-
workspace: k.workspace
|
|
79
|
-
});
|
|
80
|
-
}, g = () => (v !== i || (v = b(c, l)), v), m = () => {
|
|
81
|
-
v = i;
|
|
82
|
-
};
|
|
83
|
-
return {
|
|
84
|
-
resolve: g,
|
|
85
|
-
invalidate: m,
|
|
86
|
-
isResolved: () => v !== i,
|
|
87
|
-
isEstablished: () => o,
|
|
88
|
-
preview: (d, k) => {
|
|
89
|
-
const O = d === "application" ? k : c, w = d === "application" ? l : { ...l, [d]: k };
|
|
90
|
-
return b(O, w);
|
|
91
|
-
},
|
|
92
|
-
application: () => c,
|
|
93
|
-
override: (d) => d === "application" ? {} : l[d] ?? {},
|
|
94
|
-
commit: (d, k) => {
|
|
95
|
-
d === "application" ? c = k : l[d] = k, m(), o = !0;
|
|
96
|
-
},
|
|
97
|
-
deleteOverride: (d) => d === "application" || l[d] === void 0 ? !1 : (delete l[d], m(), !0),
|
|
98
|
-
snapshot: () => ({
|
|
99
|
-
application: c,
|
|
100
|
-
overrides: { ...l }
|
|
101
|
-
// spread omits deleted (absent) layers — exactOptionalPropertyTypes safe
|
|
102
|
-
}),
|
|
103
|
-
restore: (d) => {
|
|
104
|
-
c = d.application, delete l.profile, delete l.workspace, d.overrides.profile !== void 0 && (l.profile = d.overrides.profile), d.overrides.workspace !== void 0 && (l.workspace = d.overrides.workspace), m();
|
|
105
|
-
},
|
|
106
|
-
reset: () => {
|
|
107
|
-
c = null, delete l.profile, delete l.workspace, o = !1, m();
|
|
108
|
-
},
|
|
109
|
-
resetApplication: () => {
|
|
110
|
-
c = null, o = l.profile !== void 0 || l.workspace !== void 0, m();
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
const E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Set();
|
|
115
|
-
function K(e) {
|
|
116
|
-
const t = e.indexOf(".");
|
|
117
|
-
return t === -1 ? { group: e, field: void 0 } : { group: e.slice(0, t), field: e.slice(t + 1) };
|
|
118
|
-
}
|
|
119
|
-
function V(...e) {
|
|
120
|
-
const t = /* @__PURE__ */ new Set();
|
|
121
|
-
for (const s of e)
|
|
122
|
-
if (s)
|
|
123
|
-
for (const c of Object.keys(s)) t.add(K(c).group);
|
|
124
|
-
return t;
|
|
125
|
-
}
|
|
126
|
-
function J(e) {
|
|
127
|
-
if (e.size !== 0)
|
|
128
|
-
for (const t of C) t(e);
|
|
129
|
-
}
|
|
130
|
-
function ve(e, t) {
|
|
131
|
-
const s = E.get(e);
|
|
132
|
-
t && Object.keys(t).length > 0 ? E.set(e, t) : E.delete(e), J(V(s, t));
|
|
133
|
-
}
|
|
134
|
-
function ge(e) {
|
|
135
|
-
const t = E.get(e);
|
|
136
|
-
t && (E.delete(e), J(V(t)));
|
|
137
|
-
}
|
|
138
|
-
function ee(e) {
|
|
139
|
-
let t;
|
|
140
|
-
for (const s of E.values())
|
|
141
|
-
for (const [c, l] of Object.entries(s)) {
|
|
142
|
-
const { group: o, field: i } = K(c);
|
|
143
|
-
o === e && (t ?? (t = {}), t[i ?? ""] = l);
|
|
144
|
-
}
|
|
145
|
-
return t;
|
|
146
|
-
}
|
|
147
|
-
function te(e) {
|
|
148
|
-
return C.add(e), () => {
|
|
149
|
-
C.delete(e);
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
function me() {
|
|
153
|
-
E.clear();
|
|
154
|
-
}
|
|
155
|
-
const z = {
|
|
156
|
-
application: 0,
|
|
157
|
-
profile: 1,
|
|
158
|
-
connection: 2,
|
|
159
|
-
workspace: 3
|
|
160
|
-
};
|
|
161
|
-
function ye(e, t) {
|
|
162
|
-
return z[t] <= z[e];
|
|
163
|
-
}
|
|
164
|
-
function he(e) {
|
|
165
|
-
e.reset();
|
|
166
|
-
}
|
|
167
|
-
const T = [], N = /* @__PURE__ */ new Map();
|
|
168
|
-
let _ = !1;
|
|
169
|
-
function be() {
|
|
170
|
-
_ = !0;
|
|
171
|
-
for (const e of T) e.hydrate();
|
|
172
|
-
}
|
|
173
|
-
function ke() {
|
|
174
|
-
return T;
|
|
175
|
-
}
|
|
176
|
-
function we(e) {
|
|
177
|
-
return N.get(e);
|
|
178
|
-
}
|
|
179
|
-
const M = /* @__PURE__ */ new Set();
|
|
180
|
-
function Oe(e) {
|
|
181
|
-
return M.add(e), () => {
|
|
182
|
-
M.delete(e);
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
function ne(e, t) {
|
|
186
|
-
for (const s of M) s({ key: e, value: t });
|
|
187
|
-
}
|
|
188
|
-
function H(e) {
|
|
189
|
-
const {
|
|
190
|
-
key: t,
|
|
191
|
-
changeEvent: s,
|
|
192
|
-
scope: c,
|
|
193
|
-
store: l,
|
|
194
|
-
applyRuntime: o,
|
|
195
|
-
defaultValue: i,
|
|
196
|
-
normalize: v,
|
|
197
|
-
normalizePartial: b,
|
|
198
|
-
fieldKeys: g,
|
|
199
|
-
uiSchema: m,
|
|
200
|
-
secretKeys: r,
|
|
201
|
-
protectedDefaultFields: p
|
|
202
|
-
} = e;
|
|
203
|
-
Object.freeze(i);
|
|
204
|
-
const x = (n, u) => {
|
|
205
|
-
q(`Settings.${t}`).error(n, u);
|
|
206
|
-
}, j = () => {
|
|
207
|
-
if (p === "*") return i;
|
|
208
|
-
const n = ee(t);
|
|
209
|
-
if (!n) return i;
|
|
210
|
-
if (!(i !== null && typeof i == "object" && !Array.isArray(i)))
|
|
211
|
-
return "" in n ? n[""] : i;
|
|
212
|
-
const f = p, y = {};
|
|
213
|
-
for (const [h, A] of Object.entries(n))
|
|
214
|
-
h !== "" && !(f && f.includes(h)) && (y[h] = A);
|
|
215
|
-
return Object.keys(y).length === 0 ? i : { ...i, ...y };
|
|
216
|
-
}, a = Z(i, g, j), S = (n) => {
|
|
217
|
-
typeof window < "u" && window.dispatchEvent(new CustomEvent(s, { detail: n })), ne(t, n);
|
|
218
|
-
}, D = (n, u) => JSON.stringify(n) === JSON.stringify(u), d = (n, u) => JSON.stringify(n) === JSON.stringify(u);
|
|
219
|
-
te((n) => {
|
|
220
|
-
if (!n.has(t)) return;
|
|
221
|
-
const u = a.isResolved(), f = u ? a.resolve() : void 0;
|
|
222
|
-
a.invalidate();
|
|
223
|
-
const y = a.resolve();
|
|
224
|
-
u && D(f, y) || (o == null || o(y), S(y));
|
|
225
|
-
});
|
|
226
|
-
const k = () => {
|
|
227
|
-
const n = a.resolve();
|
|
228
|
-
return n !== null && typeof n == "object" ? structuredClone(n) : n;
|
|
229
|
-
}, O = () => a.resolve(), w = (n) => {
|
|
230
|
-
if (z[n] > z[c])
|
|
231
|
-
throw new P(
|
|
232
|
-
`[settings] "${t}" is ${c}-scoped — cannot target deeper scope "${n}"`
|
|
233
|
-
);
|
|
234
|
-
if (n !== "application" && !b)
|
|
235
|
-
throw new P(
|
|
236
|
-
`[settings] "${t}" is a whole-value group — only the 'application' scope is writable`
|
|
237
|
-
);
|
|
238
|
-
}, W = async (n, u) => {
|
|
239
|
-
try {
|
|
240
|
-
await l.write(n, u);
|
|
241
|
-
} catch (f) {
|
|
242
|
-
throw x(`${t} persist failed`, f), f;
|
|
243
|
-
}
|
|
244
|
-
}, L = async (n, u) => {
|
|
245
|
-
const f = a.snapshot(), y = a.resolve(), h = a.preview(n, u), A = n === "application" ? a.application() : a.override(n);
|
|
246
|
-
if (a.isEstablished() && D(y, h) && d(A, u))
|
|
247
|
-
return h;
|
|
248
|
-
a.commit(n, u), o == null || o(h), S(h);
|
|
249
|
-
try {
|
|
250
|
-
await W(u, n);
|
|
251
|
-
} catch (Y) {
|
|
252
|
-
a.restore(f);
|
|
253
|
-
const $ = a.resolve();
|
|
254
|
-
throw o == null || o($), S($), Y;
|
|
255
|
-
}
|
|
256
|
-
return h;
|
|
257
|
-
}, G = {
|
|
258
|
-
key: t,
|
|
259
|
-
changeEvent: s,
|
|
260
|
-
scope: c,
|
|
261
|
-
default: i,
|
|
262
|
-
get: k,
|
|
263
|
-
peek: O,
|
|
264
|
-
update: async (n, u) => {
|
|
265
|
-
const f = (u == null ? void 0 : u.target) ?? "application";
|
|
266
|
-
if (w(f), f === "application") {
|
|
267
|
-
const h = a.application() ?? j(), A = h !== null && typeof h == "object" ? { ...h, ...n } : n;
|
|
268
|
-
return L("application", v(A));
|
|
269
|
-
}
|
|
270
|
-
const y = { ...a.override(f), ...n };
|
|
271
|
-
return L(f, b(y));
|
|
272
|
-
},
|
|
273
|
-
replace: async (n) => L("application", v(n)),
|
|
274
|
-
normalize: v,
|
|
275
|
-
overrideAt: (n) => (w(n), n === "application" ? {} : { ...a.override(n) }),
|
|
276
|
-
clearOverrideField: async (n, u) => {
|
|
277
|
-
if (w(n), n === "application")
|
|
278
|
-
throw new P(
|
|
279
|
-
`${t}: "application" is the baseline, not an override layer — nothing to clear`
|
|
280
|
-
);
|
|
281
|
-
const f = a.override(n);
|
|
282
|
-
if (!(u in f)) return a.resolve();
|
|
283
|
-
const y = { ...f };
|
|
284
|
-
return delete y[u], L(n, b(y));
|
|
285
|
-
},
|
|
286
|
-
hydrate: (n = "application") => {
|
|
287
|
-
if (w(n), n === "application") {
|
|
288
|
-
const f = l.read("application");
|
|
289
|
-
f != null ? a.commit("application", v(f)) : a.resetApplication();
|
|
290
|
-
} else
|
|
291
|
-
a.commit(n, b(l.read(n)));
|
|
292
|
-
const u = a.resolve();
|
|
293
|
-
return o == null || o(u), u;
|
|
294
|
-
},
|
|
295
|
-
applyFromBroadcast: (n, u = "application") => {
|
|
296
|
-
w(u);
|
|
297
|
-
const f = a.resolve(), y = u === "application" ? v(n) : b(n), h = a.preview(u, y);
|
|
298
|
-
a.isEstablished() && D(f, h) || (a.commit(u, y), o == null || o(h), S(h));
|
|
299
|
-
},
|
|
300
|
-
dropScopeLayer: (n) => {
|
|
301
|
-
const u = a.resolve();
|
|
302
|
-
if (!a.deleteOverride(n)) return;
|
|
303
|
-
const f = a.resolve();
|
|
304
|
-
D(u, f) || (o == null || o(f), S(f));
|
|
305
|
-
},
|
|
306
|
-
reset: () => a.reset(),
|
|
307
|
-
...m ? { uiSchema: m } : {},
|
|
308
|
-
...r && r.length > 0 ? { secretKeys: r } : {},
|
|
309
|
-
...g ? { fieldKeys: g } : {}
|
|
310
|
-
};
|
|
311
|
-
if (N.has(t))
|
|
312
|
-
throw new P(
|
|
313
|
-
`[settings] Duplicate settings descriptor key: "${t}"`
|
|
314
|
-
);
|
|
315
|
-
const F = G;
|
|
316
|
-
return T.push(F), N.set(t, F), _ && F.hydrate(), G;
|
|
317
|
-
}
|
|
318
|
-
function Ee(e) {
|
|
319
|
-
const t = e.fields, s = Object.keys(t), c = U(e.fields), l = I(e.fields), o = Q(e.fields), i = s.filter((g) => {
|
|
320
|
-
const m = t[g];
|
|
321
|
-
return m.kind === "string" && m.secret === !0;
|
|
322
|
-
}), v = e.disallowPluginDefaults ? "*" : (() => {
|
|
323
|
-
const g = s.filter(
|
|
324
|
-
(m) => t[m].disallowPluginDefault === !0
|
|
325
|
-
);
|
|
326
|
-
return g.length > 0 ? g : void 0;
|
|
327
|
-
})(), b = (() => {
|
|
328
|
-
const g = [];
|
|
329
|
-
for (const m of s) {
|
|
330
|
-
const r = t[m];
|
|
331
|
-
if (!r.label) continue;
|
|
332
|
-
const p = {
|
|
333
|
-
key: m,
|
|
334
|
-
kind: r.kind,
|
|
335
|
-
label: r.label
|
|
336
|
-
};
|
|
337
|
-
r.description !== void 0 && (p.description = r.description), r.helpText !== void 0 && (p.helpText = r.helpText), r.control !== void 0 && (p.control = r.control), r.kind === "enum" ? p.enumValues = r.values : r.enumValues !== void 0 && (p.enumValues = r.enumValues), r.enumLabels !== void 0 && (p.enumLabels = r.enumLabels), r.mono !== void 0 && (p.mono = r.mono);
|
|
338
|
-
const x = r.uiMin ?? (r.kind === "int" ? r.min : void 0);
|
|
339
|
-
x !== void 0 && (p.min = x);
|
|
340
|
-
const j = r.uiMax ?? (r.kind === "int" ? r.max : void 0);
|
|
341
|
-
j !== void 0 && (p.max = j), r.uiStep !== void 0 && (p.step = r.uiStep), r.unit !== void 0 && (p.unit = r.unit), r.precision !== void 0 && (p.precision = r.precision), r.visibleWhen !== void 0 && (p.visibleWhen = r.visibleWhen), g.push(p);
|
|
342
|
-
}
|
|
343
|
-
return g.length > 0 ? g : void 0;
|
|
344
|
-
})();
|
|
345
|
-
return H({
|
|
346
|
-
key: e.key,
|
|
347
|
-
changeEvent: e.changeEvent,
|
|
348
|
-
scope: e.scope ?? "application",
|
|
349
|
-
store: e.store ?? B(e.key),
|
|
350
|
-
applyRuntime: e.applyRuntime,
|
|
351
|
-
defaultValue: c,
|
|
352
|
-
normalize: l,
|
|
353
|
-
normalizePartial: o,
|
|
354
|
-
fieldKeys: s,
|
|
355
|
-
uiSchema: b,
|
|
356
|
-
secretKeys: i,
|
|
357
|
-
protectedDefaultFields: v
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
function je(e) {
|
|
361
|
-
return H({
|
|
362
|
-
key: e.key,
|
|
363
|
-
changeEvent: e.changeEvent,
|
|
364
|
-
scope: "application",
|
|
365
|
-
store: e.store ?? B(e.key),
|
|
366
|
-
applyRuntime: e.applyRuntime,
|
|
367
|
-
defaultValue: e.default,
|
|
368
|
-
normalize: e.normalize,
|
|
369
|
-
protectedDefaultFields: e.disallowPluginDefaults ? "*" : void 0
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
export {
|
|
373
|
-
je as a,
|
|
374
|
-
U as b,
|
|
375
|
-
ge as c,
|
|
376
|
-
Ee as d,
|
|
377
|
-
I as e,
|
|
378
|
-
Q as f,
|
|
379
|
-
ee as g,
|
|
380
|
-
we as h,
|
|
381
|
-
ke as i,
|
|
382
|
-
be as j,
|
|
383
|
-
he as k,
|
|
384
|
-
X as l,
|
|
385
|
-
ve as m,
|
|
386
|
-
R as n,
|
|
387
|
-
Oe as o,
|
|
388
|
-
te as p,
|
|
389
|
-
me as r,
|
|
390
|
-
ye as s
|
|
391
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const $=require("./stateDbStore-THFfFGa0.cjs"),ee=require("./rendererLogging-B4XML4_G.cjs"),C=require("./bugIndicatingError-D2X5Hfgg.cjs");function T(e,t){switch(e.kind){case"bool":return typeof t=="boolean"?t:e.default;case"enum":return e.values.includes(t)?t:e.default;case"int":return typeof t=="number"&&Number.isFinite(t)?Math.round(Math.max(e.min,Math.min(e.max,t))):e.default;case"string":{if(e.secret)return e.default;if(typeof t=="string"){const s=e.trim?t.trim():t;if(!e.trim||s.length>0)return s}return e.default}case"custom":return e.normalize(t,e.default)}}function K(e){const t=e,s={};for(const c of Object.keys(t))s[c]=t[c].default;return s}function V(e){const t=e,s=Object.keys(t);return c=>{const l=typeof c=="object"&&c!==null?c:{},o={};for(const i of s)o[i]=T(t[i],l[i]);return o}}function q(e){const t=e,s=Object.keys(t);return c=>{const l=typeof c=="object"&&c!==null?c:{},o={};for(const i of s)i in l&&(o[i]=T(t[i],l[i]));return o}}function I(e,t){const s={...t.application},c=t.profile,l=t.connection,o=t.workspace;for(const i of e){const v=o==null?void 0:o[i];if(v!==void 0){s[i]=v;continue}const h=l==null?void 0:l[i];if(h!==void 0){s[i]=h;continue}const g=c==null?void 0:c[i];g!==void 0&&(s[i]=g)}return s}function te(e,t,s=()=>e){let c=null;const l={};let o=!1;const i=Symbol("layeredValue.unset");let v=i;const h=(d,k)=>{const E=d??s();return Object.values(k).every(w=>w===void 0)||!t?E:I(t,{application:E,profile:k.profile,connection:k.connection,workspace:k.workspace})},g=()=>(v!==i||(v=h(c,l)),v),y=()=>{v=i};return{resolve:g,invalidate:y,isResolved:()=>v!==i,isEstablished:()=>o,preview:(d,k)=>{const E=d==="application"?k:c,w=d==="application"?l:{...l,[d]:k};return h(E,w)},application:()=>c,override:d=>d==="application"?{}:l[d]??{},commit:(d,k)=>{d==="application"?c=k:l[d]=k,y(),o=!0},deleteOverride:d=>d==="application"||l[d]===void 0?!1:(delete l[d],y(),!0),snapshot:()=>({application:c,overrides:{...l}}),restore:d=>{c=d.application,delete l.profile,delete l.workspace,d.overrides.profile!==void 0&&(l.profile=d.overrides.profile),d.overrides.workspace!==void 0&&(l.workspace=d.overrides.workspace),y()},reset:()=>{c=null,delete l.profile,delete l.workspace,o=!1,y()},resetApplication:()=>{c=null,o=l.profile!==void 0||l.workspace!==void 0,y()}}}const S=new Map,F=new Set;function J(e){const t=e.indexOf(".");return t===-1?{group:e,field:void 0}:{group:e.slice(0,t),field:e.slice(t+1)}}function _(...e){const t=new Set;for(const s of e)if(s)for(const c of Object.keys(s))t.add(J(c).group);return t}function H(e){if(e.size!==0)for(const t of F)t(e)}function ne(e,t){const s=S.get(e);t&&Object.keys(t).length>0?S.set(e,t):S.delete(e),H(_(s,t))}function oe(e){const t=S.get(e);t&&(S.delete(e),H(_(t)))}function W(e){let t;for(const s of S.values())for(const[c,l]of Object.entries(s)){const{group:o,field:i}=J(c);o===e&&(t??(t={}),t[i??""]=l)}return t}function Y(e){return F.add(e),()=>{F.delete(e)}}function ie(){S.clear()}const L={application:0,profile:1,connection:2,workspace:3};function re(e,t){return L[t]<=L[e]}function se(e){e.reset()}const B=[],N=new Map;let U=!1;function ce(){U=!0;for(const e of B)e.hydrate()}function le(){return B}function ae(e){return N.get(e)}const G=new Set;function ue(e){return G.add(e),()=>{G.delete(e)}}function fe(e,t){for(const s of G)s({key:e,value:t})}function Q(e){const{key:t,changeEvent:s,scope:c,store:l,applyRuntime:o,defaultValue:i,normalize:v,normalizePartial:h,fieldKeys:g,uiSchema:y,secretKeys:r,protectedDefaultFields:p}=e;Object.freeze(i);const j=(n,u)=>{ee.getLogger(`Settings.${t}`).error(n,u)},D=()=>{if(p==="*")return i;const n=W(t);if(!n)return i;if(!(i!==null&&typeof i=="object"&&!Array.isArray(i)))return""in n?n[""]:i;const f=p,m={};for(const[b,x]of Object.entries(n))b!==""&&!(f&&f.includes(b))&&(m[b]=x);return Object.keys(m).length===0?i:{...i,...m}},a=te(i,g,D),O=n=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent(s,{detail:n})),fe(t,n)},P=(n,u)=>JSON.stringify(n)===JSON.stringify(u),d=(n,u)=>JSON.stringify(n)===JSON.stringify(u);Y(n=>{if(!n.has(t))return;const u=a.isResolved(),f=u?a.resolve():void 0;a.invalidate();const m=a.resolve();u&&P(f,m)||(o==null||o(m),O(m))});const k=()=>{const n=a.resolve();return n!==null&&typeof n=="object"?structuredClone(n):n},E=()=>a.resolve(),w=n=>{if(L[n]>L[c])throw new C.BugIndicatingError(`[settings] "${t}" is ${c}-scoped — cannot target deeper scope "${n}"`);if(n!=="application"&&!h)throw new C.BugIndicatingError(`[settings] "${t}" is a whole-value group — only the 'application' scope is writable`)},X=async(n,u)=>{try{await l.write(n,u)}catch(f){throw j(`${t} persist failed`,f),f}},A=async(n,u)=>{const f=a.snapshot(),m=a.resolve(),b=a.preview(n,u),x=n==="application"?a.application():a.override(n);if(a.isEstablished()&&P(m,b)&&d(x,u))return b;a.commit(n,u),o==null||o(b),O(b);try{await X(u,n)}catch(Z){a.restore(f);const R=a.resolve();throw o==null||o(R),O(R),Z}return b},M={key:t,changeEvent:s,scope:c,default:i,get:k,peek:E,update:async(n,u)=>{const f=(u==null?void 0:u.target)??"application";if(w(f),f==="application"){const b=a.application()??D(),x=b!==null&&typeof b=="object"?{...b,...n}:n;return A("application",v(x))}const m={...a.override(f),...n};return A(f,h(m))},replace:async n=>A("application",v(n)),normalize:v,overrideAt:n=>(w(n),n==="application"?{}:{...a.override(n)}),clearOverrideField:async(n,u)=>{if(w(n),n==="application")throw new C.BugIndicatingError(`${t}: "application" is the baseline, not an override layer — nothing to clear`);const f=a.override(n);if(!(u in f))return a.resolve();const m={...f};return delete m[u],A(n,h(m))},hydrate:(n="application")=>{if(w(n),n==="application"){const f=l.read("application");f!=null?a.commit("application",v(f)):a.resetApplication()}else a.commit(n,h(l.read(n)));const u=a.resolve();return o==null||o(u),u},applyFromBroadcast:(n,u="application")=>{w(u);const f=a.resolve(),m=u==="application"?v(n):h(n),b=a.preview(u,m);a.isEstablished()&&P(f,b)||(a.commit(u,m),o==null||o(b),O(b))},dropScopeLayer:n=>{const u=a.resolve();if(!a.deleteOverride(n))return;const f=a.resolve();P(u,f)||(o==null||o(f),O(f))},reset:()=>a.reset(),...y?{uiSchema:y}:{},...r&&r.length>0?{secretKeys:r}:{},...g?{fieldKeys:g}:{}};if(N.has(t))throw new C.BugIndicatingError(`[settings] Duplicate settings descriptor key: "${t}"`);const z=M;return B.push(z),N.set(t,z),U&&z.hydrate(),M}function de(e){const t=e.fields,s=Object.keys(t),c=K(e.fields),l=V(e.fields),o=q(e.fields),i=s.filter(g=>{const y=t[g];return y.kind==="string"&&y.secret===!0}),v=e.disallowPluginDefaults?"*":(()=>{const g=s.filter(y=>t[y].disallowPluginDefault===!0);return g.length>0?g:void 0})(),h=(()=>{const g=[];for(const y of s){const r=t[y];if(!r.label)continue;const p={key:y,kind:r.kind,label:r.label};r.description!==void 0&&(p.description=r.description),r.helpText!==void 0&&(p.helpText=r.helpText),r.control!==void 0&&(p.control=r.control),r.kind==="enum"?p.enumValues=r.values:r.enumValues!==void 0&&(p.enumValues=r.enumValues),r.enumLabels!==void 0&&(p.enumLabels=r.enumLabels),r.mono!==void 0&&(p.mono=r.mono);const j=r.uiMin??(r.kind==="int"?r.min:void 0);j!==void 0&&(p.min=j);const D=r.uiMax??(r.kind==="int"?r.max:void 0);D!==void 0&&(p.max=D),r.uiStep!==void 0&&(p.step=r.uiStep),r.unit!==void 0&&(p.unit=r.unit),r.precision!==void 0&&(p.precision=r.precision),r.visibleWhen!==void 0&&(p.visibleWhen=r.visibleWhen),g.push(p)}return g.length>0?g:void 0})();return Q({key:e.key,changeEvent:e.changeEvent,scope:e.scope??"application",store:e.store??$.stateDbStore(e.key),applyRuntime:e.applyRuntime,defaultValue:c,normalize:l,normalizePartial:o,fieldKeys:s,uiSchema:h,secretKeys:i,protectedDefaultFields:v})}function pe(e){return Q({key:e.key,changeEvent:e.changeEvent,scope:"application",store:e.store??$.stateDbStore(e.key),applyRuntime:e.applyRuntime,defaultValue:e.default,normalize:e.normalize,protectedDefaultFields:e.disallowPluginDefaults?"*":void 0})}exports.clearPluginConfigDefaults=oe;exports.defineSettings=de;exports.defineSettingsValue=pe;exports.deriveDefault=K;exports.deriveNormalize=V;exports.deriveNormalizePartial=q;exports.getContributedGroupDefault=W;exports.getGroupByKey=ae;exports.getRegisteredSettingsGroups=le;exports.hydrateRegisteredSettings=ce;exports.normalizeField=T;exports.onAnySettingsChange=ue;exports.resetPluginConfigDefaultsForTest=ie;exports.resetSettingsGroupForTest=se;exports.resolveLayers=I;exports.scopeAllowsLayer=re;exports.setPluginConfigDefaults=ne;exports.subscribePluginConfigDefaults=Y;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("solid-js/web"),S=require("solid-js"),V=require("@vokril/icons"),se=require("./OverlayScrollArea-BSlaXG1h.cjs"),de=require("./i18n-B9ccWgcR.cjs"),he=require("./rendererLogging-B4XML4_G.cjs"),W=require("./keys-BeeC5_RZ.cjs"),fe=require("./useListCommands-ucngC3t4.cjs"),ge=require("./builtins-DM7FDxEt.cjs"),we=require("./createVirtualScroller-LN-7QFiv.cjs"),me=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),ye=require("./bugIndicatingError-D2X5Hfgg.cjs"),Y={canExpand:!0,canMultiSelect:!0,canTypeAhead:!0,canRename:!1,canDestroy:!1,expandAll:!1};function z(e,c){return`${e}-row-${c}`}function oe(e){const{treeId:c,label:n,multiSelectable:t,focusMode:o,cursorKey:l}=e;return{role:e.flat===!0?"listbox":"tree",tabIndex:o==="active-descendant"||l===null?0:-1,"aria-label":n,"aria-multiselectable":t?!0:void 0,"aria-activedescendant":o==="active-descendant"&&l!==null?z(c,l):void 0}}function ce(e){const{treeId:c,rows:n,index:t,focusMode:o,isCursor:l,isSelected:r}=e,u=n[t],s=e.flat===!0;let h=t;for(let C=t-1;C>=0;C--){const D=n[C].depth;if(D<u.depth)break;D===u.depth&&(h=C)}let f=t;for(let C=t+1;C<n.length;C++){const D=n[C].depth;if(D<u.depth)break;D===u.depth&&(f=C)}let k=0,_=0;for(let C=h;C<=f;C++)n[C].depth===u.depth&&(k++,C<=t&&_++);return{role:s?"option":"treeitem",id:z(c,u.key),tabIndex:o==="roving-tabindex"&&l?0:-1,"aria-level":s?void 0:u.depth+1,"aria-setsize":k,"aria-posinset":_,"aria-selected":r,"aria-expanded":!s&&u.expandable?u.expanded:void 0,"aria-busy":u.busy===!0?!0:void 0}}const ve=/[\^$.*+?(){}|[\]\\]/;function Se(e){const c=e.trim();if(c.length===0)return null;if(ve.test(c))try{const t=new RegExp(c,"gi");return o=>Ce(o,t)}catch(t){he.bestEffortFailed("fall through to substring",t)}const n=c.toLowerCase();return t=>ke(t,n,c.length)}function Ce(e,c){c.lastIndex=0;const n=[];let t=0,o;for(;(o=c.exec(e))!==null;)o.index>t&&n.push({text:e.slice(t,o.index),match:!1}),n.push({text:o[0],match:!0}),t=o.index+o[0].length,o[0].length===0&&(c.lastIndex+=1);return t<e.length&&n.push({text:e.slice(t),match:!1}),n.length>0?n:[{text:e,match:!1}]}function ke(e,c,n){if(n===0)return[{text:e,match:!1}];const t=e.toLowerCase(),o=[];let l=0;for(;l<=e.length;){const r=t.indexOf(c,l);if(r===-1){l<e.length&&o.push({text:e.slice(l),match:!1});break}r>l&&o.push({text:e.slice(l,r),match:!1}),o.push({text:e.slice(r,r+n),match:!0}),l=r+n}return o.length>0?o:[{text:e,match:!1}]}const xe="vk_treeStickyHost_6aT7a",be="vk_treeViewport_Ku3yB",Te="vk_treeContainer_iMrOQ",Re="vk_treeSlice_homAf",Ie="vk_treeRow_Hh9r0",Ae="vk_treeRowCursor_QlUrp",_e="vk_treeRowSelected_UdZj-",Me="vk_treeIndentGuides_W4J04",Ee="vk_treeIndentGuideActive_9m4l3",De="vk_treeRowChevron_6WMjE",$e="vk_treeRowChevronSpacer_Jbp-q",Ke="vk_treeRowChevronIcon_KP24Y",Ge="vk_treeRowChevronIconOpen_fRKNn",He="vk_treeRowContent_RR7pP",Ne="vk_treeRowActions_LYQUv",Oe="vk_treeEmpty_s8RQ-",Pe="vk_treeRowChevronBusy_lZT8a",Le="vk_treeSpeedSearchBadge_9GHNi",Fe="vk_treeSpeedSearchIcon_48Ae2",qe="vk_treeSpeedSearchText_F4SZ8",Be="vk_treeMatchHighlight_NY75y",T={treeStickyHost:xe,treeViewport:be,treeContainer:Te,treeSlice:Re,treeRow:Ie,treeRowCursor:Ae,treeRowSelected:_e,treeIndentGuides:Me,treeIndentGuideActive:Ee,treeRowChevron:De,treeRowChevronSpacer:$e,treeRowChevronIcon:Ke,treeRowChevronIconOpen:Ge,treeRowContent:He,treeRowActions:Ne,treeEmpty:Oe,treeRowChevronBusy:Pe,treeSpeedSearchBadge:Le,treeSpeedSearchIcon:Fe,treeSpeedSearchText:qe,treeMatchHighlight:Be};var Ue=a.template("<span aria-hidden=true tabindex=-1>"),Q=a.template("<span aria-hidden=true>"),Qe=a.template("<span tabindex=-1>"),Ve=a.template("<div><span>"),We=a.template("<mark>");function Ye(e){return e.ctrlKey||e.metaKey?"toggle":e.shiftKey?"range":"replace"}function X(e){let c;S.createEffect(()=>{if(e.sticky===!0||!e.isCursor||!e.treeHasFocus())return;const t=c;!t||t.contains(t.ownerDocument.activeElement)||queueMicrotask(()=>t.focus({preventScroll:!0}))});const n=()=>a.createComponent(S.Show,{get when(){return e.row.expandable},get fallback(){return(()=>{var t=Q();return a.effect(()=>a.className(t,T.treeRowChevronSpacer)),t})()},get children(){var t=Ue();return t.$$dblclick=o=>o.stopPropagation(),t.$$keydown=o=>{(W.isKey(o,"Enter")||o.key===" ")&&(o.stopPropagation(),e.onToggle(e.row))},t.$$click=o=>{o.stopPropagation(),e.onToggle(e.row)},a.insert(t,a.createComponent(S.Show,{get when(){return e.row.busy},get fallback(){return a.createComponent(V.VpChevronRight,{get class(){return`${T.treeRowChevronIcon} ${e.row.expanded?T.treeRowChevronIconOpen:""}`}})},get children(){return a.createComponent(V.VpLoader2,{"data-motion-exempt":"true",get class(){return`${T.treeRowChevronIcon} ${T.treeRowChevronBusy}`}})}})),a.effect(()=>a.className(t,T.treeRowChevron)),t}});return(()=>{var t=Ve(),o=t.firstChild,l=c;return typeof l=="function"?a.use(l,t):c=t,a.spread(t,a.mergeProps({get tabIndex(){return e.sticky===!0?-1:0}},()=>e.sticky===!0?{tabIndex:-1}:e.aria,{get onKeyDown(){var r;return(r=e.dom)==null?void 0:r.onKeyDown},get class(){var r;return`${T.treeRow} ${((r=e.dom)==null?void 0:r.class)??""}`},get classList(){return{[T.treeRowCursor]:e.isCursor,[T.treeRowSelected]:e.isSelected}},get style(){return{height:`${e.rowHeight}px`,"--tree-depth":String(e.row.depth)}}},()=>e.sticky===!0?{"data-tree-sticky-key":e.row.key}:{"data-tree-row-key":e.row.key},()=>{var r;return((r=e.dom)==null?void 0:r.title)!==void 0?{title:e.dom.title}:{}},()=>{var r;return((r=e.dom)==null?void 0:r.draggable)!==void 0?{draggable:e.dom.draggable}:{}},()=>{var r;return(r=e.dom)!=null&&r.onDragStart?{onDragStart:e.dom.onDragStart}:{}},()=>{var r;return(r=e.dom)!=null&&r.onDragOver?{onDragOver:e.dom.onDragOver}:{}},()=>{var r;return(r=e.dom)!=null&&r.onDragLeave?{onDragLeave:e.dom.onDragLeave}:{}},()=>{var r;return(r=e.dom)!=null&&r.onDrop?{onDrop:e.dom.onDrop}:{}},()=>{var r;return(r=e.dom)!=null&&r.onDragEnd?{onDragEnd:e.dom.onDragEnd}:{}},()=>{var r;return(r=e.dom)!=null&&r.onMouseEnter?{onMouseEnter:e.dom.onMouseEnter}:{}},()=>{var r;return(r=e.dom)!=null&&r.onMouseLeave?{onMouseLeave:e.dom.onMouseLeave}:{}},{onMouseDown:r=>{if(r.button===2){e.isSelected?e.onFocusRow(e.index):e.onSelect(e.index,"replace");return}r.button===0&&e.onSelect(e.index,Ye(r))},onClick:r=>e.onActivateClick(e.row,"single-click",r),onDblClick:r=>e.onActivateClick(e.row,"double-click",r),onContextMenu:r=>{r.preventDefault(),r.stopPropagation(),e.onOpenMenu(e.row,r)}}),!1,!0),a.insert(t,a.createComponent(S.Show,{get when(){return a.memo(()=>e.indentGuide!=="none")()&&e.row.depth>0},get children(){var r=Q();return a.effect(()=>a.className(r,T.treeIndentGuides)),r}}),o),a.insert(t,a.createComponent(S.Show,{get when(){return a.memo(()=>e.indentGuide==="active"&&e.activeGuideDepth>=0)()&&e.row.depth>e.activeGuideDepth},get children(){var r=Q();return a.effect(u=>{var s=T.treeIndentGuideActive,h=`${e.activeGuideDepth}`;return s!==u.e&&a.className(r,u.e=s),h!==u.t&&a.setStyleProperty(r,"--tree-active-col",u.t=h),u},{e:void 0,t:void 0}),r}}),o),a.insert(t,a.createComponent(S.Show,{get when(){return e.showChevronGutter},get children(){return n()}}),o),a.insert(o,()=>e.content),a.insert(t,a.createComponent(S.Show,{get when(){return e.actions},get children(){var r=Qe();return r.$$dblclick=u=>u.stopPropagation(),r.$$keydown=u=>u.stopPropagation(),r.$$click=u=>u.stopPropagation(),a.insert(r,()=>e.actions),a.effect(()=>a.className(r,T.treeRowActions)),r}}),null),a.effect(()=>a.className(o,T.treeRowContent)),t})()}function ze(e){const c=()=>e.query?typeof e.query=="function"?e.query():e.query:"",n=S.createMemo(()=>{const t=c().trim();if(t.length===0)return null;const o=Se(t);return o?o(e.text):null});return a.createComponent(S.Show,{get when(){return n()},get fallback(){return a.memo(()=>e.text)},get children(){return a.createComponent(S.For,{get each(){return n()},children:t=>a.createComponent(S.Show,{get when(){return t.match},get fallback(){return a.memo(()=>t.text)},get children(){var o=We();return a.insert(o,()=>t.text),a.effect(()=>a.className(o,e.class??T.treeMatchHighlight)),o}})})}})}a.delegateEvents(["click","keydown","dblclick"]);const Xe="vk_treeStickyWidget_Q-8QQ",Ze="vk_treeStickyRow_7gWG2",p={treeStickyWidget:Xe,treeStickyRow:Ze};var Je=a.template("<div role=list>"),je=a.template("<div role=listitem>");function pe(e){return(()=>{var c=Je();return a.insert(c,a.createComponent(S.Index,{get each(){return e.rows},children:(n,t)=>(()=>{var o=je();return a.insert(o,a.createComponent(X,{sticky:!0,get row(){return n().row},get index(){return n().index},get rowHeight(){return e.descriptor.rowHeight},get isCursor(){return e.isCursor(n().index)},get isSelected(){return e.isSelected(n().row)},treeHasFocus:()=>!1,get showChevronGutter(){return e.showChevronGutter},get indentGuide(){return e.indentGuide},get activeGuideDepth(){return e.activeGuideDepth},get dom(){var l,r;return(r=(l=e.descriptor).rowProps)==null?void 0:r.call(l,n().row)},get content(){return e.descriptor.renderContent(n().row)},get actions(){var l,r;return(r=(l=e.descriptor).renderActions)==null?void 0:r.call(l,n().row)},get onSelect(){return e.onSelect},get onFocusRow(){return e.onFocusRow},get onToggle(){return e.onToggle},onActivateClick:()=>e.onReveal(n().index),get onOpenMenu(){return e.onOpenMenu}})),a.effect(l=>{var r=p.treeStickyRow,u=`${n().top}px`,s=`${e.rows.length-t}`;return r!==l.e&&a.className(o,l.e=r),u!==l.t&&a.setStyleProperty(o,"top",l.t=u),s!==l.a&&a.setStyleProperty(o,"z-index",l.a=s),l},{e:void 0,t:void 0,a:void 0}),o})()})),a.effect(n=>{var t=p.treeStickyWidget,o=e.label,l=`${e.height}px`;return t!==n.e&&a.className(c,n.e=t),o!==n.t&&a.setAttribute(c,"aria-label",n.t=o),l!==n.a&&a.setStyleProperty(c,"height",n.a=l),n},{e:void 0,t:void 0,a:void 0}),c})()}var et=a.template("<div role=status aria-live=polite aria-atomic=true><span>"),tt=a.template("<div><div>"),nt=a.template("<p>"),rt=a.template("<div>");const ee="roving-tabindex";function ot(e){const c=()=>e.surface.descriptor,n=()=>e.surface.controller;let t;const o=S.createMemo(()=>({...Y,...c().capabilities})),l=()=>o().canExpand&&(c().chevronGutter??!0),r=S.createMemo(()=>{if((c().indentGuide??"none")!=="active")return-1;const m=e.surface.rows()[n().cursorIndex()];return m?m.depth-1:-1});fe.useListCommands({container:()=>t,supportsMultiselect:()=>o().canMultiSelect,verbs:{selectAll:()=>n().selectAll()}});const u=ge.useKeybindingsOptional()===null,s=m=>(m.key==="a"||m.key==="A")&&(m.ctrlKey||m.metaKey)&&!m.altKey&&!m.shiftKey,h=S.createMemo(()=>oe({treeId:c().id,label:c().ariaLabel,multiSelectable:o().canMultiSelect,focusMode:ee,cursorKey:n().cursorKey(),flat:!o().canExpand})),f=m=>{const d=m;return d!=null&&d.tagName?d.tagName==="INPUT"||d.tagName==="TEXTAREA"||d.isContentEditable===!0:!1},k=()=>t!==void 0&&t.contains(t.ownerDocument.activeElement),_=(m,d)=>{n().selectIndex(m,d)},C=(m,d,R)=>{var I,x;(x=(I=c()).onActivate)==null||x.call(I,m,d,R)},D=(m,d)=>{e.surface.openMenu(m,{x:d.clientX,y:d.clientY},d)},O=m=>{t==null||t.focus({preventScroll:!0}),e.surface.scroller.scrollToIndex(m,"auto",e.surface.stickyInsetFor(m))};return(()=>{var m=rt();return a.insert(m,a.createComponent(S.Show,{get when(){return n().typeAheadQuery().length>0},get children(){var d=et(),R=d.firstChild;return a.insert(d,a.createComponent(V.VpSearch,{get class(){return T.treeSpeedSearchIcon}}),R),a.insert(R,()=>n().typeAheadQuery()),a.effect(I=>{var x=T.treeSpeedSearchBadge,K=T.treeSpeedSearchText;return x!==I.e&&a.className(d,I.e=x),K!==I.t&&a.className(R,I.t=K),I},{e:void 0,t:void 0}),d}}),null),a.insert(m,a.createComponent(se.OverlayScrollArea,{viewportRef:d=>{var R;e.surface.scroller.containerRef(d),(R=e.viewportRef)==null||R.call(e,d)},get viewportClass(){return`${T.treeViewport} ${e.viewportClass??""}`.trim()},get children(){return[(()=>{var d=tt(),R=d.firstChild,I=t;return typeof I=="function"?a.use(I,d):t=d,a.spread(d,a.mergeProps(h,{get class(){return T.treeContainer},get style(){return{height:`${e.surface.scroller.totalHeight()}px`}},onKeyDown:x=>{if(!f(x.target)){if(u&&s(x)&&o().canMultiSelect){x.preventDefault(),n().selectAll();return}n().handleKeyDown(x)}},onFocus:x=>{x.target===x.currentTarget&&n().cursorIndex()<0&&n().focusIndex(0)}}),!1,!0),a.insert(R,a.createComponent(S.Index,{get each(){return e.surface.scroller.visibleItems()},children:x=>{const K=()=>x().item,P=()=>x().index,B=()=>n().cursorIndex()===P(),i=()=>n().selectedKeys().has(K().key);return a.createComponent(X,{get row(){return K()},get index(){return P()},get aria(){return ce({treeId:c().id,rows:e.surface.rows(),index:P(),focusMode:ee,isCursor:B(),isSelected:i(),flat:!o().canExpand})},get rowHeight(){return c().rowHeight},get isCursor(){return B()},get isSelected(){return i()},treeHasFocus:k,get showChevronGutter(){return l()},get indentGuide(){return c().indentGuide??"none"},get activeGuideDepth(){return r()},get dom(){var g,w;return(w=(g=c()).rowProps)==null?void 0:w.call(g,K())},get content(){return c().renderContent(K())},get actions(){var g,w;return(w=(g=c()).renderActions)==null?void 0:w.call(g,K())},onSelect:_,onFocusRow:g=>n().focusIndex(g),onToggle:g=>{var w,v;return(v=(w=c()).onToggle)==null?void 0:v.call(w,g)},onActivateClick:C,onOpenMenu:D})}})),a.effect(x=>{var K=T.treeSlice,P=`translate3d(0, ${e.surface.scroller.offsetY()}px, 0)`;return K!==x.e&&a.className(R,x.e=K),P!==x.t&&a.setStyleProperty(R,"transform",x.t=P),x},{e:void 0,t:void 0}),d})(),a.createComponent(S.Show,{get when(){return a.memo(()=>e.surface.rows().length===0)()&&c().emptyLabel},get children(){var d=nt();return a.insert(d,()=>c().emptyLabel),a.effect(()=>a.className(d,T.treeEmpty)),d}})]}}),null),a.insert(m,a.createComponent(S.Show,{get when(){return e.surface.stickyState().rows.length>0},get children(){return a.createComponent(pe,{get rows(){return e.surface.stickyState().rows},get height(){return e.surface.stickyState().height},get label(){return de.t("Sticky parent rows")},get descriptor(){return c()},get showChevronGutter(){return l()},get indentGuide(){return c().indentGuide??"none"},get activeGuideDepth(){return r()},isCursor:d=>n().cursorIndex()===d,isSelected:d=>n().selectedKeys().has(d.key),onSelect:_,onFocusRow:d=>n().focusIndex(d),onToggle:d=>{var R,I;return(I=(R=c()).onToggle)==null?void 0:I.call(R,d)},onReveal:O,onOpenMenu:D})}}),null),a.effect(d=>{var R=T.treeStickyHost,I=`${c().indentBaseRem??0}rem`;return R!==d.e&&a.className(m,d.e=R),I!==d.t&&a.setStyleProperty(m,"--tree-indent-base",d.t=I),d},{e:void 0,t:void 0}),m})()}const te=10,q=(e,c)=>Math.max(0,Math.min(e,c-1));function ct(e){return e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey}function at(e,c){const{index:n,rowCount:t,capabilities:o}=c;if(t===0)return null;const l=n<0?-1:n;switch(W.namedKeyOf(e)){case"ArrowDown":return e.shiftKey&&o.canMultiSelect?{type:"extend",to:q(l+1,t)}:{type:"move",to:q(l+1,t)};case"ArrowUp":return l<0?{type:"move",to:t-1}:e.shiftKey&&o.canMultiSelect?{type:"extend",to:q(l-1,t)}:{type:"move",to:q(l-1,t)};case"Home":return{type:"move",to:0};case"End":return{type:"move",to:t-1};case"PageDown":return{type:"move",to:q(Math.max(l,0)+te,t)};case"PageUp":return{type:"move",to:q(Math.max(l,0)-te,t)};case"ArrowRight":return o.canExpand?{type:"expandOrDescend"}:{type:"flatNavigate",direction:"in"};case"ArrowLeft":return e.ctrlKey||e.metaKey?null:o.canExpand?{type:"collapseOrAscend"}:{type:"flatNavigate",direction:"out"};case"Enter":return{type:"activate"};case"ContextMenu":return{type:"openMenu"};case"F10":return e.shiftKey?{type:"openMenu"}:null}return e.key===" "?o.canExpand?{type:"toggle"}:null:o.canTypeAhead&&ct(e)?{type:"typeAhead",char:e.key}:null}function L(e,c){const n=e[c];if(!n)return-1;for(let t=c-1;t>=0;t--)if(e[t].depth<n.depth)return t;return-1}function ae(e,c){const n=e[c];if(!n)return null;const t=c+1;if(t>=e.length||e[t].depth<=n.depth)return null;let o=t;for(;o+1<e.length&&e[o+1].depth>n.depth;)o++;return{start:t,end:o}}function lt(e,c,n,t=!1){const o=n.toLowerCase();if(o.length===0)return-1;const l=e.length;if(l===0)return-1;const r=t?0:1;for(let u=r;u<=l;u++){const s=(c+u+l)%l;if(e[s].label.toLowerCase().startsWith(o))return s}for(let u=r;u<=l;u++){const s=(c+u+l)%l;if(e[s].label.toLowerCase().includes(o))return s}return-1}function le(e,c,n){const t=new Map(e.map((f,k)=>[f.key,k])),o=[...n].filter(f=>t.has(f)),l=it(e,c,o,t),r=ut(e,l),u=f=>f.selectable!==!1&&(r===void 0||f.kind===r),s=new Set(o);let h=l<0?-1:L(e,l);for(;;){const f=st(e,h).filter(u).map(C=>C.key);if(h<0)return f;const k=f.length===s.size&&f.every(C=>s.has(C));if(f.length>0&&!k)return f;const _=e[h];if(f.length>0&&u(_))return[_.key,...f];h=L(e,h)}}function it(e,c,n,t){var r;const o=(r=e[c])==null?void 0:r.key;if(o!==void 0&&!n.includes(o))return c;const l=n[0];return l===void 0?-1:t.get(l)??-1}function ut(e,c){const n=e[c];if(n&&n.selectable!==!1)return n.kind;const t=l=>l.selectable!==!1,o=e.slice(Math.max(c,0)).find(t)??e.find(t);return o==null?void 0:o.kind}function st(e,c){if(c<0)return e;const n=ae(e,c);return n?e.slice(n.start,n.end+1):[]}const ne=1e3;function ie(e){const c=()=>({...Y,...e.capabilities,expandAll:!1}),[n,t]=S.createSignal(-1),[o,l]=S.createSignal(new Set),[r,u]=S.createSignal(-1),[s,h]=S.createSignal("");let f=0,k;const _=()=>{k!==void 0&&(clearTimeout(k),k=void 0),s().length>0&&h("")},C=()=>{k!==void 0&&(clearTimeout(k),k=void 0),k=setTimeout(()=>{h(""),k=void 0},ne)};S.onCleanup(()=>{k!==void 0&&(clearTimeout(k),k=void 0)});const D=S.createMemo(()=>{var i;return((i=e.rows()[n()])==null?void 0:i.key)??null}),O=i=>{var w;const g=e.rows();i<0||i>=g.length||i===n()||(t(i),u(i),(w=e.onScrollToIndex)==null||w.call(e,i))},m=(i,g)=>{var b;const w=e.rows(),v=(b=w[i])==null?void 0:b.kind,[y,E]=i<=g?[i,g]:[g,i],M=new Set;for(let $=y;$<=E;$++){const A=w[$];A&&A.selectable!==!1&&(v!==void 0&&A.kind!==v||M.add(A.key))}return M};return{cursorIndex:n,cursorKey:D,selectedKeys:o,typeAheadQuery:s,get capabilities(){return c()},focusIndex:O,selectIndex:(i,g)=>{var y,E,M;_();const v=e.rows()[i];if(v){if(v.selectable===!1&&g!=="range"){O(i);return}if(g==="toggle"&&c().canMultiSelect){const b=new Set(o());b.has(v.key)?b.delete(v.key):b.add(v.key),l(b),t(i),u(i),(y=e.onScrollToIndex)==null||y.call(e,i);return}if(g==="range"&&c().canMultiSelect){const b=r()>=0?r():i;l(m(b,i)),t(i),(E=e.onScrollToIndex)==null||E.call(e,i);return}l(new Set([v.key])),t(i),u(i),(M=e.onScrollToIndex)==null||M.call(e,i)}},clearSelection:()=>{_(),o().size>0&&l(new Set)},selectChildren:i=>{var $;const g=e.rows(),w=g[i];if(!w)return;const v=w.depth+1,y=new Set;let E,M=!1,b=-1;for(let A=i+1;A<g.length;A++){const H=g[A];if(H.depth<=w.depth)break;if(H.depth===v&&H.selectable!==!1){if(!M)E=H.kind,b=A,M=!0;else if(E!==void 0&&H.kind!==E)continue;y.add(H.key)}}y.size!==0&&(l(y),b>=0&&(t(b),u(b),($=e.onScrollToIndex)==null||$.call(e,b)))},selectAll:()=>{c().canMultiSelect&&l(new Set(le(e.rows(),n(),o())))},childKindsHomogeneous:i=>{const g=e.rows(),w=g[i];if(!w)return{homogeneous:!1,total:0,selectable:0};const v=w.depth+1;let y,E=!1,M=0,b=0;for(let $=i+1;$<g.length;$++){const A=g[$];if(A.depth<=w.depth)break;A.depth===v&&A.selectable!==!1&&(M++,E?(y===void 0||A.kind===y)&&b++:(y=A.kind,E=!0,b++))}return{homogeneous:M>0&&M===b,total:M,selectable:b}},handleKeyDown:i=>{var E,M,b,$,A,H,Z,J;if(W.isKey(i,"Escape")&&s().length>0){i.preventDefault(),i.stopPropagation(),_();return}const g=e.rows(),w=n(),v=at(i,{index:w,rowCount:g.length,capabilities:c()});if(!v)return;const y=g[w];switch(v.type){case"move":i.preventDefault(),O(v.to);return;case"extend":{i.preventDefault();const G=r()>=0?r():w;l(m(G,v.to)),t(v.to),(E=e.onScrollToIndex)==null||E.call(e,v.to);return}case"expandOrDescend":if(!y)return;if(i.preventDefault(),y.expandable&&!y.expanded){(M=e.onToggle)==null||M.call(e,y);return}O(w+1);return;case"collapseOrAscend":{if(!y)return;if(i.preventDefault(),y.expandable&&y.expanded){(b=e.onToggle)==null||b.call(e,y);return}const G=L(g,w);G>=0&&O(G);return}case"toggle":if(!(y!=null&&y.expandable))return;i.preventDefault(),($=e.onToggle)==null||$.call(e,y);return;case"flatNavigate":i.preventDefault(),(A=e.onFlatNavigate)==null||A.call(e,v.direction,y);return;case"activate":if(!y)return;i.preventDefault(),(H=e.onActivate)==null||H.call(e,y);return;case"openMenu":{if(!y)return;i.preventDefault();const G=i.target,N=G==null?void 0:G.getBoundingClientRect();(Z=e.onOpenMenu)==null||Z.call(e,y,{x:Math.round((N==null?void 0:N.left)??0),y:Math.round((N==null?void 0:N.bottom)??0)});return}case"typeAhead":{const G=((J=e.now)==null?void 0:J.call(e))??Date.now(),N=G-f>ne,F=N?"":s(),U=F.length===1&&F.toLowerCase()===v.char.toLowerCase()?F:`${F}${v.char}`,j=lt(g,w,U,U.length>1&&!N);if(f=G,j<0){h(F),F.length>0?C():_();return}h(U),C(),i.preventDefault(),O(j);return}}},openMenuAt:(i,g)=>{var v;const w=e.rows()[i];w&&((v=e.onOpenMenu)==null||v.call(e,w,g))}}}const dt=.4,ht={rows:[],height:0};function ue(e){return Math.max(Math.floor(e),1)}function ft(e,c,n){let t=c,o=L(e,t);for(;o!==-1;){if(o===n)return t;t=o,o=L(e,t)}return n===-1?t:-1}function gt(e,c,n,t){let o=e;for(let r=0;r<e.length;r++)if(e[r].top+t>n||r>=c){o=e.slice(0,r);break}const l=o[o.length-1];return l?{rows:o,height:l.top+t}:{rows:[],height:0}}function wt(e){const{rows:c,scrollTop:n,rowHeight:t,viewportHeight:o}=e;if(c.length===0||t<=0)return ht;const l=ue(e.maxCount),r=[];let u=0,s=-1;for(;;){const h=Math.floor((n+u)/t);if(h<0||h>=c.length)break;const f=ft(c,h,s);if(f===-1)break;const k=ae(c,f);if(k===null||f===h&&n===f*t-u)break;const _=(k.end+1)*t-n,C=u,D=C+t>_&&C<=_?_-t:C;if(r.push({index:f,row:c[f],top:D}),u=D+t,s=f,r.length>=l)break}return gt(r,l,o*dt,t)}function mt(e,c,n,t){if(c<0||c>=e.length)return 0;let o=0,l=L(e,c);for(;l!==-1;)o++,l=L(e,l);return Math.min(o,ue(t))*n}const yt=8,re=7,vt={rows:[],height:0};function St(e){const c=S.useContext(me.DesktopContextMenuContext),n=S.createMemo(()=>[...e.rows()]),t=we.createVirtualScroller({items:n,itemHeight:e.rowHeight,overscan:e.overscan??yt}),o=S.createMemo(()=>e.stickyScroll!==!0?vt:wt({rows:n(),scrollTop:t.scrollTop(),rowHeight:e.rowHeight,viewportHeight:t.viewportHeight(),maxCount:e.stickyScrollMaxCount??re})),l=s=>e.stickyScroll===!0?mt(n(),s,e.rowHeight,e.stickyScrollMaxCount??re):0,r=ie({rows:n,...e.capabilities?{capabilities:e.capabilities}:{},onToggle:s=>{var h;return(h=e.onToggle)==null?void 0:h.call(e,s)},onActivate:s=>{var h;return(h=e.onActivate)==null?void 0:h.call(e,s,"keyboard")},onOpenMenu:(s,h)=>u(s,h),onCollapseAll:()=>{var s;return(s=e.onCollapseAll)==null?void 0:s.call(e)},onFlatNavigate:(s,h)=>{var f;return(f=e.onFlatNavigate)==null?void 0:f.call(e,s,h)},onRename:s=>{var h;return(h=e.onRename)==null?void 0:h.call(e,s)},onDestroy:s=>{var h;return(h=e.onDestroy)==null?void 0:h.call(e,s)},onScrollToIndex:s=>t.scrollToIndex(s,"auto",l(s))});function u(s,h,f){if(e.openMenu){e.openMenu(s,h,f);return}if(!e.buildMenu)return;const k=e.buildMenu(s,r.selectedKeys());if(k.length!==0){if(!c)throw new ye.BugIndicatingError("createTreeSurface: descriptor builds a context menu but no DesktopContextMenuProvider is mounted");c.open(h.x,h.y,k,f)}}return{descriptor:e,controller:r,scroller:t,rows:n,stickyState:o,stickyInsetFor:l,openMenu:u}}const Ct=.85;exports.DEFAULT_TREE_CAPABILITIES=Y;exports.TREE_INDENT_STEP_REM=Ct;exports.TreeHighlight=ze;exports.TreeRow=X;exports.TreeSurface=ot;exports.buildTreeContainerAria=oe;exports.buildTreeRowAria=ce;exports.createTreeController=ie;exports.createTreeSurface=St;exports.selectAllInScope=le;exports.treeRowDomId=z;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { createComponent as u, Portal as a, mergeProps as m } from "solid-js/web";
|
|
2
|
-
import { onMount as i } from "solid-js";
|
|
3
|
-
import { u as c, n as d } from "./overlayStack-DvGdPMdq.js";
|
|
4
|
-
import { u as f } from "./HostWindowContext-KL4U1qUv.js";
|
|
5
|
-
function y(e) {
|
|
6
|
-
var r;
|
|
7
|
-
const t = e.open ?? (() => !0), n = () => {
|
|
8
|
-
const o = e.mount;
|
|
9
|
-
return o.nodeType === Node.DOCUMENT_NODE ? o : o.ownerDocument ?? void 0;
|
|
10
|
-
}, l = c(t, e.idPrefix ?? "portal-overlay", {
|
|
11
|
-
type: e.modal === !0 ? "modal" : e.type,
|
|
12
|
-
element: e.element,
|
|
13
|
-
document: n
|
|
14
|
-
});
|
|
15
|
-
return (r = e.onLayer) == null || r.call(e, l), i(() => {
|
|
16
|
-
d();
|
|
17
|
-
}), u(a, {
|
|
18
|
-
get mount() {
|
|
19
|
-
return e.mount;
|
|
20
|
-
},
|
|
21
|
-
get children() {
|
|
22
|
-
return e.children;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function D(e) {
|
|
27
|
-
const t = f(), n = e.modal === !0 ? {
|
|
28
|
-
modal: !0
|
|
29
|
-
} : {
|
|
30
|
-
type: e.type
|
|
31
|
-
};
|
|
32
|
-
return u(y, m(n, {
|
|
33
|
-
get mount() {
|
|
34
|
-
return t.body;
|
|
35
|
-
},
|
|
36
|
-
get element() {
|
|
37
|
-
return e.element;
|
|
38
|
-
},
|
|
39
|
-
get idPrefix() {
|
|
40
|
-
return e.idPrefix ?? "host-portal";
|
|
41
|
-
},
|
|
42
|
-
get open() {
|
|
43
|
-
return e.open;
|
|
44
|
-
},
|
|
45
|
-
get onLayer() {
|
|
46
|
-
return e.onLayer;
|
|
47
|
-
},
|
|
48
|
-
get children() {
|
|
49
|
-
return e.children;
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
function P(e, t) {
|
|
54
|
-
return e === !0 && t === !1;
|
|
55
|
-
}
|
|
56
|
-
function v(e) {
|
|
57
|
-
return e !== null && typeof e.focus == "function" ? (e.focus(), !0) : !1;
|
|
58
|
-
}
|
|
59
|
-
export {
|
|
60
|
-
D as H,
|
|
61
|
-
y as O,
|
|
62
|
-
v as r,
|
|
63
|
-
P as s
|
|
64
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("solid-js/web"),a=require("solid-js"),l=require("./overlayStack-DvKYN7SD.cjs"),s=require("./HostWindowContext-DqDeJmBP.cjs");function c(e){var u;const t=e.open??(()=>!0),o=()=>{const r=e.mount;return r.nodeType===Node.DOCUMENT_NODE?r:r.ownerDocument??void 0},i=l.useOverlayRegistration(t,e.idPrefix??"portal-overlay",{type:e.modal===!0?"modal":e.type,element:e.element,document:o});return(u=e.onLayer)==null||u.call(e,i),a.onMount(()=>{l.notifyOverlayChanged()}),n.createComponent(n.Portal,{get mount(){return e.mount},get children(){return e.children}})}function d(e){const t=s.useHostDocument(),o=e.modal===!0?{modal:!0}:{type:e.type};return n.createComponent(c,n.mergeProps(o,{get mount(){return t.body},get element(){return e.element},get idPrefix(){return e.idPrefix??"host-portal"},get open(){return e.open},get onLayer(){return e.onLayer},get children(){return e.children}}))}function m(e,t){return e===!0&&t===!1}function y(e){return e!==null&&typeof e.focus=="function"?(e.focus(),!0):!1}exports.HostPortal=d;exports.OverlayPortal=c;exports.restoreFocusTo=y;exports.shouldRestoreFocusOnDialogClose=m;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const _=require("solid-js"),F=require("./rendererLogging-B4XML4_G.cjs"),y=F.getLogger("DisplayOwner");let s=null;function m(e){s=e,a=!1}const t=[],[W,v]=_.createSignal(null);let o,d=null,c=0,a=!1,l=0;function D(){d=null,c=0,a=!1,l=0,o!==void 0&&(clearTimeout(o),o=void 0)}function L(){var i;if(a)return;const e=s;typeof window>"u"||!e||((i=e.available)==null?void 0:i.call(e))===!1||(a=!0,e.onFocusChanged(n=>{n.revision>=l&&(l=n.revision,d=n.focusedWindowId,w())}),e.getFocusState().then(n=>{n.windowId&&(c=n.windowId),n.revision>=l&&(l=n.revision,d=n.focusedWindowId,w())}).catch(()=>{}))}function I(e){var i;if(L(),d!==null){if(e===window)return c!==0&&d===c;const n=e;return typeof n.__vokril_window_id=="number"?n.__vokril_window_id===d:!1}return!!((i=e.document)!=null&&i.hasFocus())}function g(){var i,n;const e=t.filter(({win:r})=>!r.closed);return((i=e.find(({win:r})=>I(r)))==null?void 0:i.win)??((n=e[0])==null?void 0:n.win)??null}function w(){o===void 0&&(o=setTimeout(()=>{o=void 0,v(()=>g())},0))}function b(e){var p;let i=t.find(u=>u.win===e);if(i)i.references++;else if(i={win:e,references:1,onFocusChange:w},t.push(i),e.addEventListener("focus",i.onFocusChange),e.addEventListener("blur",i.onFocusChange),typeof window<"u"&&e!==window){const u=e,h=((p=s==null?void 0:s.hostWindowId)==null?void 0:p.call(s,e))??null;typeof u.__vokril_window_id!="number"&&h&&h.then(f=>{f!==null&&(u.__vokril_window_id=f,w())},f=>y.warn("aux window id could not be read; display owner stays unresolved",f))}v(()=>g());const n=i;let r=!1;return{ownsDisplay:()=>W()===e,dispose:()=>{r||(r=!0,n.references--,n.references===0&&(e.removeEventListener("focus",n.onFocusChange),e.removeEventListener("blur",n.onFocusChange),t.splice(t.indexOf(n),1)),t.length===0&&(clearTimeout(o),o=void 0),v(()=>g()))}}}exports.configureDisplayFocusSource=m;exports.registerDisplayHost=b;exports.resetDisplayOwnerForTesting=D;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { createSignal as _ } from "solid-js";
|
|
2
|
-
import { g as m } from "./rendererLogging-Edo4ALXU.js";
|
|
3
|
-
const F = m("DisplayOwner");
|
|
4
|
-
let r = null;
|
|
5
|
-
function C(e) {
|
|
6
|
-
r = e, a = !1;
|
|
7
|
-
}
|
|
8
|
-
const t = [], [y, w] = _(null);
|
|
9
|
-
let i, d = null, c = 0, a = !1, l = 0;
|
|
10
|
-
function x() {
|
|
11
|
-
d = null, c = 0, a = !1, l = 0, i !== void 0 && (clearTimeout(i), i = void 0);
|
|
12
|
-
}
|
|
13
|
-
function W() {
|
|
14
|
-
var o;
|
|
15
|
-
if (a) return;
|
|
16
|
-
const e = r;
|
|
17
|
-
typeof window > "u" || !e || ((o = e.available) == null ? void 0 : o.call(e)) === !1 || (a = !0, e.onFocusChanged((n) => {
|
|
18
|
-
n.revision >= l && (l = n.revision, d = n.focusedWindowId, v());
|
|
19
|
-
}), e.getFocusState().then((n) => {
|
|
20
|
-
n.windowId && (c = n.windowId), n.revision >= l && (l = n.revision, d = n.focusedWindowId, v());
|
|
21
|
-
}).catch(() => {
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
function I(e) {
|
|
25
|
-
var o;
|
|
26
|
-
if (W(), d !== null) {
|
|
27
|
-
if (e === window)
|
|
28
|
-
return c !== 0 && d === c;
|
|
29
|
-
const n = e;
|
|
30
|
-
return typeof n.__vokril_window_id == "number" ? n.__vokril_window_id === d : !1;
|
|
31
|
-
}
|
|
32
|
-
return !!((o = e.document) != null && o.hasFocus());
|
|
33
|
-
}
|
|
34
|
-
function g() {
|
|
35
|
-
var o, n;
|
|
36
|
-
const e = t.filter(({ win: s }) => !s.closed);
|
|
37
|
-
return ((o = e.find(({ win: s }) => I(s))) == null ? void 0 : o.win) ?? ((n = e[0]) == null ? void 0 : n.win) ?? null;
|
|
38
|
-
}
|
|
39
|
-
function v() {
|
|
40
|
-
i === void 0 && (i = setTimeout(() => {
|
|
41
|
-
i = void 0, w(() => g());
|
|
42
|
-
}, 0));
|
|
43
|
-
}
|
|
44
|
-
function D(e) {
|
|
45
|
-
var p;
|
|
46
|
-
let o = t.find((u) => u.win === e);
|
|
47
|
-
if (o)
|
|
48
|
-
o.references++;
|
|
49
|
-
else if (o = { win: e, references: 1, onFocusChange: v }, t.push(o), e.addEventListener("focus", o.onFocusChange), e.addEventListener("blur", o.onFocusChange), typeof window < "u" && e !== window) {
|
|
50
|
-
const u = e, h = ((p = r == null ? void 0 : r.hostWindowId) == null ? void 0 : p.call(r, e)) ?? null;
|
|
51
|
-
typeof u.__vokril_window_id != "number" && h && h.then(
|
|
52
|
-
(f) => {
|
|
53
|
-
f !== null && (u.__vokril_window_id = f, v());
|
|
54
|
-
},
|
|
55
|
-
(f) => F.warn(
|
|
56
|
-
"aux window id could not be read; display owner stays unresolved",
|
|
57
|
-
f
|
|
58
|
-
)
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
w(() => g());
|
|
62
|
-
const n = o;
|
|
63
|
-
let s = !1;
|
|
64
|
-
return {
|
|
65
|
-
ownsDisplay: () => y() === e,
|
|
66
|
-
dispose: () => {
|
|
67
|
-
s || (s = !0, n.references--, n.references === 0 && (e.removeEventListener("focus", n.onFocusChange), e.removeEventListener("blur", n.onFocusChange), t.splice(t.indexOf(n), 1)), t.length === 0 && (clearTimeout(i), i = void 0), w(() => g()));
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
x as a,
|
|
73
|
-
C as c,
|
|
74
|
-
D as r
|
|
75
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const preferenceNotificationSamples: import("../index.cjs").NotificationScenarioDescriptor[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const preferenceNotificationSamples: import("../index.js").NotificationScenarioDescriptor[];
|