@adyen/bento-vue3 1.88.1 → 1.89.2
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 +722 -524
- 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/ai-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/list-item.css +1 -0
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.QQ06tTjt.js → accordion-item.BX1KrLMl.js} +6 -15
- package/dist/chunks/{accordion-item.QQ06tTjt.js.map → accordion-item.BX1KrLMl.js.map} +1 -1
- package/dist/chunks/{action-bar.BS2cJzG_.js → action-bar.DLMaIUWW.js} +8 -34
- package/dist/chunks/{action-bar.BS2cJzG_.js.map → action-bar.DLMaIUWW.js.map} +1 -1
- package/dist/chunks/{ai-button.XfeGC4-Q.js → ai-button.1YJdI-sw.js} +3 -3
- package/dist/chunks/{ai-button.XfeGC4-Q.js.map → ai-button.1YJdI-sw.js.map} +1 -1
- package/dist/chunks/{ai-tag.DVCW-_vD.js → ai-tag.DK63ExDc.js} +6 -15
- package/dist/chunks/{ai-tag.DVCW-_vD.js.map → ai-tag.DK63ExDc.js.map} +1 -1
- package/dist/chunks/{alert.CDWtu0Hu.js → alert.C_8-VNi_.js} +6 -24
- package/dist/chunks/{alert.CDWtu0Hu.js.map → alert.C_8-VNi_.js.map} +1 -1
- package/dist/chunks/anchor-scroller.NhjLDBZI.js +207 -0
- package/dist/chunks/{anchor-scroller.BctgW0se.js.map → anchor-scroller.NhjLDBZI.js.map} +1 -1
- package/dist/chunks/{base-button.CRYAiuzn.js → base-button.CvHl36Ue.js} +24 -27
- package/dist/chunks/{base-button.CRYAiuzn.js.map → base-button.CvHl36Ue.js.map} +1 -1
- package/dist/chunks/base-modal.C2-JyHC_.js +424 -0
- package/dist/chunks/{base-modal.gZAtk-xP.js.map → base-modal.C2-JyHC_.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.BQFAgAI2.js +85 -0
- package/dist/chunks/{button-actions-with-menu.Tba1ME79.js.map → button-actions-with-menu.BQFAgAI2.js.map} +1 -1
- package/dist/chunks/{button-actions.BYBpjNqy.js → button-actions.cMQWyZne.js} +511 -542
- package/dist/chunks/{button-actions.BYBpjNqy.js.map → button-actions.cMQWyZne.js.map} +1 -1
- package/dist/chunks/{button.C6t9_lzm.js → button.DWF7FSIw.js} +42 -45
- package/dist/chunks/{button.C6t9_lzm.js.map → button.DWF7FSIw.js.map} +1 -1
- package/dist/chunks/calendar.DcCqkSNJ.js +1201 -0
- package/dist/chunks/{calendar.vM3abC8y.js.map → calendar.DcCqkSNJ.js.map} +1 -1
- package/dist/chunks/{card.Cw63i7Ul.js → card.CoxQ_L0w.js} +9 -21
- package/dist/chunks/{card.Cw63i7Ul.js.map → card.CoxQ_L0w.js.map} +1 -1
- package/dist/chunks/{checkbox-group.ODQy-ICn.js → checkbox-group.96n9Cc3W.js} +5 -5
- package/dist/chunks/{checkbox-group.ODQy-ICn.js.map → checkbox-group.96n9Cc3W.js.map} +1 -1
- package/dist/chunks/{checkbox-input.BZjSoCQW.js → checkbox-input.CVFQCfZM.js} +44 -51
- package/dist/chunks/{checkbox-input.BZjSoCQW.js.map → checkbox-input.CVFQCfZM.js.map} +1 -1
- package/dist/chunks/{checkbox.C3Ewfygy.js → checkbox.C6ATh8f5.js} +85 -94
- package/dist/chunks/{checkbox.C3Ewfygy.js.map → checkbox.C6ATh8f5.js.map} +1 -1
- package/dist/chunks/chevron-right-small.BCinNiMt.js +29 -0
- package/dist/chunks/chevron-right-small.BCinNiMt.js.map +1 -0
- package/dist/chunks/{chip.CyW1V8RU.js → chip.CdgpQyXN.js} +6 -12
- package/dist/chunks/{chip.CyW1V8RU.js.map → chip.CdgpQyXN.js.map} +1 -1
- package/dist/chunks/click-outside.BPylIosK.js +20 -0
- package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BPylIosK.js.map} +1 -1
- package/dist/chunks/{code-snippet.BaJU2I5_.js → code-snippet.DgAuuZF5.js} +9 -24
- package/dist/chunks/{code-snippet.BaJU2I5_.js.map → code-snippet.DgAuuZF5.js.map} +1 -1
- package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
- package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
- package/dist/chunks/constructNow.D9uRk678.js +8 -0
- package/dist/chunks/{constructNow.CIc7d13I.js.map → constructNow.D9uRk678.js.map} +1 -1
- package/dist/chunks/{controls-group.Bu5lNTyH.js → controls-group.C7hOE1F4.js} +3 -3
- package/dist/chunks/{controls-group.Bu5lNTyH.js.map → controls-group.C7hOE1F4.js.map} +1 -1
- package/dist/chunks/{copy.C_BCNHYQ.js → copy.C2kQ1PbI.js} +7 -19
- package/dist/chunks/{copy.C_BCNHYQ.js.map → copy.C2kQ1PbI.js.map} +1 -1
- package/dist/chunks/{country.DJts6kCv.js → country.CaGc08Ps.js} +3 -3
- package/dist/chunks/{country.DJts6kCv.js.map → country.CaGc08Ps.js.map} +1 -1
- package/dist/chunks/country.types.DjpMGz7a.js +19 -0
- package/dist/chunks/{country.types.BBQbWkTY.js.map → country.types.DjpMGz7a.js.map} +1 -1
- package/dist/chunks/{currency.Afx8MVdY.js → currency.DuTEzR_W.js} +40 -42
- package/dist/chunks/{currency.Afx8MVdY.js.map → currency.DuTEzR_W.js.map} +1 -1
- package/dist/chunks/dashboard-section.UafHRkMa.js +161 -0
- package/dist/chunks/{dashboard-section.CgoLquLP.js.map → dashboard-section.UafHRkMa.js.map} +1 -1
- package/dist/chunks/dashed-underline.CcDV2Aks.js +108 -0
- package/dist/chunks/{dashed-underline.wbRHATeE.js.map → dashed-underline.CcDV2Aks.js.map} +1 -1
- package/dist/chunks/data-grid-template.CnC4TQvk.js +135 -0
- package/dist/chunks/{data-grid-template.D40V1cmi.js.map → data-grid-template.CnC4TQvk.js.map} +1 -1
- package/dist/chunks/data-grid.BSIXLRm7.js +4014 -0
- package/dist/chunks/{data-grid.C2nCCbeC.js.map → data-grid.BSIXLRm7.js.map} +1 -1
- package/dist/chunks/date-picker.dlzZ_-5f.js +231 -0
- package/dist/chunks/{date-picker.D5B_SECc.js.map → date-picker.dlzZ_-5f.js.map} +1 -1
- package/dist/chunks/date-range-picker.DC6CK0As.js +995 -0
- package/dist/chunks/{date-range-picker.B0q7Z4df.js.map → date-range-picker.DC6CK0As.js.map} +1 -1
- package/dist/chunks/{date.BtB1HyWQ.js → date.R2Wz6o7J.js} +28 -28
- package/dist/chunks/{date.BtB1HyWQ.js.map → date.R2Wz6o7J.js.map} +1 -1
- package/dist/chunks/{de.BJvo6njq.js → de.DXrHnkLX.js} +18 -18
- package/dist/chunks/{de.BJvo6njq.js.map → de.DXrHnkLX.js.map} +1 -1
- package/dist/chunks/{dialog-page.C1KUI51V.js → dialog-page.COfKqjT-.js} +7 -13
- package/dist/chunks/{dialog-page.C1KUI51V.js.map → dialog-page.COfKqjT-.js.map} +1 -1
- package/dist/chunks/differenceInMonths.s_znQQpw.js +43 -0
- package/dist/chunks/{differenceInMonths.CIYECBxK.js.map → differenceInMonths.s_znQQpw.js.map} +1 -1
- package/dist/chunks/{directive.rXUeDb8p.js → directive.Dpivxq_t.js} +2 -2
- package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Dpivxq_t.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.CskseEho.js → dropdown-default-textbox.bq9AlGzJ.js} +55 -64
- package/dist/chunks/{dropdown-default-textbox.CskseEho.js.map → dropdown-default-textbox.bq9AlGzJ.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.Zj-exiup.js → dropdown-tag.Ysrac5GN.js} +82 -86
- package/dist/chunks/{dropdown-tag.Zj-exiup.js.map → dropdown-tag.Ysrac5GN.js.map} +1 -1
- package/dist/chunks/dropdown.MhmX1P9o.js +799 -0
- package/dist/chunks/{dropdown.CxjzXI-k.js.map → dropdown.MhmX1P9o.js.map} +1 -1
- package/dist/chunks/{empty-state.DqdPzU-g.js → empty-state.DT4sFyjB.js} +7 -14
- package/dist/chunks/{empty-state.DqdPzU-g.js.map → empty-state.DT4sFyjB.js.map} +1 -1
- package/dist/chunks/{en-GB.C3-QUpva.js → en-GB.CBpvhDYV.js} +2 -2
- package/dist/chunks/{en-GB.C3-QUpva.js.map → en-GB.CBpvhDYV.js.map} +1 -1
- package/dist/chunks/{en-US.YeSsZuOc.js → en-US.CCazFVNP.js} +30 -30
- package/dist/chunks/{en-US.YeSsZuOc.js.map → en-US.CCazFVNP.js.map} +1 -1
- package/dist/chunks/{error-message.oGiefI2-.js → error-message.DCgo8q20.js} +8 -20
- package/dist/chunks/{error-message.oGiefI2-.js.map → error-message.DCgo8q20.js.map} +1 -1
- package/dist/chunks/{es.DyUjjSL8.js → es.CoF2PB8b.js} +14 -14
- package/dist/chunks/{es.DyUjjSL8.js.map → es.CoF2PB8b.js.map} +1 -1
- package/dist/chunks/{file-uploader.BnmNI1O7.js → file-uploader.Bfd1uUMe.js} +575 -680
- package/dist/chunks/{file-uploader.BnmNI1O7.js.map → file-uploader.Bfd1uUMe.js.map} +1 -1
- package/dist/chunks/filter-bar.CkAjLQol.js +3675 -0
- package/dist/chunks/filter-bar.CkAjLQol.js.map +1 -0
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +150 -0
- package/dist/chunks/{fixed-scroller.i1tmEmst.js.map → fixed-scroller.DtkaGyMD.js.map} +1 -1
- package/dist/chunks/{focus-trap.BxCwzLqN.js → focus-trap.BAiM_ywb.js} +70 -86
- package/dist/chunks/{focus-trap.BxCwzLqN.js.map → focus-trap.BAiM_ywb.js.map} +1 -1
- package/dist/chunks/{footer-actions.Ck6UztD8.js → footer-actions.BcYSsoUg.js} +3 -3
- package/dist/chunks/{footer-actions.Ck6UztD8.js.map → footer-actions.BcYSsoUg.js.map} +1 -1
- package/dist/chunks/{form-layout-title.CQfeGyVw.js → form-layout-title.DW5Kg1rh.js} +4 -6
- package/dist/chunks/{form-layout-title.CQfeGyVw.js.map → form-layout-title.DW5Kg1rh.js.map} +1 -1
- package/dist/chunks/{fr.JD_4GwS8.js → fr.CJXL-Ief.js} +16 -16
- package/dist/chunks/{fr.JD_4GwS8.js.map → fr.CJXL-Ief.js.map} +1 -1
- package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
- package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
- package/dist/chunks/get-slot-text.8Fbl1GOr.js +6 -0
- package/dist/chunks/{get-slot-text.CQRAP2_q.js.map → get-slot-text.8Fbl1GOr.js.map} +1 -1
- package/dist/chunks/{grid-layout.Vhv1_zFs.js → grid-layout.CCWNscU_.js} +11 -12
- package/dist/chunks/{grid-layout.Vhv1_zFs.js.map → grid-layout.CCWNscU_.js.map} +1 -1
- package/dist/chunks/{header-meta.lGt3HsyH.js → header-meta.Bym9AlQm.js} +84 -96
- package/dist/chunks/{header-meta.lGt3HsyH.js.map → header-meta.Bym9AlQm.js.map} +1 -1
- package/dist/chunks/{header-with-views.D_sy4I2A.js → header-with-views.Djba6iol.js} +1013 -1156
- package/dist/chunks/{header-with-views.D_sy4I2A.js.map → header-with-views.Djba6iol.js.map} +1 -1
- package/dist/chunks/{header.oXqwf2xN.js → header.o-7SyHtU.js} +4 -4
- package/dist/chunks/{header.oXqwf2xN.js.map → header.o-7SyHtU.js.map} +1 -1
- package/dist/chunks/{index.Dppy4qHk.js → index.DDwcHPb6.js} +12 -12
- package/dist/chunks/{index.Dppy4qHk.js.map → index.DDwcHPb6.js.map} +1 -1
- package/dist/chunks/{info-icon.DyPOv7Pi.js → info-icon.BUala_wq.js} +3 -3
- package/dist/chunks/{info-icon.DyPOv7Pi.js.map → info-icon.BUala_wq.js.map} +1 -1
- package/dist/chunks/input-field-password.DZytmp_p.js +346 -0
- package/dist/chunks/{input-field-password.C_h61CMn.js.map → input-field-password.DZytmp_p.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.KctRYA9p.js → input-field-phone-number.CxblrmaU.js} +720 -736
- package/dist/chunks/{input-field-phone-number.KctRYA9p.js.map → input-field-phone-number.CxblrmaU.js.map} +1 -1
- package/dist/chunks/{input-field.DPElUS0U.js → input-field.CfU0ZKtL.js} +42 -54
- package/dist/chunks/{input-field.DPElUS0U.js.map → input-field.CfU0ZKtL.js.map} +1 -1
- package/dist/chunks/{inspector.BjLhY3bE.js → inspector.B9k4tJWe.js} +9 -27
- package/dist/chunks/{inspector.BjLhY3bE.js.map → inspector.B9k4tJWe.js.map} +1 -1
- package/dist/chunks/isSameWeek.Dj6luS8h.js +14 -0
- package/dist/chunks/{isSameWeek.CzBCmu7d.js.map → isSameWeek.Dj6luS8h.js.map} +1 -1
- package/dist/chunks/{it.BlUnV-yA.js → it.20Y7h-bF.js} +8 -8
- package/dist/chunks/{it.BlUnV-yA.js.map → it.20Y7h-bF.js.map} +1 -1
- package/dist/chunks/{ja.nUwDmVf2.js → ja.DXlq0H98.js} +27 -27
- package/dist/chunks/{ja.nUwDmVf2.js.map → ja.DXlq0H98.js.map} +1 -1
- package/dist/chunks/layout-row.B5VJGEQH.js +99 -0
- package/dist/chunks/{layout-row.Da8nkm9z.js.map → layout-row.B5VJGEQH.js.map} +1 -1
- package/dist/chunks/link.D6D6YGsN.js +113 -0
- package/dist/chunks/{link.DTCn2EtX.js.map → link.D6D6YGsN.js.map} +1 -1
- package/dist/chunks/list-item.DO5uULke.js +128 -0
- package/dist/chunks/list-item.DO5uULke.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.CoBUYwFG.js → listbox-option-tag.Cvplth7d.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CoBUYwFG.js.map → listbox-option-tag.Cvplth7d.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.9ZDR_S29.js → modal-fullscreen.CuKVyTWb.js} +100 -108
- package/dist/chunks/{modal-fullscreen.9ZDR_S29.js.map → modal-fullscreen.CuKVyTWb.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js} +134 -143
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map → modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map} +1 -1
- package/dist/chunks/on-click-outside.ZUMLlxE_.js +90 -0
- package/dist/chunks/{on-click-outside.BW4rkhzG.js.map → on-click-outside.ZUMLlxE_.js.map} +1 -1
- package/dist/chunks/pagination.dpVc6Yt0.js +401 -0
- package/dist/chunks/pagination.dpVc6Yt0.js.map +1 -0
- package/dist/chunks/popover.types.D8tHtFl3.js +6 -0
- package/dist/chunks/{popover.types.DhALnOLQ.js.map → popover.types.D8tHtFl3.js.map} +1 -1
- package/dist/chunks/{popper-container.DAK7c9uS.js → popper-container.DMN8n5iC.js} +79 -86
- package/dist/chunks/{popper-container.DAK7c9uS.js.map → popper-container.DMN8n5iC.js.map} +1 -1
- package/dist/chunks/{promo-banner.aNwH6uQx.js → promo-banner.BzveHNOI.js} +7 -13
- package/dist/chunks/{promo-banner.aNwH6uQx.js.map → promo-banner.BzveHNOI.js.map} +1 -1
- package/dist/chunks/{pt-BR.BCU2Hj36.js → pt-BR.DmhmCzxE.js} +14 -14
- package/dist/chunks/{pt-BR.BCU2Hj36.js.map → pt-BR.DmhmCzxE.js.map} +1 -1
- package/dist/chunks/{radio-group.DEYzF6o7.js → radio-group.Cuiq4mxy.js} +46 -46
- package/dist/chunks/{radio-group.DEYzF6o7.js.map → radio-group.Cuiq4mxy.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DH1d5Zcp.js → rich-text-editor.DLMiT4f5.js} +1018 -1024
- package/dist/chunks/{rich-text-editor.DH1d5Zcp.js.map → rich-text-editor.DLMiT4f5.js.map} +1 -1
- package/dist/chunks/{search-bar.Dtzx88Pv.js → search-bar.CsFyP0_I.js} +6 -15
- package/dist/chunks/{search-bar.Dtzx88Pv.js.map → search-bar.CsFyP0_I.js.map} +1 -1
- package/dist/chunks/{secondary-nav.Zs7dBoJv.js → secondary-nav.CLBdq98c.js} +6 -12
- package/dist/chunks/{secondary-nav.Zs7dBoJv.js.map → secondary-nav.CLBdq98c.js.map} +1 -1
- package/dist/chunks/{segmented-control.Aqquod8g.js → segmented-control.KeQ5kuR1.js} +47 -51
- package/dist/chunks/{segmented-control.Aqquod8g.js.map → segmented-control.KeQ5kuR1.js.map} +1 -1
- package/dist/chunks/selection-card-group.XM11Kk-4.js +412 -0
- package/dist/chunks/{selection-card-group.C7IK2Vl5.js.map → selection-card-group.XM11Kk-4.js.map} +1 -1
- package/dist/chunks/{sidepanel.DaXPcTHm.js → sidepanel.b2QZ1Jsx.js} +64 -71
- package/dist/chunks/{sidepanel.DaXPcTHm.js.map → sidepanel.b2QZ1Jsx.js.map} +1 -1
- package/dist/chunks/startOfWeek.Cvmo-f5J.js +9 -0
- package/dist/chunks/{startOfWeek.CXhhX-R7.js.map → startOfWeek.Cvmo-f5J.js.map} +1 -1
- package/dist/chunks/status.H00BAmRx.js +42 -0
- package/dist/chunks/status.H00BAmRx.js.map +1 -0
- package/dist/chunks/status.types.Dx8MDhEH.js +5 -0
- package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -0
- package/dist/chunks/{step.BV7MsrRF.js → step.BlwoLfdw.js} +56 -68
- package/dist/chunks/{step.BV7MsrRF.js.map → step.BlwoLfdw.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DAIaUMCY.js → structured-list-item.e-8kRleh.js} +8 -14
- package/dist/chunks/{structured-list-item.DAIaUMCY.js.map → structured-list-item.e-8kRleh.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BZcZS_dW.js → summary-grid.types.CcvOC03H.js} +172 -179
- package/dist/chunks/{summary-grid.types.BZcZS_dW.js.map → summary-grid.types.CcvOC03H.js.map} +1 -1
- package/dist/chunks/tab.mR5uUSdp.js +265 -0
- package/dist/chunks/{tab.DRrnMCxe.js.map → tab.mR5uUSdp.js.map} +1 -1
- package/dist/chunks/{tag.CqWg6C3H.js → tag.DujMVFh-.js} +3 -3
- package/dist/chunks/{tag.CqWg6C3H.js.map → tag.DujMVFh-.js.map} +1 -1
- package/dist/chunks/textarea.CHV6Z8nt.js +247 -0
- package/dist/chunks/{textarea.CvI2InIB.js.map → textarea.CHV6Z8nt.js.map} +1 -1
- package/dist/chunks/timeline-item.CaGcRZbt.js +419 -0
- package/dist/chunks/timeline-item.CaGcRZbt.js.map +1 -0
- package/dist/chunks/{toast.Bbtq3Icj.js → toast.C2oehk9P.js} +72 -78
- package/dist/chunks/{toast.Bbtq3Icj.js.map → toast.C2oehk9P.js.map} +1 -1
- package/dist/chunks/{toggle.BupEBkIG.js → toggle.BQoprdX-.js} +5 -5
- package/dist/chunks/{toggle.BupEBkIG.js.map → toggle.BQoprdX-.js.map} +1 -1
- package/dist/chunks/tooltip.CbADa_4p.js +199 -0
- package/dist/chunks/{tooltip.Lwtlhv3u.js.map → tooltip.CbADa_4p.js.map} +1 -1
- package/dist/chunks/truncate.DmCXQmeb.js +8 -0
- package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js} +100 -124
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map → tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js → use-bento-toast-controller.D_NSnBxi.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.BFctDoMg.js.map → use-bento-toast-controller.D_NSnBxi.js.map} +1 -1
- package/dist/chunks/use-cached-selected-values.ClEJRFAd.js +1631 -0
- package/dist/chunks/{use-cached-selected-values.C4_X3vVj.js.map → use-cached-selected-values.ClEJRFAd.js.map} +1 -1
- package/dist/chunks/use-country-items.D_3LBe2I.js +30 -0
- package/dist/chunks/{use-country-items.BTzByPdQ.js.map → use-country-items.D_3LBe2I.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.DoqTGkNr.js +287 -0
- package/dist/chunks/use-country-phon-code.DoqTGkNr.js.map +1 -0
- package/dist/chunks/use-date-input-formatter.CDRzd-hW.js +1629 -0
- package/dist/chunks/{use-date-input-formatter.dtbK-CEy.js.map → use-date-input-formatter.CDRzd-hW.js.map} +1 -1
- package/dist/chunks/use-default-slot-validator.BzHcrgmy.js +12 -0
- package/dist/chunks/{use-default-slot-validator.O02rzsob.js.map → use-default-slot-validator.BzHcrgmy.js.map} +1 -1
- package/dist/chunks/use-expandable-content-height.B5jjRvCz.js +16 -0
- package/dist/chunks/{use-expandable-content-height.GkjjbmPy.js.map → use-expandable-content-height.B5jjRvCz.js.map} +1 -1
- package/dist/chunks/use-has-slot.CyMiImRQ.js +14 -0
- package/dist/chunks/{use-has-slot.B7eQSabc.js.map → use-has-slot.CyMiImRQ.js.map} +1 -1
- package/dist/chunks/utils.DWmc2mUI.js +19 -0
- package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
- package/dist/chunks/{zh-CN.ChYkuQAR.js → zh-CN.Ce34mXsX.js} +28 -28
- package/dist/chunks/{zh-CN.ChYkuQAR.js.map → zh-CN.Ce34mXsX.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- package/dist/currency.js +1 -1
- 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/date.js +1 -1
- package/dist/draggable-handle.js +4 -28
- package/dist/draggable-handle.js.map +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.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 +241 -241
- 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/inspector.js +1 -1
- package/dist/internal.js +13 -13
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/list.js +6 -0
- package/dist/list.js.map +1 -0
- 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 +2 -2
- package/dist/popper-container.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/status.js +4 -3
- package/dist/status.js.map +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/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js +331 -341
- package/dist/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +7 -7
- package/dist/chunks/anchor-scroller.BctgW0se.js +0 -214
- package/dist/chunks/base-modal.gZAtk-xP.js +0 -443
- package/dist/chunks/button-actions-with-menu.Tba1ME79.js +0 -93
- package/dist/chunks/calendar.vM3abC8y.js +0 -1234
- package/dist/chunks/click-outside.CDz_x8mN.js +0 -23
- package/dist/chunks/constructNow.CIc7d13I.js +0 -8
- package/dist/chunks/country.types.BBQbWkTY.js +0 -773
- package/dist/chunks/dashboard-section.CgoLquLP.js +0 -165
- package/dist/chunks/dashed-underline.wbRHATeE.js +0 -114
- package/dist/chunks/data-grid-template.D40V1cmi.js +0 -144
- package/dist/chunks/data-grid.C2nCCbeC.js +0 -4368
- package/dist/chunks/date-picker.D5B_SECc.js +0 -251
- package/dist/chunks/date-range-picker.B0q7Z4df.js +0 -1084
- package/dist/chunks/differenceInMonths.CIYECBxK.js +0 -43
- package/dist/chunks/dropdown.CxjzXI-k.js +0 -837
- package/dist/chunks/filter-bar.DJ7O4zLX.js +0 -4036
- package/dist/chunks/filter-bar.DJ7O4zLX.js.map +0 -1
- package/dist/chunks/fixed-scroller.i1tmEmst.js +0 -161
- package/dist/chunks/get-slot-text.CQRAP2_q.js +0 -12
- package/dist/chunks/input-field-password.C_h61CMn.js +0 -402
- package/dist/chunks/isSameWeek.CzBCmu7d.js +0 -14
- package/dist/chunks/layout-row.Da8nkm9z.js +0 -100
- package/dist/chunks/link.DTCn2EtX.js +0 -116
- package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
- package/dist/chunks/pagination.B32UgSoH.js +0 -488
- package/dist/chunks/pagination.B32UgSoH.js.map +0 -1
- package/dist/chunks/popover.types.DhALnOLQ.js +0 -6
- package/dist/chunks/selection-card-group.C7IK2Vl5.js +0 -417
- package/dist/chunks/startOfWeek.CXhhX-R7.js +0 -10
- package/dist/chunks/status.types.D3v3k-Q8.js +0 -44
- package/dist/chunks/status.types.D3v3k-Q8.js.map +0 -1
- package/dist/chunks/tab.DRrnMCxe.js +0 -273
- package/dist/chunks/textarea.CvI2InIB.js +0 -255
- package/dist/chunks/timeline-item.BooD99hL.js +0 -427
- package/dist/chunks/timeline-item.BooD99hL.js.map +0 -1
- package/dist/chunks/tooltip.Lwtlhv3u.js +0 -202
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/use-cached-selected-values.C4_X3vVj.js +0 -1711
- package/dist/chunks/use-country-items.BTzByPdQ.js +0 -30
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js +0 -5621
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +0 -1
- package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +0 -1732
- package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
- package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
- package/dist/chunks/utils.BzUwtTXc.js +0 -21
|
@@ -0,0 +1,799 @@
|
|
|
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
|