@adyen/bento-vue3 1.49.0 → 1.51.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/index.d.ts +441 -657
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/assets/tutorial.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 +3 -3
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.Cf184uiI.js → accordion-item.DLyCF015.js} +2 -2
- package/dist/chunks/{accordion-item.Cf184uiI.js.map → accordion-item.DLyCF015.js.map} +1 -1
- package/dist/chunks/{action-bar.r_Vt4XIu.js → action-bar.BW9db7ja.js} +6 -6
- package/dist/chunks/{action-bar.r_Vt4XIu.js.map → action-bar.BW9db7ja.js.map} +1 -1
- package/dist/chunks/{alert.Dd2DYCZ1.js → alert.eqWeCHyL.js} +25 -24
- package/dist/chunks/alert.eqWeCHyL.js.map +1 -0
- package/dist/chunks/{base-modal.Bis0B1AC.js → base-modal.BRYHc9Ez.js} +5 -5
- package/dist/chunks/{base-modal.Bis0B1AC.js.map → base-modal.BRYHc9Ez.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.C5LguXWO.js → button-actions-with-menu.Hl8tUKa4.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.C5LguXWO.js.map → button-actions-with-menu.Hl8tUKa4.js.map} +1 -1
- package/dist/chunks/{button-actions.ncthaz2m.js → button-actions.BPnsl_QP.js} +4 -4
- package/dist/chunks/{button-actions.ncthaz2m.js.map → button-actions.BPnsl_QP.js.map} +1 -1
- package/dist/chunks/{button.Cneb6rPP.js → button.6HMG0xEY.js} +2 -2
- package/dist/chunks/{button.Cneb6rPP.js.map → button.6HMG0xEY.js.map} +1 -1
- package/dist/chunks/{calendar.BdLQOioy.js → calendar.DfN1__E_.js} +3 -3
- package/dist/chunks/{calendar.BdLQOioy.js.map → calendar.DfN1__E_.js.map} +1 -1
- package/dist/chunks/{card.BAg7yMMT.js → card.BwC4MSjn.js} +3 -3
- package/dist/chunks/{card.BAg7yMMT.js.map → card.BwC4MSjn.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CxWYSBy1.js → checkbox-group.Bzd-qpJ-.js} +4 -4
- package/dist/chunks/{checkbox-group.CxWYSBy1.js.map → checkbox-group.Bzd-qpJ-.js.map} +1 -1
- package/dist/chunks/{checkbox-input.CAYgiRHG.js → checkbox-input.XtCjXis9.js} +12 -11
- package/dist/chunks/checkbox-input.XtCjXis9.js.map +1 -0
- package/dist/chunks/{checkbox.bXN3Yann.js → checkbox.DJRe4ync.js} +17 -17
- package/dist/chunks/{checkbox.bXN3Yann.js.map → checkbox.DJRe4ync.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.g_tcBhFJ.js → checkmark-circle-fill.D9gNCN0T.js} +4 -4
- package/dist/chunks/checkmark-circle-fill.D9gNCN0T.js.map +1 -0
- package/dist/chunks/{checkmark-small.BDqUF-Ni.js → checkmark-small.D7l69yBf.js} +4 -4
- package/dist/chunks/checkmark-small.D7l69yBf.js.map +1 -0
- package/dist/chunks/{chevron-left.CYEK2UTr.js → chevron-left.BF63HtOH.js} +6 -6
- package/dist/chunks/chevron-left.BF63HtOH.js.map +1 -0
- package/dist/chunks/{chevron-up.Cu9qXgBY.js → chevron-up.-0oLlHmh.js} +6 -6
- package/dist/chunks/chevron-up.-0oLlHmh.js.map +1 -0
- package/dist/chunks/chip.3T0x6FuI.js +74 -0
- package/dist/chunks/chip.3T0x6FuI.js.map +1 -0
- package/dist/chunks/{code-snippet.baKzBaM6.js → code-snippet.0HhLVaJR.js} +7 -7
- package/dist/chunks/{code-snippet.baKzBaM6.js.map → code-snippet.0HhLVaJR.js.map} +1 -1
- package/dist/chunks/{controls-group.BnbQO34k.js → controls-group.DnX2B502.js} +2 -2
- package/dist/chunks/{controls-group.BnbQO34k.js.map → controls-group.DnX2B502.js.map} +1 -1
- package/dist/chunks/{copy.CXCdp5ly.js → copy.BzeHBtEF.js} +10 -9
- package/dist/chunks/copy.BzeHBtEF.js.map +1 -0
- package/dist/chunks/{cross-circle-fill-small.CJyARMSZ.js → cross-circle-fill-small.mY6ihJcA.js} +4 -4
- package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +1 -0
- package/dist/chunks/{cross-circle-fill.BzSjakuO.js → cross-circle-fill.DLWo6wBR.js} +4 -4
- package/dist/chunks/cross-circle-fill.DLWo6wBR.js.map +1 -0
- package/dist/chunks/{cross-small.Z5EKYRm0.js → cross-small.CFrBIeYK.js} +4 -4
- package/dist/chunks/cross-small.CFrBIeYK.js.map +1 -0
- package/dist/chunks/{cross.BZYw4R3N.js → cross.CbLEjiVy.js} +4 -4
- package/dist/chunks/cross.CbLEjiVy.js.map +1 -0
- package/dist/chunks/{dashboard-section.B87x4XsH.js → dashboard-section.CySxZmlx.js} +3 -3
- package/dist/chunks/{dashboard-section.B87x4XsH.js.map → dashboard-section.CySxZmlx.js.map} +1 -1
- package/dist/chunks/{dashed-underline.dWsHmwUp.js → dashed-underline.CCKLdMc7.js} +3 -3
- package/dist/chunks/{dashed-underline.dWsHmwUp.js.map → dashed-underline.CCKLdMc7.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CZrGeSxR.js → data-grid-template.iM84gKjt.js} +3 -3
- package/dist/chunks/{data-grid-template.CZrGeSxR.js.map → data-grid-template.iM84gKjt.js.map} +1 -1
- package/dist/chunks/{data-grid.Duvh6mRu.js → data-grid.B2L_4qN7.js} +903 -923
- package/dist/chunks/data-grid.B2L_4qN7.js.map +1 -0
- package/dist/chunks/{date-picker.DXrMLxD0.js → date-picker.CMi0Kuy3.js} +5 -5
- package/dist/chunks/{date-picker.DXrMLxD0.js.map → date-picker.CMi0Kuy3.js.map} +1 -1
- package/dist/chunks/{date-range-picker.D7BDFoqM.js → date-range-picker.-KwSzmW_.js} +194 -193
- package/dist/chunks/date-range-picker.-KwSzmW_.js.map +1 -0
- package/dist/chunks/{dialog-page.D_r_CbyD.js → dialog-page.CXQafL9G.js} +5 -4
- package/dist/chunks/dialog-page.CXQafL9G.js.map +1 -0
- package/dist/chunks/{dot.cpdFEk6G.js → dot.BW-xtyjC.js} +4 -4
- package/dist/chunks/dot.BW-xtyjC.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.BpvVMlcX.js → dropdown-default-textbox.Filez078.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.BpvVMlcX.js.map → dropdown-default-textbox.Filez078.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DrBFdX2o.js → dropdown-tag.B4-3z8xz.js} +4 -4
- package/dist/chunks/{dropdown-tag.DrBFdX2o.js.map → dropdown-tag.B4-3z8xz.js.map} +1 -1
- package/dist/chunks/{dropdown.CWq-VlFX.js → dropdown.CRLx2Juh.js} +333 -325
- package/dist/chunks/dropdown.CRLx2Juh.js.map +1 -0
- package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.BffIZp3a.js} +2 -2
- package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.BffIZp3a.js.map} +1 -1
- package/dist/chunks/{error-message.B3z5WkLF.js → error-message.68kVjf_N.js} +3 -3
- package/dist/chunks/{error-message.B3z5WkLF.js.map → error-message.68kVjf_N.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{expand.CJ162RaJ.js → expand.DusW7F7p.js} +4 -4
- package/dist/chunks/expand.DusW7F7p.js.map +1 -0
- package/dist/chunks/{file-uploader.NbsEgoj1.js → file-uploader.Cz89e0Ci.js} +275 -278
- package/dist/chunks/file-uploader.Cz89e0Ci.js.map +1 -0
- package/dist/chunks/{filter-bar.DP4SHAQj.js → filter-bar.bfUnCTPj.js} +981 -1039
- package/dist/chunks/filter-bar.bfUnCTPj.js.map +1 -0
- package/dist/chunks/{fixed-scroller.BZwgM5Io.js → fixed-scroller.Bfk75Nei.js} +3 -3
- package/dist/chunks/{fixed-scroller.BZwgM5Io.js.map → fixed-scroller.Bfk75Nei.js.map} +1 -1
- package/dist/chunks/{footer-actions.X_RokrtM.js → footer-actions.DtbsjfSM.js} +3 -3
- package/dist/chunks/{footer-actions.X_RokrtM.js.map → footer-actions.DtbsjfSM.js.map} +1 -1
- package/dist/chunks/{form-layout-title.xkALokzl.js → form-layout-title.B7phPY2m.js} +2 -2
- package/dist/chunks/{form-layout-title.xkALokzl.js.map → form-layout-title.B7phPY2m.js.map} +1 -1
- package/dist/chunks/{header.BBIJHMkv.js → header.ITEMuMAU.js} +21 -21
- package/dist/chunks/{header.BBIJHMkv.js.map → header.ITEMuMAU.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.DbIAJO2-.js → info-icon-with-popover.pHwJeQxm.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.DbIAJO2-.js.map → info-icon-with-popover.pHwJeQxm.js.map} +1 -1
- package/dist/chunks/{info-icon.DQn8-VSp.js → info-icon.DUUa2W2z.js} +3 -3
- package/dist/chunks/{info-icon.DQn8-VSp.js.map → info-icon.DUUa2W2z.js.map} +1 -1
- package/dist/chunks/{info.DYNe2WnZ.js → info.CpPLBOVg.js} +4 -4
- package/dist/chunks/info.CpPLBOVg.js.map +1 -0
- package/dist/chunks/{input-field-password.SSiNunUz.js → input-field-password.zIUeIG8i.js} +37 -37
- package/dist/chunks/input-field-password.zIUeIG8i.js.map +1 -0
- package/dist/chunks/{input-field-phone-number._PCiyrci.js → input-field-phone-number.BGS23WKe.js} +2 -2
- package/dist/chunks/{input-field-phone-number._PCiyrci.js.map → input-field-phone-number.BGS23WKe.js.map} +1 -1
- package/dist/chunks/input-field.y006Hyc1.js +292 -0
- package/dist/chunks/input-field.y006Hyc1.js.map +1 -0
- package/dist/chunks/{inspector.types.6P_ZowVx.js → inspector.types.9S8hNOjR.js} +4 -4
- package/dist/chunks/{inspector.types.6P_ZowVx.js.map → inspector.types.9S8hNOjR.js.map} +1 -1
- package/dist/chunks/{link.ClFi8uSm.js → link.D3Fq5tt_.js} +19 -17
- package/dist/chunks/link.D3Fq5tt_.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.DIk4F59J.js → listbox-option-tag.D557okR8.js} +2 -2
- package/dist/chunks/{listbox-option-tag.DIk4F59J.js.map → listbox-option-tag.D557okR8.js.map} +1 -1
- package/dist/chunks/menu.ZE0cTcKL.js +735 -0
- package/dist/chunks/menu.ZE0cTcKL.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.C9FhKsf9.js → modal-fullscreen.CjZh3U8e.js} +5 -5
- package/dist/chunks/{modal-fullscreen.C9FhKsf9.js.map → modal-fullscreen.CjZh3U8e.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js → modal.vue_vue_type_script_setup_true_lang.C4Z_Q8bq.js} +5 -5
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DGz4x-tr.js.map → modal.vue_vue_type_script_setup_true_lang.C4Z_Q8bq.js.map} +1 -1
- package/dist/chunks/{pagination.DdTcv8B6.js → pagination.BSp5RwM0.js} +37 -36
- package/dist/chunks/pagination.BSp5RwM0.js.map +1 -0
- package/dist/chunks/payment-method.BACjrzKP.js +125 -0
- package/dist/chunks/payment-method.BACjrzKP.js.map +1 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
- package/dist/chunks/{popover.BHGbUyMF.js → popover.DLyVEjCd.js} +106 -98
- package/dist/chunks/popover.DLyVEjCd.js.map +1 -0
- package/dist/chunks/{popper-container.BvGYgqiE.js → popper-container.Bx3CBGg6.js} +448 -444
- package/dist/chunks/popper-container.Bx3CBGg6.js.map +1 -0
- package/dist/chunks/{promo-banner.CKnonHmq.js → promo-banner.Clae7YGL.js} +2 -2
- package/dist/chunks/{promo-banner.CKnonHmq.js.map → promo-banner.Clae7YGL.js.map} +1 -1
- package/dist/chunks/{radio-group.CivaJaaQ.js → radio-group.Bdy7_UIu.js} +4 -4
- package/dist/chunks/{radio-group.CivaJaaQ.js.map → radio-group.Bdy7_UIu.js.map} +1 -1
- package/dist/chunks/{refresh.SzRxQ44W.js → refresh.C20ROVDS.js} +4 -4
- package/dist/chunks/refresh.C20ROVDS.js.map +1 -0
- package/dist/chunks/search-bar.uUWWZpqL.js +114 -0
- package/dist/chunks/search-bar.uUWWZpqL.js.map +1 -0
- package/dist/chunks/{search.KgjmJMHa.js → search.BwQq1yRg.js} +4 -4
- package/dist/chunks/search.BwQq1yRg.js.map +1 -0
- package/dist/chunks/{secondary-nav.DG8xB2Mj.js → secondary-nav.DJudnYiY.js} +2 -2
- package/dist/chunks/{secondary-nav.DG8xB2Mj.js.map → secondary-nav.DJudnYiY.js.map} +1 -1
- package/dist/chunks/{segmented-control.DKWpxDho.js → segmented-control.BqJXrEmp.js} +2 -2
- package/dist/chunks/{segmented-control.DKWpxDho.js.map → segmented-control.BqJXrEmp.js.map} +1 -1
- package/dist/chunks/{selection-card-group.B9nOBntu.js → selection-card-group.COMI4GGI.js} +11 -11
- package/dist/chunks/{selection-card-group.B9nOBntu.js.map → selection-card-group.COMI4GGI.js.map} +1 -1
- package/dist/chunks/{show.J9zXGWlK.js → show.ByWWaogc.js} +6 -6
- package/dist/chunks/show.ByWWaogc.js.map +1 -0
- package/dist/chunks/{sidepanel.dFspFFRG.js → sidepanel.VwZpyqJr.js} +5 -5
- package/dist/chunks/{sidepanel.dFspFFRG.js.map → sidepanel.VwZpyqJr.js.map} +1 -1
- package/dist/chunks/{step.DsfmsUU6.js → step.BGFaHGFO.js} +3 -3
- package/dist/chunks/{step.DsfmsUU6.js.map → step.BGFaHGFO.js.map} +1 -1
- package/dist/chunks/{structured-list-item.C9vL7KwG.js → structured-list-item.BZJQzyt_.js} +6 -6
- package/dist/chunks/{structured-list-item.C9vL7KwG.js.map → structured-list-item.BZJQzyt_.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.B0SvlYn-.js → summary-grid-item-custom.rBC-2kKM.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.B0SvlYn-.js.map → summary-grid-item-custom.rBC-2kKM.js.map} +1 -1
- package/dist/chunks/{tabs.CR2tWuz3.js → tabs.hp52NnXH.js} +2 -2
- package/dist/chunks/{tabs.CR2tWuz3.js.map → tabs.hp52NnXH.js.map} +1 -1
- package/dist/chunks/{tag.Bmw9RaOG.js → tag.CXADLCgG.js} +2 -2
- package/dist/chunks/{tag.Bmw9RaOG.js.map → tag.CXADLCgG.js.map} +1 -1
- package/dist/chunks/{textarea.CrQk0SR0.js → textarea.4s69xpG3.js} +4 -4
- package/dist/chunks/{textarea.CrQk0SR0.js.map → textarea.4s69xpG3.js.map} +1 -1
- package/dist/chunks/{timeline-item.Cs8JBNAA.js → timeline-item.DOoLkIox.js} +12 -11
- package/dist/chunks/timeline-item.DOoLkIox.js.map +1 -0
- package/dist/chunks/{toast.A5f1_NqV.js → toast.7D23cICy.js} +3 -3
- package/dist/chunks/{toast.A5f1_NqV.js.map → toast.7D23cICy.js.map} +1 -1
- package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.7iAfO6Xx.js} +23 -22
- package/dist/chunks/toggle-button.7iAfO6Xx.js.map +1 -0
- package/dist/chunks/{toggle.BmwlaQon.js → toggle.hoD_i2Ey.js} +2 -2
- package/dist/chunks/{toggle.BmwlaQon.js.map → toggle.hoD_i2Ey.js.map} +1 -1
- package/dist/chunks/{tooltip.DS1ok8gh.js → tooltip.BtfIbhGU.js} +2 -2
- package/dist/chunks/{tooltip.DS1ok8gh.js.map → tooltip.BtfIbhGU.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js → tutorial.vue_vue_type_script_setup_true_lang.DRlP0P1P.js} +9 -8
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.DRlP0P1P.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.9xqNZAmj.js +1446 -0
- package/dist/chunks/use-cached-selected-values.9xqNZAmj.js.map +1 -0
- package/dist/chunks/{warning-filled.tTkVob0l.js → warning-filled.DmHh0nYG.js} +4 -4
- package/dist/chunks/warning-filled.DmHh0nYG.js.map +1 -0
- package/dist/code-snippet.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/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/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +59 -59
- 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 +12 -12
- package/dist/link.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/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.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/styles/bento-dark.css +5 -5
- package/dist/styles/bento-light.css +5 -5
- package/dist/styles/bento.css +5 -5
- package/dist/styles/legacy.css +6 -4
- package/dist/styles/styleguide.css +5 -5
- package/dist/styles/utility.css +2 -2
- 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/web-types.json +1 -1
- package/package.json +5 -6
- package/dist/chunks/alert.Dd2DYCZ1.js.map +0 -1
- package/dist/chunks/checkbox-input.CAYgiRHG.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.g_tcBhFJ.js.map +0 -1
- package/dist/chunks/checkmark-small.BDqUF-Ni.js.map +0 -1
- package/dist/chunks/chevron-left.CYEK2UTr.js.map +0 -1
- package/dist/chunks/chevron-up.Cu9qXgBY.js.map +0 -1
- package/dist/chunks/chip.sG_6gh3Z.js +0 -71
- package/dist/chunks/chip.sG_6gh3Z.js.map +0 -1
- package/dist/chunks/copy.CXCdp5ly.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.CJyARMSZ.js.map +0 -1
- package/dist/chunks/cross-circle-fill.BzSjakuO.js.map +0 -1
- package/dist/chunks/cross-small.Z5EKYRm0.js.map +0 -1
- package/dist/chunks/cross.BZYw4R3N.js.map +0 -1
- package/dist/chunks/data-grid.Duvh6mRu.js.map +0 -1
- package/dist/chunks/date-range-picker.D7BDFoqM.js.map +0 -1
- package/dist/chunks/dialog-page.D_r_CbyD.js.map +0 -1
- package/dist/chunks/dot.cpdFEk6G.js.map +0 -1
- package/dist/chunks/dropdown.CWq-VlFX.js.map +0 -1
- package/dist/chunks/expand.CJ162RaJ.js.map +0 -1
- package/dist/chunks/file-uploader.NbsEgoj1.js.map +0 -1
- package/dist/chunks/filter-bar.DP4SHAQj.js.map +0 -1
- package/dist/chunks/info.DYNe2WnZ.js.map +0 -1
- package/dist/chunks/input-field-password.SSiNunUz.js.map +0 -1
- package/dist/chunks/input-field.DhDfq9Er.js +0 -382
- package/dist/chunks/input-field.DhDfq9Er.js.map +0 -1
- package/dist/chunks/link.ClFi8uSm.js.map +0 -1
- package/dist/chunks/menu.DKCUuV6a.js +0 -698
- package/dist/chunks/menu.DKCUuV6a.js.map +0 -1
- package/dist/chunks/pagination.DdTcv8B6.js.map +0 -1
- package/dist/chunks/payment-method.NguqkTwG.js +0 -103
- package/dist/chunks/payment-method.NguqkTwG.js.map +0 -1
- package/dist/chunks/popover.BHGbUyMF.js.map +0 -1
- package/dist/chunks/popper-container.BvGYgqiE.js.map +0 -1
- package/dist/chunks/refresh.SzRxQ44W.js.map +0 -1
- package/dist/chunks/search-bar.BixBEf58.js +0 -132
- package/dist/chunks/search-bar.BixBEf58.js.map +0 -1
- package/dist/chunks/search.KgjmJMHa.js.map +0 -1
- package/dist/chunks/show.J9zXGWlK.js.map +0 -1
- package/dist/chunks/timeline-item.Cs8JBNAA.js.map +0 -1
- package/dist/chunks/toggle-button.CCgvi7TQ.js.map +0 -1
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.-cMQWbk1.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.D82-YBdB.js +0 -1591
- package/dist/chunks/use-cached-selected-values.D82-YBdB.js.map +0 -1
- package/dist/chunks/warning-filled.tTkVob0l.js.map +0 -1
- /package/dist/assets/{cross.css → main.css} +0 -0
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
import { defineComponent as D, computed as $, resolveComponent as p, createBlock as M, openBlock as d, normalizeClass as X, createSlots as x, withCtx as I, createVNode as O, createCommentVNode as w, createTextVNode as G, toDisplayString as j, resolveDynamicComponent as ie, ref as a, inject as ee, createElementBlock as R, mergeProps as q, toHandlers as ae, renderSlot as F, onMounted as re, Transition as de, createElementVNode as N, withKeys as h, withModifiers as V, Fragment as te, renderList as ne, nextTick as ce, normalizeStyle as oe, provide as me } from "vue";
|
|
2
|
+
import { g as J } from "./generate-uid.NJ8tVoha.js";
|
|
3
|
+
import { a as Y, B as fe } from "./popover.DLyVEjCd.js";
|
|
4
|
+
import { B as se, D as pe } from "./divider.qUOSAbU6.js";
|
|
5
|
+
import { B as ve, u as be } from "./teleport.B1NhF5-O.js";
|
|
6
|
+
import { u as Ce } from "./use-has-slot.B7eQSabc.js";
|
|
7
|
+
import { u as ye } from "./i18n.D9azDLPe.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { _ as T } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
10
|
+
import { a as Ie, C as Z } from "./chevron-left.BF63HtOH.js";
|
|
11
|
+
import { a as z, B as ge } from "./base-button.DdNFlbgH.js";
|
|
12
|
+
import { B as he } from "./typography.DN5eC5ch.js";
|
|
13
|
+
import { B as ke } from "./toggle-button.7iAfO6Xx.js";
|
|
14
|
+
import "../assets/menu.css";
|
|
15
|
+
const Be = D({
|
|
16
|
+
name: "menu-item",
|
|
17
|
+
components: { BaseButton: ge, BentoTypography: he, ChevronRightIcon: Ie },
|
|
18
|
+
props: {
|
|
19
|
+
/**
|
|
20
|
+
* menu-item text that gets displayed as the main label
|
|
21
|
+
*/
|
|
22
|
+
text: {
|
|
23
|
+
type: String,
|
|
24
|
+
required: !0
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* menu-item action that gets executed when the MeniItem is clicked
|
|
28
|
+
*/
|
|
29
|
+
handler: {
|
|
30
|
+
type: Function,
|
|
31
|
+
required: !0
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* menu-item text that gets displayed as the secondary label
|
|
35
|
+
*/
|
|
36
|
+
secondaryText: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: null
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* Optional chevron icon displayed to the right of the menu-item
|
|
42
|
+
*/
|
|
43
|
+
chevron: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !1
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* Optional icon displayed to the left of the menu-item
|
|
49
|
+
*/
|
|
50
|
+
icon: {
|
|
51
|
+
// Types for Vue2 (Object) and Vue3 (Function)
|
|
52
|
+
// TODO: Remove Object when fully migrated to Vue3
|
|
53
|
+
type: [Object, Function],
|
|
54
|
+
default: null
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* Disables menu-item button functionality
|
|
58
|
+
*/
|
|
59
|
+
disabled: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !1
|
|
62
|
+
},
|
|
63
|
+
/**
|
|
64
|
+
* Displays an indent variant od the menu-item
|
|
65
|
+
*/
|
|
66
|
+
indent: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* Displays menu-item button as critical
|
|
72
|
+
*/
|
|
73
|
+
critical: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: !1
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* Renders the text in a bold variant
|
|
79
|
+
*/
|
|
80
|
+
isTitle: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: !1
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
emits: [z.CLICK],
|
|
86
|
+
setup(e, { emit: t }) {
|
|
87
|
+
return {
|
|
88
|
+
// Values
|
|
89
|
+
conditionalClasses: $(() => ({
|
|
90
|
+
"b-menu-item--critical": e.critical,
|
|
91
|
+
"b-menu-item--indent": e.indent
|
|
92
|
+
})),
|
|
93
|
+
// Methods
|
|
94
|
+
onClick: (r) => {
|
|
95
|
+
r.stopPropagation(), e.handler(), t(z.CLICK);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
function Me(e, t, f, s, r, v) {
|
|
101
|
+
const c = p("bento-typography"), l = p("chevron-right-icon"), u = p("base-button");
|
|
102
|
+
return d(), M(u, {
|
|
103
|
+
class: X(["b-menu-item", e.conditionalClasses]),
|
|
104
|
+
role: "menuitem",
|
|
105
|
+
disabled: e.disabled,
|
|
106
|
+
tabindex: "-1",
|
|
107
|
+
onClick: e.onClick
|
|
108
|
+
}, x({
|
|
109
|
+
default: I(() => [
|
|
110
|
+
O(c, {
|
|
111
|
+
el: "span",
|
|
112
|
+
variant: "body",
|
|
113
|
+
stronger: e.isTitle,
|
|
114
|
+
class: "b-menu-item__primary-text"
|
|
115
|
+
}, {
|
|
116
|
+
default: I(() => [
|
|
117
|
+
G(j(e.text), 1)
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["stronger"]),
|
|
121
|
+
e.secondaryText ? (d(), M(c, {
|
|
122
|
+
key: 0,
|
|
123
|
+
el: "span",
|
|
124
|
+
variant: "body",
|
|
125
|
+
class: "b-menu-item__secondary-text"
|
|
126
|
+
}, {
|
|
127
|
+
default: I(() => [
|
|
128
|
+
G(j(e.secondaryText), 1)
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
})) : w("", !0)
|
|
132
|
+
]),
|
|
133
|
+
_: 2
|
|
134
|
+
}, [
|
|
135
|
+
e.icon ? {
|
|
136
|
+
name: "iconLeft",
|
|
137
|
+
fn: I(() => [
|
|
138
|
+
(d(), M(ie(e.icon), {
|
|
139
|
+
class: "b-menu-item__icon-left",
|
|
140
|
+
"aria-hidden": "true"
|
|
141
|
+
}))
|
|
142
|
+
]),
|
|
143
|
+
key: "0"
|
|
144
|
+
} : void 0,
|
|
145
|
+
e.chevron ? {
|
|
146
|
+
name: "iconRight",
|
|
147
|
+
fn: I(() => [
|
|
148
|
+
O(l, { "aria-hidden": "true" })
|
|
149
|
+
]),
|
|
150
|
+
key: "1"
|
|
151
|
+
} : void 0
|
|
152
|
+
]), 1032, ["class", "disabled", "onClick"]);
|
|
153
|
+
}
|
|
154
|
+
const le = /* @__PURE__ */ T(Be, [["render", Me], ["__scopeId", "data-v-9e8afd9c"]]);
|
|
155
|
+
var k = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(k || {});
|
|
156
|
+
const _e = Symbol("menu registering injection key"), $e = {
|
|
157
|
+
name: "bento-menu-list-container"
|
|
158
|
+
}, Se = /* @__PURE__ */ D({
|
|
159
|
+
...$e,
|
|
160
|
+
setup(e) {
|
|
161
|
+
const t = a(), f = a({}), s = ee(
|
|
162
|
+
_e,
|
|
163
|
+
!1
|
|
164
|
+
);
|
|
165
|
+
if (s) {
|
|
166
|
+
const { registerMenuContainerElement: r } = s;
|
|
167
|
+
r(t), f.value = {
|
|
168
|
+
mouseleave: s == null ? void 0 : s.menuMouseLeave
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
return (r, v) => (d(), R("div", q({
|
|
172
|
+
ref_key: "menuListContainerRef",
|
|
173
|
+
ref: t,
|
|
174
|
+
class: "b-menu-list-container",
|
|
175
|
+
"data-testid": "menu-list-container"
|
|
176
|
+
}, ae(f.value, !0)), [
|
|
177
|
+
F(r.$slots, "default", {}, void 0, !0)
|
|
178
|
+
], 16));
|
|
179
|
+
}
|
|
180
|
+
}), ue = /* @__PURE__ */ T(Se, [["__scopeId", "data-v-02a3ca45"]]), U = {
|
|
181
|
+
"en-US": {
|
|
182
|
+
backButton: "Go back",
|
|
183
|
+
menuButton: "Open menu"
|
|
184
|
+
}
|
|
185
|
+
}, Le = D({
|
|
186
|
+
i18n: { messages: U },
|
|
187
|
+
name: "sub-menu-item-list",
|
|
188
|
+
components: { BentoDivider: se, MenuItem: le, MenuListContainer: ue },
|
|
189
|
+
props: {
|
|
190
|
+
items: {
|
|
191
|
+
type: Array,
|
|
192
|
+
required: !0
|
|
193
|
+
},
|
|
194
|
+
title: {
|
|
195
|
+
type: String,
|
|
196
|
+
required: !0
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
emits: [k.CLOSE, k.BACK],
|
|
200
|
+
setup(e, { emit: t }) {
|
|
201
|
+
const f = a(null), s = a(0), r = a(e.items.length), v = () => t(k.CLOSE), c = () => t(k.BACK), l = $(() => {
|
|
202
|
+
var b;
|
|
203
|
+
const i = (b = e.items) == null ? void 0 : b.map((C) => ({
|
|
204
|
+
...C,
|
|
205
|
+
indent: !C.icon,
|
|
206
|
+
isTitle: !1,
|
|
207
|
+
clickHandler: v
|
|
208
|
+
}));
|
|
209
|
+
return [
|
|
210
|
+
{
|
|
211
|
+
text: e.title,
|
|
212
|
+
secondaryText: null,
|
|
213
|
+
critical: !1,
|
|
214
|
+
icon: Z,
|
|
215
|
+
isTitle: !0,
|
|
216
|
+
disabled: !1,
|
|
217
|
+
indent: !1,
|
|
218
|
+
handler: c,
|
|
219
|
+
clickHandler: c,
|
|
220
|
+
addDivider: !0
|
|
221
|
+
},
|
|
222
|
+
...i
|
|
223
|
+
];
|
|
224
|
+
}), u = async () => {
|
|
225
|
+
var i, b, C, g, B;
|
|
226
|
+
(B = (g = (C = (b = (i = f.value) == null ? void 0 : i.children) == null ? void 0 : b[s.value]) == null ? void 0 : C.children) == null ? void 0 : g[0]) == null || B.focus();
|
|
227
|
+
};
|
|
228
|
+
re(async () => {
|
|
229
|
+
setTimeout(() => u(), 150);
|
|
230
|
+
});
|
|
231
|
+
const n = () => {
|
|
232
|
+
s.value > 0 ? (s.value -= 1, l.value[s.value].disabled && n()) : s.value = r.value, u();
|
|
233
|
+
}, o = () => {
|
|
234
|
+
s.value < r.value ? (s.value += 1, l.value[s.value].disabled && o()) : s.value = 0, u();
|
|
235
|
+
};
|
|
236
|
+
return {
|
|
237
|
+
// Enums
|
|
238
|
+
BentoMenuEvent: k,
|
|
239
|
+
// Values
|
|
240
|
+
subMenuItemListRefLocal: f,
|
|
241
|
+
subMenuFocusedIndex: s,
|
|
242
|
+
ChevronLeftIcon: Z,
|
|
243
|
+
computedItems: l,
|
|
244
|
+
// Methods
|
|
245
|
+
closeMenu: v,
|
|
246
|
+
onBackButton: c,
|
|
247
|
+
focusPrevious: n,
|
|
248
|
+
focusNext: o
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
function Oe(e, t, f, s, r, v) {
|
|
253
|
+
const c = p("menu-item"), l = p("bento-divider"), u = p("menu-list-container");
|
|
254
|
+
return d(), M(de, {
|
|
255
|
+
name: "b-sub-menu-item-list__transition",
|
|
256
|
+
appear: ""
|
|
257
|
+
}, {
|
|
258
|
+
default: I(() => [
|
|
259
|
+
O(u, { class: "b-sub-menu-item-list" }, {
|
|
260
|
+
default: I(() => [
|
|
261
|
+
N("ul", {
|
|
262
|
+
ref: "subMenuItemListRefLocal",
|
|
263
|
+
role: "menu",
|
|
264
|
+
class: "b-sub-menu-item-list__list",
|
|
265
|
+
onKeydown: [
|
|
266
|
+
t[0] || (t[0] = h(V((...n) => e.focusNext && e.focusNext(...n), ["stop"]), ["down"])),
|
|
267
|
+
t[1] || (t[1] = h(V((...n) => e.focusPrevious && e.focusPrevious(...n), ["stop"]), ["up"])),
|
|
268
|
+
t[2] || (t[2] = h(V((...n) => e.onBackButton && e.onBackButton(...n), ["stop"]), ["esc"]))
|
|
269
|
+
]
|
|
270
|
+
}, [
|
|
271
|
+
(d(!0), R(te, null, ne(e.computedItems, (n, o) => (d(), R("li", {
|
|
272
|
+
key: `sub-menu-item-list-item-${o}`,
|
|
273
|
+
role: "none"
|
|
274
|
+
}, [
|
|
275
|
+
O(c, {
|
|
276
|
+
text: n.text,
|
|
277
|
+
handler: n.handler,
|
|
278
|
+
"secondary-text": n.secondaryText,
|
|
279
|
+
icon: n.icon,
|
|
280
|
+
"is-title": n.isTitle,
|
|
281
|
+
disabled: n.disabled,
|
|
282
|
+
critical: n.critical,
|
|
283
|
+
indent: n.indent,
|
|
284
|
+
tabindex: o === e.subMenuFocusedIndex ? "0" : "-1",
|
|
285
|
+
onClick: n.clickHandler
|
|
286
|
+
}, null, 8, ["text", "handler", "secondary-text", "icon", "is-title", "disabled", "critical", "indent", "tabindex", "onClick"]),
|
|
287
|
+
n.addDivider ? (d(), M(l, {
|
|
288
|
+
key: 0,
|
|
289
|
+
class: "b-sub-menu-item-list__divider"
|
|
290
|
+
})) : w("", !0)
|
|
291
|
+
]))), 128))
|
|
292
|
+
], 544)
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
})
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
const Re = /* @__PURE__ */ T(Le, [["render", Oe], ["__scopeId", "data-v-621db243"]]), Ee = D({
|
|
301
|
+
name: "menu-item-list",
|
|
302
|
+
components: { BentoDivider: se, MenuItem: le, MenuListContainer: ue, SubMenuItemList: Re },
|
|
303
|
+
props: {
|
|
304
|
+
/**
|
|
305
|
+
* The data to be displayed in the list
|
|
306
|
+
*/
|
|
307
|
+
data: {
|
|
308
|
+
type: Array,
|
|
309
|
+
required: !0
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
* Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.
|
|
313
|
+
*/
|
|
314
|
+
indentItems: {
|
|
315
|
+
type: Boolean,
|
|
316
|
+
default: !1
|
|
317
|
+
},
|
|
318
|
+
/**
|
|
319
|
+
* If set to true, focuses the last item on the list instead of the first. Used for accessibility purposes when the menu is opened with the 'up' arrow key.
|
|
320
|
+
*/
|
|
321
|
+
focusLastElement: {
|
|
322
|
+
type: Boolean,
|
|
323
|
+
default: !1
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
* If set to true, closes the menu when an item is clicked.
|
|
327
|
+
*/
|
|
328
|
+
closeMenuOnItemSelect: {
|
|
329
|
+
type: Boolean,
|
|
330
|
+
default: !0
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
emits: [k.CLOSE, "menu-item-click"],
|
|
334
|
+
setup(e, { emit: t, expose: f }) {
|
|
335
|
+
const s = a(null), r = a(null), v = a(null), c = a(null), l = a(!1), u = a(null), n = a(e.focusLastElement ? e.data.length - 1 : 0), o = a(0), i = a(e.data.length - 1), b = $(() => e.data.some((m) => m.icon)), C = $(() => e.indentItems || b.value ? e.data.map((m) => {
|
|
336
|
+
let y = !1;
|
|
337
|
+
return m.icon || (y = !0), {
|
|
338
|
+
...m,
|
|
339
|
+
// eslint-disable-next-line no-param-reassign
|
|
340
|
+
indent: y
|
|
341
|
+
};
|
|
342
|
+
}) : e.data), g = async () => {
|
|
343
|
+
var m, y, L;
|
|
344
|
+
await ce(), (L = (y = (m = r.value) == null ? void 0 : m.children[n.value]) == null ? void 0 : y.children[0]) == null || L.focus();
|
|
345
|
+
}, B = () => t(k.CLOSE), S = (m, y) => {
|
|
346
|
+
if (m.items) {
|
|
347
|
+
u.value = y, l.value = !0;
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
u.value = y, l.value = !1, !m.skipClose && e.closeMenuOnItemSelect !== !1 && B(), t("menu-item-click");
|
|
351
|
+
}, E = () => {
|
|
352
|
+
n.value > 0 ? (n.value -= 1, C.value[n.value].disabled && E()) : n.value = i.value, g();
|
|
353
|
+
}, P = () => {
|
|
354
|
+
n.value < i.value ? (n.value += 1, C.value[n.value].disabled && P()) : n.value = 0, g();
|
|
355
|
+
}, W = (m, y) => {
|
|
356
|
+
var L;
|
|
357
|
+
(L = m == null ? void 0 : m.items) != null && L.length && (u.value = y, l.value = !0);
|
|
358
|
+
}, H = () => {
|
|
359
|
+
u.value && l.value && (u.value = null, l.value = !1);
|
|
360
|
+
}, A = () => {
|
|
361
|
+
l.value = !1, u.value = null, g();
|
|
362
|
+
};
|
|
363
|
+
f({
|
|
364
|
+
focusItem: g
|
|
365
|
+
});
|
|
366
|
+
const K = $(() => {
|
|
367
|
+
var m, y, L;
|
|
368
|
+
return (L = (y = (m = c.value) == null ? void 0 : m[0]) == null ? void 0 : y.$el) == null ? void 0 : L.offsetHeight;
|
|
369
|
+
}), _ = $(() => l.value ? `${K.value}px` : "");
|
|
370
|
+
return {
|
|
371
|
+
// Values
|
|
372
|
+
menuItemListRef: r,
|
|
373
|
+
menuItemListWrapperRef: v,
|
|
374
|
+
subMenuItemListRef: c,
|
|
375
|
+
menuItemRef: s,
|
|
376
|
+
computedData: C,
|
|
377
|
+
computedHeight: _,
|
|
378
|
+
focusedIndex: n,
|
|
379
|
+
subMenuFocusedIndex: o,
|
|
380
|
+
showSubMenu: l,
|
|
381
|
+
visibleSubMenuIndex: u,
|
|
382
|
+
// Methods
|
|
383
|
+
menuItemClick: S,
|
|
384
|
+
closeMenu: B,
|
|
385
|
+
focusPrevious: E,
|
|
386
|
+
focusNext: P,
|
|
387
|
+
focusRight: W,
|
|
388
|
+
focusLeft: H,
|
|
389
|
+
onBackButton: A
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
}), we = ["onKeydown"];
|
|
393
|
+
function Te(e, t, f, s, r, v) {
|
|
394
|
+
const c = p("menu-item"), l = p("bento-divider"), u = p("sub-menu-item-list"), n = p("menu-list-container");
|
|
395
|
+
return d(), M(n, {
|
|
396
|
+
ref: "menuItemListWrapperRef",
|
|
397
|
+
style: oe({ height: e.computedHeight })
|
|
398
|
+
}, {
|
|
399
|
+
default: I(() => [
|
|
400
|
+
N("ul", {
|
|
401
|
+
ref: "menuItemListRef",
|
|
402
|
+
class: "b-menu-item-list",
|
|
403
|
+
role: "menu",
|
|
404
|
+
onKeydown: [
|
|
405
|
+
t[1] || (t[1] = h((...o) => e.focusNext && e.focusNext(...o), ["down"])),
|
|
406
|
+
t[2] || (t[2] = h((...o) => e.focusPrevious && e.focusPrevious(...o), ["up"])),
|
|
407
|
+
t[3] || (t[3] = h((...o) => e.closeMenu && e.closeMenu(...o), ["esc"])),
|
|
408
|
+
t[4] || (t[4] = h((...o) => e.closeMenu && e.closeMenu(...o), ["tab"]))
|
|
409
|
+
]
|
|
410
|
+
}, [
|
|
411
|
+
(d(!0), R(te, null, ne(e.computedData, (o, i) => {
|
|
412
|
+
var b, C, g, B;
|
|
413
|
+
return d(), R("li", {
|
|
414
|
+
key: `menu-item-${i}`,
|
|
415
|
+
ref_for: !0,
|
|
416
|
+
ref: "menuItemRef",
|
|
417
|
+
class: "b-menu-item-list__item",
|
|
418
|
+
role: "none",
|
|
419
|
+
onKeydown: [
|
|
420
|
+
h((S) => e.focusRight(o, i), ["right"]),
|
|
421
|
+
t[0] || (t[0] = h((S) => e.focusLeft(), ["left"]))
|
|
422
|
+
]
|
|
423
|
+
}, [
|
|
424
|
+
O(c, {
|
|
425
|
+
text: o.text,
|
|
426
|
+
handler: (b = o.items) != null && b.length ? () => null : o.handler,
|
|
427
|
+
"secondary-text": o.secondaryText,
|
|
428
|
+
icon: o.icon,
|
|
429
|
+
chevron: !!((C = o.items) != null && C.length),
|
|
430
|
+
disabled: o.disabled,
|
|
431
|
+
critical: o.critical,
|
|
432
|
+
indent: o.indent,
|
|
433
|
+
tabindex: i === e.subMenuFocusedIndex ? "0" : "-1",
|
|
434
|
+
"aria-haspopup": !!((g = o.items) != null && g.length),
|
|
435
|
+
"aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === i,
|
|
436
|
+
onClick: (S) => e.menuItemClick(o, i)
|
|
437
|
+
}, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
|
|
438
|
+
o.addDivider ? (d(), M(l, {
|
|
439
|
+
key: 0,
|
|
440
|
+
class: "b-menu-item-list__divider"
|
|
441
|
+
})) : w("", !0),
|
|
442
|
+
(B = o.items) != null && B.length && e.showSubMenu && e.visibleSubMenuIndex === i ? (d(), M(u, {
|
|
443
|
+
key: 1,
|
|
444
|
+
ref_for: !0,
|
|
445
|
+
ref: "subMenuItemListRef",
|
|
446
|
+
items: o.items,
|
|
447
|
+
title: o.text,
|
|
448
|
+
onBack: e.onBackButton,
|
|
449
|
+
onClose: e.closeMenu
|
|
450
|
+
}, null, 8, ["items", "title", "onBack", "onClose"])) : w("", !0)
|
|
451
|
+
], 40, we);
|
|
452
|
+
}), 128))
|
|
453
|
+
], 544)
|
|
454
|
+
]),
|
|
455
|
+
_: 1
|
|
456
|
+
}, 8, ["style"]);
|
|
457
|
+
}
|
|
458
|
+
const Ne = /* @__PURE__ */ T(Ee, [["render", Te], ["__scopeId", "data-v-b32aa6e9"]]), De = Symbol("menu inverse style injection key");
|
|
459
|
+
let Q = 0;
|
|
460
|
+
const Pe = {
|
|
461
|
+
beforeCreate() {
|
|
462
|
+
this.uuid = Q.toString(), Q += 1;
|
|
463
|
+
}
|
|
464
|
+
}, Ke = { key: 0 };
|
|
465
|
+
function Fe(e, t, f, s, r, v) {
|
|
466
|
+
return d(), R("svg", q({ role: "img" }, e.$attrs, {
|
|
467
|
+
class: "ui-assets-icons-16",
|
|
468
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
469
|
+
width: "16",
|
|
470
|
+
height: "16",
|
|
471
|
+
fill: "none"
|
|
472
|
+
}), [
|
|
473
|
+
e.$attrs["svg-title"] ? (d(), R("title", Ke, j(e.$attrs["svg-title"]), 1)) : w("", !0),
|
|
474
|
+
t[0] || (t[0] = N("path", {
|
|
475
|
+
fill: "#00112C",
|
|
476
|
+
d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z"
|
|
477
|
+
}, null, -1)),
|
|
478
|
+
t[1] || (t[1] = N("path", {
|
|
479
|
+
fill: "#00112C",
|
|
480
|
+
d: "M8 15C8.29667 15 8.58668 14.912 8.83335 14.7472C9.08003 14.5824 9.27229 14.3481 9.38582 14.074C9.49935 13.7999 9.52906 13.4983 9.47118 13.2074C9.4133 12.9164 9.27044 12.6491 9.06066 12.4393C8.85088 12.2296 8.58361 12.0867 8.29264 12.0288C8.00167 11.9709 7.70006 12.0007 7.42598 12.1142C7.15189 12.2277 6.91762 12.42 6.7528 12.6666C6.58797 12.9133 6.5 13.2033 6.5 13.5C6.5 13.8978 6.65803 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z"
|
|
481
|
+
}, null, -1)),
|
|
482
|
+
t[2] || (t[2] = N("path", {
|
|
483
|
+
fill: "#00112C",
|
|
484
|
+
d: "M8.83335 9.24721C8.58668 9.41203 8.29667 9.5 8 9.5C7.60218 9.5 7.22064 9.34197 6.93934 9.06066C6.65803 8.77936 6.5 8.39783 6.5 8C6.5 7.70333 6.58797 7.41332 6.7528 7.16665C6.91762 6.91997 7.15189 6.72771 7.42598 6.61418C7.70006 6.50065 8.00167 6.47094 8.29264 6.52882C8.58361 6.5867 8.85088 6.72956 9.06066 6.93934C9.27044 7.14912 9.4133 7.41639 9.47118 7.70737C9.52906 7.99834 9.49935 8.29994 9.38582 8.57403C9.27229 8.84811 9.08003 9.08238 8.83335 9.24721Z"
|
|
485
|
+
}, null, -1))
|
|
486
|
+
], 16);
|
|
487
|
+
}
|
|
488
|
+
const We = /* @__PURE__ */ T(Pe, [["render", Fe]]), He = D({
|
|
489
|
+
i18n: { messages: U },
|
|
490
|
+
name: "bento-menu",
|
|
491
|
+
components: { BentoToggleButton: ke, BentoPopover: fe, BentoTeleport: ve, MenuItemList: Ne, OptionsVerticalIcon: We },
|
|
492
|
+
props: {
|
|
493
|
+
/**
|
|
494
|
+
* Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.
|
|
495
|
+
*/
|
|
496
|
+
button: {
|
|
497
|
+
type: Object,
|
|
498
|
+
default: () => ({
|
|
499
|
+
variant: "secondary"
|
|
500
|
+
})
|
|
501
|
+
},
|
|
502
|
+
/**
|
|
503
|
+
* Controls if the menu should close when an item is clicked.
|
|
504
|
+
* Defaults to `true`.
|
|
505
|
+
*/
|
|
506
|
+
closeMenuOnItemSelect: {
|
|
507
|
+
type: Boolean,
|
|
508
|
+
default: !0
|
|
509
|
+
},
|
|
510
|
+
/**
|
|
511
|
+
* The data to be displayed in the list
|
|
512
|
+
*/
|
|
513
|
+
data: {
|
|
514
|
+
type: Array,
|
|
515
|
+
required: !0
|
|
516
|
+
},
|
|
517
|
+
/**
|
|
518
|
+
* The position of where the menu should open.
|
|
519
|
+
*/
|
|
520
|
+
menuPosition: {
|
|
521
|
+
type: String,
|
|
522
|
+
default: Y.BOTTOM_START,
|
|
523
|
+
validator: (e) => Object.values(Y).includes(e)
|
|
524
|
+
},
|
|
525
|
+
/**
|
|
526
|
+
* Instructs the menu popover to be visible outside of the containing container.
|
|
527
|
+
* @see {@link https://floating-ui.com/docs/usefloating#strategy}
|
|
528
|
+
*/
|
|
529
|
+
menuFixedPositioning: {
|
|
530
|
+
type: Boolean,
|
|
531
|
+
default: !1
|
|
532
|
+
},
|
|
533
|
+
/**
|
|
534
|
+
* Sets a custom width for the menu popover.
|
|
535
|
+
*/
|
|
536
|
+
menuWidth: {
|
|
537
|
+
type: Number,
|
|
538
|
+
default: null
|
|
539
|
+
},
|
|
540
|
+
/**
|
|
541
|
+
* Returns focus to the menu button after popover is closed.
|
|
542
|
+
* Disable if focus management is delegated to the parent component.
|
|
543
|
+
* Defaults to `true`.
|
|
544
|
+
*/
|
|
545
|
+
revertFocusToButton: {
|
|
546
|
+
type: Boolean,
|
|
547
|
+
default: !0
|
|
548
|
+
},
|
|
549
|
+
/**
|
|
550
|
+
* Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node
|
|
551
|
+
* (or `dialog` if popover is inside a dialog).
|
|
552
|
+
*/
|
|
553
|
+
teleport: {
|
|
554
|
+
type: Boolean,
|
|
555
|
+
default: !1
|
|
556
|
+
},
|
|
557
|
+
/**
|
|
558
|
+
* Can be used to set the inner teleport component to render the menu's popover in the root `body` DOM node
|
|
559
|
+
* (or `dialog` if popover is inside a dialog).
|
|
560
|
+
*
|
|
561
|
+
* @see {@link OnClickOutsideOptions}
|
|
562
|
+
*/
|
|
563
|
+
closeOnClickOutsideOptions: {
|
|
564
|
+
type: Object,
|
|
565
|
+
default: void 0
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
emits: [k.CLOSE, k.OPEN, "menu-item-click", "click-outside"],
|
|
569
|
+
setup(e, { emit: t, expose: f, slots: s }) {
|
|
570
|
+
var K;
|
|
571
|
+
const { t: r } = ye({ messages: U }), v = a(null), c = a(null), l = a(!1), u = a(!1), n = a(null), o = J("menu"), i = J("menu-popover"), b = ee(De, a(!1));
|
|
572
|
+
me(pe, b);
|
|
573
|
+
const C = $(() => ({
|
|
574
|
+
"b-menu--inverse": b.value
|
|
575
|
+
})), g = $(() => e.menuWidth ? { width: `${e.menuWidth}px` } : null), B = $(() => {
|
|
576
|
+
if (e != null && e.button)
|
|
577
|
+
return {
|
|
578
|
+
variant: "secondary",
|
|
579
|
+
...e.button
|
|
580
|
+
};
|
|
581
|
+
}), S = () => {
|
|
582
|
+
l.value = !0, t(k.OPEN);
|
|
583
|
+
}, E = (_ = e.revertFocusToButton) => {
|
|
584
|
+
l.value && (l.value = !1, _ && v.value.$el.focus(), t(k.CLOSE));
|
|
585
|
+
}, P = (_) => {
|
|
586
|
+
_.stopPropagation(), l.value ? E() : S();
|
|
587
|
+
}, W = (_) => {
|
|
588
|
+
_.preventDefault(), u.value = !1, S();
|
|
589
|
+
}, H = (_) => {
|
|
590
|
+
_.preventDefault(), u.value = !0, S();
|
|
591
|
+
}, A = () => {
|
|
592
|
+
t("menu-item-click");
|
|
593
|
+
};
|
|
594
|
+
return be(
|
|
595
|
+
n,
|
|
596
|
+
() => {
|
|
597
|
+
E(), t("click-outside");
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
...e.closeOnClickOutsideOptions,
|
|
601
|
+
ignore: [v, ...((K = e.closeOnClickOutsideOptions) == null ? void 0 : K.ignore) ?? []]
|
|
602
|
+
}
|
|
603
|
+
), f({
|
|
604
|
+
/**
|
|
605
|
+
* Control to enable programmatic closing of the menu
|
|
606
|
+
*/
|
|
607
|
+
closeMenu: E
|
|
608
|
+
}), {
|
|
609
|
+
// Refs
|
|
610
|
+
popoverRef: n,
|
|
611
|
+
menuButtonRef: v,
|
|
612
|
+
menuItemListRef: c,
|
|
613
|
+
// Values
|
|
614
|
+
menuId: o,
|
|
615
|
+
popoverId: i,
|
|
616
|
+
showMenu: l,
|
|
617
|
+
computedButtonPropsWithDefaults: B,
|
|
618
|
+
computedMenuWidth: g,
|
|
619
|
+
isLastElementFocused: u,
|
|
620
|
+
// Classes
|
|
621
|
+
computedClasses: C,
|
|
622
|
+
isInverseColorSet: b,
|
|
623
|
+
// Methods
|
|
624
|
+
hasSlot: Ce(s),
|
|
625
|
+
onKeyDown: W,
|
|
626
|
+
onKeyUp: H,
|
|
627
|
+
closeMenu: E,
|
|
628
|
+
menuItemClick: A,
|
|
629
|
+
toggleShowMenu: P,
|
|
630
|
+
// Translations
|
|
631
|
+
t: r
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
function Ae(e, t, f, s, r, v) {
|
|
636
|
+
const c = p("options-vertical-icon"), l = p("bento-toggle-button"), u = p("menu-item-list"), n = p("bento-popover"), o = p("bento-teleport");
|
|
637
|
+
return d(), R("div", {
|
|
638
|
+
class: X([e.computedClasses, "b-menu"]),
|
|
639
|
+
"data-testid": "menu",
|
|
640
|
+
onKeydown: [
|
|
641
|
+
t[0] || (t[0] = h((...i) => e.onKeyDown && e.onKeyDown(...i), ["down"])),
|
|
642
|
+
t[1] || (t[1] = h((...i) => e.onKeyUp && e.onKeyUp(...i), ["up"])),
|
|
643
|
+
t[2] || (t[2] = h((i) => e.closeMenu(), ["esc"]))
|
|
644
|
+
]
|
|
645
|
+
}, [
|
|
646
|
+
O(l, q({
|
|
647
|
+
ref: "menuButtonRef",
|
|
648
|
+
"aria-haspopup": "true"
|
|
649
|
+
}, e.computedButtonPropsWithDefaults, {
|
|
650
|
+
"aria-controls": e.showMenu ? e.menuId : null,
|
|
651
|
+
toggled: e.showMenu,
|
|
652
|
+
inverse: e.isInverseColorSet,
|
|
653
|
+
onClick: e.toggleShowMenu
|
|
654
|
+
}), x({ _: 2 }, [
|
|
655
|
+
!e.hasSlot("default") || e.hasSlot("iconLeft") ? {
|
|
656
|
+
name: "iconLeft",
|
|
657
|
+
fn: I(() => [
|
|
658
|
+
F(e.$slots, "iconLeft", {}, () => [
|
|
659
|
+
O(c, {
|
|
660
|
+
title: e.t("menuButton")
|
|
661
|
+
}, null, 8, ["title"])
|
|
662
|
+
], !0)
|
|
663
|
+
]),
|
|
664
|
+
key: "0"
|
|
665
|
+
} : void 0,
|
|
666
|
+
e.hasSlot("default") ? {
|
|
667
|
+
name: "default",
|
|
668
|
+
fn: I(() => [
|
|
669
|
+
F(e.$slots, "default", {}, void 0, !0)
|
|
670
|
+
]),
|
|
671
|
+
key: "1"
|
|
672
|
+
} : void 0,
|
|
673
|
+
e.hasSlot("iconRight") ? {
|
|
674
|
+
name: "iconRight",
|
|
675
|
+
fn: I(() => [
|
|
676
|
+
F(e.$slots, "iconRight", {}, void 0, !0)
|
|
677
|
+
]),
|
|
678
|
+
key: "2"
|
|
679
|
+
} : void 0
|
|
680
|
+
]), 1040, ["aria-controls", "toggled", "inverse", "onClick"]),
|
|
681
|
+
e.menuButtonRef ? (d(), M(o, {
|
|
682
|
+
key: 0,
|
|
683
|
+
disabled: !e.teleport
|
|
684
|
+
}, {
|
|
685
|
+
default: I(() => [
|
|
686
|
+
e.menuButtonRef ? (d(), M(n, {
|
|
687
|
+
key: 0,
|
|
688
|
+
id: e.menuId,
|
|
689
|
+
ref: "popoverRef",
|
|
690
|
+
role: null,
|
|
691
|
+
open: e.showMenu,
|
|
692
|
+
class: "b-menu__popover",
|
|
693
|
+
style: oe(e.computedMenuWidth),
|
|
694
|
+
"target-element": e.menuButtonRef,
|
|
695
|
+
position: e.menuPosition,
|
|
696
|
+
"fixed-positioning": e.menuFixedPositioning,
|
|
697
|
+
"fallback-position": [
|
|
698
|
+
"bottom-start",
|
|
699
|
+
"bottom-end",
|
|
700
|
+
"top-start",
|
|
701
|
+
"top-end",
|
|
702
|
+
"right-start",
|
|
703
|
+
"right-end",
|
|
704
|
+
"left-start",
|
|
705
|
+
"left-end"
|
|
706
|
+
],
|
|
707
|
+
teleport: e.teleport,
|
|
708
|
+
"without-space": ""
|
|
709
|
+
}, {
|
|
710
|
+
default: I(() => [
|
|
711
|
+
O(u, {
|
|
712
|
+
ref: "menuItemListRef",
|
|
713
|
+
"close-menu-on-item-select": e.closeMenuOnItemSelect,
|
|
714
|
+
data: e.data,
|
|
715
|
+
"focus-last-element": e.isLastElementFocused,
|
|
716
|
+
onClose: e.closeMenu,
|
|
717
|
+
onMenuItemClick: e.menuItemClick
|
|
718
|
+
}, null, 8, ["close-menu-on-item-select", "data", "focus-last-element", "onClose", "onMenuItemClick"])
|
|
719
|
+
]),
|
|
720
|
+
_: 1
|
|
721
|
+
}, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) : w("", !0)
|
|
722
|
+
]),
|
|
723
|
+
_: 1
|
|
724
|
+
}, 8, ["disabled"])) : w("", !0)
|
|
725
|
+
], 34);
|
|
726
|
+
}
|
|
727
|
+
const tt = /* @__PURE__ */ T(He, [["render", Ae], ["__scopeId", "data-v-e9fc2e12"]]);
|
|
728
|
+
export {
|
|
729
|
+
tt as B,
|
|
730
|
+
_e as D,
|
|
731
|
+
De as M,
|
|
732
|
+
We as O,
|
|
733
|
+
k as a
|
|
734
|
+
};
|
|
735
|
+
//# sourceMappingURL=menu.ZE0cTcKL.js.map
|