@adyen/bento-vue2 1.89.2 → 1.91.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/components.d.ts +4 -0
- package/dist/@types/index.d.ts +381 -118
- 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/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/input-time.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/accordion-item.D0WVCLec.js +145 -0
- package/dist/chunks/{accordion-item.BZDSJamR.js.map → accordion-item.D0WVCLec.js.map} +1 -1
- package/dist/chunks/action-bar.Dj830k6L.js +334 -0
- package/dist/chunks/{action-bar.CYGUYI0V.js.map → action-bar.Dj830k6L.js.map} +1 -1
- package/dist/chunks/{ai-button.CR_ePQRR.js → ai-button.7L9bANlk.js} +2 -2
- package/dist/chunks/{ai-button.CR_ePQRR.js.map → ai-button.7L9bANlk.js.map} +1 -1
- package/dist/chunks/ai-tag.AyG2UWCB.js +110 -0
- package/dist/chunks/{ai-tag.Cjf38mjR.js.map → ai-tag.AyG2UWCB.js.map} +1 -1
- package/dist/chunks/alert.CXRb-Smf.js +160 -0
- package/dist/chunks/{alert.QVQ6Zjbm.js.map → alert.CXRb-Smf.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.CjJ26PJS.js → anchor-scroller.DWaykZQj.js} +66 -39
- package/dist/chunks/{anchor-scroller.CjJ26PJS.js.map → anchor-scroller.DWaykZQj.js.map} +1 -1
- package/dist/chunks/{base-modal.DmWkavtf.js → base-modal.C52VMtnd.js} +104 -67
- package/dist/chunks/{base-modal.DmWkavtf.js.map → base-modal.C52VMtnd.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js → button-actions-with-menu.OsPQ-POD.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js.map → button-actions-with-menu.OsPQ-POD.js.map} +1 -1
- package/dist/chunks/{button-actions.BLk114As.js → button-actions.Bdbu0bvt.js} +222 -148
- package/dist/chunks/{button-actions.BLk114As.js.map → button-actions.Bdbu0bvt.js.map} +1 -1
- package/dist/chunks/{button.DxhJNOtr.js → button.C9b2AC9w.js} +2 -2
- package/dist/chunks/{button.DxhJNOtr.js.map → button.C9b2AC9w.js.map} +1 -1
- package/dist/chunks/{calendar.CXKhBF2f.js → calendar.CqsfThnC.js} +438 -346
- package/dist/chunks/calendar.CqsfThnC.js.map +1 -0
- package/dist/chunks/card.8z7UQeVK.js +165 -0
- package/dist/chunks/{card.GjhsXOT0.js.map → card.8z7UQeVK.js.map} +1 -1
- package/dist/chunks/{checkbox-group.B2BjU3ZN.js → checkbox-group.Dur2Edtw.js} +4 -4
- package/dist/chunks/{checkbox-group.B2BjU3ZN.js.map → checkbox-group.Dur2Edtw.js.map} +1 -1
- package/dist/chunks/{checkbox.CIv8WgGp.js → checkbox.vNjt6QDJ.js} +93 -56
- package/dist/chunks/{checkbox.CIv8WgGp.js.map → checkbox.vNjt6QDJ.js.map} +1 -1
- package/dist/chunks/chip.BFY_-VCz.js +84 -0
- package/dist/chunks/{chip.DTpENaGC.js.map → chip.BFY_-VCz.js.map} +1 -1
- package/dist/chunks/{click-outside.CDz_x8mN.js → click-outside.BG01Sm0A.js} +2 -2
- package/dist/chunks/{click-outside.CDz_x8mN.js.map → click-outside.BG01Sm0A.js.map} +1 -1
- package/dist/chunks/{code-snippet.YIm2oO_o.js → code-snippet.BVpFBhKq.js} +133 -76
- package/dist/chunks/{code-snippet.YIm2oO_o.js.map → code-snippet.BVpFBhKq.js.map} +1 -1
- package/dist/chunks/{controls-group.CqotnNEF.js → controls-group.DSm2Ujwt.js} +2 -2
- package/dist/chunks/{controls-group.CqotnNEF.js.map → controls-group.DSm2Ujwt.js.map} +1 -1
- package/dist/chunks/copy.qqGYFbKJ.js +133 -0
- package/dist/chunks/{copy.BVGQcf22.js.map → copy.qqGYFbKJ.js.map} +1 -1
- package/dist/chunks/{country.D20NCLLG.js → country.BEwW8TQo.js} +3 -3
- package/dist/chunks/{country.D20NCLLG.js.map → country.BEwW8TQo.js.map} +1 -1
- package/dist/chunks/country.types.jjXwaoMl.js +2537 -0
- package/dist/chunks/country.types.jjXwaoMl.js.map +1 -0
- package/dist/chunks/{dashboard-section.BubZyu8i.js → dashboard-section.DNxNVV44.js} +3 -3
- package/dist/chunks/{dashboard-section.BubZyu8i.js.map → dashboard-section.DNxNVV44.js.map} +1 -1
- package/dist/chunks/{dashed-underline.pjYTS0m1.js → dashed-underline.DL2_sik5.js} +3 -3
- package/dist/chunks/{dashed-underline.pjYTS0m1.js.map → dashed-underline.DL2_sik5.js.map} +1 -1
- package/dist/chunks/{data-grid-template.D8RhngPj.js → data-grid-template.BFv1zr6g.js} +4 -4
- package/dist/chunks/{data-grid-template.D8RhngPj.js.map → data-grid-template.BFv1zr6g.js.map} +1 -1
- package/dist/chunks/data-grid.ZHY5EzP3.js +4071 -0
- package/dist/chunks/data-grid.ZHY5EzP3.js.map +1 -0
- package/dist/chunks/date-picker.kl6aFlr1.js +237 -0
- package/dist/chunks/date-picker.kl6aFlr1.js.map +1 -0
- package/dist/chunks/date-range-picker.LCWVAa5R.js +1089 -0
- package/dist/chunks/date-range-picker.LCWVAa5R.js.map +1 -0
- package/dist/chunks/dialog-page.EdejG53a.js +143 -0
- package/dist/chunks/{dialog-page.oyG153fC.js.map → dialog-page.EdejG53a.js.map} +1 -1
- package/dist/chunks/{directive.rXUeDb8p.js → directive.Bfr4fuOy.js} +2 -2
- package/dist/chunks/{directive.rXUeDb8p.js.map → directive.Bfr4fuOy.js.map} +1 -1
- package/dist/chunks/draggable-handle.Ba28eM8o.js +245 -0
- package/dist/chunks/draggable-handle.Ba28eM8o.js.map +1 -0
- package/dist/chunks/{dropdown-tag.BRB-emd1.js → dropdown-tag.B61hPq5n.js} +5 -5
- package/dist/chunks/{dropdown-tag.BRB-emd1.js.map → dropdown-tag.B61hPq5n.js.map} +1 -1
- package/dist/chunks/dropdown.Ca-f8tdX.js +1140 -0
- package/dist/chunks/dropdown.Ca-f8tdX.js.map +1 -0
- package/dist/chunks/{empty-state.D_Ac-XXH.js → empty-state.DMV23IZy.js} +2 -2
- package/dist/chunks/{empty-state.D_Ac-XXH.js.map → empty-state.DMV23IZy.js.map} +1 -1
- package/dist/chunks/error-message.CyERcfdt.js +72 -0
- package/dist/chunks/error-message.CyERcfdt.js.map +1 -0
- package/dist/chunks/field-label.DjjjkcO6.js +97 -0
- package/dist/chunks/field-label.DjjjkcO6.js.map +1 -0
- package/dist/chunks/{file-uploader.D5Rjsx4k.js → file-uploader.DeWmLpfp.js} +751 -469
- package/dist/chunks/{file-uploader.D5Rjsx4k.js.map → file-uploader.DeWmLpfp.js.map} +1 -1
- package/dist/chunks/{filter-bar.zD_ctViU.js → filter-bar.Bd4ghW_B.js} +1596 -1039
- package/dist/chunks/filter-bar.Bd4ghW_B.js.map +1 -0
- package/dist/chunks/fixed-scroller.DR2E_No4.js +148 -0
- package/dist/chunks/{fixed-scroller.MerESbd_.js.map → fixed-scroller.DR2E_No4.js.map} +1 -1
- package/dist/chunks/{footer-actions.CiPj7hZG.js → footer-actions.CvUaoMzj.js} +3 -3
- package/dist/chunks/{footer-actions.CiPj7hZG.js.map → footer-actions.CvUaoMzj.js.map} +1 -1
- package/dist/chunks/form-layout-title.DzGajv4U.js +248 -0
- package/dist/chunks/form-layout-title.DzGajv4U.js.map +1 -0
- package/dist/chunks/{header-meta.Dq6TlNPw.js → header-meta.AXUGoqDd.js} +127 -73
- package/dist/chunks/{header-meta.Dq6TlNPw.js.map → header-meta.AXUGoqDd.js.map} +1 -1
- package/dist/chunks/{header-with-views.DaEhkSS8.js → header-with-views.Ba4dswJF.js} +1121 -680
- package/dist/chunks/{header-with-views.DaEhkSS8.js.map → header-with-views.Ba4dswJF.js.map} +1 -1
- package/dist/chunks/{header.DkC-KKWa.js → header.C7B7RBib.js} +3 -3
- package/dist/chunks/{header.DkC-KKWa.js.map → header.C7B7RBib.js.map} +1 -1
- package/dist/chunks/{info-icon.BF8KxU-k.js → info-icon.DCR42Kvm.js} +2 -2
- package/dist/chunks/{info-icon.BF8KxU-k.js.map → info-icon.DCR42Kvm.js.map} +1 -1
- package/dist/chunks/input-field-password.BNAtIn_D.js +381 -0
- package/dist/chunks/{input-field-password.BKT1mYUw.js.map → input-field-password.BNAtIn_D.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js → input-field-phone-number.CEYx1s4b.js} +98 -71
- package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js.map → input-field-phone-number.CEYx1s4b.js.map} +1 -1
- package/dist/chunks/input-field.Dh5W0Az-.js +211 -0
- package/dist/chunks/input-field.Dh5W0Az-.js.map +1 -0
- package/dist/chunks/input-time.BLuMfakv.js +135 -0
- package/dist/chunks/input-time.BLuMfakv.js.map +1 -0
- package/dist/chunks/inspector.BzBPlz-5.js +172 -0
- package/dist/chunks/{inspector.Bnm0hl_D.js.map → inspector.BzBPlz-5.js.map} +1 -1
- package/dist/chunks/{link.MhoM3zQj.js → link.DB5g6d48.js} +56 -29
- package/dist/chunks/{link.MhoM3zQj.js.map → link.DB5g6d48.js.map} +1 -1
- package/dist/chunks/{list-item.BnzU1LIu.js → list-item.DqTHh8-Z.js} +2 -2
- package/dist/chunks/{list-item.BnzU1LIu.js.map → list-item.DqTHh8-Z.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js → listbox-option-tag.CvbE-EuG.js} +2 -2
- package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js.map → listbox-option-tag.CvbE-EuG.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js → modal-fullscreen.DTvg2NLk.js} +63 -36
- package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js.map → modal-fullscreen.DTvg2NLk.js.map} +1 -1
- package/dist/chunks/{modal.o0KddMiG.js → modal.D_TcWTkf.js} +63 -36
- package/dist/chunks/{modal.o0KddMiG.js.map → modal.D_TcWTkf.js.map} +1 -1
- package/dist/chunks/on-click-outside.Cy1eFULD.js +109 -0
- package/dist/chunks/on-click-outside.Cy1eFULD.js.map +1 -0
- package/dist/chunks/{pagination.ZISqB4M_.js → pagination.D6BxMw5L.js} +221 -99
- package/dist/chunks/{pagination.ZISqB4M_.js.map → pagination.D6BxMw5L.js.map} +1 -1
- package/dist/chunks/promo-banner.Dc_kK1x9.js +91 -0
- package/dist/chunks/{promo-banner.Db2kh2qK.js.map → promo-banner.Dc_kK1x9.js.map} +1 -1
- package/dist/chunks/{radio-group.DnMy7brs.js → radio-group.Bb-L-0io.js} +4 -4
- package/dist/chunks/{radio-group.DnMy7brs.js.map → radio-group.Bb-L-0io.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.Cbv1DxXn.js → rich-text-editor.Dtdfh-0V.js} +1782 -1731
- package/dist/chunks/{rich-text-editor.Cbv1DxXn.js.map → rich-text-editor.Dtdfh-0V.js.map} +1 -1
- package/dist/chunks/search-bar.MVJS9-Mh.js +126 -0
- package/dist/chunks/{search-bar.DPjYDhja.js.map → search-bar.MVJS9-Mh.js.map} +1 -1
- package/dist/chunks/secondary-nav.C-nPZR-2.js +226 -0
- package/dist/chunks/secondary-nav.C-nPZR-2.js.map +1 -0
- package/dist/chunks/{segmented-control.BqIiX9hv.js → segmented-control.DDtjX-V5.js} +2 -2
- package/dist/chunks/{segmented-control.BqIiX9hv.js.map → segmented-control.DDtjX-V5.js.map} +1 -1
- package/dist/chunks/{selection-card-group.IPiouuot.js → selection-card-group.CLJPaknG.js} +3 -3
- package/dist/chunks/{selection-card-group.IPiouuot.js.map → selection-card-group.CLJPaknG.js.map} +1 -1
- package/dist/chunks/{sidepanel.BGMjjB3F.js → sidepanel.BTRfwGiS.js} +66 -39
- package/dist/chunks/{sidepanel.BGMjjB3F.js.map → sidepanel.BTRfwGiS.js.map} +1 -1
- package/dist/chunks/{step.QFER3tSj.js → step.TDm_ts1S.js} +92 -63
- package/dist/chunks/{step.QFER3tSj.js.map → step.TDm_ts1S.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BDJKRC_8.js → structured-list-item.BBBtie1s.js} +58 -31
- package/dist/chunks/{structured-list-item.BDJKRC_8.js.map → structured-list-item.BBBtie1s.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CIkArZf5.js → summary-grid.types.DUIqCmwg.js} +5 -5
- package/dist/chunks/{summary-grid.types.CIkArZf5.js.map → summary-grid.types.DUIqCmwg.js.map} +1 -1
- package/dist/chunks/{tab.CaXF0dho.js → tab.CNIZyfZt.js} +2 -2
- package/dist/chunks/{tab.CaXF0dho.js.map → tab.CNIZyfZt.js.map} +1 -1
- package/dist/chunks/{tag.CocLKztJ.js → tag.D2xagTJv.js} +2 -2
- package/dist/chunks/{tag.CocLKztJ.js.map → tag.D2xagTJv.js.map} +1 -1
- package/dist/chunks/textarea.CJS-1I41.js +219 -0
- package/dist/chunks/{textarea.D4X6Ss9q.js.map → textarea.CJS-1I41.js.map} +1 -1
- package/dist/chunks/timeline-item.BOUWkLi1.js +322 -0
- package/dist/chunks/{timeline-item.C8BxWdy1.js.map → timeline-item.BOUWkLi1.js.map} +1 -1
- package/dist/chunks/{toast.BRI3G7TL.js → toast.d8vg71CB.js} +81 -54
- package/dist/chunks/{toast.BRI3G7TL.js.map → toast.d8vg71CB.js.map} +1 -1
- package/dist/chunks/{tooltip.CbsNGnhw.js → tooltip.BxtnF3is.js} +38 -36
- package/dist/chunks/tooltip.BxtnF3is.js.map +1 -0
- package/dist/chunks/{tutorial.BzV6bHQJ.js → tutorial.CZt_mcuT.js} +190 -103
- package/dist/chunks/{tutorial.BzV6bHQJ.js.map → tutorial.CZt_mcuT.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js → use-cached-selected-values.BJbWbkEQ.js} +553 -417
- package/dist/chunks/use-cached-selected-values.BJbWbkEQ.js.map +1 -0
- package/dist/chunks/{use-country-items.CI8C7MLU.js → use-country-items.B4j8pAvW.js} +3 -3
- package/dist/chunks/{use-country-items.CI8C7MLU.js.map → use-country-items.B4j8pAvW.js.map} +1 -1
- package/dist/chunks/use-country-phon-code.ByqnuIni.js +6386 -0
- package/dist/chunks/use-country-phon-code.ByqnuIni.js.map +1 -0
- package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js → use-date-input-formatter.Djf8AoLr.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js.map → use-date-input-formatter.Djf8AoLr.js.map} +1 -1
- package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
- package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- 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/draggable.js +1396 -0
- package/dist/draggable.js.map +1 -0
- package/dist/dropdown.js +11 -12
- package/dist/dropdown.js.map +1 -1
- 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-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +280 -275
- 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 +5 -0
- package/dist/input-time.js.map +1 -0
- package/dist/inspector.js +1 -1
- package/dist/internal.js +26 -25
- package/dist/internal.js.map +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/pagination.js +1 -1
- package/dist/popover.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/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +297 -4
- package/package.json +10 -15
- package/dist/assets/dropdown-default-textbox.css +0 -1
- package/dist/chunks/accordion-item.BZDSJamR.js +0 -108
- package/dist/chunks/action-bar.CYGUYI0V.js +0 -207
- package/dist/chunks/ai-tag.Cjf38mjR.js +0 -73
- package/dist/chunks/alert.QVQ6Zjbm.js +0 -93
- package/dist/chunks/calendar.CXKhBF2f.js.map +0 -1
- package/dist/chunks/card.GjhsXOT0.js +0 -128
- package/dist/chunks/chip.DTpENaGC.js +0 -57
- package/dist/chunks/copy.BVGQcf22.js +0 -86
- package/dist/chunks/country.types.DxKjyd0S.js +0 -20
- package/dist/chunks/country.types.DxKjyd0S.js.map +0 -1
- package/dist/chunks/data-grid.DJG8Ty0A.js +0 -3194
- package/dist/chunks/data-grid.DJG8Ty0A.js.map +0 -1
- package/dist/chunks/date-picker.CnazYcSX.js +0 -155
- package/dist/chunks/date-picker.CnazYcSX.js.map +0 -1
- package/dist/chunks/date-range-picker.Bf9pRNL7.js +0 -811
- package/dist/chunks/date-range-picker.Bf9pRNL7.js.map +0 -1
- package/dist/chunks/debounce.DUTu11PS.js +0 -10
- package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
- package/dist/chunks/dialog-page.oyG153fC.js +0 -116
- package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js +0 -337
- package/dist/chunks/dropdown-default-textbox.Dvzg0StF.js.map +0 -1
- package/dist/chunks/dropdown.Ct7uhPr6.js +0 -696
- package/dist/chunks/dropdown.Ct7uhPr6.js.map +0 -1
- package/dist/chunks/error-message.RxdStT3S.js +0 -106
- package/dist/chunks/error-message.RxdStT3S.js.map +0 -1
- package/dist/chunks/filter-bar.zD_ctViU.js.map +0 -1
- package/dist/chunks/fixed-scroller.MerESbd_.js +0 -111
- package/dist/chunks/form-layout-title.Bw7VgOO5.js +0 -210
- package/dist/chunks/form-layout-title.Bw7VgOO5.js.map +0 -1
- package/dist/chunks/input-field-password.BKT1mYUw.js +0 -234
- package/dist/chunks/input-field.m1PMwa4C.js +0 -170
- package/dist/chunks/input-field.m1PMwa4C.js.map +0 -1
- package/dist/chunks/inspector.Bnm0hl_D.js +0 -105
- package/dist/chunks/on-click-outside.BW4rkhzG.js +0 -91
- package/dist/chunks/on-click-outside.BW4rkhzG.js.map +0 -1
- package/dist/chunks/promo-banner.Db2kh2qK.js +0 -64
- package/dist/chunks/search-bar.DPjYDhja.js +0 -89
- package/dist/chunks/secondary-nav.CwJjkJkj.js +0 -112
- package/dist/chunks/secondary-nav.CwJjkJkj.js.map +0 -1
- package/dist/chunks/textarea.D4X6Ss9q.js +0 -169
- package/dist/chunks/timeline-item.C8BxWdy1.js +0 -238
- package/dist/chunks/tooltip.CbsNGnhw.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.DqX2qsMC.js.map +0 -1
- package/dist/chunks/use-country-phon-code.C6orQNnM.js +0 -291
- package/dist/chunks/use-country-phon-code.C6orQNnM.js.map +0 -1
- package/dist/draggable-handle.js +0 -149
- package/dist/draggable-handle.js.map +0 -1
|
@@ -1,108 +1,107 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { B as
|
|
1
|
+
import { computed as n, ref as x, onMounted as Ne, onUnmounted as we, watch as X, defineComponent as G, nextTick as pe, toRef as H, useSlots as Ge, useAttrs as Pe } from "vue";
|
|
2
|
+
import { B as M, a as se } from "./keyboard-navigation.DWmhelVv.js";
|
|
3
3
|
import { B as j } from "./typography.C8lPlsbD.js";
|
|
4
4
|
import { B as Fe } from "./loading-indicator.PxbRzshH.js";
|
|
5
|
-
import { B as Ye } from "./empty-state.
|
|
5
|
+
import { B as Ye } from "./empty-state.DMV23IZy.js";
|
|
6
6
|
import { u as le } from "./index.B6WW_F-J.js";
|
|
7
|
-
import { d as Ue } from "./debounce.DUTu11PS.js";
|
|
8
7
|
import { o as ze } from "./resize.Bqks3WUm.js";
|
|
9
8
|
import "./index.Cl4_42j5.js";
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as
|
|
9
|
+
import { C as J, N as Ue } from "./minus-small.DJacLGTw.js";
|
|
10
|
+
import { C as Ve } from "./checkmark-small.DVDtD4HQ.js";
|
|
12
11
|
/* empty css */
|
|
13
|
-
import { n as
|
|
14
|
-
import { B as
|
|
15
|
-
import { C as
|
|
16
|
-
import { C as
|
|
17
|
-
import { g as
|
|
18
|
-
import { a as
|
|
12
|
+
import { n as N } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
13
|
+
import { B as We } from "./chip.BFY_-VCz.js";
|
|
14
|
+
import { C as Ke } from "./chevron-down.eYtgv5ly.js";
|
|
15
|
+
import { C as je } from "./chevron-up.d8cwIlA_.js";
|
|
16
|
+
import { g as me } from "./generate-uid.NJ8tVoha.js";
|
|
17
|
+
import { a as qe, b as fe } from "./button-actions.Bdbu0bvt.js";
|
|
19
18
|
import "../assets/use-cached-selected-values.css";
|
|
20
|
-
const
|
|
21
|
-
const
|
|
19
|
+
const ye = (s, e, l, t) => {
|
|
20
|
+
const o = n(
|
|
22
21
|
() => {
|
|
23
|
-
var
|
|
24
|
-
return !!((
|
|
22
|
+
var m, A;
|
|
23
|
+
return !!((m = s.value) != null && m.length) && ((A = s.value) == null ? void 0 : A.length) === e.value.length;
|
|
25
24
|
}
|
|
26
|
-
),
|
|
27
|
-
var
|
|
28
|
-
return s.value == null || s.value.length === 0 ? !1 : ((
|
|
25
|
+
), a = n(() => {
|
|
26
|
+
var m;
|
|
27
|
+
return s.value == null || s.value.length === 0 ? !1 : ((m = s.value) == null ? void 0 : m.length) !== e.value.length;
|
|
29
28
|
});
|
|
30
29
|
return {
|
|
31
|
-
isAllSelected:
|
|
32
|
-
isIndeterminate:
|
|
33
|
-
toggleSelectAll: (
|
|
34
|
-
|
|
30
|
+
isAllSelected: o,
|
|
31
|
+
isIndeterminate: a,
|
|
32
|
+
toggleSelectAll: (m) => {
|
|
33
|
+
m ? l() : t();
|
|
35
34
|
}
|
|
36
35
|
};
|
|
37
36
|
};
|
|
38
|
-
function
|
|
39
|
-
const
|
|
37
|
+
function He(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: o }) {
|
|
38
|
+
const a = x(null), r = x([]), m = x(0), A = x(0), d = x(0);
|
|
40
39
|
let b;
|
|
41
|
-
const T =
|
|
42
|
-
const I = typeof l == "number" ? s.value.length * l : s.value.reduce((
|
|
40
|
+
const T = n(() => {
|
|
41
|
+
const I = typeof l == "number" ? s.value.length * l : s.value.reduce((S, v, y) => S + l(y), 0), O = typeof l == "number" ? m.value * l : s.value.slice(0, m.value).reduce((S, v, y) => S + l(y), 0);
|
|
43
42
|
return {
|
|
44
43
|
style: {
|
|
45
44
|
marginTop: `${O}px`,
|
|
46
45
|
height: `${I - O}px`
|
|
47
46
|
}
|
|
48
47
|
};
|
|
49
|
-
}),
|
|
50
|
-
const I = (
|
|
48
|
+
}), _ = () => {
|
|
49
|
+
const I = (o == null ? void 0 : o.value) ?? 0, O = Math.max(a.value.scrollTop - I, 0);
|
|
51
50
|
if (typeof l == "number")
|
|
52
51
|
return Math.floor(O / l);
|
|
53
|
-
let
|
|
52
|
+
let S = 0, v = 0;
|
|
54
53
|
for (let y = 0; y < s.value.length; y += 1) {
|
|
55
54
|
const D = l(y);
|
|
56
|
-
if (
|
|
57
|
-
|
|
55
|
+
if (S += D, S >= O) {
|
|
56
|
+
v = y;
|
|
58
57
|
break;
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
|
-
return
|
|
60
|
+
return v;
|
|
62
61
|
}, p = () => {
|
|
63
|
-
if (d.value =
|
|
62
|
+
if (d.value = a.value.clientHeight, typeof l == "number")
|
|
64
63
|
return Math.ceil(d.value / l);
|
|
65
|
-
const I =
|
|
66
|
-
let O = 0,
|
|
67
|
-
for (let
|
|
68
|
-
const y = l(
|
|
69
|
-
if (O += y,
|
|
64
|
+
const I = m.value ?? 0;
|
|
65
|
+
let O = 0, S = 0;
|
|
66
|
+
for (let v = I; v < s.value.length; v += 1) {
|
|
67
|
+
const y = l(v);
|
|
68
|
+
if (O += y, S = v, O > d.value)
|
|
70
69
|
break;
|
|
71
70
|
}
|
|
72
|
-
return
|
|
73
|
-
},
|
|
74
|
-
if (
|
|
71
|
+
return S - I;
|
|
72
|
+
}, C = () => {
|
|
73
|
+
if (a.value) {
|
|
75
74
|
const I = p();
|
|
76
|
-
|
|
75
|
+
m.value = _(), A.value = Math.min(m.value + I + t, s.value.length), r.value = s.value.slice(m.value, A.value);
|
|
77
76
|
}
|
|
78
77
|
}, R = () => {
|
|
79
|
-
|
|
78
|
+
C();
|
|
80
79
|
};
|
|
81
|
-
e || (
|
|
82
|
-
|
|
83
|
-
d.value = I,
|
|
84
|
-
}),
|
|
80
|
+
e || (Ne(() => {
|
|
81
|
+
a.value && (d.value = a.value.clientHeight, b = ze(a.value, ({ clientHeight: I }) => {
|
|
82
|
+
d.value = I, C();
|
|
83
|
+
}), C());
|
|
85
84
|
}), we(() => {
|
|
86
85
|
b == null || b.disconnect();
|
|
87
|
-
}),
|
|
86
|
+
}), X(
|
|
88
87
|
() => s.value,
|
|
89
88
|
() => {
|
|
90
|
-
|
|
89
|
+
C();
|
|
91
90
|
}
|
|
92
91
|
));
|
|
93
92
|
const B = {
|
|
94
|
-
ref:
|
|
93
|
+
ref: a,
|
|
95
94
|
style: { overflowY: "auto" }
|
|
96
95
|
};
|
|
97
96
|
return e ? {
|
|
98
|
-
containerRef:
|
|
97
|
+
containerRef: a,
|
|
99
98
|
containerProps: B,
|
|
100
99
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
101
100
|
onScroll: () => {
|
|
102
101
|
},
|
|
103
102
|
list: s
|
|
104
103
|
} : {
|
|
105
|
-
containerRef:
|
|
104
|
+
containerRef: a,
|
|
106
105
|
containerProps: B,
|
|
107
106
|
onScroll: R,
|
|
108
107
|
list: r,
|
|
@@ -125,18 +124,18 @@ const Xe = G({
|
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
});
|
|
128
|
-
var
|
|
127
|
+
var Je = function() {
|
|
129
128
|
var e = this, l = e._self._c;
|
|
130
129
|
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);
|
|
131
|
-
},
|
|
130
|
+
}, Ze = [], Qe = /* @__PURE__ */ N(
|
|
132
131
|
Xe,
|
|
132
|
+
Je,
|
|
133
133
|
Ze,
|
|
134
|
-
Qe,
|
|
135
134
|
!1,
|
|
136
135
|
null,
|
|
137
136
|
"bfbc1649"
|
|
138
137
|
);
|
|
139
|
-
const
|
|
138
|
+
const et = Qe.exports, tt = G({
|
|
140
139
|
name: "bento-listbox-option",
|
|
141
140
|
props: {
|
|
142
141
|
/**
|
|
@@ -150,27 +149,27 @@ const tt = et.exports, st = G({
|
|
|
150
149
|
},
|
|
151
150
|
emits: [c.CLICK, c.ENTER, c.SPACE, c.TAB],
|
|
152
151
|
setup(s, { emit: e }) {
|
|
153
|
-
const l =
|
|
152
|
+
const l = n(() => ({
|
|
154
153
|
"b-listbox-option--disabled": s.disabled,
|
|
155
154
|
"b-listbox-option--selected": s.selected
|
|
156
155
|
}));
|
|
157
156
|
return {
|
|
158
157
|
// Enums
|
|
159
|
-
BentoKeyboardNavigationKeyDownEvent:
|
|
158
|
+
BentoKeyboardNavigationKeyDownEvent: M,
|
|
160
159
|
BentoListboxEvent: c,
|
|
161
160
|
// Values
|
|
162
161
|
conditionalClasses: l,
|
|
163
162
|
// Events
|
|
164
|
-
onClick: (
|
|
165
|
-
e(c.CLICK,
|
|
163
|
+
onClick: (a) => {
|
|
164
|
+
e(c.CLICK, a);
|
|
166
165
|
},
|
|
167
|
-
onOptionSelected: (
|
|
168
|
-
e(
|
|
166
|
+
onOptionSelected: (a, r) => {
|
|
167
|
+
e(a, r);
|
|
169
168
|
}
|
|
170
169
|
};
|
|
171
170
|
}
|
|
172
171
|
});
|
|
173
|
-
var
|
|
172
|
+
var st = function() {
|
|
174
173
|
var e = this, l = e._self._c;
|
|
175
174
|
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) {
|
|
176
175
|
return !t.type.indexOf("key") && e._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, t);
|
|
@@ -179,38 +178,38 @@ var lt = function() {
|
|
|
179
178
|
}, function(t) {
|
|
180
179
|
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, t);
|
|
181
180
|
}] } }, "div", e.$attrs, !1), [e._t("default")], 2);
|
|
182
|
-
},
|
|
181
|
+
}, lt = [], ot = /* @__PURE__ */ N(
|
|
182
|
+
tt,
|
|
183
183
|
st,
|
|
184
184
|
lt,
|
|
185
|
-
at,
|
|
186
185
|
!1,
|
|
187
186
|
null,
|
|
188
187
|
"c345b6c0"
|
|
189
188
|
);
|
|
190
|
-
const Z =
|
|
189
|
+
const Z = ot.exports;
|
|
191
190
|
let ve = 0;
|
|
192
|
-
const
|
|
191
|
+
const at = {
|
|
193
192
|
beforeCreate() {
|
|
194
193
|
this.uuid = ve.toString(), ve += 1;
|
|
195
194
|
}
|
|
196
195
|
};
|
|
197
|
-
var
|
|
196
|
+
var nt = function() {
|
|
198
197
|
var e = this, l = e._self._c;
|
|
199
198
|
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" } })]);
|
|
200
|
-
},
|
|
201
|
-
|
|
199
|
+
}, it = [], ct = /* @__PURE__ */ N(
|
|
200
|
+
at,
|
|
201
|
+
nt,
|
|
202
202
|
it,
|
|
203
|
-
ct,
|
|
204
203
|
!1,
|
|
205
204
|
null,
|
|
206
205
|
null
|
|
207
206
|
);
|
|
208
|
-
const
|
|
207
|
+
const rt = ct.exports, ut = G({
|
|
209
208
|
name: "bento-listbox-single-select-option",
|
|
210
209
|
components: {
|
|
211
210
|
BentoListboxOption: Z,
|
|
212
211
|
BentoTypography: j,
|
|
213
|
-
CheckmarkIcon:
|
|
212
|
+
CheckmarkIcon: rt
|
|
214
213
|
},
|
|
215
214
|
props: {
|
|
216
215
|
/**
|
|
@@ -234,12 +233,12 @@ const ut = rt.exports, dt = G({
|
|
|
234
233
|
setup(s, { emit: e }) {
|
|
235
234
|
const l = (r) => {
|
|
236
235
|
s.disabled || e(r, s.option);
|
|
237
|
-
}, t =
|
|
236
|
+
}, t = n(() => s.disabled ? !0 : null), o = n(() => s.selected ? !0 : null), a = n(() => s.disabled ? -1 : 0);
|
|
238
237
|
return {
|
|
239
238
|
// Values
|
|
240
239
|
ariaDisabled: t,
|
|
241
|
-
ariaSelected:
|
|
242
|
-
tabIndex:
|
|
240
|
+
ariaSelected: o,
|
|
241
|
+
tabIndex: a,
|
|
243
242
|
// Enums
|
|
244
243
|
BentoListboxEvent: c,
|
|
245
244
|
// Events
|
|
@@ -247,7 +246,7 @@ const ut = rt.exports, dt = G({
|
|
|
247
246
|
};
|
|
248
247
|
}
|
|
249
248
|
});
|
|
250
|
-
var
|
|
249
|
+
var dt = function() {
|
|
251
250
|
var e = this, l = e._self._c;
|
|
252
251
|
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) {
|
|
253
252
|
return e.onOptionSelected(e.BentoListboxEvent.SELECT);
|
|
@@ -260,17 +259,17 @@ var bt = function() {
|
|
|
260
259
|
} } }, [e._t("default", function() {
|
|
261
260
|
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)];
|
|
262
261
|
}, 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);
|
|
263
|
-
},
|
|
262
|
+
}, bt = [], mt = /* @__PURE__ */ N(
|
|
263
|
+
ut,
|
|
264
264
|
dt,
|
|
265
265
|
bt,
|
|
266
|
-
ft,
|
|
267
266
|
!1,
|
|
268
267
|
null,
|
|
269
268
|
"bb14d75a"
|
|
270
269
|
);
|
|
271
|
-
const
|
|
272
|
-
const l =
|
|
273
|
-
switch (
|
|
270
|
+
const ft = mt.exports, he = ({ items: s }, e) => {
|
|
271
|
+
const l = n(() => s.value.length - 1), t = x(0), o = (_) => {
|
|
272
|
+
switch (_) {
|
|
274
273
|
case "increase":
|
|
275
274
|
t.value += 1;
|
|
276
275
|
break;
|
|
@@ -278,67 +277,67 @@ const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
|
278
277
|
t.value -= 1;
|
|
279
278
|
break;
|
|
280
279
|
}
|
|
281
|
-
},
|
|
282
|
-
t.value !==
|
|
283
|
-
}, r = (
|
|
284
|
-
T(
|
|
280
|
+
}, a = ({ edgeCaseItem: _ }, p) => {
|
|
281
|
+
t.value !== _ && (o(p), e(t.value));
|
|
282
|
+
}, r = (_) => {
|
|
283
|
+
T(_), a(
|
|
285
284
|
{
|
|
286
285
|
edgeCaseItem: l.value
|
|
287
286
|
},
|
|
288
287
|
"increase"
|
|
289
288
|
/* INCREASE */
|
|
290
289
|
);
|
|
291
|
-
},
|
|
292
|
-
T(
|
|
290
|
+
}, m = (_) => {
|
|
291
|
+
T(_), a(
|
|
293
292
|
{
|
|
294
293
|
edgeCaseItem: 0
|
|
295
294
|
},
|
|
296
295
|
"decrease"
|
|
297
296
|
/* DECREASE */
|
|
298
297
|
);
|
|
299
|
-
},
|
|
298
|
+
}, A = () => {
|
|
300
299
|
t.value = 0, e(t.value);
|
|
301
300
|
}, d = () => {
|
|
302
301
|
t.value = l.value, e(t.value);
|
|
303
|
-
}, b = (
|
|
304
|
-
t.value =
|
|
305
|
-
}, T = (
|
|
302
|
+
}, b = (_) => {
|
|
303
|
+
t.value = _;
|
|
304
|
+
}, T = (_) => {
|
|
306
305
|
var p;
|
|
307
|
-
(p =
|
|
306
|
+
(p = _ == null ? void 0 : _.detail) == null || p.preventDefault();
|
|
308
307
|
};
|
|
309
308
|
return {
|
|
310
|
-
moveToFirstElement:
|
|
309
|
+
moveToFirstElement: A,
|
|
311
310
|
moveToLastElement: d,
|
|
312
311
|
moveToNextElement: r,
|
|
313
|
-
moveToPreviousElement:
|
|
312
|
+
moveToPreviousElement: m,
|
|
314
313
|
setListboxFocusedIndex: b,
|
|
315
314
|
preventDefault: T,
|
|
316
315
|
focusedIndex: t
|
|
317
316
|
};
|
|
318
|
-
},
|
|
319
|
-
const
|
|
317
|
+
}, Se = (s, e, l = x("option"), t = !0) => {
|
|
318
|
+
const o = x([]), a = async () => {
|
|
320
319
|
if (!s.value || s.value.nodeType === Node.COMMENT_NODE)
|
|
321
320
|
return;
|
|
322
321
|
const r = Array.from(s.value.querySelectorAll(`[role="${l.value}"]`));
|
|
323
|
-
|
|
322
|
+
o.value = t ? r.filter((m) => m.checkVisibility()) : r;
|
|
324
323
|
};
|
|
325
|
-
return
|
|
324
|
+
return X(
|
|
326
325
|
e,
|
|
327
326
|
() => {
|
|
328
|
-
|
|
329
|
-
|
|
327
|
+
pe(() => {
|
|
328
|
+
a();
|
|
330
329
|
});
|
|
331
330
|
},
|
|
332
331
|
{ immediate: !0 }
|
|
333
332
|
), {
|
|
334
|
-
visibleDomOptions:
|
|
335
|
-
updateVisibleDomOptions:
|
|
333
|
+
visibleDomOptions: o,
|
|
334
|
+
updateVisibleDomOptions: a
|
|
336
335
|
};
|
|
337
|
-
},
|
|
336
|
+
}, vt = G({
|
|
338
337
|
name: "bento-listbox-single-select",
|
|
339
338
|
components: {
|
|
340
|
-
BentoListboxSingleSelectCategory:
|
|
341
|
-
BentoListboxSingleSelectOption:
|
|
339
|
+
BentoListboxSingleSelectCategory: et,
|
|
340
|
+
BentoListboxSingleSelectOption: ft
|
|
342
341
|
},
|
|
343
342
|
directives: { BentoKeyboardNavigationDirective: se },
|
|
344
343
|
inheritAttrs: !1,
|
|
@@ -382,42 +381,42 @@ const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
|
382
381
|
staticCategories: { type: Boolean, default: !1 }
|
|
383
382
|
},
|
|
384
383
|
emits: [c.SELECT, c.ENTER, c.SPACE, c.TAB],
|
|
385
|
-
setup(s, { emit: e, expose: l, slots: t, attrs:
|
|
386
|
-
const
|
|
387
|
-
var
|
|
388
|
-
return !!((
|
|
389
|
-
}),
|
|
384
|
+
setup(s, { emit: e, expose: l, slots: t, attrs: o }) {
|
|
385
|
+
const a = x(null), r = x([]), m = n(() => {
|
|
386
|
+
var v;
|
|
387
|
+
return !!((v = s.selectedValue) != null && v.length) && s.selectedValue.at(0);
|
|
388
|
+
}), A = n(
|
|
390
389
|
() => {
|
|
391
|
-
var
|
|
390
|
+
var v, y, D, P;
|
|
392
391
|
return {
|
|
393
|
-
"aria-label": (
|
|
394
|
-
"aria-busy": (y =
|
|
395
|
-
"aria-atomic": (D =
|
|
396
|
-
"aria-live": (P =
|
|
392
|
+
"aria-label": (v = o["aria-label"]) == null ? void 0 : v.toString(),
|
|
393
|
+
"aria-busy": (y = o["aria-busy"]) == null ? void 0 : y.toString(),
|
|
394
|
+
"aria-atomic": (D = o["aria-atomic"]) == null ? void 0 : D.toString(),
|
|
395
|
+
"aria-live": (P = o["aria-live"]) == null ? void 0 : P.toString()
|
|
397
396
|
};
|
|
398
397
|
}
|
|
399
|
-
), d =
|
|
400
|
-
e(
|
|
401
|
-
}, { visibleDomOptions: T } =
|
|
398
|
+
), d = n(() => !!s.items.some(({ items: v }) => !!v)), b = (v) => (y) => {
|
|
399
|
+
e(v, [y]);
|
|
400
|
+
}, { visibleDomOptions: T } = Se(a, H(s, "items"), x("option"), !1), _ = (v) => {
|
|
402
401
|
var y;
|
|
403
|
-
(y = T.value[
|
|
402
|
+
(y = T.value[v]) == null || y.focus();
|
|
404
403
|
}, {
|
|
405
404
|
moveToNextElement: p,
|
|
406
|
-
moveToPreviousElement:
|
|
405
|
+
moveToPreviousElement: C,
|
|
407
406
|
moveToFirstElement: R,
|
|
408
407
|
moveToLastElement: B,
|
|
409
408
|
setListboxFocusedIndex: I
|
|
410
|
-
} =
|
|
409
|
+
} = he(
|
|
411
410
|
{
|
|
412
411
|
items: T
|
|
413
412
|
},
|
|
414
|
-
|
|
413
|
+
_
|
|
415
414
|
), O = {
|
|
416
|
-
[
|
|
417
|
-
[
|
|
418
|
-
[
|
|
419
|
-
[
|
|
420
|
-
},
|
|
415
|
+
[M.ARROW_UP]: C,
|
|
416
|
+
[M.ARROW_DOWN]: p,
|
|
417
|
+
[M.HOME]: R,
|
|
418
|
+
[M.END]: B
|
|
419
|
+
}, S = {
|
|
421
420
|
[c.SELECT]: b(c.SELECT),
|
|
422
421
|
[c.SPACE]: b(c.SPACE),
|
|
423
422
|
[c.TAB]: b(c.TAB),
|
|
@@ -438,66 +437,66 @@ const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
|
438
437
|
// Enums
|
|
439
438
|
BentoListboxEvent: c,
|
|
440
439
|
// Values
|
|
441
|
-
listboxRef:
|
|
440
|
+
listboxRef: a,
|
|
442
441
|
listboxItemRef: r,
|
|
443
|
-
selectedItem:
|
|
442
|
+
selectedItem: m,
|
|
444
443
|
slots: t,
|
|
445
|
-
ariaAttributes:
|
|
444
|
+
ariaAttributes: A,
|
|
446
445
|
// Computed
|
|
447
446
|
hasCategories: d,
|
|
448
447
|
// Methods
|
|
449
448
|
onOptionSelected: b,
|
|
450
449
|
// Keyboard navigation
|
|
451
450
|
listboxListeners: O,
|
|
452
|
-
listboxOptionListeners:
|
|
451
|
+
listboxOptionListeners: S
|
|
453
452
|
};
|
|
454
453
|
}
|
|
455
454
|
});
|
|
456
455
|
var gt = function() {
|
|
457
456
|
var e = this, l = e._self._c;
|
|
458
457
|
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" } }, "div", e.ariaAttributes, !1), e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(t) {
|
|
459
|
-
return l("bento-listbox-single-select-category", { key: t.value, attrs: { "category-label": t.label } }, e._l(t.items, function(
|
|
460
|
-
return l("bento-listbox-single-select-option", e._g({ key:
|
|
461
|
-
return { key: r, fn: function(
|
|
462
|
-
return [e._t(r, null, null,
|
|
458
|
+
return l("bento-listbox-single-select-category", { key: t.value, attrs: { "category-label": t.label } }, e._l(t.items, function(o) {
|
|
459
|
+
return l("bento-listbox-single-select-option", e._g({ key: o.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: o, disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null, selected: o.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(a, r) {
|
|
460
|
+
return { key: r, fn: function(m) {
|
|
461
|
+
return [e._t(r, null, null, m)];
|
|
463
462
|
} };
|
|
464
463
|
})], null, !0) }, e.listboxOptionListeners));
|
|
465
464
|
}), 1);
|
|
466
465
|
}) : e._l(e.items, function(t) {
|
|
467
|
-
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(
|
|
468
|
-
return { key:
|
|
469
|
-
return [e._t(
|
|
466
|
+
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(o, a) {
|
|
467
|
+
return { key: a, fn: function(r) {
|
|
468
|
+
return [e._t(a, null, null, r)];
|
|
470
469
|
} };
|
|
471
470
|
})], null, !0) }, e.listboxOptionListeners));
|
|
472
471
|
})], 2);
|
|
473
|
-
},
|
|
474
|
-
|
|
472
|
+
}, _t = [], pt = /* @__PURE__ */ N(
|
|
473
|
+
vt,
|
|
475
474
|
gt,
|
|
476
|
-
|
|
475
|
+
_t,
|
|
477
476
|
!1,
|
|
478
477
|
null,
|
|
479
478
|
null
|
|
480
479
|
);
|
|
481
|
-
const
|
|
482
|
-
let
|
|
483
|
-
const
|
|
480
|
+
const yt = pt.exports;
|
|
481
|
+
let ge = 0;
|
|
482
|
+
const ht = {
|
|
484
483
|
beforeCreate() {
|
|
485
|
-
this.uuid =
|
|
484
|
+
this.uuid = ge.toString(), ge += 1;
|
|
486
485
|
}
|
|
487
486
|
};
|
|
488
|
-
var
|
|
487
|
+
var St = function() {
|
|
489
488
|
var e = this, l = e._self._c;
|
|
490
489
|
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" } })]);
|
|
491
|
-
},
|
|
492
|
-
|
|
493
|
-
xt,
|
|
490
|
+
}, Ct = [], xt = /* @__PURE__ */ N(
|
|
491
|
+
ht,
|
|
494
492
|
St,
|
|
493
|
+
Ct,
|
|
495
494
|
!1,
|
|
496
495
|
null,
|
|
497
496
|
null
|
|
498
497
|
);
|
|
499
|
-
const
|
|
500
|
-
...
|
|
498
|
+
const Ot = xt.exports, Et = {}, Tt = /* @__PURE__ */ G({
|
|
499
|
+
...Et,
|
|
501
500
|
__name: "decorative-checkbox",
|
|
502
501
|
props: {
|
|
503
502
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -506,42 +505,79 @@ const Et = Ot.exports, Tt = {}, It = /* @__PURE__ */ G({
|
|
|
506
505
|
allSelected: { type: Boolean, default: !1 }
|
|
507
506
|
},
|
|
508
507
|
setup(s) {
|
|
509
|
-
const e = s, l =
|
|
510
|
-
[`b-checkbox-input--${
|
|
511
|
-
})), t =
|
|
512
|
-
[`b-checkbox-input__outline--${
|
|
513
|
-
[`b-checkbox-input__outline--${
|
|
514
|
-
[`b-checkbox-input__outline--${
|
|
508
|
+
const e = s, l = n(() => ({
|
|
509
|
+
[`b-checkbox-input--${J.DISABLED}`]: e.disabled
|
|
510
|
+
})), t = n(() => ({
|
|
511
|
+
[`b-checkbox-input__outline--${J.UNCHECKED}`]: !e.checked && !e.indeterminate && !e.allSelected,
|
|
512
|
+
[`b-checkbox-input__outline--${J.CHECKED}`]: (e.checked || e.allSelected) && !e.indeterminate,
|
|
513
|
+
[`b-checkbox-input__outline--${J.INDETERMINATE}`]: e.indeterminate
|
|
515
514
|
}));
|
|
516
|
-
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon:
|
|
515
|
+
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon: Ve, MinusSmallIcon: Ue, DoubleCheckmarkSmallIcon: Ot };
|
|
517
516
|
}
|
|
518
517
|
});
|
|
519
|
-
var
|
|
518
|
+
var It = function() {
|
|
520
519
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
521
520
|
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);
|
|
522
|
-
}, At = [],
|
|
521
|
+
}, At = [], Lt = /* @__PURE__ */ N(
|
|
522
|
+
Tt,
|
|
523
523
|
It,
|
|
524
|
-
Lt,
|
|
525
524
|
At,
|
|
526
525
|
!1,
|
|
527
526
|
null,
|
|
528
527
|
"b87bbaf9"
|
|
529
528
|
);
|
|
530
|
-
const
|
|
531
|
-
var Ce = /* @__PURE__ */ ((s) => (s.DISABLED = "disabled", s.STATIC_CATEGORY = "static-category", s))(Ce || {}),
|
|
532
|
-
const
|
|
533
|
-
"
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
},
|
|
537
|
-
|
|
529
|
+
const oe = Lt.exports;
|
|
530
|
+
var Ce = /* @__PURE__ */ ((s) => (s.DISABLED = "disabled", s.STATIC_CATEGORY = "static-category", s))(Ce || {}), U = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.UNSELECT_CATEGORY = "unselect-category", s.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", s))(U || {});
|
|
531
|
+
const kt = {
|
|
532
|
+
"de-DE": {
|
|
533
|
+
categoryClosed: "{category} geschlossen",
|
|
534
|
+
categoryOpened: "{category} geöffnet"
|
|
535
|
+
},
|
|
536
|
+
"en-GB": {
|
|
537
|
+
categoryClosed: "{category} closed",
|
|
538
|
+
categoryOpened: "{category} opened"
|
|
539
|
+
},
|
|
540
|
+
"en-US": {
|
|
541
|
+
categoryClosed: "{category} closed",
|
|
542
|
+
categoryOpened: "{category} opened"
|
|
543
|
+
},
|
|
544
|
+
"es-ES": {
|
|
545
|
+
categoryClosed: "{category} cerrado",
|
|
546
|
+
categoryOpened: "{category} abierto"
|
|
547
|
+
},
|
|
548
|
+
"es-MX": {
|
|
549
|
+
categoryClosed: "{category} cerrado",
|
|
550
|
+
categoryOpened: "{category} abierto"
|
|
551
|
+
},
|
|
552
|
+
"fr-FR": {
|
|
553
|
+
categoryClosed: "{category} fermée",
|
|
554
|
+
categoryOpened: "{category} ouverte"
|
|
555
|
+
},
|
|
556
|
+
"it-IT": {
|
|
557
|
+
categoryClosed: "{category} chiuso",
|
|
558
|
+
categoryOpened: "{category} aperto"
|
|
559
|
+
},
|
|
560
|
+
"ja-JP": {
|
|
561
|
+
categoryClosed: "{category}を閉じました",
|
|
562
|
+
categoryOpened: "{category}を開きました"
|
|
563
|
+
},
|
|
564
|
+
"pt-BR": {
|
|
565
|
+
categoryClosed: "{category} fechada",
|
|
566
|
+
categoryOpened: "{categoria} aberta"
|
|
567
|
+
},
|
|
568
|
+
"zh-CN": {
|
|
569
|
+
categoryClosed: "{category} 已关闭",
|
|
570
|
+
categoryOpened: "{category} 已打开"
|
|
571
|
+
}
|
|
572
|
+
}, Rt = G({
|
|
573
|
+
i18n: { messages: kt },
|
|
538
574
|
name: "bento-listbox-multi-select-category",
|
|
539
575
|
components: {
|
|
540
576
|
BentoTypography: j,
|
|
541
577
|
BentoListboxOption: Z,
|
|
542
|
-
ChevronDownIcon:
|
|
543
|
-
ChevronUpIcon:
|
|
544
|
-
DecorativeCheckbox:
|
|
578
|
+
ChevronDownIcon: Ke,
|
|
579
|
+
ChevronUpIcon: je,
|
|
580
|
+
DecorativeCheckbox: oe
|
|
545
581
|
},
|
|
546
582
|
props: {
|
|
547
583
|
/**
|
|
@@ -587,75 +623,75 @@ const Rt = {
|
|
|
587
623
|
tabindex: { type: Number, default: -1 }
|
|
588
624
|
},
|
|
589
625
|
emits: [
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
626
|
+
U.SELECT_CATEGORY,
|
|
627
|
+
U.UNSELECT_CATEGORY,
|
|
628
|
+
U.TOGGLE_CATEGORY_VISIBILITY
|
|
593
629
|
],
|
|
594
630
|
setup(s, { emit: e }) {
|
|
595
|
-
const l =
|
|
631
|
+
const l = x(!1), { t } = le(), o = me("category-group"), a = me("category-name"), r = (E) => s.isOptionDisabled ? s.isOptionDisabled(E) : !1, m = n(
|
|
596
632
|
() => s.category.items.every((E) => r(E))
|
|
597
|
-
),
|
|
598
|
-
[`b-listbox-multi-select-category--${Ce.DISABLED}`]:
|
|
599
|
-
})), T = (E,
|
|
600
|
-
E.preventDefault(), l.value =
|
|
601
|
-
},
|
|
633
|
+
), A = H(s, "staticCategories"), d = n(() => l.value || s.staticCategories), b = n(() => ({
|
|
634
|
+
[`b-listbox-multi-select-category--${Ce.DISABLED}`]: m.value
|
|
635
|
+
})), T = (E, L) => {
|
|
636
|
+
E.preventDefault(), l.value = L !== void 0 ? L : !l.value, e(U.TOGGLE_CATEGORY_VISIBILITY, s.category.value);
|
|
637
|
+
}, _ = (E) => {
|
|
602
638
|
var Y;
|
|
603
|
-
const
|
|
604
|
-
return { isDisabled:
|
|
605
|
-
}, p =
|
|
639
|
+
const L = r(E), $ = ((Y = s.selectedItemsList) == null ? void 0 : Y.includes(E.value)) || !1;
|
|
640
|
+
return { isDisabled: L, isPreSelected: $ };
|
|
641
|
+
}, p = n(
|
|
606
642
|
() => s.category.items.filter((E) => {
|
|
607
|
-
const { isDisabled:
|
|
608
|
-
return
|
|
643
|
+
const { isDisabled: L, isPreSelected: $ } = _(E);
|
|
644
|
+
return L && $ || !L;
|
|
609
645
|
})
|
|
610
|
-
),
|
|
646
|
+
), C = n(
|
|
611
647
|
() => {
|
|
612
648
|
var E;
|
|
613
649
|
return (E = p.value) == null ? void 0 : E.filter(
|
|
614
|
-
({ value:
|
|
615
|
-
var
|
|
616
|
-
return (
|
|
650
|
+
({ value: L }) => {
|
|
651
|
+
var $;
|
|
652
|
+
return ($ = s.selectedItemsList) == null ? void 0 : $.includes(L);
|
|
617
653
|
}
|
|
618
654
|
);
|
|
619
655
|
}
|
|
620
|
-
), R =
|
|
656
|
+
), R = n(() => {
|
|
621
657
|
const E = l.value ? "categoryOpened" : "categoryClosed";
|
|
622
658
|
return t(E, { category: s.category.label });
|
|
623
659
|
}), B = () => {
|
|
624
|
-
e(
|
|
660
|
+
e(U.SELECT_CATEGORY);
|
|
625
661
|
}, I = () => {
|
|
626
|
-
e(
|
|
627
|
-
}, { isAllSelected: O, isIndeterminate:
|
|
628
|
-
|
|
662
|
+
e(U.UNSELECT_CATEGORY);
|
|
663
|
+
}, { isAllSelected: O, isIndeterminate: S, toggleSelectAll: v } = ye(
|
|
664
|
+
C,
|
|
629
665
|
p,
|
|
630
666
|
B,
|
|
631
667
|
I
|
|
632
|
-
), y =
|
|
633
|
-
D.value = !D.value,
|
|
668
|
+
), y = n(() => S.value ? "mixed" : `${O.value}`), D = x(O.value), P = () => {
|
|
669
|
+
D.value = !D.value, v(D.value);
|
|
634
670
|
};
|
|
635
|
-
return
|
|
671
|
+
return X(O, () => {
|
|
636
672
|
D.value = O.value;
|
|
637
673
|
}), {
|
|
638
674
|
// Values
|
|
639
675
|
chevronTitle: R,
|
|
640
676
|
conditionalClass: b,
|
|
641
|
-
hasAllPropsDisabled:
|
|
677
|
+
hasAllPropsDisabled: m,
|
|
642
678
|
isOpen: l,
|
|
643
679
|
isAllSelected: O,
|
|
644
|
-
isIndeterminate:
|
|
645
|
-
isStaticCategory:
|
|
646
|
-
categoryGroupId:
|
|
647
|
-
categoryNameId:
|
|
680
|
+
isIndeterminate: S,
|
|
681
|
+
isStaticCategory: A,
|
|
682
|
+
categoryGroupId: o,
|
|
683
|
+
categoryNameId: a,
|
|
648
684
|
// Computed
|
|
649
685
|
showItemChildren: d,
|
|
650
686
|
ariaCheckedComputed: y,
|
|
651
687
|
// Methods
|
|
652
688
|
handleSelectAll: P,
|
|
653
689
|
toggleOpen: T,
|
|
654
|
-
toggleSelectAll:
|
|
690
|
+
toggleSelectAll: v
|
|
655
691
|
};
|
|
656
692
|
}
|
|
657
693
|
});
|
|
658
|
-
var
|
|
694
|
+
var Dt = function() {
|
|
659
695
|
var e = this, l = e._self._c;
|
|
660
696
|
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) {
|
|
661
697
|
return t.preventDefault(), e.handleSelectAll.apply(null, arguments);
|
|
@@ -666,23 +702,23 @@ var Bt = function() {
|
|
|
666
702
|
}] } }, [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) {
|
|
667
703
|
return t.stopPropagation(), e.toggleOpen.apply(null, arguments);
|
|
668
704
|
} } }, [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")], 2)], 1);
|
|
669
|
-
},
|
|
705
|
+
}, Bt = [], Mt = /* @__PURE__ */ N(
|
|
706
|
+
Rt,
|
|
670
707
|
Dt,
|
|
671
708
|
Bt,
|
|
672
|
-
$t,
|
|
673
709
|
!1,
|
|
674
710
|
null,
|
|
675
711
|
"00ccd708"
|
|
676
712
|
);
|
|
677
|
-
const
|
|
713
|
+
const $t = Mt.exports;
|
|
678
714
|
var w = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", s.UNSELECT_CATEGORY = "unselect-category", s.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", s))(w || {});
|
|
679
|
-
const
|
|
715
|
+
const Nt = G({
|
|
680
716
|
name: "listbox-multi-select-options",
|
|
681
717
|
components: {
|
|
682
718
|
BentoListboxOption: Z,
|
|
683
719
|
BentoTypography: j,
|
|
684
|
-
ListboxMultiSelectCategory:
|
|
685
|
-
DecorativeCheckbox:
|
|
720
|
+
ListboxMultiSelectCategory: $t,
|
|
721
|
+
DecorativeCheckbox: oe
|
|
686
722
|
},
|
|
687
723
|
inheritAttrs: !1,
|
|
688
724
|
props: {
|
|
@@ -760,25 +796,25 @@ const wt = G({
|
|
|
760
796
|
setup(s, { emit: e }) {
|
|
761
797
|
const l = (d) => {
|
|
762
798
|
s.isOptionDisabled(d) || e(w.TOGGLE_CHECKBOX_SELECTION, d);
|
|
763
|
-
}, t = (d) => !!d.items,
|
|
799
|
+
}, t = (d) => !!d.items, o = (d) => {
|
|
764
800
|
const b = s.isMultiLevel && s.searching;
|
|
765
801
|
return d.description && (!s.isMultiLevel || b);
|
|
766
|
-
},
|
|
802
|
+
}, a = (d) => d.items ? !!d.items.find((b) => s.selectedItemsList.includes(b.value)) : s.selectedItemsList.includes(d.value), r = (d) => {
|
|
767
803
|
if (t(d)) {
|
|
768
|
-
const b =
|
|
804
|
+
const b = a(d) ? w.UNSELECT_CATEGORY : w.SELECT_CATEGORY;
|
|
769
805
|
e(b, d);
|
|
770
806
|
} else
|
|
771
807
|
l(d);
|
|
772
808
|
};
|
|
773
809
|
return {
|
|
774
810
|
// Values
|
|
775
|
-
conditionalClasses:
|
|
811
|
+
conditionalClasses: n(() => ({
|
|
776
812
|
"b-listbox-multi-select-options__static-category-option": s.staticCategories,
|
|
777
813
|
"b-listbox-multi-select-options__category-option": s.categoryItems
|
|
778
814
|
})),
|
|
779
815
|
// Methods
|
|
780
|
-
isOptionSelected:
|
|
781
|
-
shouldShowDescription:
|
|
816
|
+
isOptionSelected: a,
|
|
817
|
+
shouldShowDescription: o,
|
|
782
818
|
toggleCheckboxSelection: l,
|
|
783
819
|
toggleSearchOption: r,
|
|
784
820
|
computedTabindex: (d) => s.itemsIndex[d] === s.focusedIndex ? 0 : -1,
|
|
@@ -788,59 +824,116 @@ const wt = G({
|
|
|
788
824
|
};
|
|
789
825
|
}
|
|
790
826
|
});
|
|
791
|
-
var
|
|
827
|
+
var wt = function() {
|
|
792
828
|
var e = this, l = e._self._c;
|
|
793
829
|
return e._self._setupProxy, l("div", e._l(e.items, function(t) {
|
|
794
|
-
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(
|
|
830
|
+
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(o) {
|
|
795
831
|
return e.toggleSearchOption(t);
|
|
796
|
-
}, "enter-pressed": function(
|
|
832
|
+
}, "enter-pressed": function(o) {
|
|
797
833
|
return e.toggleSearchOption(t);
|
|
798
|
-
}, "space-pressed": function(
|
|
799
|
-
return
|
|
834
|
+
}, "space-pressed": function(o) {
|
|
835
|
+
return o.preventDefault(), e.toggleSearchOption(t);
|
|
800
836
|
} } }, [l("decorative-checkbox", { attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, checked: e.isOptionSelected(t) } }), e._t("default", function() {
|
|
801
837
|
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)];
|
|
802
|
-
}, null, t)], 2)] : [t.items ? [l("listbox-multi-select-category", { attrs: { category: t, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList, tabindex: e.computedTabindex(t.value) }, on: { "select-category": function(
|
|
838
|
+
}, null, t)], 2)] : [t.items ? [l("listbox-multi-select-category", { attrs: { category: t, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList, tabindex: e.computedTabindex(t.value) }, on: { "select-category": function(o) {
|
|
803
839
|
return e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, t);
|
|
804
|
-
}, "unselect-category": function(
|
|
840
|
+
}, "unselect-category": function(o) {
|
|
805
841
|
return e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, t);
|
|
806
|
-
}, "toggle-category-visibility": function(
|
|
807
|
-
return e.$emit(e.ListboxMultiSelectOptionsEvent.TOGGLE_CATEGORY_VISIBILITY,
|
|
808
|
-
} } }, [l("listbox-multi-select-options", { attrs: { "category-items": "", items: t.items, "is-option-disabled": e.isOptionDisabled, "items-index": e.itemsIndex, "focused-index": e.focusedIndex, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching, role: e.$attrs.role || "option" }, on: { "toggle-checkbox-selection": (
|
|
842
|
+
}, "toggle-category-visibility": function(o) {
|
|
843
|
+
return e.$emit(e.ListboxMultiSelectOptionsEvent.TOGGLE_CATEGORY_VISIBILITY, o);
|
|
844
|
+
} } }, [l("listbox-multi-select-options", { attrs: { "category-items": "", items: t.items, "is-option-disabled": e.isOptionDisabled, "items-index": e.itemsIndex, "focused-index": e.focusedIndex, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching, role: e.$attrs.role || "option" }, on: { "toggle-checkbox-selection": (o) => e.toggleCheckboxSelection(o) } })], 1)] : 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(o) {
|
|
809
845
|
return e.toggleCheckboxSelection(t);
|
|
810
|
-
}, "enter-pressed": function(
|
|
846
|
+
}, "enter-pressed": function(o) {
|
|
811
847
|
return e.toggleCheckboxSelection(t);
|
|
812
|
-
}, "space-pressed": function(
|
|
813
|
-
return
|
|
848
|
+
}, "space-pressed": function(o) {
|
|
849
|
+
return o.preventDefault(), e.toggleCheckboxSelection(t);
|
|
814
850
|
} } }, [l("decorative-checkbox", { attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, checked: e.isOptionSelected(t) } }), e._t("default", function() {
|
|
815
851
|
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)];
|
|
816
852
|
}, null, t)], 2)]], 2);
|
|
817
853
|
}), 0);
|
|
818
|
-
},
|
|
854
|
+
}, Gt = [], Pt = /* @__PURE__ */ N(
|
|
855
|
+
Nt,
|
|
819
856
|
wt,
|
|
820
857
|
Gt,
|
|
821
|
-
Pt,
|
|
822
858
|
!1,
|
|
823
859
|
null,
|
|
824
860
|
"0985e0a4"
|
|
825
861
|
);
|
|
826
|
-
const
|
|
827
|
-
const e =
|
|
862
|
+
const Ft = Pt.exports, Yt = (s) => {
|
|
863
|
+
const e = n(() => {
|
|
828
864
|
var t;
|
|
829
|
-
return !!((t = s.value) != null && t.find(({ items:
|
|
830
|
-
}), l =
|
|
865
|
+
return !!((t = s.value) != null && t.find(({ items: o }) => !!o));
|
|
866
|
+
}), l = n(() => {
|
|
831
867
|
var t;
|
|
832
|
-
return e.value ? (t = s.value) == null ? void 0 : t.reduce((
|
|
868
|
+
return e.value ? (t = s.value) == null ? void 0 : t.reduce((o, a) => (a.items ? o.push(...a.items.flat()) : o.push(a), o), []) : s.value;
|
|
833
869
|
});
|
|
834
870
|
return {
|
|
835
871
|
isMultiLevelSelect: e,
|
|
836
872
|
flattenedItemsList: l
|
|
837
873
|
};
|
|
838
874
|
}, zt = {
|
|
839
|
-
"
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
875
|
+
"de-DE": {
|
|
876
|
+
allSelected: "Alle ausgewählt ({total})",
|
|
877
|
+
numberOfTotalSelected: "{number} von {total} ausgewählt",
|
|
878
|
+
numbersSelected: "{number} ausgewählt",
|
|
879
|
+
selectAll: "Alle auswählen ({total})"
|
|
880
|
+
},
|
|
881
|
+
"en-GB": {
|
|
882
|
+
allSelected: "All selected ({total})",
|
|
883
|
+
numberOfTotalSelected: "{number} of {total} selected",
|
|
884
|
+
numbersSelected: "{number} selected",
|
|
885
|
+
selectAll: "Select all ({total})"
|
|
886
|
+
},
|
|
887
|
+
"en-US": {
|
|
888
|
+
allSelected: "All selected ({total})",
|
|
889
|
+
numberOfTotalSelected: "{number} of {total} selected",
|
|
890
|
+
numbersSelected: "{number} selected",
|
|
891
|
+
selectAll: "Select all ({total})"
|
|
892
|
+
},
|
|
893
|
+
"es-ES": {
|
|
894
|
+
allSelected: "Todos seleccionados ({total})",
|
|
895
|
+
numberOfTotalSelected: "{number} de {total} seleccionados",
|
|
896
|
+
numbersSelected: "{number} seleccionado",
|
|
897
|
+
selectAll: "Seleccionar todo ({total})"
|
|
898
|
+
},
|
|
899
|
+
"es-MX": {
|
|
900
|
+
allSelected: "Todos seleccionados ({total})",
|
|
901
|
+
numberOfTotalSelected: "{number} de {total} seleccionados",
|
|
902
|
+
numbersSelected: "{número} seleccionado",
|
|
903
|
+
selectAll: "Seleccionar todo ({total})"
|
|
904
|
+
},
|
|
905
|
+
"fr-FR": {
|
|
906
|
+
allSelected: "Tous sélectionnés ({total})",
|
|
907
|
+
numberOfTotalSelected: "{number} sélectionné(s) sur {total}",
|
|
908
|
+
numbersSelected: "{number} sélectionné(s)",
|
|
909
|
+
selectAll: "Tout sélectionner ({total})"
|
|
910
|
+
},
|
|
911
|
+
"it-IT": {
|
|
912
|
+
allSelected: "Tutti i selezionati ({total})",
|
|
913
|
+
numberOfTotalSelected: "{numero} su {totale} selezionati",
|
|
914
|
+
numbersSelected: "{numero} selezionati",
|
|
915
|
+
selectAll: "Seleziona tutto ({total})"
|
|
916
|
+
},
|
|
917
|
+
"ja-JP": {
|
|
918
|
+
allSelected: "すべて選択 ({total})",
|
|
919
|
+
numberOfTotalSelected: "{number}/{total}件が選択されました",
|
|
920
|
+
numbersSelected: "{number}件選択済み",
|
|
921
|
+
selectAll: "すべて選択 ({total})"
|
|
922
|
+
},
|
|
923
|
+
"pt-BR": {
|
|
924
|
+
allSelected: "Todos os selecionados ({total})",
|
|
925
|
+
numberOfTotalSelected: "{number} de {total} selecionados",
|
|
926
|
+
numbersSelected: "{number} selecionados",
|
|
927
|
+
selectAll: "Selecionar tudo ({total})"
|
|
928
|
+
},
|
|
929
|
+
"zh-CN": {
|
|
930
|
+
allSelected: "全部已选 ({total})",
|
|
931
|
+
numberOfTotalSelected: "已选择 {number} 个,共 {total} 个",
|
|
932
|
+
numbersSelected: "已选择 {number} 个",
|
|
933
|
+
selectAll: "选择全部({total})个"
|
|
934
|
+
}
|
|
935
|
+
}, Ut = { i18n: { messages: zt } }, Vt = /* @__PURE__ */ G({
|
|
936
|
+
...Ut,
|
|
844
937
|
__name: "listbox-multi-select",
|
|
845
938
|
props: {
|
|
846
939
|
hasMoreItems: { type: Boolean, default: !1 },
|
|
@@ -853,184 +946,226 @@ const Yt = Ft.exports, Ut = (s) => {
|
|
|
853
946
|
},
|
|
854
947
|
emits: ["select"],
|
|
855
948
|
setup(s, { expose: e, emit: l }) {
|
|
856
|
-
const t = s, { t:
|
|
949
|
+
const t = s, { t: o, n: a } = le(), r = Ge(), m = Pe(), A = n(
|
|
857
950
|
() => {
|
|
858
|
-
var i, u,
|
|
951
|
+
var i, u, f, h;
|
|
859
952
|
return {
|
|
860
|
-
"aria-label": (i =
|
|
861
|
-
"aria-busy": (u =
|
|
862
|
-
"aria-atomic": (
|
|
863
|
-
"aria-live": (h =
|
|
953
|
+
"aria-label": (i = m["aria-label"]) == null ? void 0 : i.toString(),
|
|
954
|
+
"aria-busy": (u = m["aria-busy"]) == null ? void 0 : u.toString(),
|
|
955
|
+
"aria-atomic": (f = m["aria-atomic"]) == null ? void 0 : f.toString(),
|
|
956
|
+
"aria-live": (h = m["aria-live"]) == null ? void 0 : h.toString(),
|
|
864
957
|
"aria-multiselectable": !0
|
|
865
958
|
};
|
|
866
959
|
}
|
|
867
|
-
), d =
|
|
960
|
+
), d = x(null), b = x(null), T = x(null), _ = x(null), p = n(() => t.selectedValues.map(({ value: i }) => i)), { isMultiLevelSelect: C, flattenedItemsList: R } = Yt(H(t, "items")), B = n(() => C.value && !t.staticCategories), I = n(() => B.value ? "tree" : "listbox"), O = n(() => B.value ? "treeitem" : "option"), S = (i) => {
|
|
868
961
|
var h;
|
|
869
|
-
const u = t.isOptionDisabled(i),
|
|
870
|
-
return { isDisabled: u, isPreSelected:
|
|
871
|
-
},
|
|
872
|
-
if (t.searching &&
|
|
962
|
+
const u = t.isOptionDisabled(i), f = ((h = p.value) == null ? void 0 : h.includes(i.value)) || !1;
|
|
963
|
+
return { isDisabled: u, isPreSelected: f };
|
|
964
|
+
}, v = n(() => {
|
|
965
|
+
if (t.searching && C)
|
|
873
966
|
return t.items;
|
|
874
967
|
const i = R.value.filter((u) => {
|
|
875
|
-
const { isDisabled:
|
|
876
|
-
return
|
|
968
|
+
const { isDisabled: f, isPreSelected: h } = S(u);
|
|
969
|
+
return f && h || !f;
|
|
877
970
|
});
|
|
878
971
|
return t.selectedValues.forEach((u) => {
|
|
879
|
-
i.find((
|
|
972
|
+
i.find((f) => f.value === u.value) || i.push(u);
|
|
880
973
|
}), i;
|
|
881
|
-
}), y =
|
|
974
|
+
}), y = n(
|
|
882
975
|
() => {
|
|
883
976
|
var i;
|
|
884
|
-
return (i =
|
|
885
|
-
var
|
|
886
|
-
return u.items &&
|
|
887
|
-
(
|
|
888
|
-
).length === u.items.length : (
|
|
977
|
+
return (i = v.value) == null ? void 0 : i.filter((u) => {
|
|
978
|
+
var f;
|
|
979
|
+
return u.items && C.value && t.searching ? u.items.filter(
|
|
980
|
+
(g) => (t.selectedValues ?? []).includes(g.value)
|
|
981
|
+
).length === u.items.length : (f = p.value) == null ? void 0 : f.includes(u.value);
|
|
889
982
|
});
|
|
890
983
|
}
|
|
891
|
-
), D = () =>
|
|
984
|
+
), D = () => C.value && !t.searching ? R.value.length : t.items.length, P = n(() => {
|
|
892
985
|
var h;
|
|
893
|
-
const i =
|
|
894
|
-
return
|
|
986
|
+
const i = v.value.length, u = D(), f = ((h = y.value) == null ? void 0 : h.length) || 0;
|
|
987
|
+
return f === 0 ? o("selectAll", { total: a(i) }) : f === u ? o("allSelected", { total: a(u) }) : f <= u ? o("numberOfTotalSelected", { number: a(f), total: a(u) }) : o("numbersSelected", { number: a(f) });
|
|
895
988
|
}), E = (i) => {
|
|
896
989
|
const u = (h) => {
|
|
897
|
-
const { isDisabled:
|
|
898
|
-
return
|
|
899
|
-
},
|
|
900
|
-
l("select", [...t.selectedValues, ...
|
|
901
|
-
},
|
|
902
|
-
const u = (
|
|
903
|
-
const { isDisabled: F, isPreSelected:
|
|
904
|
-
return !(F &&
|
|
905
|
-
},
|
|
990
|
+
const { isDisabled: g, isPreSelected: F } = S(h);
|
|
991
|
+
return g && F || !g;
|
|
992
|
+
}, f = i.filter(u).filter((h) => !p.value.includes(h.value));
|
|
993
|
+
l("select", [...t.selectedValues, ...f]);
|
|
994
|
+
}, L = (i) => {
|
|
995
|
+
const u = (g) => {
|
|
996
|
+
const { isDisabled: F, isPreSelected: $e } = S(g);
|
|
997
|
+
return !(F && $e);
|
|
998
|
+
}, f = i.filter(u).map(({ value: g }) => g), h = t.selectedValues.filter((g) => !(f != null && f.includes(g.value)));
|
|
906
999
|
l("select", h);
|
|
907
|
-
},
|
|
1000
|
+
}, $ = () => {
|
|
908
1001
|
E(R.value);
|
|
909
1002
|
}, Y = () => {
|
|
910
|
-
|
|
911
|
-
}, { isAllSelected:
|
|
1003
|
+
L(R.value);
|
|
1004
|
+
}, { isAllSelected: z, isIndeterminate: k, toggleSelectAll: V } = ye(
|
|
912
1005
|
y,
|
|
913
|
-
|
|
914
|
-
|
|
1006
|
+
v,
|
|
1007
|
+
$,
|
|
915
1008
|
Y
|
|
916
|
-
), xe =
|
|
1009
|
+
), xe = n(() => k.value ? "mixed" : `${z.value}`), q = x(z.value), Oe = () => {
|
|
917
1010
|
q.value = !q.value, V(q.value);
|
|
918
1011
|
};
|
|
919
|
-
|
|
920
|
-
q.value =
|
|
1012
|
+
X(z, () => {
|
|
1013
|
+
q.value = z.value;
|
|
921
1014
|
});
|
|
922
|
-
const
|
|
1015
|
+
const Ee = (i) => {
|
|
923
1016
|
E(i.items);
|
|
924
|
-
},
|
|
925
|
-
|
|
926
|
-
},
|
|
927
|
-
let
|
|
928
|
-
const h = t.selectedValues.filter(({ value:
|
|
929
|
-
|
|
930
|
-
},
|
|
931
|
-
if (!
|
|
1017
|
+
}, Te = (i) => {
|
|
1018
|
+
L(i.items);
|
|
1019
|
+
}, Ie = (i, u) => {
|
|
1020
|
+
let f = !1;
|
|
1021
|
+
const h = t.selectedValues.filter(({ value: g }) => u.value === g ? (f = !0, !1) : !0);
|
|
1022
|
+
f || h.push(u), l(i, h);
|
|
1023
|
+
}, Ae = n(() => {
|
|
1024
|
+
if (!C.value)
|
|
932
1025
|
return t.selectedValues;
|
|
933
|
-
const i = (
|
|
1026
|
+
const i = (g) => p.value.includes(g.value), u = (g) => !t.staticCategories && g.every((F) => i(F));
|
|
934
1027
|
return t.items.flatMap(
|
|
935
|
-
(
|
|
936
|
-
).filter((
|
|
937
|
-
}), Le =
|
|
938
|
-
var
|
|
939
|
-
const i = ["automatic", "button"].includes(t.lazyLoadType), u = ((
|
|
1028
|
+
(g) => g.items && !u(g.items) ? g.items : g
|
|
1029
|
+
).filter((g) => g.items ? !0 : i(g));
|
|
1030
|
+
}), Le = n(() => {
|
|
1031
|
+
var f, h, g, F;
|
|
1032
|
+
const i = ["automatic", "button"].includes(t.lazyLoadType), u = ((f = t.selectedValues) == null ? void 0 : f.length) > 0 && ((h = y.value) == null ? void 0 : h.length) !== ((g = R.value) == null ? void 0 : g.length);
|
|
940
1033
|
return i && t.hasMoreItems ? !!((F = t.selectedValues) != null && F.length) : u;
|
|
941
|
-
}),
|
|
1034
|
+
}), ae = n(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), W = x([]), { visibleDomOptions: Q, updateVisibleDomOptions: ne } = Se(
|
|
942
1035
|
d,
|
|
943
1036
|
H(t, "items"),
|
|
944
1037
|
O
|
|
945
1038
|
), ke = (i) => {
|
|
946
|
-
W.value.includes(i) ? W.value = W.value.filter((u) => u !== i) : W.value.push(i),
|
|
1039
|
+
W.value.includes(i) ? W.value = W.value.filter((u) => u !== i) : W.value.push(i), pe(() => {
|
|
947
1040
|
ne();
|
|
948
1041
|
});
|
|
949
|
-
},
|
|
1042
|
+
}, ie = (i) => {
|
|
950
1043
|
var u;
|
|
951
1044
|
(u = Q.value[i]) == null || u.focus();
|
|
952
1045
|
}, {
|
|
953
|
-
moveToNextElement:
|
|
954
|
-
moveToPreviousElement:
|
|
955
|
-
moveToFirstElement:
|
|
956
|
-
moveToLastElement:
|
|
1046
|
+
moveToNextElement: ce,
|
|
1047
|
+
moveToPreviousElement: re,
|
|
1048
|
+
moveToFirstElement: ue,
|
|
1049
|
+
moveToLastElement: de,
|
|
957
1050
|
preventDefault: ee,
|
|
958
1051
|
focusedIndex: Re,
|
|
959
|
-
setListboxFocusedIndex:
|
|
960
|
-
} =
|
|
1052
|
+
setListboxFocusedIndex: be
|
|
1053
|
+
} = he(
|
|
961
1054
|
{
|
|
962
1055
|
items: Q
|
|
963
1056
|
},
|
|
964
|
-
|
|
1057
|
+
ie
|
|
965
1058
|
), De = {
|
|
966
|
-
[
|
|
967
|
-
[
|
|
968
|
-
[
|
|
969
|
-
[
|
|
1059
|
+
[M.ARROW_UP]: (i) => re(i),
|
|
1060
|
+
[M.ARROW_DOWN]: (i) => ce(i),
|
|
1061
|
+
[M.HOME]: ue,
|
|
1062
|
+
[M.END]: de
|
|
970
1063
|
};
|
|
971
1064
|
e({
|
|
972
1065
|
/**
|
|
973
1066
|
* Method to set the index of the item to be focused on
|
|
974
1067
|
* Used for focus management to be kept in-sync with parent e.g. dropdowns
|
|
975
1068
|
*/
|
|
976
|
-
setListboxFocusedIndex:
|
|
1069
|
+
setListboxFocusedIndex: be
|
|
977
1070
|
});
|
|
978
1071
|
const Be = {
|
|
979
|
-
[
|
|
980
|
-
[
|
|
981
|
-
},
|
|
982
|
-
let i = 1;
|
|
1072
|
+
[M.ARROW_UP]: ee,
|
|
1073
|
+
[M.ARROW_DOWN]: ee
|
|
1074
|
+
}, Me = n(() => {
|
|
1075
|
+
let i = ae.value ? 1 : 0;
|
|
983
1076
|
const u = {};
|
|
984
|
-
return t.items.forEach((
|
|
985
|
-
let h = W.value.includes(
|
|
986
|
-
|
|
1077
|
+
return t.items.forEach((f) => {
|
|
1078
|
+
let h = W.value.includes(f.value);
|
|
1079
|
+
f.items ? (t.staticCategories ? h = !0 : u[f.value] = i++, h && f.items.forEach((g) => u[g.value] = i++)) : u[f.value] = i++;
|
|
987
1080
|
}), u;
|
|
988
1081
|
});
|
|
989
|
-
return { __sfc: !0, props: t, emit: l, t:
|
|
1082
|
+
return { __sfc: !0, props: t, emit: l, t: o, n: a, slots: r, attrs: m, ariaAttributes: A, listboxRef: d, selectAllListboxItemsRef: b, selectedListboxItemsRef: T, listboxItemsRef: _, selectedItemsList: p, isMultiLevelSelect: C, flattenedItemsList: R, isTreePattern: B, computedRole: I, computedOptionRole: O, optionStates: S, enabledItems: v, visibleSelectedList: y, calculateTotalItems: D, selectAllCheckboxText: P, selectAll: E, unselectAll: L, selectAllItems: $, unselectAllItems: Y, isAllSelected: z, isIndeterminate: k, toggleSelectAll: V, ariaCheckedComputed: xe, isSelectAllOn: q, handleSelectAll: Oe, selectAllCategory: Ee, unselectAllCategory: Te, toggleCheckboxSelection: Ie, selectedOptions: Ae, showSelectedItems: Le, showSelectAllCheckbox: ae, expandedCategories: W, visibleDomOptions: Q, updateVisibleDomOptions: ne, toggleCategoryVisibility: ke, focusItem: ie, moveToNextElement: ce, moveToPreviousElement: re, moveToFirstElement: ue, moveToLastElement: de, preventDefault: ee, focusedIndex: Re, setListboxFocusedIndex: be, listboxListeners: De, chipsSectionListeners: Be, computedItemsIndex: Me, DecorativeCheckbox: oe, BentoTypography: j, BentoChip: We, BentoListboxOption: Z, ListboxMultiSelectOptions: Ft, vBentoKeyboardNavigationDirective: se, BentoListboxEvent: c };
|
|
990
1083
|
}
|
|
991
1084
|
});
|
|
992
|
-
var
|
|
1085
|
+
var Wt = function() {
|
|
993
1086
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
994
|
-
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(
|
|
995
|
-
return l("li", { key:
|
|
996
|
-
|
|
1087
|
+
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(o) {
|
|
1088
|
+
return l("li", { key: o.value }, [l(t.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(o), label: o.label, condensed: "" }, on: { click: function(a) {
|
|
1089
|
+
o.items ? t.unselectAllCategory(o) : t.toggleCheckboxSelection("select", o);
|
|
997
1090
|
} } })], 1);
|
|
998
|
-
}), 0), l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } })]) : e._e(), l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], attrs: { role: t.computedRole } }, "div", t.ariaAttributes, !1), t.listboxListeners), [t.showSelectAllCheckbox ? l(t.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option", attrs: { tabindex: t.focusedIndex === 0 ? 0 : -1, "aria-selected": t.ariaCheckedComputed !== "false", "aria-checked": t.ariaCheckedComputed, role: t.computedOptionRole }, on: { click: t.handleSelectAll, "enter-pressed": t.handleSelectAll, "space-pressed": function(
|
|
999
|
-
return
|
|
1000
|
-
} } }, [l(t.DecorativeCheckbox, { attrs: { checked: t.isAllSelected, indeterminate: t.isIndeterminate } }), l(t.BentoTypography, { attrs: { el: "span" } }, [e._v(" " + e._s(t.selectAllCheckboxText) + " ")])], 1) : e._e(), t.showSelectAllCheckbox ? l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } }) : e._e(), l(t.ListboxMultiSelectOptions, { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": t.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": t.selectedItemsList, "focused-index": t.focusedIndex, "items-index": t.computedItemsIndex, role: t.computedOptionRole }, on: { "toggle-checkbox-selection": function(
|
|
1001
|
-
return t.toggleCheckboxSelection("select",
|
|
1002
|
-
}, "select-category": t.selectAllCategory, "unselect-category": t.unselectAllCategory, "toggle-category-visibility": t.toggleCategoryVisibility, "space-pressed": function(
|
|
1003
|
-
return t.toggleCheckboxSelection(t.BentoListboxEvent.SPACE,
|
|
1004
|
-
}, "tab-pressed": function(
|
|
1005
|
-
return t.toggleCheckboxSelection(t.BentoListboxEvent.TAB,
|
|
1006
|
-
}, "enter-pressed": function(
|
|
1007
|
-
return t.toggleCheckboxSelection(t.BentoListboxEvent.ENTER,
|
|
1008
|
-
} }, scopedSlots: e._u([e._l(t.slots, function(
|
|
1009
|
-
return { key:
|
|
1010
|
-
return [e._t(
|
|
1091
|
+
}), 0), l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } })]) : e._e(), l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], attrs: { role: t.computedRole } }, "div", t.ariaAttributes, !1), t.listboxListeners), [t.showSelectAllCheckbox ? l(t.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option", attrs: { tabindex: t.focusedIndex === 0 ? 0 : -1, "aria-selected": t.ariaCheckedComputed !== "false", "aria-checked": t.ariaCheckedComputed, role: t.computedOptionRole }, on: { click: t.handleSelectAll, "enter-pressed": t.handleSelectAll, "space-pressed": function(o) {
|
|
1092
|
+
return o.preventDefault(), t.handleSelectAll.apply(null, arguments);
|
|
1093
|
+
} } }, [l(t.DecorativeCheckbox, { attrs: { checked: t.isAllSelected, indeterminate: t.isIndeterminate } }), l(t.BentoTypography, { attrs: { el: "span" } }, [e._v(" " + e._s(t.selectAllCheckboxText) + " ")])], 1) : e._e(), t.showSelectAllCheckbox ? l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } }) : e._e(), l(t.ListboxMultiSelectOptions, { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": t.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": t.selectedItemsList, "focused-index": t.focusedIndex, "items-index": t.computedItemsIndex, role: t.computedOptionRole }, on: { "toggle-checkbox-selection": function(o) {
|
|
1094
|
+
return t.toggleCheckboxSelection("select", o);
|
|
1095
|
+
}, "select-category": t.selectAllCategory, "unselect-category": t.unselectAllCategory, "toggle-category-visibility": t.toggleCategoryVisibility, "space-pressed": function(o) {
|
|
1096
|
+
return t.toggleCheckboxSelection(t.BentoListboxEvent.SPACE, o);
|
|
1097
|
+
}, "tab-pressed": function(o) {
|
|
1098
|
+
return t.toggleCheckboxSelection(t.BentoListboxEvent.TAB, o);
|
|
1099
|
+
}, "enter-pressed": function(o) {
|
|
1100
|
+
return t.toggleCheckboxSelection(t.BentoListboxEvent.ENTER, o);
|
|
1101
|
+
} }, scopedSlots: e._u([e._l(t.slots, function(o, a) {
|
|
1102
|
+
return { key: a, fn: function(r) {
|
|
1103
|
+
return [e._t(a, null, null, r)];
|
|
1011
1104
|
} };
|
|
1012
1105
|
})], null, !0) })], 1)]);
|
|
1013
|
-
},
|
|
1106
|
+
}, Kt = [], jt = /* @__PURE__ */ N(
|
|
1107
|
+
Vt,
|
|
1014
1108
|
Wt,
|
|
1015
1109
|
Kt,
|
|
1016
|
-
jt,
|
|
1017
1110
|
!1,
|
|
1018
1111
|
null,
|
|
1019
|
-
"
|
|
1112
|
+
"b81d7402"
|
|
1020
1113
|
);
|
|
1021
|
-
const _e =
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
}
|
|
1114
|
+
const _e = jt.exports, qt = (s, e = 300) => {
|
|
1115
|
+
let l;
|
|
1116
|
+
return (...o) => {
|
|
1117
|
+
l && clearTimeout(l), l = setTimeout(() => s(...o), e);
|
|
1118
|
+
};
|
|
1119
|
+
}, Ht = {
|
|
1120
|
+
"de-DE": {
|
|
1121
|
+
loading: "Laden",
|
|
1122
|
+
showMore: "Mehr anzeigen"
|
|
1123
|
+
},
|
|
1124
|
+
"en-GB": {
|
|
1125
|
+
loading: "Loading",
|
|
1126
|
+
showMore: "Show more"
|
|
1127
|
+
},
|
|
1128
|
+
"en-US": {
|
|
1129
|
+
loading: "Loading",
|
|
1130
|
+
showMore: "Show more"
|
|
1131
|
+
},
|
|
1132
|
+
"es-ES": {
|
|
1133
|
+
loading: "Cargando",
|
|
1134
|
+
showMore: "Mostrar más"
|
|
1135
|
+
},
|
|
1136
|
+
"es-MX": {
|
|
1137
|
+
loading: "Cargando",
|
|
1138
|
+
showMore: "Mostrar más"
|
|
1139
|
+
},
|
|
1140
|
+
"fr-FR": {
|
|
1141
|
+
loading: "Chargement",
|
|
1142
|
+
showMore: "Afficher plus"
|
|
1143
|
+
},
|
|
1144
|
+
"it-IT": {
|
|
1145
|
+
loading: "Caricamento",
|
|
1146
|
+
showMore: "Mostra di più"
|
|
1147
|
+
},
|
|
1148
|
+
"ja-JP": {
|
|
1149
|
+
loading: "読み込み中",
|
|
1150
|
+
showMore: "さらに表示"
|
|
1151
|
+
},
|
|
1152
|
+
"pt-BR": {
|
|
1153
|
+
loading: "Carregando",
|
|
1154
|
+
showMore: "Mostrar mais"
|
|
1155
|
+
},
|
|
1156
|
+
"zh-CN": {
|
|
1157
|
+
loading: "正在加载",
|
|
1158
|
+
showMore: "显示更多"
|
|
1159
|
+
}
|
|
1160
|
+
}, Xt = 36, Jt = G({
|
|
1026
1161
|
name: "bento-listbox",
|
|
1027
1162
|
components: {
|
|
1028
1163
|
BentoEmptyState: Ye,
|
|
1029
|
-
BentoListboxSingleSelect:
|
|
1164
|
+
BentoListboxSingleSelect: yt,
|
|
1030
1165
|
BentoListboxMultiSelect: _e,
|
|
1031
1166
|
BentoTypography: j,
|
|
1032
1167
|
BentoLoadingIndicator: Fe,
|
|
1033
|
-
BentoLoadingButton:
|
|
1168
|
+
BentoLoadingButton: qe
|
|
1034
1169
|
},
|
|
1035
1170
|
directives: { BentoKeyboardNavigationDirective: se },
|
|
1036
1171
|
i18n: { messages: Ht },
|
|
@@ -1142,64 +1277,64 @@ const _e = qt.exports, Ht = {
|
|
|
1142
1277
|
c.TAB
|
|
1143
1278
|
],
|
|
1144
1279
|
setup(s, { emit: e, slots: l }) {
|
|
1145
|
-
const t =
|
|
1280
|
+
const t = x([]), o = H(s, "items"), { t: a } = le(), r = n(() => s.lazyLoadType !== K.AUTOMATIC), m = n(() => s.lazyLoadType === K.AUTOMATIC), A = () => {
|
|
1146
1281
|
var k;
|
|
1147
|
-
return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((k = s == null ? void 0 : s.virtualScroll) != null && k.itemHeight) ? s.virtualScroll.itemHeight :
|
|
1282
|
+
return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((k = s == null ? void 0 : s.virtualScroll) != null && k.itemHeight) ? s.virtualScroll.itemHeight : Xt;
|
|
1148
1283
|
}, {
|
|
1149
1284
|
containerRef: d,
|
|
1150
1285
|
containerProps: b,
|
|
1151
1286
|
onScroll: T,
|
|
1152
|
-
list:
|
|
1287
|
+
list: _,
|
|
1153
1288
|
wrapperProps: p
|
|
1154
|
-
} =
|
|
1155
|
-
itemHeight:
|
|
1289
|
+
} = He(o, {
|
|
1290
|
+
itemHeight: A(),
|
|
1156
1291
|
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1157
1292
|
disabled: (s == null ? void 0 : s.multiple) || (s == null ? void 0 : s.virtualScroll) === !1 || (s == null ? void 0 : s.lazyLoadType) !== "none"
|
|
1158
|
-
}),
|
|
1293
|
+
}), C = n(
|
|
1159
1294
|
() => s.componentLoading !== void 0 || r.value ? "true" : void 0
|
|
1160
|
-
), R =
|
|
1295
|
+
), R = n(
|
|
1161
1296
|
() => r.value && s.loading || s.componentLoading ? "true" : "false"
|
|
1162
|
-
), B =
|
|
1297
|
+
), B = n(
|
|
1163
1298
|
() => r.value || s.componentLoading !== void 0 ? "polite" : void 0
|
|
1164
|
-
), I =
|
|
1299
|
+
), I = n(
|
|
1165
1300
|
() => ({
|
|
1166
1301
|
"aria-label": s.ariaLabel,
|
|
1167
1302
|
"aria-busy": R.value,
|
|
1168
|
-
"aria-atomic":
|
|
1303
|
+
"aria-atomic": C.value,
|
|
1169
1304
|
"aria-live": B.value
|
|
1170
1305
|
})
|
|
1171
|
-
), O =
|
|
1306
|
+
), O = n(
|
|
1172
1307
|
() => s.componentLoading ? {
|
|
1173
1308
|
...I.value,
|
|
1174
1309
|
role: "alert"
|
|
1175
1310
|
} : {}
|
|
1176
|
-
),
|
|
1311
|
+
), S = (k) => (V) => {
|
|
1177
1312
|
e(k, V);
|
|
1178
|
-
},
|
|
1313
|
+
}, v = () => {
|
|
1179
1314
|
e(c.SHOW_MORE);
|
|
1180
|
-
}, y =
|
|
1315
|
+
}, y = qt(() => {
|
|
1181
1316
|
const k = d.value;
|
|
1182
1317
|
if (!k)
|
|
1183
1318
|
return;
|
|
1184
1319
|
const V = Math.round(k.scrollTop) + k.clientHeight >= k.scrollHeight;
|
|
1185
|
-
s.hasMoreItems && V && !s.loading &&
|
|
1320
|
+
s.hasMoreItems && V && !s.loading && v();
|
|
1186
1321
|
}), D = () => {
|
|
1187
|
-
|
|
1188
|
-
}, P =
|
|
1322
|
+
m.value ? y() : T();
|
|
1323
|
+
}, P = n(() => {
|
|
1189
1324
|
var k;
|
|
1190
1325
|
return ((k = s.items) == null ? void 0 : k.length) === 0;
|
|
1191
|
-
}), E =
|
|
1326
|
+
}), E = n(
|
|
1192
1327
|
() => s.lazyLoadType === K.BUTTON && s.hasMoreItems
|
|
1193
|
-
),
|
|
1328
|
+
), L = n(
|
|
1194
1329
|
() => s.loading ? fe.LOADING : fe.START
|
|
1195
|
-
),
|
|
1330
|
+
), $ = n(() => s.loading ? a("loading") : a("showMore")), Y = n(() => ({
|
|
1196
1331
|
...s.emptyState,
|
|
1197
1332
|
variant: "condensed"
|
|
1198
|
-
})),
|
|
1199
|
-
[c.SELECT]:
|
|
1200
|
-
[c.SPACE]:
|
|
1201
|
-
[c.TAB]:
|
|
1202
|
-
[c.ENTER]:
|
|
1333
|
+
})), z = {
|
|
1334
|
+
[c.SELECT]: S(c.SELECT),
|
|
1335
|
+
[c.SPACE]: S(c.SPACE),
|
|
1336
|
+
[c.TAB]: S(c.TAB),
|
|
1337
|
+
[c.ENTER]: S(c.ENTER)
|
|
1203
1338
|
};
|
|
1204
1339
|
return {
|
|
1205
1340
|
// Refs
|
|
@@ -1212,46 +1347,46 @@ const _e = qt.exports, Ht = {
|
|
|
1212
1347
|
containerProps: b,
|
|
1213
1348
|
isSearchResultEmpty: P,
|
|
1214
1349
|
limitedEmptyStateProps: Y,
|
|
1215
|
-
loadingButtonState:
|
|
1350
|
+
loadingButtonState: L,
|
|
1216
1351
|
slots: l,
|
|
1217
1352
|
shouldDisplayShowMoreButton: E,
|
|
1218
|
-
showMoreButtonText:
|
|
1219
|
-
virtualisedItems:
|
|
1353
|
+
showMoreButtonText: $,
|
|
1354
|
+
virtualisedItems: _,
|
|
1220
1355
|
wrapperProps: p,
|
|
1221
1356
|
// Enums
|
|
1222
|
-
BentoKeyboardNavigationKeyDownEvent:
|
|
1357
|
+
BentoKeyboardNavigationKeyDownEvent: M,
|
|
1223
1358
|
BentoListboxEvent: c,
|
|
1224
1359
|
// Methods
|
|
1225
1360
|
onListboxContainerScroll: D,
|
|
1226
|
-
onOptionSelected:
|
|
1227
|
-
emitShowMore:
|
|
1228
|
-
listboxListeners:
|
|
1361
|
+
onOptionSelected: S,
|
|
1362
|
+
emitShowMore: v,
|
|
1363
|
+
listboxListeners: z
|
|
1229
1364
|
};
|
|
1230
1365
|
}
|
|
1231
1366
|
});
|
|
1232
1367
|
var Zt = function() {
|
|
1233
1368
|
var t;
|
|
1234
1369
|
var e = this, l = e._self._c;
|
|
1235
|
-
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: (t = e.containerProps) == null ? void 0 : t.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(
|
|
1236
|
-
return { key:
|
|
1237
|
-
return [e._t(
|
|
1370
|
+
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: (t = e.containerProps) == null ? void 0 : t.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(o, a) {
|
|
1371
|
+
return { key: a, fn: function(r) {
|
|
1372
|
+
return [e._t(a, null, null, r)];
|
|
1238
1373
|
} };
|
|
1239
|
-
})], 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, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(
|
|
1240
|
-
return { key:
|
|
1241
|
-
return [e._t(
|
|
1374
|
+
})], 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, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(o, a) {
|
|
1375
|
+
return { key: a, fn: function(r) {
|
|
1376
|
+
return [e._t(a, null, null, r)];
|
|
1242
1377
|
} };
|
|
1243
|
-
})], null, !0) }, "bento-listbox-single-select", e.ariaAttributes, !1), e.listboxListeners))], e.shouldDisplayShowMoreButton ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(
|
|
1378
|
+
})], null, !0) }, "bento-listbox-single-select", e.ariaAttributes, !1), e.listboxListeners))], e.shouldDisplayShowMoreButton ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(o) {
|
|
1244
1379
|
return e.emitShowMore.apply(null, arguments);
|
|
1245
1380
|
} } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-indicator")], 1) : e._e()]], 2)]);
|
|
1246
|
-
}, Qt = [], es = /* @__PURE__ */
|
|
1247
|
-
|
|
1381
|
+
}, Qt = [], es = /* @__PURE__ */ N(
|
|
1382
|
+
Jt,
|
|
1248
1383
|
Zt,
|
|
1249
1384
|
Qt,
|
|
1250
1385
|
!1,
|
|
1251
1386
|
null,
|
|
1252
1387
|
"35cb3605"
|
|
1253
1388
|
);
|
|
1254
|
-
const
|
|
1389
|
+
const ys = es.exports, te = (s, e) => {
|
|
1255
1390
|
for (const l of s) {
|
|
1256
1391
|
if (l.value === e)
|
|
1257
1392
|
return l;
|
|
@@ -1262,58 +1397,59 @@ const hs = es.exports, te = (s, e) => {
|
|
|
1262
1397
|
}
|
|
1263
1398
|
}
|
|
1264
1399
|
return null;
|
|
1265
|
-
}, ts = (s) => typeof s == "object" && s !== null && "value" in s && "label" in s,
|
|
1266
|
-
const
|
|
1267
|
-
l.value ?
|
|
1268
|
-
},
|
|
1269
|
-
l.value ?
|
|
1270
|
-
},
|
|
1271
|
-
|
|
1400
|
+
}, ts = (s) => typeof s == "object" && s !== null && "value" in s && "label" in s, hs = (s, e, l, t) => {
|
|
1401
|
+
const o = x([]), a = x(), r = (b) => {
|
|
1402
|
+
l.value ? a.value = b.map(({ value: T }) => T) : a.value = b.length > 0 ? b[0].value : null;
|
|
1403
|
+
}, m = (b) => {
|
|
1404
|
+
l.value ? a.value = b.map(({ value: T, label: _ }) => ({ value: T, label: _ })) : a.value = b.length > 0 ? { value: b[0].value, label: b[0].label } : null;
|
|
1405
|
+
}, A = (b) => {
|
|
1406
|
+
o.value = b, t != null && t.value ? m(b) : r(b);
|
|
1272
1407
|
}, d = () => {
|
|
1273
|
-
|
|
1408
|
+
o.value = [], a.value = null;
|
|
1274
1409
|
};
|
|
1275
|
-
return
|
|
1410
|
+
return X(
|
|
1276
1411
|
() => e.value,
|
|
1277
1412
|
() => {
|
|
1278
1413
|
if (!e.value && e.value !== 0) {
|
|
1279
1414
|
d();
|
|
1280
1415
|
return;
|
|
1281
1416
|
}
|
|
1282
|
-
const b = !Array.isArray(e.value), T = [...
|
|
1417
|
+
const b = !Array.isArray(e.value), T = [...o.value];
|
|
1283
1418
|
d();
|
|
1284
|
-
const
|
|
1419
|
+
const _ = (p) => {
|
|
1285
1420
|
if (ts(p))
|
|
1286
|
-
|
|
1421
|
+
o.value.push(p);
|
|
1287
1422
|
else {
|
|
1288
|
-
let
|
|
1289
|
-
|
|
1423
|
+
let C = te(s.value, p);
|
|
1424
|
+
C || (C = te(T, p)), C || (C = { value: p, label: p.toString() }), o.value.push(C);
|
|
1290
1425
|
}
|
|
1291
1426
|
};
|
|
1292
1427
|
if (b) {
|
|
1293
1428
|
const p = e.value;
|
|
1294
|
-
|
|
1429
|
+
_(p), t != null && t.value ? m(o.value) : r(o.value);
|
|
1295
1430
|
return;
|
|
1296
1431
|
}
|
|
1297
|
-
e.value.forEach(
|
|
1432
|
+
e.value.forEach(_), t != null && t.value ? m(o.value) : r(o.value);
|
|
1298
1433
|
},
|
|
1299
1434
|
{ immediate: !0 }
|
|
1300
1435
|
), {
|
|
1301
1436
|
// Values
|
|
1302
|
-
cachedSelectedListboxOptions:
|
|
1303
|
-
cachedListboxSelectedValues:
|
|
1437
|
+
cachedSelectedListboxOptions: o,
|
|
1438
|
+
cachedListboxSelectedValues: a,
|
|
1304
1439
|
// Methods
|
|
1305
1440
|
resetCache: d,
|
|
1306
|
-
setCachedValues:
|
|
1441
|
+
setCachedValues: A
|
|
1307
1442
|
};
|
|
1308
1443
|
};
|
|
1309
1444
|
export {
|
|
1310
1445
|
c as B,
|
|
1311
|
-
|
|
1312
|
-
|
|
1446
|
+
rt as C,
|
|
1447
|
+
oe as D,
|
|
1313
1448
|
K as a,
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1449
|
+
ys as b,
|
|
1450
|
+
Yt as c,
|
|
1451
|
+
qt as d,
|
|
1452
|
+
Se as e,
|
|
1453
|
+
hs as u
|
|
1318
1454
|
};
|
|
1319
|
-
//# sourceMappingURL=use-cached-selected-values.
|
|
1455
|
+
//# sourceMappingURL=use-cached-selected-values.BJbWbkEQ.js.map
|