@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,2 @@
|
|
|
1
|
+
import { C as PositionerElement, D as Rect, E as PositionerStyle, O as SafeAreaInsets, S as PositionerController, T as PositionerStrategy, _ as ComputePositionResult, a as visualViewportRect, b as PlacementSide, c as sizeStyle, d as computePosition, f as parsePlacement, g as ComputePositionInput, h as AvailableSizeInput, i as readSafeAreaInsets, k as VirtualElement, l as createPositioner, m as AvailableSize, n as _default, o as zeroSafeAreaInsets, p as readRect, r as insetViewport, s as computeAvailableSize, t as _default$1, u as usePositioner, v as Placement, w as PositionerOptions, x as PositionerArrowStyle, y as PlacementAlign } from "./positioner-BYJVA3Uy.mjs";
|
|
2
|
+
export { type AvailableSize, type AvailableSizeInput, type ComputePositionInput, type ComputePositionResult, type Placement, type PlacementAlign, type PlacementSide, _default as Positioner, _default$1 as PositionerArrow, type PositionerArrowStyle, type PositionerController, type PositionerElement, type PositionerOptions, type PositionerStrategy, type PositionerStyle, type Rect, type SafeAreaInsets, type VirtualElement, computeAvailableSize, computePosition, createPositioner, insetViewport, parsePlacement, readRect, readSafeAreaInsets, sizeStyle, usePositioner, visualViewportRect, zeroSafeAreaInsets };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as readSafeAreaInsets, c as computeAvailableSize, d as parsePlacement, f as readRect, i as insetViewport, l as sizeStyle, n as createPositioner, o as visualViewportRect, r as usePositioner, s as zeroSafeAreaInsets, t as positioner_default, u as computePosition } from "./positioner-DaPo2YxM.mjs";
|
|
2
|
+
import { t as positioner_arrow_default } from "./positioner-BYmQk86M.mjs";
|
|
3
|
+
export { positioner_default as Positioner, positioner_arrow_default as PositionerArrow, computeAvailableSize, computePosition, createPositioner, insetViewport, parsePlacement, readRect, readSafeAreaInsets, sizeStyle, usePositioner, visualViewportRect, zeroSafeAreaInsets };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { i as PresenceStatus, n as PresenceOptions, t as PresenceController } from "./presence-types-CRB4HbML.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/families/overlays/presence/presence-runtime.d.ts
|
|
4
|
+
/** Create an SSR-safe enter/exit presence controller. */
|
|
5
|
+
declare function createPresence(options?: PresenceOptions): PresenceController;
|
|
6
|
+
/** Create a presence controller disposed with the current Vue effect scope. */
|
|
7
|
+
declare function usePresence(options?: PresenceOptions): PresenceController;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/families/overlays/presence/presence.vue.d.ts
|
|
10
|
+
type __VLS_Props = {
|
|
11
|
+
/**
|
|
12
|
+
* Whether the content should occupy the tree.
|
|
13
|
+
*
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
readonly present?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Keep the slot mounted even while presence would otherwise unmount it.
|
|
19
|
+
*
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
readonly forceMount?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Skip enter and exit animation when `prefers-reduced-motion: reduce` matches.
|
|
25
|
+
*
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
readonly respectReducedMotion?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Named enter/exit recipe published on `data-vize-motion`, pairing the host
|
|
31
|
+
* with the packaged motion stylesheet (`@vizejs/ui/motion`).
|
|
32
|
+
*
|
|
33
|
+
* @default undefined
|
|
34
|
+
*/
|
|
35
|
+
readonly motion?: "fade" | "scale" | "slide";
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Slots = {
|
|
38
|
+
/** Present contents. Receives presence status for styling hooks. */default(props: {
|
|
39
|
+
readonly present: boolean;
|
|
40
|
+
readonly status: PresenceStatus;
|
|
41
|
+
}): unknown;
|
|
42
|
+
};
|
|
43
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
44
|
+
element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
45
|
+
isPresent: Readonly<import("vue").ShallowRef<boolean>>;
|
|
46
|
+
status: Readonly<import("vue").ShallowRef<PresenceStatus>>;
|
|
47
|
+
completeAnimation: () => void;
|
|
48
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
|
+
declare const _default: typeof __VLS_export;
|
|
51
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
export { createPresence as n, usePresence as r, _default as t };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
+
import { n as usePresence } from "./presence-runtime-CYwCafSh.mjs";
|
|
3
|
+
import { computed, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, renderSlot, toRef, unref, useTemplateRef } from "vue";
|
|
4
|
+
//#region src/families/overlays/presence/presence.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
const _hoisted_1 = { "data-vize-ui": "presence-host" };
|
|
6
|
+
const _hoisted_2 = ["data-vize-motion", "data-vize-presence"];
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/families/overlays/presence/presence.vue
|
|
9
|
+
var presence_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "presence",
|
|
11
|
+
props: {
|
|
12
|
+
present: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
required: false,
|
|
15
|
+
default: false
|
|
16
|
+
},
|
|
17
|
+
forceMount: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
required: false,
|
|
20
|
+
default: false
|
|
21
|
+
},
|
|
22
|
+
respectReducedMotion: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
required: false,
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
27
|
+
motion: {
|
|
28
|
+
type: String,
|
|
29
|
+
required: false,
|
|
30
|
+
default: () => void 0
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
setup(__props, { expose: __expose }) {
|
|
34
|
+
const presence = usePresence({
|
|
35
|
+
present: toRef(() => __props.present),
|
|
36
|
+
respectReducedMotion: toRef(() => __props.respectReducedMotion)
|
|
37
|
+
});
|
|
38
|
+
const show = computed(() => presence.isPresent.value || __props.forceMount);
|
|
39
|
+
const element = useTemplateRef("element");
|
|
40
|
+
__expose({
|
|
41
|
+
element,
|
|
42
|
+
isPresent: presence.isPresent,
|
|
43
|
+
status: presence.status,
|
|
44
|
+
completeAnimation: presence.completeAnimation
|
|
45
|
+
});
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [show.value ? (openBlock(), createElementBlock("div", mergeProps({
|
|
48
|
+
key: 0,
|
|
49
|
+
ref_key: "element",
|
|
50
|
+
ref: element,
|
|
51
|
+
"data-vize-ui": "presence",
|
|
52
|
+
"data-vize-motion": __props.motion,
|
|
53
|
+
"data-vize-presence": unref(presence).status.value
|
|
54
|
+
}, unref(presence).presenceProps), [renderSlot(_ctx.$slots, "default", {
|
|
55
|
+
present: unref(presence).isPresent.value,
|
|
56
|
+
status: unref(presence).status.value
|
|
57
|
+
}, void 0, true)], 16, _hoisted_2)) : createCommentVNode("v-if", true)]);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}), [["__scopeId", "data-v-a38462f0"]]);
|
|
61
|
+
//#endregion
|
|
62
|
+
export { presence_default as t };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { getCurrentScope, onScopeDispose, shallowReadonly, shallowRef, toValue, watch } from "vue";
|
|
2
|
+
//#region src/families/overlays/presence/presence-runtime.ts
|
|
3
|
+
const invalidOptionDiagnostic = "VIZE_UI_PRESENCE_OPTION";
|
|
4
|
+
const disposedDiagnostic = "VIZE_UI_PRESENCE_DISPOSED";
|
|
5
|
+
const setupDiagnostic = "VIZE_UI_PRESENCE_SETUP";
|
|
6
|
+
function readBoolean(value, fallback) {
|
|
7
|
+
const resolved = toValue(value);
|
|
8
|
+
if (resolved === void 0) return fallback;
|
|
9
|
+
if (typeof resolved !== "boolean") throw new TypeError(`${invalidOptionDiagnostic}: respectReducedMotion must resolve to a boolean`);
|
|
10
|
+
return resolved;
|
|
11
|
+
}
|
|
12
|
+
function readPresent(value) {
|
|
13
|
+
const resolved = toValue(value);
|
|
14
|
+
if (resolved === void 0) return false;
|
|
15
|
+
if (typeof resolved !== "boolean") throw new TypeError(`${invalidOptionDiagnostic}: present must resolve to a boolean`);
|
|
16
|
+
return resolved;
|
|
17
|
+
}
|
|
18
|
+
function prefersReducedMotion() {
|
|
19
|
+
if (typeof globalThis.matchMedia !== "function") return false;
|
|
20
|
+
return globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
21
|
+
}
|
|
22
|
+
function validateOptions(options) {
|
|
23
|
+
for (const name of ["onEnterComplete", "onExitComplete"]) {
|
|
24
|
+
const callback = options[name];
|
|
25
|
+
if (callback !== void 0 && typeof callback !== "function") throw new TypeError(`${invalidOptionDiagnostic}: ${name} must be a function`);
|
|
26
|
+
}
|
|
27
|
+
if (typeof options.present !== "function") readPresent(options.present);
|
|
28
|
+
if (typeof options.respectReducedMotion !== "function") readBoolean(options.respectReducedMotion, true);
|
|
29
|
+
}
|
|
30
|
+
function notify(callback) {
|
|
31
|
+
callback?.();
|
|
32
|
+
}
|
|
33
|
+
/** Create an SSR-safe enter/exit presence controller. */
|
|
34
|
+
function createPresence(options = {}) {
|
|
35
|
+
validateOptions(options);
|
|
36
|
+
const initiallyPresent = readPresent(options.present);
|
|
37
|
+
const status = shallowRef(initiallyPresent ? "present" : "unmounted");
|
|
38
|
+
const isPresent = shallowRef(initiallyPresent);
|
|
39
|
+
let disposed = false;
|
|
40
|
+
const skipMotion = () => readBoolean(options.respectReducedMotion, true) && prefersReducedMotion();
|
|
41
|
+
const finishEnter = () => {
|
|
42
|
+
status.value = "present";
|
|
43
|
+
notify(options.onEnterComplete);
|
|
44
|
+
};
|
|
45
|
+
const finishExit = () => {
|
|
46
|
+
isPresent.value = false;
|
|
47
|
+
status.value = "unmounted";
|
|
48
|
+
notify(options.onExitComplete);
|
|
49
|
+
};
|
|
50
|
+
const enter = () => {
|
|
51
|
+
if (status.value === "present" || status.value === "entering") return;
|
|
52
|
+
isPresent.value = true;
|
|
53
|
+
if (skipMotion()) {
|
|
54
|
+
finishEnter();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
status.value = "entering";
|
|
58
|
+
};
|
|
59
|
+
const exit = () => {
|
|
60
|
+
if (status.value === "unmounted") return;
|
|
61
|
+
if (skipMotion() || status.value === "entering") {
|
|
62
|
+
finishExit();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
status.value = "exiting";
|
|
66
|
+
};
|
|
67
|
+
const apply = () => {
|
|
68
|
+
if (readPresent(options.present)) enter();
|
|
69
|
+
else exit();
|
|
70
|
+
};
|
|
71
|
+
const completeAnimation = () => {
|
|
72
|
+
if (disposed) throw new Error(`${disposedDiagnostic}: the controller has been disposed`);
|
|
73
|
+
if (status.value === "entering") finishEnter();
|
|
74
|
+
else if (status.value === "exiting") finishExit();
|
|
75
|
+
};
|
|
76
|
+
const onComplete = (event) => {
|
|
77
|
+
if (event.target !== event.currentTarget) return;
|
|
78
|
+
completeAnimation();
|
|
79
|
+
};
|
|
80
|
+
const stopWatch = watch(() => [toValue(options.present), toValue(options.respectReducedMotion)], apply, { flush: "sync" });
|
|
81
|
+
const presenceProps = Object.freeze({
|
|
82
|
+
onAnimationend: onComplete,
|
|
83
|
+
onTransitionend: onComplete
|
|
84
|
+
});
|
|
85
|
+
return Object.freeze({
|
|
86
|
+
isPresent: shallowReadonly(isPresent),
|
|
87
|
+
status: shallowReadonly(status),
|
|
88
|
+
presenceProps,
|
|
89
|
+
completeAnimation,
|
|
90
|
+
dispose: () => {
|
|
91
|
+
if (disposed) return;
|
|
92
|
+
disposed = true;
|
|
93
|
+
stopWatch();
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/** Create a presence controller disposed with the current Vue effect scope. */
|
|
98
|
+
function usePresence(options = {}) {
|
|
99
|
+
if (!getCurrentScope()) throw new Error(`${setupDiagnostic}: use inside component setup or an active effect scope`);
|
|
100
|
+
const controller = createPresence(options);
|
|
101
|
+
onScopeDispose(controller.dispose);
|
|
102
|
+
return controller;
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { usePresence as n, createPresence as t };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { MaybeRefOrGetter, ShallowRef } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/families/overlays/presence/presence-types.d.ts
|
|
4
|
+
/** Lifecycle phase published by a presence controller. */
|
|
5
|
+
type PresenceStatus = "entering" | "exiting" | "present" | "unmounted";
|
|
6
|
+
/** Options shared by {@link createPresence} and {@link usePresence}. */
|
|
7
|
+
interface PresenceOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Whether the content should occupy the tree.
|
|
10
|
+
* Reactive values are resolved for every presence transition.
|
|
11
|
+
*
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
readonly present?: MaybeRefOrGetter<boolean | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* Skip enter and exit animation when `prefers-reduced-motion: reduce` matches.
|
|
17
|
+
*
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
readonly respectReducedMotion?: MaybeRefOrGetter<boolean | undefined>;
|
|
21
|
+
/** Called after enter animation completes or is skipped. */
|
|
22
|
+
readonly onEnterComplete?: () => void;
|
|
23
|
+
/** Called after exit animation completes or is skipped. */
|
|
24
|
+
readonly onExitComplete?: () => void;
|
|
25
|
+
}
|
|
26
|
+
/** Native handlers to spread onto the present host. */
|
|
27
|
+
interface PresenceProps {
|
|
28
|
+
readonly onAnimationend: (event: AnimationEvent) => void;
|
|
29
|
+
readonly onTransitionend: (event: TransitionEvent) => void;
|
|
30
|
+
}
|
|
31
|
+
/** Stateful presence normalizer with explicit animation completion. */
|
|
32
|
+
interface PresenceController {
|
|
33
|
+
/** Whether the slot should remain mounted, including while exiting. */
|
|
34
|
+
readonly isPresent: Readonly<ShallowRef<boolean>>;
|
|
35
|
+
/** Current enter/exit phase. */
|
|
36
|
+
readonly status: Readonly<ShallowRef<PresenceStatus>>;
|
|
37
|
+
/** Stable animation completion handlers to merge onto one host. */
|
|
38
|
+
readonly presenceProps: Readonly<PresenceProps>;
|
|
39
|
+
/** Advance from entering to present, or from exiting to unmounted. */
|
|
40
|
+
readonly completeAnimation: () => void;
|
|
41
|
+
/** Release watchers and freeze the controller. */
|
|
42
|
+
readonly dispose: () => void;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { PresenceStatus as i, PresenceOptions as n, PresenceProps as r, PresenceController as t };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { i as PresenceStatus, n as PresenceOptions, r as PresenceProps, t as PresenceController } from "./presence-types-CRB4HbML.mjs";
|
|
2
|
+
import { n as createPresence, r as usePresence, t as _default } from "./presence-Bhv1qtvn.mjs";
|
|
3
|
+
export { _default as Presence, type PresenceController, type PresenceOptions, type PresenceProps, type PresenceStatus, createPresence, usePresence };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as isPrimaryPointer, c as readBooleanOption, i as isEventInside, l as readKeyboardBehavior, n as disableTextSelection, o as keyboardActivation, r as eventElement, s as pointerTypeOf, t as createPressEvent, u as validatePressOptions } from "./press-event-
|
|
1
|
+
import { a as isPrimaryPointer, c as readBooleanOption, i as isEventInside, l as readKeyboardBehavior, n as disableTextSelection, o as keyboardActivation, r as eventElement, s as pointerTypeOf, t as createPressEvent, u as validatePressOptions } from "./press-event-xlWYF9py.mjs";
|
|
2
2
|
import { getCurrentScope, onScopeDispose, shallowReadonly, shallowRef } from "vue";
|
|
3
|
-
//#region src/press-handlers.ts
|
|
3
|
+
//#region src/families/interaction/press/press-handlers.ts
|
|
4
4
|
/** Adapt Pointer Events plus legacy mouse/touch and keyboard events to one lifecycle. */
|
|
5
5
|
function createPressHandlers(lifecycle) {
|
|
6
6
|
let lastTouchTime = Number.NEGATIVE_INFINITY;
|
|
@@ -156,7 +156,7 @@ function touchMatches(event, active) {
|
|
|
156
156
|
return Array.from(event.changedTouches).some((touch) => touch.identifier === active.id);
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
|
-
//#region src/press-activation-memory.ts
|
|
159
|
+
//#region src/families/interaction/press/press-activation-memory.ts
|
|
160
160
|
/** Own short-lived tokens that associate release, cancellation, and click. */
|
|
161
161
|
var PressActivationMemory = class {
|
|
162
162
|
#pending = null;
|
|
@@ -211,7 +211,7 @@ var PressActivationMemory = class {
|
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
//#endregion
|
|
214
|
-
//#region src/press-notify.ts
|
|
214
|
+
//#region src/families/interaction/press/press-notify.ts
|
|
215
215
|
/** Execute every notification before surfacing one or more consumer errors. */
|
|
216
216
|
function notifyAll(notifications) {
|
|
217
217
|
const errors = [];
|
|
@@ -239,7 +239,7 @@ function surfaceErrors(errors) {
|
|
|
239
239
|
}));
|
|
240
240
|
}
|
|
241
241
|
//#endregion
|
|
242
|
-
//#region src/press-lifecycle.ts
|
|
242
|
+
//#region src/families/interaction/press/press-lifecycle.ts
|
|
243
243
|
const disposedDiagnostic = "VIZE_UI_PRESS_DISPOSED";
|
|
244
244
|
/** Internal press state machine shared by all native-event adapters. */
|
|
245
245
|
var PressLifecycle = class {
|
|
@@ -443,7 +443,7 @@ var PressLifecycle = class {
|
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
445
|
//#endregion
|
|
446
|
-
//#region src/press.ts
|
|
446
|
+
//#region src/families/interaction/press/press.ts
|
|
447
447
|
const setupDiagnostic = "VIZE_UI_PRESS_SETUP";
|
|
448
448
|
/**
|
|
449
449
|
* Create an SSR-safe press normalizer for one host element.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { a as PressOptions, t as PressController } from "./press-types-DfTNpqby.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/families/interaction/press/press.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Create an SSR-safe press normalizer for one host element.
|
|
6
|
+
*
|
|
7
|
+
* Spread the returned `pressProps` onto the host and call `dispose` when using
|
|
8
|
+
* this factory outside a Vue effect scope. No DOM global is read at setup.
|
|
9
|
+
*/
|
|
10
|
+
declare function createPress(options?: PressOptions): PressController;
|
|
11
|
+
/** Create a press normalizer disposed with the current Vue effect scope. */
|
|
12
|
+
declare function usePress(options?: PressOptions): PressController;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { usePress as n, createPress as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MaybeRefOrGetter, ShallowRef } from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/press-types.d.ts
|
|
3
|
+
//#region src/families/interaction/press/press-types.d.ts
|
|
4
4
|
/** Stable input family reported by a press interaction. */
|
|
5
5
|
type PressPointerType = "keyboard" | "mouse" | "pen" | "pointer" | "touch" | "virtual";
|
|
6
6
|
/** Lifecycle notification emitted by a press controller. */
|
package/dist/press.d.mts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import { a as PressOptions, i as PressKeyboardBehavior, n as PressEvent, o as PressPointerType, r as PressEventType, s as PressProps, t as PressController } from "./press-types-
|
|
2
|
-
|
|
3
|
-
//#region src/press.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Create an SSR-safe press normalizer for one host element.
|
|
6
|
-
*
|
|
7
|
-
* Spread the returned `pressProps` onto the host and call `dispose` when using
|
|
8
|
-
* this factory outside a Vue effect scope. No DOM global is read at setup.
|
|
9
|
-
*/
|
|
10
|
-
declare function createPress(options?: PressOptions): PressController;
|
|
11
|
-
/** Create a press normalizer disposed with the current Vue effect scope. */
|
|
12
|
-
declare function usePress(options?: PressOptions): PressController;
|
|
13
|
-
//#endregion
|
|
1
|
+
import { a as PressOptions, i as PressKeyboardBehavior, n as PressEvent, o as PressPointerType, r as PressEventType, s as PressProps, t as PressController } from "./press-types-DfTNpqby.mjs";
|
|
2
|
+
import { n as usePress, t as createPress } from "./press-R0_juZq2.mjs";
|
|
14
3
|
export { type PressController, type PressEvent, type PressEventType, type PressKeyboardBehavior, type PressOptions, type PressPointerType, type PressProps, createPress, usePress };
|
package/dist/press.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as usePress, t as createPress } from "./press-
|
|
1
|
+
import { n as usePress, t as createPress } from "./press-BjLm6bKg.mjs";
|
|
2
2
|
export { createPress, usePress };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, ComponentPublicInstance } from "vue";
|
|
2
2
|
|
|
3
|
-
//#region src/
|
|
3
|
+
//#region src/families/foundations/primitive/primitive-element.vue.d.ts
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
/**
|
|
6
6
|
* Native element, custom element, or component to render.
|
|
@@ -22,7 +22,7 @@ type __VLS_WithSlots<T, S> = T & {
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region src/primitive.d.ts
|
|
25
|
+
//#region src/families/foundations/primitive/primitive.d.ts
|
|
26
26
|
/** Native element, custom element, or component accepted by {@link Primitive}. */
|
|
27
27
|
type PrimitiveAs = string | Component;
|
|
28
28
|
/** Rendered value exposed by {@link Primitive}. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
2
|
import { createBlock, createSlots, defineComponent, openBlock, renderList, renderSlot, resolveDynamicComponent, useSlots, useTemplateRef, withCtx } from "vue";
|
|
3
3
|
//#endregion
|
|
4
|
-
//#region src/
|
|
5
|
-
var
|
|
6
|
-
__name: "
|
|
4
|
+
//#region src/families/foundations/primitive/primitive-element.vue
|
|
5
|
+
var primitive_element_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "primitive-element",
|
|
7
7
|
props: { as: {
|
|
8
8
|
type: null,
|
|
9
9
|
required: false,
|
|
@@ -29,6 +29,6 @@ var PrimitiveElement_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
29
29
|
})]), 1536);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
}), [["__scopeId", "data-v-
|
|
32
|
+
}), [["__scopeId", "data-v-cb3f980e"]]);
|
|
33
33
|
//#endregion
|
|
34
|
-
export {
|
|
34
|
+
export { primitive_element_default as t };
|
package/dist/primitive.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PrimitiveElement, r as _default, t as PrimitiveAs } from "./primitive-
|
|
1
|
+
import { n as PrimitiveElement, r as _default, t as PrimitiveAs } from "./primitive-BE2mdUcw.mjs";
|
|
2
2
|
export { _default as Primitive, PrimitiveAs, PrimitiveElement };
|
package/dist/primitive.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
export {
|
|
1
|
+
import { t as primitive_element_default } from "./primitive-beb2EEOc.mjs";
|
|
2
|
+
export { primitive_element_default as Primitive };
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
+
import { computed, createBlock, createElementVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, useTemplateRef, withCtx } from "vue";
|
|
3
|
+
//#region src/families/actions/print-button/print-button.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
"data-vize-ui": "print-button-label",
|
|
6
|
+
part: "label"
|
|
7
|
+
};
|
|
8
|
+
const PRINT_BUTTON_ACTION_UNAVAILABLE = "VIZE_UI_PRINT_BUTTON_ACTION_UNAVAILABLE";
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/families/actions/print-button/print-button.vue
|
|
11
|
+
var print_button_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "print-button",
|
|
13
|
+
props: {
|
|
14
|
+
as: {
|
|
15
|
+
type: null,
|
|
16
|
+
required: false,
|
|
17
|
+
default: "button"
|
|
18
|
+
},
|
|
19
|
+
native: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
required: false,
|
|
22
|
+
default: () => void 0
|
|
23
|
+
},
|
|
24
|
+
type: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: false,
|
|
27
|
+
default: "button"
|
|
28
|
+
},
|
|
29
|
+
disabled: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
required: false,
|
|
32
|
+
default: false
|
|
33
|
+
},
|
|
34
|
+
idleLabel: {
|
|
35
|
+
type: String,
|
|
36
|
+
required: false,
|
|
37
|
+
default: "Print"
|
|
38
|
+
},
|
|
39
|
+
printingLabel: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: false,
|
|
42
|
+
default: "Printing"
|
|
43
|
+
},
|
|
44
|
+
printedLabel: {
|
|
45
|
+
type: String,
|
|
46
|
+
required: false,
|
|
47
|
+
default: "Printed"
|
|
48
|
+
},
|
|
49
|
+
errorLabel: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: false,
|
|
52
|
+
default: "Print failed"
|
|
53
|
+
},
|
|
54
|
+
ariaLabel: {
|
|
55
|
+
type: String,
|
|
56
|
+
required: false,
|
|
57
|
+
default: () => void 0
|
|
58
|
+
},
|
|
59
|
+
ariaLabelledby: {
|
|
60
|
+
type: String,
|
|
61
|
+
required: false,
|
|
62
|
+
default: () => void 0
|
|
63
|
+
},
|
|
64
|
+
ariaDescribedby: {
|
|
65
|
+
type: String,
|
|
66
|
+
required: false,
|
|
67
|
+
default: () => void 0
|
|
68
|
+
},
|
|
69
|
+
action: {
|
|
70
|
+
type: Function,
|
|
71
|
+
required: false,
|
|
72
|
+
default: void 0
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
emits: ["print", "error"],
|
|
76
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
77
|
+
const emit = __emit;
|
|
78
|
+
const element = useTemplateRef("element");
|
|
79
|
+
const stateValue = shallowRef("idle");
|
|
80
|
+
const isNativeButton = computed(() => __props.native ?? __props.as === "button");
|
|
81
|
+
const buttonType = computed(() => __props.type);
|
|
82
|
+
const disabledValue = computed(() => __props.disabled);
|
|
83
|
+
const printingValue = computed(() => stateValue.value === "printing");
|
|
84
|
+
const unavailable = computed(() => disabledValue.value || printingValue.value);
|
|
85
|
+
const actionValue = computed(() => __props.action ?? printWithGlobal);
|
|
86
|
+
const label = computed(() => stateValue.value === "printing" ? __props.printingLabel : stateValue.value === "printed" ? __props.printedLabel : stateValue.value === "error" ? __props.errorLabel : __props.idleLabel);
|
|
87
|
+
const tabIndex = computed(() => {
|
|
88
|
+
if (isNativeButton.value) return void 0;
|
|
89
|
+
return disabledValue.value ? -1 : 0;
|
|
90
|
+
});
|
|
91
|
+
const ariaLabelValue = computed(() => hasText(__props.ariaLabel) ? __props.ariaLabel : void 0);
|
|
92
|
+
const ariaLabelledbyValue = computed(() => hasText(__props.ariaLabelledby) ? __props.ariaLabelledby : void 0);
|
|
93
|
+
const slotState = computed(() => ({
|
|
94
|
+
disabled: disabledValue.value,
|
|
95
|
+
label: label.value,
|
|
96
|
+
printing: printingValue.value,
|
|
97
|
+
state: stateValue.value,
|
|
98
|
+
unavailable: unavailable.value
|
|
99
|
+
}));
|
|
100
|
+
function onClick(event) {
|
|
101
|
+
if (unavailable.value) {
|
|
102
|
+
event.preventDefault();
|
|
103
|
+
event.stopImmediatePropagation();
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
runPrintAction(actionValue.value, event);
|
|
107
|
+
}
|
|
108
|
+
async function runPrintAction(submittedAction, event) {
|
|
109
|
+
stateValue.value = "printing";
|
|
110
|
+
try {
|
|
111
|
+
await submittedAction(event);
|
|
112
|
+
stateValue.value = "printed";
|
|
113
|
+
emit("print", event);
|
|
114
|
+
} catch (error) {
|
|
115
|
+
stateValue.value = "error";
|
|
116
|
+
emit("error", error, event);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function onKeyboard(event, phase) {
|
|
120
|
+
if (isNativeButton.value) return;
|
|
121
|
+
const keyboardAction = getPrintButtonKeyboardAction(event.key, phase);
|
|
122
|
+
if (keyboardAction === "ignore") return;
|
|
123
|
+
event.preventDefault();
|
|
124
|
+
if (unavailable.value) {
|
|
125
|
+
event.stopImmediatePropagation();
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if (keyboardAction === "activate" && event.currentTarget instanceof HTMLElement) event.currentTarget.click();
|
|
129
|
+
}
|
|
130
|
+
function onKeydown(event) {
|
|
131
|
+
onKeyboard(event, "keydown");
|
|
132
|
+
}
|
|
133
|
+
function onKeyup(event) {
|
|
134
|
+
onKeyboard(event, "keyup");
|
|
135
|
+
}
|
|
136
|
+
function getPrintButtonKeyboardAction(key, phase) {
|
|
137
|
+
if (key === "Enter") return phase === "keydown" ? "activate" : "ignore";
|
|
138
|
+
if (key === " ") return phase === "keydown" ? "prevent" : "activate";
|
|
139
|
+
return "ignore";
|
|
140
|
+
}
|
|
141
|
+
function focus(options) {
|
|
142
|
+
focusTarget(element.value, options);
|
|
143
|
+
}
|
|
144
|
+
function focusTarget(target, options) {
|
|
145
|
+
if (typeof target === "object" && target !== null && "focus" in target && typeof target.focus === "function") target.focus(options);
|
|
146
|
+
}
|
|
147
|
+
function printWithGlobal() {
|
|
148
|
+
const print = globalThis.print;
|
|
149
|
+
if (typeof print !== "function") throw new Error(PRINT_BUTTON_ACTION_UNAVAILABLE);
|
|
150
|
+
print.call(globalThis);
|
|
151
|
+
}
|
|
152
|
+
function hasText(nextValue) {
|
|
153
|
+
return nextValue != null && nextValue.trim().length > 0;
|
|
154
|
+
}
|
|
155
|
+
__expose({
|
|
156
|
+
disabled: disabledValue,
|
|
157
|
+
element,
|
|
158
|
+
focus,
|
|
159
|
+
label,
|
|
160
|
+
printing: printingValue,
|
|
161
|
+
state: stateValue,
|
|
162
|
+
unavailable
|
|
163
|
+
});
|
|
164
|
+
return (_ctx, _cache) => {
|
|
165
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
|
|
166
|
+
ref_key: "element",
|
|
167
|
+
ref: element,
|
|
168
|
+
type: isNativeButton.value ? buttonType.value : void 0,
|
|
169
|
+
disabled: isNativeButton.value ? disabledValue.value : void 0,
|
|
170
|
+
role: isNativeButton.value ? void 0 : "button",
|
|
171
|
+
tabindex: tabIndex.value,
|
|
172
|
+
"aria-label": ariaLabelledbyValue.value === void 0 ? ariaLabelValue.value : void 0,
|
|
173
|
+
"aria-labelledby": ariaLabelledbyValue.value,
|
|
174
|
+
"aria-describedby": __props.ariaDescribedby,
|
|
175
|
+
"aria-disabled": unavailable.value && (!isNativeButton.value || printingValue.value) ? "true" : void 0,
|
|
176
|
+
"aria-busy": printingValue.value ? "true" : void 0,
|
|
177
|
+
"data-vize-ui": "print-button",
|
|
178
|
+
part: "root",
|
|
179
|
+
"data-state": stateValue.value,
|
|
180
|
+
"data-disabled": disabledValue.value ? "true" : void 0,
|
|
181
|
+
"data-printing": printingValue.value ? "true" : void 0,
|
|
182
|
+
onClick,
|
|
183
|
+
onKeydown,
|
|
184
|
+
onKeyup
|
|
185
|
+
}, {
|
|
186
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), () => [createElementVNode("span", _hoisted_1, toDisplayString(label.value), 1)], true)]),
|
|
187
|
+
_: 3
|
|
188
|
+
}, 40, [
|
|
189
|
+
"type",
|
|
190
|
+
"disabled",
|
|
191
|
+
"role",
|
|
192
|
+
"tabindex",
|
|
193
|
+
"aria-label",
|
|
194
|
+
"aria-labelledby",
|
|
195
|
+
"aria-describedby",
|
|
196
|
+
"aria-disabled",
|
|
197
|
+
"aria-busy",
|
|
198
|
+
"data-state",
|
|
199
|
+
"data-disabled",
|
|
200
|
+
"data-printing"
|
|
201
|
+
]);
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
}), [["__scopeId", "data-v-61550ffb"]]);
|
|
205
|
+
//#endregion
|
|
206
|
+
export { print_button_default as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Ba as PrintButtonEmits, Fa as PrintButtonAction, Ga as PrintButtonSlots, Ha as PrintButtonPart, Ia as PrintButtonCssCustomProperty, Ka as PrintButtonState, La as PrintButtonDataAttribute, Pa as _default, Ra as PrintButtonDataName, Ua as PrintButtonProps, Va as PrintButtonExpose, Wa as PrintButtonSlotState, qa as PrintButtonType, za as PrintButtonElement } from "./announcer-CuBryPW9.mjs";
|
|
2
|
+
export { _default as PrintButton, type PrintButtonAction, type PrintButtonCssCustomProperty, type PrintButtonDataAttribute, type PrintButtonDataName, type PrintButtonElement, type PrintButtonEmits, type PrintButtonExpose, type PrintButtonPart, type PrintButtonProps, type PrintButtonSlotState, type PrintButtonSlots, type PrintButtonState, type PrintButtonType };
|