@adyen/bento-vue2 1.45.0 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +16661 -18774
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{accordion-item.CzKttO4w.js → accordion-item.BjXzREaK.js} +5 -5
- package/dist/chunks/{accordion-item.CzKttO4w.js.map → accordion-item.BjXzREaK.js.map} +1 -1
- package/dist/chunks/{action-bar.BXemSuq4.js → action-bar.e_2fmyN_.js} +7 -7
- package/dist/chunks/{action-bar.BXemSuq4.js.map → action-bar.e_2fmyN_.js.map} +1 -1
- package/dist/chunks/{alert.CAIp-87f.js → alert.BcfhueIA.js} +3 -3
- package/dist/chunks/{alert.CAIp-87f.js.map → alert.BcfhueIA.js.map} +1 -1
- package/dist/chunks/{avatar.BgwjpLQO.js → avatar.DXzyWKsI.js} +2 -2
- package/dist/chunks/{avatar.BgwjpLQO.js.map → avatar.DXzyWKsI.js.map} +1 -1
- package/dist/chunks/{base-button.-gx_u8Bd.js → base-button.BeMKxkgK.js} +2 -2
- package/dist/chunks/{base-button.-gx_u8Bd.js.map → base-button.BeMKxkgK.js.map} +1 -1
- package/dist/chunks/{base-modal.4JSNBM4T.js → base-modal.UPLi477L.js} +18 -18
- package/dist/chunks/{base-modal.4JSNBM4T.js.map → base-modal.UPLi477L.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.ieopdfI7.js → button-actions-with-menu.CyNvhDxN.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.ieopdfI7.js.map → button-actions-with-menu.CyNvhDxN.js.map} +1 -1
- package/dist/chunks/{button-actions.CtFB6iRj.js → button-actions.BaypoF5i.js} +3 -3
- package/dist/chunks/{button-actions.CtFB6iRj.js.map → button-actions.BaypoF5i.js.map} +1 -1
- package/dist/chunks/{button.BX6ZJxF7.js → button.Bx8WC-dy.js} +3 -3
- package/dist/chunks/{button.BX6ZJxF7.js.map → button.Bx8WC-dy.js.map} +1 -1
- package/dist/chunks/{calendar.BouORZfb.js → calendar.LXRuFfcw.js} +9 -9
- package/dist/chunks/{calendar.BouORZfb.js.map → calendar.LXRuFfcw.js.map} +1 -1
- package/dist/chunks/{card.BabmUkTG.js → card.INSvvGNH.js} +6 -6
- package/dist/chunks/{card.BabmUkTG.js.map → card.INSvvGNH.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DbLznnsa.js → checkbox-group.BNVnOYKH.js} +7 -7
- package/dist/chunks/{checkbox-group.DbLznnsa.js.map → checkbox-group.BNVnOYKH.js.map} +1 -1
- package/dist/chunks/{checkbox.fhQLs-NN.js → checkbox.CcwY2CMn.js} +5 -5
- package/dist/chunks/{checkbox.fhQLs-NN.js.map → checkbox.CcwY2CMn.js.map} +1 -1
- package/dist/chunks/{chevron-left.PIu6yPqe.js → chevron-left.CtnrsqUy.js} +3 -3
- package/dist/chunks/{chevron-left.PIu6yPqe.js.map → chevron-left.CtnrsqUy.js.map} +1 -1
- package/dist/chunks/{chevron-up.DVfo78kV.js → chevron-up.B2uWhZf7.js} +3 -3
- package/dist/chunks/{chevron-up.DVfo78kV.js.map → chevron-up.B2uWhZf7.js.map} +1 -1
- package/dist/chunks/{code-snippet.5iJcUZSo.js → code-snippet.Bs7wIGi8.js} +113 -83
- package/dist/chunks/code-snippet.Bs7wIGi8.js.map +1 -0
- package/dist/chunks/{codemirror.CXFEqvAi.js → codemirror.OjJ-3ixa.js} +5180 -4862
- package/dist/chunks/codemirror.OjJ-3ixa.js.map +1 -0
- package/dist/chunks/{controls-group.CnXzOQkX.js → controls-group.CIdhlTk3.js} +3 -3
- package/dist/chunks/{controls-group.CnXzOQkX.js.map → controls-group.CIdhlTk3.js.map} +1 -1
- package/dist/chunks/{copy.DN0tClPm.js → copy.BakPR7GI.js} +4 -4
- package/dist/chunks/{copy.DN0tClPm.js.map → copy.BakPR7GI.js.map} +1 -1
- package/dist/chunks/{country.Bft91V1L.js → country.BegULkAC.js} +3 -3
- package/dist/chunks/{country.Bft91V1L.js.map → country.BegULkAC.js.map} +1 -1
- package/dist/chunks/{currency.BmI4Sqy5.js → currency.P7Psn_SK.js} +2 -2
- package/dist/chunks/{currency.BmI4Sqy5.js.map → currency.P7Psn_SK.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DYXZhtop.js → dashboard-section.DUN8FB74.js} +5 -5
- package/dist/chunks/{dashboard-section.DYXZhtop.js.map → dashboard-section.DUN8FB74.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BvSZS1-m.js → dashed-underline.BDK3yEtw.js} +4 -4
- package/dist/chunks/{dashed-underline.BvSZS1-m.js.map → dashed-underline.BDK3yEtw.js.map} +1 -1
- package/dist/chunks/{data-grid-template.Du92TEFY.js → data-grid-template.BO2v-T1n.js} +4 -4
- package/dist/chunks/{data-grid-template.Du92TEFY.js.map → data-grid-template.BO2v-T1n.js.map} +1 -1
- package/dist/chunks/{data-grid.Kwtf1DMq.js → data-grid.NkQC0etq.js} +44 -44
- package/dist/chunks/{data-grid.Kwtf1DMq.js.map → data-grid.NkQC0etq.js.map} +1 -1
- package/dist/chunks/{date-picker.B7mTNghB.js → date-picker.DFgjvQgX.js} +11 -11
- package/dist/chunks/{date-picker.B7mTNghB.js.map → date-picker.DFgjvQgX.js.map} +1 -1
- package/dist/chunks/{date-range-picker.DPLri9D-.js → date-range-picker.BBC3TGYw.js} +241 -241
- package/dist/chunks/{date-range-picker.DPLri9D-.js.map → date-range-picker.BBC3TGYw.js.map} +1 -1
- package/dist/chunks/{date.1zs9CRhw.js → date.BQ29-2L1.js} +4 -2
- package/dist/chunks/{date.1zs9CRhw.js.map → date.BQ29-2L1.js.map} +1 -1
- package/dist/chunks/{dialog-page.DcJ7LaOE.js → dialog-page.Da2cxzZm.js} +31 -32
- package/dist/chunks/{dialog-page.DcJ7LaOE.js.map → dialog-page.Da2cxzZm.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.DBoSso4J.js → dropdown-default-textbox.CrylDCEX.js} +5 -5
- package/dist/chunks/{dropdown-default-textbox.DBoSso4J.js.map → dropdown-default-textbox.CrylDCEX.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.XIlES6IT.js → dropdown-tag.xVgcIWXL.js} +6 -6
- package/dist/chunks/{dropdown-tag.XIlES6IT.js.map → dropdown-tag.xVgcIWXL.js.map} +1 -1
- package/dist/chunks/{dropdown.BqsoncJr.js → dropdown.BkLc07G8.js} +196 -192
- package/dist/chunks/dropdown.BkLc07G8.js.map +1 -0
- package/dist/chunks/{empty-state.1TyzB5ju.js → empty-state.B6wjtgR0.js} +5 -5
- package/dist/chunks/{empty-state.1TyzB5ju.js.map → empty-state.B6wjtgR0.js.map} +1 -1
- package/dist/chunks/{error-message.Ccc1sTTp.js → error-message.Brg-AZjT.js} +3 -3
- package/dist/chunks/{error-message.Ccc1sTTp.js.map → error-message.Brg-AZjT.js.map} +1 -1
- package/dist/chunks/{es6.jIyAPBgt.js → es6.D11bE5vq.js} +6 -6
- package/dist/chunks/{es6.jIyAPBgt.js.map → es6.D11bE5vq.js.map} +1 -1
- package/dist/chunks/file-uploader.BePx7fcJ.js +1879 -0
- package/dist/chunks/file-uploader.BePx7fcJ.js.map +1 -0
- package/dist/chunks/{filter-bar.DT_-lVmf.js → filter-bar.BbVGpEJx.js} +48 -48
- package/dist/chunks/{filter-bar.DT_-lVmf.js.map → filter-bar.BbVGpEJx.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.IPM3AzHS.js → fixed-scroller.BE1hWLr6.js} +4 -4
- package/dist/chunks/{fixed-scroller.IPM3AzHS.js.map → fixed-scroller.BE1hWLr6.js.map} +1 -1
- package/dist/chunks/{focus-trap.CGypVwG6.js → focus-trap.DA_1lCcM.js} +2 -2
- package/dist/chunks/{focus-trap.CGypVwG6.js.map → focus-trap.DA_1lCcM.js.map} +1 -1
- package/dist/chunks/{footer-actions.D0uH9JWq.js → footer-actions.O24MYRgM.js} +4 -4
- package/dist/chunks/{footer-actions.D0uH9JWq.js.map → footer-actions.O24MYRgM.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DN0jonFa.js → form-layout-title.DRuBsptB.js} +3 -3
- package/dist/chunks/{form-layout-title.DN0jonFa.js.map → form-layout-title.DRuBsptB.js.map} +1 -1
- package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.D-HFI38h.js} +2 -2
- package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.D-HFI38h.js.map} +1 -1
- package/dist/chunks/{header.BvZxtIOD.js → header.Bbwnv6Ei.js} +66 -66
- package/dist/chunks/{header.BvZxtIOD.js.map → header.Bbwnv6Ei.js.map} +1 -1
- package/dist/chunks/{index.D8ivUe7P.js → index.B5Tq465X.js} +5 -5
- package/dist/chunks/{index.D8ivUe7P.js.map → index.B5Tq465X.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.DEjsASNU.js → info-icon-with-popover.Cd3RQWUu.js} +4 -4
- package/dist/chunks/{info-icon-with-popover.DEjsASNU.js.map → info-icon-with-popover.Cd3RQWUu.js.map} +1 -1
- package/dist/chunks/{info-icon.0d0GzDe2.js → info-icon.BnSZeQm8.js} +3 -3
- package/dist/chunks/{info-icon.0d0GzDe2.js.map → info-icon.BnSZeQm8.js.map} +1 -1
- package/dist/chunks/{input-field-password.HRDEb0jL.js → input-field-password.CvKC9xjJ.js} +10 -10
- package/dist/chunks/{input-field-password.HRDEb0jL.js.map → input-field-password.CvKC9xjJ.js.map} +1 -1
- package/dist/chunks/input-field.Dgop3JWW.js +231 -0
- package/dist/chunks/input-field.Dgop3JWW.js.map +1 -0
- package/dist/chunks/{inspector.types.2YEArjPi.js → inspector.types.j1usQ6FN.js} +5 -5
- package/dist/chunks/{inspector.types.2YEArjPi.js.map → inspector.types.j1usQ6FN.js.map} +1 -1
- package/dist/chunks/{layout-row.BfS-cPky.js → layout-row.DAeZh7Rv.js} +3 -3
- package/dist/chunks/{layout-row.BfS-cPky.js.map → layout-row.DAeZh7Rv.js.map} +1 -1
- package/dist/chunks/{link.UOEUR35A.js → link.B2DE2ryp.js} +2 -2
- package/dist/chunks/{link.UOEUR35A.js.map → link.B2DE2ryp.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Co0ycEdQ.js → listbox-option-tag.drC_50fU.js} +3 -3
- package/dist/chunks/{listbox-option-tag.Co0ycEdQ.js.map → listbox-option-tag.drC_50fU.js.map} +1 -1
- package/dist/chunks/{menu.CLaN9Eys.js → menu.DCRfI10M.js} +9 -9
- package/dist/chunks/{menu.CLaN9Eys.js.map → menu.DCRfI10M.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.B-qr1Szh.js → modal-fullscreen.DgDk6uxS.js} +7 -7
- package/dist/chunks/{modal-fullscreen.B-qr1Szh.js.map → modal-fullscreen.DgDk6uxS.js.map} +1 -1
- package/dist/chunks/{modal.wU3uUJKq.js → modal.B7giFLek.js} +6 -6
- package/dist/chunks/{modal.wU3uUJKq.js.map → modal.B7giFLek.js.map} +1 -1
- package/dist/chunks/{pagination.BM3FhtxJ.js → pagination.Dc0VbxFL.js} +5 -5
- package/dist/chunks/{pagination.BM3FhtxJ.js.map → pagination.Dc0VbxFL.js.map} +1 -1
- package/dist/chunks/{payment-method.UaERFtej.js → payment-method.CoXB0ZAW.js} +2 -2
- package/dist/chunks/{payment-method.UaERFtej.js.map → payment-method.CoXB0ZAW.js.map} +1 -1
- package/dist/chunks/{popover.DsUymZWJ.js → popover.D8pR_dbl.js} +5 -5
- package/dist/chunks/{popover.DsUymZWJ.js.map → popover.D8pR_dbl.js.map} +1 -1
- package/dist/chunks/{popper-container.B1iB2ovW.js → popper-container.B9qZTf2V.js} +3 -3
- package/dist/chunks/{popper-container.B1iB2ovW.js.map → popper-container.B9qZTf2V.js.map} +1 -1
- package/dist/chunks/{promo-banner.BXtIM4C9.js → promo-banner.Dd-JQMUD.js} +7 -7
- package/dist/chunks/{promo-banner.BXtIM4C9.js.map → promo-banner.Dd-JQMUD.js.map} +1 -1
- package/dist/chunks/{radio-group.DMob8x2J.js → radio-group.D5GEIgYv.js} +15 -15
- package/dist/chunks/{radio-group.DMob8x2J.js.map → radio-group.D5GEIgYv.js.map} +1 -1
- package/dist/chunks/{search-bar.rubkdbcD.js → search-bar.BN4grqVO.js} +3 -3
- package/dist/chunks/{search-bar.rubkdbcD.js.map → search-bar.BN4grqVO.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DKSjc5bn.js → secondary-nav.C8UE8xly.js} +8 -8
- package/dist/chunks/{secondary-nav.DKSjc5bn.js.map → secondary-nav.C8UE8xly.js.map} +1 -1
- package/dist/chunks/{segmented-control.DL0W7lJ_.js → segmented-control.C6HPgkVm.js} +4 -4
- package/dist/chunks/{segmented-control.DL0W7lJ_.js.map → segmented-control.C6HPgkVm.js.map} +1 -1
- package/dist/chunks/{selection-card-group.iYyZ9yX4.js → selection-card-group.BT7FOlbF.js} +9 -9
- package/dist/chunks/{selection-card-group.iYyZ9yX4.js.map → selection-card-group.BT7FOlbF.js.map} +1 -1
- package/dist/chunks/{sidepanel.CQnLpV8A.js → sidepanel.PEMSN4Hj.js} +11 -11
- package/dist/chunks/{sidepanel.CQnLpV8A.js.map → sidepanel.PEMSN4Hj.js.map} +1 -1
- package/dist/chunks/{status.types.Cv6hHRMu.js → status.types.B0jtv0c7.js} +2 -2
- package/dist/chunks/{status.types.Cv6hHRMu.js.map → status.types.B0jtv0c7.js.map} +1 -1
- package/dist/chunks/{step.BsIdWhaZ.js → step.Dq4w23dP.js} +3 -3
- package/dist/chunks/{step.BsIdWhaZ.js.map → step.Dq4w23dP.js.map} +1 -1
- package/dist/chunks/{structured-list-item.BhBbmkbw.js → structured-list-item.-ch3UkPz.js} +6 -6
- package/dist/chunks/{structured-list-item.BhBbmkbw.js.map → structured-list-item.-ch3UkPz.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CicAOBVQ.js → summary-grid-item-custom.CLVYmhnp.js} +5 -5
- package/dist/chunks/{summary-grid-item-custom.CicAOBVQ.js.map → summary-grid-item-custom.CLVYmhnp.js.map} +1 -1
- package/dist/chunks/{tabs.9kObZry9.js → tabs.B0f1qiMR.js} +4 -4
- package/dist/chunks/{tabs.9kObZry9.js.map → tabs.B0f1qiMR.js.map} +1 -1
- package/dist/chunks/{tag.-YNhsBv7.js → tag.d36UYSWd.js} +3 -3
- package/dist/chunks/{tag.-YNhsBv7.js.map → tag.d36UYSWd.js.map} +1 -1
- package/dist/chunks/{textarea.Cf21WMwL.js → textarea.DORWuAZn.js} +6 -6
- package/dist/chunks/{textarea.Cf21WMwL.js.map → textarea.DORWuAZn.js.map} +1 -1
- package/dist/chunks/{timeline-item.Cu5b-Mqj.js → timeline-item.CUm_n51y.js} +12 -12
- package/dist/chunks/{timeline-item.Cu5b-Mqj.js.map → timeline-item.CUm_n51y.js.map} +1 -1
- package/dist/chunks/{toast.DgJbW9CL.js → toast.DCaWC_wv.js} +4 -4
- package/dist/chunks/{toast.DgJbW9CL.js.map → toast.DCaWC_wv.js.map} +1 -1
- package/dist/chunks/{toggle-button.Cf8C7p6e.js → toggle-button.DJqs599a.js} +2 -2
- package/dist/chunks/{toggle-button.Cf8C7p6e.js.map → toggle-button.DJqs599a.js.map} +1 -1
- package/dist/chunks/{toggle.CnS7qszG.js → toggle.INRYdQzz.js} +3 -3
- package/dist/chunks/{toggle.CnS7qszG.js.map → toggle.INRYdQzz.js.map} +1 -1
- package/dist/chunks/{tooltip.R2sqydIE.js → tooltip.CQGwmwt9.js} +4 -4
- package/dist/chunks/{tooltip.R2sqydIE.js.map → tooltip.CQGwmwt9.js.map} +1 -1
- package/dist/chunks/{tutorial.w2ZqeOh1.js → tutorial.B_8XNKvM.js} +9 -9
- package/dist/chunks/{tutorial.w2ZqeOh1.js.map → tutorial.B_8XNKvM.js.map} +1 -1
- package/dist/chunks/{typography.J1v_SPG3.js → typography.Bu_WAKdf.js} +1 -2
- package/dist/chunks/{typography.J1v_SPG3.js.map → typography.Bu_WAKdf.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.Cn_2Eogn.js → use-bento-toast-controller.BVVMh0wc.js} +3 -3
- package/dist/chunks/{use-bento-toast-controller.Cn_2Eogn.js.map → use-bento-toast-controller.BVVMh0wc.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.impKjAIS.js → use-cached-selected-values.DJl7FKT5.js} +19 -19
- package/dist/chunks/{use-cached-selected-values.impKjAIS.js.map → use-cached-selected-values.DJl7FKT5.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.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.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +67 -67
- 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.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/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +1 -0
- package/dist/styles/bento-light.css +1 -0
- package/dist/styles/bento.css +1 -0
- package/dist/styles/legacy.css +6 -5
- package/dist/styles/styleguide.css +1 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +3 -3
- package/package.json +11 -7
- package/dist/chunks/code-snippet.5iJcUZSo.js.map +0 -1
- package/dist/chunks/codemirror.CXFEqvAi.js.map +0 -1
- package/dist/chunks/dropdown.BqsoncJr.js.map +0 -1
- package/dist/chunks/file-uploader.C6kcnhqp.js +0 -729
- package/dist/chunks/file-uploader.C6kcnhqp.js.map +0 -1
- package/dist/chunks/input-field.D6N2kt7s.js +0 -228
- package/dist/chunks/input-field.D6N2kt7s.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { d as ae, B as $e } from "./typography.
|
|
3
|
-
import { a as K, b as N,
|
|
1
|
+
import { ref as x, watch as re, computed as u, defineComponent as I, useSlots as de, toRefs as ce, nextTick as E, useAttrs as Oe, toRef as O, inject as Ce } from "vue";
|
|
2
|
+
import { d as ae, B as $e } from "./typography.Bu_WAKdf.js";
|
|
3
|
+
import { a as K, b as N, B as A, c as Ee, D as De } from "./dropdown-default-textbox.CrylDCEX.js";
|
|
4
4
|
import { n as k } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
5
|
import { s as z } from "./events.CMzGybJJ.js";
|
|
6
|
-
import { g as M } from "./generate-uid.
|
|
6
|
+
import { g as M } from "./generate-uid.D-HFI38h.js";
|
|
7
7
|
import { u as Ie } from "./aria-label.CaUURpnB.js";
|
|
8
8
|
import { u as U } from "./i18n.BQkEbtPM.js";
|
|
9
9
|
import { u as Be } from "./use-form-layout-loading.D3lALhtC.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { B as
|
|
13
|
-
import { B as Me } from "./
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
10
|
+
import { B as Re } from "./directive.O3yEdalv.js";
|
|
11
|
+
import { u as Te } from "./use-has-slot.C9lQZ6nz.js";
|
|
12
|
+
import { a as c, B as W, b as j, c as Ne, u as Ae } from "./use-cached-selected-values.DJl7FKT5.js";
|
|
13
|
+
import { B as $, a as Me } from "./keyboard-navigation.Clz1jOaA.js";
|
|
14
|
+
import { P as ne } from "./popper-container.B9qZTf2V.js";
|
|
15
|
+
import { B as ke } from "./popover.D8pR_dbl.js";
|
|
16
|
+
import { E as Pe, F as Fe } from "./error-message.Brg-AZjT.js";
|
|
17
17
|
import "../assets/dropdown.css";
|
|
18
18
|
const Ke = {
|
|
19
19
|
"en-US": {
|
|
@@ -29,56 +29,56 @@ const Ke = {
|
|
|
29
29
|
apply: "適用",
|
|
30
30
|
cancel: "キャンセル"
|
|
31
31
|
}
|
|
32
|
-
}, ze = (
|
|
33
|
-
const
|
|
34
|
-
re(
|
|
35
|
-
|
|
32
|
+
}, ze = (a, t, o, e) => {
|
|
33
|
+
const s = x(a.value), { t: i } = U();
|
|
34
|
+
re(a, () => {
|
|
35
|
+
s.value = a.value;
|
|
36
36
|
});
|
|
37
37
|
const n = u(
|
|
38
|
-
() => JSON.stringify(
|
|
39
|
-
),
|
|
40
|
-
e(c.SELECT,
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
o.value && t.value && (
|
|
38
|
+
() => JSON.stringify(s.value) === JSON.stringify(a.value)
|
|
39
|
+
), l = () => {
|
|
40
|
+
e(c.SELECT, s.value), e(c.CLOSE_DROPDOWN);
|
|
41
|
+
}, r = () => {
|
|
42
|
+
s.value = a.value, e(c.CLOSE_DROPDOWN);
|
|
43
|
+
}, b = () => {
|
|
44
|
+
o.value && t.value && (s.value = a.value);
|
|
45
45
|
}, p = u(() => [
|
|
46
46
|
{
|
|
47
47
|
title: i("apply"),
|
|
48
|
-
event:
|
|
48
|
+
event: l,
|
|
49
49
|
disabled: n.value
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
title: i("cancel"),
|
|
53
|
-
event:
|
|
53
|
+
event: r
|
|
54
54
|
}
|
|
55
|
-
]),
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
},
|
|
55
|
+
]), d = (y) => {
|
|
56
|
+
s.value = y, t.value || e(c.SELECT, y);
|
|
57
|
+
}, w = (y) => {
|
|
58
|
+
d(y), e(c.TAB);
|
|
59
|
+
}, g = (y) => {
|
|
60
|
+
d(y), e(c.ENTER);
|
|
61
|
+
}, v = (y) => {
|
|
62
|
+
d(y), e(c.SPACE);
|
|
63
|
+
}, C = () => {
|
|
64
|
+
r(), e(c.ESCAPE);
|
|
65
|
+
}, L = () => {
|
|
66
66
|
e(c.SHOW_MORE);
|
|
67
|
-
},
|
|
68
|
-
[c.SELECT]:
|
|
69
|
-
[c.SHOW_MORE]:
|
|
70
|
-
[c.TAB]:
|
|
71
|
-
[c.SPACE]:
|
|
72
|
-
[c.ENTER]:
|
|
67
|
+
}, S = {
|
|
68
|
+
[c.SELECT]: d,
|
|
69
|
+
[c.SHOW_MORE]: L,
|
|
70
|
+
[c.TAB]: w,
|
|
71
|
+
[c.SPACE]: v,
|
|
72
|
+
[c.ENTER]: g
|
|
73
73
|
};
|
|
74
74
|
return {
|
|
75
75
|
// Values
|
|
76
76
|
actions: p,
|
|
77
|
-
internalSelectedValue:
|
|
77
|
+
internalSelectedValue: s,
|
|
78
78
|
// Methods
|
|
79
|
-
listeners:
|
|
80
|
-
onEscapeKey:
|
|
81
|
-
onOutsideDropdownClick:
|
|
79
|
+
listeners: S,
|
|
80
|
+
onEscapeKey: C,
|
|
81
|
+
onOutsideDropdownClick: b
|
|
82
82
|
};
|
|
83
83
|
}, We = I({
|
|
84
84
|
i18n: { messages: Ke },
|
|
@@ -139,8 +139,8 @@ const Ke = {
|
|
|
139
139
|
*/
|
|
140
140
|
lazyLoadType: {
|
|
141
141
|
type: String,
|
|
142
|
-
default:
|
|
143
|
-
validator: (
|
|
142
|
+
default: W.AUTOMATIC,
|
|
143
|
+
validator: (a) => Object.values(W).includes(a)
|
|
144
144
|
},
|
|
145
145
|
/**
|
|
146
146
|
* Indicates if new options are loading.
|
|
@@ -170,7 +170,7 @@ const Ke = {
|
|
|
170
170
|
*
|
|
171
171
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
172
172
|
*/
|
|
173
|
-
searching:
|
|
173
|
+
searching: j.props.searching,
|
|
174
174
|
/**
|
|
175
175
|
* If enabled, dropdown will display non-selectable, static categories
|
|
176
176
|
*/
|
|
@@ -190,20 +190,20 @@ const Ke = {
|
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
192
|
emits: [],
|
|
193
|
-
setup(
|
|
194
|
-
const e =
|
|
193
|
+
setup(a, { expose: t, emit: o }) {
|
|
194
|
+
const e = a, s = de(), { selectedValue: i, multiple: n } = ce(e), l = x(null), { t: r } = U(), b = u(() => e.open && !e.disabled), p = u(() => r("noOptionsMatchThisSearch")), d = u(() => ({
|
|
195
195
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
196
|
-
})),
|
|
196
|
+
})), w = u(() => ({
|
|
197
197
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
198
|
-
})), { actions:
|
|
199
|
-
var
|
|
200
|
-
const
|
|
201
|
-
"min-width": `${(
|
|
198
|
+
})), { actions: g, internalSelectedValue: v, listeners: C, onEscapeKey: L, onOutsideDropdownClick: S } = ze(i, n, b, o), y = u(() => e != null && e.multiple ? ke : ne), f = u(() => {
|
|
199
|
+
var h;
|
|
200
|
+
const m = {
|
|
201
|
+
"min-width": `${(h = e == null ? void 0 : e.targetElement) == null ? void 0 : h.clientWidth}px`,
|
|
202
202
|
"max-width": "min(500px, 95%)"
|
|
203
203
|
};
|
|
204
204
|
return e != null && e.multiple ? {
|
|
205
205
|
actionsLayout: "space-between",
|
|
206
|
-
actions:
|
|
206
|
+
actions: g.value,
|
|
207
207
|
divider: !0,
|
|
208
208
|
fallbackPosition: ["top-start"],
|
|
209
209
|
id: M(`dropdown-options-${e.id}`),
|
|
@@ -211,7 +211,7 @@ const Ke = {
|
|
|
211
211
|
position: "bottom-start",
|
|
212
212
|
style: {
|
|
213
213
|
width: "auto",
|
|
214
|
-
...
|
|
214
|
+
...m
|
|
215
215
|
},
|
|
216
216
|
targetElement: e.targetElement
|
|
217
217
|
} : {
|
|
@@ -219,22 +219,22 @@ const Ke = {
|
|
|
219
219
|
offset: [0, 8],
|
|
220
220
|
position: "bottom-start",
|
|
221
221
|
style: {
|
|
222
|
-
display:
|
|
223
|
-
...
|
|
222
|
+
display: b.value ? "block" : "none",
|
|
223
|
+
...m
|
|
224
224
|
},
|
|
225
225
|
targetElement: e.targetElement
|
|
226
226
|
};
|
|
227
227
|
});
|
|
228
228
|
return t({
|
|
229
|
-
onOutsideDropdownClick:
|
|
230
|
-
}), { __sfc: !0, slots:
|
|
229
|
+
onOutsideDropdownClick: S
|
|
230
|
+
}), { __sfc: !0, slots: s, emit: o, props: e, selectedValue: i, multiple: n, dropdownOptionsListboxRef: l, t: r, isDropdownOpen: b, noResultsMessage: p, conditionalClasses: d, conditionalListboxClasses: w, actions: g, internalSelectedValue: v, listeners: C, onEscapeKey: L, onOutsideDropdownClick: S, popperContainerOrPopoverComponent: y, popperContainerOrPopoverProps: f, BentoListbox: j };
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
var Ue = function() {
|
|
234
234
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
235
|
-
return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses, attrs: { "aria-label": t.ariaLabel } }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(
|
|
236
|
-
return !
|
|
237
|
-
} } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "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(
|
|
235
|
+
return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses, attrs: { "aria-label": t.ariaLabel } }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(s) {
|
|
236
|
+
return !s.type.indexOf("key") && t._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
237
|
+
} } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "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(s, i) {
|
|
238
238
|
return { key: i, fn: function(n) {
|
|
239
239
|
return [t._t(i, null, null, n)];
|
|
240
240
|
} };
|
|
@@ -347,34 +347,38 @@ const st = ot.exports, at = I({
|
|
|
347
347
|
value: { type: String, default: "" }
|
|
348
348
|
},
|
|
349
349
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
350
|
-
setup(
|
|
351
|
-
const
|
|
352
|
-
[`b-dropdown-small-textbox--${K.DISABLED}`]:
|
|
353
|
-
[`b-dropdown-small-textbox--${K.READONLY}`]:
|
|
354
|
-
[`b-dropdown-small-textbox--${K.OPENED}`]:
|
|
355
|
-
})),
|
|
356
|
-
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
},
|
|
360
|
-
z(
|
|
361
|
-
},
|
|
362
|
-
z(
|
|
363
|
-
},
|
|
364
|
-
z(
|
|
365
|
-
},
|
|
366
|
-
[N.INPUT]:
|
|
367
|
-
[N.OPEN]:
|
|
368
|
-
[N.CLOSE]:
|
|
369
|
-
[N.CLEAR]:
|
|
370
|
-
[N.KEYDOWN]:
|
|
350
|
+
setup(a, { expose: t, emit: o }) {
|
|
351
|
+
const e = a, s = x(null), i = u(() => ({
|
|
352
|
+
[`b-dropdown-small-textbox--${K.DISABLED}`]: e.disabled,
|
|
353
|
+
[`b-dropdown-small-textbox--${K.READONLY}`]: e.readonly,
|
|
354
|
+
[`b-dropdown-small-textbox--${K.OPENED}`]: e.open
|
|
355
|
+
})), n = u(() => e.open && !e.disabled && !e.readonly), l = (v) => {
|
|
356
|
+
o("input", v);
|
|
357
|
+
}, r = (v) => {
|
|
358
|
+
o("keydown", v);
|
|
359
|
+
}, b = (v) => {
|
|
360
|
+
z(v), o("open");
|
|
361
|
+
}, p = (v) => {
|
|
362
|
+
z(v), o("close");
|
|
363
|
+
}, d = (v) => {
|
|
364
|
+
z(v), o("clear");
|
|
365
|
+
}, w = {
|
|
366
|
+
[N.INPUT]: l,
|
|
367
|
+
[N.OPEN]: b,
|
|
368
|
+
[N.CLOSE]: p,
|
|
369
|
+
[N.CLEAR]: d,
|
|
370
|
+
[N.KEYDOWN]: r
|
|
371
|
+
}, g = () => {
|
|
372
|
+
s.value.focus();
|
|
371
373
|
};
|
|
372
|
-
return {
|
|
374
|
+
return t({
|
|
375
|
+
focus: g
|
|
376
|
+
}), { __sfc: !0, emit: o, props: e, baseTextbox: s, conditionalClasses: i, isDropdownOpen: n, onInput: l, onKeyDown: r, openDropdown: b, closeDropdown: p, clearValue: d, listeners: w, focus: g, BentoDropdownSize: A, DropdownBaseTextbox: Ee, ChevronDownSmallIcon: Xe, ChevronUpSmallIcon: st };
|
|
373
377
|
}
|
|
374
378
|
});
|
|
375
379
|
var lt = function() {
|
|
376
380
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
377
|
-
return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(e.DropdownBaseTextbox, t._g(t._b({ staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
|
|
381
|
+
return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(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() {
|
|
378
382
|
return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
379
383
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
|
|
380
384
|
}, it = [], rt = /* @__PURE__ */ k(
|
|
@@ -383,92 +387,92 @@ var lt = function() {
|
|
|
383
387
|
it,
|
|
384
388
|
!1,
|
|
385
389
|
null,
|
|
386
|
-
"
|
|
390
|
+
"d0e53db8"
|
|
387
391
|
);
|
|
388
|
-
const dt = rt.exports, ct = (
|
|
392
|
+
const dt = rt.exports, ct = (a, t) => t.value.reduce((o, e) => {
|
|
389
393
|
if (e.items) {
|
|
390
|
-
const
|
|
391
|
-
(n) =>
|
|
394
|
+
const s = e.items.filter(
|
|
395
|
+
(n) => a.value.find((l) => l.value === n.value)
|
|
392
396
|
);
|
|
393
|
-
|
|
397
|
+
s.length === e.items.length ? o.push(e.displayValue ?? e.label) : s.forEach(({ label: n, displayValue: l }) => o.push(l ?? n));
|
|
394
398
|
}
|
|
395
|
-
return
|
|
396
|
-
}, []).join(", "), ut = ({ items:
|
|
397
|
-
const
|
|
398
|
-
() => e.value &&
|
|
399
|
-
var
|
|
400
|
-
return (
|
|
399
|
+
return a.value.find((s) => s.value === e.value) && o.push(e.displayValue ?? e.label), o;
|
|
400
|
+
}, []).join(", "), ut = ({ items: a, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
|
|
401
|
+
const s = u(
|
|
402
|
+
() => e.value && a.value.find((n) => {
|
|
403
|
+
var l;
|
|
404
|
+
return (l = n.items) == null ? void 0 : l.length;
|
|
401
405
|
})
|
|
402
406
|
);
|
|
403
|
-
return u(() => o.value.length ?
|
|
404
|
-
}, ue = (
|
|
407
|
+
return u(() => o.value.length ? s.value ? ct(o, a) : o.value.map(({ label: n, displayValue: l }) => l ?? n).join(", ") : t.value || null);
|
|
408
|
+
}, ue = (a) => {
|
|
405
409
|
var t;
|
|
406
|
-
(t =
|
|
410
|
+
(t = a.value.$children) == null || t[0].$refs.textbox.focus();
|
|
407
411
|
}, pt = ({
|
|
408
|
-
inputContainerRef:
|
|
412
|
+
inputContainerRef: a,
|
|
409
413
|
optionsContainerRef: t,
|
|
410
414
|
selectedValueIndex: o,
|
|
411
415
|
isDropdownOpen: e,
|
|
412
|
-
isDynamicFltering:
|
|
416
|
+
isDynamicFltering: s,
|
|
413
417
|
items: i,
|
|
414
418
|
isMultiple: n
|
|
415
|
-
},
|
|
419
|
+
}, l, r, b) => {
|
|
416
420
|
const p = ({ detail: f }) => {
|
|
417
|
-
f.preventDefault(), e.value ||
|
|
418
|
-
var
|
|
419
|
-
n ? (
|
|
421
|
+
f.preventDefault(), e.value || r(), E(() => {
|
|
422
|
+
var m;
|
|
423
|
+
n ? (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
|
|
420
424
|
o.value
|
|
421
425
|
), t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[o.value].$el.focus());
|
|
422
426
|
});
|
|
423
|
-
},
|
|
424
|
-
f.preventDefault(), e.value ||
|
|
427
|
+
}, d = ({ detail: f }) => {
|
|
428
|
+
f.preventDefault(), e.value || r(), E(() => {
|
|
425
429
|
t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
|
|
426
430
|
o.value
|
|
427
431
|
), t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[o.value].$el.focus();
|
|
428
432
|
});
|
|
429
|
-
},
|
|
430
|
-
e.value || (
|
|
431
|
-
var f,
|
|
433
|
+
}, w = () => {
|
|
434
|
+
e.value || (r(), E(() => {
|
|
435
|
+
var f, m;
|
|
432
436
|
if (n) {
|
|
433
|
-
const
|
|
434
|
-
(f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[
|
|
437
|
+
const h = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
438
|
+
(f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[h.length - 1].$children[i.length - 1].$el.focus();
|
|
435
439
|
} else
|
|
436
|
-
(
|
|
440
|
+
(m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[i.length - 1].$el.focus();
|
|
437
441
|
}));
|
|
438
|
-
},
|
|
439
|
-
e.value && (
|
|
440
|
-
},
|
|
441
|
-
e.value &&
|
|
442
|
-
},
|
|
443
|
-
e.value ||
|
|
442
|
+
}, g = () => {
|
|
443
|
+
e.value && (b(), ue(a));
|
|
444
|
+
}, v = () => {
|
|
445
|
+
e.value && b();
|
|
446
|
+
}, C = () => {
|
|
447
|
+
e.value || r(), E(() => {
|
|
444
448
|
var f;
|
|
445
449
|
(f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus();
|
|
446
450
|
});
|
|
447
|
-
},
|
|
448
|
-
f.preventDefault(),
|
|
449
|
-
var
|
|
450
|
-
n ? (
|
|
451
|
+
}, L = ({ detail: f }) => {
|
|
452
|
+
f.preventDefault(), l(), e.value && E(() => {
|
|
453
|
+
var m, h;
|
|
454
|
+
n ? (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (h = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || h[o.value].$el.focus();
|
|
451
455
|
});
|
|
452
|
-
},
|
|
453
|
-
|
|
454
|
-
var f,
|
|
455
|
-
n ? (f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (
|
|
456
|
+
}, S = () => {
|
|
457
|
+
l(), e.value && E(() => {
|
|
458
|
+
var f, m;
|
|
459
|
+
n ? (f = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[o.value].$el.focus();
|
|
456
460
|
});
|
|
457
461
|
};
|
|
458
462
|
return u(() => ({
|
|
459
|
-
...
|
|
460
|
-
[
|
|
461
|
-
[
|
|
462
|
-
[
|
|
463
|
-
[
|
|
464
|
-
[
|
|
465
|
-
[
|
|
466
|
-
[
|
|
463
|
+
...s.value ? {} : { [$.SPACE]: L },
|
|
464
|
+
[$.ENTER]: S,
|
|
465
|
+
[$.ARROW_DOWN]: p,
|
|
466
|
+
[$.ARROW_UP]: d,
|
|
467
|
+
[$.END]: w,
|
|
468
|
+
[$.ESCAPE]: g,
|
|
469
|
+
[$.HOME]: C,
|
|
470
|
+
[$.TAB]: v
|
|
467
471
|
}));
|
|
468
|
-
}, ft = ({ inputContainerRef:
|
|
472
|
+
}, ft = ({ inputContainerRef: a, isDropdownOpen: t }, o) => {
|
|
469
473
|
const e = () => {
|
|
470
474
|
t.value && o(), E(() => {
|
|
471
|
-
ue(
|
|
475
|
+
ue(a);
|
|
472
476
|
});
|
|
473
477
|
};
|
|
474
478
|
return {
|
|
@@ -478,15 +482,15 @@ const dt = rt.exports, ct = (s, t) => t.value.reduce((o, e) => {
|
|
|
478
482
|
[c.SPACE]: e
|
|
479
483
|
};
|
|
480
484
|
};
|
|
481
|
-
function vt(
|
|
482
|
-
const
|
|
483
|
-
return re(
|
|
484
|
-
o !== void 0 && o(
|
|
485
|
+
function vt(a, t, o, e) {
|
|
486
|
+
const s = x(a), i = x(t), n = (r, b = []) => b.flatMap((p) => p.label.toLocaleLowerCase().includes(r) ? e != null && e.value && p.items ? [...n(r, p.items)] : [p, ...n(r, p.items)] : p.items ? [...n(r, p.items)] : []);
|
|
487
|
+
return re(s, () => {
|
|
488
|
+
o !== void 0 && o(s.value);
|
|
485
489
|
}), u(() => {
|
|
486
|
-
if (!
|
|
490
|
+
if (!s.value || o !== void 0)
|
|
487
491
|
return i.value;
|
|
488
|
-
const
|
|
489
|
-
return n(
|
|
492
|
+
const r = s.value.toLocaleLowerCase();
|
|
493
|
+
return n(r, i.value);
|
|
490
494
|
});
|
|
491
495
|
}
|
|
492
496
|
const mt = {
|
|
@@ -598,8 +602,8 @@ const mt = {
|
|
|
598
602
|
*/
|
|
599
603
|
lazyLoadType: {
|
|
600
604
|
type: String,
|
|
601
|
-
default:
|
|
602
|
-
validator: (
|
|
605
|
+
default: j.props.lazyLoadType.default,
|
|
606
|
+
validator: (a) => Object.values(W).includes(a)
|
|
603
607
|
},
|
|
604
608
|
/*
|
|
605
609
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -639,7 +643,7 @@ const mt = {
|
|
|
639
643
|
size: {
|
|
640
644
|
type: String,
|
|
641
645
|
default: null,
|
|
642
|
-
validator: (
|
|
646
|
+
validator: (a) => Object.values(A).includes(a)
|
|
643
647
|
},
|
|
644
648
|
/**
|
|
645
649
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -668,69 +672,69 @@ const mt = {
|
|
|
668
672
|
}
|
|
669
673
|
},
|
|
670
674
|
emits: ["input", "show-more"],
|
|
671
|
-
setup(
|
|
675
|
+
setup(a, { expose: t, emit: o }) {
|
|
672
676
|
var se;
|
|
673
|
-
const e =
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
),
|
|
677
|
+
const e = a, s = Oe(), i = de(), n = Te(i), { t: l } = U(), r = x(null), b = x(null), p = x(null), d = x(!1), w = M("bento-dropdown-options-container"), g = M("dropdown-label"), v = M("dropdown-description"), C = M("dropdown-error"), { isReadOnly: L } = Be(O(e, "readonly")), { cachedSelectedListboxOptions: S, cachedListboxSelectedValues: y, setCachedValues: f } = Ne(
|
|
678
|
+
O(e, "items"),
|
|
679
|
+
O(e, "value"),
|
|
680
|
+
O(e, "multiple")
|
|
681
|
+
), m = x(s["aria-label"]), { ariaLabel: h, label: H } = ce(e), pe = Ie({
|
|
678
682
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
679
|
-
ariaLabel:
|
|
683
|
+
ariaLabel: h || m,
|
|
680
684
|
label: H,
|
|
681
|
-
defaultFallback:
|
|
685
|
+
defaultFallback: l("ariaLabelFallback")
|
|
682
686
|
}), q = e.size === A.SMALL || Ce(bt, !1), fe = u(() => q ? A.SMALL : A.DEFAULT), ve = u(() => ({
|
|
683
687
|
"b-dropdown--condensed": e.condensed
|
|
684
688
|
})), me = u(() => ({
|
|
685
689
|
"b-dropdown__description--error": !!e.errorMessage
|
|
686
|
-
})), D =
|
|
690
|
+
})), D = x(""), B = O(e, "items"), V = O(e, "staticCategories"), be = vt(D, B, (se = e == null ? void 0 : e.search) == null ? void 0 : se.searchEvent, V), F = u(() => e.dynamicFiltering && !!D.value), ye = ut({
|
|
687
691
|
items: B,
|
|
688
|
-
placeholder:
|
|
689
|
-
isMultiSelect:
|
|
690
|
-
selectedValues:
|
|
692
|
+
placeholder: O(e, "placeholder"),
|
|
693
|
+
isMultiSelect: O(e, "multiple"),
|
|
694
|
+
selectedValues: S
|
|
691
695
|
}), _e = u(() => {
|
|
692
696
|
if (e != null && e.multiple && Array.isArray(e.value))
|
|
693
697
|
return e.items.filter(
|
|
694
|
-
({ value:
|
|
698
|
+
({ value: _ }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(_)
|
|
695
699
|
);
|
|
696
700
|
if (!e.multiple && e.staticCategories) {
|
|
697
|
-
const
|
|
701
|
+
const _ = e.items.find(
|
|
698
702
|
(T) => T.items.some((Se) => Se.value === e.value)
|
|
699
703
|
);
|
|
700
|
-
return
|
|
704
|
+
return _ ? _.items.find((T) => T.value === e.value) : null;
|
|
701
705
|
}
|
|
702
|
-
return e.items.find(({ value:
|
|
706
|
+
return e.items.find(({ value: _ }) => _ === (e == null ? void 0 : e.value));
|
|
703
707
|
}), J = u(() => {
|
|
704
|
-
const
|
|
705
|
-
return
|
|
706
|
-
}), { isMultiLevelSelect: Y, flattenedItemsList: Z } =
|
|
707
|
-
var
|
|
708
|
+
const _ = e.items.findIndex(({ value: R }) => e.value === R);
|
|
709
|
+
return _ > 0 ? _ : 0;
|
|
710
|
+
}), { isMultiLevelSelect: Y, flattenedItemsList: Z } = Ae(B), ge = u(() => {
|
|
711
|
+
var _;
|
|
708
712
|
if (e.multiple) {
|
|
709
|
-
const R = (
|
|
710
|
-
return !e.hasMoreItems && T === R ?
|
|
713
|
+
const R = (_ = e == null ? void 0 : e.value) == null ? void 0 : _.length, T = Y.value ? Z.value.length : B.value.length;
|
|
714
|
+
return !e.hasMoreItems && T === R ? l("all") : R;
|
|
711
715
|
}
|
|
712
716
|
return null;
|
|
713
717
|
}), xe = u(
|
|
714
|
-
() => `${e.description ?
|
|
718
|
+
() => `${e.description ? v : ""} ${e.errorMessage ? C : ""}`.trim() || null
|
|
715
719
|
), Q = () => {
|
|
716
|
-
|
|
720
|
+
L.value || (d.value = !0);
|
|
717
721
|
}, P = () => {
|
|
718
|
-
|
|
722
|
+
d.value = !1;
|
|
719
723
|
}, X = () => {
|
|
720
|
-
|
|
724
|
+
L.value || (d.value = !d.value, F.value && (D.value = ""));
|
|
721
725
|
}, he = () => {
|
|
722
|
-
F.value && (D.value = ""),
|
|
723
|
-
}, G = (
|
|
724
|
-
e.multiple || (D.value = "",
|
|
726
|
+
F.value && (D.value = ""), d.value && (d.value = !1, p.value.onOutsideDropdownClick());
|
|
727
|
+
}, G = (_) => {
|
|
728
|
+
e.multiple || (D.value = "", d.value = !1), f(_), o("input", y.value);
|
|
725
729
|
}, ee = () => {
|
|
726
730
|
o(c.SHOW_MORE);
|
|
727
731
|
}, we = pt(
|
|
728
732
|
{
|
|
729
|
-
inputContainerRef:
|
|
733
|
+
inputContainerRef: r,
|
|
730
734
|
optionsContainerRef: p,
|
|
731
735
|
selectedValueIndex: J,
|
|
732
|
-
isDropdownOpen:
|
|
733
|
-
isDynamicFltering:
|
|
736
|
+
isDropdownOpen: d,
|
|
737
|
+
isDynamicFltering: O(e, "dynamicFiltering"),
|
|
734
738
|
items: e.items,
|
|
735
739
|
isMultiple: e.multiple
|
|
736
740
|
},
|
|
@@ -739,8 +743,8 @@ const mt = {
|
|
|
739
743
|
P
|
|
740
744
|
), te = ft(
|
|
741
745
|
{
|
|
742
|
-
inputContainerRef:
|
|
743
|
-
isDropdownOpen:
|
|
746
|
+
inputContainerRef: r,
|
|
747
|
+
isDropdownOpen: d
|
|
744
748
|
},
|
|
745
749
|
P
|
|
746
750
|
), Le = {
|
|
@@ -757,25 +761,25 @@ const mt = {
|
|
|
757
761
|
"2.0.0"
|
|
758
762
|
), e.size && ae('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0");
|
|
759
763
|
const oe = () => {
|
|
760
|
-
|
|
764
|
+
r.value.focus();
|
|
761
765
|
};
|
|
762
766
|
return t({
|
|
763
767
|
focus: oe
|
|
764
|
-
}), { __sfc: !0, attrs:
|
|
768
|
+
}), { __sfc: !0, attrs: s, slots: i, hasSlot: n, props: e, emit: o, t: l, inputContainerRef: r, inputContainerRefWrapper: b, optionsContainerRef: p, isDropdownOpen: d, dropdownOptionsContainerId: w, labelId: g, descriptionId: v, errorId: C, isReadOnly: L, cachedSelectedListboxOptions: S, cachedListboxSelectedValues: y, setCachedValues: f, ariaLabelAttribute: m, ariaLabel: h, label: H, computedAriaLabel: pe, isInputComponent: q, size: fe, conditionalClasses: ve, descriptionConditionalClasses: me, searchTerm: D, items: B, staticCategories: V, filteredItems: be, isSearching: F, displayValue: ye, selectedValueItem: _e, selectedValueIndex: J, isMultiLevelSelect: Y, flattenedItemsList: Z, additionalItemsSelected: ge, ariaDescribedBy: xe, openDropdown: Q, closeDropdown: P, toggleDropdown: X, clickOutsideDropdown: he, onOptionSelected: G, emitShowMoreEvent: ee, textboxKeyboardNavigationListeners: we, listboxKeyboardNavigationListeners: te, listboxListeners: Le, focus: oe, BentoDropdownOptionsContainer: Ve, BentoTypography: $e, ErrorMessage: Pe, FieldLabel: Fe, vBentoClickOutsideDirective: Re, vBentoKeyboardNavigationDirective: Me };
|
|
765
769
|
}
|
|
766
770
|
});
|
|
767
771
|
var gt = function() {
|
|
768
|
-
var
|
|
772
|
+
var s;
|
|
769
773
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
770
774
|
return o("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 ? o(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), o("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [o(e.size, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, 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(i) {
|
|
771
775
|
e.searchTerm = i;
|
|
772
776
|
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(i, n) {
|
|
773
|
-
return { key: n, fn: function(
|
|
774
|
-
return [t._t(n, null, null,
|
|
777
|
+
return { key: n, fn: function(l) {
|
|
778
|
+
return [t._t(n, null, null, l)];
|
|
775
779
|
} };
|
|
776
|
-
})], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": t.emptyState, "debounce-time": (
|
|
777
|
-
return { key: n, fn: function(
|
|
778
|
-
return [t._t(n, null, null,
|
|
780
|
+
})], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": t.emptyState, "debounce-time": (s = t.search) == null ? void 0 : s.debounceTime, 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(i, n) {
|
|
781
|
+
return { key: n, fn: function(l) {
|
|
782
|
+
return [t._t(n, null, null, l)];
|
|
779
783
|
} };
|
|
780
784
|
})], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? o(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? o(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
|
|
781
785
|
return [t._v(" " + t._s(t.description) + " ")];
|
|
@@ -795,4 +799,4 @@ export {
|
|
|
795
799
|
bt as a,
|
|
796
800
|
vt as u
|
|
797
801
|
};
|
|
798
|
-
//# sourceMappingURL=dropdown.
|
|
802
|
+
//# sourceMappingURL=dropdown.BkLc07G8.js.map
|