@vizejs/ui 0.387.0 → 0.388.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alert-BX93FNvj.d.mts +92 -0
- package/dist/alert-DvhiFK_R.mjs +92 -0
- package/dist/alert-dialog-D9tqXQ_Q.mjs +176 -0
- package/dist/alert-dialog.d.mts +2 -0
- package/dist/alert-dialog.mjs +3 -0
- package/dist/alert.d.mts +2 -0
- package/dist/alert.mjs +2 -0
- package/dist/announcer-CW079p2E.mjs +258 -0
- package/dist/announcer-DGr2Iz0i.d.mts +6829 -0
- package/dist/announcer.d.mts +2 -0
- package/dist/announcer.mjs +2 -0
- package/dist/aspect-ratio-DDqVT6Hg.d.mts +62 -0
- package/dist/aspect-ratio-_HLW6_5i.mjs +63 -0
- package/dist/aspect-ratio.d.mts +2 -0
- package/dist/aspect-ratio.mjs +2 -0
- package/dist/avatar-6fQfQ-1x.mjs +195 -0
- package/dist/avatar.d.mts +2 -0
- package/dist/avatar.mjs +2 -0
- package/dist/badge-BTOyu4i6.mjs +53 -0
- package/dist/badge.d.mts +2 -0
- package/dist/badge.mjs +2 -0
- package/dist/banner-CYiSiZJW.mjs +288 -0
- package/dist/banner.d.mts +2 -0
- package/dist/banner.mjs +2 -0
- package/dist/block-ui-Bd2m1m3K.mjs +111 -0
- package/dist/block-ui.d.mts +2 -0
- package/dist/block-ui.mjs +2 -0
- package/dist/blockquote-eTqp3b_r.mjs +65 -0
- package/dist/blockquote.d.mts +2 -0
- package/dist/blockquote.mjs +2 -0
- package/dist/breadcrumb-BvuPBfkj.mjs +212 -0
- package/dist/breadcrumb-Cdyh20z-.d.mts +202 -0
- package/dist/breadcrumb.d.mts +2 -0
- package/dist/breadcrumb.mjs +2 -0
- package/dist/{button-DYg1mIIq.d.mts → button-Dye0M41O.d.mts} +3 -3
- package/dist/{button-DT8AKlds.mjs → button-VVxUavbS.mjs} +6 -6
- package/dist/button-group-C_mR0Jfw.d.mts +137 -0
- package/dist/button-group-DyQbTCnY.mjs +418 -0
- package/dist/button-group.d.mts +2 -0
- package/dist/button-group.mjs +2 -0
- package/dist/button.d.mts +1 -1
- package/dist/button.mjs +2 -2
- package/dist/callout-DAu-98Ti.mjs +277 -0
- package/dist/callout.d.mts +2 -0
- package/dist/callout.mjs +2 -0
- package/dist/card-D94n04s5.mjs +66 -0
- package/dist/card.d.mts +2 -0
- package/dist/card.mjs +2 -0
- package/dist/catalog.d.mts +2112 -302
- package/dist/catalog.mjs +3831 -433
- package/dist/{checkbox-BgIvwjyC.mjs → checkbox-bM5y7vH8.mjs} +8 -8
- package/dist/checkbox.d.mts +1 -1
- package/dist/checkbox.mjs +2 -2
- package/dist/cluster-BWF028Xt.d.mts +133 -0
- package/dist/cluster-BydJTp9X.mjs +149 -0
- package/dist/cluster.d.mts +2 -0
- package/dist/cluster.mjs +2 -0
- package/dist/code-D93YXaeJ.mjs +66 -0
- package/dist/code.d.mts +2 -0
- package/dist/code.mjs +2 -0
- package/dist/collapsible-Cra5y_if.mjs +269 -0
- package/dist/collapsible.d.mts +2 -0
- package/dist/collapsible.mjs +2 -0
- package/dist/{collection-B_dFZOHO.d.mts → collection-BaPf8lgw.d.mts} +3 -3
- package/dist/{collection-eHN150dT.mjs → collection-Cncgrq4U.mjs} +5 -5
- package/dist/collection.d.mts +1 -1
- package/dist/collection.mjs +1 -1
- package/dist/command-CAH0yrMT.d.mts +105 -0
- package/dist/command.d.mts +2 -0
- package/dist/command.mjs +123 -0
- package/dist/{composite-navigation-Skx3LZsv.mjs → composite-navigation-D6WKS_BY.mjs} +4 -4
- package/dist/{composite-navigation-QINW9GLy.d.mts → composite-navigation-i7ocwmio.d.mts} +4 -4
- package/dist/composite-navigation.d.mts +1 -1
- package/dist/composite-navigation.mjs +1 -1
- package/dist/container-5lSCSbeX.mjs +113 -0
- package/dist/container-CYSiwCA-.d.mts +99 -0
- package/dist/container.d.mts +2 -0
- package/dist/container.mjs +2 -0
- package/dist/context-7SpwFHtK.d.mts +25 -0
- package/dist/context.d.mts +1 -24
- package/dist/context.mjs +1 -1
- package/dist/{controllable-state-BtoxKahh.d.mts → controllable-state-CZZF9Pw5.d.mts} +1 -1
- package/dist/controllable-state.d.mts +1 -1
- package/dist/controllable-state.mjs +1 -1
- package/dist/copy-button-BH2em7nG.mjs +212 -0
- package/dist/copy-button.d.mts +2 -0
- package/dist/copy-button.mjs +2 -0
- package/dist/{id-BV9AJ3cm.d.mts → deterministic-id-DYQJ7KzM.d.mts} +2 -35
- package/dist/{id-mziSyAse.mjs → deterministic-id-yMq4HfmS.mjs} +3 -46
- package/dist/dialog-trigger-ppGKikEP.mjs +717 -0
- package/dist/dialog.d.mts +2 -0
- package/dist/dialog.mjs +2 -0
- package/dist/{dismissable-layer-4icKahVs.d.mts → dismissable-layer-CTWSFZwj.d.mts} +2 -2
- package/dist/{dismissable-layer-CwG1gtdz.mjs → dismissable-layer-CpS07KUV.mjs} +3 -3
- package/dist/dismissable-layer.d.mts +1 -1
- package/dist/dismissable-layer.mjs +1 -1
- package/dist/drag-and-drop-BjYgWGcG.mjs +918 -0
- package/dist/drag-and-drop-CagE25Kt.d.mts +47 -0
- package/dist/drag-and-drop-controller-types-DoTSR_aM.d.mts +304 -0
- package/dist/drag-and-drop.d.mts +3 -0
- package/dist/drag-and-drop.mjs +2 -0
- package/dist/empty-state-DtyOxCA4.mjs +73 -0
- package/dist/empty-state.d.mts +2 -0
- package/dist/empty-state.mjs +2 -0
- package/dist/error-summary-6Xis_769.d.mts +65 -0
- package/dist/error-summary-DMe4IlM9.mjs +209 -0
- package/dist/error-summary-types-5ePaC9O3.d.mts +74 -0
- package/dist/error-summary.d.mts +3 -0
- package/dist/error-summary.mjs +2 -0
- package/dist/field-CBs2-Z9B.mjs +254 -0
- package/dist/field-WWPaJT1x.d.mts +235 -0
- package/dist/field-wiring-9Fy-G1rf.d.mts +14 -0
- package/dist/field-wiring-runtime-fQ3GoLuG.mjs +64 -0
- package/dist/field-wiring-types-Bfyis5hO.d.mts +73 -0
- package/dist/field-wiring.d.mts +3 -0
- package/dist/field-wiring.mjs +2 -0
- package/dist/field.d.mts +2 -0
- package/dist/field.mjs +2 -0
- package/dist/{focus-CAWi_I-0.mjs → focus-XxVWOwbs.mjs} +3 -3
- package/dist/{focus-K6dOifoZ.d.mts → focus-eObxGOtP.d.mts} +2 -2
- package/dist/{focus-guards-Bt0C-0qS.d.mts → focus-guards-BZa7vm6O.d.mts} +2 -2
- package/dist/{focus-guards-DhMPQAT8.mjs → focus-guards-DSxiemx7.mjs} +4 -4
- package/dist/focus-guards.d.mts +1 -1
- package/dist/focus-guards.mjs +1 -1
- package/dist/{focus-scope-CavhKWx0.d.mts → focus-scope-CsnioDR4.d.mts} +3 -3
- package/dist/{focus-scope-dom-DBwNEWxG.mjs → focus-scope-dom-L_EC5GsX.mjs} +2 -2
- package/dist/{focus-scope-D9U1aj67.mjs → focus-scope-mEg8UoeE.mjs} +5 -5
- package/dist/focus-scope.d.mts +1 -1
- package/dist/focus-scope.mjs +1 -1
- package/dist/focus.d.mts +1 -1
- package/dist/focus.mjs +1 -1
- package/dist/form-1V2V30Sv.d.mts +20 -0
- package/dist/form-runtime-CcMDY0Iq.mjs +166 -0
- package/dist/form-types-DXwZRLcs.d.mts +183 -0
- package/dist/form.d.mts +3 -0
- package/dist/form.mjs +2 -0
- package/dist/fullscreen-button-NTbC4R0W.mjs +276 -0
- package/dist/fullscreen-button.d.mts +2 -0
- package/dist/fullscreen-button.mjs +2 -0
- package/dist/grid-BSM9h2dL.d.mts +154 -0
- package/dist/grid-DeC4Wn7Y.mjs +157 -0
- package/dist/grid.d.mts +2 -0
- package/dist/grid.mjs +2 -0
- package/dist/heading-DToVOKV3.mjs +86 -0
- package/dist/heading.d.mts +2 -0
- package/dist/heading.mjs +2 -0
- package/dist/history-BDgNOjcV.mjs +304 -0
- package/dist/history-BkcOSOWb.d.mts +157 -0
- package/dist/history.d.mts +2 -0
- package/dist/history.mjs +2 -0
- package/dist/{hover-BXwwbSaO.d.mts → hover-ZiPRiZkb.d.mts} +2 -2
- package/dist/hover.d.mts +1 -1
- package/dist/hover.mjs +1 -1
- package/dist/icon-DhTTndMu.mjs +233 -0
- package/dist/icon-button-BuXquME1.mjs +188 -0
- package/dist/icon-button.d.mts +2 -0
- package/dist/icon-button.mjs +2 -0
- package/dist/icon.d.mts +2 -0
- package/dist/icon.mjs +2 -0
- package/dist/id-BYG8aXPF.mjs +47 -0
- package/dist/id-Ba8FHjAo.d.mts +34 -0
- package/dist/id.d.mts +2 -1
- package/dist/id.mjs +3 -2
- package/dist/index.d.mts +74 -24
- package/dist/index.mjs +113 -21
- package/dist/{inert-outside-tuHRmaqJ.d.mts → inert-outside-B6KdwAHY.d.mts} +2 -2
- package/dist/{inert-outside-CyqtoKQ4.mjs → inert-outside-DOufBTyy.mjs} +4 -4
- package/dist/inert-outside.d.mts +1 -1
- package/dist/inert-outside.mjs +1 -1
- package/dist/input-Blyx59CR.mjs +256 -0
- package/dist/input-C0fgeRnS.d.mts +159 -0
- package/dist/input.d.mts +2 -0
- package/dist/input.mjs +2 -0
- package/dist/{interaction-modality-DOZK0BpZ.mjs → interaction-modality-BHnjtU4S.mjs} +3 -3
- package/dist/{interaction-modality-jgHKjPFB.d.mts → interaction-modality-BTiZ7j98.d.mts} +2 -2
- package/dist/interaction-modality.d.mts +1 -1
- package/dist/interaction-modality.mjs +1 -1
- package/dist/kbd-sJdXIdIm.mjs +66 -0
- package/dist/kbd.d.mts +2 -0
- package/dist/kbd.mjs +2 -0
- package/dist/link-DDaCjrI5.mjs +154 -0
- package/dist/link-MbRDN6wJ.d.mts +94 -0
- package/dist/link.d.mts +2 -0
- package/dist/link.mjs +2 -0
- package/dist/list-DjyCLVfG.mjs +66 -0
- package/dist/list.d.mts +2 -0
- package/dist/list.mjs +2 -0
- package/dist/listbox-IaqaoiRn.mjs +549 -0
- package/dist/listbox.d.mts +2 -0
- package/dist/listbox.mjs +2 -0
- package/dist/live-region-DYSpwCTk.mjs +48 -0
- package/dist/live-region-G1iobPK5.d.mts +67 -0
- package/dist/live-region-runtime-DVUch8Lu.mjs +62 -0
- package/dist/live-region.d.mts +2 -0
- package/dist/live-region.mjs +3 -0
- package/dist/locale-DzWqhJZs.mjs +206 -0
- package/dist/locale.d.mts +2 -0
- package/dist/locale.mjs +2 -0
- package/dist/{long-press-cll6z2K9.d.mts → long-press-DyYxp191.d.mts} +3 -3
- package/dist/{long-press-Dsul69gk.mjs → long-press-yJk5zK0j.mjs} +4 -4
- package/dist/long-press.d.mts +1 -1
- package/dist/long-press.mjs +1 -1
- package/dist/measure-4I0YOAXD.d.mts +97 -0
- package/dist/measure-runtime-C4qYJp3_.mjs +170 -0
- package/dist/measure.d.mts +2 -0
- package/dist/measure.mjs +2 -0
- package/dist/media-pdf.d.mts +1 -1
- package/dist/media-pdf.mjs +1 -1
- package/dist/media-source.d.mts +1 -1
- package/dist/media-source.mjs +1 -1
- package/dist/media.d.mts +1 -1
- package/dist/media.mjs +1 -1
- package/dist/meter-B3m17_8g.d.mts +174 -0
- package/dist/meter-BwOXVWH8.mjs +243 -0
- package/dist/meter.d.mts +2 -0
- package/dist/meter.mjs +2 -0
- package/dist/motion-OdERKfZR.mjs +174 -0
- package/dist/motion-iUSBdWaI.d.mts +98 -0
- package/dist/motion.d.mts +2 -0
- package/dist/motion.mjs +2 -0
- package/dist/{move-BOmXDYbh.d.mts → move-BJGaV7Y9.d.mts} +2 -2
- package/dist/move-internal-BM_7g70h.mjs +172 -0
- package/dist/move.d.mts +1 -1
- package/dist/move.mjs +216 -1
- package/dist/native-select-H9qvaqQH.mjs +309 -0
- package/dist/native-select.d.mts +2 -0
- package/dist/native-select.mjs +2 -0
- package/dist/pagination-Bs4SBSE4.mjs +791 -0
- package/dist/pagination.d.mts +2 -0
- package/dist/pagination.mjs +2 -0
- package/dist/{pdf-source-zu1LkCeE.mjs → pdf-source-B5JSDKkQ.mjs} +1 -1
- package/dist/{pdf-source-BYFK2Pks.d.mts → pdf-source-adS6ZSmR.d.mts} +1 -1
- package/dist/pointer-grace-CAFcO4om.d.mts +57 -0
- package/dist/pointer-grace-DI0G3oRJ.mjs +162 -0
- package/dist/pointer-grace.d.mts +2 -0
- package/dist/pointer-grace.mjs +2 -0
- package/dist/popover-DeENBKXE.mjs +714 -0
- package/dist/popover.d.mts +2 -0
- package/dist/popover.mjs +2 -0
- package/dist/portal-DeHaLxGL.mjs +114 -0
- package/dist/portal-DhWXejr1.d.mts +71 -0
- package/dist/portal.d.mts +2 -0
- package/dist/portal.mjs +2 -0
- package/dist/positioner-BYJVA3Uy.d.mts +477 -0
- package/dist/positioner-BYmQk86M.mjs +38 -0
- package/dist/positioner-DaPo2YxM.mjs +708 -0
- package/dist/positioner.d.mts +2 -0
- package/dist/positioner.mjs +3 -0
- package/dist/presence-Bhv1qtvn.d.mts +57 -0
- package/dist/presence-CTG1EV3w.mjs +62 -0
- package/dist/presence-runtime-CYwCafSh.mjs +105 -0
- package/dist/presence-types-CRB4HbML.d.mts +45 -0
- package/dist/presence.d.mts +3 -0
- package/dist/presence.mjs +3 -0
- package/dist/{press-N_mE3Mgx.mjs → press-BjLm6bKg.mjs} +6 -6
- package/dist/press-R0_juZq2.d.mts +14 -0
- package/dist/{press-event-Cd2OPpmw.mjs → press-event-xlWYF9py.mjs} +1 -1
- package/dist/{press-types-CNqStzJf.d.mts → press-types-DfTNpqby.d.mts} +1 -1
- package/dist/press.d.mts +2 -13
- package/dist/press.mjs +1 -1
- package/dist/{primitive-C8jW7DLd.d.mts → primitive-BE2mdUcw.d.mts} +2 -2
- package/dist/{primitive-BX31dogp.mjs → primitive-beb2EEOc.mjs} +5 -5
- package/dist/primitive.d.mts +1 -1
- package/dist/primitive.mjs +2 -2
- package/dist/print-button-FqD5HqTV.mjs +206 -0
- package/dist/print-button.d.mts +2 -0
- package/dist/print-button.mjs +2 -0
- package/dist/progress--vbV2wTx.mjs +145 -0
- package/dist/progress-C4PlKwWq.d.mts +128 -0
- package/dist/progress-bar-BqS94auR.mjs +301 -0
- package/dist/progress-bar.d.mts +2 -0
- package/dist/progress-bar.mjs +2 -0
- package/dist/progress.d.mts +2 -0
- package/dist/progress.mjs +2 -0
- package/dist/radio-group-DbTmWcxl.mjs +317 -0
- package/dist/radio-group.d.mts +2 -0
- package/dist/radio-group.mjs +2 -0
- package/dist/rating-BjKLGPP6.mjs +569 -0
- package/dist/rating-souDdL9t.d.mts +273 -0
- package/dist/rating.d.mts +2 -0
- package/dist/rating.mjs +2 -0
- package/dist/scroll-area-BRSwoi9w.mjs +338 -0
- package/dist/scroll-area.d.mts +2 -0
- package/dist/scroll-area.mjs +2 -0
- package/dist/{scroll-lock-Ckbmm0-J.mjs → scroll-lock-BcmK0baN.mjs} +4 -4
- package/dist/{scroll-lock-BgVtX4wT.d.mts → scroll-lock-OfSQnfi0.d.mts} +2 -2
- package/dist/scroll-lock.d.mts +1 -1
- package/dist/scroll-lock.mjs +1 -1
- package/dist/search-field-70Kr2616.mjs +319 -0
- package/dist/search-field-Biw9vApG.d.mts +158 -0
- package/dist/search-field.d.mts +2 -0
- package/dist/search-field.mjs +2 -0
- package/dist/separator-CnNDqbdR.d.mts +59 -0
- package/dist/separator-DDj3tEAz.mjs +66 -0
- package/dist/separator.d.mts +2 -0
- package/dist/separator.mjs +2 -0
- package/dist/share-button-DfvUDFC-.mjs +243 -0
- package/dist/share-button.d.mts +2 -0
- package/dist/share-button.mjs +2 -0
- package/dist/shortcut-CvA_o0_F.mjs +631 -0
- package/dist/shortcut-DAZJ9LEd.d.mts +231 -0
- package/dist/shortcut.d.mts +2 -0
- package/dist/shortcut.mjs +2 -0
- package/dist/skeleton-BYXXcwTH.mjs +101 -0
- package/dist/skeleton-CQW-Tsnt.d.mts +99 -0
- package/dist/skeleton.d.mts +2 -0
- package/dist/skeleton.mjs +2 -0
- package/dist/skip-link-BUp9HXXt.mjs +164 -0
- package/dist/skip-link-DHDrtnP2.d.mts +98 -0
- package/dist/skip-link.d.mts +2 -0
- package/dist/skip-link.mjs +2 -0
- package/dist/slider-BiZSZLDp.mjs +475 -0
- package/dist/slider-CYBbxeNy.d.mts +246 -0
- package/dist/slider.d.mts +2 -0
- package/dist/slider.mjs +2 -0
- package/dist/sortable-BntjgYra.mjs +499 -0
- package/dist/sortable-DQl92bwo.d.mts +206 -0
- package/dist/sortable.d.mts +2 -0
- package/dist/sortable.mjs +2 -0
- package/dist/spacer-Bc0dInvi.mjs +117 -0
- package/dist/spacer-DFstG4G-.d.mts +105 -0
- package/dist/spacer.d.mts +2 -0
- package/dist/spacer.mjs +2 -0
- package/dist/{spatial-navigation-CHj9mDZH.d.mts → spatial-navigation-BPVJGSiJ.d.mts} +3 -3
- package/dist/{spatial-navigation-D6-UDavU.mjs → spatial-navigation-DwcUYMyc.mjs} +2 -2
- package/dist/spatial-navigation.d.mts +1 -1
- package/dist/spatial-navigation.mjs +1 -1
- package/dist/spinner-JnRs8fp-.d.mts +155 -0
- package/dist/spinner-bizL-oOg.mjs +200 -0
- package/dist/spinner.d.mts +2 -0
- package/dist/spinner.mjs +2 -0
- package/dist/stack-C7DOIxo-.mjs +137 -0
- package/dist/stack-CPtBckZB.d.mts +127 -0
- package/dist/stack.d.mts +2 -0
- package/dist/stack.mjs +2 -0
- package/dist/status-light-BGWgQRRf.mjs +125 -0
- package/dist/status-light.d.mts +2 -0
- package/dist/status-light.mjs +2 -0
- package/dist/stepper-CwX6BZaN.mjs +912 -0
- package/dist/stepper.d.mts +2 -0
- package/dist/stepper.mjs +2 -0
- package/dist/style.css +1 -1
- package/dist/surface-C2fnxL3g.mjs +102 -0
- package/dist/surface.d.mts +2 -0
- package/dist/surface.mjs +2 -0
- package/dist/switch-Ck5YmfXb.mjs +197 -0
- package/dist/switch.d.mts +2 -0
- package/dist/switch.mjs +2 -0
- package/dist/table-BxU7htxc.mjs +349 -0
- package/dist/table-Ce3yWwlH.d.mts +415 -0
- package/dist/table.d.mts +2 -0
- package/dist/table.mjs +2 -0
- package/dist/tabs-DSXIomI_.mjs +595 -0
- package/dist/tabs.d.mts +2 -0
- package/dist/tabs.mjs +2 -0
- package/dist/text-BVeNKPiv.mjs +76 -0
- package/dist/text.d.mts +2 -0
- package/dist/text.mjs +2 -0
- package/dist/textarea-4eIDNcvv.d.mts +175 -0
- package/dist/textarea-BZimEPBR.mjs +279 -0
- package/dist/textarea.d.mts +2 -0
- package/dist/textarea.mjs +2 -0
- package/dist/theme-C8Crmb8V.mjs +139 -0
- package/dist/theme-CNK06Pja.d.mts +38 -0
- package/dist/theme-constants-DAwnxG-P.mjs +29 -0
- package/dist/theme-preset-atelier.css +1 -0
- package/dist/theme-preset-headless.css +1 -0
- package/dist/theme-preset-high-contrast.css +1 -0
- package/dist/theme-preset-midnight.css +1 -0
- package/dist/theme-preset-paper.css +1 -0
- package/dist/theme-preset-play.css +1 -0
- package/dist/theme-preset-signal.css +1 -0
- package/dist/theme-scope.d.mts +25 -0
- package/dist/theme-scope.mjs +89 -0
- package/dist/theme-types-CkIa4Sa3.d.mts +71 -0
- package/dist/theme.css +1 -0
- package/dist/theme.d.mts +3 -0
- package/dist/theme.mjs +3 -0
- package/dist/toggle-CBTXzwze.mjs +141 -0
- package/dist/toggle-group-DO7eGEs3.d.mts +147 -0
- package/dist/toggle-group-DybU9N7k.mjs +523 -0
- package/dist/toggle-group.d.mts +2 -0
- package/dist/toggle-group.mjs +2 -0
- package/dist/toggle.d.mts +2 -0
- package/dist/toggle.mjs +2 -0
- package/dist/toolbar-CIU1bor0.d.mts +259 -0
- package/dist/toolbar-CXE8YCX-.mjs +425 -0
- package/dist/toolbar.d.mts +2 -0
- package/dist/toolbar.mjs +2 -0
- package/dist/tooltip-Cgii5xMx.mjs +485 -0
- package/dist/tooltip.d.mts +2 -0
- package/dist/tooltip.mjs +2 -0
- package/dist/transition-BmgFyzA6.mjs +168 -0
- package/dist/transition-BtIWNEFU.d.mts +82 -0
- package/dist/transition.d.mts +2 -0
- package/dist/transition.mjs +2 -0
- package/dist/{typeahead-B7KDxE_u.mjs → typeahead-DZSBI5m5.mjs} +2 -2
- package/dist/{typeahead-BbgUB2Bj.d.mts → typeahead-Dl6w5PAN.d.mts} +3 -3
- package/dist/typeahead.d.mts +1 -1
- package/dist/typeahead.mjs +1 -1
- package/dist/virtualizer-BlxKjT3W.mjs +793 -0
- package/dist/virtualizer-D9qfT4wS.d.mts +349 -0
- package/dist/virtualizer.d.mts +2 -0
- package/dist/virtualizer.mjs +2 -0
- package/dist/{visually-hidden-BOqfqBFt.d.mts → visually-hidden-CUr9BX0K.d.mts} +1 -1
- package/dist/{visually-hidden-BwDOx5yf.mjs → visually-hidden-SDjRJYRK.mjs} +5 -5
- package/dist/visually-hidden.d.mts +1 -1
- package/dist/visually-hidden.mjs +2 -2
- package/package.json +426 -7
- package/dist/checkbox-DP3_ko7D.d.mts +0 -61
- package/dist/move-BVvMHzxr.mjs +0 -386
|
@@ -0,0 +1,717 @@
|
|
|
1
|
+
import { a as useDeterministicId, i as toDeterministicId, n as deriveDeterministicId } from "./deterministic-id-yMq4HfmS.mjs";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
3
|
+
import { createContext } from "./context.mjs";
|
|
4
|
+
import { useControllableState } from "./controllable-state.mjs";
|
|
5
|
+
import { t as createDismissableLayer } from "./dismissable-layer-CpS07KUV.mjs";
|
|
6
|
+
import { t as createFocusScope } from "./focus-scope-mEg8UoeE.mjs";
|
|
7
|
+
import { t as createFocusGuards } from "./focus-guards-DSxiemx7.mjs";
|
|
8
|
+
import { t as createInertOutside } from "./inert-outside-DOufBTyy.mjs";
|
|
9
|
+
import { t as createScrollLock } from "./scroll-lock-BcmK0baN.mjs";
|
|
10
|
+
import { t as portal_default } from "./portal-DeHaLxGL.mjs";
|
|
11
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, guardReactiveProps, mergeProps, normalizeProps, onMounted, onUnmounted, openBlock, renderSlot, resolveDynamicComponent, shallowRef, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
12
|
+
//#region src/families/overlays/dialog/dialog-context.ts
|
|
13
|
+
const dialogContext = createContext("Dialog");
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/families/overlays/dialog/dialog-root.vue?vue&type=script&setup=true&lang.ts
|
|
16
|
+
const _hoisted_1$5 = [
|
|
17
|
+
"id",
|
|
18
|
+
"data-state",
|
|
19
|
+
"data-modal"
|
|
20
|
+
];
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/families/overlays/dialog/dialog-root.vue
|
|
23
|
+
var dialog_root_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
24
|
+
__name: "dialog-root",
|
|
25
|
+
props: {
|
|
26
|
+
id: {
|
|
27
|
+
type: [String, null],
|
|
28
|
+
required: false,
|
|
29
|
+
default: () => void 0
|
|
30
|
+
},
|
|
31
|
+
open: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
required: false,
|
|
34
|
+
default: () => void 0
|
|
35
|
+
},
|
|
36
|
+
defaultOpen: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
required: false,
|
|
39
|
+
default: false
|
|
40
|
+
},
|
|
41
|
+
modal: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
required: false,
|
|
44
|
+
default: true
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
emits: ["update:open", "open-change"],
|
|
48
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
49
|
+
const emit = __emit;
|
|
50
|
+
const openState = useControllableState({
|
|
51
|
+
value: () => __props.open,
|
|
52
|
+
defaultValue: () => __props.defaultOpen
|
|
53
|
+
});
|
|
54
|
+
const isOpen = openState.value;
|
|
55
|
+
const modalState = computed(() => __props.modal);
|
|
56
|
+
const state = computed(() => isOpen.value ? "open" : "closed");
|
|
57
|
+
const baseId = useDeterministicId({
|
|
58
|
+
id: () => __props.id,
|
|
59
|
+
hint: "dialog"
|
|
60
|
+
});
|
|
61
|
+
const contentId = computed(() => deriveDeterministicId(baseId.value, "content"));
|
|
62
|
+
const titleId = computed(() => deriveDeterministicId(baseId.value, "title"));
|
|
63
|
+
const descriptionId = computed(() => deriveDeterministicId(baseId.value, "description"));
|
|
64
|
+
const slotState = computed(() => ({
|
|
65
|
+
modal: modalState.value,
|
|
66
|
+
open: isOpen.value,
|
|
67
|
+
state: state.value
|
|
68
|
+
}));
|
|
69
|
+
const triggerElement = shallowRef(null);
|
|
70
|
+
const overlayElement = shallowRef(null);
|
|
71
|
+
const contentElement = shallowRef(null);
|
|
72
|
+
function setOpen(value, nativeEvent = null) {
|
|
73
|
+
const previous = isOpen.value;
|
|
74
|
+
const changed = openState.set(value);
|
|
75
|
+
if (changed) {
|
|
76
|
+
emit("update:open", value);
|
|
77
|
+
emit("open-change", value, previous, nativeEvent);
|
|
78
|
+
}
|
|
79
|
+
return changed;
|
|
80
|
+
}
|
|
81
|
+
const context = dialogContext.provide({
|
|
82
|
+
id: baseId,
|
|
83
|
+
contentId,
|
|
84
|
+
titleId,
|
|
85
|
+
descriptionId,
|
|
86
|
+
open: isOpen,
|
|
87
|
+
modal: modalState,
|
|
88
|
+
state,
|
|
89
|
+
triggerElement,
|
|
90
|
+
overlayElement,
|
|
91
|
+
contentElement,
|
|
92
|
+
setOpen,
|
|
93
|
+
openDialog: (nativeEvent = null) => setOpen(true, nativeEvent),
|
|
94
|
+
close: (nativeEvent = null) => setOpen(false, nativeEvent),
|
|
95
|
+
toggle: (nativeEvent = null) => setOpen(!isOpen.value, nativeEvent)
|
|
96
|
+
});
|
|
97
|
+
__expose({
|
|
98
|
+
close: context.close,
|
|
99
|
+
contentId,
|
|
100
|
+
descriptionId,
|
|
101
|
+
id: baseId,
|
|
102
|
+
modal: modalState,
|
|
103
|
+
open: isOpen,
|
|
104
|
+
openDialog: context.openDialog,
|
|
105
|
+
setOpen,
|
|
106
|
+
state,
|
|
107
|
+
titleId,
|
|
108
|
+
toggle: context.toggle
|
|
109
|
+
});
|
|
110
|
+
return (_ctx, _cache) => {
|
|
111
|
+
return openBlock(), createElementBlock("div", {
|
|
112
|
+
id: unref(baseId),
|
|
113
|
+
"data-vize-ui": "dialog-root",
|
|
114
|
+
part: "root",
|
|
115
|
+
"data-state": state.value,
|
|
116
|
+
"data-modal": __props.modal ? "true" : "false"
|
|
117
|
+
}, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 8, _hoisted_1$5);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}), [["__scopeId", "data-v-80143516"]]);
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region src/families/overlays/dialog/dialog-close.vue?vue&type=script&setup=true&lang.ts
|
|
123
|
+
const _hoisted_1$4 = [
|
|
124
|
+
"type",
|
|
125
|
+
"disabled",
|
|
126
|
+
"aria-label",
|
|
127
|
+
"data-state",
|
|
128
|
+
"data-disabled"
|
|
129
|
+
];
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/families/overlays/dialog/dialog-close.vue
|
|
132
|
+
var dialog_close_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
133
|
+
__name: "dialog-close",
|
|
134
|
+
props: {
|
|
135
|
+
type: {
|
|
136
|
+
type: String,
|
|
137
|
+
required: false,
|
|
138
|
+
default: "button"
|
|
139
|
+
},
|
|
140
|
+
disabled: {
|
|
141
|
+
type: Boolean,
|
|
142
|
+
required: false,
|
|
143
|
+
default: false
|
|
144
|
+
},
|
|
145
|
+
ariaLabel: {
|
|
146
|
+
type: String,
|
|
147
|
+
required: false,
|
|
148
|
+
default: () => void 0
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
emits: ["click"],
|
|
152
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
153
|
+
const emit = __emit;
|
|
154
|
+
const context = dialogContext.use();
|
|
155
|
+
const element = useTemplateRef("element");
|
|
156
|
+
function onClick(event) {
|
|
157
|
+
if (__props.disabled) {
|
|
158
|
+
event.preventDefault();
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
emit("click", event);
|
|
162
|
+
if (!event.defaultPrevented) context.close(event);
|
|
163
|
+
}
|
|
164
|
+
function focus(options) {
|
|
165
|
+
element.value?.focus(options);
|
|
166
|
+
}
|
|
167
|
+
__expose({
|
|
168
|
+
element,
|
|
169
|
+
focus
|
|
170
|
+
});
|
|
171
|
+
return (_ctx, _cache) => {
|
|
172
|
+
return openBlock(), createElementBlock("button", {
|
|
173
|
+
ref_key: "element",
|
|
174
|
+
ref: element,
|
|
175
|
+
type: __props.type,
|
|
176
|
+
disabled: __props.disabled,
|
|
177
|
+
"aria-label": __props.ariaLabel,
|
|
178
|
+
"data-vize-ui": "dialog-close",
|
|
179
|
+
part: "close",
|
|
180
|
+
"data-state": unref(context).state.value,
|
|
181
|
+
"data-disabled": __props.disabled ? "true" : void 0,
|
|
182
|
+
onClick
|
|
183
|
+
}, [renderSlot(_ctx.$slots, "default", {
|
|
184
|
+
disabled: __props.disabled,
|
|
185
|
+
modal: unref(context).modal.value,
|
|
186
|
+
open: unref(context).open.value,
|
|
187
|
+
state: unref(context).state.value
|
|
188
|
+
}, void 0, true)], 8, _hoisted_1$4);
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}), [["__scopeId", "data-v-911db0ed"]]);
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/families/overlays/dialog/dialog-content.vue?vue&type=script&setup=true&lang.ts
|
|
194
|
+
const _hoisted_1$3 = ["hidden", "data-state"];
|
|
195
|
+
const _hoisted_2$1 = [
|
|
196
|
+
"id",
|
|
197
|
+
"role",
|
|
198
|
+
"aria-modal",
|
|
199
|
+
"aria-label",
|
|
200
|
+
"aria-labelledby",
|
|
201
|
+
"aria-describedby",
|
|
202
|
+
"data-state",
|
|
203
|
+
"data-modal",
|
|
204
|
+
"data-top-layer"
|
|
205
|
+
];
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/families/overlays/dialog/dialog-content.vue
|
|
208
|
+
var dialog_content_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
209
|
+
__name: "dialog-content",
|
|
210
|
+
props: {
|
|
211
|
+
role: {
|
|
212
|
+
type: String,
|
|
213
|
+
required: false,
|
|
214
|
+
default: "dialog"
|
|
215
|
+
},
|
|
216
|
+
forceMount: {
|
|
217
|
+
type: Boolean,
|
|
218
|
+
required: false,
|
|
219
|
+
default: false
|
|
220
|
+
},
|
|
221
|
+
trapFocus: {
|
|
222
|
+
type: Boolean,
|
|
223
|
+
required: false,
|
|
224
|
+
default: true
|
|
225
|
+
},
|
|
226
|
+
autoFocus: {
|
|
227
|
+
type: Boolean,
|
|
228
|
+
required: false,
|
|
229
|
+
default: true
|
|
230
|
+
},
|
|
231
|
+
restoreFocus: {
|
|
232
|
+
type: Boolean,
|
|
233
|
+
required: false,
|
|
234
|
+
default: true
|
|
235
|
+
},
|
|
236
|
+
inertOutside: {
|
|
237
|
+
type: Boolean,
|
|
238
|
+
required: false,
|
|
239
|
+
default: true
|
|
240
|
+
},
|
|
241
|
+
lockScroll: {
|
|
242
|
+
type: Boolean,
|
|
243
|
+
required: false,
|
|
244
|
+
default: true
|
|
245
|
+
},
|
|
246
|
+
closeOnEscape: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
required: false,
|
|
249
|
+
default: true
|
|
250
|
+
},
|
|
251
|
+
closeOnPointerDownOutside: {
|
|
252
|
+
type: Boolean,
|
|
253
|
+
required: false,
|
|
254
|
+
default: true
|
|
255
|
+
},
|
|
256
|
+
closeOnFocusOutside: {
|
|
257
|
+
type: Boolean,
|
|
258
|
+
required: false,
|
|
259
|
+
default: true
|
|
260
|
+
},
|
|
261
|
+
ariaLabel: {
|
|
262
|
+
type: String,
|
|
263
|
+
required: false,
|
|
264
|
+
default: () => void 0
|
|
265
|
+
},
|
|
266
|
+
ariaLabelledby: {
|
|
267
|
+
type: [String, null],
|
|
268
|
+
required: false,
|
|
269
|
+
default: () => void 0
|
|
270
|
+
},
|
|
271
|
+
ariaDescribedby: {
|
|
272
|
+
type: [String, null],
|
|
273
|
+
required: false,
|
|
274
|
+
default: () => void 0
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
emits: [
|
|
278
|
+
"open-auto-focus",
|
|
279
|
+
"close-auto-focus",
|
|
280
|
+
"escape-key-down",
|
|
281
|
+
"pointer-down-outside",
|
|
282
|
+
"focus-outside",
|
|
283
|
+
"interact-outside",
|
|
284
|
+
"dismiss"
|
|
285
|
+
],
|
|
286
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
287
|
+
const emit = __emit;
|
|
288
|
+
const context = dialogContext.use();
|
|
289
|
+
const host = useTemplateRef("host");
|
|
290
|
+
const element = useTemplateRef("element");
|
|
291
|
+
const beforeGuard = useTemplateRef("beforeGuard");
|
|
292
|
+
const afterGuard = useTemplateRef("afterGuard");
|
|
293
|
+
const ownerDocument = shallowRef(null);
|
|
294
|
+
const present = computed(() => context.open.value || __props.forceMount);
|
|
295
|
+
const guarded = computed(() => context.open.value && context.modal.value && __props.trapFocus);
|
|
296
|
+
const ariaLabelledbyValue = computed(() => __props.ariaLabel ? void 0 : __props.ariaLabelledby ?? context.titleId.value);
|
|
297
|
+
const ariaDescribedbyValue = computed(() => __props.ariaDescribedby ?? context.descriptionId.value);
|
|
298
|
+
const slotState = computed(() => ({
|
|
299
|
+
modal: context.modal.value,
|
|
300
|
+
open: context.open.value,
|
|
301
|
+
state: context.state.value
|
|
302
|
+
}));
|
|
303
|
+
const dismissableLayer = createDismissableLayer({
|
|
304
|
+
root: element,
|
|
305
|
+
branches: () => [beforeGuard.value, afterGuard.value].filter((value) => !!value),
|
|
306
|
+
enabled: () => context.open.value,
|
|
307
|
+
escapeKey: () => __props.closeOnEscape,
|
|
308
|
+
outsideFocus: () => __props.closeOnFocusOutside,
|
|
309
|
+
outsidePointerDown: () => __props.closeOnPointerDownOutside,
|
|
310
|
+
onEscapeKeyDown: (event) => emit("escape-key-down", event),
|
|
311
|
+
onFocusOutside: (event) => emit("focus-outside", event),
|
|
312
|
+
onInteractOutside: (event) => emit("interact-outside", event),
|
|
313
|
+
onPointerDownOutside: (event) => emit("pointer-down-outside", event),
|
|
314
|
+
onDismiss: (event) => {
|
|
315
|
+
emit("dismiss", event);
|
|
316
|
+
context.close(event.originalEvent);
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
const focusGuards = createFocusGuards({
|
|
320
|
+
root: element,
|
|
321
|
+
enabled: guarded,
|
|
322
|
+
fallbackFocus: () => element.value
|
|
323
|
+
});
|
|
324
|
+
const focusScope = createFocusScope({
|
|
325
|
+
root: element,
|
|
326
|
+
autoFocus: () => __props.autoFocus,
|
|
327
|
+
contain: guarded,
|
|
328
|
+
restoreFocus: () => __props.restoreFocus,
|
|
329
|
+
restoreTarget: () => context.triggerElement.value,
|
|
330
|
+
fallbackFocus: () => element.value,
|
|
331
|
+
onMountAutoFocus: (event) => emit("open-auto-focus", event),
|
|
332
|
+
onUnmountAutoFocus: (event) => emit("close-auto-focus", event)
|
|
333
|
+
});
|
|
334
|
+
const isolation = createInertOutside({
|
|
335
|
+
root: element,
|
|
336
|
+
branches: () => [context.overlayElement.value].filter((value) => !!value),
|
|
337
|
+
enabled: () => context.open.value && context.modal.value && __props.inertOutside
|
|
338
|
+
});
|
|
339
|
+
const scrollLock = createScrollLock({
|
|
340
|
+
document: ownerDocument,
|
|
341
|
+
enabled: () => context.open.value && context.modal.value && __props.lockScroll
|
|
342
|
+
});
|
|
343
|
+
let mounted = false;
|
|
344
|
+
function activateControllers() {
|
|
345
|
+
scrollLock.activate();
|
|
346
|
+
isolation.activate();
|
|
347
|
+
dismissableLayer.activate();
|
|
348
|
+
focusGuards.activate();
|
|
349
|
+
focusScope.activate();
|
|
350
|
+
}
|
|
351
|
+
function deactivateControllers() {
|
|
352
|
+
dismissableLayer.deactivate();
|
|
353
|
+
focusGuards.deactivate();
|
|
354
|
+
isolation.deactivate();
|
|
355
|
+
scrollLock.deactivate();
|
|
356
|
+
focusScope.deactivate();
|
|
357
|
+
}
|
|
358
|
+
function syncControllers() {
|
|
359
|
+
ownerDocument.value = element.value?.ownerDocument ?? null;
|
|
360
|
+
if (!mounted || !context.open.value || !element.value) {
|
|
361
|
+
deactivateControllers();
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
activateControllers();
|
|
365
|
+
}
|
|
366
|
+
watch(element, (next, previous) => {
|
|
367
|
+
if (previous && context.contentElement.value === previous) context.contentElement.value = null;
|
|
368
|
+
if (next) context.contentElement.value = next;
|
|
369
|
+
syncControllers();
|
|
370
|
+
}, { flush: "post" });
|
|
371
|
+
watch(() => context.open.value, syncControllers, { flush: "post" });
|
|
372
|
+
onMounted(() => {
|
|
373
|
+
mounted = true;
|
|
374
|
+
syncControllers();
|
|
375
|
+
});
|
|
376
|
+
onUnmounted(() => {
|
|
377
|
+
mounted = false;
|
|
378
|
+
deactivateControllers();
|
|
379
|
+
dismissableLayer.dispose();
|
|
380
|
+
focusGuards.dispose();
|
|
381
|
+
focusScope.dispose();
|
|
382
|
+
isolation.dispose();
|
|
383
|
+
scrollLock.dispose();
|
|
384
|
+
if (context.contentElement.value === element.value) context.contentElement.value = null;
|
|
385
|
+
});
|
|
386
|
+
function focusContent(options) {
|
|
387
|
+
element.value?.focus(options);
|
|
388
|
+
}
|
|
389
|
+
__expose({
|
|
390
|
+
element,
|
|
391
|
+
focusContent,
|
|
392
|
+
focusFirst: () => focusScope.focusFirst(),
|
|
393
|
+
modal: context.modal,
|
|
394
|
+
open: context.open,
|
|
395
|
+
state: context.state
|
|
396
|
+
});
|
|
397
|
+
return (_ctx, _cache) => {
|
|
398
|
+
return openBlock(), createElementBlock("div", {
|
|
399
|
+
ref_key: "host",
|
|
400
|
+
ref: host,
|
|
401
|
+
"data-vize-ui": "dialog-content-host",
|
|
402
|
+
part: "content-host",
|
|
403
|
+
hidden: present.value && unref(context).open.value ? void 0 : true,
|
|
404
|
+
"data-state": unref(context).state.value
|
|
405
|
+
}, [
|
|
406
|
+
guarded.value ? (openBlock(), createElementBlock("span", mergeProps({
|
|
407
|
+
key: 0,
|
|
408
|
+
ref_key: "beforeGuard",
|
|
409
|
+
ref: beforeGuard
|
|
410
|
+
}, unref(focusGuards).beforeProps, {
|
|
411
|
+
"data-vize-ui": "dialog-focus-guard",
|
|
412
|
+
part: "focus-guard"
|
|
413
|
+
}), null, 16)) : createCommentVNode("v-if", true),
|
|
414
|
+
present.value ? (openBlock(), createElementBlock("div", mergeProps({
|
|
415
|
+
key: 1,
|
|
416
|
+
id: unref(context).contentId.value,
|
|
417
|
+
ref_key: "element",
|
|
418
|
+
ref: element
|
|
419
|
+
}, unref(dismissableLayer).layerProps, {
|
|
420
|
+
role: __props.role,
|
|
421
|
+
tabindex: "-1",
|
|
422
|
+
"aria-modal": unref(context).modal.value ? "true" : void 0,
|
|
423
|
+
"aria-label": __props.ariaLabel,
|
|
424
|
+
"aria-labelledby": ariaLabelledbyValue.value,
|
|
425
|
+
"aria-describedby": ariaDescribedbyValue.value,
|
|
426
|
+
"data-vize-ui": "dialog-content",
|
|
427
|
+
part: "content",
|
|
428
|
+
"data-state": unref(context).state.value,
|
|
429
|
+
"data-modal": unref(context).modal.value ? "true" : "false",
|
|
430
|
+
"data-top-layer": unref(dismissableLayer).isTopLayer.value ? "true" : "false"
|
|
431
|
+
}), [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 16, _hoisted_2$1)) : createCommentVNode("v-if", true),
|
|
432
|
+
guarded.value ? (openBlock(), createElementBlock("span", mergeProps({
|
|
433
|
+
key: 2,
|
|
434
|
+
ref_key: "afterGuard",
|
|
435
|
+
ref: afterGuard
|
|
436
|
+
}, unref(focusGuards).afterProps, {
|
|
437
|
+
"data-vize-ui": "dialog-focus-guard",
|
|
438
|
+
part: "focus-guard"
|
|
439
|
+
}), null, 16)) : createCommentVNode("v-if", true)
|
|
440
|
+
], 8, _hoisted_1$3);
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
}), [["__scopeId", "data-v-6d824b44"]]);
|
|
444
|
+
//#endregion
|
|
445
|
+
//#region src/families/overlays/dialog/dialog-description.vue
|
|
446
|
+
var dialog_description_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
447
|
+
__name: "dialog-description",
|
|
448
|
+
props: {
|
|
449
|
+
id: {
|
|
450
|
+
type: [String, null],
|
|
451
|
+
required: false,
|
|
452
|
+
default: () => void 0
|
|
453
|
+
},
|
|
454
|
+
as: {
|
|
455
|
+
type: null,
|
|
456
|
+
required: false,
|
|
457
|
+
default: "p"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
setup(__props, { expose: __expose }) {
|
|
461
|
+
const context = dialogContext.use();
|
|
462
|
+
const element = useTemplateRef("element");
|
|
463
|
+
const descriptionId = computed(() => __props.id == null ? context.descriptionId.value : toDeterministicId(__props.id));
|
|
464
|
+
__expose({ element });
|
|
465
|
+
return (_ctx, _cache) => {
|
|
466
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
|
|
467
|
+
id: descriptionId.value,
|
|
468
|
+
ref_key: "element",
|
|
469
|
+
ref: element,
|
|
470
|
+
"data-vize-ui": "dialog-description",
|
|
471
|
+
part: "description"
|
|
472
|
+
}, {
|
|
473
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
474
|
+
_: 3
|
|
475
|
+
}, 8, ["id"]);
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
}), [["__scopeId", "data-v-e5fcee72"]]);
|
|
479
|
+
//#endregion
|
|
480
|
+
//#region src/families/overlays/dialog/dialog-overlay.vue?vue&type=script&setup=true&lang.ts
|
|
481
|
+
const _hoisted_1$2 = ["data-state"];
|
|
482
|
+
const _hoisted_2 = ["hidden", "data-state"];
|
|
483
|
+
//#endregion
|
|
484
|
+
//#region src/families/overlays/dialog/dialog-overlay.vue
|
|
485
|
+
var dialog_overlay_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
486
|
+
__name: "dialog-overlay",
|
|
487
|
+
props: { forceMount: {
|
|
488
|
+
type: Boolean,
|
|
489
|
+
required: false,
|
|
490
|
+
default: false
|
|
491
|
+
} },
|
|
492
|
+
setup(__props, { expose: __expose }) {
|
|
493
|
+
const context = dialogContext.use();
|
|
494
|
+
const element = useTemplateRef("element");
|
|
495
|
+
const present = computed(() => context.open.value || __props.forceMount);
|
|
496
|
+
const slotState = computed(() => ({
|
|
497
|
+
modal: context.modal.value,
|
|
498
|
+
open: context.open.value,
|
|
499
|
+
state: context.state.value
|
|
500
|
+
}));
|
|
501
|
+
watch(element, (next, previous) => {
|
|
502
|
+
if (previous && context.overlayElement.value === previous) context.overlayElement.value = null;
|
|
503
|
+
if (next) context.overlayElement.value = next;
|
|
504
|
+
}, { flush: "post" });
|
|
505
|
+
onUnmounted(() => {
|
|
506
|
+
if (context.overlayElement.value === element.value) context.overlayElement.value = null;
|
|
507
|
+
});
|
|
508
|
+
__expose({
|
|
509
|
+
element,
|
|
510
|
+
modal: context.modal,
|
|
511
|
+
open: context.open,
|
|
512
|
+
state: context.state
|
|
513
|
+
});
|
|
514
|
+
return (_ctx, _cache) => {
|
|
515
|
+
return openBlock(), createElementBlock("div", {
|
|
516
|
+
"data-vize-ui": "dialog-overlay-host",
|
|
517
|
+
part: "overlay-host",
|
|
518
|
+
"data-state": unref(context).state.value
|
|
519
|
+
}, [present.value ? (openBlock(), createElementBlock("div", {
|
|
520
|
+
key: 0,
|
|
521
|
+
ref_key: "element",
|
|
522
|
+
ref: element,
|
|
523
|
+
"aria-hidden": "true",
|
|
524
|
+
"data-vize-ui": "dialog-overlay",
|
|
525
|
+
part: "overlay",
|
|
526
|
+
hidden: unref(context).open.value ? void 0 : true,
|
|
527
|
+
"data-state": unref(context).state.value
|
|
528
|
+
}, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 8, _hoisted_2)) : createCommentVNode("v-if", true)], 8, _hoisted_1$2);
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
}), [["__scopeId", "data-v-3a1905dd"]]);
|
|
532
|
+
//#endregion
|
|
533
|
+
//#region src/families/overlays/dialog/dialog-portal.vue?vue&type=script&setup=true&lang.ts
|
|
534
|
+
const _hoisted_1$1 = ["hidden", "data-state"];
|
|
535
|
+
//#endregion
|
|
536
|
+
//#region src/families/overlays/dialog/dialog-portal.vue
|
|
537
|
+
var dialog_portal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
538
|
+
__name: "dialog-portal",
|
|
539
|
+
props: {
|
|
540
|
+
to: {
|
|
541
|
+
type: null,
|
|
542
|
+
required: false,
|
|
543
|
+
default: "body"
|
|
544
|
+
},
|
|
545
|
+
disabled: {
|
|
546
|
+
type: Boolean,
|
|
547
|
+
required: false,
|
|
548
|
+
default: false
|
|
549
|
+
},
|
|
550
|
+
defer: {
|
|
551
|
+
type: Boolean,
|
|
552
|
+
required: false,
|
|
553
|
+
default: true
|
|
554
|
+
},
|
|
555
|
+
forceMount: {
|
|
556
|
+
type: Boolean,
|
|
557
|
+
required: false,
|
|
558
|
+
default: false
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
setup(__props, { expose: __expose }) {
|
|
562
|
+
const context = dialogContext.use();
|
|
563
|
+
const present = computed(() => context.open.value || __props.forceMount);
|
|
564
|
+
const slotState = computed(() => ({
|
|
565
|
+
modal: context.modal.value,
|
|
566
|
+
open: context.open.value,
|
|
567
|
+
state: context.state.value
|
|
568
|
+
}));
|
|
569
|
+
__expose({
|
|
570
|
+
modal: context.modal,
|
|
571
|
+
open: context.open,
|
|
572
|
+
present,
|
|
573
|
+
state: context.state
|
|
574
|
+
});
|
|
575
|
+
return (_ctx, _cache) => {
|
|
576
|
+
return openBlock(), createElementBlock("div", {
|
|
577
|
+
"data-vize-ui": "dialog-portal",
|
|
578
|
+
part: "portal",
|
|
579
|
+
hidden: present.value ? void 0 : true,
|
|
580
|
+
"data-state": unref(context).state.value
|
|
581
|
+
}, [present.value ? (openBlock(), createBlock(portal_default, {
|
|
582
|
+
key: 0,
|
|
583
|
+
to: __props.to,
|
|
584
|
+
disabled: __props.disabled,
|
|
585
|
+
defer: __props.defer
|
|
586
|
+
}, {
|
|
587
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
|
|
588
|
+
_: 3
|
|
589
|
+
}, 8, [
|
|
590
|
+
"to",
|
|
591
|
+
"disabled",
|
|
592
|
+
"defer"
|
|
593
|
+
])) : createCommentVNode("v-if", true)], 8, _hoisted_1$1);
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
}), [["__scopeId", "data-v-8f19217d"]]);
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region src/families/overlays/dialog/dialog-title.vue
|
|
599
|
+
var dialog_title_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
600
|
+
__name: "dialog-title",
|
|
601
|
+
props: {
|
|
602
|
+
id: {
|
|
603
|
+
type: [String, null],
|
|
604
|
+
required: false,
|
|
605
|
+
default: () => void 0
|
|
606
|
+
},
|
|
607
|
+
as: {
|
|
608
|
+
type: null,
|
|
609
|
+
required: false,
|
|
610
|
+
default: "h2"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
setup(__props, { expose: __expose }) {
|
|
614
|
+
const context = dialogContext.use();
|
|
615
|
+
const element = useTemplateRef("element");
|
|
616
|
+
const titleId = computed(() => __props.id == null ? context.titleId.value : toDeterministicId(__props.id));
|
|
617
|
+
__expose({ element });
|
|
618
|
+
return (_ctx, _cache) => {
|
|
619
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
|
|
620
|
+
id: titleId.value,
|
|
621
|
+
ref_key: "element",
|
|
622
|
+
ref: element,
|
|
623
|
+
"data-vize-ui": "dialog-title",
|
|
624
|
+
part: "title"
|
|
625
|
+
}, {
|
|
626
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
627
|
+
_: 3
|
|
628
|
+
}, 8, ["id"]);
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
}), [["__scopeId", "data-v-c8b1c835"]]);
|
|
632
|
+
//#endregion
|
|
633
|
+
//#region src/families/overlays/dialog/dialog-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
634
|
+
const _hoisted_1 = [
|
|
635
|
+
"id",
|
|
636
|
+
"type",
|
|
637
|
+
"disabled",
|
|
638
|
+
"aria-label",
|
|
639
|
+
"aria-expanded",
|
|
640
|
+
"aria-controls",
|
|
641
|
+
"data-state",
|
|
642
|
+
"data-disabled"
|
|
643
|
+
];
|
|
644
|
+
//#endregion
|
|
645
|
+
//#region src/families/overlays/dialog/dialog-trigger.vue
|
|
646
|
+
var dialog_trigger_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
647
|
+
__name: "dialog-trigger",
|
|
648
|
+
props: {
|
|
649
|
+
type: {
|
|
650
|
+
type: String,
|
|
651
|
+
required: false,
|
|
652
|
+
default: "button"
|
|
653
|
+
},
|
|
654
|
+
disabled: {
|
|
655
|
+
type: Boolean,
|
|
656
|
+
required: false,
|
|
657
|
+
default: false
|
|
658
|
+
},
|
|
659
|
+
ariaLabel: {
|
|
660
|
+
type: String,
|
|
661
|
+
required: false,
|
|
662
|
+
default: () => void 0
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
emits: ["click"],
|
|
666
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
667
|
+
const emit = __emit;
|
|
668
|
+
const context = dialogContext.use();
|
|
669
|
+
const element = useTemplateRef("element");
|
|
670
|
+
onMounted(() => {
|
|
671
|
+
context.triggerElement.value = element.value;
|
|
672
|
+
});
|
|
673
|
+
onUnmounted(() => {
|
|
674
|
+
if (context.triggerElement.value === element.value) context.triggerElement.value = null;
|
|
675
|
+
});
|
|
676
|
+
function onClick(event) {
|
|
677
|
+
if (__props.disabled) {
|
|
678
|
+
event.preventDefault();
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
emit("click", event);
|
|
682
|
+
if (!event.defaultPrevented) context.openDialog(event);
|
|
683
|
+
}
|
|
684
|
+
function focus(options) {
|
|
685
|
+
element.value?.focus(options);
|
|
686
|
+
}
|
|
687
|
+
__expose({
|
|
688
|
+
element,
|
|
689
|
+
focus
|
|
690
|
+
});
|
|
691
|
+
return (_ctx, _cache) => {
|
|
692
|
+
return openBlock(), createElementBlock("button", {
|
|
693
|
+
id: `${unref(context).id.value}-trigger`,
|
|
694
|
+
ref_key: "element",
|
|
695
|
+
ref: element,
|
|
696
|
+
type: __props.type,
|
|
697
|
+
disabled: __props.disabled,
|
|
698
|
+
"aria-label": __props.ariaLabel,
|
|
699
|
+
"aria-haspopup": "dialog",
|
|
700
|
+
"aria-expanded": unref(context).open.value ? "true" : "false",
|
|
701
|
+
"aria-controls": unref(context).contentId.value,
|
|
702
|
+
"data-vize-ui": "dialog-trigger",
|
|
703
|
+
part: "trigger",
|
|
704
|
+
"data-state": unref(context).state.value,
|
|
705
|
+
"data-disabled": __props.disabled ? "true" : void 0,
|
|
706
|
+
onClick
|
|
707
|
+
}, [renderSlot(_ctx.$slots, "default", {
|
|
708
|
+
disabled: __props.disabled,
|
|
709
|
+
modal: unref(context).modal.value,
|
|
710
|
+
open: unref(context).open.value,
|
|
711
|
+
state: unref(context).state.value
|
|
712
|
+
}, void 0, true)], 8, _hoisted_1);
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
}), [["__scopeId", "data-v-7b2ebb49"]]);
|
|
716
|
+
//#endregion
|
|
717
|
+
export { dialog_description_default as a, dialog_root_default as c, dialog_overlay_default as i, dialogContext as l, dialog_title_default as n, dialog_content_default as o, dialog_portal_default as r, dialog_close_default as s, dialog_trigger_default as t };
|