@adyen/bento-vue2 1.49.0 → 1.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +441 -657
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.CTxrEQEW.js → accordion-item.C4tyRMCt.js} +2 -2
- package/dist/chunks/{accordion-item.CTxrEQEW.js.map → accordion-item.C4tyRMCt.js.map} +1 -1
- package/dist/chunks/{action-bar.pYOeP8WX.js → action-bar.DGhojWpe.js} +6 -6
- package/dist/chunks/{action-bar.pYOeP8WX.js.map → action-bar.DGhojWpe.js.map} +1 -1
- package/dist/chunks/{alert.hiTIDSeX.js → alert.BSBLkXkM.js} +9 -8
- package/dist/chunks/alert.BSBLkXkM.js.map +1 -0
- package/dist/chunks/{base-modal.8kcvtFRx.js → base-modal.Dan5WQin.js} +5 -5
- package/dist/chunks/{base-modal.8kcvtFRx.js.map → base-modal.Dan5WQin.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BxWulRXh.js → button-actions-with-menu.B5gcSgRQ.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.BxWulRXh.js.map → button-actions-with-menu.B5gcSgRQ.js.map} +1 -1
- package/dist/chunks/{button-actions.BovYBINL.js → button-actions.GhdYBSwt.js} +4 -4
- package/dist/chunks/{button-actions.BovYBINL.js.map → button-actions.GhdYBSwt.js.map} +1 -1
- package/dist/chunks/{button.CdAFZa4V.js → button.D-3uUhuG.js} +2 -2
- package/dist/chunks/{button.CdAFZa4V.js.map → button.D-3uUhuG.js.map} +1 -1
- package/dist/chunks/{calendar.Bb0-Svhx.js → calendar.YJTNpmzh.js} +3 -3
- package/dist/chunks/{calendar.Bb0-Svhx.js.map → calendar.YJTNpmzh.js.map} +1 -1
- package/dist/chunks/{card.D-w9c3-n.js → card.Csazj5Qz.js} +3 -3
- package/dist/chunks/{card.D-w9c3-n.js.map → card.Csazj5Qz.js.map} +1 -1
- package/dist/chunks/{checkbox-group.4TiIcnc7.js → checkbox-group.DcJ31aLq.js} +4 -4
- package/dist/chunks/{checkbox-group.4TiIcnc7.js.map → checkbox-group.DcJ31aLq.js.map} +1 -1
- package/dist/chunks/{checkbox-input.Bo4NxNOh.js → checkbox-input.B4A_gL2b.js} +10 -9
- package/dist/chunks/checkbox-input.B4A_gL2b.js.map +1 -0
- package/dist/chunks/{checkbox.CE9NdY0R.js → checkbox.BpF0HY7C.js} +17 -17
- package/dist/chunks/{checkbox.CE9NdY0R.js.map → checkbox.BpF0HY7C.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.Cn7JN_Tk.js → checkmark-circle-fill.C46dV1Rf.js} +4 -4
- package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js.map +1 -0
- package/dist/chunks/{checkmark-small.BtF8b2gE.js → checkmark-small.C8T8ISN6.js} +4 -4
- package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
- package/dist/chunks/{chevron-left.PIu6yPqe.js → chevron-left.DOMTgGel.js} +6 -6
- package/dist/chunks/chevron-left.DOMTgGel.js.map +1 -0
- package/dist/chunks/{chevron-up.DVfo78kV.js → chevron-up.CSVyoaTy.js} +6 -6
- package/dist/chunks/chevron-up.CSVyoaTy.js.map +1 -0
- package/dist/chunks/{chip.HNUA9VZl.js → chip.BeK9uqmW.js} +24 -21
- package/dist/chunks/chip.BeK9uqmW.js.map +1 -0
- package/dist/chunks/{code-snippet.DSsZWtwa.js → code-snippet.z_G2UXVT.js} +7 -7
- package/dist/chunks/{code-snippet.DSsZWtwa.js.map → code-snippet.z_G2UXVT.js.map} +1 -1
- package/dist/chunks/{controls-group.BnDPMaGI.js → controls-group.ghJ7a8PY.js} +2 -2
- package/dist/chunks/{controls-group.BnDPMaGI.js.map → controls-group.ghJ7a8PY.js.map} +1 -1
- package/dist/chunks/{copy.DMlIj53I.js → copy.BNOiinIt.js} +7 -6
- package/dist/chunks/copy.BNOiinIt.js.map +1 -0
- package/dist/chunks/{cross-circle-fill-small.Oj6lPaDy.js → cross-circle-fill-small.YhLgeipP.js} +4 -4
- package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
- package/dist/chunks/{cross-circle-fill.CnYH4R_h.js → cross-circle-fill.BawVYNw7.js} +4 -4
- package/dist/chunks/cross-circle-fill.BawVYNw7.js.map +1 -0
- package/dist/chunks/{cross-small.BLUwtRB-.js → cross-small.CZqsjZDz.js} +4 -4
- package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
- package/dist/chunks/{cross.CsUPDmaA.js → cross.CJ5EEL2c.js} +4 -4
- package/dist/chunks/cross.CJ5EEL2c.js.map +1 -0
- package/dist/chunks/{dashboard-section.DzMn8yDZ.js → dashboard-section.Db_E382r.js} +3 -3
- package/dist/chunks/{dashboard-section.DzMn8yDZ.js.map → dashboard-section.Db_E382r.js.map} +1 -1
- package/dist/chunks/{dashed-underline.COTMts4l.js → dashed-underline.CAhDrAG_.js} +3 -3
- package/dist/chunks/{dashed-underline.COTMts4l.js.map → dashed-underline.CAhDrAG_.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BPBneEHq.js → data-grid-template.DG5IWdLG.js} +3 -3
- package/dist/chunks/{data-grid-template.BPBneEHq.js.map → data-grid-template.DG5IWdLG.js.map} +1 -1
- package/dist/chunks/{data-grid.iqFUbiZy.js → data-grid.CHV-FvBB.js} +33 -32
- package/dist/chunks/data-grid.CHV-FvBB.js.map +1 -0
- package/dist/chunks/{date-picker.C68IAqHR.js → date-picker.CMj5-RQl.js} +15 -15
- package/dist/chunks/{date-picker.C68IAqHR.js.map → date-picker.CMj5-RQl.js.map} +1 -1
- package/dist/chunks/{date-range-picker.dcQRDNS7.js → date-range-picker.Jysfo6h3.js} +150 -149
- package/dist/chunks/date-range-picker.Jysfo6h3.js.map +1 -0
- package/dist/chunks/{dialog-page.Bf07JxdG.js → dialog-page.BfF5_hmG.js} +5 -4
- package/dist/chunks/dialog-page.BfF5_hmG.js.map +1 -0
- package/dist/chunks/{dot.BCX4w7eT.js → dot.CnkXzRn3.js} +4 -4
- package/dist/chunks/dot.CnkXzRn3.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.CC9Z_RFG.js → dropdown-default-textbox.DzPBw4CV.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.CC9Z_RFG.js.map → dropdown-default-textbox.DzPBw4CV.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DhENnOHT.js → dropdown-tag.K4idCLeu.js} +4 -4
- package/dist/chunks/{dropdown-tag.DhENnOHT.js.map → dropdown-tag.K4idCLeu.js.map} +1 -1
- package/dist/chunks/{dropdown.BBHNOorv.js → dropdown.DFEGHxjw.js} +278 -270
- package/dist/chunks/dropdown.DFEGHxjw.js.map +1 -0
- package/dist/chunks/{empty-state.BnHTBgKG.js → empty-state.JbgxSrnv.js} +2 -2
- package/dist/chunks/{empty-state.BnHTBgKG.js.map → empty-state.JbgxSrnv.js.map} +1 -1
- package/dist/chunks/{error-message.xTNEaNn8.js → error-message.B3oWB_HM.js} +3 -3
- package/dist/chunks/{error-message.xTNEaNn8.js.map → error-message.B3oWB_HM.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{expand.CwwKq7Uc.js → expand.C263WARj.js} +4 -4
- package/dist/chunks/expand.C263WARj.js.map +1 -0
- package/dist/chunks/{file-uploader.mLUYQnz1.js → file-uploader.DaBMZSsB.js} +249 -252
- package/dist/chunks/file-uploader.DaBMZSsB.js.map +1 -0
- package/dist/chunks/{filter-bar.CFcu6P8H.js → filter-bar.DClIG9aP.js} +577 -636
- package/dist/chunks/filter-bar.DClIG9aP.js.map +1 -0
- package/dist/chunks/{fixed-scroller.DX2YUuoU.js → fixed-scroller.BwvXYzE6.js} +3 -3
- package/dist/chunks/{fixed-scroller.DX2YUuoU.js.map → fixed-scroller.BwvXYzE6.js.map} +1 -1
- package/dist/chunks/{footer-actions.BsoofCrv.js → footer-actions.D0SuJroc.js} +3 -3
- package/dist/chunks/{footer-actions.BsoofCrv.js.map → footer-actions.D0SuJroc.js.map} +1 -1
- package/dist/chunks/{form-layout-title.CJbgfh3P.js → form-layout-title.C1n2S73_.js} +2 -2
- package/dist/chunks/{form-layout-title.CJbgfh3P.js.map → form-layout-title.C1n2S73_.js.map} +1 -1
- package/dist/chunks/{header.BeS6ktqU.js → header.CRlxEGHb.js} +50 -50
- package/dist/chunks/{header.BeS6ktqU.js.map → header.CRlxEGHb.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.yeIoJzhj.js → info-icon-with-popover.C29aZ1Vh.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.yeIoJzhj.js.map → info-icon-with-popover.C29aZ1Vh.js.map} +1 -1
- package/dist/chunks/{info-icon.C4_l0WAf.js → info-icon.bXR5eo6I.js} +4 -4
- package/dist/chunks/{info-icon.C4_l0WAf.js.map → info-icon.bXR5eo6I.js.map} +1 -1
- package/dist/chunks/{info.CyeBsLgt.js → info.D4SG-AIm.js} +4 -4
- package/dist/chunks/info.D4SG-AIm.js.map +1 -0
- package/dist/chunks/{input-field-password.Dez8haIj.js → input-field-password.DsIpkc_9.js} +15 -15
- package/dist/chunks/input-field-password.DsIpkc_9.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.CPTonsjM.js → input-field-phone-number.Bmugk7fI.js} +2 -2
- package/dist/chunks/{input-field-phone-number.CPTonsjM.js.map → input-field-phone-number.Bmugk7fI.js.map} +1 -1
- package/dist/chunks/{input-field.lEMEBT7J.js → input-field.Dl2lXZda.js} +49 -139
- package/dist/chunks/input-field.Dl2lXZda.js.map +1 -0
- package/dist/chunks/{inspector.types.BtgXpTC7.js → inspector.types.C9Oc8FgA.js} +4 -4
- package/dist/chunks/{inspector.types.BtgXpTC7.js.map → inspector.types.C9Oc8FgA.js.map} +1 -1
- package/dist/chunks/{link.DZlbzVSB.js → link.BH3eB_7E.js} +4 -3
- package/dist/chunks/link.BH3eB_7E.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.BJBWnC2r.js → listbox-option-tag.bPRcATJK.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BJBWnC2r.js.map → listbox-option-tag.bPRcATJK.js.map} +1 -1
- package/dist/chunks/{menu.lbODB0y3.js → menu.CzbkunwY.js} +226 -193
- package/dist/chunks/menu.CzbkunwY.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.Dz3kSuTz.js → modal-fullscreen.C4D3Rkdg.js} +5 -5
- package/dist/chunks/{modal-fullscreen.Dz3kSuTz.js.map → modal-fullscreen.C4D3Rkdg.js.map} +1 -1
- package/dist/chunks/{modal.DV55hSPn.js → modal.DgCmKjQC.js} +5 -5
- package/dist/chunks/{modal.DV55hSPn.js.map → modal.DgCmKjQC.js.map} +1 -1
- package/dist/chunks/{pagination.CuJ-P2bO.js → pagination.CdOxfZW2.js} +6 -5
- package/dist/chunks/pagination.CdOxfZW2.js.map +1 -0
- package/dist/chunks/payment-method.BudFG3aC.js +76 -0
- package/dist/chunks/payment-method.BudFG3aC.js.map +1 -0
- package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
- package/dist/chunks/{popover.BQGNMbQN.js → popover.3sHql3nd.js} +39 -31
- package/dist/chunks/popover.3sHql3nd.js.map +1 -0
- package/dist/chunks/{popper-container.CsW4R0-t.js → popper-container.Bqy3oVj6.js} +356 -352
- package/dist/chunks/popper-container.Bqy3oVj6.js.map +1 -0
- package/dist/chunks/{promo-banner.BNXfyv3h.js → promo-banner.BIICM7FC.js} +2 -2
- package/dist/chunks/{promo-banner.BNXfyv3h.js.map → promo-banner.BIICM7FC.js.map} +1 -1
- package/dist/chunks/{radio-group.CUgib4vp.js → radio-group.L-XokgwC.js} +4 -4
- package/dist/chunks/{radio-group.CUgib4vp.js.map → radio-group.L-XokgwC.js.map} +1 -1
- package/dist/chunks/{refresh.BKI9WwKh.js → refresh.Bc9FzGjJ.js} +4 -4
- package/dist/chunks/refresh.Bc9FzGjJ.js.map +1 -0
- package/dist/chunks/{search-bar.Dk-GuqgF.js → search-bar.CDTWPjG1.js} +28 -46
- package/dist/chunks/search-bar.CDTWPjG1.js.map +1 -0
- package/dist/chunks/{search.CBKhp7zB.js → search.pVu-JVAN.js} +4 -4
- package/dist/chunks/search.pVu-JVAN.js.map +1 -0
- package/dist/chunks/{secondary-nav.DC2GrGaQ.js → secondary-nav.BwmBTvl5.js} +2 -2
- package/dist/chunks/{secondary-nav.DC2GrGaQ.js.map → secondary-nav.BwmBTvl5.js.map} +1 -1
- package/dist/chunks/{segmented-control.BxCcPbKd.js → segmented-control.CW6v1rDg.js} +2 -2
- package/dist/chunks/{segmented-control.BxCcPbKd.js.map → segmented-control.CW6v1rDg.js.map} +1 -1
- package/dist/chunks/{selection-card-group.B-YY-iKp.js → selection-card-group.CURxGbd9.js} +10 -10
- package/dist/chunks/{selection-card-group.B-YY-iKp.js.map → selection-card-group.CURxGbd9.js.map} +1 -1
- package/dist/chunks/{show.IEAxtCB7.js → show.e4LEpZKG.js} +6 -6
- package/dist/chunks/show.e4LEpZKG.js.map +1 -0
- package/dist/chunks/{sidepanel.Dp6dKRnq.js → sidepanel.MBArfd4a.js} +5 -5
- package/dist/chunks/{sidepanel.Dp6dKRnq.js.map → sidepanel.MBArfd4a.js.map} +1 -1
- package/dist/chunks/{step.DrP2Frvn.js → step.CuOpi-Ye.js} +3 -3
- package/dist/chunks/{step.DrP2Frvn.js.map → step.CuOpi-Ye.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DrY71Ndc.js → structured-list-item.CYYZ1Fil.js} +6 -6
- package/dist/chunks/{structured-list-item.DrY71Ndc.js.map → structured-list-item.CYYZ1Fil.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CXs6AMS4.js → summary-grid-item-custom.CVEhwKNM.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.CXs6AMS4.js.map → summary-grid-item-custom.CVEhwKNM.js.map} +1 -1
- package/dist/chunks/{tabs.5zgaD1k3.js → tabs.UFoTqvew.js} +2 -2
- package/dist/chunks/{tabs.5zgaD1k3.js.map → tabs.UFoTqvew.js.map} +1 -1
- package/dist/chunks/{tag.CevG31iQ.js → tag.BxmageRW.js} +2 -2
- package/dist/chunks/{tag.CevG31iQ.js.map → tag.BxmageRW.js.map} +1 -1
- package/dist/chunks/{textarea.DHbXaxdU.js → textarea.DmjhRupr.js} +4 -4
- package/dist/chunks/{textarea.DHbXaxdU.js.map → textarea.DmjhRupr.js.map} +1 -1
- package/dist/chunks/{timeline-item.C4HOsaEG.js → timeline-item.CLbS-cEf.js} +12 -11
- package/dist/chunks/timeline-item.CLbS-cEf.js.map +1 -0
- package/dist/chunks/{toast.C5I7Wsfa.js → toast.DqSWycRO.js} +3 -3
- package/dist/chunks/{toast.C5I7Wsfa.js.map → toast.DqSWycRO.js.map} +1 -1
- package/dist/chunks/{toggle-button.BX_9vB0d.js → toggle-button.DgSFugBP.js} +6 -6
- package/dist/chunks/toggle-button.DgSFugBP.js.map +1 -0
- package/dist/chunks/{toggle.CyaY0U0K.js → toggle.Q52IIKfi.js} +2 -2
- package/dist/chunks/{toggle.CyaY0U0K.js.map → toggle.Q52IIKfi.js.map} +1 -1
- package/dist/chunks/{tooltip.Bu8o7uyZ.js → tooltip.Vgoc41cI.js} +2 -2
- package/dist/chunks/{tooltip.Bu8o7uyZ.js.map → tooltip.Vgoc41cI.js.map} +1 -1
- package/dist/chunks/{tutorial.BWWTUI9f.js → tutorial.CmLMgXDK.js} +45 -44
- package/dist/chunks/tutorial.CmLMgXDK.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.DVcpkFV3.js +1164 -0
- package/dist/chunks/use-cached-selected-values.DVcpkFV3.js.map +1 -0
- package/dist/chunks/{warning-filled.CLKRzGMT.js → warning-filled.Cd0kVWwa.js} +4 -4
- package/dist/chunks/warning-filled.Cd0kVWwa.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +59 -59
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +5 -5
- package/dist/styles/bento-light.css +5 -5
- package/dist/styles/bento.css +5 -5
- package/dist/styles/legacy.css +6 -4
- package/dist/styles/styleguide.css +5 -5
- package/dist/styles/utility.css +2 -2
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +179 -144
- package/package.json +6 -6
- package/dist/chunks/alert.hiTIDSeX.js.map +0 -1
- package/dist/chunks/checkbox-input.Bo4NxNOh.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.Cn7JN_Tk.js.map +0 -1
- package/dist/chunks/checkmark-small.BtF8b2gE.js.map +0 -1
- package/dist/chunks/chevron-left.PIu6yPqe.js.map +0 -1
- package/dist/chunks/chevron-up.DVfo78kV.js.map +0 -1
- package/dist/chunks/chip.HNUA9VZl.js.map +0 -1
- package/dist/chunks/copy.DMlIj53I.js.map +0 -1
- package/dist/chunks/cross-circle-fill-small.Oj6lPaDy.js.map +0 -1
- package/dist/chunks/cross-circle-fill.CnYH4R_h.js.map +0 -1
- package/dist/chunks/cross-small.BLUwtRB-.js.map +0 -1
- package/dist/chunks/cross.CsUPDmaA.js.map +0 -1
- package/dist/chunks/data-grid.iqFUbiZy.js.map +0 -1
- package/dist/chunks/date-range-picker.dcQRDNS7.js.map +0 -1
- package/dist/chunks/dialog-page.Bf07JxdG.js.map +0 -1
- package/dist/chunks/dot.BCX4w7eT.js.map +0 -1
- package/dist/chunks/dropdown.BBHNOorv.js.map +0 -1
- package/dist/chunks/expand.CwwKq7Uc.js.map +0 -1
- package/dist/chunks/file-uploader.mLUYQnz1.js.map +0 -1
- package/dist/chunks/filter-bar.CFcu6P8H.js.map +0 -1
- package/dist/chunks/info.CyeBsLgt.js.map +0 -1
- package/dist/chunks/input-field-password.Dez8haIj.js.map +0 -1
- package/dist/chunks/input-field.lEMEBT7J.js.map +0 -1
- package/dist/chunks/link.DZlbzVSB.js.map +0 -1
- package/dist/chunks/menu.lbODB0y3.js.map +0 -1
- package/dist/chunks/pagination.CuJ-P2bO.js.map +0 -1
- package/dist/chunks/payment-method.BKr_q5cZ.js +0 -84
- package/dist/chunks/payment-method.BKr_q5cZ.js.map +0 -1
- package/dist/chunks/popover.BQGNMbQN.js.map +0 -1
- package/dist/chunks/popper-container.CsW4R0-t.js.map +0 -1
- package/dist/chunks/refresh.BKI9WwKh.js.map +0 -1
- package/dist/chunks/search-bar.Dk-GuqgF.js.map +0 -1
- package/dist/chunks/search.CBKhp7zB.js.map +0 -1
- package/dist/chunks/show.IEAxtCB7.js.map +0 -1
- package/dist/chunks/timeline-item.C4HOsaEG.js.map +0 -1
- package/dist/chunks/toggle-button.BX_9vB0d.js.map +0 -1
- package/dist/chunks/truncate.BfIl_-71.js +0 -8
- package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
- package/dist/chunks/tutorial.BWWTUI9f.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.C5gHa-dC.js +0 -1301
- package/dist/chunks/use-cached-selected-values.C5gHa-dC.js.map +0 -1
- package/dist/chunks/warning-filled.CLKRzGMT.js.map +0 -1
- /package/dist/assets/{cross.css → main.css} +0 -0
|
@@ -1,1301 +0,0 @@
|
|
|
1
|
-
import { computed as c, ref as O, onMounted as te, onUnmounted as _e, watch as se, defineComponent as $, toRef as G } from "vue";
|
|
2
|
-
import { B as w } from "./typography.J1v_SPG3.js";
|
|
3
|
-
import { B as ge } from "./loading-indicator.z8COalOc.js";
|
|
4
|
-
import { B as ye } from "./empty-state.BnHTBgKG.js";
|
|
5
|
-
import { u as Y } from "./i18n.BQkEbtPM.js";
|
|
6
|
-
import { d as pe } from "./debounce.DUTu11PS.js";
|
|
7
|
-
import { B as X } from "./checkbox.CE9NdY0R.js";
|
|
8
|
-
import "./index.Cl4_42j5.js";
|
|
9
|
-
import { B as Ce } from "./base-button.-gx_u8Bd.js";
|
|
10
|
-
import { C as Se } from "./cross-small.BLUwtRB-.js";
|
|
11
|
-
import { n as D } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
12
|
-
import { C as he, a as xe } from "./chevron-up.DVfo78kV.js";
|
|
13
|
-
import { B as k, a as J } from "./keyboard-navigation.pB8weElW.js";
|
|
14
|
-
import { d as Ee, e as Z } from "./button-actions.BovYBINL.js";
|
|
15
|
-
import { o as Le } from "./resize.Bqks3WUm.js";
|
|
16
|
-
import "../assets/use-cached-selected-values.css";
|
|
17
|
-
const le = (t, e, s, l) => {
|
|
18
|
-
const n = c(
|
|
19
|
-
() => {
|
|
20
|
-
var r, b;
|
|
21
|
-
return !!((r = t.value) != null && r.length) && ((b = t.value) == null ? void 0 : b.length) === e.value.length;
|
|
22
|
-
}
|
|
23
|
-
), a = c(() => {
|
|
24
|
-
var r;
|
|
25
|
-
return t.value == null || t.value.length === 0 ? !1 : ((r = t.value) == null ? void 0 : r.length) !== e.value.length;
|
|
26
|
-
});
|
|
27
|
-
return {
|
|
28
|
-
isAllSelected: n,
|
|
29
|
-
isIndeterminate: a,
|
|
30
|
-
toggleSelectAll: (r) => {
|
|
31
|
-
r ? s() : l();
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
function Oe(t, { disabled: e, itemHeight: s, overscan: l = 5, prefixHeight: n }) {
|
|
36
|
-
const a = O(null), o = O([]), r = O(0), b = O(0), m = O(0);
|
|
37
|
-
let E;
|
|
38
|
-
const p = c(() => {
|
|
39
|
-
const _ = typeof s == "number" ? t.value.length * s : t.value.reduce((L, f, h) => L + s(h), 0), C = typeof s == "number" ? r.value * s : t.value.slice(0, r.value).reduce((L, f, h) => L + s(h), 0);
|
|
40
|
-
return {
|
|
41
|
-
style: {
|
|
42
|
-
marginTop: `${C}px`,
|
|
43
|
-
height: `${_ - C}px`
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}), S = () => {
|
|
47
|
-
const _ = (n == null ? void 0 : n.value) ?? 0, C = Math.max(a.value.scrollTop - _, 0);
|
|
48
|
-
if (typeof s == "number")
|
|
49
|
-
return Math.floor(C / s);
|
|
50
|
-
let L = 0, f = 0;
|
|
51
|
-
for (let h = 0; h < t.value.length; h += 1) {
|
|
52
|
-
const A = s(h);
|
|
53
|
-
if (L += A, L >= C) {
|
|
54
|
-
f = h;
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return f;
|
|
59
|
-
}, B = () => {
|
|
60
|
-
if (m.value = a.value.clientHeight, typeof s == "number")
|
|
61
|
-
return Math.ceil(m.value / s);
|
|
62
|
-
const _ = r.value ?? 0;
|
|
63
|
-
let C = 0, L = 0;
|
|
64
|
-
for (let f = _; f < t.value.length; f += 1) {
|
|
65
|
-
const h = s(f);
|
|
66
|
-
if (C += h, L = f, C > m.value)
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
return L - _;
|
|
70
|
-
}, T = () => {
|
|
71
|
-
if (a.value) {
|
|
72
|
-
const _ = B();
|
|
73
|
-
r.value = S(), b.value = Math.min(r.value + _ + l, t.value.length), o.value = t.value.slice(r.value, b.value);
|
|
74
|
-
}
|
|
75
|
-
}, R = () => {
|
|
76
|
-
T();
|
|
77
|
-
};
|
|
78
|
-
e || (te(() => {
|
|
79
|
-
a.value && (m.value = a.value.clientHeight, E = Le(a.value, ({ clientHeight: _ }) => {
|
|
80
|
-
m.value = _, T();
|
|
81
|
-
}), T());
|
|
82
|
-
}), _e(() => {
|
|
83
|
-
E == null || E.disconnect();
|
|
84
|
-
}), se(
|
|
85
|
-
() => t.value,
|
|
86
|
-
() => {
|
|
87
|
-
T();
|
|
88
|
-
}
|
|
89
|
-
));
|
|
90
|
-
const u = {
|
|
91
|
-
ref: a,
|
|
92
|
-
style: { overflowY: "auto" }
|
|
93
|
-
};
|
|
94
|
-
return e ? {
|
|
95
|
-
containerRef: a,
|
|
96
|
-
containerProps: u,
|
|
97
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
98
|
-
onScroll: () => {
|
|
99
|
-
},
|
|
100
|
-
list: t
|
|
101
|
-
} : {
|
|
102
|
-
containerRef: a,
|
|
103
|
-
containerProps: u,
|
|
104
|
-
onScroll: R,
|
|
105
|
-
list: o,
|
|
106
|
-
wrapperProps: p
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
var i = /* @__PURE__ */ ((t) => (t.SELECT = "select", t.SHOW_MORE = "show-more", t.ESCAPE = "escape-pressed", t.CLICK = "click", t.ENTER = "enter-pressed", t.SPACE = "space-pressed", t.TAB = "tab-pressed", t.CLOSE_DROPDOWN = "close-dropdown", t))(i || {}), P = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "automatic", t.BUTTON = "button", t.NONE = "none", t))(P || {});
|
|
110
|
-
const Te = $({
|
|
111
|
-
name: "bento-listbox-static-category",
|
|
112
|
-
components: {
|
|
113
|
-
BentoTypography: w
|
|
114
|
-
},
|
|
115
|
-
props: {
|
|
116
|
-
/**
|
|
117
|
-
* Category label text
|
|
118
|
-
*/
|
|
119
|
-
categoryLabel: {
|
|
120
|
-
type: String,
|
|
121
|
-
required: !0
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
var Ie = function() {
|
|
126
|
-
var e = this, s = e._self._c;
|
|
127
|
-
return e._self._setupProxy, s("div", { staticClass: "b-listbox-single-select-category" }, [s("bento-typography", { staticClass: "b-listbox-single-select-category__label-text", attrs: { variant: "caption", el: "span" } }, [e._v(" " + e._s(e.categoryLabel) + " ")]), s("div", [e._t("default")], 2)], 1);
|
|
128
|
-
}, Ae = [], Re = /* @__PURE__ */ D(
|
|
129
|
-
Te,
|
|
130
|
-
Ie,
|
|
131
|
-
Ae,
|
|
132
|
-
!1,
|
|
133
|
-
null,
|
|
134
|
-
"4aa8cc6e"
|
|
135
|
-
);
|
|
136
|
-
const Be = Re.exports, ke = $({
|
|
137
|
-
name: "bento-listbox-option",
|
|
138
|
-
props: {
|
|
139
|
-
/**
|
|
140
|
-
* Setting this property to true will disable the option.
|
|
141
|
-
*/
|
|
142
|
-
disabled: { type: Boolean, default: !1 },
|
|
143
|
-
/**
|
|
144
|
-
* Indicates if the value is selected. Only one element can be selected at a time.
|
|
145
|
-
*/
|
|
146
|
-
selected: { type: Boolean, default: !1 }
|
|
147
|
-
},
|
|
148
|
-
emits: [i.CLICK, i.ENTER, i.SPACE, i.TAB],
|
|
149
|
-
setup(t, { emit: e }) {
|
|
150
|
-
const s = c(() => ({
|
|
151
|
-
"b-listbox-option--disabled": t.disabled,
|
|
152
|
-
"b-listbox-option--selected": t.selected
|
|
153
|
-
}));
|
|
154
|
-
return {
|
|
155
|
-
// Enums
|
|
156
|
-
BentoKeyboardNavigationKeyDownEvent: k,
|
|
157
|
-
BentoListboxEvent: i,
|
|
158
|
-
// Values
|
|
159
|
-
conditionalClasses: s,
|
|
160
|
-
// Events
|
|
161
|
-
onClick: (a) => {
|
|
162
|
-
e(i.CLICK, a);
|
|
163
|
-
},
|
|
164
|
-
onOptionSelected: (a, o) => {
|
|
165
|
-
e(a, o);
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
var De = function() {
|
|
171
|
-
var e = this, s = e._self._c;
|
|
172
|
-
return e._self._setupProxy, s("label", e._b({ staticClass: "b-listbox-option", class: e.conditionalClasses, attrs: { role: "option" }, on: { click: e.onClick, keydown: [function(l) {
|
|
173
|
-
return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, l);
|
|
174
|
-
}, function(l) {
|
|
175
|
-
return !l.type.indexOf("key") && e._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onOptionSelected(e.BentoListboxEvent.SPACE, l);
|
|
176
|
-
}, function(l) {
|
|
177
|
-
return !l.type.indexOf("key") && e._k(l.keyCode, "tab", 9, l.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, l);
|
|
178
|
-
}] } }, "label", e.$attrs, !1), [e._t("default")], 2);
|
|
179
|
-
}, $e = [], Me = /* @__PURE__ */ D(
|
|
180
|
-
ke,
|
|
181
|
-
De,
|
|
182
|
-
$e,
|
|
183
|
-
!1,
|
|
184
|
-
null,
|
|
185
|
-
"d7fb415c"
|
|
186
|
-
);
|
|
187
|
-
const q = Me.exports;
|
|
188
|
-
let Q = 0;
|
|
189
|
-
const Ne = {
|
|
190
|
-
beforeCreate() {
|
|
191
|
-
this.uuid = Q.toString(), Q += 1;
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
var Pe = function() {
|
|
195
|
-
var e = this, s = e._self._c;
|
|
196
|
-
return s("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"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
|
|
197
|
-
}, we = [], Fe = /* @__PURE__ */ D(
|
|
198
|
-
Ne,
|
|
199
|
-
Pe,
|
|
200
|
-
we,
|
|
201
|
-
!1,
|
|
202
|
-
null,
|
|
203
|
-
null
|
|
204
|
-
);
|
|
205
|
-
const Ge = Fe.exports, Ue = $({
|
|
206
|
-
name: "bento-listbox-single-select-option",
|
|
207
|
-
components: {
|
|
208
|
-
BentoListboxOption: q,
|
|
209
|
-
BentoTypography: w,
|
|
210
|
-
CheckmarkIcon: Ge
|
|
211
|
-
},
|
|
212
|
-
props: {
|
|
213
|
-
/**
|
|
214
|
-
* Setting this property to true will disable the option.
|
|
215
|
-
*/
|
|
216
|
-
disabled: { type: Boolean, default: !1 },
|
|
217
|
-
/**
|
|
218
|
-
* The option item that contains all the option item's data.
|
|
219
|
-
* @type {BentoListboxOptionItem}
|
|
220
|
-
*/
|
|
221
|
-
option: {
|
|
222
|
-
type: Object,
|
|
223
|
-
required: !0
|
|
224
|
-
},
|
|
225
|
-
/**
|
|
226
|
-
* Indicates if the value is selected. Only one element can be selected at a time.
|
|
227
|
-
*/
|
|
228
|
-
selected: { type: Boolean, default: !1 }
|
|
229
|
-
},
|
|
230
|
-
emits: [i.ENTER, i.SELECT, i.SPACE, i.TAB],
|
|
231
|
-
setup(t, { emit: e }) {
|
|
232
|
-
const s = (o) => {
|
|
233
|
-
t.disabled || e(o, t.option);
|
|
234
|
-
}, l = c(() => t.disabled ? !0 : null), n = c(() => t.selected ? !0 : null), a = c(() => t.disabled ? -1 : 0);
|
|
235
|
-
return {
|
|
236
|
-
// Values
|
|
237
|
-
ariaDisabled: l,
|
|
238
|
-
ariaSelected: n,
|
|
239
|
-
tabIndex: a,
|
|
240
|
-
// Enums
|
|
241
|
-
BentoListboxEvent: i,
|
|
242
|
-
// Events
|
|
243
|
-
onOptionSelected: s
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
var ze = function() {
|
|
248
|
-
var e = this, s = e._self._c;
|
|
249
|
-
return e._self._setupProxy, s("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(l) {
|
|
250
|
-
return e.onOptionSelected(e.BentoListboxEvent.SELECT);
|
|
251
|
-
}, "enter-pressed": function(l) {
|
|
252
|
-
return e.onOptionSelected(e.BentoListboxEvent.ENTER);
|
|
253
|
-
}, "space-pressed": function(l) {
|
|
254
|
-
return l.preventDefault(), e.onOptionSelected(e.BentoListboxEvent.SPACE);
|
|
255
|
-
}, "tab-pressed": function(l) {
|
|
256
|
-
return e.onOptionSelected(e.BentoListboxEvent.TAB);
|
|
257
|
-
} } }, [e._t("default", function() {
|
|
258
|
-
return [s("span", { staticClass: "b-listbox-single-select-option__text" }, [s("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.option.label))]), e.option.description ? s("bento-typography", { staticClass: "b-listbox-single-select-option__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.option.description) + " ")]) : e._e()], 1)];
|
|
259
|
-
}, null, e.option), s("span", { staticClass: "b-listbox-single-select-option__check-icon" }, [s("checkmark-icon", { directives: [{ name: "show", rawName: "v-show", value: e.selected, expression: "selected" }], attrs: { "svg-title": "selected" } })], 1)], 2);
|
|
260
|
-
}, Ve = [], Ye = /* @__PURE__ */ D(
|
|
261
|
-
Ue,
|
|
262
|
-
ze,
|
|
263
|
-
Ve,
|
|
264
|
-
!1,
|
|
265
|
-
null,
|
|
266
|
-
"5a5ff36a"
|
|
267
|
-
);
|
|
268
|
-
const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategories: s }, l) => {
|
|
269
|
-
const n = c(
|
|
270
|
-
() => s.value ? t.value.flatMap((u) => u.items) : t.value
|
|
271
|
-
), a = c(() => n.value.length - 1), o = O(0);
|
|
272
|
-
te(() => {
|
|
273
|
-
e && (o.value = t.value.findIndex((u) => !e(u)));
|
|
274
|
-
});
|
|
275
|
-
const r = (u) => !e || !!e && e(t.value[u]), b = (u) => !e || !!e && !e(t.value[u]), m = (u) => {
|
|
276
|
-
switch (u) {
|
|
277
|
-
case "increase":
|
|
278
|
-
o.value += 1;
|
|
279
|
-
break;
|
|
280
|
-
case "decrease":
|
|
281
|
-
o.value -= 1;
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
}, E = ({ edgeCaseItem: u, isItemBeforeEdgeCaseItem: _ }, C, L) => {
|
|
285
|
-
o.value !== u && (_ ? b(u) && m(L) : (m(L), r(o.value) && C()), l(o.value));
|
|
286
|
-
}, p = (u) => {
|
|
287
|
-
var C;
|
|
288
|
-
(C = u == null ? void 0 : u.detail) == null || C.preventDefault();
|
|
289
|
-
const _ = o.value === a.value - 2;
|
|
290
|
-
E(
|
|
291
|
-
{
|
|
292
|
-
isItemBeforeEdgeCaseItem: _,
|
|
293
|
-
edgeCaseItem: a.value
|
|
294
|
-
},
|
|
295
|
-
p,
|
|
296
|
-
"increase"
|
|
297
|
-
/* INCREASE */
|
|
298
|
-
);
|
|
299
|
-
}, S = (u) => {
|
|
300
|
-
var C;
|
|
301
|
-
(C = u == null ? void 0 : u.detail) == null || C.preventDefault();
|
|
302
|
-
const _ = o.value === 1;
|
|
303
|
-
E(
|
|
304
|
-
{
|
|
305
|
-
edgeCaseItem: 0,
|
|
306
|
-
isItemBeforeEdgeCaseItem: _
|
|
307
|
-
},
|
|
308
|
-
S,
|
|
309
|
-
"decrease"
|
|
310
|
-
/* DECREASE */
|
|
311
|
-
);
|
|
312
|
-
};
|
|
313
|
-
return {
|
|
314
|
-
moveToFirstElement: () => {
|
|
315
|
-
o.value = 0, r(o.value) ? p() : l(o.value);
|
|
316
|
-
},
|
|
317
|
-
moveToLastElement: () => {
|
|
318
|
-
o.value = a.value, r(o.value) ? S() : l(o.value);
|
|
319
|
-
},
|
|
320
|
-
moveToNextElement: p,
|
|
321
|
-
moveToPreviousElement: S,
|
|
322
|
-
setListboxFocusedIndex: (u) => {
|
|
323
|
-
o.value = u;
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
}, We = $({
|
|
327
|
-
name: "bento-listbox-single-select",
|
|
328
|
-
components: {
|
|
329
|
-
BentoListboxSingleSelectCategory: Be,
|
|
330
|
-
BentoListboxSingleSelectOption: qe
|
|
331
|
-
},
|
|
332
|
-
directives: { BentoKeyboardNavigationDirective: J },
|
|
333
|
-
inheritAttrs: !1,
|
|
334
|
-
props: {
|
|
335
|
-
/**
|
|
336
|
-
* Function that allows the options to be disabled
|
|
337
|
-
*
|
|
338
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
339
|
-
* @param {BentoListboxOptionItem} option - listbox option object
|
|
340
|
-
* @param {string} option.label - Option's label text
|
|
341
|
-
* @param {string|number} option.value - Option's value
|
|
342
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
343
|
-
*/
|
|
344
|
-
isOptionDisabled: {
|
|
345
|
-
type: Function,
|
|
346
|
-
default: () => !1
|
|
347
|
-
},
|
|
348
|
-
/**
|
|
349
|
-
* The option elements to populate the listbox with.
|
|
350
|
-
* It must be an array of {@see BentoListboxOptionItem }.
|
|
351
|
-
*
|
|
352
|
-
* @property {string} value.label - Text to be displayed in the option
|
|
353
|
-
* @property {string,number} value.value - Value of the option
|
|
354
|
-
*/
|
|
355
|
-
items: {
|
|
356
|
-
type: Array,
|
|
357
|
-
required: !0
|
|
358
|
-
},
|
|
359
|
-
/**
|
|
360
|
-
* The `input` value.
|
|
361
|
-
* Providing an empty string will select no options.
|
|
362
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected
|
|
363
|
-
*/
|
|
364
|
-
selectedValue: {
|
|
365
|
-
type: Array,
|
|
366
|
-
default: void 0
|
|
367
|
-
},
|
|
368
|
-
/**
|
|
369
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
370
|
-
*/
|
|
371
|
-
staticCategories: { type: Boolean, default: !1 }
|
|
372
|
-
},
|
|
373
|
-
emits: [i.SELECT, i.ENTER, i.SPACE, i.TAB],
|
|
374
|
-
setup(t, { emit: e, expose: s, slots: l }) {
|
|
375
|
-
const n = O([]), a = c(() => {
|
|
376
|
-
var u;
|
|
377
|
-
return !!((u = t.selectedValue) != null && u.length) && t.selectedValue.at(0);
|
|
378
|
-
}), o = c(() => !!t.items.some(({ items: u }) => !!u)), r = (u) => (_) => {
|
|
379
|
-
e(u, [_]);
|
|
380
|
-
}, b = (u) => n.value[u].$el.focus(), {
|
|
381
|
-
moveToNextElement: m,
|
|
382
|
-
moveToPreviousElement: E,
|
|
383
|
-
moveToFirstElement: p,
|
|
384
|
-
moveToLastElement: S,
|
|
385
|
-
setListboxFocusedIndex: B
|
|
386
|
-
} = ne(
|
|
387
|
-
{
|
|
388
|
-
items: G(t, "items"),
|
|
389
|
-
isOptionDisabled: t.isOptionDisabled,
|
|
390
|
-
hasStaticCategories: G(t, "staticCategories")
|
|
391
|
-
},
|
|
392
|
-
b
|
|
393
|
-
), T = {
|
|
394
|
-
[k.ARROW_UP]: E,
|
|
395
|
-
[k.ARROW_DOWN]: m,
|
|
396
|
-
[k.HOME]: p,
|
|
397
|
-
[k.END]: S
|
|
398
|
-
}, R = {
|
|
399
|
-
[i.SELECT]: r(i.SELECT),
|
|
400
|
-
[i.SPACE]: r(i.SPACE),
|
|
401
|
-
[i.TAB]: r(i.TAB),
|
|
402
|
-
[i.ENTER]: r(i.ENTER)
|
|
403
|
-
};
|
|
404
|
-
return s({
|
|
405
|
-
/**
|
|
406
|
-
* Reference for a single listbox item.
|
|
407
|
-
* Required for keyboard navigation in dropdown as $children is removed in vue@3
|
|
408
|
-
*/
|
|
409
|
-
listboxItemRef: n,
|
|
410
|
-
/**
|
|
411
|
-
* Method to set the index of the item to be focused on
|
|
412
|
-
* Used for focus management to be kept in-sync with parent e.g. dropdowns
|
|
413
|
-
*/
|
|
414
|
-
setListboxFocusedIndex: B
|
|
415
|
-
}), {
|
|
416
|
-
// Enums
|
|
417
|
-
BentoListboxEvent: i,
|
|
418
|
-
// Values
|
|
419
|
-
listboxItemRef: n,
|
|
420
|
-
selectedItem: a,
|
|
421
|
-
slots: l,
|
|
422
|
-
// Computed
|
|
423
|
-
hasCategories: o,
|
|
424
|
-
// Methods
|
|
425
|
-
onOptionSelected: r,
|
|
426
|
-
// Keyboard navigation
|
|
427
|
-
listboxListeners: T,
|
|
428
|
-
listboxOptionListeners: R
|
|
429
|
-
};
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
var Ke = function() {
|
|
433
|
-
var e = this, s = e._self._c;
|
|
434
|
-
return e._self._setupProxy, s("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }] }, e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(l) {
|
|
435
|
-
return s("bento-listbox-single-select-category", { key: l.value, attrs: { "category-label": l.label, role: "group" } }, e._l(l.items, function(n) {
|
|
436
|
-
return s("bento-listbox-single-select-option", e._g({ key: n.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: n, disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null, selected: n.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(a, o) {
|
|
437
|
-
return { key: o, fn: function(r) {
|
|
438
|
-
return [e._t(o, null, null, r)];
|
|
439
|
-
} };
|
|
440
|
-
})], null, !0) }, e.listboxOptionListeners));
|
|
441
|
-
}), 1);
|
|
442
|
-
}) : e._l(e.items, function(l) {
|
|
443
|
-
return s("bento-listbox-single-select-option", e._g({ key: l.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: l, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, selected: l.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n, a) {
|
|
444
|
-
return { key: a, fn: function(o) {
|
|
445
|
-
return [e._t(a, null, null, o)];
|
|
446
|
-
} };
|
|
447
|
-
})], null, !0) }, e.listboxOptionListeners));
|
|
448
|
-
})], 2);
|
|
449
|
-
}, je = [], He = /* @__PURE__ */ D(
|
|
450
|
-
We,
|
|
451
|
-
Ke,
|
|
452
|
-
je,
|
|
453
|
-
!1,
|
|
454
|
-
null,
|
|
455
|
-
null
|
|
456
|
-
);
|
|
457
|
-
const Xe = He.exports;
|
|
458
|
-
var j = /* @__PURE__ */ ((t) => (t.DISABLED = "disabled", t.STATIC_CATEGORY = "static-category", t))(j || {}), z = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.UNSELECT_CATEGORY = "unselect-category", t))(z || {});
|
|
459
|
-
const Je = {
|
|
460
|
-
"en-US": {
|
|
461
|
-
categoryClosed: "{category} closed",
|
|
462
|
-
categoryOpened: "{category} opened"
|
|
463
|
-
}
|
|
464
|
-
}, Ze = $({
|
|
465
|
-
i18n: { messages: Je },
|
|
466
|
-
name: "bento-listbox-multi-select-category",
|
|
467
|
-
components: {
|
|
468
|
-
BentoCheckbox: X,
|
|
469
|
-
BentoTypography: w,
|
|
470
|
-
BentoListboxOption: q,
|
|
471
|
-
ChevronDownIcon: xe,
|
|
472
|
-
ChevronUpIcon: he
|
|
473
|
-
},
|
|
474
|
-
props: {
|
|
475
|
-
/**
|
|
476
|
-
* The option elements to populate the listbox with.
|
|
477
|
-
* It must be an array of {@see BentoListboxOptionItem }.
|
|
478
|
-
*
|
|
479
|
-
* @property {string} value.label - Text to be displayed in the option
|
|
480
|
-
* @property {string,number} value.value - Value of the option
|
|
481
|
-
* @property {BentoListboxOptionItem} value.items - Category items list
|
|
482
|
-
*/
|
|
483
|
-
category: {
|
|
484
|
-
type: Object,
|
|
485
|
-
required: !0
|
|
486
|
-
},
|
|
487
|
-
/**
|
|
488
|
-
* Function that allows the options to be disabled
|
|
489
|
-
*
|
|
490
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
491
|
-
* @param {BentoListboxOptionItem} option - listbox option object
|
|
492
|
-
* @param {string} option.label - Option's label text
|
|
493
|
-
* @param {string|number} option.value - Option's value
|
|
494
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
495
|
-
*/
|
|
496
|
-
isOptionDisabled: {
|
|
497
|
-
type: [Function],
|
|
498
|
-
default: () => !1
|
|
499
|
-
},
|
|
500
|
-
/**
|
|
501
|
-
* The `input` value.
|
|
502
|
-
* Providing an empty array will select no options.
|
|
503
|
-
*/
|
|
504
|
-
selectedItemsList: {
|
|
505
|
-
type: Array,
|
|
506
|
-
default: () => []
|
|
507
|
-
},
|
|
508
|
-
/**
|
|
509
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
510
|
-
*/
|
|
511
|
-
staticCategories: { type: Boolean, default: !1 }
|
|
512
|
-
},
|
|
513
|
-
emits: [z.SELECT_CATEGORY, z.UNSELECT_CATEGORY],
|
|
514
|
-
setup(t, { emit: e }) {
|
|
515
|
-
const s = O(!1), { t: l } = Y(), n = (f) => t.isOptionDisabled ? t.isOptionDisabled(f) : !1, a = c(
|
|
516
|
-
() => t.category.items.every((f) => n(f))
|
|
517
|
-
), o = G(t, "staticCategories"), r = c(() => s.value || t.staticCategories), b = c(() => ({
|
|
518
|
-
[`b-listbox-multi-select-category--${j.DISABLED}`]: a.value,
|
|
519
|
-
[`b-listbox-multi-select-category--${j.STATIC_CATEGORY}`]: t.staticCategories
|
|
520
|
-
})), m = (f) => {
|
|
521
|
-
f.preventDefault(), s.value = !s.value;
|
|
522
|
-
}, E = (f) => {
|
|
523
|
-
var F;
|
|
524
|
-
const h = n(f), A = ((F = t.selectedItemsList) == null ? void 0 : F.includes(f.value)) || !1;
|
|
525
|
-
return { isDisabled: h, isPreSelected: A };
|
|
526
|
-
}, p = c(
|
|
527
|
-
() => t.category.items.filter((f) => {
|
|
528
|
-
const { isDisabled: h, isPreSelected: A } = E(f);
|
|
529
|
-
return h && A || !h;
|
|
530
|
-
})
|
|
531
|
-
), S = c(
|
|
532
|
-
() => {
|
|
533
|
-
var f;
|
|
534
|
-
return (f = p.value) == null ? void 0 : f.filter(
|
|
535
|
-
({ value: h }) => {
|
|
536
|
-
var A;
|
|
537
|
-
return (A = t.selectedItemsList) == null ? void 0 : A.includes(h);
|
|
538
|
-
}
|
|
539
|
-
);
|
|
540
|
-
}
|
|
541
|
-
), B = c(() => {
|
|
542
|
-
const f = s.value ? "categoryOpened" : "categoryClosed";
|
|
543
|
-
return l(f, { category: t.category.label });
|
|
544
|
-
}), T = c(
|
|
545
|
-
() => ({
|
|
546
|
-
el: "span",
|
|
547
|
-
variant: t.staticCategories ? "caption" : "body"
|
|
548
|
-
})
|
|
549
|
-
), R = () => {
|
|
550
|
-
e(z.SELECT_CATEGORY);
|
|
551
|
-
}, u = () => {
|
|
552
|
-
e(z.UNSELECT_CATEGORY);
|
|
553
|
-
}, { isAllSelected: _, isIndeterminate: C, toggleSelectAll: L } = le(
|
|
554
|
-
S,
|
|
555
|
-
p,
|
|
556
|
-
R,
|
|
557
|
-
u
|
|
558
|
-
);
|
|
559
|
-
return {
|
|
560
|
-
// Values
|
|
561
|
-
chevronTitle: B,
|
|
562
|
-
conditionalClass: b,
|
|
563
|
-
hasAllPropsDisabled: a,
|
|
564
|
-
isOpen: s,
|
|
565
|
-
isAllSelected: _,
|
|
566
|
-
isIndeterminate: C,
|
|
567
|
-
isStaticCategory: o,
|
|
568
|
-
// Computed
|
|
569
|
-
showItemChildren: r,
|
|
570
|
-
categoryLabelProps: T,
|
|
571
|
-
// Methods
|
|
572
|
-
toggleOpen: m,
|
|
573
|
-
toggleSelectAll: L
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
});
|
|
577
|
-
var Qe = function() {
|
|
578
|
-
var e = this, s = e._self._c;
|
|
579
|
-
return e._self._setupProxy, s("div", [s("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass }, [e.isStaticCategory ? e._e() : s("bento-checkbox", { attrs: { "model-value": e.isAllSelected, indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, "aria-label": e.category.label, value: e.category.value }, on: { "update:model-value": e.toggleSelectAll } }), s("span", { staticClass: "b-listbox-multi-select-category__label" }, [s("bento-typography", e._b({ staticClass: "b-listbox-multi-select-category__label-text" }, "bento-typography", e.categoryLabelProps, !1), [e._v(" " + e._s(e.category.label) + " ")]), e.isStaticCategory ? e._e() : s("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "data-testid": "toggle-listbox" }, on: { "!click": function(l) {
|
|
580
|
-
return e.toggleOpen.apply(null, arguments);
|
|
581
|
-
} } }, [e.isOpen ? s("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : s("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), s("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }] }, [e._t("default")], 2)], 1);
|
|
582
|
-
}, et = [], tt = /* @__PURE__ */ D(
|
|
583
|
-
Ze,
|
|
584
|
-
Qe,
|
|
585
|
-
et,
|
|
586
|
-
!1,
|
|
587
|
-
null,
|
|
588
|
-
"f360ac3d"
|
|
589
|
-
);
|
|
590
|
-
const st = tt.exports;
|
|
591
|
-
var N = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", t.UNSELECT_CATEGORY = "unselect-category", t))(N || {});
|
|
592
|
-
const lt = $({
|
|
593
|
-
name: "listbox-multi-select-options",
|
|
594
|
-
components: {
|
|
595
|
-
BentoCheckbox: X,
|
|
596
|
-
BentoListboxOption: q,
|
|
597
|
-
BentoTypography: w,
|
|
598
|
-
ListboxMultiSelectCategory: st
|
|
599
|
-
},
|
|
600
|
-
props: {
|
|
601
|
-
/**
|
|
602
|
-
* Indicates if the items listed are inside a category
|
|
603
|
-
* so they can be padded to right by one level in recursion.
|
|
604
|
-
* Items of categories are automatically defined as "categoryItems"
|
|
605
|
-
*/
|
|
606
|
-
categoryItems: { type: Boolean, default: !1 },
|
|
607
|
-
/**
|
|
608
|
-
* Function that allows the options to be disabled
|
|
609
|
-
*
|
|
610
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
611
|
-
* @param {BentoListboxOptionItem} option - listbox option object
|
|
612
|
-
* @param {string} option.label - Option's label text
|
|
613
|
-
* @param {string|number} option.value - Option's value
|
|
614
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
615
|
-
*/
|
|
616
|
-
isOptionDisabled: {
|
|
617
|
-
type: Function,
|
|
618
|
-
default: () => !1
|
|
619
|
-
},
|
|
620
|
-
/**
|
|
621
|
-
* The option elements to populate the listbox with.
|
|
622
|
-
* It must be an array of {@see BentoListboxOptionItem }.
|
|
623
|
-
*
|
|
624
|
-
* @property {string} value.label - Text to be displayed in the option
|
|
625
|
-
* @property {string,number} value.value - Value of the option
|
|
626
|
-
*/
|
|
627
|
-
items: {
|
|
628
|
-
type: Array,
|
|
629
|
-
required: !0
|
|
630
|
-
},
|
|
631
|
-
/**
|
|
632
|
-
* Indicates if the elements options are inside a multi-level category
|
|
633
|
-
*/
|
|
634
|
-
isMultiLevel: { type: Boolean, default: !1 },
|
|
635
|
-
/**
|
|
636
|
-
* Flag that indicates that an external search it's being made
|
|
637
|
-
* to filter out the items inside the the multi-select listbox
|
|
638
|
-
*
|
|
639
|
-
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
640
|
-
*/
|
|
641
|
-
searching: { type: Boolean, default: !1 },
|
|
642
|
-
/**
|
|
643
|
-
* List of selected items.
|
|
644
|
-
* Providing an empty array will select no options.
|
|
645
|
-
*/
|
|
646
|
-
selectedItemsList: {
|
|
647
|
-
type: Array,
|
|
648
|
-
default: () => []
|
|
649
|
-
},
|
|
650
|
-
/**
|
|
651
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
652
|
-
*/
|
|
653
|
-
staticCategories: { type: Boolean, default: !1 }
|
|
654
|
-
},
|
|
655
|
-
emits: [
|
|
656
|
-
N.TOGGLE_CHECKBOX_SELECTION,
|
|
657
|
-
N.SELECT_CATEGORY,
|
|
658
|
-
N.UNSELECT_CATEGORY
|
|
659
|
-
],
|
|
660
|
-
setup(t, { emit: e }) {
|
|
661
|
-
const s = (b) => {
|
|
662
|
-
e(N.TOGGLE_CHECKBOX_SELECTION, b);
|
|
663
|
-
}, l = (b) => !!b.items, n = (b) => {
|
|
664
|
-
const m = t.isMultiLevel && t.searching;
|
|
665
|
-
return b.description && (!t.isMultiLevel || m);
|
|
666
|
-
}, a = (b) => b.items ? !!b.items.find((m) => t.selectedItemsList.includes(m.value)) : t.selectedItemsList.includes(b.value), o = (b, m) => {
|
|
667
|
-
if (l(m))
|
|
668
|
-
return e(b ? N.SELECT_CATEGORY : N.UNSELECT_CATEGORY, m);
|
|
669
|
-
s(m.value);
|
|
670
|
-
};
|
|
671
|
-
return {
|
|
672
|
-
// Values
|
|
673
|
-
conditionalClasses: c(() => ({
|
|
674
|
-
"b-listbox-multi-select-options__static-category-option": t.staticCategories,
|
|
675
|
-
"b-listbox-multi-select-options__category-option": t.categoryItems
|
|
676
|
-
})),
|
|
677
|
-
// Methods
|
|
678
|
-
isOptionSelected: a,
|
|
679
|
-
shouldShowDescription: n,
|
|
680
|
-
toggleCheckboxSelection: s,
|
|
681
|
-
selectSearch: o,
|
|
682
|
-
// Enums
|
|
683
|
-
BentoListboxEvent: i,
|
|
684
|
-
ListboxMultiSelectOptionsEvent: N
|
|
685
|
-
};
|
|
686
|
-
}
|
|
687
|
-
});
|
|
688
|
-
var nt = function() {
|
|
689
|
-
var e = this, s = e._self._c;
|
|
690
|
-
return e._self._setupProxy, s("div", e._l(e.items, function(l) {
|
|
691
|
-
return s("div", { key: `selected-${l.value}` }, [e.searching && e.isMultiLevel ? [s("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null } }, [s("bento-checkbox", { attrs: { "model-value": e.isOptionSelected(l), "aria-label": l.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, value: l.value }, on: { "update:model-value": (n) => e.selectSearch(n, l) } }), e._t("default", function() {
|
|
692
|
-
return [s("span", { staticClass: "b-listbox-multi-select__option-text" }, [s("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(l.label))]), e.shouldShowDescription(l) ? s("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(l.description) + " ")]) : e._e()], 1)];
|
|
693
|
-
}, null, l)], 2)] : [l.items ? [s("listbox-multi-select-category", { attrs: { category: l, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList }, on: { "select-category": function(n) {
|
|
694
|
-
return e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, l);
|
|
695
|
-
}, "unselect-category": function(n) {
|
|
696
|
-
return e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, l);
|
|
697
|
-
} } }, [s("listbox-multi-select-options", { attrs: { "category-items": "", items: l.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching }, on: { "toggle-checkbox-selection": (n) => e.toggleCheckboxSelection(n) } })], 1)] : s("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null } }, [s("bento-checkbox", { attrs: { "model-value": e.selectedItemsList, "aria-label": l.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, value: l.value }, on: { "update:model-value": function(n) {
|
|
698
|
-
return e.toggleCheckboxSelection(l);
|
|
699
|
-
} } }), e._t("default", function() {
|
|
700
|
-
return [s("span", { staticClass: "b-listbox-multi-select__option-text" }, [s("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(l.label))]), e.shouldShowDescription(l) ? s("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(l.description) + " ")]) : e._e()], 1)];
|
|
701
|
-
}, null, l)], 2)]], 2);
|
|
702
|
-
}), 0);
|
|
703
|
-
}, at = [], ot = /* @__PURE__ */ D(
|
|
704
|
-
lt,
|
|
705
|
-
nt,
|
|
706
|
-
at,
|
|
707
|
-
!1,
|
|
708
|
-
null,
|
|
709
|
-
"b2db9f50"
|
|
710
|
-
);
|
|
711
|
-
const it = ot.exports, ct = {
|
|
712
|
-
"en-US": {
|
|
713
|
-
remove: "Remove"
|
|
714
|
-
},
|
|
715
|
-
"ja-JP": {
|
|
716
|
-
remove: "削除"
|
|
717
|
-
},
|
|
718
|
-
"pt-BR": {
|
|
719
|
-
remove: "Remover"
|
|
720
|
-
}
|
|
721
|
-
}, rt = {
|
|
722
|
-
i18n: { messages: ct }
|
|
723
|
-
}, ut = /* @__PURE__ */ $({
|
|
724
|
-
...rt,
|
|
725
|
-
__name: "listbox-multi-select-chips",
|
|
726
|
-
props: {
|
|
727
|
-
/**
|
|
728
|
-
* Function that defines the options to be disabled
|
|
729
|
-
*/
|
|
730
|
-
isOptionDisabled: {
|
|
731
|
-
type: Function,
|
|
732
|
-
default: () => !1
|
|
733
|
-
},
|
|
734
|
-
/**
|
|
735
|
-
* The option elements to populate the listbox with.
|
|
736
|
-
* It must be an array of {@see BentoListboxOptionItem }.
|
|
737
|
-
*
|
|
738
|
-
* @property {string} value.label - Text to be displayed in the option
|
|
739
|
-
* @property {string,number} value.value - Value of the option
|
|
740
|
-
*/
|
|
741
|
-
items: {
|
|
742
|
-
type: Array,
|
|
743
|
-
required: !0
|
|
744
|
-
}
|
|
745
|
-
},
|
|
746
|
-
emits: ["unselect-item", "unselect-category"],
|
|
747
|
-
setup(t, { emit: e }) {
|
|
748
|
-
const { t: s } = Y();
|
|
749
|
-
return { __sfc: !0, emit: e, t: s, unselectOption: (n) => n.items ? e("unselect-category", n) : e("unselect-item", n), BentoTypography: w, BaseButton: Ce, CrossSmallIcon: Se };
|
|
750
|
-
}
|
|
751
|
-
});
|
|
752
|
-
var dt = function() {
|
|
753
|
-
var e = this, s = e._self._c, l = e._self._setupProxy;
|
|
754
|
-
return s("div", { staticClass: "b-listbox-multi-select-chips" }, e._l(e.items, function(n) {
|
|
755
|
-
return s("div", { key: `selected-${n.value}` }, [s(l.BaseButton, { staticClass: "b-listbox-multi-select-chips__chip", attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null }, on: { click: function(a) {
|
|
756
|
-
return l.unselectOption(n);
|
|
757
|
-
} }, scopedSlots: e._u([{ key: "iconRight", fn: function() {
|
|
758
|
-
return [s(l.CrossSmallIcon, { attrs: { "svg-title": l.t("remove") } })];
|
|
759
|
-
}, proxy: !0 }], null, !0) }, [s(l.BentoTypography, { staticClass: "b-listbox-multi-select-chips__option-text", attrs: { el: "span", variant: "caption" } }, [e._v(e._s(n.label))])], 1)], 1);
|
|
760
|
-
}), 0);
|
|
761
|
-
}, bt = [], mt = /* @__PURE__ */ D(
|
|
762
|
-
ut,
|
|
763
|
-
dt,
|
|
764
|
-
bt,
|
|
765
|
-
!1,
|
|
766
|
-
null,
|
|
767
|
-
"55fb08d8"
|
|
768
|
-
);
|
|
769
|
-
const vt = mt.exports, ft = {
|
|
770
|
-
"en-US": {
|
|
771
|
-
allSelected: "All selected ({total})",
|
|
772
|
-
numberOfTotalSelected: "{number} of {total} selected",
|
|
773
|
-
numbersSelected: "{number} selected",
|
|
774
|
-
selectAll: "Select all ({total})"
|
|
775
|
-
}
|
|
776
|
-
}, _t = (t) => {
|
|
777
|
-
const e = c(() => {
|
|
778
|
-
var l;
|
|
779
|
-
return !!((l = t.value) != null && l.find(({ items: n }) => !!n));
|
|
780
|
-
}), s = c(() => {
|
|
781
|
-
var l;
|
|
782
|
-
return e.value ? (l = t.value) == null ? void 0 : l.reduce((n, a) => (a.items ? n.push(...a.items.flat()) : n.push(a), n), []) : t.value;
|
|
783
|
-
});
|
|
784
|
-
return {
|
|
785
|
-
isMultiLevelSelect: e,
|
|
786
|
-
flattenedItemsList: s
|
|
787
|
-
};
|
|
788
|
-
}, gt = $({
|
|
789
|
-
i18n: { messages: ft },
|
|
790
|
-
name: "bento-listbox-multi-select",
|
|
791
|
-
components: {
|
|
792
|
-
BentoCheckbox: X,
|
|
793
|
-
BentoListboxOption: q,
|
|
794
|
-
BentoTypography: w,
|
|
795
|
-
ListboxMultiSelectOptions: it,
|
|
796
|
-
ListboxMultiSelectChips: vt
|
|
797
|
-
},
|
|
798
|
-
directives: { BentoKeyboardNavigationDirective: J },
|
|
799
|
-
props: {
|
|
800
|
-
/**
|
|
801
|
-
* Indicates whether there are more items to load
|
|
802
|
-
*/
|
|
803
|
-
hasMoreItems: { type: Boolean, default: !1 },
|
|
804
|
-
/**
|
|
805
|
-
* Function that allows the options to be disabled
|
|
806
|
-
*
|
|
807
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
808
|
-
* @param {BentoListboxOptionItem} option - listbox option object
|
|
809
|
-
* @param {string} option.label - Option's label text
|
|
810
|
-
* @param {string|number} option.value - Option's value
|
|
811
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
812
|
-
*/
|
|
813
|
-
isOptionDisabled: {
|
|
814
|
-
type: Function,
|
|
815
|
-
default: () => !1
|
|
816
|
-
},
|
|
817
|
-
/**
|
|
818
|
-
* The option elements to populate the listbox with.
|
|
819
|
-
* It must be an array of {@see BentoListboxOptionItem }.
|
|
820
|
-
*
|
|
821
|
-
* @property {string} value.label - Text to be displayed in the option
|
|
822
|
-
* @property {string,number} value.value - Value of the option
|
|
823
|
-
*/
|
|
824
|
-
items: {
|
|
825
|
-
type: Array,
|
|
826
|
-
required: !0
|
|
827
|
-
},
|
|
828
|
-
/**
|
|
829
|
-
* The type of `Lazy Load`.
|
|
830
|
-
* Type "automatic" will enable infinite scrolling
|
|
831
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
832
|
-
*/
|
|
833
|
-
lazyLoadType: {
|
|
834
|
-
type: String,
|
|
835
|
-
default: P.NONE,
|
|
836
|
-
validator: (t) => Object.values(P).includes(t)
|
|
837
|
-
},
|
|
838
|
-
/**
|
|
839
|
-
* Flag that indicates that an external search it's being made
|
|
840
|
-
* to filter out the items inside the the multi-select listbox
|
|
841
|
-
*
|
|
842
|
-
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
843
|
-
*/
|
|
844
|
-
searching: { type: Boolean, default: !1 },
|
|
845
|
-
/**
|
|
846
|
-
* The `input` value.
|
|
847
|
-
* Providing an empty array will select no options.
|
|
848
|
-
*/
|
|
849
|
-
selectedValues: {
|
|
850
|
-
type: Array,
|
|
851
|
-
required: !0
|
|
852
|
-
},
|
|
853
|
-
/**
|
|
854
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
855
|
-
*/
|
|
856
|
-
staticCategories: { type: Boolean, default: !1 }
|
|
857
|
-
},
|
|
858
|
-
emits: [i.SELECT],
|
|
859
|
-
setup(t, { emit: e, slots: s }) {
|
|
860
|
-
const { t: l } = Y(), n = O(null), a = O(null), o = O(null), r = c(
|
|
861
|
-
() => t.selectedValues.map(({ value: d }) => d)
|
|
862
|
-
), { isMultiLevelSelect: b, flattenedItemsList: m } = _t(G(t, "items")), E = (d) => {
|
|
863
|
-
var x;
|
|
864
|
-
const v = t.isOptionDisabled(d), g = ((x = r.value) == null ? void 0 : x.includes(d.value)) || !1;
|
|
865
|
-
return { isDisabled: v, isPreSelected: g };
|
|
866
|
-
}, p = c(() => {
|
|
867
|
-
if (t.searching && b)
|
|
868
|
-
return t.items;
|
|
869
|
-
const d = m.value.filter((v) => {
|
|
870
|
-
const { isDisabled: g, isPreSelected: x } = E(v);
|
|
871
|
-
return g && x || !g;
|
|
872
|
-
});
|
|
873
|
-
return t.selectedValues.forEach((v) => {
|
|
874
|
-
d.find((g) => g.value === v.value) || d.push(v);
|
|
875
|
-
}), d;
|
|
876
|
-
}), S = c(
|
|
877
|
-
() => {
|
|
878
|
-
var d;
|
|
879
|
-
return (d = p.value) == null ? void 0 : d.filter((v) => {
|
|
880
|
-
var g;
|
|
881
|
-
return v.items && b.value && t.searching ? v.items.filter(
|
|
882
|
-
(y) => (t.selectedValues ?? []).includes(y.value)
|
|
883
|
-
).length === v.items.length : (g = r.value) == null ? void 0 : g.includes(v.value);
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
), B = () => b.value && !t.searching ? m.value.length : t.items.length, T = c(() => {
|
|
887
|
-
var x;
|
|
888
|
-
const d = p.value.length, v = B(), g = ((x = S.value) == null ? void 0 : x.length) || 0;
|
|
889
|
-
return g === 0 ? l("selectAll", { total: d }) : g === v ? l("allSelected", { total: v }) : g <= v ? l("numberOfTotalSelected", { number: g, total: v }) : l("numbersSelected", { number: g });
|
|
890
|
-
}), R = (d) => {
|
|
891
|
-
const v = (x) => {
|
|
892
|
-
const { isDisabled: y, isPreSelected: M } = E(x);
|
|
893
|
-
return y && M || !y;
|
|
894
|
-
}, g = d.filter(v).filter((x) => !r.value.includes(x.value));
|
|
895
|
-
e(i.SELECT, [...t.selectedValues, ...g]);
|
|
896
|
-
}, u = (d) => {
|
|
897
|
-
const v = (y) => {
|
|
898
|
-
const { isDisabled: M, isPreSelected: fe } = E(y);
|
|
899
|
-
return !(M && fe);
|
|
900
|
-
}, g = d.filter(v).map(({ value: y }) => y), x = t.selectedValues.filter((y) => !(g != null && g.includes(y.value)));
|
|
901
|
-
e(i.SELECT, x);
|
|
902
|
-
}, _ = () => {
|
|
903
|
-
R(m.value);
|
|
904
|
-
}, C = () => {
|
|
905
|
-
u(m.value);
|
|
906
|
-
}, { isAllSelected: L, isIndeterminate: f, toggleSelectAll: h } = le(
|
|
907
|
-
S,
|
|
908
|
-
p,
|
|
909
|
-
_,
|
|
910
|
-
C
|
|
911
|
-
), A = (d) => {
|
|
912
|
-
R(d.items);
|
|
913
|
-
}, F = (d) => {
|
|
914
|
-
u(d.items);
|
|
915
|
-
}, W = (d, v) => {
|
|
916
|
-
let g = !1;
|
|
917
|
-
const x = t.selectedValues.filter(({ value: y }) => v.value === y ? (g = !0, !1) : !0);
|
|
918
|
-
g || x.push(v), e(d, x);
|
|
919
|
-
}, V = c(() => {
|
|
920
|
-
if (!b.value)
|
|
921
|
-
return t.selectedValues;
|
|
922
|
-
const d = (y) => r.value.includes(y.value), v = (y) => !t.staticCategories && y.every((M) => d(M));
|
|
923
|
-
return t.items.flatMap(
|
|
924
|
-
(y) => y.items && !v(y.items) ? y.items : y
|
|
925
|
-
).filter((y) => y.items ? !0 : d(y));
|
|
926
|
-
}), K = c(() => {
|
|
927
|
-
var g, x, y, M;
|
|
928
|
-
const d = ["automatic", "button"].includes(t.lazyLoadType), v = ((g = t.selectedValues) == null ? void 0 : g.length) > 0 && ((x = S.value) == null ? void 0 : x.length) !== ((y = m.value) == null ? void 0 : y.length);
|
|
929
|
-
return d && t.hasMoreItems ? !!((M = t.selectedValues) != null && M.length) : v;
|
|
930
|
-
}), I = c(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), U = c(
|
|
931
|
-
() => n.value ? [n.value] : []
|
|
932
|
-
), ae = c(
|
|
933
|
-
() => {
|
|
934
|
-
var d, v;
|
|
935
|
-
return (v = (d = a.value) == null ? void 0 : d.$children) != null && v.length ? a.value.$children : [];
|
|
936
|
-
}
|
|
937
|
-
), oe = c(
|
|
938
|
-
() => {
|
|
939
|
-
var d, v;
|
|
940
|
-
return (v = (d = o.value) == null ? void 0 : d.$children) != null && v.length ? o.value.$children : [];
|
|
941
|
-
}
|
|
942
|
-
), ie = c(() => ({ label: T, value: L })), ce = c(() => [
|
|
943
|
-
ie,
|
|
944
|
-
...V.value,
|
|
945
|
-
...m.value
|
|
946
|
-
]), re = (d) => {
|
|
947
|
-
[
|
|
948
|
-
...U.value,
|
|
949
|
-
...ae.value,
|
|
950
|
-
...oe.value
|
|
951
|
-
][d].$el.focus();
|
|
952
|
-
}, { moveToNextElement: ue, moveToPreviousElement: de, moveToFirstElement: be, moveToLastElement: me } = ne(
|
|
953
|
-
{
|
|
954
|
-
items: O(ce),
|
|
955
|
-
isOptionDisabled: t.isOptionDisabled,
|
|
956
|
-
hasStaticCategories: G(t, "staticCategories")
|
|
957
|
-
},
|
|
958
|
-
re
|
|
959
|
-
), ve = {
|
|
960
|
-
[k.ARROW_UP]: (d) => de(d),
|
|
961
|
-
[k.ARROW_DOWN]: (d) => ue(d),
|
|
962
|
-
[k.HOME]: be,
|
|
963
|
-
[k.END]: me
|
|
964
|
-
};
|
|
965
|
-
return {
|
|
966
|
-
// Refs
|
|
967
|
-
selectAllListboxItemsRef: n,
|
|
968
|
-
selectedListboxItemsRef: a,
|
|
969
|
-
listboxItemsRef: o,
|
|
970
|
-
// Values
|
|
971
|
-
isAllSelected: L,
|
|
972
|
-
showSelectedItems: K,
|
|
973
|
-
isIndeterminate: f,
|
|
974
|
-
isMultiLevelSelect: b,
|
|
975
|
-
flattenedItemsList: m,
|
|
976
|
-
selectedItemsList: r,
|
|
977
|
-
selectAllCheckboxText: T,
|
|
978
|
-
selectedOptions: V,
|
|
979
|
-
showSelectAllCheckbox: I,
|
|
980
|
-
slots: s,
|
|
981
|
-
// Enums
|
|
982
|
-
BentoListboxEvent: i,
|
|
983
|
-
// Methods
|
|
984
|
-
selectAllCategory: A,
|
|
985
|
-
toggleCheckboxSelection: W,
|
|
986
|
-
toggleSelectAll: h,
|
|
987
|
-
unselectAllCategory: F,
|
|
988
|
-
// Events
|
|
989
|
-
listboxListeners: ve
|
|
990
|
-
};
|
|
991
|
-
}
|
|
992
|
-
});
|
|
993
|
-
var yt = function() {
|
|
994
|
-
var e = this, s = e._self._c;
|
|
995
|
-
return e._self._setupProxy, s("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select" }, e.listboxListeners), [e.showSelectAllCheckbox ? s("bento-listbox-option", { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option" }, [s("bento-checkbox", { attrs: { "aria-label": e.selectAllCheckboxText, "model-value": e.isAllSelected, indeterminate: e.isIndeterminate }, on: { "update:model-value": e.toggleSelectAll } }), s("bento-typography", { attrs: { el: "span", "aria-hidden": "true" } }, [e._v(" " + e._s(e.selectAllCheckboxText) + " ")])], 1) : e._e(), e.showSelectAllCheckbox ? s("hr", { staticClass: "b-listbox-multi-select__divider" }) : e._e(), e.showSelectedItems ? s("div", [s("listbox-multi-select-chips", { ref: "selectedListboxItemsRef", attrs: { items: e.selectedOptions, "is-option-disabled": e.isOptionDisabled }, on: { "unselect-category": e.unselectAllCategory, "unselect-item": function(l) {
|
|
996
|
-
return e.toggleCheckboxSelection(e.BentoListboxEvent.SELECT, l);
|
|
997
|
-
} } }), s("hr", { staticClass: "b-listbox-multi-select__divider" })], 1) : e._e(), s("listbox-multi-select-options", { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": e.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": e.selectedItemsList }, on: { "toggle-checkbox-selection": function(l) {
|
|
998
|
-
return e.toggleCheckboxSelection(e.BentoListboxEvent.SELECT, l);
|
|
999
|
-
}, "select-category": e.selectAllCategory, "unselect-category": e.unselectAllCategory, "space-pressed": function(l) {
|
|
1000
|
-
return e.toggleCheckboxSelection(e.BentoListboxEvent.SPACE, l);
|
|
1001
|
-
}, "tab-pressed": function(l) {
|
|
1002
|
-
return e.toggleCheckboxSelection(e.BentoListboxEvent.TAB, l);
|
|
1003
|
-
}, "enter-pressed": function(l) {
|
|
1004
|
-
return e.toggleCheckboxSelection(e.BentoListboxEvent.ENTER, l);
|
|
1005
|
-
} }, scopedSlots: e._u([e._l(e.slots, function(l, n) {
|
|
1006
|
-
return { key: n, fn: function(a) {
|
|
1007
|
-
return [e._t(n, null, null, a)];
|
|
1008
|
-
} };
|
|
1009
|
-
})], null, !0) })], 1);
|
|
1010
|
-
}, pt = [], Ct = /* @__PURE__ */ D(
|
|
1011
|
-
gt,
|
|
1012
|
-
yt,
|
|
1013
|
-
pt,
|
|
1014
|
-
!1,
|
|
1015
|
-
null,
|
|
1016
|
-
"38dead9f"
|
|
1017
|
-
);
|
|
1018
|
-
const ee = Ct.exports, St = {
|
|
1019
|
-
"en-US": {
|
|
1020
|
-
loading: "Loading",
|
|
1021
|
-
showMore: "Show more"
|
|
1022
|
-
},
|
|
1023
|
-
"ja-JP": {
|
|
1024
|
-
loading: "読み込み中",
|
|
1025
|
-
showMore: "表示内容を増やす"
|
|
1026
|
-
},
|
|
1027
|
-
"pt-BR": {
|
|
1028
|
-
loading: "Carregando",
|
|
1029
|
-
showMore: "Mostrar mais"
|
|
1030
|
-
}
|
|
1031
|
-
}, ht = 36, xt = $({
|
|
1032
|
-
name: "bento-listbox",
|
|
1033
|
-
components: {
|
|
1034
|
-
BentoEmptyState: ye,
|
|
1035
|
-
BentoListboxSingleSelect: Xe,
|
|
1036
|
-
BentoListboxMultiSelect: ee,
|
|
1037
|
-
BentoTypography: w,
|
|
1038
|
-
BentoLoadingIndicator: ge,
|
|
1039
|
-
BentoLoadingButton: Ee
|
|
1040
|
-
},
|
|
1041
|
-
directives: { BentoKeyboardNavigationDirective: J },
|
|
1042
|
-
i18n: { messages: St },
|
|
1043
|
-
props: {
|
|
1044
|
-
/**
|
|
1045
|
-
* Defines a string value that labels an interactive element.
|
|
1046
|
-
*/
|
|
1047
|
-
ariaLabel: { type: String, default: null },
|
|
1048
|
-
/**
|
|
1049
|
-
* Empty state props that will be used with the inner empty state component to be displayed when no search results are found.
|
|
1050
|
-
*/
|
|
1051
|
-
emptyState: {
|
|
1052
|
-
type: Object,
|
|
1053
|
-
default: void 0
|
|
1054
|
-
},
|
|
1055
|
-
/**
|
|
1056
|
-
* Indicates whether there are more items to load
|
|
1057
|
-
*/
|
|
1058
|
-
hasMoreItems: { type: Boolean, default: !1 },
|
|
1059
|
-
/**
|
|
1060
|
-
* Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
|
|
1061
|
-
*/
|
|
1062
|
-
id: { type: String, required: !0 },
|
|
1063
|
-
/**
|
|
1064
|
-
* Function that allows the options to be disabled
|
|
1065
|
-
*
|
|
1066
|
-
* @type {BentoListboxIsOptionDisabled}
|
|
1067
|
-
* @param {BentoListboxOptionItem} option - Listbox option object
|
|
1068
|
-
* @param {string} option.label - Option's label text
|
|
1069
|
-
* @param {string|number} option.value - Option's value
|
|
1070
|
-
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
1071
|
-
*/
|
|
1072
|
-
isOptionDisabled: {
|
|
1073
|
-
type: Function,
|
|
1074
|
-
default: () => {
|
|
1075
|
-
}
|
|
1076
|
-
},
|
|
1077
|
-
/**
|
|
1078
|
-
* The option elements to populate the listbox with.
|
|
1079
|
-
* It must be an array of {@see BentoListboxOptionItem }
|
|
1080
|
-
* * @property {string} value.label - Text to be displayed in the option
|
|
1081
|
-
* * @property {string,number} value.value - Value of the option
|
|
1082
|
-
*/
|
|
1083
|
-
items: {
|
|
1084
|
-
type: Array,
|
|
1085
|
-
required: !0
|
|
1086
|
-
},
|
|
1087
|
-
/**
|
|
1088
|
-
* Indicates if new options are loading.
|
|
1089
|
-
*/
|
|
1090
|
-
loading: { type: Boolean, default: !1 },
|
|
1091
|
-
/**
|
|
1092
|
-
* The type of `Lazy Load`.
|
|
1093
|
-
* Type "automatic" will enable infinite scrolling
|
|
1094
|
-
* Type "button" will enable lazy loading with "Show more" button
|
|
1095
|
-
*/
|
|
1096
|
-
lazyLoadType: {
|
|
1097
|
-
type: String,
|
|
1098
|
-
default: P.NONE,
|
|
1099
|
-
validator: (t) => Object.values(P).includes(t)
|
|
1100
|
-
},
|
|
1101
|
-
/**
|
|
1102
|
-
* If enabled, the user will be able to select multiple items.
|
|
1103
|
-
*/
|
|
1104
|
-
multiple: { type: Boolean, default: !1 },
|
|
1105
|
-
/**
|
|
1106
|
-
* If enabled, dropdown will display non-selectable, static categories
|
|
1107
|
-
*/
|
|
1108
|
-
staticCategories: { type: Boolean, default: !1 },
|
|
1109
|
-
/**
|
|
1110
|
-
* Messaged displayed when no items are listed in the listbox
|
|
1111
|
-
*/
|
|
1112
|
-
noResultsMessage: { type: String, required: !0 },
|
|
1113
|
-
/**
|
|
1114
|
-
* Flag that indicates that an external search it's being made
|
|
1115
|
-
* to filter out the items inside the the multi-select listbox
|
|
1116
|
-
*
|
|
1117
|
-
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
1118
|
-
*/
|
|
1119
|
-
searching: ee.props.searching,
|
|
1120
|
-
/**
|
|
1121
|
-
* The `input` value.
|
|
1122
|
-
* Providing an empty string or empty array will select no options.
|
|
1123
|
-
* Set to an empty string `''` if you don't want any of the available options to be selected for single select
|
|
1124
|
-
*/
|
|
1125
|
-
selectedValue: {
|
|
1126
|
-
type: Array,
|
|
1127
|
-
default: () => []
|
|
1128
|
-
},
|
|
1129
|
-
/**
|
|
1130
|
-
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
1131
|
-
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
1132
|
-
*/
|
|
1133
|
-
virtualScroll: {
|
|
1134
|
-
type: [Boolean, Object],
|
|
1135
|
-
default: !1
|
|
1136
|
-
}
|
|
1137
|
-
},
|
|
1138
|
-
emits: [
|
|
1139
|
-
i.SELECT,
|
|
1140
|
-
i.SPACE,
|
|
1141
|
-
i.SHOW_MORE,
|
|
1142
|
-
i.ENTER,
|
|
1143
|
-
i.ESCAPE,
|
|
1144
|
-
i.TAB
|
|
1145
|
-
],
|
|
1146
|
-
setup(t, { emit: e, slots: s }) {
|
|
1147
|
-
const l = O([]), n = G(t, "items"), { t: a } = Y(), o = c(() => t.lazyLoadType !== P.AUTOMATIC), r = c(() => t.lazyLoadType === P.AUTOMATIC), b = () => {
|
|
1148
|
-
var I;
|
|
1149
|
-
return typeof (t == null ? void 0 : t.virtualScroll) == "object" && ((I = t == null ? void 0 : t.virtualScroll) != null && I.itemHeight) ? t.virtualScroll.itemHeight : ht;
|
|
1150
|
-
}, {
|
|
1151
|
-
containerRef: m,
|
|
1152
|
-
containerProps: E,
|
|
1153
|
-
onScroll: p,
|
|
1154
|
-
list: S,
|
|
1155
|
-
wrapperProps: B
|
|
1156
|
-
} = Oe(n, {
|
|
1157
|
-
itemHeight: b(),
|
|
1158
|
-
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1159
|
-
disabled: (t == null ? void 0 : t.multiple) || (t == null ? void 0 : t.virtualScroll) === !1 || (t == null ? void 0 : t.lazyLoadType) !== "none"
|
|
1160
|
-
}), T = c(
|
|
1161
|
-
() => o.value ? "true" : void 0
|
|
1162
|
-
), R = c(
|
|
1163
|
-
() => o.value && t.loading ? "true" : "false"
|
|
1164
|
-
), u = c(
|
|
1165
|
-
() => o.value ? "polite" : void 0
|
|
1166
|
-
), _ = (I) => (U) => {
|
|
1167
|
-
e(I, U);
|
|
1168
|
-
}, C = () => {
|
|
1169
|
-
e(i.SHOW_MORE);
|
|
1170
|
-
}, L = pe(() => {
|
|
1171
|
-
const I = m.value;
|
|
1172
|
-
if (!I)
|
|
1173
|
-
return;
|
|
1174
|
-
const U = Math.round(I.scrollTop) + I.clientHeight >= I.scrollHeight;
|
|
1175
|
-
t.hasMoreItems && U && !t.loading && C();
|
|
1176
|
-
}), f = () => {
|
|
1177
|
-
r.value ? L() : p();
|
|
1178
|
-
}, h = c(() => {
|
|
1179
|
-
var I;
|
|
1180
|
-
return ((I = t.items) == null ? void 0 : I.length) === 0;
|
|
1181
|
-
}), A = c(
|
|
1182
|
-
() => t.lazyLoadType === P.BUTTON && t.hasMoreItems
|
|
1183
|
-
), F = c(
|
|
1184
|
-
() => t.loading ? Z.LOADING : Z.START
|
|
1185
|
-
), W = c(() => t.loading ? a("loading") : a("showMore")), V = c(() => ({
|
|
1186
|
-
...t.emptyState,
|
|
1187
|
-
variant: "condensed"
|
|
1188
|
-
})), K = {
|
|
1189
|
-
[i.SELECT]: _(i.SELECT),
|
|
1190
|
-
[i.SPACE]: _(i.SPACE),
|
|
1191
|
-
[i.TAB]: _(i.TAB),
|
|
1192
|
-
[i.ENTER]: _(i.ENTER)
|
|
1193
|
-
};
|
|
1194
|
-
return {
|
|
1195
|
-
// Refs
|
|
1196
|
-
listboxRef: m,
|
|
1197
|
-
listboxItemRef: l,
|
|
1198
|
-
// a11y
|
|
1199
|
-
ariaAtomic: T,
|
|
1200
|
-
ariaBusy: R,
|
|
1201
|
-
ariaLive: u,
|
|
1202
|
-
// Values
|
|
1203
|
-
containerProps: E,
|
|
1204
|
-
isSearchResultEmpty: h,
|
|
1205
|
-
limitedEmptyStateProps: V,
|
|
1206
|
-
loadingButtonState: F,
|
|
1207
|
-
slots: s,
|
|
1208
|
-
shouldDisplayShowMoreButton: A,
|
|
1209
|
-
showMoreButtonText: W,
|
|
1210
|
-
virtualisedItems: S,
|
|
1211
|
-
wrapperProps: B,
|
|
1212
|
-
// Enums
|
|
1213
|
-
BentoKeyboardNavigationKeyDownEvent: k,
|
|
1214
|
-
BentoListboxEvent: i,
|
|
1215
|
-
// Methods
|
|
1216
|
-
onListboxContainerScroll: f,
|
|
1217
|
-
onOptionSelected: _,
|
|
1218
|
-
emitShowMore: C,
|
|
1219
|
-
listboxListeners: K
|
|
1220
|
-
};
|
|
1221
|
-
}
|
|
1222
|
-
});
|
|
1223
|
-
var Et = function() {
|
|
1224
|
-
var l;
|
|
1225
|
-
var e = this, s = e._self._c;
|
|
1226
|
-
return e._self._setupProxy, s("div", { directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (l = e.containerProps) == null ? void 0 : l.style, attrs: { id: e.id, role: "listbox", tabindex: "-1", "aria-busy": e.ariaBusy, "aria-atomic": e.ariaAtomic, "aria-label": e.ariaLabel, "aria-live": e.ariaLive }, on: { scroll: e.onListboxContainerScroll } }, [s("div", e._b({}, "div", e.wrapperProps, !1), [e.isSearchResultEmpty ? s("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? s("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : s("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [s("bento-listbox-multi-select", e._g({ 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(n, a) {
|
|
1227
|
-
return { key: a, fn: function(o) {
|
|
1228
|
-
return [e._t(a, null, null, o)];
|
|
1229
|
-
} };
|
|
1230
|
-
})], null, !0) }, e.listboxListeners))] : [s("bento-listbox-single-select", e._g({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(n, a) {
|
|
1231
|
-
return { key: a, fn: function(o) {
|
|
1232
|
-
return [e._t(a, null, null, o)];
|
|
1233
|
-
} };
|
|
1234
|
-
})], null, !0) }, e.listboxListeners))], e.shouldDisplayShowMoreButton ? s("div", { staticClass: "b-listbox__lazy-load" }, [s("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(n) {
|
|
1235
|
-
return e.emitShowMore.apply(null, arguments);
|
|
1236
|
-
} } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? s("div", { staticClass: "b-listbox__lazy-load" }, [s("bento-loading-indicator")], 1) : e._e()]], 2)]);
|
|
1237
|
-
}, Lt = [], Ot = /* @__PURE__ */ D(
|
|
1238
|
-
xt,
|
|
1239
|
-
Et,
|
|
1240
|
-
Lt,
|
|
1241
|
-
!1,
|
|
1242
|
-
null,
|
|
1243
|
-
"9ad46841"
|
|
1244
|
-
);
|
|
1245
|
-
const zt = Ot.exports, H = (t, e) => {
|
|
1246
|
-
for (const s of t) {
|
|
1247
|
-
if (s.value === e)
|
|
1248
|
-
return s;
|
|
1249
|
-
if (s.items) {
|
|
1250
|
-
const l = H(s.items, e);
|
|
1251
|
-
if (l)
|
|
1252
|
-
return l;
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
return null;
|
|
1256
|
-
}, Vt = (t, e, s) => {
|
|
1257
|
-
const l = O([]), n = O(), a = (b) => {
|
|
1258
|
-
n.value = s.value ? b.map(({ value: m }) => m) : b[0].value;
|
|
1259
|
-
}, o = (b) => {
|
|
1260
|
-
l.value = b, a(b);
|
|
1261
|
-
}, r = () => {
|
|
1262
|
-
l.value = [], n.value = null;
|
|
1263
|
-
};
|
|
1264
|
-
return se(
|
|
1265
|
-
() => e.value,
|
|
1266
|
-
() => {
|
|
1267
|
-
if (!e.value) {
|
|
1268
|
-
r();
|
|
1269
|
-
return;
|
|
1270
|
-
}
|
|
1271
|
-
const b = !Array.isArray(e.value), m = [...l.value];
|
|
1272
|
-
r();
|
|
1273
|
-
const E = (p) => {
|
|
1274
|
-
let S = H(t.value, p);
|
|
1275
|
-
S || (S = H(m, p)), S || (S = { value: p, label: p.toString() }), l.value.push(S);
|
|
1276
|
-
};
|
|
1277
|
-
if (b) {
|
|
1278
|
-
const p = e.value;
|
|
1279
|
-
E(p), a(l.value);
|
|
1280
|
-
return;
|
|
1281
|
-
}
|
|
1282
|
-
e.value.forEach(E), a(l.value);
|
|
1283
|
-
},
|
|
1284
|
-
{ immediate: !0 }
|
|
1285
|
-
), {
|
|
1286
|
-
// Values
|
|
1287
|
-
cachedSelectedListboxOptions: l,
|
|
1288
|
-
cachedListboxSelectedValues: n,
|
|
1289
|
-
// Methods
|
|
1290
|
-
resetCache: r,
|
|
1291
|
-
setCachedValues: o
|
|
1292
|
-
};
|
|
1293
|
-
};
|
|
1294
|
-
export {
|
|
1295
|
-
P as B,
|
|
1296
|
-
i as a,
|
|
1297
|
-
zt as b,
|
|
1298
|
-
Vt as c,
|
|
1299
|
-
_t as u
|
|
1300
|
-
};
|
|
1301
|
-
//# sourceMappingURL=use-cached-selected-values.C5gHa-dC.js.map
|