@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
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { use as _, spread as F, mergeProps as I, memo as C, insert as D, template as E, createComponent as w, Portal as H, effect as V, setAttribute as B, className as W } from "solid-js/web";
|
|
2
|
+
import { splitProps as $, createUniqueId as M, createMemo as P, onCleanup as O, createContext as j, useContext as G, onMount as N, createSignal as z, batch as A, createEffect as K, on as Q, Show as x } from "solid-js";
|
|
3
|
+
import { t as k, r as U, h as J } from "./nativeTitleHold-A9jUISgQ.js";
|
|
4
|
+
import { i as X } from "./keys-B2nlkpqc.js";
|
|
5
|
+
import { u as Y } from "./kitHost-BMMWpU4w.js";
|
|
6
|
+
import { u as Z, n as ee } from "./overlayStack-Bj6Lg1Rm.js";
|
|
7
|
+
import { l as te, A as ne, b as oe } from "./anchoredLayout-E0mqCWxk.js";
|
|
8
|
+
import { t as S } from "./i18n-CBlUGOyu.js";
|
|
9
|
+
const re = "vk_root_1DrgK", ie = "vk_appearancePlain_tlRDR", ae = "vk_appearanceRow_z9L2i", se = "vk_appearanceCard_fBEzd", ce = "vk_appearanceMedia_dauP0", L = {
|
|
10
|
+
root: re,
|
|
11
|
+
appearancePlain: ie,
|
|
12
|
+
appearanceRow: ae,
|
|
13
|
+
appearanceCard: se,
|
|
14
|
+
appearanceMedia: ce
|
|
15
|
+
};
|
|
16
|
+
var le = /* @__PURE__ */ E("<div role=button>"), ue = /* @__PURE__ */ E("<button>");
|
|
17
|
+
const de = {
|
|
18
|
+
plain: L.appearancePlain,
|
|
19
|
+
row: L.appearanceRow,
|
|
20
|
+
card: L.appearanceCard,
|
|
21
|
+
media: L.appearanceMedia
|
|
22
|
+
};
|
|
23
|
+
function Re(i) {
|
|
24
|
+
const [e, c] = $(i, ["appearance", "current", "selected", "type", "as", "disabled", "class", "classList", "children", "tooltip", "tooltipShortcut", "tooltipPlacement", "title", "aria-label", "ref", "onPointerEnter", "onPointerLeave", "onFocusIn", "onFocusOut", "onClick", "onKeyDown"]);
|
|
25
|
+
let s;
|
|
26
|
+
const f = M(), l = () => e.tooltip !== void 0 ? typeof e.tooltip == "function" ? e.tooltip() : e.tooltip : e.title, u = P(() => ({
|
|
27
|
+
content: l(),
|
|
28
|
+
shortcut: e.tooltipShortcut,
|
|
29
|
+
placement: e.tooltipPlacement
|
|
30
|
+
})), r = () => {
|
|
31
|
+
if (e["aria-label"] !== void 0)
|
|
32
|
+
return e["aria-label"];
|
|
33
|
+
const n = u().content;
|
|
34
|
+
if (n) return n;
|
|
35
|
+
}, p = () => {
|
|
36
|
+
const {
|
|
37
|
+
content: n,
|
|
38
|
+
shortcut: t,
|
|
39
|
+
placement: a
|
|
40
|
+
} = u();
|
|
41
|
+
!n || !s || (J(s), k.showTooltip({
|
|
42
|
+
id: f,
|
|
43
|
+
target: s,
|
|
44
|
+
content: n,
|
|
45
|
+
shortcut: t,
|
|
46
|
+
placement: a
|
|
47
|
+
}));
|
|
48
|
+
}, d = () => {
|
|
49
|
+
s && (U(s), k.hideTooltip(s));
|
|
50
|
+
}, v = () => {
|
|
51
|
+
s && k.hideTooltip(s);
|
|
52
|
+
};
|
|
53
|
+
O(() => {
|
|
54
|
+
d();
|
|
55
|
+
});
|
|
56
|
+
const g = () => e.appearance ?? "plain", y = () => [L.root, de[g()], e.class].filter((n) => !!n).join(" ");
|
|
57
|
+
if (e.as === "div") {
|
|
58
|
+
const n = c, t = P(() => !!(e.disabled || n["aria-disabled"] === "true" || n["aria-disabled"] === !0));
|
|
59
|
+
return (() => {
|
|
60
|
+
var a = le();
|
|
61
|
+
return _((o) => {
|
|
62
|
+
s = o, typeof e.ref == "function" && e.ref(o);
|
|
63
|
+
}, a), F(a, I({
|
|
64
|
+
get tabIndex() {
|
|
65
|
+
return C(() => !!t())() ? -1 : n.tabIndex ?? 0;
|
|
66
|
+
}
|
|
67
|
+
}, n, {
|
|
68
|
+
get class() {
|
|
69
|
+
return y();
|
|
70
|
+
},
|
|
71
|
+
get classList() {
|
|
72
|
+
return e.classList;
|
|
73
|
+
},
|
|
74
|
+
get "aria-label"() {
|
|
75
|
+
return r();
|
|
76
|
+
},
|
|
77
|
+
get title() {
|
|
78
|
+
return C(() => e.tooltip !== void 0)() ? void 0 : e.title;
|
|
79
|
+
},
|
|
80
|
+
get "aria-disabled"() {
|
|
81
|
+
return t() ? "true" : void 0;
|
|
82
|
+
},
|
|
83
|
+
get "data-current"() {
|
|
84
|
+
return e.current ? "true" : void 0;
|
|
85
|
+
},
|
|
86
|
+
get "data-selected"() {
|
|
87
|
+
return e.selected ? "true" : void 0;
|
|
88
|
+
},
|
|
89
|
+
onPointerEnter: (o) => {
|
|
90
|
+
p(), typeof e.onPointerEnter == "function" && e.onPointerEnter(o);
|
|
91
|
+
},
|
|
92
|
+
onPointerLeave: (o) => {
|
|
93
|
+
d(), typeof e.onPointerLeave == "function" && e.onPointerLeave(o);
|
|
94
|
+
},
|
|
95
|
+
onFocusIn: (o) => {
|
|
96
|
+
p(), typeof e.onFocusIn == "function" && e.onFocusIn(o);
|
|
97
|
+
},
|
|
98
|
+
onFocusOut: (o) => {
|
|
99
|
+
d(), typeof e.onFocusOut == "function" && e.onFocusOut(o);
|
|
100
|
+
},
|
|
101
|
+
onClick: (o) => {
|
|
102
|
+
if (v(), t()) {
|
|
103
|
+
o.preventDefault(), o.stopPropagation();
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (typeof e.onClick == "function")
|
|
107
|
+
e.onClick(o);
|
|
108
|
+
else if (Array.isArray(e.onClick)) {
|
|
109
|
+
const [m, h] = e.onClick;
|
|
110
|
+
m(h, o);
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
onKeyDown: (o) => {
|
|
114
|
+
if (!t()) {
|
|
115
|
+
if (o.target === o.currentTarget && (X(o, "Enter") || o.key === " ") && (o.preventDefault(), o.currentTarget.click()), typeof e.onKeyDown == "function")
|
|
116
|
+
e.onKeyDown(o);
|
|
117
|
+
else if (Array.isArray(e.onKeyDown)) {
|
|
118
|
+
const [m, h] = e.onKeyDown;
|
|
119
|
+
m(h, o);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}), !1, !0), D(a, () => e.children), a;
|
|
124
|
+
})();
|
|
125
|
+
}
|
|
126
|
+
return (() => {
|
|
127
|
+
var n = ue();
|
|
128
|
+
return _((t) => {
|
|
129
|
+
s = t, typeof e.ref == "function" && e.ref(t);
|
|
130
|
+
}, n), F(n, I(c, {
|
|
131
|
+
get type() {
|
|
132
|
+
return e.type ?? "button";
|
|
133
|
+
},
|
|
134
|
+
get disabled() {
|
|
135
|
+
return e.disabled;
|
|
136
|
+
},
|
|
137
|
+
get class() {
|
|
138
|
+
return y();
|
|
139
|
+
},
|
|
140
|
+
get classList() {
|
|
141
|
+
return e.classList;
|
|
142
|
+
},
|
|
143
|
+
get "aria-label"() {
|
|
144
|
+
return r();
|
|
145
|
+
},
|
|
146
|
+
get title() {
|
|
147
|
+
return C(() => e.tooltip !== void 0)() ? void 0 : e.title;
|
|
148
|
+
},
|
|
149
|
+
get "data-current"() {
|
|
150
|
+
return e.current ? "true" : void 0;
|
|
151
|
+
},
|
|
152
|
+
get "data-selected"() {
|
|
153
|
+
return e.selected ? "true" : void 0;
|
|
154
|
+
},
|
|
155
|
+
get onKeyDown() {
|
|
156
|
+
return e.onKeyDown;
|
|
157
|
+
},
|
|
158
|
+
onPointerEnter: (t) => {
|
|
159
|
+
p(), typeof e.onPointerEnter == "function" && e.onPointerEnter(t);
|
|
160
|
+
},
|
|
161
|
+
onPointerLeave: (t) => {
|
|
162
|
+
d(), typeof e.onPointerLeave == "function" && e.onPointerLeave(t);
|
|
163
|
+
},
|
|
164
|
+
onFocusIn: (t) => {
|
|
165
|
+
p(), typeof e.onFocusIn == "function" && e.onFocusIn(t);
|
|
166
|
+
},
|
|
167
|
+
onFocusOut: (t) => {
|
|
168
|
+
d(), typeof e.onFocusOut == "function" && e.onFocusOut(t);
|
|
169
|
+
},
|
|
170
|
+
onClick: (t) => {
|
|
171
|
+
if (v(), typeof e.onClick == "function")
|
|
172
|
+
e.onClick(t);
|
|
173
|
+
else if (Array.isArray(e.onClick)) {
|
|
174
|
+
const [a, o] = e.onClick;
|
|
175
|
+
a(o, t);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}), !1, !0), D(n, () => e.children), n;
|
|
179
|
+
})();
|
|
180
|
+
}
|
|
181
|
+
const q = j(), Te = q.Provider;
|
|
182
|
+
function fe() {
|
|
183
|
+
return G(q);
|
|
184
|
+
}
|
|
185
|
+
function pe(i, e) {
|
|
186
|
+
if (e.ariaLabelledBy !== void 0) return e.ariaLabelledBy;
|
|
187
|
+
if (!(e.ariaLabel !== void 0 || i === void 0 || i.wrapsControlInLabel !== !1))
|
|
188
|
+
return i.labelId;
|
|
189
|
+
}
|
|
190
|
+
function me(i) {
|
|
191
|
+
var f;
|
|
192
|
+
const e = i.open ?? (() => !0), c = () => {
|
|
193
|
+
const l = i.mount;
|
|
194
|
+
return l.nodeType === Node.DOCUMENT_NODE ? l : l.ownerDocument ?? void 0;
|
|
195
|
+
}, s = Z(e, i.idPrefix ?? "portal-overlay", {
|
|
196
|
+
type: i.modal === !0 ? "modal" : i.type,
|
|
197
|
+
element: i.element,
|
|
198
|
+
document: c
|
|
199
|
+
});
|
|
200
|
+
return (f = i.onLayer) == null || f.call(i, s), N(() => {
|
|
201
|
+
ee();
|
|
202
|
+
}), w(H, {
|
|
203
|
+
get mount() {
|
|
204
|
+
return i.mount;
|
|
205
|
+
},
|
|
206
|
+
get children() {
|
|
207
|
+
return i.children;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
const ve = "vk_input_eLMd0 vk_inputChrome_VIaGv", ge = "vk_message_EfGru", ye = "vk_sizeSm_xI-Y5", he = "vk_sizeLg_QXUwr", be = "vk_mono_oJb--", we = "vk_borderless_QhnQ0", b = {
|
|
212
|
+
input: ve,
|
|
213
|
+
message: ge,
|
|
214
|
+
sizeSm: ye,
|
|
215
|
+
sizeLg: he,
|
|
216
|
+
mono: be,
|
|
217
|
+
borderless: we
|
|
218
|
+
};
|
|
219
|
+
var Le = /* @__PURE__ */ E("<div>");
|
|
220
|
+
const Pe = {
|
|
221
|
+
error: "Error",
|
|
222
|
+
warning: "Warning",
|
|
223
|
+
info: "Info"
|
|
224
|
+
};
|
|
225
|
+
function _e(i) {
|
|
226
|
+
const e = P(() => i.input), {
|
|
227
|
+
announcer: c
|
|
228
|
+
} = Y(), [s, f] = z(), [l, u] = z(!1);
|
|
229
|
+
let r;
|
|
230
|
+
const p = () => {
|
|
231
|
+
A(() => {
|
|
232
|
+
f(e().ownerDocument), u(!0);
|
|
233
|
+
});
|
|
234
|
+
}, d = () => {
|
|
235
|
+
u(!1);
|
|
236
|
+
};
|
|
237
|
+
e().addEventListener("focus", p), e().addEventListener("blur", d), O(() => {
|
|
238
|
+
e().removeEventListener("focus", p), e().removeEventListener("blur", d);
|
|
239
|
+
}), N(() => {
|
|
240
|
+
const n = e().ownerDocument;
|
|
241
|
+
A(() => {
|
|
242
|
+
f(n), u(n.activeElement === e());
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
const v = P(() => i.message.tone), g = P(() => i.message.text);
|
|
246
|
+
K(Q([v, g], ([n, t]) => {
|
|
247
|
+
l() && c.announce(S("{severity}: {title}", {
|
|
248
|
+
severity: S(Pe[n]),
|
|
249
|
+
title: t
|
|
250
|
+
}), n === "error" ? "assertive" : "polite");
|
|
251
|
+
}));
|
|
252
|
+
const y = () => {
|
|
253
|
+
const n = e().ownerDocument.defaultView;
|
|
254
|
+
if (!r || !n) return;
|
|
255
|
+
const t = e().getBoundingClientRect();
|
|
256
|
+
r.style.width = `${t.width}px`;
|
|
257
|
+
const a = te({
|
|
258
|
+
top: 0,
|
|
259
|
+
left: 0,
|
|
260
|
+
width: n.innerWidth,
|
|
261
|
+
height: n.innerHeight
|
|
262
|
+
}, {
|
|
263
|
+
width: t.width,
|
|
264
|
+
height: r.offsetHeight
|
|
265
|
+
}, {
|
|
266
|
+
top: t.top,
|
|
267
|
+
left: t.left,
|
|
268
|
+
width: t.width,
|
|
269
|
+
height: t.height
|
|
270
|
+
}, {
|
|
271
|
+
anchorAlignment: ne.RIGHT,
|
|
272
|
+
anchorPosition: oe.BELOW
|
|
273
|
+
});
|
|
274
|
+
r.style.top = `${a.top}px`, r.style.left = `${a.left}px`;
|
|
275
|
+
};
|
|
276
|
+
return K(() => {
|
|
277
|
+
var m;
|
|
278
|
+
const n = (m = s()) == null ? void 0 : m.defaultView;
|
|
279
|
+
if (!l() || !n) return;
|
|
280
|
+
g(), y();
|
|
281
|
+
const t = () => y();
|
|
282
|
+
n.addEventListener("resize", t), n.addEventListener("scroll", t, !0);
|
|
283
|
+
const a = n.ResizeObserver, o = a ? new a(t) : void 0;
|
|
284
|
+
o == null || o.observe(e()), r && (o == null || o.observe(r)), O(() => {
|
|
285
|
+
n.removeEventListener("resize", t), n.removeEventListener("scroll", t, !0), o == null || o.disconnect();
|
|
286
|
+
});
|
|
287
|
+
}), w(x, {
|
|
288
|
+
get when() {
|
|
289
|
+
return s();
|
|
290
|
+
},
|
|
291
|
+
keyed: !0,
|
|
292
|
+
children: (n) => w(me, {
|
|
293
|
+
type: "floating",
|
|
294
|
+
idPrefix: "input-message",
|
|
295
|
+
get mount() {
|
|
296
|
+
return n.body;
|
|
297
|
+
},
|
|
298
|
+
open: l,
|
|
299
|
+
element: () => r,
|
|
300
|
+
get children() {
|
|
301
|
+
var t = Le(), a = r;
|
|
302
|
+
return typeof a == "function" ? _(a, t) : r = t, D(t, g), V((o) => {
|
|
303
|
+
var m = i.id, h = b.message, R = v(), T = !l();
|
|
304
|
+
return m !== o.e && B(t, "id", o.e = m), h !== o.t && W(t, o.t = h), R !== o.a && B(t, "data-tone", o.a = R), T !== o.o && (t.hidden = o.o = T), o;
|
|
305
|
+
}, {
|
|
306
|
+
e: void 0,
|
|
307
|
+
t: void 0,
|
|
308
|
+
a: void 0,
|
|
309
|
+
o: void 0
|
|
310
|
+
}), t;
|
|
311
|
+
}
|
|
312
|
+
})
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
var Ee = /* @__PURE__ */ E("<input>");
|
|
316
|
+
const Be = (i) => {
|
|
317
|
+
const [e, c] = $(i, ["size", "mono", "borderless", "class", "message", "ref"]), [s, f] = z(), l = M(), u = () => e.message !== void 0 && e.message.text !== "" ? e.message : void 0, r = fe(), p = () => {
|
|
318
|
+
const n = [c["aria-describedby"] ?? (r == null ? void 0 : r.describedBy()), u() !== void 0 ? l : void 0].filter((t) => t !== void 0 && t !== "");
|
|
319
|
+
return n.length > 0 ? n.join(" ") : void 0;
|
|
320
|
+
}, d = () => {
|
|
321
|
+
var n, t;
|
|
322
|
+
return c["aria-invalid"] ?? (((n = u()) == null ? void 0 : n.tone) === "error" || (t = r == null ? void 0 : r.hasError) != null && t.call(r) ? "true" : void 0);
|
|
323
|
+
}, v = () => c["aria-required"] ?? (r != null && r.required ? "true" : void 0), g = () => e.size === "sm" ? b.sizeSm : e.size === "lg" ? b.sizeLg : "", y = () => [b.input, g(), e.mono ? b.mono : "", e.borderless ? b.borderless : "", e.class ?? ""].filter(Boolean).join(" ");
|
|
324
|
+
return [(() => {
|
|
325
|
+
var n = Ee();
|
|
326
|
+
return _((t) => {
|
|
327
|
+
f(t);
|
|
328
|
+
const a = e.ref;
|
|
329
|
+
typeof a == "function" && a(t);
|
|
330
|
+
}, n), F(n, I({
|
|
331
|
+
get class() {
|
|
332
|
+
return y();
|
|
333
|
+
}
|
|
334
|
+
}, c, {
|
|
335
|
+
get "aria-labelledby"() {
|
|
336
|
+
return pe(r, {
|
|
337
|
+
ariaLabel: c["aria-label"],
|
|
338
|
+
ariaLabelledBy: c["aria-labelledby"]
|
|
339
|
+
});
|
|
340
|
+
},
|
|
341
|
+
get "aria-describedby"() {
|
|
342
|
+
return p();
|
|
343
|
+
},
|
|
344
|
+
get "aria-invalid"() {
|
|
345
|
+
return d();
|
|
346
|
+
},
|
|
347
|
+
get "aria-required"() {
|
|
348
|
+
return v();
|
|
349
|
+
},
|
|
350
|
+
get "data-message-tone"() {
|
|
351
|
+
var t;
|
|
352
|
+
return (t = u()) == null ? void 0 : t.tone;
|
|
353
|
+
}
|
|
354
|
+
}), !1, !1), n;
|
|
355
|
+
})(), w(x, {
|
|
356
|
+
get when() {
|
|
357
|
+
return s();
|
|
358
|
+
},
|
|
359
|
+
children: (n) => w(x, {
|
|
360
|
+
get when() {
|
|
361
|
+
return u();
|
|
362
|
+
},
|
|
363
|
+
children: (t) => w(_e, {
|
|
364
|
+
id: l,
|
|
365
|
+
get message() {
|
|
366
|
+
return t();
|
|
367
|
+
},
|
|
368
|
+
get input() {
|
|
369
|
+
return n();
|
|
370
|
+
}
|
|
371
|
+
})
|
|
372
|
+
})
|
|
373
|
+
})];
|
|
374
|
+
};
|
|
375
|
+
export {
|
|
376
|
+
Te as F,
|
|
377
|
+
Be as I,
|
|
378
|
+
me as O,
|
|
379
|
+
Re as P,
|
|
380
|
+
pe as n,
|
|
381
|
+
fe as u
|
|
382
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("solid-js/web"),i=require("solid-js"),C=require("./nativeTitleHold-B7Ou-W9b.cjs"),R=require("./keys-GMxY2wcl.cjs"),T=require("./kitHost-u0-mKvEK.cjs"),F=require("./overlayStack-eD8AmuwY.cjs"),E=require("./anchoredLayout-CBjQ1etD.cjs"),I=require("./i18n-D3s-a2a0.cjs"),q="vk_root_1DrgK",x="vk_appearancePlain_tlRDR",A="vk_appearanceRow_z9L2i",B="vk_appearanceCard_fBEzd",M="vk_appearanceMedia_dauP0",L={root:q,appearancePlain:x,appearanceRow:A,appearanceCard:B,appearanceMedia:M};var K=r.template("<div role=button>"),$=r.template("<button>");const N={plain:L.appearancePlain,row:L.appearanceRow,card:L.appearanceCard,media:L.appearanceMedia};function H(s){const[e,u]=i.splitProps(s,["appearance","current","selected","type","as","disabled","class","classList","children","tooltip","tooltipShortcut","tooltipPlacement","title","aria-label","ref","onPointerEnter","onPointerLeave","onFocusIn","onFocusOut","onClick","onKeyDown"]);let l;const v=i.createUniqueId(),d=()=>e.tooltip!==void 0?typeof e.tooltip=="function"?e.tooltip():e.tooltip:e.title,f=i.createMemo(()=>({content:d(),shortcut:e.tooltipShortcut,placement:e.tooltipPlacement})),a=()=>{if(e["aria-label"]!==void 0)return e["aria-label"];const n=f().content;if(n)return n},m=()=>{const{content:n,shortcut:t,placement:c}=f();!n||!l||(C.holdNativeTitle(l),C.tooltipCoordinator.showTooltip({id:v,target:l,content:n,shortcut:t,placement:c}))},p=()=>{l&&(C.releaseNativeTitle(l),C.tooltipCoordinator.hideTooltip(l))},y=()=>{l&&C.tooltipCoordinator.hideTooltip(l)};i.onCleanup(()=>{p()});const h=()=>e.appearance??"plain",b=()=>[L.root,N[h()],e.class].filter(n=>!!n).join(" ");if(e.as==="div"){const n=u,t=i.createMemo(()=>!!(e.disabled||n["aria-disabled"]==="true"||n["aria-disabled"]===!0));return(()=>{var c=K();return r.use(o=>{l=o,typeof e.ref=="function"&&e.ref(o)},c),r.spread(c,r.mergeProps({get tabIndex(){return r.memo(()=>!!t())()?-1:n.tabIndex??0}},n,{get class(){return b()},get classList(){return e.classList},get"aria-label"(){return a()},get title(){return r.memo(()=>e.tooltip!==void 0)()?void 0:e.title},get"aria-disabled"(){return t()?"true":void 0},get"data-current"(){return e.current?"true":void 0},get"data-selected"(){return e.selected?"true":void 0},onPointerEnter:o=>{m(),typeof e.onPointerEnter=="function"&&e.onPointerEnter(o)},onPointerLeave:o=>{p(),typeof e.onPointerLeave=="function"&&e.onPointerLeave(o)},onFocusIn:o=>{m(),typeof e.onFocusIn=="function"&&e.onFocusIn(o)},onFocusOut:o=>{p(),typeof e.onFocusOut=="function"&&e.onFocusOut(o)},onClick:o=>{if(y(),t()){o.preventDefault(),o.stopPropagation();return}if(typeof e.onClick=="function")e.onClick(o);else if(Array.isArray(e.onClick)){const[g,w]=e.onClick;g(w,o)}},onKeyDown:o=>{if(!t()){if(o.target===o.currentTarget&&(R.isKey(o,"Enter")||o.key===" ")&&(o.preventDefault(),o.currentTarget.click()),typeof e.onKeyDown=="function")e.onKeyDown(o);else if(Array.isArray(e.onKeyDown)){const[g,w]=e.onKeyDown;g(w,o)}}}}),!1,!0),r.insert(c,()=>e.children),c})()}return(()=>{var n=$();return r.use(t=>{l=t,typeof e.ref=="function"&&e.ref(t)},n),r.spread(n,r.mergeProps(u,{get type(){return e.type??"button"},get disabled(){return e.disabled},get class(){return b()},get classList(){return e.classList},get"aria-label"(){return a()},get title(){return r.memo(()=>e.tooltip!==void 0)()?void 0:e.title},get"data-current"(){return e.current?"true":void 0},get"data-selected"(){return e.selected?"true":void 0},get onKeyDown(){return e.onKeyDown},onPointerEnter:t=>{m(),typeof e.onPointerEnter=="function"&&e.onPointerEnter(t)},onPointerLeave:t=>{p(),typeof e.onPointerLeave=="function"&&e.onPointerLeave(t)},onFocusIn:t=>{m(),typeof e.onFocusIn=="function"&&e.onFocusIn(t)},onFocusOut:t=>{p(),typeof e.onFocusOut=="function"&&e.onFocusOut(t)},onClick:t=>{if(y(),typeof e.onClick=="function")e.onClick(t);else if(Array.isArray(e.onClick)){const[c,o]=e.onClick;c(o,t)}}}),!1,!0),r.insert(n,()=>e.children),n})()}const D=i.createContext(),U=D.Provider;function O(){return i.useContext(D)}function z(s,e){if(e.ariaLabelledBy!==void 0)return e.ariaLabelledBy;if(!(e.ariaLabel!==void 0||s===void 0||s.wrapsControlInLabel!==!1))return s.labelId}function S(s){var v;const e=s.open??(()=>!0),u=()=>{const d=s.mount;return d.nodeType===Node.DOCUMENT_NODE?d:d.ownerDocument??void 0},l=F.useOverlayRegistration(e,s.idPrefix??"portal-overlay",{type:s.modal===!0?"modal":s.type,element:s.element,document:u});return(v=s.onLayer)==null||v.call(s,l),i.onMount(()=>{F.notifyOverlayChanged()}),r.createComponent(r.Portal,{get mount(){return s.mount},get children(){return s.children}})}const V="vk_input_eLMd0 vk_inputChrome_VIaGv",W="vk_message_EfGru",j="vk_sizeSm_xI-Y5",G="vk_sizeLg_QXUwr",Q="vk_mono_oJb--",J="vk_borderless_QhnQ0",P={input:V,message:W,sizeSm:j,sizeLg:G,mono:Q,borderless:J};var X=r.template("<div>");const Y={error:"Error",warning:"Warning",info:"Info"};function Z(s){const e=i.createMemo(()=>s.input),{announcer:u}=T.useKitHost(),[l,v]=i.createSignal(),[d,f]=i.createSignal(!1);let a;const m=()=>{i.batch(()=>{v(e().ownerDocument),f(!0)})},p=()=>{f(!1)};e().addEventListener("focus",m),e().addEventListener("blur",p),i.onCleanup(()=>{e().removeEventListener("focus",m),e().removeEventListener("blur",p)}),i.onMount(()=>{const n=e().ownerDocument;i.batch(()=>{v(n),f(n.activeElement===e())})});const y=i.createMemo(()=>s.message.tone),h=i.createMemo(()=>s.message.text);i.createEffect(i.on([y,h],([n,t])=>{d()&&u.announce(I.t("{severity}: {title}",{severity:I.t(Y[n]),title:t}),n==="error"?"assertive":"polite")}));const b=()=>{const n=e().ownerDocument.defaultView;if(!a||!n)return;const t=e().getBoundingClientRect();a.style.width=`${t.width}px`;const c=E.layout2d({top:0,left:0,width:n.innerWidth,height:n.innerHeight},{width:t.width,height:a.offsetHeight},{top:t.top,left:t.left,width:t.width,height:t.height},{anchorAlignment:E.AnchorAlignment.RIGHT,anchorPosition:E.AnchorPosition.BELOW});a.style.top=`${c.top}px`,a.style.left=`${c.left}px`};return i.createEffect(()=>{var g;const n=(g=l())==null?void 0:g.defaultView;if(!d()||!n)return;h(),b();const t=()=>b();n.addEventListener("resize",t),n.addEventListener("scroll",t,!0);const c=n.ResizeObserver,o=c?new c(t):void 0;o==null||o.observe(e()),a&&(o==null||o.observe(a)),i.onCleanup(()=>{n.removeEventListener("resize",t),n.removeEventListener("scroll",t,!0),o==null||o.disconnect()})}),r.createComponent(i.Show,{get when(){return l()},keyed:!0,children:n=>r.createComponent(S,{type:"floating",idPrefix:"input-message",get mount(){return n.body},open:d,element:()=>a,get children(){var t=X(),c=a;return typeof c=="function"?r.use(c,t):a=t,r.insert(t,h),r.effect(o=>{var g=s.id,w=P.message,_=y(),k=!d();return g!==o.e&&r.setAttribute(t,"id",o.e=g),w!==o.t&&r.className(t,o.t=w),_!==o.a&&r.setAttribute(t,"data-tone",o.a=_),k!==o.o&&(t.hidden=o.o=k),o},{e:void 0,t:void 0,a:void 0,o:void 0}),t}})})}var ee=r.template("<input>");const te=s=>{const[e,u]=i.splitProps(s,["size","mono","borderless","class","message","ref"]),[l,v]=i.createSignal(),d=i.createUniqueId(),f=()=>e.message!==void 0&&e.message.text!==""?e.message:void 0,a=O(),m=()=>{const n=[u["aria-describedby"]??(a==null?void 0:a.describedBy()),f()!==void 0?d:void 0].filter(t=>t!==void 0&&t!=="");return n.length>0?n.join(" "):void 0},p=()=>{var n,t;return u["aria-invalid"]??(((n=f())==null?void 0:n.tone)==="error"||(t=a==null?void 0:a.hasError)!=null&&t.call(a)?"true":void 0)},y=()=>u["aria-required"]??(a!=null&&a.required?"true":void 0),h=()=>e.size==="sm"?P.sizeSm:e.size==="lg"?P.sizeLg:"",b=()=>[P.input,h(),e.mono?P.mono:"",e.borderless?P.borderless:"",e.class??""].filter(Boolean).join(" ");return[(()=>{var n=ee();return r.use(t=>{v(t);const c=e.ref;typeof c=="function"&&c(t)},n),r.spread(n,r.mergeProps({get class(){return b()}},u,{get"aria-labelledby"(){return z(a,{ariaLabel:u["aria-label"],ariaLabelledBy:u["aria-labelledby"]})},get"aria-describedby"(){return m()},get"aria-invalid"(){return p()},get"aria-required"(){return y()},get"data-message-tone"(){var t;return(t=f())==null?void 0:t.tone}}),!1,!1),n})(),r.createComponent(i.Show,{get when(){return l()},children:n=>r.createComponent(i.Show,{get when(){return f()},children:t=>r.createComponent(Z,{id:d,get message(){return t()},get input(){return n()}})})})]};exports.FormFieldAriaProvider=U;exports.Input=te;exports.OverlayPortal=S;exports.PressableSurface=H;exports.nativeControlLabelledBy=z;exports.useFormFieldAria=O;
|