@vokril/ui-solid 0.31.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 +50 -0
- package/README.md +67 -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-CNs_obmZ.cjs +50 -0
- package/dist/{StatusBarNotificationBell-ZTEhZFmJ.js → StatusBarNotificationBell-CgsYrrpj.js} +4868 -4790
- 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/notification.d.cts +19 -3
- package/dist/_internal/contract/notification.d.ts +19 -3
- 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/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 +2 -2
- 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/overlay/Modal.d.cts +16 -3
- package/dist/overlay/Modal.d.ts +16 -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 +16 -2
- package/dist/overlay/modalViewport.d.ts +16 -2
- package/dist/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{server/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-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-DW2l5O9B.js → StatusBarNotificationBell-CJJFE4rf.js} +4468 -4390
- 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-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/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 +2 -2
- 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-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 -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/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 +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/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/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 +19 -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/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
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,56 @@ 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
|
+
|
|
8
58
|
## 0.31.0
|
|
9
59
|
|
|
10
60
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -95,11 +95,15 @@ notification goes, the one before it takes the focus (the new first, when it was
|
|
|
95
95
|
when the last one goes, the center hides — its host's `onHide` is called, as it is when do not
|
|
96
96
|
disturb or the run-time filter turns on while the center is open. A host that shows a center
|
|
97
97
|
again, or brings a `NotificationPanel` on screen (a dock, a tool window), focuses the first
|
|
98
|
-
notification itself
|
|
99
|
-
|
|
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):
|
|
100
104
|
|
|
101
105
|
```tsx
|
|
102
|
-
if (!focusFirstNotificationEntry(panelRoot))
|
|
106
|
+
if (!focusFirstNotificationEntry(panelRoot)) panelRoot.focus();
|
|
103
107
|
```
|
|
104
108
|
|
|
105
109
|
Which running progress is out of the user's sight — sent to the center, or clipped under newer
|
|
@@ -111,6 +115,23 @@ counts these, and a status bar that mirrors such a progress shows the first:
|
|
|
111
115
|
notifications.stack.subscribe((items) => setMirrored(hiddenRunningProgress(items)[0] ?? null));
|
|
112
116
|
```
|
|
113
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
|
+
|
|
114
135
|
## Stylesheets
|
|
115
136
|
|
|
116
137
|
| Import | Contents |
|
|
@@ -172,6 +193,7 @@ Every subpath has ESM, CommonJS, type declarations, a server build and a Solid s
|
|
|
172
193
|
| `/charts` | TimeSeriesChart |
|
|
173
194
|
| `/a11y` | AriaAnnouncer and the announcement helpers |
|
|
174
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 |
|
|
175
197
|
| `/i18n` | `t`, `setLocale`, `setMessages`, language registry |
|
|
176
198
|
| `/settings` | The settings registry the kit and its host share: `defineSettings`, field specs, the kit's own groups (notifications, header icon overrides) |
|
|
177
199
|
| `/host` | The ports an application plugs into the kit (see [Embedding in an application](#embedding-in-an-application)) |
|
|
@@ -217,6 +239,36 @@ const surface = createTreeSurface({
|
|
|
217
239
|
- Very long lists scroll past the browser's element-height limit: the container is capped and positions
|
|
218
240
|
map proportionally (`createVirtualWindow`).
|
|
219
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
|
+
|
|
220
272
|
## Theming
|
|
221
273
|
|
|
222
274
|
`ThemeProvider` applies a palette to `<html>`. It writes the derived `--color-*` properties, the
|
|
@@ -389,7 +441,7 @@ A few realm facts and registries are set once at startup:
|
|
|
389
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 |
|
|
390
442
|
| `KeybindingsProvider`, `ToolWindowContext` | Its keybinding service and tool window layout (provide the host's values to these contexts) | Unset: notification shortcuts off |
|
|
391
443
|
| `HostWindowProvider` | The window each root renders into | None: required at every root |
|
|
392
|
-
| `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 | None: those controls show no focus when the keyboard reaches them |
|
|
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 |
|
|
393
445
|
| `registerVisibleBrowser` | Embedded browser views that toasts must avoid | None |
|
|
394
446
|
|
|
395
447
|
```ts
|
|
@@ -445,6 +497,17 @@ Component tests check keyboard paths (arrow keys, Home/End, Escape, focus trap,
|
|
|
445
497
|
axe on every tested component. Known findings are kept in a list, and a test fails when a listed
|
|
446
498
|
finding disappears, so the list only shrinks.
|
|
447
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
|
+
|
|
448
511
|
## Changelog
|
|
449
512
|
|
|
450
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;
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { insert as l, createComponent as c, effect as d, className as i, template as k, mergeProps as O, memo as A } from "solid-js/web";
|
|
2
|
+
import { createMemo as f, onMount as M, Show as T, For as H } from "solid-js";
|
|
3
|
+
import { S as x } from "./SearchableSelect-Du12kcI9.js";
|
|
4
|
+
import { B as R } from "./Button-CX7mylBT.js";
|
|
5
|
+
import { t as s } from "./i18n-CBlUGOyu.js";
|
|
6
|
+
import { I as F, P as $ } from "./Input-C3rEQffK.js";
|
|
7
|
+
import { VpClose as N, VpSearch as E, VpCheck as X } from "@vokril/icons";
|
|
8
|
+
import { i as y } from "./iconScale.module-C3O0bxfp.js";
|
|
9
|
+
import { i as J } from "./keys-B2nlkpqc.js";
|
|
10
|
+
import { B as K } from "./bugIndicatingError-h3J5qkL6.js";
|
|
11
|
+
function U(t, r) {
|
|
12
|
+
return t <= 0 ? r : String(t);
|
|
13
|
+
}
|
|
14
|
+
const j = "vk_paginationRow_hg8fj", q = "vk_paginationMeta_rPi8N", D = "vk_paginationActions_gD2Fz", G = "vk_paginationLabel_9x9Ah", Q = "vk_paginationSelect_h5BcT", Y = "vk_paginationPage_CYJRF", B = {
|
|
15
|
+
paginationRow: j,
|
|
16
|
+
paginationMeta: q,
|
|
17
|
+
paginationActions: D,
|
|
18
|
+
paginationLabel: G,
|
|
19
|
+
paginationSelect: Q,
|
|
20
|
+
paginationPage: Y
|
|
21
|
+
};
|
|
22
|
+
var Z = /* @__PURE__ */ k("<div><span></span><div><label></label><span> / ");
|
|
23
|
+
function eo(t) {
|
|
24
|
+
const r = f(() => t.page), e = f(() => t.totalPages), a = () => r()(), b = () => e()(), _ = f(() => {
|
|
25
|
+
const v = s("Unlimited");
|
|
26
|
+
return t.pageSizeOptions.map((g) => ({
|
|
27
|
+
value: String(g),
|
|
28
|
+
label: U(g, v)
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
return (() => {
|
|
32
|
+
var v = Z(), g = v.firstChild, h = g.nextSibling, p = h.firstChild, S = p.nextSibling, L = S.firstChild;
|
|
33
|
+
return l(g, () => s("Showing {shown} of {total} items", {
|
|
34
|
+
shown: t.shownCount(),
|
|
35
|
+
total: t.totalCount()
|
|
36
|
+
})), l(p, () => s("Page size"), null), l(p, c(x, {
|
|
37
|
+
size: "sm",
|
|
38
|
+
get class() {
|
|
39
|
+
return B.paginationSelect;
|
|
40
|
+
},
|
|
41
|
+
get value() {
|
|
42
|
+
return String(t.pageSize());
|
|
43
|
+
},
|
|
44
|
+
get options() {
|
|
45
|
+
return _();
|
|
46
|
+
},
|
|
47
|
+
onChange: (n) => {
|
|
48
|
+
t.onPageSizeChange(Number(n));
|
|
49
|
+
},
|
|
50
|
+
searchable: !1,
|
|
51
|
+
get ariaLabel() {
|
|
52
|
+
return s("Page size");
|
|
53
|
+
}
|
|
54
|
+
}), null), l(h, c(R, {
|
|
55
|
+
size: "sm",
|
|
56
|
+
variant: "secondary",
|
|
57
|
+
get disabled() {
|
|
58
|
+
return a() <= 1;
|
|
59
|
+
},
|
|
60
|
+
onClick: () => t.onPageChange(Math.max(1, a() - 1)),
|
|
61
|
+
get children() {
|
|
62
|
+
return s("Previous");
|
|
63
|
+
}
|
|
64
|
+
}), S), l(S, a, L), l(S, b, null), l(h, c(R, {
|
|
65
|
+
size: "sm",
|
|
66
|
+
variant: "secondary",
|
|
67
|
+
get disabled() {
|
|
68
|
+
return a() >= b();
|
|
69
|
+
},
|
|
70
|
+
onClick: () => t.onPageChange(Math.min(b(), a() + 1)),
|
|
71
|
+
get children() {
|
|
72
|
+
return s("Next");
|
|
73
|
+
}
|
|
74
|
+
}), null), d((n) => {
|
|
75
|
+
var I = B.paginationRow, V = B.paginationMeta, w = B.paginationActions, P = B.paginationLabel, z = B.paginationPage;
|
|
76
|
+
return I !== n.e && i(v, n.e = I), V !== n.t && i(g, n.t = V), w !== n.a && i(h, n.a = w), P !== n.o && i(p, n.o = P), z !== n.i && i(S, n.i = z), n;
|
|
77
|
+
}, {
|
|
78
|
+
e: void 0,
|
|
79
|
+
t: void 0,
|
|
80
|
+
a: void 0,
|
|
81
|
+
o: void 0,
|
|
82
|
+
i: void 0
|
|
83
|
+
}), v;
|
|
84
|
+
})();
|
|
85
|
+
}
|
|
86
|
+
const W = "vk_toolbar_LSRmU", tt = "vk_toolbarHorizontal_qHM-8", ot = "vk_toolbarViewClip_Q893H", et = "vk_toolbarScrollRoot_aYbLg", rt = "vk_toolbarScrollViewport_qBzjd", at = "vk_toolbarScrollTrack_Tp8TN", lt = "vk_segmentedCapsule_k9EBy", nt = "vk_toolbarBtn_CcyXF", it = "vk_toolbarBtnActive_UgTBV", ct = "vk_toolbarBtnIconOnly_BlE-b", st = "vk_toolbarHorizontalBottom_qLzhJ", bt = "vk_toolbarVertical_EjHi2", gt = "vk_toolbarVerticalRight_DBgEa", ut = "vk_toolbarScrollRootVertical_VGLRy", vt = "vk_toolbarScrollViewportVertical_RLF5g", _t = "vk_toolbarScrollTrackVertical_c1rBF", dt = "vk_toolbarSettingsBtn_XXfMz", Bt = "vk_toolbarIcon_0FvlL", St = "vk_toolbarSpacer_N3TbQ", kt = "vk_sortBadgePill_nVrIk", ht = "vk_sortBadgeBtn_Is9PS", pt = "vk_sortBadgeIcon_kw8oa", ft = "vk_sortBadgeLabel_l-p33", mt = "vk_sortBadgeClearBtn_ioOaP", Ct = "vk_sortBadgeClearIcon_0e6Kd", It = "vk_filterInputContainer_kegUv", Vt = "vk_filterSearchIcon_gI0m2", wt = "vk_filterInput_bX9xM", Pt = "vk_filterClearBtn_WerJL", zt = "vk_filterClearIcon_7fuAJ", o = {
|
|
87
|
+
toolbar: W,
|
|
88
|
+
toolbarHorizontal: tt,
|
|
89
|
+
toolbarViewClip: ot,
|
|
90
|
+
toolbarScrollRoot: et,
|
|
91
|
+
toolbarScrollViewport: rt,
|
|
92
|
+
toolbarScrollTrack: at,
|
|
93
|
+
segmentedCapsule: lt,
|
|
94
|
+
toolbarBtn: nt,
|
|
95
|
+
toolbarBtnActive: it,
|
|
96
|
+
toolbarBtnIconOnly: ct,
|
|
97
|
+
toolbarHorizontalBottom: st,
|
|
98
|
+
toolbarVertical: bt,
|
|
99
|
+
toolbarVerticalRight: gt,
|
|
100
|
+
toolbarScrollRootVertical: ut,
|
|
101
|
+
toolbarScrollViewportVertical: vt,
|
|
102
|
+
toolbarScrollTrackVertical: _t,
|
|
103
|
+
toolbarSettingsBtn: dt,
|
|
104
|
+
toolbarIcon: Bt,
|
|
105
|
+
toolbarSpacer: St,
|
|
106
|
+
sortBadgePill: kt,
|
|
107
|
+
sortBadgeBtn: ht,
|
|
108
|
+
sortBadgeIcon: pt,
|
|
109
|
+
sortBadgeLabel: ft,
|
|
110
|
+
sortBadgeClearBtn: mt,
|
|
111
|
+
sortBadgeClearIcon: Ct,
|
|
112
|
+
filterInputContainer: It,
|
|
113
|
+
filterSearchIcon: Vt,
|
|
114
|
+
filterInput: wt,
|
|
115
|
+
filterClearBtn: Pt,
|
|
116
|
+
filterClearIcon: zt
|
|
117
|
+
}, Rt = "vk_searchRow_2pwXX", Tt = "vk_searchInput_PbDtG", $t = "vk_clearBtn_upa-E", m = {
|
|
118
|
+
searchRow: Rt,
|
|
119
|
+
searchInput: Tt,
|
|
120
|
+
clearBtn: $t
|
|
121
|
+
};
|
|
122
|
+
var yt = /* @__PURE__ */ k("<div>");
|
|
123
|
+
function ro(t) {
|
|
124
|
+
return c($, {
|
|
125
|
+
type: "button",
|
|
126
|
+
get class() {
|
|
127
|
+
return `${o.toolbarSettingsBtn} ${t.active ? o.toolbarBtnActive : ""}`;
|
|
128
|
+
},
|
|
129
|
+
get onClick() {
|
|
130
|
+
return t.onToggle;
|
|
131
|
+
},
|
|
132
|
+
get "aria-pressed"() {
|
|
133
|
+
return t.active;
|
|
134
|
+
},
|
|
135
|
+
get "aria-label"() {
|
|
136
|
+
return s("Search");
|
|
137
|
+
},
|
|
138
|
+
get title() {
|
|
139
|
+
return s("Search");
|
|
140
|
+
},
|
|
141
|
+
get children() {
|
|
142
|
+
return c(E, {
|
|
143
|
+
get class() {
|
|
144
|
+
return o.toolbarIcon;
|
|
145
|
+
},
|
|
146
|
+
"aria-hidden": "true"
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function ao(t) {
|
|
152
|
+
let r;
|
|
153
|
+
return M(() => r == null ? void 0 : r.focus()), (() => {
|
|
154
|
+
var e = yt();
|
|
155
|
+
return l(e, c(F, O({
|
|
156
|
+
ref(a) {
|
|
157
|
+
var b = r;
|
|
158
|
+
typeof b == "function" ? b(a) : r = a;
|
|
159
|
+
},
|
|
160
|
+
get class() {
|
|
161
|
+
return m.searchInput;
|
|
162
|
+
},
|
|
163
|
+
type: "search",
|
|
164
|
+
size: "sm",
|
|
165
|
+
get value() {
|
|
166
|
+
return t.value;
|
|
167
|
+
},
|
|
168
|
+
onInput: (a) => t.onInput(a.currentTarget.value),
|
|
169
|
+
onKeyDown: (a) => {
|
|
170
|
+
J(a, "Escape") && t.onClose();
|
|
171
|
+
},
|
|
172
|
+
get placeholder() {
|
|
173
|
+
return t.placeholder ?? s("Search…");
|
|
174
|
+
}
|
|
175
|
+
}, () => t.disabled !== void 0 ? {
|
|
176
|
+
disabled: t.disabled
|
|
177
|
+
} : {})), null), l(e, c(T, {
|
|
178
|
+
get when() {
|
|
179
|
+
return t.value.length > 0;
|
|
180
|
+
},
|
|
181
|
+
get children() {
|
|
182
|
+
return c($, {
|
|
183
|
+
type: "button",
|
|
184
|
+
get class() {
|
|
185
|
+
return m.clearBtn;
|
|
186
|
+
},
|
|
187
|
+
onClick: () => t.onInput(""),
|
|
188
|
+
get "aria-label"() {
|
|
189
|
+
return s("Clear search");
|
|
190
|
+
},
|
|
191
|
+
get title() {
|
|
192
|
+
return s("Clear search");
|
|
193
|
+
},
|
|
194
|
+
get children() {
|
|
195
|
+
return c(N, {
|
|
196
|
+
get class() {
|
|
197
|
+
return y.iconSm;
|
|
198
|
+
},
|
|
199
|
+
"aria-hidden": "true"
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}), null), d(() => i(e, m.searchRow)), e;
|
|
205
|
+
})();
|
|
206
|
+
}
|
|
207
|
+
const lo = Object.freeze({
|
|
208
|
+
toolbar: o.toolbar,
|
|
209
|
+
toolbarHorizontal: o.toolbarHorizontal,
|
|
210
|
+
toolbarHorizontalBottom: o.toolbarHorizontalBottom,
|
|
211
|
+
toolbarVertical: o.toolbarVertical,
|
|
212
|
+
toolbarVerticalRight: o.toolbarVerticalRight,
|
|
213
|
+
toolbarViewClip: o.toolbarViewClip,
|
|
214
|
+
toolbarScrollRoot: o.toolbarScrollRoot,
|
|
215
|
+
toolbarScrollViewport: o.toolbarScrollViewport,
|
|
216
|
+
toolbarScrollTrack: o.toolbarScrollTrack,
|
|
217
|
+
toolbarScrollRootVertical: o.toolbarScrollRootVertical,
|
|
218
|
+
toolbarScrollViewportVertical: o.toolbarScrollViewportVertical,
|
|
219
|
+
toolbarScrollTrackVertical: o.toolbarScrollTrackVertical,
|
|
220
|
+
segmentedCapsule: o.segmentedCapsule,
|
|
221
|
+
toolbarBtn: o.toolbarBtn,
|
|
222
|
+
toolbarBtnActive: o.toolbarBtnActive,
|
|
223
|
+
toolbarBtnIconOnly: o.toolbarBtnIconOnly,
|
|
224
|
+
toolbarIcon: o.toolbarIcon,
|
|
225
|
+
toolbarSpacer: o.toolbarSpacer,
|
|
226
|
+
toolbarSettingsBtn: o.toolbarSettingsBtn,
|
|
227
|
+
sortBadgePill: o.sortBadgePill,
|
|
228
|
+
sortBadgeBtn: o.sortBadgeBtn,
|
|
229
|
+
sortBadgeIcon: o.sortBadgeIcon,
|
|
230
|
+
sortBadgeLabel: o.sortBadgeLabel,
|
|
231
|
+
sortBadgeClearBtn: o.sortBadgeClearBtn,
|
|
232
|
+
sortBadgeClearIcon: o.sortBadgeClearIcon,
|
|
233
|
+
filterInputContainer: o.filterInputContainer,
|
|
234
|
+
filterSearchIcon: o.filterSearchIcon,
|
|
235
|
+
filterInput: o.filterInput,
|
|
236
|
+
filterClearBtn: o.filterClearBtn,
|
|
237
|
+
filterClearIcon: o.filterClearIcon
|
|
238
|
+
});
|
|
239
|
+
function Lt(t, r) {
|
|
240
|
+
const e = `${r}: `;
|
|
241
|
+
throw new K(
|
|
242
|
+
`${e}Non-exhaustive switch: unexpected value ${JSON.stringify(t)}`
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
const Ot = "vk_grid_uK6pm", At = "vk_card_33OV3", Mt = "vk_item_UeZrE", Ht = "vk_label_a-LFz", xt = "vk_value_9ZQBt", Ft = "vk_valueMono_knknq", Nt = "vk_boolOn_5zd-H", Et = "vk_boolOff_-6I4K", Xt = "vk_stacked_2T--a", u = {
|
|
246
|
+
grid: Ot,
|
|
247
|
+
card: At,
|
|
248
|
+
item: Mt,
|
|
249
|
+
label: Ht,
|
|
250
|
+
value: xt,
|
|
251
|
+
valueMono: Ft,
|
|
252
|
+
boolOn: Nt,
|
|
253
|
+
boolOff: Et,
|
|
254
|
+
stacked: Xt
|
|
255
|
+
};
|
|
256
|
+
var C = /* @__PURE__ */ k("<span>"), Jt = /* @__PURE__ */ k("<div>"), Kt = /* @__PURE__ */ k("<div><span>");
|
|
257
|
+
function Ut(t, r) {
|
|
258
|
+
switch (t.kind) {
|
|
259
|
+
case "text":
|
|
260
|
+
return (() => {
|
|
261
|
+
var e = C();
|
|
262
|
+
return l(e, () => t.value(r)), d(() => i(e, u.value)), e;
|
|
263
|
+
})();
|
|
264
|
+
case "mono":
|
|
265
|
+
return (() => {
|
|
266
|
+
var e = C();
|
|
267
|
+
return l(e, () => t.value(r)), d(() => i(e, u.valueMono)), e;
|
|
268
|
+
})();
|
|
269
|
+
case "bool":
|
|
270
|
+
return (() => {
|
|
271
|
+
var e = C();
|
|
272
|
+
return l(e, (() => {
|
|
273
|
+
var a = A(() => !!t.on(r));
|
|
274
|
+
return () => a() ? c(X, {
|
|
275
|
+
get class() {
|
|
276
|
+
return y.iconSm;
|
|
277
|
+
},
|
|
278
|
+
"aria-hidden": "true"
|
|
279
|
+
}) : "—";
|
|
280
|
+
})()), d(() => i(e, `${u.value} ${t.on(r) ? u.boolOn : u.boolOff}`)), e;
|
|
281
|
+
})();
|
|
282
|
+
case "custom":
|
|
283
|
+
return t.render(r);
|
|
284
|
+
default:
|
|
285
|
+
return Lt(t, "AttributeField.kind");
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
function no(t) {
|
|
289
|
+
return c(T, {
|
|
290
|
+
get when() {
|
|
291
|
+
return t.row() != null;
|
|
292
|
+
},
|
|
293
|
+
get children() {
|
|
294
|
+
var r = Jt();
|
|
295
|
+
return l(r, c(H, {
|
|
296
|
+
get each() {
|
|
297
|
+
return t.fields;
|
|
298
|
+
},
|
|
299
|
+
children: (e) => (() => {
|
|
300
|
+
var a = Kt(), b = a.firstChild;
|
|
301
|
+
return l(b, () => e.label), l(a, () => Ut(e, t.row()), null), d((_) => {
|
|
302
|
+
var v = u.item, g = u.label;
|
|
303
|
+
return v !== _.e && i(a, _.e = v), g !== _.t && i(b, _.t = g), _;
|
|
304
|
+
}, {
|
|
305
|
+
e: void 0,
|
|
306
|
+
t: void 0
|
|
307
|
+
}), a;
|
|
308
|
+
})()
|
|
309
|
+
})), d(() => i(r, `${u.grid} ${u[t.variant] ?? ""}`)), r;
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
export {
|
|
314
|
+
no as A,
|
|
315
|
+
eo as P,
|
|
316
|
+
ao as T,
|
|
317
|
+
ro as a,
|
|
318
|
+
U as p,
|
|
319
|
+
lo as r
|
|
320
|
+
};
|