@vizejs/ui 0.387.0 → 0.389.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-CuBryPW9.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,569 @@
|
|
|
1
|
+
import { a as useDeterministicId, n as deriveDeterministicId } 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 { Fragment, computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, nextTick, openBlock, renderList, renderSlot, toDisplayString, unref, useTemplateRef, watch, watchEffect } from "vue";
|
|
5
|
+
function integerOr(value, fallback) {
|
|
6
|
+
return typeof value === "number" && Number.isFinite(value) ? Math.trunc(value) : fallback;
|
|
7
|
+
}
|
|
8
|
+
function positiveIntegerOr(value, fallback) {
|
|
9
|
+
const integer = integerOr(value, fallback);
|
|
10
|
+
return integer > 0 ? integer : fallback;
|
|
11
|
+
}
|
|
12
|
+
function clamp(value, min, max) {
|
|
13
|
+
return Math.min(Math.max(value, min), max);
|
|
14
|
+
}
|
|
15
|
+
function normalizeDirection(direction) {
|
|
16
|
+
return direction === "rtl" ? "rtl" : "ltr";
|
|
17
|
+
}
|
|
18
|
+
function ratingState(options) {
|
|
19
|
+
if (options.disabled) return "disabled";
|
|
20
|
+
if (options.readOnly) return "readonly";
|
|
21
|
+
if (options.invalid) return "invalid";
|
|
22
|
+
return options.value === null ? "empty" : "selected";
|
|
23
|
+
}
|
|
24
|
+
/** Normalize raw Rating min/max/count props into a finite generated range. */
|
|
25
|
+
function getRatingBounds(options = {}) {
|
|
26
|
+
const min = integerOr(options.min, 1);
|
|
27
|
+
const count = positiveIntegerOr(options.count, 5);
|
|
28
|
+
const rawMax = typeof options.max === "number" && Number.isFinite(options.max) ? Math.trunc(options.max) : min + count - 1;
|
|
29
|
+
const max = rawMax >= min ? rawMax : min;
|
|
30
|
+
const normalizedCount = max - min + 1;
|
|
31
|
+
const items = Array.from({ length: normalizedCount }, (_item, index) => min + index);
|
|
32
|
+
return Object.freeze({
|
|
33
|
+
min,
|
|
34
|
+
max,
|
|
35
|
+
count: normalizedCount,
|
|
36
|
+
items
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/** Normalize a raw Rating value into the generated range, or `null` for empty. */
|
|
40
|
+
function normalizeRatingValue(value, options = {}) {
|
|
41
|
+
if (value === null || value === void 0) return null;
|
|
42
|
+
if (!Number.isFinite(value)) return null;
|
|
43
|
+
const { min, max } = getRatingBounds(options);
|
|
44
|
+
return clamp(Math.round(value), min, max);
|
|
45
|
+
}
|
|
46
|
+
/** Normalize raw Rating props into the public state contract. */
|
|
47
|
+
function getRatingState(options = {}) {
|
|
48
|
+
const bounds = getRatingBounds(options);
|
|
49
|
+
const value = normalizeRatingValue(options.value, bounds);
|
|
50
|
+
const percent = value === null ? 0 : (value - bounds.min + 1) / bounds.count * 100;
|
|
51
|
+
const disabled = options.disabled === true;
|
|
52
|
+
const readOnly = options.readOnly === true;
|
|
53
|
+
const required = options.required === true;
|
|
54
|
+
const invalid = options.invalid === true;
|
|
55
|
+
const clearable = options.clearable === true;
|
|
56
|
+
const direction = normalizeDirection(options.direction);
|
|
57
|
+
return Object.freeze({
|
|
58
|
+
value,
|
|
59
|
+
min: bounds.min,
|
|
60
|
+
max: bounds.max,
|
|
61
|
+
count: bounds.count,
|
|
62
|
+
items: bounds.items,
|
|
63
|
+
percent,
|
|
64
|
+
direction,
|
|
65
|
+
disabled,
|
|
66
|
+
readOnly,
|
|
67
|
+
required,
|
|
68
|
+
invalid,
|
|
69
|
+
clearable,
|
|
70
|
+
state: ratingState({
|
|
71
|
+
disabled,
|
|
72
|
+
invalid,
|
|
73
|
+
readOnly,
|
|
74
|
+
value
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/families/form/rating/rating-runtime.ts
|
|
80
|
+
function useRating(props, emit, root) {
|
|
81
|
+
const controlId = useDeterministicId({
|
|
82
|
+
id: () => props.id,
|
|
83
|
+
hint: "rating"
|
|
84
|
+
});
|
|
85
|
+
const ariaInvalidValue = computed(() => {
|
|
86
|
+
if (props.ariaInvalid !== true && props.ariaInvalid !== "grammar") return props.ariaInvalid === "spelling" ? "spelling" : void 0;
|
|
87
|
+
return props.ariaInvalid === true ? "true" : props.ariaInvalid;
|
|
88
|
+
});
|
|
89
|
+
const bounds = () => ({
|
|
90
|
+
count: props.count ?? 5,
|
|
91
|
+
max: props.max,
|
|
92
|
+
min: props.min ?? 1
|
|
93
|
+
});
|
|
94
|
+
const valueState = useControllableState({
|
|
95
|
+
value: () => props.modelValue === void 0 ? void 0 : normalizeRatingValue(props.modelValue, bounds()),
|
|
96
|
+
defaultValue: () => normalizeRatingValue(props.defaultValue, bounds()),
|
|
97
|
+
onChange: (value) => emit("update:modelValue", value)
|
|
98
|
+
});
|
|
99
|
+
const rating = computed(() => getRatingState({
|
|
100
|
+
...bounds(),
|
|
101
|
+
value: valueState.value.value,
|
|
102
|
+
clearable: props.clearable === true,
|
|
103
|
+
disabled: props.disabled === true,
|
|
104
|
+
readOnly: props.readOnly === true,
|
|
105
|
+
required: props.required === true,
|
|
106
|
+
direction: props.dir,
|
|
107
|
+
invalid: ariaInvalidValue.value !== void 0
|
|
108
|
+
}));
|
|
109
|
+
const currentValue = computed(() => rating.value.value);
|
|
110
|
+
const minValue = computed(() => rating.value.min);
|
|
111
|
+
const maxValue = computed(() => rating.value.max);
|
|
112
|
+
const itemCount = computed(() => rating.value.count);
|
|
113
|
+
const items = computed(() => rating.value.items);
|
|
114
|
+
const percent = computed(() => rating.value.percent);
|
|
115
|
+
const directionState = computed(() => rating.value.direction);
|
|
116
|
+
const disabledState = computed(() => rating.value.disabled);
|
|
117
|
+
const readOnlyState = computed(() => rating.value.readOnly);
|
|
118
|
+
const requiredState = computed(() => rating.value.required);
|
|
119
|
+
const invalidState = computed(() => rating.value.invalid);
|
|
120
|
+
const clearableState = computed(() => rating.value.clearable);
|
|
121
|
+
const dataState = computed(() => rating.value.state);
|
|
122
|
+
const elements = computed(() => {
|
|
123
|
+
items.value;
|
|
124
|
+
return root.value === null ? [] : [...root.value.querySelectorAll("[data-vize-ui=\"rating-control\"]")];
|
|
125
|
+
});
|
|
126
|
+
const ratingStyle = computed(() => ({
|
|
127
|
+
"--vize-rating-value": currentValue.value === null ? "" : String(currentValue.value),
|
|
128
|
+
"--vize-rating-min": String(minValue.value),
|
|
129
|
+
"--vize-rating-max": String(maxValue.value),
|
|
130
|
+
"--vize-rating-count": String(itemCount.value),
|
|
131
|
+
"--vize-rating-percent": `${percent.value}%`
|
|
132
|
+
}));
|
|
133
|
+
const itemStates = computed(() => items.value.map((itemValue, index) => {
|
|
134
|
+
const checked = currentValue.value === itemValue;
|
|
135
|
+
const active = currentValue.value !== null && itemValue <= currentValue.value;
|
|
136
|
+
const state = disabledState.value ? "disabled" : readOnlyState.value ? "readonly" : checked ? "checked" : "unchecked";
|
|
137
|
+
return {
|
|
138
|
+
value: itemValue,
|
|
139
|
+
index,
|
|
140
|
+
currentValue: currentValue.value,
|
|
141
|
+
checked,
|
|
142
|
+
active,
|
|
143
|
+
percent: (index + 1) / itemCount.value * 100,
|
|
144
|
+
min: minValue.value,
|
|
145
|
+
max: maxValue.value,
|
|
146
|
+
count: itemCount.value,
|
|
147
|
+
direction: directionState.value,
|
|
148
|
+
disabled: disabledState.value,
|
|
149
|
+
readOnly: readOnlyState.value,
|
|
150
|
+
required: requiredState.value,
|
|
151
|
+
invalid: invalidState.value,
|
|
152
|
+
clearable: clearableState.value,
|
|
153
|
+
state
|
|
154
|
+
};
|
|
155
|
+
}));
|
|
156
|
+
let suppressedChangeValue = null;
|
|
157
|
+
function syncNativeState() {
|
|
158
|
+
for (const input of elements.value) input.checked = currentValue.value === Number(input.value);
|
|
159
|
+
}
|
|
160
|
+
watchEffect(syncNativeState);
|
|
161
|
+
watch(root, (element, _previous, onCleanup) => {
|
|
162
|
+
const form = element?.closest("form");
|
|
163
|
+
if (form === void 0 || form === null) return;
|
|
164
|
+
const onReset = () => {
|
|
165
|
+
if (!valueState.controlled.value) valueState.reset();
|
|
166
|
+
nextTick(syncNativeState);
|
|
167
|
+
};
|
|
168
|
+
form.addEventListener("reset", onReset);
|
|
169
|
+
onCleanup(() => form.removeEventListener("reset", onReset));
|
|
170
|
+
}, {
|
|
171
|
+
flush: "post",
|
|
172
|
+
immediate: true
|
|
173
|
+
});
|
|
174
|
+
function itemId(value) {
|
|
175
|
+
return deriveDeterministicId(controlId.value, `item-${value}`);
|
|
176
|
+
}
|
|
177
|
+
function itemAriaLabel(value) {
|
|
178
|
+
const prefix = (props.itemLabel ?? "Rating").trim();
|
|
179
|
+
const suffix = `${value} of ${maxValue.value}`;
|
|
180
|
+
return prefix.length === 0 ? suffix : `${prefix} ${suffix}`;
|
|
181
|
+
}
|
|
182
|
+
function commitUserValue(next, nativeEvent) {
|
|
183
|
+
const previous = currentValue.value;
|
|
184
|
+
if (!valueState.set(next)) return false;
|
|
185
|
+
if (next === null && previous !== null) emit("clear", previous, nativeEvent);
|
|
186
|
+
emit("change", next, previous, nativeEvent);
|
|
187
|
+
return true;
|
|
188
|
+
}
|
|
189
|
+
function setValue(next) {
|
|
190
|
+
const changed = valueState.set(normalizeRatingValue(next, bounds()));
|
|
191
|
+
nextTick(syncNativeState);
|
|
192
|
+
return changed;
|
|
193
|
+
}
|
|
194
|
+
function clear() {
|
|
195
|
+
return setValue(null);
|
|
196
|
+
}
|
|
197
|
+
function focusValue(value, options) {
|
|
198
|
+
(value === null ? elements.value.find((input) => !input.disabled) ?? null : elements.value.find((input) => Number(input.value) === value && !input.disabled) ?? null)?.focus(options);
|
|
199
|
+
}
|
|
200
|
+
function valueAtOffset(from, offset) {
|
|
201
|
+
const index = items.value.indexOf(from);
|
|
202
|
+
const nextIndex = ((index === -1 ? 0 : index) + offset + itemCount.value) % itemCount.value;
|
|
203
|
+
return items.value[nextIndex] ?? minValue.value;
|
|
204
|
+
}
|
|
205
|
+
function keyboardValue(key, itemValue) {
|
|
206
|
+
if (key === "Home") return minValue.value;
|
|
207
|
+
if (key === "End") return maxValue.value;
|
|
208
|
+
if (clearableState.value && (key === "Backspace" || key === "Delete" || key === "Escape")) return null;
|
|
209
|
+
if (key === " " || key === "Enter") return clearableState.value && currentValue.value === itemValue ? null : itemValue;
|
|
210
|
+
const base = currentValue.value ?? itemValue;
|
|
211
|
+
if (key === "ArrowDown") return valueAtOffset(base, 1);
|
|
212
|
+
if (key === "ArrowUp") return valueAtOffset(base, -1);
|
|
213
|
+
if (key === "ArrowRight") return valueAtOffset(base, directionState.value === "rtl" ? -1 : 1);
|
|
214
|
+
if (key === "ArrowLeft") return valueAtOffset(base, directionState.value === "rtl" ? 1 : -1);
|
|
215
|
+
}
|
|
216
|
+
function onItemClick(event, itemValue) {
|
|
217
|
+
if (readOnlyState.value) {
|
|
218
|
+
event.preventDefault();
|
|
219
|
+
nextTick(syncNativeState);
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
if (!clearableState.value || currentValue.value !== itemValue) return;
|
|
223
|
+
event.preventDefault();
|
|
224
|
+
suppressedChangeValue = itemValue;
|
|
225
|
+
commitUserValue(null, event);
|
|
226
|
+
nextTick(() => {
|
|
227
|
+
suppressedChangeValue = null;
|
|
228
|
+
syncNativeState();
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
function onItemChange(event, itemValue) {
|
|
232
|
+
if (suppressedChangeValue === itemValue) {
|
|
233
|
+
event.preventDefault();
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
if (readOnlyState.value) {
|
|
237
|
+
event.preventDefault();
|
|
238
|
+
nextTick(syncNativeState);
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
if (!(event.currentTarget instanceof HTMLInputElement) || !event.currentTarget.checked) return;
|
|
242
|
+
commitUserValue(itemValue, event);
|
|
243
|
+
nextTick(syncNativeState);
|
|
244
|
+
}
|
|
245
|
+
function onItemKeydown(event, itemValue) {
|
|
246
|
+
const next = keyboardValue(event.key, itemValue);
|
|
247
|
+
if (next === void 0) return;
|
|
248
|
+
event.preventDefault();
|
|
249
|
+
if (readOnlyState.value) {
|
|
250
|
+
nextTick(syncNativeState);
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
if (commitUserValue(next, event) && next !== null) nextTick(() => focusValue(next));
|
|
254
|
+
else nextTick(syncNativeState);
|
|
255
|
+
}
|
|
256
|
+
return {
|
|
257
|
+
ariaInvalidValue,
|
|
258
|
+
clearableState,
|
|
259
|
+
controlId,
|
|
260
|
+
currentValue,
|
|
261
|
+
dataState,
|
|
262
|
+
directionState,
|
|
263
|
+
disabledState,
|
|
264
|
+
exposed: {
|
|
265
|
+
clear,
|
|
266
|
+
clearable: clearableState,
|
|
267
|
+
count: itemCount,
|
|
268
|
+
direction: directionState,
|
|
269
|
+
disabled: disabledState,
|
|
270
|
+
elements,
|
|
271
|
+
focus: (options) => focusValue(currentValue.value, options),
|
|
272
|
+
invalid: invalidState,
|
|
273
|
+
items,
|
|
274
|
+
max: maxValue,
|
|
275
|
+
min: minValue,
|
|
276
|
+
percent,
|
|
277
|
+
readOnly: readOnlyState,
|
|
278
|
+
required: requiredState,
|
|
279
|
+
reset: valueState.reset,
|
|
280
|
+
root,
|
|
281
|
+
setValue,
|
|
282
|
+
state: dataState,
|
|
283
|
+
value: currentValue
|
|
284
|
+
},
|
|
285
|
+
invalidState,
|
|
286
|
+
itemAriaLabel,
|
|
287
|
+
itemCount,
|
|
288
|
+
itemId,
|
|
289
|
+
itemStates,
|
|
290
|
+
items,
|
|
291
|
+
maxValue,
|
|
292
|
+
minValue,
|
|
293
|
+
onItemChange,
|
|
294
|
+
onItemClick,
|
|
295
|
+
onItemKeydown,
|
|
296
|
+
percent,
|
|
297
|
+
readOnlyState,
|
|
298
|
+
requiredState,
|
|
299
|
+
intrinsicProps: computed(() => ({ style: ratingStyle.value }))
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region src/families/form/rating/rating.vue?vue&type=script&setup=true&lang.ts
|
|
304
|
+
const _hoisted_1 = [
|
|
305
|
+
"id",
|
|
306
|
+
"dir",
|
|
307
|
+
"aria-label",
|
|
308
|
+
"aria-labelledby",
|
|
309
|
+
"aria-describedby",
|
|
310
|
+
"aria-errormessage",
|
|
311
|
+
"aria-invalid",
|
|
312
|
+
"aria-disabled",
|
|
313
|
+
"aria-readonly",
|
|
314
|
+
"aria-required",
|
|
315
|
+
"data-state",
|
|
316
|
+
"data-value",
|
|
317
|
+
"data-min",
|
|
318
|
+
"data-max",
|
|
319
|
+
"data-count",
|
|
320
|
+
"data-percent",
|
|
321
|
+
"data-dir",
|
|
322
|
+
"data-disabled",
|
|
323
|
+
"data-readonly",
|
|
324
|
+
"data-required",
|
|
325
|
+
"data-invalid",
|
|
326
|
+
"data-clearable"
|
|
327
|
+
];
|
|
328
|
+
const _hoisted_2 = [
|
|
329
|
+
"data-state",
|
|
330
|
+
"data-value",
|
|
331
|
+
"data-index",
|
|
332
|
+
"data-active",
|
|
333
|
+
"data-checked",
|
|
334
|
+
"data-disabled",
|
|
335
|
+
"data-readonly",
|
|
336
|
+
"data-required",
|
|
337
|
+
"data-invalid",
|
|
338
|
+
"data-dir"
|
|
339
|
+
];
|
|
340
|
+
const _hoisted_3 = [
|
|
341
|
+
"id",
|
|
342
|
+
"name",
|
|
343
|
+
"value",
|
|
344
|
+
"checked",
|
|
345
|
+
"disabled",
|
|
346
|
+
"required",
|
|
347
|
+
"tabindex",
|
|
348
|
+
"aria-label",
|
|
349
|
+
"aria-invalid",
|
|
350
|
+
"aria-readonly",
|
|
351
|
+
"data-state",
|
|
352
|
+
"data-value",
|
|
353
|
+
"data-index",
|
|
354
|
+
"data-active",
|
|
355
|
+
"data-checked",
|
|
356
|
+
"data-disabled",
|
|
357
|
+
"data-readonly",
|
|
358
|
+
"data-required",
|
|
359
|
+
"data-invalid",
|
|
360
|
+
"data-dir",
|
|
361
|
+
"onClick",
|
|
362
|
+
"onChange",
|
|
363
|
+
"onKeydown"
|
|
364
|
+
];
|
|
365
|
+
const _hoisted_4 = [
|
|
366
|
+
"data-state",
|
|
367
|
+
"data-value",
|
|
368
|
+
"data-index",
|
|
369
|
+
"data-active",
|
|
370
|
+
"data-checked",
|
|
371
|
+
"data-disabled",
|
|
372
|
+
"data-readonly",
|
|
373
|
+
"data-invalid",
|
|
374
|
+
"data-dir"
|
|
375
|
+
];
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region src/families/form/rating/rating.vue
|
|
378
|
+
var rating_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
379
|
+
__name: "rating",
|
|
380
|
+
props: {
|
|
381
|
+
id: {
|
|
382
|
+
type: [String, null],
|
|
383
|
+
required: false
|
|
384
|
+
},
|
|
385
|
+
name: {
|
|
386
|
+
type: String,
|
|
387
|
+
required: false
|
|
388
|
+
},
|
|
389
|
+
modelValue: {
|
|
390
|
+
type: [Number, null],
|
|
391
|
+
required: false
|
|
392
|
+
},
|
|
393
|
+
defaultValue: {
|
|
394
|
+
type: [Number, null],
|
|
395
|
+
required: false
|
|
396
|
+
},
|
|
397
|
+
min: {
|
|
398
|
+
type: Number,
|
|
399
|
+
required: false
|
|
400
|
+
},
|
|
401
|
+
max: {
|
|
402
|
+
type: Number,
|
|
403
|
+
required: false
|
|
404
|
+
},
|
|
405
|
+
count: {
|
|
406
|
+
type: Number,
|
|
407
|
+
required: false
|
|
408
|
+
},
|
|
409
|
+
clearable: {
|
|
410
|
+
type: Boolean,
|
|
411
|
+
required: false
|
|
412
|
+
},
|
|
413
|
+
disabled: {
|
|
414
|
+
type: Boolean,
|
|
415
|
+
required: false
|
|
416
|
+
},
|
|
417
|
+
readOnly: {
|
|
418
|
+
type: Boolean,
|
|
419
|
+
required: false
|
|
420
|
+
},
|
|
421
|
+
required: {
|
|
422
|
+
type: Boolean,
|
|
423
|
+
required: false
|
|
424
|
+
},
|
|
425
|
+
dir: {
|
|
426
|
+
type: String,
|
|
427
|
+
required: false
|
|
428
|
+
},
|
|
429
|
+
itemLabel: {
|
|
430
|
+
type: String,
|
|
431
|
+
required: false
|
|
432
|
+
},
|
|
433
|
+
ariaLabel: {
|
|
434
|
+
type: String,
|
|
435
|
+
required: false
|
|
436
|
+
},
|
|
437
|
+
ariaLabelledby: {
|
|
438
|
+
type: String,
|
|
439
|
+
required: false
|
|
440
|
+
},
|
|
441
|
+
ariaDescribedby: {
|
|
442
|
+
type: String,
|
|
443
|
+
required: false
|
|
444
|
+
},
|
|
445
|
+
ariaErrormessage: {
|
|
446
|
+
type: String,
|
|
447
|
+
required: false
|
|
448
|
+
},
|
|
449
|
+
ariaInvalid: {
|
|
450
|
+
type: [Boolean, String],
|
|
451
|
+
required: false
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
emits: [
|
|
455
|
+
"update:modelValue",
|
|
456
|
+
"change",
|
|
457
|
+
"clear"
|
|
458
|
+
],
|
|
459
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
460
|
+
const props = __props;
|
|
461
|
+
const emit = __emit;
|
|
462
|
+
const root = useTemplateRef("root");
|
|
463
|
+
const { ariaInvalidValue, clearableState, controlId, currentValue, dataState, directionState, disabledState, exposed, invalidState, itemAriaLabel, itemCount, itemId, itemStates, items, maxValue, minValue, onItemChange, onItemClick, onItemKeydown, percent, readOnlyState, requiredState, intrinsicProps } = useRating(props, emit, root);
|
|
464
|
+
__expose(exposed);
|
|
465
|
+
return (_ctx, _cache) => {
|
|
466
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
467
|
+
id: unref(controlId),
|
|
468
|
+
ref_key: "root",
|
|
469
|
+
ref: root,
|
|
470
|
+
role: "radiogroup",
|
|
471
|
+
dir: unref(directionState),
|
|
472
|
+
"aria-label": props.ariaLabel,
|
|
473
|
+
"aria-labelledby": props.ariaLabelledby,
|
|
474
|
+
"aria-describedby": props.ariaDescribedby,
|
|
475
|
+
"aria-errormessage": unref(ariaInvalidValue) === void 0 ? void 0 : props.ariaErrormessage,
|
|
476
|
+
"aria-invalid": unref(ariaInvalidValue),
|
|
477
|
+
"aria-disabled": unref(disabledState) ? "true" : void 0,
|
|
478
|
+
"aria-readonly": unref(readOnlyState) ? "true" : void 0,
|
|
479
|
+
"aria-required": unref(requiredState) ? "true" : void 0,
|
|
480
|
+
"data-vize-ui": "rating",
|
|
481
|
+
part: "root",
|
|
482
|
+
"data-state": unref(dataState),
|
|
483
|
+
"data-value": unref(currentValue) ?? void 0,
|
|
484
|
+
"data-min": unref(minValue),
|
|
485
|
+
"data-max": unref(maxValue),
|
|
486
|
+
"data-count": unref(itemCount),
|
|
487
|
+
"data-percent": unref(percent),
|
|
488
|
+
"data-dir": unref(directionState),
|
|
489
|
+
"data-disabled": unref(disabledState) ? "true" : void 0,
|
|
490
|
+
"data-readonly": unref(readOnlyState) ? "true" : void 0,
|
|
491
|
+
"data-required": unref(requiredState) ? "true" : void 0,
|
|
492
|
+
"data-invalid": unref(invalidState) ? "true" : void 0,
|
|
493
|
+
"data-clearable": unref(clearableState) ? "true" : void 0
|
|
494
|
+
}, unref(intrinsicProps)), [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(itemStates), (item) => {
|
|
495
|
+
return openBlock(), createElementBlock("label", {
|
|
496
|
+
key: item.value,
|
|
497
|
+
"data-vize-ui": "rating-item",
|
|
498
|
+
part: "item",
|
|
499
|
+
"data-state": item.state,
|
|
500
|
+
"data-value": item.value,
|
|
501
|
+
"data-index": item.index,
|
|
502
|
+
"data-active": item.active ? "true" : "false",
|
|
503
|
+
"data-checked": item.checked ? "true" : "false",
|
|
504
|
+
"data-disabled": item.disabled ? "true" : void 0,
|
|
505
|
+
"data-readonly": item.readOnly ? "true" : void 0,
|
|
506
|
+
"data-required": item.required ? "true" : void 0,
|
|
507
|
+
"data-invalid": item.invalid ? "true" : void 0,
|
|
508
|
+
"data-dir": item.direction
|
|
509
|
+
}, [createElementVNode("input", {
|
|
510
|
+
id: unref(itemId)(item.value),
|
|
511
|
+
type: "radio",
|
|
512
|
+
name: props.name,
|
|
513
|
+
value: String(item.value),
|
|
514
|
+
checked: item.checked,
|
|
515
|
+
disabled: item.disabled,
|
|
516
|
+
required: item.required,
|
|
517
|
+
tabindex: item.checked || unref(currentValue) === null && item.index === 0 ? 0 : -1,
|
|
518
|
+
"aria-label": unref(itemAriaLabel)(item.value),
|
|
519
|
+
"aria-invalid": unref(ariaInvalidValue),
|
|
520
|
+
"aria-readonly": item.readOnly ? "true" : void 0,
|
|
521
|
+
"data-vize-ui": "rating-control",
|
|
522
|
+
part: "control",
|
|
523
|
+
"data-state": item.state,
|
|
524
|
+
"data-value": item.value,
|
|
525
|
+
"data-index": item.index,
|
|
526
|
+
"data-active": item.active ? "true" : "false",
|
|
527
|
+
"data-checked": item.checked ? "true" : "false",
|
|
528
|
+
"data-disabled": item.disabled ? "true" : void 0,
|
|
529
|
+
"data-readonly": item.readOnly ? "true" : void 0,
|
|
530
|
+
"data-required": item.required ? "true" : void 0,
|
|
531
|
+
"data-invalid": item.invalid ? "true" : void 0,
|
|
532
|
+
"data-dir": item.direction,
|
|
533
|
+
onClick: (event) => unref(onItemClick)(event, item.value),
|
|
534
|
+
onChange: (event) => unref(onItemChange)(event, item.value),
|
|
535
|
+
onKeydown: (event) => unref(onItemKeydown)(event, item.value)
|
|
536
|
+
}, null, 40, _hoisted_3), createElementVNode("span", {
|
|
537
|
+
"aria-hidden": "true",
|
|
538
|
+
"data-vize-ui": "rating-indicator",
|
|
539
|
+
part: "indicator",
|
|
540
|
+
"data-state": item.state,
|
|
541
|
+
"data-value": item.value,
|
|
542
|
+
"data-index": item.index,
|
|
543
|
+
"data-active": item.active ? "true" : "false",
|
|
544
|
+
"data-checked": item.checked ? "true" : "false",
|
|
545
|
+
"data-disabled": item.disabled ? "true" : void 0,
|
|
546
|
+
"data-readonly": item.readOnly ? "true" : void 0,
|
|
547
|
+
"data-invalid": item.invalid ? "true" : void 0,
|
|
548
|
+
"data-dir": item.direction
|
|
549
|
+
}, [renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: true }, item), () => [createTextVNode(toDisplayString(item.value), 1)], true)], 8, _hoisted_4)], 8, _hoisted_2);
|
|
550
|
+
}), 128)), renderSlot(_ctx.$slots, "default", {
|
|
551
|
+
value: unref(currentValue),
|
|
552
|
+
min: unref(minValue),
|
|
553
|
+
max: unref(maxValue),
|
|
554
|
+
count: unref(itemCount),
|
|
555
|
+
items: unref(items),
|
|
556
|
+
percent: unref(percent),
|
|
557
|
+
direction: unref(directionState),
|
|
558
|
+
disabled: unref(disabledState),
|
|
559
|
+
readOnly: unref(readOnlyState),
|
|
560
|
+
required: unref(requiredState),
|
|
561
|
+
invalid: unref(invalidState),
|
|
562
|
+
clearable: unref(clearableState),
|
|
563
|
+
state: unref(dataState)
|
|
564
|
+
}, void 0, true)], 16, _hoisted_1);
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
}), [["__scopeId", "data-v-ee83d516"]]);
|
|
568
|
+
//#endregion
|
|
569
|
+
export { rating_default as t };
|