@vizejs/ui 0.386.0 → 0.388.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/dist/alert-BX93FNvj.d.mts +92 -0
- package/dist/alert-DvhiFK_R.mjs +92 -0
- package/dist/alert-dialog-D9tqXQ_Q.mjs +176 -0
- package/dist/alert-dialog.d.mts +2 -0
- package/dist/alert-dialog.mjs +3 -0
- package/dist/alert.d.mts +2 -0
- package/dist/alert.mjs +2 -0
- package/dist/announcer-CW079p2E.mjs +258 -0
- package/dist/announcer-DGr2Iz0i.d.mts +6829 -0
- package/dist/announcer.d.mts +2 -0
- package/dist/announcer.mjs +2 -0
- package/dist/aspect-ratio-DDqVT6Hg.d.mts +62 -0
- package/dist/aspect-ratio-_HLW6_5i.mjs +63 -0
- package/dist/aspect-ratio.d.mts +2 -0
- package/dist/aspect-ratio.mjs +2 -0
- package/dist/avatar-6fQfQ-1x.mjs +195 -0
- package/dist/avatar.d.mts +2 -0
- package/dist/avatar.mjs +2 -0
- package/dist/badge-BTOyu4i6.mjs +53 -0
- package/dist/badge.d.mts +2 -0
- package/dist/badge.mjs +2 -0
- package/dist/banner-CYiSiZJW.mjs +288 -0
- package/dist/banner.d.mts +2 -0
- package/dist/banner.mjs +2 -0
- package/dist/block-ui-Bd2m1m3K.mjs +111 -0
- package/dist/block-ui.d.mts +2 -0
- package/dist/block-ui.mjs +2 -0
- package/dist/blockquote-eTqp3b_r.mjs +65 -0
- package/dist/blockquote.d.mts +2 -0
- package/dist/blockquote.mjs +2 -0
- package/dist/breadcrumb-BvuPBfkj.mjs +212 -0
- package/dist/breadcrumb-Cdyh20z-.d.mts +202 -0
- package/dist/breadcrumb.d.mts +2 -0
- package/dist/breadcrumb.mjs +2 -0
- package/dist/{button-DYg1mIIq.d.mts → button-Dye0M41O.d.mts} +3 -3
- package/dist/{button-DT8AKlds.mjs → button-VVxUavbS.mjs} +6 -6
- package/dist/button-group-C_mR0Jfw.d.mts +137 -0
- package/dist/button-group-DyQbTCnY.mjs +418 -0
- package/dist/button-group.d.mts +2 -0
- package/dist/button-group.mjs +2 -0
- package/dist/button.d.mts +1 -1
- package/dist/button.mjs +2 -2
- package/dist/callout-DAu-98Ti.mjs +277 -0
- package/dist/callout.d.mts +2 -0
- package/dist/callout.mjs +2 -0
- package/dist/card-D94n04s5.mjs +66 -0
- package/dist/card.d.mts +2 -0
- package/dist/card.mjs +2 -0
- package/dist/catalog.d.mts +2112 -302
- package/dist/catalog.mjs +3831 -433
- package/dist/{checkbox-BgIvwjyC.mjs → checkbox-bM5y7vH8.mjs} +8 -8
- package/dist/checkbox.d.mts +1 -1
- package/dist/checkbox.mjs +2 -2
- package/dist/cluster-BWF028Xt.d.mts +133 -0
- package/dist/cluster-BydJTp9X.mjs +149 -0
- package/dist/cluster.d.mts +2 -0
- package/dist/cluster.mjs +2 -0
- package/dist/code-D93YXaeJ.mjs +66 -0
- package/dist/code.d.mts +2 -0
- package/dist/code.mjs +2 -0
- package/dist/collapsible-Cra5y_if.mjs +269 -0
- package/dist/collapsible.d.mts +2 -0
- package/dist/collapsible.mjs +2 -0
- package/dist/{collection-B_dFZOHO.d.mts → collection-BaPf8lgw.d.mts} +3 -3
- package/dist/{collection-eHN150dT.mjs → collection-Cncgrq4U.mjs} +5 -5
- package/dist/collection.d.mts +1 -1
- package/dist/collection.mjs +1 -1
- package/dist/command-CAH0yrMT.d.mts +105 -0
- package/dist/command.d.mts +2 -0
- package/dist/command.mjs +123 -0
- package/dist/{composite-navigation-Skx3LZsv.mjs → composite-navigation-D6WKS_BY.mjs} +4 -4
- package/dist/{composite-navigation-QINW9GLy.d.mts → composite-navigation-i7ocwmio.d.mts} +4 -4
- package/dist/composite-navigation.d.mts +1 -1
- package/dist/composite-navigation.mjs +1 -1
- package/dist/container-5lSCSbeX.mjs +113 -0
- package/dist/container-CYSiwCA-.d.mts +99 -0
- package/dist/container.d.mts +2 -0
- package/dist/container.mjs +2 -0
- package/dist/context-7SpwFHtK.d.mts +25 -0
- package/dist/context.d.mts +1 -24
- package/dist/context.mjs +1 -1
- package/dist/{controllable-state-BtoxKahh.d.mts → controllable-state-CZZF9Pw5.d.mts} +1 -1
- package/dist/controllable-state.d.mts +1 -1
- package/dist/controllable-state.mjs +1 -1
- package/dist/copy-button-BH2em7nG.mjs +212 -0
- package/dist/copy-button.d.mts +2 -0
- package/dist/copy-button.mjs +2 -0
- package/dist/{id-BV9AJ3cm.d.mts → deterministic-id-DYQJ7KzM.d.mts} +2 -35
- package/dist/{id-mziSyAse.mjs → deterministic-id-yMq4HfmS.mjs} +3 -46
- package/dist/dialog-trigger-ppGKikEP.mjs +717 -0
- package/dist/dialog.d.mts +2 -0
- package/dist/dialog.mjs +2 -0
- package/dist/{dismissable-layer-4icKahVs.d.mts → dismissable-layer-CTWSFZwj.d.mts} +2 -2
- package/dist/{dismissable-layer-CwG1gtdz.mjs → dismissable-layer-CpS07KUV.mjs} +3 -3
- package/dist/dismissable-layer.d.mts +1 -1
- package/dist/dismissable-layer.mjs +1 -1
- package/dist/drag-and-drop-BjYgWGcG.mjs +918 -0
- package/dist/drag-and-drop-CagE25Kt.d.mts +47 -0
- package/dist/drag-and-drop-controller-types-DoTSR_aM.d.mts +304 -0
- package/dist/drag-and-drop.d.mts +3 -0
- package/dist/drag-and-drop.mjs +2 -0
- package/dist/empty-state-DtyOxCA4.mjs +73 -0
- package/dist/empty-state.d.mts +2 -0
- package/dist/empty-state.mjs +2 -0
- package/dist/error-summary-6Xis_769.d.mts +65 -0
- package/dist/error-summary-DMe4IlM9.mjs +209 -0
- package/dist/error-summary-types-5ePaC9O3.d.mts +74 -0
- package/dist/error-summary.d.mts +3 -0
- package/dist/error-summary.mjs +2 -0
- package/dist/field-CBs2-Z9B.mjs +254 -0
- package/dist/field-WWPaJT1x.d.mts +235 -0
- package/dist/field-wiring-9Fy-G1rf.d.mts +14 -0
- package/dist/field-wiring-runtime-fQ3GoLuG.mjs +64 -0
- package/dist/field-wiring-types-Bfyis5hO.d.mts +73 -0
- package/dist/field-wiring.d.mts +3 -0
- package/dist/field-wiring.mjs +2 -0
- package/dist/field.d.mts +2 -0
- package/dist/field.mjs +2 -0
- package/dist/{focus-CAWi_I-0.mjs → focus-XxVWOwbs.mjs} +3 -3
- package/dist/{focus-K6dOifoZ.d.mts → focus-eObxGOtP.d.mts} +2 -2
- package/dist/{focus-guards-Bt0C-0qS.d.mts → focus-guards-BZa7vm6O.d.mts} +2 -2
- package/dist/{focus-guards-DhMPQAT8.mjs → focus-guards-DSxiemx7.mjs} +4 -4
- package/dist/focus-guards.d.mts +1 -1
- package/dist/focus-guards.mjs +1 -1
- package/dist/{focus-scope-CavhKWx0.d.mts → focus-scope-CsnioDR4.d.mts} +3 -3
- package/dist/{focus-scope-dom-DBwNEWxG.mjs → focus-scope-dom-L_EC5GsX.mjs} +2 -2
- package/dist/{focus-scope-D9U1aj67.mjs → focus-scope-mEg8UoeE.mjs} +5 -5
- package/dist/focus-scope.d.mts +1 -1
- package/dist/focus-scope.mjs +1 -1
- package/dist/focus.d.mts +1 -1
- package/dist/focus.mjs +1 -1
- package/dist/form-1V2V30Sv.d.mts +20 -0
- package/dist/form-runtime-CcMDY0Iq.mjs +166 -0
- package/dist/form-types-DXwZRLcs.d.mts +183 -0
- package/dist/form.d.mts +3 -0
- package/dist/form.mjs +2 -0
- package/dist/fullscreen-button-NTbC4R0W.mjs +276 -0
- package/dist/fullscreen-button.d.mts +2 -0
- package/dist/fullscreen-button.mjs +2 -0
- package/dist/grid-BSM9h2dL.d.mts +154 -0
- package/dist/grid-DeC4Wn7Y.mjs +157 -0
- package/dist/grid.d.mts +2 -0
- package/dist/grid.mjs +2 -0
- package/dist/heading-DToVOKV3.mjs +86 -0
- package/dist/heading.d.mts +2 -0
- package/dist/heading.mjs +2 -0
- package/dist/history-BDgNOjcV.mjs +304 -0
- package/dist/history-BkcOSOWb.d.mts +157 -0
- package/dist/history.d.mts +2 -0
- package/dist/history.mjs +2 -0
- package/dist/{hover-BXwwbSaO.d.mts → hover-ZiPRiZkb.d.mts} +2 -2
- package/dist/hover.d.mts +1 -1
- package/dist/hover.mjs +1 -1
- package/dist/icon-DhTTndMu.mjs +233 -0
- package/dist/icon-button-BuXquME1.mjs +188 -0
- package/dist/icon-button.d.mts +2 -0
- package/dist/icon-button.mjs +2 -0
- package/dist/icon.d.mts +2 -0
- package/dist/icon.mjs +2 -0
- package/dist/id-BYG8aXPF.mjs +47 -0
- package/dist/id-Ba8FHjAo.d.mts +34 -0
- package/dist/id.d.mts +2 -1
- package/dist/id.mjs +3 -2
- package/dist/index.d.mts +74 -24
- package/dist/index.mjs +113 -21
- package/dist/{inert-outside-tuHRmaqJ.d.mts → inert-outside-B6KdwAHY.d.mts} +2 -2
- package/dist/{inert-outside-CyqtoKQ4.mjs → inert-outside-DOufBTyy.mjs} +4 -4
- package/dist/inert-outside.d.mts +1 -1
- package/dist/inert-outside.mjs +1 -1
- package/dist/input-Blyx59CR.mjs +256 -0
- package/dist/input-C0fgeRnS.d.mts +159 -0
- package/dist/input.d.mts +2 -0
- package/dist/input.mjs +2 -0
- package/dist/{interaction-modality-DOZK0BpZ.mjs → interaction-modality-BHnjtU4S.mjs} +3 -3
- package/dist/{interaction-modality-jgHKjPFB.d.mts → interaction-modality-BTiZ7j98.d.mts} +2 -2
- package/dist/interaction-modality.d.mts +1 -1
- package/dist/interaction-modality.mjs +1 -1
- package/dist/kbd-sJdXIdIm.mjs +66 -0
- package/dist/kbd.d.mts +2 -0
- package/dist/kbd.mjs +2 -0
- package/dist/link-DDaCjrI5.mjs +154 -0
- package/dist/link-MbRDN6wJ.d.mts +94 -0
- package/dist/link.d.mts +2 -0
- package/dist/link.mjs +2 -0
- package/dist/list-DjyCLVfG.mjs +66 -0
- package/dist/list.d.mts +2 -0
- package/dist/list.mjs +2 -0
- package/dist/listbox-IaqaoiRn.mjs +549 -0
- package/dist/listbox.d.mts +2 -0
- package/dist/listbox.mjs +2 -0
- package/dist/live-region-DYSpwCTk.mjs +48 -0
- package/dist/live-region-G1iobPK5.d.mts +67 -0
- package/dist/live-region-runtime-DVUch8Lu.mjs +62 -0
- package/dist/live-region.d.mts +2 -0
- package/dist/live-region.mjs +3 -0
- package/dist/locale-DzWqhJZs.mjs +206 -0
- package/dist/locale.d.mts +2 -0
- package/dist/locale.mjs +2 -0
- package/dist/{long-press-cll6z2K9.d.mts → long-press-DyYxp191.d.mts} +3 -3
- package/dist/{long-press-Dsul69gk.mjs → long-press-yJk5zK0j.mjs} +4 -4
- package/dist/long-press.d.mts +1 -1
- package/dist/long-press.mjs +1 -1
- package/dist/measure-4I0YOAXD.d.mts +97 -0
- package/dist/measure-runtime-C4qYJp3_.mjs +170 -0
- package/dist/measure.d.mts +2 -0
- package/dist/measure.mjs +2 -0
- package/dist/media-pdf.d.mts +1 -1
- package/dist/media-pdf.mjs +1 -1
- package/dist/media-source.d.mts +1 -1
- package/dist/media-source.mjs +1 -1
- package/dist/media.d.mts +1 -1
- package/dist/media.mjs +1 -1
- package/dist/meter-B3m17_8g.d.mts +174 -0
- package/dist/meter-BwOXVWH8.mjs +243 -0
- package/dist/meter.d.mts +2 -0
- package/dist/meter.mjs +2 -0
- package/dist/motion-OdERKfZR.mjs +174 -0
- package/dist/motion-iUSBdWaI.d.mts +98 -0
- package/dist/motion.d.mts +2 -0
- package/dist/motion.mjs +2 -0
- package/dist/{move-BOmXDYbh.d.mts → move-BJGaV7Y9.d.mts} +2 -2
- package/dist/move-internal-BM_7g70h.mjs +172 -0
- package/dist/move.d.mts +1 -1
- package/dist/move.mjs +216 -1
- package/dist/native-select-H9qvaqQH.mjs +309 -0
- package/dist/native-select.d.mts +2 -0
- package/dist/native-select.mjs +2 -0
- package/dist/pagination-Bs4SBSE4.mjs +791 -0
- package/dist/pagination.d.mts +2 -0
- package/dist/pagination.mjs +2 -0
- package/dist/{pdf-source-zu1LkCeE.mjs → pdf-source-B5JSDKkQ.mjs} +1 -1
- package/dist/{pdf-source-BYFK2Pks.d.mts → pdf-source-adS6ZSmR.d.mts} +1 -1
- package/dist/pointer-grace-CAFcO4om.d.mts +57 -0
- package/dist/pointer-grace-DI0G3oRJ.mjs +162 -0
- package/dist/pointer-grace.d.mts +2 -0
- package/dist/pointer-grace.mjs +2 -0
- package/dist/popover-DeENBKXE.mjs +714 -0
- package/dist/popover.d.mts +2 -0
- package/dist/popover.mjs +2 -0
- package/dist/portal-DeHaLxGL.mjs +114 -0
- package/dist/portal-DhWXejr1.d.mts +71 -0
- package/dist/portal.d.mts +2 -0
- package/dist/portal.mjs +2 -0
- package/dist/positioner-BYJVA3Uy.d.mts +477 -0
- package/dist/positioner-BYmQk86M.mjs +38 -0
- package/dist/positioner-DaPo2YxM.mjs +708 -0
- package/dist/positioner.d.mts +2 -0
- package/dist/positioner.mjs +3 -0
- package/dist/presence-Bhv1qtvn.d.mts +57 -0
- package/dist/presence-CTG1EV3w.mjs +62 -0
- package/dist/presence-runtime-CYwCafSh.mjs +105 -0
- package/dist/presence-types-CRB4HbML.d.mts +45 -0
- package/dist/presence.d.mts +3 -0
- package/dist/presence.mjs +3 -0
- package/dist/{press-N_mE3Mgx.mjs → press-BjLm6bKg.mjs} +6 -6
- package/dist/press-R0_juZq2.d.mts +14 -0
- package/dist/{press-event-Cd2OPpmw.mjs → press-event-xlWYF9py.mjs} +1 -1
- package/dist/{press-types-CNqStzJf.d.mts → press-types-DfTNpqby.d.mts} +1 -1
- package/dist/press.d.mts +2 -13
- package/dist/press.mjs +1 -1
- package/dist/{primitive-C8jW7DLd.d.mts → primitive-BE2mdUcw.d.mts} +2 -2
- package/dist/{primitive-BX31dogp.mjs → primitive-beb2EEOc.mjs} +5 -5
- package/dist/primitive.d.mts +1 -1
- package/dist/primitive.mjs +2 -2
- package/dist/print-button-FqD5HqTV.mjs +206 -0
- package/dist/print-button.d.mts +2 -0
- package/dist/print-button.mjs +2 -0
- package/dist/progress--vbV2wTx.mjs +145 -0
- package/dist/progress-C4PlKwWq.d.mts +128 -0
- package/dist/progress-bar-BqS94auR.mjs +301 -0
- package/dist/progress-bar.d.mts +2 -0
- package/dist/progress-bar.mjs +2 -0
- package/dist/progress.d.mts +2 -0
- package/dist/progress.mjs +2 -0
- package/dist/radio-group-DbTmWcxl.mjs +317 -0
- package/dist/radio-group.d.mts +2 -0
- package/dist/radio-group.mjs +2 -0
- package/dist/rating-BjKLGPP6.mjs +569 -0
- package/dist/rating-souDdL9t.d.mts +273 -0
- package/dist/rating.d.mts +2 -0
- package/dist/rating.mjs +2 -0
- package/dist/scroll-area-BRSwoi9w.mjs +338 -0
- package/dist/scroll-area.d.mts +2 -0
- package/dist/scroll-area.mjs +2 -0
- package/dist/{scroll-lock-Ckbmm0-J.mjs → scroll-lock-BcmK0baN.mjs} +4 -4
- package/dist/{scroll-lock-BgVtX4wT.d.mts → scroll-lock-OfSQnfi0.d.mts} +2 -2
- package/dist/scroll-lock.d.mts +1 -1
- package/dist/scroll-lock.mjs +1 -1
- package/dist/search-field-70Kr2616.mjs +319 -0
- package/dist/search-field-Biw9vApG.d.mts +158 -0
- package/dist/search-field.d.mts +2 -0
- package/dist/search-field.mjs +2 -0
- package/dist/separator-CnNDqbdR.d.mts +59 -0
- package/dist/separator-DDj3tEAz.mjs +66 -0
- package/dist/separator.d.mts +2 -0
- package/dist/separator.mjs +2 -0
- package/dist/share-button-DfvUDFC-.mjs +243 -0
- package/dist/share-button.d.mts +2 -0
- package/dist/share-button.mjs +2 -0
- package/dist/shortcut-CvA_o0_F.mjs +631 -0
- package/dist/shortcut-DAZJ9LEd.d.mts +231 -0
- package/dist/shortcut.d.mts +2 -0
- package/dist/shortcut.mjs +2 -0
- package/dist/skeleton-BYXXcwTH.mjs +101 -0
- package/dist/skeleton-CQW-Tsnt.d.mts +99 -0
- package/dist/skeleton.d.mts +2 -0
- package/dist/skeleton.mjs +2 -0
- package/dist/skip-link-BUp9HXXt.mjs +164 -0
- package/dist/skip-link-DHDrtnP2.d.mts +98 -0
- package/dist/skip-link.d.mts +2 -0
- package/dist/skip-link.mjs +2 -0
- package/dist/slider-BiZSZLDp.mjs +475 -0
- package/dist/slider-CYBbxeNy.d.mts +246 -0
- package/dist/slider.d.mts +2 -0
- package/dist/slider.mjs +2 -0
- package/dist/sortable-BntjgYra.mjs +499 -0
- package/dist/sortable-DQl92bwo.d.mts +206 -0
- package/dist/sortable.d.mts +2 -0
- package/dist/sortable.mjs +2 -0
- package/dist/spacer-Bc0dInvi.mjs +117 -0
- package/dist/spacer-DFstG4G-.d.mts +105 -0
- package/dist/spacer.d.mts +2 -0
- package/dist/spacer.mjs +2 -0
- package/dist/{spatial-navigation-CHj9mDZH.d.mts → spatial-navigation-BPVJGSiJ.d.mts} +3 -3
- package/dist/{spatial-navigation-D6-UDavU.mjs → spatial-navigation-DwcUYMyc.mjs} +2 -2
- package/dist/spatial-navigation.d.mts +1 -1
- package/dist/spatial-navigation.mjs +1 -1
- package/dist/spinner-JnRs8fp-.d.mts +155 -0
- package/dist/spinner-bizL-oOg.mjs +200 -0
- package/dist/spinner.d.mts +2 -0
- package/dist/spinner.mjs +2 -0
- package/dist/stack-C7DOIxo-.mjs +137 -0
- package/dist/stack-CPtBckZB.d.mts +127 -0
- package/dist/stack.d.mts +2 -0
- package/dist/stack.mjs +2 -0
- package/dist/status-light-BGWgQRRf.mjs +125 -0
- package/dist/status-light.d.mts +2 -0
- package/dist/status-light.mjs +2 -0
- package/dist/stepper-CwX6BZaN.mjs +912 -0
- package/dist/stepper.d.mts +2 -0
- package/dist/stepper.mjs +2 -0
- package/dist/style.css +1 -1
- package/dist/surface-C2fnxL3g.mjs +102 -0
- package/dist/surface.d.mts +2 -0
- package/dist/surface.mjs +2 -0
- package/dist/switch-Ck5YmfXb.mjs +197 -0
- package/dist/switch.d.mts +2 -0
- package/dist/switch.mjs +2 -0
- package/dist/table-BxU7htxc.mjs +349 -0
- package/dist/table-Ce3yWwlH.d.mts +415 -0
- package/dist/table.d.mts +2 -0
- package/dist/table.mjs +2 -0
- package/dist/tabs-DSXIomI_.mjs +595 -0
- package/dist/tabs.d.mts +2 -0
- package/dist/tabs.mjs +2 -0
- package/dist/text-BVeNKPiv.mjs +76 -0
- package/dist/text.d.mts +2 -0
- package/dist/text.mjs +2 -0
- package/dist/textarea-4eIDNcvv.d.mts +175 -0
- package/dist/textarea-BZimEPBR.mjs +279 -0
- package/dist/textarea.d.mts +2 -0
- package/dist/textarea.mjs +2 -0
- package/dist/theme-C8Crmb8V.mjs +139 -0
- package/dist/theme-CNK06Pja.d.mts +38 -0
- package/dist/theme-constants-DAwnxG-P.mjs +29 -0
- package/dist/theme-preset-atelier.css +1 -0
- package/dist/theme-preset-headless.css +1 -0
- package/dist/theme-preset-high-contrast.css +1 -0
- package/dist/theme-preset-midnight.css +1 -0
- package/dist/theme-preset-paper.css +1 -0
- package/dist/theme-preset-play.css +1 -0
- package/dist/theme-preset-signal.css +1 -0
- package/dist/theme-scope.d.mts +25 -0
- package/dist/theme-scope.mjs +89 -0
- package/dist/theme-types-CkIa4Sa3.d.mts +71 -0
- package/dist/theme.css +1 -0
- package/dist/theme.d.mts +3 -0
- package/dist/theme.mjs +3 -0
- package/dist/toggle-CBTXzwze.mjs +141 -0
- package/dist/toggle-group-DO7eGEs3.d.mts +147 -0
- package/dist/toggle-group-DybU9N7k.mjs +523 -0
- package/dist/toggle-group.d.mts +2 -0
- package/dist/toggle-group.mjs +2 -0
- package/dist/toggle.d.mts +2 -0
- package/dist/toggle.mjs +2 -0
- package/dist/toolbar-CIU1bor0.d.mts +259 -0
- package/dist/toolbar-CXE8YCX-.mjs +425 -0
- package/dist/toolbar.d.mts +2 -0
- package/dist/toolbar.mjs +2 -0
- package/dist/tooltip-Cgii5xMx.mjs +485 -0
- package/dist/tooltip.d.mts +2 -0
- package/dist/tooltip.mjs +2 -0
- package/dist/transition-BmgFyzA6.mjs +168 -0
- package/dist/transition-BtIWNEFU.d.mts +82 -0
- package/dist/transition.d.mts +2 -0
- package/dist/transition.mjs +2 -0
- package/dist/{typeahead-B7KDxE_u.mjs → typeahead-DZSBI5m5.mjs} +2 -2
- package/dist/{typeahead-BbgUB2Bj.d.mts → typeahead-Dl6w5PAN.d.mts} +3 -3
- package/dist/typeahead.d.mts +1 -1
- package/dist/typeahead.mjs +1 -1
- package/dist/virtualizer-BlxKjT3W.mjs +793 -0
- package/dist/virtualizer-D9qfT4wS.d.mts +349 -0
- package/dist/virtualizer.d.mts +2 -0
- package/dist/virtualizer.mjs +2 -0
- package/dist/{visually-hidden-BOqfqBFt.d.mts → visually-hidden-CUr9BX0K.d.mts} +1 -1
- package/dist/{visually-hidden-BwDOx5yf.mjs → visually-hidden-SDjRJYRK.mjs} +5 -5
- package/dist/visually-hidden.d.mts +1 -1
- package/dist/visually-hidden.mjs +2 -2
- package/package.json +426 -7
- package/dist/checkbox-DP3_ko7D.d.mts +0 -61
- package/dist/move-BVvMHzxr.mjs +0 -386
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/families/navigation/skip-link/skip-link-types.d.ts
|
|
4
|
+
/** Hash-fragment destination accepted by the SkipLink primitive. */
|
|
5
|
+
type SkipLinkHref = `#${string}`;
|
|
6
|
+
/** Mounted availability and focus state for a skip link. */
|
|
7
|
+
type SkipLinkState = "focused" | "idle" | "invalid";
|
|
8
|
+
/** Public props accepted by the SkipLink primitive. */
|
|
9
|
+
interface SkipLinkProps {
|
|
10
|
+
/**
|
|
11
|
+
* Consumer-owned anchor id. `null` and `undefined` select a deterministic fallback.
|
|
12
|
+
*
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
15
|
+
readonly id?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Same-document fragment destination. Invalid runtime values remove native navigation.
|
|
18
|
+
*
|
|
19
|
+
* @default "#main"
|
|
20
|
+
*/
|
|
21
|
+
readonly href?: SkipLinkHref;
|
|
22
|
+
/**
|
|
23
|
+
* Move DOM focus to the fragment target after activation.
|
|
24
|
+
*
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
readonly focusTarget?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** Result of an imperative or activation-driven target focus attempt. */
|
|
30
|
+
interface SkipLinkFocusResult {
|
|
31
|
+
/** Same-document target element resolved from the current fragment. */
|
|
32
|
+
readonly target: HTMLElement | null;
|
|
33
|
+
/** Whether focus moved to the target element. */
|
|
34
|
+
readonly focused: boolean;
|
|
35
|
+
}
|
|
36
|
+
/** Activation payload emitted after a valid skip link click. */
|
|
37
|
+
interface SkipLinkActivation extends SkipLinkFocusResult {
|
|
38
|
+
/** Validated hash-fragment href used for native navigation. */
|
|
39
|
+
readonly href: SkipLinkHref;
|
|
40
|
+
/** Target id resolved from {@link SkipLinkActivation.href}. */
|
|
41
|
+
readonly targetId: string;
|
|
42
|
+
}
|
|
43
|
+
/** State exposed to the default slot. */
|
|
44
|
+
interface SkipLinkSlotState {
|
|
45
|
+
/** Whether the link itself currently owns focus. */
|
|
46
|
+
readonly focused: boolean;
|
|
47
|
+
/** Validated href rendered on the native anchor. */
|
|
48
|
+
readonly href: SkipLinkHref | undefined;
|
|
49
|
+
/** Mounted availability and focus state. */
|
|
50
|
+
readonly state: SkipLinkState;
|
|
51
|
+
/** Target id resolved from the validated hash-fragment href. */
|
|
52
|
+
readonly targetId: string | undefined;
|
|
53
|
+
/** Whether runtime validation removed native navigation. */
|
|
54
|
+
readonly unavailable: boolean;
|
|
55
|
+
}
|
|
56
|
+
/** Methods and state exposed by the skip link component instance. */
|
|
57
|
+
interface SkipLinkExpose extends SkipLinkSlotState {
|
|
58
|
+
/** Native anchor element rendered by the primitive. */
|
|
59
|
+
readonly element: HTMLAnchorElement | null;
|
|
60
|
+
/** Move focus to the native anchor. */
|
|
61
|
+
readonly focus: (options?: FocusOptions) => void;
|
|
62
|
+
/** Resolve the current same-document target, or `null` when absent. */
|
|
63
|
+
readonly getTarget: () => HTMLElement | null;
|
|
64
|
+
/** Move focus to the current same-document target. */
|
|
65
|
+
readonly focusTarget: (options?: FocusOptions) => SkipLinkFocusResult;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/families/navigation/skip-link/skip-link.vue.d.ts
|
|
69
|
+
type __VLS_Slots = {
|
|
70
|
+
/** Renders skip-link contents with the resolved hash target and focus state. */default(props: SkipLinkSlotState): unknown;
|
|
71
|
+
};
|
|
72
|
+
declare function getTarget(): HTMLElement | null;
|
|
73
|
+
declare function focus(options?: FocusOptions): void;
|
|
74
|
+
declare function focusTarget(options?: FocusOptions): SkipLinkFocusResult;
|
|
75
|
+
declare const __VLS_base: import("vue").DefineComponent<SkipLinkProps, {
|
|
76
|
+
element: Readonly<import("vue").ShallowRef<HTMLAnchorElement | null>>;
|
|
77
|
+
focus: typeof focus;
|
|
78
|
+
focused: Ref<boolean, boolean>;
|
|
79
|
+
focusTarget: typeof focusTarget;
|
|
80
|
+
getTarget: typeof getTarget;
|
|
81
|
+
href: ComputedRef<`#${string}` | undefined>;
|
|
82
|
+
state: ComputedRef<SkipLinkState>;
|
|
83
|
+
targetId: ComputedRef<string | undefined>;
|
|
84
|
+
unavailable: ComputedRef<boolean>;
|
|
85
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
86
|
+
activate: (event: MouseEvent, detail: SkipLinkActivation) => any;
|
|
87
|
+
}, string, import("vue").PublicProps, Readonly<SkipLinkProps> & Readonly<{
|
|
88
|
+
onActivate?: (event: MouseEvent, detail: SkipLinkActivation) => any;
|
|
89
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
90
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
91
|
+
declare const _default: typeof __VLS_export;
|
|
92
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
93
|
+
new (): {
|
|
94
|
+
$slots: S;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
//#endregion
|
|
98
|
+
export { SkipLinkHref as a, SkipLinkState as c, SkipLinkFocusResult as i, SkipLinkActivation as n, SkipLinkProps as o, SkipLinkExpose as r, SkipLinkSlotState as s, _default as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as SkipLinkHref, c as SkipLinkState, i as SkipLinkFocusResult, n as SkipLinkActivation, o as SkipLinkProps, r as SkipLinkExpose, s as SkipLinkSlotState, t as _default } from "./skip-link-DHDrtnP2.mjs";
|
|
2
|
+
export { _default as SkipLink, type SkipLinkActivation, type SkipLinkExpose, type SkipLinkFocusResult, type SkipLinkHref, type SkipLinkProps, type SkipLinkSlotState, type SkipLinkState };
|
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
import { a as useDeterministicId } from "./deterministic-id-yMq4HfmS.mjs";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
3
|
+
import { useControllableState } from "./controllable-state.mjs";
|
|
4
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeProps, openBlock, renderSlot, unref, useTemplateRef, watch, watchEffect } from "vue";
|
|
5
|
+
//#region src/families/form/slider/slider-state.ts
|
|
6
|
+
/** Native-friendly default minimum for Slider. */
|
|
7
|
+
const SLIDER_DEFAULT_MIN = 0;
|
|
8
|
+
/** Native-friendly default maximum for Slider. */
|
|
9
|
+
const SLIDER_DEFAULT_MAX = 100;
|
|
10
|
+
/** Native range default step. */
|
|
11
|
+
const SLIDER_DEFAULT_STEP = 1;
|
|
12
|
+
function finiteOr(value, fallback) {
|
|
13
|
+
return typeof value === "number" && Number.isFinite(value) ? value : fallback;
|
|
14
|
+
}
|
|
15
|
+
function normalizeStep(step) {
|
|
16
|
+
if (step === "any") return "any";
|
|
17
|
+
return typeof step === "number" && Number.isFinite(step) && step > 0 ? step : 1;
|
|
18
|
+
}
|
|
19
|
+
function decimalPlaces(value) {
|
|
20
|
+
const text = String(value);
|
|
21
|
+
const exponentIndex = text.indexOf("e-");
|
|
22
|
+
if (exponentIndex !== -1) return Number(text.slice(exponentIndex + 2));
|
|
23
|
+
const decimalIndex = text.indexOf(".");
|
|
24
|
+
return decimalIndex === -1 ? 0 : text.length - decimalIndex - 1;
|
|
25
|
+
}
|
|
26
|
+
function clamp(value, min, max) {
|
|
27
|
+
return Math.min(Math.max(value, min), max);
|
|
28
|
+
}
|
|
29
|
+
function snapValue(value, min, max, step) {
|
|
30
|
+
const clamped = clamp(value, min, max);
|
|
31
|
+
if (step === "any") return clamped;
|
|
32
|
+
const precision = Math.max(decimalPlaces(min), decimalPlaces(max), decimalPlaces(step));
|
|
33
|
+
const snapped = min + Math.round((clamped - min) / step) * step;
|
|
34
|
+
return clamp(Number(snapped.toFixed(Math.min(precision, 20))), min, max);
|
|
35
|
+
}
|
|
36
|
+
function normalizeOrientation(orientation) {
|
|
37
|
+
return orientation === "vertical" ? "vertical" : "horizontal";
|
|
38
|
+
}
|
|
39
|
+
function normalizeDirection(direction) {
|
|
40
|
+
return direction === "rtl" ? "rtl" : "ltr";
|
|
41
|
+
}
|
|
42
|
+
function sliderState(options) {
|
|
43
|
+
if (options.disabled) return "disabled";
|
|
44
|
+
if (options.readOnly) return "readonly";
|
|
45
|
+
if (options.invalid) return "invalid";
|
|
46
|
+
if (options.value <= options.min) return "min";
|
|
47
|
+
if (options.value >= options.max) return "max";
|
|
48
|
+
return "in-range";
|
|
49
|
+
}
|
|
50
|
+
/** Normalize raw Slider props into the public state contract. */
|
|
51
|
+
function getSliderState(options = {}) {
|
|
52
|
+
const min = finiteOr(options.min, 0);
|
|
53
|
+
const rawMax = finiteOr(options.max, 100);
|
|
54
|
+
const max = rawMax > min ? rawMax : min + 1;
|
|
55
|
+
const step = normalizeStep(options.step);
|
|
56
|
+
const value = snapValue(finiteOr(options.value, min), min, max, step);
|
|
57
|
+
const percent = (value - min) / (max - min) * 100;
|
|
58
|
+
const disabled = options.disabled === true;
|
|
59
|
+
const readOnly = options.readOnly === true;
|
|
60
|
+
const invalid = options.invalid === true;
|
|
61
|
+
const required = options.required === true;
|
|
62
|
+
const orientation = normalizeOrientation(options.orientation);
|
|
63
|
+
const direction = normalizeDirection(options.direction);
|
|
64
|
+
return Object.freeze({
|
|
65
|
+
value,
|
|
66
|
+
min,
|
|
67
|
+
max,
|
|
68
|
+
step,
|
|
69
|
+
percent,
|
|
70
|
+
orientation,
|
|
71
|
+
direction,
|
|
72
|
+
disabled,
|
|
73
|
+
readOnly,
|
|
74
|
+
required,
|
|
75
|
+
invalid,
|
|
76
|
+
state: sliderState({
|
|
77
|
+
disabled,
|
|
78
|
+
invalid,
|
|
79
|
+
max,
|
|
80
|
+
min,
|
|
81
|
+
readOnly,
|
|
82
|
+
value
|
|
83
|
+
})
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/families/form/slider/slider.vue?vue&type=script&setup=true&lang.ts
|
|
88
|
+
const _hoisted_1 = [
|
|
89
|
+
"data-state",
|
|
90
|
+
"data-orientation",
|
|
91
|
+
"data-dir",
|
|
92
|
+
"data-value",
|
|
93
|
+
"data-min",
|
|
94
|
+
"data-max",
|
|
95
|
+
"data-step",
|
|
96
|
+
"data-percent",
|
|
97
|
+
"data-disabled",
|
|
98
|
+
"data-readonly",
|
|
99
|
+
"data-required",
|
|
100
|
+
"data-invalid"
|
|
101
|
+
];
|
|
102
|
+
const _hoisted_2 = [
|
|
103
|
+
"id",
|
|
104
|
+
"name",
|
|
105
|
+
"value",
|
|
106
|
+
"min",
|
|
107
|
+
"max",
|
|
108
|
+
"step",
|
|
109
|
+
"disabled",
|
|
110
|
+
"required",
|
|
111
|
+
"dir",
|
|
112
|
+
"aria-label",
|
|
113
|
+
"aria-labelledby",
|
|
114
|
+
"aria-describedby",
|
|
115
|
+
"aria-errormessage",
|
|
116
|
+
"aria-invalid",
|
|
117
|
+
"aria-orientation",
|
|
118
|
+
"aria-readonly",
|
|
119
|
+
"aria-valuetext",
|
|
120
|
+
"orient",
|
|
121
|
+
"data-state",
|
|
122
|
+
"data-orientation",
|
|
123
|
+
"data-dir",
|
|
124
|
+
"data-value",
|
|
125
|
+
"data-min",
|
|
126
|
+
"data-max",
|
|
127
|
+
"data-step",
|
|
128
|
+
"data-percent"
|
|
129
|
+
];
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/families/form/slider/slider.vue
|
|
132
|
+
var slider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
133
|
+
__name: "slider",
|
|
134
|
+
props: {
|
|
135
|
+
id: {
|
|
136
|
+
type: [String, null],
|
|
137
|
+
required: false,
|
|
138
|
+
default: () => void 0
|
|
139
|
+
},
|
|
140
|
+
name: {
|
|
141
|
+
type: String,
|
|
142
|
+
required: false,
|
|
143
|
+
default: () => void 0
|
|
144
|
+
},
|
|
145
|
+
modelValue: {
|
|
146
|
+
type: Number,
|
|
147
|
+
required: false,
|
|
148
|
+
default: () => void 0
|
|
149
|
+
},
|
|
150
|
+
defaultValue: {
|
|
151
|
+
type: Number,
|
|
152
|
+
required: false,
|
|
153
|
+
default: () => void 0
|
|
154
|
+
},
|
|
155
|
+
min: {
|
|
156
|
+
type: Number,
|
|
157
|
+
required: false,
|
|
158
|
+
default: () => 0
|
|
159
|
+
},
|
|
160
|
+
max: {
|
|
161
|
+
type: Number,
|
|
162
|
+
required: false,
|
|
163
|
+
default: () => 100
|
|
164
|
+
},
|
|
165
|
+
step: {
|
|
166
|
+
type: [Number, String],
|
|
167
|
+
required: false,
|
|
168
|
+
default: () => 1
|
|
169
|
+
},
|
|
170
|
+
disabled: {
|
|
171
|
+
type: Boolean,
|
|
172
|
+
required: false,
|
|
173
|
+
default: false
|
|
174
|
+
},
|
|
175
|
+
readOnly: {
|
|
176
|
+
type: Boolean,
|
|
177
|
+
required: false,
|
|
178
|
+
default: false
|
|
179
|
+
},
|
|
180
|
+
required: {
|
|
181
|
+
type: Boolean,
|
|
182
|
+
required: false,
|
|
183
|
+
default: false
|
|
184
|
+
},
|
|
185
|
+
orientation: {
|
|
186
|
+
type: String,
|
|
187
|
+
required: false,
|
|
188
|
+
default: "horizontal"
|
|
189
|
+
},
|
|
190
|
+
dir: {
|
|
191
|
+
type: String,
|
|
192
|
+
required: false,
|
|
193
|
+
default: "ltr"
|
|
194
|
+
},
|
|
195
|
+
ariaLabel: {
|
|
196
|
+
type: String,
|
|
197
|
+
required: false,
|
|
198
|
+
default: () => void 0
|
|
199
|
+
},
|
|
200
|
+
ariaLabelledby: {
|
|
201
|
+
type: String,
|
|
202
|
+
required: false,
|
|
203
|
+
default: () => void 0
|
|
204
|
+
},
|
|
205
|
+
ariaDescribedby: {
|
|
206
|
+
type: String,
|
|
207
|
+
required: false,
|
|
208
|
+
default: () => void 0
|
|
209
|
+
},
|
|
210
|
+
ariaErrormessage: {
|
|
211
|
+
type: String,
|
|
212
|
+
required: false,
|
|
213
|
+
default: () => void 0
|
|
214
|
+
},
|
|
215
|
+
ariaValueText: {
|
|
216
|
+
type: String,
|
|
217
|
+
required: false,
|
|
218
|
+
default: () => void 0
|
|
219
|
+
},
|
|
220
|
+
ariaInvalid: {
|
|
221
|
+
type: [Boolean, String],
|
|
222
|
+
required: false,
|
|
223
|
+
default: false
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
emits: [
|
|
227
|
+
"update:modelValue",
|
|
228
|
+
"input",
|
|
229
|
+
"change"
|
|
230
|
+
],
|
|
231
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
232
|
+
const emit = __emit;
|
|
233
|
+
const root = useTemplateRef("root");
|
|
234
|
+
const element = useTemplateRef("element");
|
|
235
|
+
const controlId = useDeterministicId({
|
|
236
|
+
id: () => __props.id,
|
|
237
|
+
hint: "slider"
|
|
238
|
+
});
|
|
239
|
+
const ariaInvalidValue = computed(() => {
|
|
240
|
+
if (__props.ariaInvalid === false) return void 0;
|
|
241
|
+
return __props.ariaInvalid === true ? "true" : __props.ariaInvalid;
|
|
242
|
+
});
|
|
243
|
+
const state = useControllableState({
|
|
244
|
+
value: () => __props.modelValue,
|
|
245
|
+
defaultValue: () => __props.defaultValue ?? __props.min,
|
|
246
|
+
onChange: (value) => emit("update:modelValue", value)
|
|
247
|
+
});
|
|
248
|
+
const rawValue = state.value;
|
|
249
|
+
const slider = computed(() => getSliderState({
|
|
250
|
+
value: rawValue.value,
|
|
251
|
+
min: __props.min,
|
|
252
|
+
max: __props.max,
|
|
253
|
+
step: __props.step,
|
|
254
|
+
disabled: __props.disabled,
|
|
255
|
+
readOnly: __props.readOnly,
|
|
256
|
+
required: __props.required,
|
|
257
|
+
invalid: ariaInvalidValue.value !== void 0,
|
|
258
|
+
orientation: __props.orientation,
|
|
259
|
+
direction: __props.dir
|
|
260
|
+
}));
|
|
261
|
+
const currentValue = computed(() => slider.value.value);
|
|
262
|
+
const currentMin = computed(() => slider.value.min);
|
|
263
|
+
const currentMax = computed(() => slider.value.max);
|
|
264
|
+
const currentStep = computed(() => slider.value.step);
|
|
265
|
+
const percent = computed(() => slider.value.percent);
|
|
266
|
+
const orientationState = computed(() => slider.value.orientation);
|
|
267
|
+
const directionState = computed(() => slider.value.direction);
|
|
268
|
+
const disabledState = computed(() => slider.value.disabled);
|
|
269
|
+
const readOnlyState = computed(() => slider.value.readOnly);
|
|
270
|
+
const requiredState = computed(() => slider.value.required);
|
|
271
|
+
const invalidState = computed(() => slider.value.invalid);
|
|
272
|
+
const dataState = computed(() => slider.value.state);
|
|
273
|
+
const sliderStyle = computed(() => ({
|
|
274
|
+
"--vize-slider-value": String(currentValue.value),
|
|
275
|
+
"--vize-slider-min": String(currentMin.value),
|
|
276
|
+
"--vize-slider-max": String(currentMax.value),
|
|
277
|
+
"--vize-slider-step": String(currentStep.value),
|
|
278
|
+
"--vize-slider-percent": `${percent.value}%`
|
|
279
|
+
}));
|
|
280
|
+
const slotState = computed(() => ({
|
|
281
|
+
value: currentValue.value,
|
|
282
|
+
min: currentMin.value,
|
|
283
|
+
max: currentMax.value,
|
|
284
|
+
step: currentStep.value,
|
|
285
|
+
percent: percent.value,
|
|
286
|
+
orientation: orientationState.value,
|
|
287
|
+
direction: directionState.value,
|
|
288
|
+
disabled: disabledState.value,
|
|
289
|
+
readOnly: readOnlyState.value,
|
|
290
|
+
required: requiredState.value,
|
|
291
|
+
invalid: invalidState.value,
|
|
292
|
+
state: dataState.value
|
|
293
|
+
}));
|
|
294
|
+
const intrinsicProps = computed(() => ({ style: sliderStyle.value }));
|
|
295
|
+
const readonlyKeys = new Set([
|
|
296
|
+
"ArrowDown",
|
|
297
|
+
"ArrowLeft",
|
|
298
|
+
"ArrowRight",
|
|
299
|
+
"ArrowUp",
|
|
300
|
+
"End",
|
|
301
|
+
"Home",
|
|
302
|
+
"PageDown",
|
|
303
|
+
"PageUp"
|
|
304
|
+
]);
|
|
305
|
+
function normalizedValue(value) {
|
|
306
|
+
return getSliderState({
|
|
307
|
+
value,
|
|
308
|
+
min: __props.min,
|
|
309
|
+
max: __props.max,
|
|
310
|
+
step: __props.step
|
|
311
|
+
}).value;
|
|
312
|
+
}
|
|
313
|
+
function syncNativeValue() {
|
|
314
|
+
if (element.value === null) return;
|
|
315
|
+
const next = String(currentValue.value);
|
|
316
|
+
if (element.value.value !== next) element.value.value = next;
|
|
317
|
+
}
|
|
318
|
+
watchEffect(syncNativeValue);
|
|
319
|
+
watch(element, (input, _previous, onCleanup) => {
|
|
320
|
+
const form = input?.form;
|
|
321
|
+
if (form === void 0 || form === null) return;
|
|
322
|
+
const onReset = () => {
|
|
323
|
+
if (!state.controlled.value) state.reset();
|
|
324
|
+
nextTick(syncNativeValue);
|
|
325
|
+
};
|
|
326
|
+
form.addEventListener("reset", onReset);
|
|
327
|
+
onCleanup(() => form.removeEventListener("reset", onReset));
|
|
328
|
+
}, {
|
|
329
|
+
flush: "post",
|
|
330
|
+
immediate: true
|
|
331
|
+
});
|
|
332
|
+
function readSliderValue(event) {
|
|
333
|
+
if (!(event.currentTarget instanceof HTMLInputElement)) return void 0;
|
|
334
|
+
return normalizedValue(Number(event.currentTarget.value));
|
|
335
|
+
}
|
|
336
|
+
function onInput(event) {
|
|
337
|
+
const next = readSliderValue(event);
|
|
338
|
+
if (next === void 0) return;
|
|
339
|
+
if (readOnlyState.value) {
|
|
340
|
+
event.preventDefault();
|
|
341
|
+
nextTick(syncNativeValue);
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
state.set(next);
|
|
345
|
+
emit("input", next, event);
|
|
346
|
+
nextTick(syncNativeValue);
|
|
347
|
+
}
|
|
348
|
+
function onChange(event) {
|
|
349
|
+
const next = readSliderValue(event);
|
|
350
|
+
if (next === void 0) return;
|
|
351
|
+
if (readOnlyState.value) {
|
|
352
|
+
event.preventDefault();
|
|
353
|
+
nextTick(syncNativeValue);
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
state.set(next);
|
|
357
|
+
emit("change", next, event);
|
|
358
|
+
nextTick(syncNativeValue);
|
|
359
|
+
}
|
|
360
|
+
function onKeydown(event) {
|
|
361
|
+
if (!readOnlyState.value || !readonlyKeys.has(event.key)) return;
|
|
362
|
+
event.preventDefault();
|
|
363
|
+
nextTick(syncNativeValue);
|
|
364
|
+
}
|
|
365
|
+
function onPointerdown(event) {
|
|
366
|
+
if (!readOnlyState.value) return;
|
|
367
|
+
event.preventDefault();
|
|
368
|
+
nextTick(syncNativeValue);
|
|
369
|
+
}
|
|
370
|
+
function onClick(event) {
|
|
371
|
+
if (!readOnlyState.value) return;
|
|
372
|
+
event.preventDefault();
|
|
373
|
+
nextTick(syncNativeValue);
|
|
374
|
+
}
|
|
375
|
+
/** Move focus to the native range input. */
|
|
376
|
+
function focus(options) {
|
|
377
|
+
element.value?.focus(options);
|
|
378
|
+
}
|
|
379
|
+
function setValue(next) {
|
|
380
|
+
const changed = state.set(normalizedValue(next));
|
|
381
|
+
nextTick(syncNativeValue);
|
|
382
|
+
return changed;
|
|
383
|
+
}
|
|
384
|
+
function stepDelta(steps) {
|
|
385
|
+
const count = typeof steps === "number" && Number.isFinite(steps) ? steps : 1;
|
|
386
|
+
return (currentStep.value === "any" ? 1 : currentStep.value) * count;
|
|
387
|
+
}
|
|
388
|
+
function stepUp(steps) {
|
|
389
|
+
return setValue(currentValue.value + stepDelta(steps));
|
|
390
|
+
}
|
|
391
|
+
function stepDown(steps) {
|
|
392
|
+
return setValue(currentValue.value - stepDelta(steps));
|
|
393
|
+
}
|
|
394
|
+
__expose({
|
|
395
|
+
direction: directionState,
|
|
396
|
+
disabled: disabledState,
|
|
397
|
+
element,
|
|
398
|
+
focus,
|
|
399
|
+
invalid: invalidState,
|
|
400
|
+
max: currentMax,
|
|
401
|
+
min: currentMin,
|
|
402
|
+
orientation: orientationState,
|
|
403
|
+
percent,
|
|
404
|
+
readOnly: readOnlyState,
|
|
405
|
+
required: requiredState,
|
|
406
|
+
reset: state.reset,
|
|
407
|
+
root,
|
|
408
|
+
setValue,
|
|
409
|
+
state: dataState,
|
|
410
|
+
step: currentStep,
|
|
411
|
+
stepDown,
|
|
412
|
+
stepUp,
|
|
413
|
+
value: currentValue
|
|
414
|
+
});
|
|
415
|
+
return (_ctx, _cache) => {
|
|
416
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
417
|
+
ref_key: "root",
|
|
418
|
+
ref: root,
|
|
419
|
+
"data-vize-ui": "slider",
|
|
420
|
+
part: "root",
|
|
421
|
+
"data-state": dataState.value,
|
|
422
|
+
"data-orientation": orientationState.value,
|
|
423
|
+
"data-dir": directionState.value,
|
|
424
|
+
"data-value": currentValue.value,
|
|
425
|
+
"data-min": currentMin.value,
|
|
426
|
+
"data-max": currentMax.value,
|
|
427
|
+
"data-step": currentStep.value,
|
|
428
|
+
"data-percent": percent.value,
|
|
429
|
+
"data-disabled": disabledState.value ? "true" : void 0,
|
|
430
|
+
"data-readonly": readOnlyState.value ? "true" : void 0,
|
|
431
|
+
"data-required": requiredState.value ? "true" : void 0,
|
|
432
|
+
"data-invalid": invalidState.value ? "true" : void 0
|
|
433
|
+
}, intrinsicProps.value), [createElementVNode("input", {
|
|
434
|
+
id: unref(controlId),
|
|
435
|
+
ref_key: "element",
|
|
436
|
+
ref: element,
|
|
437
|
+
type: "range",
|
|
438
|
+
name: __props.name,
|
|
439
|
+
value: currentValue.value,
|
|
440
|
+
min: currentMin.value,
|
|
441
|
+
max: currentMax.value,
|
|
442
|
+
step: currentStep.value,
|
|
443
|
+
disabled: disabledState.value,
|
|
444
|
+
required: requiredState.value,
|
|
445
|
+
dir: directionState.value,
|
|
446
|
+
"aria-label": __props.ariaLabel,
|
|
447
|
+
"aria-labelledby": __props.ariaLabelledby,
|
|
448
|
+
"aria-describedby": __props.ariaDescribedby,
|
|
449
|
+
"aria-errormessage": ariaInvalidValue.value === void 0 ? void 0 : __props.ariaErrormessage,
|
|
450
|
+
"aria-invalid": ariaInvalidValue.value,
|
|
451
|
+
"aria-orientation": orientationState.value,
|
|
452
|
+
"aria-readonly": readOnlyState.value ? "true" : void 0,
|
|
453
|
+
"aria-valuetext": __props.ariaValueText,
|
|
454
|
+
orient: orientationState.value === "vertical" ? "vertical" : void 0,
|
|
455
|
+
"data-vize-ui": "slider-input",
|
|
456
|
+
part: "control",
|
|
457
|
+
"data-state": dataState.value,
|
|
458
|
+
"data-orientation": orientationState.value,
|
|
459
|
+
"data-dir": directionState.value,
|
|
460
|
+
"data-value": currentValue.value,
|
|
461
|
+
"data-min": currentMin.value,
|
|
462
|
+
"data-max": currentMax.value,
|
|
463
|
+
"data-step": currentStep.value,
|
|
464
|
+
"data-percent": percent.value,
|
|
465
|
+
onInput,
|
|
466
|
+
onChange,
|
|
467
|
+
onKeydown,
|
|
468
|
+
onPointerdown,
|
|
469
|
+
onClick
|
|
470
|
+
}, null, 40, _hoisted_2), renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 16, _hoisted_1);
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
}), [["__scopeId", "data-v-c9bbba4f"]]);
|
|
474
|
+
//#endregion
|
|
475
|
+
export { SLIDER_DEFAULT_STEP as i, SLIDER_DEFAULT_MAX as n, SLIDER_DEFAULT_MIN as r, slider_default as t };
|