@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,145 @@
|
|
|
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 { computed, createElementBlock, defineComponent, openBlock, renderSlot, unref, useTemplateRef } from "vue";
|
|
4
|
+
//#region src/families/feedback/progress/progress-state.ts
|
|
5
|
+
/** Native-friendly default maximum for determinate Progress. */
|
|
6
|
+
const PROGRESS_DEFAULT_MAX = 100;
|
|
7
|
+
function normalizeMax(max) {
|
|
8
|
+
if (typeof max !== "number" || !Number.isFinite(max) || max <= 0) return 100;
|
|
9
|
+
return max;
|
|
10
|
+
}
|
|
11
|
+
function normalizeValue(value, max) {
|
|
12
|
+
if (typeof value !== "number" || !Number.isFinite(value)) return null;
|
|
13
|
+
return Math.min(Math.max(value, 0), max);
|
|
14
|
+
}
|
|
15
|
+
/** Normalize raw Progress props into the public state contract. */
|
|
16
|
+
function getProgressState(options = {}) {
|
|
17
|
+
const max = normalizeMax(options.max);
|
|
18
|
+
const value = normalizeValue(options.value, max);
|
|
19
|
+
const indeterminate = value === null;
|
|
20
|
+
const percent = indeterminate ? null : value / max * 100;
|
|
21
|
+
const complete = value !== null && value >= max;
|
|
22
|
+
return Object.freeze({
|
|
23
|
+
value,
|
|
24
|
+
max,
|
|
25
|
+
percent,
|
|
26
|
+
indeterminate,
|
|
27
|
+
complete,
|
|
28
|
+
state: indeterminate ? "indeterminate" : complete ? "complete" : "loading"
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/families/feedback/progress/progress.vue?vue&type=script&setup=true&lang.ts
|
|
33
|
+
const _hoisted_1 = [
|
|
34
|
+
"id",
|
|
35
|
+
"value",
|
|
36
|
+
"max",
|
|
37
|
+
"aria-label",
|
|
38
|
+
"aria-labelledby",
|
|
39
|
+
"aria-describedby",
|
|
40
|
+
"aria-valuetext",
|
|
41
|
+
"data-state",
|
|
42
|
+
"data-indeterminate",
|
|
43
|
+
"data-complete",
|
|
44
|
+
"data-value",
|
|
45
|
+
"data-max",
|
|
46
|
+
"data-percent"
|
|
47
|
+
];
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/families/feedback/progress/progress.vue
|
|
50
|
+
var progress_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
51
|
+
__name: "progress",
|
|
52
|
+
props: {
|
|
53
|
+
id: {
|
|
54
|
+
type: [String, null],
|
|
55
|
+
required: false,
|
|
56
|
+
default: () => void 0
|
|
57
|
+
},
|
|
58
|
+
value: {
|
|
59
|
+
type: [Number, null],
|
|
60
|
+
required: false,
|
|
61
|
+
default: null
|
|
62
|
+
},
|
|
63
|
+
max: {
|
|
64
|
+
type: [Number, null],
|
|
65
|
+
required: false,
|
|
66
|
+
default: () => 100
|
|
67
|
+
},
|
|
68
|
+
ariaLabel: {
|
|
69
|
+
type: String,
|
|
70
|
+
required: false,
|
|
71
|
+
default: () => void 0
|
|
72
|
+
},
|
|
73
|
+
ariaLabelledby: {
|
|
74
|
+
type: String,
|
|
75
|
+
required: false,
|
|
76
|
+
default: () => void 0
|
|
77
|
+
},
|
|
78
|
+
ariaDescribedby: {
|
|
79
|
+
type: String,
|
|
80
|
+
required: false,
|
|
81
|
+
default: () => void 0
|
|
82
|
+
},
|
|
83
|
+
ariaValueText: {
|
|
84
|
+
type: String,
|
|
85
|
+
required: false,
|
|
86
|
+
default: () => void 0
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
setup(__props, { expose: __expose }) {
|
|
90
|
+
const element = useTemplateRef("element");
|
|
91
|
+
const controlId = useDeterministicId({
|
|
92
|
+
id: () => __props.id,
|
|
93
|
+
hint: "progress"
|
|
94
|
+
});
|
|
95
|
+
const progress = computed(() => getProgressState({
|
|
96
|
+
value: __props.value,
|
|
97
|
+
max: __props.max
|
|
98
|
+
}));
|
|
99
|
+
const currentValue = computed(() => progress.value.value);
|
|
100
|
+
const currentMax = computed(() => progress.value.max);
|
|
101
|
+
const percent = computed(() => progress.value.percent);
|
|
102
|
+
const indeterminate = computed(() => progress.value.indeterminate);
|
|
103
|
+
const complete = computed(() => progress.value.complete);
|
|
104
|
+
const state = computed(() => progress.value.state);
|
|
105
|
+
__expose({
|
|
106
|
+
element,
|
|
107
|
+
value: currentValue,
|
|
108
|
+
max: currentMax,
|
|
109
|
+
percent,
|
|
110
|
+
indeterminate,
|
|
111
|
+
complete,
|
|
112
|
+
state
|
|
113
|
+
});
|
|
114
|
+
return (_ctx, _cache) => {
|
|
115
|
+
return openBlock(), createElementBlock("progress", {
|
|
116
|
+
id: unref(controlId),
|
|
117
|
+
ref_key: "element",
|
|
118
|
+
ref: element,
|
|
119
|
+
value: currentValue.value ?? void 0,
|
|
120
|
+
max: currentMax.value,
|
|
121
|
+
"aria-label": __props.ariaLabel,
|
|
122
|
+
"aria-labelledby": __props.ariaLabelledby,
|
|
123
|
+
"aria-describedby": __props.ariaDescribedby,
|
|
124
|
+
"aria-valuetext": __props.ariaValueText,
|
|
125
|
+
"data-vize-ui": "progress",
|
|
126
|
+
part: "root",
|
|
127
|
+
"data-state": state.value,
|
|
128
|
+
"data-indeterminate": indeterminate.value ? "true" : "false",
|
|
129
|
+
"data-complete": complete.value ? "true" : "false",
|
|
130
|
+
"data-value": currentValue.value ?? void 0,
|
|
131
|
+
"data-max": currentMax.value,
|
|
132
|
+
"data-percent": percent.value ?? void 0
|
|
133
|
+
}, [renderSlot(_ctx.$slots, "default", {
|
|
134
|
+
value: currentValue.value,
|
|
135
|
+
max: currentMax.value,
|
|
136
|
+
percent: percent.value,
|
|
137
|
+
indeterminate: indeterminate.value,
|
|
138
|
+
complete: complete.value,
|
|
139
|
+
state: state.value
|
|
140
|
+
}, void 0, true)], 8, _hoisted_1);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
}), [["__scopeId", "data-v-ba8b2eb6"]]);
|
|
144
|
+
//#endregion
|
|
145
|
+
export { PROGRESS_DEFAULT_MAX as n, getProgressState as r, progress_default as t };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { ComputedRef } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/families/feedback/progress/progress-types.d.ts
|
|
4
|
+
/** Visual and accessibility state exposed by the Progress primitive. */
|
|
5
|
+
type ProgressState = "complete" | "indeterminate" | "loading";
|
|
6
|
+
/** Public props accepted by the legacy native Progress primitive. */
|
|
7
|
+
interface ProgressProps {
|
|
8
|
+
/**
|
|
9
|
+
* Consumer-owned progressbar id. `null` and `undefined` select a deterministic fallback.
|
|
10
|
+
*
|
|
11
|
+
* @default undefined
|
|
12
|
+
*/
|
|
13
|
+
readonly id?: string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Current determinate value. `null`, `undefined`, and non-finite numbers render indeterminate.
|
|
16
|
+
*
|
|
17
|
+
* @default null
|
|
18
|
+
*/
|
|
19
|
+
readonly value?: number | null;
|
|
20
|
+
/**
|
|
21
|
+
* Positive maximum value. Non-positive and non-finite numbers fall back to 100.
|
|
22
|
+
*
|
|
23
|
+
* @default 100
|
|
24
|
+
*/
|
|
25
|
+
readonly max?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
* Accessible name when no visible label or `aria-labelledby` supplies one.
|
|
28
|
+
*
|
|
29
|
+
* @default undefined
|
|
30
|
+
*/
|
|
31
|
+
readonly ariaLabel?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Space-separated ids that label the progressbar.
|
|
34
|
+
*
|
|
35
|
+
* @default undefined
|
|
36
|
+
*/
|
|
37
|
+
readonly ariaLabelledby?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Space-separated ids that describe the progressbar.
|
|
40
|
+
*
|
|
41
|
+
* @default undefined
|
|
42
|
+
*/
|
|
43
|
+
readonly ariaDescribedby?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Human-readable value text for assistive technology.
|
|
46
|
+
*
|
|
47
|
+
* @default undefined
|
|
48
|
+
*/
|
|
49
|
+
readonly ariaValueText?: string;
|
|
50
|
+
}
|
|
51
|
+
/** State exposed to the default Progress slot and component instance. */
|
|
52
|
+
interface ProgressSlotState {
|
|
53
|
+
/** Current normalized value, or `null` when the progressbar is indeterminate. */
|
|
54
|
+
readonly value: number | null;
|
|
55
|
+
/** Positive normalized maximum value used by the native progressbar. */
|
|
56
|
+
readonly max: number;
|
|
57
|
+
/** Current completion percentage from 0 to 100, or `null` when indeterminate. */
|
|
58
|
+
readonly percent: number | null;
|
|
59
|
+
/** Whether no determinate value is available. */
|
|
60
|
+
readonly indeterminate: boolean;
|
|
61
|
+
/** Whether the normalized value has reached the normalized maximum. */
|
|
62
|
+
readonly complete: boolean;
|
|
63
|
+
/** Stable state token for styling and tests. */
|
|
64
|
+
readonly state: ProgressState;
|
|
65
|
+
}
|
|
66
|
+
/** Slots accepted by the legacy native Progress primitive. */
|
|
67
|
+
interface ProgressSlots {
|
|
68
|
+
/** Optional fallback contents. Receives normalized Progress state for composition. */
|
|
69
|
+
readonly default?: (props: ProgressSlotState) => unknown;
|
|
70
|
+
}
|
|
71
|
+
/** Public component instance exposed by the Progress primitive. */
|
|
72
|
+
interface ProgressExpose extends ProgressSlotState {
|
|
73
|
+
/** Rendered native progress element. */
|
|
74
|
+
readonly element: HTMLProgressElement | null;
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/families/feedback/progress/progress-state.d.ts
|
|
78
|
+
/** Native-friendly default maximum for determinate Progress. */
|
|
79
|
+
declare const PROGRESS_DEFAULT_MAX = 100;
|
|
80
|
+
/** Raw values accepted by the Progress normalizer. */
|
|
81
|
+
interface ProgressStateOptions {
|
|
82
|
+
/**
|
|
83
|
+
* Raw determinate value. `null`, `undefined`, and non-finite numbers are indeterminate.
|
|
84
|
+
*
|
|
85
|
+
* @default null
|
|
86
|
+
*/
|
|
87
|
+
readonly value?: number | null;
|
|
88
|
+
/**
|
|
89
|
+
* Raw maximum. Non-positive and non-finite numbers fall back to `PROGRESS_DEFAULT_MAX`.
|
|
90
|
+
*
|
|
91
|
+
* @default PROGRESS_DEFAULT_MAX
|
|
92
|
+
*/
|
|
93
|
+
readonly max?: number | null;
|
|
94
|
+
}
|
|
95
|
+
/** Normalize raw Progress props into the public state contract. */
|
|
96
|
+
declare function getProgressState(options?: ProgressStateOptions): ProgressSlotState;
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/families/feedback/progress/progress.vue.d.ts
|
|
99
|
+
type __VLS_Props = {
|
|
100
|
+
/** Consumer-owned progressbar id. @default undefined */readonly id?: string | null; /** Current determinate value. `null`, `undefined`, and non-finite numbers render indeterminate. @default null */
|
|
101
|
+
readonly value?: number | null; /** Positive maximum value. Non-positive and non-finite numbers fall back to 100. @default 100 */
|
|
102
|
+
readonly max?: number | null; /** Accessible name when no visible label or `aria-labelledby` supplies one. @default undefined */
|
|
103
|
+
readonly ariaLabel?: string; /** Space-separated ids that label the progressbar. @default undefined */
|
|
104
|
+
readonly ariaLabelledby?: string; /** Space-separated ids that describe the progressbar. @default undefined */
|
|
105
|
+
readonly ariaDescribedby?: string; /** Human-readable value text for assistive technology. @default undefined */
|
|
106
|
+
readonly ariaValueText?: string;
|
|
107
|
+
};
|
|
108
|
+
type __VLS_Slots = {
|
|
109
|
+
/** Optional fallback contents. Receives normalized Progress state for composition. */default?(props: ProgressSlotState): unknown;
|
|
110
|
+
};
|
|
111
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
112
|
+
element: Readonly<import("vue").ShallowRef<HTMLProgressElement | null>>;
|
|
113
|
+
value: ComputedRef<number | null>;
|
|
114
|
+
max: ComputedRef<number>;
|
|
115
|
+
percent: ComputedRef<number | null>;
|
|
116
|
+
indeterminate: ComputedRef<boolean>;
|
|
117
|
+
complete: ComputedRef<boolean>;
|
|
118
|
+
state: ComputedRef<ProgressState>;
|
|
119
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
120
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
121
|
+
declare const _default: typeof __VLS_export;
|
|
122
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
123
|
+
new (): {
|
|
124
|
+
$slots: S;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
//#endregion
|
|
128
|
+
export { ProgressProps as a, ProgressState as c, ProgressExpose as i, PROGRESS_DEFAULT_MAX as n, ProgressSlotState as o, getProgressState as r, ProgressSlots as s, _default as t };
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import './style.css';
|
|
2
|
+
import { a as useDeterministicId, n as deriveDeterministicId } from "./deterministic-id-yMq4HfmS.mjs";
|
|
3
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, useTemplateRef, withCtx } from "vue";
|
|
5
|
+
//#region src/families/feedback/progress-bar/progress-bar-state.ts
|
|
6
|
+
/** Native-friendly default minimum for determinate ProgressBar. */
|
|
7
|
+
const PROGRESS_BAR_DEFAULT_MIN = 0;
|
|
8
|
+
/** Native-friendly default maximum for determinate ProgressBar. */
|
|
9
|
+
const PROGRESS_BAR_DEFAULT_MAX = 100;
|
|
10
|
+
function finite(value) {
|
|
11
|
+
return typeof value === "number" && Number.isFinite(value);
|
|
12
|
+
}
|
|
13
|
+
function clamp(value, min, max) {
|
|
14
|
+
return Math.min(Math.max(value, min), max);
|
|
15
|
+
}
|
|
16
|
+
function normalizeNumber(value) {
|
|
17
|
+
return Number.isInteger(value) ? String(value) : String(Number(value.toPrecision(12)));
|
|
18
|
+
}
|
|
19
|
+
function normalizeDirection(dir) {
|
|
20
|
+
return dir === "rtl" ? "rtl" : "ltr";
|
|
21
|
+
}
|
|
22
|
+
/** Normalize raw ProgressBar props into the public ARIA and CSS state contract. */
|
|
23
|
+
function getProgressBarState(options = {}) {
|
|
24
|
+
const min = finite(options.min) ? options.min : 0;
|
|
25
|
+
let invalid = options.min != null && !finite(options.min);
|
|
26
|
+
let max = 100;
|
|
27
|
+
if (finite(options.max) && options.max > min) max = options.max;
|
|
28
|
+
else {
|
|
29
|
+
invalid = invalid || options.max != null;
|
|
30
|
+
max = min + 100;
|
|
31
|
+
}
|
|
32
|
+
const value = finite(options.value) ? clamp(options.value, min, max) : null;
|
|
33
|
+
invalid = invalid || options.value != null && (!finite(options.value) || options.value !== value);
|
|
34
|
+
const indeterminate = value === null;
|
|
35
|
+
const ratio = indeterminate ? null : (value - min) / (max - min);
|
|
36
|
+
const percent = ratio === null ? null : ratio * 100;
|
|
37
|
+
const complete = value !== null && value >= max;
|
|
38
|
+
return Object.freeze({
|
|
39
|
+
value,
|
|
40
|
+
min,
|
|
41
|
+
max,
|
|
42
|
+
percent,
|
|
43
|
+
ratio,
|
|
44
|
+
dir: normalizeDirection(options.dir),
|
|
45
|
+
indeterminate,
|
|
46
|
+
complete,
|
|
47
|
+
invalid,
|
|
48
|
+
state: indeterminate ? "indeterminate" : complete ? "complete" : "loading"
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/** Convert normalized state into stable ProgressBar CSS custom properties. */
|
|
52
|
+
function getProgressBarStyle(state) {
|
|
53
|
+
const ratio = state.ratio ?? 0;
|
|
54
|
+
const percent = state.percent ?? 0;
|
|
55
|
+
return Object.freeze({
|
|
56
|
+
"--vize-ui-progress-bar-max": normalizeNumber(state.max),
|
|
57
|
+
"--vize-ui-progress-bar-min": normalizeNumber(state.min),
|
|
58
|
+
"--vize-ui-progress-bar-percent": `${normalizeNumber(percent)}%`,
|
|
59
|
+
"--vize-ui-progress-bar-ratio": normalizeNumber(ratio),
|
|
60
|
+
"--vize-ui-progress-bar-value": normalizeNumber(state.value ?? state.min)
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/families/feedback/progress-bar/progress-bar.vue?vue&type=script&setup=true&lang.ts
|
|
65
|
+
const _hoisted_1 = ["id"];
|
|
66
|
+
const _hoisted_2 = ["id"];
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/families/feedback/progress-bar/progress-bar.vue
|
|
69
|
+
var progress_bar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
70
|
+
__name: "progress-bar",
|
|
71
|
+
props: {
|
|
72
|
+
as: {
|
|
73
|
+
type: null,
|
|
74
|
+
required: false,
|
|
75
|
+
default: "div"
|
|
76
|
+
},
|
|
77
|
+
id: {
|
|
78
|
+
type: [String, null],
|
|
79
|
+
required: false,
|
|
80
|
+
default: () => void 0
|
|
81
|
+
},
|
|
82
|
+
value: {
|
|
83
|
+
type: [Number, null],
|
|
84
|
+
required: false,
|
|
85
|
+
default: null
|
|
86
|
+
},
|
|
87
|
+
min: {
|
|
88
|
+
type: [Number, null],
|
|
89
|
+
required: false,
|
|
90
|
+
default: () => 0
|
|
91
|
+
},
|
|
92
|
+
max: {
|
|
93
|
+
type: [Number, null],
|
|
94
|
+
required: false,
|
|
95
|
+
default: () => 100
|
|
96
|
+
},
|
|
97
|
+
dir: {
|
|
98
|
+
type: String,
|
|
99
|
+
required: false,
|
|
100
|
+
default: "ltr"
|
|
101
|
+
},
|
|
102
|
+
label: {
|
|
103
|
+
type: String,
|
|
104
|
+
required: false,
|
|
105
|
+
default: () => void 0
|
|
106
|
+
},
|
|
107
|
+
valueLabel: {
|
|
108
|
+
type: String,
|
|
109
|
+
required: false,
|
|
110
|
+
default: () => void 0
|
|
111
|
+
},
|
|
112
|
+
ariaLabel: {
|
|
113
|
+
type: String,
|
|
114
|
+
required: false,
|
|
115
|
+
default: () => void 0
|
|
116
|
+
},
|
|
117
|
+
ariaLabelledby: {
|
|
118
|
+
type: String,
|
|
119
|
+
required: false,
|
|
120
|
+
default: () => void 0
|
|
121
|
+
},
|
|
122
|
+
ariaDescribedby: {
|
|
123
|
+
type: String,
|
|
124
|
+
required: false,
|
|
125
|
+
default: () => void 0
|
|
126
|
+
},
|
|
127
|
+
ariaValueText: {
|
|
128
|
+
type: String,
|
|
129
|
+
required: false,
|
|
130
|
+
default: () => void 0
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
setup(__props, { expose: __expose }) {
|
|
134
|
+
const slots = useSlots();
|
|
135
|
+
const root = useTemplateRef("root");
|
|
136
|
+
const track = useTemplateRef("track");
|
|
137
|
+
const indicator = useTemplateRef("indicator");
|
|
138
|
+
const controlId = useDeterministicId({
|
|
139
|
+
id: () => __props.id,
|
|
140
|
+
hint: "progress"
|
|
141
|
+
});
|
|
142
|
+
const labelId = computed(() => deriveDeterministicId(controlId.value, "label"));
|
|
143
|
+
const valueId = computed(() => deriveDeterministicId(controlId.value, "value"));
|
|
144
|
+
const progress = computed(() => getProgressBarState({
|
|
145
|
+
value: __props.value,
|
|
146
|
+
min: __props.min,
|
|
147
|
+
max: __props.max,
|
|
148
|
+
dir: __props.dir
|
|
149
|
+
}));
|
|
150
|
+
const currentValue = computed(() => progress.value.value);
|
|
151
|
+
const currentMin = computed(() => progress.value.min);
|
|
152
|
+
const currentMax = computed(() => progress.value.max);
|
|
153
|
+
const percent = computed(() => progress.value.percent);
|
|
154
|
+
const ratio = computed(() => progress.value.ratio);
|
|
155
|
+
const direction = computed(() => progress.value.dir);
|
|
156
|
+
const indeterminate = computed(() => progress.value.indeterminate);
|
|
157
|
+
const complete = computed(() => progress.value.complete);
|
|
158
|
+
const invalid = computed(() => progress.value.invalid);
|
|
159
|
+
const state = computed(() => progress.value.state);
|
|
160
|
+
const progressStyle = computed(() => getProgressBarStyle(progress.value));
|
|
161
|
+
const rootIntrinsicProps = computed(() => ({ style: progressStyle.value }));
|
|
162
|
+
const hasLabel = computed(() => hasText(__props.label) || slots.label !== void 0);
|
|
163
|
+
const hasValue = computed(() => hasText(__props.valueLabel) || slots.value !== void 0);
|
|
164
|
+
const labelledby = computed(() => {
|
|
165
|
+
if (hasText(__props.ariaLabelledby)) return __props.ariaLabelledby;
|
|
166
|
+
return hasLabel.value ? labelId.value : void 0;
|
|
167
|
+
});
|
|
168
|
+
const accessibleLabel = computed(() => labelledby.value === void 0 ? __props.ariaLabel : void 0);
|
|
169
|
+
const labelled = computed(() => hasText(accessibleLabel.value) || labelledby.value !== void 0);
|
|
170
|
+
const valueText = computed(() => normalizeText(__props.ariaValueText) ?? normalizeText(__props.valueLabel));
|
|
171
|
+
const slotState = computed(() => ({
|
|
172
|
+
complete: complete.value,
|
|
173
|
+
dir: direction.value,
|
|
174
|
+
id: controlId.value,
|
|
175
|
+
indeterminate: indeterminate.value,
|
|
176
|
+
invalid: invalid.value,
|
|
177
|
+
labelId: labelId.value,
|
|
178
|
+
max: currentMax.value,
|
|
179
|
+
min: currentMin.value,
|
|
180
|
+
percent: percent.value,
|
|
181
|
+
ratio: ratio.value,
|
|
182
|
+
state: state.value,
|
|
183
|
+
style: progressStyle.value,
|
|
184
|
+
value: currentValue.value,
|
|
185
|
+
valueId: valueId.value
|
|
186
|
+
}));
|
|
187
|
+
function hasText(text) {
|
|
188
|
+
return normalizeText(text) !== void 0;
|
|
189
|
+
}
|
|
190
|
+
function normalizeText(text) {
|
|
191
|
+
if (text === void 0) return void 0;
|
|
192
|
+
const normalized = text.replaceAll(/\s+/g, " ").trim();
|
|
193
|
+
return normalized.length === 0 ? void 0 : normalized;
|
|
194
|
+
}
|
|
195
|
+
function focus(options) {
|
|
196
|
+
focusTarget(root.value, options);
|
|
197
|
+
}
|
|
198
|
+
function focusTarget(target, options) {
|
|
199
|
+
if (typeof target === "object" && target !== null && "focus" in target && typeof target.focus === "function") target.focus(options);
|
|
200
|
+
}
|
|
201
|
+
__expose({
|
|
202
|
+
root,
|
|
203
|
+
track,
|
|
204
|
+
indicator,
|
|
205
|
+
value: currentValue,
|
|
206
|
+
min: currentMin,
|
|
207
|
+
max: currentMax,
|
|
208
|
+
percent,
|
|
209
|
+
ratio,
|
|
210
|
+
dir: direction,
|
|
211
|
+
indeterminate,
|
|
212
|
+
complete,
|
|
213
|
+
invalid,
|
|
214
|
+
state,
|
|
215
|
+
id: controlId,
|
|
216
|
+
labelId,
|
|
217
|
+
valueId,
|
|
218
|
+
style: progressStyle,
|
|
219
|
+
focus
|
|
220
|
+
});
|
|
221
|
+
return (_ctx, _cache) => {
|
|
222
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({
|
|
223
|
+
id: unref(controlId),
|
|
224
|
+
ref_key: "root",
|
|
225
|
+
ref: root
|
|
226
|
+
}, rootIntrinsicProps.value, {
|
|
227
|
+
role: "progressbar",
|
|
228
|
+
dir: direction.value,
|
|
229
|
+
"aria-label": accessibleLabel.value,
|
|
230
|
+
"aria-labelledby": labelledby.value,
|
|
231
|
+
"aria-describedby": __props.ariaDescribedby,
|
|
232
|
+
"aria-valuemin": currentMin.value,
|
|
233
|
+
"aria-valuemax": currentMax.value,
|
|
234
|
+
"aria-valuenow": currentValue.value ?? void 0,
|
|
235
|
+
"aria-valuetext": valueText.value,
|
|
236
|
+
"data-vize-ui": "progress-bar",
|
|
237
|
+
part: "root",
|
|
238
|
+
"data-dir": direction.value,
|
|
239
|
+
"data-state": state.value,
|
|
240
|
+
"data-labelled": labelled.value ? "true" : "false",
|
|
241
|
+
"data-indeterminate": indeterminate.value ? "true" : "false",
|
|
242
|
+
"data-complete": complete.value ? "true" : "false",
|
|
243
|
+
"data-invalid": invalid.value ? "true" : void 0,
|
|
244
|
+
"data-value": currentValue.value ?? void 0,
|
|
245
|
+
"data-min": currentMin.value,
|
|
246
|
+
"data-max": currentMax.value,
|
|
247
|
+
"data-percent": percent.value ?? void 0
|
|
248
|
+
}), {
|
|
249
|
+
default: withCtx(() => [
|
|
250
|
+
hasLabel.value ? (openBlock(), createElementBlock("span", {
|
|
251
|
+
key: 0,
|
|
252
|
+
id: labelId.value,
|
|
253
|
+
"data-vize-ui": "progress-bar-label",
|
|
254
|
+
part: "label"
|
|
255
|
+
}, [renderSlot(_ctx.$slots, "label", normalizeProps(guardReactiveProps(slotState.value)), () => [createTextVNode(toDisplayString(__props.label), 1)], true)], 8, _hoisted_1)) : createCommentVNode("v-if", true),
|
|
256
|
+
createElementVNode("span", {
|
|
257
|
+
ref_key: "track",
|
|
258
|
+
ref: track,
|
|
259
|
+
"data-vize-ui": "progress-bar-track",
|
|
260
|
+
part: "track"
|
|
261
|
+
}, [createElementVNode("span", {
|
|
262
|
+
ref_key: "indicator",
|
|
263
|
+
ref: indicator,
|
|
264
|
+
"data-vize-ui": "progress-bar-indicator",
|
|
265
|
+
part: "indicator"
|
|
266
|
+
}, [renderSlot(_ctx.$slots, "indicator", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 512)], 512),
|
|
267
|
+
hasValue.value ? (openBlock(), createElementBlock("span", {
|
|
268
|
+
key: 1,
|
|
269
|
+
id: valueId.value,
|
|
270
|
+
"data-vize-ui": "progress-bar-value",
|
|
271
|
+
part: "value"
|
|
272
|
+
}, [renderSlot(_ctx.$slots, "value", normalizeProps(guardReactiveProps(slotState.value)), () => [createTextVNode(toDisplayString(__props.valueLabel), 1)], true)], 8, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
273
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)
|
|
274
|
+
]),
|
|
275
|
+
_: 3
|
|
276
|
+
}, 16, [
|
|
277
|
+
"id",
|
|
278
|
+
"dir",
|
|
279
|
+
"aria-label",
|
|
280
|
+
"aria-labelledby",
|
|
281
|
+
"aria-describedby",
|
|
282
|
+
"aria-valuemin",
|
|
283
|
+
"aria-valuemax",
|
|
284
|
+
"aria-valuenow",
|
|
285
|
+
"aria-valuetext",
|
|
286
|
+
"data-dir",
|
|
287
|
+
"data-state",
|
|
288
|
+
"data-labelled",
|
|
289
|
+
"data-indeterminate",
|
|
290
|
+
"data-complete",
|
|
291
|
+
"data-invalid",
|
|
292
|
+
"data-value",
|
|
293
|
+
"data-min",
|
|
294
|
+
"data-max",
|
|
295
|
+
"data-percent"
|
|
296
|
+
]);
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}), [["__scopeId", "data-v-5d4c22f1"]]);
|
|
300
|
+
//#endregion
|
|
301
|
+
export { getProgressBarStyle as a, getProgressBarState as i, PROGRESS_BAR_DEFAULT_MAX as n, PROGRESS_BAR_DEFAULT_MIN as r, progress_bar_default as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A as ProgressBarDirection, D as PROGRESS_BAR_DEFAULT_MIN, E as PROGRESS_BAR_DEFAULT_MAX, F as ProgressBarState, I as ProgressBarStyle, M as ProgressBarProps, N as ProgressBarSlotState, O as getProgressBarState, P as ProgressBarSlots, T as _default, j as ProgressBarExpose, k as getProgressBarStyle } from "./announcer-DGr2Iz0i.mjs";
|
|
2
|
+
export { PROGRESS_BAR_DEFAULT_MAX, PROGRESS_BAR_DEFAULT_MIN, _default as ProgressBar, type ProgressBarDirection, type ProgressBarExpose, type ProgressBarProps, type ProgressBarSlotState, type ProgressBarSlots, type ProgressBarState, type ProgressBarStyle, getProgressBarState, getProgressBarStyle };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as getProgressBarStyle, i as getProgressBarState, n as PROGRESS_BAR_DEFAULT_MAX, r as PROGRESS_BAR_DEFAULT_MIN, t as progress_bar_default } from "./progress-bar-BqS94auR.mjs";
|
|
2
|
+
export { PROGRESS_BAR_DEFAULT_MAX, PROGRESS_BAR_DEFAULT_MIN, progress_bar_default as ProgressBar, getProgressBarState, getProgressBarStyle };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as ProgressProps, c as ProgressState, i as ProgressExpose, n as PROGRESS_DEFAULT_MAX, o as ProgressSlotState, r as getProgressState, s as ProgressSlots, t as _default } from "./progress-C4PlKwWq.mjs";
|
|
2
|
+
export { PROGRESS_DEFAULT_MAX, _default as Progress, type ProgressExpose, type ProgressProps, type ProgressSlotState, type ProgressSlots, type ProgressState, getProgressState };
|