@adyen/bento-vue2 1.94.0 → 1.96.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 +373 -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/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/field-label.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.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-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/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.D0JIbmoS.js} +327 -321
- package/dist/chunks/calendar.D0JIbmoS.js.map +1 -0
- 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.lcQRsLdZ.js} +5 -5
- package/dist/chunks/{code-snippet.CmUPzpQp.js.map → code-snippet.lcQRsLdZ.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.DiGQXS9L.js} +4 -4
- package/dist/chunks/{dashboard-section.BOySJG3P.js.map → dashboard-section.DiGQXS9L.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.BVppx9kZ.js} +4 -4
- package/dist/chunks/{data-grid-template.C6Sym5we.js.map → data-grid-template.BVppx9kZ.js.map} +1 -1
- package/dist/chunks/{data-grid.By3YYFjp.js → data-grid.Djy7XjVS.js} +216 -216
- package/dist/chunks/{data-grid.By3YYFjp.js.map → data-grid.Djy7XjVS.js.map} +1 -1
- package/dist/chunks/{date-picker.B5dusL9n.js → date-picker.BWxvyK5J.js} +96 -88
- package/dist/chunks/date-picker.BWxvyK5J.js.map +1 -0
- package/dist/chunks/{date-range-picker.C_9uZ3up.js → date-range-picker.gfRJmzXn.js} +255 -274
- package/dist/chunks/date-range-picker.gfRJmzXn.js.map +1 -0
- package/dist/chunks/date-time-picker.BIl9kFLh.js +129 -0
- package/dist/chunks/date-time-picker.BIl9kFLh.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.DIhHtHG9.js} +531 -500
- package/dist/chunks/{draggable-handle.BFGaZNTT.js.map → draggable-handle.DIhHtHG9.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.CuDxdSfb.js} +3 -3
- package/dist/chunks/{dropdown-tag.CY0-p_gn.js.map → dropdown-tag.CuDxdSfb.js.map} +1 -1
- package/dist/chunks/{dropdown.Dx0HybJ8.js → dropdown.C70AlvOT.js} +375 -368
- package/dist/chunks/dropdown.C70AlvOT.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.C6ZBgizQ.js} +25 -25
- package/dist/chunks/{filter-bar.mPy_N4BF.js.map → filter-bar.C6ZBgizQ.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.m0xMmoav.js} +11 -11
- package/dist/chunks/{header-with-views.LrySsX1p.js.map → header-with-views.m0xMmoav.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.CRqYWZGS.js} +48 -49
- package/dist/chunks/input-field-password.CRqYWZGS.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.D8Enmcny.js → input-field-phone-number.DHiuL0cF.js} +13 -14
- package/dist/chunks/{input-field-phone-number.D8Enmcny.js.map → input-field-phone-number.DHiuL0cF.js.map} +1 -1
- package/dist/chunks/{input-field.CRsU2NBh.js → input-field.BkQZ6Qzl.js} +77 -74
- package/dist/chunks/input-field.BkQZ6Qzl.js.map +1 -0
- package/dist/chunks/{input-time.BSrSAN3r.js → input-time.BiOHvUEA.js} +7 -8
- package/dist/chunks/{input-time.BSrSAN3r.js.map → input-time.BiOHvUEA.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.DItyAwy1.js} +3 -3
- package/dist/chunks/{pagination.Jv60K59y.js.map → pagination.DItyAwy1.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.D-WK8eMQ.js} +10 -11
- package/dist/chunks/{search-bar.DeKlBnxE.js.map → search-bar.D-WK8eMQ.js.map} +1 -1
- package/dist/chunks/secondary-nav.C7lEDaoj.js +259 -0
- package/dist/chunks/{secondary-nav.BLF9iQOV.js.map → secondary-nav.C7lEDaoj.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.QEKU5Udp.js +256 -0
- package/dist/chunks/{tab.t1v1GxSA.js.map → tab.QEKU5Udp.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.D0s14AxT.js} +4 -4
- package/dist/chunks/{use-cached-selected-values.Bnmcr7Ji.js.map → use-cached-selected-values.D0s14AxT.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js → use-date-input-formatter.B5GQd3s2.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.BsZ_LLQu.js.map → use-date-input-formatter.B5GQd3s2.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 +170 -3
- package/package.json +7 -7
- package/dist/chunks/calendar.CCUVI1IF.js.map +0 -1
- 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-password.C2ogXvbh.js.map +0 -1
- 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
- package/dist/chunks/secondary-nav.BLF9iQOV.js +0 -223
- package/dist/chunks/tab.t1v1GxSA.js +0 -229
|
@@ -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 n, defineComponent as A, useSlots as Q, toRefs as Ie, useAttrs as De, inject as ie, nextTick as B, toRef as T } from "vue";
|
|
2
|
+
import { B as Be, d as se } 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 Ae } from "./use-has-slot.C9lQZ6nz.js";
|
|
6
|
+
import { C as ze } from "./cross-circle-fill.DTDtgLMf.js";
|
|
7
|
+
import { C as Ue } 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 We } from "./chevron-down.eYtgv5ly.js";
|
|
11
|
+
import { C as je } 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 {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
13
|
+
import { u as He } from "./aria-label.CaUURpnB.js";
|
|
14
|
+
import { u as Ye } from "./form-field.D_2g7vaP.js";
|
|
15
|
+
import { B as m, b as re, a as Ce, d as Je, u as Xe, c as Ze, e as Qe } from "./use-cached-selected-values.D0s14AxT.js";
|
|
16
|
+
import { u as Ge } from "./use-form-layout-loading.CWbjZiwP.js";
|
|
17
|
+
import { B as R, a as et } from "./keyboard-navigation.DWmhelVv.js";
|
|
18
|
+
import { B as tt } from "./directive.BBWhsNtO.js";
|
|
19
|
+
import { h as at, e as ot } from "./button-actions.D1jRC1fs.js";
|
|
20
|
+
import { F as lt } from "./field-label.CdVbAfK-.js";
|
|
21
|
+
import { E as nt } from "./error-message.CyERcfdt.js";
|
|
22
|
+
import { P as Le } from "./popper-container.CFYFCz6u.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 st = {
|
|
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
|
+
}, rt = (l, t, a, e) => {
|
|
77
|
+
const o = L(l.value), { t: s } = G();
|
|
78
78
|
Z(l, () => {
|
|
79
79
|
o.value = l.value;
|
|
80
80
|
});
|
|
81
|
-
const r =
|
|
81
|
+
const r = n(
|
|
82
82
|
() => JSON.stringify(o.value) === JSON.stringify(l.value)
|
|
83
|
-
),
|
|
83
|
+
), i = () => {
|
|
84
84
|
e(m.SELECT, o.value), e(m.CLOSE_DROPDOWN);
|
|
85
85
|
}, c = () => {
|
|
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 = n(() => [
|
|
90
90
|
{
|
|
91
|
-
title:
|
|
92
|
-
event:
|
|
91
|
+
title: s("apply"),
|
|
92
|
+
event: i,
|
|
93
93
|
disabled: r.value
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
title:
|
|
96
|
+
title: s("cancel"),
|
|
97
97
|
event: c
|
|
98
98
|
}
|
|
99
|
-
]),
|
|
100
|
-
o.value =
|
|
101
|
-
},
|
|
102
|
-
p
|
|
103
|
-
}, S = (
|
|
104
|
-
p
|
|
105
|
-
},
|
|
106
|
-
p
|
|
107
|
-
},
|
|
99
|
+
]), f = (p) => {
|
|
100
|
+
o.value = p, t.value || e(m.SELECT, p);
|
|
101
|
+
}, d = (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
|
+
}, u = () => {
|
|
108
108
|
c(), e(m.ESCAPE);
|
|
109
|
-
},
|
|
109
|
+
}, C = () => {
|
|
110
110
|
e(m.SHOW_MORE);
|
|
111
|
-
},
|
|
112
|
-
[m.SELECT]:
|
|
113
|
-
[m.SHOW_MORE]:
|
|
114
|
-
[m.TAB]:
|
|
115
|
-
[m.SPACE]:
|
|
111
|
+
}, g = {
|
|
112
|
+
[m.SELECT]: f,
|
|
113
|
+
[m.SHOW_MORE]: C,
|
|
114
|
+
[m.TAB]: d,
|
|
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: u,
|
|
125
|
+
onOutsideDropdownClick: v
|
|
126
126
|
};
|
|
127
|
-
},
|
|
128
|
-
i18n: { messages:
|
|
127
|
+
}, it = A({
|
|
128
|
+
i18n: { messages: st },
|
|
129
129
|
name: "bento-dropdown-options-container"
|
|
130
|
-
}),
|
|
131
|
-
...
|
|
130
|
+
}), dt = /* @__PURE__ */ A({
|
|
131
|
+
...it,
|
|
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: Ce.AUTOMATIC,
|
|
191
|
+
validator: (l) => Object.values(Ce).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: re.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: Le.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:
|
|
242
|
+
const e = l, o = Q(), { selectedValue: s, multiple: r } = Ie(e), i = L(null), { t: c } = G(), v = n(() => e.open && !e.disabled), b = n(() => c("noOptionsMatchThisSearch")), f = n(() => ({
|
|
243
243
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
244
|
-
})),
|
|
244
|
+
})), d = n(() => ({
|
|
245
245
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
246
|
-
})), { actions: S, internalSelectedValue:
|
|
247
|
-
var
|
|
246
|
+
})), { actions: S, internalSelectedValue: x, listeners: u, onEscapeKey: C, onOutsideDropdownClick: g } = rt(s, r, v, a), p = n(() => e != null && e.multiple ? at : Le), k = n(() => {
|
|
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,37 +268,37 @@ 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:
|
|
278
|
+
onOutsideDropdownClick: g
|
|
279
|
+
}), { __sfc: !0, slots: o, emit: a, props: e, selectedValue: s, multiple: r, dropdownOptionsListboxRef: i, t: c, isDropdownOpen: v, noResultsMessage: b, conditionalClasses: f, conditionalListboxClasses: d, actions: S, internalSelectedValue: x, listeners: u, onEscapeKey: C, onOutsideDropdownClick: g, popperContainerOrPopoverComponent: p, popperContainerOrPopoverProps: k, BentoListbox: re };
|
|
280
280
|
}
|
|
281
281
|
});
|
|
282
|
-
var
|
|
282
|
+
var ct = 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);
|
|
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,
|
|
287
|
-
return { key:
|
|
288
|
-
return [t._t(
|
|
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, s) {
|
|
287
|
+
return { key: s, fn: function(r) {
|
|
288
|
+
return [t._t(s, null, null, r)];
|
|
289
289
|
} };
|
|
290
290
|
})], null, !0) }, e.listeners))], 1)]) : t._e();
|
|
291
|
-
},
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
291
|
+
}, ut = [], pt = /* @__PURE__ */ M(
|
|
292
|
+
dt,
|
|
293
|
+
ct,
|
|
294
|
+
ut,
|
|
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 ft = pt.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 bt = /* @__PURE__ */ Symbol("dropdown small size injection key"), Te = /* @__PURE__ */ Symbol("dropdown underline style injection key"), yt = {
|
|
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
|
+
}, vt = A({
|
|
333
|
+
i18n: { messages: yt },
|
|
334
334
|
name: "dropdown-base-textbox",
|
|
335
335
|
inheritAttrs: !1
|
|
336
|
-
}),
|
|
337
|
-
...
|
|
336
|
+
}), mt = /* @__PURE__ */ A({
|
|
337
|
+
...vt,
|
|
338
338
|
props: {
|
|
339
339
|
/**
|
|
340
340
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -420,63 +420,64 @@ const ut = {
|
|
|
420
420
|
},
|
|
421
421
|
emits: [],
|
|
422
422
|
setup(l, { expose: t, emit: a }) {
|
|
423
|
-
const e = l, { t: o } = G(),
|
|
423
|
+
const e = l, { t: o } = G(), s = De(), r = Q(), i = Ae(r), c = L(null), v = q("textbox"), b = ie(Te, !1), f = n(() => ({
|
|
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
|
+
})), d = n(
|
|
429
|
+
() => g.value && s["aria-required"] ? "true" : null
|
|
430
|
+
), S = n(() => ({
|
|
430
431
|
"b-dropdown-base-textbox__input--dynamic-filtering": e.dynamicFiltering
|
|
431
|
-
})),
|
|
432
|
+
})), x = n(() => e.dynamicFiltering && !!e.value && e.open), u = n(
|
|
432
433
|
() => {
|
|
433
434
|
var O;
|
|
434
435
|
return {
|
|
435
436
|
"aria-haspopup": "listbox",
|
|
436
437
|
"aria-controls": e.ariaControls,
|
|
437
|
-
"aria-describedby": (O =
|
|
438
|
+
"aria-describedby": (O = s["aria-describedby"]) == null ? void 0 : O.toString(),
|
|
438
439
|
"aria-expanded": e.ariaExpanded ? "true" : "false",
|
|
439
440
|
"aria-labelledby": e.ariaLabelledby,
|
|
440
441
|
"aria-label": e.ariaLabelledby ? null : e.ariaLabel,
|
|
441
442
|
"aria-invalid": e.isInvalid,
|
|
442
443
|
"aria-disabled": e.disabled ? !0 : null,
|
|
443
|
-
"aria-required":
|
|
444
|
+
"aria-required": s["aria-required"]
|
|
444
445
|
};
|
|
445
446
|
}
|
|
446
|
-
),
|
|
447
|
+
), C = n(
|
|
447
448
|
() => e.multiple ? e.selectedValueItem : []
|
|
448
|
-
),
|
|
449
|
-
() => e.multiple && e.selectedValueItem &&
|
|
449
|
+
), g = n(() => e.dynamicFiltering && (e.open || e.alwaysComboboxIsInput)), p = n(() => e.selectedValueItem && !e.multiple), k = n(
|
|
450
|
+
() => e.multiple && e.selectedValueItem && C.value.length > 0 && e.showSlotContentInMultiple
|
|
450
451
|
);
|
|
451
452
|
Z(
|
|
452
|
-
() =>
|
|
453
|
+
() => g.value,
|
|
453
454
|
() => {
|
|
454
|
-
|
|
455
|
+
g.value && !e.alwaysComboboxIsInput && B(() => {
|
|
455
456
|
c.value.focus();
|
|
456
457
|
});
|
|
457
458
|
}
|
|
458
459
|
);
|
|
459
|
-
const
|
|
460
|
-
!e.disabled && !e.readonly && (a(
|
|
461
|
-
},
|
|
462
|
-
e.open && (c.value.focus(), a(
|
|
463
|
-
},
|
|
464
|
-
a(
|
|
465
|
-
},
|
|
466
|
-
!e.readonly && !e.disabled ? a(
|
|
467
|
-
},
|
|
460
|
+
const I = async () => {
|
|
461
|
+
!e.disabled && !e.readonly && (a(h.OPEN), await B(), c.value.focus());
|
|
462
|
+
}, D = () => {
|
|
463
|
+
e.open && (c.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, ""), c.value.focus();
|
|
466
|
+
}, $ = (O) => {
|
|
467
|
+
!e.readonly && !e.disabled ? a(h.INPUT, O.target.value) : (O.preventDefault(), O.stopPropagation());
|
|
468
|
+
}, N = () => {
|
|
468
469
|
c.value.focus();
|
|
469
470
|
};
|
|
470
471
|
return t({
|
|
471
|
-
focus:
|
|
472
|
-
}), { __sfc: !0, t: o, attrs:
|
|
472
|
+
focus: N
|
|
473
|
+
}), { __sfc: !0, t: o, attrs: s, slots: r, hasSlot: i, props: e, emit: a, textbox: c, textboxId: v, isUnderlineStyle: b, conditionalClasses: f, showRequiredAttribute: d, comboboxConditionalClasses: S, isFiltering: x, ariaAttributes: u, selectedValueItems: C, shouldShowInput: g, shouldShowSingleSelectSlot: p, shouldShowMultipleSlot: k, onOpenDropdown: I, onCloseDropdown: D, onToggleDropdown: F, onClearSearch: P, onInputEvent: $, focus: N, BentoTypography: Be, DropdownBaseTextboxEvent: h, CrossCircleFillIcon: ze, CrossCircleFillSmallIcon: Ue, BentoDropdownSize: U };
|
|
473
474
|
}
|
|
474
475
|
});
|
|
475
|
-
var
|
|
476
|
+
var _t = 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
|
-
|
|
498
|
-
|
|
499
|
-
|
|
497
|
+
}, ht = [], gt = /* @__PURE__ */ M(
|
|
498
|
+
mt,
|
|
499
|
+
_t,
|
|
500
|
+
ht,
|
|
500
501
|
!1,
|
|
501
502
|
null,
|
|
502
|
-
"
|
|
503
|
+
"4d2fd594"
|
|
503
504
|
);
|
|
504
|
-
const
|
|
505
|
+
const ke = gt.exports, St = A({
|
|
505
506
|
name: "dropdown-default-textbox",
|
|
506
507
|
inheritAttrs: !1
|
|
507
|
-
}),
|
|
508
|
-
...
|
|
508
|
+
}), xt = /* @__PURE__ */ A({
|
|
509
|
+
...St,
|
|
509
510
|
props: {
|
|
510
511
|
/**
|
|
511
512
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -593,94 +594,94 @@ 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(),
|
|
597
|
+
const e = l, o = Q(), s = L(null), r = n(() => ({
|
|
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
|
-
},
|
|
611
|
-
|
|
603
|
+
})), i = n(() => e.open && !e.disabled && !e.readonly), c = (u) => {
|
|
604
|
+
a("input", u);
|
|
605
|
+
}, v = (u) => {
|
|
606
|
+
a("keydown", u);
|
|
607
|
+
}, b = (u) => {
|
|
608
|
+
z(u), a("open");
|
|
609
|
+
}, f = (u) => {
|
|
610
|
+
z(u), a("close");
|
|
611
|
+
}, d = (u) => {
|
|
612
|
+
z(u), a("clear");
|
|
612
613
|
}, S = {
|
|
613
|
-
[
|
|
614
|
-
[
|
|
615
|
-
[
|
|
616
|
-
[
|
|
617
|
-
[
|
|
618
|
-
},
|
|
619
|
-
|
|
614
|
+
[h.INPUT]: c,
|
|
615
|
+
[h.OPEN]: b,
|
|
616
|
+
[h.CLOSE]: f,
|
|
617
|
+
[h.CLEAR]: d,
|
|
618
|
+
[h.KEYDOWN]: v
|
|
619
|
+
}, x = () => {
|
|
620
|
+
s.value.focus();
|
|
620
621
|
};
|
|
621
622
|
return t({
|
|
622
|
-
focus:
|
|
623
|
-
}), { __sfc: !0, emit: a, slots: o, props: e, baseTextbox:
|
|
623
|
+
focus: x
|
|
624
|
+
}), { __sfc: !0, emit: a, slots: o, props: e, baseTextbox: s, conditionalClasses: r, isDropdownOpen: i, onInput: c, onKeyDown: v, openDropdown: b, closeDropdown: f, clearValue: d, listeners: S, focus: x, DropdownBaseTextbox: ke, ChevronDownIcon: We, ChevronUpIcon: je };
|
|
624
625
|
}
|
|
625
626
|
});
|
|
626
|
-
var
|
|
627
|
+
var wt = function() {
|
|
627
628
|
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,
|
|
629
|
-
return { key:
|
|
630
|
-
return [t._t(
|
|
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, s) {
|
|
630
|
+
return { key: s, fn: function(r) {
|
|
631
|
+
return [t._t(s, null, null, r ?? {})];
|
|
631
632
|
} };
|
|
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
|
-
|
|
637
|
-
|
|
638
|
-
|
|
636
|
+
}, Ct = [], Lt = /* @__PURE__ */ M(
|
|
637
|
+
xt,
|
|
638
|
+
wt,
|
|
639
|
+
Ct,
|
|
639
640
|
!1,
|
|
640
641
|
null,
|
|
641
642
|
"bf2d43b0"
|
|
642
643
|
);
|
|
643
|
-
const
|
|
644
|
-
let
|
|
645
|
-
const
|
|
644
|
+
const Ot = Lt.exports;
|
|
645
|
+
let Oe = 0;
|
|
646
|
+
const Et = {
|
|
646
647
|
beforeCreate() {
|
|
647
|
-
this.uuid =
|
|
648
|
+
this.uuid = Oe.toString(), Oe += 1;
|
|
648
649
|
}
|
|
649
650
|
};
|
|
650
|
-
var
|
|
651
|
+
var It = 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
|
-
|
|
655
|
-
|
|
656
|
-
|
|
654
|
+
}, Dt = [], Bt = /* @__PURE__ */ M(
|
|
655
|
+
Et,
|
|
656
|
+
It,
|
|
657
|
+
Dt,
|
|
657
658
|
!1,
|
|
658
659
|
null,
|
|
659
660
|
null
|
|
660
661
|
);
|
|
661
|
-
const
|
|
662
|
-
let
|
|
663
|
-
const
|
|
662
|
+
const At = Bt.exports;
|
|
663
|
+
let Ee = 0;
|
|
664
|
+
const Tt = {
|
|
664
665
|
beforeCreate() {
|
|
665
|
-
this.uuid =
|
|
666
|
+
this.uuid = Ee.toString(), Ee += 1;
|
|
666
667
|
}
|
|
667
668
|
};
|
|
668
|
-
var
|
|
669
|
+
var kt = 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
|
-
|
|
673
|
-
|
|
674
|
-
|
|
672
|
+
}, Rt = [], Nt = /* @__PURE__ */ M(
|
|
673
|
+
Tt,
|
|
674
|
+
kt,
|
|
675
|
+
Rt,
|
|
675
676
|
!1,
|
|
676
677
|
null,
|
|
677
678
|
null
|
|
678
679
|
);
|
|
679
|
-
const
|
|
680
|
+
const Mt = Nt.exports, Ft = A({
|
|
680
681
|
name: "dropdown-small-textbox",
|
|
681
682
|
inheritAttrs: !1
|
|
682
|
-
}),
|
|
683
|
-
...
|
|
683
|
+
}), Pt = /* @__PURE__ */ A({
|
|
684
|
+
...Ft,
|
|
684
685
|
props: {
|
|
685
686
|
/**
|
|
686
687
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -737,136 +738,137 @@ 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), s = ie(Te, !1), r = n(() => ({
|
|
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": s
|
|
746
|
+
})), i = n(() => e.open && !e.disabled && !e.readonly), c = (u) => {
|
|
747
|
+
a("input", u);
|
|
748
|
+
}, v = (u) => {
|
|
749
|
+
a("keydown", u);
|
|
750
|
+
}, b = (u) => {
|
|
751
|
+
z(u), a("open");
|
|
752
|
+
}, f = (u) => {
|
|
753
|
+
z(u), a("close");
|
|
754
|
+
}, d = (u) => {
|
|
755
|
+
z(u), a("clear");
|
|
756
|
+
}, S = {
|
|
757
|
+
[h.INPUT]: c,
|
|
758
|
+
[h.OPEN]: b,
|
|
759
|
+
[h.CLOSE]: f,
|
|
760
|
+
[h.CLEAR]: d,
|
|
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, conditionalClasses:
|
|
766
|
+
focus: x
|
|
767
|
+
}), { __sfc: !0, emit: a, props: e, baseTextbox: o, isUnderlineStyle: s, conditionalClasses: r, isDropdownOpen: i, onInput: c, onKeyDown: v, openDropdown: b, closeDropdown: f, clearValue: d, listeners: S, focus: x, BentoDropdownSize: U, DropdownBaseTextbox: ke, ChevronDownSmallIcon: At, ChevronUpSmallIcon: Mt };
|
|
766
768
|
}
|
|
767
769
|
});
|
|
768
|
-
var
|
|
770
|
+
var $t = 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
|
-
|
|
775
|
-
|
|
776
|
-
|
|
775
|
+
}, Vt = [], Kt = /* @__PURE__ */ M(
|
|
776
|
+
Pt,
|
|
777
|
+
$t,
|
|
778
|
+
Vt,
|
|
777
779
|
!1,
|
|
778
780
|
null,
|
|
779
|
-
"
|
|
781
|
+
"fa225e76"
|
|
780
782
|
);
|
|
781
|
-
const
|
|
783
|
+
const qt = Kt.exports, zt = (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((i) => i.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: i }) => a.push(i ?? r));
|
|
787
789
|
}
|
|
788
790
|
return l.value.find((o) => o.value === e.value) && a.push(e.displayValue ?? e.label), a;
|
|
789
|
-
}, []).join(", "),
|
|
790
|
-
const o =
|
|
791
|
+
}, []).join(", "), Ut = ({ items: l, placeholder: t, selectedValues: a, isMultiSelect: e }) => {
|
|
792
|
+
const o = n(
|
|
791
793
|
() => e.value && l.value.find((r) => {
|
|
792
|
-
var
|
|
793
|
-
return (
|
|
794
|
+
var i;
|
|
795
|
+
return (i = r.items) == null ? void 0 : i.length;
|
|
794
796
|
})
|
|
795
797
|
);
|
|
796
|
-
return
|
|
797
|
-
},
|
|
798
|
+
return n(() => a.value.length ? o.value ? zt(a, l) : a.value.map(({ label: r, displayValue: i }) => i ?? r).join(", ") : t.value || null);
|
|
799
|
+
}, Re = (l) => {
|
|
798
800
|
var t;
|
|
799
801
|
(t = l.value.$children) == null || t[0].$refs.textbox.focus();
|
|
800
|
-
},
|
|
802
|
+
}, Wt = ({
|
|
801
803
|
inputContainerRef: l,
|
|
802
804
|
optionsContainerRef: t,
|
|
803
805
|
selectedValueIndex: a,
|
|
804
806
|
isDropdownOpen: e,
|
|
805
807
|
isDynamicFltering: o,
|
|
806
|
-
items:
|
|
808
|
+
items: s,
|
|
807
809
|
isMultiple: r,
|
|
808
|
-
totalItemCount:
|
|
810
|
+
totalItemCount: i,
|
|
809
811
|
isVirtualScroll: c
|
|
810
|
-
},
|
|
811
|
-
const
|
|
812
|
+
}, v, b, f) => {
|
|
813
|
+
const d = async (y) => {
|
|
812
814
|
var w;
|
|
813
|
-
o.value && await
|
|
814
|
-
}, S = async (
|
|
815
|
+
o.value && await B(), (w = s.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() : d(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
|
+
}, u = async (y) => {
|
|
827
829
|
var w;
|
|
828
|
-
await ((w = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : w.navigateToItem(
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
c ?
|
|
830
|
+
await ((w = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : w.navigateToItem(y));
|
|
831
|
+
}, C = (y) => {
|
|
832
|
+
B(() => {
|
|
833
|
+
c ? u(y) : (x(y), d(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(c ? i.value - 1 : s.value.length - 1);
|
|
838
840
|
});
|
|
839
|
-
},
|
|
840
|
-
|
|
841
|
-
}, I = ({ detail:
|
|
842
|
-
|
|
843
|
-
},
|
|
844
|
-
|
|
841
|
+
}, k = ({ 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(), Re(l));
|
|
855
857
|
};
|
|
856
|
-
return
|
|
857
|
-
[
|
|
858
|
-
[
|
|
859
|
-
[
|
|
860
|
-
[
|
|
861
|
-
...o.value ? {} : { [
|
|
862
|
-
[
|
|
863
|
-
...o.value ? {} : { [
|
|
864
|
-
[
|
|
858
|
+
return n(() => ({
|
|
859
|
+
[R.ARROW_DOWN]: k,
|
|
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
|
+
}, jt = ({ inputContainerRef: l, isDropdownOpen: t }, a) => {
|
|
867
869
|
const e = () => {
|
|
868
|
-
t.value && a(),
|
|
869
|
-
|
|
870
|
+
t.value && a(), B(() => {
|
|
871
|
+
Re(l);
|
|
870
872
|
});
|
|
871
873
|
};
|
|
872
874
|
return {
|
|
@@ -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
|
|
881
|
-
return Z(
|
|
881
|
+
function Ht(l, t, a, e, o) {
|
|
882
|
+
const s = L(l), r = L(t), i = (b, f = []) => f.flatMap((d) => d.label.toLocaleLowerCase().includes(b) ? e != null && e.value && d.items ? [...i(b, d.items)] : [d, ...i(b, d.items)] : d.items ? [...i(b, d.items)] : []), c = a !== void 0 ? Je(() => a(s.value), o ?? 300) : void 0;
|
|
883
|
+
return Z(s, () => {
|
|
882
884
|
c !== void 0 && c();
|
|
883
|
-
}),
|
|
884
|
-
if (!
|
|
885
|
+
}), n(() => {
|
|
886
|
+
if (!s.value || a !== void 0)
|
|
885
887
|
return r.value;
|
|
886
|
-
const
|
|
887
|
-
return
|
|
888
|
+
const b = s.value.toLocaleLowerCase();
|
|
889
|
+
return i(b, r.value);
|
|
888
890
|
});
|
|
889
891
|
}
|
|
890
|
-
const
|
|
892
|
+
const Yt = {
|
|
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
|
+
}, Jt = A({
|
|
944
|
+
i18n: { messages: Yt },
|
|
943
945
|
name: "b-dropdown",
|
|
944
946
|
components: {
|
|
945
|
-
DropdownInputDefault:
|
|
946
|
-
DropdownInputSmall:
|
|
947
|
+
DropdownInputDefault: Ot,
|
|
948
|
+
DropdownInputSmall: qt
|
|
947
949
|
},
|
|
948
950
|
model: { prop: "modelValue" }
|
|
949
|
-
}),
|
|
950
|
-
...
|
|
951
|
+
}), Xt = /* @__PURE__ */ A({
|
|
952
|
+
...Jt,
|
|
951
953
|
props: {
|
|
952
954
|
description: { default: null },
|
|
953
955
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -968,12 +970,13 @@ 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: re.props.lazyLoadType.default },
|
|
972
974
|
multiple: { type: Boolean, default: !1 },
|
|
973
975
|
search: { default: void 0 },
|
|
974
976
|
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
975
977
|
size: { default: null },
|
|
976
978
|
staticCategories: { type: Boolean, default: !1 },
|
|
979
|
+
teleport: { default: () => ({ disabled: !0 }) },
|
|
977
980
|
value: { default: null },
|
|
978
981
|
modelValue: { default: null },
|
|
979
982
|
virtualScroll: { type: Boolean, default: !1 },
|
|
@@ -981,168 +984,172 @@ const Ut = {
|
|
|
981
984
|
},
|
|
982
985
|
emits: ["input", "update:model-value", "show-more", "open"],
|
|
983
986
|
setup(l, { expose: t, emit: a }) {
|
|
984
|
-
var
|
|
985
|
-
const e = l, o =
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
), F =
|
|
987
|
+
var Se, xe;
|
|
988
|
+
const e = l, o = De(), s = Q(), r = Ae(s), { t: i } = G(), { emitValue: c } = Ye(a), v = L(null), b = L(null), f = L(null), d = L(!1), S = q("bento-dropdown-options-container"), x = q("dropdown-label"), u = q("dropdown-description"), C = q("dropdown-error"), { isReadOnly: g } = Ge(T(e, "readonly")), p = n(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: k, cachedListboxSelectedValues: I, setCachedValues: D } = Xe(
|
|
989
|
+
T(e, "items"),
|
|
990
|
+
p,
|
|
991
|
+
T(e, "multiple"),
|
|
992
|
+
T(e, "enableValueLabelPair")
|
|
993
|
+
), F = L(o["aria-label"]), P = L(o["aria-describedby"]), { ariaLabel: $, label: N } = Ie(e), O = n(() => i("ariaLabelFallback")), ee = He({
|
|
991
994
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
992
|
-
ariaLabel:
|
|
993
|
-
label:
|
|
994
|
-
defaultFallback:
|
|
995
|
-
}),
|
|
995
|
+
ariaLabel: $.value || F,
|
|
996
|
+
label: N,
|
|
997
|
+
defaultFallback: O
|
|
998
|
+
}), y = e.size === U.SMALL || ie(bt, !1), w = n(() => y ? U.SMALL : U.DEFAULT), H = n(() => ({
|
|
996
999
|
"b-dropdown--condensed": e.condensed
|
|
997
|
-
})), Y =
|
|
1000
|
+
})), Y = n(() => ({
|
|
998
1001
|
"b-dropdown__description--error": !!e.errorMessage
|
|
999
|
-
})),
|
|
1000
|
-
|
|
1002
|
+
})), V = L(""), W = T(e, "items"), de = T(e, "staticCategories"), J = Ht(
|
|
1003
|
+
V,
|
|
1001
1004
|
W,
|
|
1002
|
-
(
|
|
1003
|
-
|
|
1004
|
-
(
|
|
1005
|
-
),
|
|
1005
|
+
(Se = e == null ? void 0 : e.search) == null ? void 0 : Se.searchEvent,
|
|
1006
|
+
de,
|
|
1007
|
+
(xe = e == null ? void 0 : e.search) == null ? void 0 : xe.debounceTime
|
|
1008
|
+
), te = n(() => e.dynamicFiltering && !!V.value), Ne = Ut({
|
|
1006
1009
|
items: W,
|
|
1007
|
-
placeholder:
|
|
1008
|
-
isMultiSelect:
|
|
1009
|
-
selectedValues:
|
|
1010
|
-
}),
|
|
1011
|
-
if (e != null && e.multiple && Array.isArray(
|
|
1010
|
+
placeholder: T(e, "placeholder"),
|
|
1011
|
+
isMultiSelect: T(e, "multiple"),
|
|
1012
|
+
selectedValues: k
|
|
1013
|
+
}), Me = n(() => {
|
|
1014
|
+
if (e != null && e.multiple && Array.isArray(p.value))
|
|
1012
1015
|
return e.items.filter(
|
|
1013
|
-
({ value:
|
|
1016
|
+
({ value: _ }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(_)
|
|
1014
1017
|
);
|
|
1015
1018
|
if (!e.multiple && e.staticCategories) {
|
|
1016
|
-
const
|
|
1019
|
+
const _ = e.items.find(
|
|
1017
1020
|
(j) => {
|
|
1018
|
-
var
|
|
1019
|
-
return (
|
|
1021
|
+
var we;
|
|
1022
|
+
return (we = j.items) == null ? void 0 : we.some((qe) => qe.value === p.value);
|
|
1020
1023
|
}
|
|
1021
1024
|
);
|
|
1022
|
-
return (
|
|
1025
|
+
return (_ ? _.items.find((j) => j.value === p.value) : e.items.find(({ value: j }) => j === p.value)) ?? null;
|
|
1023
1026
|
}
|
|
1024
|
-
return e.items.find(({ value:
|
|
1025
|
-
}),
|
|
1026
|
-
const
|
|
1027
|
-
return
|
|
1028
|
-
}), { isMultiLevelSelect:
|
|
1027
|
+
return e.items.find(({ value: _ }) => _ === p.value);
|
|
1028
|
+
}), ce = n(() => {
|
|
1029
|
+
const _ = J.value.findIndex(({ value: K }) => e.enableValueLabelPair ? p.value.value === K : p.value === K);
|
|
1030
|
+
return _ > -1 ? _ : 0;
|
|
1031
|
+
}), { isMultiLevelSelect: ae, flattenedItemsList: ue } = Ze(W), pe = n(() => ae.value && !e.staticCategories), fe = n(() => pe.value ? "treeitem" : "option"), Fe = n(() => {
|
|
1029
1032
|
if (e.multiple) {
|
|
1030
|
-
const
|
|
1031
|
-
return
|
|
1033
|
+
const _ = Array.isArray(p.value) ? p.value.length : 0, K = ae.value ? ue.value.length : W.value.length;
|
|
1034
|
+
return _ === 0 ? null : !e.hasMoreItems && K > 0 && K === _ ? i("all") : _;
|
|
1032
1035
|
}
|
|
1033
1036
|
return null;
|
|
1034
|
-
}),
|
|
1037
|
+
}), Pe = n(
|
|
1035
1038
|
() => [
|
|
1036
|
-
e.description ?
|
|
1039
|
+
e.description ? u : null,
|
|
1037
1040
|
P.value,
|
|
1038
|
-
e.errorMessage ?
|
|
1041
|
+
e.errorMessage ? C : null
|
|
1039
1042
|
].filter(Boolean).join(" ") || null
|
|
1040
|
-
),
|
|
1041
|
-
var
|
|
1042
|
-
return (
|
|
1043
|
-
}), { visibleDomOptions:
|
|
1044
|
-
|
|
1043
|
+
), oe = n(() => {
|
|
1044
|
+
var _;
|
|
1045
|
+
return (_ = f.value) == null ? void 0 : _.$el;
|
|
1046
|
+
}), { visibleDomOptions: be, updateVisibleDomOptions: le } = Qe(
|
|
1047
|
+
oe,
|
|
1045
1048
|
J,
|
|
1046
|
-
|
|
1047
|
-
),
|
|
1048
|
-
|
|
1049
|
-
|
|
1049
|
+
fe
|
|
1050
|
+
), ye = () => {
|
|
1051
|
+
g.value || (d.value = !0, B(() => {
|
|
1052
|
+
le();
|
|
1050
1053
|
}));
|
|
1051
1054
|
}, X = () => {
|
|
1052
|
-
|
|
1053
|
-
},
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
}),
|
|
1057
|
-
}, Re = () => {
|
|
1058
|
-
ee.value && ($.value = ""), i.value && (i.value = !1, p.value.onOutsideDropdownClick());
|
|
1059
|
-
}, ve = async (h) => {
|
|
1060
|
-
e.multiple || ($.value = "", i.value = !1), A(h), c(I.value), e.multiple || (await D(), oe());
|
|
1055
|
+
d.value = !1;
|
|
1056
|
+
}, ve = () => {
|
|
1057
|
+
g.value || (d.value = !d.value, B(() => {
|
|
1058
|
+
le();
|
|
1059
|
+
}), te.value && (V.value = ""));
|
|
1061
1060
|
}, me = () => {
|
|
1061
|
+
te.value && (V.value = ""), d.value && (d.value = !1, f.value.onOutsideDropdownClick());
|
|
1062
|
+
}, $e = n(() => [
|
|
1063
|
+
me,
|
|
1064
|
+
{
|
|
1065
|
+
ignore: [oe]
|
|
1066
|
+
}
|
|
1067
|
+
]), _e = async (_) => {
|
|
1068
|
+
e.multiple || (V.value = "", d.value = !1), D(_), c(I.value), e.multiple || (await B(), ne());
|
|
1069
|
+
}, he = () => {
|
|
1062
1070
|
a(m.SHOW_MORE);
|
|
1063
|
-
},
|
|
1071
|
+
}, Ve = Wt(
|
|
1064
1072
|
{
|
|
1065
|
-
inputContainerRef:
|
|
1066
|
-
optionsContainerRef:
|
|
1067
|
-
selectedValueIndex:
|
|
1068
|
-
isDropdownOpen:
|
|
1069
|
-
isDynamicFltering:
|
|
1070
|
-
items:
|
|
1073
|
+
inputContainerRef: v,
|
|
1074
|
+
optionsContainerRef: f,
|
|
1075
|
+
selectedValueIndex: ce,
|
|
1076
|
+
isDropdownOpen: d,
|
|
1077
|
+
isDynamicFltering: T(e, "dynamicFiltering"),
|
|
1078
|
+
items: be,
|
|
1071
1079
|
isMultiple: e.multiple,
|
|
1072
|
-
totalItemCount:
|
|
1080
|
+
totalItemCount: n(() => J.value.length),
|
|
1073
1081
|
isVirtualScroll: !(e != null && e.multiple) && (e == null ? void 0 : e.virtualScroll) !== !1 && (e == null ? void 0 : e.lazyLoadType) === "none"
|
|
1074
1082
|
},
|
|
1083
|
+
ve,
|
|
1075
1084
|
ye,
|
|
1076
|
-
be,
|
|
1077
1085
|
X
|
|
1078
|
-
),
|
|
1086
|
+
), ge = jt(
|
|
1079
1087
|
{
|
|
1080
|
-
inputContainerRef:
|
|
1081
|
-
isDropdownOpen:
|
|
1088
|
+
inputContainerRef: v,
|
|
1089
|
+
isDropdownOpen: d
|
|
1082
1090
|
},
|
|
1083
1091
|
X
|
|
1084
|
-
),
|
|
1092
|
+
), Ke = {
|
|
1085
1093
|
[m.CLOSE_DROPDOWN]: X,
|
|
1086
|
-
[m.SELECT]:
|
|
1087
|
-
[m.SHOW_MORE]:
|
|
1088
|
-
...
|
|
1094
|
+
[m.SELECT]: _e,
|
|
1095
|
+
[m.SHOW_MORE]: he,
|
|
1096
|
+
...ge
|
|
1089
1097
|
};
|
|
1090
|
-
e.error &&
|
|
1098
|
+
e.error && se(
|
|
1091
1099
|
'BentoDropdown "error" property',
|
|
1092
1100
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
1093
1101
|
Having the field as "undefined" will hide/remove the error.
|
|
1094
1102
|
<bento-dropdown errorMessage="Error message text" />`,
|
|
1095
1103
|
"2.0.0"
|
|
1096
|
-
), e.size &&
|
|
1104
|
+
), e.size && se('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), e.value && se(
|
|
1097
1105
|
'BentoDropdown "value" property',
|
|
1098
1106
|
`The use of "value" prop in "BentoDropdown" is no longer supported.
|
|
1099
1107
|
Use the "v-model" or "model-value" property instead.`,
|
|
1100
1108
|
"2.0.0"
|
|
1101
1109
|
);
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1110
|
+
const ne = () => {
|
|
1111
|
+
v.value.focus();
|
|
1104
1112
|
};
|
|
1105
1113
|
return Z(
|
|
1106
|
-
() =>
|
|
1107
|
-
(
|
|
1108
|
-
|
|
1114
|
+
() => d.value,
|
|
1115
|
+
(_) => {
|
|
1116
|
+
_ && a("open");
|
|
1109
1117
|
}
|
|
1110
1118
|
), t({
|
|
1111
|
-
focus:
|
|
1112
|
-
}), { __sfc: !0, attrs: o, slots:
|
|
1119
|
+
focus: ne
|
|
1120
|
+
}), { __sfc: !0, attrs: o, slots: s, hasSlot: r, props: e, emit: a, t: i, emitValue: c, inputContainerRef: v, inputContainerRefWrapper: b, optionsContainerRef: f, isDropdownOpen: d, dropdownOptionsContainerId: S, labelId: x, descriptionId: u, errorId: C, isReadOnly: g, dropdownValue: p, cachedSelectedListboxOptions: k, 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: de, filteredItems: J, isSearching: te, displayValue: Ne, selectedValueItem: Me, selectedValueIndex: ce, isMultiLevelSelect: ae, flattenedItemsList: ue, isTreePattern: pe, computedOptionRole: fe, additionalItemsSelected: Fe, ariaDescribedBy: Pe, listboxRef: oe, visibleDomOptions: be, updateVisibleDomOptions: le, openDropdown: ye, closeDropdown: X, toggleDropdown: ve, clickOutsideDropdown: me, clickOutsideDropdownOptions: $e, onOptionSelected: _e, emitShowMoreEvent: he, textboxKeyboardNavigationListeners: Ve, listboxKeyboardNavigationListeners: ge, listboxListeners: Ke, focus: ne, BentoDropdownOptionsContainer: ft, BentoTypography: Be, ErrorMessage: nt, FieldLabel: lt, BentoTeleport: ot, vBentoClickOutsideDirective: tt, vBentoKeyboardNavigationDirective: et };
|
|
1113
1121
|
}
|
|
1114
1122
|
});
|
|
1115
|
-
var
|
|
1123
|
+
var Zt = function() {
|
|
1124
|
+
var o, s;
|
|
1116
1125
|
var t = this, a = t._self._c, e = t._self._setupProxy;
|
|
1117
|
-
return a("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.
|
|
1118
|
-
e.searchTerm =
|
|
1119
|
-
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(
|
|
1120
|
-
return { key:
|
|
1121
|
-
return [t._t(
|
|
1126
|
+
return a("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdownOptions, expression: "clickOutsideDropdownOptions" }], 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(r) {
|
|
1127
|
+
e.searchTerm = r;
|
|
1128
|
+
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(r, i) {
|
|
1129
|
+
return { key: i, fn: function(c) {
|
|
1130
|
+
return [t._t(i, null, null, c)];
|
|
1122
1131
|
} };
|
|
1123
|
-
})], 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(
|
|
1124
|
-
return { key:
|
|
1125
|
-
return [t._t(
|
|
1132
|
+
})], null, !0) })], 1), e.inputContainerRef ? a(e.BentoTeleport, { attrs: { disabled: (o = t.teleport) == null ? void 0 : o.disabled, to: (s = t.teleport) == null ? void 0 : s.to } }, [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(r, i) {
|
|
1133
|
+
return { key: i, fn: function(c) {
|
|
1134
|
+
return [t._t(i, null, null, c)];
|
|
1126
1135
|
} };
|
|
1127
|
-
})], 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() {
|
|
1136
|
+
})], null, !0) }, e.listboxListeners))], 1) : 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
1137
|
return [t._v(" " + t._s(t.description) + " ")];
|
|
1129
1138
|
})], 2) : t._e()], 1);
|
|
1130
|
-
},
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1139
|
+
}, Qt = [], Gt = /* @__PURE__ */ M(
|
|
1140
|
+
Xt,
|
|
1141
|
+
Zt,
|
|
1142
|
+
Qt,
|
|
1134
1143
|
!1,
|
|
1135
1144
|
null,
|
|
1136
|
-
"
|
|
1145
|
+
"a36ac3b0"
|
|
1137
1146
|
);
|
|
1138
|
-
const
|
|
1147
|
+
const xa = Gt.exports;
|
|
1139
1148
|
export {
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
ga as c,
|
|
1146
|
-
zt as u
|
|
1149
|
+
xa as B,
|
|
1150
|
+
Ot as D,
|
|
1151
|
+
U as a,
|
|
1152
|
+
bt as b,
|
|
1153
|
+
Ht as u
|
|
1147
1154
|
};
|
|
1148
|
-
//# sourceMappingURL=dropdown.
|
|
1155
|
+
//# sourceMappingURL=dropdown.C70AlvOT.js.map
|