@adyen/bento-vue2 1.102.0 → 1.103.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 +20 -3
- 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/anchor-scroller.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.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/empty-state.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/input-field-password.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/table-of-contents.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/avatar.js +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.C0va5Mbv.js → accordion-item.CrVVFIHa.js} +16 -49
- package/dist/chunks/{accordion-item.C0va5Mbv.js.map → accordion-item.CrVVFIHa.js.map} +1 -1
- package/dist/chunks/{action-bar.-kzjjAuX.js → action-bar.BC1fWyHX.js} +18 -150
- package/dist/chunks/{action-bar.-kzjjAuX.js.map → action-bar.BC1fWyHX.js.map} +1 -1
- package/dist/chunks/{ai-button.ChLXOu7p.js → ai-button.CP6Bu7PB.js} +3 -3
- package/dist/chunks/{ai-button.ChLXOu7p.js.map → ai-button.CP6Bu7PB.js.map} +1 -1
- package/dist/chunks/{ai-tag.DhBjifex.js → ai-tag.wYWc7yOx.js} +16 -49
- package/dist/chunks/{ai-tag.DhBjifex.js.map → ai-tag.wYWc7yOx.js.map} +1 -1
- package/dist/chunks/{alert.CDP-LTh5.js → alert.Dj57zB88.js} +15 -81
- package/dist/chunks/{alert.CDP-LTh5.js.map → alert.Dj57zB88.js.map} +1 -1
- package/dist/chunks/anchor-scroller.Bhgy748g.js +120 -0
- package/dist/chunks/anchor-scroller.Bhgy748g.js.map +1 -0
- package/dist/chunks/{avatar.rwWPYJnt.js → avatar.D__jLgjI.js} +2 -2
- package/dist/chunks/{avatar.rwWPYJnt.js.map → avatar.D__jLgjI.js.map} +1 -1
- package/dist/chunks/{base-button.BPRPrO0p.js → base-button.D5C9VIYP.js} +20 -23
- package/dist/chunks/{base-button.BPRPrO0p.js.map → base-button.D5C9VIYP.js.map} +1 -1
- package/dist/chunks/{base-modal.BagJ8weI.js → base-modal.DlD_Lj4Y.js} +100 -141
- package/dist/chunks/{base-modal.BagJ8weI.js.map → base-modal.DlD_Lj4Y.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.CTgggEw2.js +77 -0
- package/dist/chunks/{button-actions-with-menu.DNYoFmV4.js.map → button-actions-with-menu.CTgggEw2.js.map} +1 -1
- package/dist/chunks/{button-actions.Dpbx0xf3.js → button-actions.CxX7lK7z.js} +362 -442
- package/dist/chunks/{button-actions.Dpbx0xf3.js.map → button-actions.CxX7lK7z.js.map} +1 -1
- package/dist/chunks/{button.CKS_V3p5.js → button.C4kKejsg.js} +34 -37
- package/dist/chunks/{button.CKS_V3p5.js.map → button.C4kKejsg.js.map} +1 -1
- package/dist/chunks/calendar.BoFWdxN7.js +1143 -0
- package/dist/chunks/{calendar.CvHJ3Geq.js.map → calendar.BoFWdxN7.js.map} +1 -1
- package/dist/chunks/{card.DqMECGcj.js → card.B70qRHOi.js} +34 -70
- package/dist/chunks/{card.DqMECGcj.js.map → card.B70qRHOi.js.map} +1 -1
- package/dist/chunks/{checkbox-group.YnXz1Hl2.js → checkbox-group.D1zzKsdi.js} +6 -6
- package/dist/chunks/{checkbox-group.YnXz1Hl2.js.map → checkbox-group.D1zzKsdi.js.map} +1 -1
- package/dist/chunks/{checkbox-input.08E9BNeF.js → checkbox-input.kfxcyjfd.js} +28 -31
- package/dist/chunks/{checkbox-input.08E9BNeF.js.map → checkbox-input.kfxcyjfd.js.map} +1 -1
- package/dist/chunks/{checkbox.BUc2332d.js → checkbox.Ca0mu2lE.js} +58 -91
- package/dist/chunks/{checkbox.BUc2332d.js.map → checkbox.Ca0mu2lE.js.map} +1 -1
- package/dist/chunks/{chip.DHmRHsL2.js → chip.wgEnbEPw.js} +16 -38
- package/dist/chunks/{chip.DHmRHsL2.js.map → chip.wgEnbEPw.js.map} +1 -1
- package/dist/chunks/click-outside.B0whuTUU.js +20 -0
- package/dist/chunks/{click-outside.BG01Sm0A.js.map → click-outside.B0whuTUU.js.map} +1 -1
- package/dist/chunks/{code-snippet.Cha3wHUL.js → code-snippet.BglbQWRB.js} +19 -74
- package/dist/chunks/{code-snippet.Cha3wHUL.js.map → code-snippet.BglbQWRB.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.DyOJDyZZ.js +8 -0
- package/dist/chunks/{constructNow.CK0ryPil.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
- package/dist/chunks/{controls-group.BomXFNvi.js → controls-group.DPLAJjbv.js} +3 -3
- package/dist/chunks/{controls-group.BomXFNvi.js.map → controls-group.DPLAJjbv.js.map} +1 -1
- package/dist/chunks/{copy.BlyhTDSU.js → copy.CsKQJlen.js} +16 -60
- package/dist/chunks/{copy.BlyhTDSU.js.map → copy.CsKQJlen.js.map} +1 -1
- package/dist/chunks/{country.DySY9sbA.js → country.D8ncVjcm.js} +5 -5
- package/dist/chunks/{country.DySY9sbA.js.map → country.D8ncVjcm.js.map} +1 -1
- package/dist/chunks/country.types.BUW49nQx.js +27 -0
- package/dist/chunks/country.types.BUW49nQx.js.map +1 -0
- package/dist/chunks/currency.POwX-Trj.js +124 -0
- package/dist/chunks/{currency.Dvy9Qjjf.js.map → currency.POwX-Trj.js.map} +1 -1
- package/dist/chunks/dashboard-section.Bmu65OHg.js +98 -0
- package/dist/chunks/{dashboard-section.D2yqhERq.js.map → dashboard-section.Bmu65OHg.js.map} +1 -1
- package/dist/chunks/{dashed-underline.ByPcIHNe.js → dashed-underline.CbzCYKrk.js} +11 -12
- package/dist/chunks/{dashed-underline.ByPcIHNe.js.map → dashed-underline.CbzCYKrk.js.map} +1 -1
- package/dist/chunks/data-grid-template.BvBHJ0sH.js +102 -0
- package/dist/chunks/{data-grid-template.Ifn423Ot.js.map → data-grid-template.BvBHJ0sH.js.map} +1 -1
- package/dist/chunks/data-grid.DPh8BSnM.js +3266 -0
- package/dist/chunks/{data-grid.BDXQ_kKQ.js.map → data-grid.DPh8BSnM.js.map} +1 -1
- package/dist/chunks/date-picker.DutUBQbH.js +183 -0
- package/dist/chunks/{date-picker.CXZfCxwP.js.map → date-picker.DutUBQbH.js.map} +1 -1
- package/dist/chunks/date-range-picker.5bvgs49h.js +924 -0
- package/dist/chunks/{date-range-picker.BzVQsYk4.js.map → date-range-picker.5bvgs49h.js.map} +1 -1
- package/dist/chunks/date-time-picker.DUWWGlOX.js +127 -0
- package/dist/chunks/{date-time-picker.DaLATfJp.js.map → date-time-picker.DUWWGlOX.js.map} +1 -1
- package/dist/chunks/{date.C1HnIyOv.js → date.CPo8t1n9.js} +25 -25
- package/dist/chunks/{date.C1HnIyOv.js.map → date.CPo8t1n9.js.map} +1 -1
- package/dist/chunks/{de.pvjpUJ1o.js → de.ctR_lBqr.js} +18 -18
- package/dist/chunks/{de.pvjpUJ1o.js.map → de.ctR_lBqr.js.map} +1 -1
- package/dist/chunks/{dialog-page.B_LwIWgK.js → dialog-page.CPorblJc.js} +16 -38
- package/dist/chunks/{dialog-page.B_LwIWgK.js.map → dialog-page.CPorblJc.js.map} +1 -1
- package/dist/chunks/differenceInMonths.yz4Dfe-b.js +44 -0
- package/dist/chunks/{differenceInMonths.CpwVtHZX.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
- package/dist/chunks/{directive.BBWhsNtO.js → directive.D1-d-C2K.js} +2 -2
- package/dist/chunks/{directive.BBWhsNtO.js.map → directive.D1-d-C2K.js.map} +1 -1
- package/dist/chunks/{draggable-handle.kBP4prVO.js → draggable-handle.g2BFN3G1.js} +18 -114
- package/dist/chunks/{draggable-handle.kBP4prVO.js.map → draggable-handle.g2BFN3G1.js.map} +1 -1
- package/dist/chunks/draggable.iIsQLiOa.js +168 -0
- package/dist/chunks/{draggable.rTa1jcHI.js.map → draggable.iIsQLiOa.js.map} +1 -1
- package/dist/chunks/{drawer.DVJxDGw3.js → drawer.CnxX1zZ6.js} +14 -36
- package/dist/chunks/{drawer.DVJxDGw3.js.map → drawer.CnxX1zZ6.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CaLA2NLd.js → dropdown-tag.BFnfCah8.js} +77 -81
- package/dist/chunks/{dropdown-tag.CaLA2NLd.js.map → dropdown-tag.BFnfCah8.js.map} +1 -1
- package/dist/chunks/{dropdown.DIqgVVXB.js → dropdown.Ce2P9MZ-.js} +1131 -1466
- package/dist/chunks/{dropdown.DIqgVVXB.js.map → dropdown.Ce2P9MZ-.js.map} +1 -1
- package/dist/chunks/empty-state.fziM-yAC.js +102 -0
- package/dist/chunks/empty-state.fziM-yAC.js.map +1 -0
- package/dist/chunks/{en-GB.-Q7Oq-nY.js → en-GB.BsQNm5GT.js} +2 -2
- package/dist/chunks/{en-GB.-Q7Oq-nY.js.map → en-GB.BsQNm5GT.js.map} +1 -1
- package/dist/chunks/{en-US.BK5uiAND.js → en-US.BR6y7foR.js} +30 -30
- package/dist/chunks/{en-US.BK5uiAND.js.map → en-US.BR6y7foR.js.map} +1 -1
- package/dist/chunks/{error-message.Hqp_VvD3.js → error-message.BEHBfjmn.js} +14 -36
- package/dist/chunks/{error-message.Hqp_VvD3.js.map → error-message.BEHBfjmn.js.map} +1 -1
- package/dist/chunks/{es.2H4LvTyV.js → es.DxqH-QhP.js} +14 -14
- package/dist/chunks/{es.2H4LvTyV.js.map → es.DxqH-QhP.js.map} +1 -1
- package/dist/chunks/{field-label.DjJ7wdFi.js → field-label.CgdTst2l.js} +15 -37
- package/dist/chunks/{field-label.DjJ7wdFi.js.map → field-label.CgdTst2l.js.map} +1 -1
- package/dist/chunks/{file-uploader.2rIfQ2jb.js → file-uploader.BG89SLkG.js} +317 -630
- package/dist/chunks/{file-uploader.2rIfQ2jb.js.map → file-uploader.BG89SLkG.js.map} +1 -1
- package/dist/chunks/filter-bar.BMO8wTzb.js +3087 -0
- package/dist/chunks/{filter-bar.qlViDZPY.js.map → filter-bar.BMO8wTzb.js.map} +1 -1
- package/dist/chunks/fixed-scroller.oObE3f7m.js +117 -0
- package/dist/chunks/{fixed-scroller.04EUUgD_.js.map → fixed-scroller.oObE3f7m.js.map} +1 -1
- package/dist/chunks/{focus-trap.oRKjDFzf.js → focus-trap.l-wwtCHi.js} +69 -85
- package/dist/chunks/{focus-trap.oRKjDFzf.js.map → focus-trap.l-wwtCHi.js.map} +1 -1
- package/dist/chunks/{footer-actions.DXyJtVip.js → footer-actions.Dn9KYoqB.js} +4 -4
- package/dist/chunks/{footer-actions.DXyJtVip.js.map → footer-actions.Dn9KYoqB.js.map} +1 -1
- package/dist/chunks/{form-layout-group.DnjoLZZM.js → form-layout-group.C_0b8u-g.js} +2 -2
- package/dist/chunks/{form-layout-group.DnjoLZZM.js.map → form-layout-group.C_0b8u-g.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Bt5bP9r3.js → form-layout-title.YhZCVtoc.js} +15 -37
- package/dist/chunks/{form-layout-title.Bt5bP9r3.js.map → form-layout-title.YhZCVtoc.js.map} +1 -1
- package/dist/chunks/{fr.Cu0IIfBP.js → fr.DJtn8ron.js} +16 -16
- package/dist/chunks/{fr.Cu0IIfBP.js.map → fr.DJtn8ron.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.DM_NdrUC.js +6 -0
- package/dist/chunks/{get-slot-text.Bjb9dTSV.js.map → get-slot-text.DM_NdrUC.js.map} +1 -1
- package/dist/chunks/{grid-layout.1aIiz2N_.js → grid-layout.BeCrjPgT.js} +16 -17
- package/dist/chunks/{grid-layout.1aIiz2N_.js.map → grid-layout.BeCrjPgT.js.map} +1 -1
- package/dist/chunks/header-meta.mDdMmFUA.js +206 -0
- package/dist/chunks/{header-meta.CCQVPDU8.js.map → header-meta.mDdMmFUA.js.map} +1 -1
- package/dist/chunks/{header-with-views.CEU6WrV9.js → header-with-views.Dp6SyiPu.js} +791 -1270
- package/dist/chunks/{header-with-views.CEU6WrV9.js.map → header-with-views.Dp6SyiPu.js.map} +1 -1
- package/dist/chunks/{header.BoNOTATn.js → header.DUAxdw_d.js} +4 -4
- package/dist/chunks/{header.BoNOTATn.js.map → header.DUAxdw_d.js.map} +1 -1
- package/dist/chunks/{index.C7m7gI5w.js → index.CL3TXc0a.js} +154 -160
- package/dist/chunks/{index.C7m7gI5w.js.map → index.CL3TXc0a.js.map} +1 -1
- package/dist/chunks/{index.B6WW_F-J.js → index.CPOlyau9.js} +5 -5
- package/dist/chunks/index.CPOlyau9.js.map +1 -0
- package/dist/chunks/{info-icon.BnLYUTzI.js → info-icon.BRnbXunj.js} +3 -3
- package/dist/chunks/{info-icon.BnLYUTzI.js.map → info-icon.BRnbXunj.js.map} +1 -1
- package/dist/chunks/input-field-password.C9_o6Kg2.js +230 -0
- package/dist/chunks/input-field-password.C9_o6Kg2.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.CPjH0EVF.js → input-field-phone-number.zRjd8HPi.js} +724 -756
- package/dist/chunks/{input-field-phone-number.CPjH0EVF.js.map → input-field-phone-number.zRjd8HPi.js.map} +1 -1
- package/dist/chunks/{input-field.BEV5lhwO.js → input-field.BTt1ORWU.js} +22 -58
- package/dist/chunks/{input-field.BEV5lhwO.js.map → input-field.BTt1ORWU.js.map} +1 -1
- package/dist/chunks/{input-time.En4O4DRD.js → input-time.BfJIDgaH.js} +15 -48
- package/dist/chunks/{input-time.En4O4DRD.js.map → input-time.BfJIDgaH.js.map} +1 -1
- package/dist/chunks/{inspector-page.OKPf0I4k.js → inspector-page.i8bVjo9U.js} +4 -4
- package/dist/chunks/{inspector-page.OKPf0I4k.js.map → inspector-page.i8bVjo9U.js.map} +1 -1
- package/dist/chunks/{inspector.DoQPHzCc.js → inspector.Aet0jTC2.js} +39 -106
- package/dist/chunks/{inspector.DoQPHzCc.js.map → inspector.Aet0jTC2.js.map} +1 -1
- package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
- package/dist/chunks/{isSameWeek.TrpUOIn5.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
- package/dist/chunks/{it.B65snrJA.js → it.keS7oN5l.js} +8 -8
- package/dist/chunks/{it.B65snrJA.js.map → it.keS7oN5l.js.map} +1 -1
- package/dist/chunks/{ja.xGVfFSzL.js → ja.cLwacUE6.js} +27 -27
- package/dist/chunks/{ja.xGVfFSzL.js.map → ja.cLwacUE6.js.map} +1 -1
- package/dist/chunks/{layout-row.CPFK9Bg7.js → layout-row.HslYnPgn.js} +34 -35
- package/dist/chunks/{layout-row.CPFK9Bg7.js.map → layout-row.HslYnPgn.js.map} +1 -1
- package/dist/chunks/{link.Cejg8jB6.js → link.CscSbaXa.js} +15 -37
- package/dist/chunks/{link.Cejg8jB6.js.map → link.CscSbaXa.js.map} +1 -1
- package/dist/chunks/list-item.Cngxa9qN.js +166 -0
- package/dist/chunks/{list-item.BiJMHR7b.js.map → list-item.Cngxa9qN.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.DnvECZQC.js → listbox-option-tag.BaoiH-Ku.js} +3 -3
- package/dist/chunks/{listbox-option-tag.DnvECZQC.js.map → listbox-option-tag.BaoiH-Ku.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Bn8MzG6Z.js → modal-fullscreen.Cg1Q6ERf.js} +64 -93
- package/dist/chunks/{modal-fullscreen.Bn8MzG6Z.js.map → modal-fullscreen.Cg1Q6ERf.js.map} +1 -1
- package/dist/chunks/{modal.CClQItuJ.js → modal.u-t1CvBr.js} +81 -105
- package/dist/chunks/{modal.CClQItuJ.js.map → modal.u-t1CvBr.js.map} +1 -1
- package/dist/chunks/{navigation-menu-group.p1-x06nS.js → navigation-menu-group.gNMP4tW4.js} +80 -129
- package/dist/chunks/{navigation-menu-group.p1-x06nS.js.map → navigation-menu-group.gNMP4tW4.js.map} +1 -1
- package/dist/chunks/{on-click-outside.Cy1eFULD.js → on-click-outside.BgIzQ2G1.js} +32 -33
- package/dist/chunks/{on-click-outside.Cy1eFULD.js.map → on-click-outside.BgIzQ2G1.js.map} +1 -1
- package/dist/chunks/{pagination.CZVdaeqE.js → pagination.D81XgMQ7.js} +73 -192
- package/dist/chunks/pagination.D81XgMQ7.js.map +1 -0
- package/dist/chunks/{payment-method.B3CkgsAY.js → payment-method.Clm5dEYh.js} +2 -2
- package/dist/chunks/{payment-method.B3CkgsAY.js.map → payment-method.Clm5dEYh.js.map} +1 -1
- package/dist/chunks/popover.types.H5Y0rC1r.js +6 -0
- package/dist/chunks/{popover.types.BfnJIpII.js.map → popover.types.H5Y0rC1r.js.map} +1 -1
- package/dist/chunks/{popper-container.Cb9wuFId.js → popper-container.D08eTt4B.js} +245 -252
- package/dist/chunks/{popper-container.Cb9wuFId.js.map → popper-container.D08eTt4B.js.map} +1 -1
- package/dist/chunks/{promo-banner.DZ0gerRx.js → promo-banner.BX47zMKh.js} +17 -39
- package/dist/chunks/{promo-banner.DZ0gerRx.js.map → promo-banner.BX47zMKh.js.map} +1 -1
- package/dist/chunks/{pt-BR.D9FuAQZm.js → pt-BR.ChPOra5s.js} +14 -14
- package/dist/chunks/{pt-BR.D9FuAQZm.js.map → pt-BR.ChPOra5s.js.map} +1 -1
- package/dist/chunks/{radio-group.DUW2dya4.js → radio-group.Dtx5hOkQ.js} +23 -23
- package/dist/chunks/{radio-group.DUW2dya4.js.map → radio-group.Dtx5hOkQ.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.CuCPLzUh.js → rich-text-editor.CmVsFJjh.js} +1364 -1416
- package/dist/chunks/{rich-text-editor.CuCPLzUh.js.map → rich-text-editor.CmVsFJjh.js.map} +1 -1
- package/dist/chunks/scroll-to-section.DhW8SFy0.js +101 -0
- package/dist/chunks/scroll-to-section.DhW8SFy0.js.map +1 -0
- package/dist/chunks/{search-bar.8iDkgmjw.js → search-bar.CRfYCmkl.js} +15 -48
- package/dist/chunks/{search-bar.8iDkgmjw.js.map → search-bar.CRfYCmkl.js.map} +1 -1
- package/dist/chunks/secondary-nav.B1Tj7MAA.js +192 -0
- package/dist/chunks/{secondary-nav.CmvSHxvS.js.map → secondary-nav.B1Tj7MAA.js.map} +1 -1
- package/dist/chunks/{segmented-control.Bkp2Y95s.js → segmented-control.CBc-wx0m.js} +44 -48
- package/dist/chunks/{segmented-control.Bkp2Y95s.js.map → segmented-control.CBc-wx0m.js.map} +1 -1
- package/dist/chunks/{selection-card-group.EGigQJOW.js → selection-card-group.BaK3Rt4K.js} +91 -96
- package/dist/chunks/{selection-card-group.EGigQJOW.js.map → selection-card-group.BaK3Rt4K.js.map} +1 -1
- package/dist/chunks/set-time-in-date.BVfkl8K8.js +27 -0
- package/dist/chunks/{set-time-in-date.CU7HeZLY.js.map → set-time-in-date.BVfkl8K8.js.map} +1 -1
- package/dist/chunks/{sidepanel.yB7YuzVt.js → sidepanel.DeIREn9l.js} +55 -78
- package/dist/chunks/{sidepanel.yB7YuzVt.js.map → sidepanel.DeIREn9l.js.map} +1 -1
- package/dist/chunks/startOfWeek.muMEhS7U.js +9 -0
- package/dist/chunks/{startOfWeek.Br5KM4z_.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
- package/dist/chunks/{status.CKb07vxI.js → status.DJ1Dfh5s.js} +2 -2
- package/dist/chunks/{status.CKb07vxI.js.map → status.DJ1Dfh5s.js.map} +1 -1
- package/dist/chunks/step.DfI11Din.js +221 -0
- package/dist/chunks/{step.CIfxl8Wm.js.map → step.DfI11Din.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Cnv4Pw5n.js → structured-list-item._7YG2L3a.js} +18 -40
- package/dist/chunks/{structured-list-item.Cnv4Pw5n.js.map → structured-list-item._7YG2L3a.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BcIlkfVO.js → summary-grid.types.B_gUEQ0c.js} +45 -50
- package/dist/chunks/{summary-grid.types.BcIlkfVO.js.map → summary-grid.types.B_gUEQ0c.js.map} +1 -1
- package/dist/chunks/tab.DFk4K9cq.js +229 -0
- package/dist/chunks/{tab.N0xGWsfO.js.map → tab.DFk4K9cq.js.map} +1 -1
- package/dist/chunks/table-of-contents.CoEnQ9g7.js +104 -0
- package/dist/chunks/{table-of-contents.Cf-IrdZl.js.map → table-of-contents.CoEnQ9g7.js.map} +1 -1
- package/dist/chunks/{tag.BAyLm485.js → tag.BC7FFENr.js} +4 -4
- package/dist/chunks/{tag.BAyLm485.js.map → tag.BC7FFENr.js.map} +1 -1
- package/dist/chunks/textarea.Z-VYFZVq.js +176 -0
- package/dist/chunks/{textarea.BDRR1zE0.js.map → textarea.Z-VYFZVq.js.map} +1 -1
- package/dist/chunks/{timeline-item.QEEIwYMy.js → timeline-item.BGHi_lOY.js} +114 -193
- package/dist/chunks/{timeline-item.QEEIwYMy.js.map → timeline-item.BGHi_lOY.js.map} +1 -1
- package/dist/chunks/{toast.XPG0vaQB.js → toast.D-jat1Xw.js} +64 -86
- package/dist/chunks/{toast.XPG0vaQB.js.map → toast.D-jat1Xw.js.map} +1 -1
- package/dist/chunks/{toggle.Ca-MM3dt.js → toggle.BqHWIhqD.js} +4 -4
- package/dist/chunks/{toggle.Ca-MM3dt.js.map → toggle.BqHWIhqD.js.map} +1 -1
- package/dist/chunks/{tooltip.7ct8WxCl.js → tooltip.D_XsoD_u.js} +68 -70
- package/dist/chunks/{tooltip.7ct8WxCl.js.map → tooltip.D_XsoD_u.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.bROv3HSx.js → tutorial.BtxKW4ac.js} +80 -173
- package/dist/chunks/{tutorial.bROv3HSx.js.map → tutorial.BtxKW4ac.js.map} +1 -1
- package/dist/chunks/typography.D1OZJbEa.js +90 -0
- package/dist/chunks/typography.D1OZJbEa.js.map +1 -0
- package/dist/chunks/{use-bento-delayed-hover.Bz_8EabW.js → use-bento-delayed-hover.D6QjSugc.js} +2 -2
- package/dist/chunks/{use-bento-delayed-hover.Bz_8EabW.js.map → use-bento-delayed-hover.D6QjSugc.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.CB6Qbf3R.js → use-bento-toast-controller.A5xraVqa.js} +14 -15
- package/dist/chunks/{use-bento-toast-controller.CB6Qbf3R.js.map → use-bento-toast-controller.A5xraVqa.js.map} +1 -1
- package/dist/chunks/use-country-items.B1KhLbqM.js +30 -0
- package/dist/chunks/{use-country-items.CmCRY7QX.js.map → use-country-items.B1KhLbqM.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.Cv5YgCOo.js +291 -0
- package/dist/chunks/use-country-phon-code.Cv5YgCOo.js.map +1 -0
- package/dist/chunks/use-date-input-formatter.DXwvH7B0.js +1629 -0
- package/dist/chunks/{use-date-input-formatter.DfQk8_Dw.js.map → use-date-input-formatter.DXwvH7B0.js.map} +1 -1
- package/dist/chunks/use-expandable-content-height.Bdd9hQwq.js +34 -0
- package/dist/chunks/{use-expandable-content-height.2WJLCL-R.js.map → use-expandable-content-height.Bdd9hQwq.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.Be4pa3-g.js → zh-CN.ZG6obniO.js} +28 -28
- package/dist/chunks/{zh-CN.Be4pa3-g.js.map → zh-CN.ZG6obniO.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-time-picker.js +1 -1
- package/dist/date.js +1 -1
- package/dist/draggable.js +2 -2
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +2 -2
- 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 +2 -2
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +144 -149
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +2 -2
- package/dist/internal.js +14 -14
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/payment-method.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 +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/table-of-contents.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/typography.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 +32 -2
- package/package.json +11 -11
- package/dist/chunks/anchor-scroller.DgC74yeM.js +0 -141
- package/dist/chunks/anchor-scroller.DgC74yeM.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.DNYoFmV4.js +0 -85
- package/dist/chunks/calendar.CvHJ3Geq.js +0 -1247
- package/dist/chunks/click-outside.BG01Sm0A.js +0 -23
- package/dist/chunks/constructNow.CK0ryPil.js +0 -8
- package/dist/chunks/country.types.8GCHsdGN.js +0 -2789
- package/dist/chunks/country.types.8GCHsdGN.js.map +0 -1
- package/dist/chunks/currency.Dvy9Qjjf.js +0 -126
- package/dist/chunks/dashboard-section.D2yqhERq.js +0 -102
- package/dist/chunks/data-grid-template.Ifn423Ot.js +0 -111
- package/dist/chunks/data-grid.BDXQ_kKQ.js +0 -4121
- package/dist/chunks/date-picker.CXZfCxwP.js +0 -252
- package/dist/chunks/date-range-picker.BzVQsYk4.js +0 -1295
- package/dist/chunks/date-time-picker.DaLATfJp.js +0 -202
- package/dist/chunks/differenceInMonths.CpwVtHZX.js +0 -44
- package/dist/chunks/draggable.rTa1jcHI.js +0 -196
- package/dist/chunks/empty-state.DSVU1vU8.js +0 -106
- package/dist/chunks/empty-state.DSVU1vU8.js.map +0 -1
- package/dist/chunks/filter-bar.qlViDZPY.js +0 -3754
- package/dist/chunks/fixed-scroller.04EUUgD_.js +0 -152
- package/dist/chunks/get-slot-text.Bjb9dTSV.js +0 -12
- package/dist/chunks/header-meta.CCQVPDU8.js +0 -250
- package/dist/chunks/index.B6WW_F-J.js.map +0 -1
- package/dist/chunks/input-field-password.Bri9q5EV.js +0 -395
- package/dist/chunks/input-field-password.Bri9q5EV.js.map +0 -1
- package/dist/chunks/isSameWeek.TrpUOIn5.js +0 -14
- package/dist/chunks/list-item.BiJMHR7b.js +0 -226
- package/dist/chunks/pagination.CZVdaeqE.js.map +0 -1
- package/dist/chunks/popover.types.BfnJIpII.js +0 -6
- package/dist/chunks/scroll-to-section.CC5g-HBX.js +0 -111
- package/dist/chunks/scroll-to-section.CC5g-HBX.js.map +0 -1
- package/dist/chunks/secondary-nav.CmvSHxvS.js +0 -266
- package/dist/chunks/set-time-in-date.CU7HeZLY.js +0 -27
- package/dist/chunks/startOfWeek.Br5KM4z_.js +0 -10
- package/dist/chunks/step.CIfxl8Wm.js +0 -253
- package/dist/chunks/tab.N0xGWsfO.js +0 -259
- package/dist/chunks/table-of-contents.Cf-IrdZl.js +0 -129
- package/dist/chunks/textarea.BDRR1zE0.js +0 -224
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/typography.C8lPlsbD.js +0 -87
- package/dist/chunks/typography.C8lPlsbD.js.map +0 -1
- package/dist/chunks/use-country-items.CmCRY7QX.js +0 -30
- package/dist/chunks/use-country-phon-code.BWkb546s.js +0 -6641
- package/dist/chunks/use-country-phon-code.BWkb546s.js.map +0 -1
- package/dist/chunks/use-date-input-formatter.DfQk8_Dw.js +0 -1732
- package/dist/chunks/use-expandable-content-height.2WJLCL-R.js +0 -35
- package/dist/chunks/utils.BzUwtTXc.js +0 -21
|
@@ -1,98 +1,65 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import { B as
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { n as
|
|
9
|
-
import { i as
|
|
10
|
-
import { B as
|
|
11
|
-
import { C as
|
|
12
|
-
import { B as
|
|
13
|
-
import { a as
|
|
14
|
-
import { u as
|
|
15
|
-
import { o as
|
|
16
|
-
import { g as
|
|
17
|
-
import { C as
|
|
1
|
+
import { defineComponent as h, useSlots as L, computed as f, onMounted as M, onUnmounted as V, useAttrs as oe, inject as C, ref as c, toRefs as ae, watch as K, nextTick as N, toRef as j, provide as ie } from "vue";
|
|
2
|
+
import { B as b } from "./button.C4kKejsg.js";
|
|
3
|
+
import { B as re } from "./loading-indicator.PxbRzshH.js";
|
|
4
|
+
import { C as le } from "./cross-circle-fill.DTDtgLMf.js";
|
|
5
|
+
import { C as ue } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
6
|
+
import { u as P } from "./use-has-slot.C9lQZ6nz.js";
|
|
7
|
+
import { u as G } from "./index.CPOlyau9.js";
|
|
8
|
+
import { n as g } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
9
|
+
import { i as Y } from "./index.Cl4_42j5.js";
|
|
10
|
+
import { B as J, D as ce } from "./divider.DX5gwN7p.js";
|
|
11
|
+
import { C as de } from "./cross.CC_B-vG-.js";
|
|
12
|
+
import { B as H, c as D, p as fe } from "./typography.D1OZJbEa.js";
|
|
13
|
+
import { a as pe, P as me, b as _e } from "./popper-container.D08eTt4B.js";
|
|
14
|
+
import { u as ve } from "./aria-label.CaUURpnB.js";
|
|
15
|
+
import { o as ye } from "./on-click-outside.BgIzQ2G1.js";
|
|
16
|
+
import { g as be } from "./generate-uid.DBWe4g6T.js";
|
|
17
|
+
import { C as he } from "./chevron-down.eYtgv5ly.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import { C as
|
|
20
|
-
import { a as
|
|
21
|
-
import { t as
|
|
22
|
-
import { o as
|
|
23
|
-
import { g as
|
|
19
|
+
import { C as ge, a as F } from "./chevron-left.BS24hEFa.js";
|
|
20
|
+
import { a as $, B as Ce } from "./base-button.D5C9VIYP.js";
|
|
21
|
+
import { t as ke } from "./truncate.DmCXQmeb.js";
|
|
22
|
+
import { o as Ie } from "./resize.Bqks3WUm.js";
|
|
23
|
+
import { g as Be } from "./es6.Cu3DYUPA.js";
|
|
24
24
|
import "../assets/button-actions.css";
|
|
25
|
-
var
|
|
26
|
-
const
|
|
27
|
-
"de-DE": {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
"es-ES": {
|
|
44
|
-
failed: "Error",
|
|
45
|
-
succeded: "Correcto"
|
|
46
|
-
},
|
|
47
|
-
"es-MX": {
|
|
48
|
-
failed: "Fallido",
|
|
49
|
-
succeded: "Correcto"
|
|
50
|
-
},
|
|
51
|
-
"fr-FR": {
|
|
52
|
-
failed: "Échec",
|
|
53
|
-
succeded: "Réussite"
|
|
54
|
-
},
|
|
55
|
-
"it-IT": {
|
|
56
|
-
failed: "Operazione non riuscita",
|
|
57
|
-
succeded: "Operazione riuscita"
|
|
58
|
-
},
|
|
59
|
-
"ja-JP": {
|
|
60
|
-
failed: "失敗",
|
|
61
|
-
succeded: "成功"
|
|
62
|
-
},
|
|
63
|
-
"pt-BR": {
|
|
64
|
-
failed: "Falhou",
|
|
65
|
-
succeded: "Bem-sucedido"
|
|
66
|
-
},
|
|
67
|
-
"zh-CN": {
|
|
68
|
-
failed: "失败",
|
|
69
|
-
succeded: "成功"
|
|
70
|
-
}
|
|
71
|
-
}, Ee = {
|
|
72
|
-
i18n: { messages: xe }
|
|
73
|
-
}, Le = /* @__PURE__ */ g({
|
|
74
|
-
...Ee,
|
|
25
|
+
var k = /* @__PURE__ */ ((o) => (o.START = "start", o.LOADING = "loading", o.SUCCESS = "success", o.FAIL = "fail", o))(k || {});
|
|
26
|
+
const Oe = {
|
|
27
|
+
"de-DE": { failed: "Fehlgeschlagen", succeded: "Erfolgreich" },
|
|
28
|
+
"en-GB": { failed: "Failed", succeded: "Succeeded" },
|
|
29
|
+
"en-US": { failed: "Failed", succeded: "Succeded" },
|
|
30
|
+
"es-419": { failed: "Fallo", succeded: "Correcto" },
|
|
31
|
+
"es-ES": { failed: "Error", succeded: "Correcto" },
|
|
32
|
+
"es-MX": { failed: "Fallido", succeded: "Correcto" },
|
|
33
|
+
"fr-FR": { failed: "Échec", succeded: "Réussite" },
|
|
34
|
+
"it-IT": { failed: "Operazione non riuscita", succeded: "Operazione riuscita" },
|
|
35
|
+
"ja-JP": { failed: "失敗", succeded: "成功" },
|
|
36
|
+
"pt-BR": { failed: "Falhou", succeded: "Bem-sucedido" },
|
|
37
|
+
"zh-CN": { failed: "失败", succeded: "成功" }
|
|
38
|
+
}, Se = {
|
|
39
|
+
i18n: { messages: Oe }
|
|
40
|
+
}, xe = /* @__PURE__ */ h({
|
|
41
|
+
...Se,
|
|
75
42
|
__name: "loading-button",
|
|
76
43
|
props: {
|
|
77
44
|
/**
|
|
78
45
|
* Reduces sizing of button
|
|
79
46
|
*/
|
|
80
47
|
condensed: {
|
|
81
|
-
type:
|
|
48
|
+
type: b.props.condensed.type,
|
|
82
49
|
default: !1
|
|
83
50
|
},
|
|
84
51
|
/**
|
|
85
52
|
* Displays loading-button as critical
|
|
86
53
|
*/
|
|
87
54
|
critical: {
|
|
88
|
-
type:
|
|
55
|
+
type: b.props.critical.type,
|
|
89
56
|
default: !1
|
|
90
57
|
},
|
|
91
58
|
/**
|
|
92
59
|
* Disables button functonality
|
|
93
60
|
*/
|
|
94
61
|
disabled: {
|
|
95
|
-
type:
|
|
62
|
+
type: b.props.disabled.type,
|
|
96
63
|
default: !1
|
|
97
64
|
},
|
|
98
65
|
/**
|
|
@@ -108,36 +75,36 @@ const xe = {
|
|
|
108
75
|
*/
|
|
109
76
|
state: {
|
|
110
77
|
type: String,
|
|
111
|
-
default:
|
|
112
|
-
validator: (o) => Object.values(
|
|
78
|
+
default: k.START,
|
|
79
|
+
validator: (o) => Object.values(k).includes(o)
|
|
113
80
|
},
|
|
114
81
|
/**
|
|
115
82
|
* Types of flavour of Button
|
|
116
83
|
*/
|
|
117
84
|
variant: {
|
|
118
|
-
type:
|
|
85
|
+
type: b.props.variant.type,
|
|
119
86
|
default: "primary",
|
|
120
|
-
validator:
|
|
87
|
+
validator: b.props.variant.validator
|
|
121
88
|
}
|
|
122
89
|
},
|
|
123
90
|
emits: ["click"],
|
|
124
91
|
setup(o, { emit: e }) {
|
|
125
|
-
const n = o, t =
|
|
126
|
-
[`b-loading-button--${n.variant}-${
|
|
127
|
-
"b-loading-button--loading": n.state ===
|
|
128
|
-
[`b-loading-button--${n.variant}-${
|
|
92
|
+
const n = o, t = L(), s = P(t), { t: a } = G(), p = f(() => ({
|
|
93
|
+
[`b-loading-button--${n.variant}-${k.LOADING}`]: n.state === k.LOADING && !n.disabled,
|
|
94
|
+
"b-loading-button--loading": n.state === k.LOADING && !n.disabled,
|
|
95
|
+
[`b-loading-button--${n.variant}-${k.SUCCESS}`]: n.state === k.SUCCESS,
|
|
129
96
|
"b-loading-button--inverse": n.inverse
|
|
130
|
-
})),
|
|
97
|
+
})), u = f(
|
|
131
98
|
() => n.variant === "primary" && !n.inverse || n.variant !== "primary" && n.inverse
|
|
132
|
-
),
|
|
133
|
-
() => n.critical && n.state ===
|
|
99
|
+
), d = f(
|
|
100
|
+
() => n.critical && n.state === k.START || n.state === k.FAIL
|
|
134
101
|
);
|
|
135
|
-
return { __sfc: !0, props: n, emit: e, slots: t, hasSlot: s, t:
|
|
136
|
-
r.stopPropagation(), n.state !==
|
|
137
|
-
}, BentoLoadingIndicator:
|
|
102
|
+
return { __sfc: !0, props: n, emit: e, slots: t, hasSlot: s, t: a, conditionalClasses: p, isInverseLoadingIndicator: u, isCritical: d, onClick: (r) => {
|
|
103
|
+
r.stopPropagation(), n.state !== k.LOADING && e("click", r);
|
|
104
|
+
}, BentoLoadingIndicator: re, BentoButton: b, Cross: le, Checkmark: ue };
|
|
138
105
|
}
|
|
139
106
|
});
|
|
140
|
-
var
|
|
107
|
+
var Ee = function() {
|
|
141
108
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
142
109
|
return n(t.BentoButton, { staticClass: "b-loading-button", class: t.conditionalClasses, attrs: { critical: t.isCritical, variant: e.variant, condensed: e.condensed, disabled: e.disabled, inverse: e.inverse }, on: { "!click": function(s) {
|
|
143
110
|
return s.stopPropagation(), t.onClick.apply(null, arguments);
|
|
@@ -146,30 +113,30 @@ var Te = function() {
|
|
|
146
113
|
}, proxy: !0 } : e.state !== "start" ? { key: "iconLeft", fn: function() {
|
|
147
114
|
return [n("span", { staticClass: "b-loading-button__icon", attrs: { "data-testid": "loading-button-rotating-icon" } }, [e.state === "fail" ? n(t.Cross, { attrs: { "svg-title": t.t("failed") } }) : e.state === "success" ? n(t.Checkmark, { attrs: { "svg-title": t.t("succeded") } }) : e.state === "loading" ? n(t.BentoLoadingIndicator, { attrs: { small: "", inverse: t.isInverseLoadingIndicator } }) : e._e()], 1)];
|
|
148
115
|
}, proxy: !0 } : null], null, !0) }, [e._t("default")], 2);
|
|
149
|
-
},
|
|
116
|
+
}, Le = [], Me = /* @__PURE__ */ g(
|
|
117
|
+
xe,
|
|
118
|
+
Ee,
|
|
150
119
|
Le,
|
|
151
|
-
Te,
|
|
152
|
-
Me,
|
|
153
120
|
!1,
|
|
154
121
|
null,
|
|
155
122
|
"bc74b2f7"
|
|
156
123
|
);
|
|
157
|
-
const
|
|
158
|
-
...
|
|
124
|
+
const Te = Me.exports, we = {}, Re = /* @__PURE__ */ h({
|
|
125
|
+
...we,
|
|
159
126
|
__name: "toggle-button",
|
|
160
127
|
props: {
|
|
161
128
|
/**
|
|
162
129
|
* Reduces sizing of button
|
|
163
130
|
*/
|
|
164
131
|
condensed: {
|
|
165
|
-
type:
|
|
132
|
+
type: b.props.condensed.type,
|
|
166
133
|
default: !1
|
|
167
134
|
},
|
|
168
135
|
/**
|
|
169
136
|
* Disables button functonality
|
|
170
137
|
*/
|
|
171
138
|
disabled: {
|
|
172
|
-
type:
|
|
139
|
+
type: b.props.disabled.type,
|
|
173
140
|
default: !1
|
|
174
141
|
},
|
|
175
142
|
/**
|
|
@@ -184,9 +151,9 @@ const Re = we.exports, Ae = {}, Ne = /* @__PURE__ */ g({
|
|
|
184
151
|
* @values primary, secondary, tertiary
|
|
185
152
|
*/
|
|
186
153
|
variant: {
|
|
187
|
-
type:
|
|
154
|
+
type: b.props.variant.type,
|
|
188
155
|
default: "primary",
|
|
189
|
-
validator:
|
|
156
|
+
validator: b.props.variant.validator
|
|
190
157
|
},
|
|
191
158
|
/**
|
|
192
159
|
* The state of the button whether it is toggled or not.
|
|
@@ -198,38 +165,38 @@ const Re = we.exports, Ae = {}, Ne = /* @__PURE__ */ g({
|
|
|
198
165
|
},
|
|
199
166
|
emits: ["click", "update:toggled"],
|
|
200
167
|
setup(o, { emit: e }) {
|
|
201
|
-
const n = o, t =
|
|
168
|
+
const n = o, t = f(
|
|
202
169
|
() => n.variant === "tertiary" ? "tertiary-with-background" : n.variant
|
|
203
|
-
), s =
|
|
204
|
-
"b-toggle-button--condensed": n
|
|
170
|
+
), s = f(() => ({
|
|
171
|
+
"b-toggle-button--condensed": n?.condensed,
|
|
205
172
|
[`b-toggle-button--${t.value}-toggled`]: n.toggled,
|
|
206
173
|
"b-toggle-button--inverse": n.inverse
|
|
207
|
-
})),
|
|
208
|
-
|
|
209
|
-
}, p =
|
|
210
|
-
return { __sfc: !0, props: n, emit: e, computedVariant: t, conditionalClasses: s, onClick:
|
|
174
|
+
})), a = (d) => {
|
|
175
|
+
d.stopPropagation(), n?.disabled || (e("click", d), e("update:toggled", !n.toggled));
|
|
176
|
+
}, p = L();
|
|
177
|
+
return { __sfc: !0, props: n, emit: e, computedVariant: t, conditionalClasses: s, onClick: a, slots: p, getSlotKeyIfVue3: (d) => ({}), BentoButton: b };
|
|
211
178
|
}
|
|
212
179
|
});
|
|
213
|
-
var
|
|
180
|
+
var Ae = function() {
|
|
214
181
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
215
182
|
return n(t.BentoButton, e._b({ staticClass: "b-toggle-button", class: t.conditionalClasses, attrs: { "aria-expanded": `${e.toggled}`, "aria-pressed": `${e.toggled}`, condensed: e.condensed, disabled: e.disabled, inverse: e.inverse, variant: t.computedVariant }, on: { "!click": function(s) {
|
|
216
183
|
return s.stopPropagation(), t.onClick.apply(null, arguments);
|
|
217
|
-
} }, scopedSlots: e._u([e._l(t.slots, function(s,
|
|
218
|
-
return { key:
|
|
219
|
-
return [e._t(
|
|
184
|
+
} }, scopedSlots: e._u([e._l(t.slots, function(s, a) {
|
|
185
|
+
return { key: a, fn: function() {
|
|
186
|
+
return [e._t(a, null, null, t.getSlotKeyIfVue3(a))];
|
|
220
187
|
}, proxy: !0 };
|
|
221
188
|
})], null, !0) }, "bento-button", e.$attrs, !1));
|
|
222
|
-
},
|
|
189
|
+
}, Ne = [], Pe = /* @__PURE__ */ g(
|
|
190
|
+
Re,
|
|
191
|
+
Ae,
|
|
223
192
|
Ne,
|
|
224
|
-
Pe,
|
|
225
|
-
De,
|
|
226
193
|
!1,
|
|
227
194
|
null,
|
|
228
195
|
"0bc368c9"
|
|
229
196
|
);
|
|
230
|
-
const
|
|
197
|
+
const De = Pe.exports, Fe = h({
|
|
231
198
|
name: "bento-popover-dismiss-button",
|
|
232
|
-
components: { BentoButton:
|
|
199
|
+
components: { BentoButton: b, CrossIcon: de },
|
|
233
200
|
props: {
|
|
234
201
|
onImage: {
|
|
235
202
|
type: Boolean,
|
|
@@ -239,27 +206,27 @@ const $e = Fe.exports, Ue = g({
|
|
|
239
206
|
setup(o) {
|
|
240
207
|
return {
|
|
241
208
|
// Values
|
|
242
|
-
conditionalClass:
|
|
209
|
+
conditionalClass: f(() => ({ "b-popover-dismiss-button--on-image": o.onImage }))
|
|
243
210
|
};
|
|
244
211
|
}
|
|
245
212
|
});
|
|
246
|
-
var
|
|
213
|
+
var $e = function() {
|
|
247
214
|
var e = this, n = e._self._c;
|
|
248
215
|
return e._self._setupProxy, n("bento-button", { class: e.conditionalClass, attrs: { variant: "tertiary" }, on: { click: function(t) {
|
|
249
216
|
return e.$emit("click");
|
|
250
217
|
} }, scopedSlots: e._u([{ key: "iconLeft", fn: function() {
|
|
251
218
|
return [n("cross-icon", { attrs: { "svg-title": "dismiss" } })];
|
|
252
219
|
}, proxy: !0 }]) });
|
|
253
|
-
}, We = [],
|
|
254
|
-
|
|
255
|
-
|
|
220
|
+
}, We = [], Ue = /* @__PURE__ */ g(
|
|
221
|
+
Fe,
|
|
222
|
+
$e,
|
|
256
223
|
We,
|
|
257
224
|
!1,
|
|
258
225
|
null,
|
|
259
226
|
"4c18828f"
|
|
260
227
|
);
|
|
261
|
-
const
|
|
262
|
-
components: { BentoTypography:
|
|
228
|
+
const Ve = Ue.exports, Ke = h({
|
|
229
|
+
components: { BentoTypography: H },
|
|
263
230
|
props: {
|
|
264
231
|
/**
|
|
265
232
|
* Indicates if the popover contains an image.
|
|
@@ -271,8 +238,8 @@ const je = Ke.exports, Ge = g({
|
|
|
271
238
|
title: { type: String, default: null }
|
|
272
239
|
},
|
|
273
240
|
setup(o) {
|
|
274
|
-
const e =
|
|
275
|
-
() => o.isImageTitle ?
|
|
241
|
+
const e = f(() => !o.isImageTitle), n = f(
|
|
242
|
+
() => o.isImageTitle ? D.SUBTITLE : D.BODY
|
|
276
243
|
);
|
|
277
244
|
return {
|
|
278
245
|
// Values
|
|
@@ -281,26 +248,26 @@ const je = Ke.exports, Ge = g({
|
|
|
281
248
|
};
|
|
282
249
|
}
|
|
283
250
|
});
|
|
284
|
-
var
|
|
251
|
+
var je = function() {
|
|
285
252
|
var e = this, n = e._self._c;
|
|
286
253
|
return e._self._setupProxy, n("bento-typography", { attrs: { strongest: e.isStrongest, variant: e.titleVariant, el: "span" } }, [e._v(" " + e._s(e.title) + " ")]);
|
|
287
|
-
},
|
|
254
|
+
}, Ge = [], Ye = /* @__PURE__ */ g(
|
|
255
|
+
Ke,
|
|
256
|
+
je,
|
|
288
257
|
Ge,
|
|
289
|
-
Ye,
|
|
290
|
-
Je,
|
|
291
258
|
!1,
|
|
292
259
|
null,
|
|
293
260
|
null
|
|
294
261
|
);
|
|
295
|
-
const
|
|
262
|
+
const Je = Ye.exports, He = (o, e, n = {}) => {
|
|
296
263
|
let t;
|
|
297
264
|
M(() => {
|
|
298
|
-
t =
|
|
299
|
-
}),
|
|
265
|
+
t = ye(o, e, n);
|
|
266
|
+
}), V(() => {
|
|
300
267
|
t && (t(), t = null);
|
|
301
268
|
});
|
|
302
|
-
},
|
|
303
|
-
...
|
|
269
|
+
}, ze = /* @__PURE__ */ Symbol("input field popover injection key"), Xe = /* @__PURE__ */ Symbol("input field popover injection key"), qe = /* @__PURE__ */ Symbol("popover offset injection key"), Ze = {}, Qe = /* @__PURE__ */ h({
|
|
270
|
+
...Ze,
|
|
304
271
|
__name: "popover",
|
|
305
272
|
props: {
|
|
306
273
|
actions: { default: void 0 },
|
|
@@ -326,44 +293,41 @@ const ze = He.exports, Xe = (o, e, n = {}) => {
|
|
|
326
293
|
},
|
|
327
294
|
emits: ["dismiss", "placement"],
|
|
328
295
|
setup(o, { emit: e }) {
|
|
329
|
-
const n = o, t = 2, s =
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
};
|
|
335
|
-
}), l = k(Qe, t), u = f(i["aria-label"]), { ariaLabel: a, title: r } = re(n), c = be({
|
|
336
|
-
ariaLabel: u.value,
|
|
296
|
+
const n = o, t = 2, s = L(), a = oe(), p = f(() => ({
|
|
297
|
+
id: a.id?.toString(),
|
|
298
|
+
role: a?.role === null ? void 0 : pe.POPOVER
|
|
299
|
+
})), u = C(qe, t), d = c(a["aria-label"]), { ariaLabel: i, title: r } = ae(n), l = ve({
|
|
300
|
+
ariaLabel: d.value,
|
|
337
301
|
// TODO: take this line away when the aria-label props is removed
|
|
338
|
-
label:
|
|
302
|
+
label: i,
|
|
339
303
|
defaultFallback: r
|
|
340
|
-
}),
|
|
304
|
+
}), v = C(Xe, !1) || C(ze, !1), _ = f(() => ({
|
|
341
305
|
"b-popover--small": n.small && !n.large,
|
|
342
306
|
"b-popover--with-divider": !!n.divider,
|
|
343
307
|
"b-popover--large": n.large && !n.small,
|
|
344
308
|
"b-popover--fit-content": n.fitContent,
|
|
345
309
|
"b-popover--without-space": n.withoutSpace,
|
|
346
|
-
"b-popover--overflow-visible": n.overflowVisible ||
|
|
347
|
-
})), y =
|
|
310
|
+
"b-popover--overflow-visible": n.overflowVisible || v
|
|
311
|
+
})), y = f(() => ({
|
|
348
312
|
"b-popover__content--with-title": !!n.title
|
|
349
|
-
})),
|
|
350
|
-
return { __sfc: !0, DEFAULT_OFFSET: t, props: n, emit: e, slots: s, attrs:
|
|
313
|
+
})), B = () => e("dismiss"), E = P(s);
|
|
314
|
+
return { __sfc: !0, DEFAULT_OFFSET: t, props: n, emit: e, slots: s, attrs: a, computedAttributes: p, offset: u, ariaLabelAttribute: d, ariaLabel: i, title: r, computedAriaLabel: l, isOverflowVisible: v, conditionalClasses: _, contentConditionalClasses: y, dismissPopover: B, hasSlot: E, BentoPopoverDismissButton: Ve, BentoPopoverTitle: Je, BentoButtonActions: qt, PopperContainer: me };
|
|
351
315
|
}
|
|
352
316
|
});
|
|
353
|
-
var
|
|
317
|
+
var et = function() {
|
|
354
318
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
355
319
|
return n("Transition", { attrs: { name: "b-popover__animation" } }, [e.open ? n(t.PopperContainer, { staticClass: "b-popover", class: t.conditionalClasses, attrs: { id: t.computedAttributes.id, "aria-role": t.computedAttributes.role, "aria-label": t.computedAriaLabel, arrow: { classes: ["b-popover__arrow"] }, "disabled-focus-trap": e.disableFocusTrap, "trap-all": e.trapAll, "trap-all-options": e.trapAllOptions, "fallback-position": e.fallbackPosition, "fixed-positioning": e.fixedPositioning, offset: [0, t.offset], position: e.position, "target-element": e.targetElement }, on: { placement: function(s) {
|
|
356
320
|
return e.$emit("placement", s);
|
|
357
321
|
} } }, [t.hasSlot("image") ? n("div", { staticClass: "b-popover__image" }, [e.dismissible ? n("div", { staticClass: "b-popover__image-dismiss-button" }, [n(t.BentoPopoverDismissButton, { attrs: { "on-image": "" }, on: { click: t.dismissPopover } })], 1) : e._e(), e._t("image")], 2) : e._e(), t.title ? n("div", { staticClass: "b-popover__header" }, [n("div", { staticClass: "b-popover__header-title" }, [t.hasSlot("headerIcon") ? e._t("headerIcon") : e._e(), n(t.BentoPopoverTitle, { attrs: { title: t.title, "is-image-title": !!t.hasSlot("image") } })], 2), e.dismissible && !t.hasSlot("image") ? n("div", [n(t.BentoPopoverDismissButton, { on: { click: t.dismissPopover } })], 1) : e._e()]) : e._e(), t.hasSlot("default") ? n("div", { staticClass: "b-popover__content", class: t.contentConditionalClasses }, [e._t("default")], 2) : e._e(), e.actions ? n("div", { staticClass: "b-popover__footer" }, [n(t.BentoButtonActions, { attrs: { actions: e.actions, layout: e.actionsLayout } })], 1) : e._e()]) : e._e()], 1);
|
|
358
|
-
},
|
|
322
|
+
}, tt = [], nt = /* @__PURE__ */ g(
|
|
323
|
+
Qe,
|
|
324
|
+
et,
|
|
359
325
|
tt,
|
|
360
|
-
nt,
|
|
361
|
-
st,
|
|
362
326
|
!1,
|
|
363
327
|
null,
|
|
364
328
|
"2de66a7e"
|
|
365
329
|
);
|
|
366
|
-
const
|
|
330
|
+
const st = nt.exports, z = /* @__PURE__ */ Symbol("modal injection key"), X = /* @__PURE__ */ Symbol("sidepanel children element injection key"), q = /* @__PURE__ */ Symbol("modal fullscreen children element injection key"), kn = /* @__PURE__ */ Symbol("modal fullscreen title id injection key"), In = /* @__PURE__ */ Symbol("modal fullscreen close injection key"), ot = h({
|
|
367
331
|
name: "teleport",
|
|
368
332
|
props: {
|
|
369
333
|
to: {
|
|
@@ -382,7 +346,7 @@ const at = ot.exports, q = /* @__PURE__ */ Symbol("modal injection key"), Z = /*
|
|
|
382
346
|
waiting: !1,
|
|
383
347
|
observer: null,
|
|
384
348
|
parent: null,
|
|
385
|
-
isVue2:
|
|
349
|
+
isVue2: Y
|
|
386
350
|
}),
|
|
387
351
|
computed: {
|
|
388
352
|
classes() {
|
|
@@ -401,7 +365,7 @@ const at = ot.exports, q = /* @__PURE__ */ Symbol("modal injection key"), Z = /*
|
|
|
401
365
|
defaultTo() {
|
|
402
366
|
if (this.to)
|
|
403
367
|
return this.to;
|
|
404
|
-
const o =
|
|
368
|
+
const o = C(z, "") || C(q, "") || C(X, "");
|
|
405
369
|
return o ? `#${o}` : "body";
|
|
406
370
|
}
|
|
407
371
|
},
|
|
@@ -444,7 +408,7 @@ const at = ot.exports, q = /* @__PURE__ */ Symbol("modal injection key"), Z = /*
|
|
|
444
408
|
let e = !1;
|
|
445
409
|
for (let n = 0; n < o.length; n++) {
|
|
446
410
|
const t = o[n], s = Array.from(t.addedNodes).filter(
|
|
447
|
-
(
|
|
411
|
+
(a) => !this.nodes.includes(a)
|
|
448
412
|
);
|
|
449
413
|
Array.from(t.removedNodes).includes(this.parent) ? (this.disable(), this.waiting = !this.disabled) : this.waiting && s.length > 0 && (e = !0);
|
|
450
414
|
}
|
|
@@ -472,48 +436,48 @@ const at = ot.exports, q = /* @__PURE__ */ Symbol("modal injection key"), Z = /*
|
|
|
472
436
|
return this.$vnode.componentOptions.children.map((o) => o.elm).filter((o) => o);
|
|
473
437
|
}
|
|
474
438
|
}
|
|
475
|
-
}),
|
|
476
|
-
...
|
|
439
|
+
}), at = /* @__PURE__ */ h({
|
|
440
|
+
...ot,
|
|
477
441
|
setup(o) {
|
|
478
|
-
const e =
|
|
479
|
-
const
|
|
480
|
-
return
|
|
442
|
+
const e = C(z, ""), n = C(q, ""), t = C(X, ""), s = f(() => {
|
|
443
|
+
const a = e || n || t;
|
|
444
|
+
return a ? `#${a}` : "body";
|
|
481
445
|
});
|
|
482
|
-
return { __sfc: !0, injectedModalKey: e, injectedModalFullscreenKey: n, injectedSidepanelKey: t, teleportTarget: s, isVue2:
|
|
446
|
+
return { __sfc: !0, injectedModalKey: e, injectedModalFullscreenKey: n, injectedSidepanelKey: t, teleportTarget: s, isVue2: Y };
|
|
483
447
|
}
|
|
484
448
|
});
|
|
485
|
-
var
|
|
449
|
+
var it = function() {
|
|
486
450
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
487
451
|
return t.isVue2 ? n("div", { class: e.classes }, [e._t("default")], 2) : n("Teleport", { attrs: { to: e.to || t.teleportTarget, disabled: e.disabled } }, [e._t("default")], 2);
|
|
488
|
-
},
|
|
452
|
+
}, rt = [], lt = /* @__PURE__ */ g(
|
|
453
|
+
at,
|
|
454
|
+
it,
|
|
489
455
|
rt,
|
|
490
|
-
lt,
|
|
491
|
-
ut,
|
|
492
456
|
!1,
|
|
493
457
|
null,
|
|
494
458
|
"4755b0e0"
|
|
495
459
|
);
|
|
496
|
-
const
|
|
460
|
+
const ut = lt.exports;
|
|
497
461
|
let W = 0;
|
|
498
|
-
const
|
|
462
|
+
const ct = {
|
|
499
463
|
beforeCreate() {
|
|
500
464
|
this.uuid = W.toString(), W += 1;
|
|
501
465
|
}
|
|
502
466
|
};
|
|
503
|
-
var
|
|
467
|
+
var dt = function() {
|
|
504
468
|
var e = this, n = e._self._c;
|
|
505
469
|
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#001222", 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" } }), n("path", { attrs: { fill: "#001222", 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" } }), n("path", { attrs: { fill: "#001222", 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" } })]);
|
|
506
|
-
},
|
|
470
|
+
}, ft = [], pt = /* @__PURE__ */ g(
|
|
471
|
+
ct,
|
|
472
|
+
dt,
|
|
507
473
|
ft,
|
|
508
|
-
pt,
|
|
509
|
-
mt,
|
|
510
474
|
!1,
|
|
511
475
|
null,
|
|
512
476
|
null
|
|
513
477
|
);
|
|
514
|
-
const
|
|
478
|
+
const mt = pt.exports, _t = h({
|
|
515
479
|
name: "menu-item",
|
|
516
|
-
components: { BaseButton:
|
|
480
|
+
components: { BaseButton: Ce, BentoTypography: H, ChevronRightIcon: ge },
|
|
517
481
|
props: {
|
|
518
482
|
/**
|
|
519
483
|
* menu-item text that gets displayed as the main label
|
|
@@ -581,24 +545,24 @@ const vt = _t.exports, yt = g({
|
|
|
581
545
|
default: !1
|
|
582
546
|
}
|
|
583
547
|
},
|
|
584
|
-
emits: [
|
|
548
|
+
emits: [$.CLICK],
|
|
585
549
|
setup(o, { emit: e }) {
|
|
586
|
-
const t =
|
|
550
|
+
const t = f(() => ({
|
|
587
551
|
"b-menu-item--critical": o.critical,
|
|
588
552
|
"b-menu-item--indent": o.indent
|
|
589
|
-
})), s =
|
|
553
|
+
})), s = f(() => ke(o.secondaryText, 10));
|
|
590
554
|
return {
|
|
591
555
|
// Values
|
|
592
556
|
conditionalClasses: t,
|
|
593
557
|
computedSecondaryText: s,
|
|
594
558
|
// Methods
|
|
595
559
|
onClick: (p) => {
|
|
596
|
-
p.stopPropagation(), o.handler(), e(
|
|
560
|
+
p.stopPropagation(), o.handler(), e($.CLICK);
|
|
597
561
|
}
|
|
598
562
|
};
|
|
599
563
|
}
|
|
600
564
|
});
|
|
601
|
-
var
|
|
565
|
+
var vt = function() {
|
|
602
566
|
var e = this, n = e._self._c;
|
|
603
567
|
return e._self._setupProxy, n("base-button", { staticClass: "b-menu-item", class: e.conditionalClasses, attrs: { role: "menuitem", disabled: e.disabled, tabindex: "-1" }, on: { click: e.onClick }, scopedSlots: e._u([e.icon ? { key: "iconLeft", fn: function() {
|
|
604
568
|
return [n(e.icon, { tag: "component", staticClass: "b-menu-item__icon-left", attrs: { "aria-hidden": "true" } })];
|
|
@@ -607,92 +571,59 @@ var bt = function() {
|
|
|
607
571
|
}, proxy: !0 }, e.chevron ? { key: "iconRight", fn: function() {
|
|
608
572
|
return [n("chevron-right-icon", { attrs: { "aria-hidden": "true" } })];
|
|
609
573
|
}, proxy: !0 } : null], null, !0) });
|
|
610
|
-
},
|
|
574
|
+
}, yt = [], bt = /* @__PURE__ */ g(
|
|
575
|
+
_t,
|
|
576
|
+
vt,
|
|
611
577
|
yt,
|
|
612
|
-
bt,
|
|
613
|
-
ht,
|
|
614
578
|
!1,
|
|
615
579
|
null,
|
|
616
580
|
"a173cbf5"
|
|
617
581
|
);
|
|
618
|
-
const
|
|
619
|
-
({ ...
|
|
620
|
-
var
|
|
621
|
-
const
|
|
582
|
+
const Z = bt.exports;
|
|
583
|
+
({ ..._e });
|
|
584
|
+
var I = /* @__PURE__ */ ((o) => (o.BACK = "back", o.CLOSE = "close", o.OPEN = "open", o))(I || {});
|
|
585
|
+
const ht = /* @__PURE__ */ Symbol("menu registering injection key"), gt = {
|
|
622
586
|
name: "bento-menu-list-container"
|
|
623
|
-
},
|
|
624
|
-
...
|
|
587
|
+
}, Ct = /* @__PURE__ */ h({
|
|
588
|
+
...gt,
|
|
625
589
|
setup(o) {
|
|
626
|
-
const e =
|
|
590
|
+
const e = c(), n = c({}), t = C(ht, !1);
|
|
627
591
|
if (t) {
|
|
628
592
|
const { registerMenuContainerElement: s } = t;
|
|
629
593
|
s(e), n.value = {
|
|
630
|
-
mouseleave: t
|
|
594
|
+
mouseleave: t?.menuMouseLeave
|
|
631
595
|
};
|
|
632
596
|
}
|
|
633
597
|
return { __sfc: !0, menuListContainerRef: e, menuListContainerEvents: n, registeringAndMousingOut: t };
|
|
634
598
|
}
|
|
635
599
|
});
|
|
636
|
-
var
|
|
600
|
+
var kt = function() {
|
|
637
601
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
638
602
|
return n("div", e._g({ ref: "menuListContainerRef", staticClass: "b-menu-list-container", attrs: { "data-testid": "menu-list-container" } }, t.menuListContainerEvents), [e._t("default")], 2);
|
|
639
|
-
},
|
|
603
|
+
}, It = [], Bt = /* @__PURE__ */ g(
|
|
604
|
+
Ct,
|
|
605
|
+
kt,
|
|
640
606
|
It,
|
|
641
|
-
Bt,
|
|
642
|
-
Ot,
|
|
643
607
|
!1,
|
|
644
608
|
null,
|
|
645
609
|
"1669d56a"
|
|
646
610
|
);
|
|
647
|
-
const
|
|
648
|
-
"de-DE": {
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
},
|
|
652
|
-
"
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
},
|
|
656
|
-
"
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
backButton: "Volver",
|
|
662
|
-
menuButton: "Abrir menú"
|
|
663
|
-
},
|
|
664
|
-
"es-ES": {
|
|
665
|
-
backButton: "Volver atrás",
|
|
666
|
-
menuButton: "Abrir menú"
|
|
667
|
-
},
|
|
668
|
-
"es-MX": {
|
|
669
|
-
backButton: "Volver",
|
|
670
|
-
menuButton: "Abrir menú"
|
|
671
|
-
},
|
|
672
|
-
"fr-FR": {
|
|
673
|
-
backButton: "Retour",
|
|
674
|
-
menuButton: "Ouvrir le menu"
|
|
675
|
-
},
|
|
676
|
-
"it-IT": {
|
|
677
|
-
backButton: "Torna indietro",
|
|
678
|
-
menuButton: "Apri menu"
|
|
679
|
-
},
|
|
680
|
-
"ja-JP": {
|
|
681
|
-
backButton: "戻る",
|
|
682
|
-
menuButton: "メニューを開く"
|
|
683
|
-
},
|
|
684
|
-
"pt-BR": {
|
|
685
|
-
backButton: "Voltar",
|
|
686
|
-
menuButton: "Abrir menu"
|
|
687
|
-
},
|
|
688
|
-
"zh-CN": {
|
|
689
|
-
backButton: "返回",
|
|
690
|
-
menuButton: "打开菜单"
|
|
691
|
-
}
|
|
692
|
-
}, xt = g({
|
|
693
|
-
i18n: { messages: ne },
|
|
611
|
+
const Q = Bt.exports, ee = {
|
|
612
|
+
"de-DE": { backButton: "Zurück", menuButton: "Menü öffnen" },
|
|
613
|
+
"en-GB": { backButton: "Go back", menuButton: "Open menu" },
|
|
614
|
+
"en-US": { backButton: "Go back", menuButton: "Open menu" },
|
|
615
|
+
"es-419": { backButton: "Volver", menuButton: "Abrir menú" },
|
|
616
|
+
"es-ES": { backButton: "Volver atrás", menuButton: "Abrir menú" },
|
|
617
|
+
"es-MX": { backButton: "Volver", menuButton: "Abrir menú" },
|
|
618
|
+
"fr-FR": { backButton: "Retour", menuButton: "Ouvrir le menu" },
|
|
619
|
+
"it-IT": { backButton: "Torna indietro", menuButton: "Apri menu" },
|
|
620
|
+
"ja-JP": { backButton: "戻る", menuButton: "メニューを開く" },
|
|
621
|
+
"pt-BR": { backButton: "Voltar", menuButton: "Abrir menu" },
|
|
622
|
+
"zh-CN": { backButton: "返回", menuButton: "打开菜单" }
|
|
623
|
+
}, Ot = h({
|
|
624
|
+
i18n: { messages: ee },
|
|
694
625
|
name: "sub-menu-item-list",
|
|
695
|
-
components: { BentoDivider:
|
|
626
|
+
components: { BentoDivider: J, MenuItem: Z, MenuListContainer: Q },
|
|
696
627
|
props: {
|
|
697
628
|
items: {
|
|
698
629
|
type: Array,
|
|
@@ -703,22 +634,21 @@ const te = St.exports, ne = {
|
|
|
703
634
|
required: !0
|
|
704
635
|
}
|
|
705
636
|
},
|
|
706
|
-
emits: [
|
|
637
|
+
emits: [I.CLOSE, I.BACK],
|
|
707
638
|
setup(o, { emit: e }) {
|
|
708
|
-
const n =
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
indent: !_.icon,
|
|
639
|
+
const n = c(null), t = c(0), s = c(o.items.length), a = () => e(I.CLOSE), p = () => e(I.BACK), u = f(() => {
|
|
640
|
+
const l = o.items?.map((v) => ({
|
|
641
|
+
...v,
|
|
642
|
+
indent: !v.icon,
|
|
713
643
|
isTitle: !1,
|
|
714
|
-
clickHandler:
|
|
644
|
+
clickHandler: a
|
|
715
645
|
}));
|
|
716
646
|
return [
|
|
717
647
|
{
|
|
718
648
|
text: o.title,
|
|
719
649
|
secondaryText: null,
|
|
720
650
|
critical: !1,
|
|
721
|
-
icon:
|
|
651
|
+
icon: F,
|
|
722
652
|
isTitle: !0,
|
|
723
653
|
disabled: !1,
|
|
724
654
|
indent: !1,
|
|
@@ -726,37 +656,36 @@ const te = St.exports, ne = {
|
|
|
726
656
|
clickHandler: p,
|
|
727
657
|
addDivider: !0
|
|
728
658
|
},
|
|
729
|
-
...
|
|
659
|
+
...l
|
|
730
660
|
];
|
|
731
|
-
}),
|
|
732
|
-
|
|
733
|
-
(I = (y = (_ = (d = (c = n.value) == null ? void 0 : c.children) == null ? void 0 : d[t.value]) == null ? void 0 : _.children) == null ? void 0 : y[0]) == null || I.focus();
|
|
661
|
+
}), d = async () => {
|
|
662
|
+
n.value?.children?.[t.value]?.children?.[0]?.focus();
|
|
734
663
|
};
|
|
735
664
|
M(async () => {
|
|
736
|
-
setTimeout(() =>
|
|
665
|
+
setTimeout(() => d(), 150);
|
|
737
666
|
});
|
|
738
|
-
const
|
|
739
|
-
t.value > 0 ? (t.value -= 1,
|
|
667
|
+
const i = () => {
|
|
668
|
+
t.value > 0 ? (t.value -= 1, u.value[t.value].disabled && i()) : t.value = s.value, d();
|
|
740
669
|
}, r = () => {
|
|
741
|
-
t.value < s.value ? (t.value += 1,
|
|
670
|
+
t.value < s.value ? (t.value += 1, u.value[t.value].disabled && r()) : t.value = 0, d();
|
|
742
671
|
};
|
|
743
672
|
return {
|
|
744
673
|
// Enums
|
|
745
|
-
BentoMenuEvent:
|
|
674
|
+
BentoMenuEvent: I,
|
|
746
675
|
// Values
|
|
747
676
|
subMenuItemListRefLocal: n,
|
|
748
677
|
subMenuFocusedIndex: t,
|
|
749
|
-
ChevronLeftIcon:
|
|
750
|
-
computedItems:
|
|
678
|
+
ChevronLeftIcon: F,
|
|
679
|
+
computedItems: u,
|
|
751
680
|
// Methods
|
|
752
|
-
closeMenu:
|
|
681
|
+
closeMenu: a,
|
|
753
682
|
onBackButton: p,
|
|
754
|
-
focusPrevious:
|
|
683
|
+
focusPrevious: i,
|
|
755
684
|
focusNext: r
|
|
756
685
|
};
|
|
757
686
|
}
|
|
758
687
|
});
|
|
759
|
-
var
|
|
688
|
+
var St = function() {
|
|
760
689
|
var e = this, n = e._self._c;
|
|
761
690
|
return e._self._setupProxy, n("transition", { attrs: { name: "b-sub-menu-item-list__transition", appear: "" } }, [n("menu-list-container", { staticClass: "b-sub-menu-item-list" }, [n("ul", { ref: "subMenuItemListRefLocal", staticClass: "b-sub-menu-item-list__list", attrs: { role: "menu" }, on: { keydown: [function(t) {
|
|
762
691
|
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : (t.stopPropagation(), e.focusNext.apply(null, arguments));
|
|
@@ -767,49 +696,48 @@ var Et = function() {
|
|
|
767
696
|
}] } }, e._l(e.computedItems, function(t, s) {
|
|
768
697
|
return n("li", { key: `sub-menu-item-list-item-${s}`, attrs: { role: "none" } }, [n("menu-item", { attrs: { text: t.text, handler: t.handler, "secondary-text": t.secondaryText, icon: t.icon, "is-title": t.isTitle, disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: s === e.subMenuFocusedIndex ? "0" : "-1" }, on: { click: t.clickHandler } }), t.addDivider ? n("bento-divider", { staticClass: "b-sub-menu-item-list__divider" }) : e._e()], 1);
|
|
769
698
|
}), 0)])], 1);
|
|
770
|
-
},
|
|
699
|
+
}, xt = [], Et = /* @__PURE__ */ g(
|
|
700
|
+
Ot,
|
|
701
|
+
St,
|
|
771
702
|
xt,
|
|
772
|
-
Et,
|
|
773
|
-
Lt,
|
|
774
703
|
!1,
|
|
775
704
|
null,
|
|
776
705
|
"93387117"
|
|
777
706
|
);
|
|
778
|
-
const
|
|
779
|
-
function
|
|
780
|
-
return Math.max(
|
|
707
|
+
const Lt = Et.exports, te = 350, ne = 150;
|
|
708
|
+
function se(o) {
|
|
709
|
+
return Math.max(ne, Math.min(o, te));
|
|
781
710
|
}
|
|
782
|
-
function
|
|
783
|
-
const s =
|
|
784
|
-
if (!
|
|
711
|
+
function Mt(o, e, n, t) {
|
|
712
|
+
const s = c(0), a = c(0), p = (i) => {
|
|
713
|
+
if (!i || !i.parentElement)
|
|
785
714
|
return;
|
|
786
|
-
const r =
|
|
787
|
-
|
|
788
|
-
const
|
|
789
|
-
s.value = _,
|
|
790
|
-
const y =
|
|
791
|
-
|
|
715
|
+
const r = i.parentElement, l = i.cloneNode(!0);
|
|
716
|
+
l.style.position = "absolute", l.style.visibility = "hidden", r.appendChild(l), l.style.width = "max-content";
|
|
717
|
+
const v = l.offsetWidth, _ = Math.max(ne, Math.min(v, te));
|
|
718
|
+
s.value = _, l.style.width = `${_}px`;
|
|
719
|
+
const y = l.offsetHeight;
|
|
720
|
+
a.value = y, r.removeChild(l), a.value = y;
|
|
792
721
|
};
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
d && p(d);
|
|
722
|
+
K([e, n], async ([i]) => {
|
|
723
|
+
if (i !== null) {
|
|
724
|
+
await N();
|
|
725
|
+
const r = o.value?.[0]?.$el;
|
|
726
|
+
r && p(r);
|
|
799
727
|
} else
|
|
800
|
-
s.value = 0,
|
|
728
|
+
s.value = 0, a.value = 0;
|
|
801
729
|
});
|
|
802
|
-
const
|
|
803
|
-
return { computedStyle:
|
|
804
|
-
const
|
|
805
|
-
width:
|
|
730
|
+
const u = f(() => t?.value ? se(t.value) : 0);
|
|
731
|
+
return { computedStyle: f(() => {
|
|
732
|
+
const i = {
|
|
733
|
+
width: u.value > 0 ? `${u.value}px` : "max-content"
|
|
806
734
|
};
|
|
807
|
-
return n.value && (
|
|
735
|
+
return n.value && (a.value > 0 && (i.height = `${a.value}px`), s.value > 0 && (i.width = `${s.value}px`)), i;
|
|
808
736
|
}) };
|
|
809
737
|
}
|
|
810
|
-
const
|
|
738
|
+
const Tt = h({
|
|
811
739
|
name: "menu-item-list",
|
|
812
|
-
components: { BentoDivider:
|
|
740
|
+
components: { BentoDivider: J, MenuItem: Z, MenuListContainer: Q, SubMenuItemList: Lt },
|
|
813
741
|
props: {
|
|
814
742
|
/**
|
|
815
743
|
* The data to be displayed in the list
|
|
@@ -847,68 +775,66 @@ const Rt = g({
|
|
|
847
775
|
default: null
|
|
848
776
|
}
|
|
849
777
|
},
|
|
850
|
-
emits: [
|
|
778
|
+
emits: [I.CLOSE, "menu-item-click"],
|
|
851
779
|
setup(o, { emit: e, expose: n }) {
|
|
852
|
-
const t =
|
|
853
|
-
let
|
|
854
|
-
return
|
|
855
|
-
...
|
|
856
|
-
indent:
|
|
780
|
+
const t = c(null), s = c(null), a = c(null), p = c(null), u = c(!1), d = c(null), i = c(o.focusLastElement ? o.data.length - 1 : 0), r = c(0), l = c(o.data.length - 1), v = f(() => o.data.some((m) => m.icon)), _ = f(() => o.indentItems || v.value ? o.data.map((m) => {
|
|
781
|
+
let x = !1;
|
|
782
|
+
return m.icon || (x = !0), {
|
|
783
|
+
...m,
|
|
784
|
+
indent: x
|
|
857
785
|
};
|
|
858
786
|
}) : o.data), y = async () => {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
u.value = v, l.value = !0;
|
|
787
|
+
s.value?.children[i.value]?.children[0]?.focus();
|
|
788
|
+
}, B = () => e(I.CLOSE), E = (m, x) => {
|
|
789
|
+
if (m.items) {
|
|
790
|
+
d.value = x, u.value = !0;
|
|
864
791
|
return;
|
|
865
792
|
}
|
|
866
|
-
|
|
793
|
+
d.value = x, u.value = !1, !m.skipClose && o.closeMenuOnItemSelect !== !1 && B(), e("menu-item-click");
|
|
867
794
|
}, O = () => {
|
|
868
|
-
|
|
869
|
-
},
|
|
870
|
-
|
|
871
|
-
},
|
|
872
|
-
|
|
873
|
-
|
|
795
|
+
i.value > 0 ? (i.value -= 1, _.value[i.value].disabled && O()) : i.value = l.value, y();
|
|
796
|
+
}, S = () => {
|
|
797
|
+
i.value < l.value ? (i.value += 1, _.value[i.value].disabled && S()) : i.value = 0, y();
|
|
798
|
+
}, T = (m, x) => {
|
|
799
|
+
m?.items?.length && (d.value = x, u.value = !0);
|
|
800
|
+
}, w = () => {
|
|
801
|
+
d.value && u.value && (d.value = null, u.value = !1);
|
|
874
802
|
}, R = () => {
|
|
875
|
-
u.value
|
|
876
|
-
}, A = () => {
|
|
877
|
-
l.value = !1, u.value = null, y();
|
|
803
|
+
u.value = !1, d.value = null, y();
|
|
878
804
|
};
|
|
879
805
|
n({
|
|
880
806
|
focusItem: y
|
|
881
807
|
});
|
|
882
|
-
const { computedStyle:
|
|
808
|
+
const { computedStyle: A } = Mt(
|
|
883
809
|
p,
|
|
810
|
+
d,
|
|
884
811
|
u,
|
|
885
|
-
|
|
886
|
-
Y(o, "popoverWidth")
|
|
812
|
+
j(o, "popoverWidth")
|
|
887
813
|
);
|
|
888
814
|
return {
|
|
889
815
|
// Values
|
|
890
816
|
menuItemListRef: s,
|
|
891
|
-
menuItemListWrapperRef:
|
|
817
|
+
menuItemListWrapperRef: a,
|
|
892
818
|
subMenuItemListRef: p,
|
|
893
819
|
menuItemRef: t,
|
|
894
820
|
computedData: _,
|
|
895
|
-
computedStyle:
|
|
896
|
-
focusedIndex:
|
|
821
|
+
computedStyle: A,
|
|
822
|
+
focusedIndex: i,
|
|
897
823
|
subMenuFocusedIndex: r,
|
|
898
|
-
showSubMenu:
|
|
899
|
-
visibleSubMenuIndex:
|
|
824
|
+
showSubMenu: u,
|
|
825
|
+
visibleSubMenuIndex: d,
|
|
900
826
|
// Methods
|
|
901
827
|
menuItemClick: E,
|
|
902
|
-
closeMenu:
|
|
828
|
+
closeMenu: B,
|
|
903
829
|
focusPrevious: O,
|
|
904
|
-
focusNext:
|
|
905
|
-
focusRight:
|
|
906
|
-
focusLeft:
|
|
907
|
-
onBackButton:
|
|
830
|
+
focusNext: S,
|
|
831
|
+
focusRight: T,
|
|
832
|
+
focusLeft: w,
|
|
833
|
+
onBackButton: R
|
|
908
834
|
};
|
|
909
835
|
}
|
|
910
836
|
});
|
|
911
|
-
var
|
|
837
|
+
var wt = function() {
|
|
912
838
|
var e = this, n = e._self._c;
|
|
913
839
|
return e._self._setupProxy, n("menu-list-container", { ref: "menuItemListWrapperRef", style: e.computedStyle }, [n("ul", { ref: "menuItemListRef", staticClass: "b-menu-item-list", attrs: { role: "menu" }, on: { keydown: [function(t) {
|
|
914
840
|
return !t.type.indexOf("key") && e._k(t.keyCode, "down", 40, t.key, ["Down", "ArrowDown"]) ? null : e.focusNext.apply(null, arguments);
|
|
@@ -919,28 +845,27 @@ var At = function() {
|
|
|
919
845
|
}, function(t) {
|
|
920
846
|
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.closeMenu.apply(null, arguments);
|
|
921
847
|
}] } }, e._l(e.computedData, function(t, s) {
|
|
922
|
-
var i, p, l, u;
|
|
923
848
|
return n("li", { key: `menu-item-${s}`, ref: "menuItemRef", refInFor: !0, staticClass: "b-menu-item-list__item", attrs: { role: "none" }, on: { keydown: [function(a) {
|
|
924
849
|
return !a.type.indexOf("key") && e._k(a.keyCode, "right", 39, a.key, ["Right", "ArrowRight"]) || "button" in a && a.button !== 2 ? null : e.focusRight(t, s);
|
|
925
850
|
}, function(a) {
|
|
926
851
|
return !a.type.indexOf("key") && e._k(a.keyCode, "left", 37, a.key, ["Left", "ArrowLeft"]) || "button" in a && a.button !== 0 ? null : e.focusLeft();
|
|
927
|
-
}] } }, [n("menu-item", { attrs: { text: t.text, handler:
|
|
852
|
+
}] } }, [n("menu-item", { attrs: { text: t.text, handler: t.items?.length ? () => null : t.handler, "secondary-text": t.secondaryText, icon: t.icon, chevron: !!t.items?.length, disabled: t.disabled, critical: t.critical, indent: t.indent, tabindex: s === e.subMenuFocusedIndex ? "0" : "-1", "aria-haspopup": !!t.items?.length, "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === s }, on: { click: function(a) {
|
|
928
853
|
return e.menuItemClick(t, s);
|
|
929
|
-
} } }), t.addDivider ? n("bento-divider", { staticClass: "b-menu-item-list__divider" }) : e._e(),
|
|
854
|
+
} } }), t.addDivider ? n("bento-divider", { staticClass: "b-menu-item-list__divider" }) : e._e(), t.items?.length && e.showSubMenu && e.visibleSubMenuIndex === s ? n("sub-menu-item-list", { ref: "subMenuItemListRef", refInFor: !0, attrs: { items: t.items, title: t.text }, on: { back: e.onBackButton, close: e.closeMenu } }) : e._e()], 1);
|
|
930
855
|
}), 0)]);
|
|
931
|
-
},
|
|
856
|
+
}, Rt = [], At = /* @__PURE__ */ g(
|
|
857
|
+
Tt,
|
|
858
|
+
wt,
|
|
932
859
|
Rt,
|
|
933
|
-
At,
|
|
934
|
-
Nt,
|
|
935
860
|
!1,
|
|
936
861
|
null,
|
|
937
862
|
"273aba04"
|
|
938
863
|
);
|
|
939
|
-
const
|
|
940
|
-
i18n: { messages:
|
|
864
|
+
const Nt = At.exports, Pt = /* @__PURE__ */ Symbol("menu inverse style injection key"), Dt = {
|
|
865
|
+
i18n: { messages: ee },
|
|
941
866
|
name: "bento-menu"
|
|
942
|
-
},
|
|
943
|
-
|
|
867
|
+
}, Ft = /* @__PURE__ */ h({
|
|
868
|
+
...Dt,
|
|
944
869
|
props: {
|
|
945
870
|
button: { default: () => ({
|
|
946
871
|
variant: "secondary"
|
|
@@ -957,55 +882,53 @@ const Dt = Pt.exports, Ft = /* @__PURE__ */ Symbol("menu inverse style injection
|
|
|
957
882
|
},
|
|
958
883
|
emits: ["menu-item-click", "click-outside"],
|
|
959
884
|
setup(o, { expose: e, emit: n }) {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
const y = m(() => ({
|
|
885
|
+
const t = o, s = L(), a = P(s), { t: p } = G(), u = c(null), d = c(null), i = c(!1), r = c(!1), l = c(null), v = be("menu"), _ = C(Pt, c(!1));
|
|
886
|
+
ie(ce, _);
|
|
887
|
+
const y = f(() => ({
|
|
964
888
|
"b-menu--inverse": _.value
|
|
965
|
-
})),
|
|
966
|
-
() => t.menuWidth ? { width: `${
|
|
967
|
-
), E =
|
|
968
|
-
if (t
|
|
889
|
+
})), B = f(
|
|
890
|
+
() => t.menuWidth ? { width: `${se(t.menuWidth)}px` } : null
|
|
891
|
+
), E = f(() => {
|
|
892
|
+
if (t?.button)
|
|
969
893
|
return {
|
|
970
894
|
variant: "secondary",
|
|
971
895
|
...t.button
|
|
972
896
|
};
|
|
973
897
|
}), O = () => {
|
|
974
|
-
|
|
975
|
-
},
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
}, N = () => {
|
|
898
|
+
i.value = !0, n(I.OPEN);
|
|
899
|
+
}, S = async (m = t.revertFocusToButton) => {
|
|
900
|
+
i.value && (i.value = !1, m && (await N(), u.value?.$el?.focus()), n(I.CLOSE));
|
|
901
|
+
}, T = (m) => {
|
|
902
|
+
m.stopPropagation(), i.value ? S() : O();
|
|
903
|
+
}, w = (m) => {
|
|
904
|
+
m.preventDefault(), r.value = !1, t.disableArrowDownOpeningMenu || O();
|
|
905
|
+
}, R = (m) => {
|
|
906
|
+
m.preventDefault(), r.value = !0, O();
|
|
907
|
+
}, A = () => {
|
|
985
908
|
n("menu-item-click");
|
|
986
909
|
};
|
|
987
|
-
return
|
|
988
|
-
|
|
910
|
+
return He(
|
|
911
|
+
l,
|
|
989
912
|
() => {
|
|
990
|
-
|
|
913
|
+
S(), n("click-outside");
|
|
991
914
|
},
|
|
992
915
|
{
|
|
993
916
|
...t.closeOnClickOutsideOptions,
|
|
994
|
-
ignore: [
|
|
917
|
+
ignore: [u, ...t.closeOnClickOutsideOptions?.ignore ?? []]
|
|
995
918
|
}
|
|
996
919
|
), e({
|
|
997
920
|
/**
|
|
998
921
|
* Control to enable programmatic closing of the menu
|
|
999
922
|
*/
|
|
1000
|
-
closeMenu:
|
|
923
|
+
closeMenu: S
|
|
1001
924
|
}), M(() => {
|
|
1002
|
-
|
|
925
|
+
a("iconRight") && fe(
|
|
1003
926
|
'"bento-menu" no longer supports the "iconRight" slot. The right-aligned icon is now fixed by design.'
|
|
1004
927
|
);
|
|
1005
|
-
}), { __sfc: !0, props: t, emit: n, slots: s, hasSlot:
|
|
928
|
+
}), { __sfc: !0, props: t, emit: n, slots: s, hasSlot: a, t: p, menuButtonRef: u, menuItemListRef: d, showMenu: i, isLastElementFocused: r, popoverRef: l, menuId: v, isInverseColorSet: _, computedClasses: y, computedMenuWidth: B, computedButtonPropsWithDefaults: E, openMenu: O, closeMenu: S, toggleShowMenu: T, onKeyDown: w, onKeyUp: R, menuItemClick: A, BentoToggleButton: De, BentoPopover: st, BentoTeleport: ut, ChevronDownIcon: he, OptionsVerticalIcon: mt, MenuItemList: Nt };
|
|
1006
929
|
}
|
|
1007
930
|
});
|
|
1008
|
-
var
|
|
931
|
+
var $t = function() {
|
|
1009
932
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1010
933
|
return n("div", { staticClass: "b-menu", class: t.computedClasses, attrs: { "data-testid": "menu" }, on: { keydown: [function(s) {
|
|
1011
934
|
return !s.type.indexOf("key") && e._k(s.keyCode, "down", 40, s.key, ["Down", "ArrowDown"]) ? null : t.onKeyDown.apply(null, arguments);
|
|
@@ -1031,60 +954,57 @@ var Vt = function() {
|
|
|
1031
954
|
"left-start",
|
|
1032
955
|
"left-end"
|
|
1033
956
|
], teleport: e.teleport, "without-space": "" } }, [n(t.MenuItemList, { ref: "menuItemListRef", attrs: { "close-menu-on-item-select": e.closeMenuOnItemSelect, data: e.data, "focus-last-element": t.isLastElementFocused, "popover-width": e.menuWidth }, on: { close: t.closeMenu, "menu-item-click": t.menuItemClick } })], 1) : e._e()], 1) : e._e()], 1);
|
|
1034
|
-
}, Wt = [],
|
|
1035
|
-
|
|
1036
|
-
|
|
957
|
+
}, Wt = [], Ut = /* @__PURE__ */ g(
|
|
958
|
+
Ft,
|
|
959
|
+
$t,
|
|
1037
960
|
Wt,
|
|
1038
961
|
!1,
|
|
1039
962
|
null,
|
|
1040
963
|
"b2eabd1e"
|
|
1041
964
|
);
|
|
1042
|
-
const
|
|
965
|
+
const Vt = Ut.exports, Kt = /* @__PURE__ */ Symbol(
|
|
1043
966
|
"button actions with menu container injection key"
|
|
1044
|
-
),
|
|
1045
|
-
const t =
|
|
967
|
+
), jt = 242, U = parseInt(Be, 10), Gt = (o, e, n) => {
|
|
968
|
+
const t = c(0);
|
|
1046
969
|
let s = null;
|
|
1047
|
-
const { buttonActionsWithMenu:
|
|
1048
|
-
buttonActionsWithMenu:
|
|
1049
|
-
menu:
|
|
1050
|
-
stackButtons:
|
|
1051
|
-
}),
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
), _ =
|
|
1057
|
-
return
|
|
970
|
+
const { buttonActionsWithMenu: a, menu: p, stackButtons: u } = C(Kt, {
|
|
971
|
+
buttonActionsWithMenu: c(null),
|
|
972
|
+
menu: c(null),
|
|
973
|
+
stackButtons: c(!1)
|
|
974
|
+
}), d = f(() => a.value ?? o.value), i = f(() => p.value ? [...e.value, p.value.$el] : e.value), r = (l) => {
|
|
975
|
+
const v = i.value?.reduce(
|
|
976
|
+
(y, B) => y + B.clientWidth + U,
|
|
977
|
+
-U - 1
|
|
978
|
+
// to remove the extra spacing, as if there's 3 buttons, only two will have a gap in between
|
|
979
|
+
), _ = d.value.clientWidth;
|
|
980
|
+
return l && (t.value = _ >= jt && !u.value ? v : 0), t.value > _;
|
|
1058
981
|
};
|
|
1059
|
-
return
|
|
1060
|
-
() =>
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
!!d.data
|
|
1072
|
-
]);
|
|
1073
|
-
},
|
|
982
|
+
return K(
|
|
983
|
+
() => n.value?.map((l) => [
|
|
984
|
+
l.title,
|
|
985
|
+
l.state,
|
|
986
|
+
l.variant,
|
|
987
|
+
l.condensed,
|
|
988
|
+
l.iconOnly,
|
|
989
|
+
!!l.icon,
|
|
990
|
+
!!l.iconLeft,
|
|
991
|
+
!!l.iconRight,
|
|
992
|
+
!!l.data
|
|
993
|
+
]),
|
|
1074
994
|
() => {
|
|
1075
|
-
|
|
1076
|
-
|
|
995
|
+
N(() => {
|
|
996
|
+
u.value = r(!0);
|
|
1077
997
|
});
|
|
1078
998
|
}
|
|
1079
999
|
), M(() => {
|
|
1080
|
-
s =
|
|
1081
|
-
|
|
1000
|
+
s = Ie(d.value, () => {
|
|
1001
|
+
u.value = r(t.value === 0);
|
|
1082
1002
|
});
|
|
1083
|
-
}),
|
|
1084
|
-
s
|
|
1085
|
-
}),
|
|
1086
|
-
},
|
|
1087
|
-
...
|
|
1003
|
+
}), V(() => {
|
|
1004
|
+
s?.disconnect();
|
|
1005
|
+
}), u;
|
|
1006
|
+
}, Yt = {}, Jt = /* @__PURE__ */ h({
|
|
1007
|
+
...Yt,
|
|
1088
1008
|
__name: "button-actions",
|
|
1089
1009
|
props: {
|
|
1090
1010
|
actions: null,
|
|
@@ -1092,30 +1012,30 @@ const jt = Kt.exports, Gt = /* @__PURE__ */ Symbol(
|
|
|
1092
1012
|
layout: { default: "buttons-end" }
|
|
1093
1013
|
},
|
|
1094
1014
|
setup(o) {
|
|
1095
|
-
const e = o, n =
|
|
1096
|
-
const
|
|
1097
|
-
return r ===
|
|
1098
|
-
},
|
|
1015
|
+
const e = o, n = c(null), t = c(null), s = Gt(n, t, j(e, "actions")), a = f(() => e.actions.slice().reverse()), p = (r) => {
|
|
1016
|
+
const l = e.actions.length - 1;
|
|
1017
|
+
return r === l ? "primary" : "secondary";
|
|
1018
|
+
}, u = f(() => ({
|
|
1099
1019
|
[`b-button-actions--${e.layout}`]: !0,
|
|
1100
1020
|
"b-button-actions--stacked-buttons": s.value
|
|
1101
1021
|
}));
|
|
1102
|
-
return { __sfc: !0, props: e, buttonActions: n, buttons: t, stackButtons: s, reversedActionsList:
|
|
1022
|
+
return { __sfc: !0, props: e, buttonActions: n, buttons: t, stackButtons: s, reversedActionsList: a, generateButtonVariantByIndex: p, conditionalClasses: u, generateButtonEvents: (r) => r?.event !== void 0 ? {
|
|
1103
1023
|
click: r.event
|
|
1104
|
-
} : {}, isIconOnly: (r) => r.iconOnly && (r.iconLeft || r.iconRight || r.icon), BentoButton:
|
|
1024
|
+
} : {}, isIconOnly: (r) => r.iconOnly && (r.iconLeft || r.iconRight || r.icon), BentoButton: b, BentoLoadingButton: Te, BentoMenu: Vt };
|
|
1105
1025
|
}
|
|
1106
1026
|
});
|
|
1107
|
-
var
|
|
1027
|
+
var Ht = function() {
|
|
1108
1028
|
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
1109
|
-
return n("div", { ref: "buttonActions", staticClass: "b-button-actions" }, [n("div", { staticClass: "b-button-actions__container-wrapper", class: t.conditionalClasses, attrs: { role: "group" } }, e._l(t.reversedActionsList, function(s,
|
|
1110
|
-
return n("div", { key:
|
|
1029
|
+
return n("div", { ref: "buttonActions", staticClass: "b-button-actions" }, [n("div", { staticClass: "b-button-actions__container-wrapper", class: t.conditionalClasses, attrs: { role: "group" } }, e._l(t.reversedActionsList, function(s, a) {
|
|
1030
|
+
return n("div", { key: a, ref: "buttons", refInFor: !0, staticClass: "b-button-actions__button-wrapper" }, [s.data ? [n(t.BentoMenu, { ref: s.elementRef, refInFor: !0, attrs: { data: s.data, "close-menu-on-item-select": s.closeMenuOnItemSelect, "close-on-click-outside-options": s.closeOnClickOutsideOptions, "disable-arrow-down-opening-menu": s.disableArrowDownOpeningMenu, "menu-position": s.menuPosition, "menu-fixed-positioning": s.menuFixedPositioning, "menu-width": s.menuWidth, "revert-focus-to-button": s.revertFocusToButton, teleport: s.teleport }, scopedSlots: e._u([s.icon || s.iconLeft ? { key: "iconLeft", fn: function() {
|
|
1111
1031
|
return [n(s.icon || s.iconLeft, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
1112
1032
|
}, proxy: !0 } : null, t.isIconOnly(s) ? null : { key: "default", fn: function() {
|
|
1113
1033
|
return [e._v(" " + e._s(s.title) + " ")];
|
|
1114
|
-
}, proxy: !0 }], null, !0) })] : [s.state ? n(t.BentoLoadingButton, e._g({ ref: s.elementRef, refInFor: !0, attrs: { condensed: s.condensed, critical: s.critical, disabled: s.disabled, inverse: e.inverse, state: s.state, variant: s.variant || t.generateButtonVariantByIndex(
|
|
1034
|
+
}, proxy: !0 }], null, !0) })] : [s.state ? n(t.BentoLoadingButton, e._g({ ref: s.elementRef, refInFor: !0, attrs: { condensed: s.condensed, critical: s.critical, disabled: s.disabled, inverse: e.inverse, state: s.state, variant: s.variant || t.generateButtonVariantByIndex(a) }, scopedSlots: e._u([s.icon || s.iconLeft ? { key: "iconLeft", fn: function() {
|
|
1115
1035
|
return [n(s.icon || s.iconLeft, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
1116
1036
|
}, proxy: !0 } : null, t.isIconOnly(s) ? null : { key: "default", fn: function() {
|
|
1117
1037
|
return [e._v(" " + e._s(s.title) + " ")];
|
|
1118
|
-
}, proxy: !0 }], null, !0) }, t.generateButtonEvents(s))) : n(t.BentoButton, e._g({ ref: s.elementRef, refInFor: !0, attrs: { condensed: s.condensed, critical: s.critical, disabled: s.disabled, inverse: e.inverse, link: s.link, variant: s.variant || t.generateButtonVariantByIndex(
|
|
1038
|
+
}, proxy: !0 }], null, !0) }, t.generateButtonEvents(s))) : n(t.BentoButton, e._g({ ref: s.elementRef, refInFor: !0, attrs: { condensed: s.condensed, critical: s.critical, disabled: s.disabled, inverse: e.inverse, link: s.link, variant: s.variant || t.generateButtonVariantByIndex(a) }, scopedSlots: e._u([s.icon || s.iconLeft ? { key: "iconLeft", fn: function() {
|
|
1119
1039
|
return [n(s.icon || s.iconLeft, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
1120
1040
|
}, proxy: !0 } : null, t.isIconOnly(s) ? null : { key: "default", fn: function() {
|
|
1121
1041
|
return [e._v(" " + e._s(s.title) + " ")];
|
|
@@ -1123,36 +1043,36 @@ var Xt = function() {
|
|
|
1123
1043
|
return [n(s.iconRight, { tag: "component", attrs: { "svg-title": s.title } })];
|
|
1124
1044
|
}, proxy: !0 } : null], null, !0) }, t.generateButtonEvents(s)))]], 2);
|
|
1125
1045
|
}), 0)]);
|
|
1126
|
-
},
|
|
1046
|
+
}, zt = [], Xt = /* @__PURE__ */ g(
|
|
1047
|
+
Jt,
|
|
1048
|
+
Ht,
|
|
1127
1049
|
zt,
|
|
1128
|
-
Xt,
|
|
1129
|
-
qt,
|
|
1130
1050
|
!1,
|
|
1131
1051
|
null,
|
|
1132
1052
|
"82f686dc"
|
|
1133
1053
|
);
|
|
1134
|
-
const
|
|
1054
|
+
const qt = Xt.exports;
|
|
1135
1055
|
export {
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1056
|
+
qt as B,
|
|
1057
|
+
ht as D,
|
|
1058
|
+
ze as I,
|
|
1059
|
+
Pt as M,
|
|
1060
|
+
mt as O,
|
|
1061
|
+
qe as P,
|
|
1062
|
+
X as S,
|
|
1063
|
+
Te as a,
|
|
1064
|
+
k as b,
|
|
1065
|
+
De as c,
|
|
1066
|
+
Kt as d,
|
|
1067
|
+
ut as e,
|
|
1068
|
+
Vt as f,
|
|
1069
|
+
I as g,
|
|
1070
|
+
st as h,
|
|
1071
|
+
kn as i,
|
|
1072
|
+
In as j,
|
|
1073
|
+
q as k,
|
|
1074
|
+
z as l,
|
|
1075
|
+
Xe as m,
|
|
1076
|
+
He as u
|
|
1157
1077
|
};
|
|
1158
|
-
//# sourceMappingURL=button-actions.
|
|
1078
|
+
//# sourceMappingURL=button-actions.CxX7lK7z.js.map
|