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