@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
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,127 @@ All notable changes to `@vokril/ui-solid` are listed here. Versions follow
|
|
|
5
5
|
contain breaking changes. From 0.1.1 on, entries are written by Changesets
|
|
6
6
|
(`npm run release:version`) above the previous release.
|
|
7
7
|
|
|
8
|
+
## 0.32.0
|
|
9
|
+
|
|
10
|
+
### Minor Changes
|
|
11
|
+
|
|
12
|
+
- The theme's forced-colors focus net has an opt-out: an element that draws its own forced-colors focus indicator carries `data-focus-indicator="own"` and the net leaves it alone. The net (`theme.css`, scoped to kit elements and the elements inside them; `base.css`, unscoped) draws a 2px `Highlight` outline outside every keyboard-focused element, `!important`, since box-shadow halos are not painted in forced colors. A host element inside a kit element that draws its own line — inset in its frame, or an overlay over a canvas — showed two lines there: its own and the net's ring outside it. The net's selector is now `:focus-visible:where(:not([data-focus-indicator='own']))` (the `:where()` keeps its specificity); an opted-out element owes a `Highlight` indicator of its own under `@media (forced-colors: active)`. Nothing changes for an element without the attribute. The README's accessibility section shows it; a build test matches the net's selector in `theme.css` and `base.css` against a kit element, an element inside one, the opted-out ones and the page (`tests/focus-line.test.mjs`).
|
|
13
|
+
- A notification's handle tells whether the user sees its card, as the reference's `INotificationHandle.onDidChangeVisibility` does (`platform/notification/common/notification.ts:240-245`): `ToastProgressHandle` and the engine's `NotificationHandle` take `onDidChangeVisibility` — fired with `true` when the card comes into the user's sight and `false` when it leaves it, only when that changes (`workbench/common/notifications.ts:676-682`) — and `visible()`, where it stands now. A card is visible as a toast in sight — on the toast stack, not sent to the notification center and not pushed past the visible cap; an acknowledgment while it is the one its layer shows, the oldest — or, any card, while a notification center is shown. The engine reports at the reference's moments: a toast shown, hidden by the cap or taken away (`workbench/browser/parts/notifications/notificationsToasts.ts:297`, `:356`, `:669-682`), a center shown or hidden, a card added to or removed from a shown center (`notificationsCenter.ts:180`, `:323`, `:347`, `:378`). A card that ends while visible fires `false` before `onDidChangeState` tells its end, as the reference takes a closed notification off the screen before its handle hears the close. The reference adds a toast on the next animation frame, so a listener added when `notify` returns hears its first `true` (`notificationsToasts.ts:99-103`, `:228-231`); the kit's engine places the card before the verb returns, so `visible()` gives the start. A progress that got no card (turned down on a card, the flood guard) is never visible. The reference's progress service uses the event to show a progress whose notification the user cannot see as a window progress (`workbench/services/progress/browser/progressService.ts:339-357`); the README shows the same with the kit.
|
|
14
|
+
|
|
15
|
+
A center counts as shown while the user can see it: `NotificationsCenter` and `NotificationPanel` register with the new `NotificationStack.registerShownCenter()` (it returns a disposable) and dispose it when they stop showing; while any is registered, every card counts as visible — a center lists the realm's notifications, the running cards and the records of the others. `NotificationsCenter` is an overlay, mounted while it shows: it registers when it mounts. A `NotificationPanel` is laid out by its host, which may keep it mounted in a pane it hides (`display: none`) or collapses: the panel registers only while its frame has a box with an area and releases while it has none, following its own box with a `ResizeObserver` — as the reference marks every notification visible when its center shows and hidden when it hides (`notificationsCenter.ts:180`, `:378`), and with nothing for the host to tell it. A host that draws a center of its own over the stack registers it the same way, while it shows.
|
|
16
|
+
|
|
17
|
+
**Breaking:** a `ToastProgressHandle` or `NotificationHandle` written outside the kit (a test double) adds `visible` and `onDidChangeVisibility`; a `NotificationStack` written outside the kit (a double of `notifications.stack`) adds `registerShownCenter`, which `NotificationsCenter` calls when it mounts and `NotificationPanel` while its frame has a box.
|
|
18
|
+
- `Modal` takes `allowMaximizedDrag`: whether a maximized modal can be pulled off the top by its header (0.31.0). `true`, the default, keeps that gesture — the modal returns to its size under the pointer and the drag carries on. `false` keeps a maximized modal in place, as the reference's modal editor does, which does not drag while it is maximized (`workbench/browser/parts/editor/modalEditorPart.ts:456-459`): a press and a drag on the header move nothing, and the Restore button and a double-click on the header still restore it; restored, the header drags the modal as before. A host sets it once for every modal of a root instead of on each: `KitHostProvider` takes a `modals` option (`{ allowMaximizedDrag: false }`, the new `ModalDefaults`; `ModalDefaultsProvider` gives it to a tree without a kit host, and `useModalDefaults` reads it), and a modal's own prop overrides it. A `Modal` outside any provider keeps the kit's default. The README has a section on it.
|
|
19
|
+
- The window's title bar height that a `Modal` keeps clear has one home: `--modal-maximize-inset`, set once on each window's root by a host that draws a title bar (`:root { --modal-maximize-inset: 2.2rem }`; 2.875rem when it sets none, `0px` for a page without one). It inherits into the portalled modal layer, and every modal reads it: the maximized layout (right under the title bar, as before), the normal layout's top gap and height — until now fixed at 2.875rem —, and the drag bound, which was `2.875 ×` the root font size whatever the host set. `modalTitlebarHeight(doc)` resolves the same property — the browser measures it in that document, so any CSS length works — and takes an element to resolve it under (`modalTitlebarHeight(doc, within)`); a host's own draggable surface that reads it follows the window's value too. `maximizeInset` stays, as an override for one modal: it sets the property on that modal's overlay, and that modal's layouts and drag bound follow it. The reference's modal editor reads one title bar offset for its drag bound, size, maximized padding and position (`workbench/browser/parts/editor/modalEditorPart.ts:493-509`, `:579`, `:593-595`, `:644-645`, `:662-663`, `:671`, `:702`, `:707`).
|
|
20
|
+
|
|
21
|
+
Measured in a real browser (`tests/modal-titlebar-layout.test.mjs`, headless Chrome; a root at 16px with the property at 2.2rem): the maximized top, a restored modal dragged far up and `modalTitlebarHeight(document)` are all 35.2px, the normal top gap 51.2px (the title bar and 1rem) and the height `100vh − 35.2px − 2rem`; a modal with `maximizeInset="0px"` maximizes and drags to 0 under the same root.
|
|
22
|
+
|
|
23
|
+
Behaviour change: where a host sets the property — on the root, or on one modal through `maximizeInset` —, the normal top gap, the height and the drag bound follow it too, where they kept 2.875rem before (a modal given `maximizeInset="2.2rem"` now also drags up to 2.2rem and opens 2.2rem + 1rem from the top). Nothing changes where the property is not set.
|
|
24
|
+
- Every keyboard focus indicator of the kit draws an opaque line in the focus colour, as the reference draws on every focusable element (`workbench/browser/media/style.css:257-272`: `outline: 1px solid focusBorder`, `outline-offset: -1px`). The components below showed the keyboard focus with a halo alone — `--focus-halo` (brand at 25%) or `--focus-halo-soft` (22%) —, which stays near 1.4:1 over a surface; they now draw `--focus-line`, a new token (`1px solid var(--focus-ring)`), with the halo kept beside it. Measured against the built-in palettes (brand over `surface`, `surfaceAlt` and `surfaceElevated`): the line is at least 4.26:1 (viper-dark over its elevated surface) and up to 9.38:1, where the halo was 1.40–1.55:1 and the soft halo 1.33–1.46:1 — WCAG 1.4.11 asks 3:1 of a focus indicator. The line is inset (`-1px`) where the element fills its container and outside it on a standalone control:
|
|
25
|
+
|
|
26
|
+
- `Chip` — a clickable chip (1px outside) and its remove button (1px outside);
|
|
27
|
+
- `Checkbox`, `RadioGroup` — the box (2px outside, the reference's checkbox offset); `Toggle` — the track (2px); `Slider` — the thumb (2px); `SegmentedControl` — the focused segment (inset);
|
|
28
|
+
- `DatePicker` — the month buttons (1px outside) and the day cells (inset); today, framed in the brand colour, draws its line outside (1px, over the calendar's surface: at least 4.26:1), and the selected day, filled with the brand colour, draws it inside in the ink drawn on that fill (`--ui-color-on-brand`, at least 3.53:1 against the fill), as the reference outlines a focused and selected row in a colour of its own (`list.focusAndSelectionOutline`, `platform/theme/common/colors/listColors.ts:29-31`, `base/browser/ui/list/listWidget.ts:980`) — an inset line in the brand colour lay on that very colour there (1:1);
|
|
29
|
+
- `Dropzone` — the drop area and the remove button (1px outside);
|
|
30
|
+
- the result toolbar (`ResultTabToolbar`) — its buttons, the settings button, the sort badge and its clear button (inset, over the button's own border: still one line); a pointer resting on a button the keyboard focused no longer takes its line and halo away (the buttons' hover rules cleared the outline and the shadow and outranked the keyboard rule; they now leave a keyboard-focused button alone);
|
|
31
|
+
- `Accordion` — the trigger (inset); `Tabs` — a tab, the active one too, and the overflow button (inset);
|
|
32
|
+
- `StatusBarNotificationBell` (inset); `FloatingWindow` — its control buttons (inset); `TreeSurface` — the focused row (inset, as the reference outlines its list's focused row).
|
|
33
|
+
|
|
34
|
+
Unchanged, as they already drew an opaque indicator: `Button` and `PressableSurface`, `Breadcrumb`, `Stepper`, the select triggers and options, the text inputs and framed inputs (the theme's 2px ring under keyboard navigation), menu rows and panels, `ResizableSplitPane`'s separator (the bar turns the focus colour), `TimeSeriesChart`. Pointer focus is unchanged: the lines are drawn under `:focus-visible` or the kit's keyboard modality only, where the halos were. Forced colors keep their Highlight ring: the theme's net covers the focused element, and the indicators drawn beside a hidden native input (the checkbox, radio and toggle boxes, the slider thumb, the segment) keep their own Highlight rule after the line — `SegmentedControl`'s moved after it for that. A build test (`tests/focus-line.test.mjs`) checks each line, the selected day's and today's line against the colour it lies on in every built-in palette, the forced-colors order, that no unlayered keyboard focus rule drops the outline for a halo alone, and that no hover rule takes a keyboard line away; the headless Chrome test reads a tab's computed line.
|
|
35
|
+
|
|
36
|
+
**Look change:** an application sees a 1px line in its focus colour on these components when the keyboard reaches them, where it saw only a faint glow. An application that styles them over the kit (a component class of its own setting `outline: none` on focus, a theme whose `--focus-ring` is translucent) re-checks them.
|
|
37
|
+
- The palette's contract has an entry of its own: `@vokril/ui-solid/tokens/palette` exports `THEME_PALETTE_TOKENS`, `isThemePaletteColor` and the `ThemePalette` type, and its module graph holds no package and touches no DOM under every export condition (`solid`, `node` import and require, `import`, `require`). Code that checks a palette outside a window — an application's main process reading an imported theme, a worker, a script — imports it without loading solid-js: `@vokril/ui-solid/tokens` carries the theme engine, whose shared chunk imports `solid-js` and `solid-js/web` under every condition. `@vokril/ui-solid/tokens` keeps exporting the same contract, unchanged. A build test walks each condition's module graph through its relative imports (`tests/palette-subpath.test.mjs`) and imports and requires the subpath in a plain Node process; the README's entry table lists it.
|
|
38
|
+
- A `NotificationPanel`'s list is a named focus target of its own, as the reference's notifications list is: the list's element takes the focus (`tabindex="0"`, in the tab order, as the reference's list view, `base/browser/ui/list/listView.ts:410`) and is named "Notifications" (`aria-label`, as the reference names its list, `listWidget.ts:1566-1571`). `focusFirstNotificationEntry(root)` on a panel that lists nothing now focuses that list and returns `true`, as the reference focuses its empty list (`workbench/browser/parts/notifications/notificationsList.ts:227-233`, `notificationsCenter.ts:140-150`, `:172-174`); until now it returned `false` and a host focused whatever it chose next (a search box). With notifications it focuses the first one, as before. When the panel's last notification goes while the focus is in the list, the focus stays on the list, as the reference keeps the DOM focus on its list (`notificationsList.ts:195-198`) — it went to the panel's frame before. From the list itself the arrow keys, Home, End and the Page keys start on its notifications: Down goes to the first, Up to the last. A notification that arrives while the list holds the focus leaves the focus where it is.
|
|
39
|
+
|
|
40
|
+
The list's role is `group`, not the reference's `list`: an ARIA list owns list items only, and this one draws notification records, running progress cards, collapsible groups and a pinned header (measured: axe reports `aria-required-children` on a `role="list"` here; the reference's own rows are `role="dialog"`, `notificationsList.ts:289-291`).
|
|
41
|
+
|
|
42
|
+
`NotificationsCenter` is unchanged: it focuses its first notification when it opens, itself when it lists nothing, and `focusFirstNotificationEntry` on a center that lists nothing still returns `false`.
|
|
43
|
+
|
|
44
|
+
Behaviour change: the panel has one more tab stop, its list. A host whose fallback ran on an empty panel (`if (!focusFirstNotificationEntry(panel)) …`) no longer reaches it there: the panel's list takes the focus.
|
|
45
|
+
- **Breaking:** a page tour's page has one id. `TourPageId` loses its two aliases, `'filesystem'` (of `'file-system'`) and `'explorer'` (of `'database-explorer'`), and `canonicalTourPageId` is gone from `@vokril/ui-solid/host` (and the root entry): nothing in the kit or its showcase issued an alias, so the service no longer translates ids — `PageTours.isActive`, `setActive`, `readStatus`, `writeStatus`, `request`, `consumeRequest` and `TourHost.page` compare the id they are given. `TourPageId` is now exported from `@vokril/ui-solid/host` (and the root), the type `PageTours` takes.
|
|
46
|
+
|
|
47
|
+
What a consumer changes: write `'file-system'` where it wrote `'filesystem'`, and `'database-explorer'` where it wrote `'explorer'` (a tour definition's `pageId`, a `TourHost`'s `page`, a call of the service) — the aliases no longer compile; drop calls of `canonicalTourPageId` (the id passed is already the page's id); and a host that kept its own copy of the page id union imports `TourPageId` from `@vokril/ui-solid/host` instead. Stored tour statuses need nothing: the service always stored them under the canonical id (`onboarding:page:file-system`, `onboarding:page:database-explorer`).
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- No kit component makes Solid warn "computations created outside a `createRoot` or `render` will never be disposed" any more when a pointer, the focus, a key, a timer, an animation frame or an observer reaches it. A prop written as a condition with computed branches (`title={dnd() ? t('Disable Do Not Disturb') : t('Enable Do Not Disturb')}`, `content={n() === 1 ? t('1 conflict') : t('{n} conflicts', …)}`, `closeDisabled={busy() ? true : saving()}`) compiles to a getter that creates a computation on every read (Solid memoises the condition); read in code that runs outside the component's owner — an event handler, a timer, a microtask, an animation frame, an observer callback, directly or through the component's own helpers —, that computation had no owner: a development build warned, and in production it was never disposed. Every component now reads such props through memos made in its own scope, so a handler only reads a value — as `Button` (its tooltip, `disabled` and `loading`), `PressableSurface` and `Badge` do. An accessor prop (`Popover`'s `anchor`, `GuidedTour`'s `target`, `CommandPalette`'s `host`, `Pagination`'s `page`) is memoised as the function and still called when the value is needed.
|
|
52
|
+
|
|
53
|
+
The components (51, 113 reads): the form controls — `Checkbox`, `Combobox`, `CopyButton`, `DatePicker`, `DateRangePicker`, `Dropzone`, `FilePickerButton`, `HiddenFileInput`, `InputMessage`'s view, `MultiSearchableSelect`, `NumberInput`, `Picker`, `RadioGroup`, `SearchInput`, `SearchableSelect`, `SegmentedControl`, `TagInput`, `ToggleButton`; the overlays — `ConfirmDialog`, `InputDialog`, the dangerous-action dialog's name step and option list, `Disclosure`, `DropdownMenu`, `FloatingWindow`, `HoverTooltip`, `Modal`, `OverlayScrollArea`, `Tooltip`, `CommandPalette`, the context menu's panel, `MenuItem`, `MenuDisclosure`, `Popover`, `GuidedTour`; layout and navigation — `PageHeaderIcon`, `ResizableSplitPane`, `ResizeHandle`, `Accordion`, `Tabs`, `Pagination`; notifications — `NotificationItem`, `NotificationPanel`, `StatusBarNotificationBell`; trees — `TreeRow`, `TreeSurface`; and `TimeSeriesChart`, `WindowControls`, the error boundary's fallback, the page tour host and the settings' `ReorderableList`.
|
|
54
|
+
|
|
55
|
+
A build test keeps the rule (`tests/handler-prop-reads.test.mjs`): it scans the kit's sources with TypeScript — every function whose first parameter is `props`, with its `splitProps`/`mergeProps` aliases; its `on*` handlers, `addEventListener` callbacks, timers, microtasks, animation frames and observers; the plain helpers they call — and fails on any prop read there, with no allow-list. Callback props (`on*`), `children` and `ref` are called, not read for a value, and are left out. Nothing else changes: the components show the current values, and a disabled or busy control still drops the click. The `tooltip` directive needs no change: its value compiles to a plain accessor.
|
|
56
|
+
- A maximized `Modal` that can be pulled off the top by its header (0.31.0; `allowMaximizedDrag`, `true` by default) shows its header as a drag handle, as a restored modal's header does: the grab cursor, and `touch-action: none`, so a touch pointer pulls the modal instead of letting the browser take the gesture as a pan — which cancelled the pointer and left the modal maximized. The header took the handle's class only while the modal was restored. A maximized modal kept in place (`allowMaximizedDrag: false`) still has no handle. Measured in headless Chrome (`tests/modal-titlebar-layout.test.mjs`): the pullable maximized header computes `touch-action: none` and `cursor: grab`, the one kept in place `auto`.
|
|
57
|
+
|
|
58
|
+
## 0.31.0
|
|
59
|
+
|
|
60
|
+
### Minor Changes
|
|
61
|
+
|
|
62
|
+
- 5aab192: `Modal`: `maximizeInset` sets the gap kept above a maximized modal (default unchanged, room for a
|
|
63
|
+
host title bar; `'0px'` covers the whole viewport). A maximized modal can now be pulled off the top
|
|
64
|
+
by its title: it returns to its size under the pointer and the drag carries on, like a desktop
|
|
65
|
+
window.
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- 5aab192: `Drawer` (window drawer): the backdrop beside the panel was made inert with the rest of the
|
|
70
|
+
background, so clicking outside the drawer did nothing. It now stays live and closes the drawer.
|
|
71
|
+
- 5aab192: `ResizeHandle`: when the size reaches `min` or `max` the pointer keeps moving but the pane stays;
|
|
72
|
+
the distance past the edge is carried, so moving back no longer shrinks the pane at once while the
|
|
73
|
+
pointer is still far away (it follows the pointer again once it is back at the edge). Applies when
|
|
74
|
+
`value`, `min` and `max` are passed.
|
|
75
|
+
|
|
76
|
+
## 0.30.0
|
|
77
|
+
|
|
78
|
+
### Minor Changes
|
|
79
|
+
|
|
80
|
+
- A notification card's expand chevron points the way the card opens, turned by the corner it is drawn at, as the reference turns its cards' expand and collapse icons with the notifications' position (`workbench/browser/parts/notifications/notificationsActions.ts:21-24`, `:29-35`): at a bottom corner, where the toast stack grows up, the collapsed card's chevron points up and the open card's down; at a top corner the other way round. `NotificationItem` takes `corner` — a `ToastPosition` —, drawn on the card as `data-edge="top" | "bottom"`. The toast stack passes its position, and a `NotificationsCenter` its `corner` to its running cards — unset, the center is at the bottom, as its hide button already says. A card drawn at no corner (a `NotificationPanel`, the acknowledgment's modal layer, a card a host draws without `corner`) opens downward, as every card did until now.
|
|
81
|
+
|
|
82
|
+
Behaviour change: at a bottom corner — the default `toastPosition`, `bottom-right` — a toast's chevron now points up while the card is collapsed and down once it is open; it pointed down, then up. A host that draws `NotificationItem` itself at a corner (a window of its own for the toasts) passes `corner` for the same turn.
|
|
83
|
+
- A notification center's notifications are a list the focus moves along, as the reference's notifications list is. `NotificationsCenter` focuses its first notification when it opens — a running progress card, else the newest record; with none, the center itself, as the reference focuses its empty list (`workbench/browser/parts/notifications/notificationsCenter.ts:140-150`, `:172-174`; `notificationsList.ts:227-233`). Down moves to the next notification and Up to the previous one, without wrapping, Home and End to the first and the last (`workbench/browser/actions/listCommands.ts:75-107`, `:169-193`); Page Down goes to the last notification the list shows and from there a page further, Page Up to the first it shows and from there a page further up, as the reference's list pages (`listCommands.ts:143-167`; `base/browser/ui/list/listWidget.ts:1836-1902`); the notification that takes the focus is scrolled just into view, as the reference reveals its list's focus (`listCommands.ts:58-73`; `listWidget.ts:1985-1996`) — from a notification or a button inside one; a key pressed in an editable element stays its own (`listWidget.ts:313-319`). A center that closes while it holds the focus — Escape, its hide button, the bell — gives the focus back, as the reference's hide does only when the center had it (`notificationsCenter.ts:370`, `:386-389`); a center that closes after the focus went elsewhere leaves it there. Where the focus goes back to is the kit's own choice: the element the center was opened from — the bell, or what the user worked in —, while the reference focuses its editor group (`:386-389`, and `:358-361` when the last notification goes), a workbench part a kit center does not know. Until now the center and its popover had no focusable list: opening it left the focus where it was. The center is named "Notifications" (`aria-label`) — its own focus target when it lists nothing —, so it has a name wherever it is drawn, as the reference names its list (`notificationsCenter.ts:298-300`); the bell's popover named it before, a center drawn elsewhere had none.
|
|
84
|
+
|
|
85
|
+
The focus stays in the list while its notifications change under it, as in the reference's list (`notificationsList.ts:149-199`): the notification that holds it keeps it while it is drawn; when it goes — its remove button, "clear all", its operation ending — the focus goes to the notification before it, the first when it was the first, and to the center (or the panel) itself when none is left. The center hides when its last notification goes, as the reference's (`notificationsCenter.ts:344-362`); one shown empty stays open. Whether the center held the focus is the center's own record, kept as the focus enters and leaves it, so the focus is given back on close even when it fell with a removed notification — the reference measures it before the removal (`notificationsCenter.ts:344-346`).
|
|
86
|
+
|
|
87
|
+
The records of `NotificationsCenter` and `NotificationPanel` and the running progress cards they draw take the focus from code (`tabindex="-1"`) and are named by their severity, their message and their source (`notificationsList.ts:271-283`), e.g. "Warning: Disk almost full, Source: Connection". The toast stack and the centers move by one key table, whose one row of their own is Page Up and Page Down: on the toast stack they now go to the first and the last toast, as the reference binds its first-toast and last-toast commands to Page Up and Page Down with Home and End as second keys (`workbench/browser/parts/notifications/notificationsCommands.ts:248-270`) — they stepped one toast before.
|
|
88
|
+
|
|
89
|
+
A host that shows a center again — the reference focuses the first notification then too — or brings a `NotificationPanel` on screen (a dock, a tool window) focuses the first notification itself with the new `focusFirstNotificationEntry(root, options?)`, which returns whether that notification now holds the focus: `false` when `root` lists none, or when the one it lists could not take the focus (an inert or hidden subtree), so the host focuses something else. `NotificationsCenter` takes `ref` for the host that needs the center's element.
|
|
90
|
+
|
|
91
|
+
Behaviour note: a test that finds a running card by a pattern of its title (`getByLabelText(/Exporting/)`) now also finds the center's record of the same issue; the card's own name is its severity and title (`'Info: Exporting'`).
|
|
92
|
+
- A notification center shown in a top corner points its hide button up, toward the edge it hides to, as the reference turns its center's hide icon at the top (`workbench/browser/parts/notifications/notificationsCenter.ts:104-111`). `NotificationsCenter` takes `corner` — a `ToastPosition`, the corner its host shows it in (the reference places its center at the notifications' position, so a host passes the toasts' `toastPosition`) —; in `top-right` and `top-left` the hide button draws a chevron up. Unset, the center opens from the bottom, as from the status bar's bell, and its hide chevron points down as before.
|
|
93
|
+
- A notification center hides when do not disturb turns on, as the reference's hides when its error filter turns on (`workbench/browser/parts/notifications/notificationsCenter.ts:83`, `:130-134`) — the center's own "Enable Do Not Disturb" too, which in the reference writes the same filter (`:239-246`). Do not disturb is the setting or the realm's run-time filter (`Notifications.setFilter('errors-only')`), the one state the bell and the center show; the center closes through its `onHide` only when that state turns on while it is open, so a center opened while do not disturb is on stays open, and the second of the two turning on closes nothing. A host that hides the center itself (an overlay of its own) no longer needs to watch the filter for it.
|
|
94
|
+
- A notification can name the key its "remind me later" keys on, apart from "don't show again": `ToastCommonOptions.remindKey` and a catalog payload's `remindKey` (`NotificationCatalogPayload.remindKey`), given by the one who issues it, as the reference keys a notification's suppression on the id its issuer gives (`neverShowAgain.id`, `workbench/services/notification/common/notificationService.ts:197-217`). The card's gear menu writes the reminder on it, and an issue that carries the key is held back by a reminder on that key only — not by one on the same text —, so two notifications of the same text about different subjects (two connections of the same name) keep their own reminders; until now a reminder keyed on the source and the text silenced both. The key adds no "Don't show again" entry. Unset, the reminder keys as before: on `dontShowAgainKey`, else on the source and the title (a progress: the text it was issued with).
|
|
95
|
+
|
|
96
|
+
The card's reminder key has one home, the pure `cardRemindKey(card)` (`RemindKeySource`): the card's own key (its issuer's, or a progress's), else its "don't show again" key, else the key derived from its source and title. The engine's `NotificationInput.remindKey` now wins over `neverShowAgainKey`; the progress verb sets it to the issuer's key, else the "don't show again" key, else the key of its initial text, so a progress's reminder keys as before. The issue side still reads up to two keys: an issue without a remind key is held back by a reminder on its "don't show again" key or on its text, as before.
|
|
97
|
+
|
|
98
|
+
Reminders already set are not carried over: one written on a notification's text no longer holds that notification once its issuer gives it a `remindKey`. No migration is made, and none is needed — a reminder lasts 15 minutes, an hour or until 09:00 the next day, so such a reminder lapses once and the next one is written on the new key.
|
|
99
|
+
- `Input` takes a message bound to it, as the reference's input box shows its validation message: `InputProps.message` — an `InputMessage`, `{ tone, text }` with `InputMessageTone` `'error' | 'warning' | 'info'`. The message is drawn under the input while the input has the focus, in a view that floats over what lies below (a tree's rows, a form's next field) and takes no room: as wide as the input and laid out like the reference's context view, below it or above it where the window has no room (`base/browser/ui/inputbox/inputBox.ts:238-251`, `:491-536`; `base/browser/ui/contextview/contextview.ts:344-351`). It is the input's description (`aria-describedby`, added to a `FormField`'s hint or the caller's own), which the focus reads, and it is announced through the host's announcer when it appears or changes while the input has the focus, its tone first — "Error: …", "Warning: …", "Info: …" (`inputBox.ts:538-548`) —, the same message again is not (`inputBox.ts:417-421`, `:434-436`). The focus itself announces nothing, so the message is not spoken twice: the reference's input has no description and alerts the message on every focus instead (`inputBox.ts:246-251` → `:538-548`); with the description read by the focus, the kit's message is heard once as the focus arrives, as the reference's is, and a message that appears or changes under the focus is announced in both. An error is announced assertively and marks the input invalid (`aria-invalid`, `inputBox.ts:455-468`); a warning or an info, which must not cut into the typing, is read politely — the reference alerts every tone. The tone colours the input's edge. A message without text shows nothing. Until now an inline input (a tree row's rename, a setting's file name) had no place for its validation message: a `FormField`'s `hint` and `error` belong to a labelled form field.
|
|
100
|
+
|
|
101
|
+
Drawing a message needs the kit host (`KitHostProvider`), whose announcer reads it: an input with no provider above it renders, and throws a `BugIndicatingError` when its first message with text is drawn — while it renders when it is created with one, otherwise in the update that gives it one (an error boundary above it catches it).
|
|
102
|
+
|
|
103
|
+
`Input` now renders the input plus an optional message node: a fragment of the `<input>` and, while it has a message with text, the message's view — drawn in a floating layer of the input's document, leaving only an empty marker after the input. Without a message the DOM is the `<input>` alone, as before; code that takes an `Input`'s rendered result for a single element (Solid's `children()` helper) gets a list.
|
|
104
|
+
- **Breaking:** the `LayoutSettings` type is gone from `@vokril/ui-solid/settings`. Nothing in the kit read it: the kit renders no layout settings group, and an application keeps its own — with its own fields, which the kit's five-field copy could only drift from. Its `zenMode` field ("Zen mode on startup") was dead even in the application: whether a window closed in Zen opens in Zen again is the reference's `zenMode.restore`, a setting of the Zen group, not of the layout. The unions the kit's components do use stay: `CommandPaletteStyle`, `ErDiagramEdgeStyle`, `MainMenuDisplayMode`, `WorkspaceTabBarPlacement`. A host that typed its layout settings with the kit's `LayoutSettings` declares its own type; a stored `zenMode` is the host's to drop when it reads its record.
|
|
105
|
+
- A desktop context menu row's `disabled` may be a getter, as its `checked` already may: `DesktopContextMenuItem.disabled` is `boolean | (() => boolean)`, and the renderer reads it in the row's reactive scope — its dimming and `aria-disabled`, its click and its hover —, so a row of a menu kept open (`keepOpenOnSelect`) dims or comes back in place when its state changes, as the reference's action item follows its action's `enabled` change (`base/common/actions.ts:135-142`, `base/browser/ui/actionbar/actionViewItems.ts:59-73`). A visibility checklist can disable the entry of the last view left shown while the user unticks the others. A plain boolean behaves as before.
|
|
106
|
+
|
|
107
|
+
**Type widened:** `DesktopContextMenuItem.disabled` was `disabled?: boolean` and is now `disabled?: boolean | (() => boolean)`. Code that only writes it compiles and behaves as before. Code that reads an item's `disabled` itself, outside the kit's renderer: handing it on where a `boolean` is expected no longer compiles, and a truthiness test (`if (item.disabled)`) still compiles but is true for every getter — read it as `typeof item.disabled === 'function' ? item.disabled() : item.disabled`.
|
|
108
|
+
- The palette's contract is readable at run time (`@vokril/ui-solid/tokens`): `THEME_PALETTE_TOKENS`, every token of `ThemePalette` once (a frozen list built from a record keyed by the type, so a token added to the type cannot be left out), and `isThemePaletteColor(value)`, whether a value is a colour in the one form the kit reads a token in — `#rgb` or `#rrggbb`, hex digits in either case. The kit's colour maths throws on anything else, its editor and terminal derivation turns anything else black, and the token is written as it is into the theme's CSS custom properties, where a value without its `#`, with spaces, `#rrggbbaa`, `rgb(…)` or a colour name is not the colour the derivation computed with. A host that reads a palette from outside data (an imported theme, a plugin's theme, a stored user theme) checks it with these instead of restating the list and the form. Every built-in theme keeps the contract (a test).
|
|
109
|
+
- The realm's notification service has a run-time filter — not a setting: nothing of it is stored, and it ends with the realm. `Notifications.setFilter(filter)`, `getFilter()` and `onDidChangeFilter` (the reference's `INotificationService` members) take a `NotificationFilter`: `'off'`, or `'errors-only'`, the reference's error filter, which its Zen mode sets while `zenMode.silentNotifications` is on and turns off on exit (`workbench/browser/layout.ts:1485`, `:1513-1515`, `:1549-1555`, `:1592-1594`). Under it a notification of the default or the optional priority that is not an error is silent — its record is kept, it gets no toast (`workbench/common/notifications.ts:494-502`); errors, urgent notifications and acknowledgments still toast. A host holds notifications back with it while a state of its own lasts — its Zen mode — without writing the user's do not disturb, which is durable and application-wide.
|
|
110
|
+
|
|
111
|
+
One rule, the policy's own: the filter decides through the priority (the pure `filteredPriority(priority, severity, filter)`), the `silent` priority the decision already knows, as the reference's filter makes a notification silent; the notification keeps the priority it was issued with in its record and on its card. A per-notification `priority: 'silent'` is the issuer's choice and does not cover it. Setting the filter takes back the shown cards it now silences, as a settings change does: a running progress goes to the notification center, alive — its outcome comes back on the toast stack when it fails (an error) and ends `suppressed` when it succeeds —, the other cards close `suppressed`, their records kept. The kit takes back what its issue decision silences, errors staying on the screen; the reference hides every toast at that moment (`notificationsToasts.ts:143-145`), as for its do not disturb, which the kit does not share (0.28.0).
|
|
112
|
+
|
|
113
|
+
The reference shows its one filter as do not disturb: the status bar bell and the notification center's toggle now do too while the run-time filter is on — the bell's bell-off glyph and "Notifications (Do Not Disturb on)" (`notificationsStatus.ts:46`, `:95-102`), the center's "Disable Do Not Disturb" —, and turning do not disturb off from the center ends both the setting and the filter, as the reference's toggle turns its one filter off (`notificationsCenter.ts:243-245`).
|
|
114
|
+
|
|
115
|
+
**Breaking:** a `Notifications` written outside the kit (a test double) adds `getFilter`, `setFilter` and `onDidChangeFilter`.
|
|
116
|
+
|
|
117
|
+
### Patch Changes
|
|
118
|
+
|
|
119
|
+
- The theme's keyboard focus ring (`theme.css`, `base.css`, `style.css`) now has the low specificity its comment always promised, that of a bare `:focus-visible` (0,1,0), so a component's own focus style wins over it. Its exclusions (the code editor's and the terminal's own focus, the text controls) were written as plain `:not()`s, each of which adds its argument's weight: the rule weighed (0,3,3) and beat every component's `.class:focus-visible` rule (0,2,0). A component that draws its focus with its own offset (a breadcrumb link's 1px, an application tab bar's inset -2px) got the theme's 2px offset instead, and one that draws a halo with `box-shadow` (tabs, toolbar buttons, the date picker's days, tree rows) got the theme's outline painted on top of it. The exclusions now sit inside `:where()`, which adds no specificity; elements with no focus style of their own (a dialog's shell) keep the ring, and the forced-colors net is unchanged. Behaviour change: those components now show only the focus indication they declare.
|
|
120
|
+
|
|
121
|
+
Call `initFocusModality(window)` (`@vokril/ui-solid/a11y`) in every window — the main one at startup, each auxiliary window as it opens. The keyboard focus indicator of `Tabs`, `Chip`, menu rows and panels, and the checkbox-like controls (`Checkbox`, `RadioGroup`, `Toggle`, `Slider`, `SegmentedControl`) — and the outer ring of text fields — is drawn only while the tracker marks the window as navigating by keyboard (`data-focus-modality="keyboard"`). `Tabs` and `Chip` used to get the theme's ring whatever the tracker said, since the ring outweighed their own rules; now their indicator follows the tracker as the others' already did, so a host that never called it sees no focus on them. The README's host section lists it, and the showcase calls it.
|
|
122
|
+
- The command palette closes before it runs the chosen pick, as the reference hides its picker and then accepts the item (`platform/quickinput/browser/pickerQuickAccess.ts:355-359`). Closing hands the focus back to the element it came from and lifts the background's inertness, so a command run from the palette that moves the focus — to a view, an editor, a page — now keeps it there; until now the palette ran the command first and its close then took the focus back to the previous element (and a focus into the still-inert background went nowhere). A command that opens another overlay, the palette itself in a submenu included, opens it after the palette has gone. The same holds for a submenu's row, a settings or database-object row, and the "Configure Keybinding" gear, whose keybinding editor opens after the palette has closed and keeps the focus. The reference's gear calls its opener first and then returns `CLOSE_PICKER`, which hides the picker (`workbench/contrib/quickaccess/browser/commandsQuickAccess.ts:137-139`; `platform/quickinput/browser/pickerQuickAccess.ts:363-382`): its editor takes the focus after the hide only because the opener is asynchronous. The kit closes first and then calls the opener — the same order, without leaning on the opener's timing. `onCommandExecuted` is now called after `onClose`.
|
|
123
|
+
|
|
124
|
+
The order rests on the host's `onClose` turning `open` false before it returns, which its JSDoc now states: a close that lands later — deferred to a microtask, a timer or a transition, or written inside a `batch` that is still open — lets the pick run under the open palette, and the late close takes the focus back from it.
|
|
125
|
+
- A control's native `title` no longer goes back to an old value when the kit's tooltip hides. `Button`, `PressableSurface`, `Badge` and the `tooltip` directive hold the element's `title` back while their own tooltip shows (so the browser draws no second tooltip) and give it back when it hides; a `title` written again meanwhile — a reactive title whose value changed while the tooltip showed, such as a toggle named after what a click does — was overwritten by the held copy. The status bar bell, whose center opened while its tooltip showed, went on calling itself by its closed-state name once the pointer or the focus left it. What the element's owner writes while the title is held now stays: a new value, and no title — a reactive `title` that became `undefined` while the tooltip showed stays removed; only a title left alone is given back. The four surfaces share one rule for it, in the hold itself, because the hold is the one place that sees every owner: the `tooltip` directive sits on any element and does not know the props that write its title.
|
|
126
|
+
|
|
127
|
+
Behaviour change: while the tooltip shows, the held element's `title` is empty (`title=""`) rather than absent — the browser draws no tooltip for an empty title, and so the owner removing the title is a change the hold sees. An empty title also keeps an ancestor's `title` from showing as a native tooltip over the kit's. The held text is still in `data-suppressed-title`. A test that checked for no `title` attribute while a tooltip shows now finds an empty one.
|
|
128
|
+
|
|
8
129
|
## 0.29.0
|
|
9
130
|
|
|
10
131
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -87,6 +87,25 @@ notification service is told so (`centerReachable`, see
|
|
|
87
87
|
progress on the toast stack. A setting that silences it still keeps it off the screen, out of
|
|
88
88
|
reach until its operation ends.
|
|
89
89
|
|
|
90
|
+
A center's notifications are a list the focus moves along. `NotificationsCenter` focuses its
|
|
91
|
+
first notification when it opens — a running progress card, else the newest record —, the arrow
|
|
92
|
+
keys, Home and End move between them, Page Up / Page Down a page at a time, and a center that
|
|
93
|
+
closes while it holds the focus gives it back to where it came from. When the focused
|
|
94
|
+
notification goes, the one before it takes the focus (the new first, when it was the first);
|
|
95
|
+
when the last one goes, the center hides — its host's `onHide` is called, as it is when do not
|
|
96
|
+
disturb or the run-time filter turns on while the center is open. A host that shows a center
|
|
97
|
+
again, or brings a `NotificationPanel` on screen (a dock, a tool window), focuses the first
|
|
98
|
+
notification itself. A panel's list is a focus target of its own, as the reference's list is —
|
|
99
|
+
named "Notifications", in the tab order, its arrow keys starting on the first or the last
|
|
100
|
+
notification —: a panel that lists nothing gives the focus to its list, and the list keeps it when
|
|
101
|
+
its last notification goes. `false` means nothing took the focus — a center that lists nothing
|
|
102
|
+
(which focuses itself when it opens), or an element that could not take it (an inert or hidden
|
|
103
|
+
subtree):
|
|
104
|
+
|
|
105
|
+
```tsx
|
|
106
|
+
if (!focusFirstNotificationEntry(panelRoot)) panelRoot.focus();
|
|
107
|
+
```
|
|
108
|
+
|
|
90
109
|
Which running progress is out of the user's sight — sent to the center, or clipped under newer
|
|
91
110
|
toasts past `maxVisibleNotifications` — the kit answers once: `hiddenRunningProgress(items)` over
|
|
92
111
|
the stack's cards (`notifications.stack.subscribe`), the one that left sight last first. The bell
|
|
@@ -96,6 +115,23 @@ counts these, and a status bar that mirrors such a progress shows the first:
|
|
|
96
115
|
notifications.stack.subscribe((items) => setMirrored(hiddenRunningProgress(items)[0] ?? null));
|
|
97
116
|
```
|
|
98
117
|
|
|
118
|
+
A progress's own handle tells whether the user sees its card, as the reference's notification
|
|
119
|
+
handle does: `visible()` now, and `onDidChangeVisibility` each time it changes — a toast in sight,
|
|
120
|
+
or any card while a notification center is shown: a `NotificationsCenter` while it is mounted (an
|
|
121
|
+
overlay, gone when it hides), a `NotificationPanel` while its frame has a box. A host lays the panel
|
|
122
|
+
out and may keep it mounted in a pane it hides (`display: none`) or collapses; the panel then shows
|
|
123
|
+
nothing to the user and counts as nothing — it follows its own box (a `ResizeObserver`), so the
|
|
124
|
+
host tells it nothing. Both register with `notifications.stack.registerShownCenter()`; a host that
|
|
125
|
+
draws a center of its own registers it the same way, while it shows. The card is placed before the
|
|
126
|
+
verb returns, so read `visible()` when you subscribe:
|
|
127
|
+
|
|
128
|
+
```tsx
|
|
129
|
+
const progress = notifications.progress(exporting, params);
|
|
130
|
+
const follow = (visible: boolean) => setWindowProgress(visible ? null : progress);
|
|
131
|
+
follow(progress.visible());
|
|
132
|
+
progress.onDidChangeVisibility(follow);
|
|
133
|
+
```
|
|
134
|
+
|
|
99
135
|
## Stylesheets
|
|
100
136
|
|
|
101
137
|
| Import | Contents |
|
|
@@ -157,6 +193,7 @@ Every subpath has ESM, CommonJS, type declarations, a server build and a Solid s
|
|
|
157
193
|
| `/charts` | TimeSeriesChart |
|
|
158
194
|
| `/a11y` | AriaAnnouncer and the announcement helpers |
|
|
159
195
|
| `/tokens` | ThemeProvider, `useTheme`, `applyAppTheme`, the palettes and their derivation |
|
|
196
|
+
| `/tokens/palette` | The palette's contract alone — `THEME_PALETTE_TOKENS`, `isThemePaletteColor`, the `ThemePalette` type — with no package and no DOM in its module graph, for code that checks a palette outside a window (a main process, a worker); `/tokens` exports the same |
|
|
160
197
|
| `/i18n` | `t`, `setLocale`, `setMessages`, language registry |
|
|
161
198
|
| `/settings` | The settings registry the kit and its host share: `defineSettings`, field specs, the kit's own groups (notifications, header icon overrides) |
|
|
162
199
|
| `/host` | The ports an application plugs into the kit (see [Embedding in an application](#embedding-in-an-application)) |
|
|
@@ -202,6 +239,36 @@ const surface = createTreeSurface({
|
|
|
202
239
|
- Very long lists scroll past the browser's element-height limit: the container is capped and positions
|
|
203
240
|
map proportionally (`createVirtualWindow`).
|
|
204
241
|
|
|
242
|
+
## Modals
|
|
243
|
+
|
|
244
|
+
A `Modal` keeps clear the window's title bar. Its height has one home, set once per window root:
|
|
245
|
+
`--modal-maximize-inset` (any CSS length; 2.875rem when the host sets none, `0px` for a page
|
|
246
|
+
without a title bar). Every modal reads it — a maximized modal sits right under it, a normal one
|
|
247
|
+
keeps its top gap and height below it, and a drag stops at it —, and so does
|
|
248
|
+
`modalTitlebarHeight(document)`, for a host's own draggable surfaces. A host that draws a title bar
|
|
249
|
+
of its own sets it on the root of each window it opens, main and auxiliary; it inherits into the
|
|
250
|
+
modal layer:
|
|
251
|
+
|
|
252
|
+
```css
|
|
253
|
+
:root {
|
|
254
|
+
--modal-maximize-inset: 2.2rem;
|
|
255
|
+
}
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
A maximized modal can be pulled off the top by its header — it returns to its size under the
|
|
259
|
+
pointer and the drag carries on, like a desktop window. A host that keeps maximized modals in
|
|
260
|
+
place, as the reference's modal editor does, says so once for every modal of a root; the Restore
|
|
261
|
+
button and a double-click on the header still restore them:
|
|
262
|
+
|
|
263
|
+
```tsx
|
|
264
|
+
<KitHostProvider host={host} modals={{ allowMaximizedDrag: false }}>
|
|
265
|
+
…
|
|
266
|
+
</KitHostProvider>
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
A modal's own `allowMaximizedDrag` and `maximizeInset` override these for that modal only
|
|
270
|
+
(`ModalDefaultsProvider` gives the defaults to a tree without a kit host).
|
|
271
|
+
|
|
205
272
|
## Theming
|
|
206
273
|
|
|
207
274
|
`ThemeProvider` applies a palette to `<html>`. It writes the derived `--color-*` properties, the
|
|
@@ -332,6 +399,17 @@ export const host: KitHost = {
|
|
|
332
399
|
};
|
|
333
400
|
```
|
|
334
401
|
|
|
402
|
+
A host holds notifications back for a while without touching the user's settings through the
|
|
403
|
+
realm's run-time filter: `notifications.setFilter('errors-only')` lets only errors (and urgent
|
|
404
|
+
notifications and acknowledgments) toast and records the rest, as the reference's Zen mode does
|
|
405
|
+
with silent notifications; `setFilter('off')` ends it. Nothing of it is stored, the shown cards it
|
|
406
|
+
silences are taken back, a center open when it turns on hides, and the bell and the center show
|
|
407
|
+
do not disturb meanwhile:
|
|
408
|
+
|
|
409
|
+
```tsx
|
|
410
|
+
notifications.setFilter(zen.active && zen.silentNotifications ? 'errors-only' : 'off');
|
|
411
|
+
```
|
|
412
|
+
|
|
335
413
|
Every member is required; a capability the application does not have is a `null` it writes down:
|
|
336
414
|
|
|
337
415
|
| `KitHost` member | What the application provides |
|
|
@@ -363,6 +441,7 @@ A few realm facts and registries are set once at startup:
|
|
|
363
441
|
| `registerThemeSource` (`/tokens`) | Each source of themes it owns (imported themes, plugin themes); dispose the registration when the source goes away | The built-in palettes |
|
|
364
442
|
| `KeybindingsProvider`, `ToolWindowContext` | Its keybinding service and tool window layout (provide the host's values to these contexts) | Unset: notification shortcuts off |
|
|
365
443
|
| `HostWindowProvider` | The window each root renders into | None: required at every root |
|
|
444
|
+
| `initFocusModality(window)` (`/a11y`) | Called once in every window — the main one at startup, each auxiliary window as it opens: it marks keyboard navigation (`data-focus-modality`). The keyboard focus indicator of `Tabs`, `Chip`, menu rows and panels, and the checkbox-like controls (`Checkbox`, `RadioGroup`, `Toggle`, `Slider`, `SegmentedControl`) — and the outer ring of text fields — is drawn only while it says the window navigates by keyboard. Every keyboard focus indicator of the kit draws an opaque line in the focus colour — the theme's 2px ring, or a component's own 1px line (`--focus-line`, inset where the element fills its container) —, a halo only beside it | None: those controls show no focus when the keyboard reaches them |
|
|
366
445
|
| `registerVisibleBrowser` | Embedded browser views that toasts must avoid | None |
|
|
367
446
|
|
|
368
447
|
```ts
|
|
@@ -418,6 +497,17 @@ Component tests check keyboard paths (arrow keys, Home/End, Escape, focus trap,
|
|
|
418
497
|
axe on every tested component. Known findings are kept in a list, and a test fails when a listed
|
|
419
498
|
finding disappears, so the list only shrinks.
|
|
420
499
|
|
|
500
|
+
In forced colors (Windows high contrast) the theme draws one focus indicator for every kit element
|
|
501
|
+
and every element inside one: a 2px `Highlight` outline outside the element, `!important`, since
|
|
502
|
+
box-shadow halos are not painted there. An element that draws its own forced-colors indicator — a
|
|
503
|
+
line inset in its frame, an overlay over a canvas — opts out with `data-focus-indicator="own"`, so
|
|
504
|
+
that ring does not double its line; it then draws a `Highlight` indicator of its own under
|
|
505
|
+
`@media (forced-colors: active)`:
|
|
506
|
+
|
|
507
|
+
```tsx
|
|
508
|
+
<div class={styles.grid} tabIndex={0} data-focus-indicator="own" />
|
|
509
|
+
```
|
|
510
|
+
|
|
421
511
|
## Changelog
|
|
422
512
|
|
|
423
513
|
Changes are listed in `CHANGELOG.md`, shipped with the package.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("solid-js/web"),v=require("solid-js"),$=require("./SearchableSelect-C-lV1vSv.cjs"),T=require("./Button-lMUW5P3O.cjs"),c=require("./i18n-D3s-a2a0.cjs"),m=require("./Input-CHtvL4_4.cjs"),p=require("@vokril/icons"),z=require("./iconScale.module-CzmKG1rf.cjs"),y=require("./keys-GMxY2wcl.cjs"),L=require("./bugIndicatingError-D2X5Hfgg.cjs");function P(e,a){return e<=0?a:String(e)}const O="vk_paginationRow_hg8fj",N="vk_paginationMeta_rPi8N",M="vk_paginationActions_gD2Fz",A="vk_paginationLabel_9x9Ah",q="vk_paginationSelect_h5BcT",H="vk_paginationPage_CYJRF",_={paginationRow:O,paginationMeta:N,paginationActions:M,paginationLabel:A,paginationSelect:q,paginationPage:H};var x=t.template("<div><span></span><div><label></label><span> / ");function F(e){const a=v.createMemo(()=>e.page),r=v.createMemo(()=>e.totalPages),n=()=>a()(),i=()=>r()(),u=v.createMemo(()=>{const g=c.t("Unlimited");return e.pageSizeOptions.map(s=>({value:String(s),label:P(s,g)}))});return(()=>{var g=x(),s=g.firstChild,B=s.nextSibling,S=B.firstChild,d=S.nextSibling,R=d.firstChild;return t.insert(s,()=>c.t("Showing {shown} of {total} items",{shown:e.shownCount(),total:e.totalCount()})),t.insert(S,()=>c.t("Page size"),null),t.insert(S,t.createComponent($.SearchableSelect,{size:"sm",get class(){return _.paginationSelect},get value(){return String(e.pageSize())},get options(){return u()},onChange:l=>{e.onPageSizeChange(Number(l))},searchable:!1,get ariaLabel(){return c.t("Page size")}}),null),t.insert(B,t.createComponent(T.Button,{size:"sm",variant:"secondary",get disabled(){return n()<=1},onClick:()=>e.onPageChange(Math.max(1,n()-1)),get children(){return c.t("Previous")}}),d),t.insert(d,n,R),t.insert(d,i,null),t.insert(B,t.createComponent(T.Button,{size:"sm",variant:"secondary",get disabled(){return n()>=i()},onClick:()=>e.onPageChange(Math.min(i(),n()+1)),get children(){return c.t("Next")}}),null),t.effect(l=>{var C=_.paginationRow,f=_.paginationMeta,I=_.paginationActions,V=_.paginationLabel,w=_.paginationPage;return C!==l.e&&t.className(g,l.e=C),f!==l.t&&t.className(s,l.t=f),I!==l.a&&t.className(B,l.a=I),V!==l.o&&t.className(S,l.o=V),w!==l.i&&t.className(d,l.i=w),l},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),g})()}const E="vk_toolbar_LSRmU",J="vk_toolbarHorizontal_qHM-8",X="vk_toolbarViewClip_Q893H",K="vk_toolbarScrollRoot_aYbLg",U="vk_toolbarScrollViewport_qBzjd",j="vk_toolbarScrollTrack_Tp8TN",D="vk_segmentedCapsule_k9EBy",G="vk_toolbarBtn_CcyXF",Q="vk_toolbarBtnActive_UgTBV",Y="vk_toolbarBtnIconOnly_BlE-b",Z="vk_toolbarHorizontalBottom_qLzhJ",W="vk_toolbarVertical_EjHi2",tt="vk_toolbarVerticalRight_DBgEa",et="vk_toolbarScrollRootVertical_VGLRy",ot="vk_toolbarScrollViewportVertical_RLF5g",rt="vk_toolbarScrollTrackVertical_c1rBF",at="vk_toolbarSettingsBtn_XXfMz",nt="vk_toolbarIcon_0FvlL",lt="vk_toolbarSpacer_N3TbQ",ct="vk_sortBadgePill_nVrIk",it="vk_sortBadgeBtn_Is9PS",st="vk_sortBadgeIcon_kw8oa",bt="vk_sortBadgeLabel_l-p33",gt="vk_sortBadgeClearBtn_ioOaP",ut="vk_sortBadgeClearIcon_0e6Kd",vt="vk_filterInputContainer_kegUv",_t="vk_filterSearchIcon_gI0m2",dt="vk_filterInput_bX9xM",Bt="vk_filterClearBtn_WerJL",St="vk_filterClearIcon_7fuAJ",o={toolbar:E,toolbarHorizontal:J,toolbarViewClip:X,toolbarScrollRoot:K,toolbarScrollViewport:U,toolbarScrollTrack:j,segmentedCapsule:D,toolbarBtn:G,toolbarBtnActive:Q,toolbarBtnIconOnly:Y,toolbarHorizontalBottom:Z,toolbarVertical:W,toolbarVerticalRight:tt,toolbarScrollRootVertical:et,toolbarScrollViewportVertical:ot,toolbarScrollTrackVertical:rt,toolbarSettingsBtn:at,toolbarIcon:nt,toolbarSpacer:lt,sortBadgePill:ct,sortBadgeBtn:it,sortBadgeIcon:st,sortBadgeLabel:bt,sortBadgeClearBtn:gt,sortBadgeClearIcon:ut,filterInputContainer:vt,filterSearchIcon:_t,filterInput:dt,filterClearBtn:Bt,filterClearIcon:St},kt="vk_searchRow_2pwXX",ht="vk_searchInput_PbDtG",mt="vk_clearBtn_upa-E",k={searchRow:kt,searchInput:ht,clearBtn:mt};var pt=t.template("<div>");function Ct(e){return t.createComponent(m.PressableSurface,{type:"button",get class(){return`${o.toolbarSettingsBtn} ${e.active?o.toolbarBtnActive:""}`},get onClick(){return e.onToggle},get"aria-pressed"(){return e.active},get"aria-label"(){return c.t("Search")},get title(){return c.t("Search")},get children(){return t.createComponent(p.VpSearch,{get class(){return o.toolbarIcon},"aria-hidden":"true"})}})}function ft(e){let a;return v.onMount(()=>a==null?void 0:a.focus()),(()=>{var r=pt();return t.insert(r,t.createComponent(m.Input,t.mergeProps({ref(n){var i=a;typeof i=="function"?i(n):a=n},get class(){return k.searchInput},type:"search",size:"sm",get value(){return e.value},onInput:n=>e.onInput(n.currentTarget.value),onKeyDown:n=>{y.isKey(n,"Escape")&&e.onClose()},get placeholder(){return e.placeholder??c.t("Search…")}},()=>e.disabled!==void 0?{disabled:e.disabled}:{})),null),t.insert(r,t.createComponent(v.Show,{get when(){return e.value.length>0},get children(){return t.createComponent(m.PressableSurface,{type:"button",get class(){return k.clearBtn},onClick:()=>e.onInput(""),get"aria-label"(){return c.t("Clear search")},get title(){return c.t("Clear search")},get children(){return t.createComponent(p.VpClose,{get class(){return z.iconScale.iconSm},"aria-hidden":"true"})}})}}),null),t.effect(()=>t.className(r,k.searchRow)),r})()}const It=Object.freeze({toolbar:o.toolbar,toolbarHorizontal:o.toolbarHorizontal,toolbarHorizontalBottom:o.toolbarHorizontalBottom,toolbarVertical:o.toolbarVertical,toolbarVerticalRight:o.toolbarVerticalRight,toolbarViewClip:o.toolbarViewClip,toolbarScrollRoot:o.toolbarScrollRoot,toolbarScrollViewport:o.toolbarScrollViewport,toolbarScrollTrack:o.toolbarScrollTrack,toolbarScrollRootVertical:o.toolbarScrollRootVertical,toolbarScrollViewportVertical:o.toolbarScrollViewportVertical,toolbarScrollTrackVertical:o.toolbarScrollTrackVertical,segmentedCapsule:o.segmentedCapsule,toolbarBtn:o.toolbarBtn,toolbarBtnActive:o.toolbarBtnActive,toolbarBtnIconOnly:o.toolbarBtnIconOnly,toolbarIcon:o.toolbarIcon,toolbarSpacer:o.toolbarSpacer,toolbarSettingsBtn:o.toolbarSettingsBtn,sortBadgePill:o.sortBadgePill,sortBadgeBtn:o.sortBadgeBtn,sortBadgeIcon:o.sortBadgeIcon,sortBadgeLabel:o.sortBadgeLabel,sortBadgeClearBtn:o.sortBadgeClearBtn,sortBadgeClearIcon:o.sortBadgeClearIcon,filterInputContainer:o.filterInputContainer,filterSearchIcon:o.filterSearchIcon,filterInput:o.filterInput,filterClearBtn:o.filterClearBtn,filterClearIcon:o.filterClearIcon});function Vt(e,a){const r=`${a}: `;throw new L.BugIndicatingError(`${r}Non-exhaustive switch: unexpected value ${JSON.stringify(e)}`)}const wt="vk_grid_uK6pm",Tt="vk_card_33OV3",zt="vk_item_UeZrE",Pt="vk_label_a-LFz",Rt="vk_value_9ZQBt",$t="vk_valueMono_knknq",yt="vk_boolOn_5zd-H",Lt="vk_boolOff_-6I4K",Ot="vk_stacked_2T--a",b={grid:wt,card:Tt,item:zt,label:Pt,value:Rt,valueMono:$t,boolOn:yt,boolOff:Lt,stacked:Ot};var h=t.template("<span>"),Nt=t.template("<div>"),Mt=t.template("<div><span>");function At(e,a){switch(e.kind){case"text":return(()=>{var r=h();return t.insert(r,()=>e.value(a)),t.effect(()=>t.className(r,b.value)),r})();case"mono":return(()=>{var r=h();return t.insert(r,()=>e.value(a)),t.effect(()=>t.className(r,b.valueMono)),r})();case"bool":return(()=>{var r=h();return t.insert(r,(()=>{var n=t.memo(()=>!!e.on(a));return()=>n()?t.createComponent(p.VpCheck,{get class(){return z.iconScale.iconSm},"aria-hidden":"true"}):"—"})()),t.effect(()=>t.className(r,`${b.value} ${e.on(a)?b.boolOn:b.boolOff}`)),r})();case"custom":return e.render(a);default:return Vt(e,"AttributeField.kind")}}function qt(e){return t.createComponent(v.Show,{get when(){return e.row()!=null},get children(){var a=Nt();return t.insert(a,t.createComponent(v.For,{get each(){return e.fields},children:r=>(()=>{var n=Mt(),i=n.firstChild;return t.insert(i,()=>r.label),t.insert(n,()=>At(r,e.row()),null),t.effect(u=>{var g=b.item,s=b.label;return g!==u.e&&t.className(n,u.e=g),s!==u.t&&t.className(i,u.t=s),u},{e:void 0,t:void 0}),n})()})),t.effect(()=>t.className(a,`${b.grid} ${b[e.variant]??""}`)),a}})}exports.AttributeGrid=qt;exports.Pagination=F;exports.ToolbarSearchRow=ft;exports.ToolbarSearchToggle=Ct;exports.pageSizeOptionLabel=P;exports.resultTabToolbarClasses=It;
|