@vokril/ui-solid 0.29.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +121 -0
- package/README.md +90 -0
- package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
- package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
- package/dist/Button-CX7mylBT.js +308 -0
- package/dist/Button-lMUW5P3O.cjs +1 -0
- package/dist/CommandPalette-DAR9VMqY.cjs +2 -0
- package/dist/CommandPalette-DlLcdd4o.js +4029 -0
- package/dist/CopyButton-BVvv5M8g.js +63 -0
- package/dist/CopyButton-Dnd8_2Lj.cjs +1 -0
- package/dist/DateRangePicker-BlJWtJBA.cjs +9 -0
- package/dist/DateRangePicker-CHmUU4PA.js +552 -0
- package/dist/GuidedTour-9rqvNB_m.js +483 -0
- package/dist/GuidedTour-DbXeuTc7.cjs +1 -0
- package/dist/{HostPortal-CXGUUhP8.js → HostPortal-De65s6CU.js} +1 -1
- package/dist/HostPortal-Dm4BmY8M.cjs +1 -0
- package/dist/{IconPicker-DYqNi5ud.js → IconPicker-CsYW8CXe.js} +4 -4
- package/dist/IconPicker-D-GU1mD3.cjs +1 -0
- package/dist/Input-C3rEQffK.js +382 -0
- package/dist/Input-CHtvL4_4.cjs +1 -0
- package/dist/Modal-3L6p7Dwt.js +599 -0
- package/dist/Modal-CtrWEnJ7.cjs +1 -0
- package/dist/OverlayScrollArea-Cr0VAApT.cjs +1 -0
- package/dist/OverlayScrollArea-CrrPFLq9.js +180 -0
- package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-BRuqaDzr.js} +372 -371
- package/dist/PageSkeleton-Cz2bckO4.cjs +30 -0
- package/dist/Popover-CLTXG8W0.cjs +1 -0
- package/dist/Popover-DkqGvMNy.js +207 -0
- package/dist/SearchableSelect-C-lV1vSv.cjs +1 -0
- package/dist/SearchableSelect-Du12kcI9.js +328 -0
- package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +50 -0
- package/dist/{StatusBarNotificationBell-7Izs_msz.js → StatusBarNotificationBell-CgsYrrpj.js} +5205 -4850
- package/dist/Stepper-DzI-gtKd.js +586 -0
- package/dist/Stepper-rpu7lpzB.cjs +1 -0
- package/dist/{Textarea-CeAGf08O.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
- package/dist/{Textarea-B5QqqKnI.js → Textarea-DOzZCc-O.js} +1 -1
- package/dist/TimeSeriesChart-BJqQpeEJ.cjs +1 -0
- package/dist/TimeSeriesChart-DvAhuyVl.js +442 -0
- package/dist/ToggleButton-B-hBpdzk.js +2144 -0
- package/dist/ToggleButton-BMH1A-IX.cjs +1 -0
- package/dist/_internal/app/onboarding/pageTourState.d.cts +0 -2
- package/dist/_internal/app/onboarding/pageTourState.d.ts +0 -2
- package/dist/_internal/app/onboarding/pageTourTypes.d.cts +2 -1
- package/dist/_internal/app/onboarding/pageTourTypes.d.ts +2 -1
- package/dist/_internal/contract/notification.d.cts +28 -3
- package/dist/_internal/contract/notification.d.ts +28 -3
- package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
- package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
- package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
- package/dist/anchoredLayout-E0mqCWxk.js +233 -0
- package/dist/base.css +3 -3
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/context/DesktopContextMenuContext.d.cts +8 -1
- package/dist/context/DesktopContextMenuContext.d.ts +8 -1
- package/dist/createDialogShellFocus-DI1rUvYf.js +282 -0
- package/dist/createDialogShellFocus-kzkNSLWS.cjs +1 -0
- package/dist/createResizableSidebar--Ve6DbDu.js +504 -0
- package/dist/createResizableSidebar-DlVAuq5t.cjs +1 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +229 -228
- package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +4 -4
- package/dist/{focusModality-BISb6-yg.cjs → focusModality-D704CJVN.cjs} +1 -1
- package/dist/{focusModality-FoLPWF-_.js → focusModality-ROUF6YGR.js} +1 -1
- package/dist/forms/Input.d.cts +20 -0
- package/dist/forms/Input.d.ts +20 -0
- package/dist/forms/InputMessage.d.cts +19 -0
- package/dist/forms/InputMessage.d.ts +19 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +1 -0
- package/dist/host/index.d.ts +1 -0
- package/dist/host/index.js +38 -39
- package/dist/host/kitHost.d.cts +8 -0
- package/dist/host/kitHost.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +936 -928
- package/dist/kitHost-BMMWpU4w.js +47 -0
- package/dist/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/layout/resizeCarry.d.cts +17 -0
- package/dist/layout/resizeCarry.d.ts +17 -0
- package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
- package/dist/mainRealmDom-DydRT2Us.js +54 -0
- package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
- package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notificationCatalog-CRERhjp6.js +168 -0
- package/dist/notificationCatalog-DqTkd7M6.cjs +1 -0
- package/dist/notifications/NotificationItem.d.cts +9 -0
- package/dist/notifications/NotificationItem.d.ts +9 -0
- package/dist/notifications/NotificationsCenter.d.cts +18 -0
- package/dist/notifications/NotificationsCenter.d.ts +18 -0
- package/dist/notifications/RunningProgressCards.d.cts +3 -0
- package/dist/notifications/RunningProgressCards.d.ts +3 -0
- package/dist/notifications/fireNotification.d.cts +35 -16
- package/dist/notifications/fireNotification.d.ts +35 -16
- package/dist/notifications/holdWhileShown.d.cts +18 -0
- package/dist/notifications/holdWhileShown.d.ts +18 -0
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +55 -52
- package/dist/notifications/nativeEngine.d.cts +38 -5
- package/dist/notifications/nativeEngine.d.ts +38 -5
- package/dist/notifications/notificationEntryList.d.cts +104 -0
- package/dist/notifications/notificationEntryList.d.ts +104 -0
- package/dist/notifications/notificationService.d.cts +23 -2
- package/dist/notifications/notificationService.d.ts +23 -2
- package/dist/notifications/toast.d.cts +3 -0
- package/dist/notifications/toast.d.ts +3 -0
- package/dist/notifications/toastCorner.d.cts +8 -0
- package/dist/notifications/toastCorner.d.ts +8 -0
- package/dist/notifications/toastFilterPolicy.d.cts +33 -1
- package/dist/notifications/toastFilterPolicy.d.ts +33 -1
- package/dist/overlay/Modal.d.cts +19 -0
- package/dist/overlay/Modal.d.ts +19 -0
- package/dist/overlay/backgroundInert.d.cts +6 -2
- package/dist/overlay/backgroundInert.d.ts +6 -2
- package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
- package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -1
- package/dist/overlay/index.d.ts +2 -1
- package/dist/overlay/index.js +80 -75
- package/dist/overlay/modalDefaults.d.cts +23 -0
- package/dist/overlay/modalDefaults.d.ts +23 -0
- package/dist/overlay/modalViewport.d.cts +16 -2
- package/dist/overlay/modalViewport.d.ts +16 -2
- package/dist/overlay/nativeTitleHold.d.cts +24 -0
- package/dist/overlay/nativeTitleHold.d.ts +24 -0
- package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
- package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
- package/dist/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/rowSource-BRGZHclZ.js +1231 -0
- package/dist/rowSource-C3zlzAtR.cjs +1 -0
- package/dist/server/AttributeGrid-B9j_c2wM.js +281 -0
- package/dist/server/AttributeGrid-BALCTvOI.cjs +1 -0
- package/dist/server/Button-DHefmmYz.cjs +1 -0
- package/dist/server/Button-ft_8RNJj.js +226 -0
- package/dist/server/CommandPalette-CHdfYtxs.js +3305 -0
- package/dist/server/CommandPalette-D0Prl7by.cjs +1 -0
- package/dist/server/CopyButton-CiYcsQcI.js +64 -0
- package/dist/server/CopyButton-D2q7tQ0m.cjs +1 -0
- package/dist/server/DateRangePicker-C6wZI7No.js +487 -0
- package/dist/server/DateRangePicker-CF70G2yr.cjs +9 -0
- package/dist/server/GuidedTour-BmDAWNfN.cjs +1 -0
- package/dist/server/GuidedTour-DYBhprVK.js +400 -0
- package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4xdfRyM.js} +1 -1
- package/dist/server/HostPortal-CwyePpDX.cjs +1 -0
- package/dist/server/{IconPicker-B4aXspLw.js → IconPicker--Xso9fUf.js} +5 -5
- package/dist/server/IconPicker-BTI4cNgf.cjs +1 -0
- package/dist/server/Input-UX0Hk53M.cjs +1 -0
- package/dist/server/Input-V9Szcw6w.js +249 -0
- package/dist/server/Modal-CBnNlaTx.cjs +1 -0
- package/dist/server/Modal-D9CjieKK.js +426 -0
- package/dist/server/OverlayScrollArea-DuwGRSMm.cjs +1 -0
- package/dist/server/OverlayScrollArea-h6G3yk6U.js +66 -0
- package/dist/server/{PageSkeleton-DoxlE_bD.js → PageSkeleton-CFs7AdTA.js} +267 -266
- package/dist/server/PageSkeleton-D0KOKLsb.cjs +30 -0
- package/dist/server/Popover-BBDBIpT6.cjs +1 -0
- package/dist/server/Popover-e9JpRh11.js +439 -0
- package/dist/server/SearchableSelect-B2ZFnp6i.js +205 -0
- package/dist/server/SearchableSelect-BBu5cP6P.cjs +1 -0
- package/dist/server/{StatusBarNotificationBell-D8Jt3PXI.js → StatusBarNotificationBell-CJJFE4rf.js} +5043 -4698
- package/dist/server/StatusBarNotificationBell-Cxs_bVKX.cjs +49 -0
- package/dist/server/Stepper-C04rOZcI.cjs +1 -0
- package/dist/server/Stepper-CVAOsf3o.js +381 -0
- package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-BG6F8taO.cjs} +1 -1
- package/dist/server/{Textarea-BTH48NET.js → Textarea-DM4zpgWo.js} +1 -1
- package/dist/server/TimeSeriesChart-kuuqH7we.js +242 -0
- package/dist/server/TimeSeriesChart-tWbSF6fJ.cjs +1 -0
- package/dist/server/ToggleButton-BdqufQ7G.js +1344 -0
- package/dist/server/ToggleButton-Bo24NK3o.cjs +1 -0
- package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
- package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/createDialogShellFocus-DvoNWpIu.cjs +1 -0
- package/dist/server/createDialogShellFocus-J8wqPlsa.js +370 -0
- package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-CIrhLNKW.js} +104 -102
- package/dist/server/createResizableSidebar-DcZ2Cnpf.cjs +1 -0
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +154 -153
- package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +4 -4
- package/dist/server/{focusModality-nWNVX3JG.js → focusModality-Bu4Kuwm4.js} +1 -1
- package/dist/server/{focusModality-D-nxv8Er.cjs → focusModality-G2i60_7y.cjs} +1 -1
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +9 -9
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +38 -39
- package/dist/server/{index-UIjsx3oJ.js → index-CPUZyKo7.js} +3604 -3617
- package/dist/server/index-CVbkasNJ.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +656 -649
- package/dist/server/kitHost-BMMWpU4w.js +47 -0
- package/dist/server/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/mainRealmDom-BuGEeM_r.cjs +1 -0
- package/dist/server/{EmptyState-Csydyy_7.js → mainRealmDom-CzckS_ss.js} +12 -8
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notificationCatalog-CEDltsJS.cjs +1 -0
- package/dist/server/notificationCatalog-Cl1dH4aJ.js +122 -0
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +55 -52
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +72 -68
- package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/server/{pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/server/rowSource-C1F4l0xZ.cjs +1 -0
- package/dist/server/rowSource-CoeHYNsV.js +1123 -0
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +29 -26
- package/dist/server/tokens/palette/index.cjs +1 -0
- package/dist/server/tokens/palette/index.js +31 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
- package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
- package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
- package/dist/solid/desktop/WindowControls.jsx +6 -3
- package/dist/solid/feedback/Badge.jsx +12 -19
- package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
- package/dist/solid/forms/Button.jsx +18 -23
- package/dist/solid/forms/Checkbox.jsx +5 -4
- package/dist/solid/forms/Combobox.jsx +12 -10
- package/dist/solid/forms/CopyButton.jsx +7 -4
- package/dist/solid/forms/DatePicker.jsx +12 -7
- package/dist/solid/forms/Dropzone.jsx +17 -13
- package/dist/solid/forms/FilePickerButton.jsx +5 -4
- package/dist/solid/forms/HiddenFileInput.jsx +3 -1
- package/dist/solid/forms/Input.jsx +31 -5
- package/dist/solid/forms/Input.module.css.js +1 -0
- package/dist/solid/forms/InputMessage.jsx +87 -0
- package/dist/solid/forms/MultiSearchableSelect.jsx +8 -7
- package/dist/solid/forms/NumberInput.jsx +25 -19
- package/dist/solid/forms/Picker.jsx +8 -6
- package/dist/solid/forms/PressableSurface.jsx +17 -23
- package/dist/solid/forms/RadioGroup.jsx +4 -3
- package/dist/solid/forms/SearchInput.jsx +4 -3
- package/dist/solid/forms/SearchableSelect.jsx +4 -3
- package/dist/solid/forms/SegmentedControl.jsx +4 -3
- package/dist/solid/forms/TagInput.jsx +22 -16
- package/dist/solid/forms/ToggleButton.jsx +4 -3
- package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +12 -10
- package/dist/solid/grid/Pagination.jsx +7 -3
- package/dist/solid/host/kitHost.jsx +5 -1
- package/dist/solid/layout/PageHeaderIcon.jsx +11 -9
- package/dist/solid/layout/ResizableSplitPane.jsx +4 -4
- package/dist/solid/layout/ResizeHandle.jsx +15 -4
- package/dist/solid/layout/resizeCarry.js +31 -0
- package/dist/solid/navigation/Accordion.jsx +8 -5
- package/dist/solid/navigation/Tabs.jsx +11 -8
- package/dist/solid/notifications/NotificationHost.jsx +5 -18
- package/dist/solid/notifications/NotificationItem.jsx +62 -58
- package/dist/solid/notifications/NotificationPanel.jsx +27 -9
- package/dist/solid/notifications/NotificationsCenter.jsx +72 -12
- package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +12 -6
- package/dist/solid/notifications/catalogAdapter.js +1 -0
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
- package/dist/solid/notifications/fireNotification.js +21 -16
- package/dist/solid/notifications/holdWhileShown.js +30 -0
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/nativeEngine.js +52 -1
- package/dist/solid/notifications/notificationEntryList.js +184 -0
- package/dist/solid/notifications/notificationService.js +20 -4
- package/dist/solid/notifications/toast.js +58 -7
- package/dist/solid/notifications/toastCorner.js +3 -0
- package/dist/solid/notifications/toastFilterPolicy.js +12 -0
- package/dist/solid/overlay/ConfirmDialog.jsx +21 -16
- package/dist/solid/overlay/DangerousActionDialogParts.jsx +5 -3
- package/dist/solid/overlay/Disclosure.jsx +4 -3
- package/dist/solid/overlay/Drawer.jsx +2 -1
- package/dist/solid/overlay/DropdownMenu.jsx +6 -4
- package/dist/solid/overlay/FloatingWindow.jsx +3 -3
- package/dist/solid/overlay/HoverTooltip.jsx +9 -7
- package/dist/solid/overlay/Modal.jsx +81 -34
- package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
- package/dist/solid/overlay/Tooltip.jsx +5 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +11 -11
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +73 -57
- package/dist/solid/overlay/index.js +2 -1
- package/dist/solid/overlay/menu/MenuParts.jsx +11 -8
- package/dist/solid/overlay/modalDefaults.jsx +10 -0
- package/dist/solid/overlay/modalViewport.js +17 -4
- package/dist/solid/overlay/nativeTitleHold.js +33 -0
- package/dist/solid/overlay/popover/Popover.jsx +17 -11
- package/dist/solid/overlay/tooltipDirective.js +3 -11
- package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
- package/dist/solid/tokens/index.js +1 -0
- package/dist/solid/tokens/palette/index.js +1 -0
- package/dist/solid/tokens/palette/paletteContract.js +27 -0
- package/dist/solid/tree/TreeRow.jsx +19 -16
- package/dist/solid/tree/TreeSurface.jsx +15 -14
- package/dist/solid/widgets/SettingsField.jsx +11 -10
- package/dist/style.css +4 -3
- package/dist/theme.css +3 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +29 -26
- package/dist/tokens/palette/index.cjs +1 -0
- package/dist/tokens/palette/index.d.cts +12 -0
- package/dist/tokens/palette/index.d.ts +12 -0
- package/dist/tokens/palette/index.js +31 -0
- package/dist/tokens/palette/paletteContract.d.cts +17 -0
- package/dist/tokens/palette/paletteContract.d.ts +17 -0
- package/dist/tokens/tokens.css +3 -2
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +25 -1
- package/dist/AttributeGrid-CASILa4u.js +0 -320
- package/dist/AttributeGrid-eND8YDby.cjs +0 -1
- package/dist/Button-Bb68ymNP.cjs +0 -1
- package/dist/Button-D-T0tyGF.js +0 -305
- package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
- package/dist/CommandPalette-Cj618AOz.js +0 -4017
- package/dist/CopyButton-B5gS2ft3.cjs +0 -1
- package/dist/CopyButton-g-WSiBDZ.js +0 -63
- package/dist/DateRangePicker-CJD9ADgB.js +0 -550
- package/dist/DateRangePicker-Frc0HVxp.cjs +0 -9
- package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
- package/dist/EmptyState-Dph6HU74.js +0 -50
- package/dist/GuidedTour-B6q7lYhn.cjs +0 -1
- package/dist/GuidedTour-CFCvRJN4.js +0 -483
- package/dist/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/IconPicker-CIbJb1ei.cjs +0 -1
- package/dist/Input-CZruORyy.cjs +0 -1
- package/dist/Input-DkPhsdfk.js +0 -227
- package/dist/Modal-CY6ePolt.cjs +0 -1
- package/dist/Modal-NzZzHSwb.js +0 -559
- package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
- package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
- package/dist/PageSkeleton-BPbb28-H.cjs +0 -30
- package/dist/Popover-CWrR51eG.cjs +0 -1
- package/dist/Popover-Cttb6NYT.js +0 -206
- package/dist/SearchableSelect-BvCm4enQ.js +0 -327
- package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
- package/dist/StatusBarNotificationBell-BJiORN4s.cjs +0 -50
- package/dist/Stepper-Ci5JpLbS.cjs +0 -1
- package/dist/Stepper-D9i1Xclm.js +0 -583
- package/dist/TimeSeriesChart-DOwi2lJs.js +0 -441
- package/dist/TimeSeriesChart-huvheefm.cjs +0 -1
- package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
- package/dist/ToggleButton-CFM8P3JY.js +0 -2137
- package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
- package/dist/anchoredLayout-FC-qv8xm.js +0 -250
- package/dist/createDialogShellFocus-B4piXDU4.js +0 -282
- package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
- package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
- package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
- package/dist/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/kitHost-BfJExE1G.cjs +0 -1
- package/dist/kitHost-CVAEi9sF.js +0 -23
- package/dist/mainRealmDom-C12lr9lm.js +0 -171
- package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
- package/dist/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/rowSource-D__7o4h0.js +0 -1230
- package/dist/rowSource-DiwTu_r8.cjs +0 -1
- package/dist/server/AttributeGrid-B7sb3btp.cjs +0 -1
- package/dist/server/AttributeGrid-CMi-UtWb.js +0 -281
- package/dist/server/Button-0AXWRw9Q.cjs +0 -1
- package/dist/server/Button-3yNrnn4P.js +0 -220
- package/dist/server/CommandPalette-CozogFlk.js +0 -3265
- package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
- package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
- package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
- package/dist/server/DateRangePicker-C35q8BTw.js +0 -484
- package/dist/server/DateRangePicker-KLZzyuPJ.cjs +0 -9
- package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
- package/dist/server/GuidedTour-DfV0yzqh.cjs +0 -1
- package/dist/server/GuidedTour-DmLbBttx.js +0 -400
- package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/server/IconPicker-B1soopAp.cjs +0 -1
- package/dist/server/Input-CjvD8w18.cjs +0 -1
- package/dist/server/Input-DaEN2JJd.js +0 -127
- package/dist/server/Modal-BheFQLs1.js +0 -415
- package/dist/server/Modal-BswxV8Pn.cjs +0 -1
- package/dist/server/OverlayScrollArea-221dfKyz.js +0 -65
- package/dist/server/OverlayScrollArea-D4e9D9Nd.cjs +0 -1
- package/dist/server/PageSkeleton-DBo7hQq-.cjs +0 -30
- package/dist/server/Popover-BsxIKBbl.cjs +0 -1
- package/dist/server/Popover-Cg28aPUZ.js +0 -439
- package/dist/server/SearchableSelect-09ECcDlB.cjs +0 -1
- package/dist/server/SearchableSelect-vjhS4c-H.js +0 -205
- package/dist/server/StatusBarNotificationBell-LJHLMT9F.cjs +0 -49
- package/dist/server/Stepper-DxNrskdq.cjs +0 -1
- package/dist/server/Stepper-n5f9r-ye.js +0 -375
- package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
- package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
- package/dist/server/ToggleButton-FywO2CCI.js +0 -1335
- package/dist/server/ToggleButton-TE3Xf2yD.cjs +0 -1
- package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
- package/dist/server/createDialogShellFocus-BFo8awdj.js +0 -369
- package/dist/server/createDialogShellFocus-BiBAZOCI.cjs +0 -1
- package/dist/server/createResizableSidebar-GFgZIj-5.cjs +0 -1
- package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/server/index-2mQPVEDR.cjs +0 -1
- package/dist/server/kitHost-BfJExE1G.cjs +0 -1
- package/dist/server/kitHost-CVAEi9sF.js +0 -23
- package/dist/server/mainRealmDom-DPNaDWtw.js +0 -121
- package/dist/server/mainRealmDom-DwZVMPnO.cjs +0 -1
- package/dist/server/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/server/rowSource-D-wcDmFU.js +0 -1122
- package/dist/server/rowSource-DltiY0o3.cjs +0 -1
- package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
- package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const V=require("./ownerWindow-BCmJFMbR.cjs");function F(t,o){let i=!1,e=null;const s=()=>{if(i)return;const h=V.ownerWindow(t);if(h===null||!t.isConnected)return;const d=h.requestAnimationFrame(()=>{i||o()});e=()=>h.cancelAnimationFrame(d)};return t.isConnected?s():queueMicrotask(s),()=>{i=!0,e==null||e()}}var E=(t=>(t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t))(E||{}),H=(t=>(t[t.BELOW=0]="BELOW",t[t.ABOVE=1]="ABOVE",t))(H||{}),P=(t=>(t[t.VERTICAL=0]="VERTICAL",t[t.HORIZONTAL=1]="HORIZONTAL",t))(P||{});function M(t,o){const i=Math.max(t.start,o.start);return Math.min(t.end,o.end)-i>0}function y(t,o,i){const e=i.mode===1?i.offset:i.offset+i.size,s=i.mode===1?i.offset+i.size:i.offset;return i.position===0?o<=t-e?{position:e,result:"ok"}:o<=s?{position:s-o,result:"flipped"}:{position:Math.max(t-o,0),result:"overlap"}:o<=s?{position:s-o,result:"ok"}:o<=t-e&&s<o/2?{position:e,result:"flipped"}:{position:0,result:"overlap"}}function I(t,o,i,e){let s=(e==null?void 0:e.anchorAlignment)??0,h=(e==null?void 0:e.anchorPosition)??0;const d=(e==null?void 0:e.anchorAxisAlignment)??0,g=(e==null?void 0:e.gap)??0,f=(e==null?void 0:e.margin)??0,r=f>0?{top:t.top+f,left:t.left+f,width:Math.max(0,t.width-2*f),height:Math.max(0,t.height-2*f)}:t;let c,n;if(d===0){const l={offset:i.top-r.top-g,size:i.height+2*g,position:h===0?0:1},A={offset:i.left-r.left,size:i.width,position:s===0?0:1,mode:1},v=y(r.height,o.height,l);c=v.position+r.top,v.result==="flipped"&&(h=h===0?1:0),M({start:c,end:c+o.height},{start:l.offset+r.top,end:l.offset+l.size+r.top})&&(A.mode=0);const a=y(r.width,o.width,A);n=a.position+r.left,a.result==="flipped"&&(s=s===0?1:0)}else{const l={offset:i.left-r.left-g,size:i.width+2*g,position:s===0?0:1},A={offset:i.top-r.top,size:i.height,position:h===0?0:1,mode:1},v=y(r.width,o.width,l);n=v.position+r.left,v.result==="flipped"&&(s=s===0?1:0),M({start:n,end:n+o.width},{start:l.offset+r.left,end:l.offset+l.size+r.left})&&(A.mode=0);const a=y(r.height,o.height,A);c=a.position+r.top,a.result==="flipped"&&(h=h===0?1:0)}const p=t.width-(n+o.width),u=t.height-(c+o.height);return{top:c,left:n,bottom:u,right:p,anchorAlignment:s,anchorPosition:h}}const w=8,D=4,x=8,O=4;function W(t,o,i,e=8){return t+o>i-e?Math.max(e,i-e-o):t}function G(t){const o=t.margin??8,i=t.gap??4,e=t.anchorRect,s="bottom"in e&&typeof e.bottom=="number"?e.bottom:e.top+e.height,h=t.viewportHeight-s-o,d=e.top-o,g=t.desiredHeight??t.measuredHeight??240,f=h<Math.min(g,200)&&d>h,r=t.minMaxHeight??120,c=Math.max(r,f?d-i:h-i),n=f?Math.max(o,e.top-i-Math.min(g,c)):s+i,p=t.measuredWidth??0,u=Math.max(e.width,p),l=W(e.left,u,t.viewportWidth,o);return{top:n,left:l,width:e.width,maxHeight:c,side:f?"top":"bottom",preferAbove:f}}function b(t,o,i){return Math.max(o,Math.min(t,i))}function N(t){return t.endsWith("-end")}function T(t){const{placement:o,anchor:i,panelHeight:e,viewportHeight:s,gap:h}=t;if(o.startsWith("top"))return"top";if(o.startsWith("bottom"))return"bottom";const d=s-i.bottom-w,g=i.top-w;return(e>0?e:200)+h<=d||d>=g?"bottom":"top"}function U(t){const{anchor:o,panelWidth:i,panelHeight:e,viewportWidth:s,viewportHeight:h,gap:d}=t,g=N(t.placement)?o.right-i:o.left,f=b(g,w,s-i-w),r=T(t);if(r==="top"){const l=Math.max(0,o.top-d-w),A=Math.min(h-2*w,l),v=e>0?Math.min(e,A):Math.min(200,A),a=o.top-d-v,m=b(a,w,Math.max(w,o.top-d));return{left:f,top:m,anchorWidth:o.width,side:r,maxHeight:A}}const c=o.bottom+d,n=b(c,w,h-e-w),p=Math.max(0,h-n-w),u=Math.min(h-2*w,p);return{left:f,top:n,anchorWidth:o.width,side:r,maxHeight:u}}function q(t){const o=t.margin??x,i=t.gap??O;let e;if("x"in t.anchor){const a="width"in t.anchor&&typeof t.anchor.width=="number"?t.anchor.width:0,m="height"in t.anchor&&typeof t.anchor.height=="number"?t.anchor.height:0;e={left:t.anchor.x,top:t.anchor.y,width:a,height:m}}else{const a=t.anchor.left,m=t.anchor.top,R="right"in t.anchor&&typeof t.anchor.right=="number"?t.anchor.right:void 0,L="bottom"in t.anchor&&typeof t.anchor.bottom=="number"?t.anchor.bottom:void 0,B=t.anchor.width??(R!==void 0?R-a:0),_=t.anchor.height??(L!==void 0?L-m:0);e={left:a,top:m,width:B,height:_}}const s="left"in t.viewport?t.viewport.left:0,h="top"in t.viewport?t.viewport.top:0,d=t.viewport.width,g=t.viewport.height,f=s+d,r=h+g,c=t.placement??"bottom-start";let n,p;if(c.startsWith("auto")){p=c==="auto-end"?"end":c==="auto-start"?"start":"center";const a=r-(e.top+e.height)-o,m=e.top-h-o;n=t.overlay.height+i<=a||a>=m?"bottom":"top"}else if(n=c.startsWith("bottom")?"bottom":c.startsWith("top")?"top":c.startsWith("left")?"left":"right",p=c.endsWith("-end")?"end":c.endsWith("-start")?"start":"center",n==="bottom"){const a=r-(e.top+e.height)-o,m=e.top-h-o;t.overlay.height+i>a&&m>a&&(n="top")}else if(n==="top"){const a=e.top-h-o,m=r-(e.top+e.height)-o;t.overlay.height+i>a&&m>a&&(n="bottom")}else if(n==="right"){const a=f-(e.left+e.width)-o,m=e.left-s-o;t.overlay.width+i>a&&m>a&&(n="left")}else if(n==="left"){const a=e.left-s-o,m=f-(e.left+e.width)-o;t.overlay.width+i>a&&m>a&&(n="right")}let u=0,l=0;n==="bottom"?u=e.top+e.height+i:n==="top"?u=e.top-t.overlay.height-i:n==="left"?l=e.left-t.overlay.width-i:l=e.left+e.width+i,n==="bottom"||n==="top"?p==="start"?l=e.left:p==="end"?l=e.left+e.width-t.overlay.width:l=e.left+(e.width-t.overlay.width)/2:p==="start"?u=e.top:p==="end"?u=e.top+e.height-t.overlay.height:u=e.top+(e.height-t.overlay.height)/2;const A=b(l,s+o,f-t.overlay.width-o),v=b(u,h+o,r-t.overlay.height-o);return{left:A,top:v,anchorWidth:e.width,anchorHeight:e.height,side:n,alignment:p}}exports.AnchorAlignment=E;exports.AnchorAxisAlignment=P;exports.AnchorPosition=H;exports.OVERLAY_DEFAULT_GAP=O;exports.OVERLAY_DEFAULT_MARGIN=x;exports.POPOVER_DEFAULT_GAP=D;exports.POPOVER_VIEWPORT_MARGIN=w;exports.calcFixedWidthDropdownLeft=W;exports.computeAnchoredPosition=q;exports.computeDropdownPosition=G;exports.computePopoverPosition=U;exports.layout2d=I;exports.requestOwnerAnimationFrame=F;exports.resolvePopoverSide=T;
|
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import { o as W } from "./ownerWindow-9mx_LD47.js";
|
|
2
|
-
function G(t, o) {
|
|
3
|
-
let s = !1, e = null;
|
|
4
|
-
const h = () => {
|
|
5
|
-
if (s) return;
|
|
6
|
-
const a = W(t);
|
|
7
|
-
if (a === null || !t.isConnected) return;
|
|
8
|
-
const d = a.requestAnimationFrame(() => {
|
|
9
|
-
s || o();
|
|
10
|
-
});
|
|
11
|
-
e = () => a.cancelAnimationFrame(d);
|
|
12
|
-
};
|
|
13
|
-
return t.isConnected ? h() : queueMicrotask(h), () => {
|
|
14
|
-
s = !0, e == null || e();
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
var B = /* @__PURE__ */ ((t) => (t[t.LEFT = 0] = "LEFT", t[t.RIGHT = 1] = "RIGHT", t))(B || {}), E = /* @__PURE__ */ ((t) => (t[t.BELOW = 0] = "BELOW", t[t.ABOVE = 1] = "ABOVE", t))(E || {}), O = /* @__PURE__ */ ((t) => (t[t.VERTICAL = 0] = "VERTICAL", t[t.HORIZONTAL = 1] = "HORIZONTAL", t))(O || {});
|
|
18
|
-
function x(t, o) {
|
|
19
|
-
const s = Math.max(t.start, o.start);
|
|
20
|
-
return Math.min(t.end, o.end) - s > 0;
|
|
21
|
-
}
|
|
22
|
-
function H(t, o, s) {
|
|
23
|
-
const e = s.mode === 1 ? s.offset : s.offset + s.size, h = s.mode === 1 ? s.offset + s.size : s.offset;
|
|
24
|
-
return s.position === 0 ? o <= t - e ? { position: e, result: "ok" } : o <= h ? {
|
|
25
|
-
position: h - o,
|
|
26
|
-
result: "flipped"
|
|
27
|
-
} : {
|
|
28
|
-
position: Math.max(t - o, 0),
|
|
29
|
-
result: "overlap"
|
|
30
|
-
} : o <= h ? { position: h - o, result: "ok" } : o <= t - e && h < o / 2 ? { position: e, result: "flipped" } : { position: 0, result: "overlap" };
|
|
31
|
-
}
|
|
32
|
-
function D(t, o, s, e) {
|
|
33
|
-
let h = (e == null ? void 0 : e.anchorAlignment) ?? 0, a = (e == null ? void 0 : e.anchorPosition) ?? 0;
|
|
34
|
-
const d = (e == null ? void 0 : e.anchorAxisAlignment) ?? 0, g = (e == null ? void 0 : e.gap) ?? 0, l = (e == null ? void 0 : e.margin) ?? 0, i = l > 0 ? {
|
|
35
|
-
top: t.top + l,
|
|
36
|
-
left: t.left + l,
|
|
37
|
-
width: Math.max(0, t.width - 2 * l),
|
|
38
|
-
height: Math.max(0, t.height - 2 * l)
|
|
39
|
-
} : t;
|
|
40
|
-
let c, r;
|
|
41
|
-
if (d === 0) {
|
|
42
|
-
const f = {
|
|
43
|
-
offset: s.top - i.top - g,
|
|
44
|
-
size: s.height + 2 * g,
|
|
45
|
-
position: a === 0 ? 0 : 1
|
|
46
|
-
/* After */
|
|
47
|
-
}, v = {
|
|
48
|
-
offset: s.left - i.left,
|
|
49
|
-
size: s.width,
|
|
50
|
-
position: h === 0 ? 0 : 1,
|
|
51
|
-
mode: 1
|
|
52
|
-
/* ALIGN */
|
|
53
|
-
}, u = H(
|
|
54
|
-
i.height,
|
|
55
|
-
o.height,
|
|
56
|
-
f
|
|
57
|
-
);
|
|
58
|
-
c = u.position + i.top, u.result === "flipped" && (a = a === 0 ? 1 : 0), x(
|
|
59
|
-
{ start: c, end: c + o.height },
|
|
60
|
-
{
|
|
61
|
-
start: f.offset + i.top,
|
|
62
|
-
end: f.offset + f.size + i.top
|
|
63
|
-
}
|
|
64
|
-
) && (v.mode = 0);
|
|
65
|
-
const n = H(
|
|
66
|
-
i.width,
|
|
67
|
-
o.width,
|
|
68
|
-
v
|
|
69
|
-
);
|
|
70
|
-
r = n.position + i.left, n.result === "flipped" && (h = h === 0 ? 1 : 0);
|
|
71
|
-
} else {
|
|
72
|
-
const f = {
|
|
73
|
-
offset: s.left - i.left - g,
|
|
74
|
-
size: s.width + 2 * g,
|
|
75
|
-
position: h === 0 ? 0 : 1
|
|
76
|
-
/* After */
|
|
77
|
-
}, v = {
|
|
78
|
-
offset: s.top - i.top,
|
|
79
|
-
size: s.height,
|
|
80
|
-
position: a === 0 ? 0 : 1,
|
|
81
|
-
mode: 1
|
|
82
|
-
/* ALIGN */
|
|
83
|
-
}, u = H(
|
|
84
|
-
i.width,
|
|
85
|
-
o.width,
|
|
86
|
-
f
|
|
87
|
-
);
|
|
88
|
-
r = u.position + i.left, u.result === "flipped" && (h = h === 0 ? 1 : 0), x(
|
|
89
|
-
{ start: r, end: r + o.width },
|
|
90
|
-
{
|
|
91
|
-
start: f.offset + i.left,
|
|
92
|
-
end: f.offset + f.size + i.left
|
|
93
|
-
}
|
|
94
|
-
) && (v.mode = 0);
|
|
95
|
-
const n = H(
|
|
96
|
-
i.height,
|
|
97
|
-
o.height,
|
|
98
|
-
v
|
|
99
|
-
);
|
|
100
|
-
c = n.position + i.top, n.result === "flipped" && (a = a === 0 ? 1 : 0);
|
|
101
|
-
}
|
|
102
|
-
const p = t.width - (r + o.width), w = t.height - (c + o.height);
|
|
103
|
-
return { top: c, left: r, bottom: w, right: p, anchorAlignment: h, anchorPosition: a };
|
|
104
|
-
}
|
|
105
|
-
const b = 8, C = 4, T = 8, P = 4;
|
|
106
|
-
function I(t, o, s, e = 8) {
|
|
107
|
-
return t + o > s - e ? Math.max(e, s - e - o) : t;
|
|
108
|
-
}
|
|
109
|
-
function N(t) {
|
|
110
|
-
const o = t.margin ?? 8, s = t.gap ?? 4, e = t.anchorRect, h = "bottom" in e && typeof e.bottom == "number" ? e.bottom : e.top + e.height, a = t.viewportHeight - h - o, d = e.top - o, g = t.desiredHeight ?? t.measuredHeight ?? 240, l = a < Math.min(g, 200) && d > a, i = t.minMaxHeight ?? 120, c = Math.max(
|
|
111
|
-
i,
|
|
112
|
-
l ? d - s : a - s
|
|
113
|
-
), r = l ? Math.max(o, e.top - s - Math.min(g, c)) : h + s, p = t.measuredWidth ?? 0, w = Math.max(e.width, p), f = I(
|
|
114
|
-
e.left,
|
|
115
|
-
w,
|
|
116
|
-
t.viewportWidth,
|
|
117
|
-
o
|
|
118
|
-
);
|
|
119
|
-
return {
|
|
120
|
-
top: r,
|
|
121
|
-
left: f,
|
|
122
|
-
width: e.width,
|
|
123
|
-
maxHeight: c,
|
|
124
|
-
side: l ? "top" : "bottom",
|
|
125
|
-
preferAbove: l
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
function y(t, o, s) {
|
|
129
|
-
return Math.max(o, Math.min(t, s));
|
|
130
|
-
}
|
|
131
|
-
function V(t) {
|
|
132
|
-
return t.endsWith("-end");
|
|
133
|
-
}
|
|
134
|
-
function F(t) {
|
|
135
|
-
const { placement: o, anchor: s, panelHeight: e, viewportHeight: h, gap: a } = t;
|
|
136
|
-
if (o.startsWith("top")) return "top";
|
|
137
|
-
if (o.startsWith("bottom")) return "bottom";
|
|
138
|
-
const d = h - s.bottom - b, g = s.top - b;
|
|
139
|
-
return (e > 0 ? e : 200) + a <= d || d >= g ? "bottom" : "top";
|
|
140
|
-
}
|
|
141
|
-
function k(t) {
|
|
142
|
-
const {
|
|
143
|
-
anchor: o,
|
|
144
|
-
panelWidth: s,
|
|
145
|
-
panelHeight: e,
|
|
146
|
-
viewportWidth: h,
|
|
147
|
-
viewportHeight: a,
|
|
148
|
-
gap: d
|
|
149
|
-
} = t, g = V(t.placement) ? o.right - s : o.left, l = y(
|
|
150
|
-
g,
|
|
151
|
-
b,
|
|
152
|
-
h - s - b
|
|
153
|
-
), i = F(t);
|
|
154
|
-
if (i === "top") {
|
|
155
|
-
const f = Math.max(
|
|
156
|
-
0,
|
|
157
|
-
o.top - d - b
|
|
158
|
-
), v = Math.min(
|
|
159
|
-
a - 2 * b,
|
|
160
|
-
f
|
|
161
|
-
), u = e > 0 ? Math.min(e, v) : Math.min(200, v), n = o.top - d - u, m = y(
|
|
162
|
-
n,
|
|
163
|
-
b,
|
|
164
|
-
Math.max(b, o.top - d)
|
|
165
|
-
);
|
|
166
|
-
return { left: l, top: m, anchorWidth: o.width, side: i, maxHeight: v };
|
|
167
|
-
}
|
|
168
|
-
const c = o.bottom + d, r = y(
|
|
169
|
-
c,
|
|
170
|
-
b,
|
|
171
|
-
a - e - b
|
|
172
|
-
), p = Math.max(
|
|
173
|
-
0,
|
|
174
|
-
a - r - b
|
|
175
|
-
), w = Math.min(
|
|
176
|
-
a - 2 * b,
|
|
177
|
-
p
|
|
178
|
-
);
|
|
179
|
-
return { left: l, top: r, anchorWidth: o.width, side: i, maxHeight: w };
|
|
180
|
-
}
|
|
181
|
-
function q(t) {
|
|
182
|
-
const o = t.margin ?? T, s = t.gap ?? P;
|
|
183
|
-
let e;
|
|
184
|
-
if ("x" in t.anchor) {
|
|
185
|
-
const n = "width" in t.anchor && typeof t.anchor.width == "number" ? t.anchor.width : 0, m = "height" in t.anchor && typeof t.anchor.height == "number" ? t.anchor.height : 0;
|
|
186
|
-
e = {
|
|
187
|
-
left: t.anchor.x,
|
|
188
|
-
top: t.anchor.y,
|
|
189
|
-
width: n,
|
|
190
|
-
height: m
|
|
191
|
-
};
|
|
192
|
-
} else {
|
|
193
|
-
const n = t.anchor.left, m = t.anchor.top, M = "right" in t.anchor && typeof t.anchor.right == "number" ? t.anchor.right : void 0, A = "bottom" in t.anchor && typeof t.anchor.bottom == "number" ? t.anchor.bottom : void 0, L = t.anchor.width ?? (M !== void 0 ? M - n : 0), R = t.anchor.height ?? (A !== void 0 ? A - m : 0);
|
|
194
|
-
e = { left: n, top: m, width: L, height: R };
|
|
195
|
-
}
|
|
196
|
-
const h = "left" in t.viewport ? t.viewport.left : 0, a = "top" in t.viewport ? t.viewport.top : 0, d = t.viewport.width, g = t.viewport.height, l = h + d, i = a + g, c = t.placement ?? "bottom-start";
|
|
197
|
-
let r, p;
|
|
198
|
-
if (c.startsWith("auto")) {
|
|
199
|
-
p = c === "auto-end" ? "end" : c === "auto-start" ? "start" : "center";
|
|
200
|
-
const n = i - (e.top + e.height) - o, m = e.top - a - o;
|
|
201
|
-
r = t.overlay.height + s <= n || n >= m ? "bottom" : "top";
|
|
202
|
-
} else if (r = c.startsWith("bottom") ? "bottom" : c.startsWith("top") ? "top" : c.startsWith("left") ? "left" : "right", p = c.endsWith("-end") ? "end" : c.endsWith("-start") ? "start" : "center", r === "bottom") {
|
|
203
|
-
const n = i - (e.top + e.height) - o, m = e.top - a - o;
|
|
204
|
-
t.overlay.height + s > n && m > n && (r = "top");
|
|
205
|
-
} else if (r === "top") {
|
|
206
|
-
const n = e.top - a - o, m = i - (e.top + e.height) - o;
|
|
207
|
-
t.overlay.height + s > n && m > n && (r = "bottom");
|
|
208
|
-
} else if (r === "right") {
|
|
209
|
-
const n = l - (e.left + e.width) - o, m = e.left - h - o;
|
|
210
|
-
t.overlay.width + s > n && m > n && (r = "left");
|
|
211
|
-
} else if (r === "left") {
|
|
212
|
-
const n = e.left - h - o, m = l - (e.left + e.width) - o;
|
|
213
|
-
t.overlay.width + s > n && m > n && (r = "right");
|
|
214
|
-
}
|
|
215
|
-
let w = 0, f = 0;
|
|
216
|
-
r === "bottom" ? w = e.top + e.height + s : r === "top" ? w = e.top - t.overlay.height - s : r === "left" ? f = e.left - t.overlay.width - s : f = e.left + e.width + s, r === "bottom" || r === "top" ? p === "start" ? f = e.left : p === "end" ? f = e.left + e.width - t.overlay.width : f = e.left + (e.width - t.overlay.width) / 2 : p === "start" ? w = e.top : p === "end" ? w = e.top + e.height - t.overlay.height : w = e.top + (e.height - t.overlay.height) / 2;
|
|
217
|
-
const v = y(
|
|
218
|
-
f,
|
|
219
|
-
h + o,
|
|
220
|
-
l - t.overlay.width - o
|
|
221
|
-
), u = y(
|
|
222
|
-
w,
|
|
223
|
-
a + o,
|
|
224
|
-
i - t.overlay.height - o
|
|
225
|
-
);
|
|
226
|
-
return {
|
|
227
|
-
left: v,
|
|
228
|
-
top: u,
|
|
229
|
-
anchorWidth: e.width,
|
|
230
|
-
anchorHeight: e.height,
|
|
231
|
-
side: r,
|
|
232
|
-
alignment: p
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
export {
|
|
236
|
-
B as A,
|
|
237
|
-
P as O,
|
|
238
|
-
C as P,
|
|
239
|
-
O as a,
|
|
240
|
-
E as b,
|
|
241
|
-
T as c,
|
|
242
|
-
b as d,
|
|
243
|
-
I as e,
|
|
244
|
-
q as f,
|
|
245
|
-
N as g,
|
|
246
|
-
k as h,
|
|
247
|
-
F as i,
|
|
248
|
-
D as l,
|
|
249
|
-
G as r
|
|
250
|
-
};
|
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
import { use as D, insert as p, createComponent as P, effect as C, className as w, setAttribute as E, template as H, style as J, memo as Q, delegateEvents as Z } from "solid-js/web";
|
|
2
|
-
import { u as ee, n as te } from "./Input-DkPhsdfk.js";
|
|
3
|
-
import { createRenderEffect as oe, Show as M, createUniqueId as ie, createSignal as I, createEffect as W, onCleanup as A, on as ne } from "solid-js";
|
|
4
|
-
import { O as re, r as X } from "./dialogFocusRestore--dH59ER2.js";
|
|
5
|
-
import { b as $ } from "./window-CUK6x8Pj.js";
|
|
6
|
-
import { K as le } from "./Kbd-DF6Tvp8V.js";
|
|
7
|
-
import { t as g } from "./tooltipCoordinator-BzxEyKhA.js";
|
|
8
|
-
import { i as ae } from "./keys-B2nlkpqc.js";
|
|
9
|
-
import { n as se } from "./prefersReducedMotion-B2mMn01s.js";
|
|
10
|
-
import { r as ce, t as de } from "./Modal-NzZzHSwb.js";
|
|
11
|
-
const ue = "vk_root_w-T1s", ve = "vk_disabled_kl1Jx", he = "vk_box_mOCAD", me = "vk_checked_YZgPy", fe = "vk_control_748Lw", be = "vk_input_Ysj9i", ge = "vk_indicator_lYKVu", Te = "vk_label_jB-PM", y = {
|
|
12
|
-
root: ue,
|
|
13
|
-
disabled: ve,
|
|
14
|
-
box: he,
|
|
15
|
-
checked: me,
|
|
16
|
-
control: fe,
|
|
17
|
-
input: be,
|
|
18
|
-
indicator: ge,
|
|
19
|
-
label: Te
|
|
20
|
-
};
|
|
21
|
-
function _e(e, n, r, s, l, ...d) {
|
|
22
|
-
const u = [];
|
|
23
|
-
e && u.push(e), s && n && u.push(n), l && r && u.push(r);
|
|
24
|
-
for (const t of d)
|
|
25
|
-
t !== void 0 && t !== "" && u.push(t);
|
|
26
|
-
return u.join(" ");
|
|
27
|
-
}
|
|
28
|
-
var we = /* @__PURE__ */ H("<span>"), ye = /* @__PURE__ */ H("<label><span><input type=checkbox><span aria-hidden=true><span>");
|
|
29
|
-
function Ke(e) {
|
|
30
|
-
const n = ee();
|
|
31
|
-
return (() => {
|
|
32
|
-
var r = ye(), s = r.firstChild, l = s.firstChild, d = l.nextSibling, u = d.firstChild;
|
|
33
|
-
return l.addEventListener("change", (t) => {
|
|
34
|
-
const v = t.currentTarget;
|
|
35
|
-
e.onChange(v.checked), v.indeterminate = !!e.indeterminate;
|
|
36
|
-
}), D((t) => oe(() => {
|
|
37
|
-
t.indeterminate = !!e.indeterminate;
|
|
38
|
-
}), l), p(r, P(M, {
|
|
39
|
-
get when() {
|
|
40
|
-
return e.children !== void 0;
|
|
41
|
-
},
|
|
42
|
-
get children() {
|
|
43
|
-
var t = we();
|
|
44
|
-
return p(t, () => e.children), C(() => w(t, y.label)), t;
|
|
45
|
-
}
|
|
46
|
-
}), null), C((t) => {
|
|
47
|
-
var v = _e(y.root, y.checked, y.disabled, e.checked || !!e.indeterminate, !!e.disabled, e.class), c = y.control, T = e.id, h = `${y.input} ${e.inputClass ?? ""}`, k = e.disabled, x = n == null ? void 0 : n.describedBy(), m = e.ariaLabel, O = te(n, {
|
|
48
|
-
ariaLabel: e.ariaLabel,
|
|
49
|
-
ariaLabelledBy: e.ariaLabelledBy
|
|
50
|
-
}), _ = `${y.box} ${e.boxClass ?? ""}`, f = y.indicator;
|
|
51
|
-
return v !== t.e && w(r, t.e = v), c !== t.t && w(s, t.t = c), T !== t.a && E(l, "id", t.a = T), h !== t.o && w(l, t.o = h), k !== t.i && (l.disabled = t.i = k), x !== t.n && E(l, "aria-describedby", t.n = x), m !== t.s && E(l, "aria-label", t.s = m), O !== t.h && E(l, "aria-labelledby", t.h = O), _ !== t.r && w(d, t.r = _), f !== t.d && w(u, t.d = f), t;
|
|
52
|
-
}, {
|
|
53
|
-
e: void 0,
|
|
54
|
-
t: void 0,
|
|
55
|
-
a: void 0,
|
|
56
|
-
o: void 0,
|
|
57
|
-
i: void 0,
|
|
58
|
-
n: void 0,
|
|
59
|
-
s: void 0,
|
|
60
|
-
h: void 0,
|
|
61
|
-
r: void 0,
|
|
62
|
-
d: void 0
|
|
63
|
-
}), C(() => l.checked = e.checked), r;
|
|
64
|
-
})();
|
|
65
|
-
}
|
|
66
|
-
const ke = "vk_trigger_--BjF", xe = "vk_tooltip_eJQhN", Ee = "vk_hostTooltip_vLrNc", Le = "vk_tooltipInner_AyPkl", B = {
|
|
67
|
-
trigger: ke,
|
|
68
|
-
tooltip: xe,
|
|
69
|
-
hostTooltip: Ee,
|
|
70
|
-
tooltipInner: Le
|
|
71
|
-
}, pe = 12, z = 16, L = 8, Ce = 620;
|
|
72
|
-
function Oe(e) {
|
|
73
|
-
const n = e.tooltipWidth ?? Ce, r = e.tooltipWidth === void 0 ? e.viewportWidth : e.viewportWidth - L, s = Math.min(
|
|
74
|
-
e.pointerX + pe,
|
|
75
|
-
r - n
|
|
76
|
-
), l = Math.max(L, s), d = e.pointerY + z, u = e.tooltipHeight ?? 0, t = e.viewportHeight === void 0 ? d : Math.max(
|
|
77
|
-
L,
|
|
78
|
-
e.viewportHeight - u - L
|
|
79
|
-
), v = e.aboveY === void 0 ? d : e.aboveY - u - z, c = e.viewportHeight !== void 0 && d > t ? Math.max(L, Math.min(v, t)) : Math.max(L, Math.min(d, t));
|
|
80
|
-
return { left: l, top: c };
|
|
81
|
-
}
|
|
82
|
-
var Fe = /* @__PURE__ */ H("<span>"), Se = /* @__PURE__ */ H("<div><span>"), Ie = /* @__PURE__ */ H("<div role=tooltip>");
|
|
83
|
-
const Pe = 1e3, He = 180;
|
|
84
|
-
function Ve(e) {
|
|
85
|
-
const n = ie(), [r, s] = I(!1), [l, d] = I({
|
|
86
|
-
x: 0,
|
|
87
|
-
y: 0
|
|
88
|
-
}), [u, t] = I(), [v, c] = I({
|
|
89
|
-
width: 0,
|
|
90
|
-
height: 0
|
|
91
|
-
}), [T, h] = I(!1);
|
|
92
|
-
let k, x, m, O;
|
|
93
|
-
const _ = () => $(m), f = () => {
|
|
94
|
-
k !== void 0 && (_().clearTimeout(k), k = void 0);
|
|
95
|
-
}, F = () => {
|
|
96
|
-
x !== void 0 && (_().clearTimeout(x), x = void 0);
|
|
97
|
-
}, Y = () => {
|
|
98
|
-
F(), x = _().setTimeout(() => {
|
|
99
|
-
s(!1), g.recordTooltipHidden();
|
|
100
|
-
}, He);
|
|
101
|
-
}, K = (o) => {
|
|
102
|
-
if (!e.content) return;
|
|
103
|
-
F();
|
|
104
|
-
const i = o.clientX, a = o.clientY;
|
|
105
|
-
f(), g.activeTooltip() && g.hideTooltip();
|
|
106
|
-
const b = g.isWarm() ? 0 : e.delayMs ?? Pe;
|
|
107
|
-
k = _().setTimeout(() => {
|
|
108
|
-
d({
|
|
109
|
-
x: i,
|
|
110
|
-
y: a
|
|
111
|
-
}), t(a), s(!0), g.recordTooltipShown();
|
|
112
|
-
}, b);
|
|
113
|
-
}, V = (o) => {
|
|
114
|
-
r() || d({
|
|
115
|
-
x: o.clientX,
|
|
116
|
-
y: o.clientY
|
|
117
|
-
});
|
|
118
|
-
}, N = () => {
|
|
119
|
-
f(), r() && Y();
|
|
120
|
-
}, j = () => {
|
|
121
|
-
F();
|
|
122
|
-
}, U = () => {
|
|
123
|
-
Y();
|
|
124
|
-
}, q = () => {
|
|
125
|
-
if (!e.content) return;
|
|
126
|
-
F(), f(), g.activeTooltip() && g.hideTooltip();
|
|
127
|
-
const o = m == null ? void 0 : m.getBoundingClientRect();
|
|
128
|
-
o && (d({
|
|
129
|
-
x: o.left,
|
|
130
|
-
y: o.bottom
|
|
131
|
-
}), t(o.top)), s(!0), g.recordTooltipShown();
|
|
132
|
-
}, G = () => {
|
|
133
|
-
f(), r() && Y();
|
|
134
|
-
};
|
|
135
|
-
return W(() => {
|
|
136
|
-
g.activeTooltip() && r() && (s(!1), f());
|
|
137
|
-
}), W(() => {
|
|
138
|
-
if (!r()) return;
|
|
139
|
-
const o = () => {
|
|
140
|
-
s(!1);
|
|
141
|
-
}, i = (b) => {
|
|
142
|
-
ae(b, "Escape") && (b.stopPropagation(), b.stopImmediatePropagation(), f(), s(!1), g.dismissAll());
|
|
143
|
-
}, a = $(m);
|
|
144
|
-
a.addEventListener("scroll", o, !0), a.addEventListener("resize", o), a.addEventListener("keydown", i, !0), A(() => {
|
|
145
|
-
a.removeEventListener("scroll", o, !0), a.removeEventListener("resize", o), a.removeEventListener("keydown", i, !0);
|
|
146
|
-
});
|
|
147
|
-
}), A(() => {
|
|
148
|
-
f(), F();
|
|
149
|
-
}), [(() => {
|
|
150
|
-
var o = Fe();
|
|
151
|
-
return o.$$focusout = G, o.$$focusin = q, o.addEventListener("mouseleave", N), o.$$mousemove = V, o.addEventListener("mouseenter", K), D((i) => {
|
|
152
|
-
m = i;
|
|
153
|
-
const a = i.querySelector('button, a[href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
154
|
-
h(a !== null);
|
|
155
|
-
}, o), p(o, () => e.children), C((i) => {
|
|
156
|
-
var a = B.trigger, b = T() ? void 0 : 0, S = r() ? n : void 0;
|
|
157
|
-
return a !== i.e && w(o, i.e = a), b !== i.t && E(o, "tabindex", i.t = b), S !== i.a && E(o, "aria-describedby", i.a = S), i;
|
|
158
|
-
}, {
|
|
159
|
-
e: void 0,
|
|
160
|
-
t: void 0,
|
|
161
|
-
a: void 0
|
|
162
|
-
}), o;
|
|
163
|
-
})(), P(M, {
|
|
164
|
-
get when() {
|
|
165
|
-
return Q(() => !!r())() && e.content;
|
|
166
|
-
},
|
|
167
|
-
get children() {
|
|
168
|
-
return P(re, {
|
|
169
|
-
type: "tooltip",
|
|
170
|
-
get mount() {
|
|
171
|
-
return $(m).document.body;
|
|
172
|
-
},
|
|
173
|
-
element: () => O,
|
|
174
|
-
idPrefix: "hover-tooltip",
|
|
175
|
-
get children() {
|
|
176
|
-
var o = Ie();
|
|
177
|
-
return o.addEventListener("mouseleave", U), o.addEventListener("mouseenter", j), D((i) => {
|
|
178
|
-
O = i;
|
|
179
|
-
const a = i.getBoundingClientRect();
|
|
180
|
-
c({
|
|
181
|
-
width: a.width,
|
|
182
|
-
height: a.height
|
|
183
|
-
});
|
|
184
|
-
}, o), E(o, "id", n), p(o, P(M, {
|
|
185
|
-
get when() {
|
|
186
|
-
return e.shortcut;
|
|
187
|
-
},
|
|
188
|
-
get fallback() {
|
|
189
|
-
return e.content;
|
|
190
|
-
},
|
|
191
|
-
get children() {
|
|
192
|
-
var i = Se(), a = i.firstChild;
|
|
193
|
-
return p(a, () => e.content), p(i, P(le, {
|
|
194
|
-
size: "xs",
|
|
195
|
-
get shortcut() {
|
|
196
|
-
return e.shortcut;
|
|
197
|
-
}
|
|
198
|
-
}), null), C(() => w(i, B.tooltipInner)), i;
|
|
199
|
-
}
|
|
200
|
-
})), C((i) => {
|
|
201
|
-
var a = B.tooltip, b = (() => {
|
|
202
|
-
const S = u(), R = Oe({
|
|
203
|
-
pointerX: l().x,
|
|
204
|
-
pointerY: l().y,
|
|
205
|
-
viewportWidth: _().innerWidth,
|
|
206
|
-
viewportHeight: _().innerHeight,
|
|
207
|
-
tooltipWidth: v().width,
|
|
208
|
-
tooltipHeight: v().height,
|
|
209
|
-
...S !== void 0 ? {
|
|
210
|
-
aboveY: S
|
|
211
|
-
} : {}
|
|
212
|
-
});
|
|
213
|
-
return {
|
|
214
|
-
top: `${R.top}px`,
|
|
215
|
-
left: `${R.left}px`
|
|
216
|
-
};
|
|
217
|
-
})();
|
|
218
|
-
return a !== i.e && w(o, i.e = a), i.t = J(o, b, i.t), i;
|
|
219
|
-
}, {
|
|
220
|
-
e: void 0,
|
|
221
|
-
t: void 0
|
|
222
|
-
}), o;
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
})];
|
|
227
|
-
}
|
|
228
|
-
Z(["mousemove", "focusin", "focusout"]);
|
|
229
|
-
function Ne(e) {
|
|
230
|
-
let n = null, r = null, s = null, l = null;
|
|
231
|
-
const d = () => {
|
|
232
|
-
var c;
|
|
233
|
-
l !== null && ((c = e.ownerDocument().defaultView) == null || c.cancelAnimationFrame(l), l = null);
|
|
234
|
-
}, u = () => {
|
|
235
|
-
d(), s == null || s(), s = null;
|
|
236
|
-
}, t = (c) => {
|
|
237
|
-
n = c, r ?? (r = e.ownerDocument().activeElement);
|
|
238
|
-
};
|
|
239
|
-
W(
|
|
240
|
-
ne(
|
|
241
|
-
() => e.open(),
|
|
242
|
-
(c, T) => {
|
|
243
|
-
if (c) {
|
|
244
|
-
n !== null && s === null && (s = se(n)), d();
|
|
245
|
-
const h = e.ownerDocument().defaultView;
|
|
246
|
-
n !== null && h !== null && (l = h.requestAnimationFrame(() => {
|
|
247
|
-
l = null, e.open() && (n == null || n.focus());
|
|
248
|
-
}));
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
T === !0 && (u(), X(r), r = null, n = null);
|
|
252
|
-
}
|
|
253
|
-
)
|
|
254
|
-
);
|
|
255
|
-
const v = (c) => {
|
|
256
|
-
var h;
|
|
257
|
-
const T = ce(c.key, {
|
|
258
|
-
confirmOnEnter: !1
|
|
259
|
-
});
|
|
260
|
-
if (T === "dismiss") {
|
|
261
|
-
if (((h = e.dismissDisabled) == null ? void 0 : h.call(e)) === !0) return;
|
|
262
|
-
c.stopPropagation(), e.onDismiss();
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
T === "trap" && n !== null && de(n, c);
|
|
266
|
-
};
|
|
267
|
-
return A(() => {
|
|
268
|
-
u(), X(r), r = null, n = null;
|
|
269
|
-
}), { captureDialog: t, handleKeyDown: v };
|
|
270
|
-
}
|
|
271
|
-
export {
|
|
272
|
-
Ke as C,
|
|
273
|
-
Ve as H,
|
|
274
|
-
pe as T,
|
|
275
|
-
z as a,
|
|
276
|
-
_e as b,
|
|
277
|
-
Ce as c,
|
|
278
|
-
L as d,
|
|
279
|
-
Oe as e,
|
|
280
|
-
Ne as f,
|
|
281
|
-
B as s
|
|
282
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("solid-js/web"),M=require("./Input-CZruORyy.cjs"),u=require("solid-js"),P=require("./dialogFocusRestore-CL-ExfAA.cjs"),I=require("./window-_BfSgFGO.cjs"),U=require("./Kbd-BDZklpw9.cjs"),_=require("./tooltipCoordinator-DslqMlsI.cjs"),j=require("./keys-GMxY2wcl.cjs"),G=require("./prefersReducedMotion-BQp-Q4UR.cjs"),W=require("./Modal-CY6ePolt.cjs"),J="vk_root_w-T1s",Q="vk_disabled_kl1Jx",Z="vk_box_mOCAD",ee="vk_checked_YZgPy",te="vk_control_748Lw",oe="vk_input_Ysj9i",ie="vk_indicator_lYKVu",ne="vk_label_jB-PM",p={root:J,disabled:Q,box:Z,checked:ee,control:te,input:oe,indicator:ie,label:ne};function Y(e,r,l,c,a,...h){const v=[];e&&v.push(e),c&&r&&v.push(r),a&&l&&v.push(l);for(const o of h)o!==void 0&&o!==""&&v.push(o);return v.join(" ")}var re=t.template("<span>"),le=t.template("<label><span><input type=checkbox><span aria-hidden=true><span>");function ae(e){const r=M.useFormFieldAria();return(()=>{var l=le(),c=l.firstChild,a=c.firstChild,h=a.nextSibling,v=h.firstChild;return a.addEventListener("change",o=>{const m=o.currentTarget;e.onChange(m.checked),m.indeterminate=!!e.indeterminate}),t.use(o=>u.createRenderEffect(()=>{o.indeterminate=!!e.indeterminate}),a),t.insert(l,t.createComponent(u.Show,{get when(){return e.children!==void 0},get children(){var o=re();return t.insert(o,()=>e.children),t.effect(()=>t.className(o,p.label)),o}}),null),t.effect(o=>{var m=Y(p.root,p.checked,p.disabled,e.checked||!!e.indeterminate,!!e.disabled,e.class),d=p.control,w=e.id,f=`${p.input} ${e.inputClass??""}`,O=e.disabled,E=r==null?void 0:r.describedBy(),b=e.ariaLabel,L=M.nativeControlLabelledBy(r,{ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy}),C=`${p.box} ${e.boxClass??""}`,g=p.indicator;return m!==o.e&&t.className(l,o.e=m),d!==o.t&&t.className(c,o.t=d),w!==o.a&&t.setAttribute(a,"id",o.a=w),f!==o.o&&t.className(a,o.o=f),O!==o.i&&(a.disabled=o.i=O),E!==o.n&&t.setAttribute(a,"aria-describedby",o.n=E),b!==o.s&&t.setAttribute(a,"aria-label",o.s=b),L!==o.h&&t.setAttribute(a,"aria-labelledby",o.h=L),C!==o.r&&t.className(h,o.r=C),g!==o.d&&t.className(v,o.d=g),o},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),t.effect(()=>a.checked=e.checked),l})()}const se="vk_trigger_--BjF",ce="vk_tooltip_eJQhN",de="vk_hostTooltip_vLrNc",ue="vk_tooltipInner_AyPkl",x={trigger:se,tooltip:ce,hostTooltip:de,tooltipInner:ue},H=12,A=16,y=8,N=620;function $(e){const r=e.tooltipWidth??N,l=e.tooltipWidth===void 0?e.viewportWidth:e.viewportWidth-y,c=Math.min(e.pointerX+H,l-r),a=Math.max(y,c),h=e.pointerY+A,v=e.tooltipHeight??0,o=e.viewportHeight===void 0?h:Math.max(y,e.viewportHeight-v-y),m=e.aboveY===void 0?h:e.aboveY-v-A,d=e.viewportHeight!==void 0&&h>o?Math.max(y,Math.min(m,o)):Math.max(y,Math.min(h,o));return{left:a,top:d}}var he=t.template("<span>"),ve=t.template("<div><span>"),me=t.template("<div role=tooltip>");const fe=1e3,be=180;function ge(e){const r=u.createUniqueId(),[l,c]=u.createSignal(!1),[a,h]=u.createSignal({x:0,y:0}),[v,o]=u.createSignal(),[m,d]=u.createSignal({width:0,height:0}),[w,f]=u.createSignal(!1);let O,E,b,L;const C=()=>I.getWindow(b),g=()=>{O!==void 0&&(C().clearTimeout(O),O=void 0)},k=()=>{E!==void 0&&(C().clearTimeout(E),E=void 0)},F=()=>{k(),E=C().setTimeout(()=>{c(!1),_.tooltipCoordinator.recordTooltipHidden()},be)},D=i=>{if(!e.content)return;k();const n=i.clientX,s=i.clientY;g(),_.tooltipCoordinator.activeTooltip()&&_.tooltipCoordinator.hideTooltip();const T=_.tooltipCoordinator.isWarm()?0:e.delayMs??fe;O=C().setTimeout(()=>{h({x:n,y:s}),o(s),c(!0),_.tooltipCoordinator.recordTooltipShown()},T)},q=i=>{l()||h({x:i.clientX,y:i.clientY})},B=()=>{g(),l()&&F()},X=()=>{k()},V=()=>{F()},z=()=>{if(!e.content)return;k(),g(),_.tooltipCoordinator.activeTooltip()&&_.tooltipCoordinator.hideTooltip();const i=b==null?void 0:b.getBoundingClientRect();i&&(h({x:i.left,y:i.bottom}),o(i.top)),c(!0),_.tooltipCoordinator.recordTooltipShown()},K=()=>{g(),l()&&F()};return u.createEffect(()=>{_.tooltipCoordinator.activeTooltip()&&l()&&(c(!1),g())}),u.createEffect(()=>{if(!l())return;const i=()=>{c(!1)},n=T=>{j.isKey(T,"Escape")&&(T.stopPropagation(),T.stopImmediatePropagation(),g(),c(!1),_.tooltipCoordinator.dismissAll())},s=I.getWindow(b);s.addEventListener("scroll",i,!0),s.addEventListener("resize",i),s.addEventListener("keydown",n,!0),u.onCleanup(()=>{s.removeEventListener("scroll",i,!0),s.removeEventListener("resize",i),s.removeEventListener("keydown",n,!0)})}),u.onCleanup(()=>{g(),k()}),[(()=>{var i=he();return i.$$focusout=K,i.$$focusin=z,i.addEventListener("mouseleave",B),i.$$mousemove=q,i.addEventListener("mouseenter",D),t.use(n=>{b=n;const s=n.querySelector('button, a[href], input, select, textarea, [tabindex]:not([tabindex="-1"])');f(s!==null)},i),t.insert(i,()=>e.children),t.effect(n=>{var s=x.trigger,T=w()?void 0:0,S=l()?r:void 0;return s!==n.e&&t.className(i,n.e=s),T!==n.t&&t.setAttribute(i,"tabindex",n.t=T),S!==n.a&&t.setAttribute(i,"aria-describedby",n.a=S),n},{e:void 0,t:void 0,a:void 0}),i})(),t.createComponent(u.Show,{get when(){return t.memo(()=>!!l())()&&e.content},get children(){return t.createComponent(P.OverlayPortal,{type:"tooltip",get mount(){return I.getWindow(b).document.body},element:()=>L,idPrefix:"hover-tooltip",get children(){var i=me();return i.addEventListener("mouseleave",V),i.addEventListener("mouseenter",X),t.use(n=>{L=n;const s=n.getBoundingClientRect();d({width:s.width,height:s.height})},i),t.setAttribute(i,"id",r),t.insert(i,t.createComponent(u.Show,{get when(){return e.shortcut},get fallback(){return e.content},get children(){var n=ve(),s=n.firstChild;return t.insert(s,()=>e.content),t.insert(n,t.createComponent(U.Kbd,{size:"xs",get shortcut(){return e.shortcut}}),null),t.effect(()=>t.className(n,x.tooltipInner)),n}})),t.effect(n=>{var s=x.tooltip,T=(()=>{const S=v(),R=$({pointerX:a().x,pointerY:a().y,viewportWidth:C().innerWidth,viewportHeight:C().innerHeight,tooltipWidth:m().width,tooltipHeight:m().height,...S!==void 0?{aboveY:S}:{}});return{top:`${R.top}px`,left:`${R.left}px`}})();return s!==n.e&&t.className(i,n.e=s),n.t=t.style(i,T,n.t),n},{e:void 0,t:void 0}),i}})}})]}t.delegateEvents(["mousemove","focusin","focusout"]);function Te(e){let r=null,l=null,c=null,a=null;const h=()=>{var d;a!==null&&((d=e.ownerDocument().defaultView)==null||d.cancelAnimationFrame(a),a=null)},v=()=>{h(),c==null||c(),c=null},o=d=>{r=d,l??(l=e.ownerDocument().activeElement)};u.createEffect(u.on(()=>e.open(),(d,w)=>{if(d){r!==null&&c===null&&(c=G.neutralizeBackground(r)),h();const f=e.ownerDocument().defaultView;r!==null&&f!==null&&(a=f.requestAnimationFrame(()=>{a=null,e.open()&&(r==null||r.focus())}));return}w===!0&&(v(),P.restoreFocusTo(l),l=null,r=null)}));const m=d=>{var f;const w=W.resolveDialogShellKeyIntent(d.key,{confirmOnEnter:!1});if(w==="dismiss"){if(((f=e.dismissDisabled)==null?void 0:f.call(e))===!0)return;d.stopPropagation(),e.onDismiss();return}w==="trap"&&r!==null&&W.trapTabFocusWithin(r,d)};return u.onCleanup(()=>{v(),P.restoreFocusTo(l),l=null,r=null}),{captureDialog:o,handleKeyDown:m}}exports.Checkbox=ae;exports.HoverTooltip=ge;exports.TOOLTIP_CURSOR_OFFSET_X=H;exports.TOOLTIP_CURSOR_OFFSET_Y=A;exports.TOOLTIP_MAX_FOOTPRINT_X=N;exports.TOOLTIP_VIEWPORT_MARGIN=y;exports.buildSelectionItemClass=Y;exports.computeTooltipPointerPosition=$;exports.createDialogShellFocus=Te;exports.styles=x;
|