@adyen/bento-vue3 1.89.2 → 1.91.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 +4 -0
- package/dist/@types/index.d.ts +767 -522
- 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-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/input-field.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/assets/use-cached-selected-values.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.BPS3wPde.js +336 -0
- package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.BPS3wPde.js.map} +1 -1
- package/dist/chunks/ai-tag.D7shWB_x.js +137 -0
- package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.D7shWB_x.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.BxcS7Pao.js} +132 -125
- package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BxcS7Pao.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.BKdNXYgU.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.BKdNXYgU.js.map} +1 -1
- package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.DLiM8KZL.js} +203 -189
- package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.DLiM8KZL.js.map} +1 -1
- package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.qm-kFNQv.js} +460 -428
- package/dist/chunks/calendar.qm-kFNQv.js.map +1 -0
- package/dist/chunks/card.BEChcEqg.js +223 -0
- package/dist/chunks/{card.CoxQ_L0w.js.map → card.BEChcEqg.js.map} +1 -1
- package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.i3W8WO-7.js} +4 -4
- package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.i3W8WO-7.js.map} +1 -1
- package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BPrymcRl.js} +68 -61
- package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BPrymcRl.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/{click-outside.BPylIosK.js → click-outside.B0whuTUU.js} +2 -2
- package/dist/chunks/{click-outside.BPylIosK.js.map → click-outside.B0whuTUU.js.map} +1 -1
- package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BG5ZmCrb.js} +113 -106
- package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BG5ZmCrb.js.map} +1 -1
- package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.DqRpF9bh.js} +2 -2
- package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.DqRpF9bh.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.C7mfUXOl.js} +3 -3
- package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.C7mfUXOl.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.B50DIXjK.js} +3 -3
- package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.B50DIXjK.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.CKdZb6EN.js} +4 -4
- package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.CKdZb6EN.js.map} +1 -1
- package/dist/chunks/data-grid.DvMe72LK.js +4247 -0
- package/dist/chunks/data-grid.DvMe72LK.js.map +1 -0
- package/dist/chunks/date-picker.CidHad1p.js +269 -0
- package/dist/chunks/date-picker.CidHad1p.js.map +1 -0
- package/dist/chunks/date-range-picker.c5OwESTS.js +1027 -0
- package/dist/chunks/date-range-picker.c5OwESTS.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/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
- package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
- package/dist/chunks/draggable-handle.CySRx1tb.js +171 -0
- package/dist/chunks/draggable-handle.CySRx1tb.js.map +1 -0
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.wcJ6Mgqe.js} +5 -5
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.wcJ6Mgqe.js.map} +1 -1
- package/dist/chunks/dropdown.DHoL50gV.js +1214 -0
- package/dist/chunks/dropdown.DHoL50gV.js.map +1 -0
- package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
- package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
- package/dist/chunks/field-label.DZYFjFgr.js +111 -0
- package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
- package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.Dbg3vfZ_.js} +606 -584
- package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.Dbg3vfZ_.js.map} +1 -1
- package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.Dt-cU3zy.js} +1559 -1471
- package/dist/chunks/filter-bar.Dt-cU3zy.js.map +1 -0
- 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.CYBdKDPo.js} +2 -2
- package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.CYBdKDPo.js.map} +1 -1
- package/dist/chunks/form-layout-title.B3ePK3yi.js +253 -0
- package/dist/chunks/form-layout-title.B3ePK3yi.js.map +1 -0
- package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.COak4D8-.js} +98 -84
- package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.COak4D8-.js.map} +1 -1
- package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.DqioajcO.js} +1091 -1070
- package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.DqioajcO.js.map} +1 -1
- package/dist/chunks/{header.o-7SyHtU.js → header.C21yzWrk.js} +3 -3
- package/dist/chunks/{header.o-7SyHtU.js.map → header.C21yzWrk.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.DyUphhxB.js +353 -0
- package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.DyUphhxB.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.BXVaC5ra.js} +12 -5
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.BXVaC5ra.js.map} +1 -1
- package/dist/chunks/input-field.DkUFvIWt.js +326 -0
- package/dist/chunks/input-field.DkUFvIWt.js.map +1 -0
- package/dist/chunks/input-time.WI_qdwJc.js +122 -0
- package/dist/chunks/input-time.WI_qdwJc.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.c6QphYQo.js} +54 -47
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.c6QphYQo.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.ImqHKH-g.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.ImqHKH-g.js.map} +1 -1
- package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
- package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
- package/dist/chunks/{pagination.dpVc6Yt0.js → pagination.Cu85Lqms.js} +150 -138
- package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.Cu85Lqms.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.CfMr1fmW.js} +4 -4
- package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.CfMr1fmW.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Bf9EWzNk.js} +421 -413
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Bf9EWzNk.js.map} +1 -1
- package/dist/chunks/search-bar.p6kHCCvT.js +114 -0
- package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.p6kHCCvT.js.map} +1 -1
- package/dist/chunks/secondary-nav.CaxiyVaO.js +285 -0
- package/dist/chunks/secondary-nav.CaxiyVaO.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.58XZj_SJ.js} +3 -3
- package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.58XZj_SJ.js.map} +1 -1
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.CAVhSs-O.js} +56 -49
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.CAVhSs-O.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.CDithi8M.js} +5 -5
- package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.CDithi8M.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.JGXAlpx9.js +257 -0
- package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.JGXAlpx9.js.map} +1 -1
- package/dist/chunks/timeline-item.BNFPpQz1.js +433 -0
- package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.BNFPpQz1.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.C1cF-adv.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.C1cF-adv.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.Bx8uuky9.js} +436 -410
- package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +1 -0
- 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.BOuXpRb-.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BOuXpRb-.js.map} +1 -1
- package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
- package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
- package/dist/click-outside.js +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.js +1383 -0
- package/dist/draggable.js.map +1 -0
- package/dist/dropdown.js +10 -11
- package/dist/dropdown.js.map +1 -1
- 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 +284 -279
- 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 +26 -25
- package/dist/internal.js.map +1 -1
- 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 +7 -10
- package/dist/assets/dropdown-default-textbox.css +0 -1
- 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/calendar.DcCqkSNJ.js.map +0 -1
- 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-picker.dlzZ_-5f.js.map +0 -1
- package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
- package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
- package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js +0 -408
- package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js.map +0 -1
- package/dist/chunks/dropdown.MhmX1P9o.js +0 -799
- package/dist/chunks/dropdown.MhmX1P9o.js.map +0 -1
- package/dist/chunks/error-message.DCgo8q20.js +0 -143
- package/dist/chunks/error-message.DCgo8q20.js.map +0 -1
- package/dist/chunks/filter-bar.CkAjLQol.js.map +0 -1
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
- package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
- package/dist/chunks/form-layout-title.DW5Kg1rh.js.map +0 -1
- package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
- package/dist/chunks/input-field.CfU0ZKtL.js +0 -315
- package/dist/chunks/input-field.CfU0ZKtL.js.map +0 -1
- package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
- package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
- 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
- package/dist/chunks/use-cached-selected-values.ClEJRFAd.js.map +0 -1
- package/dist/draggable-handle.js +0 -155
- package/dist/draggable-handle.js.map +0 -1
|
@@ -1,799 +0,0 @@
|
|
|
1
|
-
import { ref as w, watch as ye, computed as r, defineComponent as W, useSlots as Ae, toRefs as Ne, openBlock as S, createBlock as z, resolveDynamicComponent as Me, mergeProps as k, withCtx as V, createElementVNode as te, withKeys as at, unref as l, createVNode as Z, toHandlers as X, createSlots as ue, renderList as ce, renderSlot as G, normalizeProps as pe, guardReactiveProps as fe, createCommentVNode as R, createElementBlock as P, toDisplayString as be, normalizeClass as me, withDirectives as ee, vShow as Be, nextTick as O, useAttrs as lt, toRef as x, inject as nt, createTextVNode as st } from "vue";
|
|
2
|
-
import { d as ie, B as it } from "./typography.B3J6_tYk.js";
|
|
3
|
-
import { g as j } from "./generate-uid.DBWe4g6T.js";
|
|
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";
|
|
18
|
-
/* empty css */
|
|
19
|
-
import { s as de } from "./events.BQOQSSb7.js";
|
|
20
|
-
import "../assets/dropdown.css";
|
|
21
|
-
const he = {
|
|
22
|
-
"en-US": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
|
|
23
|
-
"ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索条件に一致するオプションはありません" },
|
|
24
|
-
"pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "A busca não retornou nenhuma opção" }
|
|
25
|
-
}, Et = (t, u, i, o) => {
|
|
26
|
-
const n = w(t.value), { t: s } = ge({ messages: he });
|
|
27
|
-
ye(t, () => {
|
|
28
|
-
n.value = t.value;
|
|
29
|
-
});
|
|
30
|
-
const e = r(
|
|
31
|
-
() => JSON.stringify(n.value) === JSON.stringify(t.value)
|
|
32
|
-
), c = () => {
|
|
33
|
-
o(m.SELECT, n.value), o(m.CLOSE_DROPDOWN);
|
|
34
|
-
}, h = () => {
|
|
35
|
-
n.value = t.value, o(m.CLOSE_DROPDOWN);
|
|
36
|
-
}, E = () => {
|
|
37
|
-
i.value && u.value && (n.value = t.value);
|
|
38
|
-
}, d = r(() => [
|
|
39
|
-
{
|
|
40
|
-
title: s("apply"),
|
|
41
|
-
event: c,
|
|
42
|
-
disabled: e.value
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
title: s("cancel"),
|
|
46
|
-
event: h
|
|
47
|
-
}
|
|
48
|
-
]), b = (g) => {
|
|
49
|
-
n.value = g, u.value || o(m.SELECT, g);
|
|
50
|
-
}, p = (g) => {
|
|
51
|
-
b(g), o(m.TAB);
|
|
52
|
-
}, f = (g) => {
|
|
53
|
-
b(g), o(m.ENTER);
|
|
54
|
-
}, C = (g) => {
|
|
55
|
-
b(g), o(m.SPACE);
|
|
56
|
-
}, v = () => {
|
|
57
|
-
h(), o(m.ESCAPE);
|
|
58
|
-
}, B = () => {
|
|
59
|
-
o(m.SHOW_MORE);
|
|
60
|
-
}, D = {
|
|
61
|
-
[m.SELECT]: b,
|
|
62
|
-
[m.SHOW_MORE]: B,
|
|
63
|
-
[m.TAB]: p,
|
|
64
|
-
[m.SPACE]: C,
|
|
65
|
-
[m.ENTER]: f
|
|
66
|
-
};
|
|
67
|
-
return {
|
|
68
|
-
// Values
|
|
69
|
-
actions: d,
|
|
70
|
-
internalSelectedValue: n,
|
|
71
|
-
// Methods
|
|
72
|
-
listeners: D,
|
|
73
|
-
onEscapeKey: v,
|
|
74
|
-
onOutsideDropdownClick: E
|
|
75
|
-
};
|
|
76
|
-
}, Ct = W({
|
|
77
|
-
i18n: { messages: he },
|
|
78
|
-
name: "bento-dropdown-options-container"
|
|
79
|
-
}), Ot = /* @__PURE__ */ W({
|
|
80
|
-
...Ct,
|
|
81
|
-
props: {
|
|
82
|
-
/**
|
|
83
|
-
* Defines a string value that labels an interactive element.
|
|
84
|
-
*/
|
|
85
|
-
ariaLabel: { type: String, default: null },
|
|
86
|
-
/**
|
|
87
|
-
* Indicates that dropdown items are loading
|
|
88
|
-
*/
|
|
89
|
-
componentLoading: { type: Boolean, default: !1 },
|
|
90
|
-
/**
|
|
91
|
-
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
92
|
-
*/
|
|
93
|
-
emptyState: {
|
|
94
|
-
type: Object,
|
|
95
|
-
default: void 0
|
|
96
|
-
},
|
|
97
|
-
/**
|
|
98
|
-
* Disables dropdown functionality
|
|
99
|
-
*/
|
|
100
|
-
disabled: { type: Boolean, default: !1 },
|
|
101
|
-
/**
|
|
102
|
-
* Indicates whether there are more items to load
|
|
103
|
-
*/
|
|
104
|
-
hasMoreItems: { type: Boolean, default: !1 },
|
|
105
|
-
/**
|
|
106
|
-
* Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
|
|
107
|
-
*/
|
|
108
|
-
id: { type: String, required: !0 },
|
|
109
|
-
/**
|
|
110
|
-
* Function that allows the options to be disabled
|
|
111
|
-
*
|
|
112
|
-
* @type {BentoDropdownIsOptionDisabled}
|
|
113
|
-
* @param {BentoDropdownOptionItem} option - Dropdown option object
|
|
114
|
-
* @param {string} option.label - Option's label text
|
|
115
|
-
* @param {string|number} option.value - Option's value
|
|
116
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
117
|
-
*/
|
|
118
|
-
isOptionDisabled: {
|
|
119
|
-
type: Function,
|
|
120
|
-
default: void 0
|
|
121
|
-
},
|
|
122
|
-
/**
|
|
123
|
-
* The option elements to populate the dropdown with.
|
|
124
|
-
* It must be an array of {@see BentoDropdownOptionItem }
|
|
125
|
-
* * @property {string} value.label - Text to be displayed in the option
|
|
126
|
-
* * @property {string,number} value.value - Value of the option
|
|
127
|
-
*/
|
|
128
|
-
items: {
|
|
129
|
-
type: Array,
|
|
130
|
-
required: !0
|
|
131
|
-
},
|
|
132
|
-
/**
|
|
133
|
-
* The type of `Lazy Load`.
|
|
134
|
-
* Type "automatic" will enable infinite scrolling
|
|
135
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
136
|
-
*/
|
|
137
|
-
lazyLoadType: {
|
|
138
|
-
type: String,
|
|
139
|
-
default: De.AUTOMATIC,
|
|
140
|
-
validator: (t) => Object.values(De).includes(t)
|
|
141
|
-
},
|
|
142
|
-
/**
|
|
143
|
-
* Indicates if new options are lazy loading.
|
|
144
|
-
*/
|
|
145
|
-
loading: { type: Boolean, default: !1 },
|
|
146
|
-
/**
|
|
147
|
-
* If enabled, the user will be able to select multiple items.
|
|
148
|
-
*/
|
|
149
|
-
multiple: { type: Boolean, default: !1 },
|
|
150
|
-
/**
|
|
151
|
-
* Indicates if the dropdown is open so that
|
|
152
|
-
* the container can be displayed.
|
|
153
|
-
*/
|
|
154
|
-
open: { type: Boolean, required: !0 },
|
|
155
|
-
/**
|
|
156
|
-
* The `input` value.
|
|
157
|
-
* Providing an empty string or empty array will select no options.
|
|
158
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected for single select
|
|
159
|
-
*/
|
|
160
|
-
selectedValue: {
|
|
161
|
-
type: Array,
|
|
162
|
-
default: null
|
|
163
|
-
},
|
|
164
|
-
/**
|
|
165
|
-
* Flag that indicates that an external search it's being made
|
|
166
|
-
* to filter out the items inside the the multi-select listbox
|
|
167
|
-
*
|
|
168
|
-
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
169
|
-
*/
|
|
170
|
-
searching: ve.props.searching,
|
|
171
|
-
/**
|
|
172
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
173
|
-
*/
|
|
174
|
-
staticCategories: { type: Boolean, default: !1 },
|
|
175
|
-
/**
|
|
176
|
-
* Reference to the DOM element or Vue component for positioning
|
|
177
|
-
* the Dropdown container.
|
|
178
|
-
*/
|
|
179
|
-
targetElement: { type: Te.props.targetElement.type, required: !0 },
|
|
180
|
-
/**
|
|
181
|
-
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
182
|
-
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
183
|
-
*/
|
|
184
|
-
virtualScroll: {
|
|
185
|
-
type: [Boolean, Object],
|
|
186
|
-
default: !1
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
setup(t, { expose: u, emit: i }) {
|
|
190
|
-
const o = Ae(), n = i, s = t, { selectedValue: e, multiple: c } = Ne(s), h = w(null), { t: E } = ge({ messages: he }), d = r(() => s.open && !s.disabled), b = r(() => E("noOptionsMatchThisSearch")), p = r(() => ({
|
|
191
|
-
"b-dropdown-options-container--single": !s?.multiple
|
|
192
|
-
})), f = r(() => ({
|
|
193
|
-
"b-dropdown-options-container__listbox--single": !s?.multiple
|
|
194
|
-
})), { actions: C, internalSelectedValue: v, listeners: B, onEscapeKey: D, onOutsideDropdownClick: g } = Et(e, c, d, n), L = r(() => s?.multiple ? wt : Te), _ = r(() => {
|
|
195
|
-
const I = {
|
|
196
|
-
"min-width": `${s?.targetElement?.clientWidth}px`,
|
|
197
|
-
"max-width": "min(500px, 95%)"
|
|
198
|
-
};
|
|
199
|
-
return s?.multiple ? {
|
|
200
|
-
actionsLayout: "space-between",
|
|
201
|
-
ariaLabel: s.ariaLabel,
|
|
202
|
-
actions: C.value,
|
|
203
|
-
divider: !0,
|
|
204
|
-
fallbackPosition: ["top-start"],
|
|
205
|
-
id: j(`dropdown-options-${s.id}`),
|
|
206
|
-
open: s.open,
|
|
207
|
-
position: "bottom-start",
|
|
208
|
-
style: {
|
|
209
|
-
width: "auto",
|
|
210
|
-
...I
|
|
211
|
-
},
|
|
212
|
-
targetElement: s.targetElement
|
|
213
|
-
} : {
|
|
214
|
-
fallbackPosition: ["top-start"],
|
|
215
|
-
offset: [0, 8],
|
|
216
|
-
position: "bottom-start",
|
|
217
|
-
style: {
|
|
218
|
-
display: d.value ? "block" : "none",
|
|
219
|
-
...I
|
|
220
|
-
},
|
|
221
|
-
targetElement: s.targetElement
|
|
222
|
-
};
|
|
223
|
-
});
|
|
224
|
-
return u({
|
|
225
|
-
onOutsideDropdownClick: g
|
|
226
|
-
}), (I, F) => d.value ? (S(), z(Me(L.value), k({
|
|
227
|
-
key: 0,
|
|
228
|
-
class: ["b-dropdown-options-container", p.value]
|
|
229
|
-
}, _.value), {
|
|
230
|
-
default: V(() => [
|
|
231
|
-
te("div", {
|
|
232
|
-
onKeydown: F[0] || (F[0] = at(
|
|
233
|
-
//@ts-ignore
|
|
234
|
-
(...q) => l(D) && l(D)(...q),
|
|
235
|
-
["esc"]
|
|
236
|
-
))
|
|
237
|
-
}, [
|
|
238
|
-
Z(l(ve), k({
|
|
239
|
-
id: t.id,
|
|
240
|
-
ref_key: "dropdownOptionsListboxRef",
|
|
241
|
-
ref: h,
|
|
242
|
-
"aria-label": t.ariaLabel,
|
|
243
|
-
class: ["b-dropdown-options-container__listbox", f.value],
|
|
244
|
-
"component-loading": t.componentLoading,
|
|
245
|
-
"empty-state": t.emptyState,
|
|
246
|
-
"is-option-disabled": t.isOptionDisabled,
|
|
247
|
-
items: t.items,
|
|
248
|
-
"selected-value": l(v),
|
|
249
|
-
multiple: l(c),
|
|
250
|
-
"static-categories": t.staticCategories,
|
|
251
|
-
"no-results-message": b.value,
|
|
252
|
-
searching: t.searching,
|
|
253
|
-
loading: t.loading,
|
|
254
|
-
"lazy-load-type": t.lazyLoadType,
|
|
255
|
-
"has-more-items": t.hasMoreItems,
|
|
256
|
-
"virtual-scroll": t.virtualScroll
|
|
257
|
-
}, X(l(B))), ue({ _: 2 }, [
|
|
258
|
-
ce(l(o), (q, y) => ({
|
|
259
|
-
name: y,
|
|
260
|
-
fn: V((K) => [
|
|
261
|
-
G(I.$slots, y, pe(fe(K)), void 0, !0)
|
|
262
|
-
])
|
|
263
|
-
}))
|
|
264
|
-
]), 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
|
-
], 32)
|
|
266
|
-
]),
|
|
267
|
-
_: 3
|
|
268
|
-
}, 16, ["class"])) : R("", !0);
|
|
269
|
-
}
|
|
270
|
-
}), Bt = /* @__PURE__ */ H(Ot, [["__scopeId", "data-v-abf92e14"]]);
|
|
271
|
-
let xe = 0;
|
|
272
|
-
const Dt = {
|
|
273
|
-
beforeCreate() {
|
|
274
|
-
this.uuid = xe.toString(), xe += 1;
|
|
275
|
-
}
|
|
276
|
-
}, Tt = { key: 0 };
|
|
277
|
-
function xt(t, u, i, o, n, s) {
|
|
278
|
-
return S(), P("svg", k({ role: "img" }, t.$attrs, {
|
|
279
|
-
class: "ui-assets-icons-16",
|
|
280
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
281
|
-
width: "16",
|
|
282
|
-
height: "16",
|
|
283
|
-
fill: "none"
|
|
284
|
-
}), [
|
|
285
|
-
t.$attrs["svg-title"] ? (S(), P("title", Tt, be(t.$attrs["svg-title"]), 1)) : R("", !0),
|
|
286
|
-
u[0] || (u[0] = te("path", {
|
|
287
|
-
fill: "#001222",
|
|
288
|
-
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
289
|
-
}, null, -1))
|
|
290
|
-
], 16);
|
|
291
|
-
}
|
|
292
|
-
const It = /* @__PURE__ */ H(Dt, [["render", xt]]);
|
|
293
|
-
let Ie = 0;
|
|
294
|
-
const At = {
|
|
295
|
-
beforeCreate() {
|
|
296
|
-
this.uuid = Ie.toString(), Ie += 1;
|
|
297
|
-
}
|
|
298
|
-
}, Nt = { key: 0 };
|
|
299
|
-
function Mt(t, u, i, o, n, s) {
|
|
300
|
-
return S(), P("svg", k({ role: "img" }, t.$attrs, {
|
|
301
|
-
class: "ui-assets-icons-16",
|
|
302
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
303
|
-
width: "16",
|
|
304
|
-
height: "16",
|
|
305
|
-
fill: "none"
|
|
306
|
-
}), [
|
|
307
|
-
t.$attrs["svg-title"] ? (S(), P("title", Nt, be(t.$attrs["svg-title"]), 1)) : R("", !0),
|
|
308
|
-
u[0] || (u[0] = te("path", {
|
|
309
|
-
fill: "#001222",
|
|
310
|
-
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
311
|
-
}, null, -1))
|
|
312
|
-
], 16);
|
|
313
|
-
}
|
|
314
|
-
const $t = /* @__PURE__ */ H(At, [["render", Mt]]), Rt = { class: "b-dropdown-small-textbox__chevron" }, kt = W({
|
|
315
|
-
name: "dropdown-small-textbox",
|
|
316
|
-
inheritAttrs: !1
|
|
317
|
-
}), Pt = /* @__PURE__ */ W({
|
|
318
|
-
...kt,
|
|
319
|
-
props: {
|
|
320
|
-
/**
|
|
321
|
-
* The number of additional items that have been selected in the dropdown.
|
|
322
|
-
*/
|
|
323
|
-
additionalItemsSelected: { type: [Number, String], default: 0 },
|
|
324
|
-
/**
|
|
325
|
-
* Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
|
|
326
|
-
*/
|
|
327
|
-
ariaControls: { type: String, required: !0 },
|
|
328
|
-
/**
|
|
329
|
-
* Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
|
|
330
|
-
*/
|
|
331
|
-
ariaExpanded: {
|
|
332
|
-
type: [String, Boolean],
|
|
333
|
-
required: !0
|
|
334
|
-
},
|
|
335
|
-
/**
|
|
336
|
-
* If no label element is used then the aria-label is be set should be set.
|
|
337
|
-
*/
|
|
338
|
-
ariaLabel: { type: String, default: null },
|
|
339
|
-
/**
|
|
340
|
-
* Corresponds to the label's id that labels the textbox element.
|
|
341
|
-
*/
|
|
342
|
-
ariaLabelledby: { type: String, default: null },
|
|
343
|
-
/**
|
|
344
|
-
* Disables any textbox functionality
|
|
345
|
-
*/
|
|
346
|
-
disabled: { type: Boolean, default: !1 },
|
|
347
|
-
/**
|
|
348
|
-
* Selected option's label
|
|
349
|
-
*/
|
|
350
|
-
displayValue: { type: String, default: null },
|
|
351
|
-
/**
|
|
352
|
-
* Sets the possibility to type into the textbox
|
|
353
|
-
*/
|
|
354
|
-
dynamicFiltering: { type: Boolean, default: !1 },
|
|
355
|
-
/**
|
|
356
|
-
* Marks the textbox as invalid, rendering an error state
|
|
357
|
-
*/
|
|
358
|
-
isInvalid: { type: Boolean, default: !1 },
|
|
359
|
-
/**
|
|
360
|
-
* Indicates if the dropdown is open so that
|
|
361
|
-
* the respective event can be emitted
|
|
362
|
-
*/
|
|
363
|
-
open: { type: Boolean, default: !1 },
|
|
364
|
-
/**
|
|
365
|
-
* Sets the dropdown to readonly state
|
|
366
|
-
*/
|
|
367
|
-
readonly: { type: Boolean, default: !1 },
|
|
368
|
-
/**
|
|
369
|
-
* The input value
|
|
370
|
-
*/
|
|
371
|
-
value: { type: String, default: "" }
|
|
372
|
-
},
|
|
373
|
-
emits: ["clear", "close", "input", "keydown", "open"],
|
|
374
|
-
setup(t, { expose: u, emit: i }) {
|
|
375
|
-
const o = i, n = t, s = w(null), e = r(() => ({
|
|
376
|
-
[`b-dropdown-small-textbox--${re.DISABLED}`]: n.disabled,
|
|
377
|
-
[`b-dropdown-small-textbox--${re.READONLY}`]: n.readonly,
|
|
378
|
-
[`b-dropdown-small-textbox--${re.OPENED}`]: n.open
|
|
379
|
-
})), c = r(() => n.open && !n.disabled && !n.readonly), h = (v) => {
|
|
380
|
-
o("input", v);
|
|
381
|
-
}, E = (v) => {
|
|
382
|
-
o("keydown", v);
|
|
383
|
-
}, d = (v) => {
|
|
384
|
-
de(v), o("open");
|
|
385
|
-
}, b = (v) => {
|
|
386
|
-
de(v), o("close");
|
|
387
|
-
}, p = (v) => {
|
|
388
|
-
de(v), o("clear");
|
|
389
|
-
}, f = {
|
|
390
|
-
[U.INPUT]: h,
|
|
391
|
-
[U.OPEN]: d,
|
|
392
|
-
[U.CLOSE]: b,
|
|
393
|
-
[U.CLEAR]: p,
|
|
394
|
-
[U.KEYDOWN]: E
|
|
395
|
-
};
|
|
396
|
-
return u({
|
|
397
|
-
focus: () => {
|
|
398
|
-
s.value.focus();
|
|
399
|
-
}
|
|
400
|
-
}), (v, B) => (S(), P("div", {
|
|
401
|
-
class: me(["b-dropdown-small-textbox", e.value])
|
|
402
|
-
}, [
|
|
403
|
-
Z(bt, k({
|
|
404
|
-
ref_key: "baseTextbox",
|
|
405
|
-
ref: s
|
|
406
|
-
}, { ...v.$attrs, ...v.$props }, {
|
|
407
|
-
class: "b-dropdown-small-textbox__textbox",
|
|
408
|
-
size: l(Q).SMALL
|
|
409
|
-
}, X(f)), {
|
|
410
|
-
icon: V(() => [
|
|
411
|
-
te("div", Rt, [
|
|
412
|
-
ee(Z(l($t), { "svg-title": "opened" }, null, 512), [
|
|
413
|
-
[Be, c.value]
|
|
414
|
-
]),
|
|
415
|
-
ee(Z(l(It), { "svg-title": "closed" }, null, 512), [
|
|
416
|
-
[Be, !c.value]
|
|
417
|
-
])
|
|
418
|
-
])
|
|
419
|
-
]),
|
|
420
|
-
_: 1
|
|
421
|
-
}, 16, ["size"])
|
|
422
|
-
], 2));
|
|
423
|
-
}
|
|
424
|
-
}), _t = /* @__PURE__ */ H(Pt, [["__scopeId", "data-v-39ce3ec8"]]), Ft = (t, u) => u.value.reduce((i, o) => {
|
|
425
|
-
if (o.items) {
|
|
426
|
-
const n = o.items.filter(
|
|
427
|
-
(e) => t.value.find((c) => c.value === e.value)
|
|
428
|
-
);
|
|
429
|
-
n.length === o.items.length ? i.push(o.displayValue ?? o.label) : n.forEach(({ label: e, displayValue: c }) => i.push(c ?? e));
|
|
430
|
-
}
|
|
431
|
-
return t.value.find((n) => n.value === o.value) && i.push(o.displayValue ?? o.label), i;
|
|
432
|
-
}, []).join(", "), Kt = ({ items: t, placeholder: u, selectedValues: i, isMultiSelect: o }) => {
|
|
433
|
-
const n = r(
|
|
434
|
-
() => o.value && t.value.find((e) => e.items?.length)
|
|
435
|
-
);
|
|
436
|
-
return r(() => i.value.length ? n.value ? Ft(i, t) : i.value.map(({ label: e, displayValue: c }) => c ?? e).join(", ") : u.value || null);
|
|
437
|
-
}, $e = (t) => {
|
|
438
|
-
t.value.$children?.[0].$refs.textbox.focus();
|
|
439
|
-
}, zt = ({
|
|
440
|
-
inputContainerRef: t,
|
|
441
|
-
optionsContainerRef: u,
|
|
442
|
-
selectedValueIndex: i,
|
|
443
|
-
isDropdownOpen: o,
|
|
444
|
-
isDynamicFltering: n,
|
|
445
|
-
items: s,
|
|
446
|
-
isMultiple: e
|
|
447
|
-
}, c, h, E) => {
|
|
448
|
-
const d = async (y) => {
|
|
449
|
-
n.value && await O(), s.value[y]?.focus();
|
|
450
|
-
}, b = async (y) => {
|
|
451
|
-
n.value && await O();
|
|
452
|
-
const K = u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
|
|
453
|
-
"button"
|
|
454
|
-
);
|
|
455
|
-
K.length ? K[y]?.focus() : d(y);
|
|
456
|
-
}, p = (y) => u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
|
|
457
|
-
y
|
|
458
|
-
), f = () => {
|
|
459
|
-
o.value || h(), O(() => {
|
|
460
|
-
p(0), d(0);
|
|
461
|
-
});
|
|
462
|
-
}, C = () => {
|
|
463
|
-
o.value || h(), O(() => {
|
|
464
|
-
p(s.value.length - 1), d(s.value.length - 1);
|
|
465
|
-
});
|
|
466
|
-
}, v = ({ detail: y }) => {
|
|
467
|
-
y.preventDefault(), f();
|
|
468
|
-
}, B = ({ detail: y }) => {
|
|
469
|
-
y.preventDefault(), C();
|
|
470
|
-
}, D = () => {
|
|
471
|
-
f();
|
|
472
|
-
}, g = () => {
|
|
473
|
-
C();
|
|
474
|
-
}, L = ({ detail: y }) => {
|
|
475
|
-
y.preventDefault(), c(), o.value && O(() => {
|
|
476
|
-
e ? b(0) : (p(i.value), d(i.value));
|
|
477
|
-
});
|
|
478
|
-
}, _ = ({ detail: y }) => {
|
|
479
|
-
y.preventDefault(), c(), o.value && O(() => {
|
|
480
|
-
e ? b(0) : (p(i.value), d(i.value));
|
|
481
|
-
});
|
|
482
|
-
}, I = () => {
|
|
483
|
-
o.value && E();
|
|
484
|
-
}, F = () => {
|
|
485
|
-
o.value && (E(), $e(t));
|
|
486
|
-
};
|
|
487
|
-
return r(() => ({
|
|
488
|
-
[A.ARROW_DOWN]: v,
|
|
489
|
-
[A.ARROW_UP]: B,
|
|
490
|
-
[A.HOME]: D,
|
|
491
|
-
[A.END]: g,
|
|
492
|
-
...n.value ? {} : { [A.SPACE]: L },
|
|
493
|
-
[A.ENTER]: _,
|
|
494
|
-
[A.TAB]: I,
|
|
495
|
-
[A.ESCAPE]: F
|
|
496
|
-
}));
|
|
497
|
-
}, Vt = ({ inputContainerRef: t, isDropdownOpen: u }, i) => {
|
|
498
|
-
const o = () => {
|
|
499
|
-
u.value && i(), O(() => {
|
|
500
|
-
$e(t);
|
|
501
|
-
});
|
|
502
|
-
};
|
|
503
|
-
return {
|
|
504
|
-
[m.ENTER]: o,
|
|
505
|
-
[m.ESCAPE]: o,
|
|
506
|
-
[m.TAB]: o,
|
|
507
|
-
[m.SPACE]: o
|
|
508
|
-
};
|
|
509
|
-
};
|
|
510
|
-
function Wt(t, u, i, o, n) {
|
|
511
|
-
const s = w(t), e = w(u), c = (d, b = []) => b.flatMap((p) => p.label.toLocaleLowerCase().includes(d) ? o?.value && p.items ? [...c(d, p.items)] : [p, ...c(d, p.items)] : p.items ? [...c(d, p.items)] : []), h = i !== void 0 ? mt(() => i(s.value), n ?? 300) : void 0;
|
|
512
|
-
return ye(s, () => {
|
|
513
|
-
h !== void 0 && h();
|
|
514
|
-
}), r(() => {
|
|
515
|
-
if (!s.value || i !== void 0)
|
|
516
|
-
return e.value;
|
|
517
|
-
const d = s.value.toLocaleLowerCase();
|
|
518
|
-
return c(d, e.value);
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
const Re = {
|
|
522
|
-
"en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
|
|
523
|
-
"ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
|
|
524
|
-
"pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" }
|
|
525
|
-
}, qt = /* @__PURE__ */ Symbol("input field component injection key"), fo = /* @__PURE__ */ Symbol("input field hint injection key"), mo = /* @__PURE__ */ Symbol("input field parent component injection key"), Ut = W({
|
|
526
|
-
i18n: { messages: Re },
|
|
527
|
-
name: "b-dropdown",
|
|
528
|
-
components: {
|
|
529
|
-
DropdownInputDefault: gt,
|
|
530
|
-
DropdownInputSmall: _t
|
|
531
|
-
},
|
|
532
|
-
model: { prop: "modelValue" }
|
|
533
|
-
}), jt = /* @__PURE__ */ W({
|
|
534
|
-
...Ut,
|
|
535
|
-
props: {
|
|
536
|
-
ariaLabel: { default: null },
|
|
537
|
-
condensed: { type: Boolean, default: !1 },
|
|
538
|
-
emptyState: { default: void 0 },
|
|
539
|
-
dynamicFiltering: { type: Boolean, default: !1 },
|
|
540
|
-
error: { type: Boolean, default: !1 },
|
|
541
|
-
hasMoreItems: { type: Boolean, default: !1 },
|
|
542
|
-
isOptionDisabled: { type: Function, default: void 0 },
|
|
543
|
-
items: { default: () => [] },
|
|
544
|
-
loading: { type: Boolean, default: !1 },
|
|
545
|
-
componentLoading: { type: Boolean, default: !1 },
|
|
546
|
-
lazyLoadType: { default: ve.props.lazyLoadType.default },
|
|
547
|
-
multiple: { type: Boolean, default: !1 },
|
|
548
|
-
search: { default: void 0 },
|
|
549
|
-
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
550
|
-
size: { default: null },
|
|
551
|
-
staticCategories: { type: Boolean, default: !1 },
|
|
552
|
-
value: { default: null },
|
|
553
|
-
modelValue: { default: null },
|
|
554
|
-
virtualScroll: { type: [Boolean, Object], default: !1 },
|
|
555
|
-
enableValueLabelPair: { type: Boolean, default: !1 },
|
|
556
|
-
description: { default: null },
|
|
557
|
-
disabled: { type: Boolean, default: !1 },
|
|
558
|
-
errorMessage: { default: null },
|
|
559
|
-
label: { default: null },
|
|
560
|
-
optional: { type: Boolean, default: !1 },
|
|
561
|
-
placeholder: { default: null },
|
|
562
|
-
readonly: { type: Boolean, default: !1 },
|
|
563
|
-
required: { type: Boolean, default: !1 },
|
|
564
|
-
tooltipText: { default: null }
|
|
565
|
-
},
|
|
566
|
-
emits: ["input", "update:model-value", "show-more", "open"],
|
|
567
|
-
setup(t, { expose: u, emit: i }) {
|
|
568
|
-
const o = lt(), n = Ae(), s = ht(n), e = t, c = i, { t: h } = ge({ messages: Re }), { emitValue: E } = dt(c), d = w(null), b = 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: g } = ft(x(e, "readonly")), L = r(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: _, cachedListboxSelectedValues: I, setCachedValues: F } = ut(
|
|
569
|
-
x(e, "items"),
|
|
570
|
-
L,
|
|
571
|
-
x(e, "multiple"),
|
|
572
|
-
x(e, "enableValueLabelPair")
|
|
573
|
-
), q = w(o["aria-label"]), y = w(o["aria-describedby"]), { ariaLabel: K, label: J } = Ne(e), ke = r(() => h("ariaLabelFallback")), Le = rt({
|
|
574
|
-
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
575
|
-
ariaLabel: K.value || q,
|
|
576
|
-
label: J,
|
|
577
|
-
defaultFallback: ke
|
|
578
|
-
}), Se = e.size === Q.SMALL || nt(qt, !1), Pe = r(() => Se ? Q.SMALL : Q.DEFAULT), _e = r(() => ({
|
|
579
|
-
"b-dropdown--condensed": e.condensed
|
|
580
|
-
})), Fe = r(() => ({
|
|
581
|
-
"b-dropdown__description--error": !!e.errorMessage
|
|
582
|
-
})), N = w(""), Y = x(e, "items"), we = x(e, "staticCategories"), oe = Wt(
|
|
583
|
-
N,
|
|
584
|
-
Y,
|
|
585
|
-
e?.search?.searchEvent,
|
|
586
|
-
we,
|
|
587
|
-
e?.search?.debounceTime
|
|
588
|
-
), ae = r(() => e.dynamicFiltering && !!N.value), Ke = Kt({
|
|
589
|
-
items: Y,
|
|
590
|
-
placeholder: x(e, "placeholder"),
|
|
591
|
-
isMultiSelect: x(e, "multiple"),
|
|
592
|
-
selectedValues: _
|
|
593
|
-
}), ze = r(() => {
|
|
594
|
-
if (e?.multiple && Array.isArray(L.value))
|
|
595
|
-
return e.items.filter(
|
|
596
|
-
({ value: a }) => e?.value && (e?.value).includes(a)
|
|
597
|
-
);
|
|
598
|
-
if (!e.multiple && e.staticCategories) {
|
|
599
|
-
const a = e.items.find(
|
|
600
|
-
(M) => M.items.some(($) => $.value === L.value)
|
|
601
|
-
);
|
|
602
|
-
return a ? a.items.find((M) => M.value === L.value) : null;
|
|
603
|
-
}
|
|
604
|
-
return e.items.find(({ value: a }) => a === L.value);
|
|
605
|
-
}), Ve = r(() => {
|
|
606
|
-
const a = oe.value.findIndex(({ value: T }) => e.enableValueLabelPair ? L.value.value === T : L.value === T);
|
|
607
|
-
return a > -1 ? a : 0;
|
|
608
|
-
}), { isMultiLevelSelect: Ee, flattenedItemsList: We } = ct(Y), qe = r(() => Ee.value && !e.staticCategories), Ue = r(() => qe.value ? "treeitem" : "option"), je = r(() => {
|
|
609
|
-
if (e.multiple) {
|
|
610
|
-
const a = Array.isArray(L.value) ? L.value.length : 0, T = Ee.value ? We.value.length : Y.value.length;
|
|
611
|
-
return a === 0 ? null : !e.hasMoreItems && T > 0 && T === a ? h("all") : a;
|
|
612
|
-
}
|
|
613
|
-
return null;
|
|
614
|
-
}), He = r(
|
|
615
|
-
() => [
|
|
616
|
-
e.description ? B : null,
|
|
617
|
-
y.value,
|
|
618
|
-
e.errorMessage ? D : null
|
|
619
|
-
].filter(Boolean).join(" ") || null
|
|
620
|
-
), Je = r(() => p.value?.$el), { visibleDomOptions: Ye, updateVisibleDomOptions: Ce } = pt(
|
|
621
|
-
Je,
|
|
622
|
-
oe,
|
|
623
|
-
Ue
|
|
624
|
-
), Ze = () => {
|
|
625
|
-
g.value || (f.value = !0, O(() => {
|
|
626
|
-
Ce();
|
|
627
|
-
}));
|
|
628
|
-
}, le = () => {
|
|
629
|
-
f.value = !1;
|
|
630
|
-
}, ne = () => {
|
|
631
|
-
g.value || (f.value = !f.value, O(() => {
|
|
632
|
-
Ce();
|
|
633
|
-
}), ae.value && (N.value = ""));
|
|
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());
|
|
638
|
-
}, Xe = () => {
|
|
639
|
-
c(m.SHOW_MORE);
|
|
640
|
-
}, et = zt(
|
|
641
|
-
{
|
|
642
|
-
inputContainerRef: d,
|
|
643
|
-
optionsContainerRef: p,
|
|
644
|
-
selectedValueIndex: Ve,
|
|
645
|
-
isDropdownOpen: f,
|
|
646
|
-
isDynamicFltering: x(e, "dynamicFiltering"),
|
|
647
|
-
items: Ye,
|
|
648
|
-
isMultiple: e.multiple
|
|
649
|
-
},
|
|
650
|
-
ne,
|
|
651
|
-
Ze,
|
|
652
|
-
le
|
|
653
|
-
), tt = Vt(
|
|
654
|
-
{
|
|
655
|
-
inputContainerRef: d,
|
|
656
|
-
isDropdownOpen: f
|
|
657
|
-
},
|
|
658
|
-
le
|
|
659
|
-
), ot = {
|
|
660
|
-
[m.CLOSE_DROPDOWN]: le,
|
|
661
|
-
[m.SELECT]: Qe,
|
|
662
|
-
[m.SHOW_MORE]: Xe,
|
|
663
|
-
...tt
|
|
664
|
-
};
|
|
665
|
-
e.error && ie(
|
|
666
|
-
'BentoDropdown "error" property',
|
|
667
|
-
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
668
|
-
Having the field as "undefined" will hide/remove the error.
|
|
669
|
-
<bento-dropdown errorMessage="Error message text" />`,
|
|
670
|
-
"2.0.0"
|
|
671
|
-
), e.size && ie('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), e.value && ie(
|
|
672
|
-
'BentoDropdown "value" property',
|
|
673
|
-
`The use of "value" prop in "BentoDropdown" is no longer supported.
|
|
674
|
-
Use the "v-model" or "model-value" property instead.`,
|
|
675
|
-
"2.0.0"
|
|
676
|
-
);
|
|
677
|
-
const Oe = () => {
|
|
678
|
-
d.value.focus();
|
|
679
|
-
};
|
|
680
|
-
return ye(
|
|
681
|
-
() => f.value,
|
|
682
|
-
(a) => {
|
|
683
|
-
a && c("open");
|
|
684
|
-
}
|
|
685
|
-
), u({
|
|
686
|
-
focus: Oe
|
|
687
|
-
}), (a, T) => ee((S(), P("div", {
|
|
688
|
-
class: me(["b-dropdown", _e.value])
|
|
689
|
-
}, [
|
|
690
|
-
l(J) ? (S(), z(l(Lt), {
|
|
691
|
-
key: 0,
|
|
692
|
-
id: l(v),
|
|
693
|
-
condensed: a.condensed,
|
|
694
|
-
label: l(J),
|
|
695
|
-
"tooltip-text": a.tooltipText,
|
|
696
|
-
optional: a.optional,
|
|
697
|
-
required: a.required
|
|
698
|
-
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : R("", !0),
|
|
699
|
-
ee((S(), P("div", k({
|
|
700
|
-
ref_key: "inputContainerRefWrapper",
|
|
701
|
-
ref: b
|
|
702
|
-
}, X(l(et), !0)), [
|
|
703
|
-
(S(), z(Me(Pe.value), {
|
|
704
|
-
ref_key: "inputContainerRef",
|
|
705
|
-
ref: d,
|
|
706
|
-
condensed: a.condensed,
|
|
707
|
-
value: N.value,
|
|
708
|
-
"additional-items-selected": je.value,
|
|
709
|
-
"aria-controls": l(C),
|
|
710
|
-
ariaExpanded: f.value,
|
|
711
|
-
"aria-labelledby": l(J) ? l(v) : null,
|
|
712
|
-
"aria-describedby": He.value,
|
|
713
|
-
"aria-label": l(Le),
|
|
714
|
-
"aria-readonly": l(g),
|
|
715
|
-
"aria-required": a.required,
|
|
716
|
-
readonly: l(g),
|
|
717
|
-
disabled: a.disabled,
|
|
718
|
-
"display-value": l(Ke),
|
|
719
|
-
"dynamic-filtering": a.dynamicFiltering,
|
|
720
|
-
"is-invalid": !!a.errorMessage || a.error,
|
|
721
|
-
multiple: a.multiple,
|
|
722
|
-
open: f.value,
|
|
723
|
-
"selected-value-item": l(Se) ? void 0 : ze.value,
|
|
724
|
-
"show-slot-content-in-multiple": a.showSlotContentInMultiple,
|
|
725
|
-
onInput: T[0] || (T[0] = (M) => N.value = M),
|
|
726
|
-
onOpen: ne,
|
|
727
|
-
onClose: ne
|
|
728
|
-
}, ue({ _: 2 }, [
|
|
729
|
-
ce(l(n), (M, $) => ({
|
|
730
|
-
name: $,
|
|
731
|
-
fn: V((se) => [
|
|
732
|
-
G(a.$slots, $, pe(fe(se)), void 0, !0)
|
|
733
|
-
])
|
|
734
|
-
}))
|
|
735
|
-
]), 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
|
-
], 16)), [
|
|
737
|
-
[l(yt)]
|
|
738
|
-
]),
|
|
739
|
-
d.value ? (S(), z(l(Bt), k({
|
|
740
|
-
key: 1,
|
|
741
|
-
id: l(C),
|
|
742
|
-
ref_key: "optionsContainerRef",
|
|
743
|
-
ref: p,
|
|
744
|
-
"aria-label": l(Le),
|
|
745
|
-
"component-loading": a.componentLoading,
|
|
746
|
-
"empty-state": a.emptyState,
|
|
747
|
-
disabled: a.disabled,
|
|
748
|
-
"is-option-disabled": a.isOptionDisabled,
|
|
749
|
-
items: l(oe),
|
|
750
|
-
multiple: a.multiple,
|
|
751
|
-
"static-categories": we.value,
|
|
752
|
-
open: f.value,
|
|
753
|
-
"selected-value": l(_),
|
|
754
|
-
searching: ae.value,
|
|
755
|
-
"target-element": b.value,
|
|
756
|
-
loading: a.loading,
|
|
757
|
-
"has-more-items": a.hasMoreItems,
|
|
758
|
-
"lazy-load-type": a.lazyLoadType,
|
|
759
|
-
"virtual-scroll": a.virtualScroll
|
|
760
|
-
}, X(ot)), ue({ _: 2 }, [
|
|
761
|
-
ce(l(n), (M, $) => ({
|
|
762
|
-
name: $,
|
|
763
|
-
fn: V((se) => [
|
|
764
|
-
G(a.$slots, $, pe(fe(se)), void 0, !0)
|
|
765
|
-
])
|
|
766
|
-
}))
|
|
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"])) : R("", !0),
|
|
768
|
-
a.errorMessage ? (S(), z(l(St), {
|
|
769
|
-
key: 2,
|
|
770
|
-
id: l(D),
|
|
771
|
-
"error-message": a.errorMessage,
|
|
772
|
-
class: "b-dropdown__error-message"
|
|
773
|
-
}, null, 8, ["id", "error-message"])) : R("", !0),
|
|
774
|
-
a.description || l(s)("description") ? (S(), z(l(it), {
|
|
775
|
-
key: 3,
|
|
776
|
-
id: l(B),
|
|
777
|
-
class: me(["b-dropdown__description", Fe.value]),
|
|
778
|
-
el: "span"
|
|
779
|
-
}, {
|
|
780
|
-
default: V(() => [
|
|
781
|
-
G(a.$slots, "description", {}, () => [
|
|
782
|
-
st(be(a.description), 1)
|
|
783
|
-
], !0)
|
|
784
|
-
]),
|
|
785
|
-
_: 3
|
|
786
|
-
}, 8, ["id", "class"])) : R("", !0)
|
|
787
|
-
], 2)), [
|
|
788
|
-
[l(vt), Ge]
|
|
789
|
-
]);
|
|
790
|
-
}
|
|
791
|
-
}), vo = /* @__PURE__ */ H(jt, [["__scopeId", "data-v-06d3531c"]]);
|
|
792
|
-
export {
|
|
793
|
-
vo as B,
|
|
794
|
-
fo as I,
|
|
795
|
-
qt as a,
|
|
796
|
-
mo as b,
|
|
797
|
-
Wt as u
|
|
798
|
-
};
|
|
799
|
-
//# sourceMappingURL=dropdown.MhmX1P9o.js.map
|