@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,117 +1,111 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { B as
|
|
3
|
-
import { g as
|
|
4
|
-
import { u as
|
|
5
|
-
import { s as
|
|
6
|
-
import { u as
|
|
7
|
-
import { C as
|
|
8
|
-
import { C as
|
|
9
|
-
import { n as
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as
|
|
1
|
+
import { computed as n, ref as L, onMounted as ct, onUnmounted as dt, watch as Q, defineComponent as F, nextTick as Y, toRef as q, useSlots as Se, useAttrs as Pe, toRefs as je, inject as Fe } from "vue";
|
|
2
|
+
import { B as le, d as Me } from "./typography.D1OZJbEa.js";
|
|
3
|
+
import { g as te } from "./generate-uid.DBWe4g6T.js";
|
|
4
|
+
import { u as ae } from "./index.CPOlyau9.js";
|
|
5
|
+
import { s as ne } from "./events.BQOQSSb7.js";
|
|
6
|
+
import { u as He } from "./use-has-slot.C9lQZ6nz.js";
|
|
7
|
+
import { C as ut } from "./cross-circle-fill.DTDtgLMf.js";
|
|
8
|
+
import { C as pt } from "./cross-circle-fill-small.DfxDedRr.js";
|
|
9
|
+
import { n as V } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
10
|
+
import { C as Je } from "./chevron-down.eYtgv5ly.js";
|
|
11
|
+
import { C as Xe } from "./chevron-up.d8cwIlA_.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { o as
|
|
13
|
+
import { u as ft } from "./aria-label.CaUURpnB.js";
|
|
14
|
+
import { u as bt } from "./form-field.D_2g7vaP.js";
|
|
15
|
+
import { u as mt } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
16
|
+
import { B as z, a as Te } from "./keyboard-navigation.DWmhelVv.js";
|
|
17
|
+
import { B as Ze } from "./loading-indicator.PxbRzshH.js";
|
|
18
|
+
import { B as Qe } from "./empty-state.fziM-yAC.js";
|
|
19
|
+
import { o as vt } from "./resize.Bqks3WUm.js";
|
|
20
20
|
import "./index.Cl4_42j5.js";
|
|
21
|
-
import { C as
|
|
22
|
-
import { C as
|
|
23
|
-
import { B as
|
|
24
|
-
import { b as
|
|
25
|
-
import { B as
|
|
26
|
-
import { F as
|
|
27
|
-
import { E as
|
|
28
|
-
import { P as
|
|
21
|
+
import { C as Ee, N as yt } from "./minus-small.DJacLGTw.js";
|
|
22
|
+
import { C as _t } from "./checkmark-small.DVDtD4HQ.js";
|
|
23
|
+
import { B as gt } from "./chip.wgEnbEPw.js";
|
|
24
|
+
import { b as we, a as ht, h as St, e as xt } from "./button-actions.CxX7lK7z.js";
|
|
25
|
+
import { B as Ct } from "./directive.D1-d-C2K.js";
|
|
26
|
+
import { F as Lt } from "./field-label.CgdTst2l.js";
|
|
27
|
+
import { E as Ot } from "./error-message.BEHBfjmn.js";
|
|
28
|
+
import { P as Ge } from "./popper-container.D08eTt4B.js";
|
|
29
29
|
import "../assets/dropdown.css";
|
|
30
|
-
const
|
|
31
|
-
const s =
|
|
32
|
-
() =>
|
|
33
|
-
|
|
34
|
-
return !!((r = a.value) != null && r.length) && ((v = a.value) == null ? void 0 : v.length) === e.value.length;
|
|
35
|
-
}
|
|
36
|
-
), o = i(() => {
|
|
37
|
-
var r;
|
|
38
|
-
return a.value == null || a.value.length === 0 ? !1 : ((r = a.value) == null ? void 0 : r.length) !== e.value.length;
|
|
39
|
-
});
|
|
30
|
+
const et = (a, e, l, t) => {
|
|
31
|
+
const s = n(
|
|
32
|
+
() => !!a.value?.length && a.value?.length === e.value.length
|
|
33
|
+
), o = n(() => a.value == null || a.value.length === 0 ? !1 : a.value?.length !== e.value.length);
|
|
40
34
|
return {
|
|
41
35
|
isAllSelected: s,
|
|
42
36
|
isIndeterminate: o,
|
|
43
|
-
toggleSelectAll: (
|
|
44
|
-
|
|
37
|
+
toggleSelectAll: (p) => {
|
|
38
|
+
p ? l() : t();
|
|
45
39
|
}
|
|
46
40
|
};
|
|
47
41
|
};
|
|
48
|
-
function
|
|
49
|
-
const o =
|
|
50
|
-
let
|
|
51
|
-
const
|
|
52
|
-
const
|
|
42
|
+
function It(a, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: s }) {
|
|
43
|
+
const o = L(null), i = L([]), p = L(0), _ = L(0), c = L(0);
|
|
44
|
+
let r;
|
|
45
|
+
const m = n(() => {
|
|
46
|
+
const v = typeof l == "number" ? a.value.length * l : a.value.reduce((D, A, w) => D + l(w), 0), I = typeof l == "number" ? p.value * l : a.value.slice(0, p.value).reduce((D, A, w) => D + l(w), 0);
|
|
53
47
|
return {
|
|
54
48
|
style: {
|
|
55
|
-
marginTop: `${
|
|
56
|
-
height: `${
|
|
49
|
+
marginTop: `${I}px`,
|
|
50
|
+
height: `${v - I}px`
|
|
57
51
|
}
|
|
58
52
|
};
|
|
59
|
-
}),
|
|
60
|
-
const
|
|
53
|
+
}), u = () => {
|
|
54
|
+
const v = s?.value ?? 0, I = Math.max(o.value.scrollTop - v, 0);
|
|
61
55
|
if (typeof l == "number")
|
|
62
|
-
return Math.floor(
|
|
63
|
-
let
|
|
64
|
-
for (let
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
A =
|
|
56
|
+
return Math.floor(I / l);
|
|
57
|
+
let D = 0, A = 0;
|
|
58
|
+
for (let w = 0; w < a.value.length; w += 1) {
|
|
59
|
+
const T = l(w);
|
|
60
|
+
if (D += T, D >= I) {
|
|
61
|
+
A = w;
|
|
68
62
|
break;
|
|
69
63
|
}
|
|
70
64
|
}
|
|
71
65
|
return A;
|
|
72
|
-
},
|
|
73
|
-
if (
|
|
74
|
-
return Math.ceil(
|
|
75
|
-
const
|
|
76
|
-
let
|
|
77
|
-
for (let A =
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
66
|
+
}, b = () => {
|
|
67
|
+
if (c.value = o.value.clientHeight, typeof l == "number")
|
|
68
|
+
return Math.ceil(c.value / l);
|
|
69
|
+
const v = p.value ?? 0;
|
|
70
|
+
let I = 0, D = 0;
|
|
71
|
+
for (let A = v; A < a.value.length; A += 1) {
|
|
72
|
+
const w = l(A);
|
|
73
|
+
if (I += w, D = A, I > c.value)
|
|
80
74
|
break;
|
|
81
75
|
}
|
|
82
|
-
return
|
|
83
|
-
},
|
|
76
|
+
return D - v;
|
|
77
|
+
}, x = () => {
|
|
84
78
|
if (o.value) {
|
|
85
|
-
const
|
|
86
|
-
|
|
79
|
+
const v = b();
|
|
80
|
+
p.value = u(), _.value = Math.min(p.value + v + t, a.value.length), i.value = a.value.slice(p.value, _.value);
|
|
87
81
|
}
|
|
88
|
-
},
|
|
89
|
-
|
|
82
|
+
}, g = () => {
|
|
83
|
+
x();
|
|
90
84
|
};
|
|
91
|
-
e || (
|
|
92
|
-
o.value && (
|
|
93
|
-
|
|
94
|
-
}),
|
|
95
|
-
}),
|
|
96
|
-
|
|
97
|
-
}),
|
|
85
|
+
e || (ct(() => {
|
|
86
|
+
o.value && (c.value = o.value.clientHeight, r = vt(o.value, ({ clientHeight: v }) => {
|
|
87
|
+
c.value = v, x();
|
|
88
|
+
}), x());
|
|
89
|
+
}), dt(() => {
|
|
90
|
+
r?.disconnect();
|
|
91
|
+
}), Q(
|
|
98
92
|
() => a.value,
|
|
99
93
|
() => {
|
|
100
|
-
|
|
94
|
+
x();
|
|
101
95
|
}
|
|
102
96
|
));
|
|
103
|
-
const
|
|
97
|
+
const M = {
|
|
104
98
|
ref: o,
|
|
105
99
|
style: { overflowY: "auto" }
|
|
106
|
-
},
|
|
100
|
+
}, B = (v) => {
|
|
107
101
|
if (!o.value)
|
|
108
102
|
return;
|
|
109
|
-
const
|
|
110
|
-
A > G ? o.value.scrollTop =
|
|
103
|
+
const I = typeof l == "number" ? v * l : a.value.slice(0, v).reduce((U, h, R) => U + l(R), 0), D = typeof l == "number" ? l : l(v), A = I + D, { scrollTop: w, clientHeight: T } = o.value, G = w + T;
|
|
104
|
+
A > G ? o.value.scrollTop = T > 0 ? A - T : I : I < w && (o.value.scrollTop = I), x();
|
|
111
105
|
};
|
|
112
106
|
return e ? {
|
|
113
107
|
containerRef: o,
|
|
114
|
-
containerProps:
|
|
108
|
+
containerProps: M,
|
|
115
109
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
116
110
|
onScroll: () => {
|
|
117
111
|
},
|
|
@@ -119,22 +113,22 @@ function Tt(a, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: s })
|
|
|
119
113
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
120
114
|
scrollToIndex: () => {
|
|
121
115
|
},
|
|
122
|
-
startIndex:
|
|
116
|
+
startIndex: L(0)
|
|
123
117
|
} : {
|
|
124
118
|
containerRef: o,
|
|
125
|
-
containerProps:
|
|
126
|
-
onScroll:
|
|
127
|
-
list:
|
|
128
|
-
wrapperProps:
|
|
129
|
-
scrollToIndex:
|
|
130
|
-
startIndex:
|
|
119
|
+
containerProps: M,
|
|
120
|
+
onScroll: g,
|
|
121
|
+
list: i,
|
|
122
|
+
wrapperProps: m,
|
|
123
|
+
scrollToIndex: B,
|
|
124
|
+
startIndex: p
|
|
131
125
|
};
|
|
132
126
|
}
|
|
133
|
-
var
|
|
134
|
-
const
|
|
127
|
+
var d = /* @__PURE__ */ ((a) => (a.SELECT = "select", a.SHOW_MORE = "show-more", a.ESCAPE = "escape-pressed", a.CLICK = "click", a.ENTER = "enter-pressed", a.SPACE = "space-pressed", a.TAB = "tab-pressed", a.CLOSE_DROPDOWN = "close-dropdown", a))(d || {}), Z = /* @__PURE__ */ ((a) => (a.AUTOMATIC = "automatic", a.BUTTON = "button", a.NONE = "none", a))(Z || {});
|
|
128
|
+
const Et = F({
|
|
135
129
|
name: "bento-listbox-static-category",
|
|
136
130
|
components: {
|
|
137
|
-
BentoTypography:
|
|
131
|
+
BentoTypography: le
|
|
138
132
|
},
|
|
139
133
|
props: {
|
|
140
134
|
/**
|
|
@@ -146,18 +140,18 @@ const At = z({
|
|
|
146
140
|
}
|
|
147
141
|
}
|
|
148
142
|
});
|
|
149
|
-
var
|
|
143
|
+
var wt = function() {
|
|
150
144
|
var e = this, l = e._self._c;
|
|
151
145
|
return e._self._setupProxy, l("div", { staticClass: "b-listbox-single-select-category", attrs: { role: "group", "aria-label": e.categoryLabel } }, [l("bento-typography", { staticClass: "b-listbox-single-select-category__label-text", attrs: { variant: "caption", el: "span", "aria-hidden": "true" } }, [e._v(" " + e._s(e.categoryLabel) + " ")]), l("div", [e._t("default")], 2)], 1);
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
146
|
+
}, Tt = [], At = /* @__PURE__ */ V(
|
|
147
|
+
Et,
|
|
148
|
+
wt,
|
|
149
|
+
Tt,
|
|
156
150
|
!1,
|
|
157
151
|
null,
|
|
158
152
|
"bfbc1649"
|
|
159
153
|
);
|
|
160
|
-
const
|
|
154
|
+
const kt = At.exports, Dt = F({
|
|
161
155
|
name: "bento-listbox-option",
|
|
162
156
|
props: {
|
|
163
157
|
/**
|
|
@@ -169,29 +163,29 @@ const Rt = Bt.exports, Mt = z({
|
|
|
169
163
|
*/
|
|
170
164
|
selected: { type: Boolean, default: !1 }
|
|
171
165
|
},
|
|
172
|
-
emits: [
|
|
166
|
+
emits: [d.CLICK, d.ENTER, d.SPACE, d.TAB],
|
|
173
167
|
setup(a, { emit: e }) {
|
|
174
|
-
const l =
|
|
168
|
+
const l = n(() => ({
|
|
175
169
|
"b-listbox-option--disabled": a.disabled,
|
|
176
170
|
"b-listbox-option--selected": a.selected
|
|
177
171
|
}));
|
|
178
172
|
return {
|
|
179
173
|
// Enums
|
|
180
|
-
BentoKeyboardNavigationKeyDownEvent:
|
|
181
|
-
BentoListboxEvent:
|
|
174
|
+
BentoKeyboardNavigationKeyDownEvent: z,
|
|
175
|
+
BentoListboxEvent: d,
|
|
182
176
|
// Values
|
|
183
177
|
conditionalClasses: l,
|
|
184
178
|
// Events
|
|
185
179
|
onClick: (o) => {
|
|
186
|
-
e(
|
|
180
|
+
e(d.CLICK, o);
|
|
187
181
|
},
|
|
188
|
-
onOptionSelected: (o,
|
|
189
|
-
e(o,
|
|
182
|
+
onOptionSelected: (o, i) => {
|
|
183
|
+
e(o, i);
|
|
190
184
|
}
|
|
191
185
|
};
|
|
192
186
|
}
|
|
193
187
|
});
|
|
194
|
-
var
|
|
188
|
+
var Bt = function() {
|
|
195
189
|
var e = this, l = e._self._c;
|
|
196
190
|
return e._self._setupProxy, l("div", e._b({ staticClass: "b-listbox-option", class: e.conditionalClasses, attrs: { role: "option" }, on: { click: e.onClick, keydown: [function(t) {
|
|
197
191
|
return !t.type.indexOf("key") && e._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, t);
|
|
@@ -200,38 +194,38 @@ var Nt = function() {
|
|
|
200
194
|
}, function(t) {
|
|
201
195
|
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, t);
|
|
202
196
|
}] } }, "div", e.$attrs, !1), [e._t("default")], 2);
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
197
|
+
}, Rt = [], Mt = /* @__PURE__ */ V(
|
|
198
|
+
Dt,
|
|
199
|
+
Bt,
|
|
200
|
+
Rt,
|
|
207
201
|
!1,
|
|
208
202
|
null,
|
|
209
203
|
"c345b6c0"
|
|
210
204
|
);
|
|
211
|
-
const
|
|
212
|
-
let
|
|
213
|
-
const
|
|
205
|
+
const Ae = Mt.exports;
|
|
206
|
+
let Ue = 0;
|
|
207
|
+
const Nt = {
|
|
214
208
|
beforeCreate() {
|
|
215
|
-
this.uuid =
|
|
209
|
+
this.uuid = Ue.toString(), Ue += 1;
|
|
216
210
|
}
|
|
217
211
|
};
|
|
218
|
-
var
|
|
212
|
+
var $t = function() {
|
|
219
213
|
var e = this, l = e._self._c;
|
|
220
214
|
return l("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"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
215
|
+
}, Pt = [], Ft = /* @__PURE__ */ V(
|
|
216
|
+
Nt,
|
|
217
|
+
$t,
|
|
218
|
+
Pt,
|
|
225
219
|
!1,
|
|
226
220
|
null,
|
|
227
221
|
null
|
|
228
222
|
);
|
|
229
|
-
const
|
|
223
|
+
const zt = Ft.exports, Vt = F({
|
|
230
224
|
name: "bento-listbox-single-select-option",
|
|
231
225
|
components: {
|
|
232
|
-
BentoListboxOption:
|
|
233
|
-
BentoTypography:
|
|
234
|
-
CheckmarkIcon:
|
|
226
|
+
BentoListboxOption: Ae,
|
|
227
|
+
BentoTypography: le,
|
|
228
|
+
CheckmarkIcon: zt
|
|
235
229
|
},
|
|
236
230
|
props: {
|
|
237
231
|
/**
|
|
@@ -251,24 +245,24 @@ const Gt = Ut.exports, Wt = z({
|
|
|
251
245
|
*/
|
|
252
246
|
selected: { type: Boolean, default: !1 }
|
|
253
247
|
},
|
|
254
|
-
emits: [
|
|
248
|
+
emits: [d.ENTER, d.SELECT, d.SPACE, d.TAB],
|
|
255
249
|
setup(a, { emit: e }) {
|
|
256
|
-
const l = (
|
|
257
|
-
a.disabled || e(
|
|
258
|
-
}, t =
|
|
250
|
+
const l = (i) => {
|
|
251
|
+
a.disabled || e(i, a.option);
|
|
252
|
+
}, t = n(() => a.disabled ? !0 : null), s = n(() => a.selected ? !0 : null), o = n(() => a.disabled ? -1 : 0);
|
|
259
253
|
return {
|
|
260
254
|
// Values
|
|
261
255
|
ariaDisabled: t,
|
|
262
256
|
ariaSelected: s,
|
|
263
257
|
tabIndex: o,
|
|
264
258
|
// Enums
|
|
265
|
-
BentoListboxEvent:
|
|
259
|
+
BentoListboxEvent: d,
|
|
266
260
|
// Events
|
|
267
261
|
onOptionSelected: l
|
|
268
262
|
};
|
|
269
263
|
}
|
|
270
264
|
});
|
|
271
|
-
var
|
|
265
|
+
var Gt = function() {
|
|
272
266
|
var e = this, l = e._self._c;
|
|
273
267
|
return e._self._setupProxy, l("bento-listbox-option", { staticClass: "b-listbox-single-select-option", attrs: { disabled: e.disabled, selected: e.selected, "aria-selected": e.ariaSelected, "aria-disabled": e.ariaDisabled, tabindex: e.tabIndex }, on: { click: function(t) {
|
|
274
268
|
return e.onOptionSelected(e.BentoListboxEvent.SELECT);
|
|
@@ -281,17 +275,17 @@ var Kt = function() {
|
|
|
281
275
|
} } }, [e._t("default", function() {
|
|
282
276
|
return [l("span", { staticClass: "b-listbox-single-select-option__text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.option.label))]), e.option.description ? l("bento-typography", { staticClass: "b-listbox-single-select-option__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.option.description) + " ")]) : e._e()], 1)];
|
|
283
277
|
}, null, e.option), l("span", { staticClass: "b-listbox-single-select-option__check-icon" }, [l("checkmark-icon", { directives: [{ name: "show", rawName: "v-show", value: e.selected, expression: "selected" }], attrs: { "svg-title": "selected" } })], 1)], 2);
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
278
|
+
}, Ut = [], Wt = /* @__PURE__ */ V(
|
|
279
|
+
Vt,
|
|
280
|
+
Gt,
|
|
281
|
+
Ut,
|
|
288
282
|
!1,
|
|
289
283
|
null,
|
|
290
284
|
"bb14d75a"
|
|
291
285
|
);
|
|
292
|
-
const
|
|
293
|
-
const t =
|
|
294
|
-
switch (
|
|
286
|
+
const Kt = Wt.exports, tt = ({ items: a, totalItemCount: e }, l) => {
|
|
287
|
+
const t = n(() => e?.value ? e.value - 1 : a.value.length - 1), s = L(0), o = (b) => {
|
|
288
|
+
switch (b) {
|
|
295
289
|
case "increase":
|
|
296
290
|
s.value += 1;
|
|
297
291
|
break;
|
|
@@ -299,54 +293,53 @@ const jt = Yt.exports, st = ({ items: a, totalItemCount: e }, l) => {
|
|
|
299
293
|
s.value -= 1;
|
|
300
294
|
break;
|
|
301
295
|
}
|
|
302
|
-
},
|
|
303
|
-
s.value !==
|
|
304
|
-
},
|
|
305
|
-
b
|
|
296
|
+
}, i = ({ edgeCaseItem: b }, x) => {
|
|
297
|
+
s.value !== b && (o(x), l(s.value));
|
|
298
|
+
}, p = (b) => {
|
|
299
|
+
u(b), i(
|
|
306
300
|
{
|
|
307
301
|
edgeCaseItem: t.value
|
|
308
302
|
},
|
|
309
303
|
"increase"
|
|
310
304
|
/* INCREASE */
|
|
311
305
|
);
|
|
312
|
-
},
|
|
313
|
-
b
|
|
306
|
+
}, _ = (b) => {
|
|
307
|
+
u(b), i(
|
|
314
308
|
{
|
|
315
309
|
edgeCaseItem: 0
|
|
316
310
|
},
|
|
317
311
|
"decrease"
|
|
318
312
|
/* DECREASE */
|
|
319
313
|
);
|
|
320
|
-
},
|
|
321
|
-
b
|
|
322
|
-
},
|
|
323
|
-
b
|
|
324
|
-
},
|
|
325
|
-
s.value =
|
|
326
|
-
},
|
|
327
|
-
|
|
328
|
-
(C = p == null ? void 0 : p.detail) == null || C.preventDefault(), (x = p == null ? void 0 : p.detail) == null || x.stopPropagation();
|
|
314
|
+
}, c = (b) => {
|
|
315
|
+
u(b), s.value = 0, l(s.value);
|
|
316
|
+
}, r = (b) => {
|
|
317
|
+
u(b), s.value = t.value, l(s.value);
|
|
318
|
+
}, m = (b) => {
|
|
319
|
+
s.value = b;
|
|
320
|
+
}, u = (b) => {
|
|
321
|
+
b?.detail?.preventDefault(), b?.detail?.stopPropagation();
|
|
329
322
|
};
|
|
330
323
|
return {
|
|
331
|
-
moveToFirstElement:
|
|
332
|
-
moveToLastElement:
|
|
333
|
-
moveToNextElement:
|
|
334
|
-
moveToPreviousElement:
|
|
335
|
-
setListboxFocusedIndex:
|
|
336
|
-
preventDefault:
|
|
324
|
+
moveToFirstElement: c,
|
|
325
|
+
moveToLastElement: r,
|
|
326
|
+
moveToNextElement: p,
|
|
327
|
+
moveToPreviousElement: _,
|
|
328
|
+
setListboxFocusedIndex: m,
|
|
329
|
+
preventDefault: u,
|
|
337
330
|
focusedIndex: s
|
|
338
331
|
};
|
|
339
|
-
},
|
|
340
|
-
const s =
|
|
332
|
+
}, ze = (a, e, l = L("option"), t = !0) => {
|
|
333
|
+
const s = L([]), o = async () => {
|
|
341
334
|
if (!a.value || a.value.nodeType === Node.COMMENT_NODE)
|
|
342
335
|
return;
|
|
343
|
-
const
|
|
344
|
-
s.value = t ?
|
|
336
|
+
const i = Array.from(a.value.querySelectorAll(`[role="${l.value}"]`));
|
|
337
|
+
s.value = t ? i.filter((p) => p.checkVisibility()) : i;
|
|
345
338
|
};
|
|
346
|
-
return
|
|
339
|
+
return Q(
|
|
347
340
|
e,
|
|
348
341
|
() => {
|
|
349
|
-
|
|
342
|
+
Y(() => {
|
|
350
343
|
o();
|
|
351
344
|
});
|
|
352
345
|
},
|
|
@@ -355,13 +348,13 @@ const jt = Yt.exports, st = ({ items: a, totalItemCount: e }, l) => {
|
|
|
355
348
|
visibleDomOptions: s,
|
|
356
349
|
updateVisibleDomOptions: o
|
|
357
350
|
};
|
|
358
|
-
},
|
|
351
|
+
}, qt = F({
|
|
359
352
|
name: "bento-listbox-single-select",
|
|
360
353
|
components: {
|
|
361
|
-
BentoListboxSingleSelectCategory:
|
|
362
|
-
BentoListboxSingleSelectOption:
|
|
354
|
+
BentoListboxSingleSelectCategory: kt,
|
|
355
|
+
BentoListboxSingleSelectOption: Kt
|
|
363
356
|
},
|
|
364
|
-
directives: { BentoKeyboardNavigationDirective:
|
|
357
|
+
directives: { BentoKeyboardNavigationDirective: Te },
|
|
365
358
|
inheritAttrs: !1,
|
|
366
359
|
props: {
|
|
367
360
|
/**
|
|
@@ -415,170 +408,163 @@ const jt = Yt.exports, st = ({ items: a, totalItemCount: e }, l) => {
|
|
|
415
408
|
*/
|
|
416
409
|
virtualScrollStartIndex: { type: Number, default: 0 }
|
|
417
410
|
},
|
|
418
|
-
emits: [
|
|
411
|
+
emits: [d.SELECT, d.ENTER, d.SPACE, d.TAB],
|
|
419
412
|
setup(a, { emit: e, expose: l, slots: t, attrs: s }) {
|
|
420
|
-
const o =
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
"aria-live": (m = s["aria-live"]) == null ? void 0 : m.toString()
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
), d = i(() => !!a.items.some(({ items: g }) => !!g)), c = (g) => (B) => {
|
|
434
|
-
e(g, [B]);
|
|
435
|
-
}, { visibleDomOptions: _, updateVisibleDomOptions: b } = Ge(
|
|
413
|
+
const o = L(), i = L([]), p = n(() => !!a.selectedValue?.length && a.selectedValue.at(0)), _ = n(
|
|
414
|
+
() => ({
|
|
415
|
+
"aria-label": s["aria-label"]?.toString(),
|
|
416
|
+
"aria-busy": s["aria-busy"]?.toString(),
|
|
417
|
+
"aria-atomic": s["aria-atomic"]?.toString(),
|
|
418
|
+
"aria-live": s["aria-live"]?.toString()
|
|
419
|
+
})
|
|
420
|
+
), c = n(() => !!a.items.some(({ items: h }) => !!h)), r = (h) => (R) => {
|
|
421
|
+
e(h, [R]);
|
|
422
|
+
}, { visibleDomOptions: m, updateVisibleDomOptions: u } = ze(
|
|
436
423
|
o,
|
|
437
|
-
|
|
438
|
-
|
|
424
|
+
q(a, "items"),
|
|
425
|
+
L("option"),
|
|
439
426
|
!1
|
|
440
|
-
),
|
|
441
|
-
if (!
|
|
427
|
+
), b = n(() => a.totalItemCount > 0), x = (h) => {
|
|
428
|
+
if (!b.value)
|
|
442
429
|
return;
|
|
443
|
-
const
|
|
444
|
-
if (
|
|
430
|
+
const R = h.target;
|
|
431
|
+
if (R === o.value || R?.getAttribute("role") !== "option")
|
|
445
432
|
return;
|
|
446
|
-
const
|
|
447
|
-
if (
|
|
448
|
-
const
|
|
449
|
-
|
|
433
|
+
const k = m.value.indexOf(R);
|
|
434
|
+
if (k !== -1) {
|
|
435
|
+
const y = k + a.virtualScrollStartIndex;
|
|
436
|
+
T(y);
|
|
450
437
|
}
|
|
451
|
-
},
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
(B = _.value[m]) == null || B.focus();
|
|
438
|
+
}, g = async (h) => {
|
|
439
|
+
if (b.value && a.scrollToIndex) {
|
|
440
|
+
a.scrollToIndex(h), await Y(), await u();
|
|
441
|
+
const R = h - a.virtualScrollStartIndex;
|
|
442
|
+
m.value[R]?.focus();
|
|
457
443
|
} else
|
|
458
|
-
|
|
459
|
-
},
|
|
460
|
-
|
|
461
|
-
},
|
|
462
|
-
if (!
|
|
444
|
+
m.value[h]?.focus();
|
|
445
|
+
}, M = async (h) => {
|
|
446
|
+
T(h), await g(h);
|
|
447
|
+
}, B = (h, R) => {
|
|
448
|
+
if (!h || !R)
|
|
463
449
|
return;
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
},
|
|
467
|
-
await
|
|
450
|
+
const k = h.getBoundingClientRect(), y = R, P = y.getBoundingClientRect();
|
|
451
|
+
k.top < P.top ? y.scrollTop -= P.top - k.top : k.bottom > P.bottom && (y.scrollTop += k.bottom - P.bottom);
|
|
452
|
+
}, v = async (h, R) => {
|
|
453
|
+
await u(), b.value && a.scrollToIndex ? a.scrollToIndex(h) : B(m.value[h], R);
|
|
468
454
|
}, {
|
|
469
|
-
moveToNextElement:
|
|
470
|
-
moveToPreviousElement:
|
|
455
|
+
moveToNextElement: I,
|
|
456
|
+
moveToPreviousElement: D,
|
|
471
457
|
moveToFirstElement: A,
|
|
472
|
-
moveToLastElement:
|
|
473
|
-
setListboxFocusedIndex:
|
|
474
|
-
} =
|
|
458
|
+
moveToLastElement: w,
|
|
459
|
+
setListboxFocusedIndex: T
|
|
460
|
+
} = tt(
|
|
475
461
|
{
|
|
476
|
-
items:
|
|
477
|
-
totalItemCount:
|
|
462
|
+
items: m,
|
|
463
|
+
totalItemCount: q(a, "totalItemCount")
|
|
478
464
|
},
|
|
479
|
-
|
|
465
|
+
g
|
|
480
466
|
), G = {
|
|
481
|
-
[
|
|
482
|
-
[
|
|
483
|
-
[
|
|
484
|
-
[
|
|
485
|
-
},
|
|
486
|
-
[
|
|
487
|
-
[
|
|
488
|
-
[
|
|
489
|
-
[
|
|
467
|
+
[z.ARROW_UP]: D,
|
|
468
|
+
[z.ARROW_DOWN]: I,
|
|
469
|
+
[z.HOME]: A,
|
|
470
|
+
[z.END]: w
|
|
471
|
+
}, U = {
|
|
472
|
+
[d.SELECT]: r(d.SELECT),
|
|
473
|
+
[d.SPACE]: r(d.SPACE),
|
|
474
|
+
[d.TAB]: r(d.TAB),
|
|
475
|
+
[d.ENTER]: r(d.ENTER)
|
|
490
476
|
};
|
|
491
477
|
return l({
|
|
492
478
|
/**
|
|
493
479
|
* Reference for a single listbox item.
|
|
494
480
|
* Required for keyboard navigation in dropdown as $children is removed in vue@3
|
|
495
481
|
*/
|
|
496
|
-
listboxItemRef:
|
|
482
|
+
listboxItemRef: i,
|
|
497
483
|
/**
|
|
498
484
|
* Method to set the index of the item to be focused on
|
|
499
485
|
* Used for focus management to be kept in-sync with parent e.g. dropdowns
|
|
500
486
|
*/
|
|
501
|
-
setListboxFocusedIndex:
|
|
487
|
+
setListboxFocusedIndex: T,
|
|
502
488
|
/**
|
|
503
489
|
* Navigates to an item by global index, handling virtual scroll if enabled.
|
|
504
490
|
* Scrolls the virtual list and focuses the item.
|
|
505
491
|
*/
|
|
506
|
-
navigateToItem:
|
|
492
|
+
navigateToItem: M,
|
|
507
493
|
/**
|
|
508
494
|
* Scrolls to an item by global index without changing focus.
|
|
509
495
|
* Used when the dropdown opens via click to bring the selected option into view.
|
|
510
496
|
*/
|
|
511
|
-
scrollToItem:
|
|
497
|
+
scrollToItem: v
|
|
512
498
|
}), {
|
|
513
499
|
// Enums
|
|
514
|
-
BentoListboxEvent:
|
|
500
|
+
BentoListboxEvent: d,
|
|
515
501
|
// Values
|
|
516
502
|
listboxRef: o,
|
|
517
|
-
listboxItemRef:
|
|
518
|
-
selectedItem:
|
|
503
|
+
listboxItemRef: i,
|
|
504
|
+
selectedItem: p,
|
|
519
505
|
slots: t,
|
|
520
|
-
ariaAttributes:
|
|
506
|
+
ariaAttributes: _,
|
|
521
507
|
// Computed
|
|
522
|
-
hasCategories:
|
|
508
|
+
hasCategories: c,
|
|
523
509
|
// Methods
|
|
524
|
-
onOptionSelected:
|
|
510
|
+
onOptionSelected: r,
|
|
525
511
|
// Keyboard navigation
|
|
526
512
|
listboxListeners: G,
|
|
527
|
-
listboxOptionListeners:
|
|
513
|
+
listboxOptionListeners: U,
|
|
528
514
|
// Virtual scroll focus management
|
|
529
|
-
handleVirtualScrollingFocus:
|
|
515
|
+
handleVirtualScrollingFocus: x
|
|
530
516
|
};
|
|
531
517
|
}
|
|
532
518
|
});
|
|
533
|
-
var
|
|
519
|
+
var Yt = function() {
|
|
534
520
|
var e = this, l = e._self._c;
|
|
535
521
|
return e._self._setupProxy, l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", attrs: { role: "listbox" }, on: { focusin: e.handleVirtualScrollingFocus } }, "div", e.ariaAttributes, !1), e.listboxListeners), [e.hasCategories && e.staticCategories ? [e._l(e.items, function(t) {
|
|
536
522
|
return [t.items && t.items.length > 0 ? l("bento-listbox-single-select-category", { key: `category-${t.value}`, attrs: { "category-label": t.label } }, e._l(t.items, function(s) {
|
|
537
|
-
return l("bento-listbox-single-select-option", e._g({ key: s.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: s, disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, selected: s.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(o,
|
|
538
|
-
return { key:
|
|
539
|
-
return [e._t(
|
|
523
|
+
return l("bento-listbox-single-select-option", e._g({ key: s.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: s, disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, selected: s.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(o, i) {
|
|
524
|
+
return { key: i, fn: function(p) {
|
|
525
|
+
return [e._t(i, null, null, p)];
|
|
540
526
|
} };
|
|
541
527
|
})], null, !0) }, e.listboxOptionListeners));
|
|
542
528
|
}), 1) : l("bento-listbox-single-select-option", e._g({ key: `option-${t.value}`, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: t, disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, selected: t.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(s, o) {
|
|
543
|
-
return { key: o, fn: function(
|
|
544
|
-
return [e._t(o, null, null,
|
|
529
|
+
return { key: o, fn: function(i) {
|
|
530
|
+
return [e._t(o, null, null, i)];
|
|
545
531
|
} };
|
|
546
532
|
})], null, !0) }, e.listboxOptionListeners))];
|
|
547
533
|
})] : e._l(e.items, function(t) {
|
|
548
534
|
return l("bento-listbox-single-select-option", e._g({ key: t.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: t, disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, selected: t.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(s, o) {
|
|
549
|
-
return { key: o, fn: function(
|
|
550
|
-
return [e._t(o, null, null,
|
|
535
|
+
return { key: o, fn: function(i) {
|
|
536
|
+
return [e._t(o, null, null, i)];
|
|
551
537
|
} };
|
|
552
538
|
})], null, !0) }, e.listboxOptionListeners));
|
|
553
539
|
})], 2);
|
|
554
|
-
},
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
540
|
+
}, jt = [], Ht = /* @__PURE__ */ V(
|
|
541
|
+
qt,
|
|
542
|
+
Yt,
|
|
543
|
+
jt,
|
|
558
544
|
!1,
|
|
559
545
|
null,
|
|
560
546
|
null
|
|
561
547
|
);
|
|
562
|
-
const
|
|
563
|
-
let
|
|
564
|
-
const
|
|
548
|
+
const Jt = Ht.exports;
|
|
549
|
+
let We = 0;
|
|
550
|
+
const Xt = {
|
|
565
551
|
beforeCreate() {
|
|
566
|
-
this.uuid =
|
|
552
|
+
this.uuid = We.toString(), We += 1;
|
|
567
553
|
}
|
|
568
554
|
};
|
|
569
|
-
var
|
|
555
|
+
var Zt = function() {
|
|
570
556
|
var e = this, l = e._self._c;
|
|
571
557
|
return l("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"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M9.69043 5.75L4.62988 10.8105L1.56934 7.75L2.62988 6.68945L4.62988 8.68945L8.62988 4.68945L9.69043 5.75Z" } }), l("path", { attrs: { fill: "#001222", d: "M13.9307 5.75L8.87012 10.8105L7.80957 9.75L12.8701 4.68945L13.9307 5.75Z" } })]);
|
|
572
|
-
},
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
558
|
+
}, Qt = [], el = /* @__PURE__ */ V(
|
|
559
|
+
Xt,
|
|
560
|
+
Zt,
|
|
561
|
+
Qt,
|
|
576
562
|
!1,
|
|
577
563
|
null,
|
|
578
564
|
null
|
|
579
565
|
);
|
|
580
|
-
const
|
|
581
|
-
...
|
|
566
|
+
const tl = el.exports, ll = {}, al = /* @__PURE__ */ F({
|
|
567
|
+
...ll,
|
|
582
568
|
__name: "decorative-checkbox",
|
|
583
569
|
props: {
|
|
584
570
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -587,79 +573,46 @@ const sl = al.exports, ol = {}, nl = /* @__PURE__ */ z({
|
|
|
587
573
|
allSelected: { type: Boolean, default: !1 }
|
|
588
574
|
},
|
|
589
575
|
setup(a) {
|
|
590
|
-
const e = a, l =
|
|
591
|
-
[`b-checkbox-input--${
|
|
592
|
-
})), t =
|
|
593
|
-
[`b-checkbox-input__outline--${
|
|
594
|
-
[`b-checkbox-input__outline--${
|
|
595
|
-
[`b-checkbox-input__outline--${
|
|
576
|
+
const e = a, l = n(() => ({
|
|
577
|
+
[`b-checkbox-input--${Ee.DISABLED}`]: e.disabled
|
|
578
|
+
})), t = n(() => ({
|
|
579
|
+
[`b-checkbox-input__outline--${Ee.UNCHECKED}`]: !e.checked && !e.indeterminate && !e.allSelected,
|
|
580
|
+
[`b-checkbox-input__outline--${Ee.CHECKED}`]: (e.checked || e.allSelected) && !e.indeterminate,
|
|
581
|
+
[`b-checkbox-input__outline--${Ee.INDETERMINATE}`]: e.indeterminate
|
|
596
582
|
}));
|
|
597
|
-
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon:
|
|
583
|
+
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon: _t, MinusSmallIcon: yt, DoubleCheckmarkSmallIcon: tl };
|
|
598
584
|
}
|
|
599
585
|
});
|
|
600
|
-
var
|
|
586
|
+
var sl = function() {
|
|
601
587
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
602
588
|
return l("div", { staticClass: "b-checkbox-input", class: t.conditionalClasses, attrs: { role: "presentation" } }, [e.indeterminate ? l(t.MinusSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e.allSelected ? l(t.DoubleCheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true", "data-testid": "decorative-checkbox-double-checkmark-icon" } }) : e.checked ? l(t.CheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e._e(), l("div", { staticClass: "b-checkbox-input__outline", class: t.outlineConditionalClasses })], 1);
|
|
603
|
-
},
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
589
|
+
}, ol = [], nl = /* @__PURE__ */ V(
|
|
590
|
+
al,
|
|
591
|
+
sl,
|
|
592
|
+
ol,
|
|
607
593
|
!1,
|
|
608
594
|
null,
|
|
609
595
|
"b87bbaf9"
|
|
610
596
|
);
|
|
611
|
-
const
|
|
612
|
-
var
|
|
613
|
-
const
|
|
614
|
-
"de-DE": {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
},
|
|
618
|
-
"
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
},
|
|
622
|
-
"
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
"es-419": {
|
|
627
|
-
loading: "Cargando",
|
|
628
|
-
showMore: "Mostrar más"
|
|
629
|
-
},
|
|
630
|
-
"es-ES": {
|
|
631
|
-
loading: "Cargando",
|
|
632
|
-
showMore: "Mostrar más"
|
|
633
|
-
},
|
|
634
|
-
"es-MX": {
|
|
635
|
-
loading: "Cargando",
|
|
636
|
-
showMore: "Mostrar más"
|
|
637
|
-
},
|
|
638
|
-
"fr-FR": {
|
|
639
|
-
loading: "Chargement",
|
|
640
|
-
showMore: "Afficher plus"
|
|
641
|
-
},
|
|
642
|
-
"it-IT": {
|
|
643
|
-
loading: "Caricamento",
|
|
644
|
-
showMore: "Mostra di più"
|
|
645
|
-
},
|
|
646
|
-
"ja-JP": {
|
|
647
|
-
loading: "読み込み中",
|
|
648
|
-
showMore: "さらに表示"
|
|
649
|
-
},
|
|
650
|
-
"pt-BR": {
|
|
651
|
-
loading: "Carregando",
|
|
652
|
-
showMore: "Mostrar mais"
|
|
653
|
-
},
|
|
654
|
-
"zh-CN": {
|
|
655
|
-
loading: "正在加载",
|
|
656
|
-
showMore: "显示更多"
|
|
657
|
-
}
|
|
658
|
-
}, ul = {
|
|
597
|
+
const Ve = nl.exports;
|
|
598
|
+
var lt = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.STATIC_CATEGORY = "static-category", a))(lt || {}), oe = /* @__PURE__ */ ((a) => (a.SELECT_CATEGORY = "select-category", a.UNSELECT_CATEGORY = "unselect-category", a.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", a))(oe || {});
|
|
599
|
+
const il = {
|
|
600
|
+
"de-DE": { loading: "Laden", showMore: "Mehr anzeigen" },
|
|
601
|
+
"en-GB": { loading: "Loading", showMore: "Show more" },
|
|
602
|
+
"en-US": { loading: "Loading", showMore: "Show more" },
|
|
603
|
+
"es-419": { loading: "Cargando", showMore: "Mostrar más" },
|
|
604
|
+
"es-ES": { loading: "Cargando", showMore: "Mostrar más" },
|
|
605
|
+
"es-MX": { loading: "Cargando", showMore: "Mostrar más" },
|
|
606
|
+
"fr-FR": { loading: "Chargement", showMore: "Afficher plus" },
|
|
607
|
+
"it-IT": { loading: "Caricamento", showMore: "Mostra di più" },
|
|
608
|
+
"ja-JP": { loading: "読み込み中", showMore: "さらに表示" },
|
|
609
|
+
"pt-BR": { loading: "Carregando", showMore: "Mostrar mais" },
|
|
610
|
+
"zh-CN": { loading: "正在加载", showMore: "显示更多" }
|
|
611
|
+
}, rl = {
|
|
659
612
|
name: "listbox-lazy-load",
|
|
660
|
-
i18n: { messages:
|
|
661
|
-
},
|
|
662
|
-
...
|
|
613
|
+
i18n: { messages: il }
|
|
614
|
+
}, cl = /* @__PURE__ */ F({
|
|
615
|
+
...rl,
|
|
663
616
|
props: {
|
|
664
617
|
condensed: { type: Boolean, default: !1 },
|
|
665
618
|
hasMoreItems: { type: Boolean, default: !1 },
|
|
@@ -669,78 +622,57 @@ const dl = {
|
|
|
669
622
|
},
|
|
670
623
|
emits: ["show-more"],
|
|
671
624
|
setup(a) {
|
|
672
|
-
const e = a, { t: l } =
|
|
673
|
-
() => e.type ===
|
|
674
|
-
), s =
|
|
675
|
-
() => e.loading ?
|
|
676
|
-
), o =
|
|
677
|
-
return { __sfc: !0, t: l, props: e, shouldDisplayShowMoreButton: t, loadingButtonState: s, showMoreButtonText: o, BentoLoadingIndicator:
|
|
625
|
+
const e = a, { t: l } = ae(), t = n(
|
|
626
|
+
() => e.type === Z.BUTTON && e.hasMoreItems
|
|
627
|
+
), s = n(
|
|
628
|
+
() => e.loading ? we.LOADING : we.START
|
|
629
|
+
), o = n(() => e.loading ? l("loading") : l("showMore"));
|
|
630
|
+
return { __sfc: !0, t: l, props: e, shouldDisplayShowMoreButton: t, loadingButtonState: s, showMoreButtonText: o, BentoLoadingIndicator: Ze, BentoLoadingButton: ht };
|
|
678
631
|
}
|
|
679
632
|
});
|
|
680
|
-
var
|
|
633
|
+
var dl = function() {
|
|
681
634
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
682
635
|
return t.shouldDisplayShowMoreButton || e.loading ? l("div", { staticClass: "b-listbox-lazy-load" }, [t.shouldDisplayShowMoreButton ? l(t.BentoLoadingButton, { attrs: { state: t.loadingButtonState, tabindex: e.tabindex, condensed: e.condensed, variant: "secondary" }, on: { "!click": function(s) {
|
|
683
636
|
return e.$emit("show-more", s);
|
|
684
637
|
} } }, [e._v(" " + e._s(t.showMoreButtonText) + " ")]) : e.loading ? l(t.BentoLoadingIndicator) : e._e()], 1) : e._e();
|
|
685
|
-
},
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
638
|
+
}, ul = [], pl = /* @__PURE__ */ V(
|
|
639
|
+
cl,
|
|
640
|
+
dl,
|
|
641
|
+
ul,
|
|
689
642
|
!1,
|
|
690
643
|
null,
|
|
691
644
|
"d86387ad"
|
|
692
645
|
);
|
|
693
|
-
const
|
|
694
|
-
"de-DE": {
|
|
695
|
-
|
|
696
|
-
},
|
|
697
|
-
"
|
|
698
|
-
|
|
699
|
-
},
|
|
700
|
-
"
|
|
701
|
-
|
|
702
|
-
},
|
|
703
|
-
"
|
|
704
|
-
|
|
705
|
-
},
|
|
706
|
-
"es-ES": {
|
|
707
|
-
thereWasAnErrorLoadingNewItems: "Se produjo un error al cargar los nuevos elementos."
|
|
708
|
-
},
|
|
709
|
-
"fr-FR": {
|
|
710
|
-
thereWasAnErrorLoadingNewItems: "Une erreur s'est produite lors du chargement des nouveaux éléments."
|
|
711
|
-
},
|
|
712
|
-
"it-IT": {
|
|
713
|
-
thereWasAnErrorLoadingNewItems: "Si è verificato un errore durante il caricamento di nuovi elementi."
|
|
714
|
-
},
|
|
715
|
-
"ja-JP": {
|
|
716
|
-
thereWasAnErrorLoadingNewItems: "新しいアイテムの読み込みにエラーが発生しました。"
|
|
717
|
-
},
|
|
718
|
-
"pt-BR": {
|
|
719
|
-
thereWasAnErrorLoadingNewItems: "Ocorreu um erro ao carregar novos itens."
|
|
720
|
-
},
|
|
721
|
-
"zh-CN": {
|
|
722
|
-
thereWasAnErrorLoadingNewItems: "加载新项目时出错。"
|
|
723
|
-
}
|
|
724
|
-
}, yl = {
|
|
646
|
+
const at = pl.exports, fl = {
|
|
647
|
+
"de-DE": { thereWasAnErrorLoadingNewItems: "Beim Laden neuer Artikel ist ein Fehler aufgetreten." },
|
|
648
|
+
"en-GB": { thereWasAnErrorLoadingNewItems: "There was an error loading new items." },
|
|
649
|
+
"en-US": { thereWasAnErrorLoadingNewItems: "There was an error loading new items." },
|
|
650
|
+
"es-419": { thereWasAnErrorLoadingNewItems: "Se produjo un error al cargar los nuevos elementos." },
|
|
651
|
+
"es-ES": { thereWasAnErrorLoadingNewItems: "Se produjo un error al cargar los nuevos elementos." },
|
|
652
|
+
"fr-FR": { thereWasAnErrorLoadingNewItems: "Une erreur s'est produite lors du chargement des nouveaux éléments." },
|
|
653
|
+
"it-IT": { thereWasAnErrorLoadingNewItems: "Si è verificato un errore durante il caricamento di nuovi elementi." },
|
|
654
|
+
"ja-JP": { thereWasAnErrorLoadingNewItems: "新しいアイテムの読み込みにエラーが発生しました。" },
|
|
655
|
+
"pt-BR": { thereWasAnErrorLoadingNewItems: "Ocorreu um erro ao carregar novos itens." },
|
|
656
|
+
"zh-CN": { thereWasAnErrorLoadingNewItems: "加载新项目时出错。" }
|
|
657
|
+
}, bl = {
|
|
725
658
|
name: "listbox-multi-select-nested-lazy-load",
|
|
726
|
-
i18n: { messages:
|
|
727
|
-
},
|
|
728
|
-
...
|
|
659
|
+
i18n: { messages: fl }
|
|
660
|
+
}, ml = /* @__PURE__ */ F({
|
|
661
|
+
...bl,
|
|
729
662
|
props: {
|
|
730
663
|
index: null,
|
|
731
664
|
option: null
|
|
732
665
|
},
|
|
733
666
|
setup(a, { expose: e }) {
|
|
734
|
-
const l = a, t =
|
|
735
|
-
async function
|
|
736
|
-
|
|
737
|
-
if (r.stopImmediatePropagation(), !t.value) {
|
|
667
|
+
const l = a, t = L(!1), s = L(!1), { t: o } = ae();
|
|
668
|
+
async function i(p) {
|
|
669
|
+
if (p.stopImmediatePropagation(), !t.value) {
|
|
738
670
|
s.value = !1, t.value = !0;
|
|
739
671
|
try {
|
|
740
|
-
await
|
|
672
|
+
await l.option.lazyLoad?.lazyLoadEvent({
|
|
741
673
|
value: l.option.value,
|
|
742
674
|
index: l.index
|
|
743
|
-
})
|
|
675
|
+
});
|
|
744
676
|
} catch {
|
|
745
677
|
s.value = !0;
|
|
746
678
|
}
|
|
@@ -751,81 +683,47 @@ const nt = ml.exports, vl = {
|
|
|
751
683
|
/**
|
|
752
684
|
* Trigger the lazy load event programmatically.
|
|
753
685
|
*/
|
|
754
|
-
showMore:
|
|
755
|
-
}), { __sfc: !0, loading: t, failedAndRetry: s, t: o, props: l, showMore:
|
|
686
|
+
showMore: i
|
|
687
|
+
}), { __sfc: !0, loading: t, failedAndRetry: s, t: o, props: l, showMore: i, BentoEmptyState: Qe, BentoListboxLazyLoad: at };
|
|
756
688
|
}
|
|
757
689
|
});
|
|
758
|
-
var
|
|
759
|
-
var s;
|
|
690
|
+
var vl = function() {
|
|
760
691
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
761
|
-
return l("div", { attrs: { role: "treeitem", tabindex: 0 }, on: { keydown: [function(
|
|
762
|
-
return !
|
|
763
|
-
}, function(
|
|
764
|
-
return !
|
|
765
|
-
}] } }, [t.failedAndRetry ? l(t.BentoEmptyState, { staticClass: "b-listbox-multi-select-nested-lazy-load__error-message", attrs: { variant: "basic" } }, [e._v(" " + e._s(t.t("thereWasAnErrorLoadingNewItems")) + " ")]) : e._e(), l(t.BentoListboxLazyLoad, { attrs: { type: "button", tabindex: -1, condensed: "", "has-more-items":
|
|
766
|
-
},
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
692
|
+
return l("div", { attrs: { role: "treeitem", tabindex: 0 }, on: { keydown: [function(s) {
|
|
693
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : (s.preventDefault(), t.showMore.apply(null, arguments));
|
|
694
|
+
}, function(s) {
|
|
695
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "space", 32, s.key, [" ", "Spacebar"]) ? null : (s.preventDefault(), t.showMore.apply(null, arguments));
|
|
696
|
+
}] } }, [t.failedAndRetry ? l(t.BentoEmptyState, { staticClass: "b-listbox-multi-select-nested-lazy-load__error-message", attrs: { variant: "basic" } }, [e._v(" " + e._s(t.t("thereWasAnErrorLoadingNewItems")) + " ")]) : e._e(), l(t.BentoListboxLazyLoad, { attrs: { type: "button", tabindex: -1, condensed: "", "has-more-items": e.option.lazyLoad?.hasMoreItems, loading: t.loading }, on: { "show-more": t.showMore } })], 1);
|
|
697
|
+
}, yl = [], _l = /* @__PURE__ */ V(
|
|
698
|
+
ml,
|
|
699
|
+
vl,
|
|
700
|
+
yl,
|
|
770
701
|
!1,
|
|
771
702
|
null,
|
|
772
703
|
"b7c84651"
|
|
773
704
|
);
|
|
774
|
-
const
|
|
775
|
-
"de-DE": {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
},
|
|
779
|
-
"
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
},
|
|
783
|
-
"
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
categoryClosed: "{category} cerrado",
|
|
789
|
-
categoryOpened: "{category} abierta"
|
|
790
|
-
},
|
|
791
|
-
"es-ES": {
|
|
792
|
-
categoryClosed: "{category} cerrado",
|
|
793
|
-
categoryOpened: "{category} abierto"
|
|
794
|
-
},
|
|
795
|
-
"es-MX": {
|
|
796
|
-
categoryClosed: "{category} cerrado",
|
|
797
|
-
categoryOpened: "{category} abierto"
|
|
798
|
-
},
|
|
799
|
-
"fr-FR": {
|
|
800
|
-
categoryClosed: "{category} fermée",
|
|
801
|
-
categoryOpened: "{category} ouverte"
|
|
802
|
-
},
|
|
803
|
-
"it-IT": {
|
|
804
|
-
categoryClosed: "{category} chiuso",
|
|
805
|
-
categoryOpened: "{category} aperto"
|
|
806
|
-
},
|
|
807
|
-
"ja-JP": {
|
|
808
|
-
categoryClosed: "{category}を閉じました",
|
|
809
|
-
categoryOpened: "{category}を開きました"
|
|
810
|
-
},
|
|
811
|
-
"pt-BR": {
|
|
812
|
-
categoryClosed: "{category} fechada",
|
|
813
|
-
categoryOpened: "{categoria} aberta"
|
|
814
|
-
},
|
|
815
|
-
"zh-CN": {
|
|
816
|
-
categoryClosed: "{category} 已关闭",
|
|
817
|
-
categoryOpened: "{category} 已打开"
|
|
818
|
-
}
|
|
819
|
-
}, Ol = z({
|
|
820
|
-
i18n: { messages: Cl },
|
|
705
|
+
const gl = _l.exports, hl = {
|
|
706
|
+
"de-DE": { categoryClosed: "{category} geschlossen", categoryOpened: "{category} geöffnet" },
|
|
707
|
+
"en-GB": { categoryClosed: "{category} closed", categoryOpened: "{category} opened" },
|
|
708
|
+
"en-US": { categoryClosed: "{category} closed", categoryOpened: "{category} opened" },
|
|
709
|
+
"es-419": { categoryClosed: "{category} cerrado", categoryOpened: "{category} abierta" },
|
|
710
|
+
"es-ES": { categoryClosed: "{category} cerrado", categoryOpened: "{category} abierto" },
|
|
711
|
+
"es-MX": { categoryClosed: "{category} cerrado", categoryOpened: "{category} abierto" },
|
|
712
|
+
"fr-FR": { categoryClosed: "{category} fermée", categoryOpened: "{category} ouverte" },
|
|
713
|
+
"it-IT": { categoryClosed: "{category} chiuso", categoryOpened: "{category} aperto" },
|
|
714
|
+
"ja-JP": { categoryClosed: "{category}を閉じました", categoryOpened: "{category}を開きました" },
|
|
715
|
+
"pt-BR": { categoryClosed: "{category} fechada", categoryOpened: "{categoria} aberta" },
|
|
716
|
+
"zh-CN": { categoryClosed: "{category} 已关闭", categoryOpened: "{category} 已打开" }
|
|
717
|
+
}, Sl = F({
|
|
718
|
+
i18n: { messages: hl },
|
|
821
719
|
name: "bento-listbox-multi-select-category",
|
|
822
720
|
components: {
|
|
823
|
-
BentoTypography:
|
|
824
|
-
BentoListboxOption:
|
|
825
|
-
BentoListboxMultiSelectNestedLazyLoad:
|
|
826
|
-
ChevronDownIcon:
|
|
827
|
-
ChevronUpIcon:
|
|
828
|
-
DecorativeCheckbox:
|
|
721
|
+
BentoTypography: le,
|
|
722
|
+
BentoListboxOption: Ae,
|
|
723
|
+
BentoListboxMultiSelectNestedLazyLoad: gl,
|
|
724
|
+
ChevronDownIcon: Je,
|
|
725
|
+
ChevronUpIcon: Xe,
|
|
726
|
+
DecorativeCheckbox: Ve
|
|
829
727
|
},
|
|
830
728
|
props: {
|
|
831
729
|
/**
|
|
@@ -878,106 +776,94 @@ const xl = Sl.exports, Cl = {
|
|
|
878
776
|
tabindex: { type: Number, default: -1 }
|
|
879
777
|
},
|
|
880
778
|
emits: [
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
779
|
+
oe.SELECT_CATEGORY,
|
|
780
|
+
oe.UNSELECT_CATEGORY,
|
|
781
|
+
oe.TOGGLE_CATEGORY_VISIBILITY
|
|
884
782
|
],
|
|
885
783
|
setup(a, { emit: e }) {
|
|
886
|
-
const l =
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
return { isDisabled: m, isPreSelected: I };
|
|
898
|
-
}, C = i(
|
|
899
|
-
() => a.category.items.filter((L) => {
|
|
900
|
-
const { isDisabled: m, isPreSelected: I } = p(L);
|
|
901
|
-
return m && I || !m;
|
|
784
|
+
const l = L(!1), { t } = ae(), s = te("category-group"), o = te("category-name"), i = L(null), p = (k) => a.isOptionDisabled ? a.isOptionDisabled(k) : !1, _ = n(() => a.category.lazyLoad && a.category.items?.length === 0 ? !1 : a.category.items.every((k) => p(k))), c = q(a, "staticCategories"), r = n(() => l.value || a.staticCategories), m = n(() => ({
|
|
785
|
+
[`b-listbox-multi-select-category--${lt.DISABLED}`]: _.value
|
|
786
|
+
})), u = (k, y) => {
|
|
787
|
+
k.preventDefault(), a.category.lazyLoad && a.category.items?.length === 0 && i.value.showMore(k), l.value = y !== void 0 ? y : !l.value, e(oe.TOGGLE_CATEGORY_VISIBILITY, a.category.value);
|
|
788
|
+
}, b = (k) => {
|
|
789
|
+
const y = p(k), P = a.selectedItemsList?.includes(k.value) || !1;
|
|
790
|
+
return { isDisabled: y, isPreSelected: P };
|
|
791
|
+
}, x = n(
|
|
792
|
+
() => a.category.items.filter((k) => {
|
|
793
|
+
const { isDisabled: y, isPreSelected: P } = b(k);
|
|
794
|
+
return y && P || !y;
|
|
902
795
|
})
|
|
903
|
-
),
|
|
904
|
-
() => {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
return t(L, { category: a.category.label });
|
|
914
|
-
}), M = () => {
|
|
915
|
-
e(ce.SELECT_CATEGORY);
|
|
916
|
-
}, h = () => {
|
|
917
|
-
e(ce.UNSELECT_CATEGORY);
|
|
918
|
-
}, T = i(
|
|
796
|
+
), g = n(
|
|
797
|
+
() => x.value?.filter(({ value: k }) => a.selectedItemsList?.includes(k))
|
|
798
|
+
), M = n(() => {
|
|
799
|
+
const k = l.value ? "categoryOpened" : "categoryClosed";
|
|
800
|
+
return t(k, { category: a.category.label });
|
|
801
|
+
}), B = () => {
|
|
802
|
+
e(oe.SELECT_CATEGORY);
|
|
803
|
+
}, v = () => {
|
|
804
|
+
e(oe.UNSELECT_CATEGORY);
|
|
805
|
+
}, I = n(
|
|
919
806
|
() => !!a.category.lazyLoad && a.selectedItemsList.includes(a.category.value)
|
|
920
807
|
), {
|
|
921
|
-
isAllSelected:
|
|
808
|
+
isAllSelected: D,
|
|
922
809
|
isIndeterminate: A,
|
|
923
|
-
toggleSelectAll:
|
|
924
|
-
} =
|
|
925
|
-
|
|
810
|
+
toggleSelectAll: w
|
|
811
|
+
} = et(g, x, B, v), T = n(() => I.value || D.value), G = n(() => !I.value && A.value), U = n(() => G.value ? "mixed" : `${T.value}`), h = L(T.value), R = () => {
|
|
812
|
+
h.value = !h.value, w(h.value);
|
|
926
813
|
};
|
|
927
|
-
return
|
|
928
|
-
|
|
814
|
+
return Q(T, () => {
|
|
815
|
+
h.value = T.value;
|
|
929
816
|
}), {
|
|
930
817
|
// Refs
|
|
931
|
-
lazyLoadRef:
|
|
818
|
+
lazyLoadRef: i,
|
|
932
819
|
// Values
|
|
933
|
-
chevronTitle:
|
|
934
|
-
conditionalClass:
|
|
935
|
-
hasAllPropsDisabled:
|
|
820
|
+
chevronTitle: M,
|
|
821
|
+
conditionalClass: m,
|
|
822
|
+
hasAllPropsDisabled: _,
|
|
936
823
|
isOpen: l,
|
|
937
|
-
isAllSelected:
|
|
824
|
+
isAllSelected: T,
|
|
938
825
|
isIndeterminate: G,
|
|
939
|
-
isStaticCategory:
|
|
826
|
+
isStaticCategory: c,
|
|
940
827
|
categoryGroupId: s,
|
|
941
828
|
categoryNameId: o,
|
|
942
829
|
// Computed
|
|
943
|
-
showItemChildren:
|
|
944
|
-
ariaCheckedComputed:
|
|
830
|
+
showItemChildren: r,
|
|
831
|
+
ariaCheckedComputed: U,
|
|
945
832
|
// Methods
|
|
946
|
-
handleSelectAll:
|
|
947
|
-
toggleOpen:
|
|
948
|
-
toggleSelectAll:
|
|
833
|
+
handleSelectAll: R,
|
|
834
|
+
toggleOpen: u,
|
|
835
|
+
toggleSelectAll: w
|
|
949
836
|
};
|
|
950
837
|
}
|
|
951
838
|
});
|
|
952
|
-
var
|
|
953
|
-
var t;
|
|
839
|
+
var xl = function() {
|
|
954
840
|
var e = this, l = e._self._c;
|
|
955
|
-
return e._self._setupProxy, l("div", [e.isStaticCategory ? l("div", { staticClass: "b-listbox-multi-select-category b-listbox-multi-select-category--static-category", attrs: { "aria-hidden": "true" } }, [l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { el: "span", variant: "caption" } }, [e._v(" " + e._s(e.category.label) + " ")])], 1)]) : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass, attrs: { tabindex: e.tabindex, "aria-selected": e.ariaCheckedComputed !== "false", "aria-checked": e.ariaCheckedComputed, "aria-disabled": e.hasAllPropsDisabled, "aria-expanded": `${e.isOpen}`, role: "treeitem", "aria-owns": e.categoryGroupId, "aria-labelledby": e.categoryNameId }, on: { click: e.handleSelectAll, "enter-pressed": e.handleSelectAll, "space-pressed": function(
|
|
956
|
-
return
|
|
957
|
-
} }, nativeOn: { keydown: [function(
|
|
958
|
-
return !
|
|
959
|
-
}, function(
|
|
960
|
-
return !
|
|
961
|
-
}] } }, [l("decorative-checkbox", { attrs: { indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, checked: e.isAllSelected } }), l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { id: e.categoryNameId, el: "span" } }, [e._v(" " + e._s(e.category.label) + " ")]), l("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "aria-hidden": "true", "data-testid": "toggle-listbox" }, on: { "!click": function(
|
|
962
|
-
return
|
|
963
|
-
} } }, [e.isOpen ? l("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : l("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), l("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }], attrs: { id: e.categoryGroupId, role: "group", "aria-label": e.category.label } }, [e._t("default"),
|
|
964
|
-
},
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
841
|
+
return e._self._setupProxy, l("div", [e.isStaticCategory ? l("div", { staticClass: "b-listbox-multi-select-category b-listbox-multi-select-category--static-category", attrs: { "aria-hidden": "true" } }, [l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { el: "span", variant: "caption" } }, [e._v(" " + e._s(e.category.label) + " ")])], 1)]) : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass, attrs: { tabindex: e.tabindex, "aria-selected": e.ariaCheckedComputed !== "false", "aria-checked": e.ariaCheckedComputed, "aria-disabled": e.hasAllPropsDisabled, "aria-expanded": `${e.isOpen}`, role: "treeitem", "aria-owns": e.categoryGroupId, "aria-labelledby": e.categoryNameId }, on: { click: e.handleSelectAll, "enter-pressed": e.handleSelectAll, "space-pressed": function(t) {
|
|
842
|
+
return t.preventDefault(), e.handleSelectAll.apply(null, arguments);
|
|
843
|
+
} }, nativeOn: { keydown: [function(t) {
|
|
844
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "arrow-left", void 0, t.key, void 0) ? null : e.toggleOpen(t, !1);
|
|
845
|
+
}, function(t) {
|
|
846
|
+
return !t.type.indexOf("key") && e._k(t.keyCode, "arrow-right", void 0, t.key, void 0) ? null : e.toggleOpen(t, !0);
|
|
847
|
+
}] } }, [l("decorative-checkbox", { attrs: { indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, checked: e.isAllSelected } }), l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { id: e.categoryNameId, el: "span" } }, [e._v(" " + e._s(e.category.label) + " ")]), l("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "aria-hidden": "true", "data-testid": "toggle-listbox" }, on: { "!click": function(t) {
|
|
848
|
+
return t.stopPropagation(), e.toggleOpen.apply(null, arguments);
|
|
849
|
+
} } }, [e.isOpen ? l("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : l("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), l("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }], attrs: { id: e.categoryGroupId, role: "group", "aria-label": e.category.label } }, [e._t("default"), e.category.lazyLoad?.hasMoreItems ? [l("bento-listbox-multi-select-nested-lazy-load", { ref: "lazyLoadRef", attrs: { option: e.category, index: e.optionIndex } })] : e._e()], 2)], 1);
|
|
850
|
+
}, Cl = [], Ll = /* @__PURE__ */ V(
|
|
851
|
+
Sl,
|
|
852
|
+
xl,
|
|
853
|
+
Cl,
|
|
968
854
|
!1,
|
|
969
855
|
null,
|
|
970
856
|
"b493449e"
|
|
971
857
|
);
|
|
972
|
-
const
|
|
973
|
-
var
|
|
974
|
-
const
|
|
858
|
+
const Ol = Ll.exports;
|
|
859
|
+
var X = /* @__PURE__ */ ((a) => (a.SELECT_CATEGORY = "select-category", a.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", a.UNSELECT_CATEGORY = "unselect-category", a.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", a))(X || {});
|
|
860
|
+
const Il = F({
|
|
975
861
|
name: "listbox-multi-select-options",
|
|
976
862
|
components: {
|
|
977
|
-
BentoListboxOption:
|
|
978
|
-
BentoTypography:
|
|
979
|
-
ListboxMultiSelectCategory:
|
|
980
|
-
DecorativeCheckbox:
|
|
863
|
+
BentoListboxOption: Ae,
|
|
864
|
+
BentoTypography: le,
|
|
865
|
+
ListboxMultiSelectCategory: Ol,
|
|
866
|
+
DecorativeCheckbox: Ve
|
|
981
867
|
},
|
|
982
868
|
inheritAttrs: !1,
|
|
983
869
|
props: {
|
|
@@ -1054,35 +940,34 @@ const Tl = z({
|
|
|
1054
940
|
}
|
|
1055
941
|
},
|
|
1056
942
|
emits: [
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
943
|
+
X.TOGGLE_CHECKBOX_SELECTION,
|
|
944
|
+
X.SELECT_CATEGORY,
|
|
945
|
+
X.UNSELECT_CATEGORY,
|
|
946
|
+
X.TOGGLE_CATEGORY_VISIBILITY
|
|
1061
947
|
],
|
|
1062
948
|
setup(a, { emit: e }) {
|
|
1063
|
-
const l = (
|
|
1064
|
-
a.isOptionDisabled(
|
|
1065
|
-
}, t = (
|
|
1066
|
-
const
|
|
1067
|
-
return
|
|
1068
|
-
}, o = (
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
return c || b || !!d.items.find((p) => a.selectedItemsList.includes(p.value));
|
|
949
|
+
const l = (c) => {
|
|
950
|
+
a.isOptionDisabled(c) || e(X.TOGGLE_CHECKBOX_SELECTION, c);
|
|
951
|
+
}, t = (c) => !!c.items, s = (c) => {
|
|
952
|
+
const r = a.isMultiLevel && a.searching;
|
|
953
|
+
return c.description && (!a.isMultiLevel || r);
|
|
954
|
+
}, o = (c) => {
|
|
955
|
+
const r = !!a.parentCategory?.lazyLoad && a.selectedItemsList.includes(a.parentCategory.value);
|
|
956
|
+
if (c.items) {
|
|
957
|
+
const m = !!c.lazyLoad && a.selectedItemsList.includes(c.value);
|
|
958
|
+
return r || m || !!c.items.find((u) => a.selectedItemsList.includes(u.value));
|
|
1074
959
|
}
|
|
1075
|
-
return
|
|
1076
|
-
},
|
|
1077
|
-
if (t(
|
|
1078
|
-
const
|
|
1079
|
-
e(
|
|
960
|
+
return r || a.selectedItemsList.includes(c.value);
|
|
961
|
+
}, i = (c) => {
|
|
962
|
+
if (t(c)) {
|
|
963
|
+
const r = o(c) ? X.UNSELECT_CATEGORY : X.SELECT_CATEGORY;
|
|
964
|
+
e(r, c);
|
|
1080
965
|
} else
|
|
1081
|
-
l(
|
|
966
|
+
l(c);
|
|
1082
967
|
};
|
|
1083
968
|
return {
|
|
1084
969
|
// Values
|
|
1085
|
-
conditionalClasses:
|
|
970
|
+
conditionalClasses: n(() => ({
|
|
1086
971
|
"b-listbox-multi-select-options__static-category-option": a.staticCategories,
|
|
1087
972
|
"b-listbox-multi-select-options__category-option": a.categoryItems
|
|
1088
973
|
})),
|
|
@@ -1090,15 +975,15 @@ const Tl = z({
|
|
|
1090
975
|
isOptionSelected: o,
|
|
1091
976
|
shouldShowDescription: s,
|
|
1092
977
|
toggleCheckboxSelection: l,
|
|
1093
|
-
toggleSearchOption:
|
|
1094
|
-
computedTabindex: (
|
|
978
|
+
toggleSearchOption: i,
|
|
979
|
+
computedTabindex: (c) => a.itemsIndex[c] === a.focusedIndex ? 0 : -1,
|
|
1095
980
|
// Enums
|
|
1096
|
-
BentoListboxEvent:
|
|
1097
|
-
ListboxMultiSelectOptionsEvent:
|
|
981
|
+
BentoListboxEvent: d,
|
|
982
|
+
ListboxMultiSelectOptionsEvent: X
|
|
1098
983
|
};
|
|
1099
984
|
}
|
|
1100
985
|
});
|
|
1101
|
-
var
|
|
986
|
+
var El = function() {
|
|
1102
987
|
var e = this, l = e._self._c;
|
|
1103
988
|
return e._self._setupProxy, l("div", e._l(e.items, function(t) {
|
|
1104
989
|
return l("div", { key: `selected-${t.value}` }, [e.searching && e.isMultiLevel ? [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-selected": `${e.isOptionSelected(t)}`, "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role || "option" }, on: { click: function(s) {
|
|
@@ -1125,95 +1010,34 @@ var Al = function() {
|
|
|
1125
1010
|
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(t.label))]), e.shouldShowDescription(t) ? l("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(t.description) + " ")]) : e._e()], 1)];
|
|
1126
1011
|
}, null, t)], 2)]], 2);
|
|
1127
1012
|
}), 0);
|
|
1128
|
-
},
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1013
|
+
}, wl = [], Tl = /* @__PURE__ */ V(
|
|
1014
|
+
Il,
|
|
1015
|
+
El,
|
|
1016
|
+
wl,
|
|
1132
1017
|
!1,
|
|
1133
1018
|
null,
|
|
1134
1019
|
"1cf47b26"
|
|
1135
1020
|
);
|
|
1136
|
-
const
|
|
1137
|
-
const e =
|
|
1138
|
-
var t;
|
|
1139
|
-
return !!((t = a.value) != null && t.find(({ items: s }) => !!s));
|
|
1140
|
-
}), l = i(() => {
|
|
1141
|
-
var t;
|
|
1142
|
-
return e.value ? (t = a.value) == null ? void 0 : t.reduce((s, o) => (o.items ? s.push(...o.items.flat()) : s.push(o), s), []) : a.value;
|
|
1143
|
-
});
|
|
1021
|
+
const Al = Tl.exports, st = (a) => {
|
|
1022
|
+
const e = n(() => !!a.value?.find(({ items: t }) => !!t)), l = n(() => e.value ? a.value?.reduce((t, s) => (s.items ? t.push(...s.items.flat()) : t.push(s), t), []) : a.value);
|
|
1144
1023
|
return {
|
|
1145
1024
|
isMultiLevelSelect: e,
|
|
1146
1025
|
flattenedItemsList: l
|
|
1147
1026
|
};
|
|
1148
|
-
},
|
|
1149
|
-
"de-DE": {
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
},
|
|
1155
|
-
"
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
allSelected: "All selected ({total})",
|
|
1163
|
-
numberOfTotalSelected: "{number} of {total} selected",
|
|
1164
|
-
numbersSelected: "{number} selected",
|
|
1165
|
-
selectAll: "Select all ({total})"
|
|
1166
|
-
},
|
|
1167
|
-
"es-419": {
|
|
1168
|
-
allSelected: "Todos seleccionados ({total})",
|
|
1169
|
-
numberOfTotalSelected: "{number} de {total} seleccionados",
|
|
1170
|
-
numbersSelected: "{number} seleccionados",
|
|
1171
|
-
selectAll: "Seleccionar todo ({total})"
|
|
1172
|
-
},
|
|
1173
|
-
"es-ES": {
|
|
1174
|
-
allSelected: "Todos seleccionados ({total})",
|
|
1175
|
-
numberOfTotalSelected: "{number} de {total} seleccionados",
|
|
1176
|
-
numbersSelected: "{number} seleccionado",
|
|
1177
|
-
selectAll: "Seleccionar todo ({total})"
|
|
1178
|
-
},
|
|
1179
|
-
"es-MX": {
|
|
1180
|
-
allSelected: "Todos seleccionados ({total})",
|
|
1181
|
-
numberOfTotalSelected: "{number} de {total} seleccionados",
|
|
1182
|
-
numbersSelected: "{número} seleccionado",
|
|
1183
|
-
selectAll: "Seleccionar todo ({total})"
|
|
1184
|
-
},
|
|
1185
|
-
"fr-FR": {
|
|
1186
|
-
allSelected: "Tous sélectionnés ({total})",
|
|
1187
|
-
numberOfTotalSelected: "{number} sélectionné(s) sur {total}",
|
|
1188
|
-
numbersSelected: "{number} sélectionné(s)",
|
|
1189
|
-
selectAll: "Tout sélectionner ({total})"
|
|
1190
|
-
},
|
|
1191
|
-
"it-IT": {
|
|
1192
|
-
allSelected: "Tutti i selezionati ({total})",
|
|
1193
|
-
numberOfTotalSelected: "{numero} su {totale} selezionati",
|
|
1194
|
-
numbersSelected: "{numero} selezionati",
|
|
1195
|
-
selectAll: "Seleziona tutto ({total})"
|
|
1196
|
-
},
|
|
1197
|
-
"ja-JP": {
|
|
1198
|
-
allSelected: "すべて選択 ({total})",
|
|
1199
|
-
numberOfTotalSelected: "{total}件中{number}件を選択済み",
|
|
1200
|
-
numbersSelected: "{number}件選択済み",
|
|
1201
|
-
selectAll: "すべて選択 ({total})"
|
|
1202
|
-
},
|
|
1203
|
-
"pt-BR": {
|
|
1204
|
-
allSelected: "Todos os selecionados ({total})",
|
|
1205
|
-
numberOfTotalSelected: "{number} de {total} selecionados",
|
|
1206
|
-
numbersSelected: "{number} selecionados",
|
|
1207
|
-
selectAll: "Selecionar tudo ({total})"
|
|
1208
|
-
},
|
|
1209
|
-
"zh-CN": {
|
|
1210
|
-
allSelected: "全部已选 ({total})",
|
|
1211
|
-
numberOfTotalSelected: "已选择 {number} 个,共 {total} 个",
|
|
1212
|
-
numbersSelected: "已选择 {number} 个",
|
|
1213
|
-
selectAll: "选择全部({total})个"
|
|
1214
|
-
}
|
|
1215
|
-
}, Ml = { i18n: { messages: Rl } }, Nl = /* @__PURE__ */ z({
|
|
1216
|
-
...Ml,
|
|
1027
|
+
}, kl = {
|
|
1028
|
+
"de-DE": { allSelected: "Alle ausgewählt ({total})", numberOfTotalSelected: "{number} von {total} ausgewählt", numbersSelected: "{number} ausgewählt", selectAll: "Alle auswählen ({total})" },
|
|
1029
|
+
"en-GB": { allSelected: "All selected ({total})", numberOfTotalSelected: "{number} of {total} selected", numbersSelected: "{number} selected", selectAll: "Select all ({total})" },
|
|
1030
|
+
"en-US": { allSelected: "All selected ({total})", numberOfTotalSelected: "{number} of {total} selected", numbersSelected: "{number} selected", selectAll: "Select all ({total})" },
|
|
1031
|
+
"es-419": { allSelected: "Todos seleccionados ({total})", numberOfTotalSelected: "{number} de {total} seleccionados", numbersSelected: "{number} seleccionados", selectAll: "Seleccionar todo ({total})" },
|
|
1032
|
+
"es-ES": { allSelected: "Todos seleccionados ({total})", numberOfTotalSelected: "{number} de {total} seleccionados", numbersSelected: "{number} seleccionado", selectAll: "Seleccionar todo ({total})" },
|
|
1033
|
+
"es-MX": { allSelected: "Todos seleccionados ({total})", numberOfTotalSelected: "{number} de {total} seleccionados", numbersSelected: "{número} seleccionado", selectAll: "Seleccionar todo ({total})" },
|
|
1034
|
+
"fr-FR": { allSelected: "Tous sélectionnés ({total})", numberOfTotalSelected: "{number} sélectionné(s) sur {total}", numbersSelected: "{number} sélectionné(s)", selectAll: "Tout sélectionner ({total})" },
|
|
1035
|
+
"it-IT": { allSelected: "Tutti i selezionati ({total})", numberOfTotalSelected: "{numero} su {totale} selezionati", numbersSelected: "{numero} selezionati", selectAll: "Seleziona tutto ({total})" },
|
|
1036
|
+
"ja-JP": { allSelected: "すべて選択 ({total})", numberOfTotalSelected: "{total}件中{number}件を選択済み", numbersSelected: "{number}件選択済み", selectAll: "すべて選択 ({total})" },
|
|
1037
|
+
"pt-BR": { allSelected: "Todos os selecionados ({total})", numberOfTotalSelected: "{number} de {total} selecionados", numbersSelected: "{number} selecionados", selectAll: "Selecionar tudo ({total})" },
|
|
1038
|
+
"zh-CN": { allSelected: "全部已选 ({total})", numberOfTotalSelected: "已选择 {number} 个,共 {total} 个", numbersSelected: "已选择 {number} 个", selectAll: "选择全部({total})个" }
|
|
1039
|
+
}, Dl = { i18n: { messages: kl } }, Bl = /* @__PURE__ */ F({
|
|
1040
|
+
...Dl,
|
|
1217
1041
|
__name: "listbox-multi-select",
|
|
1218
1042
|
props: {
|
|
1219
1043
|
hasMoreItems: { type: Boolean, default: !1 },
|
|
@@ -1226,174 +1050,157 @@ const Bl = Dl.exports, it = (a) => {
|
|
|
1226
1050
|
},
|
|
1227
1051
|
emits: ["select"],
|
|
1228
1052
|
setup(a, { expose: e, emit: l }) {
|
|
1229
|
-
const t = a, { t: s, n: o } =
|
|
1230
|
-
() => {
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
const S = t.isOptionDisabled(f), O = ((w = p.value) == null ? void 0 : w.includes(f.value)) || !1;
|
|
1243
|
-
return { isDisabled: S, isPreSelected: O };
|
|
1244
|
-
}, k = i(() => {
|
|
1245
|
-
if (t.searching && C)
|
|
1053
|
+
const t = a, { t: s, n: o } = ae(), i = Se(), p = Pe(), _ = n(
|
|
1054
|
+
() => ({
|
|
1055
|
+
"aria-label": p["aria-label"]?.toString(),
|
|
1056
|
+
"aria-busy": p["aria-busy"]?.toString(),
|
|
1057
|
+
"aria-atomic": p["aria-atomic"]?.toString(),
|
|
1058
|
+
"aria-live": p["aria-live"]?.toString(),
|
|
1059
|
+
"aria-multiselectable": !0
|
|
1060
|
+
})
|
|
1061
|
+
), c = L(null), r = L(null), m = L(null), u = L(null), b = n(() => t.selectedValues.map(({ value: f }) => f)), { isMultiLevelSelect: x, flattenedItemsList: g } = st(q(t, "items")), M = n(() => t.items.some((f) => f.items && f.lazyLoad)), B = n(() => x.value ? t.items.reduce((f, S) => (S.items ? S.lazyLoad ? f.push(S) : f.push(...S.items) : f.push(S), f), []) : t.items), v = n(() => x.value && !t.staticCategories), I = n(() => v.value ? "tree" : "listbox"), D = n(() => v.value ? "treeitem" : "option"), A = (f) => {
|
|
1062
|
+
const S = t.isOptionDisabled(f), E = b.value?.includes(f.value) || !1;
|
|
1063
|
+
return { isDisabled: S, isPreSelected: E };
|
|
1064
|
+
}, w = n(() => {
|
|
1065
|
+
if (t.searching && x)
|
|
1246
1066
|
return t.items;
|
|
1247
|
-
const f =
|
|
1067
|
+
const f = B.value.filter((S) => {
|
|
1248
1068
|
if (S.lazyLoad)
|
|
1249
1069
|
return !0;
|
|
1250
|
-
const { isDisabled:
|
|
1251
|
-
return
|
|
1070
|
+
const { isDisabled: E, isPreSelected: N } = A(S);
|
|
1071
|
+
return E && N || !E;
|
|
1252
1072
|
});
|
|
1253
1073
|
return t.selectedValues.forEach((S) => {
|
|
1254
|
-
f.find((
|
|
1074
|
+
f.find((E) => E.value === S.value) || f.push(S);
|
|
1255
1075
|
}), f;
|
|
1256
|
-
}),
|
|
1257
|
-
() =>
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
}, L = () => {
|
|
1281
|
-
g(x.value);
|
|
1282
|
-
}, m = () => {
|
|
1283
|
-
B(x.value);
|
|
1284
|
-
}, { isAllSelected: I, isIndeterminate: J, toggleSelectAll: $ } = at(
|
|
1285
|
-
D,
|
|
1076
|
+
}), T = n(
|
|
1077
|
+
() => w.value?.filter((f) => b.value?.includes(f.value))
|
|
1078
|
+
), G = () => x.value && !t.searching ? g.value.length : t.items.length, U = n(() => {
|
|
1079
|
+
const f = w.value.length, S = G(), E = T.value?.length || 0;
|
|
1080
|
+
return E === 0 ? s("selectAll", { total: o(f) }) : E === S ? s("allSelected", { total: o(S) }) : E <= S ? s("numberOfTotalSelected", { number: o(E), total: o(S) }) : s("numbersSelected", { number: o(E) });
|
|
1081
|
+
}), h = (f) => {
|
|
1082
|
+
const S = (N) => {
|
|
1083
|
+
const { isDisabled: C, isPreSelected: $ } = A(N);
|
|
1084
|
+
return C && $ || !C;
|
|
1085
|
+
}, E = f.filter(S).filter((N) => !b.value.includes(N.value));
|
|
1086
|
+
l("select", [...t.selectedValues, ...E]);
|
|
1087
|
+
}, R = (f) => {
|
|
1088
|
+
const S = (C) => {
|
|
1089
|
+
const { isDisabled: $, isPreSelected: O } = A(C);
|
|
1090
|
+
return !($ && O);
|
|
1091
|
+
}, E = f.filter(S).map(({ value: C }) => C), N = t.selectedValues.filter((C) => !E?.includes(C.value));
|
|
1092
|
+
l("select", N);
|
|
1093
|
+
}, k = () => {
|
|
1094
|
+
h(g.value);
|
|
1095
|
+
}, y = () => {
|
|
1096
|
+
R(g.value);
|
|
1097
|
+
}, { isAllSelected: P, isIndeterminate: ie, toggleSelectAll: K } = et(
|
|
1098
|
+
T,
|
|
1099
|
+
w,
|
|
1286
1100
|
k,
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
se.value = !se.value, $(se.value);
|
|
1101
|
+
y
|
|
1102
|
+
), j = n(() => ie.value ? "mixed" : `${P.value}`), ee = L(P.value), re = () => {
|
|
1103
|
+
ee.value = !ee.value, K(ee.value);
|
|
1291
1104
|
};
|
|
1292
|
-
|
|
1293
|
-
|
|
1105
|
+
Q(P, () => {
|
|
1106
|
+
ee.value = P.value;
|
|
1294
1107
|
});
|
|
1295
|
-
const
|
|
1108
|
+
const _e = (f) => {
|
|
1296
1109
|
if (f.lazyLoad) {
|
|
1297
|
-
const S = (f.items ?? []).map(({ value:
|
|
1298
|
-
l("select", [...
|
|
1110
|
+
const S = (f.items ?? []).map(({ value: N }) => N), E = t.selectedValues.filter(({ value: N }) => !S.includes(N));
|
|
1111
|
+
l("select", [...E, f]);
|
|
1299
1112
|
} else
|
|
1300
|
-
|
|
1301
|
-
},
|
|
1113
|
+
h(f.items);
|
|
1114
|
+
}, ke = (f) => {
|
|
1302
1115
|
f.lazyLoad ? l(
|
|
1303
1116
|
"select",
|
|
1304
1117
|
t.selectedValues.filter(({ value: S }) => S !== f.value)
|
|
1305
|
-
) :
|
|
1306
|
-
},
|
|
1307
|
-
let
|
|
1308
|
-
if (
|
|
1309
|
-
l(f,
|
|
1118
|
+
) : R(f.items);
|
|
1119
|
+
}, De = (f, S) => {
|
|
1120
|
+
let E = !1, N = t.selectedValues.filter(({ value: $ }) => S.value === $ ? (E = !0, !1) : !0);
|
|
1121
|
+
if (E) {
|
|
1122
|
+
l(f, N);
|
|
1310
1123
|
return;
|
|
1311
1124
|
}
|
|
1312
|
-
const
|
|
1313
|
-
(
|
|
1314
|
-
var y;
|
|
1315
|
-
return ((y = W.items) == null ? void 0 : y.some((F) => F.value === S.value)) && W.lazyLoad && p.value.includes(W.value);
|
|
1316
|
-
}
|
|
1125
|
+
const C = t.items.find(
|
|
1126
|
+
($) => $.items?.some((O) => O.value === S.value) && $.lazyLoad && b.value.includes($.value)
|
|
1317
1127
|
);
|
|
1318
|
-
if (
|
|
1319
|
-
|
|
1320
|
-
const
|
|
1321
|
-
(
|
|
1128
|
+
if (C) {
|
|
1129
|
+
N = N.filter(({ value: O }) => O !== C.value);
|
|
1130
|
+
const $ = C.items.filter(
|
|
1131
|
+
(O) => O.value !== S.value
|
|
1322
1132
|
);
|
|
1323
|
-
|
|
1133
|
+
N.push(...$);
|
|
1324
1134
|
} else
|
|
1325
|
-
|
|
1326
|
-
l(f,
|
|
1327
|
-
},
|
|
1328
|
-
if (!
|
|
1135
|
+
N.push(S);
|
|
1136
|
+
l(f, N);
|
|
1137
|
+
}, ce = n(() => {
|
|
1138
|
+
if (!x.value)
|
|
1329
1139
|
return t.selectedValues;
|
|
1330
|
-
const f = (
|
|
1331
|
-
(
|
|
1332
|
-
),
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
P.add(y.value), (F = y.items) == null || F.forEach((Y) => P.add(Y.value));
|
|
1140
|
+
const f = (O) => b.value.includes(O.value), S = (O) => O.lazyLoad && f(O) ? !0 : !t.staticCategories && O.items.length > 0 && O.items.every((ve) => f(ve)), E = t.items.flatMap(
|
|
1141
|
+
(O) => O.items && !S(O) ? O.items : O
|
|
1142
|
+
), N = E.filter((O) => O.items ? !0 : f(O)), C = /* @__PURE__ */ new Set();
|
|
1143
|
+
E.forEach((O) => {
|
|
1144
|
+
C.add(O.value), O.items?.forEach((ve) => C.add(ve.value));
|
|
1336
1145
|
});
|
|
1337
|
-
const
|
|
1338
|
-
return [...
|
|
1339
|
-
}),
|
|
1340
|
-
|
|
1341
|
-
if (!((O = pe.value) != null && O.length))
|
|
1146
|
+
const $ = t.selectedValues.filter((O) => !C.has(O.value));
|
|
1147
|
+
return [...N, ...$];
|
|
1148
|
+
}), de = n(() => {
|
|
1149
|
+
if (!ce.value?.length)
|
|
1342
1150
|
return !1;
|
|
1343
|
-
const f = ["automatic", "button"].includes(t.lazyLoadType), S =
|
|
1344
|
-
return f && t.hasMoreItems ? !!
|
|
1345
|
-
}),
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
),
|
|
1350
|
-
|
|
1351
|
-
|
|
1151
|
+
const f = ["automatic", "button"].includes(t.lazyLoadType), S = t.selectedValues?.length > 0 && T.value?.length !== w.value?.length;
|
|
1152
|
+
return f && t.hasMoreItems ? !!t.selectedValues?.length : S;
|
|
1153
|
+
}), ue = n(() => M.value ? !1 : ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), J = L([]), { visibleDomOptions: pe, updateVisibleDomOptions: xe } = ze(
|
|
1154
|
+
c,
|
|
1155
|
+
q(t, "items"),
|
|
1156
|
+
D
|
|
1157
|
+
), Be = (f) => {
|
|
1158
|
+
J.value.includes(f) ? J.value = J.value.filter((S) => S !== f) : J.value.push(f), Y(() => {
|
|
1159
|
+
xe();
|
|
1352
1160
|
});
|
|
1353
|
-
},
|
|
1354
|
-
|
|
1355
|
-
(S = me.value[f]) == null || S.focus();
|
|
1161
|
+
}, fe = (f) => {
|
|
1162
|
+
pe.value[f]?.focus();
|
|
1356
1163
|
}, {
|
|
1357
|
-
moveToNextElement:
|
|
1358
|
-
moveToPreviousElement:
|
|
1359
|
-
moveToFirstElement:
|
|
1360
|
-
moveToLastElement:
|
|
1361
|
-
preventDefault:
|
|
1362
|
-
focusedIndex:
|
|
1363
|
-
setListboxFocusedIndex:
|
|
1364
|
-
} =
|
|
1164
|
+
moveToNextElement: ge,
|
|
1165
|
+
moveToPreviousElement: be,
|
|
1166
|
+
moveToFirstElement: he,
|
|
1167
|
+
moveToLastElement: se,
|
|
1168
|
+
preventDefault: me,
|
|
1169
|
+
focusedIndex: Ce,
|
|
1170
|
+
setListboxFocusedIndex: Le
|
|
1171
|
+
} = tt(
|
|
1365
1172
|
{
|
|
1366
|
-
items:
|
|
1173
|
+
items: pe
|
|
1367
1174
|
},
|
|
1368
|
-
|
|
1369
|
-
),
|
|
1370
|
-
[
|
|
1371
|
-
[
|
|
1372
|
-
[
|
|
1373
|
-
[
|
|
1175
|
+
fe
|
|
1176
|
+
), Oe = {
|
|
1177
|
+
[z.ARROW_UP]: (f) => be(f),
|
|
1178
|
+
[z.ARROW_DOWN]: (f) => ge(f),
|
|
1179
|
+
[z.HOME]: he,
|
|
1180
|
+
[z.END]: se
|
|
1374
1181
|
};
|
|
1375
1182
|
e({
|
|
1376
1183
|
/**
|
|
1377
1184
|
* Method to set the index of the item to be focused on
|
|
1378
1185
|
* Used for focus management to be kept in-sync with parent e.g. dropdowns
|
|
1379
1186
|
*/
|
|
1380
|
-
setListboxFocusedIndex:
|
|
1187
|
+
setListboxFocusedIndex: Le
|
|
1381
1188
|
});
|
|
1382
|
-
const
|
|
1383
|
-
[
|
|
1384
|
-
[
|
|
1385
|
-
},
|
|
1386
|
-
let f =
|
|
1189
|
+
const Ie = {
|
|
1190
|
+
[z.ARROW_UP]: me,
|
|
1191
|
+
[z.ARROW_DOWN]: me
|
|
1192
|
+
}, Re = n(() => {
|
|
1193
|
+
let f = ue.value ? 1 : 0;
|
|
1387
1194
|
const S = {};
|
|
1388
|
-
return t.items.forEach((
|
|
1389
|
-
let
|
|
1390
|
-
|
|
1195
|
+
return t.items.forEach((E) => {
|
|
1196
|
+
let N = J.value.includes(E.value);
|
|
1197
|
+
E.items ? (t.staticCategories ? N = !0 : S[E.value] = f++, N && E.items.forEach((C) => S[C.value] = f++)) : S[E.value] = f++;
|
|
1391
1198
|
}), S;
|
|
1392
1199
|
});
|
|
1393
|
-
return { __sfc: !0, props: t, emit: l, t: s, n: o, slots:
|
|
1200
|
+
return { __sfc: !0, props: t, emit: l, t: s, n: o, slots: i, attrs: p, ariaAttributes: _, listboxRef: c, selectAllListboxItemsRef: r, selectedListboxItemsRef: m, listboxItemsRef: u, selectedItemsList: b, isMultiLevelSelect: x, flattenedItemsList: g, hasLazyLoadCategory: M, lazyLoadAwareFlattenedItems: B, isTreePattern: v, computedRole: I, computedOptionRole: D, optionStates: A, enabledItems: w, visibleSelectedList: T, calculateTotalItems: G, selectAllCheckboxText: U, selectAll: h, unselectAll: R, selectAllItems: k, unselectAllItems: y, isAllSelected: P, isIndeterminate: ie, toggleSelectAll: K, ariaCheckedComputed: j, isSelectAllOn: ee, handleSelectAll: re, selectAllCategory: _e, unselectAllCategory: ke, toggleCheckboxSelection: De, selectedOptions: ce, showSelectedItems: de, showSelectAllCheckbox: ue, expandedCategories: J, visibleDomOptions: pe, updateVisibleDomOptions: xe, toggleCategoryVisibility: Be, focusItem: fe, moveToNextElement: ge, moveToPreviousElement: be, moveToFirstElement: he, moveToLastElement: se, preventDefault: me, focusedIndex: Ce, setListboxFocusedIndex: Le, listboxListeners: Oe, chipsSectionListeners: Ie, computedItemsIndex: Re, DecorativeCheckbox: Ve, BentoTypography: le, BentoChip: gt, BentoListboxOption: Ae, ListboxMultiSelectOptions: Al, vBentoKeyboardNavigationDirective: Te, BentoListboxEvent: d };
|
|
1394
1201
|
}
|
|
1395
1202
|
});
|
|
1396
|
-
var
|
|
1203
|
+
var Rl = function() {
|
|
1397
1204
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
1398
1205
|
return l("div", { ref: "listboxRef", staticClass: "b-listbox-multi-select" }, [t.showSelectedItems ? l("div", [l("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, t.chipsSectionListeners), e._l(t.selectedOptions, function(s) {
|
|
1399
1206
|
return l("li", { key: s.value }, [l(t.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(s), label: s.label, condensed: "" }, on: { click: function(o) {
|
|
@@ -1410,34 +1217,34 @@ var $l = function() {
|
|
|
1410
1217
|
}, "enter-pressed": function(s) {
|
|
1411
1218
|
return t.toggleCheckboxSelection(t.BentoListboxEvent.ENTER, s);
|
|
1412
1219
|
} }, scopedSlots: e._u([e._l(t.slots, function(s, o) {
|
|
1413
|
-
return { key: o, fn: function(
|
|
1414
|
-
return [e._t(o, null, null,
|
|
1220
|
+
return { key: o, fn: function(i) {
|
|
1221
|
+
return [e._t(o, null, null, i)];
|
|
1415
1222
|
} };
|
|
1416
1223
|
})], null, !0) })], 1)]);
|
|
1417
|
-
},
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1224
|
+
}, Ml = [], Nl = /* @__PURE__ */ V(
|
|
1225
|
+
Bl,
|
|
1226
|
+
Rl,
|
|
1227
|
+
Ml,
|
|
1421
1228
|
!1,
|
|
1422
1229
|
null,
|
|
1423
1230
|
"78b94290"
|
|
1424
1231
|
);
|
|
1425
|
-
const
|
|
1232
|
+
const Ke = Nl.exports, ot = (a, e = 300) => {
|
|
1426
1233
|
let l;
|
|
1427
1234
|
return (...s) => {
|
|
1428
1235
|
l && clearTimeout(l), l = setTimeout(() => a(...s), e);
|
|
1429
1236
|
};
|
|
1430
|
-
},
|
|
1237
|
+
}, $l = 36, Pl = F({
|
|
1431
1238
|
name: "bento-listbox",
|
|
1432
1239
|
components: {
|
|
1433
|
-
BentoEmptyState:
|
|
1434
|
-
BentoListboxSingleSelect:
|
|
1435
|
-
BentoListboxMultiSelect:
|
|
1436
|
-
BentoTypography:
|
|
1437
|
-
BentoLoadingIndicator:
|
|
1438
|
-
BentoListboxLazyLoad:
|
|
1439
|
-
},
|
|
1440
|
-
directives: { BentoKeyboardNavigationDirective:
|
|
1240
|
+
BentoEmptyState: Qe,
|
|
1241
|
+
BentoListboxSingleSelect: Jt,
|
|
1242
|
+
BentoListboxMultiSelect: Ke,
|
|
1243
|
+
BentoTypography: le,
|
|
1244
|
+
BentoLoadingIndicator: Ze,
|
|
1245
|
+
BentoListboxLazyLoad: at
|
|
1246
|
+
},
|
|
1247
|
+
directives: { BentoKeyboardNavigationDirective: Te },
|
|
1441
1248
|
props: {
|
|
1442
1249
|
/**
|
|
1443
1250
|
* Defines a string value that labels an interactive element.
|
|
@@ -1493,8 +1300,8 @@ const je = Fl.exports, rt = (a, e = 300) => {
|
|
|
1493
1300
|
*/
|
|
1494
1301
|
lazyLoadType: {
|
|
1495
1302
|
type: String,
|
|
1496
|
-
default:
|
|
1497
|
-
validator: (a) => Object.values(
|
|
1303
|
+
default: Z.NONE,
|
|
1304
|
+
validator: (a) => Object.values(Z).includes(a)
|
|
1498
1305
|
},
|
|
1499
1306
|
/**
|
|
1500
1307
|
* Indicates the listbox is loading filtered items.
|
|
@@ -1518,7 +1325,7 @@ const je = Fl.exports, rt = (a, e = 300) => {
|
|
|
1518
1325
|
*
|
|
1519
1326
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
1520
1327
|
*/
|
|
1521
|
-
searching:
|
|
1328
|
+
searching: Ke.props.searching,
|
|
1522
1329
|
/**
|
|
1523
1330
|
* The `input` value.
|
|
1524
1331
|
* Providing an empty string or empty array will select no options.
|
|
@@ -1538,170 +1345,163 @@ const je = Fl.exports, rt = (a, e = 300) => {
|
|
|
1538
1345
|
}
|
|
1539
1346
|
},
|
|
1540
1347
|
emits: [
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1348
|
+
d.SELECT,
|
|
1349
|
+
d.SPACE,
|
|
1350
|
+
d.SHOW_MORE,
|
|
1351
|
+
d.ENTER,
|
|
1352
|
+
d.ESCAPE,
|
|
1353
|
+
d.TAB
|
|
1547
1354
|
],
|
|
1548
1355
|
setup(a, { emit: e, slots: l, expose: t }) {
|
|
1549
|
-
const s =
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
startIndex: N
|
|
1560
|
-
} = Tt(o, {
|
|
1561
|
-
itemHeight: v(),
|
|
1356
|
+
const s = L([]), o = q(a, "items"), i = n(() => a.lazyLoadType !== Z.AUTOMATIC), p = n(() => a.lazyLoadType === Z.AUTOMATIC), _ = () => typeof a?.virtualScroll == "object" && a?.virtualScroll?.itemHeight ? a.virtualScroll.itemHeight : $l, c = !a?.multiple && a?.virtualScroll !== !1 && a?.lazyLoadType === "none", {
|
|
1357
|
+
containerRef: r,
|
|
1358
|
+
containerProps: m,
|
|
1359
|
+
onScroll: u,
|
|
1360
|
+
list: b,
|
|
1361
|
+
wrapperProps: x,
|
|
1362
|
+
scrollToIndex: g,
|
|
1363
|
+
startIndex: M
|
|
1364
|
+
} = It(o, {
|
|
1365
|
+
itemHeight: _(),
|
|
1562
1366
|
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1563
|
-
disabled: !
|
|
1564
|
-
}),
|
|
1565
|
-
() => a.componentLoading !== void 0 ||
|
|
1566
|
-
),
|
|
1567
|
-
() =>
|
|
1568
|
-
),
|
|
1569
|
-
() =>
|
|
1570
|
-
), A =
|
|
1367
|
+
disabled: !c
|
|
1368
|
+
}), B = n(() => c ? o.value.length : 0), v = n(
|
|
1369
|
+
() => a.componentLoading !== void 0 || i.value ? "true" : void 0
|
|
1370
|
+
), I = n(
|
|
1371
|
+
() => i.value && a.loading || a.componentLoading ? "true" : "false"
|
|
1372
|
+
), D = n(
|
|
1373
|
+
() => i.value || a.componentLoading !== void 0 ? "polite" : void 0
|
|
1374
|
+
), A = n(
|
|
1571
1375
|
() => ({
|
|
1572
1376
|
"aria-label": a.ariaLabel,
|
|
1573
|
-
"aria-busy":
|
|
1574
|
-
"aria-atomic":
|
|
1575
|
-
"aria-live":
|
|
1377
|
+
"aria-busy": I.value,
|
|
1378
|
+
"aria-atomic": v.value,
|
|
1379
|
+
"aria-live": D.value
|
|
1576
1380
|
})
|
|
1577
|
-
),
|
|
1381
|
+
), w = n(
|
|
1578
1382
|
() => a.componentLoading ? {
|
|
1579
1383
|
...A.value,
|
|
1580
1384
|
role: "alert"
|
|
1581
1385
|
} : {}
|
|
1582
|
-
),
|
|
1583
|
-
e(
|
|
1386
|
+
), T = (K) => (j) => {
|
|
1387
|
+
e(K, j);
|
|
1584
1388
|
}, G = () => {
|
|
1585
|
-
e(
|
|
1586
|
-
},
|
|
1587
|
-
const
|
|
1588
|
-
if (
|
|
1389
|
+
e(d.SHOW_MORE);
|
|
1390
|
+
}, U = ot(() => {
|
|
1391
|
+
const K = r.value;
|
|
1392
|
+
if (!K)
|
|
1589
1393
|
return;
|
|
1590
|
-
const
|
|
1591
|
-
a.hasMoreItems &&
|
|
1592
|
-
}),
|
|
1593
|
-
|
|
1594
|
-
},
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
), m = i(
|
|
1600
|
-
() => a.loading ? ke.LOADING : ke.START
|
|
1601
|
-
), I = i(() => ({
|
|
1394
|
+
const j = Math.round(K.scrollTop) + K.clientHeight >= K.scrollHeight;
|
|
1395
|
+
a.hasMoreItems && j && !a.loading && G();
|
|
1396
|
+
}), h = () => {
|
|
1397
|
+
p.value ? U() : u();
|
|
1398
|
+
}, R = n(() => a.items?.length === 0), k = n(
|
|
1399
|
+
() => a.lazyLoadType === Z.BUTTON && a.hasMoreItems
|
|
1400
|
+
), y = n(
|
|
1401
|
+
() => a.loading ? we.LOADING : we.START
|
|
1402
|
+
), P = n(() => ({
|
|
1602
1403
|
...a.emptyState,
|
|
1603
1404
|
variant: "condensed"
|
|
1604
|
-
})),
|
|
1605
|
-
[
|
|
1606
|
-
[
|
|
1607
|
-
[
|
|
1608
|
-
[
|
|
1405
|
+
})), ie = {
|
|
1406
|
+
[d.SELECT]: T(d.SELECT),
|
|
1407
|
+
[d.SPACE]: T(d.SPACE),
|
|
1408
|
+
[d.TAB]: T(d.TAB),
|
|
1409
|
+
[d.ENTER]: T(d.ENTER)
|
|
1609
1410
|
};
|
|
1610
|
-
return t({ listboxRef:
|
|
1411
|
+
return t({ listboxRef: r, listboxItemRef: s }), {
|
|
1611
1412
|
// Refs
|
|
1612
|
-
listboxRef:
|
|
1413
|
+
listboxRef: r,
|
|
1613
1414
|
listboxItemRef: s,
|
|
1614
1415
|
// a11y
|
|
1615
1416
|
ariaAttributes: A,
|
|
1616
|
-
listboxContainerAttributes:
|
|
1417
|
+
listboxContainerAttributes: w,
|
|
1617
1418
|
// Values
|
|
1618
|
-
containerProps:
|
|
1619
|
-
isSearchResultEmpty:
|
|
1620
|
-
limitedEmptyStateProps:
|
|
1621
|
-
loadingButtonState:
|
|
1419
|
+
containerProps: m,
|
|
1420
|
+
isSearchResultEmpty: R,
|
|
1421
|
+
limitedEmptyStateProps: P,
|
|
1422
|
+
loadingButtonState: y,
|
|
1622
1423
|
slots: l,
|
|
1623
|
-
shouldDisplayShowMoreButton:
|
|
1624
|
-
virtualisedItems:
|
|
1625
|
-
wrapperProps:
|
|
1424
|
+
shouldDisplayShowMoreButton: k,
|
|
1425
|
+
virtualisedItems: b,
|
|
1426
|
+
wrapperProps: x,
|
|
1626
1427
|
// Virtual scroll
|
|
1627
|
-
totalItemCount:
|
|
1628
|
-
scrollToIndex:
|
|
1629
|
-
virtualScrollStartIndex:
|
|
1428
|
+
totalItemCount: B,
|
|
1429
|
+
scrollToIndex: g,
|
|
1430
|
+
virtualScrollStartIndex: M,
|
|
1630
1431
|
// Enums
|
|
1631
|
-
BentoKeyboardNavigationKeyDownEvent:
|
|
1632
|
-
BentoListboxEvent:
|
|
1432
|
+
BentoKeyboardNavigationKeyDownEvent: z,
|
|
1433
|
+
BentoListboxEvent: d,
|
|
1633
1434
|
// Methods
|
|
1634
|
-
onListboxContainerScroll:
|
|
1635
|
-
onOptionSelected:
|
|
1435
|
+
onListboxContainerScroll: h,
|
|
1436
|
+
onOptionSelected: T,
|
|
1636
1437
|
emitShowMore: G,
|
|
1637
|
-
listboxListeners:
|
|
1438
|
+
listboxListeners: ie
|
|
1638
1439
|
};
|
|
1639
1440
|
}
|
|
1640
1441
|
});
|
|
1641
|
-
var
|
|
1642
|
-
var t;
|
|
1442
|
+
var Fl = function() {
|
|
1643
1443
|
var e = this, l = e._self._c;
|
|
1644
|
-
return e._self._setupProxy, l("div", e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style:
|
|
1645
|
-
return { key:
|
|
1646
|
-
return [e._t(
|
|
1444
|
+
return e._self._setupProxy, l("div", e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: e.containerProps?.style, attrs: { id: e.id, tabindex: "-1", "data-testid": "listbox-container" }, on: { scroll: e.onListboxContainerScroll } }, "div", e.listboxContainerAttributes, !1), [l("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? l("div", { staticClass: "b-listbox__loading-filtered-items" }, [l("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? l("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [l("bento-listbox-multi-select", e._g(e._b({ ref: "listboxItemRef", attrs: { "has-more-items": e.hasMoreItems, items: e.items, "lazy-load-type": e.lazyLoadType, "static-categories": e.staticCategories, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(t, s) {
|
|
1445
|
+
return { key: s, fn: function(o) {
|
|
1446
|
+
return [e._t(s, null, null, o)];
|
|
1647
1447
|
} };
|
|
1648
|
-
})], null, !0) }, "bento-listbox-multi-select", e.ariaAttributes, !1), e.listboxListeners))] : [l("bento-listbox-single-select", e._g(e._b({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "total-item-count": e.totalItemCount, "scroll-to-index": e.scrollToIndex, "virtual-scroll-start-index": e.virtualScrollStartIndex, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(
|
|
1649
|
-
return { key:
|
|
1650
|
-
return [e._t(
|
|
1448
|
+
})], null, !0) }, "bento-listbox-multi-select", e.ariaAttributes, !1), e.listboxListeners))] : [l("bento-listbox-single-select", e._g(e._b({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "total-item-count": e.totalItemCount, "scroll-to-index": e.scrollToIndex, "virtual-scroll-start-index": e.virtualScrollStartIndex, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(t, s) {
|
|
1449
|
+
return { key: s, fn: function(o) {
|
|
1450
|
+
return [e._t(s, null, null, o)];
|
|
1651
1451
|
} };
|
|
1652
1452
|
})], null, !0) }, "bento-listbox-single-select", e.ariaAttributes, !1), e.listboxListeners))], e.lazyLoadType !== "none" ? l("bento-listbox-lazy-load", { attrs: { "has-more-items": e.hasMoreItems, loading: e.loading, type: e.lazyLoadType }, on: { "show-more": e.emitShowMore } }) : e._e()]], 2)]);
|
|
1653
|
-
},
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1453
|
+
}, zl = [], Vl = /* @__PURE__ */ V(
|
|
1454
|
+
Pl,
|
|
1455
|
+
Fl,
|
|
1456
|
+
zl,
|
|
1657
1457
|
!1,
|
|
1658
1458
|
null,
|
|
1659
1459
|
"6756a7d9"
|
|
1660
1460
|
);
|
|
1661
|
-
const
|
|
1461
|
+
const Ne = Vl.exports, $e = (a, e) => {
|
|
1662
1462
|
for (const l of a) {
|
|
1663
1463
|
if (l.value === e)
|
|
1664
1464
|
return l;
|
|
1665
1465
|
if (l.items) {
|
|
1666
|
-
const t =
|
|
1466
|
+
const t = $e(l.items, e);
|
|
1667
1467
|
if (t)
|
|
1668
1468
|
return t;
|
|
1669
1469
|
}
|
|
1670
1470
|
}
|
|
1671
1471
|
return null;
|
|
1672
|
-
},
|
|
1673
|
-
const s =
|
|
1674
|
-
l.value ? o.value =
|
|
1675
|
-
},
|
|
1676
|
-
l.value ? o.value =
|
|
1677
|
-
},
|
|
1678
|
-
s.value =
|
|
1679
|
-
},
|
|
1472
|
+
}, Gl = (a) => typeof a == "object" && a !== null && "value" in a && "label" in a, Ul = (a, e, l, t) => {
|
|
1473
|
+
const s = L([]), o = L(), i = (r) => {
|
|
1474
|
+
l.value ? o.value = r.map(({ value: m }) => m) : o.value = r.length > 0 ? r[0].value : null;
|
|
1475
|
+
}, p = (r) => {
|
|
1476
|
+
l.value ? o.value = r.map(({ value: m, label: u }) => ({ value: m, label: u })) : o.value = r.length > 0 ? { value: r[0].value, label: r[0].label } : null;
|
|
1477
|
+
}, _ = (r) => {
|
|
1478
|
+
s.value = r, t?.value ? p(r) : i(r);
|
|
1479
|
+
}, c = () => {
|
|
1680
1480
|
s.value = [], o.value = null;
|
|
1681
1481
|
};
|
|
1682
|
-
return
|
|
1482
|
+
return Q(
|
|
1683
1483
|
() => e.value,
|
|
1684
1484
|
() => {
|
|
1685
1485
|
if (!e.value && e.value !== 0) {
|
|
1686
|
-
|
|
1486
|
+
c();
|
|
1687
1487
|
return;
|
|
1688
1488
|
}
|
|
1689
|
-
const
|
|
1690
|
-
|
|
1691
|
-
const
|
|
1692
|
-
if (
|
|
1693
|
-
s.value.push(
|
|
1489
|
+
const r = !Array.isArray(e.value), m = [...s.value];
|
|
1490
|
+
c();
|
|
1491
|
+
const u = (b) => {
|
|
1492
|
+
if (Gl(b))
|
|
1493
|
+
s.value.push(b);
|
|
1694
1494
|
else {
|
|
1695
|
-
let
|
|
1696
|
-
|
|
1495
|
+
let x = $e(a.value, b);
|
|
1496
|
+
x || (x = $e(m, b)), x || (x = { value: b, label: b.toString() }), s.value.push(x);
|
|
1697
1497
|
}
|
|
1698
1498
|
};
|
|
1699
|
-
if (
|
|
1700
|
-
const
|
|
1701
|
-
b
|
|
1499
|
+
if (r) {
|
|
1500
|
+
const b = e.value;
|
|
1501
|
+
u(b), t?.value ? p(s.value) : i(s.value);
|
|
1702
1502
|
return;
|
|
1703
1503
|
}
|
|
1704
|
-
e.value.forEach(
|
|
1504
|
+
e.value.forEach(u), t?.value ? p(s.value) : i(s.value);
|
|
1705
1505
|
},
|
|
1706
1506
|
{ immediate: !0 }
|
|
1707
1507
|
), {
|
|
@@ -1709,123 +1509,79 @@ const Fe = Wl.exports, ze = (a, e) => {
|
|
|
1709
1509
|
cachedSelectedListboxOptions: s,
|
|
1710
1510
|
cachedListboxSelectedValues: o,
|
|
1711
1511
|
// Methods
|
|
1712
|
-
resetCache:
|
|
1713
|
-
setCachedValues:
|
|
1512
|
+
resetCache: c,
|
|
1513
|
+
setCachedValues: _
|
|
1714
1514
|
};
|
|
1715
1515
|
};
|
|
1716
|
-
var
|
|
1717
|
-
const
|
|
1718
|
-
"de-DE": {
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
},
|
|
1723
|
-
"
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
},
|
|
1728
|
-
"
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
},
|
|
1733
|
-
"es-419": {
|
|
1734
|
-
apply: "Aplicar",
|
|
1735
|
-
cancel: "Cancelar",
|
|
1736
|
-
noOptionsMatchThisSearch: "No se encontraron opciones que coincidan con esta búsqueda"
|
|
1737
|
-
},
|
|
1738
|
-
"es-ES": {
|
|
1739
|
-
apply: "Aplicar",
|
|
1740
|
-
cancel: "Cancelar",
|
|
1741
|
-
noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda"
|
|
1742
|
-
},
|
|
1743
|
-
"es-MX": {
|
|
1744
|
-
apply: "Aplicar",
|
|
1745
|
-
cancel: "Cancelar",
|
|
1746
|
-
noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda"
|
|
1747
|
-
},
|
|
1748
|
-
"fr-FR": {
|
|
1749
|
-
apply: "Appliquer",
|
|
1750
|
-
cancel: "Annuler",
|
|
1751
|
-
noOptionsMatchThisSearch: "Aucune option ne correspond à cette recherche"
|
|
1752
|
-
},
|
|
1753
|
-
"it-IT": {
|
|
1754
|
-
apply: "Applica",
|
|
1755
|
-
cancel: "Annulla",
|
|
1756
|
-
noOptionsMatchThisSearch: "Nessun risultato corrispondente a questa ricerca"
|
|
1757
|
-
},
|
|
1758
|
-
"ja-JP": {
|
|
1759
|
-
apply: "適用",
|
|
1760
|
-
cancel: "キャンセル",
|
|
1761
|
-
noOptionsMatchThisSearch: "この検索に一致するオプションはありません"
|
|
1762
|
-
},
|
|
1763
|
-
"pt-BR": {
|
|
1764
|
-
apply: "Aplicar",
|
|
1765
|
-
cancel: "Cancelar",
|
|
1766
|
-
noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca"
|
|
1767
|
-
},
|
|
1768
|
-
"zh-CN": {
|
|
1769
|
-
apply: "应用",
|
|
1770
|
-
cancel: "取消",
|
|
1771
|
-
noOptionsMatchThisSearch: "没有符合此搜索条件的选项"
|
|
1772
|
-
}
|
|
1773
|
-
}, jl = (a, e, l, t) => {
|
|
1774
|
-
const s = E(a.value), { t: o } = ie();
|
|
1775
|
-
ae(a, () => {
|
|
1516
|
+
var ye = /* @__PURE__ */ ((a) => (a.DEFAULT = "DropdownInputDefault", a.SMALL = "DropdownInputSmall", a))(ye || {});
|
|
1517
|
+
const Wl = {
|
|
1518
|
+
"de-DE": { apply: "Anwenden", cancel: "Abbrechen", noOptionsMatchThisSearch: "Für diese Suche wurden keine Ergebnisse gefunden." },
|
|
1519
|
+
"en-GB": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
|
|
1520
|
+
"en-US": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
|
|
1521
|
+
"es-419": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "No se encontraron opciones que coincidan con esta búsqueda" },
|
|
1522
|
+
"es-ES": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda" },
|
|
1523
|
+
"es-MX": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda" },
|
|
1524
|
+
"fr-FR": { apply: "Appliquer", cancel: "Annuler", noOptionsMatchThisSearch: "Aucune option ne correspond à cette recherche" },
|
|
1525
|
+
"it-IT": { apply: "Applica", cancel: "Annulla", noOptionsMatchThisSearch: "Nessun risultato corrispondente a questa ricerca" },
|
|
1526
|
+
"ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索に一致するオプションはありません" },
|
|
1527
|
+
"pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca" },
|
|
1528
|
+
"zh-CN": { apply: "应用", cancel: "取消", noOptionsMatchThisSearch: "没有符合此搜索条件的选项" }
|
|
1529
|
+
}, Kl = (a, e, l, t) => {
|
|
1530
|
+
const s = L(a.value), { t: o } = ae();
|
|
1531
|
+
Q(a, () => {
|
|
1776
1532
|
s.value = a.value;
|
|
1777
1533
|
});
|
|
1778
|
-
const
|
|
1534
|
+
const i = n(
|
|
1779
1535
|
() => JSON.stringify(s.value) === JSON.stringify(a.value)
|
|
1780
|
-
),
|
|
1781
|
-
t(
|
|
1782
|
-
},
|
|
1783
|
-
s.value = a.value, t(
|
|
1784
|
-
},
|
|
1536
|
+
), p = () => {
|
|
1537
|
+
t(d.SELECT, s.value), t(d.CLOSE_DROPDOWN);
|
|
1538
|
+
}, _ = () => {
|
|
1539
|
+
s.value = a.value, t(d.CLOSE_DROPDOWN);
|
|
1540
|
+
}, c = () => {
|
|
1785
1541
|
l.value && e.value && (s.value = a.value);
|
|
1786
|
-
},
|
|
1542
|
+
}, r = n(() => [
|
|
1787
1543
|
{
|
|
1788
1544
|
title: o("apply"),
|
|
1789
|
-
event:
|
|
1790
|
-
disabled:
|
|
1545
|
+
event: p,
|
|
1546
|
+
disabled: i.value
|
|
1791
1547
|
},
|
|
1792
1548
|
{
|
|
1793
1549
|
title: o("cancel"),
|
|
1794
|
-
event:
|
|
1550
|
+
event: _
|
|
1795
1551
|
}
|
|
1796
|
-
]),
|
|
1797
|
-
s.value =
|
|
1798
|
-
},
|
|
1799
|
-
|
|
1800
|
-
},
|
|
1801
|
-
|
|
1802
|
-
},
|
|
1803
|
-
|
|
1804
|
-
},
|
|
1805
|
-
|
|
1806
|
-
},
|
|
1807
|
-
t(
|
|
1808
|
-
},
|
|
1809
|
-
[
|
|
1810
|
-
[
|
|
1811
|
-
[
|
|
1812
|
-
[
|
|
1813
|
-
[
|
|
1552
|
+
]), m = (v) => {
|
|
1553
|
+
s.value = v, e.value || t(d.SELECT, v);
|
|
1554
|
+
}, u = (v) => {
|
|
1555
|
+
m(v), t(d.TAB);
|
|
1556
|
+
}, b = (v) => {
|
|
1557
|
+
m(v), t(d.ENTER);
|
|
1558
|
+
}, x = (v) => {
|
|
1559
|
+
m(v), t(d.SPACE);
|
|
1560
|
+
}, g = () => {
|
|
1561
|
+
_(), t(d.ESCAPE);
|
|
1562
|
+
}, M = () => {
|
|
1563
|
+
t(d.SHOW_MORE);
|
|
1564
|
+
}, B = {
|
|
1565
|
+
[d.SELECT]: m,
|
|
1566
|
+
[d.SHOW_MORE]: M,
|
|
1567
|
+
[d.TAB]: u,
|
|
1568
|
+
[d.SPACE]: x,
|
|
1569
|
+
[d.ENTER]: b
|
|
1814
1570
|
};
|
|
1815
1571
|
return {
|
|
1816
1572
|
// Values
|
|
1817
|
-
actions:
|
|
1573
|
+
actions: r,
|
|
1818
1574
|
internalSelectedValue: s,
|
|
1819
1575
|
// Methods
|
|
1820
|
-
listeners:
|
|
1821
|
-
onEscapeKey:
|
|
1822
|
-
onOutsideDropdownClick:
|
|
1576
|
+
listeners: B,
|
|
1577
|
+
onEscapeKey: g,
|
|
1578
|
+
onOutsideDropdownClick: c
|
|
1823
1579
|
};
|
|
1824
|
-
},
|
|
1825
|
-
i18n: { messages:
|
|
1580
|
+
}, ql = F({
|
|
1581
|
+
i18n: { messages: Wl },
|
|
1826
1582
|
name: "bento-dropdown-options-container"
|
|
1827
|
-
}),
|
|
1828
|
-
...
|
|
1583
|
+
}), Yl = /* @__PURE__ */ F({
|
|
1584
|
+
...ql,
|
|
1829
1585
|
props: {
|
|
1830
1586
|
/**
|
|
1831
1587
|
* Defines a string value that labels an interactive element.
|
|
@@ -1884,8 +1640,8 @@ const Yl = {
|
|
|
1884
1640
|
*/
|
|
1885
1641
|
lazyLoadType: {
|
|
1886
1642
|
type: String,
|
|
1887
|
-
default:
|
|
1888
|
-
validator: (a) => Object.values(
|
|
1643
|
+
default: Z.AUTOMATIC,
|
|
1644
|
+
validator: (a) => Object.values(Z).includes(a)
|
|
1889
1645
|
},
|
|
1890
1646
|
/**
|
|
1891
1647
|
* Indicates if new options are lazy loading.
|
|
@@ -1915,7 +1671,7 @@ const Yl = {
|
|
|
1915
1671
|
*
|
|
1916
1672
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
1917
1673
|
*/
|
|
1918
|
-
searching:
|
|
1674
|
+
searching: Ne.props.searching,
|
|
1919
1675
|
/**
|
|
1920
1676
|
* If enabled, dropdown will display non-selectable, static categories
|
|
1921
1677
|
*/
|
|
@@ -1924,7 +1680,7 @@ const Yl = {
|
|
|
1924
1680
|
* Reference to the DOM element or Vue component for positioning
|
|
1925
1681
|
* the Dropdown container.
|
|
1926
1682
|
*/
|
|
1927
|
-
targetElement: { type:
|
|
1683
|
+
targetElement: { type: Ge.props.targetElement.type, required: !0 },
|
|
1928
1684
|
/**
|
|
1929
1685
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
1930
1686
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -1936,28 +1692,27 @@ const Yl = {
|
|
|
1936
1692
|
},
|
|
1937
1693
|
emits: [],
|
|
1938
1694
|
setup(a, { expose: e, emit: l }) {
|
|
1939
|
-
const t = a, s =
|
|
1940
|
-
"b-dropdown-options-container--single": !
|
|
1941
|
-
})),
|
|
1942
|
-
"b-dropdown-options-container__listbox--single": !
|
|
1943
|
-
})), { actions:
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
"min-width": `${(A = t == null ? void 0 : t.targetElement) == null ? void 0 : A.clientWidth}px`,
|
|
1695
|
+
const t = a, s = Se(), { selectedValue: o, multiple: i } = je(t), p = L(null), { t: _ } = ae(), c = n(() => t.open && !t.disabled), r = n(() => _("noOptionsMatchThisSearch")), m = n(() => ({
|
|
1696
|
+
"b-dropdown-options-container--single": !t?.multiple
|
|
1697
|
+
})), u = n(() => ({
|
|
1698
|
+
"b-dropdown-options-container__listbox--single": !t?.multiple
|
|
1699
|
+
})), { actions: b, internalSelectedValue: x, listeners: g, onEscapeKey: M, onOutsideDropdownClick: B } = Kl(o, i, c, l), v = n(() => t?.multiple ? St : Ge), I = n(() => {
|
|
1700
|
+
const D = {
|
|
1701
|
+
"min-width": `${t?.targetElement?.clientWidth}px`,
|
|
1947
1702
|
"max-width": "min(500px, 95%)"
|
|
1948
1703
|
};
|
|
1949
|
-
return t
|
|
1704
|
+
return t?.multiple ? {
|
|
1950
1705
|
actionsLayout: "space-between",
|
|
1951
1706
|
ariaLabel: t.ariaLabel,
|
|
1952
|
-
actions:
|
|
1707
|
+
actions: b.value,
|
|
1953
1708
|
divider: !0,
|
|
1954
1709
|
fallbackPosition: ["top-start"],
|
|
1955
|
-
id:
|
|
1710
|
+
id: te(`dropdown-options-${t.id}`),
|
|
1956
1711
|
open: t.open,
|
|
1957
1712
|
position: "bottom-start",
|
|
1958
1713
|
style: {
|
|
1959
1714
|
width: "auto",
|
|
1960
|
-
...
|
|
1715
|
+
...D
|
|
1961
1716
|
},
|
|
1962
1717
|
targetElement: t.targetElement
|
|
1963
1718
|
} : {
|
|
@@ -1965,79 +1720,57 @@ const Yl = {
|
|
|
1965
1720
|
offset: [0, 8],
|
|
1966
1721
|
position: "bottom-start",
|
|
1967
1722
|
style: {
|
|
1968
|
-
display:
|
|
1969
|
-
...
|
|
1723
|
+
display: c.value ? "block" : "none",
|
|
1724
|
+
...D
|
|
1970
1725
|
},
|
|
1971
1726
|
targetElement: t.targetElement
|
|
1972
1727
|
};
|
|
1973
1728
|
});
|
|
1974
1729
|
return e({
|
|
1975
|
-
onOutsideDropdownClick:
|
|
1976
|
-
dropdownOptionsListboxRef:
|
|
1977
|
-
}), { __sfc: !0, slots: s, emit: l, props: t, selectedValue: o, multiple:
|
|
1730
|
+
onOutsideDropdownClick: B,
|
|
1731
|
+
dropdownOptionsListboxRef: p
|
|
1732
|
+
}), { __sfc: !0, slots: s, emit: l, props: t, selectedValue: o, multiple: i, dropdownOptionsListboxRef: p, t: _, isDropdownOpen: c, noResultsMessage: r, conditionalClasses: m, conditionalListboxClasses: u, actions: b, internalSelectedValue: x, listeners: g, onEscapeKey: M, onOutsideDropdownClick: B, popperContainerOrPopoverComponent: v, popperContainerOrPopoverProps: I, BentoListbox: Ne };
|
|
1978
1733
|
}
|
|
1979
1734
|
});
|
|
1980
|
-
var
|
|
1735
|
+
var jl = function() {
|
|
1981
1736
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
1982
1737
|
return t.isDropdownOpen ? l(t.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container", class: t.conditionalClasses }, "component", t.popperContainerOrPopoverProps, !1), [l("div", { on: { keydown: [function(s) {
|
|
1983
1738
|
s.stopPropagation();
|
|
1984
1739
|
}, function(s) {
|
|
1985
1740
|
return !s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : t.onEscapeKey.apply(null, arguments);
|
|
1986
1741
|
}] } }, [l(t.BentoListbox, e._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: t.conditionalListboxClasses, attrs: { id: e.id, "aria-label": e.ariaLabel, "component-loading": e.componentLoading, "empty-state": e.emptyState, "is-option-disabled": e.isOptionDisabled, items: e.items, "selected-value": t.internalSelectedValue, multiple: t.multiple, "static-categories": e.staticCategories, "no-results-message": t.noResultsMessage, searching: e.searching, loading: e.loading, "lazy-load-type": e.lazyLoadType, "has-more-items": e.hasMoreItems, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(t.slots, function(s, o) {
|
|
1987
|
-
return { key: o, fn: function(
|
|
1988
|
-
return [e._t(o, null, null,
|
|
1742
|
+
return { key: o, fn: function(i) {
|
|
1743
|
+
return [e._t(o, null, null, i)];
|
|
1989
1744
|
} };
|
|
1990
1745
|
})], null, !0) }, t.listeners))], 1)]) : e._e();
|
|
1991
|
-
},
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1746
|
+
}, Hl = [], Jl = /* @__PURE__ */ V(
|
|
1747
|
+
Yl,
|
|
1748
|
+
jl,
|
|
1749
|
+
Hl,
|
|
1995
1750
|
!1,
|
|
1996
1751
|
null,
|
|
1997
1752
|
"1254877d"
|
|
1998
1753
|
);
|
|
1999
|
-
const
|
|
2000
|
-
var
|
|
2001
|
-
const
|
|
2002
|
-
"de-DE": {
|
|
2003
|
-
|
|
2004
|
-
},
|
|
2005
|
-
"
|
|
2006
|
-
|
|
2007
|
-
},
|
|
2008
|
-
"
|
|
2009
|
-
|
|
2010
|
-
},
|
|
2011
|
-
"
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
clearSearch: "Borrar búsqueda"
|
|
2016
|
-
},
|
|
2017
|
-
"es-MX": {
|
|
2018
|
-
clearSearch: "Borrar búsqueda"
|
|
2019
|
-
},
|
|
2020
|
-
"fr-FR": {
|
|
2021
|
-
clearSearch: "Effacer la recherche"
|
|
2022
|
-
},
|
|
2023
|
-
"it-IT": {
|
|
2024
|
-
clearSearch: "Cancella ricerca"
|
|
2025
|
-
},
|
|
2026
|
-
"ja-JP": {
|
|
2027
|
-
clearSearch: "検索をクリア"
|
|
2028
|
-
},
|
|
2029
|
-
"pt-BR": {
|
|
2030
|
-
clearSearch: "Limpar busca"
|
|
2031
|
-
},
|
|
2032
|
-
"zh-CN": {
|
|
2033
|
-
clearSearch: "清除搜索"
|
|
2034
|
-
}
|
|
2035
|
-
}, aa = z({
|
|
2036
|
-
i18n: { messages: la },
|
|
1754
|
+
const Xl = Jl.exports;
|
|
1755
|
+
var H = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.READONLY = "readonly", a.HAS_ITEMS = "has-items", a.OPENED = "opened", a.ERROR = "error", a))(H || {}), W = /* @__PURE__ */ ((a) => (a.OPEN = "dropdown-base-open", a.KEYDOWN = "dropdown-base-keydown", a.CLOSE = "dropdown-base-close", a.INPUT = "dropdown-base-input", a.CLEAR = "dropdown-base-clear", a))(W || {});
|
|
1756
|
+
const Zl = /* @__PURE__ */ Symbol("dropdown small size injection key"), nt = /* @__PURE__ */ Symbol("dropdown underline style injection key"), Ql = {
|
|
1757
|
+
"de-DE": { clearSearch: "Suche löschen" },
|
|
1758
|
+
"en-GB": { clearSearch: "Clear search" },
|
|
1759
|
+
"en-US": { clearSearch: "Clear search" },
|
|
1760
|
+
"es-419": { clearSearch: "Borrar búsqueda" },
|
|
1761
|
+
"es-ES": { clearSearch: "Borrar búsqueda" },
|
|
1762
|
+
"es-MX": { clearSearch: "Borrar búsqueda" },
|
|
1763
|
+
"fr-FR": { clearSearch: "Effacer la recherche" },
|
|
1764
|
+
"it-IT": { clearSearch: "Cancella ricerca" },
|
|
1765
|
+
"ja-JP": { clearSearch: "検索をクリア" },
|
|
1766
|
+
"pt-BR": { clearSearch: "Limpar busca" },
|
|
1767
|
+
"zh-CN": { clearSearch: "清除搜索" }
|
|
1768
|
+
}, ea = F({
|
|
1769
|
+
i18n: { messages: Ql },
|
|
2037
1770
|
name: "dropdown-base-textbox",
|
|
2038
1771
|
inheritAttrs: !1
|
|
2039
|
-
}),
|
|
2040
|
-
...
|
|
1772
|
+
}), ta = /* @__PURE__ */ F({
|
|
1773
|
+
...ea,
|
|
2041
1774
|
props: {
|
|
2042
1775
|
/**
|
|
2043
1776
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -2123,60 +1856,57 @@ const ta = /* @__PURE__ */ Symbol("dropdown small size injection key"), ct = /*
|
|
|
2123
1856
|
},
|
|
2124
1857
|
emits: [],
|
|
2125
1858
|
setup(a, { expose: e, emit: l }) {
|
|
2126
|
-
const t = a, { t: s } =
|
|
2127
|
-
[`b-dropdown-base-textbox--${
|
|
2128
|
-
[`b-dropdown-base-textbox--${
|
|
2129
|
-
[`b-dropdown-base-textbox--${
|
|
2130
|
-
"b-dropdown-base-textbox--underline":
|
|
2131
|
-
})),
|
|
2132
|
-
() =>
|
|
2133
|
-
),
|
|
1859
|
+
const t = a, { t: s } = ae(), o = Pe(), i = Se(), p = He(i), _ = L(null), c = te("textbox"), r = Fe(nt, !1), m = n(() => ({
|
|
1860
|
+
[`b-dropdown-base-textbox--${H.DISABLED}`]: t.disabled,
|
|
1861
|
+
[`b-dropdown-base-textbox--${H.READONLY}`]: t.readonly,
|
|
1862
|
+
[`b-dropdown-base-textbox--${H.HAS_ITEMS}`]: !!t.additionalItemsSelected,
|
|
1863
|
+
"b-dropdown-base-textbox--underline": r
|
|
1864
|
+
})), u = n(
|
|
1865
|
+
() => B.value && o["aria-required"] ? "true" : null
|
|
1866
|
+
), b = n(() => ({
|
|
2134
1867
|
"b-dropdown-base-textbox__input--dynamic-filtering": t.dynamicFiltering
|
|
2135
|
-
})),
|
|
2136
|
-
() => {
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
};
|
|
2149
|
-
}
|
|
2150
|
-
), N = i(
|
|
1868
|
+
})), x = n(() => t.dynamicFiltering && !!t.value && t.open), g = n(
|
|
1869
|
+
() => ({
|
|
1870
|
+
"aria-haspopup": "listbox",
|
|
1871
|
+
"aria-controls": t.ariaControls,
|
|
1872
|
+
"aria-describedby": o["aria-describedby"]?.toString(),
|
|
1873
|
+
"aria-expanded": t.ariaExpanded ? "true" : "false",
|
|
1874
|
+
"aria-labelledby": t.ariaLabelledby,
|
|
1875
|
+
"aria-label": t.ariaLabelledby ? null : t.ariaLabel,
|
|
1876
|
+
"aria-invalid": t.isInvalid,
|
|
1877
|
+
"aria-disabled": t.disabled ? !0 : null,
|
|
1878
|
+
"aria-required": o["aria-required"]
|
|
1879
|
+
})
|
|
1880
|
+
), M = n(
|
|
2151
1881
|
() => t.multiple ? t.selectedValueItem : []
|
|
2152
|
-
),
|
|
2153
|
-
() => t.multiple && t.selectedValueItem &&
|
|
1882
|
+
), B = n(() => t.dynamicFiltering && (t.open || t.alwaysComboboxIsInput)), v = n(() => t.selectedValueItem && !t.multiple), I = n(
|
|
1883
|
+
() => t.multiple && t.selectedValueItem && M.value.length > 0 && t.showSlotContentInMultiple
|
|
2154
1884
|
);
|
|
2155
|
-
|
|
2156
|
-
() =>
|
|
1885
|
+
Q(
|
|
1886
|
+
() => B.value,
|
|
2157
1887
|
() => {
|
|
2158
|
-
|
|
2159
|
-
|
|
1888
|
+
B.value && !t.alwaysComboboxIsInput && Y(() => {
|
|
1889
|
+
_.value.focus();
|
|
2160
1890
|
});
|
|
2161
1891
|
}
|
|
2162
1892
|
);
|
|
2163
|
-
const
|
|
2164
|
-
!t.disabled && !t.readonly && (l(
|
|
2165
|
-
}, A = (
|
|
2166
|
-
t.open && (
|
|
2167
|
-
},
|
|
2168
|
-
l(
|
|
2169
|
-
}, G = (
|
|
2170
|
-
!t.readonly && !t.disabled ? l(
|
|
2171
|
-
},
|
|
2172
|
-
|
|
1893
|
+
const D = async () => {
|
|
1894
|
+
!t.disabled && !t.readonly && (l(W.OPEN), await Y(), _.value.focus());
|
|
1895
|
+
}, A = (h) => {
|
|
1896
|
+
t.open && (h && ne(h), _.value.focus(), l(W.CLOSE));
|
|
1897
|
+
}, w = (h) => t.open && h.target.tagName === "INPUT" ? null : t.open ? A() : D(), T = () => {
|
|
1898
|
+
l(W.CLEAR), l(W.INPUT, ""), _.value.focus();
|
|
1899
|
+
}, G = (h) => {
|
|
1900
|
+
!t.readonly && !t.disabled ? l(W.INPUT, h.target.value) : (h.preventDefault(), h.stopPropagation());
|
|
1901
|
+
}, U = () => {
|
|
1902
|
+
_.value.focus();
|
|
2173
1903
|
};
|
|
2174
1904
|
return e({
|
|
2175
|
-
focus:
|
|
2176
|
-
}), { __sfc: !0, t: s, attrs: o, slots:
|
|
1905
|
+
focus: U
|
|
1906
|
+
}), { __sfc: !0, t: s, attrs: o, slots: i, hasSlot: p, props: t, emit: l, textbox: _, textboxId: c, isUnderlineStyle: r, conditionalClasses: m, showRequiredAttribute: u, comboboxConditionalClasses: b, isFiltering: x, ariaAttributes: g, selectedValueItems: M, shouldShowInput: B, shouldShowSingleSelectSlot: v, shouldShowMultipleSlot: I, onOpenDropdown: D, onCloseDropdown: A, onToggleDropdown: w, onClearSearch: T, onInputEvent: G, focus: U, BentoTypography: le, DropdownBaseTextboxEvent: W, CrossCircleFillIcon: ut, CrossCircleFillSmallIcon: pt, BentoDropdownSize: ye };
|
|
2177
1907
|
}
|
|
2178
1908
|
});
|
|
2179
|
-
var
|
|
1909
|
+
var la = function() {
|
|
2180
1910
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
2181
1911
|
return l("div", { class: e.$attrs.class, attrs: { "data-testid": "textbox-wrapper" }, on: { click: t.onToggleDropdown, keydown: function(s) {
|
|
2182
1912
|
return !s.type.indexOf("key") && e._k(s.keyCode, "escape", void 0, s.key, void 0) ? null : t.onCloseDropdown.apply(null, arguments);
|
|
@@ -2197,19 +1927,19 @@ var oa = function() {
|
|
|
2197
1927
|
}, keyup: function(s) {
|
|
2198
1928
|
return !s.type.indexOf("key") && e._k(s.keyCode, "space", 32, s.key, [" ", "Spacebar"]) ? null : t.onClearSearch.apply(null, arguments);
|
|
2199
1929
|
} } }, [e.size === t.BentoDropdownSize.SMALL ? l(t.CrossCircleFillSmallIcon, { attrs: { "svg-title": t.t("clearSearch") } }) : l(t.CrossCircleFillIcon, { attrs: { "svg-title": t.t("clearSearch") } })], 1) : e._e()])], 1);
|
|
2200
|
-
},
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
1930
|
+
}, aa = [], sa = /* @__PURE__ */ V(
|
|
1931
|
+
ta,
|
|
1932
|
+
la,
|
|
1933
|
+
aa,
|
|
2204
1934
|
!1,
|
|
2205
1935
|
null,
|
|
2206
1936
|
"20b3acdb"
|
|
2207
1937
|
);
|
|
2208
|
-
const
|
|
1938
|
+
const it = sa.exports, oa = F({
|
|
2209
1939
|
name: "dropdown-default-textbox",
|
|
2210
1940
|
inheritAttrs: !1
|
|
2211
|
-
}),
|
|
2212
|
-
...
|
|
1941
|
+
}), na = /* @__PURE__ */ F({
|
|
1942
|
+
...oa,
|
|
2213
1943
|
props: {
|
|
2214
1944
|
/**
|
|
2215
1945
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -2297,94 +2027,94 @@ const dt = ia.exports, ra = z({
|
|
|
2297
2027
|
},
|
|
2298
2028
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
2299
2029
|
setup(a, { expose: e, emit: l }) {
|
|
2300
|
-
const t = a, s =
|
|
2301
|
-
[`b-dropdown-default-textbox--${
|
|
2302
|
-
[`b-dropdown-default-textbox--${
|
|
2303
|
-
[`b-dropdown-default-textbox--${
|
|
2304
|
-
[`b-dropdown-default-textbox--${
|
|
2030
|
+
const t = a, s = Se(), o = L(null), i = n(() => ({
|
|
2031
|
+
[`b-dropdown-default-textbox--${H.ERROR}`]: !t.disabled && !t.readonly && t.isInvalid,
|
|
2032
|
+
[`b-dropdown-default-textbox--${H.DISABLED}`]: t.disabled,
|
|
2033
|
+
[`b-dropdown-default-textbox--${H.READONLY}`]: t.readonly,
|
|
2034
|
+
[`b-dropdown-default-textbox--${H.OPENED}`]: t.open,
|
|
2305
2035
|
"b-dropdown-default-textbox--condensed": t.condensed
|
|
2306
|
-
})),
|
|
2307
|
-
l("input",
|
|
2308
|
-
},
|
|
2309
|
-
l("keydown",
|
|
2310
|
-
},
|
|
2311
|
-
|
|
2312
|
-
},
|
|
2313
|
-
|
|
2314
|
-
},
|
|
2315
|
-
|
|
2316
|
-
},
|
|
2317
|
-
[
|
|
2318
|
-
[
|
|
2319
|
-
[
|
|
2320
|
-
[
|
|
2321
|
-
[
|
|
2322
|
-
},
|
|
2036
|
+
})), p = n(() => t.open && !t.disabled && !t.readonly), _ = (g) => {
|
|
2037
|
+
l("input", g);
|
|
2038
|
+
}, c = (g) => {
|
|
2039
|
+
l("keydown", g);
|
|
2040
|
+
}, r = (g) => {
|
|
2041
|
+
ne(g), l("open");
|
|
2042
|
+
}, m = (g) => {
|
|
2043
|
+
ne(g), l("close");
|
|
2044
|
+
}, u = (g) => {
|
|
2045
|
+
ne(g), l("clear");
|
|
2046
|
+
}, b = {
|
|
2047
|
+
[W.INPUT]: _,
|
|
2048
|
+
[W.OPEN]: r,
|
|
2049
|
+
[W.CLOSE]: m,
|
|
2050
|
+
[W.CLEAR]: u,
|
|
2051
|
+
[W.KEYDOWN]: c
|
|
2052
|
+
}, x = () => {
|
|
2323
2053
|
o.value.focus();
|
|
2324
2054
|
};
|
|
2325
2055
|
return e({
|
|
2326
|
-
focus:
|
|
2327
|
-
}), { __sfc: !0, emit: l, slots: s, props: t, baseTextbox: o, conditionalClasses:
|
|
2056
|
+
focus: x
|
|
2057
|
+
}), { __sfc: !0, emit: l, slots: s, props: t, baseTextbox: o, conditionalClasses: i, isDropdownOpen: p, onInput: _, onKeyDown: c, openDropdown: r, closeDropdown: m, clearValue: u, listeners: b, focus: x, DropdownBaseTextbox: it, ChevronDownIcon: Je, ChevronUpIcon: Xe };
|
|
2328
2058
|
}
|
|
2329
2059
|
});
|
|
2330
|
-
var
|
|
2060
|
+
var ia = function() {
|
|
2331
2061
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
2332
2062
|
return l("div", { staticClass: "b-dropdown-default-textbox", class: t.conditionalClasses, attrs: { "data-testid": "default-textbox" } }, [l(t.DropdownBaseTextbox, e._g(e._b({ ref: "baseTextbox", staticClass: "b-dropdown-default-textbox__textbox", attrs: { value: e.value }, scopedSlots: e._u([e._l(t.slots, function(s, o) {
|
|
2333
|
-
return { key: o, fn: function(
|
|
2334
|
-
return [e._t(o, null, null,
|
|
2063
|
+
return { key: o, fn: function(i) {
|
|
2064
|
+
return [e._t(o, null, null, i ?? {})];
|
|
2335
2065
|
} };
|
|
2336
2066
|
}), { key: "icon", fn: function() {
|
|
2337
2067
|
return [l("div", { staticClass: "b-dropdown-default-textbox__chevron" }, [l(t.ChevronUpIcon, { directives: [{ name: "show", rawName: "v-show", value: t.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), l(t.ChevronDownIcon, { directives: [{ name: "show", rawName: "v-show", value: !t.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
2338
2068
|
}, proxy: !0 }], null, !0) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), t.listeners))], 1);
|
|
2339
|
-
},
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2069
|
+
}, ra = [], ca = /* @__PURE__ */ V(
|
|
2070
|
+
na,
|
|
2071
|
+
ia,
|
|
2072
|
+
ra,
|
|
2343
2073
|
!1,
|
|
2344
2074
|
null,
|
|
2345
2075
|
"bf2d43b0"
|
|
2346
2076
|
);
|
|
2347
|
-
const
|
|
2348
|
-
let
|
|
2349
|
-
const
|
|
2077
|
+
const da = ca.exports;
|
|
2078
|
+
let qe = 0;
|
|
2079
|
+
const ua = {
|
|
2350
2080
|
beforeCreate() {
|
|
2351
|
-
this.uuid =
|
|
2081
|
+
this.uuid = qe.toString(), qe += 1;
|
|
2352
2082
|
}
|
|
2353
2083
|
};
|
|
2354
|
-
var
|
|
2084
|
+
var pa = function() {
|
|
2355
2085
|
var e = this, l = e._self._c;
|
|
2356
2086
|
return l("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"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
|
|
2357
|
-
},
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2087
|
+
}, fa = [], ba = /* @__PURE__ */ V(
|
|
2088
|
+
ua,
|
|
2089
|
+
pa,
|
|
2090
|
+
fa,
|
|
2361
2091
|
!1,
|
|
2362
2092
|
null,
|
|
2363
2093
|
null
|
|
2364
2094
|
);
|
|
2365
|
-
const
|
|
2366
|
-
let
|
|
2367
|
-
const
|
|
2095
|
+
const ma = ba.exports;
|
|
2096
|
+
let Ye = 0;
|
|
2097
|
+
const va = {
|
|
2368
2098
|
beforeCreate() {
|
|
2369
|
-
this.uuid =
|
|
2099
|
+
this.uuid = Ye.toString(), Ye += 1;
|
|
2370
2100
|
}
|
|
2371
2101
|
};
|
|
2372
|
-
var
|
|
2102
|
+
var ya = function() {
|
|
2373
2103
|
var e = this, l = e._self._c;
|
|
2374
2104
|
return l("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"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
|
|
2375
|
-
},
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2105
|
+
}, _a = [], ga = /* @__PURE__ */ V(
|
|
2106
|
+
va,
|
|
2107
|
+
ya,
|
|
2108
|
+
_a,
|
|
2379
2109
|
!1,
|
|
2380
2110
|
null,
|
|
2381
2111
|
null
|
|
2382
2112
|
);
|
|
2383
|
-
const
|
|
2113
|
+
const ha = ga.exports, Sa = F({
|
|
2384
2114
|
name: "dropdown-small-textbox",
|
|
2385
2115
|
inheritAttrs: !1
|
|
2386
|
-
}),
|
|
2387
|
-
...
|
|
2116
|
+
}), xa = /* @__PURE__ */ F({
|
|
2117
|
+
...Sa,
|
|
2388
2118
|
props: {
|
|
2389
2119
|
/**
|
|
2390
2120
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -2441,237 +2171,183 @@ const Ca = xa.exports, Oa = z({
|
|
|
2441
2171
|
},
|
|
2442
2172
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
2443
2173
|
setup(a, { expose: e, emit: l }) {
|
|
2444
|
-
const t = a, s =
|
|
2445
|
-
[`b-dropdown-small-textbox--${
|
|
2446
|
-
[`b-dropdown-small-textbox--${
|
|
2447
|
-
[`b-dropdown-small-textbox--${
|
|
2174
|
+
const t = a, s = L(null), o = Fe(nt, !1), i = n(() => ({
|
|
2175
|
+
[`b-dropdown-small-textbox--${H.DISABLED}`]: t.disabled,
|
|
2176
|
+
[`b-dropdown-small-textbox--${H.READONLY}`]: t.readonly,
|
|
2177
|
+
[`b-dropdown-small-textbox--${H.OPENED}`]: t.open,
|
|
2448
2178
|
"b-dropdown-small-textbox--underline": o
|
|
2449
|
-
})),
|
|
2450
|
-
l("input",
|
|
2451
|
-
},
|
|
2452
|
-
l("keydown",
|
|
2453
|
-
},
|
|
2454
|
-
|
|
2455
|
-
},
|
|
2456
|
-
|
|
2457
|
-
},
|
|
2458
|
-
|
|
2459
|
-
},
|
|
2460
|
-
[
|
|
2461
|
-
[
|
|
2462
|
-
[
|
|
2463
|
-
[
|
|
2464
|
-
[
|
|
2465
|
-
},
|
|
2179
|
+
})), p = n(() => t.open && !t.disabled && !t.readonly), _ = (g) => {
|
|
2180
|
+
l("input", g);
|
|
2181
|
+
}, c = (g) => {
|
|
2182
|
+
l("keydown", g);
|
|
2183
|
+
}, r = (g) => {
|
|
2184
|
+
ne(g), l("open");
|
|
2185
|
+
}, m = (g) => {
|
|
2186
|
+
ne(g), l("close");
|
|
2187
|
+
}, u = (g) => {
|
|
2188
|
+
ne(g), l("clear");
|
|
2189
|
+
}, b = {
|
|
2190
|
+
[W.INPUT]: _,
|
|
2191
|
+
[W.OPEN]: r,
|
|
2192
|
+
[W.CLOSE]: m,
|
|
2193
|
+
[W.CLEAR]: u,
|
|
2194
|
+
[W.KEYDOWN]: c
|
|
2195
|
+
}, x = () => {
|
|
2466
2196
|
s.value.focus();
|
|
2467
2197
|
};
|
|
2468
2198
|
return e({
|
|
2469
|
-
focus:
|
|
2470
|
-
}), { __sfc: !0, emit: l, props: t, baseTextbox: s, isUnderlineStyle: o, conditionalClasses:
|
|
2199
|
+
focus: x
|
|
2200
|
+
}), { __sfc: !0, emit: l, props: t, baseTextbox: s, isUnderlineStyle: o, conditionalClasses: i, isDropdownOpen: p, onInput: _, onKeyDown: c, openDropdown: r, closeDropdown: m, clearValue: u, listeners: b, focus: x, BentoDropdownSize: ye, DropdownBaseTextbox: it, ChevronDownSmallIcon: ma, ChevronUpSmallIcon: ha };
|
|
2471
2201
|
}
|
|
2472
2202
|
});
|
|
2473
|
-
var
|
|
2203
|
+
var Ca = function() {
|
|
2474
2204
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
2475
2205
|
return l("div", { staticClass: "b-dropdown-small-textbox", class: t.conditionalClasses }, [l(t.DropdownBaseTextbox, e._g(e._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: t.BentoDropdownSize.SMALL }, scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
2476
2206
|
return [l("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [l(t.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: t.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), l(t.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !t.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
2477
2207
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), t.listeners))], 1);
|
|
2478
|
-
},
|
|
2208
|
+
}, La = [], Oa = /* @__PURE__ */ V(
|
|
2209
|
+
xa,
|
|
2210
|
+
Ca,
|
|
2479
2211
|
La,
|
|
2480
|
-
Ea,
|
|
2481
|
-
Ia,
|
|
2482
2212
|
!1,
|
|
2483
2213
|
null,
|
|
2484
2214
|
"fa225e76"
|
|
2485
2215
|
);
|
|
2486
|
-
const
|
|
2487
|
-
const l = /* @__PURE__ */ new Set(), t = new Set(a.value.map((o) => o.value)), s = e.value.reduce((o,
|
|
2488
|
-
if (
|
|
2489
|
-
if (t.has(
|
|
2490
|
-
o.push(
|
|
2216
|
+
const Ia = Oa.exports, Ea = (a, e) => {
|
|
2217
|
+
const l = /* @__PURE__ */ new Set(), t = new Set(a.value.map((o) => o.value)), s = e.value.reduce((o, i) => {
|
|
2218
|
+
if (i.items)
|
|
2219
|
+
if (t.has(i.value))
|
|
2220
|
+
o.push(i.displayValue ?? i.label), l.add(i.value), i.items.forEach((_) => l.add(_.value));
|
|
2491
2221
|
else {
|
|
2492
|
-
const
|
|
2493
|
-
(
|
|
2222
|
+
const _ = i.items.filter(
|
|
2223
|
+
(r) => t.has(r.value)
|
|
2494
2224
|
);
|
|
2495
|
-
|
|
2496
|
-
o.push(
|
|
2225
|
+
_.length > 0 && _.length === i.items.length ? (o.push(i.displayValue ?? i.label), l.add(i.value), i.items.forEach((r) => l.add(r.value))) : _.forEach(({ label: r, displayValue: m, value: u }) => {
|
|
2226
|
+
o.push(m ?? r), l.add(u);
|
|
2497
2227
|
});
|
|
2498
2228
|
}
|
|
2499
2229
|
else
|
|
2500
|
-
t.has(
|
|
2230
|
+
t.has(i.value) && (o.push(i.displayValue ?? i.label), l.add(i.value));
|
|
2501
2231
|
return o;
|
|
2502
2232
|
}, []);
|
|
2503
2233
|
return a.value.forEach((o) => {
|
|
2504
2234
|
l.has(o.value) || s.push(o.displayValue ?? o.label);
|
|
2505
2235
|
}), s.join(", ");
|
|
2506
|
-
},
|
|
2507
|
-
const s =
|
|
2508
|
-
() => t.value && a.value.find((
|
|
2509
|
-
var r;
|
|
2510
|
-
return (r = n.items) == null ? void 0 : r.length;
|
|
2511
|
-
})
|
|
2236
|
+
}, wa = ({ items: a, placeholder: e, selectedValues: l, isMultiSelect: t }) => {
|
|
2237
|
+
const s = n(
|
|
2238
|
+
() => t.value && a.value.find((i) => i.items?.length)
|
|
2512
2239
|
);
|
|
2513
|
-
return
|
|
2514
|
-
},
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
}, Da = ({
|
|
2240
|
+
return n(() => l.value.length ? s.value ? Ea(l, a) : l.value.map(({ label: i, displayValue: p }) => p ?? i).join(", ") : e.value || null);
|
|
2241
|
+
}, rt = (a) => {
|
|
2242
|
+
a.value.$children?.[0].$refs.textbox.focus();
|
|
2243
|
+
}, Ta = ({
|
|
2518
2244
|
inputContainerRef: a,
|
|
2519
2245
|
optionsContainerRef: e,
|
|
2520
2246
|
selectedValueIndex: l,
|
|
2521
2247
|
isDropdownOpen: t,
|
|
2522
2248
|
isDynamicFltering: s,
|
|
2523
2249
|
items: o,
|
|
2524
|
-
isMultiple:
|
|
2525
|
-
totalItemCount:
|
|
2526
|
-
isVirtualScroll:
|
|
2527
|
-
},
|
|
2528
|
-
const
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
s.value && await H();
|
|
2534
|
-
const I = (J = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : J.$el.querySelectorAll(
|
|
2250
|
+
isMultiple: i,
|
|
2251
|
+
totalItemCount: p,
|
|
2252
|
+
isVirtualScroll: _
|
|
2253
|
+
}, c, r, m) => {
|
|
2254
|
+
const u = async (y) => {
|
|
2255
|
+
s.value && await Y(), o.value[y]?.focus();
|
|
2256
|
+
}, b = async (y) => {
|
|
2257
|
+
s.value && await Y();
|
|
2258
|
+
const P = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
|
|
2535
2259
|
"button"
|
|
2536
2260
|
);
|
|
2537
|
-
|
|
2538
|
-
},
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
await ((I = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : I.navigateToItem(m));
|
|
2546
|
-
}, N = (m) => {
|
|
2547
|
-
H(() => {
|
|
2548
|
-
v ? x(m) : (C(m), b(m));
|
|
2261
|
+
P?.length ? P[y]?.focus() : u(y);
|
|
2262
|
+
}, x = (y) => e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
|
|
2263
|
+
y
|
|
2264
|
+
), g = async (y) => {
|
|
2265
|
+
await e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.navigateToItem(y);
|
|
2266
|
+
}, M = (y) => {
|
|
2267
|
+
Y(() => {
|
|
2268
|
+
_ ? g(y) : (x(y), u(y));
|
|
2549
2269
|
});
|
|
2550
|
-
},
|
|
2551
|
-
t.value ||
|
|
2552
|
-
},
|
|
2553
|
-
t.value ||
|
|
2554
|
-
|
|
2270
|
+
}, B = () => {
|
|
2271
|
+
t.value || r(), M(0);
|
|
2272
|
+
}, v = () => {
|
|
2273
|
+
t.value || r(), Y(() => {
|
|
2274
|
+
M(_ ? p.value - 1 : o.value.length - 1);
|
|
2555
2275
|
});
|
|
2556
|
-
},
|
|
2557
|
-
|
|
2558
|
-
},
|
|
2559
|
-
|
|
2560
|
-
}, A = ({ detail:
|
|
2561
|
-
|
|
2562
|
-
},
|
|
2563
|
-
|
|
2564
|
-
},
|
|
2565
|
-
|
|
2566
|
-
}, G = ({ detail:
|
|
2567
|
-
|
|
2568
|
-
},
|
|
2569
|
-
|
|
2570
|
-
},
|
|
2571
|
-
|
|
2572
|
-
},
|
|
2573
|
-
|
|
2276
|
+
}, I = (y) => {
|
|
2277
|
+
y.preventDefault(), y.stopPropagation();
|
|
2278
|
+
}, D = ({ detail: y }) => {
|
|
2279
|
+
I(y), B();
|
|
2280
|
+
}, A = ({ detail: y }) => {
|
|
2281
|
+
I(y), v();
|
|
2282
|
+
}, w = ({ detail: y }) => {
|
|
2283
|
+
I(y), B();
|
|
2284
|
+
}, T = ({ detail: y }) => {
|
|
2285
|
+
I(y), v();
|
|
2286
|
+
}, G = ({ detail: y }) => {
|
|
2287
|
+
I(y), c(), t.value && (i ? b(0) : M(l.value));
|
|
2288
|
+
}, U = ({ detail: y }) => {
|
|
2289
|
+
I(y), c(), t.value && (i ? b(0) : M(l.value));
|
|
2290
|
+
}, h = ({ detail: y }) => {
|
|
2291
|
+
y.stopPropagation(), t.value && m();
|
|
2292
|
+
}, R = ({ detail: y }) => {
|
|
2293
|
+
y.stopPropagation(), t.value && (m(), rt(a));
|
|
2574
2294
|
};
|
|
2575
|
-
return
|
|
2576
|
-
[
|
|
2577
|
-
[
|
|
2578
|
-
[
|
|
2579
|
-
[
|
|
2580
|
-
...s.value ? {} : { [
|
|
2581
|
-
[
|
|
2582
|
-
...s.value ? {} : { [
|
|
2583
|
-
[
|
|
2295
|
+
return n(() => ({
|
|
2296
|
+
[z.ARROW_DOWN]: D,
|
|
2297
|
+
[z.ARROW_UP]: A,
|
|
2298
|
+
[z.HOME]: w,
|
|
2299
|
+
[z.END]: T,
|
|
2300
|
+
...s.value ? {} : { [z.SPACE]: G },
|
|
2301
|
+
[z.ENTER]: U,
|
|
2302
|
+
...s.value ? {} : { [z.TAB]: h },
|
|
2303
|
+
[z.ESCAPE]: R
|
|
2584
2304
|
}));
|
|
2585
|
-
},
|
|
2305
|
+
}, Aa = ({ inputContainerRef: a, isDropdownOpen: e }, l) => {
|
|
2586
2306
|
const t = () => {
|
|
2587
|
-
e.value && l(),
|
|
2588
|
-
|
|
2307
|
+
e.value && l(), Y(() => {
|
|
2308
|
+
rt(a);
|
|
2589
2309
|
});
|
|
2590
2310
|
};
|
|
2591
2311
|
return {
|
|
2592
|
-
[
|
|
2593
|
-
[
|
|
2594
|
-
[
|
|
2595
|
-
[
|
|
2312
|
+
[d.ENTER]: t,
|
|
2313
|
+
[d.ESCAPE]: t,
|
|
2314
|
+
[d.TAB]: t,
|
|
2315
|
+
[d.SPACE]: t
|
|
2596
2316
|
};
|
|
2597
2317
|
};
|
|
2598
|
-
function
|
|
2599
|
-
const o =
|
|
2600
|
-
return
|
|
2601
|
-
|
|
2602
|
-
}),
|
|
2318
|
+
function ka(a, e, l, t, s) {
|
|
2319
|
+
const o = L(a), i = L(e), p = (r, m = []) => m.flatMap((u) => u.label.toLocaleLowerCase().includes(r) ? t?.value && u.items ? [...p(r, u.items)] : [u, ...p(r, u.items)] : u.items ? [...p(r, u.items)] : []), _ = l !== void 0 ? ot(() => l(o.value), s ?? 300) : void 0;
|
|
2320
|
+
return Q(o, () => {
|
|
2321
|
+
_ !== void 0 && _();
|
|
2322
|
+
}), n(() => {
|
|
2603
2323
|
if (!o.value || l !== void 0)
|
|
2604
|
-
return
|
|
2605
|
-
const
|
|
2606
|
-
return r
|
|
2324
|
+
return i.value;
|
|
2325
|
+
const r = o.value.toLocaleLowerCase();
|
|
2326
|
+
return p(r, i.value);
|
|
2607
2327
|
});
|
|
2608
2328
|
}
|
|
2609
|
-
const
|
|
2610
|
-
"de-DE": {
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
},
|
|
2615
|
-
"
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
},
|
|
2620
|
-
"
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
clearSearch: "Clear filter"
|
|
2624
|
-
},
|
|
2625
|
-
"es-419": {
|
|
2626
|
-
all: "Todos",
|
|
2627
|
-
ariaLabelFallback: "Menú desplegable",
|
|
2628
|
-
clearSearch: "Borrar filtro"
|
|
2629
|
-
},
|
|
2630
|
-
"es-ES": {
|
|
2631
|
-
all: "Todos",
|
|
2632
|
-
ariaLabelFallback: "Menú desplegable",
|
|
2633
|
-
clearSearch: "Limpiar filtro"
|
|
2634
|
-
},
|
|
2635
|
-
"es-MX": {
|
|
2636
|
-
all: "Todos",
|
|
2637
|
-
ariaLabelFallback: "Menú desplegable",
|
|
2638
|
-
clearSearch: "Limpiar filtro"
|
|
2639
|
-
},
|
|
2640
|
-
"fr-FR": {
|
|
2641
|
-
all: "Tous",
|
|
2642
|
-
ariaLabelFallback: "Menu déroulant",
|
|
2643
|
-
clearSearch: "Effacer le filtre"
|
|
2644
|
-
},
|
|
2645
|
-
"it-IT": {
|
|
2646
|
-
all: "Tutti",
|
|
2647
|
-
ariaLabelFallback: "Menu a discesa",
|
|
2648
|
-
clearSearch: "Cancella filtro"
|
|
2649
|
-
},
|
|
2650
|
-
"ja-JP": {
|
|
2651
|
-
all: "すべて",
|
|
2652
|
-
ariaLabelFallback: "ドロップダウン",
|
|
2653
|
-
clearSearch: "フィルターをクリア"
|
|
2654
|
-
},
|
|
2655
|
-
"pt-BR": {
|
|
2656
|
-
all: "Todos",
|
|
2657
|
-
ariaLabelFallback: "Menu suspenso",
|
|
2658
|
-
clearSearch: "Limpar filtro"
|
|
2659
|
-
},
|
|
2660
|
-
"zh-CN": {
|
|
2661
|
-
all: "全部",
|
|
2662
|
-
ariaLabelFallback: "下拉菜单",
|
|
2663
|
-
clearSearch: "清除筛选器"
|
|
2664
|
-
}
|
|
2665
|
-
}, Na = z({
|
|
2666
|
-
i18n: { messages: Ma },
|
|
2329
|
+
const Da = {
|
|
2330
|
+
"de-DE": { all: "Alle", ariaLabelFallback: "Dropdown", clearSearch: "Filter löschen" },
|
|
2331
|
+
"en-GB": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
|
|
2332
|
+
"en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
|
|
2333
|
+
"es-419": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Borrar filtro" },
|
|
2334
|
+
"es-ES": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Limpiar filtro" },
|
|
2335
|
+
"es-MX": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Limpiar filtro" },
|
|
2336
|
+
"fr-FR": { all: "Tous", ariaLabelFallback: "Menu déroulant", clearSearch: "Effacer le filtre" },
|
|
2337
|
+
"it-IT": { all: "Tutti", ariaLabelFallback: "Menu a discesa", clearSearch: "Cancella filtro" },
|
|
2338
|
+
"ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
|
|
2339
|
+
"pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" },
|
|
2340
|
+
"zh-CN": { all: "全部", ariaLabelFallback: "下拉菜单", clearSearch: "清除筛选器" }
|
|
2341
|
+
}, Ba = F({
|
|
2342
|
+
i18n: { messages: Da },
|
|
2667
2343
|
name: "b-dropdown",
|
|
2668
2344
|
components: {
|
|
2669
|
-
DropdownInputDefault:
|
|
2670
|
-
DropdownInputSmall:
|
|
2345
|
+
DropdownInputDefault: da,
|
|
2346
|
+
DropdownInputSmall: Ia
|
|
2671
2347
|
},
|
|
2672
2348
|
model: { prop: "modelValue" }
|
|
2673
|
-
}),
|
|
2674
|
-
...
|
|
2349
|
+
}), Ra = /* @__PURE__ */ F({
|
|
2350
|
+
...Ba,
|
|
2675
2351
|
props: {
|
|
2676
2352
|
description: { default: null },
|
|
2677
2353
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -2692,7 +2368,7 @@ const Ma = {
|
|
|
2692
2368
|
items: { default: () => [] },
|
|
2693
2369
|
loading: { type: Boolean, default: !1 },
|
|
2694
2370
|
componentLoading: { type: Boolean, default: !1 },
|
|
2695
|
-
lazyLoadType: { default:
|
|
2371
|
+
lazyLoadType: { default: Ne.props.lazyLoadType.default },
|
|
2696
2372
|
multiple: { type: Boolean, default: !1 },
|
|
2697
2373
|
search: { default: void 0 },
|
|
2698
2374
|
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
@@ -2706,195 +2382,184 @@ const Ma = {
|
|
|
2706
2382
|
},
|
|
2707
2383
|
emits: ["input", "update:model-value", "show-more", "open"],
|
|
2708
2384
|
setup(a, { expose: e, emit: l }) {
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
), k = E(s["aria-label"]), D = E(s["aria-describedby"]), { ariaLabel: G, label: K } = Xe(t), g = i(() => r("ariaLabelFallback")), B = vt({
|
|
2385
|
+
const t = a, s = Pe(), o = Se(), i = He(o), { t: p } = ae(), { emitValue: _ } = bt(l), c = L(null), r = L(null), m = L(null), u = L(!1), b = te("bento-dropdown-options-container"), x = te("dropdown-label"), g = te("dropdown-description"), M = te("dropdown-error"), { isReadOnly: B } = mt(q(t, "readonly")), v = n(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: I, cachedListboxSelectedValues: D, setCachedValues: A } = Ul(
|
|
2386
|
+
q(t, "items"),
|
|
2387
|
+
v,
|
|
2388
|
+
q(t, "multiple"),
|
|
2389
|
+
q(t, "enableValueLabelPair")
|
|
2390
|
+
), w = L(s["aria-label"]), T = L(s["aria-describedby"]), { ariaLabel: G, label: U } = je(t), h = n(() => p("ariaLabelFallback")), R = ft({
|
|
2716
2391
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
2717
|
-
ariaLabel: G.value ||
|
|
2718
|
-
label:
|
|
2719
|
-
defaultFallback:
|
|
2720
|
-
}),
|
|
2392
|
+
ariaLabel: G.value || w,
|
|
2393
|
+
label: U,
|
|
2394
|
+
defaultFallback: h
|
|
2395
|
+
}), k = t.size === ye.SMALL || Fe(Zl, !1), y = n(() => k ? ye.SMALL : ye.DEFAULT), P = n(() => ({
|
|
2721
2396
|
"b-dropdown--condensed": t.condensed
|
|
2722
|
-
})),
|
|
2397
|
+
})), ie = n(() => ({
|
|
2723
2398
|
"b-dropdown__description--error": !!t.errorMessage
|
|
2724
|
-
})),
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
),
|
|
2731
|
-
items:
|
|
2732
|
-
placeholder:
|
|
2733
|
-
isMultiSelect:
|
|
2734
|
-
selectedValues:
|
|
2735
|
-
}),
|
|
2736
|
-
if (t
|
|
2399
|
+
})), K = L(""), j = q(t, "items"), ee = q(t, "staticCategories"), re = ka(
|
|
2400
|
+
K,
|
|
2401
|
+
j,
|
|
2402
|
+
t?.search?.searchEvent,
|
|
2403
|
+
ee,
|
|
2404
|
+
t?.search?.debounceTime
|
|
2405
|
+
), _e = n(() => t.dynamicFiltering && !!K.value), ke = wa({
|
|
2406
|
+
items: j,
|
|
2407
|
+
placeholder: q(t, "placeholder"),
|
|
2408
|
+
isMultiSelect: q(t, "multiple"),
|
|
2409
|
+
selectedValues: I
|
|
2410
|
+
}), De = n(() => {
|
|
2411
|
+
if (t?.multiple && Array.isArray(v.value))
|
|
2737
2412
|
return t.items.filter(
|
|
2738
|
-
({ value:
|
|
2413
|
+
({ value: C }) => t?.value && (t?.value).includes(C)
|
|
2739
2414
|
);
|
|
2740
2415
|
if (!t.multiple && t.staticCategories) {
|
|
2741
|
-
const
|
|
2742
|
-
(
|
|
2743
|
-
var Z;
|
|
2744
|
-
return (Z = Y.items) == null ? void 0 : Z.some((Te) => Te.value === h.value);
|
|
2745
|
-
}
|
|
2416
|
+
const C = t.items.find(
|
|
2417
|
+
(O) => O.items?.some((ve) => ve.value === v.value)
|
|
2746
2418
|
);
|
|
2747
|
-
return (
|
|
2419
|
+
return (C ? C.items.find((O) => O.value === v.value) : t.items.find(({ value: O }) => O === v.value)) ?? null;
|
|
2748
2420
|
}
|
|
2749
|
-
return t.items.find(({ value:
|
|
2750
|
-
}),
|
|
2751
|
-
const
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
});
|
|
2755
|
-
return F > -1 ? F : 0;
|
|
2756
|
-
}), { isMultiLevelSelect: fe, flattenedItemsList: be } = it(X), ee = i(() => fe.value && !t.staticCategories), me = i(() => ee.value ? "treeitem" : "option"), Oe = i(() => {
|
|
2421
|
+
return t.items.find(({ value: C }) => C === v.value);
|
|
2422
|
+
}), ce = n(() => {
|
|
2423
|
+
const $ = (de.value ? ue.value : re.value).findIndex(({ value: O }) => t.enableValueLabelPair ? v.value?.value === O : v.value === O);
|
|
2424
|
+
return $ > -1 ? $ : 0;
|
|
2425
|
+
}), { isMultiLevelSelect: de, flattenedItemsList: ue } = st(j), J = n(() => de.value && !t.staticCategories), pe = n(() => J.value ? "treeitem" : "option"), xe = n(() => {
|
|
2757
2426
|
if (t.multiple) {
|
|
2758
|
-
const
|
|
2759
|
-
return
|
|
2427
|
+
const C = Array.isArray(v.value) ? v.value.length : 0, $ = de.value ? ue.value.length : j.value.length;
|
|
2428
|
+
return C === 0 ? null : !t.hasMoreItems && $ > 0 && $ === C ? p("all") : C;
|
|
2760
2429
|
}
|
|
2761
2430
|
return null;
|
|
2762
|
-
}),
|
|
2431
|
+
}), Be = n(
|
|
2763
2432
|
() => [
|
|
2764
|
-
t.description ?
|
|
2765
|
-
|
|
2766
|
-
t.errorMessage ?
|
|
2433
|
+
t.description ? g : null,
|
|
2434
|
+
T.value,
|
|
2435
|
+
t.errorMessage ? M : null
|
|
2767
2436
|
].filter(Boolean).join(" ") || null
|
|
2768
|
-
),
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
ye();
|
|
2437
|
+
), fe = n(() => {
|
|
2438
|
+
const C = m.value?.dropdownOptionsListboxRef;
|
|
2439
|
+
return C?.listboxRef?.value ?? C?.listboxRef;
|
|
2440
|
+
}), { visibleDomOptions: ge, updateVisibleDomOptions: be } = ze(
|
|
2441
|
+
fe,
|
|
2442
|
+
re,
|
|
2443
|
+
pe
|
|
2444
|
+
), he = () => {
|
|
2445
|
+
B.value || (u.value = !0, Y(() => {
|
|
2446
|
+
be();
|
|
2779
2447
|
}));
|
|
2780
|
-
},
|
|
2781
|
-
|
|
2782
|
-
},
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
}),
|
|
2786
|
-
},
|
|
2787
|
-
|
|
2788
|
-
},
|
|
2789
|
-
|
|
2448
|
+
}, se = () => {
|
|
2449
|
+
u.value = !1;
|
|
2450
|
+
}, me = () => {
|
|
2451
|
+
B.value || (u.value = !u.value, Y(() => {
|
|
2452
|
+
be();
|
|
2453
|
+
}), _e.value && (K.value = ""));
|
|
2454
|
+
}, Ce = () => {
|
|
2455
|
+
_e.value && (K.value = ""), u.value && (u.value = !1, m.value.onOutsideDropdownClick());
|
|
2456
|
+
}, Le = n(() => [
|
|
2457
|
+
Ce,
|
|
2790
2458
|
{
|
|
2791
|
-
ignore: [
|
|
2459
|
+
ignore: [fe]
|
|
2792
2460
|
}
|
|
2793
|
-
]),
|
|
2794
|
-
t.multiple || (
|
|
2795
|
-
},
|
|
2796
|
-
l(
|
|
2797
|
-
},
|
|
2461
|
+
]), Oe = async (C) => {
|
|
2462
|
+
t.multiple || (K.value = "", u.value = !1), A(C), _(D.value), t.multiple || (await Y(), E());
|
|
2463
|
+
}, Ie = () => {
|
|
2464
|
+
l(d.SHOW_MORE);
|
|
2465
|
+
}, Re = Ta(
|
|
2798
2466
|
{
|
|
2799
|
-
inputContainerRef:
|
|
2800
|
-
optionsContainerRef:
|
|
2801
|
-
selectedValueIndex:
|
|
2802
|
-
isDropdownOpen:
|
|
2803
|
-
isDynamicFltering:
|
|
2804
|
-
items:
|
|
2467
|
+
inputContainerRef: c,
|
|
2468
|
+
optionsContainerRef: m,
|
|
2469
|
+
selectedValueIndex: ce,
|
|
2470
|
+
isDropdownOpen: u,
|
|
2471
|
+
isDynamicFltering: q(t, "dynamicFiltering"),
|
|
2472
|
+
items: ge,
|
|
2805
2473
|
isMultiple: t.multiple,
|
|
2806
|
-
totalItemCount:
|
|
2807
|
-
isVirtualScroll: !
|
|
2474
|
+
totalItemCount: n(() => re.value.length),
|
|
2475
|
+
isVirtualScroll: !t?.multiple && t?.virtualScroll !== !1 && t?.lazyLoadType === "none"
|
|
2808
2476
|
},
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
), f =
|
|
2477
|
+
me,
|
|
2478
|
+
he,
|
|
2479
|
+
se
|
|
2480
|
+
), f = Aa(
|
|
2813
2481
|
{
|
|
2814
|
-
inputContainerRef:
|
|
2815
|
-
isDropdownOpen:
|
|
2482
|
+
inputContainerRef: c,
|
|
2483
|
+
isDropdownOpen: u
|
|
2816
2484
|
},
|
|
2817
|
-
|
|
2485
|
+
se
|
|
2818
2486
|
), S = {
|
|
2819
|
-
[
|
|
2820
|
-
[
|
|
2821
|
-
[
|
|
2487
|
+
[d.CLOSE_DROPDOWN]: se,
|
|
2488
|
+
[d.SELECT]: Oe,
|
|
2489
|
+
[d.SHOW_MORE]: Ie,
|
|
2822
2490
|
...f
|
|
2823
2491
|
};
|
|
2824
|
-
t.error &&
|
|
2492
|
+
t.error && Me(
|
|
2825
2493
|
'BentoDropdown "error" property',
|
|
2826
2494
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
2827
2495
|
Having the field as "undefined" will hide/remove the error.
|
|
2828
2496
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
2829
2497
|
"2.0.0"
|
|
2830
|
-
), t.size &&
|
|
2498
|
+
), t.size && Me('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), t.value && Me(
|
|
2831
2499
|
'BentoDropdown "value" property',
|
|
2832
2500
|
`The use of "value" prop in "BentoDropdown" is no longer supported.
|
|
2833
2501
|
Use the "v-model" or "model-value" property instead.`,
|
|
2834
2502
|
"2.0.0"
|
|
2835
2503
|
);
|
|
2836
|
-
const
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
var Te;
|
|
2841
|
-
if (await H(), !b.value || t.multiple || !_.value)
|
|
2504
|
+
const E = () => {
|
|
2505
|
+
c.value?.focus();
|
|
2506
|
+
}, N = async () => {
|
|
2507
|
+
if (await Y(), !u.value || t.multiple || !m.value)
|
|
2842
2508
|
return;
|
|
2843
|
-
const
|
|
2844
|
-
if (
|
|
2509
|
+
const C = ce.value;
|
|
2510
|
+
if (C <= 0)
|
|
2845
2511
|
return;
|
|
2846
|
-
const
|
|
2847
|
-
|
|
2512
|
+
const $ = m.value.dropdownOptionsListboxRef, O = $?.listboxRef;
|
|
2513
|
+
$?.listboxItemRef?.scrollToItem?.(C, O);
|
|
2848
2514
|
};
|
|
2849
|
-
return
|
|
2850
|
-
() =>
|
|
2851
|
-
(
|
|
2852
|
-
|
|
2515
|
+
return Q(
|
|
2516
|
+
() => u.value,
|
|
2517
|
+
(C) => {
|
|
2518
|
+
C && (l("open"), N());
|
|
2853
2519
|
}
|
|
2854
2520
|
), e({
|
|
2855
|
-
focus:
|
|
2856
|
-
}), { __sfc: !0, attrs: s, slots: o, hasSlot:
|
|
2521
|
+
focus: E
|
|
2522
|
+
}), { __sfc: !0, attrs: s, slots: o, hasSlot: i, props: t, emit: l, t: p, emitValue: _, inputContainerRef: c, inputContainerRefWrapper: r, optionsContainerRef: m, isDropdownOpen: u, dropdownOptionsContainerId: b, labelId: x, descriptionId: g, errorId: M, isReadOnly: B, dropdownValue: v, cachedSelectedListboxOptions: I, cachedListboxSelectedValues: D, setCachedValues: A, ariaLabelAttribute: w, ariaDescribedByAttribute: T, ariaLabel: G, label: U, computedAriaLabelFallbackMessage: h, computedAriaLabel: R, isInputComponent: k, computedSize: y, conditionalClasses: P, descriptionConditionalClasses: ie, searchTerm: K, items: j, staticCategories: ee, filteredItems: re, isSearching: _e, displayValue: ke, selectedValueItem: De, selectedValueIndex: ce, isMultiLevelSelect: de, flattenedItemsList: ue, isTreePattern: J, computedOptionRole: pe, additionalItemsSelected: xe, ariaDescribedBy: Be, listboxRef: fe, visibleDomOptions: ge, updateVisibleDomOptions: be, openDropdown: he, closeDropdown: se, toggleDropdown: me, clickOutsideDropdown: Ce, clickOutsideDropdownOptions: Le, onOptionSelected: Oe, emitShowMoreEvent: Ie, textboxKeyboardNavigationListeners: Re, listboxKeyboardNavigationListeners: f, listboxListeners: S, focus: E, scrollToSelectedOption: N, BentoDropdownOptionsContainer: Xl, BentoTypography: le, ErrorMessage: Ot, FieldLabel: Lt, BentoTeleport: xt, vBentoClickOutsideDirective: Ct, vBentoKeyboardNavigationDirective: Te };
|
|
2857
2523
|
}
|
|
2858
2524
|
});
|
|
2859
|
-
var
|
|
2860
|
-
var s, o;
|
|
2525
|
+
var Ma = function() {
|
|
2861
2526
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
2862
|
-
return l("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.clickOutsideDropdownOptions, expression: "clickOutsideDropdownOptions" }], staticClass: "b-dropdown", class: t.conditionalClasses }, [t.label ? l(t.FieldLabel, { attrs: { id: t.labelId, condensed: e.condensed, label: t.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), l("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, t.textboxKeyboardNavigationListeners), [l(t.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: e.condensed, value: t.searchTerm, "additional-items-selected": t.additionalItemsSelected, "aria-controls": t.dropdownOptionsContainerId, ariaExpanded: t.isDropdownOpen, "aria-labelledby": t.label ? t.labelId : null, "aria-describedby": t.ariaDescribedBy, "aria-label": t.computedAriaLabel, "aria-readonly": t.isReadOnly, "aria-required": e.required, readonly: t.isReadOnly, disabled: e.disabled, "display-value": t.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: t.isDropdownOpen, "selected-value-item": t.isInputComponent ? void 0 : t.selectedValueItem, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(
|
|
2863
|
-
t.searchTerm =
|
|
2864
|
-
}, open: t.toggleDropdown, close: t.toggleDropdown }, scopedSlots: e._u([e._l(t.slots, function(
|
|
2865
|
-
return { key:
|
|
2866
|
-
return [e._t(
|
|
2527
|
+
return l("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.clickOutsideDropdownOptions, expression: "clickOutsideDropdownOptions" }], staticClass: "b-dropdown", class: t.conditionalClasses }, [t.label ? l(t.FieldLabel, { attrs: { id: t.labelId, condensed: e.condensed, label: t.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), l("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, t.textboxKeyboardNavigationListeners), [l(t.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: e.condensed, value: t.searchTerm, "additional-items-selected": t.additionalItemsSelected, "aria-controls": t.dropdownOptionsContainerId, ariaExpanded: t.isDropdownOpen, "aria-labelledby": t.label ? t.labelId : null, "aria-describedby": t.ariaDescribedBy, "aria-label": t.computedAriaLabel, "aria-readonly": t.isReadOnly, "aria-required": e.required, readonly: t.isReadOnly, disabled: e.disabled, "display-value": t.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: t.isDropdownOpen, "selected-value-item": t.isInputComponent ? void 0 : t.selectedValueItem, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(s) {
|
|
2528
|
+
t.searchTerm = s;
|
|
2529
|
+
}, open: t.toggleDropdown, close: t.toggleDropdown }, scopedSlots: e._u([e._l(t.slots, function(s, o) {
|
|
2530
|
+
return { key: o, fn: function(i) {
|
|
2531
|
+
return [e._t(o, null, null, i)];
|
|
2867
2532
|
} };
|
|
2868
|
-
})], null, !0) })], 1), t.inputContainerRef ? l(t.BentoTeleport, { attrs: { disabled:
|
|
2869
|
-
return { key:
|
|
2870
|
-
return [e._t(
|
|
2533
|
+
})], null, !0) })], 1), t.inputContainerRef ? l(t.BentoTeleport, { attrs: { disabled: e.teleport?.disabled, to: e.teleport?.to } }, [l(t.BentoDropdownOptionsContainer, e._g({ ref: "optionsContainerRef", attrs: { id: t.dropdownOptionsContainerId, "aria-label": t.computedAriaLabel, "component-loading": e.componentLoading, "empty-state": e.emptyState, disabled: e.disabled, "is-option-disabled": e.isOptionDisabled, items: t.filteredItems, multiple: e.multiple, "static-categories": t.staticCategories, open: t.isDropdownOpen, "selected-value": t.cachedSelectedListboxOptions, searching: t.isSearching, "target-element": t.inputContainerRefWrapper, loading: e.loading, "has-more-items": e.hasMoreItems, "lazy-load-type": e.lazyLoadType, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(t.slots, function(s, o) {
|
|
2534
|
+
return { key: o, fn: function(i) {
|
|
2535
|
+
return [e._t(o, null, null, i)];
|
|
2871
2536
|
} };
|
|
2872
2537
|
})], null, !0) }, t.listboxListeners))], 1) : e._e(), e.errorMessage ? l(t.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: t.errorId, "error-message": e.errorMessage } }) : e._e(), e.description || t.hasSlot("description") ? l(t.BentoTypography, { staticClass: "b-dropdown__description", class: t.descriptionConditionalClasses, attrs: { id: t.descriptionId, el: "span" } }, [e._t("description", function() {
|
|
2873
2538
|
return [e._v(" " + e._s(e.description) + " ")];
|
|
2874
2539
|
})], 2) : e._e()], 1);
|
|
2875
|
-
},
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2540
|
+
}, Na = [], $a = /* @__PURE__ */ V(
|
|
2541
|
+
Ra,
|
|
2542
|
+
Ma,
|
|
2543
|
+
Na,
|
|
2879
2544
|
!1,
|
|
2880
2545
|
null,
|
|
2881
2546
|
"61fced3a"
|
|
2882
2547
|
);
|
|
2883
|
-
const
|
|
2548
|
+
const ps = $a.exports;
|
|
2884
2549
|
export {
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2550
|
+
ps as B,
|
|
2551
|
+
zt as C,
|
|
2552
|
+
da as D,
|
|
2553
|
+
d as a,
|
|
2554
|
+
Z as b,
|
|
2555
|
+
ye as c,
|
|
2556
|
+
Ne as d,
|
|
2557
|
+
st as e,
|
|
2558
|
+
ka as f,
|
|
2559
|
+
ot as g,
|
|
2560
|
+
Zl as h,
|
|
2561
|
+
nt as i,
|
|
2562
|
+
Ve as j,
|
|
2563
|
+
Ul as u
|
|
2899
2564
|
};
|
|
2900
|
-
//# sourceMappingURL=dropdown.
|
|
2565
|
+
//# sourceMappingURL=dropdown.Ce2P9MZ-.js.map
|