@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
|
@@ -0,0 +1,1140 @@
|
|
|
1
|
+
import { ref as w, watch as j, computed as s, defineComponent as D, useSlots as H, toRefs as xe, useAttrs as we, nextTick as O, toRef as T, inject as $e } from "vue";
|
|
2
|
+
import { B as Ce, d as te } from "./typography.C8lPlsbD.js";
|
|
3
|
+
import { g as $ } from "./generate-uid.NJ8tVoha.js";
|
|
4
|
+
import { u as Y } from "./index.B6WW_F-J.js";
|
|
5
|
+
import { u as Le } from "./use-has-slot.C9lQZ6nz.js";
|
|
6
|
+
import { C as Ve } from "./cross-circle-fill.DTDtgLMf.js";
|
|
7
|
+
import { C as Ke } from "./cross-circle-fill-small.DfxDedRr.js";
|
|
8
|
+
import { n as N } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
9
|
+
import { s as V } from "./events.BQOQSSb7.js";
|
|
10
|
+
import { C as qe } from "./chevron-down.eYtgv5ly.js";
|
|
11
|
+
import { C as ze } from "./chevron-up.d8cwIlA_.js";
|
|
12
|
+
/* empty css */
|
|
13
|
+
import { u as Ue } from "./aria-label.CaUURpnB.js";
|
|
14
|
+
import { u as We } from "./form-field.D_2g7vaP.js";
|
|
15
|
+
import { B as m, b as ae, a as _e, d as je, u as He, c as Ye, e as Je } from "./use-cached-selected-values.BJbWbkEQ.js";
|
|
16
|
+
import { u as Xe } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
17
|
+
import { B as k, a as Ze } from "./keyboard-navigation.DWmhelVv.js";
|
|
18
|
+
import { B as Qe } from "./directive.Bfr4fuOy.js";
|
|
19
|
+
import { F as Ge } from "./field-label.DjjjkcO6.js";
|
|
20
|
+
import { E as et } from "./error-message.CyERcfdt.js";
|
|
21
|
+
import { P as he } from "./popper-container.C_n9Ds1W.js";
|
|
22
|
+
import { h as tt } from "./button-actions.Bdbu0bvt.js";
|
|
23
|
+
import "../assets/dropdown.css";
|
|
24
|
+
var K = /* @__PURE__ */ ((l) => (l.DEFAULT = "DropdownInputDefault", l.SMALL = "DropdownInputSmall", l))(K || {});
|
|
25
|
+
const at = {
|
|
26
|
+
"de-DE": {
|
|
27
|
+
apply: "Anwenden",
|
|
28
|
+
cancel: "Abbrechen",
|
|
29
|
+
noOptionsMatchThisSearch: "Für diese Suche wurden keine Ergebnisse gefunden."
|
|
30
|
+
},
|
|
31
|
+
"en-GB": {
|
|
32
|
+
apply: "Apply",
|
|
33
|
+
cancel: "Cancel",
|
|
34
|
+
noOptionsMatchThisSearch: "No options match this search"
|
|
35
|
+
},
|
|
36
|
+
"en-US": {
|
|
37
|
+
apply: "Apply",
|
|
38
|
+
cancel: "Cancel",
|
|
39
|
+
noOptionsMatchThisSearch: "No options match this search"
|
|
40
|
+
},
|
|
41
|
+
"es-ES": {
|
|
42
|
+
apply: "Aplicar",
|
|
43
|
+
cancel: "Cancelar",
|
|
44
|
+
noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda"
|
|
45
|
+
},
|
|
46
|
+
"es-MX": {
|
|
47
|
+
apply: "Aplicar",
|
|
48
|
+
cancel: "Cancelar",
|
|
49
|
+
noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda"
|
|
50
|
+
},
|
|
51
|
+
"fr-FR": {
|
|
52
|
+
apply: "Appliquer",
|
|
53
|
+
cancel: "Annuler",
|
|
54
|
+
noOptionsMatchThisSearch: "Aucune option ne correspond à cette recherche"
|
|
55
|
+
},
|
|
56
|
+
"it-IT": {
|
|
57
|
+
apply: "Applica",
|
|
58
|
+
cancel: "Annulla",
|
|
59
|
+
noOptionsMatchThisSearch: "Nessun risultato corrispondente a questa ricerca"
|
|
60
|
+
},
|
|
61
|
+
"ja-JP": {
|
|
62
|
+
apply: "適用",
|
|
63
|
+
cancel: "キャンセル",
|
|
64
|
+
noOptionsMatchThisSearch: "この検索に一致するオプションはありません"
|
|
65
|
+
},
|
|
66
|
+
"pt-BR": {
|
|
67
|
+
apply: "Aplicar",
|
|
68
|
+
cancel: "Cancelar",
|
|
69
|
+
noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca"
|
|
70
|
+
},
|
|
71
|
+
"zh-CN": {
|
|
72
|
+
apply: "应用",
|
|
73
|
+
cancel: "取消",
|
|
74
|
+
noOptionsMatchThisSearch: "没有符合此搜索条件的选项"
|
|
75
|
+
}
|
|
76
|
+
}, ot = (l, t, a, e) => {
|
|
77
|
+
const o = w(l.value), { t: n } = Y();
|
|
78
|
+
j(l, () => {
|
|
79
|
+
o.value = l.value;
|
|
80
|
+
});
|
|
81
|
+
const r = s(
|
|
82
|
+
() => JSON.stringify(o.value) === JSON.stringify(l.value)
|
|
83
|
+
), d = () => {
|
|
84
|
+
e(m.SELECT, o.value), e(m.CLOSE_DROPDOWN);
|
|
85
|
+
}, c = () => {
|
|
86
|
+
o.value = l.value, e(m.CLOSE_DROPDOWN);
|
|
87
|
+
}, y = () => {
|
|
88
|
+
a.value && t.value && (o.value = l.value);
|
|
89
|
+
}, u = s(() => [
|
|
90
|
+
{
|
|
91
|
+
title: n("apply"),
|
|
92
|
+
event: d,
|
|
93
|
+
disabled: r.value
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
title: n("cancel"),
|
|
97
|
+
event: c
|
|
98
|
+
}
|
|
99
|
+
]), p = (f) => {
|
|
100
|
+
o.value = f, t.value || e(m.SELECT, f);
|
|
101
|
+
}, i = (f) => {
|
|
102
|
+
p(f), e(m.TAB);
|
|
103
|
+
}, x = (f) => {
|
|
104
|
+
p(f), e(m.ENTER);
|
|
105
|
+
}, b = (f) => {
|
|
106
|
+
p(f), e(m.SPACE);
|
|
107
|
+
}, _ = () => {
|
|
108
|
+
c(), e(m.ESCAPE);
|
|
109
|
+
}, C = () => {
|
|
110
|
+
e(m.SHOW_MORE);
|
|
111
|
+
}, L = {
|
|
112
|
+
[m.SELECT]: p,
|
|
113
|
+
[m.SHOW_MORE]: C,
|
|
114
|
+
[m.TAB]: i,
|
|
115
|
+
[m.SPACE]: b,
|
|
116
|
+
[m.ENTER]: x
|
|
117
|
+
};
|
|
118
|
+
return {
|
|
119
|
+
// Values
|
|
120
|
+
actions: u,
|
|
121
|
+
internalSelectedValue: o,
|
|
122
|
+
// Methods
|
|
123
|
+
listeners: L,
|
|
124
|
+
onEscapeKey: _,
|
|
125
|
+
onOutsideDropdownClick: y
|
|
126
|
+
};
|
|
127
|
+
}, lt = D({
|
|
128
|
+
i18n: { messages: at },
|
|
129
|
+
name: "bento-dropdown-options-container"
|
|
130
|
+
}), nt = /* @__PURE__ */ D({
|
|
131
|
+
...lt,
|
|
132
|
+
props: {
|
|
133
|
+
/**
|
|
134
|
+
* Defines a string value that labels an interactive element.
|
|
135
|
+
*/
|
|
136
|
+
ariaLabel: { type: String, default: null },
|
|
137
|
+
/**
|
|
138
|
+
* Indicates that dropdown items are loading
|
|
139
|
+
*/
|
|
140
|
+
componentLoading: { type: Boolean, default: !1 },
|
|
141
|
+
/**
|
|
142
|
+
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
143
|
+
*/
|
|
144
|
+
emptyState: {
|
|
145
|
+
type: Object,
|
|
146
|
+
default: void 0
|
|
147
|
+
},
|
|
148
|
+
/**
|
|
149
|
+
* Disables dropdown functionality
|
|
150
|
+
*/
|
|
151
|
+
disabled: { type: Boolean, default: !1 },
|
|
152
|
+
/**
|
|
153
|
+
* Indicates whether there are more items to load
|
|
154
|
+
*/
|
|
155
|
+
hasMoreItems: { type: Boolean, default: !1 },
|
|
156
|
+
/**
|
|
157
|
+
* Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
|
|
158
|
+
*/
|
|
159
|
+
id: { type: String, required: !0 },
|
|
160
|
+
/**
|
|
161
|
+
* Function that allows the options to be disabled
|
|
162
|
+
*
|
|
163
|
+
* @type {BentoDropdownIsOptionDisabled}
|
|
164
|
+
* @param {BentoDropdownOptionItem} option - Dropdown option object
|
|
165
|
+
* @param {string} option.label - Option's label text
|
|
166
|
+
* @param {string|number} option.value - Option's value
|
|
167
|
+
* @param {unknown} option.data - Option's extra data to be passed to the default slot
|
|
168
|
+
*/
|
|
169
|
+
isOptionDisabled: {
|
|
170
|
+
type: Function,
|
|
171
|
+
default: void 0
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
* The option elements to populate the dropdown with.
|
|
175
|
+
* It must be an array of {@see BentoDropdownOptionItem }
|
|
176
|
+
* * @property {string} value.label - Text to be displayed in the option
|
|
177
|
+
* * @property {string,number} value.value - Value of the option
|
|
178
|
+
*/
|
|
179
|
+
items: {
|
|
180
|
+
type: Array,
|
|
181
|
+
required: !0
|
|
182
|
+
},
|
|
183
|
+
/**
|
|
184
|
+
* The type of `Lazy Load`.
|
|
185
|
+
* Type "automatic" will enable infinite scrolling
|
|
186
|
+
* Type "button" will enable lazy loading with "Show more" button
|
|
187
|
+
*/
|
|
188
|
+
lazyLoadType: {
|
|
189
|
+
type: String,
|
|
190
|
+
default: _e.AUTOMATIC,
|
|
191
|
+
validator: (l) => Object.values(_e).includes(l)
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* Indicates if new options are lazy loading.
|
|
195
|
+
*/
|
|
196
|
+
loading: { type: Boolean, default: !1 },
|
|
197
|
+
/**
|
|
198
|
+
* If enabled, the user will be able to select multiple items.
|
|
199
|
+
*/
|
|
200
|
+
multiple: { type: Boolean, default: !1 },
|
|
201
|
+
/**
|
|
202
|
+
* Indicates if the dropdown is open so that
|
|
203
|
+
* the container can be displayed.
|
|
204
|
+
*/
|
|
205
|
+
open: { type: Boolean, required: !0 },
|
|
206
|
+
/**
|
|
207
|
+
* The `input` value.
|
|
208
|
+
* Providing an empty string or empty array will select no options.
|
|
209
|
+
* Set to an empty string `''` if you don't want any of the available options to be selected for single select
|
|
210
|
+
*/
|
|
211
|
+
selectedValue: {
|
|
212
|
+
type: Array,
|
|
213
|
+
default: null
|
|
214
|
+
},
|
|
215
|
+
/**
|
|
216
|
+
* Flag that indicates that an external search it's being made
|
|
217
|
+
* to filter out the items inside the the multi-select listbox
|
|
218
|
+
*
|
|
219
|
+
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
220
|
+
*/
|
|
221
|
+
searching: ae.props.searching,
|
|
222
|
+
/**
|
|
223
|
+
* If enabled, dropdown will display non-selectable, static categories
|
|
224
|
+
*/
|
|
225
|
+
staticCategories: { type: Boolean, default: !1 },
|
|
226
|
+
/**
|
|
227
|
+
* Reference to the DOM element or Vue component for positioning
|
|
228
|
+
* the Dropdown container.
|
|
229
|
+
*/
|
|
230
|
+
targetElement: { type: he.props.targetElement.type, required: !0 },
|
|
231
|
+
/**
|
|
232
|
+
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
233
|
+
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
234
|
+
*/
|
|
235
|
+
virtualScroll: {
|
|
236
|
+
type: [Boolean, Object],
|
|
237
|
+
default: !1
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
emits: [],
|
|
241
|
+
setup(l, { expose: t, emit: a }) {
|
|
242
|
+
const e = l, o = H(), { selectedValue: n, multiple: r } = xe(e), d = w(null), { t: c } = Y(), y = s(() => e.open && !e.disabled), u = s(() => c("noOptionsMatchThisSearch")), p = s(() => ({
|
|
243
|
+
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
244
|
+
})), i = s(() => ({
|
|
245
|
+
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
246
|
+
})), { actions: x, internalSelectedValue: b, listeners: _, onEscapeKey: C, onOutsideDropdownClick: L } = ot(n, r, y, a), f = s(() => e != null && e.multiple ? tt : he), B = s(() => {
|
|
247
|
+
var A;
|
|
248
|
+
const I = {
|
|
249
|
+
"min-width": `${(A = e == null ? void 0 : e.targetElement) == null ? void 0 : A.clientWidth}px`,
|
|
250
|
+
"max-width": "min(500px, 95%)"
|
|
251
|
+
};
|
|
252
|
+
return e != null && e.multiple ? {
|
|
253
|
+
actionsLayout: "space-between",
|
|
254
|
+
ariaLabel: e.ariaLabel,
|
|
255
|
+
actions: x.value,
|
|
256
|
+
divider: !0,
|
|
257
|
+
fallbackPosition: ["top-start"],
|
|
258
|
+
id: $(`dropdown-options-${e.id}`),
|
|
259
|
+
open: e.open,
|
|
260
|
+
position: "bottom-start",
|
|
261
|
+
style: {
|
|
262
|
+
width: "auto",
|
|
263
|
+
...I
|
|
264
|
+
},
|
|
265
|
+
targetElement: e.targetElement
|
|
266
|
+
} : {
|
|
267
|
+
fallbackPosition: ["top-start"],
|
|
268
|
+
offset: [0, 8],
|
|
269
|
+
position: "bottom-start",
|
|
270
|
+
style: {
|
|
271
|
+
display: y.value ? "block" : "none",
|
|
272
|
+
...I
|
|
273
|
+
},
|
|
274
|
+
targetElement: e.targetElement
|
|
275
|
+
};
|
|
276
|
+
});
|
|
277
|
+
return t({
|
|
278
|
+
onOutsideDropdownClick: L
|
|
279
|
+
}), { __sfc: !0, slots: o, emit: a, props: e, selectedValue: n, multiple: r, dropdownOptionsListboxRef: d, t: c, isDropdownOpen: y, noResultsMessage: u, conditionalClasses: p, conditionalListboxClasses: i, actions: x, internalSelectedValue: b, listeners: _, onEscapeKey: C, onOutsideDropdownClick: L, popperContainerOrPopoverComponent: f, popperContainerOrPopoverProps: B, BentoListbox: ae };
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
var st = function() {
|
|
283
|
+
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
284
|
+
return e.isDropdownOpen ? a(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [a("div", { on: { keydown: function(o) {
|
|
285
|
+
return !o.type.indexOf("key") && t._k(o.keyCode, "esc", 27, o.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
286
|
+
} } }, [a(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(o, n) {
|
|
287
|
+
return { key: n, fn: function(r) {
|
|
288
|
+
return [t._t(n, null, null, r)];
|
|
289
|
+
} };
|
|
290
|
+
})], null, !0) }, e.listeners))], 1)]) : t._e();
|
|
291
|
+
}, rt = [], it = /* @__PURE__ */ N(
|
|
292
|
+
nt,
|
|
293
|
+
st,
|
|
294
|
+
rt,
|
|
295
|
+
!1,
|
|
296
|
+
null,
|
|
297
|
+
"eb9fd4be"
|
|
298
|
+
);
|
|
299
|
+
const dt = it.exports;
|
|
300
|
+
var E = /* @__PURE__ */ ((l) => (l.DISABLED = "disabled", l.READONLY = "readonly", l.HAS_ITEMS = "has-items", l.OPENED = "opened", l.ERROR = "error", l))(E || {}), S = /* @__PURE__ */ ((l) => (l.OPEN = "dropdown-base-open", l.KEYDOWN = "dropdown-base-keydown", l.CLOSE = "dropdown-base-close", l.INPUT = "dropdown-base-input", l.CLEAR = "dropdown-base-clear", l))(S || {});
|
|
301
|
+
const ct = {
|
|
302
|
+
"de-DE": {
|
|
303
|
+
clearSearch: "Suche löschen"
|
|
304
|
+
},
|
|
305
|
+
"en-GB": {
|
|
306
|
+
clearSearch: "Clear search"
|
|
307
|
+
},
|
|
308
|
+
"en-US": {
|
|
309
|
+
clearSearch: "Clear search"
|
|
310
|
+
},
|
|
311
|
+
"es-ES": {
|
|
312
|
+
clearSearch: "Borrar búsqueda"
|
|
313
|
+
},
|
|
314
|
+
"es-MX": {
|
|
315
|
+
clearSearch: "Borrar búsqueda"
|
|
316
|
+
},
|
|
317
|
+
"fr-FR": {
|
|
318
|
+
clearSearch: "Effacer la recherche"
|
|
319
|
+
},
|
|
320
|
+
"it-IT": {
|
|
321
|
+
clearSearch: "Cancella ricerca"
|
|
322
|
+
},
|
|
323
|
+
"ja-JP": {
|
|
324
|
+
clearSearch: "検索をクリア"
|
|
325
|
+
},
|
|
326
|
+
"pt-BR": {
|
|
327
|
+
clearSearch: "Limpar busca"
|
|
328
|
+
},
|
|
329
|
+
"zh-CN": {
|
|
330
|
+
clearSearch: "清除搜索"
|
|
331
|
+
}
|
|
332
|
+
}, ut = D({
|
|
333
|
+
i18n: { messages: ct },
|
|
334
|
+
name: "dropdown-base-textbox",
|
|
335
|
+
inheritAttrs: !1
|
|
336
|
+
}), pt = /* @__PURE__ */ D({
|
|
337
|
+
...ut,
|
|
338
|
+
props: {
|
|
339
|
+
/**
|
|
340
|
+
* The number of additional items that have been selected in the dropdown.
|
|
341
|
+
*/
|
|
342
|
+
additionalItemsSelected: { type: [Number, String], default: 0 },
|
|
343
|
+
/**
|
|
344
|
+
* If the combobox DOM element should be an `input` element.
|
|
345
|
+
*/
|
|
346
|
+
alwaysComboboxIsInput: {
|
|
347
|
+
type: Boolean,
|
|
348
|
+
default: !1
|
|
349
|
+
},
|
|
350
|
+
/**
|
|
351
|
+
* Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
|
|
352
|
+
*/
|
|
353
|
+
ariaControls: { type: String, required: !0 },
|
|
354
|
+
/**
|
|
355
|
+
* Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
|
|
356
|
+
*/
|
|
357
|
+
ariaExpanded: {
|
|
358
|
+
type: [String, Boolean],
|
|
359
|
+
required: !0
|
|
360
|
+
},
|
|
361
|
+
/**
|
|
362
|
+
* If no label element is used then the aria-label is be set should be set.
|
|
363
|
+
*/
|
|
364
|
+
ariaLabel: { type: String, default: null },
|
|
365
|
+
/**
|
|
366
|
+
* Corresponds to the label's id that labels the textbox element.
|
|
367
|
+
*/
|
|
368
|
+
ariaLabelledby: { type: String, default: null },
|
|
369
|
+
/**
|
|
370
|
+
* Disables any textbox functionality
|
|
371
|
+
*/
|
|
372
|
+
disabled: { type: Boolean, default: !1 },
|
|
373
|
+
/**
|
|
374
|
+
* Selected option's label
|
|
375
|
+
*/
|
|
376
|
+
displayValue: { type: String, default: null },
|
|
377
|
+
/**
|
|
378
|
+
* Sets the possibility to type into the textbox.
|
|
379
|
+
*/
|
|
380
|
+
dynamicFiltering: { type: Boolean, default: !1 },
|
|
381
|
+
/**
|
|
382
|
+
* Marks the textbox as invalid, rendering an error state
|
|
383
|
+
*/
|
|
384
|
+
isInvalid: { type: Boolean, default: !1 },
|
|
385
|
+
/*
|
|
386
|
+
* If enabled, the user will be able to select multiple items.
|
|
387
|
+
*/
|
|
388
|
+
multiple: { type: Boolean, default: !1 },
|
|
389
|
+
/**
|
|
390
|
+
* Indicates if the dropdown is open so that
|
|
391
|
+
* the respective event can be emitted
|
|
392
|
+
*/
|
|
393
|
+
open: { type: Boolean, default: !1 },
|
|
394
|
+
/**
|
|
395
|
+
* Sets the dropdown to readonly state
|
|
396
|
+
*/
|
|
397
|
+
readonly: { type: Boolean, default: !1 },
|
|
398
|
+
/**
|
|
399
|
+
* The input value
|
|
400
|
+
*/
|
|
401
|
+
value: { type: String, default: "" },
|
|
402
|
+
/**
|
|
403
|
+
* The selected value's list box item.
|
|
404
|
+
*/
|
|
405
|
+
selectedValueItem: {
|
|
406
|
+
type: [Object, Array],
|
|
407
|
+
default: void 0
|
|
408
|
+
},
|
|
409
|
+
/**
|
|
410
|
+
* Toggles whether to use the slot content select items shown in the textbox in multiple mode.
|
|
411
|
+
*/
|
|
412
|
+
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
413
|
+
/**
|
|
414
|
+
* Dropdown size
|
|
415
|
+
*/
|
|
416
|
+
size: {
|
|
417
|
+
type: String,
|
|
418
|
+
default: null
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
emits: [],
|
|
422
|
+
setup(l, { expose: t, emit: a }) {
|
|
423
|
+
const e = l, { t: o } = Y(), n = we(), r = H(), d = Le(r), c = w(null), y = $("textbox"), u = s(() => ({
|
|
424
|
+
[`b-dropdown-base-textbox--${E.DISABLED}`]: e.disabled,
|
|
425
|
+
[`b-dropdown-base-textbox--${E.READONLY}`]: e.readonly,
|
|
426
|
+
[`b-dropdown-base-textbox--${E.HAS_ITEMS}`]: !!e.additionalItemsSelected
|
|
427
|
+
})), p = s(
|
|
428
|
+
() => C.value && n["aria-required"] ? "true" : null
|
|
429
|
+
), i = s(() => ({
|
|
430
|
+
"b-dropdown-base-textbox__input--dynamic-filtering": e.dynamicFiltering
|
|
431
|
+
})), x = s(() => e.dynamicFiltering && !!e.value && e.open), b = s(
|
|
432
|
+
() => {
|
|
433
|
+
var v;
|
|
434
|
+
return {
|
|
435
|
+
"aria-haspopup": "listbox",
|
|
436
|
+
"aria-controls": e.ariaControls,
|
|
437
|
+
"aria-describedby": (v = n["aria-describedby"]) == null ? void 0 : v.toString(),
|
|
438
|
+
"aria-expanded": e.ariaExpanded ? "true" : "false",
|
|
439
|
+
"aria-labelledby": e.ariaLabelledby,
|
|
440
|
+
"aria-label": e.ariaLabelledby ? null : e.ariaLabel,
|
|
441
|
+
"aria-invalid": e.isInvalid,
|
|
442
|
+
"aria-disabled": e.disabled ? !0 : null,
|
|
443
|
+
"aria-required": n["aria-required"]
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
), _ = s(
|
|
447
|
+
() => e.multiple ? e.selectedValueItem : []
|
|
448
|
+
), C = s(() => e.dynamicFiltering && (e.open || e.alwaysComboboxIsInput)), L = s(() => e.selectedValueItem && !e.multiple), f = s(
|
|
449
|
+
() => e.multiple && e.selectedValueItem && _.value.length > 0 && e.showSlotContentInMultiple
|
|
450
|
+
);
|
|
451
|
+
j(
|
|
452
|
+
() => C.value,
|
|
453
|
+
() => {
|
|
454
|
+
C.value && !e.alwaysComboboxIsInput && O(() => {
|
|
455
|
+
c.value.focus();
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
);
|
|
459
|
+
const B = async () => {
|
|
460
|
+
!e.disabled && !e.readonly && (a(S.OPEN), await O(), c.value.focus());
|
|
461
|
+
}, I = () => {
|
|
462
|
+
e.open && (c.value.focus(), a(S.CLOSE));
|
|
463
|
+
}, A = (v) => e.open && v.target.tagName === "INPUT" ? null : e.open ? I() : B(), M = () => {
|
|
464
|
+
a(S.CLEAR), a(S.INPUT, ""), c.value.focus();
|
|
465
|
+
}, q = (v) => {
|
|
466
|
+
!e.readonly && !e.disabled ? a(S.INPUT, v.target.value) : (v.preventDefault(), v.stopPropagation());
|
|
467
|
+
}, h = () => {
|
|
468
|
+
c.value.focus();
|
|
469
|
+
};
|
|
470
|
+
return t({
|
|
471
|
+
focus: h
|
|
472
|
+
}), { __sfc: !0, t: o, attrs: n, slots: r, hasSlot: d, props: e, emit: a, textbox: c, textboxId: y, conditionalClasses: u, showRequiredAttribute: p, comboboxConditionalClasses: i, isFiltering: x, ariaAttributes: b, selectedValueItems: _, shouldShowInput: C, shouldShowSingleSelectSlot: L, shouldShowMultipleSlot: f, onOpenDropdown: B, onCloseDropdown: I, onToggleDropdown: A, onClearSearch: M, onInputEvent: q, focus: h, BentoTypography: Ce, DropdownBaseTextboxEvent: S, CrossCircleFillIcon: Ve, CrossCircleFillSmallIcon: Ke, BentoDropdownSize: K };
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
var ft = function() {
|
|
476
|
+
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
477
|
+
return a("div", { class: t.$attrs.class, attrs: { "data-testid": "textbox-wrapper" }, on: { click: e.onToggleDropdown, keydown: function(o) {
|
|
478
|
+
return !o.type.indexOf("key") && t._k(o.keyCode, "escape", void 0, o.key, void 0) ? null : e.onCloseDropdown.apply(null, arguments);
|
|
479
|
+
} } }, [a(e.BentoTypography, { staticClass: "b-dropdown-base-textbox", class: e.conditionalClasses, attrs: { el: "div", "data-testid": "base-textbox" } }, [e.shouldShowInput ? a("input", t._b({ ref: "textbox", staticClass: "b-dropdown-base-textbox__input", attrs: { id: e.textboxId, role: "combobox", type: "text", "aria-autocomplete": "list", size: "1", disabled: t.disabled ? !0 : null, readonly: t.readonly, required: e.showRequiredAttribute }, domProps: { value: t.open ? t.value : t.displayValue }, on: { keydown: [function(o) {
|
|
480
|
+
return t.$emit(e.DropdownBaseTextboxEvent.KEYDOWN, o);
|
|
481
|
+
}, function(o) {
|
|
482
|
+
return !o.type.indexOf("key") && t._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : e.onToggleDropdown.apply(null, arguments);
|
|
483
|
+
}], input: e.onInputEvent } }, "input", e.ariaAttributes, !1)) : a("div", t._b({ ref: "textbox", staticClass: "b-dropdown-base-textbox__input", class: e.comboboxConditionalClasses, attrs: { id: e.textboxId, "aria-readonly": t.readonly ? "true" : null, role: "combobox", tabindex: t.disabled ? -1 : 0 } }, "div", e.ariaAttributes, !1), [e.shouldShowSingleSelectSlot ? [e.hasSlot("display-value") ? t._t("display-value", null, null, t.selectedValueItem) : t._t("default", function() {
|
|
484
|
+
return [t._v(" " + t._s(t.displayValue) + " ")];
|
|
485
|
+
}, null, t.selectedValueItem)] : e.shouldShowMultipleSlot ? [a("div", { staticClass: "b-dropdown-base-textbox__input-multiple-selected" }, t._l(e.selectedValueItems, function(o) {
|
|
486
|
+
return a("div", { key: o.value }, [a("div", { staticClass: "b-dropdown-base-textbox__input-selected-element" }, [t._t("default", function() {
|
|
487
|
+
return [t._v(" " + t._s(t.displayValue) + " ")];
|
|
488
|
+
}, null, o)], 2)]);
|
|
489
|
+
}), 0)] : [t._v(t._s(t.displayValue))]], 2), t.additionalItemsSelected ? a("span", { staticClass: "b-dropdown-base-textbox__additional-items" }, [t._v(" " + t._s(t.additionalItemsSelected) + " ")]) : t._e(), e.hasSlot("icon") && !e.isFiltering ? a("span", { staticClass: "b-dropdown-base-textbox__icon", attrs: { "aria-hidden": "true" } }, [t._t("icon")], 2) : t._e(), e.isFiltering ? a("span", { staticClass: "b-dropdown-base-textbox__clear-search", attrs: { tabindex: t.disabled ? -1 : 0, "data-testid": "clear-search-button" }, on: { click: function(o) {
|
|
490
|
+
return o.stopPropagation(), e.onClearSearch.apply(null, arguments);
|
|
491
|
+
}, keydown: function(o) {
|
|
492
|
+
return !o.type.indexOf("key") && t._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : (o.stopPropagation(), e.onClearSearch.apply(null, arguments));
|
|
493
|
+
}, keyup: function(o) {
|
|
494
|
+
return !o.type.indexOf("key") && t._k(o.keyCode, "space", 32, o.key, [" ", "Spacebar"]) ? null : e.onClearSearch.apply(null, arguments);
|
|
495
|
+
} } }, [t.size === e.BentoDropdownSize.SMALL ? a(e.CrossCircleFillSmallIcon, { attrs: { "svg-title": e.t("clearSearch") } }) : a(e.CrossCircleFillIcon, { attrs: { "svg-title": e.t("clearSearch") } })], 1) : t._e()])], 1);
|
|
496
|
+
}, bt = [], yt = /* @__PURE__ */ N(
|
|
497
|
+
pt,
|
|
498
|
+
ft,
|
|
499
|
+
bt,
|
|
500
|
+
!1,
|
|
501
|
+
null,
|
|
502
|
+
"36875648"
|
|
503
|
+
);
|
|
504
|
+
const Oe = yt.exports, vt = D({
|
|
505
|
+
name: "dropdown-default-textbox",
|
|
506
|
+
inheritAttrs: !1
|
|
507
|
+
}), mt = /* @__PURE__ */ D({
|
|
508
|
+
...vt,
|
|
509
|
+
props: {
|
|
510
|
+
/**
|
|
511
|
+
* The number of additional items that have been selected in the dropdown.
|
|
512
|
+
*/
|
|
513
|
+
additionalItemsSelected: { type: [Number, String], default: 0 },
|
|
514
|
+
/**
|
|
515
|
+
* Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
|
|
516
|
+
*/
|
|
517
|
+
ariaControls: {
|
|
518
|
+
type: String,
|
|
519
|
+
required: !0
|
|
520
|
+
},
|
|
521
|
+
/**
|
|
522
|
+
* Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
|
|
523
|
+
*/
|
|
524
|
+
ariaExpanded: {
|
|
525
|
+
type: [String, Boolean],
|
|
526
|
+
required: !0
|
|
527
|
+
},
|
|
528
|
+
/**
|
|
529
|
+
* If no label element is used then the aria-label is be set should be set.
|
|
530
|
+
*/
|
|
531
|
+
ariaLabel: {
|
|
532
|
+
type: String,
|
|
533
|
+
default: null
|
|
534
|
+
},
|
|
535
|
+
/**
|
|
536
|
+
* Corresponds to the label's id that labels the textbox element.
|
|
537
|
+
*/
|
|
538
|
+
ariaLabelledby: {
|
|
539
|
+
type: String,
|
|
540
|
+
default: null
|
|
541
|
+
},
|
|
542
|
+
/**
|
|
543
|
+
* Renders the dropdown with a condensed style.
|
|
544
|
+
*/
|
|
545
|
+
condensed: { type: Boolean, default: !1 },
|
|
546
|
+
/**
|
|
547
|
+
* Disables any textbox functionality
|
|
548
|
+
*/
|
|
549
|
+
disabled: { type: Boolean, default: !1 },
|
|
550
|
+
/**
|
|
551
|
+
* Selected option's label
|
|
552
|
+
*/
|
|
553
|
+
displayValue: { type: String, default: null },
|
|
554
|
+
/**
|
|
555
|
+
* Sets the possibility to type into the textbox
|
|
556
|
+
*/
|
|
557
|
+
dynamicFiltering: {
|
|
558
|
+
type: Boolean,
|
|
559
|
+
default: !1
|
|
560
|
+
},
|
|
561
|
+
/**
|
|
562
|
+
* Marks the textbox as invalid, rendering an error state
|
|
563
|
+
*/
|
|
564
|
+
isInvalid: { type: Boolean, default: !1 },
|
|
565
|
+
/**
|
|
566
|
+
* Indicates if the dropdown is open so that
|
|
567
|
+
* the respective event can be emitted
|
|
568
|
+
*/
|
|
569
|
+
open: { type: Boolean, default: !1 },
|
|
570
|
+
/**
|
|
571
|
+
* Sets the dropdown to readonly state
|
|
572
|
+
*/
|
|
573
|
+
readonly: { type: Boolean, default: !1 },
|
|
574
|
+
/**
|
|
575
|
+
* The selected value's list box item.
|
|
576
|
+
*/
|
|
577
|
+
selectedValueItem: {
|
|
578
|
+
type: [Object, Array],
|
|
579
|
+
default: void 0
|
|
580
|
+
},
|
|
581
|
+
/**
|
|
582
|
+
* Toggles whether to use the slot content select items shown in the textbox in multiple mode.
|
|
583
|
+
*/
|
|
584
|
+
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
585
|
+
/**
|
|
586
|
+
* The input value
|
|
587
|
+
*/
|
|
588
|
+
value: { type: String, default: "" },
|
|
589
|
+
/*
|
|
590
|
+
* If enabled, the user will be able to select multiple items.
|
|
591
|
+
*/
|
|
592
|
+
multiple: { type: Boolean, default: !1 }
|
|
593
|
+
},
|
|
594
|
+
emits: ["clear", "close", "input", "keydown", "open"],
|
|
595
|
+
setup(l, { expose: t, emit: a }) {
|
|
596
|
+
const e = l, o = H(), n = w(null), r = s(() => ({
|
|
597
|
+
[`b-dropdown-default-textbox--${E.ERROR}`]: !e.disabled && !e.readonly && e.isInvalid,
|
|
598
|
+
[`b-dropdown-default-textbox--${E.DISABLED}`]: e.disabled,
|
|
599
|
+
[`b-dropdown-default-textbox--${E.READONLY}`]: e.readonly,
|
|
600
|
+
[`b-dropdown-default-textbox--${E.OPENED}`]: e.open,
|
|
601
|
+
"b-dropdown-default-textbox--condensed": e.condensed
|
|
602
|
+
})), d = s(() => e.open && !e.disabled && !e.readonly), c = (_) => {
|
|
603
|
+
a("input", _);
|
|
604
|
+
}, y = (_) => {
|
|
605
|
+
a("keydown", _);
|
|
606
|
+
}, u = (_) => {
|
|
607
|
+
V(_), a("open");
|
|
608
|
+
}, p = (_) => {
|
|
609
|
+
V(_), a("close");
|
|
610
|
+
}, i = (_) => {
|
|
611
|
+
V(_), a("clear");
|
|
612
|
+
}, x = {
|
|
613
|
+
[S.INPUT]: c,
|
|
614
|
+
[S.OPEN]: u,
|
|
615
|
+
[S.CLOSE]: p,
|
|
616
|
+
[S.CLEAR]: i,
|
|
617
|
+
[S.KEYDOWN]: y
|
|
618
|
+
}, b = () => {
|
|
619
|
+
n.value.focus();
|
|
620
|
+
};
|
|
621
|
+
return t({
|
|
622
|
+
focus: b
|
|
623
|
+
}), { __sfc: !0, emit: a, slots: o, props: e, baseTextbox: n, conditionalClasses: r, isDropdownOpen: d, onInput: c, onKeyDown: y, openDropdown: u, closeDropdown: p, clearValue: i, listeners: x, focus: b, DropdownBaseTextbox: Oe, ChevronDownIcon: qe, ChevronUpIcon: ze };
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
var _t = function() {
|
|
627
|
+
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
628
|
+
return a("div", { staticClass: "b-dropdown-default-textbox", class: e.conditionalClasses, attrs: { "data-testid": "default-textbox" } }, [a(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-default-textbox__textbox", attrs: { value: t.value }, scopedSlots: t._u([t._l(e.slots, function(o, n) {
|
|
629
|
+
return { key: n, fn: function(r) {
|
|
630
|
+
return [t._t(n, null, null, r ?? {})];
|
|
631
|
+
} };
|
|
632
|
+
}), { key: "icon", fn: function() {
|
|
633
|
+
return [a("div", { staticClass: "b-dropdown-default-textbox__chevron" }, [a(e.ChevronUpIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), a(e.ChevronDownIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
634
|
+
}, proxy: !0 }], null, !0) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
635
|
+
}, ht = [], gt = /* @__PURE__ */ N(
|
|
636
|
+
mt,
|
|
637
|
+
_t,
|
|
638
|
+
ht,
|
|
639
|
+
!1,
|
|
640
|
+
null,
|
|
641
|
+
"bf2d43b0"
|
|
642
|
+
);
|
|
643
|
+
const St = gt.exports;
|
|
644
|
+
let ge = 0;
|
|
645
|
+
const xt = {
|
|
646
|
+
beforeCreate() {
|
|
647
|
+
this.uuid = ge.toString(), ge += 1;
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
var wt = function() {
|
|
651
|
+
var t = this, a = t._self._c;
|
|
652
|
+
return a("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? a("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), a("path", { attrs: { fill: "#001222", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
|
|
653
|
+
}, Ct = [], Lt = /* @__PURE__ */ N(
|
|
654
|
+
xt,
|
|
655
|
+
wt,
|
|
656
|
+
Ct,
|
|
657
|
+
!1,
|
|
658
|
+
null,
|
|
659
|
+
null
|
|
660
|
+
);
|
|
661
|
+
const Ot = Lt.exports;
|
|
662
|
+
let Se = 0;
|
|
663
|
+
const Et = {
|
|
664
|
+
beforeCreate() {
|
|
665
|
+
this.uuid = Se.toString(), Se += 1;
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
var It = function() {
|
|
669
|
+
var t = this, a = t._self._c;
|
|
670
|
+
return a("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? a("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), a("path", { attrs: { fill: "#001222", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
|
|
671
|
+
}, Dt = [], Bt = /* @__PURE__ */ N(
|
|
672
|
+
Et,
|
|
673
|
+
It,
|
|
674
|
+
Dt,
|
|
675
|
+
!1,
|
|
676
|
+
null,
|
|
677
|
+
null
|
|
678
|
+
);
|
|
679
|
+
const At = Bt.exports, Tt = D({
|
|
680
|
+
name: "dropdown-small-textbox",
|
|
681
|
+
inheritAttrs: !1
|
|
682
|
+
}), kt = /* @__PURE__ */ D({
|
|
683
|
+
...Tt,
|
|
684
|
+
props: {
|
|
685
|
+
/**
|
|
686
|
+
* The number of additional items that have been selected in the dropdown.
|
|
687
|
+
*/
|
|
688
|
+
additionalItemsSelected: { type: [Number, String], default: 0 },
|
|
689
|
+
/**
|
|
690
|
+
* Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
|
|
691
|
+
*/
|
|
692
|
+
ariaControls: { type: String, required: !0 },
|
|
693
|
+
/**
|
|
694
|
+
* Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
|
|
695
|
+
*/
|
|
696
|
+
ariaExpanded: {
|
|
697
|
+
type: [String, Boolean],
|
|
698
|
+
required: !0
|
|
699
|
+
},
|
|
700
|
+
/**
|
|
701
|
+
* If no label element is used then the aria-label is be set should be set.
|
|
702
|
+
*/
|
|
703
|
+
ariaLabel: { type: String, default: null },
|
|
704
|
+
/**
|
|
705
|
+
* Corresponds to the label's id that labels the textbox element.
|
|
706
|
+
*/
|
|
707
|
+
ariaLabelledby: { type: String, default: null },
|
|
708
|
+
/**
|
|
709
|
+
* Disables any textbox functionality
|
|
710
|
+
*/
|
|
711
|
+
disabled: { type: Boolean, default: !1 },
|
|
712
|
+
/**
|
|
713
|
+
* Selected option's label
|
|
714
|
+
*/
|
|
715
|
+
displayValue: { type: String, default: null },
|
|
716
|
+
/**
|
|
717
|
+
* Sets the possibility to type into the textbox
|
|
718
|
+
*/
|
|
719
|
+
dynamicFiltering: { type: Boolean, default: !1 },
|
|
720
|
+
/**
|
|
721
|
+
* Marks the textbox as invalid, rendering an error state
|
|
722
|
+
*/
|
|
723
|
+
isInvalid: { type: Boolean, default: !1 },
|
|
724
|
+
/**
|
|
725
|
+
* Indicates if the dropdown is open so that
|
|
726
|
+
* the respective event can be emitted
|
|
727
|
+
*/
|
|
728
|
+
open: { type: Boolean, default: !1 },
|
|
729
|
+
/**
|
|
730
|
+
* Sets the dropdown to readonly state
|
|
731
|
+
*/
|
|
732
|
+
readonly: { type: Boolean, default: !1 },
|
|
733
|
+
/**
|
|
734
|
+
* The input value
|
|
735
|
+
*/
|
|
736
|
+
value: { type: String, default: "" }
|
|
737
|
+
},
|
|
738
|
+
emits: ["clear", "close", "input", "keydown", "open"],
|
|
739
|
+
setup(l, { expose: t, emit: a }) {
|
|
740
|
+
const e = l, o = w(null), n = s(() => ({
|
|
741
|
+
[`b-dropdown-small-textbox--${E.DISABLED}`]: e.disabled,
|
|
742
|
+
[`b-dropdown-small-textbox--${E.READONLY}`]: e.readonly,
|
|
743
|
+
[`b-dropdown-small-textbox--${E.OPENED}`]: e.open
|
|
744
|
+
})), r = s(() => e.open && !e.disabled && !e.readonly), d = (b) => {
|
|
745
|
+
a("input", b);
|
|
746
|
+
}, c = (b) => {
|
|
747
|
+
a("keydown", b);
|
|
748
|
+
}, y = (b) => {
|
|
749
|
+
V(b), a("open");
|
|
750
|
+
}, u = (b) => {
|
|
751
|
+
V(b), a("close");
|
|
752
|
+
}, p = (b) => {
|
|
753
|
+
V(b), a("clear");
|
|
754
|
+
}, i = {
|
|
755
|
+
[S.INPUT]: d,
|
|
756
|
+
[S.OPEN]: y,
|
|
757
|
+
[S.CLOSE]: u,
|
|
758
|
+
[S.CLEAR]: p,
|
|
759
|
+
[S.KEYDOWN]: c
|
|
760
|
+
}, x = () => {
|
|
761
|
+
o.value.focus();
|
|
762
|
+
};
|
|
763
|
+
return t({
|
|
764
|
+
focus: x
|
|
765
|
+
}), { __sfc: !0, emit: a, props: e, baseTextbox: o, conditionalClasses: n, isDropdownOpen: r, onInput: d, onKeyDown: c, openDropdown: y, closeDropdown: u, clearValue: p, listeners: i, focus: x, BentoDropdownSize: K, DropdownBaseTextbox: Oe, ChevronDownSmallIcon: Ot, ChevronUpSmallIcon: At };
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
var Nt = function() {
|
|
769
|
+
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
770
|
+
return a("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [a(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
|
|
771
|
+
return [a("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [a(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), a(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
772
|
+
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
773
|
+
}, Mt = [], Rt = /* @__PURE__ */ N(
|
|
774
|
+
kt,
|
|
775
|
+
Nt,
|
|
776
|
+
Mt,
|
|
777
|
+
!1,
|
|
778
|
+
null,
|
|
779
|
+
"faba160c"
|
|
780
|
+
);
|
|
781
|
+
const Ft = Rt.exports, Pt = (l, t) => t.value.reduce((a, e) => {
|
|
782
|
+
if (e.items) {
|
|
783
|
+
const o = e.items.filter(
|
|
784
|
+
(r) => l.value.find((d) => d.value === r.value)
|
|
785
|
+
);
|
|
786
|
+
o.length === e.items.length ? a.push(e.displayValue ?? e.label) : o.forEach(({ label: r, displayValue: d }) => a.push(d ?? r));
|
|
787
|
+
}
|
|
788
|
+
return l.value.find((o) => o.value === e.value) && a.push(e.displayValue ?? e.label), a;
|
|
789
|
+
}, []).join(", "), $t = ({ items: l, placeholder: t, selectedValues: a, isMultiSelect: e }) => {
|
|
790
|
+
const o = s(
|
|
791
|
+
() => e.value && l.value.find((r) => {
|
|
792
|
+
var d;
|
|
793
|
+
return (d = r.items) == null ? void 0 : d.length;
|
|
794
|
+
})
|
|
795
|
+
);
|
|
796
|
+
return s(() => a.value.length ? o.value ? Pt(a, l) : a.value.map(({ label: r, displayValue: d }) => d ?? r).join(", ") : t.value || null);
|
|
797
|
+
}, Ee = (l) => {
|
|
798
|
+
var t;
|
|
799
|
+
(t = l.value.$children) == null || t[0].$refs.textbox.focus();
|
|
800
|
+
}, Vt = ({
|
|
801
|
+
inputContainerRef: l,
|
|
802
|
+
optionsContainerRef: t,
|
|
803
|
+
selectedValueIndex: a,
|
|
804
|
+
isDropdownOpen: e,
|
|
805
|
+
isDynamicFltering: o,
|
|
806
|
+
items: n,
|
|
807
|
+
isMultiple: r
|
|
808
|
+
}, d, c, y) => {
|
|
809
|
+
const u = async (h) => {
|
|
810
|
+
var v;
|
|
811
|
+
o.value && await O(), (v = n.value[h]) == null || v.focus();
|
|
812
|
+
}, p = async (h) => {
|
|
813
|
+
var R, U;
|
|
814
|
+
o.value && await O();
|
|
815
|
+
const v = (R = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : R.$el.querySelectorAll(
|
|
816
|
+
"button"
|
|
817
|
+
);
|
|
818
|
+
v != null && v.length ? (U = v[h]) == null || U.focus() : u(h);
|
|
819
|
+
}, i = (h) => {
|
|
820
|
+
var v;
|
|
821
|
+
return (v = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : v.setListboxFocusedIndex(
|
|
822
|
+
h
|
|
823
|
+
);
|
|
824
|
+
}, x = () => {
|
|
825
|
+
e.value || c(), O(() => {
|
|
826
|
+
i(0), u(0);
|
|
827
|
+
});
|
|
828
|
+
}, b = () => {
|
|
829
|
+
e.value || c(), O(() => {
|
|
830
|
+
i(n.value.length - 1), u(n.value.length - 1);
|
|
831
|
+
});
|
|
832
|
+
}, _ = ({ detail: h }) => {
|
|
833
|
+
h.preventDefault(), x();
|
|
834
|
+
}, C = ({ detail: h }) => {
|
|
835
|
+
h.preventDefault(), b();
|
|
836
|
+
}, L = () => {
|
|
837
|
+
x();
|
|
838
|
+
}, f = () => {
|
|
839
|
+
b();
|
|
840
|
+
}, B = ({ detail: h }) => {
|
|
841
|
+
h.preventDefault(), d(), e.value && O(() => {
|
|
842
|
+
r ? p(0) : (i(a.value), u(a.value));
|
|
843
|
+
});
|
|
844
|
+
}, I = ({ detail: h }) => {
|
|
845
|
+
h.preventDefault(), d(), e.value && O(() => {
|
|
846
|
+
r ? p(0) : (i(a.value), u(a.value));
|
|
847
|
+
});
|
|
848
|
+
}, A = () => {
|
|
849
|
+
e.value && y();
|
|
850
|
+
}, M = () => {
|
|
851
|
+
e.value && (y(), Ee(l));
|
|
852
|
+
};
|
|
853
|
+
return s(() => ({
|
|
854
|
+
[k.ARROW_DOWN]: _,
|
|
855
|
+
[k.ARROW_UP]: C,
|
|
856
|
+
[k.HOME]: L,
|
|
857
|
+
[k.END]: f,
|
|
858
|
+
...o.value ? {} : { [k.SPACE]: B },
|
|
859
|
+
[k.ENTER]: I,
|
|
860
|
+
...o.value ? {} : { [k.TAB]: A },
|
|
861
|
+
[k.ESCAPE]: M
|
|
862
|
+
}));
|
|
863
|
+
}, Kt = ({ inputContainerRef: l, isDropdownOpen: t }, a) => {
|
|
864
|
+
const e = () => {
|
|
865
|
+
t.value && a(), O(() => {
|
|
866
|
+
Ee(l);
|
|
867
|
+
});
|
|
868
|
+
};
|
|
869
|
+
return {
|
|
870
|
+
[m.ENTER]: e,
|
|
871
|
+
[m.ESCAPE]: e,
|
|
872
|
+
[m.TAB]: e,
|
|
873
|
+
[m.SPACE]: e
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
function qt(l, t, a, e, o) {
|
|
877
|
+
const n = w(l), r = w(t), d = (u, p = []) => p.flatMap((i) => i.label.toLocaleLowerCase().includes(u) ? e != null && e.value && i.items ? [...d(u, i.items)] : [i, ...d(u, i.items)] : i.items ? [...d(u, i.items)] : []), c = a !== void 0 ? je(() => a(n.value), o ?? 300) : void 0;
|
|
878
|
+
return j(n, () => {
|
|
879
|
+
c !== void 0 && c();
|
|
880
|
+
}), s(() => {
|
|
881
|
+
if (!n.value || a !== void 0)
|
|
882
|
+
return r.value;
|
|
883
|
+
const u = n.value.toLocaleLowerCase();
|
|
884
|
+
return d(u, r.value);
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
const zt = {
|
|
888
|
+
"de-DE": {
|
|
889
|
+
all: "Alle",
|
|
890
|
+
ariaLabelFallback: "Dropdown",
|
|
891
|
+
clearSearch: "Filter löschen"
|
|
892
|
+
},
|
|
893
|
+
"en-GB": {
|
|
894
|
+
all: "All",
|
|
895
|
+
ariaLabelFallback: "Dropdown",
|
|
896
|
+
clearSearch: "Clear filter"
|
|
897
|
+
},
|
|
898
|
+
"en-US": {
|
|
899
|
+
all: "All",
|
|
900
|
+
ariaLabelFallback: "Dropdown",
|
|
901
|
+
clearSearch: "Clear filter"
|
|
902
|
+
},
|
|
903
|
+
"es-ES": {
|
|
904
|
+
all: "Todos",
|
|
905
|
+
ariaLabelFallback: "Menú desplegable",
|
|
906
|
+
clearSearch: "Limpiar filtro"
|
|
907
|
+
},
|
|
908
|
+
"es-MX": {
|
|
909
|
+
all: "Todos",
|
|
910
|
+
ariaLabelFallback: "Menú desplegable",
|
|
911
|
+
clearSearch: "Limpiar filtro"
|
|
912
|
+
},
|
|
913
|
+
"fr-FR": {
|
|
914
|
+
all: "Tous",
|
|
915
|
+
ariaLabelFallback: "Menu déroulant",
|
|
916
|
+
clearSearch: "Effacer le filtre"
|
|
917
|
+
},
|
|
918
|
+
"it-IT": {
|
|
919
|
+
all: "Tutti",
|
|
920
|
+
ariaLabelFallback: "Menu a discesa",
|
|
921
|
+
clearSearch: "Cancella filtro"
|
|
922
|
+
},
|
|
923
|
+
"ja-JP": {
|
|
924
|
+
all: "すべて",
|
|
925
|
+
ariaLabelFallback: "ドロップダウン",
|
|
926
|
+
clearSearch: "フィルターをクリア"
|
|
927
|
+
},
|
|
928
|
+
"pt-BR": {
|
|
929
|
+
all: "Todos",
|
|
930
|
+
ariaLabelFallback: "Menu suspenso",
|
|
931
|
+
clearSearch: "Limpar filtro"
|
|
932
|
+
},
|
|
933
|
+
"zh-CN": {
|
|
934
|
+
all: "全部",
|
|
935
|
+
ariaLabelFallback: "下拉菜单",
|
|
936
|
+
clearSearch: "清除筛选器"
|
|
937
|
+
}
|
|
938
|
+
}, Ut = /* @__PURE__ */ Symbol("input field component injection key"), _a = /* @__PURE__ */ Symbol("input field hint injection key"), ha = /* @__PURE__ */ Symbol("input field parent component injection key"), Wt = D({
|
|
939
|
+
i18n: { messages: zt },
|
|
940
|
+
name: "b-dropdown",
|
|
941
|
+
components: {
|
|
942
|
+
DropdownInputDefault: St,
|
|
943
|
+
DropdownInputSmall: Ft
|
|
944
|
+
},
|
|
945
|
+
model: { prop: "modelValue" }
|
|
946
|
+
}), jt = /* @__PURE__ */ D({
|
|
947
|
+
...Wt,
|
|
948
|
+
props: {
|
|
949
|
+
description: { default: null },
|
|
950
|
+
disabled: { type: Boolean, default: !1 },
|
|
951
|
+
errorMessage: { default: null },
|
|
952
|
+
label: { default: null },
|
|
953
|
+
optional: { type: Boolean, default: !1 },
|
|
954
|
+
placeholder: { default: null },
|
|
955
|
+
readonly: { type: Boolean, default: !1 },
|
|
956
|
+
required: { type: Boolean, default: !1 },
|
|
957
|
+
tooltipText: { default: null },
|
|
958
|
+
ariaLabel: { default: null },
|
|
959
|
+
condensed: { type: Boolean, default: !1 },
|
|
960
|
+
emptyState: { default: void 0 },
|
|
961
|
+
dynamicFiltering: { type: Boolean, default: !1 },
|
|
962
|
+
error: { type: Boolean, default: !1 },
|
|
963
|
+
hasMoreItems: { type: Boolean, default: !1 },
|
|
964
|
+
isOptionDisabled: { type: Function, default: void 0 },
|
|
965
|
+
items: { default: () => [] },
|
|
966
|
+
loading: { type: Boolean, default: !1 },
|
|
967
|
+
componentLoading: { type: Boolean, default: !1 },
|
|
968
|
+
lazyLoadType: { default: ae.props.lazyLoadType.default },
|
|
969
|
+
multiple: { type: Boolean, default: !1 },
|
|
970
|
+
search: { default: void 0 },
|
|
971
|
+
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
972
|
+
size: { default: null },
|
|
973
|
+
staticCategories: { type: Boolean, default: !1 },
|
|
974
|
+
value: { default: null },
|
|
975
|
+
modelValue: { default: null },
|
|
976
|
+
virtualScroll: { type: Boolean, default: !1 },
|
|
977
|
+
enableValueLabelPair: { type: Boolean, default: !1 }
|
|
978
|
+
},
|
|
979
|
+
emits: ["input", "update:model-value", "show-more", "open"],
|
|
980
|
+
setup(l, { expose: t, emit: a }) {
|
|
981
|
+
var ve, me;
|
|
982
|
+
const e = l, o = we(), n = H(), r = Le(n), { t: d } = Y(), { emitValue: c } = We(a), y = w(null), u = w(null), p = w(null), i = w(!1), x = $("bento-dropdown-options-container"), b = $("dropdown-label"), _ = $("dropdown-description"), C = $("dropdown-error"), { isReadOnly: L } = Xe(T(e, "readonly")), f = s(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: B, cachedListboxSelectedValues: I, setCachedValues: A } = He(
|
|
983
|
+
T(e, "items"),
|
|
984
|
+
f,
|
|
985
|
+
T(e, "multiple"),
|
|
986
|
+
T(e, "enableValueLabelPair")
|
|
987
|
+
), M = w(o["aria-label"]), q = w(o["aria-describedby"]), { ariaLabel: h, label: v } = xe(e), R = s(() => d("ariaLabelFallback")), U = Ue({
|
|
988
|
+
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
989
|
+
ariaLabel: h.value || M,
|
|
990
|
+
label: v,
|
|
991
|
+
defaultFallback: R
|
|
992
|
+
}), oe = e.size === K.SMALL || $e(Ut, !1), Ie = s(() => oe ? K.SMALL : K.DEFAULT), De = s(() => ({
|
|
993
|
+
"b-dropdown--condensed": e.condensed
|
|
994
|
+
})), Be = s(() => ({
|
|
995
|
+
"b-dropdown__description--error": !!e.errorMessage
|
|
996
|
+
})), F = w(""), z = T(e, "items"), le = T(e, "staticCategories"), J = qt(
|
|
997
|
+
F,
|
|
998
|
+
z,
|
|
999
|
+
(ve = e == null ? void 0 : e.search) == null ? void 0 : ve.searchEvent,
|
|
1000
|
+
le,
|
|
1001
|
+
(me = e == null ? void 0 : e.search) == null ? void 0 : me.debounceTime
|
|
1002
|
+
), X = s(() => e.dynamicFiltering && !!F.value), Ae = $t({
|
|
1003
|
+
items: z,
|
|
1004
|
+
placeholder: T(e, "placeholder"),
|
|
1005
|
+
isMultiSelect: T(e, "multiple"),
|
|
1006
|
+
selectedValues: B
|
|
1007
|
+
}), Te = s(() => {
|
|
1008
|
+
if (e != null && e.multiple && Array.isArray(f.value))
|
|
1009
|
+
return e.items.filter(
|
|
1010
|
+
({ value: g }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(g)
|
|
1011
|
+
);
|
|
1012
|
+
if (!e.multiple && e.staticCategories) {
|
|
1013
|
+
const g = e.items.find(
|
|
1014
|
+
(ee) => ee.items.some((Pe) => Pe.value === f.value)
|
|
1015
|
+
);
|
|
1016
|
+
return g ? g.items.find((ee) => ee.value === f.value) : null;
|
|
1017
|
+
}
|
|
1018
|
+
return e.items.find(({ value: g }) => g === f.value);
|
|
1019
|
+
}), ne = s(() => {
|
|
1020
|
+
const g = J.value.findIndex(({ value: P }) => e.enableValueLabelPair ? f.value.value === P : f.value === P);
|
|
1021
|
+
return g > -1 ? g : 0;
|
|
1022
|
+
}), { isMultiLevelSelect: Z, flattenedItemsList: se } = Ye(z), re = s(() => Z.value && !e.staticCategories), ie = s(() => re.value ? "treeitem" : "option"), ke = s(() => {
|
|
1023
|
+
if (e.multiple) {
|
|
1024
|
+
const g = Array.isArray(f.value) ? f.value.length : 0, P = Z.value ? se.value.length : z.value.length;
|
|
1025
|
+
return g === 0 ? null : !e.hasMoreItems && P > 0 && P === g ? d("all") : g;
|
|
1026
|
+
}
|
|
1027
|
+
return null;
|
|
1028
|
+
}), Ne = s(
|
|
1029
|
+
() => [
|
|
1030
|
+
e.description ? _ : null,
|
|
1031
|
+
q.value,
|
|
1032
|
+
e.errorMessage ? C : null
|
|
1033
|
+
].filter(Boolean).join(" ") || null
|
|
1034
|
+
), de = s(() => {
|
|
1035
|
+
var g;
|
|
1036
|
+
return (g = p.value) == null ? void 0 : g.$el;
|
|
1037
|
+
}), { visibleDomOptions: ce, updateVisibleDomOptions: Q } = Je(
|
|
1038
|
+
de,
|
|
1039
|
+
J,
|
|
1040
|
+
ie
|
|
1041
|
+
), ue = () => {
|
|
1042
|
+
L.value || (i.value = !0, O(() => {
|
|
1043
|
+
Q();
|
|
1044
|
+
}));
|
|
1045
|
+
}, W = () => {
|
|
1046
|
+
i.value = !1;
|
|
1047
|
+
}, pe = () => {
|
|
1048
|
+
L.value || (i.value = !i.value, O(() => {
|
|
1049
|
+
Q();
|
|
1050
|
+
}), X.value && (F.value = ""));
|
|
1051
|
+
}, Me = () => {
|
|
1052
|
+
X.value && (F.value = ""), i.value && (i.value = !1, p.value.onOutsideDropdownClick());
|
|
1053
|
+
}, fe = async (g) => {
|
|
1054
|
+
e.multiple || (F.value = "", i.value = !1), A(g), c(I.value), e.multiple || (await O(), G());
|
|
1055
|
+
}, be = () => {
|
|
1056
|
+
a(m.SHOW_MORE);
|
|
1057
|
+
}, Re = Vt(
|
|
1058
|
+
{
|
|
1059
|
+
inputContainerRef: y,
|
|
1060
|
+
optionsContainerRef: p,
|
|
1061
|
+
selectedValueIndex: ne,
|
|
1062
|
+
isDropdownOpen: i,
|
|
1063
|
+
isDynamicFltering: T(e, "dynamicFiltering"),
|
|
1064
|
+
items: ce,
|
|
1065
|
+
isMultiple: e.multiple
|
|
1066
|
+
},
|
|
1067
|
+
pe,
|
|
1068
|
+
ue,
|
|
1069
|
+
W
|
|
1070
|
+
), ye = Kt(
|
|
1071
|
+
{
|
|
1072
|
+
inputContainerRef: y,
|
|
1073
|
+
isDropdownOpen: i
|
|
1074
|
+
},
|
|
1075
|
+
W
|
|
1076
|
+
), Fe = {
|
|
1077
|
+
[m.CLOSE_DROPDOWN]: W,
|
|
1078
|
+
[m.SELECT]: fe,
|
|
1079
|
+
[m.SHOW_MORE]: be,
|
|
1080
|
+
...ye
|
|
1081
|
+
};
|
|
1082
|
+
e.error && te(
|
|
1083
|
+
'BentoDropdown "error" property',
|
|
1084
|
+
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
1085
|
+
Having the field as "undefined" will hide/remove the error.
|
|
1086
|
+
<bento-dropdown errorMessage="Error message text" />`,
|
|
1087
|
+
"2.0.0"
|
|
1088
|
+
), e.size && te('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), e.value && te(
|
|
1089
|
+
'BentoDropdown "value" property',
|
|
1090
|
+
`The use of "value" prop in "BentoDropdown" is no longer supported.
|
|
1091
|
+
Use the "v-model" or "model-value" property instead.`,
|
|
1092
|
+
"2.0.0"
|
|
1093
|
+
);
|
|
1094
|
+
const G = () => {
|
|
1095
|
+
y.value.focus();
|
|
1096
|
+
};
|
|
1097
|
+
return j(
|
|
1098
|
+
() => i.value,
|
|
1099
|
+
(g) => {
|
|
1100
|
+
g && a("open");
|
|
1101
|
+
}
|
|
1102
|
+
), t({
|
|
1103
|
+
focus: G
|
|
1104
|
+
}), { __sfc: !0, attrs: o, slots: n, hasSlot: r, props: e, emit: a, t: d, emitValue: c, inputContainerRef: y, inputContainerRefWrapper: u, optionsContainerRef: p, isDropdownOpen: i, dropdownOptionsContainerId: x, labelId: b, descriptionId: _, errorId: C, isReadOnly: L, dropdownValue: f, cachedSelectedListboxOptions: B, cachedListboxSelectedValues: I, setCachedValues: A, ariaLabelAttribute: M, ariaDescribedByAttribute: q, ariaLabel: h, label: v, computedAriaLabelFallbackMessage: R, computedAriaLabel: U, isInputComponent: oe, computedSize: Ie, conditionalClasses: De, descriptionConditionalClasses: Be, searchTerm: F, items: z, staticCategories: le, filteredItems: J, isSearching: X, displayValue: Ae, selectedValueItem: Te, selectedValueIndex: ne, isMultiLevelSelect: Z, flattenedItemsList: se, isTreePattern: re, computedOptionRole: ie, additionalItemsSelected: ke, ariaDescribedBy: Ne, listboxRef: de, visibleDomOptions: ce, updateVisibleDomOptions: Q, openDropdown: ue, closeDropdown: W, toggleDropdown: pe, clickOutsideDropdown: Me, onOptionSelected: fe, emitShowMoreEvent: be, textboxKeyboardNavigationListeners: Re, listboxKeyboardNavigationListeners: ye, listboxListeners: Fe, focus: G, BentoDropdownOptionsContainer: dt, BentoTypography: Ce, ErrorMessage: et, FieldLabel: Ge, vBentoClickOutsideDirective: Qe, vBentoKeyboardNavigationDirective: Ze };
|
|
1105
|
+
}
|
|
1106
|
+
});
|
|
1107
|
+
var Ht = function() {
|
|
1108
|
+
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
1109
|
+
return a("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? a(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), a("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [a(e.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, "aria-controls": e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, "aria-required": t.required, readonly: e.isReadOnly, disabled: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(o) {
|
|
1110
|
+
e.searchTerm = o;
|
|
1111
|
+
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(o, n) {
|
|
1112
|
+
return { key: n, fn: function(r) {
|
|
1113
|
+
return [t._t(n, null, null, r)];
|
|
1114
|
+
} };
|
|
1115
|
+
})], null, !0) })], 1), e.inputContainerRef ? a(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, disabled: t.disabled, "is-option-disabled": t.isOptionDisabled, items: e.filteredItems, multiple: t.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.cachedSelectedListboxOptions, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: t.loading, "has-more-items": t.hasMoreItems, "lazy-load-type": t.lazyLoadType, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(o, n) {
|
|
1116
|
+
return { key: n, fn: function(r) {
|
|
1117
|
+
return [t._t(n, null, null, r)];
|
|
1118
|
+
} };
|
|
1119
|
+
})], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? a(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? a(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
|
|
1120
|
+
return [t._v(" " + t._s(t.description) + " ")];
|
|
1121
|
+
})], 2) : t._e()], 1);
|
|
1122
|
+
}, Yt = [], Jt = /* @__PURE__ */ N(
|
|
1123
|
+
jt,
|
|
1124
|
+
Ht,
|
|
1125
|
+
Yt,
|
|
1126
|
+
!1,
|
|
1127
|
+
null,
|
|
1128
|
+
"3edb5f79"
|
|
1129
|
+
);
|
|
1130
|
+
const ga = Jt.exports;
|
|
1131
|
+
export {
|
|
1132
|
+
ga as B,
|
|
1133
|
+
St as D,
|
|
1134
|
+
_a as I,
|
|
1135
|
+
K as a,
|
|
1136
|
+
Ut as b,
|
|
1137
|
+
ha as c,
|
|
1138
|
+
qt as u
|
|
1139
|
+
};
|
|
1140
|
+
//# sourceMappingURL=dropdown.Ca-f8tdX.js.map
|