@adyen/bento-vue2 1.94.0 → 1.95.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 +2 -0
- package/dist/@types/index.d.ts +296 -126
- 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/dashed-underline.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/date-time-picker.css +1 -0
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/form-layout-group.css +1 -0
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.ZR2oO4Qc.js → action-bar.Chu-0oVy.js} +5 -5
- package/dist/chunks/{action-bar.ZR2oO4Qc.js.map → action-bar.Chu-0oVy.js.map} +1 -1
- package/dist/chunks/{ai-button.7L9bANlk.js → ai-button.DvOq4s2_.js} +2 -2
- package/dist/chunks/{ai-button.7L9bANlk.js.map → ai-button.DvOq4s2_.js.map} +1 -1
- package/dist/chunks/{ai-tag.CzloguAR.js → ai-tag.DVmvni7U.js} +2 -2
- package/dist/chunks/{ai-tag.CzloguAR.js.map → ai-tag.DVmvni7U.js.map} +1 -1
- package/dist/chunks/{alert.CLqcPN0Q.js → alert.B4bHCE8V.js} +2 -2
- package/dist/chunks/{alert.CLqcPN0Q.js.map → alert.B4bHCE8V.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.8LdkI0J0.js → anchor-scroller.B8VXotik.js} +4 -4
- package/dist/chunks/{anchor-scroller.8LdkI0J0.js.map → anchor-scroller.B8VXotik.js.map} +1 -1
- package/dist/chunks/{base-modal.YbZ5vHH4.js → base-modal.CC7gm9fc.js} +7 -7
- package/dist/chunks/{base-modal.YbZ5vHH4.js.map → base-modal.CC7gm9fc.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.CljH-yOh.js → button-actions-with-menu.BlOBDvdL.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.CljH-yOh.js.map → button-actions-with-menu.BlOBDvdL.js.map} +1 -1
- package/dist/chunks/{button-actions.CyMKvVwN.js → button-actions.D1jRC1fs.js} +3 -3
- package/dist/chunks/{button-actions.CyMKvVwN.js.map → button-actions.D1jRC1fs.js.map} +1 -1
- package/dist/chunks/{button.C9b2AC9w.js → button.DITA6YtS.js} +2 -2
- package/dist/chunks/{button.C9b2AC9w.js.map → button.DITA6YtS.js.map} +1 -1
- package/dist/chunks/{calendar.CCUVI1IF.js → calendar.ofn3G6eW.js} +19 -19
- package/dist/chunks/{calendar.CCUVI1IF.js.map → calendar.ofn3G6eW.js.map} +1 -1
- package/dist/chunks/{card.DqKD40s7.js → card.ErZLKN0q.js} +2 -2
- package/dist/chunks/{card.DqKD40s7.js.map → card.ErZLKN0q.js.map} +1 -1
- package/dist/chunks/{checkbox-group.0tRtGhHh.js → checkbox-group.BAjvgXlc.js} +3 -3
- package/dist/chunks/{checkbox-group.0tRtGhHh.js.map → checkbox-group.BAjvgXlc.js.map} +1 -1
- package/dist/chunks/{checkbox.D-5Uyu7y.js → checkbox.BAQDBNL6.js} +2 -2
- package/dist/chunks/{checkbox.D-5Uyu7y.js.map → checkbox.BAQDBNL6.js.map} +1 -1
- package/dist/chunks/{code-snippet.CmUPzpQp.js → code-snippet.B3iCsNmb.js} +5 -5
- package/dist/chunks/{code-snippet.CmUPzpQp.js.map → code-snippet.B3iCsNmb.js.map} +1 -1
- package/dist/chunks/{controls-group.CcI4EbW_.js → controls-group.Bzpsrtcx.js} +2 -2
- package/dist/chunks/{controls-group.CcI4EbW_.js.map → controls-group.Bzpsrtcx.js.map} +1 -1
- package/dist/chunks/{copy.BA1G-Pi2.js → copy.DVB6pQC8.js} +4 -4
- package/dist/chunks/{copy.BA1G-Pi2.js.map → copy.DVB6pQC8.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BOySJG3P.js → dashboard-section.HFJcf8-_.js} +4 -4
- package/dist/chunks/{dashboard-section.BOySJG3P.js.map → dashboard-section.HFJcf8-_.js.map} +1 -1
- package/dist/chunks/dashed-underline.Cl07OQID.js +55 -0
- package/dist/chunks/dashed-underline.Cl07OQID.js.map +1 -0
- package/dist/chunks/{data-grid-template.C6Sym5we.js → data-grid-template.BjfPUEoH.js} +4 -4
- package/dist/chunks/{data-grid-template.C6Sym5we.js.map → data-grid-template.BjfPUEoH.js.map} +1 -1
- package/dist/chunks/{data-grid.By3YYFjp.js → data-grid.Cua2Jxvq.js} +212 -212
- package/dist/chunks/{data-grid.By3YYFjp.js.map → data-grid.Cua2Jxvq.js.map} +1 -1
- package/dist/chunks/{date-picker.B5dusL9n.js → date-picker.CYDTf6De.js} +90 -82
- package/dist/chunks/date-picker.CYDTf6De.js.map +1 -0
- package/dist/chunks/{date-range-picker.C_9uZ3up.js → date-range-picker.DGGvwRfn.js} +252 -271
- package/dist/chunks/date-range-picker.DGGvwRfn.js.map +1 -0
- package/dist/chunks/date-time-picker.CyNb-xDm.js +129 -0
- package/dist/chunks/date-time-picker.CyNb-xDm.js.map +1 -0
- package/dist/chunks/{dialog-page.B65F56Ha.js → dialog-page.DYWnKdnP.js} +3 -3
- package/dist/chunks/{dialog-page.B65F56Ha.js.map → dialog-page.DYWnKdnP.js.map} +1 -1
- package/dist/chunks/directive.BBWhsNtO.js +28 -0
- package/dist/chunks/directive.BBWhsNtO.js.map +1 -0
- package/dist/chunks/{draggable-handle.BFGaZNTT.js → draggable-handle.CU1L7J87.js} +3 -3
- package/dist/chunks/{draggable-handle.BFGaZNTT.js.map → draggable-handle.CU1L7J87.js.map} +1 -1
- package/dist/chunks/{drawer.DqUvBlma.js → drawer.WW7G9cSC.js} +46 -19
- package/dist/chunks/{drawer.DqUvBlma.js.map → drawer.WW7G9cSC.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CY0-p_gn.js → dropdown-tag.C1qg52L9.js} +3 -3
- package/dist/chunks/{dropdown-tag.CY0-p_gn.js.map → dropdown-tag.C1qg52L9.js.map} +1 -1
- package/dist/chunks/{dropdown.Dx0HybJ8.js → dropdown.BEurqT8m.js} +323 -323
- package/dist/chunks/dropdown.BEurqT8m.js.map +1 -0
- package/dist/chunks/{empty-state.DMV23IZy.js → empty-state.Dttc-ZO_.js} +2 -2
- package/dist/chunks/{empty-state.DMV23IZy.js.map → empty-state.Dttc-ZO_.js.map} +1 -1
- package/dist/chunks/{field-label.Cq01oVR-.js → field-label.CdVbAfK-.js} +2 -2
- package/dist/chunks/{field-label.Cq01oVR-.js.map → field-label.CdVbAfK-.js.map} +1 -1
- package/dist/chunks/{file-uploader.BdvtbVvC.js → file-uploader.CO2MeHwl.js} +8 -8
- package/dist/chunks/{file-uploader.BdvtbVvC.js.map → file-uploader.CO2MeHwl.js.map} +1 -1
- package/dist/chunks/{filter-bar.mPy_N4BF.js → filter-bar.gjMPoK6d.js} +19 -19
- package/dist/chunks/{filter-bar.mPy_N4BF.js.map → filter-bar.gjMPoK6d.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.DR2E_No4.js → fixed-scroller.4xAzt_OI.js} +2 -2
- package/dist/chunks/{fixed-scroller.DR2E_No4.js.map → fixed-scroller.4xAzt_OI.js.map} +1 -1
- package/dist/chunks/{focus-trap.CKs45fnj.js → focus-trap.CBIb3SyN.js} +22 -22
- package/dist/chunks/{focus-trap.CKs45fnj.js.map → focus-trap.CBIb3SyN.js.map} +1 -1
- package/dist/chunks/{footer-actions.BE_hrleY.js → footer-actions.CZE9dcmA.js} +3 -3
- package/dist/chunks/{footer-actions.BE_hrleY.js.map → footer-actions.CZE9dcmA.js.map} +1 -1
- package/dist/chunks/form-layout-group.zE6TNlzD.js +84 -0
- package/dist/chunks/form-layout-group.zE6TNlzD.js.map +1 -0
- package/dist/chunks/form-layout-title.CXXdsiK5.js +171 -0
- package/dist/chunks/form-layout-title.CXXdsiK5.js.map +1 -0
- package/dist/chunks/header-meta.6rZdOgXD.js +239 -0
- package/dist/chunks/{header-meta._l0IV3jf.js.map → header-meta.6rZdOgXD.js.map} +1 -1
- package/dist/chunks/{header-with-views.LrySsX1p.js → header-with-views.B2Ok5KI1.js} +11 -11
- package/dist/chunks/{header-with-views.LrySsX1p.js.map → header-with-views.B2Ok5KI1.js.map} +1 -1
- package/dist/chunks/{header.BJZ-o7Mz.js → header.BsroOD5b.js} +3 -3
- package/dist/chunks/{header.BJZ-o7Mz.js.map → header.BsroOD5b.js.map} +1 -1
- package/dist/chunks/{index.DZx81HG1.js → index.CJYgd0QI.js} +220 -197
- package/dist/chunks/{index.DZx81HG1.js.map → index.CJYgd0QI.js.map} +1 -1
- package/dist/chunks/{info-icon.CRpEtx-P.js → info-icon.9Nt7zg3D.js} +3 -3
- package/dist/chunks/{info-icon.CRpEtx-P.js.map → info-icon.9Nt7zg3D.js.map} +1 -1
- package/dist/chunks/{input-field-password.C2ogXvbh.js → input-field-password.viF49CQh.js} +20 -21
- package/dist/chunks/{input-field-password.C2ogXvbh.js.map → input-field-password.viF49CQh.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.D8Enmcny.js → input-field-phone-number.DnpTj7q5.js} +13 -14
- package/dist/chunks/{input-field-phone-number.D8Enmcny.js.map → input-field-phone-number.DnpTj7q5.js.map} +1 -1
- package/dist/chunks/{input-field.CRsU2NBh.js → input-field.D86PSAiu.js} +77 -74
- package/dist/chunks/input-field.D86PSAiu.js.map +1 -0
- package/dist/chunks/{input-time.BSrSAN3r.js → input-time.LyKZXnVO.js} +7 -8
- package/dist/chunks/{input-time.BSrSAN3r.js.map → input-time.LyKZXnVO.js.map} +1 -1
- package/dist/chunks/{inspector.Dagz-JL1.js → inspector.BY3SoX-l.js} +4 -4
- package/dist/chunks/{inspector.Dagz-JL1.js.map → inspector.BY3SoX-l.js.map} +1 -1
- package/dist/chunks/{layout-row.CdpQeT7f.js → layout-row.BI9ZJa-9.js} +13 -13
- package/dist/chunks/{layout-row.CdpQeT7f.js.map → layout-row.BI9ZJa-9.js.map} +1 -1
- package/dist/chunks/{link.DB5g6d48.js → link.BpuCRgok.js} +11 -11
- package/dist/chunks/link.BpuCRgok.js.map +1 -0
- package/dist/chunks/{list-item.CQEmr9Yw.js → list-item.D2ZLiS_D.js} +2 -2
- package/dist/chunks/{list-item.CQEmr9Yw.js.map → list-item.D2ZLiS_D.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.CnxNmmva.js → listbox-option-tag.Ddyl2vuc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CnxNmmva.js.map → listbox-option-tag.Ddyl2vuc.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js → modal-fullscreen.OS6KhVdg.js} +6 -6
- package/dist/chunks/{modal-fullscreen.D5A5qJQ6.js.map → modal-fullscreen.OS6KhVdg.js.map} +1 -1
- package/dist/chunks/{modal.Bm-nN8pa.js → modal.DHL3TGHv.js} +5 -5
- package/dist/chunks/{modal.Bm-nN8pa.js.map → modal.DHL3TGHv.js.map} +1 -1
- package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js +261 -0
- package/dist/chunks/navigation-menu-group.Dv2_ZRRq.js.map +1 -0
- package/dist/chunks/{pagination.Jv60K59y.js → pagination.CJ3d1O_s.js} +3 -3
- package/dist/chunks/{pagination.Jv60K59y.js.map → pagination.CJ3d1O_s.js.map} +1 -1
- package/dist/chunks/popover.types.B9TXaqAt.js +6 -0
- package/dist/chunks/{popover.types.CQ5g4kw2.js.map → popover.types.B9TXaqAt.js.map} +1 -1
- package/dist/chunks/{popper-container.D10i5aF5.js → popper-container.CFYFCz6u.js} +2 -2
- package/dist/chunks/{popper-container.D10i5aF5.js.map → popper-container.CFYFCz6u.js.map} +1 -1
- package/dist/chunks/{promo-banner.DjRIdEh7.js → promo-banner.tljKS80K.js} +3 -3
- package/dist/chunks/{promo-banner.DjRIdEh7.js.map → promo-banner.tljKS80K.js.map} +1 -1
- package/dist/chunks/{radio-group.BrRXAuJ6.js → radio-group.cn4lZb8R.js} +3 -3
- package/dist/chunks/{radio-group.BrRXAuJ6.js.map → radio-group.cn4lZb8R.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DazA-Rlh.js → rich-text-editor.Dwq3Z_lK.js} +6 -6
- package/dist/chunks/{rich-text-editor.DazA-Rlh.js.map → rich-text-editor.Dwq3Z_lK.js.map} +1 -1
- package/dist/chunks/{search-bar.DeKlBnxE.js → search-bar.BvHhXdNu.js} +10 -11
- package/dist/chunks/{search-bar.DeKlBnxE.js.map → search-bar.BvHhXdNu.js.map} +1 -1
- package/dist/chunks/{secondary-nav.BLF9iQOV.js → secondary-nav.BvbT8LXa.js} +5 -5
- package/dist/chunks/{secondary-nav.BLF9iQOV.js.map → secondary-nav.BvbT8LXa.js.map} +1 -1
- package/dist/chunks/{segmented-control.BBG-0da6.js → segmented-control.C0JtDa4q.js} +2 -2
- package/dist/chunks/{segmented-control.BBG-0da6.js.map → segmented-control.C0JtDa4q.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CXBbA_P1.js → selection-card-group.ZZ_qF1L1.js} +3 -3
- package/dist/chunks/{selection-card-group.CXBbA_P1.js.map → selection-card-group.ZZ_qF1L1.js.map} +1 -1
- package/dist/chunks/set-time-in-date.CU7HeZLY.js +27 -0
- package/dist/chunks/set-time-in-date.CU7HeZLY.js.map +1 -0
- package/dist/chunks/{sidepanel.ChPk9qYd.js → sidepanel.B8zQp_MJ.js} +7 -7
- package/dist/chunks/{sidepanel.ChPk9qYd.js.map → sidepanel.B8zQp_MJ.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Dwftc8Ns.js → structured-list-item.DE0L0kvs.js} +5 -5
- package/dist/chunks/{structured-list-item.Dwftc8Ns.js.map → structured-list-item.DE0L0kvs.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.Cv27iNrx.js → summary-grid.types.CkqRXOKv.js} +5 -5
- package/dist/chunks/{summary-grid.types.Cv27iNrx.js.map → summary-grid.types.CkqRXOKv.js.map} +1 -1
- package/dist/chunks/{tab.t1v1GxSA.js → tab.YQXssvyU.js} +3 -3
- package/dist/chunks/{tab.t1v1GxSA.js.map → tab.YQXssvyU.js.map} +1 -1
- package/dist/chunks/{tag.lfN7xFuw.js → tag.CbNFG45Y.js} +2 -2
- package/dist/chunks/{tag.lfN7xFuw.js.map → tag.CbNFG45Y.js.map} +1 -1
- package/dist/chunks/{textarea.DSRAB-Ox.js → textarea.DJ7095b6.js} +3 -3
- package/dist/chunks/{textarea.DSRAB-Ox.js.map → textarea.DJ7095b6.js.map} +1 -1
- package/dist/chunks/{timeline-item.gWNnZjsZ.js → timeline-item.sdxvTjmS.js} +8 -8
- package/dist/chunks/{timeline-item.gWNnZjsZ.js.map → timeline-item.sdxvTjmS.js.map} +1 -1
- package/dist/chunks/{toast.d8vg71CB.js → toast.BMGR5QrI.js} +2 -2
- package/dist/chunks/{toast.d8vg71CB.js.map → toast.BMGR5QrI.js.map} +1 -1
- package/dist/chunks/{tooltip.DmFTmAGi.js → tooltip.CnkqMpOA.js} +3 -3
- package/dist/chunks/{tooltip.DmFTmAGi.js.map → tooltip.CnkqMpOA.js.map} +1 -1
- package/dist/chunks/{tutorial.CO7DzdET.js → tutorial.Ba9dqb2j.js} +4 -4
- package/dist/chunks/{tutorial.CO7DzdET.js.map → tutorial.Ba9dqb2j.js.map} +1 -1
- package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js +30 -0
- package/dist/chunks/use-bento-delayed-hover.D4rfUUOr.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js → use-cached-selected-values.txnml8sE.js} +3 -3
- package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js.map → use-cached-selected-values.txnml8sE.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js → use-date-input-formatter.D7Ud6Ana.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js.map → use-date-input-formatter.D7Ud6Ana.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +5 -0
- package/dist/date-time-picker.js.map +1 -0
- package/dist/draggable.js +1 -1
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +5 -4
- package/dist/form-layout.js.map +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +273 -268
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/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 +160 -3
- package/package.json +7 -7
- package/dist/chunks/dashed-underline.B9Q0T4ss.js +0 -77
- package/dist/chunks/dashed-underline.B9Q0T4ss.js.map +0 -1
- package/dist/chunks/date-picker.B5dusL9n.js.map +0 -1
- package/dist/chunks/date-range-picker.C_9uZ3up.js.map +0 -1
- package/dist/chunks/directive.Bfr4fuOy.js +0 -23
- package/dist/chunks/directive.Bfr4fuOy.js.map +0 -1
- package/dist/chunks/dropdown.Dx0HybJ8.js.map +0 -1
- package/dist/chunks/form-layout-title.zZVLCyqe.js +0 -248
- package/dist/chunks/form-layout-title.zZVLCyqe.js.map +0 -1
- package/dist/chunks/header-meta._l0IV3jf.js +0 -248
- package/dist/chunks/input-field.CRsU2NBh.js.map +0 -1
- package/dist/chunks/link.DB5g6d48.js.map +0 -1
- package/dist/chunks/navigation-menu-group.DHWp-pJO.js +0 -216
- package/dist/chunks/navigation-menu-group.DHWp-pJO.js.map +0 -1
- package/dist/chunks/popover.types.CQ5g4kw2.js +0 -6
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { B as
|
|
3
|
-
import { g as
|
|
1
|
+
import { ref as L, watch as Z, computed as s, defineComponent as A, useSlots as Q, toRefs as Ee, useAttrs as Ie, inject as re, nextTick as B, toRef as k } from "vue";
|
|
2
|
+
import { B as De, d as ne } from "./typography.C8lPlsbD.js";
|
|
3
|
+
import { g as q } from "./generate-uid.NJ8tVoha.js";
|
|
4
4
|
import { u as G } from "./index.B6WW_F-J.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { C as
|
|
7
|
-
import { C as
|
|
8
|
-
import { n as
|
|
9
|
-
import { s as
|
|
10
|
-
import { C as
|
|
11
|
-
import { C as
|
|
5
|
+
import { u as Be } from "./use-has-slot.C9lQZ6nz.js";
|
|
6
|
+
import { C as qe } from "./cross-circle-fill.DTDtgLMf.js";
|
|
7
|
+
import { C as ze } from "./cross-circle-fill-small.DfxDedRr.js";
|
|
8
|
+
import { n as M } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
9
|
+
import { s as z } from "./events.BQOQSSb7.js";
|
|
10
|
+
import { C as Ue } from "./chevron-down.eYtgv5ly.js";
|
|
11
|
+
import { C as We } from "./chevron-up.d8cwIlA_.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { B as m, b as
|
|
16
|
-
import { u as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { F as
|
|
20
|
-
import { E as
|
|
21
|
-
import { P as
|
|
22
|
-
import { h as
|
|
13
|
+
import { u as je } from "./aria-label.CaUURpnB.js";
|
|
14
|
+
import { u as He } from "./form-field.D_2g7vaP.js";
|
|
15
|
+
import { B as m, b as se, a as we, d as Ye, u as Je, c as Xe, e as Ze } from "./use-cached-selected-values.txnml8sE.js";
|
|
16
|
+
import { u as Qe } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
17
|
+
import { B as R, a as Ge } from "./keyboard-navigation.DWmhelVv.js";
|
|
18
|
+
import { B as et } from "./directive.BBWhsNtO.js";
|
|
19
|
+
import { F as tt } from "./field-label.CdVbAfK-.js";
|
|
20
|
+
import { E as at } from "./error-message.CyERcfdt.js";
|
|
21
|
+
import { P as Ce } from "./popper-container.CFYFCz6u.js";
|
|
22
|
+
import { h as ot } from "./button-actions.D1jRC1fs.js";
|
|
23
23
|
import "../assets/dropdown.css";
|
|
24
|
-
var
|
|
25
|
-
const
|
|
24
|
+
var U = /* @__PURE__ */ ((l) => (l.DEFAULT = "DropdownInputDefault", l.SMALL = "DropdownInputSmall", l))(U || {});
|
|
25
|
+
const lt = {
|
|
26
26
|
"de-DE": {
|
|
27
27
|
apply: "Anwenden",
|
|
28
28
|
cancel: "Abbrechen",
|
|
@@ -73,62 +73,62 @@ const ot = {
|
|
|
73
73
|
cancel: "取消",
|
|
74
74
|
noOptionsMatchThisSearch: "没有符合此搜索条件的选项"
|
|
75
75
|
}
|
|
76
|
-
},
|
|
77
|
-
const o =
|
|
76
|
+
}, nt = (l, t, a, e) => {
|
|
77
|
+
const o = L(l.value), { t: n } = G();
|
|
78
78
|
Z(l, () => {
|
|
79
79
|
o.value = l.value;
|
|
80
80
|
});
|
|
81
81
|
const r = s(
|
|
82
82
|
() => JSON.stringify(o.value) === JSON.stringify(l.value)
|
|
83
|
-
),
|
|
83
|
+
), c = () => {
|
|
84
84
|
e(m.SELECT, o.value), e(m.CLOSE_DROPDOWN);
|
|
85
|
-
},
|
|
85
|
+
}, u = () => {
|
|
86
86
|
o.value = l.value, e(m.CLOSE_DROPDOWN);
|
|
87
|
-
},
|
|
87
|
+
}, v = () => {
|
|
88
88
|
a.value && t.value && (o.value = l.value);
|
|
89
|
-
},
|
|
89
|
+
}, b = s(() => [
|
|
90
90
|
{
|
|
91
91
|
title: n("apply"),
|
|
92
|
-
event:
|
|
92
|
+
event: c,
|
|
93
93
|
disabled: r.value
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
title: n("cancel"),
|
|
97
|
-
event:
|
|
97
|
+
event: u
|
|
98
98
|
}
|
|
99
|
-
]),
|
|
100
|
-
o.value =
|
|
101
|
-
}, i = (
|
|
102
|
-
p
|
|
103
|
-
}, S = (
|
|
104
|
-
p
|
|
105
|
-
},
|
|
106
|
-
p
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
},
|
|
99
|
+
]), f = (p) => {
|
|
100
|
+
o.value = p, t.value || e(m.SELECT, p);
|
|
101
|
+
}, i = (p) => {
|
|
102
|
+
f(p), e(m.TAB);
|
|
103
|
+
}, S = (p) => {
|
|
104
|
+
f(p), e(m.ENTER);
|
|
105
|
+
}, x = (p) => {
|
|
106
|
+
f(p), e(m.SPACE);
|
|
107
|
+
}, d = () => {
|
|
108
|
+
u(), e(m.ESCAPE);
|
|
109
|
+
}, C = () => {
|
|
110
110
|
e(m.SHOW_MORE);
|
|
111
|
-
},
|
|
112
|
-
[m.SELECT]:
|
|
113
|
-
[m.SHOW_MORE]:
|
|
111
|
+
}, g = {
|
|
112
|
+
[m.SELECT]: f,
|
|
113
|
+
[m.SHOW_MORE]: C,
|
|
114
114
|
[m.TAB]: i,
|
|
115
|
-
[m.SPACE]:
|
|
115
|
+
[m.SPACE]: x,
|
|
116
116
|
[m.ENTER]: S
|
|
117
117
|
};
|
|
118
118
|
return {
|
|
119
119
|
// Values
|
|
120
|
-
actions:
|
|
120
|
+
actions: b,
|
|
121
121
|
internalSelectedValue: o,
|
|
122
122
|
// Methods
|
|
123
|
-
listeners:
|
|
124
|
-
onEscapeKey:
|
|
125
|
-
onOutsideDropdownClick:
|
|
123
|
+
listeners: g,
|
|
124
|
+
onEscapeKey: d,
|
|
125
|
+
onOutsideDropdownClick: v
|
|
126
126
|
};
|
|
127
|
-
},
|
|
128
|
-
i18n: { messages:
|
|
127
|
+
}, st = A({
|
|
128
|
+
i18n: { messages: lt },
|
|
129
129
|
name: "bento-dropdown-options-container"
|
|
130
|
-
}),
|
|
131
|
-
...
|
|
130
|
+
}), rt = /* @__PURE__ */ A({
|
|
131
|
+
...st,
|
|
132
132
|
props: {
|
|
133
133
|
/**
|
|
134
134
|
* Defines a string value that labels an interactive element.
|
|
@@ -187,8 +187,8 @@ const ot = {
|
|
|
187
187
|
*/
|
|
188
188
|
lazyLoadType: {
|
|
189
189
|
type: String,
|
|
190
|
-
default:
|
|
191
|
-
validator: (l) => Object.values(
|
|
190
|
+
default: we.AUTOMATIC,
|
|
191
|
+
validator: (l) => Object.values(we).includes(l)
|
|
192
192
|
},
|
|
193
193
|
/**
|
|
194
194
|
* Indicates if new options are lazy loading.
|
|
@@ -218,7 +218,7 @@ const ot = {
|
|
|
218
218
|
*
|
|
219
219
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
220
220
|
*/
|
|
221
|
-
searching:
|
|
221
|
+
searching: se.props.searching,
|
|
222
222
|
/**
|
|
223
223
|
* If enabled, dropdown will display non-selectable, static categories
|
|
224
224
|
*/
|
|
@@ -227,7 +227,7 @@ const ot = {
|
|
|
227
227
|
* Reference to the DOM element or Vue component for positioning
|
|
228
228
|
* the Dropdown container.
|
|
229
229
|
*/
|
|
230
|
-
targetElement: { type:
|
|
230
|
+
targetElement: { type: Ce.props.targetElement.type, required: !0 },
|
|
231
231
|
/**
|
|
232
232
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
233
233
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -239,14 +239,14 @@ const ot = {
|
|
|
239
239
|
},
|
|
240
240
|
emits: [],
|
|
241
241
|
setup(l, { expose: t, emit: a }) {
|
|
242
|
-
const e = l, o = Q(), { selectedValue: n, multiple: r } =
|
|
242
|
+
const e = l, o = Q(), { selectedValue: n, multiple: r } = Ee(e), c = L(null), { t: u } = G(), v = s(() => e.open && !e.disabled), b = s(() => u("noOptionsMatchThisSearch")), f = s(() => ({
|
|
243
243
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
244
244
|
})), i = s(() => ({
|
|
245
245
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
246
|
-
})), { actions: S, internalSelectedValue:
|
|
247
|
-
var
|
|
246
|
+
})), { actions: S, internalSelectedValue: x, listeners: d, onEscapeKey: C, onOutsideDropdownClick: g } = nt(n, r, v, a), p = s(() => e != null && e.multiple ? ot : Ce), T = s(() => {
|
|
247
|
+
var D;
|
|
248
248
|
const I = {
|
|
249
|
-
"min-width": `${(
|
|
249
|
+
"min-width": `${(D = e == null ? void 0 : e.targetElement) == null ? void 0 : D.clientWidth}px`,
|
|
250
250
|
"max-width": "min(500px, 95%)"
|
|
251
251
|
};
|
|
252
252
|
return e != null && e.multiple ? {
|
|
@@ -255,7 +255,7 @@ const ot = {
|
|
|
255
255
|
actions: S.value,
|
|
256
256
|
divider: !0,
|
|
257
257
|
fallbackPosition: ["top-start"],
|
|
258
|
-
id:
|
|
258
|
+
id: q(`dropdown-options-${e.id}`),
|
|
259
259
|
open: e.open,
|
|
260
260
|
position: "bottom-start",
|
|
261
261
|
style: {
|
|
@@ -268,18 +268,18 @@ const ot = {
|
|
|
268
268
|
offset: [0, 8],
|
|
269
269
|
position: "bottom-start",
|
|
270
270
|
style: {
|
|
271
|
-
display:
|
|
271
|
+
display: v.value ? "block" : "none",
|
|
272
272
|
...I
|
|
273
273
|
},
|
|
274
274
|
targetElement: e.targetElement
|
|
275
275
|
};
|
|
276
276
|
});
|
|
277
277
|
return t({
|
|
278
|
-
onOutsideDropdownClick:
|
|
279
|
-
}), { __sfc: !0, slots: o, emit: a, props: e, selectedValue: n, multiple: r, dropdownOptionsListboxRef:
|
|
278
|
+
onOutsideDropdownClick: g
|
|
279
|
+
}), { __sfc: !0, slots: o, emit: a, props: e, selectedValue: n, multiple: r, dropdownOptionsListboxRef: c, t: u, isDropdownOpen: v, noResultsMessage: b, conditionalClasses: f, conditionalListboxClasses: i, actions: S, internalSelectedValue: x, listeners: d, onEscapeKey: C, onOutsideDropdownClick: g, popperContainerOrPopoverComponent: p, popperContainerOrPopoverProps: T, BentoListbox: se };
|
|
280
280
|
}
|
|
281
281
|
});
|
|
282
|
-
var
|
|
282
|
+
var it = function() {
|
|
283
283
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
284
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
285
|
return !o.type.indexOf("key") && t._k(o.keyCode, "esc", 27, o.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
@@ -288,17 +288,17 @@ var rt = function() {
|
|
|
288
288
|
return [t._t(n, null, null, r)];
|
|
289
289
|
} };
|
|
290
290
|
})], null, !0) }, e.listeners))], 1)]) : t._e();
|
|
291
|
-
},
|
|
292
|
-
st,
|
|
291
|
+
}, dt = [], ct = /* @__PURE__ */ M(
|
|
293
292
|
rt,
|
|
294
293
|
it,
|
|
294
|
+
dt,
|
|
295
295
|
!1,
|
|
296
296
|
null,
|
|
297
297
|
"eb9fd4be"
|
|
298
298
|
);
|
|
299
|
-
const
|
|
300
|
-
var E = /* @__PURE__ */ ((l) => (l.DISABLED = "disabled", l.READONLY = "readonly", l.HAS_ITEMS = "has-items", l.OPENED = "opened", l.ERROR = "error", l))(E || {}),
|
|
301
|
-
const
|
|
299
|
+
const ut = ct.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 || {}), h = /* @__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))(h || {});
|
|
301
|
+
const pt = /* @__PURE__ */ Symbol("dropdown small size injection key"), Ae = /* @__PURE__ */ Symbol("dropdown underline style injection key"), ft = {
|
|
302
302
|
"de-DE": {
|
|
303
303
|
clearSearch: "Suche löschen"
|
|
304
304
|
},
|
|
@@ -329,12 +329,12 @@ const ut = {
|
|
|
329
329
|
"zh-CN": {
|
|
330
330
|
clearSearch: "清除搜索"
|
|
331
331
|
}
|
|
332
|
-
},
|
|
333
|
-
i18n: { messages:
|
|
332
|
+
}, bt = A({
|
|
333
|
+
i18n: { messages: ft },
|
|
334
334
|
name: "dropdown-base-textbox",
|
|
335
335
|
inheritAttrs: !1
|
|
336
|
-
}),
|
|
337
|
-
...
|
|
336
|
+
}), yt = /* @__PURE__ */ A({
|
|
337
|
+
...bt,
|
|
338
338
|
props: {
|
|
339
339
|
/**
|
|
340
340
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -420,15 +420,16 @@ const ut = {
|
|
|
420
420
|
},
|
|
421
421
|
emits: [],
|
|
422
422
|
setup(l, { expose: t, emit: a }) {
|
|
423
|
-
const e = l, { t: o } = G(), n =
|
|
423
|
+
const e = l, { t: o } = G(), n = Ie(), r = Q(), c = Be(r), u = L(null), v = q("textbox"), b = re(Ae, !1), f = s(() => ({
|
|
424
424
|
[`b-dropdown-base-textbox--${E.DISABLED}`]: e.disabled,
|
|
425
425
|
[`b-dropdown-base-textbox--${E.READONLY}`]: e.readonly,
|
|
426
|
-
[`b-dropdown-base-textbox--${E.HAS_ITEMS}`]: !!e.additionalItemsSelected
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
426
|
+
[`b-dropdown-base-textbox--${E.HAS_ITEMS}`]: !!e.additionalItemsSelected,
|
|
427
|
+
"b-dropdown-base-textbox--underline": b
|
|
428
|
+
})), i = s(
|
|
429
|
+
() => g.value && n["aria-required"] ? "true" : null
|
|
430
|
+
), S = s(() => ({
|
|
430
431
|
"b-dropdown-base-textbox__input--dynamic-filtering": e.dynamicFiltering
|
|
431
|
-
})),
|
|
432
|
+
})), x = s(() => e.dynamicFiltering && !!e.value && e.open), d = s(
|
|
432
433
|
() => {
|
|
433
434
|
var O;
|
|
434
435
|
return {
|
|
@@ -443,40 +444,40 @@ const ut = {
|
|
|
443
444
|
"aria-required": n["aria-required"]
|
|
444
445
|
};
|
|
445
446
|
}
|
|
446
|
-
),
|
|
447
|
+
), C = s(
|
|
447
448
|
() => e.multiple ? e.selectedValueItem : []
|
|
448
|
-
),
|
|
449
|
-
() => e.multiple && e.selectedValueItem &&
|
|
449
|
+
), g = s(() => e.dynamicFiltering && (e.open || e.alwaysComboboxIsInput)), p = s(() => e.selectedValueItem && !e.multiple), T = s(
|
|
450
|
+
() => e.multiple && e.selectedValueItem && C.value.length > 0 && e.showSlotContentInMultiple
|
|
450
451
|
);
|
|
451
452
|
Z(
|
|
452
|
-
() =>
|
|
453
|
+
() => g.value,
|
|
453
454
|
() => {
|
|
454
|
-
|
|
455
|
-
|
|
455
|
+
g.value && !e.alwaysComboboxIsInput && B(() => {
|
|
456
|
+
u.value.focus();
|
|
456
457
|
});
|
|
457
458
|
}
|
|
458
459
|
);
|
|
459
|
-
const
|
|
460
|
-
!e.disabled && !e.readonly && (a(
|
|
461
|
-
},
|
|
462
|
-
e.open && (
|
|
463
|
-
},
|
|
464
|
-
a(
|
|
465
|
-
},
|
|
466
|
-
!e.readonly && !e.disabled ? a(
|
|
467
|
-
},
|
|
468
|
-
|
|
460
|
+
const I = async () => {
|
|
461
|
+
!e.disabled && !e.readonly && (a(h.OPEN), await B(), u.value.focus());
|
|
462
|
+
}, D = () => {
|
|
463
|
+
e.open && (u.value.focus(), a(h.CLOSE));
|
|
464
|
+
}, F = (O) => e.open && O.target.tagName === "INPUT" ? null : e.open ? D() : I(), P = () => {
|
|
465
|
+
a(h.CLEAR), a(h.INPUT, ""), u.value.focus();
|
|
466
|
+
}, $ = (O) => {
|
|
467
|
+
!e.readonly && !e.disabled ? a(h.INPUT, O.target.value) : (O.preventDefault(), O.stopPropagation());
|
|
468
|
+
}, N = () => {
|
|
469
|
+
u.value.focus();
|
|
469
470
|
};
|
|
470
471
|
return t({
|
|
471
|
-
focus:
|
|
472
|
-
}), { __sfc: !0, t: o, attrs: n, slots: r, hasSlot:
|
|
472
|
+
focus: N
|
|
473
|
+
}), { __sfc: !0, t: o, attrs: n, slots: r, hasSlot: c, props: e, emit: a, textbox: u, textboxId: v, isUnderlineStyle: b, conditionalClasses: f, showRequiredAttribute: i, comboboxConditionalClasses: S, isFiltering: x, ariaAttributes: d, selectedValueItems: C, shouldShowInput: g, shouldShowSingleSelectSlot: p, shouldShowMultipleSlot: T, onOpenDropdown: I, onCloseDropdown: D, onToggleDropdown: F, onClearSearch: P, onInputEvent: $, focus: N, BentoTypography: De, DropdownBaseTextboxEvent: h, CrossCircleFillIcon: qe, CrossCircleFillSmallIcon: ze, BentoDropdownSize: U };
|
|
473
474
|
}
|
|
474
475
|
});
|
|
475
|
-
var
|
|
476
|
+
var vt = function() {
|
|
476
477
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
477
478
|
return a("div", { class: t.$attrs.class, attrs: { "data-testid": "textbox-wrapper" }, on: { click: e.onToggleDropdown, keydown: function(o) {
|
|
478
479
|
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
|
+
} } }, [a(e.BentoTypography, { staticClass: "b-dropdown-base-textbox", class: e.conditionalClasses, attrs: { variant: e.isUnderlineStyle ? "title" : "body", 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
481
|
return t.$emit(e.DropdownBaseTextboxEvent.KEYDOWN, o);
|
|
481
482
|
}, function(o) {
|
|
482
483
|
return !o.type.indexOf("key") && t._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : e.onToggleDropdown.apply(null, arguments);
|
|
@@ -493,19 +494,19 @@ var bt = function() {
|
|
|
493
494
|
}, keyup: function(o) {
|
|
494
495
|
return !o.type.indexOf("key") && t._k(o.keyCode, "space", 32, o.key, [" ", "Spacebar"]) ? null : e.onClearSearch.apply(null, arguments);
|
|
495
496
|
} } }, [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
|
-
},
|
|
497
|
-
ft,
|
|
498
|
-
bt,
|
|
497
|
+
}, mt = [], _t = /* @__PURE__ */ M(
|
|
499
498
|
yt,
|
|
499
|
+
vt,
|
|
500
|
+
mt,
|
|
500
501
|
!1,
|
|
501
502
|
null,
|
|
502
|
-
"
|
|
503
|
+
"4d2fd594"
|
|
503
504
|
);
|
|
504
|
-
const
|
|
505
|
+
const ke = _t.exports, ht = A({
|
|
505
506
|
name: "dropdown-default-textbox",
|
|
506
507
|
inheritAttrs: !1
|
|
507
|
-
}),
|
|
508
|
-
...
|
|
508
|
+
}), gt = /* @__PURE__ */ A({
|
|
509
|
+
...ht,
|
|
509
510
|
props: {
|
|
510
511
|
/**
|
|
511
512
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -593,37 +594,37 @@ const Be = vt.exports, mt = B({
|
|
|
593
594
|
},
|
|
594
595
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
595
596
|
setup(l, { expose: t, emit: a }) {
|
|
596
|
-
const e = l, o = Q(), n =
|
|
597
|
+
const e = l, o = Q(), n = L(null), r = s(() => ({
|
|
597
598
|
[`b-dropdown-default-textbox--${E.ERROR}`]: !e.disabled && !e.readonly && e.isInvalid,
|
|
598
599
|
[`b-dropdown-default-textbox--${E.DISABLED}`]: e.disabled,
|
|
599
600
|
[`b-dropdown-default-textbox--${E.READONLY}`]: e.readonly,
|
|
600
601
|
[`b-dropdown-default-textbox--${E.OPENED}`]: e.open,
|
|
601
602
|
"b-dropdown-default-textbox--condensed": e.condensed
|
|
602
|
-
})),
|
|
603
|
-
a("input",
|
|
604
|
-
},
|
|
605
|
-
a("keydown",
|
|
606
|
-
},
|
|
607
|
-
|
|
608
|
-
},
|
|
609
|
-
|
|
610
|
-
}, i = (
|
|
611
|
-
|
|
603
|
+
})), c = s(() => e.open && !e.disabled && !e.readonly), u = (d) => {
|
|
604
|
+
a("input", d);
|
|
605
|
+
}, v = (d) => {
|
|
606
|
+
a("keydown", d);
|
|
607
|
+
}, b = (d) => {
|
|
608
|
+
z(d), a("open");
|
|
609
|
+
}, f = (d) => {
|
|
610
|
+
z(d), a("close");
|
|
611
|
+
}, i = (d) => {
|
|
612
|
+
z(d), a("clear");
|
|
612
613
|
}, S = {
|
|
613
|
-
[
|
|
614
|
-
[
|
|
615
|
-
[
|
|
616
|
-
[
|
|
617
|
-
[
|
|
618
|
-
},
|
|
614
|
+
[h.INPUT]: u,
|
|
615
|
+
[h.OPEN]: b,
|
|
616
|
+
[h.CLOSE]: f,
|
|
617
|
+
[h.CLEAR]: i,
|
|
618
|
+
[h.KEYDOWN]: v
|
|
619
|
+
}, x = () => {
|
|
619
620
|
n.value.focus();
|
|
620
621
|
};
|
|
621
622
|
return t({
|
|
622
|
-
focus:
|
|
623
|
-
}), { __sfc: !0, emit: a, slots: o, props: e, baseTextbox: n, conditionalClasses: r, isDropdownOpen:
|
|
623
|
+
focus: x
|
|
624
|
+
}), { __sfc: !0, emit: a, slots: o, props: e, baseTextbox: n, conditionalClasses: r, isDropdownOpen: c, onInput: u, onKeyDown: v, openDropdown: b, closeDropdown: f, clearValue: i, listeners: S, focus: x, DropdownBaseTextbox: ke, ChevronDownIcon: Ue, ChevronUpIcon: We };
|
|
624
625
|
}
|
|
625
626
|
});
|
|
626
|
-
var
|
|
627
|
+
var St = function() {
|
|
627
628
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
628
629
|
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
630
|
return { key: n, fn: function(r) {
|
|
@@ -632,55 +633,55 @@ var ht = function() {
|
|
|
632
633
|
}), { key: "icon", fn: function() {
|
|
633
634
|
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
635
|
}, proxy: !0 }], null, !0) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
635
|
-
},
|
|
636
|
-
_t,
|
|
637
|
-
ht,
|
|
636
|
+
}, xt = [], wt = /* @__PURE__ */ M(
|
|
638
637
|
gt,
|
|
638
|
+
St,
|
|
639
|
+
xt,
|
|
639
640
|
!1,
|
|
640
641
|
null,
|
|
641
642
|
"bf2d43b0"
|
|
642
643
|
);
|
|
643
|
-
const
|
|
644
|
-
let
|
|
645
|
-
const
|
|
644
|
+
const Ct = wt.exports;
|
|
645
|
+
let Le = 0;
|
|
646
|
+
const Lt = {
|
|
646
647
|
beforeCreate() {
|
|
647
|
-
this.uuid =
|
|
648
|
+
this.uuid = Le.toString(), Le += 1;
|
|
648
649
|
}
|
|
649
650
|
};
|
|
650
|
-
var
|
|
651
|
+
var Ot = function() {
|
|
651
652
|
var t = this, a = t._self._c;
|
|
652
653
|
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
|
-
},
|
|
654
|
-
wt,
|
|
655
|
-
Ct,
|
|
654
|
+
}, Et = [], It = /* @__PURE__ */ M(
|
|
656
655
|
Lt,
|
|
656
|
+
Ot,
|
|
657
|
+
Et,
|
|
657
658
|
!1,
|
|
658
659
|
null,
|
|
659
660
|
null
|
|
660
661
|
);
|
|
661
|
-
const
|
|
662
|
-
let
|
|
663
|
-
const
|
|
662
|
+
const Dt = It.exports;
|
|
663
|
+
let Oe = 0;
|
|
664
|
+
const Bt = {
|
|
664
665
|
beforeCreate() {
|
|
665
|
-
this.uuid =
|
|
666
|
+
this.uuid = Oe.toString(), Oe += 1;
|
|
666
667
|
}
|
|
667
668
|
};
|
|
668
|
-
var
|
|
669
|
+
var At = function() {
|
|
669
670
|
var t = this, a = t._self._c;
|
|
670
671
|
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
|
-
},
|
|
672
|
-
It,
|
|
673
|
-
Dt,
|
|
672
|
+
}, kt = [], Tt = /* @__PURE__ */ M(
|
|
674
673
|
Bt,
|
|
674
|
+
At,
|
|
675
|
+
kt,
|
|
675
676
|
!1,
|
|
676
677
|
null,
|
|
677
678
|
null
|
|
678
679
|
);
|
|
679
|
-
const
|
|
680
|
+
const Rt = Tt.exports, Nt = A({
|
|
680
681
|
name: "dropdown-small-textbox",
|
|
681
682
|
inheritAttrs: !1
|
|
682
|
-
}),
|
|
683
|
-
...
|
|
683
|
+
}), Mt = /* @__PURE__ */ A({
|
|
684
|
+
...Nt,
|
|
684
685
|
props: {
|
|
685
686
|
/**
|
|
686
687
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -737,67 +738,68 @@ const At = Tt.exports, kt = B({
|
|
|
737
738
|
},
|
|
738
739
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
739
740
|
setup(l, { expose: t, emit: a }) {
|
|
740
|
-
const e = l, o =
|
|
741
|
+
const e = l, o = L(null), n = re(Ae, !1), r = s(() => ({
|
|
741
742
|
[`b-dropdown-small-textbox--${E.DISABLED}`]: e.disabled,
|
|
742
743
|
[`b-dropdown-small-textbox--${E.READONLY}`]: e.readonly,
|
|
743
|
-
[`b-dropdown-small-textbox--${E.OPENED}`]: e.open
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
[
|
|
757
|
-
[
|
|
758
|
-
[
|
|
759
|
-
[
|
|
760
|
-
|
|
744
|
+
[`b-dropdown-small-textbox--${E.OPENED}`]: e.open,
|
|
745
|
+
"b-dropdown-small-textbox--underline": n
|
|
746
|
+
})), c = s(() => e.open && !e.disabled && !e.readonly), u = (d) => {
|
|
747
|
+
a("input", d);
|
|
748
|
+
}, v = (d) => {
|
|
749
|
+
a("keydown", d);
|
|
750
|
+
}, b = (d) => {
|
|
751
|
+
z(d), a("open");
|
|
752
|
+
}, f = (d) => {
|
|
753
|
+
z(d), a("close");
|
|
754
|
+
}, i = (d) => {
|
|
755
|
+
z(d), a("clear");
|
|
756
|
+
}, S = {
|
|
757
|
+
[h.INPUT]: u,
|
|
758
|
+
[h.OPEN]: b,
|
|
759
|
+
[h.CLOSE]: f,
|
|
760
|
+
[h.CLEAR]: i,
|
|
761
|
+
[h.KEYDOWN]: v
|
|
762
|
+
}, x = () => {
|
|
761
763
|
o.value.focus();
|
|
762
764
|
};
|
|
763
765
|
return t({
|
|
764
|
-
focus:
|
|
765
|
-
}), { __sfc: !0, emit: a, props: e, baseTextbox: o,
|
|
766
|
+
focus: x
|
|
767
|
+
}), { __sfc: !0, emit: a, props: e, baseTextbox: o, isUnderlineStyle: n, conditionalClasses: r, isDropdownOpen: c, onInput: u, onKeyDown: v, openDropdown: b, closeDropdown: f, clearValue: i, listeners: S, focus: x, BentoDropdownSize: U, DropdownBaseTextbox: ke, ChevronDownSmallIcon: Dt, ChevronUpSmallIcon: Rt };
|
|
766
768
|
}
|
|
767
769
|
});
|
|
768
|
-
var
|
|
770
|
+
var Ft = function() {
|
|
769
771
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
770
772
|
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
773
|
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
774
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
773
|
-
},
|
|
774
|
-
Nt,
|
|
775
|
+
}, Pt = [], $t = /* @__PURE__ */ M(
|
|
775
776
|
Mt,
|
|
776
|
-
|
|
777
|
+
Ft,
|
|
778
|
+
Pt,
|
|
777
779
|
!1,
|
|
778
780
|
null,
|
|
779
|
-
"
|
|
781
|
+
"fa225e76"
|
|
780
782
|
);
|
|
781
|
-
const
|
|
783
|
+
const Vt = $t.exports, Kt = (l, t) => t.value.reduce((a, e) => {
|
|
782
784
|
if (e.items) {
|
|
783
785
|
const o = e.items.filter(
|
|
784
|
-
(r) => l.value.find((
|
|
786
|
+
(r) => l.value.find((c) => c.value === r.value)
|
|
785
787
|
);
|
|
786
|
-
o.length === e.items.length ? a.push(e.displayValue ?? e.label) : o.forEach(({ label: r, displayValue:
|
|
788
|
+
o.length === e.items.length ? a.push(e.displayValue ?? e.label) : o.forEach(({ label: r, displayValue: c }) => a.push(c ?? r));
|
|
787
789
|
}
|
|
788
790
|
return l.value.find((o) => o.value === e.value) && a.push(e.displayValue ?? e.label), a;
|
|
789
|
-
}, []).join(", "),
|
|
791
|
+
}, []).join(", "), qt = ({ items: l, placeholder: t, selectedValues: a, isMultiSelect: e }) => {
|
|
790
792
|
const o = s(
|
|
791
793
|
() => e.value && l.value.find((r) => {
|
|
792
|
-
var
|
|
793
|
-
return (
|
|
794
|
+
var c;
|
|
795
|
+
return (c = r.items) == null ? void 0 : c.length;
|
|
794
796
|
})
|
|
795
797
|
);
|
|
796
|
-
return s(() => a.value.length ? o.value ?
|
|
798
|
+
return s(() => a.value.length ? o.value ? Kt(a, l) : a.value.map(({ label: r, displayValue: c }) => c ?? r).join(", ") : t.value || null);
|
|
797
799
|
}, Te = (l) => {
|
|
798
800
|
var t;
|
|
799
801
|
(t = l.value.$children) == null || t[0].$refs.textbox.focus();
|
|
800
|
-
},
|
|
802
|
+
}, zt = ({
|
|
801
803
|
inputContainerRef: l,
|
|
802
804
|
optionsContainerRef: t,
|
|
803
805
|
selectedValueIndex: a,
|
|
@@ -805,67 +807,67 @@ const Pt = Ft.exports, $t = (l, t) => t.value.reduce((a, e) => {
|
|
|
805
807
|
isDynamicFltering: o,
|
|
806
808
|
items: n,
|
|
807
809
|
isMultiple: r,
|
|
808
|
-
totalItemCount:
|
|
809
|
-
isVirtualScroll:
|
|
810
|
-
},
|
|
811
|
-
const i = async (
|
|
810
|
+
totalItemCount: c,
|
|
811
|
+
isVirtualScroll: u
|
|
812
|
+
}, v, b, f) => {
|
|
813
|
+
const i = async (y) => {
|
|
812
814
|
var w;
|
|
813
|
-
o.value && await
|
|
814
|
-
}, S = async (
|
|
815
|
+
o.value && await B(), (w = n.value[y]) == null || w.focus();
|
|
816
|
+
}, S = async (y) => {
|
|
815
817
|
var H, Y;
|
|
816
|
-
o.value && await
|
|
818
|
+
o.value && await B();
|
|
817
819
|
const w = (H = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : H.$el.querySelectorAll(
|
|
818
820
|
"button"
|
|
819
821
|
);
|
|
820
|
-
w != null && w.length ? (Y = w[
|
|
821
|
-
},
|
|
822
|
+
w != null && w.length ? (Y = w[y]) == null || Y.focus() : i(y);
|
|
823
|
+
}, x = (y) => {
|
|
822
824
|
var w;
|
|
823
825
|
return (w = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : w.setListboxFocusedIndex(
|
|
824
|
-
|
|
826
|
+
y
|
|
825
827
|
);
|
|
826
|
-
},
|
|
828
|
+
}, d = async (y) => {
|
|
827
829
|
var w;
|
|
828
|
-
await ((w = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : w.navigateToItem(
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
|
|
830
|
+
await ((w = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : w.navigateToItem(y));
|
|
831
|
+
}, C = (y) => {
|
|
832
|
+
B(() => {
|
|
833
|
+
u ? d(y) : (x(y), i(y));
|
|
832
834
|
});
|
|
833
|
-
},
|
|
834
|
-
e.value ||
|
|
835
|
-
},
|
|
836
|
-
e.value ||
|
|
837
|
-
|
|
835
|
+
}, g = () => {
|
|
836
|
+
e.value || b(), C(0);
|
|
837
|
+
}, p = () => {
|
|
838
|
+
e.value || b(), B(() => {
|
|
839
|
+
C(u ? c.value - 1 : n.value.length - 1);
|
|
838
840
|
});
|
|
839
|
-
}, T = ({ detail:
|
|
840
|
-
|
|
841
|
-
}, I = ({ detail:
|
|
842
|
-
|
|
843
|
-
},
|
|
844
|
-
|
|
841
|
+
}, T = ({ detail: y }) => {
|
|
842
|
+
y.preventDefault(), g();
|
|
843
|
+
}, I = ({ detail: y }) => {
|
|
844
|
+
y.preventDefault(), p();
|
|
845
|
+
}, D = () => {
|
|
846
|
+
g();
|
|
845
847
|
}, F = () => {
|
|
846
|
-
|
|
847
|
-
}, P = ({ detail:
|
|
848
|
-
|
|
849
|
-
},
|
|
850
|
-
|
|
848
|
+
p();
|
|
849
|
+
}, P = ({ detail: y }) => {
|
|
850
|
+
y.preventDefault(), v(), e.value && (r ? S(0) : C(a.value));
|
|
851
|
+
}, $ = ({ detail: y }) => {
|
|
852
|
+
y.preventDefault(), v(), e.value && (r ? S(0) : C(a.value));
|
|
853
|
+
}, N = () => {
|
|
854
|
+
e.value && f();
|
|
851
855
|
}, O = () => {
|
|
852
|
-
e.value &&
|
|
853
|
-
}, U = () => {
|
|
854
|
-
e.value && (p(), Te(l));
|
|
856
|
+
e.value && (f(), Te(l));
|
|
855
857
|
};
|
|
856
858
|
return s(() => ({
|
|
857
|
-
[
|
|
858
|
-
[
|
|
859
|
-
[
|
|
860
|
-
[
|
|
861
|
-
...o.value ? {} : { [
|
|
862
|
-
[
|
|
863
|
-
...o.value ? {} : { [
|
|
864
|
-
[
|
|
859
|
+
[R.ARROW_DOWN]: T,
|
|
860
|
+
[R.ARROW_UP]: I,
|
|
861
|
+
[R.HOME]: D,
|
|
862
|
+
[R.END]: F,
|
|
863
|
+
...o.value ? {} : { [R.SPACE]: P },
|
|
864
|
+
[R.ENTER]: $,
|
|
865
|
+
...o.value ? {} : { [R.TAB]: N },
|
|
866
|
+
[R.ESCAPE]: O
|
|
865
867
|
}));
|
|
866
|
-
},
|
|
868
|
+
}, Ut = ({ inputContainerRef: l, isDropdownOpen: t }, a) => {
|
|
867
869
|
const e = () => {
|
|
868
|
-
t.value && a(),
|
|
870
|
+
t.value && a(), B(() => {
|
|
869
871
|
Te(l);
|
|
870
872
|
});
|
|
871
873
|
};
|
|
@@ -876,18 +878,18 @@ const Pt = Ft.exports, $t = (l, t) => t.value.reduce((a, e) => {
|
|
|
876
878
|
[m.SPACE]: e
|
|
877
879
|
};
|
|
878
880
|
};
|
|
879
|
-
function
|
|
880
|
-
const n =
|
|
881
|
+
function Wt(l, t, a, e, o) {
|
|
882
|
+
const n = L(l), r = L(t), c = (b, f = []) => f.flatMap((i) => i.label.toLocaleLowerCase().includes(b) ? e != null && e.value && i.items ? [...c(b, i.items)] : [i, ...c(b, i.items)] : i.items ? [...c(b, i.items)] : []), u = a !== void 0 ? Ye(() => a(n.value), o ?? 300) : void 0;
|
|
881
883
|
return Z(n, () => {
|
|
882
|
-
|
|
884
|
+
u !== void 0 && u();
|
|
883
885
|
}), s(() => {
|
|
884
886
|
if (!n.value || a !== void 0)
|
|
885
887
|
return r.value;
|
|
886
|
-
const
|
|
887
|
-
return
|
|
888
|
+
const b = n.value.toLocaleLowerCase();
|
|
889
|
+
return c(b, r.value);
|
|
888
890
|
});
|
|
889
891
|
}
|
|
890
|
-
const
|
|
892
|
+
const jt = {
|
|
891
893
|
"de-DE": {
|
|
892
894
|
all: "Alle",
|
|
893
895
|
ariaLabelFallback: "Dropdown",
|
|
@@ -938,16 +940,16 @@ const Ut = {
|
|
|
938
940
|
ariaLabelFallback: "下拉菜单",
|
|
939
941
|
clearSearch: "清除筛选器"
|
|
940
942
|
}
|
|
941
|
-
},
|
|
942
|
-
i18n: { messages:
|
|
943
|
+
}, Ht = A({
|
|
944
|
+
i18n: { messages: jt },
|
|
943
945
|
name: "b-dropdown",
|
|
944
946
|
components: {
|
|
945
|
-
DropdownInputDefault:
|
|
946
|
-
DropdownInputSmall:
|
|
947
|
+
DropdownInputDefault: Ct,
|
|
948
|
+
DropdownInputSmall: Vt
|
|
947
949
|
},
|
|
948
950
|
model: { prop: "modelValue" }
|
|
949
|
-
}),
|
|
950
|
-
...
|
|
951
|
+
}), Yt = /* @__PURE__ */ A({
|
|
952
|
+
...Ht,
|
|
951
953
|
props: {
|
|
952
954
|
description: { default: null },
|
|
953
955
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -968,7 +970,7 @@ const Ut = {
|
|
|
968
970
|
items: { default: () => [] },
|
|
969
971
|
loading: { type: Boolean, default: !1 },
|
|
970
972
|
componentLoading: { type: Boolean, default: !1 },
|
|
971
|
-
lazyLoadType: { default:
|
|
973
|
+
lazyLoadType: { default: se.props.lazyLoadType.default },
|
|
972
974
|
multiple: { type: Boolean, default: !1 },
|
|
973
975
|
search: { default: void 0 },
|
|
974
976
|
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
@@ -981,138 +983,138 @@ const Ut = {
|
|
|
981
983
|
},
|
|
982
984
|
emits: ["input", "update:model-value", "show-more", "open"],
|
|
983
985
|
setup(l, { expose: t, emit: a }) {
|
|
984
|
-
var
|
|
985
|
-
const e = l, o =
|
|
986
|
+
var ge, Se;
|
|
987
|
+
const e = l, o = Ie(), n = Q(), r = Be(n), { t: c } = G(), { emitValue: u } = He(a), v = L(null), b = L(null), f = L(null), i = L(!1), S = q("bento-dropdown-options-container"), x = q("dropdown-label"), d = q("dropdown-description"), C = q("dropdown-error"), { isReadOnly: g } = Qe(k(e, "readonly")), p = s(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: T, cachedListboxSelectedValues: I, setCachedValues: D } = Je(
|
|
986
988
|
k(e, "items"),
|
|
987
|
-
|
|
989
|
+
p,
|
|
988
990
|
k(e, "multiple"),
|
|
989
991
|
k(e, "enableValueLabelPair")
|
|
990
|
-
), F =
|
|
992
|
+
), F = L(o["aria-label"]), P = L(o["aria-describedby"]), { ariaLabel: $, label: N } = Ee(e), O = s(() => c("ariaLabelFallback")), ee = je({
|
|
991
993
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
992
|
-
ariaLabel:
|
|
993
|
-
label:
|
|
994
|
-
defaultFallback:
|
|
995
|
-
}),
|
|
994
|
+
ariaLabel: $.value || F,
|
|
995
|
+
label: N,
|
|
996
|
+
defaultFallback: O
|
|
997
|
+
}), y = e.size === U.SMALL || re(pt, !1), w = s(() => y ? U.SMALL : U.DEFAULT), H = s(() => ({
|
|
996
998
|
"b-dropdown--condensed": e.condensed
|
|
997
999
|
})), Y = s(() => ({
|
|
998
1000
|
"b-dropdown__description--error": !!e.errorMessage
|
|
999
|
-
})),
|
|
1000
|
-
|
|
1001
|
+
})), V = L(""), W = k(e, "items"), ie = k(e, "staticCategories"), J = Wt(
|
|
1002
|
+
V,
|
|
1001
1003
|
W,
|
|
1002
|
-
(
|
|
1003
|
-
|
|
1004
|
-
(
|
|
1005
|
-
),
|
|
1004
|
+
(ge = e == null ? void 0 : e.search) == null ? void 0 : ge.searchEvent,
|
|
1005
|
+
ie,
|
|
1006
|
+
(Se = e == null ? void 0 : e.search) == null ? void 0 : Se.debounceTime
|
|
1007
|
+
), te = s(() => e.dynamicFiltering && !!V.value), Re = qt({
|
|
1006
1008
|
items: W,
|
|
1007
1009
|
placeholder: k(e, "placeholder"),
|
|
1008
1010
|
isMultiSelect: k(e, "multiple"),
|
|
1009
1011
|
selectedValues: T
|
|
1010
|
-
}),
|
|
1011
|
-
if (e != null && e.multiple && Array.isArray(
|
|
1012
|
+
}), Ne = s(() => {
|
|
1013
|
+
if (e != null && e.multiple && Array.isArray(p.value))
|
|
1012
1014
|
return e.items.filter(
|
|
1013
|
-
({ value:
|
|
1015
|
+
({ value: _ }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(_)
|
|
1014
1016
|
);
|
|
1015
1017
|
if (!e.multiple && e.staticCategories) {
|
|
1016
|
-
const
|
|
1018
|
+
const _ = e.items.find(
|
|
1017
1019
|
(j) => {
|
|
1018
|
-
var
|
|
1019
|
-
return (
|
|
1020
|
+
var xe;
|
|
1021
|
+
return (xe = j.items) == null ? void 0 : xe.some((Ke) => Ke.value === p.value);
|
|
1020
1022
|
}
|
|
1021
1023
|
);
|
|
1022
|
-
return (
|
|
1024
|
+
return (_ ? _.items.find((j) => j.value === p.value) : e.items.find(({ value: j }) => j === p.value)) ?? null;
|
|
1023
1025
|
}
|
|
1024
|
-
return e.items.find(({ value:
|
|
1025
|
-
}),
|
|
1026
|
-
const
|
|
1027
|
-
return
|
|
1028
|
-
}), { isMultiLevelSelect:
|
|
1026
|
+
return e.items.find(({ value: _ }) => _ === p.value);
|
|
1027
|
+
}), de = s(() => {
|
|
1028
|
+
const _ = J.value.findIndex(({ value: K }) => e.enableValueLabelPair ? p.value.value === K : p.value === K);
|
|
1029
|
+
return _ > -1 ? _ : 0;
|
|
1030
|
+
}), { isMultiLevelSelect: ae, flattenedItemsList: ce } = Xe(W), ue = s(() => ae.value && !e.staticCategories), pe = s(() => ue.value ? "treeitem" : "option"), Me = s(() => {
|
|
1029
1031
|
if (e.multiple) {
|
|
1030
|
-
const
|
|
1031
|
-
return
|
|
1032
|
+
const _ = Array.isArray(p.value) ? p.value.length : 0, K = ae.value ? ce.value.length : W.value.length;
|
|
1033
|
+
return _ === 0 ? null : !e.hasMoreItems && K > 0 && K === _ ? c("all") : _;
|
|
1032
1034
|
}
|
|
1033
1035
|
return null;
|
|
1034
|
-
}),
|
|
1036
|
+
}), Fe = s(
|
|
1035
1037
|
() => [
|
|
1036
|
-
e.description ?
|
|
1038
|
+
e.description ? d : null,
|
|
1037
1039
|
P.value,
|
|
1038
|
-
e.errorMessage ?
|
|
1040
|
+
e.errorMessage ? C : null
|
|
1039
1041
|
].filter(Boolean).join(" ") || null
|
|
1040
|
-
),
|
|
1041
|
-
var
|
|
1042
|
-
return (
|
|
1043
|
-
}), { visibleDomOptions:
|
|
1044
|
-
|
|
1042
|
+
), fe = s(() => {
|
|
1043
|
+
var _;
|
|
1044
|
+
return (_ = f.value) == null ? void 0 : _.$el;
|
|
1045
|
+
}), { visibleDomOptions: be, updateVisibleDomOptions: oe } = Ze(
|
|
1046
|
+
fe,
|
|
1045
1047
|
J,
|
|
1046
|
-
|
|
1047
|
-
),
|
|
1048
|
-
|
|
1049
|
-
|
|
1048
|
+
pe
|
|
1049
|
+
), ye = () => {
|
|
1050
|
+
g.value || (i.value = !0, B(() => {
|
|
1051
|
+
oe();
|
|
1050
1052
|
}));
|
|
1051
1053
|
}, X = () => {
|
|
1052
1054
|
i.value = !1;
|
|
1053
|
-
},
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
}),
|
|
1057
|
-
},
|
|
1058
|
-
|
|
1059
|
-
},
|
|
1060
|
-
e.multiple || (
|
|
1061
|
-
},
|
|
1055
|
+
}, ve = () => {
|
|
1056
|
+
g.value || (i.value = !i.value, B(() => {
|
|
1057
|
+
oe();
|
|
1058
|
+
}), te.value && (V.value = ""));
|
|
1059
|
+
}, Pe = () => {
|
|
1060
|
+
te.value && (V.value = ""), i.value && (i.value = !1, f.value.onOutsideDropdownClick());
|
|
1061
|
+
}, me = async (_) => {
|
|
1062
|
+
e.multiple || (V.value = "", i.value = !1), D(_), u(I.value), e.multiple || (await B(), le());
|
|
1063
|
+
}, _e = () => {
|
|
1062
1064
|
a(m.SHOW_MORE);
|
|
1063
|
-
},
|
|
1065
|
+
}, $e = zt(
|
|
1064
1066
|
{
|
|
1065
|
-
inputContainerRef:
|
|
1066
|
-
optionsContainerRef:
|
|
1067
|
-
selectedValueIndex:
|
|
1067
|
+
inputContainerRef: v,
|
|
1068
|
+
optionsContainerRef: f,
|
|
1069
|
+
selectedValueIndex: de,
|
|
1068
1070
|
isDropdownOpen: i,
|
|
1069
1071
|
isDynamicFltering: k(e, "dynamicFiltering"),
|
|
1070
|
-
items:
|
|
1072
|
+
items: be,
|
|
1071
1073
|
isMultiple: e.multiple,
|
|
1072
1074
|
totalItemCount: s(() => J.value.length),
|
|
1073
1075
|
isVirtualScroll: !(e != null && e.multiple) && (e == null ? void 0 : e.virtualScroll) !== !1 && (e == null ? void 0 : e.lazyLoadType) === "none"
|
|
1074
1076
|
},
|
|
1077
|
+
ve,
|
|
1075
1078
|
ye,
|
|
1076
|
-
be,
|
|
1077
1079
|
X
|
|
1078
|
-
),
|
|
1080
|
+
), he = Ut(
|
|
1079
1081
|
{
|
|
1080
|
-
inputContainerRef:
|
|
1082
|
+
inputContainerRef: v,
|
|
1081
1083
|
isDropdownOpen: i
|
|
1082
1084
|
},
|
|
1083
1085
|
X
|
|
1084
|
-
),
|
|
1086
|
+
), Ve = {
|
|
1085
1087
|
[m.CLOSE_DROPDOWN]: X,
|
|
1086
|
-
[m.SELECT]:
|
|
1087
|
-
[m.SHOW_MORE]:
|
|
1088
|
-
...
|
|
1088
|
+
[m.SELECT]: me,
|
|
1089
|
+
[m.SHOW_MORE]: _e,
|
|
1090
|
+
...he
|
|
1089
1091
|
};
|
|
1090
|
-
e.error &&
|
|
1092
|
+
e.error && ne(
|
|
1091
1093
|
'BentoDropdown "error" property',
|
|
1092
1094
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
1093
1095
|
Having the field as "undefined" will hide/remove the error.
|
|
1094
1096
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
1095
1097
|
"2.0.0"
|
|
1096
|
-
), e.size &&
|
|
1098
|
+
), e.size && ne('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), e.value && ne(
|
|
1097
1099
|
'BentoDropdown "value" property',
|
|
1098
1100
|
`The use of "value" prop in "BentoDropdown" is no longer supported.
|
|
1099
1101
|
Use the "v-model" or "model-value" property instead.`,
|
|
1100
1102
|
"2.0.0"
|
|
1101
1103
|
);
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1104
|
+
const le = () => {
|
|
1105
|
+
v.value.focus();
|
|
1104
1106
|
};
|
|
1105
1107
|
return Z(
|
|
1106
1108
|
() => i.value,
|
|
1107
|
-
(
|
|
1108
|
-
|
|
1109
|
+
(_) => {
|
|
1110
|
+
_ && a("open");
|
|
1109
1111
|
}
|
|
1110
1112
|
), t({
|
|
1111
|
-
focus:
|
|
1112
|
-
}), { __sfc: !0, attrs: o, slots: n, hasSlot: r, props: e, emit: a, t:
|
|
1113
|
+
focus: le
|
|
1114
|
+
}), { __sfc: !0, attrs: o, slots: n, hasSlot: r, props: e, emit: a, t: c, emitValue: u, inputContainerRef: v, inputContainerRefWrapper: b, optionsContainerRef: f, isDropdownOpen: i, dropdownOptionsContainerId: S, labelId: x, descriptionId: d, errorId: C, isReadOnly: g, dropdownValue: p, cachedSelectedListboxOptions: T, cachedListboxSelectedValues: I, setCachedValues: D, ariaLabelAttribute: F, ariaDescribedByAttribute: P, ariaLabel: $, label: N, computedAriaLabelFallbackMessage: O, computedAriaLabel: ee, isInputComponent: y, computedSize: w, conditionalClasses: H, descriptionConditionalClasses: Y, searchTerm: V, items: W, staticCategories: ie, filteredItems: J, isSearching: te, displayValue: Re, selectedValueItem: Ne, selectedValueIndex: de, isMultiLevelSelect: ae, flattenedItemsList: ce, isTreePattern: ue, computedOptionRole: pe, additionalItemsSelected: Me, ariaDescribedBy: Fe, listboxRef: fe, visibleDomOptions: be, updateVisibleDomOptions: oe, openDropdown: ye, closeDropdown: X, toggleDropdown: ve, clickOutsideDropdown: Pe, onOptionSelected: me, emitShowMoreEvent: _e, textboxKeyboardNavigationListeners: $e, listboxKeyboardNavigationListeners: he, listboxListeners: Ve, focus: le, BentoDropdownOptionsContainer: ut, BentoTypography: De, ErrorMessage: at, FieldLabel: tt, vBentoClickOutsideDirective: et, vBentoKeyboardNavigationDirective: Ge };
|
|
1113
1115
|
}
|
|
1114
1116
|
});
|
|
1115
|
-
var
|
|
1117
|
+
var Jt = function() {
|
|
1116
1118
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
1117
1119
|
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) {
|
|
1118
1120
|
e.searchTerm = o;
|
|
@@ -1127,22 +1129,20 @@ var Yt = function() {
|
|
|
1127
1129
|
})], 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() {
|
|
1128
1130
|
return [t._v(" " + t._s(t.description) + " ")];
|
|
1129
1131
|
})], 2) : t._e()], 1);
|
|
1130
|
-
},
|
|
1131
|
-
Ht,
|
|
1132
|
+
}, Xt = [], Zt = /* @__PURE__ */ M(
|
|
1132
1133
|
Yt,
|
|
1133
1134
|
Jt,
|
|
1135
|
+
Xt,
|
|
1134
1136
|
!1,
|
|
1135
1137
|
null,
|
|
1136
|
-
"
|
|
1138
|
+
"4c9eaaf0"
|
|
1137
1139
|
);
|
|
1138
|
-
const
|
|
1140
|
+
const ga = Zt.exports;
|
|
1139
1141
|
export {
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
Wt as
|
|
1145
|
-
ga as c,
|
|
1146
|
-
zt as u
|
|
1142
|
+
ga as B,
|
|
1143
|
+
Ct as D,
|
|
1144
|
+
U as a,
|
|
1145
|
+
pt as b,
|
|
1146
|
+
Wt as u
|
|
1147
1147
|
};
|
|
1148
|
-
//# sourceMappingURL=dropdown.
|
|
1148
|
+
//# sourceMappingURL=dropdown.BEurqT8m.js.map
|