@adyen/bento-vue2 1.51.0 → 1.53.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 +583 -79
- 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/button-actions-with-menu.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.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/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/header-with-views.css +1 -0
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.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/summary-grid-item-custom.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{action-bar.DGhojWpe.js → action-bar.Cuktzrp5.js} +5 -5
- package/dist/chunks/{action-bar.DGhojWpe.js.map → action-bar.Cuktzrp5.js.map} +1 -1
- package/dist/chunks/{alert.BSBLkXkM.js → alert.BkMKX9wD.js} +9 -9
- package/dist/chunks/alert.BkMKX9wD.js.map +1 -0
- package/dist/chunks/{base-modal.Dan5WQin.js → base-modal.DnaWOvaM.js} +4 -4
- package/dist/chunks/{base-modal.Dan5WQin.js.map → base-modal.DnaWOvaM.js.map} +1 -1
- package/dist/chunks/bin.DuebwJYu.js +24 -0
- package/dist/chunks/bin.DuebwJYu.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.twMFsb82.js +166 -0
- package/dist/chunks/button-actions-with-menu.twMFsb82.js.map +1 -0
- package/dist/chunks/{button-actions.GhdYBSwt.js → button-actions.DAvSJtOB.js} +3 -3
- package/dist/chunks/{button-actions.GhdYBSwt.js.map → button-actions.DAvSJtOB.js.map} +1 -1
- package/dist/chunks/calendar.CJToU_uI.js +1130 -0
- package/dist/chunks/calendar.CJToU_uI.js.map +1 -0
- package/dist/chunks/{card.Csazj5Qz.js → card.AQO_BjGb.js} +2 -2
- package/dist/chunks/{card.Csazj5Qz.js.map → card.AQO_BjGb.js.map} +1 -1
- package/dist/chunks/{checkbox-group.DcJ31aLq.js → checkbox-group.DkM6n3JR.js} +4 -4
- package/dist/chunks/{checkbox-group.DcJ31aLq.js.map → checkbox-group.DkM6n3JR.js.map} +1 -1
- package/dist/chunks/checkbox-input.CMhyJDdo.js +129 -0
- package/dist/chunks/checkbox-input.CMhyJDdo.js.map +1 -0
- package/dist/chunks/checkbox.l7h6GYew.js +176 -0
- package/dist/chunks/checkbox.l7h6GYew.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
- package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
- package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
- package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
- package/dist/chunks/{code-snippet.z_G2UXVT.js → code-snippet.BsEe6nml.js} +5 -5
- package/dist/chunks/{code-snippet.z_G2UXVT.js.map → code-snippet.BsEe6nml.js.map} +1 -1
- package/dist/chunks/{controls-group.ghJ7a8PY.js → controls-group.vFyThDMU.js} +2 -2
- package/dist/chunks/{controls-group.ghJ7a8PY.js.map → controls-group.vFyThDMU.js.map} +1 -1
- package/dist/chunks/{copy.BNOiinIt.js → copy.DD_Yfyn_.js} +3 -3
- package/dist/chunks/{copy.BNOiinIt.js.map → copy.DD_Yfyn_.js.map} +1 -1
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
- package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
- package/dist/chunks/{dashboard-section.Db_E382r.js → dashboard-section.z-Rnv5E-.js} +3 -3
- package/dist/chunks/{dashboard-section.Db_E382r.js.map → dashboard-section.z-Rnv5E-.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CAhDrAG_.js → dashed-underline.CfQuYKV9.js} +8 -8
- package/dist/chunks/{dashed-underline.CAhDrAG_.js.map → dashed-underline.CfQuYKV9.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DG5IWdLG.js → data-grid-template.73mazFER.js} +2 -2
- package/dist/chunks/{data-grid-template.DG5IWdLG.js.map → data-grid-template.73mazFER.js.map} +1 -1
- package/dist/chunks/{data-grid.CHV-FvBB.js → data-grid.C_Xoz-GC.js} +38 -28
- package/dist/chunks/data-grid.C_Xoz-GC.js.map +1 -0
- package/dist/chunks/date-picker.bgk9aymW.js +235 -0
- package/dist/chunks/date-picker.bgk9aymW.js.map +1 -0
- package/dist/chunks/date-range-picker.-s05jOQA.js +903 -0
- package/dist/chunks/date-range-picker.-s05jOQA.js.map +1 -0
- package/dist/chunks/{date.YLIcAerL.js → date.dYFFEunA.js} +12 -12
- package/dist/chunks/{date.YLIcAerL.js.map → date.dYFFEunA.js.map} +1 -1
- package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
- package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.DzPBw4CV.js → dropdown-default-textbox.CDTdHfTv.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.DzPBw4CV.js.map → dropdown-default-textbox.CDTdHfTv.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.K4idCLeu.js → dropdown-tag.8qh8J-NE.js} +4 -4
- package/dist/chunks/{dropdown-tag.K4idCLeu.js.map → dropdown-tag.8qh8J-NE.js.map} +1 -1
- package/dist/chunks/{dropdown.DFEGHxjw.js → dropdown.DzWXcJyF.js} +141 -132
- package/dist/chunks/dropdown.DzWXcJyF.js.map +1 -0
- package/dist/chunks/{error-message.B3oWB_HM.js → error-message.CzQf7YOD.js} +3 -3
- package/dist/chunks/{error-message.B3oWB_HM.js.map → error-message.CzQf7YOD.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.DaBMZSsB.js → file-uploader.CcZPr-jD.js} +329 -328
- package/dist/chunks/file-uploader.CcZPr-jD.js.map +1 -0
- package/dist/chunks/{filter-bar.DClIG9aP.js → filter-bar.BdGtQC7p.js} +619 -668
- package/dist/chunks/filter-bar.BdGtQC7p.js.map +1 -0
- package/dist/chunks/{focus-trap._RrLaKlq.js → focus-trap.CIUzScHc.js} +2 -2
- package/dist/chunks/{focus-trap._RrLaKlq.js.map → focus-trap.CIUzScHc.js.map} +1 -1
- package/dist/chunks/{footer-actions.D0SuJroc.js → footer-actions.BkHpWa7A.js} +2 -2
- package/dist/chunks/{footer-actions.D0SuJroc.js.map → footer-actions.BkHpWa7A.js.map} +1 -1
- package/dist/chunks/{form-layout-title.C1n2S73_.js → form-layout-title.DK1-01RH.js} +50 -47
- package/dist/chunks/form-layout-title.DK1-01RH.js.map +1 -0
- package/dist/chunks/header-with-views.ChEgH2tn.js +1536 -0
- package/dist/chunks/header-with-views.ChEgH2tn.js.map +1 -0
- package/dist/chunks/header.0hX8OYwM.js +183 -0
- package/dist/chunks/header.0hX8OYwM.js.map +1 -0
- package/dist/chunks/index.BCUiAdb6.js +387 -0
- package/dist/chunks/{index.CU8GKq4C.js.map → index.BCUiAdb6.js.map} +1 -1
- package/dist/chunks/index.BDuTpjD8.js +40 -0
- package/dist/chunks/index.BDuTpjD8.js.map +1 -0
- package/dist/chunks/index.BxBB1rsx.js +15 -0
- package/dist/chunks/index.BxBB1rsx.js.map +1 -0
- package/dist/chunks/index.DD7TppDb.js +10 -0
- package/dist/chunks/index.DD7TppDb.js.map +1 -0
- package/dist/chunks/{info-icon-with-popover.C29aZ1Vh.js → info-icon-with-popover.w6MpKOWh.js} +3 -3
- package/dist/chunks/{info-icon-with-popover.C29aZ1Vh.js.map → info-icon-with-popover.w6MpKOWh.js.map} +1 -1
- package/dist/chunks/{info-icon.bXR5eo6I.js → info-icon.C1ReXurF.js} +4 -4
- package/dist/chunks/{info-icon.bXR5eo6I.js.map → info-icon.C1ReXurF.js.map} +1 -1
- package/dist/chunks/info.4d_mJHvT.js +24 -0
- package/dist/chunks/info.4d_mJHvT.js.map +1 -0
- package/dist/chunks/input-field-password.CZn4kW8v.js +198 -0
- package/dist/chunks/input-field-password.CZn4kW8v.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.Bmugk7fI.js → input-field-phone-number.C8WTJ1W-.js} +324 -321
- package/dist/chunks/{input-field-phone-number.Bmugk7fI.js.map → input-field-phone-number.C8WTJ1W-.js.map} +1 -1
- package/dist/chunks/input-field.tP3Eupoo.js +152 -0
- package/dist/chunks/input-field.tP3Eupoo.js.map +1 -0
- package/dist/chunks/{inspector.types.C9Oc8FgA.js → inspector.types.A0b4jNO3.js} +3 -3
- package/dist/chunks/{inspector.types.C9Oc8FgA.js.map → inspector.types.A0b4jNO3.js.map} +1 -1
- package/dist/chunks/{layout-row.CHwDU8yK.js → layout-row.BgBazwnM.js} +2 -2
- package/dist/chunks/{layout-row.CHwDU8yK.js.map → layout-row.BgBazwnM.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.bPRcATJK.js → listbox-option-tag.T9cfTst7.js} +2 -2
- package/dist/chunks/{listbox-option-tag.bPRcATJK.js.map → listbox-option-tag.T9cfTst7.js.map} +1 -1
- package/dist/chunks/{menu.CzbkunwY.js → menu.CY7ceslP.js} +88 -87
- package/dist/chunks/menu.CY7ceslP.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.C4D3Rkdg.js → modal-fullscreen.Dz5w250z.js} +3 -3
- package/dist/chunks/{modal-fullscreen.C4D3Rkdg.js.map → modal-fullscreen.Dz5w250z.js.map} +1 -1
- package/dist/chunks/{modal.DgCmKjQC.js → modal.CnmRkXZM.js} +4 -4
- package/dist/chunks/{modal.DgCmKjQC.js.map → modal.CnmRkXZM.js.map} +1 -1
- package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
- package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
- package/dist/chunks/{pagination.CdOxfZW2.js → pagination.CvGOUwd8.js} +2 -2
- package/dist/chunks/{pagination.CdOxfZW2.js.map → pagination.CvGOUwd8.js.map} +1 -1
- package/dist/chunks/payment-method.NZKiNOmM.js +76 -0
- package/dist/chunks/payment-method.NZKiNOmM.js.map +1 -0
- package/dist/chunks/{popover.3sHql3nd.js → popover.BvsqsZQ1.js} +3 -3
- package/dist/chunks/{popover.3sHql3nd.js.map → popover.BvsqsZQ1.js.map} +1 -1
- package/dist/chunks/{popper-container.Bqy3oVj6.js → popper-container.LRQgzjRf.js} +2 -2
- package/dist/chunks/{popper-container.Bqy3oVj6.js.map → popper-container.LRQgzjRf.js.map} +1 -1
- package/dist/chunks/{promo-banner.BIICM7FC.js → promo-banner.DDnJwMDC.js} +2 -2
- package/dist/chunks/{promo-banner.BIICM7FC.js.map → promo-banner.DDnJwMDC.js.map} +1 -1
- package/dist/chunks/{radio-group.L-XokgwC.js → radio-group.BvswbJa8.js} +4 -4
- package/dist/chunks/{radio-group.L-XokgwC.js.map → radio-group.BvswbJa8.js.map} +1 -1
- package/dist/chunks/{search-bar.CDTWPjG1.js → search-bar.kKLreEXo.js} +5 -5
- package/dist/chunks/{search-bar.CDTWPjG1.js.map → search-bar.kKLreEXo.js.map} +1 -1
- package/dist/chunks/search.DLtglc02.js +24 -0
- package/dist/chunks/search.DLtglc02.js.map +1 -0
- package/dist/chunks/{secondary-nav.BwmBTvl5.js → secondary-nav.C6bfsK2p.js} +3 -3
- package/dist/chunks/{secondary-nav.BwmBTvl5.js.map → secondary-nav.C6bfsK2p.js.map} +1 -1
- package/dist/chunks/{segmented-control.CW6v1rDg.js → segmented-control.BywW3ont.js} +2 -2
- package/dist/chunks/{segmented-control.CW6v1rDg.js.map → segmented-control.BywW3ont.js.map} +1 -1
- package/dist/chunks/{selection-card-group.CURxGbd9.js → selection-card-group.Ca4G00h5.js} +5 -5
- package/dist/chunks/{selection-card-group.CURxGbd9.js.map → selection-card-group.Ca4G00h5.js.map} +1 -1
- package/dist/chunks/{sidepanel.MBArfd4a.js → sidepanel.D4H3Vu0m.js} +4 -4
- package/dist/chunks/{sidepanel.MBArfd4a.js.map → sidepanel.D4H3Vu0m.js.map} +1 -1
- package/dist/chunks/{structured-list-item.CYYZ1Fil.js → structured-list-item.Bv8reTz2.js} +5 -5
- package/dist/chunks/{structured-list-item.CYYZ1Fil.js.map → structured-list-item.Bv8reTz2.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CVEhwKNM.js → summary-grid-item-custom.Bbdie4EL.js} +188 -135
- package/dist/chunks/summary-grid-item-custom.Bbdie4EL.js.map +1 -0
- package/dist/chunks/{tag.BxmageRW.js → tag.IyMxowGc.js} +2 -2
- package/dist/chunks/{tag.BxmageRW.js.map → tag.IyMxowGc.js.map} +1 -1
- package/dist/chunks/{teleport.B5fwsT5y.js → teleport.BHfrns33.js} +2 -2
- package/dist/chunks/{teleport.B5fwsT5y.js.map → teleport.BHfrns33.js.map} +1 -1
- package/dist/chunks/{textarea.DmjhRupr.js → textarea.B9HjT5LH.js} +2 -2
- package/dist/chunks/{textarea.DmjhRupr.js.map → textarea.B9HjT5LH.js.map} +1 -1
- package/dist/chunks/{timeline-item.CLbS-cEf.js → timeline-item.BIwk0vqM.js} +12 -11
- package/dist/chunks/{timeline-item.CLbS-cEf.js.map → timeline-item.BIwk0vqM.js.map} +1 -1
- package/dist/chunks/{tooltip.Vgoc41cI.js → tooltip.DShIiBiY.js} +2 -2
- package/dist/chunks/{tooltip.Vgoc41cI.js.map → tooltip.DShIiBiY.js.map} +1 -1
- package/dist/chunks/{tutorial.CmLMgXDK.js → tutorial.DDlXTjAO.js} +42 -42
- package/dist/chunks/tutorial.DDlXTjAO.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.DVcpkFV3.js → use-cached-selected-values.LVldNial.js} +13 -9
- package/dist/chunks/{use-cached-selected-values.DVcpkFV3.js.map → use-cached-selected-values.LVldNial.js.map} +1 -1
- package/dist/click-outside.js +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +2 -2
- 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/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-with-views.js +5 -0
- package/dist/header-with-views.js.map +1 -0
- package/dist/header.js +1 -1
- package/dist/index.js +200 -198
- 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/inspector.js +1 -1
- package/dist/internal.js +35 -33
- package/dist/layout.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/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +73 -1
- package/dist/styles/bento-light.css +73 -1
- package/dist/styles/bento.css +73 -1
- package/dist/styles/legacy.css +75 -3
- package/dist/styles/styleguide.css +73 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/use-form-v4.js +8300 -0
- package/dist/use-form-v4.js.map +1 -0
- package/dist/web-types.json +1005 -206
- package/package.json +9 -8
- package/dist/chunks/alert.BSBLkXkM.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.B5gcSgRQ.js +0 -112
- package/dist/chunks/button-actions-with-menu.B5gcSgRQ.js.map +0 -1
- package/dist/chunks/calendar.YJTNpmzh.js +0 -888
- package/dist/chunks/calendar.YJTNpmzh.js.map +0 -1
- package/dist/chunks/checkbox-input.B4A_gL2b.js +0 -128
- package/dist/chunks/checkbox-input.B4A_gL2b.js.map +0 -1
- package/dist/chunks/checkbox.BpF0HY7C.js +0 -162
- package/dist/chunks/checkbox.BpF0HY7C.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js +0 -24
- package/dist/chunks/checkmark-circle-fill.C46dV1Rf.js.map +0 -1
- package/dist/chunks/cross-circle-fill.BawVYNw7.js +0 -24
- package/dist/chunks/cross-circle-fill.BawVYNw7.js.map +0 -1
- package/dist/chunks/data-grid.CHV-FvBB.js.map +0 -1
- package/dist/chunks/date-picker.CMj5-RQl.js +0 -213
- package/dist/chunks/date-picker.CMj5-RQl.js.map +0 -1
- package/dist/chunks/date-range-picker.Jysfo6h3.js +0 -885
- package/dist/chunks/date-range-picker.Jysfo6h3.js.map +0 -1
- package/dist/chunks/dropdown.DFEGHxjw.js.map +0 -1
- package/dist/chunks/file-uploader.DaBMZSsB.js.map +0 -1
- package/dist/chunks/filter-bar.DClIG9aP.js.map +0 -1
- package/dist/chunks/form-layout-title.C1n2S73_.js.map +0 -1
- package/dist/chunks/header.CRlxEGHb.js +0 -205
- package/dist/chunks/header.CRlxEGHb.js.map +0 -1
- package/dist/chunks/index.CU8GKq4C.js +0 -369
- package/dist/chunks/index.CrhTVr5J.js +0 -10
- package/dist/chunks/index.CrhTVr5J.js.map +0 -1
- package/dist/chunks/index.DDnf1O9p.js +0 -22
- package/dist/chunks/index.DDnf1O9p.js.map +0 -1
- package/dist/chunks/index.DPafeRJa.js +0 -10
- package/dist/chunks/index.DPafeRJa.js.map +0 -1
- package/dist/chunks/info.D4SG-AIm.js +0 -24
- package/dist/chunks/info.D4SG-AIm.js.map +0 -1
- package/dist/chunks/input-field-password.DsIpkc_9.js +0 -191
- package/dist/chunks/input-field-password.DsIpkc_9.js.map +0 -1
- package/dist/chunks/input-field.Dl2lXZda.js +0 -146
- package/dist/chunks/input-field.Dl2lXZda.js.map +0 -1
- package/dist/chunks/menu.CzbkunwY.js.map +0 -1
- package/dist/chunks/payment-method.BudFG3aC.js +0 -76
- package/dist/chunks/payment-method.BudFG3aC.js.map +0 -1
- package/dist/chunks/search.pVu-JVAN.js +0 -24
- package/dist/chunks/search.pVu-JVAN.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.CVEhwKNM.js.map +0 -1
- package/dist/chunks/tutorial.CmLMgXDK.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as C, watch as ue, computed as p, defineComponent as R, useSlots as pe, toRefs as fe, nextTick as L, useAttrs as Le, toRef as x, inject as Oe } from "vue";
|
|
2
2
|
import { d as ie, B as Ee } from "./typography.J1v_SPG3.js";
|
|
3
|
-
import { g as
|
|
3
|
+
import { g as k } from "./generate-uid.NJ8tVoha.js";
|
|
4
4
|
import { u as De } from "./aria-label.CaUURpnB.js";
|
|
5
5
|
import { u as V } from "./i18n.BQkEbtPM.js";
|
|
6
6
|
import { u as Be } from "./use-form-layout-loading.D3lALhtC.js";
|
|
7
|
-
import { a as U, b as
|
|
8
|
-
import { u as
|
|
9
|
-
import { a as u, b as H, B as J, c as
|
|
10
|
-
import { B as D, a as
|
|
11
|
-
import { B as Me } from "./directive.
|
|
12
|
-
import { F as
|
|
13
|
-
import { P as re } from "./popper-container.
|
|
14
|
-
import { B as Fe } from "./popover.
|
|
7
|
+
import { a as U, b as P, c as Ie, B as F, D as Te } from "./dropdown-default-textbox.CDTdHfTv.js";
|
|
8
|
+
import { u as Ne } from "./use-has-slot.C9lQZ6nz.js";
|
|
9
|
+
import { a as u, b as H, B as J, c as Re, u as Ae } from "./use-cached-selected-values.LVldNial.js";
|
|
10
|
+
import { B as D, a as $e } from "./keyboard-navigation.pB8weElW.js";
|
|
11
|
+
import { B as Me } from "./directive.Cbdox5VL.js";
|
|
12
|
+
import { F as Pe, E as ke } from "./error-message.CzQf7YOD.js";
|
|
13
|
+
import { P as re } from "./popper-container.LRQgzjRf.js";
|
|
14
|
+
import { B as Fe } from "./popover.BvsqsZQ1.js";
|
|
15
15
|
import { n as K } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
import { s as q } from "./events.CMzGybJJ.js";
|
|
@@ -30,19 +30,19 @@ const Ke = {
|
|
|
30
30
|
apply: "Aplicar",
|
|
31
31
|
cancel: "Cancelar"
|
|
32
32
|
}
|
|
33
|
-
}, ze = (
|
|
34
|
-
const
|
|
35
|
-
ue(
|
|
36
|
-
|
|
33
|
+
}, ze = (a, t, o, e) => {
|
|
34
|
+
const n = C(a.value), { t: l } = V();
|
|
35
|
+
ue(a, () => {
|
|
36
|
+
n.value = a.value;
|
|
37
37
|
});
|
|
38
38
|
const s = p(
|
|
39
|
-
() => JSON.stringify(
|
|
39
|
+
() => JSON.stringify(n.value) === JSON.stringify(a.value)
|
|
40
40
|
), i = () => {
|
|
41
|
-
e(u.SELECT,
|
|
41
|
+
e(u.SELECT, n.value), e(u.CLOSE_DROPDOWN);
|
|
42
42
|
}, c = () => {
|
|
43
|
-
|
|
43
|
+
n.value = a.value, e(u.CLOSE_DROPDOWN);
|
|
44
44
|
}, m = () => {
|
|
45
|
-
o.value && t.value && (
|
|
45
|
+
o.value && t.value && (n.value = a.value);
|
|
46
46
|
}, r = p(() => [
|
|
47
47
|
{
|
|
48
48
|
title: l("apply"),
|
|
@@ -53,21 +53,21 @@ const Ke = {
|
|
|
53
53
|
title: l("cancel"),
|
|
54
54
|
event: c
|
|
55
55
|
}
|
|
56
|
-
]), d = (
|
|
57
|
-
|
|
58
|
-
}, g = (
|
|
59
|
-
d(
|
|
60
|
-
}, h = (
|
|
61
|
-
d(
|
|
62
|
-
}, v = (
|
|
63
|
-
d(
|
|
56
|
+
]), d = (y) => {
|
|
57
|
+
n.value = y, t.value || e(u.SELECT, y);
|
|
58
|
+
}, g = (y) => {
|
|
59
|
+
d(y), e(u.TAB);
|
|
60
|
+
}, h = (y) => {
|
|
61
|
+
d(y), e(u.ENTER);
|
|
62
|
+
}, v = (y) => {
|
|
63
|
+
d(y), e(u.SPACE);
|
|
64
64
|
}, O = () => {
|
|
65
65
|
c(), e(u.ESCAPE);
|
|
66
|
-
},
|
|
66
|
+
}, w = () => {
|
|
67
67
|
e(u.SHOW_MORE);
|
|
68
68
|
}, S = {
|
|
69
69
|
[u.SELECT]: d,
|
|
70
|
-
[u.SHOW_MORE]:
|
|
70
|
+
[u.SHOW_MORE]: w,
|
|
71
71
|
[u.TAB]: g,
|
|
72
72
|
[u.SPACE]: v,
|
|
73
73
|
[u.ENTER]: h
|
|
@@ -75,22 +75,26 @@ const Ke = {
|
|
|
75
75
|
return {
|
|
76
76
|
// Values
|
|
77
77
|
actions: r,
|
|
78
|
-
internalSelectedValue:
|
|
78
|
+
internalSelectedValue: n,
|
|
79
79
|
// Methods
|
|
80
80
|
listeners: S,
|
|
81
81
|
onEscapeKey: O,
|
|
82
82
|
onOutsideDropdownClick: m
|
|
83
83
|
};
|
|
84
|
-
},
|
|
84
|
+
}, je = R({
|
|
85
85
|
i18n: { messages: Ke },
|
|
86
86
|
name: "bento-dropdown-options-container"
|
|
87
|
-
}),
|
|
88
|
-
...
|
|
87
|
+
}), We = /* @__PURE__ */ R({
|
|
88
|
+
...je,
|
|
89
89
|
props: {
|
|
90
90
|
/**
|
|
91
91
|
* Defines a string value that labels an interactive element.
|
|
92
92
|
*/
|
|
93
93
|
ariaLabel: { type: String, default: null },
|
|
94
|
+
/**
|
|
95
|
+
* Indicates that dropdown items are loading
|
|
96
|
+
*/
|
|
97
|
+
componentLoading: { type: Boolean, default: !1 },
|
|
94
98
|
/**
|
|
95
99
|
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
96
100
|
*/
|
|
@@ -141,10 +145,10 @@ const Ke = {
|
|
|
141
145
|
lazyLoadType: {
|
|
142
146
|
type: String,
|
|
143
147
|
default: J.AUTOMATIC,
|
|
144
|
-
validator: (
|
|
148
|
+
validator: (a) => Object.values(J).includes(a)
|
|
145
149
|
},
|
|
146
150
|
/**
|
|
147
|
-
* Indicates if new options are loading.
|
|
151
|
+
* Indicates if new options are lazy loading.
|
|
148
152
|
*/
|
|
149
153
|
loading: { type: Boolean, default: !1 },
|
|
150
154
|
/**
|
|
@@ -191,12 +195,12 @@ const Ke = {
|
|
|
191
195
|
}
|
|
192
196
|
},
|
|
193
197
|
emits: [],
|
|
194
|
-
setup(
|
|
195
|
-
const e =
|
|
198
|
+
setup(a, { expose: t, emit: o }) {
|
|
199
|
+
const e = a, n = pe(), { selectedValue: l, multiple: s } = fe(e), i = C(null), { t: c } = V(), m = p(() => e.open && !e.disabled), r = p(() => c("noOptionsMatchThisSearch")), d = p(() => ({
|
|
196
200
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
197
201
|
})), g = p(() => ({
|
|
198
202
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
199
|
-
})), { actions: h, internalSelectedValue: v, listeners: O, onEscapeKey:
|
|
203
|
+
})), { actions: h, internalSelectedValue: v, listeners: O, onEscapeKey: w, onOutsideDropdownClick: S } = ze(l, s, m, o), y = p(() => e != null && e.multiple ? Fe : re), I = p(() => {
|
|
200
204
|
var T;
|
|
201
205
|
const B = {
|
|
202
206
|
"min-width": `${(T = e == null ? void 0 : e.targetElement) == null ? void 0 : T.clientWidth}px`,
|
|
@@ -207,7 +211,7 @@ const Ke = {
|
|
|
207
211
|
actions: h.value,
|
|
208
212
|
divider: !0,
|
|
209
213
|
fallbackPosition: ["top-start"],
|
|
210
|
-
id:
|
|
214
|
+
id: k(`dropdown-options-${e.id}`),
|
|
211
215
|
open: e.open,
|
|
212
216
|
position: "bottom-start",
|
|
213
217
|
style: {
|
|
@@ -228,25 +232,25 @@ const Ke = {
|
|
|
228
232
|
});
|
|
229
233
|
return t({
|
|
230
234
|
onOutsideDropdownClick: S
|
|
231
|
-
}), { __sfc: !0, slots:
|
|
235
|
+
}), { __sfc: !0, slots: n, emit: o, props: e, selectedValue: l, multiple: s, dropdownOptionsListboxRef: i, t: c, isDropdownOpen: m, noResultsMessage: r, conditionalClasses: d, conditionalListboxClasses: g, actions: h, internalSelectedValue: v, listeners: O, onEscapeKey: w, onOutsideDropdownClick: S, popperContainerOrPopoverComponent: y, popperContainerOrPopoverProps: I, BentoListbox: H };
|
|
232
236
|
}
|
|
233
237
|
});
|
|
234
238
|
var Ue = function() {
|
|
235
239
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
236
|
-
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(
|
|
237
|
-
return !
|
|
238
|
-
} } }, [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(
|
|
240
|
+
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(n) {
|
|
241
|
+
return !n.type.indexOf("key") && t._k(n.keyCode, "esc", 27, n.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
242
|
+
} } }, [o(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(n, l) {
|
|
239
243
|
return { key: l, fn: function(s) {
|
|
240
244
|
return [t._t(l, null, null, s)];
|
|
241
245
|
} };
|
|
242
246
|
})], null, !0) }, e.listeners))], 1)]);
|
|
243
247
|
}, qe = [], He = /* @__PURE__ */ K(
|
|
244
|
-
|
|
248
|
+
We,
|
|
245
249
|
Ue,
|
|
246
250
|
qe,
|
|
247
251
|
!1,
|
|
248
252
|
null,
|
|
249
|
-
"
|
|
253
|
+
"35feb278"
|
|
250
254
|
);
|
|
251
255
|
const Je = He.exports;
|
|
252
256
|
let de = 0;
|
|
@@ -284,11 +288,11 @@ var et = function() {
|
|
|
284
288
|
null,
|
|
285
289
|
null
|
|
286
290
|
);
|
|
287
|
-
const
|
|
291
|
+
const nt = ot.exports, at = R({
|
|
288
292
|
name: "dropdown-small-textbox",
|
|
289
293
|
inheritAttrs: !1
|
|
290
|
-
}), st = /* @__PURE__ */
|
|
291
|
-
...
|
|
294
|
+
}), st = /* @__PURE__ */ R({
|
|
295
|
+
...at,
|
|
292
296
|
props: {
|
|
293
297
|
/**
|
|
294
298
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -348,8 +352,8 @@ const at = ot.exports, nt = A({
|
|
|
348
352
|
value: { type: String, default: "" }
|
|
349
353
|
},
|
|
350
354
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
351
|
-
setup(
|
|
352
|
-
const e =
|
|
355
|
+
setup(a, { expose: t, emit: o }) {
|
|
356
|
+
const e = a, n = C(null), l = p(() => ({
|
|
353
357
|
[`b-dropdown-small-textbox--${U.DISABLED}`]: e.disabled,
|
|
354
358
|
[`b-dropdown-small-textbox--${U.READONLY}`]: e.readonly,
|
|
355
359
|
[`b-dropdown-small-textbox--${U.OPENED}`]: e.open
|
|
@@ -364,17 +368,17 @@ const at = ot.exports, nt = A({
|
|
|
364
368
|
}, d = (v) => {
|
|
365
369
|
q(v), o("clear");
|
|
366
370
|
}, g = {
|
|
367
|
-
[
|
|
368
|
-
[
|
|
369
|
-
[
|
|
370
|
-
[
|
|
371
|
-
[
|
|
371
|
+
[P.INPUT]: i,
|
|
372
|
+
[P.OPEN]: m,
|
|
373
|
+
[P.CLOSE]: r,
|
|
374
|
+
[P.CLEAR]: d,
|
|
375
|
+
[P.KEYDOWN]: c
|
|
372
376
|
}, h = () => {
|
|
373
|
-
|
|
377
|
+
n.value.focus();
|
|
374
378
|
};
|
|
375
379
|
return t({
|
|
376
380
|
focus: h
|
|
377
|
-
}), { __sfc: !0, emit: o, props: e, baseTextbox:
|
|
381
|
+
}), { __sfc: !0, emit: o, props: e, baseTextbox: n, conditionalClasses: l, isDropdownOpen: s, onInput: i, onKeyDown: c, openDropdown: m, closeDropdown: r, clearValue: d, listeners: g, focus: h, BentoDropdownSize: F, DropdownBaseTextbox: Ie, ChevronDownSmallIcon: Xe, ChevronUpSmallIcon: nt };
|
|
378
382
|
}
|
|
379
383
|
});
|
|
380
384
|
var lt = function() {
|
|
@@ -390,47 +394,47 @@ var lt = function() {
|
|
|
390
394
|
null,
|
|
391
395
|
"d0e53db8"
|
|
392
396
|
);
|
|
393
|
-
const dt = rt.exports, ct = (
|
|
397
|
+
const dt = rt.exports, ct = (a, t) => t.value.reduce((o, e) => {
|
|
394
398
|
if (e.items) {
|
|
395
|
-
const
|
|
396
|
-
(s) =>
|
|
399
|
+
const n = e.items.filter(
|
|
400
|
+
(s) => a.value.find((i) => i.value === s.value)
|
|
397
401
|
);
|
|
398
|
-
|
|
402
|
+
n.length === e.items.length ? o.push(e.displayValue ?? e.label) : n.forEach(({ label: s, displayValue: i }) => o.push(i ?? s));
|
|
399
403
|
}
|
|
400
|
-
return
|
|
401
|
-
}, []).join(", "), ut = ({ items:
|
|
402
|
-
const
|
|
403
|
-
() => e.value &&
|
|
404
|
+
return a.value.find((n) => n.value === e.value) && o.push(e.displayValue ?? e.label), o;
|
|
405
|
+
}, []).join(", "), ut = ({ items: a, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
|
|
406
|
+
const n = p(
|
|
407
|
+
() => e.value && a.value.find((s) => {
|
|
404
408
|
var i;
|
|
405
409
|
return (i = s.items) == null ? void 0 : i.length;
|
|
406
410
|
})
|
|
407
411
|
);
|
|
408
|
-
return p(() => o.value.length ?
|
|
409
|
-
}, ve = (
|
|
412
|
+
return p(() => o.value.length ? n.value ? ct(o, a) : o.value.map(({ label: s, displayValue: i }) => i ?? s).join(", ") : t.value || null);
|
|
413
|
+
}, ve = (a) => {
|
|
410
414
|
var t;
|
|
411
|
-
(t =
|
|
415
|
+
(t = a.value.$children) == null || t[0].$refs.textbox.focus();
|
|
412
416
|
}, pt = ({
|
|
413
|
-
inputContainerRef:
|
|
417
|
+
inputContainerRef: a,
|
|
414
418
|
optionsContainerRef: t,
|
|
415
419
|
selectedValueIndex: o,
|
|
416
420
|
isDropdownOpen: e,
|
|
417
|
-
isDynamicFltering:
|
|
421
|
+
isDynamicFltering: n,
|
|
418
422
|
items: l,
|
|
419
423
|
isMultiple: s
|
|
420
424
|
}, i, c, m) => {
|
|
421
425
|
const r = async (f) => {
|
|
422
|
-
var
|
|
423
|
-
|
|
426
|
+
var b, E;
|
|
427
|
+
n.value && await L(), (E = (b = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : b.$el.querySelectorAll('[role="option"]')[f]) == null || E.focus();
|
|
424
428
|
}, d = async (f) => {
|
|
425
429
|
var E, z;
|
|
426
|
-
|
|
427
|
-
const
|
|
430
|
+
n.value && await L();
|
|
431
|
+
const b = (E = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : E.$el.querySelectorAll(
|
|
428
432
|
"button"
|
|
429
433
|
);
|
|
430
|
-
|
|
434
|
+
b.length ? (z = b[f]) == null || z.focus() : r(f);
|
|
431
435
|
}, g = (f) => {
|
|
432
|
-
var
|
|
433
|
-
return (
|
|
436
|
+
var b;
|
|
437
|
+
return (b = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : b.setListboxFocusedIndex(
|
|
434
438
|
f
|
|
435
439
|
);
|
|
436
440
|
}, h = ({ detail: f }) => {
|
|
@@ -445,16 +449,16 @@ const dt = rt.exports, ct = (n, t) => t.value.reduce((o, e) => {
|
|
|
445
449
|
e.value || (c(), L(() => {
|
|
446
450
|
var f;
|
|
447
451
|
if (s) {
|
|
448
|
-
const
|
|
449
|
-
(f =
|
|
452
|
+
const b = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
453
|
+
(f = b == null ? void 0 : b[b.length - 1].$el.querySelectorAll('[role="option"]')[l.length - 1]) == null || f.focus();
|
|
450
454
|
} else
|
|
451
455
|
g(l.length - 1), r(l.length - 1);
|
|
452
456
|
}));
|
|
453
|
-
},
|
|
454
|
-
e.value && (m(), ve(
|
|
457
|
+
}, w = () => {
|
|
458
|
+
e.value && (m(), ve(a));
|
|
455
459
|
}, S = () => {
|
|
456
460
|
e.value && m();
|
|
457
|
-
},
|
|
461
|
+
}, y = () => {
|
|
458
462
|
e.value || c(), L(() => {
|
|
459
463
|
s ? d(0) : r(0);
|
|
460
464
|
});
|
|
@@ -468,19 +472,19 @@ const dt = rt.exports, ct = (n, t) => t.value.reduce((o, e) => {
|
|
|
468
472
|
});
|
|
469
473
|
};
|
|
470
474
|
return p(() => ({
|
|
471
|
-
...
|
|
475
|
+
...n.value ? {} : { [D.SPACE]: I },
|
|
472
476
|
[D.ENTER]: B,
|
|
473
477
|
[D.ARROW_DOWN]: h,
|
|
474
478
|
[D.ARROW_UP]: v,
|
|
475
479
|
[D.END]: O,
|
|
476
|
-
[D.ESCAPE]:
|
|
477
|
-
[D.HOME]:
|
|
480
|
+
[D.ESCAPE]: w,
|
|
481
|
+
[D.HOME]: y,
|
|
478
482
|
[D.TAB]: S
|
|
479
483
|
}));
|
|
480
|
-
}, ft = ({ inputContainerRef:
|
|
484
|
+
}, ft = ({ inputContainerRef: a, isDropdownOpen: t }, o) => {
|
|
481
485
|
const e = () => {
|
|
482
486
|
t.value && o(), L(() => {
|
|
483
|
-
ve(
|
|
487
|
+
ve(a);
|
|
484
488
|
});
|
|
485
489
|
};
|
|
486
490
|
return {
|
|
@@ -490,14 +494,14 @@ const dt = rt.exports, ct = (n, t) => t.value.reduce((o, e) => {
|
|
|
490
494
|
[u.SPACE]: e
|
|
491
495
|
};
|
|
492
496
|
};
|
|
493
|
-
function vt(
|
|
494
|
-
const
|
|
495
|
-
return ue(
|
|
496
|
-
o !== void 0 && o(
|
|
497
|
+
function vt(a, t, o, e) {
|
|
498
|
+
const n = C(a), l = C(t), s = (c, m = []) => m.flatMap((r) => r.label.toLocaleLowerCase().includes(c) ? e != null && e.value && r.items ? [...s(c, r.items)] : [r, ...s(c, r.items)] : r.items ? [...s(c, r.items)] : []);
|
|
499
|
+
return ue(n, () => {
|
|
500
|
+
o !== void 0 && o(n.value);
|
|
497
501
|
}), p(() => {
|
|
498
|
-
if (!
|
|
502
|
+
if (!n.value || o !== void 0)
|
|
499
503
|
return l.value;
|
|
500
|
-
const c =
|
|
504
|
+
const c = n.value.toLocaleLowerCase();
|
|
501
505
|
return s(c, l.value);
|
|
502
506
|
});
|
|
503
507
|
}
|
|
@@ -515,15 +519,15 @@ const mt = {
|
|
|
515
519
|
all: "Todos",
|
|
516
520
|
clearFilter: "Limpar filtro"
|
|
517
521
|
}
|
|
518
|
-
},
|
|
522
|
+
}, yt = Symbol("input field component injection key"), Ft = Symbol("input field hint injection key"), Kt = Symbol("input field parent component injection key"), bt = R({
|
|
519
523
|
i18n: { messages: mt },
|
|
520
524
|
name: "b-dropdown",
|
|
521
525
|
components: {
|
|
522
526
|
DropdownInputDefault: Te,
|
|
523
527
|
DropdownInputSmall: dt
|
|
524
528
|
}
|
|
525
|
-
}), _t = /* @__PURE__ */
|
|
526
|
-
...
|
|
529
|
+
}), _t = /* @__PURE__ */ R({
|
|
530
|
+
...bt,
|
|
527
531
|
props: {
|
|
528
532
|
/**
|
|
529
533
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -600,9 +604,13 @@ const mt = {
|
|
|
600
604
|
*/
|
|
601
605
|
label: { type: String, default: null },
|
|
602
606
|
/**
|
|
603
|
-
* Indicates if new options are loading.
|
|
607
|
+
* Indicates if new options are lazy loading.
|
|
604
608
|
*/
|
|
605
609
|
loading: { type: Boolean, default: !1 },
|
|
610
|
+
/**
|
|
611
|
+
* Indicates that dropdown items are loading
|
|
612
|
+
*/
|
|
613
|
+
componentLoading: { type: Boolean, default: !1 },
|
|
606
614
|
/**
|
|
607
615
|
* The type of `Lazy Load`.
|
|
608
616
|
* Type "automatic" will enable infinite scrolling
|
|
@@ -611,7 +619,7 @@ const mt = {
|
|
|
611
619
|
lazyLoadType: {
|
|
612
620
|
type: String,
|
|
613
621
|
default: H.props.lazyLoadType.default,
|
|
614
|
-
validator: (
|
|
622
|
+
validator: (a) => Object.values(J).includes(a)
|
|
615
623
|
},
|
|
616
624
|
/*
|
|
617
625
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -651,7 +659,7 @@ const mt = {
|
|
|
651
659
|
size: {
|
|
652
660
|
type: String,
|
|
653
661
|
default: null,
|
|
654
|
-
validator: (
|
|
662
|
+
validator: (a) => Object.values(F).includes(a)
|
|
655
663
|
},
|
|
656
664
|
/**
|
|
657
665
|
* If enabled, dropdown will display non-selectable, static categories
|
|
@@ -680,23 +688,23 @@ const mt = {
|
|
|
680
688
|
}
|
|
681
689
|
},
|
|
682
690
|
emits: ["input", "show-more"],
|
|
683
|
-
setup(
|
|
691
|
+
setup(a, { expose: t, emit: o }) {
|
|
684
692
|
var le;
|
|
685
|
-
const e =
|
|
693
|
+
const e = a, n = Le(), l = pe(), s = Ne(l), { t: i } = V(), c = C(null), m = C(null), r = C(null), d = C(!1), g = k("bento-dropdown-options-container"), h = k("dropdown-label"), v = k("dropdown-description"), O = k("dropdown-error"), { isReadOnly: w } = Be(x(e, "readonly")), { cachedSelectedListboxOptions: S, cachedListboxSelectedValues: y, setCachedValues: I } = Re(
|
|
686
694
|
x(e, "items"),
|
|
687
695
|
x(e, "value"),
|
|
688
696
|
x(e, "multiple")
|
|
689
|
-
), B =
|
|
697
|
+
), B = C(n["aria-label"]), { ariaLabel: T, label: f } = fe(e), b = De({
|
|
690
698
|
// TODO: take ariaLabel ref away when aria-label prop is removed
|
|
691
699
|
ariaLabel: T || B,
|
|
692
700
|
label: f,
|
|
693
701
|
defaultFallback: i("ariaLabelFallback")
|
|
694
|
-
}), E = e.size === F.SMALL || Oe(
|
|
702
|
+
}), E = e.size === F.SMALL || Oe(yt, !1), z = p(() => E ? F.SMALL : F.DEFAULT), me = p(() => ({
|
|
695
703
|
"b-dropdown--condensed": e.condensed
|
|
696
|
-
})),
|
|
704
|
+
})), ye = p(() => ({
|
|
697
705
|
"b-dropdown__description--error": !!e.errorMessage
|
|
698
|
-
})),
|
|
699
|
-
items:
|
|
706
|
+
})), N = C(""), A = x(e, "items"), Y = x(e, "staticCategories"), Z = vt(N, A, (le = e == null ? void 0 : e.search) == null ? void 0 : le.searchEvent, Y), W = p(() => e.dynamicFiltering && !!N.value), be = ut({
|
|
707
|
+
items: A,
|
|
700
708
|
placeholder: x(e, "placeholder"),
|
|
701
709
|
isMultiSelect: x(e, "multiple"),
|
|
702
710
|
selectedValues: S
|
|
@@ -713,30 +721,30 @@ const mt = {
|
|
|
713
721
|
}
|
|
714
722
|
return e.items.find(({ value: _ }) => _ === (e == null ? void 0 : e.value));
|
|
715
723
|
}), Q = p(() => {
|
|
716
|
-
const _ = Z.value.findIndex(({ value:
|
|
724
|
+
const _ = Z.value.findIndex(({ value: $ }) => e.value === $);
|
|
717
725
|
return _ > 0 ? _ : 0;
|
|
718
|
-
}), { isMultiLevelSelect: X, flattenedItemsList: G } =
|
|
726
|
+
}), { isMultiLevelSelect: X, flattenedItemsList: G } = Ae(A), ge = p(() => {
|
|
719
727
|
var _;
|
|
720
728
|
if (e.multiple) {
|
|
721
|
-
const
|
|
722
|
-
return !e.hasMoreItems && M ===
|
|
729
|
+
const $ = (_ = e == null ? void 0 : e.value) == null ? void 0 : _.length, M = X.value ? G.value.length : A.value.length;
|
|
730
|
+
return !e.hasMoreItems && M === $ ? i("all") : $;
|
|
723
731
|
}
|
|
724
732
|
return null;
|
|
725
733
|
}), he = p(
|
|
726
734
|
() => `${e.description ? v : ""} ${e.errorMessage ? O : ""}`.trim() || null
|
|
727
735
|
), ee = () => {
|
|
728
|
-
|
|
729
|
-
},
|
|
736
|
+
w.value || (d.value = !0);
|
|
737
|
+
}, j = () => {
|
|
730
738
|
d.value = !1;
|
|
731
739
|
}, te = () => {
|
|
732
|
-
|
|
733
|
-
},
|
|
734
|
-
|
|
740
|
+
w.value || (d.value = !d.value, W.value && (N.value = ""));
|
|
741
|
+
}, Ce = () => {
|
|
742
|
+
W.value && (N.value = ""), d.value && (d.value = !1, r.value.onOutsideDropdownClick());
|
|
735
743
|
}, oe = (_) => {
|
|
736
|
-
e.multiple || (
|
|
737
|
-
},
|
|
744
|
+
e.multiple || (N.value = "", d.value = !1), I(_), o("input", y.value);
|
|
745
|
+
}, ne = () => {
|
|
738
746
|
o(u.SHOW_MORE);
|
|
739
|
-
},
|
|
747
|
+
}, we = pt(
|
|
740
748
|
{
|
|
741
749
|
inputContainerRef: c,
|
|
742
750
|
optionsContainerRef: r,
|
|
@@ -748,18 +756,18 @@ const mt = {
|
|
|
748
756
|
},
|
|
749
757
|
te,
|
|
750
758
|
ee,
|
|
751
|
-
|
|
752
|
-
),
|
|
759
|
+
j
|
|
760
|
+
), ae = ft(
|
|
753
761
|
{
|
|
754
762
|
inputContainerRef: c,
|
|
755
763
|
isDropdownOpen: d
|
|
756
764
|
},
|
|
757
|
-
|
|
765
|
+
j
|
|
758
766
|
), Se = {
|
|
759
|
-
[u.CLOSE_DROPDOWN]:
|
|
767
|
+
[u.CLOSE_DROPDOWN]: j,
|
|
760
768
|
[u.SELECT]: oe,
|
|
761
|
-
[u.SHOW_MORE]:
|
|
762
|
-
...
|
|
769
|
+
[u.SHOW_MORE]: ne,
|
|
770
|
+
...ae
|
|
763
771
|
};
|
|
764
772
|
e.error && ie(
|
|
765
773
|
'BentoDropdown "error" property',
|
|
@@ -773,11 +781,11 @@ const mt = {
|
|
|
773
781
|
};
|
|
774
782
|
return t({
|
|
775
783
|
focus: se
|
|
776
|
-
}), { __sfc: !0, attrs:
|
|
784
|
+
}), { __sfc: !0, attrs: n, slots: l, hasSlot: s, props: e, emit: o, t: i, inputContainerRef: c, inputContainerRefWrapper: m, optionsContainerRef: r, isDropdownOpen: d, dropdownOptionsContainerId: g, labelId: h, descriptionId: v, errorId: O, isReadOnly: w, cachedSelectedListboxOptions: S, cachedListboxSelectedValues: y, setCachedValues: I, ariaLabelAttribute: B, ariaLabel: T, label: f, computedAriaLabel: b, isInputComponent: E, size: z, conditionalClasses: me, descriptionConditionalClasses: ye, searchTerm: N, items: A, staticCategories: Y, filteredItems: Z, isSearching: W, displayValue: be, selectedValueItem: _e, selectedValueIndex: Q, isMultiLevelSelect: X, flattenedItemsList: G, additionalItemsSelected: ge, ariaDescribedBy: he, openDropdown: ee, closeDropdown: j, toggleDropdown: te, clickOutsideDropdown: Ce, onOptionSelected: oe, emitShowMoreEvent: ne, textboxKeyboardNavigationListeners: we, listboxKeyboardNavigationListeners: ae, listboxListeners: Se, focus: se, BentoDropdownOptionsContainer: Je, BentoTypography: Ee, ErrorMessage: ke, FieldLabel: Pe, vBentoClickOutsideDirective: Me, vBentoKeyboardNavigationDirective: $e };
|
|
777
785
|
}
|
|
778
786
|
});
|
|
779
787
|
var gt = function() {
|
|
780
|
-
var
|
|
788
|
+
var n;
|
|
781
789
|
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
782
790
|
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(l) {
|
|
783
791
|
e.searchTerm = l;
|
|
@@ -785,26 +793,27 @@ var gt = function() {
|
|
|
785
793
|
return { key: s, fn: function(i) {
|
|
786
794
|
return [t._t(s, null, null, i)];
|
|
787
795
|
} };
|
|
788
|
-
})], 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": (
|
|
796
|
+
})], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "debounce-time": (n = t.search) == null ? void 0 : n.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(l, s) {
|
|
789
797
|
return { key: s, fn: function(i) {
|
|
790
798
|
return [t._t(s, null, null, i)];
|
|
791
799
|
} };
|
|
792
800
|
})], 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() {
|
|
793
801
|
return [t._v(" " + t._s(t.description) + " ")];
|
|
794
802
|
})], 2) : t._e()], 1);
|
|
795
|
-
}, ht = [],
|
|
803
|
+
}, ht = [], Ct = /* @__PURE__ */ K(
|
|
796
804
|
_t,
|
|
797
805
|
gt,
|
|
798
806
|
ht,
|
|
799
807
|
!1,
|
|
800
808
|
null,
|
|
801
|
-
"
|
|
809
|
+
"03d843d8"
|
|
802
810
|
);
|
|
803
|
-
const
|
|
811
|
+
const zt = Ct.exports;
|
|
804
812
|
export {
|
|
805
|
-
|
|
813
|
+
zt as B,
|
|
806
814
|
Ft as I,
|
|
807
|
-
|
|
815
|
+
yt as a,
|
|
816
|
+
Kt as b,
|
|
808
817
|
vt as u
|
|
809
818
|
};
|
|
810
|
-
//# sourceMappingURL=dropdown.
|
|
819
|
+
//# sourceMappingURL=dropdown.DzWXcJyF.js.map
|