@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,62 @@
|
|
|
1
|
+
import { getCurrentScope, nextTick, onScopeDispose, shallowReadonly, shallowRef, toValue } from "vue";
|
|
2
|
+
//#region src/families/accessibility/live-region/live-region-runtime.ts
|
|
3
|
+
const invalidOptionDiagnostic = "VIZE_UI_LIVE_REGION_OPTION";
|
|
4
|
+
const disposedDiagnostic = "VIZE_UI_LIVE_REGION_DISPOSED";
|
|
5
|
+
const setupDiagnostic = "VIZE_UI_LIVE_REGION_SETUP";
|
|
6
|
+
const politenessValues = new Set(["assertive", "polite"]);
|
|
7
|
+
function readPoliteness(value, fallback) {
|
|
8
|
+
const resolved = toValue(value);
|
|
9
|
+
if (resolved === void 0) return fallback;
|
|
10
|
+
if (!politenessValues.has(resolved)) throw new TypeError(`${invalidOptionDiagnostic}: politeness must resolve to polite or assertive`);
|
|
11
|
+
return resolved;
|
|
12
|
+
}
|
|
13
|
+
function validateOptions(options) {
|
|
14
|
+
if (typeof options.politeness !== "function") readPoliteness(options.politeness, "polite");
|
|
15
|
+
}
|
|
16
|
+
/** Create an SSR-safe announcement queue for one live region. */
|
|
17
|
+
function createLiveRegion(options = {}) {
|
|
18
|
+
validateOptions(options);
|
|
19
|
+
const message = shallowRef("");
|
|
20
|
+
const politeness = shallowRef(readPoliteness(options.politeness, "polite"));
|
|
21
|
+
let disposed = false;
|
|
22
|
+
let token = 0;
|
|
23
|
+
const assertAlive = () => {
|
|
24
|
+
if (disposed) throw new Error(`${disposedDiagnostic}: the controller has been disposed`);
|
|
25
|
+
};
|
|
26
|
+
return Object.freeze({
|
|
27
|
+
message: shallowReadonly(message),
|
|
28
|
+
politeness: shallowReadonly(politeness),
|
|
29
|
+
announce: (text, nextPoliteness) => {
|
|
30
|
+
assertAlive();
|
|
31
|
+
if (typeof text !== "string") throw new TypeError(`${invalidOptionDiagnostic}: announcement text must be a string`);
|
|
32
|
+
if (nextPoliteness !== void 0) politeness.value = readPoliteness(nextPoliteness, "polite");
|
|
33
|
+
else politeness.value = readPoliteness(options.politeness, "polite");
|
|
34
|
+
const generation = ++token;
|
|
35
|
+
message.value = "";
|
|
36
|
+
nextTick(() => {
|
|
37
|
+
if (disposed || generation !== token) return;
|
|
38
|
+
message.value = text;
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
clear: () => {
|
|
42
|
+
assertAlive();
|
|
43
|
+
token += 1;
|
|
44
|
+
message.value = "";
|
|
45
|
+
},
|
|
46
|
+
dispose: () => {
|
|
47
|
+
if (disposed) return;
|
|
48
|
+
disposed = true;
|
|
49
|
+
token += 1;
|
|
50
|
+
message.value = "";
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/** Create a live-region announcer disposed with the current Vue effect scope. */
|
|
55
|
+
function useLiveRegion(options = {}) {
|
|
56
|
+
if (!getCurrentScope()) throw new Error(`${setupDiagnostic}: use inside component setup or an active effect scope`);
|
|
57
|
+
const controller = createLiveRegion(options);
|
|
58
|
+
onScopeDispose(controller.dispose);
|
|
59
|
+
return controller;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { useLiveRegion as n, createLiveRegion as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as LiveRegionOptions, i as LiveRegionController, n as createLiveRegion, o as LiveRegionPoliteness, r as useLiveRegion, t as _default } from "./live-region-G1iobPK5.mjs";
|
|
2
|
+
export { _default as LiveRegion, type LiveRegionController, type LiveRegionOptions, type LiveRegionPoliteness, createLiveRegion, useLiveRegion };
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
2
|
+
import { createContext } from "./context.mjs";
|
|
3
|
+
import { computed, createElementBlock, defineComponent, getCurrentInstance, openBlock, reactive, renderSlot, toValue, watchEffect } from "vue";
|
|
4
|
+
//#region src/families/i18n/locale/locale-runtime.ts
|
|
5
|
+
const fallbackLocaleValue = "en-US";
|
|
6
|
+
const setupDiagnostic = "VIZE_UI_LOCALE_SETUP";
|
|
7
|
+
const defaultSearchCollatorOptions = Object.freeze({
|
|
8
|
+
sensitivity: "base",
|
|
9
|
+
usage: "search"
|
|
10
|
+
});
|
|
11
|
+
/** Typed locale context for application and component subtrees. */
|
|
12
|
+
const localeContext = createContext("Locale");
|
|
13
|
+
function fallbackLocale() {
|
|
14
|
+
if (typeof document === "undefined") return fallbackLocaleValue;
|
|
15
|
+
return resolveLocale(document.documentElement.lang);
|
|
16
|
+
}
|
|
17
|
+
function fallbackDirection() {
|
|
18
|
+
if (typeof document === "undefined") return "ltr";
|
|
19
|
+
return document.documentElement.dir === "rtl" ? "rtl" : "ltr";
|
|
20
|
+
}
|
|
21
|
+
/** Resolve a BCP 47 locale, or `en-US`. */
|
|
22
|
+
function resolveLocale(locale) {
|
|
23
|
+
const candidate = locale.trim();
|
|
24
|
+
if (candidate.length === 0) return fallbackLocaleValue;
|
|
25
|
+
try {
|
|
26
|
+
return Intl.getCanonicalLocales(candidate)[0] ?? fallbackLocaleValue;
|
|
27
|
+
} catch {
|
|
28
|
+
return fallbackLocaleValue;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Resolve `auto` direction from `Intl.Locale` when the engine exposes it.
|
|
33
|
+
*/
|
|
34
|
+
function resolveDirection(direction, locale) {
|
|
35
|
+
if (direction === "ltr" || direction === "rtl") return direction;
|
|
36
|
+
try {
|
|
37
|
+
if (new Intl.Locale(locale).textInfo?.direction === "rtl") return "rtl";
|
|
38
|
+
} catch {}
|
|
39
|
+
return "ltr";
|
|
40
|
+
}
|
|
41
|
+
/** Create a number formatter. */
|
|
42
|
+
function resolveNumberFormatter(locale, options) {
|
|
43
|
+
return new Intl.NumberFormat(resolveLocale(locale), options);
|
|
44
|
+
}
|
|
45
|
+
/** Create a date-time formatter. */
|
|
46
|
+
function resolveDateTimeFormatter(locale, options) {
|
|
47
|
+
return new Intl.DateTimeFormat(resolveLocale(locale), options);
|
|
48
|
+
}
|
|
49
|
+
/** Create a list formatter. */
|
|
50
|
+
function resolveListFormatter(locale, options) {
|
|
51
|
+
return new Intl.ListFormat(resolveLocale(locale), options);
|
|
52
|
+
}
|
|
53
|
+
/** Create a relative-time formatter. */
|
|
54
|
+
function resolveRelativeTimeFormatter(locale, options) {
|
|
55
|
+
return new Intl.RelativeTimeFormat(resolveLocale(locale), options);
|
|
56
|
+
}
|
|
57
|
+
/** Create a display-name formatter. */
|
|
58
|
+
function resolveDisplayNames(locale, options) {
|
|
59
|
+
return new Intl.DisplayNames(resolveLocale(locale), options);
|
|
60
|
+
}
|
|
61
|
+
/** Create a collator. */
|
|
62
|
+
function resolveCollator(locale, options) {
|
|
63
|
+
return new Intl.Collator(resolveLocale(locale), options);
|
|
64
|
+
}
|
|
65
|
+
/** Create a search collator with stable typeahead defaults. */
|
|
66
|
+
function resolveSearchCollator(locale, options) {
|
|
67
|
+
return resolveCollator(locale, {
|
|
68
|
+
...defaultSearchCollatorOptions,
|
|
69
|
+
...options
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/** Read the nearest locale, or the document/SSR fallback. */
|
|
73
|
+
function useLocale() {
|
|
74
|
+
if (!getCurrentInstance()) throw new Error(`${setupDiagnostic}: use inside component setup`);
|
|
75
|
+
const provided = localeContext.useOptional();
|
|
76
|
+
return computed(() => provided?.locale ?? fallbackLocale());
|
|
77
|
+
}
|
|
78
|
+
/** Read the nearest resolved writing direction, or the document/SSR fallback. */
|
|
79
|
+
function useDirection() {
|
|
80
|
+
if (!getCurrentInstance()) throw new Error(`${setupDiagnostic}: use inside component setup`);
|
|
81
|
+
const provided = localeContext.useOptional();
|
|
82
|
+
return computed(() => provided?.direction ?? fallbackDirection());
|
|
83
|
+
}
|
|
84
|
+
/** Read the nearest locale and memoize a number formatter. */
|
|
85
|
+
function useNumberFormatter(options) {
|
|
86
|
+
const locale = useLocale();
|
|
87
|
+
return computed(() => resolveNumberFormatter(locale.value, toValue(options)));
|
|
88
|
+
}
|
|
89
|
+
/** Read the nearest locale and memoize a date-time formatter. */
|
|
90
|
+
function useDateTimeFormatter(options) {
|
|
91
|
+
const locale = useLocale();
|
|
92
|
+
return computed(() => resolveDateTimeFormatter(locale.value, toValue(options)));
|
|
93
|
+
}
|
|
94
|
+
/** Read the nearest locale and memoize a list formatter. */
|
|
95
|
+
function useListFormatter(options) {
|
|
96
|
+
const locale = useLocale();
|
|
97
|
+
return computed(() => resolveListFormatter(locale.value, toValue(options)));
|
|
98
|
+
}
|
|
99
|
+
/** Read the nearest locale and memoize a relative-time formatter. */
|
|
100
|
+
function useRelativeTimeFormatter(options) {
|
|
101
|
+
const locale = useLocale();
|
|
102
|
+
return computed(() => resolveRelativeTimeFormatter(locale.value, toValue(options)));
|
|
103
|
+
}
|
|
104
|
+
/** Read the nearest locale and memoize a display-name formatter. */
|
|
105
|
+
function useDisplayNames(options) {
|
|
106
|
+
const locale = useLocale();
|
|
107
|
+
return computed(() => resolveDisplayNames(locale.value, toValue(options)));
|
|
108
|
+
}
|
|
109
|
+
/** Read the nearest locale and memoize a collator. */
|
|
110
|
+
function useCollator(options) {
|
|
111
|
+
const locale = useLocale();
|
|
112
|
+
return computed(() => resolveCollator(locale.value, toValue(options)));
|
|
113
|
+
}
|
|
114
|
+
/** Read the nearest locale and memoize a search collator. */
|
|
115
|
+
function useSearchCollator(options) {
|
|
116
|
+
const locale = useLocale();
|
|
117
|
+
return computed(() => resolveSearchCollator(locale.value, toValue(options)));
|
|
118
|
+
}
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/families/i18n/locale/locale-text.ts
|
|
121
|
+
/**
|
|
122
|
+
* Normalize authored, extracted, or searched text without applying a locale.
|
|
123
|
+
*
|
|
124
|
+
* Unicode is normalized to NFC and every whitespace run becomes one ASCII
|
|
125
|
+
* space. Locale-sensitive equality remains the responsibility of a collator.
|
|
126
|
+
*/
|
|
127
|
+
function normalizeLocaleText(value) {
|
|
128
|
+
return value.normalize("NFC").trim().replace(/\s+/gu, " ");
|
|
129
|
+
}
|
|
130
|
+
/** Whether a candidate text starts with a query under locale-aware comparison. */
|
|
131
|
+
function localeTextStartsWith(candidate, query, collator) {
|
|
132
|
+
const normalizedCandidate = normalizeLocaleText(candidate);
|
|
133
|
+
const normalizedQuery = normalizeLocaleText(query);
|
|
134
|
+
let codeUnitLength = 0;
|
|
135
|
+
for (const character of normalizedCandidate) {
|
|
136
|
+
codeUnitLength += character.length;
|
|
137
|
+
if (collator.compare(normalizedCandidate.slice(0, codeUnitLength), normalizedQuery) === 0) return true;
|
|
138
|
+
}
|
|
139
|
+
return normalizedQuery.length === 0;
|
|
140
|
+
}
|
|
141
|
+
/** Whether a candidate text contains a query under locale-aware comparison. */
|
|
142
|
+
function localeTextContains(candidate, query, collator) {
|
|
143
|
+
const normalizedCandidate = normalizeLocaleText(candidate);
|
|
144
|
+
const normalizedQuery = normalizeLocaleText(query);
|
|
145
|
+
if (normalizedQuery.length === 0) return true;
|
|
146
|
+
for (const start of codeUnitOffsets(normalizedCandidate)) if (localeTextStartsWith(normalizedCandidate.slice(start), normalizedQuery, collator)) return true;
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
/** Match normalized text with a locale-aware comparator. */
|
|
150
|
+
function localeTextMatches(candidate, query, options) {
|
|
151
|
+
const match = options.match ?? "prefix";
|
|
152
|
+
if (match === "exact") return options.collator.compare(normalizeLocaleText(candidate), normalizeLocaleText(query)) === 0;
|
|
153
|
+
if (match === "contains") return localeTextContains(candidate, query, options.collator);
|
|
154
|
+
return localeTextStartsWith(candidate, query, options.collator);
|
|
155
|
+
}
|
|
156
|
+
function* codeUnitOffsets(value) {
|
|
157
|
+
let offset = 0;
|
|
158
|
+
yield offset;
|
|
159
|
+
for (const character of value) {
|
|
160
|
+
offset += character.length;
|
|
161
|
+
if (offset < value.length) yield offset;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region src/families/i18n/locale/locale-provider.vue?vue&type=script&setup=true&lang.ts
|
|
166
|
+
const _hoisted_1 = ["lang", "dir"];
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/families/i18n/locale/locale-provider.vue
|
|
169
|
+
var locale_provider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
170
|
+
__name: "locale-provider",
|
|
171
|
+
props: {
|
|
172
|
+
locale: {
|
|
173
|
+
type: String,
|
|
174
|
+
required: false,
|
|
175
|
+
default: "en-US"
|
|
176
|
+
},
|
|
177
|
+
direction: {
|
|
178
|
+
type: String,
|
|
179
|
+
required: false,
|
|
180
|
+
default: "ltr"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
setup(__props) {
|
|
184
|
+
const value = reactive({
|
|
185
|
+
locale: "en-US",
|
|
186
|
+
direction: "ltr"
|
|
187
|
+
});
|
|
188
|
+
watchEffect(() => {
|
|
189
|
+
value.locale = resolveLocale(__props.locale);
|
|
190
|
+
value.direction = resolveDirection(__props.direction, value.locale);
|
|
191
|
+
});
|
|
192
|
+
localeContext.provide(value);
|
|
193
|
+
return (_ctx, _cache) => {
|
|
194
|
+
return openBlock(), createElementBlock("div", {
|
|
195
|
+
"data-vize-ui": "locale",
|
|
196
|
+
lang: value.locale,
|
|
197
|
+
dir: value.direction
|
|
198
|
+
}, [renderSlot(_ctx.$slots, "default", {
|
|
199
|
+
locale: value.locale,
|
|
200
|
+
direction: value.direction
|
|
201
|
+
}, void 0, true)], 8, _hoisted_1);
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
}), [["__scopeId", "data-v-d8cdfe77"]]);
|
|
205
|
+
//#endregion
|
|
206
|
+
export { useRelativeTimeFormatter as C, useNumberFormatter as S, useDateTimeFormatter as _, normalizeLocaleText as a, useListFormatter as b, resolveDateTimeFormatter as c, resolveListFormatter as d, resolveLocale as f, useCollator as g, resolveSearchCollator as h, localeTextStartsWith as i, resolveDirection as l, resolveRelativeTimeFormatter as m, localeTextContains as n, localeContext as o, resolveNumberFormatter as p, localeTextMatches as r, resolveCollator as s, locale_provider_default as t, resolveDisplayNames as u, useDirection as v, useSearchCollator as w, useLocale as x, useDisplayNames as y };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as LocaleRelativeTimeFormatterOptions, B as localeTextContains, G as LocaleCollatorOptions, H as localeTextStartsWith, J as LocaleDisplayNamesOptionsInput, K as LocaleDateTimeFormatterOptions, L as _default, Q as LocaleNumberFormatterOptions, R as LocaleTextMatchMode, U as normalizeLocaleText, V as localeTextMatches, W as DirectionPreference, X as LocaleFormatterOptionsInput, Y as LocaleDisplayNamesType, Z as LocaleListFormatterOptions, _t as useLocale, at as resolveDirection, bt as useSearchCollator, ct as resolveLocale, dt as resolveSearchCollator, et as LocaleValue, ft as useCollator, gt as useListFormatter, ht as useDisplayNames, it as resolveDateTimeFormatter, lt as resolveNumberFormatter, mt as useDirection, nt as localeContext, ot as resolveDisplayNames, pt as useDateTimeFormatter, q as LocaleDisplayNamesOptions, rt as resolveCollator, st as resolveListFormatter, tt as TextDirection, ut as resolveRelativeTimeFormatter, vt as useNumberFormatter, yt as useRelativeTimeFormatter, z as LocaleTextMatchOptions } from "./announcer-CuBryPW9.mjs";
|
|
2
|
+
export { type DirectionPreference, type LocaleCollatorOptions, type LocaleDateTimeFormatterOptions, type LocaleDisplayNamesOptions, type LocaleDisplayNamesOptionsInput, type LocaleDisplayNamesType, type LocaleFormatterOptionsInput, type LocaleListFormatterOptions, type LocaleNumberFormatterOptions, _default as LocaleProvider, type LocaleRelativeTimeFormatterOptions, type LocaleTextMatchMode, type LocaleTextMatchOptions, type LocaleValue, type TextDirection, localeContext, localeTextContains, localeTextMatches, localeTextStartsWith, normalizeLocaleText, resolveCollator, resolveDateTimeFormatter, resolveDirection, resolveDisplayNames, resolveListFormatter, resolveLocale, resolveNumberFormatter, resolveRelativeTimeFormatter, resolveSearchCollator, useCollator, useDateTimeFormatter, useDirection, useDisplayNames, useListFormatter, useLocale, useNumberFormatter, useRelativeTimeFormatter, useSearchCollator };
|
package/dist/locale.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { C as useRelativeTimeFormatter, S as useNumberFormatter, _ as useDateTimeFormatter, a as normalizeLocaleText, b as useListFormatter, c as resolveDateTimeFormatter, d as resolveListFormatter, f as resolveLocale, g as useCollator, h as resolveSearchCollator, i as localeTextStartsWith, l as resolveDirection, m as resolveRelativeTimeFormatter, n as localeTextContains, o as localeContext, p as resolveNumberFormatter, r as localeTextMatches, s as resolveCollator, t as locale_provider_default, u as resolveDisplayNames, v as useDirection, w as useSearchCollator, x as useLocale, y as useDisplayNames } from "./locale-DzWqhJZs.mjs";
|
|
2
|
+
export { locale_provider_default as LocaleProvider, localeContext, localeTextContains, localeTextMatches, localeTextStartsWith, normalizeLocaleText, resolveCollator, resolveDateTimeFormatter, resolveDirection, resolveDisplayNames, resolveListFormatter, resolveLocale, resolveNumberFormatter, resolveRelativeTimeFormatter, resolveSearchCollator, useCollator, useDateTimeFormatter, useDirection, useDisplayNames, useListFormatter, useLocale, useNumberFormatter, useRelativeTimeFormatter, useSearchCollator };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as PressEvent, o as PressPointerType, s as PressProps } from "./press-types-
|
|
1
|
+
import { n as PressEvent, o as PressPointerType, s as PressProps } from "./press-types-DfTNpqby.mjs";
|
|
2
2
|
import { MaybeRefOrGetter, ShallowRef } from "vue";
|
|
3
3
|
|
|
4
|
-
//#region src/long-press-types.d.ts
|
|
4
|
+
//#region src/families/interaction/long-press/long-press-types.d.ts
|
|
5
5
|
/** Pointing-device families eligible to start a long press. */
|
|
6
6
|
type LongPressPointerType = Extract<PressPointerType, "mouse" | "pen" | "pointer" | "touch">;
|
|
7
7
|
/** Lifecycle notification emitted by a long-press controller. */
|
|
@@ -96,7 +96,7 @@ interface LongPressController {
|
|
|
96
96
|
readonly dispose: () => void;
|
|
97
97
|
}
|
|
98
98
|
//#endregion
|
|
99
|
-
//#region src/long-press.d.ts
|
|
99
|
+
//#region src/families/interaction/long-press/long-press.d.ts
|
|
100
100
|
/** Create an SSR-safe long-press recognizer for one host element. */
|
|
101
101
|
declare function createLongPress(options?: LongPressOptions): LongPressController;
|
|
102
102
|
/** Create a long-press recognizer disposed with the current Vue effect scope. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as disableTextSelection, t as createPressEvent } from "./press-event-
|
|
2
|
-
import { t as createPress } from "./press-
|
|
1
|
+
import { n as disableTextSelection, t as createPressEvent } from "./press-event-xlWYF9py.mjs";
|
|
2
|
+
import { t as createPress } from "./press-BjLm6bKg.mjs";
|
|
3
3
|
import { getCurrentScope, onScopeDispose, shallowReadonly, shallowRef, toValue } from "vue";
|
|
4
|
-
//#region src/long-press-internal.ts
|
|
4
|
+
//#region src/families/interaction/long-press/long-press-internal.ts
|
|
5
5
|
const defaultThreshold = 500;
|
|
6
6
|
const invalidOptionDiagnostic = "VIZE_UI_LONG_PRESS_OPTION";
|
|
7
7
|
const hardwarePointers = new Set([
|
|
@@ -139,7 +139,7 @@ function installTriggeredRelease(current, finish) {
|
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
|
-
//#region src/long-press.ts
|
|
142
|
+
//#region src/families/interaction/long-press/long-press.ts
|
|
143
143
|
const contextMenuLingerMs = 50;
|
|
144
144
|
const disposedDiagnostic = "VIZE_UI_LONG_PRESS_DISPOSED";
|
|
145
145
|
const setupDiagnostic = "VIZE_UI_LONG_PRESS_SETUP";
|
package/dist/long-press.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LongPressEventType, c as LongPressProps, i as LongPressEvent, n as useLongPress, o as LongPressOptions, r as LongPressController, s as LongPressPointerType, t as createLongPress } from "./long-press-
|
|
1
|
+
import { a as LongPressEventType, c as LongPressProps, i as LongPressEvent, n as useLongPress, o as LongPressOptions, r as LongPressController, s as LongPressPointerType, t as createLongPress } from "./long-press-DyYxp191.mjs";
|
|
2
2
|
export { type LongPressController, type LongPressEvent, type LongPressEventType, type LongPressOptions, type LongPressPointerType, type LongPressProps, createLongPress, useLongPress };
|
package/dist/long-press.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useLongPress, t as createLongPress } from "./long-press-
|
|
1
|
+
import { n as useLongPress, t as createLongPress } from "./long-press-yJk5zK0j.mjs";
|
|
2
2
|
export { createLongPress, useLongPress };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ShallowRef } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/families/interaction/measure/measure-types.d.ts
|
|
4
|
+
/** One measured border-box change reported by a size observer. */
|
|
5
|
+
interface SizeObserverEntry {
|
|
6
|
+
/** Observed element that changed size. */
|
|
7
|
+
readonly target: Element;
|
|
8
|
+
/** Inline-axis extent in CSS pixels for the configured box. */
|
|
9
|
+
readonly width: number;
|
|
10
|
+
/** Block-axis extent in CSS pixels for the configured box. */
|
|
11
|
+
readonly height: number;
|
|
12
|
+
}
|
|
13
|
+
/** Options shared by {@link createSizeObserver} and {@link useSizeObserver}. */
|
|
14
|
+
interface SizeObserverOptions {
|
|
15
|
+
/**
|
|
16
|
+
* Box model reported for every observed target.
|
|
17
|
+
*
|
|
18
|
+
* @default "border-box"
|
|
19
|
+
*/
|
|
20
|
+
readonly box?: "border-box" | "content-box";
|
|
21
|
+
/** Called with each batch of size changes, in observation order. */
|
|
22
|
+
readonly onResize: (entries: readonly SizeObserverEntry[]) => void;
|
|
23
|
+
}
|
|
24
|
+
/** SSR-safe `ResizeObserver` wrapper for a stable set of targets. */
|
|
25
|
+
interface SizeObserverController {
|
|
26
|
+
/** Whether the platform provides `ResizeObserver`. Always `false` during SSR. */
|
|
27
|
+
readonly isSupported: boolean;
|
|
28
|
+
/** Number of currently observed targets. */
|
|
29
|
+
readonly observedCount: Readonly<ShallowRef<number>>;
|
|
30
|
+
/** Start observing one element. Repeated calls for one element are idempotent. */
|
|
31
|
+
readonly observe: (target: Element) => void;
|
|
32
|
+
/** Stop observing one element. Unknown elements are ignored. */
|
|
33
|
+
readonly unobserve: (target: Element) => void;
|
|
34
|
+
/** Stop observing every element while keeping the controller usable. */
|
|
35
|
+
readonly disconnect: () => void;
|
|
36
|
+
/** Disconnect and freeze the controller. Further observation throws. */
|
|
37
|
+
readonly dispose: () => void;
|
|
38
|
+
}
|
|
39
|
+
/** One visibility change reported by a visibility observer. */
|
|
40
|
+
interface VisibilityObserverEntry {
|
|
41
|
+
/** Observed element whose intersection changed. */
|
|
42
|
+
readonly target: Element;
|
|
43
|
+
/** Whether the target intersects the observation root. */
|
|
44
|
+
readonly isIntersecting: boolean;
|
|
45
|
+
/** Fraction of the target inside the root, from `0` to `1`. */
|
|
46
|
+
readonly intersectionRatio: number;
|
|
47
|
+
}
|
|
48
|
+
/** Options shared by {@link createVisibilityObserver} and {@link useVisibilityObserver}. */
|
|
49
|
+
interface VisibilityObserverOptions {
|
|
50
|
+
/**
|
|
51
|
+
* Intersection root. `null` observes against the viewport.
|
|
52
|
+
*
|
|
53
|
+
* @default null
|
|
54
|
+
*/
|
|
55
|
+
readonly root?: Element | Document | null;
|
|
56
|
+
/**
|
|
57
|
+
* Margin applied to the root bounding box before intersection.
|
|
58
|
+
*
|
|
59
|
+
* @default "0px"
|
|
60
|
+
*/
|
|
61
|
+
readonly rootMargin?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Intersection ratios at which changes are reported.
|
|
64
|
+
*
|
|
65
|
+
* @default 0
|
|
66
|
+
*/
|
|
67
|
+
readonly threshold?: number | readonly number[];
|
|
68
|
+
/** Called with each batch of visibility changes, in observation order. */
|
|
69
|
+
readonly onVisibilityChange: (entries: readonly VisibilityObserverEntry[]) => void;
|
|
70
|
+
}
|
|
71
|
+
/** SSR-safe `IntersectionObserver` wrapper for a stable set of targets. */
|
|
72
|
+
interface VisibilityObserverController {
|
|
73
|
+
/** Whether the platform provides `IntersectionObserver`. Always `false` during SSR. */
|
|
74
|
+
readonly isSupported: boolean;
|
|
75
|
+
/** Number of currently observed targets. */
|
|
76
|
+
readonly observedCount: Readonly<ShallowRef<number>>;
|
|
77
|
+
/** Start observing one element. Repeated calls for one element are idempotent. */
|
|
78
|
+
readonly observe: (target: Element) => void;
|
|
79
|
+
/** Stop observing one element. Unknown elements are ignored. */
|
|
80
|
+
readonly unobserve: (target: Element) => void;
|
|
81
|
+
/** Stop observing every element while keeping the controller usable. */
|
|
82
|
+
readonly disconnect: () => void;
|
|
83
|
+
/** Disconnect and freeze the controller. Further observation throws. */
|
|
84
|
+
readonly dispose: () => void;
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/families/interaction/measure/measure-runtime.d.ts
|
|
88
|
+
/** Create an SSR-safe `ResizeObserver` wrapper. Observation no-ops without platform support. */
|
|
89
|
+
declare function createSizeObserver(options: SizeObserverOptions): SizeObserverController;
|
|
90
|
+
/** Create an SSR-safe `IntersectionObserver` wrapper. Observation no-ops without support. */
|
|
91
|
+
declare function createVisibilityObserver(options: VisibilityObserverOptions): VisibilityObserverController;
|
|
92
|
+
/** Create a size observer disposed with the current Vue effect scope. */
|
|
93
|
+
declare function useSizeObserver(options: SizeObserverOptions): SizeObserverController;
|
|
94
|
+
/** Create a visibility observer disposed with the current Vue effect scope. */
|
|
95
|
+
declare function useVisibilityObserver(options: VisibilityObserverOptions): VisibilityObserverController;
|
|
96
|
+
//#endregion
|
|
97
|
+
export { SizeObserverController as a, VisibilityObserverController as c, useVisibilityObserver as i, VisibilityObserverEntry as l, createVisibilityObserver as n, SizeObserverEntry as o, useSizeObserver as r, SizeObserverOptions as s, createSizeObserver as t, VisibilityObserverOptions as u };
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { getCurrentScope, onScopeDispose, shallowReadonly, shallowRef } from "vue";
|
|
2
|
+
//#region src/families/interaction/measure/measure-runtime.ts
|
|
3
|
+
const invalidOptionDiagnostic = "VIZE_UI_MEASURE_OPTION";
|
|
4
|
+
const disposedDiagnostic = "VIZE_UI_MEASURE_DISPOSED";
|
|
5
|
+
const setupDiagnostic = "VIZE_UI_MEASURE_SETUP";
|
|
6
|
+
const boxes = new Set(["border-box", "content-box"]);
|
|
7
|
+
function assertCallback(name, value) {
|
|
8
|
+
if (typeof value !== "function") throw new TypeError(`${invalidOptionDiagnostic}: ${name} must be a function`);
|
|
9
|
+
}
|
|
10
|
+
function assertElement(target) {
|
|
11
|
+
if (!target || target.nodeType !== 1) throw new TypeError(`${invalidOptionDiagnostic}: observation targets must be elements`);
|
|
12
|
+
}
|
|
13
|
+
function readBoxSize(entry, box) {
|
|
14
|
+
const boxSize = box === "border-box" ? entry.borderBoxSize : entry.contentBoxSize;
|
|
15
|
+
const size = Array.isArray(boxSize) ? boxSize[0] : void 0;
|
|
16
|
+
if (size && typeof size.inlineSize === "number" && typeof size.blockSize === "number") return {
|
|
17
|
+
width: size.inlineSize,
|
|
18
|
+
height: size.blockSize
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
width: entry.contentRect.width,
|
|
22
|
+
height: entry.contentRect.height
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/** Shared observe/unobserve/disconnect/dispose lifecycle for both wrappers. */
|
|
26
|
+
function createObservationLifecycle(adapter) {
|
|
27
|
+
const observed = /* @__PURE__ */ new Set();
|
|
28
|
+
const observedCount = shallowRef(0);
|
|
29
|
+
let disposed = false;
|
|
30
|
+
const assertUsable = () => {
|
|
31
|
+
if (disposed) throw new Error(`${disposedDiagnostic}: the controller has been disposed`);
|
|
32
|
+
};
|
|
33
|
+
const disconnect = () => {
|
|
34
|
+
assertUsable();
|
|
35
|
+
for (const target of observed) adapter.unobserve(target);
|
|
36
|
+
observed.clear();
|
|
37
|
+
observedCount.value = 0;
|
|
38
|
+
};
|
|
39
|
+
return {
|
|
40
|
+
isSupported: adapter.isSupported,
|
|
41
|
+
observedCount: shallowReadonly(observedCount),
|
|
42
|
+
isObserved: (target) => observed.has(target),
|
|
43
|
+
translate: (entries) => adapter.translate(entries),
|
|
44
|
+
observe: (target) => {
|
|
45
|
+
assertUsable();
|
|
46
|
+
assertElement(target);
|
|
47
|
+
if (!adapter.isSupported || observed.has(target)) return;
|
|
48
|
+
adapter.observe(target);
|
|
49
|
+
observed.add(target);
|
|
50
|
+
observedCount.value = observed.size;
|
|
51
|
+
},
|
|
52
|
+
unobserve: (target) => {
|
|
53
|
+
assertUsable();
|
|
54
|
+
if (!observed.delete(target)) return;
|
|
55
|
+
adapter.unobserve(target);
|
|
56
|
+
observedCount.value = observed.size;
|
|
57
|
+
},
|
|
58
|
+
disconnect,
|
|
59
|
+
dispose: () => {
|
|
60
|
+
if (disposed) return;
|
|
61
|
+
disconnect();
|
|
62
|
+
disposed = true;
|
|
63
|
+
adapter.release();
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/** Create an SSR-safe `ResizeObserver` wrapper. Observation no-ops without platform support. */
|
|
68
|
+
function createSizeObserver(options) {
|
|
69
|
+
assertCallback("onResize", options.onResize);
|
|
70
|
+
const box = options.box ?? "border-box";
|
|
71
|
+
if (!boxes.has(box)) throw new TypeError(`${invalidOptionDiagnostic}: box must be border-box or content-box`);
|
|
72
|
+
const Observer = typeof globalThis.ResizeObserver === "function" ? ResizeObserver : null;
|
|
73
|
+
const isSupported = Observer !== null;
|
|
74
|
+
let observer = null;
|
|
75
|
+
const lifecycle = createObservationLifecycle({
|
|
76
|
+
isSupported,
|
|
77
|
+
observe(target) {
|
|
78
|
+
if (!Observer) return;
|
|
79
|
+
observer ??= new Observer((entries) => lifecycle.translate(entries));
|
|
80
|
+
observer.observe(target, { box });
|
|
81
|
+
},
|
|
82
|
+
unobserve(target) {
|
|
83
|
+
observer?.unobserve(target);
|
|
84
|
+
},
|
|
85
|
+
translate(entries) {
|
|
86
|
+
const changes = [];
|
|
87
|
+
for (const entry of entries) {
|
|
88
|
+
if (!lifecycle.isObserved(entry.target)) continue;
|
|
89
|
+
changes.push(Object.freeze({
|
|
90
|
+
target: entry.target,
|
|
91
|
+
...readBoxSize(entry, box)
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
if (changes.length > 0) options.onResize(Object.freeze(changes));
|
|
95
|
+
},
|
|
96
|
+
release() {
|
|
97
|
+
observer?.disconnect();
|
|
98
|
+
observer = null;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
return Object.freeze({
|
|
102
|
+
isSupported,
|
|
103
|
+
observedCount: lifecycle.observedCount,
|
|
104
|
+
observe: lifecycle.observe,
|
|
105
|
+
unobserve: lifecycle.unobserve,
|
|
106
|
+
disconnect: lifecycle.disconnect,
|
|
107
|
+
dispose: lifecycle.dispose
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/** Create an SSR-safe `IntersectionObserver` wrapper. Observation no-ops without support. */
|
|
111
|
+
function createVisibilityObserver(options) {
|
|
112
|
+
assertCallback("onVisibilityChange", options.onVisibilityChange);
|
|
113
|
+
const Observer = typeof globalThis.IntersectionObserver === "function" ? IntersectionObserver : null;
|
|
114
|
+
const isSupported = Observer !== null;
|
|
115
|
+
let observer = null;
|
|
116
|
+
const lifecycle = createObservationLifecycle({
|
|
117
|
+
isSupported,
|
|
118
|
+
observe(target) {
|
|
119
|
+
if (!Observer) return;
|
|
120
|
+
observer ??= new Observer((entries) => lifecycle.translate(entries), {
|
|
121
|
+
root: options.root ?? null,
|
|
122
|
+
rootMargin: options.rootMargin ?? "0px",
|
|
123
|
+
threshold: options.threshold ?? 0
|
|
124
|
+
});
|
|
125
|
+
observer.observe(target);
|
|
126
|
+
},
|
|
127
|
+
unobserve(target) {
|
|
128
|
+
observer?.unobserve(target);
|
|
129
|
+
},
|
|
130
|
+
translate(entries) {
|
|
131
|
+
const changes = [];
|
|
132
|
+
for (const entry of entries) {
|
|
133
|
+
if (!lifecycle.isObserved(entry.target)) continue;
|
|
134
|
+
changes.push(Object.freeze({
|
|
135
|
+
target: entry.target,
|
|
136
|
+
isIntersecting: entry.isIntersecting,
|
|
137
|
+
intersectionRatio: entry.intersectionRatio
|
|
138
|
+
}));
|
|
139
|
+
}
|
|
140
|
+
if (changes.length > 0) options.onVisibilityChange(Object.freeze(changes));
|
|
141
|
+
},
|
|
142
|
+
release() {
|
|
143
|
+
observer?.disconnect();
|
|
144
|
+
observer = null;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
return Object.freeze({
|
|
148
|
+
isSupported,
|
|
149
|
+
observedCount: lifecycle.observedCount,
|
|
150
|
+
observe: lifecycle.observe,
|
|
151
|
+
unobserve: lifecycle.unobserve,
|
|
152
|
+
disconnect: lifecycle.disconnect,
|
|
153
|
+
dispose: lifecycle.dispose
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
function bindToScope(controller) {
|
|
157
|
+
if (!getCurrentScope()) throw new Error(`${setupDiagnostic}: use inside component setup or an active effect scope`);
|
|
158
|
+
onScopeDispose(controller.dispose);
|
|
159
|
+
return controller;
|
|
160
|
+
}
|
|
161
|
+
/** Create a size observer disposed with the current Vue effect scope. */
|
|
162
|
+
function useSizeObserver(options) {
|
|
163
|
+
return bindToScope(createSizeObserver(options));
|
|
164
|
+
}
|
|
165
|
+
/** Create a visibility observer disposed with the current Vue effect scope. */
|
|
166
|
+
function useVisibilityObserver(options) {
|
|
167
|
+
return bindToScope(createVisibilityObserver(options));
|
|
168
|
+
}
|
|
169
|
+
//#endregion
|
|
170
|
+
export { useVisibilityObserver as i, createVisibilityObserver as n, useSizeObserver as r, createSizeObserver as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as SizeObserverController, c as VisibilityObserverController, i as useVisibilityObserver, l as VisibilityObserverEntry, n as createVisibilityObserver, o as SizeObserverEntry, r as useSizeObserver, s as SizeObserverOptions, t as createSizeObserver, u as VisibilityObserverOptions } from "./measure-4I0YOAXD.mjs";
|
|
2
|
+
export { type SizeObserverController, type SizeObserverEntry, type SizeObserverOptions, type VisibilityObserverController, type VisibilityObserverEntry, type VisibilityObserverOptions, createSizeObserver, createVisibilityObserver, useSizeObserver, useVisibilityObserver };
|
package/dist/measure.mjs
ADDED
package/dist/media-pdf.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createPDFSource, t as CreatePDFSourceOptions } from "./pdf-source-
|
|
1
|
+
import { n as createPDFSource, t as CreatePDFSourceOptions } from "./pdf-source-adS6ZSmR.mjs";
|
|
2
2
|
export { type CreatePDFSourceOptions, createPDFSource };
|
package/dist/media-pdf.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createPDFSource } from "./pdf-source-
|
|
1
|
+
import { t as createPDFSource } from "./pdf-source-B5JSDKkQ.mjs";
|
|
2
2
|
export { createPDFSource };
|
package/dist/media-source.d.mts
CHANGED
package/dist/media-source.mjs
CHANGED
package/dist/media.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MediaSourceKind, NormalizeMediaSourceOptions, normalizeMediaSource } from "./media-source.mjs";
|
|
2
|
-
import { n as createPDFSource, t as CreatePDFSourceOptions } from "./pdf-source-
|
|
2
|
+
import { n as createPDFSource, t as CreatePDFSourceOptions } from "./pdf-source-adS6ZSmR.mjs";
|
|
3
3
|
export { type CreatePDFSourceOptions, type MediaSourceKind, type NormalizeMediaSourceOptions, createPDFSource, normalizeMediaSource };
|
package/dist/media.mjs
CHANGED