@vokril/ui-solid 0.31.0 → 0.33.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 +61 -0
- package/README.md +132 -4
- package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
- package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
- package/dist/{Button-4meERfnv.js → Button-CX7mylBT.js} +125 -117
- 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-Ba3MD9CG.js → HostPortal-De65s6CU.js} +1 -1
- package/dist/{HostPortal-CpWsArs6.cjs → HostPortal-Dm4BmY8M.cjs} +1 -1
- package/dist/{IconPicker-D1G8HK92.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-zNyjLPlk.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-ZTEhZFmJ.js → StatusBarNotificationBell-DKDoWK71.js} +4879 -4789
- package/dist/StatusBarNotificationBell-wO16mjon.cjs +50 -0
- package/dist/Stepper-DzI-gtKd.js +586 -0
- package/dist/Stepper-rpu7lpzB.cjs +1 -0
- package/dist/{Textarea-DASNQNoi.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
- package/dist/{Textarea-szHXQahi.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/browser/workspace.d.cts +15 -0
- package/dist/_internal/contract/browser/workspace.d.ts +15 -0
- package/dist/_internal/contract/menuDensity.d.cts +8 -0
- package/dist/_internal/contract/menuDensity.d.ts +8 -0
- package/dist/_internal/contract/notification.d.cts +19 -3
- package/dist/_internal/contract/notification.d.ts +19 -3
- package/dist/_internal/platform/settings/settingsTypes.d.cts +2 -2
- package/dist/_internal/platform/settings/settingsTypes.d.ts +2 -2
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/appThemeDerivation-Be_oKljl.cjs +1 -0
- package/dist/{server/appThemeDerivation-DBAOkGl7.js → appThemeDerivation-CKoSe4KP.js} +231 -260
- package/dist/base.css +1 -1
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -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 +228 -227
- 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/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 +940 -938
- 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/mainRealmDom-BcPuVvcy.cjs +1 -0
- package/dist/mainRealmDom-DydRT2Us.js +54 -0
- package/dist/{server/useSettingsSubscription-DLEk4k4j.js → menuDensity-6x_EqCGb.js} +7 -5
- package/dist/{server/useSettingsSubscription-DKjCwmRd.cjs → menuDensity-Cf74__OQ.cjs} +1 -1
- 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/holdWhileShown.d.cts +18 -0
- package/dist/notifications/holdWhileShown.d.ts +18 -0
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +3 -3
- package/dist/notifications/nativeEngine.d.cts +34 -2
- package/dist/notifications/nativeEngine.d.ts +34 -2
- package/dist/notifications/notificationEntryList.d.cts +18 -5
- package/dist/notifications/notificationEntryList.d.ts +18 -5
- package/dist/notifications/notificationOverlaySnapshot.d.cts +35 -6
- package/dist/notifications/notificationOverlaySnapshot.d.ts +35 -6
- package/dist/overlay/Modal.d.cts +17 -3
- package/dist/overlay/Modal.d.ts +17 -3
- 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 +46 -43
- package/dist/overlay/modalDefaults.d.cts +23 -0
- package/dist/overlay/modalDefaults.d.ts +23 -0
- package/dist/overlay/modalViewport.d.cts +17 -2
- package/dist/overlay/modalViewport.d.ts +17 -2
- package/dist/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{server/pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/rowSource-D8gyHbEE.cjs +1 -0
- package/dist/rowSource-_4IuosKj.js +1236 -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-C4IrAeWN.js → HostPortal-C4xdfRyM.js} +1 -1
- package/dist/server/{HostPortal-D5ECrJvn.cjs → HostPortal-CwyePpDX.cjs} +1 -1
- package/dist/server/{IconPicker-DDWgB7sm.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-DEp4eEUv.cjs +49 -0
- package/dist/server/{StatusBarNotificationBell-DW2l5O9B.js → StatusBarNotificationBell-kOm2ZNkl.js} +4567 -4477
- package/dist/server/Stepper-C04rOZcI.cjs +1 -0
- package/dist/server/Stepper-CVAOsf3o.js +381 -0
- package/dist/server/{Textarea-Bh5LVrBn.cjs → Textarea-BG6F8taO.cjs} +1 -1
- package/dist/server/{Textarea-DVkfGkP0.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/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/appThemeDerivation-Be_oKljl.cjs +1 -0
- package/dist/{appThemeDerivation-DBAOkGl7.js → server/appThemeDerivation-CKoSe4KP.js} +231 -260
- 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-Dvu7iEk1.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 +153 -152
- 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-BEARfm54.js → index-CPUZyKo7.js} +2 -2
- package/dist/server/{index-C6rYfWCJ.cjs → index-CVbkasNJ.cjs} +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +673 -671
- 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/{useSettingsSubscription-DLEk4k4j.js → server/menuDensity-6x_EqCGb.js} +7 -5
- package/dist/{useSettingsSubscription-DKjCwmRd.cjs → server/menuDensity-Cf74__OQ.cjs} +1 -1
- 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 +3 -3
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +32 -29
- package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{pageTourState-BcBF8w89.js → server/pageTourState-DsSKdPOu.js} +160 -169
- package/dist/server/rowSource-BSa7rgYJ.js +1128 -0
- package/dist/server/rowSource-Yw-xtlih.cjs +1 -0
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +26 -25
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +29 -28
- 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/settings/index.cjs +1 -1
- package/dist/settings/index.js +26 -25
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
- package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
- package/dist/solid/_internal/contract/menuDensity.js +1 -0
- package/dist/solid/_internal/platform/settings/settingsTypes.js +1 -0
- package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
- package/dist/solid/desktop/WindowControls.jsx +6 -3
- package/dist/solid/feedback/Badge.jsx +9 -5
- package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
- package/dist/solid/forms/Button.jsx +15 -9
- 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/InputMessage.jsx +11 -10
- 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 +14 -9
- 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 +6 -5
- package/dist/solid/navigation/Accordion.jsx +8 -5
- package/dist/solid/navigation/Tabs.jsx +11 -8
- package/dist/solid/notifications/NotificationHost.jsx +3 -16
- package/dist/solid/notifications/NotificationItem.jsx +59 -55
- package/dist/solid/notifications/NotificationPanel.jsx +16 -8
- package/dist/solid/notifications/NotificationsCenter.jsx +2 -0
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
- package/dist/solid/notifications/holdWhileShown.js +30 -0
- package/dist/solid/notifications/nativeEngine.js +52 -1
- package/dist/solid/notifications/notificationEntryList.js +25 -9
- package/dist/solid/notifications/notificationOverlaySnapshot.js +26 -0
- package/dist/solid/notifications/toast.js +4 -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/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 +44 -35
- package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
- package/dist/solid/overlay/Tooltip.jsx +5 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +7 -7
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +65 -50
- 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/popover/Popover.jsx +17 -11
- package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
- package/dist/solid/tokens/palette/index.js +1 -0
- package/dist/solid/tree/TreeRow.jsx +21 -16
- package/dist/solid/tree/TreeSurface.jsx +15 -14
- package/dist/solid/widgets/SettingsField.jsx +11 -10
- package/dist/style.css +3 -2
- package/dist/theme.css +2 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.js +29 -28
- 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/tokens.css +2 -1
- package/dist/tree/TreeRow.d.cts +5 -4
- package/dist/tree/TreeRow.d.ts +5 -4
- package/dist/tree/descriptor.d.cts +13 -3
- package/dist/tree/descriptor.d.ts +13 -3
- 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-Ch1k9v5j.cjs +0 -1
- package/dist/AttributeGrid-DqFd4gBm.js +0 -320
- package/dist/Button-OyZHrl-t.cjs +0 -1
- package/dist/CommandPalette-CxYZUJtN.cjs +0 -2
- package/dist/CommandPalette-DwOp8y1-.js +0 -4018
- package/dist/CopyButton-16QNPgz6.cjs +0 -1
- package/dist/CopyButton-BVS49lMS.js +0 -63
- package/dist/DateRangePicker-8QvydugY.js +0 -550
- package/dist/DateRangePicker-DI-06xWY.cjs +0 -9
- package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
- package/dist/EmptyState-Dph6HU74.js +0 -50
- package/dist/GuidedTour-DUQwdW8n.cjs +0 -1
- package/dist/GuidedTour-DXMmHn0o.js +0 -483
- package/dist/IconPicker-Q-ZDtNkd.cjs +0 -1
- package/dist/Input-Brp5EDhg.cjs +0 -1
- package/dist/Input-CZi8KEfm.js +0 -374
- package/dist/Modal-CBi7Wd2V.cjs +0 -1
- package/dist/Modal-iyY1HUtr.js +0 -588
- package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
- package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
- package/dist/PageSkeleton-B_-4fz1q.cjs +0 -30
- package/dist/Popover-DVi179wu.js +0 -207
- package/dist/Popover-DXrczbt9.cjs +0 -1
- package/dist/SearchableSelect-DtHbWJhR.js +0 -328
- package/dist/SearchableSelect-yLVqCGFo.cjs +0 -1
- package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +0 -50
- package/dist/Stepper-CyRgzWlR.js +0 -583
- package/dist/Stepper-u2ZsE5oP.cjs +0 -1
- package/dist/TimeSeriesChart-D7lIqolp.js +0 -441
- package/dist/TimeSeriesChart-DGzM9B--.cjs +0 -1
- package/dist/ToggleButton-B22PsCqo.js +0 -2138
- package/dist/ToggleButton-DWslrIBN.cjs +0 -1
- package/dist/appThemeDerivation-BylmT80v.cjs +0 -1
- package/dist/createDialogShellFocus-CQ0VNC2g.cjs +0 -1
- package/dist/createDialogShellFocus-DbiQmLgb.js +0 -282
- package/dist/createResizableSidebar-COlpGQ7H.cjs +0 -1
- package/dist/createResizableSidebar-cmCKTIg_.js +0 -504
- package/dist/kitHost-BfJExE1G.cjs +0 -1
- package/dist/kitHost-CVAEi9sF.js +0 -23
- package/dist/mainRealmDom-B215swW-.js +0 -166
- package/dist/mainRealmDom-BYGSE-fo.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-Bpjlauuz.js +0 -281
- package/dist/server/AttributeGrid-DNYdKb8J.cjs +0 -1
- package/dist/server/Button-0AXWRw9Q.cjs +0 -1
- package/dist/server/Button-3yNrnn4P.js +0 -220
- package/dist/server/CommandPalette-BuVxnqBG.cjs +0 -1
- package/dist/server/CommandPalette-Dn3NKXPM.js +0 -3291
- package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
- package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
- package/dist/server/DateRangePicker-BFzNjaME.cjs +0 -9
- package/dist/server/DateRangePicker-CnYkTgXX.js +0 -484
- package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
- package/dist/server/GuidedTour-BZardPYW.js +0 -400
- package/dist/server/GuidedTour-yhdZk2SU.cjs +0 -1
- package/dist/server/IconPicker-C5lAN9pX.cjs +0 -1
- package/dist/server/Input-AdF-i0O8.js +0 -245
- package/dist/server/Input-XF9Jr0G9.cjs +0 -1
- package/dist/server/Modal-C5dzgcRW.js +0 -420
- package/dist/server/Modal-nAhBS1L9.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-C5avmGWz.cjs +0 -1
- package/dist/server/Popover-H3AAYZI0.js +0 -439
- package/dist/server/SearchableSelect-CZrXDKfC.cjs +0 -1
- package/dist/server/SearchableSelect-DMqed5Er.js +0 -205
- package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +0 -49
- package/dist/server/Stepper-CpapA_WH.cjs +0 -1
- package/dist/server/Stepper-gGA7JwjV.js +0 -375
- package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
- package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
- package/dist/server/ToggleButton-CA9T-OsI.cjs +0 -1
- package/dist/server/ToggleButton-CBNKajZa.js +0 -1335
- package/dist/server/appThemeDerivation-BylmT80v.cjs +0 -1
- package/dist/server/createDialogShellFocus-CDaLuPg8.cjs +0 -1
- package/dist/server/createDialogShellFocus-LGDBOVnr.js +0 -369
- package/dist/server/createResizableSidebar-v40ZOb-Q.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
|
@@ -19,7 +19,7 @@ import { openExternalUrl } from '../_internal/app/platform/electronBridge';
|
|
|
19
19
|
import { useKitHost } from '../host/kitHost';
|
|
20
20
|
import { realmNotificationShell } from './notificationCardServices';
|
|
21
21
|
import { RunningProgressCards, useRunningProgressCards, } from './RunningProgressCards';
|
|
22
|
-
import { followNotificationListFocus, moveNotificationEntryFocus, notificationEntryMark, timelineEntryAriaLabel, } from './notificationEntryList';
|
|
22
|
+
import { followNotificationListFocus, moveNotificationEntryFocus, notificationEntryMark, notificationListMark, timelineEntryAriaLabel, } from './notificationEntryList';
|
|
23
23
|
import { notificationSettings } from '../_internal/app/settings/descriptors/notification';
|
|
24
24
|
import { useSettingsSubscription } from '../_internal/app/settings/useSettingsSubscription';
|
|
25
25
|
import { useDesktopContextMenu } from '../context/DesktopContextMenuContext';
|
|
@@ -34,6 +34,7 @@ import { LogFilterBar } from '.';
|
|
|
34
34
|
import { OverlayScrollArea } from '../overlay/OverlayScrollArea';
|
|
35
35
|
import { compileNotificationSearchMatcher, filterNotificationTimeline, } from './notificationTimelineFilter';
|
|
36
36
|
import { toggleInSet } from './setToggleInSet';
|
|
37
|
+
import { holdWhileShown } from './holdWhileShown';
|
|
37
38
|
import styles from './NotificationPanel.module.css.js';
|
|
38
39
|
import { useHostDocument } from '../_internal/app/windows/window/HostWindowContext';
|
|
39
40
|
function formatNotificationTime(createdAt) {
|
|
@@ -68,6 +69,8 @@ const ALL_TONES = ['error', 'warning', 'info', 'success'];
|
|
|
68
69
|
const HEADER_OVERFLOW_BASE = 189;
|
|
69
70
|
const HEADER_OVERFLOW_STEP = 27;
|
|
70
71
|
export function NotificationPanel(props) {
|
|
72
|
+
const timelineProp = createMemo(() => props.notificationTimeline);
|
|
73
|
+
const timelineRecords = () => timelineProp()();
|
|
71
74
|
const hostDocument = useHostDocument();
|
|
72
75
|
const host = useKitHost();
|
|
73
76
|
const { notifications } = host;
|
|
@@ -92,7 +95,7 @@ export function NotificationPanel(props) {
|
|
|
92
95
|
const desktopMenu = useDesktopContextMenu();
|
|
93
96
|
const running = useRunningProgressCards();
|
|
94
97
|
const compiledSearch = createMemo(() => compileNotificationSearchMatcher(searchQuery(), regexMode()));
|
|
95
|
-
const filteredEntries = createMemo(() => filterNotificationTimeline(
|
|
98
|
+
const filteredEntries = createMemo(() => filterNotificationTimeline(timelineRecords(), {
|
|
96
99
|
tones: toneSelection(),
|
|
97
100
|
sources: sourceFilter(),
|
|
98
101
|
priorities: priorityFilter(),
|
|
@@ -101,7 +104,7 @@ export function NotificationPanel(props) {
|
|
|
101
104
|
}));
|
|
102
105
|
const availableSources = createMemo(() => {
|
|
103
106
|
const set = new Set();
|
|
104
|
-
for (const e of
|
|
107
|
+
for (const e of timelineRecords())
|
|
105
108
|
set.add(e.source);
|
|
106
109
|
return Array.from(set).sort();
|
|
107
110
|
});
|
|
@@ -128,7 +131,7 @@ export function NotificationPanel(props) {
|
|
|
128
131
|
followNotificationListFocus({
|
|
129
132
|
container: () => listEl,
|
|
130
133
|
drawn: () => [running(), displayRows(), expandedGroupKeys()],
|
|
131
|
-
fallback: () =>
|
|
134
|
+
fallback: (container) => container.focus(),
|
|
132
135
|
});
|
|
133
136
|
const toggleGroupExpanded = (groupId) => {
|
|
134
137
|
toggleInSet(setExpandedGroupKeys, groupId);
|
|
@@ -267,7 +270,11 @@ export function NotificationPanel(props) {
|
|
|
267
270
|
};
|
|
268
271
|
onMount(() => {
|
|
269
272
|
const unsubscribe = timeline.subscribeUnread(setUnreadCount);
|
|
270
|
-
|
|
273
|
+
const stopShown = holdWhileShown(panelEl, () => notifications.stack.registerShownCenter());
|
|
274
|
+
onCleanup(() => {
|
|
275
|
+
unsubscribe();
|
|
276
|
+
stopShown();
|
|
277
|
+
});
|
|
271
278
|
});
|
|
272
279
|
const ackUnread = () => {
|
|
273
280
|
if (unreadCount() > 0)
|
|
@@ -411,7 +418,7 @@ export function NotificationPanel(props) {
|
|
|
411
418
|
};
|
|
412
419
|
const bulkPinSelected = (pin) => {
|
|
413
420
|
const sel = selectedIds();
|
|
414
|
-
const entries =
|
|
421
|
+
const entries = timelineRecords().filter((e) => sel.has(e.id));
|
|
415
422
|
for (const e of entries) {
|
|
416
423
|
if ((e.pinned ?? false) !== pin)
|
|
417
424
|
timeline.togglePin(e.id);
|
|
@@ -554,7 +561,7 @@ export function NotificationPanel(props) {
|
|
|
554
561
|
id: 'clear',
|
|
555
562
|
icon: () => <VpTrash class={styles.notificationActionIcon}/>,
|
|
556
563
|
label: () => t('Clear all notifications'),
|
|
557
|
-
disabled: () =>
|
|
564
|
+
disabled: () => timelineRecords().length === 0,
|
|
558
565
|
onSelect: clearAllNotifications,
|
|
559
566
|
},
|
|
560
567
|
]);
|
|
@@ -648,9 +655,10 @@ export function NotificationPanel(props) {
|
|
|
648
655
|
</Button>
|
|
649
656
|
</Show>
|
|
650
657
|
</LogFilterBar>
|
|
658
|
+
|
|
651
659
|
<OverlayScrollArea viewportClass={styles.notificationTimeline} viewportRef={(element) => {
|
|
652
660
|
listEl = element;
|
|
653
|
-
}} data-tour-target="notifications-timeline" onKeyDown={(event) => moveNotificationEntryFocus(event, event.currentTarget)}>
|
|
661
|
+
}} {...notificationListMark} role="group" tabIndex={0} aria-label={t('Notifications')} data-tour-target="notifications-timeline" onKeyDown={(event) => moveNotificationEntryFocus(event, event.currentTarget)}>
|
|
654
662
|
<RunningProgressCards items={running()}/>
|
|
655
663
|
<Show when={filteredEntries().length > 0} fallback={<Show when={hasActiveFilter() || running().length === 0}>
|
|
656
664
|
<p class={styles.notificationEmpty}>
|
|
@@ -60,9 +60,11 @@ export function NotificationsCenter(props) {
|
|
|
60
60
|
onMount(() => {
|
|
61
61
|
const unsubscribe = notifications.timeline.subscribe(setEntries);
|
|
62
62
|
const filterChange = notifications.onDidChangeFilter((filter) => setFiltered(filter !== 'off'));
|
|
63
|
+
const shown = notifications.stack.registerShownCenter();
|
|
63
64
|
onCleanup(() => {
|
|
64
65
|
unsubscribe();
|
|
65
66
|
filterChange.dispose();
|
|
67
|
+
shown.dispose();
|
|
66
68
|
});
|
|
67
69
|
});
|
|
68
70
|
useSettingsSubscription(notificationSettings, () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Show, createEffect, createSignal, on, onCleanup, onMount } from 'solid-js';
|
|
1
|
+
import { Show, createEffect, createMemo, createSignal, on, onCleanup, onMount } from 'solid-js';
|
|
2
2
|
import { PressableSurface } from '../forms/PressableSurface';
|
|
3
3
|
import { VpBell, VpBellOff } from '@vokril/icons';
|
|
4
4
|
import { Popover } from '../overlay/popover/Popover';
|
|
@@ -10,10 +10,11 @@ import { hiddenRunningProgress } from './nativeEngine';
|
|
|
10
10
|
import { t } from '../i18n/i18n';
|
|
11
11
|
import styles from './StatusBarNotificationBell.module.css.js';
|
|
12
12
|
export function StatusBarNotificationBell(props) {
|
|
13
|
+
const openProp = createMemo(() => props.open);
|
|
13
14
|
const notifications = useKitHost().notifications;
|
|
14
15
|
const { timeline, stack } = notifications;
|
|
15
16
|
const [ownOpen, setOwnOpen] = createSignal(false);
|
|
16
|
-
const open = () =>
|
|
17
|
+
const open = () => openProp() ?? ownOpen();
|
|
17
18
|
const [unread, setUnread] = createSignal(0);
|
|
18
19
|
const [dndSetting, setDndSetting] = createSignal(notificationSettings.get().doNotDisturb);
|
|
19
20
|
const [filtered, setFiltered] = createSignal(notifications.getFilter() !== 'off');
|
|
@@ -36,7 +37,7 @@ export function StatusBarNotificationBell(props) {
|
|
|
36
37
|
const setOpen = (next) => {
|
|
37
38
|
if (next === open())
|
|
38
39
|
return;
|
|
39
|
-
if (
|
|
40
|
+
if (openProp() === undefined)
|
|
40
41
|
setOwnOpen(next);
|
|
41
42
|
props.onOpenChange?.(next);
|
|
42
43
|
};
|
|
@@ -37,6 +37,8 @@ function progressHandle(handle, payload) {
|
|
|
37
37
|
}),
|
|
38
38
|
state: () => handle.state(),
|
|
39
39
|
onDidChangeState: handle.onDidChangeState,
|
|
40
|
+
visible: () => handle.visible(),
|
|
41
|
+
onDidChangeVisibility: handle.onDidChangeVisibility,
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
const inert = () => undefined;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export function hasShownBox(element) {
|
|
2
|
+
if (!element.isConnected)
|
|
3
|
+
return false;
|
|
4
|
+
const box = element.getBoundingClientRect();
|
|
5
|
+
return box.width > 0 && box.height > 0;
|
|
6
|
+
}
|
|
7
|
+
export function holdWhileShown(element, hold) {
|
|
8
|
+
let held;
|
|
9
|
+
const sync = () => {
|
|
10
|
+
const shown = hasShownBox(element);
|
|
11
|
+
if (shown && held === undefined) {
|
|
12
|
+
held = hold();
|
|
13
|
+
}
|
|
14
|
+
else if (!shown && held !== undefined) {
|
|
15
|
+
const release = held;
|
|
16
|
+
held = undefined;
|
|
17
|
+
release.dispose();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const Observer = element.ownerDocument.defaultView?.ResizeObserver;
|
|
21
|
+
const observer = Observer === undefined ? undefined : new Observer(sync);
|
|
22
|
+
observer?.observe(element);
|
|
23
|
+
sync();
|
|
24
|
+
return () => {
|
|
25
|
+
observer?.disconnect();
|
|
26
|
+
const release = held;
|
|
27
|
+
held = undefined;
|
|
28
|
+
release?.dispose();
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -127,6 +127,28 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
reevaluateSchedules();
|
|
130
|
+
reportVisibility();
|
|
131
|
+
}
|
|
132
|
+
let shownCenters = 0;
|
|
133
|
+
function isVisible(item) {
|
|
134
|
+
if (shownCenters > 0)
|
|
135
|
+
return true;
|
|
136
|
+
if (item.priority === 'acknowledgment-required') {
|
|
137
|
+
return snapshot().find((card) => card.priority === 'acknowledgment-required')?.id === item.id;
|
|
138
|
+
}
|
|
139
|
+
return item.outOfSightSince === undefined;
|
|
140
|
+
}
|
|
141
|
+
function reportVisibility() {
|
|
142
|
+
for (const [id, run] of runs) {
|
|
143
|
+
const item = items.get(id);
|
|
144
|
+
if (item === undefined)
|
|
145
|
+
continue;
|
|
146
|
+
const visible = isVisible(item);
|
|
147
|
+
if (run.visible === visible)
|
|
148
|
+
continue;
|
|
149
|
+
run.visible = visible;
|
|
150
|
+
run.visibility.fire(visible);
|
|
151
|
+
}
|
|
130
152
|
}
|
|
131
153
|
function isSticky(item) {
|
|
132
154
|
if (isNotificationSticky(item, getSettings()))
|
|
@@ -149,7 +171,12 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
149
171
|
const current = runs.get(id);
|
|
150
172
|
if (current)
|
|
151
173
|
return current;
|
|
152
|
-
const run = {
|
|
174
|
+
const run = {
|
|
175
|
+
state: 'open',
|
|
176
|
+
changed: new Emitter(),
|
|
177
|
+
visible: false,
|
|
178
|
+
visibility: new Emitter(),
|
|
179
|
+
};
|
|
153
180
|
runs.set(id, run);
|
|
154
181
|
return run;
|
|
155
182
|
}
|
|
@@ -163,8 +190,13 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
163
190
|
function announceEnd(run) {
|
|
164
191
|
if (!run)
|
|
165
192
|
return;
|
|
193
|
+
if (run.visible) {
|
|
194
|
+
run.visible = false;
|
|
195
|
+
run.visibility.fire(false);
|
|
196
|
+
}
|
|
166
197
|
run.changed.fire(run.state);
|
|
167
198
|
run.changed.dispose();
|
|
199
|
+
run.visibility.dispose();
|
|
168
200
|
}
|
|
169
201
|
function closeCard(id, state) {
|
|
170
202
|
cancelHide(id);
|
|
@@ -275,6 +307,8 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
275
307
|
close: () => undefined,
|
|
276
308
|
state: () => 'suppressed',
|
|
277
309
|
onDidChangeState: () => NO_SUBSCRIPTION,
|
|
310
|
+
visible: () => false,
|
|
311
|
+
onDidChangeVisibility: () => NO_SUBSCRIPTION,
|
|
278
312
|
};
|
|
279
313
|
}
|
|
280
314
|
const id = dedupId ?? nextId();
|
|
@@ -312,6 +346,8 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
312
346
|
},
|
|
313
347
|
state: () => run.state,
|
|
314
348
|
onDidChangeState: (listener, thisArgs) => run.state === 'open' ? run.changed.event(listener, thisArgs) : NO_SUBSCRIPTION,
|
|
349
|
+
visible: () => run.visible,
|
|
350
|
+
onDidChangeVisibility: (listener, thisArgs) => run.state === 'open' ? run.visibility.event(listener, thisArgs) : NO_SUBSCRIPTION,
|
|
315
351
|
};
|
|
316
352
|
}
|
|
317
353
|
function subscribeNotifications(listener) {
|
|
@@ -394,6 +430,20 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
394
430
|
if (recordSight())
|
|
395
431
|
emit();
|
|
396
432
|
}
|
|
433
|
+
function registerShownCenter() {
|
|
434
|
+
shownCenters += 1;
|
|
435
|
+
reportVisibility();
|
|
436
|
+
let shown = true;
|
|
437
|
+
return {
|
|
438
|
+
dispose: () => {
|
|
439
|
+
if (!shown)
|
|
440
|
+
return;
|
|
441
|
+
shown = false;
|
|
442
|
+
shownCenters -= 1;
|
|
443
|
+
reportVisibility();
|
|
444
|
+
},
|
|
445
|
+
};
|
|
446
|
+
}
|
|
397
447
|
function dispose() {
|
|
398
448
|
for (const id of timers.keys())
|
|
399
449
|
cancelHide(id);
|
|
@@ -415,6 +465,7 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
415
465
|
suppress: suppressNotifications,
|
|
416
466
|
reject: rejectNotification,
|
|
417
467
|
refresh,
|
|
468
|
+
registerShownCenter,
|
|
418
469
|
dispose,
|
|
419
470
|
};
|
|
420
471
|
}
|
|
@@ -4,17 +4,26 @@ import { t } from '../i18n/i18n';
|
|
|
4
4
|
import { NOTIFICATION_SEVERITY_LABELS } from './notificationSeverityLabels';
|
|
5
5
|
import { resolveNotificationSource } from './notificationSources';
|
|
6
6
|
const ENTRY_ATTRIBUTE = 'data-notification-entry';
|
|
7
|
+
const LIST_ATTRIBUTE = 'data-notification-list';
|
|
7
8
|
export const notificationEntryMark = { [ENTRY_ATTRIBUTE]: '' };
|
|
9
|
+
export const notificationListMark = { [LIST_ATTRIBUTE]: '' };
|
|
8
10
|
const ENTRY_SELECTOR = `[${ENTRY_ATTRIBUTE}]`;
|
|
11
|
+
const LIST_SELECTOR = `[${LIST_ATTRIBUTE}]`;
|
|
9
12
|
function entriesUnder(root) {
|
|
10
13
|
return Array.from(root.querySelectorAll(ENTRY_SELECTOR));
|
|
11
14
|
}
|
|
15
|
+
function listUnder(root) {
|
|
16
|
+
const self = root;
|
|
17
|
+
if (typeof self.matches === 'function' && self.matches(LIST_SELECTOR))
|
|
18
|
+
return root;
|
|
19
|
+
return root.querySelector(LIST_SELECTOR) ?? undefined;
|
|
20
|
+
}
|
|
12
21
|
export function focusFirstNotificationEntry(root, options) {
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
22
|
+
const target = entriesUnder(root)[0] ?? listUnder(root);
|
|
23
|
+
if (target === undefined)
|
|
15
24
|
return false;
|
|
16
|
-
|
|
17
|
-
return
|
|
25
|
+
target.focus(options);
|
|
26
|
+
return target.ownerDocument.activeElement === target;
|
|
18
27
|
}
|
|
19
28
|
export function notificationListFocusStep(event, current, count, paging) {
|
|
20
29
|
if (count === 0)
|
|
@@ -93,13 +102,20 @@ export function moveNotificationEntryFocus(event, viewport) {
|
|
|
93
102
|
return;
|
|
94
103
|
if (isEditable(target))
|
|
95
104
|
return;
|
|
96
|
-
const entry = target.closest(ENTRY_SELECTOR);
|
|
97
|
-
if (entry === null)
|
|
98
|
-
return;
|
|
99
105
|
const entries = entriesUnder(viewport);
|
|
100
|
-
const
|
|
101
|
-
|
|
106
|
+
const entry = target.closest(ENTRY_SELECTOR);
|
|
107
|
+
let current;
|
|
108
|
+
if (entry !== null) {
|
|
109
|
+
current = entries.indexOf(entry);
|
|
110
|
+
if (current < 0)
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
else if (target === viewport && target.matches(LIST_SELECTOR)) {
|
|
114
|
+
current = null;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
102
117
|
return;
|
|
118
|
+
}
|
|
103
119
|
const next = notificationListFocusStep(event, current, entries.length, (from, direction) => notificationListPageStep(measureNotificationListPage(viewport, entries), from, direction));
|
|
104
120
|
if (next === null)
|
|
105
121
|
return;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { MENU_DENSITIES } from '../_internal/contract/menuDensity';
|
|
2
|
+
import { isOneOf } from '../_internal/base/isOneOf';
|
|
1
3
|
import { isNotificationSticky, resolveNotificationDuration, } from './nativeEngine';
|
|
2
4
|
import { isSourceMuted } from './notificationSuppressions';
|
|
3
5
|
export function positiveBounds(rect) {
|
|
@@ -75,6 +77,30 @@ export function overlayItemOf(item, context) {
|
|
|
75
77
|
createdAt: item.createdAt,
|
|
76
78
|
};
|
|
77
79
|
}
|
|
80
|
+
const MENU_DENSITY_ATTRIBUTE = 'data-menu-density';
|
|
81
|
+
export const OVERLAY_APPEARANCE_ATTRIBUTES = [
|
|
82
|
+
'class',
|
|
83
|
+
'style',
|
|
84
|
+
'data-theme',
|
|
85
|
+
'data-palette',
|
|
86
|
+
MENU_DENSITY_ATTRIBUTE,
|
|
87
|
+
];
|
|
88
|
+
export function overlayAppearanceOf(root, computed) {
|
|
89
|
+
const cssVariables = {};
|
|
90
|
+
for (let index = 0; index < root.style.length; index++) {
|
|
91
|
+
const name = root.style.item(index);
|
|
92
|
+
if (name.startsWith('--'))
|
|
93
|
+
cssVariables[name] = root.style.getPropertyValue(name);
|
|
94
|
+
}
|
|
95
|
+
const menuDensity = root.getAttribute(MENU_DENSITY_ATTRIBUTE);
|
|
96
|
+
return {
|
|
97
|
+
cssVariables,
|
|
98
|
+
fontFamily: computed.fontFamily,
|
|
99
|
+
fontSize: computed.fontSize,
|
|
100
|
+
theme: root.classList.contains('light') ? 'light' : 'dark',
|
|
101
|
+
...(isOneOf(MENU_DENSITIES, menuDensity) ? { menuDensity } : {}),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
78
104
|
export function overlayStateOf(input) {
|
|
79
105
|
return {
|
|
80
106
|
visible: input.visible,
|
|
@@ -52,6 +52,8 @@ export const suppressedProgressHandle = {
|
|
|
52
52
|
updateActions: () => undefined,
|
|
53
53
|
state: () => 'suppressed',
|
|
54
54
|
onDidChangeState: () => ({ dispose: () => undefined }),
|
|
55
|
+
visible: () => false,
|
|
56
|
+
onDidChangeVisibility: () => ({ dispose: () => undefined }),
|
|
55
57
|
};
|
|
56
58
|
function issueKeysOf(options) {
|
|
57
59
|
return {
|
|
@@ -249,6 +251,8 @@ export function createToast(deps) {
|
|
|
249
251
|
},
|
|
250
252
|
state: () => handle.state(),
|
|
251
253
|
onDidChangeState: handle.onDidChangeState,
|
|
254
|
+
visible: () => handle.visible(),
|
|
255
|
+
onDidChangeVisibility: handle.onDidChangeVisibility,
|
|
252
256
|
};
|
|
253
257
|
},
|
|
254
258
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Show, createEffect, createSignal, createUniqueId, on, onCleanup, } from 'solid-js';
|
|
1
|
+
import { Show, createEffect, createMemo, createSignal, createUniqueId, on, onCleanup, } from 'solid-js';
|
|
2
2
|
import { OverlayPortal } from './OverlayPortal';
|
|
3
3
|
import { Button } from '../forms/Button';
|
|
4
4
|
import { Checkbox } from '../forms/Checkbox';
|
|
@@ -17,6 +17,10 @@ import { ActionPlaceRow } from './ActionPlaceRow';
|
|
|
17
17
|
import { isKey } from '../_internal/base/keys';
|
|
18
18
|
const hostDocOf = (host) => (host?.() ?? getMainWindow().window).document;
|
|
19
19
|
export function ConfirmDialog(props) {
|
|
20
|
+
const variant = createMemo(() => props.variant ?? 'default');
|
|
21
|
+
const sticky = createMemo(() => Boolean(props.sticky));
|
|
22
|
+
const cancelLabel = createMemo(() => props.cancelLabel ?? t('Cancel'));
|
|
23
|
+
const checkboxOption = createMemo(() => props.checkbox);
|
|
20
24
|
const titleId = createUniqueId();
|
|
21
25
|
const placeId = createUniqueId();
|
|
22
26
|
const messageId = createUniqueId();
|
|
@@ -40,9 +44,9 @@ export function ConfirmDialog(props) {
|
|
|
40
44
|
const [checked, setChecked] = createSignal(false);
|
|
41
45
|
createEffect(on(() => props.open(), (open) => {
|
|
42
46
|
if (open)
|
|
43
|
-
setChecked(
|
|
47
|
+
setChecked(checkboxOption()?.checked ?? false);
|
|
44
48
|
}));
|
|
45
|
-
const answer = () =>
|
|
49
|
+
const answer = () => checkboxOption() ? { checkboxChecked: checked() } : {};
|
|
46
50
|
const focusScope = createDialogFocusScope({
|
|
47
51
|
open: () => props.open(),
|
|
48
52
|
ownerDocument: () => hostDocOf(props.host),
|
|
@@ -52,12 +56,12 @@ export function ConfirmDialog(props) {
|
|
|
52
56
|
const handleOverlayMouseDown = (event) => {
|
|
53
57
|
const onOverlay = event.target === event.currentTarget;
|
|
54
58
|
overlayGuard.noteMouseDown(onOverlay);
|
|
55
|
-
if (onOverlay &&
|
|
59
|
+
if (onOverlay && sticky())
|
|
56
60
|
event.preventDefault();
|
|
57
61
|
};
|
|
58
62
|
const handleOverlayClick = (event) => {
|
|
59
63
|
if (overlayGuard.shouldCloseOnClick(event.target === event.currentTarget) &&
|
|
60
|
-
!
|
|
64
|
+
!sticky()) {
|
|
61
65
|
props.onCancel(answer());
|
|
62
66
|
}
|
|
63
67
|
};
|
|
@@ -69,7 +73,7 @@ export function ConfirmDialog(props) {
|
|
|
69
73
|
});
|
|
70
74
|
if (intent === 'dismiss') {
|
|
71
75
|
event.stopPropagation();
|
|
72
|
-
if (!
|
|
76
|
+
if (!sticky())
|
|
73
77
|
props.onCancel(answer());
|
|
74
78
|
return;
|
|
75
79
|
}
|
|
@@ -82,7 +86,7 @@ export function ConfirmDialog(props) {
|
|
|
82
86
|
});
|
|
83
87
|
if (intent === 'dismiss') {
|
|
84
88
|
event.stopPropagation();
|
|
85
|
-
if (!
|
|
89
|
+
if (!sticky())
|
|
86
90
|
props.onCancel(answer());
|
|
87
91
|
return;
|
|
88
92
|
}
|
|
@@ -96,11 +100,11 @@ export function ConfirmDialog(props) {
|
|
|
96
100
|
if (!el.isConnected)
|
|
97
101
|
return;
|
|
98
102
|
const buttons = Array.from(el.querySelectorAll('button:not([disabled])'));
|
|
99
|
-
const isDanger = (
|
|
103
|
+
const isDanger = variant() === 'danger';
|
|
100
104
|
const targetBtn = isDanger
|
|
101
|
-
?
|
|
105
|
+
? sticky()
|
|
102
106
|
? undefined
|
|
103
|
-
: (buttons.find((b) => b.textContent === (
|
|
107
|
+
: (buttons.find((b) => b.textContent === (cancelLabel())) ?? buttons[0])
|
|
104
108
|
: (buttons[buttons.length - 1] ?? buttons[0]);
|
|
105
109
|
(targetBtn ?? el).focus();
|
|
106
110
|
});
|
|
@@ -128,19 +132,19 @@ export function ConfirmDialog(props) {
|
|
|
128
132
|
</pre>
|
|
129
133
|
</OverlayScrollArea>)}
|
|
130
134
|
</Show>
|
|
131
|
-
<Show when={
|
|
135
|
+
<Show when={checkboxOption()}>
|
|
132
136
|
{(checkbox) => (<Checkbox class={styles.checkbox} checked={checked()} onChange={setChecked}>
|
|
133
137
|
{checkbox().label}
|
|
134
138
|
</Checkbox>)}
|
|
135
139
|
</Show>
|
|
136
140
|
</div>
|
|
137
141
|
<div class={styles.footer}>
|
|
138
|
-
<Show when={!
|
|
142
|
+
<Show when={!sticky()}>
|
|
139
143
|
<Button size="lg" variant="secondary" onClick={() => props.onCancel(answer())}>
|
|
140
|
-
{
|
|
144
|
+
{cancelLabel()}
|
|
141
145
|
</Button>
|
|
142
146
|
</Show>
|
|
143
|
-
<Button size="lg" variant={(
|
|
147
|
+
<Button size="lg" variant={variant() === 'danger'
|
|
144
148
|
? 'dangerSolid'
|
|
145
149
|
: 'primary'} disabled={remaining() > 0} onClick={() => props.onConfirm(answer())}>
|
|
146
150
|
{remaining() > 0
|
|
@@ -230,6 +234,7 @@ export function SaveDiscardDialog(props) {
|
|
|
230
234
|
</Show>);
|
|
231
235
|
}
|
|
232
236
|
export function InputDialog(props) {
|
|
237
|
+
const multiline = createMemo(() => Boolean(props.multiline));
|
|
233
238
|
const titleId = createUniqueId();
|
|
234
239
|
const [value, setValue] = createSignal(props.defaultValue ?? '');
|
|
235
240
|
createEffect(on(() => props.open(), (open) => {
|
|
@@ -252,7 +257,7 @@ export function InputDialog(props) {
|
|
|
252
257
|
};
|
|
253
258
|
const handleKeyDown = (event) => {
|
|
254
259
|
const intent = resolveDialogShellKeyIntent(event.key, {
|
|
255
|
-
confirmOnEnter: !
|
|
260
|
+
confirmOnEnter: !multiline(),
|
|
256
261
|
});
|
|
257
262
|
if (intent === 'dismiss') {
|
|
258
263
|
event.stopPropagation();
|
|
@@ -294,7 +299,7 @@ export function InputDialog(props) {
|
|
|
294
299
|
<Show when={props.message !== undefined}>
|
|
295
300
|
<p class={styles.message}>{props.message}</p>
|
|
296
301
|
</Show>
|
|
297
|
-
<Show when={
|
|
302
|
+
<Show when={multiline()} fallback={<Input ref={captureAndFocus} type={props.secret ? 'password' : 'text'} class={styles.promptField} value={value()} placeholder={props.placeholder ?? ''} aria-label={props.title} onInput={(e) => setValue(e.currentTarget.value)}/>}>
|
|
298
303
|
<Textarea ref={captureAndFocus} rows={8} mono class={styles.promptField} value={value()} placeholder={props.placeholder ?? ''} aria-label={props.title} onInput={(e) => setValue(e.currentTarget.value)}/>
|
|
299
304
|
</Show>
|
|
300
305
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { For, Show } from 'solid-js';
|
|
1
|
+
import { For, Show, createMemo } from 'solid-js';
|
|
2
2
|
import { Button } from '../forms/Button';
|
|
3
3
|
import { Checkbox } from '../forms/Checkbox';
|
|
4
4
|
import { Input } from '../forms/Input';
|
|
@@ -37,6 +37,7 @@ export function StepFooter(props) {
|
|
|
37
37
|
</div>);
|
|
38
38
|
}
|
|
39
39
|
export function NameStep(props) {
|
|
40
|
+
const setTypedName = createMemo(() => props.setTypedName);
|
|
40
41
|
return (<>
|
|
41
42
|
<p class={styles.resourceLine}>
|
|
42
43
|
{t('To confirm, type the {label} below:', {
|
|
@@ -46,15 +47,16 @@ export function NameStep(props) {
|
|
|
46
47
|
</p>
|
|
47
48
|
<label class={styles.field}>
|
|
48
49
|
<span class={styles.fieldLabel}>{props.request().resourceLabel}</span>
|
|
49
|
-
<Input ref={props.inputRef} class={props.inputClass()} type="text" autocomplete="off" spellcheck={false} value={props.typedName()} onInput={(event) =>
|
|
50
|
+
<Input ref={props.inputRef} class={props.inputClass()} type="text" autocomplete="off" spellcheck={false} value={props.typedName()} onInput={(event) => setTypedName()(event.currentTarget.value)} aria-label={props.request().resourceLabel}/>
|
|
50
51
|
</label>
|
|
51
52
|
</>);
|
|
52
53
|
}
|
|
53
54
|
export function OptionList(props) {
|
|
55
|
+
const toggleOption = createMemo(() => props.toggleOption);
|
|
54
56
|
return (<Show when={props.options().length > 0}>
|
|
55
57
|
<div class={styles.optionsList}>
|
|
56
58
|
<For each={props.options()}>
|
|
57
|
-
{(opt) => (<Checkbox class={styles.optionRow} checked={!!props.optionState()[opt.id]} onChange={() =>
|
|
59
|
+
{(opt) => (<Checkbox class={styles.optionRow} checked={!!props.optionState()[opt.id]} onChange={() => toggleOption()(opt.id)} ariaLabel={opt.label}>
|
|
58
60
|
<span class={styles.optionLabel}>
|
|
59
61
|
<span>{opt.label}</span>
|
|
60
62
|
<Show when={opt.description}>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Show, createSignal, createUniqueId } from 'solid-js';
|
|
1
|
+
import { Show, createMemo, createSignal, createUniqueId } from 'solid-js';
|
|
2
2
|
import { VpChevronRight } from '@vokril/icons';
|
|
3
3
|
import styles from './Disclosure.module.css.js';
|
|
4
4
|
export function Disclosure(props) {
|
|
5
|
-
const
|
|
5
|
+
const openProp = createMemo(() => props.open);
|
|
6
|
+
const controlled = () => openProp() !== undefined;
|
|
6
7
|
const [internalOpen, setInternalOpen] = createSignal(props.defaultOpen ?? true);
|
|
7
|
-
const isOpen = () => controlled() ?
|
|
8
|
+
const isOpen = () => controlled() ? openProp() === true : internalOpen();
|
|
8
9
|
const bodyId = createUniqueId();
|
|
9
10
|
const toggle = () => {
|
|
10
11
|
const next = !isOpen();
|
|
@@ -38,19 +38,21 @@ function toBlocks(items) {
|
|
|
38
38
|
return blocks;
|
|
39
39
|
}
|
|
40
40
|
export function DropdownMenu(props) {
|
|
41
|
+
const openProp = createMemo(() => props.open);
|
|
42
|
+
const disabled = createMemo(() => Boolean(props.disabled));
|
|
41
43
|
const [internalOpen, setInternalOpen] = createSignal(false);
|
|
42
44
|
let triggerEl = null;
|
|
43
|
-
const isOpen = () =>
|
|
45
|
+
const isOpen = () => openProp() ?? internalOpen();
|
|
44
46
|
const setOpen = (next) => {
|
|
45
47
|
if (props.onOpenChange) {
|
|
46
48
|
props.onOpenChange(next);
|
|
47
49
|
}
|
|
48
|
-
if (
|
|
50
|
+
if (openProp() === undefined) {
|
|
49
51
|
setInternalOpen(next);
|
|
50
52
|
}
|
|
51
53
|
};
|
|
52
54
|
const toggle = () => {
|
|
53
|
-
if (
|
|
55
|
+
if (disabled())
|
|
54
56
|
return;
|
|
55
57
|
setOpen(!isOpen());
|
|
56
58
|
};
|
|
@@ -68,7 +70,7 @@ export function DropdownMenu(props) {
|
|
|
68
70
|
{(action) => (<MenuItem id={action.id} label={action.label} description={action.description} icon={action.icon} reserveIcon={hasIcons()} checked={action.checked} reserveCheck={hasChecks()} selected={action.selected} meta={action.shortcut} danger={action.danger} disabled={action.disabled} onSelect={() => handleSelect(action)}/>)}
|
|
69
71
|
</For>);
|
|
70
72
|
return (<div class={props.class} style={{ display: 'inline-block' }}>
|
|
71
|
-
<Show when={props.trigger} fallback={<Button ref={(el) => (triggerEl = el)} variant={props.variant ?? 'secondary'} size={props.size ?? 'sm'} disabled={
|
|
73
|
+
<Show when={props.trigger} fallback={<Button ref={(el) => (triggerEl = el)} variant={props.variant ?? 'secondary'} size={props.size ?? 'sm'} disabled={disabled()} onClick={toggle} aria-haspopup="menu" aria-expanded={isOpen()} aria-label={props.ariaLabel ?? props.label ?? t('Actions')} trailingIcon={<VpChevronDown aria-hidden="true"/>}>
|
|
72
74
|
{props.label ?? t('Actions')}
|
|
73
75
|
</Button>}>
|
|
74
76
|
{(renderTrigger) => renderTrigger()({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Show, createSignal, createEffect, onCleanup, } from 'solid-js';
|
|
1
|
+
import { Show, createMemo, createSignal, createEffect, onCleanup, } from 'solid-js';
|
|
2
2
|
import { VpArrowsMaximize, VpArrowsMinimize, VpClose, VpExternalLink, VpMinus, } from '@vokril/icons';
|
|
3
3
|
import { OverlayScrollArea } from './OverlayScrollArea';
|
|
4
4
|
import { useOverlayRegistration } from './overlayStack';
|
|
@@ -15,8 +15,8 @@ export function FloatingWindow(props) {
|
|
|
15
15
|
const [isMinimized, setIsMinimized] = createSignal(false);
|
|
16
16
|
const [isMaximized, setIsMaximized] = createSignal(false);
|
|
17
17
|
const [isDragging, setIsDragging] = createSignal(false);
|
|
18
|
-
const minW = () => props.minWidth ?? 240;
|
|
19
|
-
const minH = () => props.minHeight ?? 140;
|
|
18
|
+
const minW = createMemo(() => props.minWidth ?? 240);
|
|
19
|
+
const minH = createMemo(() => props.minHeight ?? 140);
|
|
20
20
|
let dragStartX = 0;
|
|
21
21
|
let dragStartY = 0;
|
|
22
22
|
let startPosX = 0;
|