@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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../appThemeDerivation-Be_oKljl.cjs");exports.DEFAULT_THEME_ID=e.DEFAULT_THEME_ID;exports.DESIGN_THEMES=e.DESIGN_THEMES;exports.INK_ROLE_KEYS=e.INK_ROLE_KEYS;exports.LEGACY_THEME_IDS=e.LEGACY_THEME_IDS;exports.MAX_TEXT_TINT_ALPHA=e.MAX_TEXT_TINT_ALPHA;exports.OKABE_ITO_DIFF=e.OKABE_ITO_DIFF;exports.TEXT_ROLE_KEYS=e.TEXT_ROLE_KEYS;exports.ThemeProvider=e.ThemeProvider;exports.UNIQUE_ACCENT=e.UNIQUE_ACCENT;exports.WELD_BG=e.WELD_BG;exports.WELD_SURFACE=e.WELD_SURFACE;exports.accessibleFillSurface=e.accessibleFillSurface;exports.accessibleInputBorder=e.accessibleInputBorder;exports.accessibleOnFillInk=e.accessibleOnFillInk;exports.accessibleTextColor=e.accessibleTextColor;exports.applyAppTheme=e.applyAppTheme;exports.derivePaletteProperties=e.derivePaletteProperties;exports.generateMonacoThemeFromPalette=e.generateMonacoThemeFromPalette;exports.generateTerminalPaletteFromPalette=e.generateTerminalPaletteFromPalette;exports.getDefaultThemeId=e.getDefaultThemeId;exports.getThemeById=e.getThemeById;exports.getThemeDesign=e.getThemeDesign;exports.getThemeOptions=e.getThemeOptions;exports.getThemes=e.getThemes;exports.isColorVisionSafeActive=e.isColorVisionSafeActive;exports.isKnownThemeId=e.isKnownThemeId;exports.readActiveAppPalette=e.readActiveAppPalette;exports.readActiveAppThemeId=e.readActiveAppThemeId;exports.readActiveAppThemeType=e.readActiveAppThemeType;exports.registerThemeSource=e.registerThemeSource;exports.resolveThemeOption=e.resolveThemeOption;exports.setThemeDesign=e.setThemeDesign;exports.textGroundsFor=e.textGroundsFor;exports.themeOptions=e.themeOptions;exports.toColorVisionSafePalette=e.toColorVisionSafePalette;exports.useTheme=e.useTheme;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../appThemeDerivation-Be_oKljl.cjs"),t=require("./palette/index.cjs");exports.DEFAULT_THEME_ID=e.DEFAULT_THEME_ID;exports.DESIGN_THEMES=e.DESIGN_THEMES;exports.INK_ROLE_KEYS=e.INK_ROLE_KEYS;exports.LEGACY_THEME_IDS=e.LEGACY_THEME_IDS;exports.MAX_TEXT_TINT_ALPHA=e.MAX_TEXT_TINT_ALPHA;exports.OKABE_ITO_DIFF=e.OKABE_ITO_DIFF;exports.TEXT_ROLE_KEYS=e.TEXT_ROLE_KEYS;exports.ThemeProvider=e.ThemeProvider;exports.UNIQUE_ACCENT=e.UNIQUE_ACCENT;exports.WELD_BG=e.WELD_BG;exports.WELD_SURFACE=e.WELD_SURFACE;exports.accessibleFillSurface=e.accessibleFillSurface;exports.accessibleInputBorder=e.accessibleInputBorder;exports.accessibleOnFillInk=e.accessibleOnFillInk;exports.accessibleTextColor=e.accessibleTextColor;exports.applyAppTheme=e.applyAppTheme;exports.derivePaletteProperties=e.derivePaletteProperties;exports.generateMonacoThemeFromPalette=e.generateMonacoThemeFromPalette;exports.generateTerminalPaletteFromPalette=e.generateTerminalPaletteFromPalette;exports.getDefaultThemeId=e.getDefaultThemeId;exports.getThemeById=e.getThemeById;exports.getThemeDesign=e.getThemeDesign;exports.getThemeOptions=e.getThemeOptions;exports.getThemes=e.getThemes;exports.isColorVisionSafeActive=e.isColorVisionSafeActive;exports.isKnownThemeId=e.isKnownThemeId;exports.readActiveAppPalette=e.readActiveAppPalette;exports.readActiveAppThemeId=e.readActiveAppThemeId;exports.readActiveAppThemeType=e.readActiveAppThemeType;exports.registerThemeSource=e.registerThemeSource;exports.resolveThemeOption=e.resolveThemeOption;exports.setThemeDesign=e.setThemeDesign;exports.textGroundsFor=e.textGroundsFor;exports.themeOptions=e.themeOptions;exports.toColorVisionSafePalette=e.toColorVisionSafePalette;exports.useTheme=e.useTheme;exports.THEME_PALETTE_TOKENS=t.THEME_PALETTE_TOKENS;exports.isThemePaletteColor=t.isThemePaletteColor;
|
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
import { D as a, a as t, I as T, L as
|
|
1
|
+
import { D as a, a as t, I as T, L as o, M as r, O as i, T as E, b as l, U as m, W as p, c as _, d as h, e as n, f as A, g as c, h as I, i as d, j as g, k as D, l as P, m as S, n as O, o as F, p as L, q as v, r as C, s as f, t as u, u as M, v as K, w as N, x as b, y as x, z as B, A as H, B as U } from "../appThemeDerivation-CKoSe4KP.js";
|
|
2
|
+
import { THEME_PALETTE_TOKENS as G, isThemePaletteColor as R } from "./palette/index.js";
|
|
2
3
|
export {
|
|
3
4
|
a as DEFAULT_THEME_ID,
|
|
4
5
|
t as DESIGN_THEMES,
|
|
5
6
|
T as INK_ROLE_KEYS,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
p as
|
|
7
|
+
o as LEGACY_THEME_IDS,
|
|
8
|
+
r as MAX_TEXT_TINT_ALPHA,
|
|
9
|
+
i as OKABE_ITO_DIFF,
|
|
10
|
+
E as TEXT_ROLE_KEYS,
|
|
11
|
+
G as THEME_PALETTE_TOKENS,
|
|
12
|
+
l as ThemeProvider,
|
|
13
|
+
m as UNIQUE_ACCENT,
|
|
14
|
+
p as WELD_BG,
|
|
15
|
+
_ as WELD_SURFACE,
|
|
14
16
|
h as accessibleFillSurface,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
n as accessibleInputBorder,
|
|
18
|
+
A as accessibleOnFillInk,
|
|
17
19
|
c as accessibleTextColor,
|
|
18
20
|
I as applyAppTheme,
|
|
19
21
|
d as derivePaletteProperties,
|
|
20
22
|
g as generateMonacoThemeFromPalette,
|
|
21
23
|
D as generateTerminalPaletteFromPalette,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
P as getDefaultThemeId,
|
|
25
|
+
S as getThemeById,
|
|
24
26
|
O as getThemeDesign,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
f as
|
|
27
|
+
F as getThemeOptions,
|
|
28
|
+
L as getThemes,
|
|
29
|
+
v as isColorVisionSafeActive,
|
|
30
|
+
C as isKnownThemeId,
|
|
31
|
+
R as isThemePaletteColor,
|
|
32
|
+
f as readActiveAppPalette,
|
|
33
|
+
u as readActiveAppThemeId,
|
|
31
34
|
M as readActiveAppThemeType,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
K as registerThemeSource,
|
|
36
|
+
N as resolveThemeOption,
|
|
37
|
+
b as setThemeDesign,
|
|
38
|
+
x as textGroundsFor,
|
|
39
|
+
B as themeOptions,
|
|
40
|
+
H as toColorVisionSafePalette,
|
|
41
|
+
U as useTheme
|
|
39
42
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={surface:!0,surfaceAlt:!0,surfaceElevated:!0,brand:!0,brandHover:!0,content:!0,contentSecondary:!0,border:!0,input:!0,inputBorder:!0,success:!0,error:!0,warning:!0,info:!0,syntaxKeyword:!0,syntaxString:!0,syntaxFunction:!0,syntaxComment:!0,syntaxNumber:!0,syntaxType:!0},r=Object.freeze(Object.keys(t)),u=/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;function n(e){return typeof e=="string"&&u.test(e)}exports.THEME_PALETTE_TOKENS=r;exports.isThemePaletteColor=n;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
surface: !0,
|
|
3
|
+
surfaceAlt: !0,
|
|
4
|
+
surfaceElevated: !0,
|
|
5
|
+
brand: !0,
|
|
6
|
+
brandHover: !0,
|
|
7
|
+
content: !0,
|
|
8
|
+
contentSecondary: !0,
|
|
9
|
+
border: !0,
|
|
10
|
+
input: !0,
|
|
11
|
+
inputBorder: !0,
|
|
12
|
+
success: !0,
|
|
13
|
+
error: !0,
|
|
14
|
+
warning: !0,
|
|
15
|
+
info: !0,
|
|
16
|
+
syntaxKeyword: !0,
|
|
17
|
+
syntaxString: !0,
|
|
18
|
+
syntaxFunction: !0,
|
|
19
|
+
syntaxComment: !0,
|
|
20
|
+
syntaxNumber: !0,
|
|
21
|
+
syntaxType: !0
|
|
22
|
+
}, n = Object.freeze(
|
|
23
|
+
Object.keys(e)
|
|
24
|
+
), r = /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
25
|
+
function u(t) {
|
|
26
|
+
return typeof t == "string" && r.test(t);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
n as THEME_PALETTE_TOKENS,
|
|
30
|
+
u as isThemePaletteColor
|
|
31
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../rowSource-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../rowSource-C1F4l0xZ.cjs");exports.DEFAULT_TREE_CAPABILITIES=e.DEFAULT_TREE_CAPABILITIES;exports.TREE_INDENT_STEP_REM=e.TREE_INDENT_STEP_REM;exports.TreeHighlight=e.TreeHighlight;exports.TreeRow=e.TreeRow;exports.TreeSurface=e.TreeSurface;exports.assertRowIndex=e.assertRowIndex;exports.buildTreeContainerAria=e.buildTreeContainerAria;exports.buildTreeRowAria=e.buildTreeRowAria;exports.buildTreeRowStructureAria=e.buildTreeRowStructureAria;exports.createTreeController=e.createTreeController;exports.createTreeSurface=e.createTreeSurface;exports.selectAllInScope=e.selectAllInScope;exports.treeRowDomId=e.treeRowDomId;exports.treeRowsFrom=e.treeRowsFrom;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as a, T as s, a as T, b as o, c as t, d as i, e as l, f as E, g as R, h as c, i as u, s as A, t as I, j as d } from "../rowSource-
|
|
1
|
+
import { D as a, T as s, a as T, b as o, c as t, d as i, e as l, f as E, g as R, h as c, i as u, s as A, t as I, j as d } from "../rowSource-CoeHYNsV.js";
|
|
2
2
|
export {
|
|
3
3
|
a as DEFAULT_TREE_CAPABILITIES,
|
|
4
4
|
s as TREE_INDENT_STEP_REM,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ToolWindowContext } from '../contexts/toolWindow/ToolWindowContext';
|
|
2
|
-
import { Show, createSignal, onCleanup, onMount, useContext, } from 'solid-js';
|
|
2
|
+
import { Show, createMemo, createSignal, onCleanup, onMount, useContext, } from 'solid-js';
|
|
3
3
|
import { GuidedTour } from '../../../overlay/tour/GuidedTour';
|
|
4
4
|
import { PageTourHost_info_1 } from './onboarding.notifications';
|
|
5
5
|
import { useKitHost } from '../../../host/kitHost';
|
|
6
6
|
import { visibleElement, } from './pageTourTypes';
|
|
7
7
|
export function PageTourHost(props) {
|
|
8
|
+
const definition = createMemo(() => props.definition);
|
|
8
9
|
const layout = useContext(ToolWindowContext);
|
|
9
10
|
const { tours, notifications, log: hostLog } = useKitHost();
|
|
10
11
|
const log = hostLog.withTag('PageTour');
|
|
@@ -24,7 +25,7 @@ export function PageTourHost(props) {
|
|
|
24
25
|
tours.setActive(null);
|
|
25
26
|
props.onTourActiveChange?.(false);
|
|
26
27
|
try {
|
|
27
|
-
tours.writeStatus(
|
|
28
|
+
tours.writeStatus(definition().pageId, completed ? 'completed' : 'skipped');
|
|
28
29
|
}
|
|
29
30
|
catch (error) {
|
|
30
31
|
log.warn('Could not save tour progress', error);
|
|
@@ -41,7 +42,7 @@ export function PageTourHost(props) {
|
|
|
41
42
|
if (!visible() || !tours.claim(token))
|
|
42
43
|
return;
|
|
43
44
|
manualRequested = false;
|
|
44
|
-
const available =
|
|
45
|
+
const available = definition().steps.filter((step) => step.available?.() !== false);
|
|
45
46
|
if (!available.length) {
|
|
46
47
|
tours.release(token);
|
|
47
48
|
return;
|
|
@@ -50,12 +51,12 @@ export function PageTourHost(props) {
|
|
|
50
51
|
setIndex(0);
|
|
51
52
|
automatic = auto;
|
|
52
53
|
try {
|
|
53
|
-
tours.writeStatus(
|
|
54
|
+
tours.writeStatus(definition().pageId, 'shown');
|
|
54
55
|
}
|
|
55
56
|
catch (error) {
|
|
56
57
|
log.warn('Could not save tour progress', error);
|
|
57
58
|
}
|
|
58
|
-
tours.setActive(
|
|
59
|
+
tours.setActive(definition().pageId);
|
|
59
60
|
props.onTourActiveChange?.(true);
|
|
60
61
|
setOpen(true);
|
|
61
62
|
};
|
|
@@ -85,7 +86,7 @@ export function PageTourHost(props) {
|
|
|
85
86
|
return;
|
|
86
87
|
if (++readyTicks < 2)
|
|
87
88
|
return;
|
|
88
|
-
if (tours.consumeRequest(
|
|
89
|
+
if (tours.consumeRequest(definition().pageId))
|
|
89
90
|
manualRequested = true;
|
|
90
91
|
if (manualRequested) {
|
|
91
92
|
start();
|
|
@@ -96,7 +97,7 @@ export function PageTourHost(props) {
|
|
|
96
97
|
if (tours.skipWelcome())
|
|
97
98
|
return;
|
|
98
99
|
try {
|
|
99
|
-
if (!tours.readStatus(
|
|
100
|
+
if (!tours.readStatus(definition().pageId))
|
|
100
101
|
start(true);
|
|
101
102
|
}
|
|
102
103
|
catch (error) {
|
|
@@ -105,7 +106,7 @@ export function PageTourHost(props) {
|
|
|
105
106
|
}
|
|
106
107
|
};
|
|
107
108
|
const unregister = tours.registerHost({
|
|
108
|
-
page:
|
|
109
|
+
page: definition().pageId,
|
|
109
110
|
document: () => marker.ownerDocument,
|
|
110
111
|
visible,
|
|
111
112
|
start: () => {
|
|
@@ -123,14 +124,14 @@ export function PageTourHost(props) {
|
|
|
123
124
|
win.clearInterval(timer);
|
|
124
125
|
unregister();
|
|
125
126
|
tours.release(token);
|
|
126
|
-
if (tours.activePage() ===
|
|
127
|
+
if (tours.activePage() === definition().pageId) {
|
|
127
128
|
tours.setActive(null);
|
|
128
129
|
props.onTourActiveChange?.(false);
|
|
129
130
|
}
|
|
130
131
|
});
|
|
131
132
|
});
|
|
132
133
|
return (<>
|
|
133
|
-
<span ref={marker} hidden data-page-tour-host={
|
|
134
|
+
<span ref={marker} hidden data-page-tour-host={definition().pageId}/>
|
|
134
135
|
<Show when={open()}>
|
|
135
136
|
<GuidedTour document={marker.ownerDocument} focusFallback={() => (visible() ? root() : null)} steps={steps()} index={index()} target={() => steps()[index()]?.target(root()) ?? null} onSelect={setIndex} onClose={close} onNeverShowAgain={handleNeverShowAgain}/>
|
|
136
137
|
</Show>
|
|
@@ -3,14 +3,7 @@ import { getActiveWindow } from '../windows/window/windowRegistry';
|
|
|
3
3
|
import { isOneOf } from '../../base/isOneOf';
|
|
4
4
|
import { StorageScope, StorageTarget, } from '../../platform/settings/registry/stateDbStore';
|
|
5
5
|
export const TOUR_STATUSES = ['shown', 'skipped', 'completed'];
|
|
6
|
-
|
|
7
|
-
if (page === 'filesystem')
|
|
8
|
-
return 'file-system';
|
|
9
|
-
if (page === 'explorer')
|
|
10
|
-
return 'database-explorer';
|
|
11
|
-
return page;
|
|
12
|
-
}
|
|
13
|
-
const statusKey = (page) => `onboarding:page:${canonicalTourPageId(page)}`;
|
|
6
|
+
const statusKey = (page) => `onboarding:page:${page}`;
|
|
14
7
|
const NEVER_SHOW_AGAIN_KEY = 'onboarding:neverShowAgain';
|
|
15
8
|
const REQUEST_TTL_MS = 15000;
|
|
16
9
|
export class PageTourService {
|
|
@@ -30,26 +23,23 @@ export class PageTourService {
|
|
|
30
23
|
this.setActivePage = setActivePage;
|
|
31
24
|
}
|
|
32
25
|
isActive(page) {
|
|
33
|
-
|
|
34
|
-
return active !== null && canonicalTourPageId(active) === canonicalTourPageId(page);
|
|
26
|
+
return this.activePage() === page;
|
|
35
27
|
}
|
|
36
28
|
setActive(page) {
|
|
37
|
-
this.setActivePage(page
|
|
29
|
+
this.setActivePage(page);
|
|
38
30
|
}
|
|
39
31
|
readStatus(page) {
|
|
40
32
|
if (this.isNeverShowAgain())
|
|
41
33
|
return 'skipped';
|
|
42
|
-
const
|
|
43
|
-
const known = this.seen.get(norm);
|
|
34
|
+
const known = this.seen.get(page);
|
|
44
35
|
if (known !== undefined)
|
|
45
36
|
return known;
|
|
46
|
-
const stored = this.storage.get(statusKey(
|
|
37
|
+
const stored = this.storage.get(statusKey(page), StorageScope.APPLICATION);
|
|
47
38
|
return isOneOf(TOUR_STATUSES, stored) ? stored : undefined;
|
|
48
39
|
}
|
|
49
40
|
writeStatus(page, status) {
|
|
50
|
-
|
|
51
|
-
this.
|
|
52
|
-
this.storage.store(statusKey(norm), status, StorageScope.APPLICATION, StorageTarget.MACHINE);
|
|
41
|
+
this.seen.set(page, status);
|
|
42
|
+
this.storage.store(statusKey(page), status, StorageScope.APPLICATION, StorageTarget.MACHINE);
|
|
53
43
|
}
|
|
54
44
|
isNeverShowAgain() {
|
|
55
45
|
if (this.neverShowAgainCache === null)
|
|
@@ -83,25 +73,24 @@ export class PageTourService {
|
|
|
83
73
|
}
|
|
84
74
|
request(page) {
|
|
85
75
|
this.pending = null;
|
|
86
|
-
const norm = page ? canonicalTourPageId(page) : undefined;
|
|
87
76
|
this.owner = null;
|
|
88
77
|
for (const host of this.hosts) {
|
|
89
|
-
if (!
|
|
78
|
+
if (!page || host.page !== page)
|
|
90
79
|
host.dismiss?.();
|
|
91
80
|
}
|
|
92
|
-
const candidates = Array.from(this.hosts).filter((host) => host.visible() && (!
|
|
81
|
+
const candidates = Array.from(this.hosts).filter((host) => host.visible() && (!page || host.page === page));
|
|
93
82
|
const activeDocument = getActiveWindow().document;
|
|
94
83
|
const selected = candidates.find((host) => host.document() === activeDocument) ?? candidates[0];
|
|
95
84
|
if (selected) {
|
|
96
85
|
selected.start();
|
|
97
86
|
return true;
|
|
98
87
|
}
|
|
99
|
-
if (
|
|
100
|
-
this.pending = { page
|
|
88
|
+
if (page)
|
|
89
|
+
this.pending = { page, expires: Date.now() + REQUEST_TTL_MS };
|
|
101
90
|
return false;
|
|
102
91
|
}
|
|
103
92
|
consumeRequest(page) {
|
|
104
|
-
if (!this.pending ||
|
|
93
|
+
if (!this.pending || this.pending.page !== page) {
|
|
105
94
|
return false;
|
|
106
95
|
}
|
|
107
96
|
const valid = this.pending.expires > Date.now();
|
|
@@ -29,6 +29,7 @@ const defaultZoneFormat = new Intl.DateTimeFormat(undefined, {
|
|
|
29
29
|
timeZoneName: 'short',
|
|
30
30
|
});
|
|
31
31
|
export function TimeSeriesChart(props) {
|
|
32
|
+
const timeWindow = createMemo(() => props.window);
|
|
32
33
|
let svg;
|
|
33
34
|
let pointerId = null;
|
|
34
35
|
let dragAnchor = null;
|
|
@@ -37,23 +38,23 @@ export function TimeSeriesChart(props) {
|
|
|
37
38
|
const [size, setSize] = createSignal({ width: 640, height: 180 });
|
|
38
39
|
const [cursor, setCursor] = createSignal(null);
|
|
39
40
|
const [draftInterval, setDraftInterval] = createSignal(null);
|
|
40
|
-
const validWindow = () => Number.isFinite(
|
|
41
|
-
Number.isFinite(
|
|
42
|
-
|
|
41
|
+
const validWindow = () => Number.isFinite(timeWindow().from) &&
|
|
42
|
+
Number.isFinite(timeWindow().to) &&
|
|
43
|
+
timeWindow().from < timeWindow().to;
|
|
43
44
|
const measured = createMemo(() => props.series.map((series) => {
|
|
44
45
|
const distinct = new Map();
|
|
45
46
|
if (validWindow())
|
|
46
47
|
for (const point of series.points) {
|
|
47
48
|
if (Number.isFinite(point.timestamp) &&
|
|
48
|
-
point.timestamp >=
|
|
49
|
-
point.timestamp <=
|
|
49
|
+
point.timestamp >= timeWindow().from &&
|
|
50
|
+
point.timestamp <= timeWindow().to)
|
|
50
51
|
distinct.set(point.timestamp, point);
|
|
51
52
|
}
|
|
52
53
|
const points = [...distinct.values()].sort((left, right) => left.timestamp - right.timestamp);
|
|
53
54
|
return {
|
|
54
55
|
...series,
|
|
55
56
|
points,
|
|
56
|
-
segments: seriesSegments(points,
|
|
57
|
+
segments: seriesSegments(points, timeWindow(), props.maxGapMs ?? 90_000),
|
|
57
58
|
};
|
|
58
59
|
}));
|
|
59
60
|
const pointValues = createMemo(() => new Map(measured().map((series) => [
|
|
@@ -71,7 +72,7 @@ export function TimeSeriesChart(props) {
|
|
|
71
72
|
bottom: Math.max(9, size().height - 25),
|
|
72
73
|
}));
|
|
73
74
|
const x = (timestamp) => plot().left +
|
|
74
|
-
((timestamp -
|
|
75
|
+
((timestamp - timeWindow().from) / (timeWindow().to - timeWindow().from)) *
|
|
75
76
|
(plot().right - plot().left);
|
|
76
77
|
const y = (value) => {
|
|
77
78
|
const scale = Math.max(Math.abs(domain().min), Math.abs(domain().max));
|
|
@@ -81,14 +82,14 @@ export function TimeSeriesChart(props) {
|
|
|
81
82
|
};
|
|
82
83
|
const formattedValue = (value) => props.formatValue?.(value) ?? defaultValueFormat.format(value);
|
|
83
84
|
const formattedTime = (timestamp, detail = false) => props.formatTime?.(timestamp) ??
|
|
84
|
-
(
|
|
85
|
+
(timeWindow().to - timeWindow().from > 6 * 60 * 60 * 1000
|
|
85
86
|
? dayTimeFormat
|
|
86
87
|
: detail
|
|
87
88
|
? detailTimeFormat
|
|
88
89
|
: defaultTimeFormat).format(timestamp);
|
|
89
90
|
const selected = () => {
|
|
90
91
|
const interval = draftInterval() ?? props.selectedInterval;
|
|
91
|
-
return interval ? clampInterval(interval,
|
|
92
|
+
return interval ? clampInterval(interval, timeWindow()) : null;
|
|
92
93
|
};
|
|
93
94
|
const nearest = (timestamp) => {
|
|
94
95
|
const times = timestamps();
|
|
@@ -136,10 +137,10 @@ export function TimeSeriesChart(props) {
|
|
|
136
137
|
const pointerTimestamp = (clientX) => {
|
|
137
138
|
const rect = svg?.getBoundingClientRect();
|
|
138
139
|
if (!rect || rect.width === 0)
|
|
139
|
-
return
|
|
140
|
+
return timeWindow().from;
|
|
140
141
|
const svgX = ((clientX - rect.left) / rect.width) * size().width;
|
|
141
142
|
const ratio = Math.max(0, Math.min(1, (svgX - plot().left) / (plot().right - plot().left)));
|
|
142
|
-
return
|
|
143
|
+
return timeWindow().from + ratio * (timeWindow().to - timeWindow().from);
|
|
143
144
|
};
|
|
144
145
|
const finishDrag = (event, cancel = false) => {
|
|
145
146
|
if (pointerId !== event.pointerId)
|
|
@@ -148,8 +149,8 @@ export function TimeSeriesChart(props) {
|
|
|
148
149
|
const interval = clampInterval({
|
|
149
150
|
from: dragAnchor,
|
|
150
151
|
to: pointerTimestamp(event.clientX),
|
|
151
|
-
},
|
|
152
|
-
const threshold = (
|
|
152
|
+
}, timeWindow());
|
|
153
|
+
const threshold = (timeWindow().to - timeWindow().from) *
|
|
153
154
|
(4 / Math.max(1, plot().right - plot().left));
|
|
154
155
|
if (interval && interval.to - interval.from >= threshold) {
|
|
155
156
|
props.onSelectInterval(interval);
|
|
@@ -191,7 +192,7 @@ export function TimeSeriesChart(props) {
|
|
|
191
192
|
return;
|
|
192
193
|
if (event.shiftKey && props.onSelectInterval && current !== undefined) {
|
|
193
194
|
keyboardAnchor ??= current;
|
|
194
|
-
props.onSelectInterval(clampInterval({ from: keyboardAnchor, to: next },
|
|
195
|
+
props.onSelectInterval(clampInterval({ from: keyboardAnchor, to: next }, timeWindow()));
|
|
195
196
|
}
|
|
196
197
|
else {
|
|
197
198
|
keyboardAnchor = null;
|
|
@@ -267,8 +268,8 @@ export function TimeSeriesChart(props) {
|
|
|
267
268
|
</For>
|
|
268
269
|
<For each={size().width < 420 ? [0, 1] : [0, 0.5, 1]}>
|
|
269
270
|
{(ratio) => {
|
|
270
|
-
const timestamp = () =>
|
|
271
|
-
ratio * (
|
|
271
|
+
const timestamp = () => timeWindow().from +
|
|
272
|
+
ratio * (timeWindow().to - timeWindow().from);
|
|
272
273
|
return (<text aria-hidden="true" class={styles.axisLabel} x={x(timestamp())} y={size().height - 6} text-anchor={ratio === 0 ? 'start' : ratio === 1 ? 'end' : 'middle'}>
|
|
273
274
|
{formattedTime(timestamp())}
|
|
274
275
|
</text>);
|
|
@@ -289,21 +290,21 @@ export function TimeSeriesChart(props) {
|
|
|
289
290
|
</For>)}
|
|
290
291
|
</For>
|
|
291
292
|
<Show when={cursorTimestamp() !== null}>
|
|
292
|
-
<line class={styles.cursor} x1={x(cursorTimestamp() ??
|
|
293
|
+
<line class={styles.cursor} x1={x(cursorTimestamp() ?? timeWindow().from)} x2={x(cursorTimestamp() ?? timeWindow().from)} y1={plot().top} y2={plot().bottom}/>
|
|
293
294
|
</Show>
|
|
294
295
|
</svg>
|
|
295
296
|
<Show when={cursorTimestamp() !== null}>
|
|
296
297
|
<div class={styles.tooltip} role="status" aria-live="off">
|
|
297
298
|
<strong>
|
|
298
|
-
{formattedTime(cursorTimestamp() ??
|
|
299
|
+
{formattedTime(cursorTimestamp() ?? timeWindow().to, true)}
|
|
299
300
|
</strong>
|
|
300
301
|
<For each={props.series}>
|
|
301
302
|
{(series) => (<span>
|
|
302
303
|
{series.label}:{' '}
|
|
303
|
-
{valueAt(series, cursorTimestamp() ??
|
|
304
|
+
{valueAt(series, cursorTimestamp() ?? timeWindow().to) ===
|
|
304
305
|
null
|
|
305
306
|
? '—'
|
|
306
|
-
: formattedValue(valueAt(series, cursorTimestamp() ??
|
|
307
|
+
: formattedValue(valueAt(series, cursorTimestamp() ?? timeWindow().to) ?? 0)}{' '}
|
|
307
308
|
{props.unit}
|
|
308
309
|
</span>)}
|
|
309
310
|
</For>
|
|
@@ -315,8 +316,8 @@ export function TimeSeriesChart(props) {
|
|
|
315
316
|
{timestamps().length < 2
|
|
316
317
|
? (props.labels?.warmup ?? 'Waiting for the next sample')
|
|
317
318
|
: (props.labels?.coverage ?? 'Recorded')}
|
|
318
|
-
: {formattedTime(timestamps()[0] ??
|
|
319
|
-
{formattedTime(timestamps().at(-1) ??
|
|
319
|
+
: {formattedTime(timestamps()[0] ?? timeWindow().from, true)} –{' '}
|
|
320
|
+
{formattedTime(timestamps().at(-1) ?? timeWindow().to, true)}
|
|
320
321
|
</span>
|
|
321
322
|
<Show when={props.selectedInterval && props.onSelectInterval}>
|
|
322
323
|
<Button variant="ghost" size="2xs" onClick={() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSignal, onMount, onCleanup, Show } from 'solid-js';
|
|
1
|
+
import { createMemo, createSignal, onMount, onCleanup, Show } from 'solid-js';
|
|
2
2
|
import { PressableSurface } from '../forms/PressableSurface';
|
|
3
3
|
import { useHostWindow } from '../_internal/app/windows/window/HostWindowContext';
|
|
4
4
|
import { t } from '../i18n/i18n';
|
|
@@ -12,12 +12,14 @@ function guessPlatform(win) {
|
|
|
12
12
|
return 'linux';
|
|
13
13
|
}
|
|
14
14
|
export function WindowControls(props = {}) {
|
|
15
|
+
const isMaximizedQuery = createMemo(() => props.isMaximized);
|
|
16
|
+
const beforeClose = createMemo(() => props.beforeClose);
|
|
15
17
|
const host = useHostWindow();
|
|
16
18
|
const [maximized, setMaximized] = createSignal(false);
|
|
17
19
|
const platform = props.platform ?? guessPlatform(host.window);
|
|
18
20
|
const isMac = platform === 'darwin';
|
|
19
21
|
const syncMaximized = async () => {
|
|
20
|
-
setMaximized((await
|
|
22
|
+
setMaximized((await isMaximizedQuery()?.()) ?? false);
|
|
21
23
|
};
|
|
22
24
|
onMount(() => {
|
|
23
25
|
void syncMaximized();
|
|
@@ -32,7 +34,8 @@ export function WindowControls(props = {}) {
|
|
|
32
34
|
await syncMaximized();
|
|
33
35
|
};
|
|
34
36
|
const handleClose = () => {
|
|
35
|
-
|
|
37
|
+
const guard = beforeClose();
|
|
38
|
+
if (guard && !guard())
|
|
36
39
|
return;
|
|
37
40
|
void props.onClose?.();
|
|
38
41
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Show, createUniqueId, onCleanup, } from 'solid-js';
|
|
1
|
+
import { Show, createMemo, createUniqueId, onCleanup, } from 'solid-js';
|
|
2
2
|
import { tooltipCoordinator, } from '../overlay/tooltipCoordinator';
|
|
3
|
+
import { holdNativeTitle, releaseNativeTitle } from '../overlay/nativeTitleHold';
|
|
3
4
|
import styles from './Badge.module.css.js';
|
|
4
5
|
const TONE_CLASS = {
|
|
5
6
|
neutral: styles.toneNeutral ?? '',
|
|
@@ -24,33 +25,25 @@ export function Badge(props) {
|
|
|
24
25
|
}
|
|
25
26
|
return props.title;
|
|
26
27
|
};
|
|
28
|
+
const tooltip = createMemo(() => ({
|
|
29
|
+
content: effectiveTooltip(),
|
|
30
|
+
placement: props.tooltipPlacement,
|
|
31
|
+
}));
|
|
27
32
|
const showTooltip = () => {
|
|
28
|
-
const
|
|
29
|
-
if (!
|
|
33
|
+
const { content, placement } = tooltip();
|
|
34
|
+
if (!content || !badgeRef)
|
|
30
35
|
return;
|
|
31
|
-
|
|
32
|
-
badgeRef.setAttribute('data-suppressed-title', badgeRef.getAttribute('title') ?? '');
|
|
33
|
-
badgeRef.removeAttribute('title');
|
|
34
|
-
}
|
|
36
|
+
holdNativeTitle(badgeRef);
|
|
35
37
|
tooltipCoordinator.showTooltip({
|
|
36
38
|
id: tooltipId,
|
|
37
39
|
target: badgeRef,
|
|
38
|
-
content
|
|
39
|
-
placement
|
|
40
|
+
content,
|
|
41
|
+
placement,
|
|
40
42
|
});
|
|
41
43
|
};
|
|
42
|
-
const restoreNativeTitle = () => {
|
|
43
|
-
if (badgeRef && badgeRef.hasAttribute('data-suppressed-title')) {
|
|
44
|
-
const original = badgeRef.getAttribute('data-suppressed-title');
|
|
45
|
-
if (original) {
|
|
46
|
-
badgeRef.setAttribute('title', original);
|
|
47
|
-
}
|
|
48
|
-
badgeRef.removeAttribute('data-suppressed-title');
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
44
|
const hideTooltip = () => {
|
|
52
|
-
restoreNativeTitle();
|
|
53
45
|
if (badgeRef) {
|
|
46
|
+
releaseNativeTitle(badgeRef);
|
|
54
47
|
tooltipCoordinator.hideTooltip(badgeRef);
|
|
55
48
|
}
|
|
56
49
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElement } from '../_internal/platform/window/mainRealmDom';
|
|
2
|
-
import { ErrorBoundary, onMount, createSignal } from 'solid-js';
|
|
2
|
+
import { ErrorBoundary, createMemo, onMount, createSignal } from 'solid-js';
|
|
3
3
|
import { Button } from '../forms/Button';
|
|
4
4
|
import { t } from '../i18n/i18n';
|
|
5
5
|
import { toErrorMessage } from '../_internal/base/errorMessage';
|
|
@@ -59,6 +59,10 @@ function FallbackBoundaryHost(props) {
|
|
|
59
59
|
return props.children;
|
|
60
60
|
}
|
|
61
61
|
function DefaultErrorFallback(props) {
|
|
62
|
+
const caught = createMemo(() => props.error);
|
|
63
|
+
const label = createMemo(() => props.label);
|
|
64
|
+
const reset = createMemo(() => props.reset);
|
|
65
|
+
const retryCount = createMemo(() => props.retryCount);
|
|
62
66
|
const host = useKitHost();
|
|
63
67
|
const log = host.log.withTag(LOG_TAG);
|
|
64
68
|
const [copied, setCopied] = createSignal(false);
|
|
@@ -66,37 +70,37 @@ function DefaultErrorFallback(props) {
|
|
|
66
70
|
addBreadcrumb({
|
|
67
71
|
category: 'ui',
|
|
68
72
|
level: 'error',
|
|
69
|
-
message: `ErrorBoundary [${
|
|
70
|
-
data:
|
|
73
|
+
message: `ErrorBoundary [${label() ?? 'anonymous'}] caught error: ${toErrorMessage(caught(), 'Unknown')}`,
|
|
74
|
+
data: label() ? { label: label() } : undefined,
|
|
71
75
|
});
|
|
72
|
-
errorHandler.onUnexpectedError(
|
|
76
|
+
errorHandler.onUnexpectedError(caught(), {
|
|
73
77
|
source: 'ErrorBoundary',
|
|
74
|
-
label:
|
|
78
|
+
label: label(),
|
|
75
79
|
});
|
|
76
|
-
log.error(`Render error contained by boundary${
|
|
80
|
+
log.error(`Render error contained by boundary${label() ? ` (${label()})` : ''}`, caught());
|
|
77
81
|
});
|
|
78
82
|
const retry = () => {
|
|
79
83
|
const onRetry = props.onRetry;
|
|
80
84
|
if (onRetry === undefined) {
|
|
81
|
-
|
|
85
|
+
reset()();
|
|
82
86
|
return;
|
|
83
87
|
}
|
|
84
88
|
void Promise.resolve()
|
|
85
89
|
.then(onRetry)
|
|
86
|
-
.then(() =>
|
|
90
|
+
.then(() => reset()())
|
|
87
91
|
.catch((error) => {
|
|
88
92
|
log.error('Error-boundary retry failed', error);
|
|
89
93
|
errorHandler.onUnexpectedError(error, {
|
|
90
94
|
source: 'ErrorBoundary.retry',
|
|
91
|
-
label:
|
|
95
|
+
label: label(),
|
|
92
96
|
});
|
|
93
97
|
});
|
|
94
98
|
};
|
|
95
99
|
const copyDiagnostic = async () => {
|
|
96
100
|
try {
|
|
97
|
-
const report = generateDiagnosticReport(
|
|
101
|
+
const report = generateDiagnosticReport(caught(), {
|
|
98
102
|
appName: host.appName,
|
|
99
|
-
context: { label:
|
|
103
|
+
context: { label: label(), retryCount: retryCount() },
|
|
100
104
|
});
|
|
101
105
|
const ok = await copyToClipboard(report);
|
|
102
106
|
if (ok) {
|
|
@@ -118,12 +122,12 @@ function DefaultErrorFallback(props) {
|
|
|
118
122
|
};
|
|
119
123
|
return (<div class={styles.fallback} role="alert">
|
|
120
124
|
<span class={styles.title}>
|
|
121
|
-
{
|
|
125
|
+
{retryCount() >= 2
|
|
122
126
|
? t('Persistent error encountered.')
|
|
123
127
|
: t('Something went wrong.')}
|
|
124
128
|
</span>
|
|
125
129
|
<span class={styles.detail}>
|
|
126
|
-
{host.errorPresenter.text(
|
|
130
|
+
{host.errorPresenter.text(caught(), t('Unknown error'))}
|
|
127
131
|
</span>
|
|
128
132
|
<div class={styles.actions}>
|
|
129
133
|
<Button size="sm" variant="secondary" onClick={retry}>
|
|
@@ -132,7 +136,7 @@ function DefaultErrorFallback(props) {
|
|
|
132
136
|
<Button size="sm" variant="secondary" onClick={() => void copyDiagnostic()}>
|
|
133
137
|
{copied() ? t('Copied!') : t('Copy Diagnostic Report')}
|
|
134
138
|
</Button>
|
|
135
|
-
{
|
|
139
|
+
{retryCount() >= 2 && (<Button size="sm" variant="secondary" onClick={reloadWindow}>
|
|
136
140
|
{t('Reload Window')}
|
|
137
141
|
</Button>)}
|
|
138
142
|
</div>
|