@vokril/ui-solid 0.29.0 → 0.32.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 +121 -0
- package/README.md +90 -0
- package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
- package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
- package/dist/Button-CX7mylBT.js +308 -0
- package/dist/Button-lMUW5P3O.cjs +1 -0
- package/dist/CommandPalette-DAR9VMqY.cjs +2 -0
- package/dist/CommandPalette-DlLcdd4o.js +4029 -0
- package/dist/CopyButton-BVvv5M8g.js +63 -0
- package/dist/CopyButton-Dnd8_2Lj.cjs +1 -0
- package/dist/DateRangePicker-BlJWtJBA.cjs +9 -0
- package/dist/DateRangePicker-CHmUU4PA.js +552 -0
- package/dist/GuidedTour-9rqvNB_m.js +483 -0
- package/dist/GuidedTour-DbXeuTc7.cjs +1 -0
- package/dist/{HostPortal-CXGUUhP8.js → HostPortal-De65s6CU.js} +1 -1
- package/dist/HostPortal-Dm4BmY8M.cjs +1 -0
- package/dist/{IconPicker-DYqNi5ud.js → IconPicker-CsYW8CXe.js} +4 -4
- package/dist/IconPicker-D-GU1mD3.cjs +1 -0
- package/dist/Input-C3rEQffK.js +382 -0
- package/dist/Input-CHtvL4_4.cjs +1 -0
- package/dist/Modal-3L6p7Dwt.js +599 -0
- package/dist/Modal-CtrWEnJ7.cjs +1 -0
- package/dist/OverlayScrollArea-Cr0VAApT.cjs +1 -0
- package/dist/OverlayScrollArea-CrrPFLq9.js +180 -0
- package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-BRuqaDzr.js} +372 -371
- package/dist/PageSkeleton-Cz2bckO4.cjs +30 -0
- package/dist/Popover-CLTXG8W0.cjs +1 -0
- package/dist/Popover-DkqGvMNy.js +207 -0
- package/dist/SearchableSelect-C-lV1vSv.cjs +1 -0
- package/dist/SearchableSelect-Du12kcI9.js +328 -0
- package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +50 -0
- package/dist/{StatusBarNotificationBell-7Izs_msz.js → StatusBarNotificationBell-CgsYrrpj.js} +5205 -4850
- package/dist/Stepper-DzI-gtKd.js +586 -0
- package/dist/Stepper-rpu7lpzB.cjs +1 -0
- package/dist/{Textarea-CeAGf08O.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
- package/dist/{Textarea-B5QqqKnI.js → Textarea-DOzZCc-O.js} +1 -1
- package/dist/TimeSeriesChart-BJqQpeEJ.cjs +1 -0
- package/dist/TimeSeriesChart-DvAhuyVl.js +442 -0
- package/dist/ToggleButton-B-hBpdzk.js +2144 -0
- package/dist/ToggleButton-BMH1A-IX.cjs +1 -0
- package/dist/_internal/app/onboarding/pageTourState.d.cts +0 -2
- package/dist/_internal/app/onboarding/pageTourState.d.ts +0 -2
- package/dist/_internal/app/onboarding/pageTourTypes.d.cts +2 -1
- package/dist/_internal/app/onboarding/pageTourTypes.d.ts +2 -1
- package/dist/_internal/contract/notification.d.cts +28 -3
- package/dist/_internal/contract/notification.d.ts +28 -3
- package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
- package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
- package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
- package/dist/anchoredLayout-E0mqCWxk.js +233 -0
- package/dist/base.css +3 -3
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/context/DesktopContextMenuContext.d.cts +8 -1
- package/dist/context/DesktopContextMenuContext.d.ts +8 -1
- package/dist/createDialogShellFocus-DI1rUvYf.js +282 -0
- package/dist/createDialogShellFocus-kzkNSLWS.cjs +1 -0
- package/dist/createResizableSidebar--Ve6DbDu.js +504 -0
- package/dist/createResizableSidebar-DlVAuq5t.cjs +1 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +229 -228
- package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +4 -4
- package/dist/{focusModality-BISb6-yg.cjs → focusModality-D704CJVN.cjs} +1 -1
- package/dist/{focusModality-FoLPWF-_.js → focusModality-ROUF6YGR.js} +1 -1
- package/dist/forms/Input.d.cts +20 -0
- package/dist/forms/Input.d.ts +20 -0
- package/dist/forms/InputMessage.d.cts +19 -0
- package/dist/forms/InputMessage.d.ts +19 -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/host/index.cjs +1 -1
- package/dist/host/index.d.cts +1 -0
- package/dist/host/index.d.ts +1 -0
- package/dist/host/index.js +38 -39
- package/dist/host/kitHost.d.cts +8 -0
- package/dist/host/kitHost.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +936 -928
- package/dist/kitHost-BMMWpU4w.js +47 -0
- package/dist/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/layout/resizeCarry.d.cts +17 -0
- package/dist/layout/resizeCarry.d.ts +17 -0
- package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
- package/dist/mainRealmDom-DydRT2Us.js +54 -0
- package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
- package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notificationCatalog-CRERhjp6.js +168 -0
- package/dist/notificationCatalog-DqTkd7M6.cjs +1 -0
- package/dist/notifications/NotificationItem.d.cts +9 -0
- package/dist/notifications/NotificationItem.d.ts +9 -0
- package/dist/notifications/NotificationsCenter.d.cts +18 -0
- package/dist/notifications/NotificationsCenter.d.ts +18 -0
- package/dist/notifications/RunningProgressCards.d.cts +3 -0
- package/dist/notifications/RunningProgressCards.d.ts +3 -0
- package/dist/notifications/fireNotification.d.cts +35 -16
- package/dist/notifications/fireNotification.d.ts +35 -16
- package/dist/notifications/holdWhileShown.d.cts +18 -0
- package/dist/notifications/holdWhileShown.d.ts +18 -0
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +55 -52
- package/dist/notifications/nativeEngine.d.cts +38 -5
- package/dist/notifications/nativeEngine.d.ts +38 -5
- package/dist/notifications/notificationEntryList.d.cts +104 -0
- package/dist/notifications/notificationEntryList.d.ts +104 -0
- package/dist/notifications/notificationService.d.cts +23 -2
- package/dist/notifications/notificationService.d.ts +23 -2
- package/dist/notifications/toast.d.cts +3 -0
- package/dist/notifications/toast.d.ts +3 -0
- package/dist/notifications/toastCorner.d.cts +8 -0
- package/dist/notifications/toastCorner.d.ts +8 -0
- package/dist/notifications/toastFilterPolicy.d.cts +33 -1
- package/dist/notifications/toastFilterPolicy.d.ts +33 -1
- package/dist/overlay/Modal.d.cts +19 -0
- package/dist/overlay/Modal.d.ts +19 -0
- package/dist/overlay/backgroundInert.d.cts +6 -2
- package/dist/overlay/backgroundInert.d.ts +6 -2
- package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
- package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -1
- package/dist/overlay/index.d.ts +2 -1
- package/dist/overlay/index.js +80 -75
- package/dist/overlay/modalDefaults.d.cts +23 -0
- package/dist/overlay/modalDefaults.d.ts +23 -0
- package/dist/overlay/modalViewport.d.cts +16 -2
- package/dist/overlay/modalViewport.d.ts +16 -2
- package/dist/overlay/nativeTitleHold.d.cts +24 -0
- package/dist/overlay/nativeTitleHold.d.ts +24 -0
- package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
- package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
- package/dist/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/rowSource-BRGZHclZ.js +1231 -0
- package/dist/rowSource-C3zlzAtR.cjs +1 -0
- package/dist/server/AttributeGrid-B9j_c2wM.js +281 -0
- package/dist/server/AttributeGrid-BALCTvOI.cjs +1 -0
- package/dist/server/Button-DHefmmYz.cjs +1 -0
- package/dist/server/Button-ft_8RNJj.js +226 -0
- package/dist/server/CommandPalette-CHdfYtxs.js +3305 -0
- package/dist/server/CommandPalette-D0Prl7by.cjs +1 -0
- package/dist/server/CopyButton-CiYcsQcI.js +64 -0
- package/dist/server/CopyButton-D2q7tQ0m.cjs +1 -0
- package/dist/server/DateRangePicker-C6wZI7No.js +487 -0
- package/dist/server/DateRangePicker-CF70G2yr.cjs +9 -0
- package/dist/server/GuidedTour-BmDAWNfN.cjs +1 -0
- package/dist/server/GuidedTour-DYBhprVK.js +400 -0
- package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4xdfRyM.js} +1 -1
- package/dist/server/HostPortal-CwyePpDX.cjs +1 -0
- package/dist/server/{IconPicker-B4aXspLw.js → IconPicker--Xso9fUf.js} +5 -5
- package/dist/server/IconPicker-BTI4cNgf.cjs +1 -0
- package/dist/server/Input-UX0Hk53M.cjs +1 -0
- package/dist/server/Input-V9Szcw6w.js +249 -0
- package/dist/server/Modal-CBnNlaTx.cjs +1 -0
- package/dist/server/Modal-D9CjieKK.js +426 -0
- package/dist/server/OverlayScrollArea-DuwGRSMm.cjs +1 -0
- package/dist/server/OverlayScrollArea-h6G3yk6U.js +66 -0
- package/dist/server/{PageSkeleton-DoxlE_bD.js → PageSkeleton-CFs7AdTA.js} +267 -266
- package/dist/server/PageSkeleton-D0KOKLsb.cjs +30 -0
- package/dist/server/Popover-BBDBIpT6.cjs +1 -0
- package/dist/server/Popover-e9JpRh11.js +439 -0
- package/dist/server/SearchableSelect-B2ZFnp6i.js +205 -0
- package/dist/server/SearchableSelect-BBu5cP6P.cjs +1 -0
- package/dist/server/{StatusBarNotificationBell-D8Jt3PXI.js → StatusBarNotificationBell-CJJFE4rf.js} +5043 -4698
- package/dist/server/StatusBarNotificationBell-Cxs_bVKX.cjs +49 -0
- package/dist/server/Stepper-C04rOZcI.cjs +1 -0
- package/dist/server/Stepper-CVAOsf3o.js +381 -0
- package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-BG6F8taO.cjs} +1 -1
- package/dist/server/{Textarea-BTH48NET.js → Textarea-DM4zpgWo.js} +1 -1
- package/dist/server/TimeSeriesChart-kuuqH7we.js +242 -0
- package/dist/server/TimeSeriesChart-tWbSF6fJ.cjs +1 -0
- package/dist/server/ToggleButton-BdqufQ7G.js +1344 -0
- package/dist/server/ToggleButton-Bo24NK3o.cjs +1 -0
- package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
- package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/createDialogShellFocus-DvoNWpIu.cjs +1 -0
- package/dist/server/createDialogShellFocus-J8wqPlsa.js +370 -0
- package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-CIrhLNKW.js} +104 -102
- package/dist/server/createResizableSidebar-DcZ2Cnpf.cjs +1 -0
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +154 -153
- package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +4 -4
- package/dist/server/{focusModality-nWNVX3JG.js → focusModality-Bu4Kuwm4.js} +1 -1
- package/dist/server/{focusModality-D-nxv8Er.cjs → focusModality-G2i60_7y.cjs} +1 -1
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +9 -9
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +38 -39
- package/dist/server/{index-UIjsx3oJ.js → index-CPUZyKo7.js} +3604 -3617
- package/dist/server/index-CVbkasNJ.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +656 -649
- package/dist/server/kitHost-BMMWpU4w.js +47 -0
- package/dist/server/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/mainRealmDom-BuGEeM_r.cjs +1 -0
- package/dist/server/{EmptyState-Csydyy_7.js → mainRealmDom-CzckS_ss.js} +12 -8
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notificationCatalog-CEDltsJS.cjs +1 -0
- package/dist/server/notificationCatalog-Cl1dH4aJ.js +122 -0
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +55 -52
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +72 -68
- package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/server/{pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/server/rowSource-C1F4l0xZ.cjs +1 -0
- package/dist/server/rowSource-CoeHYNsV.js +1123 -0
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +29 -26
- package/dist/server/tokens/palette/index.cjs +1 -0
- package/dist/server/tokens/palette/index.js +31 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
- package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
- package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
- package/dist/solid/desktop/WindowControls.jsx +6 -3
- package/dist/solid/feedback/Badge.jsx +12 -19
- package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
- package/dist/solid/forms/Button.jsx +18 -23
- package/dist/solid/forms/Checkbox.jsx +5 -4
- package/dist/solid/forms/Combobox.jsx +12 -10
- package/dist/solid/forms/CopyButton.jsx +7 -4
- package/dist/solid/forms/DatePicker.jsx +12 -7
- package/dist/solid/forms/Dropzone.jsx +17 -13
- package/dist/solid/forms/FilePickerButton.jsx +5 -4
- package/dist/solid/forms/HiddenFileInput.jsx +3 -1
- package/dist/solid/forms/Input.jsx +31 -5
- package/dist/solid/forms/Input.module.css.js +1 -0
- package/dist/solid/forms/InputMessage.jsx +87 -0
- package/dist/solid/forms/MultiSearchableSelect.jsx +8 -7
- package/dist/solid/forms/NumberInput.jsx +25 -19
- package/dist/solid/forms/Picker.jsx +8 -6
- package/dist/solid/forms/PressableSurface.jsx +17 -23
- package/dist/solid/forms/RadioGroup.jsx +4 -3
- package/dist/solid/forms/SearchInput.jsx +4 -3
- package/dist/solid/forms/SearchableSelect.jsx +4 -3
- package/dist/solid/forms/SegmentedControl.jsx +4 -3
- package/dist/solid/forms/TagInput.jsx +22 -16
- package/dist/solid/forms/ToggleButton.jsx +4 -3
- package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +12 -10
- package/dist/solid/grid/Pagination.jsx +7 -3
- package/dist/solid/host/kitHost.jsx +5 -1
- package/dist/solid/layout/PageHeaderIcon.jsx +11 -9
- package/dist/solid/layout/ResizableSplitPane.jsx +4 -4
- package/dist/solid/layout/ResizeHandle.jsx +15 -4
- package/dist/solid/layout/resizeCarry.js +31 -0
- package/dist/solid/navigation/Accordion.jsx +8 -5
- package/dist/solid/navigation/Tabs.jsx +11 -8
- package/dist/solid/notifications/NotificationHost.jsx +5 -18
- package/dist/solid/notifications/NotificationItem.jsx +62 -58
- package/dist/solid/notifications/NotificationPanel.jsx +27 -9
- package/dist/solid/notifications/NotificationsCenter.jsx +72 -12
- package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +12 -6
- package/dist/solid/notifications/catalogAdapter.js +1 -0
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
- package/dist/solid/notifications/fireNotification.js +21 -16
- package/dist/solid/notifications/holdWhileShown.js +30 -0
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/nativeEngine.js +52 -1
- package/dist/solid/notifications/notificationEntryList.js +184 -0
- package/dist/solid/notifications/notificationService.js +20 -4
- package/dist/solid/notifications/toast.js +58 -7
- package/dist/solid/notifications/toastCorner.js +3 -0
- package/dist/solid/notifications/toastFilterPolicy.js +12 -0
- package/dist/solid/overlay/ConfirmDialog.jsx +21 -16
- package/dist/solid/overlay/DangerousActionDialogParts.jsx +5 -3
- package/dist/solid/overlay/Disclosure.jsx +4 -3
- package/dist/solid/overlay/Drawer.jsx +2 -1
- package/dist/solid/overlay/DropdownMenu.jsx +6 -4
- package/dist/solid/overlay/FloatingWindow.jsx +3 -3
- package/dist/solid/overlay/HoverTooltip.jsx +9 -7
- package/dist/solid/overlay/Modal.jsx +81 -34
- package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
- package/dist/solid/overlay/Tooltip.jsx +5 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +11 -11
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +73 -57
- package/dist/solid/overlay/index.js +2 -1
- package/dist/solid/overlay/menu/MenuParts.jsx +11 -8
- package/dist/solid/overlay/modalDefaults.jsx +10 -0
- package/dist/solid/overlay/modalViewport.js +17 -4
- package/dist/solid/overlay/nativeTitleHold.js +33 -0
- package/dist/solid/overlay/popover/Popover.jsx +17 -11
- package/dist/solid/overlay/tooltipDirective.js +3 -11
- package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
- package/dist/solid/tokens/index.js +1 -0
- package/dist/solid/tokens/palette/index.js +1 -0
- package/dist/solid/tokens/palette/paletteContract.js +27 -0
- package/dist/solid/tree/TreeRow.jsx +19 -16
- package/dist/solid/tree/TreeSurface.jsx +15 -14
- package/dist/solid/widgets/SettingsField.jsx +11 -10
- package/dist/style.css +4 -3
- package/dist/theme.css +3 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +29 -26
- package/dist/tokens/palette/index.cjs +1 -0
- package/dist/tokens/palette/index.d.cts +12 -0
- package/dist/tokens/palette/index.d.ts +12 -0
- package/dist/tokens/palette/index.js +31 -0
- package/dist/tokens/palette/paletteContract.d.cts +17 -0
- package/dist/tokens/palette/paletteContract.d.ts +17 -0
- package/dist/tokens/tokens.css +3 -2
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +25 -1
- package/dist/AttributeGrid-CASILa4u.js +0 -320
- package/dist/AttributeGrid-eND8YDby.cjs +0 -1
- package/dist/Button-Bb68ymNP.cjs +0 -1
- package/dist/Button-D-T0tyGF.js +0 -305
- package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
- package/dist/CommandPalette-Cj618AOz.js +0 -4017
- package/dist/CopyButton-B5gS2ft3.cjs +0 -1
- package/dist/CopyButton-g-WSiBDZ.js +0 -63
- package/dist/DateRangePicker-CJD9ADgB.js +0 -550
- package/dist/DateRangePicker-Frc0HVxp.cjs +0 -9
- package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
- package/dist/EmptyState-Dph6HU74.js +0 -50
- package/dist/GuidedTour-B6q7lYhn.cjs +0 -1
- package/dist/GuidedTour-CFCvRJN4.js +0 -483
- package/dist/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/IconPicker-CIbJb1ei.cjs +0 -1
- package/dist/Input-CZruORyy.cjs +0 -1
- package/dist/Input-DkPhsdfk.js +0 -227
- package/dist/Modal-CY6ePolt.cjs +0 -1
- package/dist/Modal-NzZzHSwb.js +0 -559
- package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
- package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
- package/dist/PageSkeleton-BPbb28-H.cjs +0 -30
- package/dist/Popover-CWrR51eG.cjs +0 -1
- package/dist/Popover-Cttb6NYT.js +0 -206
- package/dist/SearchableSelect-BvCm4enQ.js +0 -327
- package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
- package/dist/StatusBarNotificationBell-BJiORN4s.cjs +0 -50
- package/dist/Stepper-Ci5JpLbS.cjs +0 -1
- package/dist/Stepper-D9i1Xclm.js +0 -583
- package/dist/TimeSeriesChart-DOwi2lJs.js +0 -441
- package/dist/TimeSeriesChart-huvheefm.cjs +0 -1
- package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
- package/dist/ToggleButton-CFM8P3JY.js +0 -2137
- package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
- package/dist/anchoredLayout-FC-qv8xm.js +0 -250
- package/dist/createDialogShellFocus-B4piXDU4.js +0 -282
- package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
- package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
- package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
- package/dist/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/kitHost-BfJExE1G.cjs +0 -1
- package/dist/kitHost-CVAEi9sF.js +0 -23
- package/dist/mainRealmDom-C12lr9lm.js +0 -171
- package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
- package/dist/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/rowSource-D__7o4h0.js +0 -1230
- package/dist/rowSource-DiwTu_r8.cjs +0 -1
- package/dist/server/AttributeGrid-B7sb3btp.cjs +0 -1
- package/dist/server/AttributeGrid-CMi-UtWb.js +0 -281
- package/dist/server/Button-0AXWRw9Q.cjs +0 -1
- package/dist/server/Button-3yNrnn4P.js +0 -220
- package/dist/server/CommandPalette-CozogFlk.js +0 -3265
- package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
- package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
- package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
- package/dist/server/DateRangePicker-C35q8BTw.js +0 -484
- package/dist/server/DateRangePicker-KLZzyuPJ.cjs +0 -9
- package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
- package/dist/server/GuidedTour-DfV0yzqh.cjs +0 -1
- package/dist/server/GuidedTour-DmLbBttx.js +0 -400
- package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/server/IconPicker-B1soopAp.cjs +0 -1
- package/dist/server/Input-CjvD8w18.cjs +0 -1
- package/dist/server/Input-DaEN2JJd.js +0 -127
- package/dist/server/Modal-BheFQLs1.js +0 -415
- package/dist/server/Modal-BswxV8Pn.cjs +0 -1
- package/dist/server/OverlayScrollArea-221dfKyz.js +0 -65
- package/dist/server/OverlayScrollArea-D4e9D9Nd.cjs +0 -1
- package/dist/server/PageSkeleton-DBo7hQq-.cjs +0 -30
- package/dist/server/Popover-BsxIKBbl.cjs +0 -1
- package/dist/server/Popover-Cg28aPUZ.js +0 -439
- package/dist/server/SearchableSelect-09ECcDlB.cjs +0 -1
- package/dist/server/SearchableSelect-vjhS4c-H.js +0 -205
- package/dist/server/StatusBarNotificationBell-LJHLMT9F.cjs +0 -49
- package/dist/server/Stepper-DxNrskdq.cjs +0 -1
- package/dist/server/Stepper-n5f9r-ye.js +0 -375
- package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
- package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
- package/dist/server/ToggleButton-FywO2CCI.js +0 -1335
- package/dist/server/ToggleButton-TE3Xf2yD.cjs +0 -1
- package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
- package/dist/server/createDialogShellFocus-BFo8awdj.js +0 -369
- package/dist/server/createDialogShellFocus-BiBAZOCI.cjs +0 -1
- package/dist/server/createResizableSidebar-GFgZIj-5.cjs +0 -1
- package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/server/index-2mQPVEDR.cjs +0 -1
- package/dist/server/kitHost-BfJExE1G.cjs +0 -1
- package/dist/server/kitHost-CVAEi9sF.js +0 -23
- package/dist/server/mainRealmDom-DPNaDWtw.js +0 -121
- package/dist/server/mainRealmDom-DwZVMPnO.cjs +0 -1
- package/dist/server/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/server/rowSource-D-wcDmFU.js +0 -1122
- package/dist/server/rowSource-DltiY0o3.cjs +0 -1
- package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
- package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var a = (s, t, e) =>
|
|
4
|
-
import { o as
|
|
5
|
-
import { E as
|
|
6
|
-
import { i as
|
|
7
|
-
import { S as
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var y = (s, t, e) => t in s ? k(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var a = (s, t, e) => y(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { o as T, s as I, t as C } from "./errorHandler-BvPGW-Nm.js";
|
|
5
|
+
import { E as D } from "./electronBridge-BK92fycw.js";
|
|
6
|
+
import { i as O } from "./actions-wwAHs3ZU.js";
|
|
7
|
+
import { S as h, a as p } from "./stateDbStore-DHZFUIEt.js";
|
|
8
8
|
import { createSignal as R } from "solid-js";
|
|
9
9
|
import { a as L } from "./windowRegistry-DeGmXt6W.js";
|
|
10
|
-
import { i as
|
|
11
|
-
var
|
|
12
|
-
const
|
|
13
|
-
function
|
|
10
|
+
import { i as P } from "./isOneOf-Dtomuazg.js";
|
|
11
|
+
var i = /* @__PURE__ */ ((s) => (s[s.Off = 0] = "Off", s[s.Trace = 1] = "Trace", s[s.Debug = 2] = "Debug", s[s.Info = 3] = "Info", s[s.Warn = 4] = "Warn", s[s.Error = 5] = "Error", s[s.Audit = 6] = "Audit", s))(i || {});
|
|
12
|
+
const $ = 3;
|
|
13
|
+
function N(s, t) {
|
|
14
14
|
return t === 6 ? !0 : s === 0 ? !1 : s <= t;
|
|
15
15
|
}
|
|
16
|
-
class
|
|
16
|
+
class W {
|
|
17
17
|
constructor() {
|
|
18
18
|
a(this, "_store", /* @__PURE__ */ new Set());
|
|
19
19
|
a(this, "_isDisposed", !1);
|
|
@@ -31,18 +31,18 @@ class x {
|
|
|
31
31
|
try {
|
|
32
32
|
t.dispose();
|
|
33
33
|
} catch (e) {
|
|
34
|
-
|
|
34
|
+
T(e, { source: "dispose" });
|
|
35
35
|
}
|
|
36
36
|
this._store.clear();
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
class
|
|
41
|
-
constructor(e =
|
|
40
|
+
class x extends W {
|
|
41
|
+
constructor(e = $) {
|
|
42
42
|
super();
|
|
43
43
|
a(this, "_level");
|
|
44
44
|
a(this, "_onDidChangeLogLevel", this._register(
|
|
45
|
-
new
|
|
45
|
+
new D()
|
|
46
46
|
));
|
|
47
47
|
a(this, "onDidChangeLogLevel", this._onDidChangeLogLevel.event);
|
|
48
48
|
this._level = e;
|
|
@@ -54,17 +54,17 @@ class M extends x {
|
|
|
54
54
|
this._level !== e && (this._level = e, this._onDidChangeLogLevel.fire(e));
|
|
55
55
|
}
|
|
56
56
|
canLog(e) {
|
|
57
|
-
return
|
|
57
|
+
return N(this._level, e);
|
|
58
58
|
}
|
|
59
59
|
withTag(e) {
|
|
60
60
|
return this;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
const
|
|
64
|
-
function
|
|
65
|
-
return s ?
|
|
63
|
+
const E = "[REDACTED]";
|
|
64
|
+
function M(s) {
|
|
65
|
+
return s ? E : "";
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const U = [
|
|
68
68
|
"password",
|
|
69
69
|
"pass",
|
|
70
70
|
"pwd",
|
|
@@ -99,9 +99,9 @@ const j = [
|
|
|
99
99
|
"session_id",
|
|
100
100
|
"cookie",
|
|
101
101
|
"authorization"
|
|
102
|
-
],
|
|
103
|
-
|
|
104
|
-
),
|
|
102
|
+
], j = new Set(
|
|
103
|
+
U.map((s) => s.toLowerCase().replace(/[-_]/g, ""))
|
|
104
|
+
), F = [
|
|
105
105
|
/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/,
|
|
106
106
|
/sk-[A-Za-z0-9]{20,}/,
|
|
107
107
|
/AKIA[0-9A-Z]{16}/,
|
|
@@ -109,51 +109,51 @@ const j = [
|
|
|
109
109
|
/gho_[A-Za-z0-9]{36}/,
|
|
110
110
|
/xoxb-[0-9]+-[0-9]+-[A-Za-z0-9]+/
|
|
111
111
|
];
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function z(s) {
|
|
113
|
+
return j.has(s.toLowerCase().replace(/[-_]/g, ""));
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
for (const t of
|
|
115
|
+
function f(s) {
|
|
116
|
+
for (const t of F)
|
|
117
117
|
if (t.test(s))
|
|
118
|
-
return
|
|
118
|
+
return E;
|
|
119
119
|
return s;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function l(s) {
|
|
122
122
|
const t = {};
|
|
123
123
|
for (const [e, r] of Object.entries(s))
|
|
124
|
-
|
|
124
|
+
z(e) ? t[e] = typeof r == "string" ? M(r) : E : typeof r == "string" ? t[e] = f(r) : Array.isArray(r) ? t[e] = r.map((n) => typeof n == "string" ? f(n) : n && typeof n == "object" && !(n instanceof Error) && !(n instanceof Date) ? l(n) : n) : r && typeof r == "object" && !(r instanceof Error) && !(r instanceof Date) ? t[e] = l(r) : t[e] = r;
|
|
125
125
|
return t;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
127
|
+
function V(s) {
|
|
128
|
+
return I(f(s));
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return typeof s == "string" ?
|
|
130
|
+
function _(s) {
|
|
131
|
+
return typeof s == "string" ? f(s) : Array.isArray(s) ? s.map((t) => typeof t == "string" ? f(t) : t && typeof t == "object" && !(t instanceof Error) && !(t instanceof Date) ? l(t) : t) : s && typeof s == "object" && !(s instanceof Error) && !(s instanceof Date) ? l(s) : s;
|
|
132
132
|
}
|
|
133
|
-
class
|
|
133
|
+
class Z extends x {
|
|
134
134
|
constructor(t) {
|
|
135
135
|
super(t);
|
|
136
136
|
}
|
|
137
137
|
trace(t, ...e) {
|
|
138
|
-
this.canLog(
|
|
138
|
+
this.canLog(i.Trace) && this.log(i.Trace, u(t, e), e);
|
|
139
139
|
}
|
|
140
140
|
debug(t, ...e) {
|
|
141
|
-
this.canLog(
|
|
141
|
+
this.canLog(i.Debug) && this.log(i.Debug, u(t, e), e);
|
|
142
142
|
}
|
|
143
143
|
info(t, ...e) {
|
|
144
|
-
this.canLog(
|
|
144
|
+
this.canLog(i.Info) && this.log(i.Info, u(t, e), e);
|
|
145
145
|
}
|
|
146
146
|
warn(t, ...e) {
|
|
147
|
-
this.canLog(
|
|
147
|
+
this.canLog(i.Warn) && this.log(i.Warn, u(t, e), e);
|
|
148
148
|
}
|
|
149
149
|
error(t, ...e) {
|
|
150
|
-
if (!this.canLog(
|
|
150
|
+
if (!this.canLog(i.Error)) return;
|
|
151
151
|
if (t instanceof Error) {
|
|
152
152
|
const n = t;
|
|
153
153
|
this.log(
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
${
|
|
154
|
+
i.Error,
|
|
155
|
+
u(`${n.message}
|
|
156
|
+
${w(n)}`, e),
|
|
157
157
|
[n, ...e]
|
|
158
158
|
);
|
|
159
159
|
return;
|
|
@@ -161,34 +161,34 @@ ${S(n)}`, e),
|
|
|
161
161
|
const r = e[0];
|
|
162
162
|
if (r instanceof Error) {
|
|
163
163
|
this.log(
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
i.Error,
|
|
165
|
+
u(
|
|
166
166
|
`${t}: ${r.message}
|
|
167
|
-
${
|
|
167
|
+
${w(r)}`,
|
|
168
168
|
e.slice(1)
|
|
169
169
|
),
|
|
170
170
|
e
|
|
171
171
|
);
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
|
-
this.log(
|
|
174
|
+
this.log(i.Error, u(t, e), e);
|
|
175
175
|
}
|
|
176
176
|
audit(t, e, r, ...n) {
|
|
177
|
-
if (!this.canLog(
|
|
178
|
-
const
|
|
177
|
+
if (!this.canLog(i.Audit)) return;
|
|
178
|
+
const o = { action: t, userId: e, resource: r, args: n }, c = u(
|
|
179
179
|
`AUDIT: User ${e} performed ${t} on ${r}`,
|
|
180
180
|
n
|
|
181
181
|
);
|
|
182
|
-
this.log(
|
|
182
|
+
this.log(i.Audit, c, n, o);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function w(s) {
|
|
186
186
|
if (!s.stack) return s.message;
|
|
187
187
|
const t = s.stack.indexOf(`
|
|
188
188
|
`);
|
|
189
189
|
return t >= 0 ? s.stack.slice(t + 1) : s.message;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function u(s, t = []) {
|
|
192
192
|
if (t.length === 0) return s;
|
|
193
193
|
const e = [s];
|
|
194
194
|
for (const r of t)
|
|
@@ -198,32 +198,32 @@ function h(s, t = []) {
|
|
|
198
198
|
${r.stack ?? ""}`);
|
|
199
199
|
else if (typeof r == "object")
|
|
200
200
|
try {
|
|
201
|
-
e.push(JSON.stringify(
|
|
201
|
+
e.push(JSON.stringify(_(r)));
|
|
202
202
|
} catch {
|
|
203
203
|
e.push(String(r));
|
|
204
204
|
}
|
|
205
205
|
else
|
|
206
|
-
e.push(String(
|
|
206
|
+
e.push(String(_(r)));
|
|
207
207
|
return e.length === 1 ? e[0] : e.join(" ");
|
|
208
208
|
}
|
|
209
|
-
class
|
|
209
|
+
class K extends Z {
|
|
210
210
|
constructor(e = [], r, n) {
|
|
211
211
|
super(r);
|
|
212
212
|
a(this, "_transports");
|
|
213
213
|
a(this, "_tag");
|
|
214
214
|
this._transports = e, this._tag = n ?? "";
|
|
215
215
|
}
|
|
216
|
-
log(e, r, n = [],
|
|
217
|
-
const
|
|
216
|
+
log(e, r, n = [], o) {
|
|
217
|
+
const c = {
|
|
218
218
|
level: e,
|
|
219
219
|
tag: this._tag,
|
|
220
|
-
message:
|
|
220
|
+
message: V(r),
|
|
221
221
|
timestamp: /* @__PURE__ */ new Date(),
|
|
222
|
-
args: n.map(
|
|
223
|
-
...
|
|
222
|
+
args: n.map(_),
|
|
223
|
+
...o ? { audit: o } : {}
|
|
224
224
|
};
|
|
225
|
-
for (const
|
|
226
|
-
|
|
225
|
+
for (const b of this._transports)
|
|
226
|
+
b.log(c);
|
|
227
227
|
}
|
|
228
228
|
flush() {
|
|
229
229
|
var e;
|
|
@@ -240,10 +240,10 @@ class H extends K {
|
|
|
240
240
|
this._transports.push(e);
|
|
241
241
|
}
|
|
242
242
|
withTag(e) {
|
|
243
|
-
return new
|
|
243
|
+
return new g(this, e);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
class
|
|
246
|
+
class g {
|
|
247
247
|
constructor(t, e) {
|
|
248
248
|
a(this, "_fullTag");
|
|
249
249
|
this._parent = t;
|
|
@@ -258,27 +258,27 @@ class p {
|
|
|
258
258
|
}
|
|
259
259
|
setLevel(t) {
|
|
260
260
|
this._getRoot().debug(
|
|
261
|
-
`TaggedLogger.setLevel(${
|
|
261
|
+
`TaggedLogger.setLevel(${i[t]}) ignored on tagged child '[${this._fullTag}]' — call setLevel on the root logger instead.`
|
|
262
262
|
);
|
|
263
263
|
}
|
|
264
264
|
trace(t, ...e) {
|
|
265
|
-
this._emit(
|
|
265
|
+
this._emit(i.Trace, t, e);
|
|
266
266
|
}
|
|
267
267
|
debug(t, ...e) {
|
|
268
|
-
this._emit(
|
|
268
|
+
this._emit(i.Debug, t, e);
|
|
269
269
|
}
|
|
270
270
|
info(t, ...e) {
|
|
271
|
-
this._emit(
|
|
271
|
+
this._emit(i.Info, t, e);
|
|
272
272
|
}
|
|
273
273
|
warn(t, ...e) {
|
|
274
|
-
this._emit(
|
|
274
|
+
this._emit(i.Warn, t, e);
|
|
275
275
|
}
|
|
276
276
|
error(t, ...e) {
|
|
277
277
|
if (t instanceof Error) {
|
|
278
278
|
const r = new Error(`[${this._fullTag}] ${t.message}`);
|
|
279
279
|
t.stack && (r.stack = t.stack), this._getRoot().error(r, ...e);
|
|
280
280
|
} else
|
|
281
|
-
this._emit(
|
|
281
|
+
this._emit(i.Error, t, e);
|
|
282
282
|
}
|
|
283
283
|
audit(t, e, r, ...n) {
|
|
284
284
|
this._getRoot().audit(t, e, r, ...n);
|
|
@@ -287,85 +287,85 @@ class p {
|
|
|
287
287
|
this._getRoot().flush();
|
|
288
288
|
}
|
|
289
289
|
withTag(t) {
|
|
290
|
-
return new
|
|
290
|
+
return new g(this, t);
|
|
291
291
|
}
|
|
292
292
|
_emit(t, e, r) {
|
|
293
|
-
const n = this._getRoot(),
|
|
293
|
+
const n = this._getRoot(), o = `[${this._fullTag}] ${e}`;
|
|
294
294
|
switch (t) {
|
|
295
|
-
case
|
|
296
|
-
n.trace(
|
|
295
|
+
case i.Trace:
|
|
296
|
+
n.trace(o, ...r);
|
|
297
297
|
break;
|
|
298
|
-
case
|
|
299
|
-
n.debug(
|
|
298
|
+
case i.Debug:
|
|
299
|
+
n.debug(o, ...r);
|
|
300
300
|
break;
|
|
301
|
-
case
|
|
302
|
-
n.info(
|
|
301
|
+
case i.Info:
|
|
302
|
+
n.info(o, ...r);
|
|
303
303
|
break;
|
|
304
|
-
case
|
|
305
|
-
n.warn(
|
|
304
|
+
case i.Warn:
|
|
305
|
+
n.warn(o, ...r);
|
|
306
306
|
break;
|
|
307
|
-
case
|
|
308
|
-
n.error(
|
|
307
|
+
case i.Error:
|
|
308
|
+
n.error(o, ...r);
|
|
309
309
|
break;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
_getRoot() {
|
|
313
313
|
let t = this._parent;
|
|
314
|
-
for (; t instanceof
|
|
314
|
+
for (; t instanceof g; )
|
|
315
315
|
t = t._parent;
|
|
316
316
|
return t;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
const
|
|
320
|
-
[
|
|
321
|
-
[
|
|
322
|
-
[
|
|
323
|
-
[
|
|
324
|
-
[
|
|
325
|
-
[
|
|
326
|
-
[
|
|
327
|
-
},
|
|
328
|
-
[
|
|
329
|
-
[
|
|
330
|
-
[
|
|
331
|
-
[
|
|
332
|
-
[
|
|
333
|
-
[
|
|
334
|
-
[
|
|
319
|
+
const H = {
|
|
320
|
+
[i.Off]: "",
|
|
321
|
+
[i.Trace]: "TRACE",
|
|
322
|
+
[i.Debug]: "DEBUG",
|
|
323
|
+
[i.Info]: "INFO",
|
|
324
|
+
[i.Warn]: "WARN",
|
|
325
|
+
[i.Error]: "ERROR",
|
|
326
|
+
[i.Audit]: "AUDIT"
|
|
327
|
+
}, J = {
|
|
328
|
+
[i.Off]: "debug",
|
|
329
|
+
[i.Trace]: "debug",
|
|
330
|
+
[i.Debug]: "debug",
|
|
331
|
+
[i.Info]: "info",
|
|
332
|
+
[i.Warn]: "warn",
|
|
333
|
+
[i.Error]: "error",
|
|
334
|
+
[i.Audit]: "info"
|
|
335
335
|
};
|
|
336
|
-
class
|
|
336
|
+
class G {
|
|
337
337
|
log(t) {
|
|
338
|
-
const e =
|
|
339
|
-
console[
|
|
338
|
+
const e = H[t.level], r = t.tag ? ` ${t.tag}` : "", n = t.timestamp.toISOString(), o = J[t.level];
|
|
339
|
+
console[o](`[${e}]${r} ${n} - ${t.message}`);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
function
|
|
343
|
-
return new
|
|
342
|
+
function ot(s = i.Info) {
|
|
343
|
+
return new K([new G()], s);
|
|
344
344
|
}
|
|
345
|
-
const
|
|
346
|
-
function
|
|
347
|
-
return
|
|
345
|
+
const A = /* @__PURE__ */ new WeakMap();
|
|
346
|
+
function at(s, t) {
|
|
347
|
+
return A.set(s, [...A.get(s) ?? [], ...t]), s;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
return typeof s == "object" && s !== null ?
|
|
349
|
+
function Y(s) {
|
|
350
|
+
return typeof s == "object" && s !== null ? A.get(s) ?? [] : [];
|
|
351
351
|
}
|
|
352
|
-
const
|
|
353
|
-
text: (s, t) =>
|
|
354
|
-
actions: (s) =>
|
|
352
|
+
const ct = {
|
|
353
|
+
text: (s, t) => C(s, t),
|
|
354
|
+
actions: (s) => Y(s)
|
|
355
355
|
};
|
|
356
|
-
function
|
|
356
|
+
function ut() {
|
|
357
357
|
const s = [];
|
|
358
358
|
let t = null;
|
|
359
359
|
return {
|
|
360
360
|
set: (n) => (s.push(n), () => {
|
|
361
|
-
const
|
|
362
|
-
|
|
361
|
+
const o = s.lastIndexOf(n);
|
|
362
|
+
o !== -1 && s.splice(o, 1), t === n && !s.includes(n) && (t = null);
|
|
363
363
|
}),
|
|
364
364
|
current: () => s.length > 0 ? s[s.length - 1] ?? null : null,
|
|
365
365
|
find: (n) => {
|
|
366
|
-
for (let
|
|
367
|
-
const
|
|
368
|
-
if (
|
|
366
|
+
for (let o = s.length - 1; o >= 0; o -= 1) {
|
|
367
|
+
const c = s[o];
|
|
368
|
+
if (c !== void 0 && n(c)) return c;
|
|
369
369
|
}
|
|
370
370
|
return null;
|
|
371
371
|
},
|
|
@@ -375,22 +375,22 @@ function ft() {
|
|
|
375
375
|
lastFocused: () => t
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
const
|
|
378
|
+
const d = 20, S = "menu.favorites";
|
|
379
379
|
class ht {
|
|
380
380
|
constructor(t) {
|
|
381
|
-
a(this, "_onDidChange", new
|
|
381
|
+
a(this, "_onDidChange", new D());
|
|
382
382
|
a(this, "onDidChange", this._onDidChange.event);
|
|
383
383
|
this.storage = t;
|
|
384
384
|
}
|
|
385
385
|
list() {
|
|
386
|
-
return this.stored().filter((t) => typeof t == "string" &&
|
|
386
|
+
return this.stored().filter((t) => typeof t == "string" && O(t)).slice(0, d);
|
|
387
387
|
}
|
|
388
388
|
has(t) {
|
|
389
389
|
return this.list().includes(t);
|
|
390
390
|
}
|
|
391
391
|
add(t) {
|
|
392
392
|
const e = this.list();
|
|
393
|
-
e.includes(t) || e.length >=
|
|
393
|
+
e.includes(t) || e.length >= d || this.write([...e, t]);
|
|
394
394
|
}
|
|
395
395
|
remove(t) {
|
|
396
396
|
this.write(this.list().filter((e) => e !== t));
|
|
@@ -399,31 +399,27 @@ class ht {
|
|
|
399
399
|
this._onDidChange.dispose();
|
|
400
400
|
}
|
|
401
401
|
stored() {
|
|
402
|
-
const t = this.storage.get(
|
|
402
|
+
const t = this.storage.get(S, h.APPLICATION);
|
|
403
403
|
if (t === void 0) return [];
|
|
404
404
|
let e;
|
|
405
405
|
try {
|
|
406
406
|
e = JSON.parse(t);
|
|
407
407
|
} catch (r) {
|
|
408
|
-
return
|
|
408
|
+
return T(new Error("[menu favourites] the stored list is not JSON", { cause: r })), [];
|
|
409
409
|
}
|
|
410
410
|
return Array.isArray(e) ? e : [];
|
|
411
411
|
}
|
|
412
412
|
write(t) {
|
|
413
413
|
this.storage.store(
|
|
414
|
-
|
|
415
|
-
JSON.stringify(t.slice(0,
|
|
416
|
-
|
|
417
|
-
|
|
414
|
+
S,
|
|
415
|
+
JSON.stringify(t.slice(0, d)),
|
|
416
|
+
h.APPLICATION,
|
|
417
|
+
p.USER
|
|
418
418
|
), this._onDidChange.fire();
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
const
|
|
422
|
-
|
|
423
|
-
return s === "filesystem" ? "file-system" : s === "explorer" ? "database-explorer" : s;
|
|
424
|
-
}
|
|
425
|
-
const T = (s) => `onboarding:page:${u(s)}`, D = "onboarding:neverShowAgain", Q = 15e3;
|
|
426
|
-
class lt {
|
|
421
|
+
const q = ["shown", "skipped", "completed"], m = (s) => `onboarding:page:${s}`, v = "onboarding:neverShowAgain", B = 15e3;
|
|
422
|
+
class ft {
|
|
427
423
|
constructor(t) {
|
|
428
424
|
a(this, "activePage");
|
|
429
425
|
a(this, "setActivePage");
|
|
@@ -438,32 +434,30 @@ class lt {
|
|
|
438
434
|
this.activePage = e, this.setActivePage = r;
|
|
439
435
|
}
|
|
440
436
|
isActive(t) {
|
|
441
|
-
|
|
442
|
-
return e !== null && u(e) === u(t);
|
|
437
|
+
return this.activePage() === t;
|
|
443
438
|
}
|
|
444
439
|
setActive(t) {
|
|
445
|
-
this.setActivePage(t
|
|
440
|
+
this.setActivePage(t);
|
|
446
441
|
}
|
|
447
442
|
readStatus(t) {
|
|
448
443
|
if (this.isNeverShowAgain()) return "skipped";
|
|
449
|
-
const e =
|
|
450
|
-
if (
|
|
451
|
-
const
|
|
452
|
-
return
|
|
444
|
+
const e = this.seen.get(t);
|
|
445
|
+
if (e !== void 0) return e;
|
|
446
|
+
const r = this.storage.get(m(t), h.APPLICATION);
|
|
447
|
+
return P(q, r) ? r : void 0;
|
|
453
448
|
}
|
|
454
449
|
writeStatus(t, e) {
|
|
455
|
-
|
|
456
|
-
this.seen.set(r, e), this.storage.store(T(r), e, l.APPLICATION, A.MACHINE);
|
|
450
|
+
this.seen.set(t, e), this.storage.store(m(t), e, h.APPLICATION, p.MACHINE);
|
|
457
451
|
}
|
|
458
452
|
isNeverShowAgain() {
|
|
459
|
-
return this.neverShowAgainCache === null && (this.neverShowAgainCache = this.storage.get(
|
|
453
|
+
return this.neverShowAgainCache === null && (this.neverShowAgainCache = this.storage.get(v, h.APPLICATION) === "true"), this.neverShowAgainCache;
|
|
460
454
|
}
|
|
461
455
|
setNeverShowAgain(t) {
|
|
462
456
|
this.neverShowAgainCache = t, this.storage.store(
|
|
463
|
-
|
|
457
|
+
v,
|
|
464
458
|
t ? "true" : "false",
|
|
465
|
-
|
|
466
|
-
|
|
459
|
+
h.APPLICATION,
|
|
460
|
+
p.MACHINE
|
|
467
461
|
);
|
|
468
462
|
}
|
|
469
463
|
skipWelcome() {
|
|
@@ -482,35 +476,32 @@ class lt {
|
|
|
482
476
|
return this.hosts.add(t), () => this.hosts.delete(t);
|
|
483
477
|
}
|
|
484
478
|
request(t) {
|
|
485
|
-
var
|
|
486
|
-
this.pending = null;
|
|
487
|
-
const e = t ? u(t) : void 0;
|
|
488
|
-
this.owner = null;
|
|
479
|
+
var o;
|
|
480
|
+
this.pending = null, this.owner = null;
|
|
489
481
|
for (const c of this.hosts)
|
|
490
|
-
(!
|
|
491
|
-
const
|
|
492
|
-
(c) => c.visible() && (!
|
|
493
|
-
),
|
|
494
|
-
return
|
|
482
|
+
(!t || c.page !== t) && ((o = c.dismiss) == null || o.call(c));
|
|
483
|
+
const e = Array.from(this.hosts).filter(
|
|
484
|
+
(c) => c.visible() && (!t || c.page === t)
|
|
485
|
+
), r = L().document, n = e.find((c) => c.document() === r) ?? e[0];
|
|
486
|
+
return n ? (n.start(), !0) : (t && (this.pending = { page: t, expires: Date.now() + B }), !1);
|
|
495
487
|
}
|
|
496
488
|
consumeRequest(t) {
|
|
497
|
-
if (!this.pending ||
|
|
489
|
+
if (!this.pending || this.pending.page !== t)
|
|
498
490
|
return !1;
|
|
499
491
|
const e = this.pending.expires > Date.now();
|
|
500
492
|
return this.pending = null, e;
|
|
501
493
|
}
|
|
502
494
|
}
|
|
503
495
|
export {
|
|
504
|
-
|
|
505
|
-
|
|
496
|
+
$ as D,
|
|
497
|
+
i as L,
|
|
506
498
|
ht as M,
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
ct as w
|
|
499
|
+
ft as P,
|
|
500
|
+
q as T,
|
|
501
|
+
Y as a,
|
|
502
|
+
ot as b,
|
|
503
|
+
N as c,
|
|
504
|
+
ut as d,
|
|
505
|
+
ct as m,
|
|
506
|
+
at as w
|
|
516
507
|
};
|