@vokril/ui-solid 0.13.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -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-BFi0_e3t.cjs +2 -0
- package/dist/CommandPalette-CAH08DGN.js +4013 -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/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 +0 -8
- package/dist/overlay/ConfirmDialog.d.ts +0 -8
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -3
- package/dist/overlay/index.d.ts +2 -3
- package/dist/overlay/index.js +110 -115
- 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-2UppyMxU.js +3271 -0
- package/dist/server/CommandPalette-DwpZyhO6.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 +810 -883
- 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 +104 -109
- 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 +1 -33
- 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,199 +0,0 @@
|
|
|
1
|
-
import { createSignal as T, useContext as Q, onCleanup as F, createRenderEffect as P } from "solid-js";
|
|
2
|
-
import { t as f, l as q } from "./i18n-D9k9xwuD.js";
|
|
3
|
-
import { z as K } from "./notificationSuppressions-B-LKq9ZU.js";
|
|
4
|
-
import { W as M } from "./visibleBrowserRegistry-Dw2Y4y_I.js";
|
|
5
|
-
const z = "SCHEMA", [J, U] = T(null);
|
|
6
|
-
function ce(c) {
|
|
7
|
-
U(() => c);
|
|
8
|
-
}
|
|
9
|
-
const Y = 2, G = 200, E = 40;
|
|
10
|
-
function N(c, d) {
|
|
11
|
-
const e = c.toLowerCase(), a = d.toLowerCase();
|
|
12
|
-
return e === a ? 9 : e.startsWith(a) ? 7 : e.includes(a) ? 5 : 0;
|
|
13
|
-
}
|
|
14
|
-
function ae(c) {
|
|
15
|
-
const [d, e] = T([]), [a, r] = T(!1), [u, i] = T(null), o = Q(M), p = () => J(), x = () => {
|
|
16
|
-
if (!(o != null && o.activeWorkspaceTabId) || !o.workspaceTabs) return null;
|
|
17
|
-
const n = o.activeWorkspaceTabId();
|
|
18
|
-
return o.workspaceTabs().find((m) => m.id === n) ?? null;
|
|
19
|
-
}, k = () => {
|
|
20
|
-
var n, m, y;
|
|
21
|
-
return ((m = (n = p()) == null ? void 0 : n.getWorkspaceId) == null ? void 0 : m.call(n)) ?? ((y = x()) == null ? void 0 : y.workspaceId) ?? null;
|
|
22
|
-
}, B = () => {
|
|
23
|
-
var n;
|
|
24
|
-
return !!((n = p()) != null && n.getWorkspaceId || o != null && o.workspaceTabs);
|
|
25
|
-
}, O = () => {
|
|
26
|
-
var n;
|
|
27
|
-
return !!((n = p()) != null && n.hasActiveWorkspace()) && (!B() || !!k());
|
|
28
|
-
}, _ = () => {
|
|
29
|
-
var n;
|
|
30
|
-
return ((n = p()) == null ? void 0 : n.getSelectedSchema()) ?? "";
|
|
31
|
-
};
|
|
32
|
-
let j = 0, g;
|
|
33
|
-
const $ = () => {
|
|
34
|
-
g !== void 0 && (clearTimeout(g), g = void 0);
|
|
35
|
-
};
|
|
36
|
-
return F(() => {
|
|
37
|
-
$(), j += 1;
|
|
38
|
-
}), P(() => {
|
|
39
|
-
const n = c.enabled(), m = c.query().trim();
|
|
40
|
-
$();
|
|
41
|
-
const y = ++j;
|
|
42
|
-
if (!n || !O()) {
|
|
43
|
-
e([]), r(!1), i(null);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
const t = p(), l = (t == null ? void 0 : t.getSelectedSchema()) ?? "", v = k(), W = (t == null ? void 0 : t.getSchemas()) ?? [], I = l ? [l] : W, C = () => k() === v && p() === t && !!(t != null && t.hasActiveWorkspace()) && (t == null ? void 0 : t.getSelectedSchema()) === l, L = () => y === j && C() && c.enabled();
|
|
47
|
-
if (m.length < Y) {
|
|
48
|
-
if (i(null), r(!1), l && t) {
|
|
49
|
-
const b = t.getCachedObjectsForSchema(l);
|
|
50
|
-
if (b && b.length > 0) {
|
|
51
|
-
const S = b.slice(0, 10).map((h) => ({
|
|
52
|
-
id: `db:${l}:${h.objectType}:${h.objectName}`,
|
|
53
|
-
kind: "database-object",
|
|
54
|
-
title: h.objectName,
|
|
55
|
-
description: `${h.objectType} · ${l}`,
|
|
56
|
-
detail: l,
|
|
57
|
-
category: f("Database"),
|
|
58
|
-
objectType: h.objectType,
|
|
59
|
-
schema: l,
|
|
60
|
-
enabled: !0,
|
|
61
|
-
score: 1,
|
|
62
|
-
run: () => {
|
|
63
|
-
C() && t.openObject(l, h);
|
|
64
|
-
}
|
|
65
|
-
}));
|
|
66
|
-
e(S);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
e([]);
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
if (e([]), I.length === 0) {
|
|
74
|
-
r(!1), i(null);
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
r(!0), i(null), g = setTimeout(async () => {
|
|
78
|
-
if (L())
|
|
79
|
-
try {
|
|
80
|
-
let b = [];
|
|
81
|
-
if (v && (t != null && t.searchObjects))
|
|
82
|
-
b = [
|
|
83
|
-
...await t.searchObjects(v, m, {
|
|
84
|
-
limit: E,
|
|
85
|
-
schemas: I
|
|
86
|
-
})
|
|
87
|
-
];
|
|
88
|
-
else if (t && l) {
|
|
89
|
-
let s = t.getCachedObjectsForSchema(l);
|
|
90
|
-
if (s || (s = await t.loadObjectsForSchema(l)), s) {
|
|
91
|
-
const R = m.toLowerCase();
|
|
92
|
-
b = s.filter((w) => w.objectName.toLowerCase().includes(R)).slice(0, E).map((w) => ({
|
|
93
|
-
owner: l,
|
|
94
|
-
objectType: w.objectType,
|
|
95
|
-
objectName: w.objectName,
|
|
96
|
-
status: w.status
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
if (!L()) return;
|
|
101
|
-
const S = m.toLowerCase(), h = W.filter((s) => s.toLowerCase().includes(S)).slice(0, 3).map((s) => ({
|
|
102
|
-
id: `db:schema:${s}`,
|
|
103
|
-
kind: "database-object",
|
|
104
|
-
title: s,
|
|
105
|
-
description: `${f("Schema")} · ${s}`,
|
|
106
|
-
detail: f("Schema"),
|
|
107
|
-
category: f("Database"),
|
|
108
|
-
objectType: z,
|
|
109
|
-
schema: s,
|
|
110
|
-
enabled: !0,
|
|
111
|
-
score: N(s, m) + 1,
|
|
112
|
-
run: () => {
|
|
113
|
-
C() && (t == null || t.navigateToSchema(s));
|
|
114
|
-
}
|
|
115
|
-
})), H = b.filter((s) => I.includes(s.owner)).map((s) => ({
|
|
116
|
-
id: `db:${s.owner}:${s.objectType}:${s.objectName}`,
|
|
117
|
-
kind: "database-object",
|
|
118
|
-
title: s.objectName,
|
|
119
|
-
description: `${s.objectType} · ${s.owner}`,
|
|
120
|
-
detail: s.owner,
|
|
121
|
-
category: f("Database"),
|
|
122
|
-
objectType: s.objectType,
|
|
123
|
-
schema: s.owner,
|
|
124
|
-
enabled: !0,
|
|
125
|
-
score: N(s.objectName, m),
|
|
126
|
-
run: () => {
|
|
127
|
-
C() && (t == null || t.openObject(s.owner, s));
|
|
128
|
-
},
|
|
129
|
-
rawDbObject: s
|
|
130
|
-
}));
|
|
131
|
-
e([...h, ...H]), r(!1);
|
|
132
|
-
} catch (b) {
|
|
133
|
-
if (!L()) return;
|
|
134
|
-
const S = K(b, f("Failed to search database objects"));
|
|
135
|
-
i(S), r(!1);
|
|
136
|
-
}
|
|
137
|
-
}, G);
|
|
138
|
-
}), {
|
|
139
|
-
items: d,
|
|
140
|
-
loading: a,
|
|
141
|
-
error: u,
|
|
142
|
-
hasWorkspaceContext: O,
|
|
143
|
-
activeSchema: _
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
let D = null;
|
|
147
|
-
function oe(c) {
|
|
148
|
-
D = c;
|
|
149
|
-
}
|
|
150
|
-
function V(c, d) {
|
|
151
|
-
const e = d.toLowerCase();
|
|
152
|
-
return (c.labels ?? []).some((a) => q(a).toLowerCase().includes(e));
|
|
153
|
-
}
|
|
154
|
-
function X(c, d, e) {
|
|
155
|
-
const a = d.toLowerCase(), r = c.label.toLowerCase();
|
|
156
|
-
if (r === a) return 8;
|
|
157
|
-
if (r.startsWith(a)) return 7;
|
|
158
|
-
if (r.includes(a)) return 6;
|
|
159
|
-
const u = a.split(/\s+/).filter(Boolean);
|
|
160
|
-
return u.length > 1 && u.every((p) => r.includes(p)) ? 5 : c.categoryId.toLowerCase().includes(a) ? 4 : (c.keywords ?? []).some(
|
|
161
|
-
(p) => p.toLowerCase().includes(a)
|
|
162
|
-
) ? 3 : (e.matches ?? V)(c, d) ? 2 : 0;
|
|
163
|
-
}
|
|
164
|
-
function A(c, d, e) {
|
|
165
|
-
var r, u;
|
|
166
|
-
const a = ((r = e.breadcrumb) == null ? void 0 : r.call(e, c.categoryId)) ?? "";
|
|
167
|
-
return {
|
|
168
|
-
id: `setting:${c.id}`,
|
|
169
|
-
kind: "setting",
|
|
170
|
-
title: ((u = e.title) == null ? void 0 : u.call(e, c)) ?? c.label,
|
|
171
|
-
description: a || f("Settings"),
|
|
172
|
-
category: f("Settings"),
|
|
173
|
-
enabled: !0,
|
|
174
|
-
score: d,
|
|
175
|
-
run: () => {
|
|
176
|
-
e.open(c);
|
|
177
|
-
},
|
|
178
|
-
rawSetting: c
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
function re(c, d = 20) {
|
|
182
|
-
const e = D;
|
|
183
|
-
if (!e) return [];
|
|
184
|
-
const a = c.trim(), r = e.items();
|
|
185
|
-
if (!a)
|
|
186
|
-
return (e.popular ? e.popular(r) : r).slice(0, d).map((o) => A(o, 1, e));
|
|
187
|
-
const u = [];
|
|
188
|
-
for (const i of r) {
|
|
189
|
-
const o = X(i, a, e);
|
|
190
|
-
o > 0 && u.push({ item: i, score: o });
|
|
191
|
-
}
|
|
192
|
-
return u.sort((i, o) => o.score - i.score), u.slice(0, d).map(({ item: i, score: o }) => A(i, o, e));
|
|
193
|
-
}
|
|
194
|
-
export {
|
|
195
|
-
oe as a,
|
|
196
|
-
re as b,
|
|
197
|
-
ae as c,
|
|
198
|
-
ce as s
|
|
199
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const S=require("solid-js"),m=require("./i18n-DXXArz-m.cjs"),H=require("./notificationSuppressions-Dcc2WFBZ.cjs"),P=require("./visibleBrowserRegistry-BTfWUlI1.cjs"),Q="SCHEMA",[F,J]=S.createSignal(null);function K(c){J(()=>c)}const M=2,U=200,W=40;function N(c,u){const e=c.toLowerCase(),a=u.toLowerCase();return e===a?9:e.startsWith(a)?7:e.includes(a)?5:0}function Y(c){const[u,e]=S.createSignal([]),[a,r]=S.createSignal(!1),[d,i]=S.createSignal(null),o=S.useContext(P.WorkspaceTabsContext),h=()=>F(),B=()=>{if(!(o!=null&&o.activeWorkspaceTabId)||!o.workspaceTabs)return null;const n=o.activeWorkspaceTabId();return o.workspaceTabs().find(b=>b.id===n)??null},k=()=>{var n,b,C;return((b=(n=h())==null?void 0:n.getWorkspaceId)==null?void 0:b.call(n))??((C=B())==null?void 0:C.workspaceId)??null},R=()=>{var n;return!!((n=h())!=null&&n.getWorkspaceId||o!=null&&o.workspaceTabs)},L=()=>{var n;return!!((n=h())!=null&&n.hasActiveWorkspace())&&(!R()||!!k())},_=()=>{var n;return((n=h())==null?void 0:n.getSelectedSchema())??""};let j=0,y;const $=()=>{y!==void 0&&(clearTimeout(y),y=void 0)};return S.onCleanup(()=>{$(),j+=1}),S.createRenderEffect(()=>{const n=c.enabled(),b=c.query().trim();$();const C=++j;if(!n||!L()){e([]),r(!1),i(null);return}const t=h(),l=(t==null?void 0:t.getSelectedSchema())??"",v=k(),E=(t==null?void 0:t.getSchemas())??[],I=l?[l]:E,T=()=>k()===v&&h()===t&&!!(t!=null&&t.hasActiveWorkspace())&&(t==null?void 0:t.getSelectedSchema())===l,O=()=>C===j&&T()&&c.enabled();if(b.length<M){if(i(null),r(!1),l&&t){const p=t.getCachedObjectsForSchema(l);if(p&&p.length>0){const g=p.slice(0,10).map(f=>({id:`db:${l}:${f.objectType}:${f.objectName}`,kind:"database-object",title:f.objectName,description:`${f.objectType} · ${l}`,detail:l,category:m.t("Database"),objectType:f.objectType,schema:l,enabled:!0,score:1,run:()=>{T()&&t.openObject(l,f)}}));e(g);return}}e([]);return}if(e([]),I.length===0){r(!1),i(null);return}r(!0),i(null),y=setTimeout(async()=>{if(O())try{let p=[];if(v&&(t!=null&&t.searchObjects))p=[...await t.searchObjects(v,b,{limit:W,schemas:I})];else if(t&&l){let s=t.getCachedObjectsForSchema(l);if(s||(s=await t.loadObjectsForSchema(l)),s){const x=b.toLowerCase();p=s.filter(w=>w.objectName.toLowerCase().includes(x)).slice(0,W).map(w=>({owner:l,objectType:w.objectType,objectName:w.objectName,status:w.status}))}}if(!O())return;const g=b.toLowerCase(),f=E.filter(s=>s.toLowerCase().includes(g)).slice(0,3).map(s=>({id:`db:schema:${s}`,kind:"database-object",title:s,description:`${m.t("Schema")} · ${s}`,detail:m.t("Schema"),category:m.t("Database"),objectType:Q,schema:s,enabled:!0,score:N(s,b)+1,run:()=>{T()&&(t==null||t.navigateToSchema(s))}})),q=p.filter(s=>I.includes(s.owner)).map(s=>({id:`db:${s.owner}:${s.objectType}:${s.objectName}`,kind:"database-object",title:s.objectName,description:`${s.objectType} · ${s.owner}`,detail:s.owner,category:m.t("Database"),objectType:s.objectType,schema:s.owner,enabled:!0,score:N(s.objectName,b),run:()=>{T()&&(t==null||t.openObject(s.owner,s))},rawDbObject:s}));e([...f,...q]),r(!1)}catch(p){if(!O())return;const g=H.errorText(p,m.t("Failed to search database objects"));i(g),r(!1)}},U)}),{items:u,loading:a,error:d,hasWorkspaceContext:L,activeSchema:_}}let A=null;function z(c){A=c}function G(c,u){const e=u.toLowerCase();return(c.labels??[]).some(a=>m.labelText(a).toLowerCase().includes(e))}function V(c,u,e){const a=u.toLowerCase(),r=c.label.toLowerCase();if(r===a)return 8;if(r.startsWith(a))return 7;if(r.includes(a))return 6;const d=a.split(/\s+/).filter(Boolean);return d.length>1&&d.every(h=>r.includes(h))?5:c.categoryId.toLowerCase().includes(a)?4:(c.keywords??[]).some(h=>h.toLowerCase().includes(a))?3:(e.matches??G)(c,u)?2:0}function D(c,u,e){var r,d;const a=((r=e.breadcrumb)==null?void 0:r.call(e,c.categoryId))??"";return{id:`setting:${c.id}`,kind:"setting",title:((d=e.title)==null?void 0:d.call(e,c))??c.label,description:a||m.t("Settings"),category:m.t("Settings"),enabled:!0,score:u,run:()=>{e.open(c)},rawSetting:c}}function X(c,u=20){const e=A;if(!e)return[];const a=c.trim(),r=e.items();if(!a)return(e.popular?e.popular(r):r).slice(0,u).map(o=>D(o,1,e));const d=[];for(const i of r){const o=V(i,a,e);o>0&&d.push({item:i,score:o})}return d.sort((i,o)=>o.score-i.score),d.slice(0,u).map(({item:i,score:o})=>D(i,o,e))}exports.createDatabaseObjectSearch=Y;exports.searchSettings=X;exports.setDatabaseObjectSearchProvider=K;exports.setSettingsSearchSource=z;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
var c = /* @__PURE__ */ ((n) => (n[n.APPLICATION = -1] = "APPLICATION", n[n.PROFILE = 0] = "PROFILE", n[n.WORKSPACE = 1] = "WORKSPACE", n[n.CONNECTION = 2] = "CONNECTION", n))(c || {}), O = /* @__PURE__ */ ((n) => (n[n.USER = 0] = "USER", n[n.MACHINE = 1] = "MACHINE", n))(O || {});
|
|
2
|
-
const e = {
|
|
3
|
-
application: -1,
|
|
4
|
-
profile: 0,
|
|
5
|
-
connection: 2,
|
|
6
|
-
workspace: 1
|
|
7
|
-
/* WORKSPACE */
|
|
8
|
-
};
|
|
9
|
-
function u() {
|
|
10
|
-
const n = /* @__PURE__ */ new Map();
|
|
11
|
-
return {
|
|
12
|
-
get: (r, t) => n.get(`${t}:${r}`),
|
|
13
|
-
store: (r, t, s) => {
|
|
14
|
-
n.set(`${s}:${r}`, t);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
let i = u();
|
|
19
|
-
function N(n) {
|
|
20
|
-
i = n ?? u();
|
|
21
|
-
}
|
|
22
|
-
function a() {
|
|
23
|
-
return i;
|
|
24
|
-
}
|
|
25
|
-
function C(n, r = 0) {
|
|
26
|
-
return {
|
|
27
|
-
read: (t) => {
|
|
28
|
-
try {
|
|
29
|
-
const s = i.get(n, e[t]);
|
|
30
|
-
return s === void 0 ? void 0 : JSON.parse(s);
|
|
31
|
-
} catch {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
write: async (t, s) => {
|
|
36
|
-
i.store(n, JSON.stringify(t), e[s], r);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
c as S,
|
|
42
|
-
O as a,
|
|
43
|
-
e as b,
|
|
44
|
-
N as c,
|
|
45
|
-
a as g,
|
|
46
|
-
C as s
|
|
47
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var c=(n=>(n[n.APPLICATION=-1]="APPLICATION",n[n.PROFILE=0]="PROFILE",n[n.WORKSPACE=1]="WORKSPACE",n[n.CONNECTION=2]="CONNECTION",n))(c||{}),u=(n=>(n[n.USER=0]="USER",n[n.MACHINE=1]="MACHINE",n))(u||{});const s={application:-1,profile:0,connection:2,workspace:1};function O(){const n=new Map;return{get:(r,t)=>n.get(`${t}:${r}`),store:(r,t,e)=>{n.set(`${e}:${r}`,t)}}}let i=O();function C(n){i=n??O()}function E(){return i}function N(n,r=0){return{read:t=>{try{const e=i.get(n,s[t]);return e===void 0?void 0:JSON.parse(e)}catch{return}},write:async(t,e)=>{i.store(n,JSON.stringify(t),s[e],r)}}}exports.SCOPE_MAP=s;exports.StorageScope=c;exports.StorageTarget=u;exports.configureSettingsBackend=C;exports.getSettingsBackend=E;exports.stateDbStore=N;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { a as i, c as l, F as a } from "./builtins-XOM9gfIx.js";
|
|
2
|
-
import { onCleanup as o } from "solid-js";
|
|
3
|
-
const u = /* @__PURE__ */ new WeakMap();
|
|
4
|
-
function f(e) {
|
|
5
|
-
const n = i();
|
|
6
|
-
if (!n) return;
|
|
7
|
-
const { registry: c } = e, t = {
|
|
8
|
-
...e.verbs,
|
|
9
|
-
isActive: () => u.get(c) === t
|
|
10
|
-
}, s = c.set(t);
|
|
11
|
-
return o(() => {
|
|
12
|
-
s(), u.get(c) === t && u.delete(c);
|
|
13
|
-
}), l({
|
|
14
|
-
contextKeys: n.contextKeys,
|
|
15
|
-
key: e.key,
|
|
16
|
-
containerRef: e.container,
|
|
17
|
-
...e.countsAsFocus ? { countsAsFocus: e.countsAsFocus } : {},
|
|
18
|
-
onFocusIn: () => {
|
|
19
|
-
var r;
|
|
20
|
-
u.set(c, t), (r = e.onFocusIn) == null || r.call(e);
|
|
21
|
-
}
|
|
22
|
-
}), t;
|
|
23
|
-
}
|
|
24
|
-
function y() {
|
|
25
|
-
const e = [];
|
|
26
|
-
return {
|
|
27
|
-
set: (t) => (e.push(t), () => {
|
|
28
|
-
const s = e.lastIndexOf(t);
|
|
29
|
-
s !== -1 && e.splice(s, 1);
|
|
30
|
-
}),
|
|
31
|
-
current: () => e.length > 0 ? e[e.length - 1] ?? null : null,
|
|
32
|
-
find: (t) => {
|
|
33
|
-
for (let s = e.length - 1; s >= 0; s -= 1) {
|
|
34
|
-
const r = e[s];
|
|
35
|
-
if (r !== void 0 && t(r)) return r;
|
|
36
|
-
}
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
const d = y();
|
|
42
|
-
function m(e) {
|
|
43
|
-
const n = i();
|
|
44
|
-
n && (f({
|
|
45
|
-
key: a.listFocus,
|
|
46
|
-
registry: d,
|
|
47
|
-
container: e.container,
|
|
48
|
-
verbs: e.verbs
|
|
49
|
-
}), l({
|
|
50
|
-
contextKeys: n.contextKeys,
|
|
51
|
-
key: a.listSupportsMultiselect,
|
|
52
|
-
containerRef: e.container,
|
|
53
|
-
countsAsFocus: () => e.supportsMultiselect()
|
|
54
|
-
}));
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
m as a,
|
|
58
|
-
y as c,
|
|
59
|
-
d as l,
|
|
60
|
-
f as u
|
|
61
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./builtins-DM7FDxEt.cjs"),d=require("solid-js"),i=new WeakMap;function l(e){const n=u.useKeybindingsOptional();if(!n)return;const{registry:c}=e,s={...e.verbs,isActive:()=>i.get(c)===s},t=c.set(s);return d.onCleanup(()=>{t(),i.get(c)===s&&i.delete(c)}),u.createFocusContextKey({contextKeys:n.contextKeys,key:e.key,containerRef:e.container,...e.countsAsFocus?{countsAsFocus:e.countsAsFocus}:{},onFocusIn:()=>{var r;i.set(c,s),(r=e.onFocusIn)==null||r.call(e)}}),s}function o(){const e=[];return{set:s=>(e.push(s),()=>{const t=e.lastIndexOf(s);t!==-1&&e.splice(t,1)}),current:()=>e.length>0?e[e.length-1]??null:null,find:s=>{for(let t=e.length-1;t>=0;t-=1){const r=e[t];if(r!==void 0&&s(r))return r}return null}}}const a=o();function y(e){const n=u.useKeybindingsOptional();n&&(l({key:u.FOCUS_CONTEXT_KEYS.listFocus,registry:a,container:e.container,verbs:e.verbs}),u.createFocusContextKey({contextKeys:n.contextKeys,key:u.FOCUS_CONTEXT_KEYS.listSupportsMultiselect,containerRef:e.container,countsAsFocus:()=>e.supportsMultiselect()}))}exports.createPanelCommandRegistry=o;exports.listHandlers=a;exports.useFocusClaim=l;exports.useListCommands=y;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { onCleanup as r } from "solid-js";
|
|
2
|
-
function d(e, i) {
|
|
3
|
-
const t = (o) => {
|
|
4
|
-
const n = o.detail;
|
|
5
|
-
n != null && i(n);
|
|
6
|
-
};
|
|
7
|
-
window.addEventListener(e.changeEvent, t), r(() => window.removeEventListener(e.changeEvent, t));
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
d as u
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("solid-js");function r(n,i){const t=s=>{const e=s.detail;e!=null&&i(e)};window.addEventListener(n.changeEvent,t),o.onCleanup(()=>window.removeEventListener(n.changeEvent,t))}exports.useSettingsSubscription=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("solid-js"),d=require("./bugIndicatingError-D2X5Hfgg.cjs"),g=c.createContext();function p(){const e=c.useContext(g);if(!e)throw new d.BugIndicatingError("useWorkspaceTabs: missing provider");return e}const[k,x]=c.createSignal(void 0);let a=null;function V(e){a=e}function C(e){x(e),a==null||a(e)}const f=c.createContext();function T(){return c.useContext(f)}const u=new WeakMap;function w(e){let t=u.get(e);if(!t){const[r,s]=c.createSignal([]);t={entries:new Map,activeBrowsers:r,setActiveBrowsers:s},u.set(e,t)}return t}function W(e,t,r,s,i,l=0){if(!e)return;const n=w(e);if(s&&r.width>0&&r.height>0){const o=n.entries.get(t);if(o&&o.generation>l)return;n.entries.set(t,{tabId:t,bounds:{...r},lease:i,generation:l})}else{const o=n.entries.get(t);if(o&&(!i||o.lease===i)){if(o.generation>l)return;n.entries.delete(t)}}n.setActiveBrowsers(Array.from(n.entries.values()))}function b(e,t,r){if(!e)return;const s=u.get(e);if(!s)return;const i=s.entries.get(t);i&&(!r||i.lease===r)&&(s.entries.delete(t),s.setActiveBrowsers(Array.from(s.entries.values())))}function B(e){return e?w(e).activeBrowsers():[]}function v(e){return B(e).length>0}function S(e){if(e){const t=u.get(e);t&&(t.entries.clear(),t.setActiveBrowsers([]))}}exports.ToolWindowContext=f;exports.WorkspaceTabsContext=g;exports.clearVisibleBrowsersForTesting=S;exports.getVisibleBrowsers=B;exports.hasVisibleBrowser=v;exports.openSettingsModal=C;exports.registerVisibleBrowser=W;exports.setOpenSettingsHandler=V;exports.unregisterVisibleBrowser=b;exports.useToolWindowLayout=T;exports.useWorkspaceTabs=p;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { createContext as f, useContext as g, createSignal as l } from "solid-js";
|
|
2
|
-
import { B } from "./bugIndicatingError-h3J5qkL6.js";
|
|
3
|
-
const p = f();
|
|
4
|
-
function T() {
|
|
5
|
-
const e = g(p);
|
|
6
|
-
if (!e)
|
|
7
|
-
throw new B("useWorkspaceTabs: missing provider");
|
|
8
|
-
return e;
|
|
9
|
-
}
|
|
10
|
-
const [V, v] = l(void 0);
|
|
11
|
-
let a = null;
|
|
12
|
-
function h(e) {
|
|
13
|
-
a = e;
|
|
14
|
-
}
|
|
15
|
-
function A(e) {
|
|
16
|
-
v(e), a == null || a(e);
|
|
17
|
-
}
|
|
18
|
-
const d = f();
|
|
19
|
-
function y() {
|
|
20
|
-
return g(d);
|
|
21
|
-
}
|
|
22
|
-
const c = /* @__PURE__ */ new WeakMap();
|
|
23
|
-
function w(e) {
|
|
24
|
-
let t = c.get(e);
|
|
25
|
-
if (!t) {
|
|
26
|
-
const [r, s] = l([]);
|
|
27
|
-
t = {
|
|
28
|
-
entries: /* @__PURE__ */ new Map(),
|
|
29
|
-
activeBrowsers: r,
|
|
30
|
-
setActiveBrowsers: s
|
|
31
|
-
}, c.set(e, t);
|
|
32
|
-
}
|
|
33
|
-
return t;
|
|
34
|
-
}
|
|
35
|
-
function k(e, t, r, s, i, u = 0) {
|
|
36
|
-
if (!e) return;
|
|
37
|
-
const n = w(e);
|
|
38
|
-
if (s && r.width > 0 && r.height > 0) {
|
|
39
|
-
const o = n.entries.get(t);
|
|
40
|
-
if (o && o.generation > u)
|
|
41
|
-
return;
|
|
42
|
-
n.entries.set(t, {
|
|
43
|
-
tabId: t,
|
|
44
|
-
bounds: { ...r },
|
|
45
|
-
lease: i,
|
|
46
|
-
generation: u
|
|
47
|
-
});
|
|
48
|
-
} else {
|
|
49
|
-
const o = n.entries.get(t);
|
|
50
|
-
if (o && (!i || o.lease === i)) {
|
|
51
|
-
if (o.generation > u)
|
|
52
|
-
return;
|
|
53
|
-
n.entries.delete(t);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
n.setActiveBrowsers(Array.from(n.entries.values()));
|
|
57
|
-
}
|
|
58
|
-
function S(e, t, r) {
|
|
59
|
-
if (!e) return;
|
|
60
|
-
const s = c.get(e);
|
|
61
|
-
if (!s) return;
|
|
62
|
-
const i = s.entries.get(t);
|
|
63
|
-
i && (!r || i.lease === r) && (s.entries.delete(t), s.setActiveBrowsers(Array.from(s.entries.values())));
|
|
64
|
-
}
|
|
65
|
-
function x(e) {
|
|
66
|
-
return e ? w(e).activeBrowsers() : [];
|
|
67
|
-
}
|
|
68
|
-
function b(e) {
|
|
69
|
-
return x(e).length > 0;
|
|
70
|
-
}
|
|
71
|
-
function M(e) {
|
|
72
|
-
if (e) {
|
|
73
|
-
const t = c.get(e);
|
|
74
|
-
t && (t.entries.clear(), t.setActiveBrowsers([]));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
export {
|
|
78
|
-
d as T,
|
|
79
|
-
p as W,
|
|
80
|
-
y as a,
|
|
81
|
-
T as b,
|
|
82
|
-
M as c,
|
|
83
|
-
x as g,
|
|
84
|
-
b as h,
|
|
85
|
-
A as o,
|
|
86
|
-
k as r,
|
|
87
|
-
h as s,
|
|
88
|
-
S as u
|
|
89
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { o as f } from "./ownerWindow-9mx_LD47.js";
|
|
2
|
-
let o;
|
|
3
|
-
function i() {
|
|
4
|
-
if (typeof window > "u")
|
|
5
|
-
throw new Error(
|
|
6
|
-
"@vokril/ui-solid/host: no DOM window available — provide one with configureHost() before mounting surfaces."
|
|
7
|
-
);
|
|
8
|
-
return (!o || o.window !== window) && (o = { window, document: window.document }), o;
|
|
9
|
-
}
|
|
10
|
-
const d = {
|
|
11
|
-
getActiveWindow: () => i(),
|
|
12
|
-
getMainWindow: () => i(),
|
|
13
|
-
getWindow: (n) => f(n) ?? i().window,
|
|
14
|
-
getHostWindowClose: () => () => i().window.close()
|
|
15
|
-
};
|
|
16
|
-
let t = null;
|
|
17
|
-
function W(n) {
|
|
18
|
-
t = n;
|
|
19
|
-
}
|
|
20
|
-
function l(n) {
|
|
21
|
-
t = n ? { ...d, ...n } : null;
|
|
22
|
-
}
|
|
23
|
-
function e() {
|
|
24
|
-
return t ?? d;
|
|
25
|
-
}
|
|
26
|
-
function s() {
|
|
27
|
-
return e().getActiveWindow();
|
|
28
|
-
}
|
|
29
|
-
function r() {
|
|
30
|
-
return e().getMainWindow();
|
|
31
|
-
}
|
|
32
|
-
function a(n) {
|
|
33
|
-
return e().getWindow(n);
|
|
34
|
-
}
|
|
35
|
-
const w = 1;
|
|
36
|
-
function u(n) {
|
|
37
|
-
const c = r();
|
|
38
|
-
return {
|
|
39
|
-
id: n.window === c.window ? w : w + 1,
|
|
40
|
-
window: n.window,
|
|
41
|
-
document: n.document
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function m() {
|
|
45
|
-
return u(r());
|
|
46
|
-
}
|
|
47
|
-
function v() {
|
|
48
|
-
return u(s());
|
|
49
|
-
}
|
|
50
|
-
function p(n) {
|
|
51
|
-
return a(n);
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
r as a,
|
|
55
|
-
a as b,
|
|
56
|
-
l as c,
|
|
57
|
-
v as d,
|
|
58
|
-
m as e,
|
|
59
|
-
p as f,
|
|
60
|
-
s as g,
|
|
61
|
-
W as p
|
|
62
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const f=require("./ownerWindow-BCmJFMbR.cjs");let o;function i(){if(typeof window>"u")throw new Error("@vokril/ui-solid/host: no DOM window available — provide one with configureHost() before mounting surfaces.");return(!o||o.window!==window)&&(o={window,document:window.document}),o}const r={getActiveWindow:()=>i(),getMainWindow:()=>i(),getWindow:n=>f.ownerWindow(n)??i().window,getHostWindowClose:()=>()=>i().window.close()};let t=null;function s(n){t=n}function l(n){t=n?{...r,...n}:null}function e(){return t??r}function u(){return e().getActiveWindow()}function w(){return e().getMainWindow()}function c(n){return e().getWindow(n)}const d=1;function W(n){const g=w();return{id:n.window===g.window?d:d+1,window:n.window,document:n.document}}function a(){return W(w())}function v(){return W(u())}function A(n){return c(n)}exports.configureHost=l;exports.getActiveWindow=u;exports.getActiveWindow$1=v;exports.getMainWindow=w;exports.getMainWindow$1=a;exports.getWindow=c;exports.getWindow$1=A;exports.provideHostWindow=s;
|