@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,209 @@
|
|
|
1
|
+
import { a as useDeterministicId } from "./deterministic-id-yMq4HfmS.mjs";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
|
|
3
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentScope, nextTick, onMounted, onScopeDispose, openBlock, renderList, renderSlot, shallowReadonly, shallowRef, toDisplayString, toRef, toValue, unref, useTemplateRef, watch } from "vue";
|
|
4
|
+
//#region src/families/form/error-summary/error-summary-runtime.ts
|
|
5
|
+
const invalidOptionDiagnostic = "VIZE_UI_ERROR_SUMMARY_OPTION";
|
|
6
|
+
const disposedDiagnostic = "VIZE_UI_ERROR_SUMMARY_DISPOSED";
|
|
7
|
+
const setupDiagnostic = "VIZE_UI_ERROR_SUMMARY_SETUP";
|
|
8
|
+
function readFields(value) {
|
|
9
|
+
const resolved = toValue(value);
|
|
10
|
+
if (resolved === void 0) return [];
|
|
11
|
+
if (!Array.isArray(resolved)) throw new TypeError(`${invalidOptionDiagnostic}: fields must resolve to an array`);
|
|
12
|
+
const seen = /* @__PURE__ */ new Set();
|
|
13
|
+
for (const field of resolved) {
|
|
14
|
+
if (typeof field.id !== "string" || field.id.length === 0) throw new TypeError(`${invalidOptionDiagnostic}: every field needs a non-empty id`);
|
|
15
|
+
if (typeof field.message !== "string") throw new TypeError(`${invalidOptionDiagnostic}: every field needs a message string`);
|
|
16
|
+
if (seen.has(field.id)) throw new TypeError(`${invalidOptionDiagnostic}: field ids must be unique, saw ${field.id}`);
|
|
17
|
+
seen.add(field.id);
|
|
18
|
+
}
|
|
19
|
+
return resolved;
|
|
20
|
+
}
|
|
21
|
+
function readBoolean(value, fallback) {
|
|
22
|
+
const resolved = toValue(value);
|
|
23
|
+
if (resolved === void 0) return fallback;
|
|
24
|
+
if (typeof resolved !== "boolean") throw new TypeError(`${invalidOptionDiagnostic}: autoFocus must resolve to a boolean`);
|
|
25
|
+
return resolved;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Create the focus contract behind an error summary.
|
|
29
|
+
*
|
|
30
|
+
* When invalid fields appear the previously focused element is captured and
|
|
31
|
+
* focus moves to the summary; when every field is repaired that element gets
|
|
32
|
+
* focus back, provided focus has not been moved elsewhere in the meantime.
|
|
33
|
+
*/
|
|
34
|
+
function createErrorSummary(options = {}) {
|
|
35
|
+
for (const name of ["onRestore", "resolveField"]) {
|
|
36
|
+
const callback = options[name];
|
|
37
|
+
if (callback !== void 0 && typeof callback !== "function") throw new TypeError(`${invalidOptionDiagnostic}: ${name} must be a function`);
|
|
38
|
+
}
|
|
39
|
+
if (typeof options.autoFocus !== "function") readBoolean(options.autoFocus, true);
|
|
40
|
+
const fields = shallowRef(readFields(options.fields));
|
|
41
|
+
const hasErrors = computed(() => fields.value.length > 0);
|
|
42
|
+
let restoreTarget = null;
|
|
43
|
+
let disposed = false;
|
|
44
|
+
const assertAlive = () => {
|
|
45
|
+
if (disposed) throw new Error(`${disposedDiagnostic}: the controller has been disposed`);
|
|
46
|
+
};
|
|
47
|
+
const readElement = () => toValue(options.element) ?? null;
|
|
48
|
+
const captureRestoreTarget = () => {
|
|
49
|
+
if (typeof document === "undefined") return;
|
|
50
|
+
const active = document.activeElement;
|
|
51
|
+
restoreTarget = active instanceof HTMLElement && active !== document.body ? active : null;
|
|
52
|
+
};
|
|
53
|
+
const focusElement = () => {
|
|
54
|
+
const element = readElement();
|
|
55
|
+
if (element === null) return false;
|
|
56
|
+
element.focus();
|
|
57
|
+
return true;
|
|
58
|
+
};
|
|
59
|
+
const restoreFocus = () => {
|
|
60
|
+
const target = restoreTarget;
|
|
61
|
+
restoreTarget = null;
|
|
62
|
+
if (target === null || !target.isConnected) return false;
|
|
63
|
+
target.focus();
|
|
64
|
+
return true;
|
|
65
|
+
};
|
|
66
|
+
const settleRepair = () => {
|
|
67
|
+
if (typeof document === "undefined") return;
|
|
68
|
+
const active = document.activeElement;
|
|
69
|
+
const element = readElement();
|
|
70
|
+
const focusInSummary = element !== null && active !== null && element.contains(active);
|
|
71
|
+
const focusLost = active === null || active === document.body || !active.isConnected;
|
|
72
|
+
if (!focusInSummary && !focusLost) {
|
|
73
|
+
restoreTarget = null;
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const target = restoreTarget;
|
|
77
|
+
options.onRestore?.(restoreFocus() ? target : null);
|
|
78
|
+
};
|
|
79
|
+
const stopWatch = watch(() => readFields(options.fields), (next, previous) => {
|
|
80
|
+
fields.value = next;
|
|
81
|
+
if (previous.length === 0 && next.length > 0) {
|
|
82
|
+
if (!readBoolean(options.autoFocus, true)) return;
|
|
83
|
+
captureRestoreTarget();
|
|
84
|
+
nextTick(() => {
|
|
85
|
+
if (!disposed && fields.value.length > 0) focusElement();
|
|
86
|
+
});
|
|
87
|
+
} else if (previous.length > 0 && next.length === 0) nextTick(() => {
|
|
88
|
+
if (!disposed) settleRepair();
|
|
89
|
+
});
|
|
90
|
+
}, { flush: "sync" });
|
|
91
|
+
return Object.freeze({
|
|
92
|
+
fields: shallowReadonly(fields),
|
|
93
|
+
hasErrors,
|
|
94
|
+
focusSummary: () => {
|
|
95
|
+
assertAlive();
|
|
96
|
+
captureRestoreTarget();
|
|
97
|
+
return focusElement();
|
|
98
|
+
},
|
|
99
|
+
focusField: (id) => {
|
|
100
|
+
assertAlive();
|
|
101
|
+
const field = fields.value.find((candidate) => candidate.id === id);
|
|
102
|
+
if (field === void 0) return null;
|
|
103
|
+
const control = options.resolveField === void 0 ? typeof document === "undefined" ? null : document.getElementById(field.id) : options.resolveField(field);
|
|
104
|
+
if (!(control instanceof HTMLElement)) return null;
|
|
105
|
+
control.focus();
|
|
106
|
+
return control;
|
|
107
|
+
},
|
|
108
|
+
restoreFocus: () => {
|
|
109
|
+
assertAlive();
|
|
110
|
+
return restoreFocus();
|
|
111
|
+
},
|
|
112
|
+
dispose: () => {
|
|
113
|
+
if (disposed) return;
|
|
114
|
+
disposed = true;
|
|
115
|
+
restoreTarget = null;
|
|
116
|
+
stopWatch();
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/** Create an error summary controller disposed with the current Vue effect scope. */
|
|
121
|
+
function useErrorSummary(options = {}) {
|
|
122
|
+
if (!getCurrentScope()) throw new Error(`${setupDiagnostic}: use inside component setup or an active effect scope`);
|
|
123
|
+
const controller = createErrorSummary(options);
|
|
124
|
+
onScopeDispose(controller.dispose);
|
|
125
|
+
return controller;
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/families/form/error-summary/error-summary.vue?vue&type=script&setup=true&lang.ts
|
|
129
|
+
const _hoisted_1 = { "data-vize-ui": "error-summary-host" };
|
|
130
|
+
const _hoisted_2 = ["aria-labelledby"];
|
|
131
|
+
const _hoisted_3 = ["id"];
|
|
132
|
+
const _hoisted_4 = { "data-vize-ui": "error-summary-list" };
|
|
133
|
+
const _hoisted_5 = ["href", "onClick"];
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/families/form/error-summary/error-summary.vue
|
|
136
|
+
var error_summary_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
137
|
+
__name: "error-summary",
|
|
138
|
+
props: {
|
|
139
|
+
fields: {
|
|
140
|
+
type: Array,
|
|
141
|
+
required: false,
|
|
142
|
+
default: () => []
|
|
143
|
+
},
|
|
144
|
+
heading: {
|
|
145
|
+
type: String,
|
|
146
|
+
required: false,
|
|
147
|
+
default: ""
|
|
148
|
+
},
|
|
149
|
+
autoFocus: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
required: false,
|
|
152
|
+
default: true
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
emits: ["fieldFocus", "restore"],
|
|
156
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
157
|
+
const emit = __emit;
|
|
158
|
+
const element = useTemplateRef("element");
|
|
159
|
+
const headingId = useDeterministicId({ hint: "error-summary-heading" });
|
|
160
|
+
const summary = useErrorSummary({
|
|
161
|
+
fields: toRef(() => __props.fields),
|
|
162
|
+
element,
|
|
163
|
+
autoFocus: toRef(() => __props.autoFocus),
|
|
164
|
+
onRestore: (target) => emit("restore", target)
|
|
165
|
+
});
|
|
166
|
+
onMounted(() => {
|
|
167
|
+
if (__props.autoFocus && summary.hasErrors.value) summary.focusSummary();
|
|
168
|
+
});
|
|
169
|
+
function linkText(field) {
|
|
170
|
+
return field.label === void 0 ? field.message : `${field.label}: ${field.message}`;
|
|
171
|
+
}
|
|
172
|
+
function onFieldLink(field, event) {
|
|
173
|
+
event.preventDefault();
|
|
174
|
+
if (summary.focusField(field.id) !== null) emit("fieldFocus", field);
|
|
175
|
+
}
|
|
176
|
+
__expose({
|
|
177
|
+
element,
|
|
178
|
+
hasErrors: summary.hasErrors,
|
|
179
|
+
focusSummary: summary.focusSummary,
|
|
180
|
+
focusField: summary.focusField,
|
|
181
|
+
restoreFocus: summary.restoreFocus
|
|
182
|
+
});
|
|
183
|
+
return (_ctx, _cache) => {
|
|
184
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [unref(summary).hasErrors.value ? (openBlock(), createElementBlock("div", {
|
|
185
|
+
key: 0,
|
|
186
|
+
ref_key: "element",
|
|
187
|
+
ref: element,
|
|
188
|
+
"data-vize-ui": "error-summary",
|
|
189
|
+
role: "group",
|
|
190
|
+
tabindex: "-1",
|
|
191
|
+
"aria-labelledby": unref(headingId)
|
|
192
|
+
}, [createElementVNode("div", {
|
|
193
|
+
id: unref(headingId),
|
|
194
|
+
"data-vize-ui": "error-summary-heading"
|
|
195
|
+
}, [renderSlot(_ctx.$slots, "heading", { fields: unref(summary).fields.value }, () => [createTextVNode(toDisplayString(__props.heading), 1)], true)], 8, _hoisted_3), createElementVNode("ul", _hoisted_4, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(summary).fields.value, (field) => {
|
|
196
|
+
return openBlock(), createElementBlock("li", {
|
|
197
|
+
key: field.id,
|
|
198
|
+
"data-vize-ui": "error-summary-item"
|
|
199
|
+
}, [createElementVNode("a", {
|
|
200
|
+
"data-vize-ui": "error-summary-link",
|
|
201
|
+
href: "#" + field.id,
|
|
202
|
+
onClick: (event) => onFieldLink(field, event)
|
|
203
|
+
}, [renderSlot(_ctx.$slots, "field", { field }, () => [createTextVNode(toDisplayString(linkText(field)), 1)], true)], 8, _hoisted_5)]);
|
|
204
|
+
}), 128))])], 8, _hoisted_2)) : createCommentVNode("v-if", true)]);
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
}), [["__scopeId", "data-v-26965bac"]]);
|
|
208
|
+
//#endregion
|
|
209
|
+
export { createErrorSummary as n, useErrorSummary as r, error_summary_default as t };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ComputedRef, MaybeRefOrGetter, ShallowRef } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/families/form/error-summary/error-summary-types.d.ts
|
|
4
|
+
/** One invalid field listed by the error summary. */
|
|
5
|
+
interface ErrorSummaryField {
|
|
6
|
+
/** Document id of the focusable invalid control. */
|
|
7
|
+
readonly id: string;
|
|
8
|
+
/** Human-readable error text for the summary link. */
|
|
9
|
+
readonly message: string;
|
|
10
|
+
/**
|
|
11
|
+
* Accessible field label, prefixed onto the default link text.
|
|
12
|
+
*
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
15
|
+
readonly label?: string;
|
|
16
|
+
}
|
|
17
|
+
/** Options shared by {@link createErrorSummary} and {@link useErrorSummary}. */
|
|
18
|
+
interface ErrorSummaryOptions {
|
|
19
|
+
/**
|
|
20
|
+
* Invalid fields in document order. Field ids must be unique.
|
|
21
|
+
*
|
|
22
|
+
* @default []
|
|
23
|
+
*/
|
|
24
|
+
readonly fields?: MaybeRefOrGetter<readonly ErrorSummaryField[] | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Summary container that receives focus when invalid fields appear.
|
|
27
|
+
*
|
|
28
|
+
* @default undefined
|
|
29
|
+
*/
|
|
30
|
+
readonly element?: MaybeRefOrGetter<HTMLElement | null | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* Move focus into the summary when invalid fields appear.
|
|
33
|
+
*
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
readonly autoFocus?: MaybeRefOrGetter<boolean | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* Resolve one field's focusable control.
|
|
39
|
+
*
|
|
40
|
+
* @default Document lookup by field id
|
|
41
|
+
*/
|
|
42
|
+
readonly resolveField?: (field: ErrorSummaryField) => HTMLElement | null;
|
|
43
|
+
/**
|
|
44
|
+
* Called after a repair settles focus, with the restored element or `null`.
|
|
45
|
+
*
|
|
46
|
+
* @default undefined
|
|
47
|
+
*/
|
|
48
|
+
readonly onRestore?: (target: HTMLElement | null) => void;
|
|
49
|
+
}
|
|
50
|
+
/** Focus-managing controller behind the error summary component. */
|
|
51
|
+
interface ErrorSummaryController {
|
|
52
|
+
/** Current invalid fields in document order. */
|
|
53
|
+
readonly fields: Readonly<ShallowRef<readonly ErrorSummaryField[]>>;
|
|
54
|
+
/** Whether any field is invalid. */
|
|
55
|
+
readonly hasErrors: ComputedRef<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* Capture the previously focused element and move focus to the summary.
|
|
58
|
+
*
|
|
59
|
+
* @returns Whether the summary element existed and received focus.
|
|
60
|
+
*/
|
|
61
|
+
readonly focusSummary: () => boolean;
|
|
62
|
+
/** Move focus to one listed invalid control. `null` when unknown or absent. */
|
|
63
|
+
readonly focusField: (id: string) => HTMLElement | null;
|
|
64
|
+
/**
|
|
65
|
+
* Restore focus to the element focused before the summary took it.
|
|
66
|
+
*
|
|
67
|
+
* @returns Whether a connected capture target regained focus.
|
|
68
|
+
*/
|
|
69
|
+
readonly restoreFocus: () => boolean;
|
|
70
|
+
/** Stop watching fields and release the captured focus target. */
|
|
71
|
+
readonly dispose: () => void;
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
74
|
+
export { ErrorSummaryField as n, ErrorSummaryOptions as r, ErrorSummaryController as t };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { n as ErrorSummaryField, r as ErrorSummaryOptions, t as ErrorSummaryController } from "./error-summary-types-5ePaC9O3.mjs";
|
|
2
|
+
import { n as createErrorSummary, r as useErrorSummary, t as _default } from "./error-summary-6Xis_769.mjs";
|
|
3
|
+
export { _default as ErrorSummary, type ErrorSummaryController, type ErrorSummaryField, type ErrorSummaryOptions, createErrorSummary, useErrorSummary };
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { t as useFieldWiring } from "./field-wiring-runtime-fQ3GoLuG.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 { o as useFormField } from "./form-runtime-CcMDY0Iq.mjs";
|
|
5
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRef, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
6
|
+
//#region src/families/form/field/field-context.ts
|
|
7
|
+
const fieldContext = createContext("Field");
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/families/form/field/field.vue
|
|
10
|
+
var field_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "field",
|
|
12
|
+
props: {
|
|
13
|
+
as: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: false,
|
|
16
|
+
default: "div"
|
|
17
|
+
},
|
|
18
|
+
id: {
|
|
19
|
+
type: [String, null],
|
|
20
|
+
required: false,
|
|
21
|
+
default: () => void 0
|
|
22
|
+
},
|
|
23
|
+
name: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: true
|
|
26
|
+
},
|
|
27
|
+
errors: {
|
|
28
|
+
type: Array,
|
|
29
|
+
required: false,
|
|
30
|
+
default: () => []
|
|
31
|
+
},
|
|
32
|
+
invalid: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
required: false,
|
|
35
|
+
default: () => void 0
|
|
36
|
+
},
|
|
37
|
+
hasDescription: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
required: false,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
hasErrorMessage: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
required: false,
|
|
45
|
+
default: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
emits: ["invalid-change"],
|
|
49
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
50
|
+
const emit = __emit;
|
|
51
|
+
const element = useTemplateRef("element");
|
|
52
|
+
const formField = useFormField({
|
|
53
|
+
errors: toRef(() => __props.errors),
|
|
54
|
+
name: toRef(() => __props.name)
|
|
55
|
+
});
|
|
56
|
+
const isInvalid = computed(() => __props.invalid ?? formField.isInvalid.value);
|
|
57
|
+
const wiring = useFieldWiring({
|
|
58
|
+
hasDescription: toRef(() => __props.hasDescription),
|
|
59
|
+
hasErrorMessage: toRef(() => __props.hasErrorMessage),
|
|
60
|
+
id: toRef(() => __props.id),
|
|
61
|
+
invalid: isInvalid
|
|
62
|
+
});
|
|
63
|
+
const slotState = computed(() => ({
|
|
64
|
+
descriptionProps: wiring.descriptionProps.value,
|
|
65
|
+
errorMessage: formField.errorMessage.value,
|
|
66
|
+
errorMessageProps: wiring.errorMessageProps.value,
|
|
67
|
+
errors: formField.errors.value,
|
|
68
|
+
fieldProps: wiring.fieldProps.value,
|
|
69
|
+
id: wiring.fieldId.value,
|
|
70
|
+
invalid: isInvalid.value,
|
|
71
|
+
labelProps: wiring.labelProps.value,
|
|
72
|
+
name: formField.name.value
|
|
73
|
+
}));
|
|
74
|
+
const context = fieldContext.provide({
|
|
75
|
+
descriptionProps: wiring.descriptionProps,
|
|
76
|
+
errorMessage: formField.errorMessage,
|
|
77
|
+
errorMessageProps: wiring.errorMessageProps,
|
|
78
|
+
errors: formField.errors,
|
|
79
|
+
fieldProps: wiring.fieldProps,
|
|
80
|
+
id: wiring.fieldId,
|
|
81
|
+
invalid: isInvalid,
|
|
82
|
+
labelProps: wiring.labelProps,
|
|
83
|
+
name: formField.name
|
|
84
|
+
});
|
|
85
|
+
watch(isInvalid, (next, previous) => {
|
|
86
|
+
if (next !== previous) emit("invalid-change", next, formField.errors.value);
|
|
87
|
+
});
|
|
88
|
+
__expose({
|
|
89
|
+
descriptionProps: context.descriptionProps,
|
|
90
|
+
element,
|
|
91
|
+
errorMessage: context.errorMessage,
|
|
92
|
+
errorMessageProps: context.errorMessageProps,
|
|
93
|
+
errors: context.errors,
|
|
94
|
+
fieldProps: context.fieldProps,
|
|
95
|
+
id: context.id,
|
|
96
|
+
invalid: context.invalid,
|
|
97
|
+
labelProps: context.labelProps,
|
|
98
|
+
name: context.name
|
|
99
|
+
});
|
|
100
|
+
return (_ctx, _cache) => {
|
|
101
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
|
|
102
|
+
ref_key: "element",
|
|
103
|
+
ref: element,
|
|
104
|
+
"data-vize-ui": "field",
|
|
105
|
+
part: "root",
|
|
106
|
+
"data-state": isInvalid.value ? "invalid" : "valid",
|
|
107
|
+
"data-invalid": isInvalid.value ? "true" : "false",
|
|
108
|
+
"data-name": unref(formField).name.value
|
|
109
|
+
}, {
|
|
110
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
|
|
111
|
+
_: 3
|
|
112
|
+
}, 8, [
|
|
113
|
+
"data-state",
|
|
114
|
+
"data-invalid",
|
|
115
|
+
"data-name"
|
|
116
|
+
]);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}), [["__scopeId", "data-v-e3618c9f"]]);
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/families/form/field/field-description.vue
|
|
122
|
+
var field_description_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
123
|
+
__name: "field-description",
|
|
124
|
+
props: { as: {
|
|
125
|
+
type: null,
|
|
126
|
+
required: false,
|
|
127
|
+
default: "p"
|
|
128
|
+
} },
|
|
129
|
+
setup(__props, { expose: __expose }) {
|
|
130
|
+
const context = fieldContext.use();
|
|
131
|
+
const element = useTemplateRef("element");
|
|
132
|
+
const slotState = computed(() => ({
|
|
133
|
+
id: context.descriptionProps.value.id,
|
|
134
|
+
invalid: context.invalid.value,
|
|
135
|
+
name: context.name.value
|
|
136
|
+
}));
|
|
137
|
+
__expose({ element });
|
|
138
|
+
return (_ctx, _cache) => {
|
|
139
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({
|
|
140
|
+
ref_key: "element",
|
|
141
|
+
ref: element
|
|
142
|
+
}, unref(context).descriptionProps.value, {
|
|
143
|
+
"data-vize-ui": "field-description",
|
|
144
|
+
part: "description",
|
|
145
|
+
"data-state": unref(context).invalid.value ? "invalid" : "valid",
|
|
146
|
+
"data-invalid": unref(context).invalid.value ? "true" : "false",
|
|
147
|
+
"data-name": unref(context).name.value
|
|
148
|
+
}), {
|
|
149
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
|
|
150
|
+
_: 3
|
|
151
|
+
}, 16, [
|
|
152
|
+
"data-state",
|
|
153
|
+
"data-invalid",
|
|
154
|
+
"data-name"
|
|
155
|
+
]);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
}), [["__scopeId", "data-v-f7dc6d1b"]]);
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/families/form/field/field-error-message.vue
|
|
161
|
+
var field_error_message_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
162
|
+
__name: "field-error-message",
|
|
163
|
+
props: {
|
|
164
|
+
as: {
|
|
165
|
+
type: null,
|
|
166
|
+
required: false,
|
|
167
|
+
default: "p"
|
|
168
|
+
},
|
|
169
|
+
forceMount: {
|
|
170
|
+
type: Boolean,
|
|
171
|
+
required: false,
|
|
172
|
+
default: false
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
setup(__props, { expose: __expose }) {
|
|
176
|
+
const context = fieldContext.use();
|
|
177
|
+
const element = useTemplateRef("element");
|
|
178
|
+
const rendered = computed(() => context.invalid.value || __props.forceMount);
|
|
179
|
+
const slotState = computed(() => ({
|
|
180
|
+
errors: context.errors.value,
|
|
181
|
+
id: context.errorMessageProps.value.id,
|
|
182
|
+
invalid: context.invalid.value,
|
|
183
|
+
message: context.errorMessage.value,
|
|
184
|
+
name: context.name.value
|
|
185
|
+
}));
|
|
186
|
+
__expose({
|
|
187
|
+
element,
|
|
188
|
+
invalid: context.invalid,
|
|
189
|
+
message: context.errorMessage
|
|
190
|
+
});
|
|
191
|
+
return (_ctx, _cache) => {
|
|
192
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable vue/no-root-v-if "), rendered.value ? (openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({
|
|
193
|
+
key: 0,
|
|
194
|
+
ref_key: "element",
|
|
195
|
+
ref: element
|
|
196
|
+
}, unref(context).errorMessageProps.value, {
|
|
197
|
+
"data-vize-ui": "field-error-message",
|
|
198
|
+
part: "error-message",
|
|
199
|
+
"data-state": unref(context).invalid.value ? "invalid" : "valid",
|
|
200
|
+
"data-invalid": unref(context).invalid.value ? "true" : "false",
|
|
201
|
+
"data-name": unref(context).name.value
|
|
202
|
+
}), {
|
|
203
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), () => [createTextVNode(toDisplayString(unref(context).errorMessage.value), 1)], true)]),
|
|
204
|
+
_: 3
|
|
205
|
+
}, 16, [
|
|
206
|
+
"data-state",
|
|
207
|
+
"data-invalid",
|
|
208
|
+
"data-name"
|
|
209
|
+
])) : createCommentVNode("v-if", true)], 2112);
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}), [["__scopeId", "data-v-a837a89c"]]);
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/families/form/field/field-label.vue
|
|
215
|
+
var field_label_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
216
|
+
__name: "field-label",
|
|
217
|
+
props: { as: {
|
|
218
|
+
type: null,
|
|
219
|
+
required: false,
|
|
220
|
+
default: "label"
|
|
221
|
+
} },
|
|
222
|
+
setup(__props, { expose: __expose }) {
|
|
223
|
+
const context = fieldContext.use();
|
|
224
|
+
const element = useTemplateRef("element");
|
|
225
|
+
const slotState = computed(() => ({
|
|
226
|
+
for: context.labelProps.value.for,
|
|
227
|
+
id: context.labelProps.value.id,
|
|
228
|
+
invalid: context.invalid.value,
|
|
229
|
+
name: context.name.value
|
|
230
|
+
}));
|
|
231
|
+
__expose({ element });
|
|
232
|
+
return (_ctx, _cache) => {
|
|
233
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({
|
|
234
|
+
ref_key: "element",
|
|
235
|
+
ref: element
|
|
236
|
+
}, unref(context).labelProps.value, {
|
|
237
|
+
"data-vize-ui": "field-label",
|
|
238
|
+
part: "label",
|
|
239
|
+
"data-state": unref(context).invalid.value ? "invalid" : "valid",
|
|
240
|
+
"data-invalid": unref(context).invalid.value ? "true" : "false",
|
|
241
|
+
"data-name": unref(context).name.value
|
|
242
|
+
}), {
|
|
243
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
|
|
244
|
+
_: 3
|
|
245
|
+
}, 16, [
|
|
246
|
+
"data-state",
|
|
247
|
+
"data-invalid",
|
|
248
|
+
"data-name"
|
|
249
|
+
]);
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
}), [["__scopeId", "data-v-be651956"]]);
|
|
253
|
+
//#endregion
|
|
254
|
+
export { field_default as i, field_error_message_default as n, field_description_default as r, field_label_default as t };
|