@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
package/dist/desktop/index.js
CHANGED
|
@@ -1,411 +1,416 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var ge = Object.defineProperty;
|
|
2
|
+
var be = (n, r, l) => r in n ? ge(n, r, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[r] = l;
|
|
3
|
+
var W = (n, r, l) => be(n, typeof r != "symbol" ? r + "" : r, l);
|
|
4
|
+
import { createComponent as m, use as ie, insert as p, effect as C, className as I, memo as O, setStyleProperty as ne, template as $, delegateEvents as fe, setAttribute as ke, mergeProps as _e } from "solid-js/web";
|
|
5
|
+
import { createSignal as R, createMemo as V, onMount as se, onCleanup as le, Show as P, For as he } from "solid-js";
|
|
6
|
+
import { I as pe, P as U } from "../Input-DkPhsdfk.js";
|
|
7
|
+
import { a as Ce } from "../HostWindowContext-B2m0bVra.js";
|
|
8
|
+
import { H as Nt, u as Ht } from "../HostWindowContext-B2m0bVra.js";
|
|
9
|
+
import { t as T } from "../i18n-DW9kcu0G.js";
|
|
10
|
+
import { i as Ie } from "../actions-wwAHs3ZU.js";
|
|
11
|
+
import { r as Vt } from "../actions-wwAHs3ZU.js";
|
|
12
|
+
import { a as $e } from "../window-CUK6x8Pj.js";
|
|
13
|
+
import { H as Me } from "../HostPortal-X1iw719T.js";
|
|
14
|
+
import { VpChevronRight as xe, VpCheck as Ee } from "@vokril/icons";
|
|
15
|
+
import { O as Se } from "../OverlayScrollArea-c8Za77qs.js";
|
|
16
|
+
import { u as ye } from "../kitHost-CVAEi9sF.js";
|
|
17
|
+
import { i as F, n as Ae } from "../keys-B2nlkpqc.js";
|
|
18
|
+
import { r as me } from "../dialogFocusRestore-BrALT8Ew.js";
|
|
19
|
+
import { g as Le } from "../windowRegistry-DeGmXt6W.js";
|
|
20
|
+
const We = 500;
|
|
21
|
+
function Te(n) {
|
|
17
22
|
return n.ctrlKey || n.metaKey || n.altKey || n.key.length !== 1 ? !1 : n.key !== " ";
|
|
18
23
|
}
|
|
19
|
-
function Pe(n,
|
|
20
|
-
return
|
|
24
|
+
function Pe(n, r, l, f, u = We) {
|
|
25
|
+
return f - r > u ? l.toLowerCase() : n + l.toLowerCase();
|
|
21
26
|
}
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
const
|
|
25
|
-
for (let k = 1; k <=
|
|
26
|
-
const
|
|
27
|
-
if (M != null && M.trim().toLowerCase().startsWith(
|
|
28
|
-
return
|
|
27
|
+
function De(n, r, l) {
|
|
28
|
+
if (r.length === 0 || n.length === 0) return -1;
|
|
29
|
+
const f = [...r].every((k) => k === r[0]), u = f ? r[0] ?? "" : r, d = f ? l : l - 1, g = n.length;
|
|
30
|
+
for (let k = 1; k <= g; k += 1) {
|
|
31
|
+
const _ = ((d + k) % g + g) % g, M = n[_];
|
|
32
|
+
if (M != null && M.trim().toLowerCase().startsWith(u))
|
|
33
|
+
return _;
|
|
29
34
|
}
|
|
30
35
|
return -1;
|
|
31
36
|
}
|
|
32
|
-
const
|
|
33
|
-
bar:
|
|
34
|
-
trigger:
|
|
35
|
-
triggerActive:
|
|
36
|
-
mnemonic:
|
|
37
|
-
panel:
|
|
38
|
-
panelViewport:
|
|
39
|
-
panelSearchRow:
|
|
40
|
-
panelSearchInput:
|
|
37
|
+
const Re = "vk_bar_-iKpX", Fe = "vk_trigger_tlFs1", Oe = "vk_triggerActive_vSu0q", Be = "vk_mnemonic_-vCZs", ze = "vk_panel_Pxyi6 vk_surface_3ZOnl", Ne = "vk_panelViewport_IbURv vk_viewport_B94pk", He = "vk_panelSearchRow_qCROg", Ke = "vk_panelSearchInput_1G-KK", Ve = "vk_itemIcon_oQ56l vk_itemIcon_bv6oS", Ue = "vk_favoriteBackdrop_yMPes", qe = "vk_favoritePopover_M-iaT", Ge = "vk_row_N-Bqh vk_item_neWq-", Xe = "vk_rowDisabled_otjbn vk_itemDisabled_OROlk", Qe = "vk_rowSubmenu_2uyLs", Ye = "vk_checkmark_fL5-O vk_check_dO3aK", je = "vk_label_trn8V vk_label_zTITb", Je = "vk_shortcut_DjpeI vk_shortcut_S1oQc", Ze = "vk_submenuArrow_b5WSa vk_chevron_pb9D1", et = "vk_separator_dpxJB vk_separator_zMw59", w = {
|
|
38
|
+
bar: Re,
|
|
39
|
+
trigger: Fe,
|
|
40
|
+
triggerActive: Oe,
|
|
41
|
+
mnemonic: Be,
|
|
42
|
+
panel: ze,
|
|
43
|
+
panelViewport: Ne,
|
|
44
|
+
panelSearchRow: He,
|
|
45
|
+
panelSearchInput: Ke,
|
|
41
46
|
itemIcon: Ve,
|
|
42
|
-
favoriteBackdrop:
|
|
43
|
-
favoritePopover:
|
|
44
|
-
row:
|
|
45
|
-
rowDisabled:
|
|
46
|
-
rowSubmenu:
|
|
47
|
-
checkmark:
|
|
48
|
-
label:
|
|
49
|
-
shortcut:
|
|
50
|
-
submenuArrow:
|
|
51
|
-
separator:
|
|
47
|
+
favoriteBackdrop: Ue,
|
|
48
|
+
favoritePopover: qe,
|
|
49
|
+
row: Ge,
|
|
50
|
+
rowDisabled: Xe,
|
|
51
|
+
rowSubmenu: Qe,
|
|
52
|
+
checkmark: Ye,
|
|
53
|
+
label: je,
|
|
54
|
+
shortcut: Je,
|
|
55
|
+
submenuArrow: Ze,
|
|
56
|
+
separator: et
|
|
52
57
|
};
|
|
53
|
-
var
|
|
54
|
-
const
|
|
55
|
-
function
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
let
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
var tt = /* @__PURE__ */ $("<div role=presentation>"), ue = /* @__PURE__ */ $("<div role=menu>"), de = /* @__PURE__ */ $("<div tabindex=-1 role=presentation>"), nt = /* @__PURE__ */ $("<div role=separator>"), re = /* @__PURE__ */ $("<span>"), oe = /* @__PURE__ */ $("<span aria-hidden=true>");
|
|
59
|
+
const rt = 8, ot = 80, it = 160;
|
|
60
|
+
function ve(n) {
|
|
61
|
+
const {
|
|
62
|
+
menuFavorites: r
|
|
63
|
+
} = ye(), [l, f] = R(null), [u, d] = R(null), [g, k] = R(-1), [_, M] = R(""), [v, X] = R(null);
|
|
64
|
+
let S, y;
|
|
65
|
+
const q = [];
|
|
66
|
+
let G = null, B = null;
|
|
67
|
+
const Q = V(() => st(n.items)), ee = V(() => Q().some((i) => i.kind === "item" && i.checked !== void 0)), Y = V(() => {
|
|
68
|
+
const i = n.searchScope;
|
|
69
|
+
return i === "local" || i === "global";
|
|
70
|
+
}), D = V(() => {
|
|
71
|
+
const i = Q(), s = _().trim().toLowerCase();
|
|
72
|
+
return s ? n.searchScope === "global" && n.globalEntries ? n.globalEntries().filter((h) => h.label.toLowerCase().includes(s)) : n.searchScope === "local" ? i.filter((e) => e.kind === "separator" ? !1 : e.label.toLowerCase().includes(s)) : i : i;
|
|
73
|
+
}), z = (i, s) => {
|
|
74
|
+
const e = D();
|
|
68
75
|
if (e.length === 0) return -1;
|
|
69
|
-
const
|
|
70
|
-
let
|
|
71
|
-
for (let
|
|
72
|
-
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
76
|
+
const h = e.length;
|
|
77
|
+
let a = i;
|
|
78
|
+
for (let K = 0; K < h; K++) {
|
|
79
|
+
a = (a + s + h) % h;
|
|
80
|
+
const J = e[a];
|
|
81
|
+
if (J && J.kind !== "separator") return a;
|
|
75
82
|
}
|
|
76
83
|
return -1;
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
84
|
+
}, N = (i) => {
|
|
85
|
+
k(i);
|
|
86
|
+
const s = q[i];
|
|
87
|
+
s && s.focus({
|
|
81
88
|
preventScroll: !1
|
|
82
89
|
});
|
|
83
|
-
}, G = () => {
|
|
84
|
-
q && (clearTimeout(q), q = null);
|
|
85
90
|
}, t = () => {
|
|
86
|
-
|
|
91
|
+
G && (clearTimeout(G), G = null);
|
|
87
92
|
}, o = () => {
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
t(),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
B && (clearTimeout(B), B = null);
|
|
94
|
+
}, c = () => {
|
|
95
|
+
t(), o(), f(null), d(null);
|
|
96
|
+
}, b = () => {
|
|
97
|
+
o(), B = setTimeout(() => {
|
|
98
|
+
B = null, f(null), d(null);
|
|
99
|
+
}, it);
|
|
100
|
+
}, x = (i, s) => {
|
|
101
|
+
t(), o(), l() !== i.id && (G = setTimeout(() => {
|
|
102
|
+
const e = s.getBoundingClientRect();
|
|
103
|
+
f(i.id), d({
|
|
97
104
|
left: Math.round(e.right - 4),
|
|
98
105
|
top: Math.round(e.top - 4)
|
|
99
106
|
});
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
var
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
left: r.clientX,
|
|
110
|
-
top: r.clientY,
|
|
107
|
+
}, ot));
|
|
108
|
+
}, A = (i) => {
|
|
109
|
+
var s;
|
|
110
|
+
i.enabled && (n.onClose(), (s = n.onItemActivate) == null || s.call(n), i.onSelect());
|
|
111
|
+
}, L = (i, s) => {
|
|
112
|
+
const e = s.id;
|
|
113
|
+
Ie(e) && (i.preventDefault(), i.stopPropagation(), X({
|
|
114
|
+
left: i.clientX,
|
|
115
|
+
top: i.clientY,
|
|
111
116
|
actionId: e,
|
|
112
|
-
isPinned:
|
|
113
|
-
});
|
|
117
|
+
isPinned: r.has(e)
|
|
118
|
+
}));
|
|
114
119
|
}, E = () => {
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
},
|
|
118
|
-
|
|
120
|
+
const i = v();
|
|
121
|
+
i && (i.isPinned ? r.remove(i.actionId) : r.add(i.actionId), X(null));
|
|
122
|
+
}, H = () => {
|
|
123
|
+
X(null);
|
|
119
124
|
};
|
|
120
|
-
let
|
|
121
|
-
const
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
124
|
-
switch (
|
|
125
|
+
let j = "", te = 0;
|
|
126
|
+
const we = (i) => {
|
|
127
|
+
const s = D();
|
|
128
|
+
if (s.length !== 0)
|
|
129
|
+
switch (Ae(i)) {
|
|
125
130
|
case "ArrowDown": {
|
|
126
|
-
|
|
127
|
-
const e =
|
|
128
|
-
e >= 0 &&
|
|
131
|
+
i.preventDefault();
|
|
132
|
+
const e = z(g(), 1);
|
|
133
|
+
e >= 0 && N(e);
|
|
129
134
|
break;
|
|
130
135
|
}
|
|
131
136
|
case "ArrowUp": {
|
|
132
|
-
|
|
133
|
-
const e =
|
|
134
|
-
e >= 0 &&
|
|
137
|
+
i.preventDefault();
|
|
138
|
+
const e = z(g() < 0 ? 0 : g(), -1);
|
|
139
|
+
e >= 0 && N(e);
|
|
135
140
|
break;
|
|
136
141
|
}
|
|
137
142
|
case "Home": {
|
|
138
|
-
|
|
139
|
-
const e =
|
|
140
|
-
e >= 0 &&
|
|
143
|
+
i.preventDefault();
|
|
144
|
+
const e = z(-1, 1);
|
|
145
|
+
e >= 0 && N(e);
|
|
141
146
|
break;
|
|
142
147
|
}
|
|
143
148
|
case "End": {
|
|
144
|
-
|
|
145
|
-
const e =
|
|
146
|
-
e >= 0 &&
|
|
149
|
+
i.preventDefault();
|
|
150
|
+
const e = z(0, -1);
|
|
151
|
+
e >= 0 && N(e);
|
|
147
152
|
break;
|
|
148
153
|
}
|
|
149
154
|
case "Enter": {
|
|
150
|
-
if (
|
|
151
|
-
const e =
|
|
155
|
+
if (_().trim() && g() < 0) {
|
|
156
|
+
const e = z(-1, 1);
|
|
152
157
|
if (e >= 0) {
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
|
|
158
|
+
i.preventDefault();
|
|
159
|
+
const h = D()[e];
|
|
160
|
+
h && h.kind === "item" && A(h);
|
|
156
161
|
}
|
|
157
162
|
}
|
|
158
163
|
break;
|
|
159
164
|
}
|
|
160
165
|
case "Escape": {
|
|
161
|
-
|
|
166
|
+
i.preventDefault(), i.stopPropagation(), _().trim() ? (M(""), y == null || y.focus()) : n.onClose();
|
|
162
167
|
break;
|
|
163
168
|
}
|
|
164
169
|
case "ArrowRight": {
|
|
165
|
-
const e =
|
|
170
|
+
const e = g();
|
|
166
171
|
if (e < 0) break;
|
|
167
|
-
const
|
|
168
|
-
|
|
172
|
+
const h = s[e], a = q[e];
|
|
173
|
+
h && h.kind === "submenu" && a && (i.preventDefault(), x(h, a));
|
|
169
174
|
break;
|
|
170
175
|
}
|
|
171
176
|
case "ArrowLeft": {
|
|
172
|
-
|
|
177
|
+
i.preventDefault(), n.onClose();
|
|
173
178
|
break;
|
|
174
179
|
}
|
|
175
180
|
default: {
|
|
176
|
-
const e =
|
|
177
|
-
if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || !
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
const
|
|
181
|
-
|
|
181
|
+
const e = i.target;
|
|
182
|
+
if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || !Te(i)) break;
|
|
183
|
+
const h = Date.now(), a = Pe(j, te, i.key, h);
|
|
184
|
+
j = a, te = h;
|
|
185
|
+
const K = s.map((ce) => ce.kind === "separator" ? null : ce.label), J = De(K, a, g());
|
|
186
|
+
J >= 0 && (i.preventDefault(), N(J));
|
|
182
187
|
break;
|
|
183
188
|
}
|
|
184
189
|
}
|
|
185
190
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}),
|
|
189
|
-
|
|
191
|
+
se(() => {
|
|
192
|
+
Y() && y ? y.focus() : S == null || S.focus();
|
|
193
|
+
}), le(() => {
|
|
194
|
+
t(), o();
|
|
190
195
|
});
|
|
191
|
-
const
|
|
192
|
-
const
|
|
193
|
-
if (!
|
|
194
|
-
for (const
|
|
195
|
-
if (
|
|
196
|
+
const ae = V(() => {
|
|
197
|
+
const i = l();
|
|
198
|
+
if (!i) return null;
|
|
199
|
+
for (const s of D())
|
|
200
|
+
if (s.kind === "submenu" && s.id === i) return s;
|
|
196
201
|
return null;
|
|
197
202
|
});
|
|
198
|
-
return
|
|
203
|
+
return m(Me, {
|
|
199
204
|
type: "menu",
|
|
200
|
-
element: () =>
|
|
205
|
+
element: () => S,
|
|
201
206
|
idPrefix: "menu-panel",
|
|
202
207
|
get children() {
|
|
203
208
|
return [(() => {
|
|
204
|
-
var
|
|
205
|
-
return
|
|
206
|
-
var
|
|
207
|
-
|
|
208
|
-
}),
|
|
209
|
-
var
|
|
210
|
-
|
|
211
|
-
}),
|
|
209
|
+
var i = de();
|
|
210
|
+
return i.addEventListener("mouseleave", () => {
|
|
211
|
+
var s;
|
|
212
|
+
b(), (s = n.onPanelMouseLeave) == null || s.call(n);
|
|
213
|
+
}), i.addEventListener("mouseenter", () => {
|
|
214
|
+
var s;
|
|
215
|
+
o(), (s = n.onPanelMouseEnter) == null || s.call(n);
|
|
216
|
+
}), i.$$keydown = we, ie((s) => S = s, i), p(i, m(P, {
|
|
212
217
|
get when() {
|
|
213
|
-
return
|
|
218
|
+
return Y();
|
|
214
219
|
},
|
|
215
220
|
get children() {
|
|
216
|
-
var
|
|
217
|
-
return
|
|
218
|
-
ref: (e) =>
|
|
221
|
+
var s = tt();
|
|
222
|
+
return p(s, m(pe, {
|
|
223
|
+
ref: (e) => y = e,
|
|
219
224
|
get class() {
|
|
220
|
-
return
|
|
225
|
+
return w.panelSearchInput;
|
|
221
226
|
},
|
|
222
227
|
type: "search",
|
|
223
228
|
placeholder: "Filter menu...",
|
|
224
229
|
get value() {
|
|
225
|
-
return
|
|
230
|
+
return _();
|
|
226
231
|
},
|
|
227
|
-
onInput: (e) =>
|
|
232
|
+
onInput: (e) => M(e.currentTarget.value),
|
|
228
233
|
onKeyDown: (e) => {
|
|
229
|
-
|
|
234
|
+
F(e, "ArrowDown") || F(e, "ArrowUp") || F(e, "Enter") || F(e, "Escape") || e.stopPropagation();
|
|
230
235
|
}
|
|
231
|
-
})),
|
|
236
|
+
})), C(() => I(s, w.panelSearchRow)), s;
|
|
232
237
|
}
|
|
233
|
-
}), null),
|
|
238
|
+
}), null), p(i, m(Se, {
|
|
234
239
|
get viewportClass() {
|
|
235
|
-
return
|
|
240
|
+
return w.panelViewport;
|
|
236
241
|
},
|
|
237
242
|
get children() {
|
|
238
|
-
var
|
|
239
|
-
return
|
|
243
|
+
var s = ue();
|
|
244
|
+
return p(s, m(he, {
|
|
240
245
|
get each() {
|
|
241
|
-
return
|
|
246
|
+
return D();
|
|
242
247
|
},
|
|
243
|
-
children: (e,
|
|
244
|
-
var
|
|
245
|
-
return
|
|
246
|
-
})() : e.kind === "submenu" ?
|
|
248
|
+
children: (e, h) => e.kind === "separator" ? (() => {
|
|
249
|
+
var a = nt();
|
|
250
|
+
return C(() => I(a, w.separator)), a;
|
|
251
|
+
})() : e.kind === "submenu" ? m(U, {
|
|
247
252
|
type: "button",
|
|
248
|
-
ref: (
|
|
249
|
-
|
|
253
|
+
ref: (a) => {
|
|
254
|
+
q[h()] = a ?? null;
|
|
250
255
|
},
|
|
251
256
|
get class() {
|
|
252
|
-
return `${
|
|
257
|
+
return `${w.row} ${w.rowSubmenu}`;
|
|
253
258
|
},
|
|
254
259
|
role: "menuitem",
|
|
255
260
|
"aria-haspopup": "menu",
|
|
256
261
|
get "aria-expanded"() {
|
|
257
|
-
return
|
|
262
|
+
return l() === e.id ? "true" : "false";
|
|
258
263
|
},
|
|
259
264
|
tabIndex: -1,
|
|
260
|
-
onFocus: () =>
|
|
261
|
-
onMouseEnter: (
|
|
262
|
-
|
|
265
|
+
onFocus: () => k(h()),
|
|
266
|
+
onMouseEnter: (a) => {
|
|
267
|
+
k(h()), x(e, a.currentTarget);
|
|
263
268
|
},
|
|
264
|
-
onClick: (
|
|
269
|
+
onClick: (a) => x(e, a.currentTarget),
|
|
265
270
|
get children() {
|
|
266
271
|
return [(() => {
|
|
267
|
-
var
|
|
268
|
-
return
|
|
269
|
-
})(),
|
|
272
|
+
var a = re();
|
|
273
|
+
return p(a, () => e.label), C(() => I(a, w.label)), a;
|
|
274
|
+
})(), m(xe, {
|
|
270
275
|
get class() {
|
|
271
|
-
return
|
|
276
|
+
return w.submenuArrow;
|
|
272
277
|
},
|
|
273
278
|
"aria-hidden": "true"
|
|
274
279
|
})];
|
|
275
280
|
}
|
|
276
|
-
}) :
|
|
281
|
+
}) : m(U, {
|
|
277
282
|
type: "button",
|
|
278
|
-
ref: (
|
|
279
|
-
|
|
283
|
+
ref: (a) => {
|
|
284
|
+
q[h()] = a ?? null;
|
|
280
285
|
},
|
|
281
286
|
get class() {
|
|
282
|
-
return `${
|
|
287
|
+
return `${w.row} ${e.enabled ? "" : w.rowDisabled}`;
|
|
283
288
|
},
|
|
284
289
|
role: "menuitem",
|
|
285
290
|
get disabled() {
|
|
286
291
|
return !e.enabled;
|
|
287
292
|
},
|
|
288
293
|
get "aria-label"() {
|
|
289
|
-
return
|
|
294
|
+
return O(() => !!e.shortcut)() ? `${e.label} (${e.shortcut})` : e.label;
|
|
290
295
|
},
|
|
291
296
|
tabIndex: -1,
|
|
292
|
-
onFocus: () =>
|
|
297
|
+
onFocus: () => k(h()),
|
|
293
298
|
onMouseEnter: () => {
|
|
294
|
-
|
|
299
|
+
k(h()), b();
|
|
295
300
|
},
|
|
296
|
-
onClick: () =>
|
|
297
|
-
onContextMenu: (
|
|
301
|
+
onClick: () => A(e),
|
|
302
|
+
onContextMenu: (a) => L(a, e),
|
|
298
303
|
get children() {
|
|
299
|
-
return [
|
|
304
|
+
return [m(P, {
|
|
300
305
|
get when() {
|
|
301
|
-
return
|
|
306
|
+
return ee();
|
|
302
307
|
},
|
|
303
308
|
get children() {
|
|
304
|
-
var
|
|
305
|
-
return
|
|
309
|
+
var a = oe();
|
|
310
|
+
return p(a, m(P, {
|
|
306
311
|
get when() {
|
|
307
312
|
return e.checked;
|
|
308
313
|
},
|
|
309
314
|
get children() {
|
|
310
|
-
return
|
|
315
|
+
return m(Ee, {});
|
|
311
316
|
}
|
|
312
|
-
})),
|
|
317
|
+
})), C(() => I(a, w.checkmark)), a;
|
|
313
318
|
}
|
|
314
|
-
}),
|
|
319
|
+
}), m(P, {
|
|
315
320
|
get when() {
|
|
316
321
|
return e.icon;
|
|
317
322
|
},
|
|
318
323
|
get children() {
|
|
319
|
-
var
|
|
320
|
-
return
|
|
324
|
+
var a = oe();
|
|
325
|
+
return p(a, () => e.icon), C(() => I(a, w.itemIcon)), a;
|
|
321
326
|
}
|
|
322
327
|
}), (() => {
|
|
323
|
-
var
|
|
324
|
-
return
|
|
325
|
-
})(),
|
|
328
|
+
var a = re();
|
|
329
|
+
return p(a, () => e.label), C(() => I(a, w.label)), a;
|
|
330
|
+
})(), m(P, {
|
|
326
331
|
get when() {
|
|
327
332
|
return e.shortcut;
|
|
328
333
|
},
|
|
329
334
|
get children() {
|
|
330
|
-
var
|
|
331
|
-
return
|
|
335
|
+
var a = oe();
|
|
336
|
+
return p(a, () => e.shortcut), C(() => I(a, w.shortcut)), a;
|
|
332
337
|
}
|
|
333
338
|
})];
|
|
334
339
|
}
|
|
335
340
|
})
|
|
336
|
-
})),
|
|
341
|
+
})), s;
|
|
337
342
|
}
|
|
338
|
-
}), null),
|
|
339
|
-
var e =
|
|
340
|
-
return e !==
|
|
343
|
+
}), null), C((s) => {
|
|
344
|
+
var e = w.panel, h = `${n.anchor.left}px`, a = `${n.anchor.top}px`, K = `calc(100vh - ${n.anchor.top + rt}px)`;
|
|
345
|
+
return e !== s.e && I(i, s.e = e), h !== s.t && ne(i, "left", s.t = h), a !== s.a && ne(i, "top", s.a = a), K !== s.o && ne(i, "max-height", s.o = K), s;
|
|
341
346
|
}, {
|
|
342
347
|
e: void 0,
|
|
343
348
|
t: void 0,
|
|
344
349
|
a: void 0,
|
|
345
350
|
o: void 0
|
|
346
|
-
}),
|
|
347
|
-
})(),
|
|
351
|
+
}), i;
|
|
352
|
+
})(), m(P, {
|
|
348
353
|
get when() {
|
|
349
|
-
return
|
|
354
|
+
return v();
|
|
350
355
|
},
|
|
351
356
|
get children() {
|
|
352
357
|
return (() => {
|
|
353
|
-
const
|
|
354
|
-
return
|
|
355
|
-
var
|
|
356
|
-
return
|
|
357
|
-
e.preventDefault(),
|
|
358
|
-
},
|
|
359
|
-
|
|
360
|
-
},
|
|
361
|
-
e.stopPropagation(),
|
|
362
|
-
},
|
|
358
|
+
const i = v();
|
|
359
|
+
return i ? [(() => {
|
|
360
|
+
var s = de();
|
|
361
|
+
return s.$$contextmenu = (e) => {
|
|
362
|
+
e.preventDefault(), H();
|
|
363
|
+
}, s.$$keydown = (e) => {
|
|
364
|
+
F(e, "Escape") && (e.stopPropagation(), H());
|
|
365
|
+
}, s.$$click = (e) => {
|
|
366
|
+
e.stopPropagation(), H();
|
|
367
|
+
}, C(() => I(s, w.favoriteBackdrop)), s;
|
|
363
368
|
})(), (() => {
|
|
364
|
-
var
|
|
365
|
-
return
|
|
366
|
-
e && (e.style.setProperty("--favorite-popover-left", `${
|
|
367
|
-
},
|
|
369
|
+
var s = ue();
|
|
370
|
+
return ie((e) => {
|
|
371
|
+
e && (e.style.setProperty("--favorite-popover-left", `${i.left}px`), e.style.setProperty("--favorite-popover-top", `${i.top}px`));
|
|
372
|
+
}, s), p(s, m(U, {
|
|
368
373
|
type: "button",
|
|
369
374
|
get class() {
|
|
370
|
-
return
|
|
375
|
+
return w.row;
|
|
371
376
|
},
|
|
372
377
|
role: "menuitem",
|
|
373
378
|
onClick: E,
|
|
374
379
|
get children() {
|
|
375
|
-
var e =
|
|
376
|
-
return
|
|
377
|
-
var
|
|
378
|
-
return () =>
|
|
379
|
-
})()),
|
|
380
|
+
var e = re();
|
|
381
|
+
return p(e, (() => {
|
|
382
|
+
var h = O(() => !!i.isPinned);
|
|
383
|
+
return () => h() ? T("Unpin from Favorites") : T("Pin to Favorites");
|
|
384
|
+
})()), C(() => I(e, w.label)), e;
|
|
380
385
|
}
|
|
381
|
-
})),
|
|
386
|
+
})), C(() => I(s, w.favoritePopover)), s;
|
|
382
387
|
})()] : null;
|
|
383
388
|
})();
|
|
384
389
|
}
|
|
385
|
-
}),
|
|
390
|
+
}), m(P, {
|
|
386
391
|
get when() {
|
|
387
|
-
return
|
|
392
|
+
return O(() => !!ae())() && u();
|
|
388
393
|
},
|
|
389
394
|
get children() {
|
|
390
395
|
return (() => {
|
|
391
|
-
const
|
|
392
|
-
return !
|
|
396
|
+
const i = ae(), s = u();
|
|
397
|
+
return !i || !s ? null : m(ve, {
|
|
393
398
|
get items() {
|
|
394
|
-
return
|
|
399
|
+
return i.items;
|
|
395
400
|
},
|
|
396
|
-
anchor:
|
|
397
|
-
onClose:
|
|
401
|
+
anchor: s,
|
|
402
|
+
onClose: c,
|
|
398
403
|
onItemActivate: () => {
|
|
399
404
|
var e;
|
|
400
|
-
|
|
405
|
+
c(), (e = n.onItemActivate) == null || e.call(n), n.onClose();
|
|
401
406
|
},
|
|
402
407
|
onPanelMouseEnter: () => {
|
|
403
408
|
var e;
|
|
404
|
-
|
|
409
|
+
t(), o(), (e = n.onPanelMouseEnter) == null || e.call(n);
|
|
405
410
|
},
|
|
406
411
|
onPanelMouseLeave: () => {
|
|
407
412
|
var e;
|
|
408
|
-
|
|
413
|
+
b(), (e = n.onPanelMouseLeave) == null || e.call(n);
|
|
409
414
|
}
|
|
410
415
|
});
|
|
411
416
|
})();
|
|
@@ -414,203 +419,203 @@ function he(n) {
|
|
|
414
419
|
}
|
|
415
420
|
});
|
|
416
421
|
}
|
|
417
|
-
function
|
|
418
|
-
var
|
|
419
|
-
const
|
|
420
|
-
let
|
|
421
|
-
for (const
|
|
422
|
-
if (
|
|
423
|
-
if (
|
|
424
|
-
|
|
422
|
+
function st(n) {
|
|
423
|
+
var f;
|
|
424
|
+
const r = [];
|
|
425
|
+
let l = !0;
|
|
426
|
+
for (const u of n)
|
|
427
|
+
if (u.kind === "separator") {
|
|
428
|
+
if (l) continue;
|
|
429
|
+
r.push(u), l = !0;
|
|
425
430
|
} else
|
|
426
|
-
|
|
427
|
-
for (;
|
|
428
|
-
|
|
429
|
-
return
|
|
431
|
+
r.push(u), l = !1;
|
|
432
|
+
for (; r.length > 0 && ((f = r[r.length - 1]) == null ? void 0 : f.kind) === "separator"; )
|
|
433
|
+
r.pop();
|
|
434
|
+
return r;
|
|
430
435
|
}
|
|
431
|
-
|
|
432
|
-
function
|
|
433
|
-
return n === null ? !1 : me(
|
|
436
|
+
fe(["keydown", "click", "contextmenu"]);
|
|
437
|
+
function lt(n, r) {
|
|
438
|
+
return n === null ? !1 : me(r.get(n) ?? null);
|
|
434
439
|
}
|
|
435
440
|
function at(n) {
|
|
436
|
-
let
|
|
437
|
-
const
|
|
438
|
-
const
|
|
439
|
-
return typeof
|
|
441
|
+
let r = null;
|
|
442
|
+
const l = (u) => u !== null && !n(u), f = (u) => {
|
|
443
|
+
const d = u;
|
|
444
|
+
return typeof d.focus == "function" ? d : null;
|
|
440
445
|
};
|
|
441
446
|
return {
|
|
442
|
-
remember(
|
|
443
|
-
if (
|
|
444
|
-
const
|
|
445
|
-
|
|
447
|
+
remember(u) {
|
|
448
|
+
if (u === null || !l(u)) return;
|
|
449
|
+
const d = f(u);
|
|
450
|
+
d !== null && (r = d);
|
|
446
451
|
},
|
|
447
|
-
forget(
|
|
448
|
-
|
|
452
|
+
forget(u) {
|
|
453
|
+
l(u) && (r = null);
|
|
449
454
|
},
|
|
450
455
|
restore() {
|
|
451
|
-
const
|
|
452
|
-
return
|
|
456
|
+
const u = r;
|
|
457
|
+
return r = null, me(u);
|
|
453
458
|
},
|
|
454
459
|
peek() {
|
|
455
|
-
return
|
|
460
|
+
return r;
|
|
456
461
|
}
|
|
457
462
|
};
|
|
458
463
|
}
|
|
459
|
-
var
|
|
460
|
-
function
|
|
461
|
-
const [
|
|
462
|
-
let
|
|
463
|
-
const
|
|
464
|
-
const o = M(t),
|
|
465
|
-
return
|
|
466
|
-
var
|
|
467
|
-
return
|
|
468
|
-
})(),
|
|
469
|
-
},
|
|
470
|
-
const o =
|
|
464
|
+
var ct = /* @__PURE__ */ $("<u>"), ut = /* @__PURE__ */ $("<div role=menubar>");
|
|
465
|
+
function Dt(n) {
|
|
466
|
+
const [r, l] = R(null), [f, u] = R(!1);
|
|
467
|
+
let d;
|
|
468
|
+
const g = /* @__PURE__ */ new Map(), k = at((t) => d !== void 0 && d.contains(t)), _ = V(() => n.groups.filter((t) => t.items.some((o) => o.kind !== "separator"))), M = (t) => (t.mnemonic ?? t.label.charAt(0)).toLowerCase(), v = (t) => {
|
|
469
|
+
const o = M(t), c = t.label.toLowerCase().indexOf(o);
|
|
470
|
+
return c < 0 ? O(() => t.label) : [O(() => t.label.slice(0, c)), (() => {
|
|
471
|
+
var b = ct();
|
|
472
|
+
return p(b, () => t.label.charAt(c)), C(() => I(b, w.mnemonic)), b;
|
|
473
|
+
})(), O(() => t.label.slice(c + 1))];
|
|
474
|
+
}, X = (t) => {
|
|
475
|
+
const o = g.get(t);
|
|
471
476
|
if (!o) return null;
|
|
472
|
-
const
|
|
477
|
+
const c = o.getBoundingClientRect();
|
|
473
478
|
return {
|
|
474
479
|
groupId: t,
|
|
475
|
-
left: Math.round(
|
|
476
|
-
top: Math.round(
|
|
480
|
+
left: Math.round(c.left),
|
|
481
|
+
top: Math.round(c.bottom)
|
|
477
482
|
};
|
|
478
|
-
},
|
|
479
|
-
const o =
|
|
480
|
-
o &&
|
|
481
|
-
},
|
|
482
|
-
var o,
|
|
483
|
-
const t = ((o =
|
|
484
|
-
|
|
483
|
+
}, S = (t) => {
|
|
484
|
+
const o = X(t);
|
|
485
|
+
o && l(o);
|
|
486
|
+
}, y = () => {
|
|
487
|
+
var o, c;
|
|
488
|
+
const t = ((o = r()) == null ? void 0 : o.groupId) ?? null;
|
|
489
|
+
l(null), k.restore() || lt(t, g), (c = n.onClose) == null || c.call(n);
|
|
485
490
|
}, q = (t) => {
|
|
486
|
-
const o =
|
|
491
|
+
const o = r();
|
|
487
492
|
if ((o == null ? void 0 : o.groupId) === t) {
|
|
488
|
-
|
|
493
|
+
y();
|
|
489
494
|
return;
|
|
490
495
|
}
|
|
491
|
-
|
|
492
|
-
},
|
|
496
|
+
S(t);
|
|
497
|
+
}, G = (t) => {
|
|
493
498
|
var o;
|
|
494
|
-
|
|
495
|
-
},
|
|
496
|
-
if (!
|
|
499
|
+
r() && ((o = r()) == null ? void 0 : o.groupId) !== t && S(t);
|
|
500
|
+
}, B = (t) => {
|
|
501
|
+
if (!r()) return;
|
|
497
502
|
const o = t.target;
|
|
498
|
-
o && (
|
|
499
|
-
},
|
|
503
|
+
o && (d != null && d.contains(o) || o instanceof HTMLElement && o.closest('[role="menu"]') || y());
|
|
504
|
+
}, Q = (t) => {
|
|
500
505
|
var o;
|
|
501
506
|
if (!t.defaultPrevented && t.altKey && !t.ctrlKey && !t.metaKey && !t.shiftKey && t.key.length === 1) {
|
|
502
|
-
const
|
|
503
|
-
if (!(
|
|
504
|
-
const
|
|
505
|
-
if (
|
|
507
|
+
const c = t.target;
|
|
508
|
+
if (!(c instanceof HTMLElement && (c.tagName === "INPUT" || c.tagName === "TEXTAREA" || c.tagName === "SELECT" || c.isContentEditable))) {
|
|
509
|
+
const x = t.key.toLowerCase(), L = _().filter((E) => M(E) === x);
|
|
510
|
+
if (L.length > 0) {
|
|
506
511
|
t.preventDefault();
|
|
507
|
-
const E = (o =
|
|
508
|
-
|
|
512
|
+
const E = (o = r()) == null ? void 0 : o.groupId, H = L.findIndex((te) => te.id === E), j = L[(H + 1) % L.length];
|
|
513
|
+
j && S(j.id);
|
|
509
514
|
return;
|
|
510
515
|
}
|
|
511
516
|
}
|
|
512
517
|
}
|
|
513
|
-
if (
|
|
514
|
-
if (
|
|
515
|
-
t.preventDefault(),
|
|
518
|
+
if (r()) {
|
|
519
|
+
if (F(t, "Escape")) {
|
|
520
|
+
t.preventDefault(), y();
|
|
516
521
|
return;
|
|
517
522
|
}
|
|
518
|
-
if (
|
|
519
|
-
const
|
|
523
|
+
if (F(t, "ArrowLeft") || F(t, "ArrowRight")) {
|
|
524
|
+
const c = _(), b = c.findIndex((L) => {
|
|
520
525
|
var E;
|
|
521
|
-
return
|
|
526
|
+
return L.id === ((E = r()) == null ? void 0 : E.groupId);
|
|
522
527
|
});
|
|
523
|
-
if (
|
|
524
|
-
const
|
|
525
|
-
|
|
528
|
+
if (b === -1) return;
|
|
529
|
+
const x = F(t, "ArrowRight") ? (b + 1) % c.length : (b - 1 + c.length) % c.length, A = c[x];
|
|
530
|
+
A && (t.preventDefault(), S(A.id));
|
|
526
531
|
}
|
|
527
532
|
}
|
|
528
|
-
},
|
|
529
|
-
t.altKey &&
|
|
530
|
-
},
|
|
531
|
-
t.altKey ||
|
|
533
|
+
}, ee = (t) => {
|
|
534
|
+
t.altKey && u(!0);
|
|
535
|
+
}, Y = (t) => {
|
|
536
|
+
t.altKey || u(!1);
|
|
532
537
|
};
|
|
533
|
-
let
|
|
534
|
-
|
|
535
|
-
const t =
|
|
536
|
-
if (
|
|
537
|
-
const o =
|
|
538
|
-
o && queueMicrotask(() =>
|
|
538
|
+
let D = null;
|
|
539
|
+
se(() => {
|
|
540
|
+
const t = Le(d);
|
|
541
|
+
if (D = t, t.addEventListener("pointerdown", B), t.addEventListener("keydown", Q), t.addEventListener("keydown", ee), t.addEventListener("keyup", Y), n.autoOpenFirst) {
|
|
542
|
+
const o = _()[0];
|
|
543
|
+
o && queueMicrotask(() => S(o.id));
|
|
539
544
|
}
|
|
540
|
-
}),
|
|
541
|
-
const t =
|
|
542
|
-
t && (t.removeEventListener("pointerdown",
|
|
545
|
+
}), le(() => {
|
|
546
|
+
const t = D;
|
|
547
|
+
t && (t.removeEventListener("pointerdown", B), t.removeEventListener("keydown", Q), t.removeEventListener("keydown", ee), t.removeEventListener("keyup", Y), D = null), u(!1);
|
|
543
548
|
});
|
|
544
|
-
const
|
|
545
|
-
const t =
|
|
546
|
-
return t ?
|
|
547
|
-
}),
|
|
548
|
-
const t = [], o = (
|
|
549
|
-
for (const
|
|
550
|
-
if (
|
|
551
|
-
if (
|
|
552
|
-
const E =
|
|
553
|
-
o(E.items,
|
|
549
|
+
const z = V(() => {
|
|
550
|
+
const t = r();
|
|
551
|
+
return t ? _().find((o) => o.id === t.groupId) ?? null : null;
|
|
552
|
+
}), N = () => {
|
|
553
|
+
const t = [], o = (c, b) => {
|
|
554
|
+
for (const x of c) {
|
|
555
|
+
if (x.kind === "separator") continue;
|
|
556
|
+
if (x.kind === "submenu") {
|
|
557
|
+
const E = x, H = b ? `${b} → ${E.label}` : E.label;
|
|
558
|
+
o(E.items, H);
|
|
554
559
|
continue;
|
|
555
560
|
}
|
|
556
|
-
const
|
|
557
|
-
...
|
|
558
|
-
label:
|
|
561
|
+
const A = x, L = {
|
|
562
|
+
...A,
|
|
563
|
+
label: b ? `${b} → ${A.label}` : A.label
|
|
559
564
|
};
|
|
560
|
-
t.push(
|
|
565
|
+
t.push(L);
|
|
561
566
|
}
|
|
562
567
|
};
|
|
563
|
-
for (const
|
|
564
|
-
o(
|
|
568
|
+
for (const c of _())
|
|
569
|
+
o(c.items, c.label);
|
|
565
570
|
return t;
|
|
566
571
|
};
|
|
567
572
|
return [(() => {
|
|
568
|
-
var t =
|
|
569
|
-
return t.$$focusout = (o) => k.forget(o.relatedTarget), t.$$focusin = (o) => k.remember(o.relatedTarget),
|
|
573
|
+
var t = ut();
|
|
574
|
+
return t.$$focusout = (o) => k.forget(o.relatedTarget), t.$$focusin = (o) => k.remember(o.relatedTarget), ie((o) => d = o, t), p(t, m(he, {
|
|
570
575
|
get each() {
|
|
571
|
-
return
|
|
576
|
+
return _();
|
|
572
577
|
},
|
|
573
|
-
children: (o) =>
|
|
574
|
-
ref: (
|
|
575
|
-
|
|
578
|
+
children: (o) => m(U, {
|
|
579
|
+
ref: (c) => {
|
|
580
|
+
c ? g.set(o.id, c) : g.delete(o.id);
|
|
576
581
|
},
|
|
577
582
|
type: "button",
|
|
578
583
|
get class() {
|
|
579
|
-
var
|
|
580
|
-
return `${
|
|
584
|
+
var c;
|
|
585
|
+
return `${w.trigger} ${((c = r()) == null ? void 0 : c.groupId) === o.id ? w.triggerActive : ""}`;
|
|
581
586
|
},
|
|
582
587
|
role: "menuitem",
|
|
583
588
|
"aria-haspopup": "menu",
|
|
584
589
|
get "aria-expanded"() {
|
|
585
|
-
var
|
|
586
|
-
return ((
|
|
590
|
+
var c;
|
|
591
|
+
return ((c = r()) == null ? void 0 : c.groupId) === o.id;
|
|
587
592
|
},
|
|
588
593
|
get "aria-keyshortcuts"() {
|
|
589
594
|
return `Alt+${M(o)}`;
|
|
590
595
|
},
|
|
591
596
|
onClick: () => q(o.id),
|
|
592
|
-
onMouseEnter: () =>
|
|
597
|
+
onMouseEnter: () => G(o.id),
|
|
593
598
|
get children() {
|
|
594
|
-
return
|
|
599
|
+
return v(o);
|
|
595
600
|
}
|
|
596
601
|
})
|
|
597
|
-
})),
|
|
598
|
-
var
|
|
599
|
-
return
|
|
602
|
+
})), C((o) => {
|
|
603
|
+
var c = `${w.bar} ${n.class ?? ""}`, b = f() ? "true" : void 0;
|
|
604
|
+
return c !== o.e && I(t, o.e = c), b !== o.t && ke(t, "data-show-mnemonics", o.t = b), o;
|
|
600
605
|
}, {
|
|
601
606
|
e: void 0,
|
|
602
607
|
t: void 0
|
|
603
608
|
}), t;
|
|
604
|
-
})(),
|
|
609
|
+
})(), m(P, {
|
|
605
610
|
get when() {
|
|
606
|
-
return
|
|
611
|
+
return O(() => !!z())() && r();
|
|
607
612
|
},
|
|
608
613
|
get children() {
|
|
609
614
|
return (() => {
|
|
610
|
-
const t =
|
|
615
|
+
const t = z(), o = r();
|
|
611
616
|
if (!t || !o) return null;
|
|
612
|
-
const
|
|
613
|
-
return
|
|
617
|
+
const c = t.searchScope ?? "none";
|
|
618
|
+
return m(ve, _e({
|
|
614
619
|
get items() {
|
|
615
620
|
return t.items;
|
|
616
621
|
},
|
|
@@ -620,119 +625,188 @@ function St(n) {
|
|
|
620
625
|
top: o.top
|
|
621
626
|
};
|
|
622
627
|
},
|
|
623
|
-
onClose:
|
|
624
|
-
searchScope:
|
|
625
|
-
},
|
|
626
|
-
globalEntries:
|
|
628
|
+
onClose: y,
|
|
629
|
+
searchScope: c
|
|
630
|
+
}, c === "global" ? {
|
|
631
|
+
globalEntries: N
|
|
627
632
|
} : {}));
|
|
628
633
|
})();
|
|
629
634
|
}
|
|
630
635
|
})];
|
|
631
636
|
}
|
|
632
|
-
|
|
633
|
-
const
|
|
634
|
-
windowControls:
|
|
635
|
-
windowControlButton:
|
|
636
|
-
windowControlClose:
|
|
637
|
+
fe(["focusin", "focusout"]);
|
|
638
|
+
const dt = "vk_windowControls_UUBWX", ft = "vk_windowControlButton_ohJen", ht = "vk_windowControlClose_3PPrC", Z = {
|
|
639
|
+
windowControls: dt,
|
|
640
|
+
windowControlButton: ft,
|
|
641
|
+
windowControlClose: ht
|
|
637
642
|
};
|
|
638
|
-
var
|
|
639
|
-
function
|
|
640
|
-
var
|
|
641
|
-
const
|
|
642
|
-
return /Mac OS X|Macintosh/i.test(
|
|
643
|
+
var mt = /* @__PURE__ */ $('<svg width=10 height=1 viewBox="0 0 10 1"><rect width=10 height=1 fill=currentColor>'), vt = /* @__PURE__ */ $('<svg width=10 height=10 viewBox="0 0 10 10"><path d="M0 2a2 2 0 012-2h6a2 2 0 012 2v6a2 2 0 01-2 2H2a2 2 0 01-2-2V2zm1 0v6a1 1 0 001 1h6a1 1 0 001-1V2a1 1 0 00-1-1H2a1 1 0 00-1 1z"fill=currentColor>'), wt = /* @__PURE__ */ $('<svg width=10 height=10 viewBox="0 0 10 10"><path d="M1.293.293a1 1 0 011.414 0L5 2.586 7.293.293a1 1 0 111.414 1.414L6.414 4l2.293 2.293a1 1 0 01-1.414 1.414L5 5.414 2.707 7.707a1 1 0 01-1.414-1.414L3.586 4 1.293 1.707a1 1 0 010-1.414z"fill=currentColor>'), gt = /* @__PURE__ */ $("<div>"), bt = /* @__PURE__ */ $('<svg width=10 height=10 viewBox="0 0 10 10"><path d="M4 0h4a2 2 0 012 2v4a2 2 0 01-2 2h-1v-1h1a1 1 0 001-1V2a1 1 0 00-1-1H4a1 1 0 00-1 1v1H2V2a2 2 0 012-2z"fill=currentColor></path><path d="M0 4a2 2 0 012-2h4a2 2 0 012 2v4a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm1 0v4a1 1 0 001 1h4a1 1 0 001-1V4a1 1 0 00-1-1H2a1 1 0 00-1 1z"fill=currentColor>');
|
|
644
|
+
function kt(n) {
|
|
645
|
+
var l;
|
|
646
|
+
const r = ((l = n.navigator) == null ? void 0 : l.userAgent) ?? "";
|
|
647
|
+
return /Mac OS X|Macintosh/i.test(r) ? "darwin" : /Windows/i.test(r) ? "win32" : "linux";
|
|
643
648
|
}
|
|
644
|
-
function
|
|
645
|
-
const
|
|
646
|
-
var
|
|
647
|
-
|
|
649
|
+
function Rt(n = {}) {
|
|
650
|
+
const r = Ce(), [l, f] = R(!1), d = (n.platform ?? kt(r.window)) === "darwin", g = async () => {
|
|
651
|
+
var v;
|
|
652
|
+
f(await ((v = n.isMaximized) == null ? void 0 : v.call(n)) ?? !1);
|
|
648
653
|
};
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}),
|
|
652
|
-
|
|
654
|
+
se(() => {
|
|
655
|
+
g(), r.window.addEventListener("resize", g);
|
|
656
|
+
}), le(() => {
|
|
657
|
+
r.window.removeEventListener("resize", g);
|
|
653
658
|
});
|
|
654
659
|
const k = () => {
|
|
655
|
-
var
|
|
656
|
-
return void ((
|
|
657
|
-
},
|
|
658
|
-
var
|
|
659
|
-
await ((
|
|
660
|
+
var v;
|
|
661
|
+
return void ((v = n.onMinimize) == null ? void 0 : v.call(n));
|
|
662
|
+
}, _ = async () => {
|
|
663
|
+
var v;
|
|
664
|
+
await ((v = n.onToggleMaximize) == null ? void 0 : v.call(n)), await g();
|
|
660
665
|
}, M = () => {
|
|
661
|
-
var
|
|
662
|
-
n.beforeClose && !n.beforeClose() || (
|
|
666
|
+
var v;
|
|
667
|
+
n.beforeClose && !n.beforeClose() || (v = n.onClose) == null || v.call(n);
|
|
663
668
|
};
|
|
664
|
-
return
|
|
665
|
-
when: !
|
|
669
|
+
return m(P, {
|
|
670
|
+
when: !d,
|
|
666
671
|
get children() {
|
|
667
|
-
var
|
|
668
|
-
return
|
|
672
|
+
var v = gt();
|
|
673
|
+
return p(v, m(U, {
|
|
669
674
|
type: "button",
|
|
670
675
|
get class() {
|
|
671
|
-
return
|
|
676
|
+
return Z.windowControlButton;
|
|
672
677
|
},
|
|
673
678
|
onClick: k,
|
|
674
679
|
get "aria-label"() {
|
|
675
|
-
return
|
|
680
|
+
return T("Minimize");
|
|
676
681
|
},
|
|
677
682
|
get title() {
|
|
678
|
-
return
|
|
683
|
+
return T("Minimize");
|
|
679
684
|
},
|
|
680
685
|
get children() {
|
|
681
|
-
return
|
|
686
|
+
return mt();
|
|
682
687
|
}
|
|
683
|
-
}), null),
|
|
688
|
+
}), null), p(v, m(U, {
|
|
684
689
|
type: "button",
|
|
685
690
|
get class() {
|
|
686
|
-
return
|
|
691
|
+
return Z.windowControlButton;
|
|
687
692
|
},
|
|
688
|
-
onClick:
|
|
693
|
+
onClick: _,
|
|
689
694
|
get "aria-label"() {
|
|
690
|
-
return
|
|
695
|
+
return O(() => !!l())() ? T("Restore") : T("Maximize");
|
|
691
696
|
},
|
|
692
697
|
get title() {
|
|
693
|
-
return
|
|
698
|
+
return O(() => !!l())() ? T("Restore") : T("Maximize");
|
|
694
699
|
},
|
|
695
700
|
get children() {
|
|
696
|
-
return
|
|
701
|
+
return m(P, {
|
|
697
702
|
get when() {
|
|
698
|
-
return !
|
|
703
|
+
return !l();
|
|
699
704
|
},
|
|
700
705
|
get fallback() {
|
|
701
|
-
return
|
|
706
|
+
return bt();
|
|
702
707
|
},
|
|
703
708
|
get children() {
|
|
704
|
-
return
|
|
709
|
+
return vt();
|
|
705
710
|
}
|
|
706
711
|
});
|
|
707
712
|
}
|
|
708
|
-
}), null),
|
|
713
|
+
}), null), p(v, m(U, {
|
|
709
714
|
type: "button",
|
|
710
715
|
get class() {
|
|
711
|
-
return `${
|
|
716
|
+
return `${Z.windowControlButton} ${Z.windowControlClose}`;
|
|
712
717
|
},
|
|
713
718
|
onClick: M,
|
|
714
719
|
get "aria-label"() {
|
|
715
|
-
return
|
|
720
|
+
return T("Close");
|
|
716
721
|
},
|
|
717
722
|
get title() {
|
|
718
|
-
return
|
|
723
|
+
return T("Close");
|
|
719
724
|
},
|
|
720
725
|
get children() {
|
|
721
|
-
return
|
|
726
|
+
return wt();
|
|
722
727
|
}
|
|
723
|
-
}), null),
|
|
728
|
+
}), null), C(() => I(v, Z.windowControls)), v;
|
|
724
729
|
}
|
|
725
730
|
});
|
|
726
731
|
}
|
|
732
|
+
const Ft = {
|
|
733
|
+
onFocusChanged: () => ({ dispose: () => {
|
|
734
|
+
} }),
|
|
735
|
+
getFocusState: () => Promise.resolve({ revision: 0, focusedWindowId: null }),
|
|
736
|
+
hostWindowId: () => null
|
|
737
|
+
};
|
|
738
|
+
class Ot {
|
|
739
|
+
constructor(r, l) {
|
|
740
|
+
W(this, "hosts", []);
|
|
741
|
+
W(this, "ownerWindow");
|
|
742
|
+
W(this, "setOwnerWindow");
|
|
743
|
+
W(this, "nativeIds", /* @__PURE__ */ new WeakMap());
|
|
744
|
+
W(this, "focusSubscription");
|
|
745
|
+
W(this, "pendingRefresh");
|
|
746
|
+
W(this, "focusedNativeWindowId", null);
|
|
747
|
+
W(this, "mainNativeWindowId", 0);
|
|
748
|
+
W(this, "nativeFocusRevision", 0);
|
|
749
|
+
this.source = r, this.log = l;
|
|
750
|
+
const [f, u] = R(null);
|
|
751
|
+
this.ownerWindow = f, this.setOwnerWindow = u, this.focusSubscription = r.onFocusChanged((d) => {
|
|
752
|
+
d.revision < this.nativeFocusRevision || (this.nativeFocusRevision = d.revision, this.focusedNativeWindowId = d.focusedWindowId, this.scheduleRefresh());
|
|
753
|
+
}), r.getFocusState().then(
|
|
754
|
+
(d) => {
|
|
755
|
+
d.windowId && (this.mainNativeWindowId = d.windowId), !(d.revision < this.nativeFocusRevision) && (this.nativeFocusRevision = d.revision, this.focusedNativeWindowId = d.focusedWindowId, this.scheduleRefresh());
|
|
756
|
+
},
|
|
757
|
+
(d) => l.warn("native focus state could not be read; DOM focus decides the display owner", d)
|
|
758
|
+
);
|
|
759
|
+
}
|
|
760
|
+
register(r) {
|
|
761
|
+
let l = this.hosts.find((d) => d.win === r);
|
|
762
|
+
l ? l.references++ : (l = { win: r, references: 1, onFocusChange: () => this.scheduleRefresh() }, this.hosts.push(l), r.addEventListener("focus", l.onFocusChange), r.addEventListener("blur", l.onFocusChange), this.resolveNativeId(r)), this.setOwnerWindow(() => this.resolveOwner());
|
|
763
|
+
const f = l;
|
|
764
|
+
let u = !1;
|
|
765
|
+
return {
|
|
766
|
+
ownsDisplay: () => this.ownerWindow() === r,
|
|
767
|
+
dispose: () => {
|
|
768
|
+
u || (u = !0, f.references--, f.references === 0 && (r.removeEventListener("focus", f.onFocusChange), r.removeEventListener("blur", f.onFocusChange), this.hosts.splice(this.hosts.indexOf(f), 1)), this.hosts.length === 0 && this.cancelRefresh(), this.setOwnerWindow(() => this.resolveOwner()));
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
dispose() {
|
|
773
|
+
this.cancelRefresh(), this.focusSubscription.dispose();
|
|
774
|
+
}
|
|
775
|
+
resolveNativeId(r) {
|
|
776
|
+
const l = this.source.hostWindowId(r);
|
|
777
|
+
l !== null && l.then(
|
|
778
|
+
(f) => {
|
|
779
|
+
f !== null && (this.nativeIds.set(r, f), this.scheduleRefresh());
|
|
780
|
+
},
|
|
781
|
+
(f) => this.log.warn("window id could not be read; the display owner stays unresolved", f)
|
|
782
|
+
);
|
|
783
|
+
}
|
|
784
|
+
isWindowFocused(r) {
|
|
785
|
+
var l;
|
|
786
|
+
return this.focusedNativeWindowId === null ? !!((l = r.document) != null && l.hasFocus()) : r === $e().window ? this.mainNativeWindowId !== 0 && this.focusedNativeWindowId === this.mainNativeWindowId : this.nativeIds.get(r) === this.focusedNativeWindowId;
|
|
787
|
+
}
|
|
788
|
+
resolveOwner() {
|
|
789
|
+
var l, f;
|
|
790
|
+
const r = this.hosts.filter(({ win: u }) => !u.closed);
|
|
791
|
+
return ((l = r.find(({ win: u }) => this.isWindowFocused(u))) == null ? void 0 : l.win) ?? ((f = r[0]) == null ? void 0 : f.win) ?? null;
|
|
792
|
+
}
|
|
793
|
+
scheduleRefresh() {
|
|
794
|
+
this.pendingRefresh === void 0 && (this.pendingRefresh = setTimeout(() => {
|
|
795
|
+
this.pendingRefresh = void 0, this.setOwnerWindow(() => this.resolveOwner());
|
|
796
|
+
}, 0));
|
|
797
|
+
}
|
|
798
|
+
cancelRefresh() {
|
|
799
|
+
this.pendingRefresh !== void 0 && (clearTimeout(this.pendingRefresh), this.pendingRefresh = void 0);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
727
802
|
export {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
ke as useHostWindow
|
|
803
|
+
Ot as DisplayOwnerService,
|
|
804
|
+
Nt as HostWindowProvider,
|
|
805
|
+
Dt as MenuBar,
|
|
806
|
+
ve as MenuPanel,
|
|
807
|
+
Rt as WindowControls,
|
|
808
|
+
Ft as domDisplayFocusSource,
|
|
809
|
+
Vt as registerMenuActionIds,
|
|
810
|
+
Ht as useHostDocument,
|
|
811
|
+
Ce as useHostWindow
|
|
738
812
|
};
|