@adyen/bento-vue3 1.89.2 → 1.90.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/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +403 -298
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-time.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
- package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
- package/dist/chunks/action-bar.Pe_hvtja.js +336 -0
- package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.Pe_hvtja.js.map} +1 -1
- package/dist/chunks/ai-tag.BSlc78DU.js +137 -0
- package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.BSlc78DU.js.map} +1 -1
- package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
- package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
- package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
- package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
- package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BjjDrx0z.js} +132 -125
- package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BjjDrx0z.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.DvkS16ur.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.DvkS16ur.js.map} +1 -1
- package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.Bh_PZ_fV.js} +202 -188
- package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.Bh_PZ_fV.js.map} +1 -1
- package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.CH-1Vgeb.js} +343 -329
- package/dist/chunks/{calendar.DcCqkSNJ.js.map → calendar.CH-1Vgeb.js.map} +1 -1
- package/dist/chunks/card.BzCGCCzH.js +223 -0
- package/dist/chunks/{card.CoxQ_L0w.js.map → card.BzCGCCzH.js.map} +1 -1
- package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.D_fN6Glu.js} +4 -4
- package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.D_fN6Glu.js.map} +1 -1
- package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BlAhQl9N.js} +78 -71
- package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BlAhQl9N.js.map} +1 -1
- package/dist/chunks/chip.DFldnqfz.js +72 -0
- package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
- package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BePxxR3q.js} +113 -106
- package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BePxxR3q.js.map} +1 -1
- package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.Cxk-0fCy.js} +2 -2
- package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.Cxk-0fCy.js.map} +1 -1
- package/dist/chunks/copy.CL893i9-.js +114 -0
- package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
- package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
- package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
- package/dist/chunks/country.types.6a7xxZIR.js +26 -0
- package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
- package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.CiNDItU2.js} +3 -3
- package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.CiNDItU2.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.CwdpUz76.js} +3 -3
- package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.CwdpUz76.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.nXn1dLCw.js} +4 -4
- package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.nXn1dLCw.js.map} +1 -1
- package/dist/chunks/data-grid.CXWaoqzi.js +4242 -0
- package/dist/chunks/data-grid.CXWaoqzi.js.map +1 -0
- package/dist/chunks/date-picker.DPjCROIP.js +238 -0
- package/dist/chunks/{date-picker.dlzZ_-5f.js.map → date-picker.DPjCROIP.js.map} +1 -1
- package/dist/chunks/date-range-picker.fyrfFd04.js +998 -0
- package/dist/chunks/date-range-picker.fyrfFd04.js.map +1 -0
- package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
- package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js → dropdown-default-textbox.aYsTZDZ7.js} +69 -62
- package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js.map → dropdown-default-textbox.aYsTZDZ7.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.B7OA_Yv9.js} +5 -5
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.B7OA_Yv9.js.map} +1 -1
- package/dist/chunks/{dropdown.MhmX1P9o.js → dropdown.Do-mZiI6.js} +285 -271
- package/dist/chunks/{dropdown.MhmX1P9o.js.map → dropdown.Do-mZiI6.js.map} +1 -1
- package/dist/chunks/error-message.849uzpkq.js +157 -0
- package/dist/chunks/{error-message.DCgo8q20.js.map → error-message.849uzpkq.js.map} +1 -1
- package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.BUvDU_cn.js} +604 -583
- package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.BUvDU_cn.js.map} +1 -1
- package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.fowl40RS.js} +998 -928
- package/dist/chunks/{filter-bar.CkAjLQol.js.map → filter-bar.fowl40RS.js.map} +1 -1
- package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
- package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
- package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.uoNbOGAQ.js} +2 -2
- package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.uoNbOGAQ.js.map} +1 -1
- package/dist/chunks/form-layout-title.Cr3wdpK_.js +239 -0
- package/dist/chunks/{form-layout-title.DW5Kg1rh.js.map → form-layout-title.Cr3wdpK_.js.map} +1 -1
- package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.CmH6SnjE.js} +98 -84
- package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.CmH6SnjE.js.map} +1 -1
- package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.B2pPBcTf.js} +1091 -1070
- package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.B2pPBcTf.js.map} +1 -1
- package/dist/chunks/{header.o-7SyHtU.js → header.BVM8Usdi.js} +3 -3
- package/dist/chunks/{header.o-7SyHtU.js.map → header.BVM8Usdi.js.map} +1 -1
- package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
- package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
- package/dist/chunks/input-field-password.CHb2Ros_.js +353 -0
- package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.CHb2Ros_.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.DM2rmZkQ.js} +12 -5
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.DM2rmZkQ.js.map} +1 -1
- package/dist/chunks/{input-field.CfU0ZKtL.js → input-field.DnYjM6yy.js} +118 -111
- package/dist/chunks/{input-field.CfU0ZKtL.js.map → input-field.DnYjM6yy.js.map} +1 -1
- package/dist/chunks/input-time.DeJ8lDio.js +103 -0
- package/dist/chunks/input-time.DeJ8lDio.js.map +1 -0
- package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
- package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
- package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
- package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.9CSTqFQc.js} +54 -47
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.9CSTqFQc.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js} +48 -41
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map} +1 -1
- package/dist/chunks/pagination.DL-h8OLF.js +413 -0
- package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.DL-h8OLF.js.map} +1 -1
- package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
- package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
- package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.DzhQgXv9.js} +4 -4
- package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.DzhQgXv9.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Ij2t4pyI.js} +418 -411
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Ij2t4pyI.js.map} +1 -1
- package/dist/chunks/search-bar.DfNwnjes.js +114 -0
- package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.DfNwnjes.js.map} +1 -1
- package/dist/chunks/secondary-nav.CvipTDRh.js +285 -0
- package/dist/chunks/secondary-nav.CvipTDRh.js.map +1 -0
- package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
- package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
- package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.CcOWQAUC.js} +11 -11
- package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.CcOWQAUC.js.map} +1 -1
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.BObSv8UU.js} +56 -49
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.BObSv8UU.js.map} +1 -1
- package/dist/chunks/step.AsX2jAeL.js +268 -0
- package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
- package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
- package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.DKPhtHw3.js} +5 -5
- package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.DKPhtHw3.js.map} +1 -1
- package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
- package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
- package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
- package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
- package/dist/chunks/textarea.C-sBemuo.js +256 -0
- package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.C-sBemuo.js.map} +1 -1
- package/dist/chunks/timeline-item.CHk8wXeT.js +433 -0
- package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.CHk8wXeT.js.map} +1 -1
- package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
- package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
- package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
- package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js} +120 -113
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.DIbfa5F1.js} +381 -360
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js.map → use-cached-selected-values.DIbfa5F1.js.map} +1 -1
- package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
- package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BiIraXZZ.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BiIraXZZ.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +51 -44
- package/dist/draggable-handle.js.map +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +205 -203
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +5 -0
- package/dist/input-time.js.map +1 -0
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
- package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
- package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
- package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
- package/dist/chunks/card.CoxQ_L0w.js +0 -216
- package/dist/chunks/chip.CdgpQyXN.js +0 -65
- package/dist/chunks/copy.C2kQ1PbI.js +0 -107
- package/dist/chunks/country.types.DjpMGz7a.js +0 -19
- package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
- package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
- package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
- package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
- package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
- package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
- package/dist/chunks/error-message.DCgo8q20.js +0 -143
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
- package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
- package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
- package/dist/chunks/pagination.dpVc6Yt0.js +0 -401
- package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
- package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
- package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
- package/dist/chunks/step.BlwoLfdw.js +0 -259
- package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
- package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
- package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
- package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
|
@@ -1,38 +1,45 @@
|
|
|
1
|
-
import { ref as w, watch as
|
|
1
|
+
import { ref as w, watch as be, computed as r, defineComponent as V, useSlots as Ie, toRefs as xe, openBlock as L, createBlock as z, resolveDynamicComponent as Ne, mergeProps as R, withCtx as q, createElementVNode as te, withKeys as ot, unref as l, createVNode as G, toHandlers as Q, createSlots as ue, renderList as ce, renderSlot as X, normalizeProps as pe, guardReactiveProps as fe, createCommentVNode as $, createElementBlock as F, toDisplayString as ye, normalizeClass as me, withDirectives as ee, vShow as Be, nextTick as O, useAttrs as lt, toRef as M, inject as nt, createTextVNode as st } from "vue";
|
|
2
2
|
import { d as ie, B as it } from "./typography.B3J6_tYk.js";
|
|
3
|
-
import {
|
|
4
|
-
import { u as rt } from "./aria-label.CaUURpnB.js";
|
|
5
|
-
import { u as ge } from "./index.B875RXHM.js";
|
|
6
|
-
import { u as dt } from "./form-field.D_2g7vaP.js";
|
|
7
|
-
import { B as m, b as ve, a as De, u as ut, c as ct, d as pt } from "./use-cached-selected-values.ClEJRFAd.js";
|
|
8
|
-
import { u as ft } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
9
|
-
import { d as mt } from "./debounce.DUTu11PS.js";
|
|
10
|
-
import { B as vt } from "./directive.Dpivxq_t.js";
|
|
11
|
-
import { B as A, a as yt } from "./keyboard-navigation.DWmhelVv.js";
|
|
12
|
-
import { a as re, b as U, c as bt, B as Q, D as gt } from "./dropdown-default-textbox.bq9AlGzJ.js";
|
|
13
|
-
import { u as ht } from "./use-has-slot.CyMiImRQ.js";
|
|
14
|
-
import { F as Lt, E as St } from "./error-message.DCgo8q20.js";
|
|
15
|
-
import { P as Te } from "./popper-container.DMN8n5iC.js";
|
|
16
|
-
import { h as wt } from "./button-actions.cMQWyZne.js";
|
|
17
|
-
import { _ as H } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
|
+
import { a as re, b as U, c as rt, B as Z, D as dt } from "./dropdown-default-textbox.aYsTZDZ7.js";
|
|
18
4
|
/* empty css */
|
|
5
|
+
import { _ as H } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
19
6
|
import { s as de } from "./events.BQOQSSb7.js";
|
|
7
|
+
import { g as j } from "./generate-uid.DBWe4g6T.js";
|
|
8
|
+
import { u as ut } from "./aria-label.CaUURpnB.js";
|
|
9
|
+
import { u as he } from "./index.B875RXHM.js";
|
|
10
|
+
import { u as ct } from "./form-field.D_2g7vaP.js";
|
|
11
|
+
import { B as m, b as ve, a as De, u as pt, c as ft, d as mt } from "./use-cached-selected-values.DIbfa5F1.js";
|
|
12
|
+
import { u as vt } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
13
|
+
import { d as bt } from "./debounce.DUTu11PS.js";
|
|
14
|
+
import { B as yt } from "./directive.Dpivxq_t.js";
|
|
15
|
+
import { B as I, a as ht } from "./keyboard-navigation.DWmhelVv.js";
|
|
16
|
+
import { u as gt } from "./use-has-slot.CyMiImRQ.js";
|
|
17
|
+
import { F as St, E as Lt } from "./error-message.849uzpkq.js";
|
|
18
|
+
import { P as Te } from "./popper-container.DMN8n5iC.js";
|
|
19
|
+
import { h as wt } from "./button-actions.Bh_PZ_fV.js";
|
|
20
20
|
import "../assets/dropdown.css";
|
|
21
|
-
const
|
|
21
|
+
const ge = {
|
|
22
|
+
"de-DE": { apply: "Anwenden", cancel: "Abbrechen", noOptionsMatchThisSearch: "Für diese Suche wurden keine Ergebnisse gefunden." },
|
|
23
|
+
"en-GB": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
|
|
22
24
|
"en-US": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
"es-ES": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda" },
|
|
26
|
+
"es-MX": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda" },
|
|
27
|
+
"fr-FR": { apply: "Appliquer", cancel: "Annuler", noOptionsMatchThisSearch: "Aucune option ne correspond à cette recherche" },
|
|
28
|
+
"it-IT": { apply: "Applica", cancel: "Annulla", noOptionsMatchThisSearch: "Nessun risultato corrispondente a questa ricerca" },
|
|
29
|
+
"ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索に一致するオプションはありません" },
|
|
30
|
+
"pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca" },
|
|
31
|
+
"zh-CN": { apply: "应用", cancel: "取消", noOptionsMatchThisSearch: "没有符合此搜索条件的选项" }
|
|
32
|
+
}, Et = (t, u, i, a) => {
|
|
33
|
+
const n = w(t.value), { t: s } = he({ messages: ge });
|
|
34
|
+
be(t, () => {
|
|
28
35
|
n.value = t.value;
|
|
29
36
|
});
|
|
30
37
|
const e = r(
|
|
31
38
|
() => JSON.stringify(n.value) === JSON.stringify(t.value)
|
|
32
39
|
), c = () => {
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
n.value = t.value,
|
|
40
|
+
a(m.SELECT, n.value), a(m.CLOSE_DROPDOWN);
|
|
41
|
+
}, g = () => {
|
|
42
|
+
n.value = t.value, a(m.CLOSE_DROPDOWN);
|
|
36
43
|
}, E = () => {
|
|
37
44
|
i.value && u.value && (n.value = t.value);
|
|
38
45
|
}, d = r(() => [
|
|
@@ -43,22 +50,22 @@ const he = {
|
|
|
43
50
|
},
|
|
44
51
|
{
|
|
45
52
|
title: s("cancel"),
|
|
46
|
-
event:
|
|
53
|
+
event: g
|
|
47
54
|
}
|
|
48
|
-
]),
|
|
49
|
-
n.value =
|
|
50
|
-
}, p = (
|
|
51
|
-
|
|
52
|
-
}, f = (
|
|
53
|
-
|
|
54
|
-
}, C = (
|
|
55
|
-
|
|
55
|
+
]), y = (h) => {
|
|
56
|
+
n.value = h, u.value || a(m.SELECT, h);
|
|
57
|
+
}, p = (h) => {
|
|
58
|
+
y(h), a(m.TAB);
|
|
59
|
+
}, f = (h) => {
|
|
60
|
+
y(h), a(m.ENTER);
|
|
61
|
+
}, C = (h) => {
|
|
62
|
+
y(h), a(m.SPACE);
|
|
56
63
|
}, v = () => {
|
|
57
|
-
|
|
64
|
+
g(), a(m.ESCAPE);
|
|
58
65
|
}, B = () => {
|
|
59
|
-
|
|
66
|
+
a(m.SHOW_MORE);
|
|
60
67
|
}, D = {
|
|
61
|
-
[m.SELECT]:
|
|
68
|
+
[m.SELECT]: y,
|
|
62
69
|
[m.SHOW_MORE]: B,
|
|
63
70
|
[m.TAB]: p,
|
|
64
71
|
[m.SPACE]: C,
|
|
@@ -73,10 +80,10 @@ const he = {
|
|
|
73
80
|
onEscapeKey: v,
|
|
74
81
|
onOutsideDropdownClick: E
|
|
75
82
|
};
|
|
76
|
-
}, Ct =
|
|
77
|
-
i18n: { messages:
|
|
83
|
+
}, Ct = V({
|
|
84
|
+
i18n: { messages: ge },
|
|
78
85
|
name: "bento-dropdown-options-container"
|
|
79
|
-
}), Ot = /* @__PURE__ */
|
|
86
|
+
}), Ot = /* @__PURE__ */ V({
|
|
80
87
|
...Ct,
|
|
81
88
|
props: {
|
|
82
89
|
/**
|
|
@@ -187,12 +194,12 @@ const he = {
|
|
|
187
194
|
}
|
|
188
195
|
},
|
|
189
196
|
setup(t, { expose: u, emit: i }) {
|
|
190
|
-
const
|
|
197
|
+
const a = Ie(), n = i, s = t, { selectedValue: e, multiple: c } = xe(s), g = w(null), { t: E } = he({ messages: ge }), d = r(() => s.open && !s.disabled), y = r(() => E("noOptionsMatchThisSearch")), p = r(() => ({
|
|
191
198
|
"b-dropdown-options-container--single": !s?.multiple
|
|
192
199
|
})), f = r(() => ({
|
|
193
200
|
"b-dropdown-options-container__listbox--single": !s?.multiple
|
|
194
|
-
})), { actions: C, internalSelectedValue: v, listeners: B, onEscapeKey: D, onOutsideDropdownClick:
|
|
195
|
-
const
|
|
201
|
+
})), { actions: C, internalSelectedValue: v, listeners: B, onEscapeKey: D, onOutsideDropdownClick: h } = Et(e, c, d, n), S = r(() => s?.multiple ? wt : Te), P = r(() => {
|
|
202
|
+
const A = {
|
|
196
203
|
"min-width": `${s?.targetElement?.clientWidth}px`,
|
|
197
204
|
"max-width": "min(500px, 95%)"
|
|
198
205
|
};
|
|
@@ -207,7 +214,7 @@ const he = {
|
|
|
207
214
|
position: "bottom-start",
|
|
208
215
|
style: {
|
|
209
216
|
width: "auto",
|
|
210
|
-
...
|
|
217
|
+
...A
|
|
211
218
|
},
|
|
212
219
|
targetElement: s.targetElement
|
|
213
220
|
} : {
|
|
@@ -216,29 +223,29 @@ const he = {
|
|
|
216
223
|
position: "bottom-start",
|
|
217
224
|
style: {
|
|
218
225
|
display: d.value ? "block" : "none",
|
|
219
|
-
...
|
|
226
|
+
...A
|
|
220
227
|
},
|
|
221
228
|
targetElement: s.targetElement
|
|
222
229
|
};
|
|
223
230
|
});
|
|
224
231
|
return u({
|
|
225
|
-
onOutsideDropdownClick:
|
|
226
|
-
}), (
|
|
232
|
+
onOutsideDropdownClick: h
|
|
233
|
+
}), (A, _) => d.value ? (L(), z(Ne(S.value), R({
|
|
227
234
|
key: 0,
|
|
228
235
|
class: ["b-dropdown-options-container", p.value]
|
|
229
|
-
},
|
|
230
|
-
default:
|
|
236
|
+
}, P.value), {
|
|
237
|
+
default: q(() => [
|
|
231
238
|
te("div", {
|
|
232
|
-
onKeydown:
|
|
239
|
+
onKeydown: _[0] || (_[0] = ot(
|
|
233
240
|
//@ts-ignore
|
|
234
|
-
(...
|
|
241
|
+
(...W) => l(D) && l(D)(...W),
|
|
235
242
|
["esc"]
|
|
236
243
|
))
|
|
237
244
|
}, [
|
|
238
|
-
|
|
245
|
+
G(l(ve), R({
|
|
239
246
|
id: t.id,
|
|
240
247
|
ref_key: "dropdownOptionsListboxRef",
|
|
241
|
-
ref:
|
|
248
|
+
ref: g,
|
|
242
249
|
"aria-label": t.ariaLabel,
|
|
243
250
|
class: ["b-dropdown-options-container__listbox", f.value],
|
|
244
251
|
"component-loading": t.componentLoading,
|
|
@@ -248,74 +255,74 @@ const he = {
|
|
|
248
255
|
"selected-value": l(v),
|
|
249
256
|
multiple: l(c),
|
|
250
257
|
"static-categories": t.staticCategories,
|
|
251
|
-
"no-results-message":
|
|
258
|
+
"no-results-message": y.value,
|
|
252
259
|
searching: t.searching,
|
|
253
260
|
loading: t.loading,
|
|
254
261
|
"lazy-load-type": t.lazyLoadType,
|
|
255
262
|
"has-more-items": t.hasMoreItems,
|
|
256
263
|
"virtual-scroll": t.virtualScroll
|
|
257
|
-
},
|
|
258
|
-
ce(l(
|
|
259
|
-
name:
|
|
260
|
-
fn:
|
|
261
|
-
|
|
264
|
+
}, Q(l(B))), ue({ _: 2 }, [
|
|
265
|
+
ce(l(a), (W, b) => ({
|
|
266
|
+
name: b,
|
|
267
|
+
fn: q((K) => [
|
|
268
|
+
X(A.$slots, b, pe(fe(K)), void 0, !0)
|
|
262
269
|
])
|
|
263
270
|
}))
|
|
264
271
|
]), 1040, ["id", "aria-label", "class", "component-loading", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
265
272
|
], 32)
|
|
266
273
|
]),
|
|
267
274
|
_: 3
|
|
268
|
-
}, 16, ["class"])) :
|
|
275
|
+
}, 16, ["class"])) : $("", !0);
|
|
269
276
|
}
|
|
270
277
|
}), Bt = /* @__PURE__ */ H(Ot, [["__scopeId", "data-v-abf92e14"]]);
|
|
271
|
-
let
|
|
278
|
+
let Me = 0;
|
|
272
279
|
const Dt = {
|
|
273
280
|
beforeCreate() {
|
|
274
|
-
this.uuid =
|
|
281
|
+
this.uuid = Me.toString(), Me += 1;
|
|
275
282
|
}
|
|
276
283
|
}, Tt = { key: 0 };
|
|
277
|
-
function
|
|
278
|
-
return
|
|
284
|
+
function Mt(t, u, i, a, n, s) {
|
|
285
|
+
return L(), F("svg", R({ role: "img" }, t.$attrs, {
|
|
279
286
|
class: "ui-assets-icons-16",
|
|
280
287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
281
288
|
width: "16",
|
|
282
289
|
height: "16",
|
|
283
290
|
fill: "none"
|
|
284
291
|
}), [
|
|
285
|
-
t.$attrs["svg-title"] ? (
|
|
292
|
+
t.$attrs["svg-title"] ? (L(), F("title", Tt, ye(t.$attrs["svg-title"]), 1)) : $("", !0),
|
|
286
293
|
u[0] || (u[0] = te("path", {
|
|
287
294
|
fill: "#001222",
|
|
288
295
|
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
289
296
|
}, null, -1))
|
|
290
297
|
], 16);
|
|
291
298
|
}
|
|
292
|
-
const
|
|
293
|
-
let
|
|
294
|
-
const
|
|
299
|
+
const At = /* @__PURE__ */ H(Dt, [["render", Mt]]);
|
|
300
|
+
let Ae = 0;
|
|
301
|
+
const It = {
|
|
295
302
|
beforeCreate() {
|
|
296
|
-
this.uuid =
|
|
303
|
+
this.uuid = Ae.toString(), Ae += 1;
|
|
297
304
|
}
|
|
298
|
-
},
|
|
299
|
-
function
|
|
300
|
-
return
|
|
305
|
+
}, xt = { key: 0 };
|
|
306
|
+
function Nt(t, u, i, a, n, s) {
|
|
307
|
+
return L(), F("svg", R({ role: "img" }, t.$attrs, {
|
|
301
308
|
class: "ui-assets-icons-16",
|
|
302
309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
303
310
|
width: "16",
|
|
304
311
|
height: "16",
|
|
305
312
|
fill: "none"
|
|
306
313
|
}), [
|
|
307
|
-
t.$attrs["svg-title"] ? (
|
|
314
|
+
t.$attrs["svg-title"] ? (L(), F("title", xt, ye(t.$attrs["svg-title"]), 1)) : $("", !0),
|
|
308
315
|
u[0] || (u[0] = te("path", {
|
|
309
316
|
fill: "#001222",
|
|
310
317
|
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
311
318
|
}, null, -1))
|
|
312
319
|
], 16);
|
|
313
320
|
}
|
|
314
|
-
const
|
|
321
|
+
const kt = /* @__PURE__ */ H(It, [["render", Nt]]), $t = { class: "b-dropdown-small-textbox__chevron" }, Rt = V({
|
|
315
322
|
name: "dropdown-small-textbox",
|
|
316
323
|
inheritAttrs: !1
|
|
317
|
-
}),
|
|
318
|
-
...
|
|
324
|
+
}), Ft = /* @__PURE__ */ V({
|
|
325
|
+
...Rt,
|
|
319
326
|
props: {
|
|
320
327
|
/**
|
|
321
328
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -372,24 +379,24 @@ const $t = /* @__PURE__ */ H(At, [["render", Mt]]), Rt = { class: "b-dropdown-sm
|
|
|
372
379
|
},
|
|
373
380
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
374
381
|
setup(t, { expose: u, emit: i }) {
|
|
375
|
-
const
|
|
382
|
+
const a = i, n = t, s = w(null), e = r(() => ({
|
|
376
383
|
[`b-dropdown-small-textbox--${re.DISABLED}`]: n.disabled,
|
|
377
384
|
[`b-dropdown-small-textbox--${re.READONLY}`]: n.readonly,
|
|
378
385
|
[`b-dropdown-small-textbox--${re.OPENED}`]: n.open
|
|
379
|
-
})), c = r(() => n.open && !n.disabled && !n.readonly),
|
|
380
|
-
|
|
386
|
+
})), c = r(() => n.open && !n.disabled && !n.readonly), g = (v) => {
|
|
387
|
+
a("input", v);
|
|
381
388
|
}, E = (v) => {
|
|
382
|
-
|
|
389
|
+
a("keydown", v);
|
|
383
390
|
}, d = (v) => {
|
|
384
|
-
de(v),
|
|
385
|
-
},
|
|
386
|
-
de(v),
|
|
391
|
+
de(v), a("open");
|
|
392
|
+
}, y = (v) => {
|
|
393
|
+
de(v), a("close");
|
|
387
394
|
}, p = (v) => {
|
|
388
|
-
de(v),
|
|
395
|
+
de(v), a("clear");
|
|
389
396
|
}, f = {
|
|
390
|
-
[U.INPUT]:
|
|
397
|
+
[U.INPUT]: g,
|
|
391
398
|
[U.OPEN]: d,
|
|
392
|
-
[U.CLOSE]:
|
|
399
|
+
[U.CLOSE]: y,
|
|
393
400
|
[U.CLEAR]: p,
|
|
394
401
|
[U.KEYDOWN]: E
|
|
395
402
|
};
|
|
@@ -397,22 +404,22 @@ const $t = /* @__PURE__ */ H(At, [["render", Mt]]), Rt = { class: "b-dropdown-sm
|
|
|
397
404
|
focus: () => {
|
|
398
405
|
s.value.focus();
|
|
399
406
|
}
|
|
400
|
-
}), (v, B) => (
|
|
407
|
+
}), (v, B) => (L(), F("div", {
|
|
401
408
|
class: me(["b-dropdown-small-textbox", e.value])
|
|
402
409
|
}, [
|
|
403
|
-
|
|
410
|
+
G(rt, R({
|
|
404
411
|
ref_key: "baseTextbox",
|
|
405
412
|
ref: s
|
|
406
413
|
}, { ...v.$attrs, ...v.$props }, {
|
|
407
414
|
class: "b-dropdown-small-textbox__textbox",
|
|
408
|
-
size: l(
|
|
409
|
-
},
|
|
410
|
-
icon:
|
|
411
|
-
te("div",
|
|
412
|
-
ee(
|
|
415
|
+
size: l(Z).SMALL
|
|
416
|
+
}, Q(f)), {
|
|
417
|
+
icon: q(() => [
|
|
418
|
+
te("div", $t, [
|
|
419
|
+
ee(G(l(kt), { "svg-title": "opened" }, null, 512), [
|
|
413
420
|
[Be, c.value]
|
|
414
421
|
]),
|
|
415
|
-
ee(
|
|
422
|
+
ee(G(l(At), { "svg-title": "closed" }, null, 512), [
|
|
416
423
|
[Be, !c.value]
|
|
417
424
|
])
|
|
418
425
|
])
|
|
@@ -421,96 +428,96 @@ const $t = /* @__PURE__ */ H(At, [["render", Mt]]), Rt = { class: "b-dropdown-sm
|
|
|
421
428
|
}, 16, ["size"])
|
|
422
429
|
], 2));
|
|
423
430
|
}
|
|
424
|
-
}),
|
|
425
|
-
if (
|
|
426
|
-
const n =
|
|
431
|
+
}), Pt = /* @__PURE__ */ H(Ft, [["__scopeId", "data-v-39ce3ec8"]]), _t = (t, u) => u.value.reduce((i, a) => {
|
|
432
|
+
if (a.items) {
|
|
433
|
+
const n = a.items.filter(
|
|
427
434
|
(e) => t.value.find((c) => c.value === e.value)
|
|
428
435
|
);
|
|
429
|
-
n.length ===
|
|
436
|
+
n.length === a.items.length ? i.push(a.displayValue ?? a.label) : n.forEach(({ label: e, displayValue: c }) => i.push(c ?? e));
|
|
430
437
|
}
|
|
431
|
-
return t.value.find((n) => n.value ===
|
|
432
|
-
}, []).join(", "), Kt = ({ items: t, placeholder: u, selectedValues: i, isMultiSelect:
|
|
438
|
+
return t.value.find((n) => n.value === a.value) && i.push(a.displayValue ?? a.label), i;
|
|
439
|
+
}, []).join(", "), Kt = ({ items: t, placeholder: u, selectedValues: i, isMultiSelect: a }) => {
|
|
433
440
|
const n = r(
|
|
434
|
-
() =>
|
|
441
|
+
() => a.value && t.value.find((e) => e.items?.length)
|
|
435
442
|
);
|
|
436
|
-
return r(() => i.value.length ? n.value ?
|
|
437
|
-
},
|
|
443
|
+
return r(() => i.value.length ? n.value ? _t(i, t) : i.value.map(({ label: e, displayValue: c }) => c ?? e).join(", ") : u.value || null);
|
|
444
|
+
}, ke = (t) => {
|
|
438
445
|
t.value.$children?.[0].$refs.textbox.focus();
|
|
439
446
|
}, zt = ({
|
|
440
447
|
inputContainerRef: t,
|
|
441
448
|
optionsContainerRef: u,
|
|
442
449
|
selectedValueIndex: i,
|
|
443
|
-
isDropdownOpen:
|
|
450
|
+
isDropdownOpen: a,
|
|
444
451
|
isDynamicFltering: n,
|
|
445
452
|
items: s,
|
|
446
453
|
isMultiple: e
|
|
447
|
-
}, c,
|
|
448
|
-
const d = async (
|
|
449
|
-
n.value && await O(), s.value[
|
|
450
|
-
},
|
|
454
|
+
}, c, g, E) => {
|
|
455
|
+
const d = async (b) => {
|
|
456
|
+
n.value && await O(), s.value[b]?.focus();
|
|
457
|
+
}, y = async (b) => {
|
|
451
458
|
n.value && await O();
|
|
452
459
|
const K = u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
|
|
453
460
|
"button"
|
|
454
461
|
);
|
|
455
|
-
K.length ? K[
|
|
456
|
-
}, p = (
|
|
457
|
-
|
|
462
|
+
K.length ? K[b]?.focus() : d(b);
|
|
463
|
+
}, p = (b) => u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
|
|
464
|
+
b
|
|
458
465
|
), f = () => {
|
|
459
|
-
|
|
466
|
+
a.value || g(), O(() => {
|
|
460
467
|
p(0), d(0);
|
|
461
468
|
});
|
|
462
469
|
}, C = () => {
|
|
463
|
-
|
|
470
|
+
a.value || g(), O(() => {
|
|
464
471
|
p(s.value.length - 1), d(s.value.length - 1);
|
|
465
472
|
});
|
|
466
|
-
}, v = ({ detail:
|
|
467
|
-
|
|
468
|
-
}, B = ({ detail:
|
|
469
|
-
|
|
473
|
+
}, v = ({ detail: b }) => {
|
|
474
|
+
b.preventDefault(), f();
|
|
475
|
+
}, B = ({ detail: b }) => {
|
|
476
|
+
b.preventDefault(), C();
|
|
470
477
|
}, D = () => {
|
|
471
478
|
f();
|
|
472
|
-
},
|
|
479
|
+
}, h = () => {
|
|
473
480
|
C();
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
e ?
|
|
481
|
+
}, S = ({ detail: b }) => {
|
|
482
|
+
b.preventDefault(), c(), a.value && O(() => {
|
|
483
|
+
e ? y(0) : (p(i.value), d(i.value));
|
|
477
484
|
});
|
|
478
|
-
},
|
|
479
|
-
|
|
480
|
-
e ?
|
|
485
|
+
}, P = ({ detail: b }) => {
|
|
486
|
+
b.preventDefault(), c(), a.value && O(() => {
|
|
487
|
+
e ? y(0) : (p(i.value), d(i.value));
|
|
481
488
|
});
|
|
482
|
-
},
|
|
483
|
-
|
|
484
|
-
},
|
|
485
|
-
|
|
489
|
+
}, A = () => {
|
|
490
|
+
a.value && E();
|
|
491
|
+
}, _ = () => {
|
|
492
|
+
a.value && (E(), ke(t));
|
|
486
493
|
};
|
|
487
494
|
return r(() => ({
|
|
488
|
-
[
|
|
489
|
-
[
|
|
490
|
-
[
|
|
491
|
-
[
|
|
492
|
-
...n.value ? {} : { [
|
|
493
|
-
[
|
|
494
|
-
[
|
|
495
|
-
[
|
|
495
|
+
[I.ARROW_DOWN]: v,
|
|
496
|
+
[I.ARROW_UP]: B,
|
|
497
|
+
[I.HOME]: D,
|
|
498
|
+
[I.END]: h,
|
|
499
|
+
...n.value ? {} : { [I.SPACE]: S },
|
|
500
|
+
[I.ENTER]: P,
|
|
501
|
+
[I.TAB]: A,
|
|
502
|
+
[I.ESCAPE]: _
|
|
496
503
|
}));
|
|
497
|
-
},
|
|
498
|
-
const
|
|
504
|
+
}, qt = ({ inputContainerRef: t, isDropdownOpen: u }, i) => {
|
|
505
|
+
const a = () => {
|
|
499
506
|
u.value && i(), O(() => {
|
|
500
|
-
|
|
507
|
+
ke(t);
|
|
501
508
|
});
|
|
502
509
|
};
|
|
503
510
|
return {
|
|
504
|
-
[m.ENTER]:
|
|
505
|
-
[m.ESCAPE]:
|
|
506
|
-
[m.TAB]:
|
|
507
|
-
[m.SPACE]:
|
|
511
|
+
[m.ENTER]: a,
|
|
512
|
+
[m.ESCAPE]: a,
|
|
513
|
+
[m.TAB]: a,
|
|
514
|
+
[m.SPACE]: a
|
|
508
515
|
};
|
|
509
516
|
};
|
|
510
|
-
function
|
|
511
|
-
const s = w(t), e = w(u), c = (d,
|
|
512
|
-
return
|
|
513
|
-
|
|
517
|
+
function Vt(t, u, i, a, n) {
|
|
518
|
+
const s = w(t), e = w(u), c = (d, y = []) => y.flatMap((p) => p.label.toLocaleLowerCase().includes(d) ? a?.value && p.items ? [...c(d, p.items)] : [p, ...c(d, p.items)] : p.items ? [...c(d, p.items)] : []), g = i !== void 0 ? bt(() => i(s.value), n ?? 300) : void 0;
|
|
519
|
+
return be(s, () => {
|
|
520
|
+
g !== void 0 && g();
|
|
514
521
|
}), r(() => {
|
|
515
522
|
if (!s.value || i !== void 0)
|
|
516
523
|
return e.value;
|
|
@@ -518,19 +525,26 @@ function Wt(t, u, i, o, n) {
|
|
|
518
525
|
return c(d, e.value);
|
|
519
526
|
});
|
|
520
527
|
}
|
|
521
|
-
const
|
|
528
|
+
const $e = {
|
|
529
|
+
"de-DE": { all: "Alle", ariaLabelFallback: "Dropdown", clearSearch: "Filter löschen" },
|
|
530
|
+
"en-GB": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
|
|
522
531
|
"en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
|
|
532
|
+
"es-ES": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Limpiar filtro" },
|
|
533
|
+
"es-MX": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Limpiar filtro" },
|
|
534
|
+
"fr-FR": { all: "Tous", ariaLabelFallback: "Menu déroulant", clearSearch: "Effacer le filtre" },
|
|
535
|
+
"it-IT": { all: "Tutti", ariaLabelFallback: "Menu a discesa", clearSearch: "Cancella filtro" },
|
|
523
536
|
"ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
|
|
524
|
-
"pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" }
|
|
525
|
-
|
|
526
|
-
|
|
537
|
+
"pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" },
|
|
538
|
+
"zh-CN": { all: "全部", ariaLabelFallback: "下拉菜单", clearSearch: "清除筛选器" }
|
|
539
|
+
}, Wt = /* @__PURE__ */ Symbol("input field component injection key"), pa = /* @__PURE__ */ Symbol("input field hint injection key"), fa = /* @__PURE__ */ Symbol("input field parent component injection key"), Ut = V({
|
|
540
|
+
i18n: { messages: $e },
|
|
527
541
|
name: "b-dropdown",
|
|
528
542
|
components: {
|
|
529
|
-
DropdownInputDefault:
|
|
530
|
-
DropdownInputSmall:
|
|
543
|
+
DropdownInputDefault: dt,
|
|
544
|
+
DropdownInputSmall: Pt
|
|
531
545
|
},
|
|
532
546
|
model: { prop: "modelValue" }
|
|
533
|
-
}), jt = /* @__PURE__ */
|
|
547
|
+
}), jt = /* @__PURE__ */ V({
|
|
534
548
|
...Ut,
|
|
535
549
|
props: {
|
|
536
550
|
ariaLabel: { default: null },
|
|
@@ -565,101 +579,101 @@ const Re = {
|
|
|
565
579
|
},
|
|
566
580
|
emits: ["input", "update:model-value", "show-more", "open"],
|
|
567
581
|
setup(t, { expose: u, emit: i }) {
|
|
568
|
-
const
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
),
|
|
582
|
+
const a = lt(), n = Ie(), s = gt(n), e = t, c = i, { t: g } = he({ messages: $e }), { emitValue: E } = ct(c), d = w(null), y = w(null), p = w(null), f = w(!1), C = j("bento-dropdown-options-container"), v = j("dropdown-label"), B = j("dropdown-description"), D = j("dropdown-error"), { isReadOnly: h } = vt(M(e, "readonly")), S = r(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: P, cachedListboxSelectedValues: A, setCachedValues: _ } = pt(
|
|
583
|
+
M(e, "items"),
|
|
584
|
+
S,
|
|
585
|
+
M(e, "multiple"),
|
|
586
|
+
M(e, "enableValueLabelPair")
|
|
587
|
+
), W = w(a["aria-label"]), b = w(a["aria-describedby"]), { ariaLabel: K, label: J } = xe(e), Re = r(() => g("ariaLabelFallback")), Se = ut({
|
|
574
588
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
575
|
-
ariaLabel: K.value ||
|
|
589
|
+
ariaLabel: K.value || W,
|
|
576
590
|
label: J,
|
|
577
|
-
defaultFallback:
|
|
578
|
-
}),
|
|
591
|
+
defaultFallback: Re
|
|
592
|
+
}), Le = e.size === Z.SMALL || nt(Wt, !1), Fe = r(() => Le ? Z.SMALL : Z.DEFAULT), Pe = r(() => ({
|
|
579
593
|
"b-dropdown--condensed": e.condensed
|
|
580
|
-
})),
|
|
594
|
+
})), _e = r(() => ({
|
|
581
595
|
"b-dropdown__description--error": !!e.errorMessage
|
|
582
|
-
})),
|
|
583
|
-
|
|
596
|
+
})), x = w(""), Y = M(e, "items"), we = M(e, "staticCategories"), ae = Vt(
|
|
597
|
+
x,
|
|
584
598
|
Y,
|
|
585
599
|
e?.search?.searchEvent,
|
|
586
600
|
we,
|
|
587
601
|
e?.search?.debounceTime
|
|
588
|
-
),
|
|
602
|
+
), oe = r(() => e.dynamicFiltering && !!x.value), Ke = Kt({
|
|
589
603
|
items: Y,
|
|
590
|
-
placeholder:
|
|
591
|
-
isMultiSelect:
|
|
592
|
-
selectedValues:
|
|
604
|
+
placeholder: M(e, "placeholder"),
|
|
605
|
+
isMultiSelect: M(e, "multiple"),
|
|
606
|
+
selectedValues: P
|
|
593
607
|
}), ze = r(() => {
|
|
594
|
-
if (e?.multiple && Array.isArray(
|
|
608
|
+
if (e?.multiple && Array.isArray(S.value))
|
|
595
609
|
return e.items.filter(
|
|
596
|
-
({ value:
|
|
610
|
+
({ value: o }) => e?.value && (e?.value).includes(o)
|
|
597
611
|
);
|
|
598
612
|
if (!e.multiple && e.staticCategories) {
|
|
599
|
-
const
|
|
600
|
-
(
|
|
613
|
+
const o = e.items.find(
|
|
614
|
+
(N) => N.items.some((k) => k.value === S.value)
|
|
601
615
|
);
|
|
602
|
-
return
|
|
616
|
+
return o ? o.items.find((N) => N.value === S.value) : null;
|
|
603
617
|
}
|
|
604
|
-
return e.items.find(({ value:
|
|
605
|
-
}),
|
|
606
|
-
const
|
|
607
|
-
return
|
|
608
|
-
}), { isMultiLevelSelect: Ee, flattenedItemsList:
|
|
618
|
+
return e.items.find(({ value: o }) => o === S.value);
|
|
619
|
+
}), qe = r(() => {
|
|
620
|
+
const o = ae.value.findIndex(({ value: T }) => e.enableValueLabelPair ? S.value.value === T : S.value === T);
|
|
621
|
+
return o > -1 ? o : 0;
|
|
622
|
+
}), { isMultiLevelSelect: Ee, flattenedItemsList: Ve } = ft(Y), We = r(() => Ee.value && !e.staticCategories), Ue = r(() => We.value ? "treeitem" : "option"), je = r(() => {
|
|
609
623
|
if (e.multiple) {
|
|
610
|
-
const
|
|
611
|
-
return
|
|
624
|
+
const o = Array.isArray(S.value) ? S.value.length : 0, T = Ee.value ? Ve.value.length : Y.value.length;
|
|
625
|
+
return o === 0 ? null : !e.hasMoreItems && T > 0 && T === o ? g("all") : o;
|
|
612
626
|
}
|
|
613
627
|
return null;
|
|
614
628
|
}), He = r(
|
|
615
629
|
() => [
|
|
616
630
|
e.description ? B : null,
|
|
617
|
-
|
|
631
|
+
b.value,
|
|
618
632
|
e.errorMessage ? D : null
|
|
619
633
|
].filter(Boolean).join(" ") || null
|
|
620
|
-
), Je = r(() => p.value?.$el), { visibleDomOptions: Ye, updateVisibleDomOptions: Ce } =
|
|
634
|
+
), Je = r(() => p.value?.$el), { visibleDomOptions: Ye, updateVisibleDomOptions: Ce } = mt(
|
|
621
635
|
Je,
|
|
622
|
-
|
|
636
|
+
ae,
|
|
623
637
|
Ue
|
|
624
|
-
),
|
|
625
|
-
|
|
638
|
+
), Ge = () => {
|
|
639
|
+
h.value || (f.value = !0, O(() => {
|
|
626
640
|
Ce();
|
|
627
641
|
}));
|
|
628
642
|
}, le = () => {
|
|
629
643
|
f.value = !1;
|
|
630
644
|
}, ne = () => {
|
|
631
|
-
|
|
645
|
+
h.value || (f.value = !f.value, O(() => {
|
|
632
646
|
Ce();
|
|
633
|
-
}),
|
|
634
|
-
}, Ge = () => {
|
|
635
|
-
ae.value && (N.value = ""), f.value && (f.value = !1, p.value.onOutsideDropdownClick());
|
|
636
|
-
}, Qe = async (a) => {
|
|
637
|
-
e.multiple || (N.value = "", f.value = !1), F(a), E(I.value), e.multiple || (await O(), Oe());
|
|
647
|
+
}), oe.value && (x.value = ""));
|
|
638
648
|
}, Xe = () => {
|
|
649
|
+
oe.value && (x.value = ""), f.value && (f.value = !1, p.value.onOutsideDropdownClick());
|
|
650
|
+
}, Ze = async (o) => {
|
|
651
|
+
e.multiple || (x.value = "", f.value = !1), _(o), E(A.value), e.multiple || (await O(), Oe());
|
|
652
|
+
}, Qe = () => {
|
|
639
653
|
c(m.SHOW_MORE);
|
|
640
654
|
}, et = zt(
|
|
641
655
|
{
|
|
642
656
|
inputContainerRef: d,
|
|
643
657
|
optionsContainerRef: p,
|
|
644
|
-
selectedValueIndex:
|
|
658
|
+
selectedValueIndex: qe,
|
|
645
659
|
isDropdownOpen: f,
|
|
646
|
-
isDynamicFltering:
|
|
660
|
+
isDynamicFltering: M(e, "dynamicFiltering"),
|
|
647
661
|
items: Ye,
|
|
648
662
|
isMultiple: e.multiple
|
|
649
663
|
},
|
|
650
664
|
ne,
|
|
651
|
-
|
|
665
|
+
Ge,
|
|
652
666
|
le
|
|
653
|
-
), tt =
|
|
667
|
+
), tt = qt(
|
|
654
668
|
{
|
|
655
669
|
inputContainerRef: d,
|
|
656
670
|
isDropdownOpen: f
|
|
657
671
|
},
|
|
658
672
|
le
|
|
659
|
-
),
|
|
673
|
+
), at = {
|
|
660
674
|
[m.CLOSE_DROPDOWN]: le,
|
|
661
|
-
[m.SELECT]:
|
|
662
|
-
[m.SHOW_MORE]:
|
|
675
|
+
[m.SELECT]: Ze,
|
|
676
|
+
[m.SHOW_MORE]: Qe,
|
|
663
677
|
...tt
|
|
664
678
|
};
|
|
665
679
|
e.error && ie(
|
|
@@ -677,123 +691,123 @@ const Re = {
|
|
|
677
691
|
const Oe = () => {
|
|
678
692
|
d.value.focus();
|
|
679
693
|
};
|
|
680
|
-
return
|
|
694
|
+
return be(
|
|
681
695
|
() => f.value,
|
|
682
|
-
(
|
|
683
|
-
|
|
696
|
+
(o) => {
|
|
697
|
+
o && c("open");
|
|
684
698
|
}
|
|
685
699
|
), u({
|
|
686
700
|
focus: Oe
|
|
687
|
-
}), (
|
|
688
|
-
class: me(["b-dropdown",
|
|
701
|
+
}), (o, T) => ee((L(), F("div", {
|
|
702
|
+
class: me(["b-dropdown", Pe.value])
|
|
689
703
|
}, [
|
|
690
|
-
l(J) ? (
|
|
704
|
+
l(J) ? (L(), z(l(St), {
|
|
691
705
|
key: 0,
|
|
692
706
|
id: l(v),
|
|
693
|
-
condensed:
|
|
707
|
+
condensed: o.condensed,
|
|
694
708
|
label: l(J),
|
|
695
|
-
"tooltip-text":
|
|
696
|
-
optional:
|
|
697
|
-
required:
|
|
698
|
-
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) :
|
|
699
|
-
ee((
|
|
709
|
+
"tooltip-text": o.tooltipText,
|
|
710
|
+
optional: o.optional,
|
|
711
|
+
required: o.required
|
|
712
|
+
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : $("", !0),
|
|
713
|
+
ee((L(), F("div", R({
|
|
700
714
|
ref_key: "inputContainerRefWrapper",
|
|
701
|
-
ref:
|
|
702
|
-
},
|
|
703
|
-
(
|
|
715
|
+
ref: y
|
|
716
|
+
}, Q(l(et), !0)), [
|
|
717
|
+
(L(), z(Ne(Fe.value), {
|
|
704
718
|
ref_key: "inputContainerRef",
|
|
705
719
|
ref: d,
|
|
706
|
-
condensed:
|
|
707
|
-
value:
|
|
720
|
+
condensed: o.condensed,
|
|
721
|
+
value: x.value,
|
|
708
722
|
"additional-items-selected": je.value,
|
|
709
723
|
"aria-controls": l(C),
|
|
710
724
|
ariaExpanded: f.value,
|
|
711
725
|
"aria-labelledby": l(J) ? l(v) : null,
|
|
712
726
|
"aria-describedby": He.value,
|
|
713
|
-
"aria-label": l(
|
|
714
|
-
"aria-readonly": l(
|
|
715
|
-
"aria-required":
|
|
716
|
-
readonly: l(
|
|
717
|
-
disabled:
|
|
727
|
+
"aria-label": l(Se),
|
|
728
|
+
"aria-readonly": l(h),
|
|
729
|
+
"aria-required": o.required,
|
|
730
|
+
readonly: l(h),
|
|
731
|
+
disabled: o.disabled,
|
|
718
732
|
"display-value": l(Ke),
|
|
719
|
-
"dynamic-filtering":
|
|
720
|
-
"is-invalid": !!
|
|
721
|
-
multiple:
|
|
733
|
+
"dynamic-filtering": o.dynamicFiltering,
|
|
734
|
+
"is-invalid": !!o.errorMessage || o.error,
|
|
735
|
+
multiple: o.multiple,
|
|
722
736
|
open: f.value,
|
|
723
|
-
"selected-value-item": l(
|
|
724
|
-
"show-slot-content-in-multiple":
|
|
725
|
-
onInput: T[0] || (T[0] = (
|
|
737
|
+
"selected-value-item": l(Le) ? void 0 : ze.value,
|
|
738
|
+
"show-slot-content-in-multiple": o.showSlotContentInMultiple,
|
|
739
|
+
onInput: T[0] || (T[0] = (N) => x.value = N),
|
|
726
740
|
onOpen: ne,
|
|
727
741
|
onClose: ne
|
|
728
742
|
}, ue({ _: 2 }, [
|
|
729
|
-
ce(l(n), (
|
|
730
|
-
name:
|
|
731
|
-
fn:
|
|
732
|
-
|
|
743
|
+
ce(l(n), (N, k) => ({
|
|
744
|
+
name: k,
|
|
745
|
+
fn: q((se) => [
|
|
746
|
+
X(o.$slots, k, pe(fe(se)), void 0, !0)
|
|
733
747
|
])
|
|
734
748
|
}))
|
|
735
749
|
]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "aria-required", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
|
|
736
750
|
], 16)), [
|
|
737
|
-
[l(
|
|
751
|
+
[l(ht)]
|
|
738
752
|
]),
|
|
739
|
-
d.value ? (
|
|
753
|
+
d.value ? (L(), z(l(Bt), R({
|
|
740
754
|
key: 1,
|
|
741
755
|
id: l(C),
|
|
742
756
|
ref_key: "optionsContainerRef",
|
|
743
757
|
ref: p,
|
|
744
|
-
"aria-label": l(
|
|
745
|
-
"component-loading":
|
|
746
|
-
"empty-state":
|
|
747
|
-
disabled:
|
|
748
|
-
"is-option-disabled":
|
|
749
|
-
items: l(
|
|
750
|
-
multiple:
|
|
758
|
+
"aria-label": l(Se),
|
|
759
|
+
"component-loading": o.componentLoading,
|
|
760
|
+
"empty-state": o.emptyState,
|
|
761
|
+
disabled: o.disabled,
|
|
762
|
+
"is-option-disabled": o.isOptionDisabled,
|
|
763
|
+
items: l(ae),
|
|
764
|
+
multiple: o.multiple,
|
|
751
765
|
"static-categories": we.value,
|
|
752
766
|
open: f.value,
|
|
753
|
-
"selected-value": l(
|
|
754
|
-
searching:
|
|
755
|
-
"target-element":
|
|
756
|
-
loading:
|
|
757
|
-
"has-more-items":
|
|
758
|
-
"lazy-load-type":
|
|
759
|
-
"virtual-scroll":
|
|
760
|
-
},
|
|
761
|
-
ce(l(n), (
|
|
762
|
-
name:
|
|
763
|
-
fn:
|
|
764
|
-
|
|
767
|
+
"selected-value": l(P),
|
|
768
|
+
searching: oe.value,
|
|
769
|
+
"target-element": y.value,
|
|
770
|
+
loading: o.loading,
|
|
771
|
+
"has-more-items": o.hasMoreItems,
|
|
772
|
+
"lazy-load-type": o.lazyLoadType,
|
|
773
|
+
"virtual-scroll": o.virtualScroll
|
|
774
|
+
}, Q(at)), ue({ _: 2 }, [
|
|
775
|
+
ce(l(n), (N, k) => ({
|
|
776
|
+
name: k,
|
|
777
|
+
fn: q((se) => [
|
|
778
|
+
X(o.$slots, k, pe(fe(se)), void 0, !0)
|
|
765
779
|
])
|
|
766
780
|
}))
|
|
767
|
-
]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) :
|
|
768
|
-
|
|
781
|
+
]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : $("", !0),
|
|
782
|
+
o.errorMessage ? (L(), z(l(Lt), {
|
|
769
783
|
key: 2,
|
|
770
784
|
id: l(D),
|
|
771
|
-
"error-message":
|
|
785
|
+
"error-message": o.errorMessage,
|
|
772
786
|
class: "b-dropdown__error-message"
|
|
773
|
-
}, null, 8, ["id", "error-message"])) :
|
|
774
|
-
|
|
787
|
+
}, null, 8, ["id", "error-message"])) : $("", !0),
|
|
788
|
+
o.description || l(s)("description") ? (L(), z(l(it), {
|
|
775
789
|
key: 3,
|
|
776
790
|
id: l(B),
|
|
777
|
-
class: me(["b-dropdown__description",
|
|
791
|
+
class: me(["b-dropdown__description", _e.value]),
|
|
778
792
|
el: "span"
|
|
779
793
|
}, {
|
|
780
|
-
default:
|
|
781
|
-
|
|
782
|
-
st(
|
|
794
|
+
default: q(() => [
|
|
795
|
+
X(o.$slots, "description", {}, () => [
|
|
796
|
+
st(ye(o.description), 1)
|
|
783
797
|
], !0)
|
|
784
798
|
]),
|
|
785
799
|
_: 3
|
|
786
|
-
}, 8, ["id", "class"])) :
|
|
800
|
+
}, 8, ["id", "class"])) : $("", !0)
|
|
787
801
|
], 2)), [
|
|
788
|
-
[l(
|
|
802
|
+
[l(yt), Xe]
|
|
789
803
|
]);
|
|
790
804
|
}
|
|
791
|
-
}),
|
|
805
|
+
}), ma = /* @__PURE__ */ H(jt, [["__scopeId", "data-v-06d3531c"]]);
|
|
792
806
|
export {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
807
|
+
ma as B,
|
|
808
|
+
pa as I,
|
|
809
|
+
Wt as a,
|
|
810
|
+
fa as b,
|
|
811
|
+
Vt as u
|
|
798
812
|
};
|
|
799
|
-
//# sourceMappingURL=dropdown.
|
|
813
|
+
//# sourceMappingURL=dropdown.Do-mZiI6.js.map
|