@adyen/bento-vue3 1.68.2 → 1.69.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 +1 -0
- package/dist/@types/index.d.ts +752 -1177
- 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-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chip.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid-template.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/divider.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/focus-trap.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- 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/layout-row.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/loading-indicator.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/promo-banner.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toast.css +1 -1
- package/dist/assets/toggle-button.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +9 -9
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.DOnW0OnU.js → accordion-item.H062lKz1.js} +3 -3
- package/dist/chunks/accordion-item.H062lKz1.js.map +1 -0
- package/dist/chunks/{action-bar.CflF49oL.js → action-bar.CbO7oNER.js} +7 -8
- package/dist/chunks/action-bar.CbO7oNER.js.map +1 -0
- package/dist/chunks/{alert.DvleqX0i.js → alert.DFSdD4jX.js} +3 -3
- package/dist/chunks/{alert.DvleqX0i.js.map → alert.DFSdD4jX.js.map} +1 -1
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
- package/dist/chunks/{avatar.B0-9jC6H.js → avatar.BtxoYBvq.js} +2 -2
- package/dist/chunks/avatar.BtxoYBvq.js.map +1 -0
- package/dist/chunks/{base-button.DdNFlbgH.js → base-button.Bcwm87OM.js} +19 -19
- package/dist/chunks/base-button.Bcwm87OM.js.map +1 -0
- package/dist/chunks/{base-modal.C3_r3rmc.js → base-modal.7vdoT8zp.js} +21 -21
- package/dist/chunks/base-modal.7vdoT8zp.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.zdsGh7un.js +93 -0
- package/dist/chunks/button-actions-with-menu.zdsGh7un.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
- package/dist/chunks/{button.AB0SOQMn.js → button.wMNce6wZ.js} +4 -4
- package/dist/chunks/button.wMNce6wZ.js.map +1 -0
- package/dist/chunks/{calendar._oPk_A1C.js → calendar.CYrrR8wd.js} +10 -11
- package/dist/chunks/calendar.CYrrR8wd.js.map +1 -0
- package/dist/chunks/{card.CS34Mi_G.js → card.CNYYIpQW.js} +6 -5
- package/dist/chunks/card.CNYYIpQW.js.map +1 -0
- package/dist/chunks/{checkbox-group.JRo6xNpe.js → checkbox-group.fX5_d3XZ.js} +6 -6
- package/dist/chunks/checkbox-group.fX5_d3XZ.js.map +1 -0
- package/dist/chunks/{checkbox-input.DFkwZ4GM.js → checkbox-input.B1hV3DU-.js} +2 -2
- package/dist/chunks/checkbox-input.B1hV3DU-.js.map +1 -0
- package/dist/chunks/{checkbox.DGrG3GN1.js → checkbox.C62ek8A8.js} +27 -27
- package/dist/chunks/checkbox.C62ek8A8.js.map +1 -0
- package/dist/chunks/{chip.CneNX2_j.js → chip.CoBGGkn7.js} +11 -11
- package/dist/chunks/chip.CoBGGkn7.js.map +1 -0
- package/dist/chunks/{code-snippet.D5M76Qy6.js → code-snippet.CrKl93Wq.js} +8 -8
- package/dist/chunks/code-snippet.CrKl93Wq.js.map +1 -0
- package/dist/chunks/{controls-group.CrzkSu0U.js → controls-group.2xftPPd7.js} +3 -3
- package/dist/chunks/{controls-group.CrzkSu0U.js.map → controls-group.2xftPPd7.js.map} +1 -1
- package/dist/chunks/{copy.RUoQOydT.js → copy.-8xjj6Hr.js} +17 -18
- package/dist/chunks/copy.-8xjj6Hr.js.map +1 -0
- package/dist/chunks/{country.Q95voxeL.js → country.BdqTkF7A.js} +8 -8
- package/dist/chunks/country.BdqTkF7A.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
- package/dist/chunks/{currency.CZVdyZUH.js → currency.XiEfa4LT.js} +3 -3
- package/dist/chunks/currency.XiEfa4LT.js.map +1 -0
- package/dist/chunks/{dashboard-section.Bhd5Lsy2.js → dashboard-section.Di16gWGI.js} +4 -4
- package/dist/chunks/{dashboard-section.Bhd5Lsy2.js.map → dashboard-section.Di16gWGI.js.map} +1 -1
- package/dist/chunks/{dashed-underline.DkzQkpaf.js → dashed-underline.CyZEW1LZ.js} +30 -32
- package/dist/chunks/dashed-underline.CyZEW1LZ.js.map +1 -0
- package/dist/chunks/{data-grid-template.DSwj7e1E.js → data-grid-template.CnYNEhPR.js} +5 -5
- package/dist/chunks/data-grid-template.CnYNEhPR.js.map +1 -0
- package/dist/chunks/{data-grid.BEdELRNZ.js → data-grid.aEQt05d9.js} +1626 -1554
- package/dist/chunks/data-grid.aEQt05d9.js.map +1 -0
- package/dist/chunks/{date-picker.CAoXTiZR.js → date-picker.Bk0A3rha.js} +25 -26
- package/dist/chunks/date-picker.Bk0A3rha.js.map +1 -0
- package/dist/chunks/date-range-picker.l-CSmXBk.js +1168 -0
- package/dist/chunks/date-range-picker.l-CSmXBk.js.map +1 -0
- package/dist/chunks/{date.DSjCnSgL.js → date.BZENjOb6.js} +2 -2
- package/dist/chunks/{date.DSjCnSgL.js.map → date.BZENjOb6.js.map} +1 -1
- package/dist/chunks/{dialog-page.C80HOigq.js → dialog-page.BJaRwRhF.js} +15 -15
- package/dist/chunks/dialog-page.BJaRwRhF.js.map +1 -0
- package/dist/chunks/{divider.qUOSAbU6.js → divider.DnKNNyWB.js} +2 -2
- package/dist/chunks/divider.DnKNNyWB.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.Ce5D3ipi.js → dropdown-default-textbox.DWgL31p1.js} +111 -109
- package/dist/chunks/dropdown-default-textbox.DWgL31p1.js.map +1 -0
- package/dist/chunks/dropdown-tag.CnqIUH1X.js +263 -0
- package/dist/chunks/dropdown-tag.CnqIUH1X.js.map +1 -0
- package/dist/chunks/{dropdown.CMOYmQLB.js → dropdown.Co86azLK.js} +71 -71
- package/dist/chunks/dropdown.Co86azLK.js.map +1 -0
- package/dist/chunks/{empty-state.D7llINgF.js → empty-state.YNNEDsnK.js} +4 -4
- package/dist/chunks/empty-state.YNNEDsnK.js.map +1 -0
- package/dist/chunks/{error-message.DHMHq9bR.js → error-message.Cu4cIfdg.js} +3 -3
- package/dist/chunks/{error-message.DHMHq9bR.js.map → error-message.Cu4cIfdg.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js +12 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -0
- package/dist/chunks/events.CMzGybJJ.js +47 -0
- package/dist/chunks/events.CMzGybJJ.js.map +1 -0
- package/dist/chunks/{file-uploader.B_EI2fAc.js → file-uploader.09149Fx8.js} +153 -154
- package/dist/chunks/file-uploader.09149Fx8.js.map +1 -0
- package/dist/chunks/{filter-bar.DoHMLZ4O.js → filter-bar.D6n7Srr5.js} +215 -219
- package/dist/chunks/filter-bar.D6n7Srr5.js.map +1 -0
- package/dist/chunks/{fixed-scroller.D5nAPPbo.js → fixed-scroller.QlDKOD7y.js} +2 -2
- package/dist/chunks/{fixed-scroller.D5nAPPbo.js.map → fixed-scroller.QlDKOD7y.js.map} +1 -1
- package/dist/chunks/{focus-trap.CljZgv9i.js → focus-trap.rjp24a37.js} +2 -2
- package/dist/chunks/focus-trap.rjp24a37.js.map +1 -0
- package/dist/chunks/{footer-actions.Bje-DDqw.js → footer-actions.0cBTJ1kw.js} +5 -5
- package/dist/chunks/footer-actions.0cBTJ1kw.js.map +1 -0
- package/dist/chunks/{form-layout-title.rpIO-I9A.js → form-layout-title.Cq_xVPUq.js} +5 -5
- package/dist/chunks/form-layout-title.Cq_xVPUq.js.map +1 -0
- package/dist/chunks/{grid-layout.BTLE3rac.js → grid-layout.DDaRNz4-.js} +2 -2
- package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
- package/dist/chunks/{header-meta.Yt43-cUI.js → header-meta.BJGF0E3r.js} +26 -27
- package/dist/chunks/{header-meta.Yt43-cUI.js.map → header-meta.BJGF0E3r.js.map} +1 -1
- package/dist/chunks/{header-with-views.BUed3ocZ.js → header-with-views.Drzq84zs.js} +99 -103
- package/dist/chunks/header-with-views.Drzq84zs.js.map +1 -0
- package/dist/chunks/{header.CwKjDgKv.js → header.B6DzOioR.js} +32 -32
- package/dist/chunks/header.B6DzOioR.js.map +1 -0
- package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
- package/dist/chunks/{info-icon.DprUQ9fj.js → info-icon.DKnzFXy1.js} +8 -9
- package/dist/chunks/info-icon.DKnzFXy1.js.map +1 -0
- package/dist/chunks/{input-field-password.DN0Jro1V.js → input-field-password.DC8lJFsr.js} +8 -8
- package/dist/chunks/input-field-password.DC8lJFsr.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.BhPsrafR.js → input-field-phone-number.BbMEzDiR.js} +42 -41
- package/dist/chunks/{input-field-phone-number.BhPsrafR.js.map → input-field-phone-number.BbMEzDiR.js.map} +1 -1
- package/dist/chunks/{input-field.su5Cq8Dt.js → input-field.6bH4yGb2.js} +5 -5
- package/dist/chunks/input-field.6bH4yGb2.js.map +1 -0
- package/dist/chunks/{inspector.CoZCPfHC.js → inspector.Bsv68G-e.js} +13 -13
- package/dist/chunks/inspector.Bsv68G-e.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.CqgGzfZQ.js → keyboard-navigation.pB8weElW.js} +2 -2
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
- package/dist/chunks/{layout-row.CZNtHaXd.js → layout-row.CIg1pwOd.js} +9 -9
- package/dist/chunks/layout-row.CIg1pwOd.js.map +1 -0
- package/dist/chunks/{link.BBpxiclu.js → link.Di0rtpOj.js} +2 -2
- package/dist/chunks/{link.BBpxiclu.js.map → link.Di0rtpOj.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.0BK6jWO9.js → listbox-option-tag.C6WHiASI.js} +7 -7
- package/dist/chunks/listbox-option-tag.C6WHiASI.js.map +1 -0
- package/dist/chunks/{loading-indicator.DEepb9Wl.js → loading-indicator.BmAQqPP2.js} +3 -3
- package/dist/chunks/loading-indicator.BmAQqPP2.js.map +1 -0
- package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
- package/dist/chunks/{modal-fullscreen.DBTnoSX9.js → modal-fullscreen.BHzyS4y7.js} +18 -19
- package/dist/chunks/modal-fullscreen.BHzyS4y7.js.map +1 -0
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js → modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js} +6 -6
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.CqDhzFJ9.js.map +1 -0
- package/dist/chunks/{pagination.fYQak4C8.js → pagination.BuYH2_62.js} +5 -5
- package/dist/chunks/pagination.BuYH2_62.js.map +1 -0
- package/dist/chunks/{payment-method.eazefwm6.js → payment-method.4cnK2M5b.js} +3 -3
- package/dist/chunks/payment-method.4cnK2M5b.js.map +1 -0
- package/dist/chunks/popover.types.BQILgzhs.js +6 -0
- package/dist/chunks/popover.types.BQILgzhs.js.map +1 -0
- package/dist/chunks/{popper-container.b5h4zYgT.js → popper-container.idDrquM6.js} +285 -281
- package/dist/chunks/popper-container.idDrquM6.js.map +1 -0
- package/dist/chunks/{promo-banner.CQp3z2CP.js → promo-banner.il4_mdEk.js} +4 -4
- package/dist/chunks/promo-banner.il4_mdEk.js.map +1 -0
- package/dist/chunks/{radio-group.H9A5QcNu.js → radio-group.BG8W9epW.js} +8 -8
- package/dist/chunks/radio-group.BG8W9epW.js.map +1 -0
- package/dist/chunks/{radio-input.DKfQGxtp.js → radio-input.DvPjlvPm.js} +2 -2
- package/dist/chunks/radio-input.DvPjlvPm.js.map +1 -0
- package/dist/chunks/{rich-text-editor.Dx78coVL.js → rich-text-editor.vqti0Ls0.js} +8 -8
- package/dist/chunks/rich-text-editor.vqti0Ls0.js.map +1 -0
- package/dist/chunks/{search-bar.CUrcP_wf.js → search-bar.RGL70u_Y.js} +46 -44
- package/dist/chunks/search-bar.RGL70u_Y.js.map +1 -0
- package/dist/chunks/{secondary-nav.j3ddtYoZ.js → secondary-nav.Dtw_Dm_X.js} +28 -28
- package/dist/chunks/secondary-nav.Dtw_Dm_X.js.map +1 -0
- package/dist/chunks/{segmented-control.5-vlm8Gt.js → segmented-control.C6QyN2jS.js} +6 -7
- package/dist/chunks/segmented-control.C6QyN2jS.js.map +1 -0
- package/dist/chunks/{selection-card-group.B4xpnd-z.js → selection-card-group.DpogJSo0.js} +16 -16
- package/dist/chunks/selection-card-group.DpogJSo0.js.map +1 -0
- package/dist/chunks/{sidepanel.DPN__L3Q.js → sidepanel.BqRWoCd3.js} +14 -14
- package/dist/chunks/sidepanel.BqRWoCd3.js.map +1 -0
- package/dist/chunks/{status.types.Bdv2zuuh.js → status.types.B7vJ-_oJ.js} +9 -9
- package/dist/chunks/status.types.B7vJ-_oJ.js.map +1 -0
- package/dist/chunks/{step.BtNhPZAf.js → step.BdZrreHU.js} +8 -9
- package/dist/chunks/step.BdZrreHU.js.map +1 -0
- package/dist/chunks/{structured-list-item.BQbEDKhg.js → structured-list-item.DIwkcIMT.js} +18 -19
- package/dist/chunks/structured-list-item.DIwkcIMT.js.map +1 -0
- package/dist/chunks/{summary-grid.types.CjbbSZBJ.js → summary-grid.types.DHUnTXI-.js} +7 -7
- package/dist/chunks/{summary-grid.types.CjbbSZBJ.js.map → summary-grid.types.DHUnTXI-.js.map} +1 -1
- package/dist/chunks/{tab.CAt51ksU.js → tab.jIG8-7-Q.js} +5 -5
- package/dist/chunks/tab.jIG8-7-Q.js.map +1 -0
- package/dist/chunks/{tag.D3in0-Bp.js → tag.BP8fBCx-.js} +9 -10
- package/dist/chunks/tag.BP8fBCx-.js.map +1 -0
- package/dist/chunks/textarea.CtfRoIUw.js +295 -0
- package/dist/chunks/textarea.CtfRoIUw.js.map +1 -0
- package/dist/chunks/{timeline-item.CuCII37W.js → timeline-item.DthjD14m.js} +11 -11
- package/dist/chunks/timeline-item.DthjD14m.js.map +1 -0
- package/dist/chunks/{toast.CSoCPteL.js → toast.w_FD0zQA.js} +18 -18
- package/dist/chunks/toast.w_FD0zQA.js.map +1 -0
- package/dist/chunks/toggle-button.ByyLw0Yf.js +1347 -0
- package/dist/chunks/toggle-button.ByyLw0Yf.js.map +1 -0
- package/dist/chunks/{toggle.BuKXexA6.js → toggle.CjEL1ko8.js} +3 -3
- package/dist/chunks/toggle.CjEL1ko8.js.map +1 -0
- package/dist/chunks/{tooltip.VYPUHERk.js → tooltip.Dww8NiUR.js} +70 -64
- package/dist/chunks/tooltip.Dww8NiUR.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js → tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js} +48 -51
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.rY33hqQQ.js.map +1 -0
- package/dist/chunks/{typography.DN5eC5ch.js → typography.CFHvBR7L.js} +25 -25
- package/dist/chunks/typography.CFHvBR7L.js.map +1 -0
- package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js → use-bento-toast-controller.BzKbXZPO.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.D3LA1FCd.js.map → use-bento-toast-controller.BzKbXZPO.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.Dyoz6cUK.js → use-cached-selected-values.BcNRo4mZ.js} +16 -17
- package/dist/chunks/use-cached-selected-values.BcNRo4mZ.js.map +1 -0
- package/dist/chunks/use-country-items.Duh4bMqW.js.map +1 -1
- package/dist/chunks/use-country-phon-code.BOaJ9PDl.js.map +1 -1
- package/dist/chunks/use-has-slot.B7eQSabc.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/divider.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-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +204 -207
- 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 +3 -2
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +33 -32
- package/dist/internal.js.map +1 -1
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/loading-indicator.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 +2 -2
- package/dist/popper-container.js +4 -5
- package/dist/popper-container.js.map +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +17 -4
- package/dist/styles/bento-light.css +17 -4
- package/dist/styles/bento.css +17 -4
- package/dist/styles/legacy.css +17 -4
- package/dist/styles/styleguide.css +17 -4
- package/dist/styles/utility.css +3 -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/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/menu.css +0 -1
- package/dist/assets/popover.css +0 -1
- package/dist/assets/teleport.css +0 -1
- package/dist/chunks/accordion-item.DOnW0OnU.js.map +0 -1
- package/dist/chunks/action-bar.CflF49oL.js.map +0 -1
- package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
- package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
- package/dist/chunks/base-modal.C3_r3rmc.js.map +0 -1
- package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
- package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
- package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js +0 -91
- package/dist/chunks/button-actions-with-menu.8ZYh7-9s.js.map +0 -1
- package/dist/chunks/button-actions.CZdO9YOk.js +0 -264
- package/dist/chunks/button-actions.CZdO9YOk.js.map +0 -1
- package/dist/chunks/button.AB0SOQMn.js.map +0 -1
- package/dist/chunks/calendar._oPk_A1C.js.map +0 -1
- package/dist/chunks/card.CS34Mi_G.js.map +0 -1
- package/dist/chunks/checkbox-group.JRo6xNpe.js.map +0 -1
- package/dist/chunks/checkbox-input.DFkwZ4GM.js.map +0 -1
- package/dist/chunks/checkbox.DGrG3GN1.js.map +0 -1
- package/dist/chunks/chip.CneNX2_j.js.map +0 -1
- package/dist/chunks/code-snippet.D5M76Qy6.js.map +0 -1
- package/dist/chunks/copy.RUoQOydT.js.map +0 -1
- package/dist/chunks/country.Q95voxeL.js.map +0 -1
- package/dist/chunks/currency.CZVdyZUH.js.map +0 -1
- package/dist/chunks/dashed-underline.DkzQkpaf.js.map +0 -1
- package/dist/chunks/data-grid-template.DSwj7e1E.js.map +0 -1
- package/dist/chunks/data-grid.BEdELRNZ.js.map +0 -1
- package/dist/chunks/date-picker.CAoXTiZR.js.map +0 -1
- package/dist/chunks/date-range-picker.DtV4L3L6.js +0 -1225
- package/dist/chunks/date-range-picker.DtV4L3L6.js.map +0 -1
- package/dist/chunks/dialog-page.C80HOigq.js.map +0 -1
- package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +0 -1
- package/dist/chunks/dropdown-tag.B3fptORX.js +0 -230
- package/dist/chunks/dropdown-tag.B3fptORX.js.map +0 -1
- package/dist/chunks/dropdown.CMOYmQLB.js.map +0 -1
- package/dist/chunks/empty-state.D7llINgF.js.map +0 -1
- package/dist/chunks/es6.n1ewaW31.js +0 -11
- package/dist/chunks/es6.n1ewaW31.js.map +0 -1
- package/dist/chunks/events.FNmSWp_P.js +0 -52
- package/dist/chunks/events.FNmSWp_P.js.map +0 -1
- package/dist/chunks/file-uploader.B_EI2fAc.js.map +0 -1
- package/dist/chunks/filter-bar.DoHMLZ4O.js.map +0 -1
- package/dist/chunks/focus-trap.CljZgv9i.js.map +0 -1
- package/dist/chunks/footer-actions.Bje-DDqw.js.map +0 -1
- package/dist/chunks/form-layout-title.rpIO-I9A.js.map +0 -1
- package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
- package/dist/chunks/header-with-views.BUed3ocZ.js.map +0 -1
- package/dist/chunks/header.CwKjDgKv.js.map +0 -1
- package/dist/chunks/info-icon.DprUQ9fj.js.map +0 -1
- package/dist/chunks/input-field-password.DN0Jro1V.js.map +0 -1
- package/dist/chunks/input-field.su5Cq8Dt.js.map +0 -1
- package/dist/chunks/inspector.CoZCPfHC.js.map +0 -1
- package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
- package/dist/chunks/layout-row.CZNtHaXd.js.map +0 -1
- package/dist/chunks/listbox-option-tag.0BK6jWO9.js.map +0 -1
- package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
- package/dist/chunks/menu.EtjeOPXX.js +0 -680
- package/dist/chunks/menu.EtjeOPXX.js.map +0 -1
- package/dist/chunks/modal-fullscreen.DBTnoSX9.js.map +0 -1
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
- package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
- package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js.map +0 -1
- package/dist/chunks/pagination.fYQak4C8.js.map +0 -1
- package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
- package/dist/chunks/popover.DYgCCUCJ.js +0 -200
- package/dist/chunks/popover.DYgCCUCJ.js.map +0 -1
- package/dist/chunks/popover.types.V8old-GW.js +0 -6
- package/dist/chunks/popover.types.V8old-GW.js.map +0 -1
- package/dist/chunks/popper-container.b5h4zYgT.js.map +0 -1
- package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
- package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
- package/dist/chunks/promo-banner.CQp3z2CP.js.map +0 -1
- package/dist/chunks/radio-group.H9A5QcNu.js.map +0 -1
- package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
- package/dist/chunks/rich-text-editor.Dx78coVL.js.map +0 -1
- package/dist/chunks/search-bar.CUrcP_wf.js.map +0 -1
- package/dist/chunks/secondary-nav.j3ddtYoZ.js.map +0 -1
- package/dist/chunks/segmented-control.5-vlm8Gt.js.map +0 -1
- package/dist/chunks/selection-card-group.B4xpnd-z.js.map +0 -1
- package/dist/chunks/sidepanel.DPN__L3Q.js.map +0 -1
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
- package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
- package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
- package/dist/chunks/step.BtNhPZAf.js.map +0 -1
- package/dist/chunks/structured-list-item.BQbEDKhg.js.map +0 -1
- package/dist/chunks/tab.CAt51ksU.js.map +0 -1
- package/dist/chunks/tag.D3in0-Bp.js.map +0 -1
- package/dist/chunks/teleport.CfGWjxe2.js +0 -129
- package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
- package/dist/chunks/textarea.BBhN67-I.js +0 -282
- package/dist/chunks/textarea.BBhN67-I.js.map +0 -1
- package/dist/chunks/timeline-item.CuCII37W.js.map +0 -1
- package/dist/chunks/toast.CSoCPteL.js.map +0 -1
- package/dist/chunks/toggle-button.NQwrfSr1.js +0 -80
- package/dist/chunks/toggle-button.NQwrfSr1.js.map +0 -1
- package/dist/chunks/toggle.BuKXexA6.js.map +0 -1
- package/dist/chunks/tooltip.VYPUHERk.js.map +0 -1
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dmf8fGaM.js.map +0 -1
- package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.Dyoz6cUK.js.map +0 -1
- package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
- package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
package/dist/chunks/{dropdown-default-textbox.Ce5D3ipi.js → dropdown-default-textbox.DWgL31p1.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { g as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { B as
|
|
6
|
-
import { d as
|
|
7
|
-
import { C as
|
|
8
|
-
import { C as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { s as
|
|
11
|
-
import { C as
|
|
1
|
+
import { defineComponent as L, useAttrs as ne, useSlots as Q, ref as X, computed as i, watch as se, nextTick as z, createElementBlock as r, openBlock as n, withKeys as C, normalizeClass as K, createVNode as _, unref as o, withCtx as T, createCommentVNode as P, mergeProps as v, renderSlot as D, normalizeProps as Z, createTextVNode as R, toDisplayString as E, Fragment as H, renderList as ee, createElementVNode as te, withModifiers as j, createBlock as W, toHandlers as de, createSlots as re, withDirectives as J, vShow as G, guardReactiveProps as ie } from "vue";
|
|
2
|
+
import { g as ue } from "./generate-uid.NJ8tVoha.js";
|
|
3
|
+
import { u as ce } from "./i18n.B6g5VX0q.js";
|
|
4
|
+
import { u as pe } from "./use-has-slot.B7eQSabc.js";
|
|
5
|
+
import { B as be } from "./typography.CFHvBR7L.js";
|
|
6
|
+
import { d as fe } from "./debounce.DUTu11PS.js";
|
|
7
|
+
import { C as ye } from "./cross-circle-fill.CYLL7jfC.js";
|
|
8
|
+
import { C as me } from "./cross-circle-fill-small.Dv5-PxwF.js";
|
|
9
|
+
import { _ as ae } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
10
|
+
import { s as F } from "./events.CMzGybJJ.js";
|
|
11
|
+
import { C as ve } from "./chevron-down.DCQ6ZLaq.js";
|
|
12
12
|
import { C as xe } from "./chevron-up.kfuLRpZb.js";
|
|
13
13
|
import "../assets/dropdown-default-textbox.css";
|
|
14
|
-
var
|
|
15
|
-
const
|
|
14
|
+
var oe = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(oe || {}), b = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.HAS_ITEMS = "has-items", e.OPENED = "opened", e.ERROR = "error", e))(b || {}), d = /* @__PURE__ */ ((e) => (e.OPEN = "dropdown-base-open", e.KEYDOWN = "dropdown-base-keydown", e.CLOSE = "dropdown-base-close", e.INPUT = "dropdown-base-input", e.CLEAR = "dropdown-base-clear", e))(d || {});
|
|
15
|
+
const le = {
|
|
16
16
|
"en-US": {
|
|
17
17
|
clearSearch: "Clear search"
|
|
18
18
|
},
|
|
@@ -22,22 +22,22 @@ const oe = {
|
|
|
22
22
|
"pt-BR": {
|
|
23
23
|
clearSearch: "Limpar busca"
|
|
24
24
|
}
|
|
25
|
-
},
|
|
25
|
+
}, we = ["id", "value", "disabled", "readonly", "required"], Se = ["id", "aria-readonly"], Ie = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "b-dropdown-base-textbox__input-multiple-selected"
|
|
28
|
-
},
|
|
28
|
+
}, ge = { class: "b-dropdown-base-textbox__input-selected-element" }, he = {
|
|
29
29
|
key: 2,
|
|
30
30
|
class: "b-dropdown-base-textbox__additional-items"
|
|
31
|
-
},
|
|
31
|
+
}, Ce = {
|
|
32
32
|
key: 3,
|
|
33
33
|
class: "b-dropdown-base-textbox__icon",
|
|
34
34
|
"aria-hidden": "true"
|
|
35
|
-
},
|
|
36
|
-
i18n: { messages:
|
|
35
|
+
}, Ee = ["onKeydown"], _e = L({
|
|
36
|
+
i18n: { messages: le },
|
|
37
37
|
name: "dropdown-base-textbox",
|
|
38
38
|
inheritAttrs: !1
|
|
39
|
-
}),
|
|
40
|
-
...
|
|
39
|
+
}), De = /* @__PURE__ */ L({
|
|
40
|
+
..._e,
|
|
41
41
|
props: {
|
|
42
42
|
/**
|
|
43
43
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -125,67 +125,68 @@ const oe = {
|
|
|
125
125
|
default: null
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
|
-
setup(e, { expose:
|
|
129
|
-
const { t: c } =
|
|
128
|
+
setup(e, { expose: k, emit: N }) {
|
|
129
|
+
const { t: c } = ce({ messages: le }), x = ne(), s = Q(), w = pe(s), t = e, p = N, u = X(null), S = ue("textbox"), A = i(() => ({
|
|
130
130
|
[`b-dropdown-base-textbox--${b.DISABLED}`]: t.disabled,
|
|
131
131
|
[`b-dropdown-base-textbox--${b.READONLY}`]: t.readonly,
|
|
132
132
|
[`b-dropdown-base-textbox--${b.HAS_ITEMS}`]: !!t.additionalItemsSelected
|
|
133
|
-
})), B = i(() => ({
|
|
133
|
+
})), I = i(() => x.required), B = i(() => ({
|
|
134
134
|
"b-dropdown-base-textbox__input--dynamic-filtering": t.dynamicFiltering
|
|
135
|
-
})),
|
|
135
|
+
})), g = i(() => t.dynamicFiltering && !!t.value && t.open), O = i(
|
|
136
136
|
() => {
|
|
137
137
|
var l;
|
|
138
138
|
return {
|
|
139
139
|
"aria-haspopup": "listbox",
|
|
140
140
|
"aria-controls": t.ariaControls,
|
|
141
|
-
"aria-describedby": (l =
|
|
141
|
+
"aria-describedby": (l = x["aria-describedby"]) == null ? void 0 : l.toString(),
|
|
142
142
|
"aria-expanded": t.ariaExpanded ? "true" : "false",
|
|
143
143
|
"aria-labelledby": t.ariaLabelledby,
|
|
144
144
|
"aria-label": t.ariaLabelledby ? null : t.ariaLabel,
|
|
145
145
|
"aria-invalid": t.isInvalid,
|
|
146
|
-
"aria-disabled": t.disabled ? !0 : null
|
|
146
|
+
"aria-disabled": t.disabled ? !0 : null,
|
|
147
|
+
"aria-required": y.value ? null : I.value
|
|
147
148
|
};
|
|
148
149
|
}
|
|
149
|
-
),
|
|
150
|
+
), a = i(
|
|
150
151
|
() => t.multiple ? t.selectedValueItem : []
|
|
151
|
-
),
|
|
152
|
-
() => t.multiple && t.selectedValueItem &&
|
|
152
|
+
), y = i(() => t.dynamicFiltering && (t.open || t.alwaysComboboxIsInput)), q = i(() => t.selectedValueItem && !t.multiple), h = i(
|
|
153
|
+
() => t.multiple && t.selectedValueItem && a.value.length > 0 && t.showSlotContentInMultiple
|
|
153
154
|
);
|
|
154
|
-
|
|
155
|
-
() =>
|
|
155
|
+
se(
|
|
156
|
+
() => y.value,
|
|
156
157
|
() => {
|
|
157
|
-
|
|
158
|
+
y.value && !t.alwaysComboboxIsInput && z(() => {
|
|
158
159
|
u.value.focus();
|
|
159
160
|
});
|
|
160
161
|
}
|
|
161
162
|
);
|
|
162
|
-
const
|
|
163
|
-
!t.disabled && !t.readonly && (p(d.OPEN), await
|
|
164
|
-
},
|
|
163
|
+
const V = async () => {
|
|
164
|
+
!t.disabled && !t.readonly && (p(d.OPEN), await z(), u.value.focus());
|
|
165
|
+
}, M = () => {
|
|
165
166
|
t.open && (u.value.focus(), p(d.CLOSE));
|
|
166
|
-
}, U = (l) => t.open && l.target.tagName === "INPUT" ? null : t.open ?
|
|
167
|
+
}, U = (l) => t.open && l.target.tagName === "INPUT" ? null : t.open ? M() : V(), $ = () => {
|
|
167
168
|
p(d.CLEAR), p(d.INPUT, ""), u.value.focus();
|
|
168
|
-
}, Y =
|
|
169
|
+
}, Y = fe((l) => {
|
|
169
170
|
!t.readonly && !t.disabled ? p(d.INPUT, l.target.value) : (l.preventDefault(), l.stopPropagation());
|
|
170
171
|
}, t.debounceTime);
|
|
171
|
-
return
|
|
172
|
+
return k({
|
|
172
173
|
focus: () => {
|
|
173
174
|
u.value.focus();
|
|
174
175
|
}
|
|
175
|
-
}), (l,
|
|
176
|
-
class:
|
|
176
|
+
}), (l, m) => (n(), r("div", {
|
|
177
|
+
class: K(l.$attrs.class),
|
|
177
178
|
"data-testid": "textbox-wrapper",
|
|
178
179
|
onClick: U,
|
|
179
|
-
onKeydown:
|
|
180
|
+
onKeydown: C(M, ["escape"])
|
|
180
181
|
}, [
|
|
181
|
-
|
|
182
|
-
class:
|
|
182
|
+
_(o(be), {
|
|
183
|
+
class: K(["b-dropdown-base-textbox", A.value]),
|
|
183
184
|
el: "div",
|
|
184
185
|
"data-testid": "base-textbox"
|
|
185
186
|
}, {
|
|
186
|
-
default:
|
|
187
|
-
|
|
188
|
-
id: o(
|
|
187
|
+
default: T(() => [
|
|
188
|
+
y.value ? (n(), r("input", v({ key: 0 }, O.value, {
|
|
189
|
+
id: o(S),
|
|
189
190
|
ref_key: "textbox",
|
|
190
191
|
ref: u,
|
|
191
192
|
class: "b-dropdown-base-textbox__input",
|
|
@@ -196,16 +197,17 @@ const oe = {
|
|
|
196
197
|
value: e.open ? e.value : e.displayValue,
|
|
197
198
|
disabled: e.disabled ? !0 : null,
|
|
198
199
|
readonly: e.readonly,
|
|
200
|
+
required: I.value,
|
|
199
201
|
onKeydown: [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
+
m[0] || (m[0] = (f) => l.$emit(o(d).KEYDOWN, f)),
|
|
203
|
+
C(U, ["enter"])
|
|
202
204
|
],
|
|
203
|
-
onInput:
|
|
205
|
+
onInput: m[1] || (m[1] = //@ts-ignore
|
|
204
206
|
(...f) => o(Y) && o(Y)(...f))
|
|
205
|
-
}), null, 16,
|
|
207
|
+
}), null, 16, we)) : (n(), r("div", v({
|
|
206
208
|
key: 1,
|
|
207
|
-
id: o(
|
|
208
|
-
},
|
|
209
|
+
id: o(S)
|
|
210
|
+
}, O.value, {
|
|
209
211
|
ref_key: "textbox",
|
|
210
212
|
ref: u,
|
|
211
213
|
class: ["b-dropdown-base-textbox__input", B.value],
|
|
@@ -213,53 +215,53 @@ const oe = {
|
|
|
213
215
|
role: "combobox",
|
|
214
216
|
tabindex: 0
|
|
215
217
|
}), [
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
], !0) :
|
|
219
|
-
(n(!0), r(
|
|
218
|
+
q.value ? D(l.$slots, "default", Z(v({ key: 0 }, e.selectedValueItem)), () => [
|
|
219
|
+
R(E(e.displayValue), 1)
|
|
220
|
+
], !0) : h.value ? (n(), r("div", Ie, [
|
|
221
|
+
(n(!0), r(H, null, ee(a.value, (f) => (n(), r("div", {
|
|
220
222
|
key: f.value
|
|
221
223
|
}, [
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
te("div", ge, [
|
|
225
|
+
D(l.$slots, "default", v({ ref_for: !0 }, f), () => [
|
|
226
|
+
R(E(e.displayValue), 1)
|
|
225
227
|
], !0)
|
|
226
228
|
])
|
|
227
229
|
]))), 128))
|
|
228
|
-
])) : (n(), r(
|
|
229
|
-
|
|
230
|
+
])) : (n(), r(H, { key: 2 }, [
|
|
231
|
+
R(E(e.displayValue), 1)
|
|
230
232
|
], 64))
|
|
231
|
-
], 16,
|
|
232
|
-
e.additionalItemsSelected ? (n(), r("span",
|
|
233
|
-
o(
|
|
234
|
-
|
|
235
|
-
])) :
|
|
236
|
-
|
|
233
|
+
], 16, Se)),
|
|
234
|
+
e.additionalItemsSelected ? (n(), r("span", he, E(e.additionalItemsSelected), 1)) : P("", !0),
|
|
235
|
+
o(w)("icon") && !g.value ? (n(), r("span", Ce, [
|
|
236
|
+
D(l.$slots, "icon", {}, void 0, !0)
|
|
237
|
+
])) : P("", !0),
|
|
238
|
+
g.value ? (n(), r("span", {
|
|
237
239
|
key: 4,
|
|
238
240
|
class: "b-dropdown-base-textbox__clear-search",
|
|
239
241
|
tabindex: "0",
|
|
240
242
|
"data-testid": "clear-search-button",
|
|
241
|
-
onClick:
|
|
242
|
-
onKeydown:
|
|
243
|
-
onKeyup:
|
|
243
|
+
onClick: j($, ["stop"]),
|
|
244
|
+
onKeydown: C(j($, ["stop"]), ["enter"]),
|
|
245
|
+
onKeyup: C($, ["space"])
|
|
244
246
|
}, [
|
|
245
|
-
e.size === o(
|
|
247
|
+
e.size === o(oe).SMALL ? (n(), W(o(me), {
|
|
246
248
|
key: 0,
|
|
247
249
|
"svg-title": o(c)("clearSearch")
|
|
248
|
-
}, null, 8, ["svg-title"])) : (n(),
|
|
250
|
+
}, null, 8, ["svg-title"])) : (n(), W(o(ye), {
|
|
249
251
|
key: 1,
|
|
250
252
|
"svg-title": o(c)("clearSearch")
|
|
251
253
|
}, null, 8, ["svg-title"]))
|
|
252
|
-
], 40,
|
|
254
|
+
], 40, Ee)) : P("", !0)
|
|
253
255
|
]),
|
|
254
256
|
_: 3
|
|
255
257
|
}, 8, ["class"])
|
|
256
258
|
], 34));
|
|
257
259
|
}
|
|
258
|
-
}),
|
|
260
|
+
}), Le = /* @__PURE__ */ ae(De, [["__scopeId", "data-v-f2414fe6"]]), ke = { class: "b-dropdown-default-textbox__chevron" }, Ne = L({
|
|
259
261
|
name: "dropdown-default-textbox",
|
|
260
262
|
inheritAttrs: !1
|
|
261
|
-
}),
|
|
262
|
-
...
|
|
263
|
+
}), Ae = /* @__PURE__ */ L({
|
|
264
|
+
...Ne,
|
|
263
265
|
props: {
|
|
264
266
|
/**
|
|
265
267
|
* The number of additional items that have been selected in the dropdown.
|
|
@@ -350,8 +352,8 @@ const oe = {
|
|
|
350
352
|
multiple: { type: Boolean, default: !1 }
|
|
351
353
|
},
|
|
352
354
|
emits: ["clear", "close", "input", "keydown", "open"],
|
|
353
|
-
setup(e, { expose:
|
|
354
|
-
const c =
|
|
355
|
+
setup(e, { expose: k, emit: N }) {
|
|
356
|
+
const c = N, x = Q(), s = e, w = X(null), t = i(() => ({
|
|
355
357
|
[`b-dropdown-default-textbox--${b.ERROR}`]: !s.disabled && !s.readonly && s.isInvalid,
|
|
356
358
|
[`b-dropdown-default-textbox--${b.DISABLED}`]: s.disabled,
|
|
357
359
|
[`b-dropdown-default-textbox--${b.READONLY}`]: s.readonly,
|
|
@@ -359,63 +361,63 @@ const oe = {
|
|
|
359
361
|
"b-dropdown-default-textbox--condensed": s.condensed
|
|
360
362
|
})), p = i(() => s.open && !s.disabled && !s.readonly), u = (a) => {
|
|
361
363
|
c("input", a);
|
|
362
|
-
},
|
|
364
|
+
}, S = (a) => {
|
|
363
365
|
c("keydown", a);
|
|
364
366
|
}, A = (a) => {
|
|
365
|
-
|
|
367
|
+
F(a), c("open");
|
|
368
|
+
}, I = (a) => {
|
|
369
|
+
F(a), c("close");
|
|
366
370
|
}, B = (a) => {
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
R(a), c("clear");
|
|
370
|
-
}, S = {
|
|
371
|
+
F(a), c("clear");
|
|
372
|
+
}, g = {
|
|
371
373
|
[d.INPUT]: u,
|
|
372
374
|
[d.OPEN]: A,
|
|
373
|
-
[d.CLOSE]:
|
|
374
|
-
[d.CLEAR]:
|
|
375
|
-
[d.KEYDOWN]:
|
|
375
|
+
[d.CLOSE]: I,
|
|
376
|
+
[d.CLEAR]: B,
|
|
377
|
+
[d.KEYDOWN]: S
|
|
376
378
|
};
|
|
377
|
-
return
|
|
379
|
+
return k({
|
|
378
380
|
focus: () => {
|
|
379
|
-
|
|
381
|
+
w.value.focus();
|
|
380
382
|
}
|
|
381
|
-
}), (a,
|
|
382
|
-
class:
|
|
383
|
+
}), (a, y) => (n(), r("div", {
|
|
384
|
+
class: K(["b-dropdown-default-textbox", t.value]),
|
|
383
385
|
"data-testid": "default-textbox"
|
|
384
386
|
}, [
|
|
385
|
-
|
|
387
|
+
_(Le, v({
|
|
386
388
|
ref_key: "baseTextbox",
|
|
387
|
-
ref:
|
|
389
|
+
ref: w
|
|
388
390
|
}, { ...a.$attrs, ...a.$props }, {
|
|
389
391
|
class: "b-dropdown-default-textbox__textbox",
|
|
390
392
|
value: e.value
|
|
391
|
-
},
|
|
392
|
-
icon:
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
[
|
|
393
|
+
}, de(g)), re({
|
|
394
|
+
icon: T(() => [
|
|
395
|
+
te("div", ke, [
|
|
396
|
+
J(_(o(xe), { "svg-title": "opened" }, null, 512), [
|
|
397
|
+
[G, p.value]
|
|
396
398
|
]),
|
|
397
|
-
|
|
398
|
-
[
|
|
399
|
+
J(_(o(ve), { "svg-title": "closed" }, null, 512), [
|
|
400
|
+
[G, !p.value]
|
|
399
401
|
])
|
|
400
402
|
])
|
|
401
403
|
]),
|
|
402
404
|
_: 2
|
|
403
405
|
}, [
|
|
404
|
-
|
|
405
|
-
name:
|
|
406
|
-
fn:
|
|
407
|
-
|
|
406
|
+
ee(o(x), (q, h) => ({
|
|
407
|
+
name: h,
|
|
408
|
+
fn: T((V) => [
|
|
409
|
+
D(a.$slots, h, Z(ie(V)), void 0, !0)
|
|
408
410
|
])
|
|
409
411
|
}))
|
|
410
412
|
]), 1040, ["value"])
|
|
411
413
|
], 2));
|
|
412
414
|
}
|
|
413
|
-
}),
|
|
415
|
+
}), ze = /* @__PURE__ */ ae(Ae, [["__scopeId", "data-v-927e97be"]]);
|
|
414
416
|
export {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
+
oe as B,
|
|
418
|
+
ze as D,
|
|
417
419
|
b as a,
|
|
418
420
|
d as b,
|
|
419
|
-
|
|
421
|
+
Le as c
|
|
420
422
|
};
|
|
421
|
-
//# sourceMappingURL=dropdown-default-textbox.
|
|
423
|
+
//# sourceMappingURL=dropdown-default-textbox.DWgL31p1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-default-textbox.DWgL31p1.js","sources":["../../../vue2/src/components/dropdown/dropdown.types.ts","../../../vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.ts","../../../vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue","../../../vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue"],"sourcesContent":["import type {\n BentoListboxEmptyStateProps as BentoDropdownEmptyStateProps,\n BentoListboxSearchOptions as BentoDropdownSearchOptions,\n BentoListboxVirtulisationOptions as BentoDropdownVirtulisationOptions,\n BentoListboxIsOptionDisabled,\n BentoListboxLazyLoadType,\n BentoListboxOptions,\n BentoListboxSelectedValue,\n} from '@/types';\nexport type { BentoDropdownSearchOptions, BentoDropdownEmptyStateProps, BentoDropdownVirtulisationOptions };\nexport interface BentoDropdownProps {\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n * Defines a string value that labels an interactive element.\n */\n ariaLabel?: string;\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed?: boolean;\n /**\n * Empty state props used with the inner empty state component which is displayed when no search results are found.\n */\n emptyState?: BentoDropdownEmptyStateProps;\n /**\n * Disables dropdown functionality.\n */\n disabled?: boolean;\n /**\n * Sets the possibility to type into the textbox.\n */\n dynamicFiltering?: boolean;\n /**\n * Highlights the dropdown in an erroneous state.\n * @deprecated Use \"errorMessage\" prop instead\n */\n error?: boolean;\n /**\n * Highlights the dropdown in an erroneous state with an error message.\n */\n errorMessage?: string;\n /**\n * Descriptive supporting text visbile underneath the dropdown.\n */\n description?: string;\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems?: boolean;\n /**\n * Function that dertermines which options are disabled from interaction.\n * @type {BentoListboxIsOptionDisabled}\n * @param {BentoListboxOptionItem} option - Dropdown option object\n * @param {string} option.label - Option's label text\n * @param {string|number} option.value - Option's value\n * @param {unknown} option.data - Option's extra data to be passed to the default slot\n */\n isOptionDisabled?: BentoListboxIsOptionDisabled;\n /**\n * The option elements to populate the dropdown with.\n * It must be an array of {@see BentoListboxOptionItem }\n * @property value.label - Text to be displayed in the option\n * @property value.value - Value of the option\n */\n items?: BentoListboxOptions;\n /**\n * Text that is displayed as a label above the element.\n */\n label?: string;\n /**\n * Indicates if new options are lazy loading.\n */\n loading?: boolean;\n /**\n * Indicates that dropdown items are loading\n */\n componentLoading?: boolean;\n /**\n * The type of `Lazy Load`.\n * Type \"automatic\" will enable infinite scrolling\n * Type \"button\" will enable lazy loading with \"Show more\" button\n */\n lazyLoadType?: BentoListboxLazyLoadType | `${BentoListboxLazyLoadType}`;\n /**\n * If enabled, the user will be able to select multiple items.\n */\n multiple?: boolean;\n /**\n * Highlights the dropdown is optional.\n */\n optional?: boolean;\n /**\n * Text that appears in the form control when it has no value set\n */\n placeholder?: string;\n /**\n * Sets the dropdown to readonly state\n */\n readonly?: boolean;\n /**\n * Highlights the dropdown is required.\n */\n required?: boolean;\n /**\n * Dropdown search options and events.\n * @see BentoDropdownSearchOptions\n */\n search?: BentoDropdownSearchOptions;\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple?: boolean;\n /**\n * @deprecated Do not use. Only 'default' size should be used.\n */\n size?: BentoDropdownSize | `${BentoDropdownSize}`;\n /**\n * If enabled, dropdown will display non-selectable, static categories\n */\n staticCategories?: boolean;\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText?: string;\n /**\n * The `input` value.\n * Providing an empty string will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected.\n */\n value?: BentoListboxSelectedValue;\n /**\n * Enables virtual scrolling if set to true or by providing an object with itemHeight function.\n * The itemHeight function is used to calculate the height of rendered item given it's index.\n */\n virtualScroll?: BentoDropdownVirtulisationOptions;\n /**\n * Enables value/label value handling. When `true`, the component expects and emits value/label\n * pair objects instead of primitive values.\n *\n * This affects both the `value` prop and the `input` event payload.\n *\n * - **Input (`value` prop):** Expects a `{ value: string | number, label: string }` object (or an array of them for multi-select).\n * - **Output (`input` event):** Emits a `{ value: string | number, label: string }` object (or an array of them) upon selection.\n *\n * This is particularly useful when a selected item's label is not available in the `items` prop,\n * allowing the component to display the correct label for values loaded from external sources.\n * @default false\n */\n enableValueLabelPair?: boolean;\n}\n\n/**\n * @deprecated Do not use. Only 'default' size should be used.\n */\nexport enum BentoDropdownSize {\n DEFAULT = 'DropdownInputDefault',\n SMALL = 'DropdownInputSmall',\n}\n\nexport {\n /**\n * @deprecated since version 2.0. Use the string literal instead.\n */\n BentoListboxLazyLoadType as BentoDropdownLazyLoadType,\n BentoListboxEvent as BentoDropdownEvent,\n} from '@/types';\n","import { type PropType } from 'vue';\nimport { type Booleanish } from '@/types';\n\n// TODO: Change this to script setup + Typescript interface\nexport const DropdownBaseTextboxProps = {\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n};\n\nexport enum DropdownBaseTextboxState {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n HAS_ITEMS = 'has-items',\n OPENED = 'opened',\n ERROR = 'error',\n}\n\nexport enum DropdownBaseTextboxEvent {\n OPEN = 'dropdown-base-open',\n KEYDOWN = 'dropdown-base-keydown',\n CLOSE = 'dropdown-base-close',\n INPUT = 'dropdown-base-input',\n CLEAR = 'dropdown-base-clear',\n}\n\nexport default DropdownBaseTextboxProps;\n","<template>\n <div\n :class=\"$attrs.class\"\n data-testid=\"textbox-wrapper\"\n @click=\"onToggleDropdown\"\n @keydown.escape=\"onCloseDropdown\"\n >\n <bento-typography\n class=\"b-dropdown-base-textbox\"\n :class=\"conditionalClasses\"\n el=\"div\"\n data-testid=\"base-textbox\"\n >\n <input\n v-if=\"shouldShowInput\"\n v-bind=\"ariaAttributes\"\n :id=\"textboxId\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n role=\"combobox\"\n type=\"text\"\n aria-autocomplete=\"list\"\n size=\"1\"\n :value=\"open ? value : displayValue\"\n :disabled=\"disabled ? true : null\"\n :readonly=\"readonly\"\n :required=\"isRequired\"\n @keydown=\"$emit(DropdownBaseTextboxEvent.KEYDOWN, $event)\"\n @keydown.enter=\"onToggleDropdown\"\n @input=\"onInputEvent\"\n />\n <div\n v-else\n :id=\"textboxId\"\n v-bind=\"ariaAttributes\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n :class=\"comboboxConditionalClasses\"\n :aria-readonly=\"readonly ? 'true' : null\"\n role=\"combobox\"\n :tabindex=\"0\"\n >\n <slot v-if=\"shouldShowSingleSelectSlot\" v-bind=\"selectedValueItem\">\n {{ displayValue }}\n </slot>\n <template v-else-if=\"shouldShowMultipleSlot\">\n <div class=\"b-dropdown-base-textbox__input-multiple-selected\">\n <div v-for=\"singleItem of selectedValueItems\" :key=\"singleItem.value\">\n <div class=\"b-dropdown-base-textbox__input-selected-element\">\n <slot v-bind=\"singleItem\">\n {{ displayValue }}\n </slot>\n </div>\n </div>\n </div>\n </template>\n <template v-else>{{ displayValue }}</template>\n </div>\n <span v-if=\"additionalItemsSelected\" class=\"b-dropdown-base-textbox__additional-items\">\n {{ additionalItemsSelected }}\n </span>\n <span v-if=\"hasSlot('icon') && !isFiltering\" class=\"b-dropdown-base-textbox__icon\" aria-hidden=\"true\">\n <slot name=\"icon\"></slot>\n </span>\n <span\n v-if=\"isFiltering\"\n class=\"b-dropdown-base-textbox__clear-search\"\n tabindex=\"0\"\n data-testid=\"clear-search-button\"\n @click.stop=\"onClearSearch\"\n @keydown.enter.stop=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-small-icon v-if=\"size === BentoDropdownSize.SMALL\" :svg-title=\"t('clearSearch')\" />\n <cross-circle-fill-icon v-else :svg-title=\"t('clearSearch')\" />\n </span>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, nextTick, type PropType, ref, useAttrs, useSlots, watch } from 'vue';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { useHasSlot } from '@/composables';\n import { BentoTypography } from '@/components/typography';\n import { debounce } from '@/utils/ts/debounce';\n import { type BentoListboxOptionItem, type Booleanish } from '@/types';\n import type { HTMLAttributes } from 'vue/types/jsx.d.ts';\n import { DropdownBaseTextboxEvent, DropdownBaseTextboxState } from './dropdown-base-textbox.types';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import CrossCircleFillSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill-small';\n import { BentoDropdownSize } from '@/components/dropdown/dropdown.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * If the combobox DOM element should be an `input` element.\n */\n alwaysComboboxIsInput: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: { type: String, required: true },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: { type: String, default: null },\n\n /**\n * Custom debounce time for the user type event.\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox.\n */\n dynamicFiltering: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | BentoListboxOptionItem[]>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n\n /**\n * Dropdown size\n */\n size: {\n type: String as PropType<BentoDropdownSize | `${BentoDropdownSize}`>,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the \"clear\" button is clicked\n */\n (e: DropdownBaseTextboxEvent.CLEAR);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: DropdownBaseTextboxEvent.CLOSE);\n\n /**\n * Emitted when `dynamicFiltering` is enabled and a search input is entered\n */\n (e: DropdownBaseTextboxEvent.INPUT, searchValue: string);\n\n /**\n * Emitted when any key is pressed and the focus is on the input field\n */\n (e: DropdownBaseTextboxEvent.KEYDOWN, event: KeyboardEvent);\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: DropdownBaseTextboxEvent.OPEN);\n }>();\n\n const textbox = ref(null);\n const textboxId = generateUid('textbox');\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.HAS_ITEMS}`]: !!props.additionalItemsSelected,\n }));\n\n const isRequired = computed(() => attrs['required'] as Booleanish);\n\n const comboboxConditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox__input--dynamic-filtering`]: props.dynamicFiltering,\n }));\n\n const isFiltering = computed(() => props.dynamicFiltering && !!props.value && props.open);\n\n const ariaAttributes = computed(\n () =>\n ({\n 'aria-haspopup': 'listbox',\n 'aria-controls': props.ariaControls,\n 'aria-describedby': attrs['aria-describedby']?.toString() as string,\n 'aria-expanded': props.ariaExpanded ? 'true' : 'false',\n 'aria-labelledby': props.ariaLabelledby,\n 'aria-label': props.ariaLabelledby ? null : props.ariaLabel,\n 'aria-invalid': props.isInvalid,\n 'aria-disabled': props.disabled ? true : null,\n 'aria-required': shouldShowInput.value ? null : isRequired.value,\n }) as HTMLAttributes\n );\n // Cast selectedValueItem if it is an array of selected items\n const selectedValueItems = computed(() =>\n props.multiple ? (props.selectedValueItem as BentoListboxOptionItem[]) : []\n );\n\n const shouldShowInput = computed(() => props.dynamicFiltering && (props.open || props.alwaysComboboxIsInput));\n const shouldShowSingleSelectSlot = computed(() => props.selectedValueItem && !props.multiple);\n const shouldShowMultipleSlot = computed(\n () =>\n props.multiple &&\n props.selectedValueItem &&\n selectedValueItems.value.length > 0 &&\n props.showSlotContentInMultiple\n );\n\n watch(\n () => shouldShowInput.value,\n () => {\n if (shouldShowInput.value && !props.alwaysComboboxIsInput) {\n nextTick(() => {\n textbox.value.focus();\n });\n }\n }\n );\n\n const onOpenDropdown = async () => {\n if (!props.disabled && !props.readonly) {\n emit(DropdownBaseTextboxEvent.OPEN);\n // wait for popover to open before setting focus\n await nextTick();\n textbox.value.focus();\n }\n };\n\n const onCloseDropdown = () => {\n if (props.open) {\n textbox.value.focus();\n emit(DropdownBaseTextboxEvent.CLOSE);\n }\n };\n\n const onToggleDropdown = (event: Event) => {\n const isDynamicFilteringInputClickEvent = props.open && (event.target as HTMLDivElement).tagName === 'INPUT';\n if (isDynamicFilteringInputClickEvent) {\n /**\n * When there's a click even on the input during filtering\n * and the popover is open, do not toggle the popover.\n * Allow for click events inside the input field\n */\n return null;\n }\n\n return props.open ? onCloseDropdown() : onOpenDropdown();\n };\n\n const onClearSearch = () => {\n emit(DropdownBaseTextboxEvent.CLEAR);\n emit(DropdownBaseTextboxEvent.INPUT, '');\n textbox.value.focus();\n };\n const onInputEvent = debounce<(event: Event) => void>((event: Event) => {\n if (!props.readonly && !props.disabled) {\n emit(DropdownBaseTextboxEvent.INPUT, (event.target as HTMLInputElement).value);\n } else {\n event.preventDefault();\n event.stopPropagation();\n }\n }, props.debounceTime);\n\n const focus = () => {\n textbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Only for internal use, implements the logic of the textbox element to be implemented in the combobox.\n */\n export default defineComponent({\n i18n: { messages },\n name: 'dropdown-base-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-base-textbox.scss\" />\n","<template>\n <div class=\"b-dropdown-default-textbox\" :class=\"conditionalClasses\" data-testid=\"default-textbox\">\n <dropdown-base-textbox\n ref=\"baseTextbox\"\n v-bind=\"{ ...$attrs, ...$props }\"\n class=\"b-dropdown-default-textbox__textbox\"\n :value=\"value\"\n v-on=\"listeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n <template #icon>\n <div class=\"b-dropdown-default-textbox__chevron\">\n <chevron-up-icon v-show=\"isDropdownOpen\" svg-title=\"opened\" />\n <chevron-down-icon v-show=\"!isDropdownOpen\" svg-title=\"closed\" />\n </div>\n </template>\n </dropdown-base-textbox>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import { computed, defineComponent, type PropType, ref, useSlots } from 'vue';\n import DropdownBaseTextbox from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue';\n import { type BentoListboxOptionItem, type Booleanish } from '@/types';\n import { stopEventPropagation } from '@/utils/ts/events';\n import {\n DropdownBaseTextboxEvent,\n DropdownBaseTextboxState,\n } from '../dropdown-base-textbox/dropdown-base-textbox.types';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n\n const emit = defineEmits<{\n /**\n * Emitted on clearing the input.\n */\n (e: 'clear');\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: 'close');\n\n /**\n * Emitted on input event.\n */\n (e: 'input', newInput: string);\n\n /**\n * Emitted on keydown event.\n */\n (e: 'keydown', keydownEvent: KeyboardEvent);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: 'open');\n }>();\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | BentoListboxOptionItem[]>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n });\n\n const baseTextbox = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.ERROR}`]:\n !props.disabled && !props.readonly && props.isInvalid,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.OPENED}`]: props.open,\n 'b-dropdown-default-textbox--condensed': props.condensed,\n }));\n\n const isDropdownOpen = computed(() => props.open && !props.disabled && !props.readonly);\n\n const onInput = (newInput: string) => {\n emit('input', newInput);\n };\n const onKeyDown = (e: KeyboardEvent) => {\n emit('keydown', e);\n };\n const openDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('open');\n };\n const closeDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('close');\n };\n const clearValue = (e: Event) => {\n stopEventPropagation(e);\n emit('clear');\n };\n\n const listeners = {\n [DropdownBaseTextboxEvent.INPUT]: onInput,\n [DropdownBaseTextboxEvent.OPEN]: openDropdown,\n [DropdownBaseTextboxEvent.CLOSE]: closeDropdown,\n [DropdownBaseTextboxEvent.CLEAR]: clearValue,\n [DropdownBaseTextboxEvent.KEYDOWN]: onKeyDown,\n };\n\n const focus = () => {\n baseTextbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * For internal use only, textbox component used in the dropdown component.\n */\n export default defineComponent({\n name: 'dropdown-default-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-default-textbox.scss\" />\n"],"names":["BentoDropdownSize","BentoDropdownSize2","DropdownBaseTextboxState","DropdownBaseTextboxState2","DropdownBaseTextboxEvent","DropdownBaseTextboxEvent2","__default__$1","defineComponent","messages","t","useI18n","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","props","__props","emit","__emit","textbox","ref","textboxId","generateUid","conditionalClasses","computed","isRequired","comboboxConditionalClasses","isFiltering","ariaAttributes","_a","shouldShowInput","selectedValueItems","shouldShowSingleSelectSlot","shouldShowMultipleSlot","watch","nextTick","onOpenDropdown","onCloseDropdown","onToggleDropdown","event","onClearSearch","onInputEvent","debounce","__expose","__default__","baseTextbox","isDropdownOpen","onInput","newInput","onKeyDown","e","openDropdown","stopEventPropagation","closeDropdown","clearValue","listeners"],"mappings":";;;;;;;;;;;;;AA0JY,IAAAA,KAAA,kBAAAC,OACRA,EAAA,UAAA,wBACAA,EAAA,QAAA,sBAFQA,IAAAD,MAAA,CAAA,CAAA,GChFAE,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,SAAA,UACAA,EAAA,QAAA,SALQA,IAAAD,KAAA,CAAA,CAAA,GAQAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,sBACAA,EAAA,UAAA,yBACAA,EAAA,QAAA,uBACAA,EAAA,QAAA,uBACAA,EAAA,QAAA,uBALQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;uBC0QRE,KAAAC,EAAA;AAAA,EAA+B,MAAA,EAAA,UAAAC,GAAA;AAAA,EACV,MAAA;AAAA,EACX,cAAA;AAEV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/PA,UAAA,EAAA,GAAAC,EAAA,IAAAC,GAAA,EAAA,UAAAF,GAAA,CAAA,GAEAG,IAAAC,GAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,GAAAH,CAAA,GACAI,IAAAC,GAyGAC,IAAAC,GA2BAC,IAAAC,EAAA,IAAA,GACAC,IAAAC,GAAA,SAAA,GAEAC,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,4BAAAxB,EAAA,QAAA,EAAA,GAAAe,EAAA;AAAA,MACkC,CAAA,4BAAAf,EAAA,QAAA,EAAA,GAAAe,EAAA;AAAA,MACA,CAAA,4BAAAf,EAAA,SAAA,EAAA,GAAA,CAAA,CAAAe,EAAA;AAAA,IACG,EAAA,GAGhFU,IAAAD,EAAA,MAAAf,EAAA,QAAA,GAEAiB,IAAAF,EAAA,OAAA;AAAA,MAAmD,qDAAAT,EAAA;AAAA,IACc,EAAA,GAGjEY,IAAAH,EAAA,MAAAT,EAAA,oBAAA,CAAA,CAAAA,EAAA,SAAAA,EAAA,IAAA,GAEAa,IAAAJ;AAAA,MAAuB,MAAA;;AAAA;AAAA,UAEd,iBAAA;AAAA,UACoB,iBAAAT,EAAA;AAAA,UACM,qBAAAc,IAAApB,EAAA,kBAAA,MAAA,gBAAAoB,EAAA;AAAA,UACiC,iBAAAd,EAAA,eAAA,SAAA;AAAA,UACT,mBAAAA,EAAA;AAAA,UACtB,cAAAA,EAAA,iBAAA,OAAAA,EAAA;AAAA,UACyB,gBAAAA,EAAA;AAAA,UAC5B,iBAAAA,EAAA,WAAA,KAAA;AAAA,UACmB,iBAAAe,EAAA,QAAA,OAAAL,EAAA;AAAA,QACkB;AAAA;AAAA,IAC/D,GAGRM,IAAAP;AAAA,MAA2B,MAAAT,EAAA,WAAAA,EAAA,oBAAA,CAAA;AAAA,IACmD,GAG9Ee,IAAAN,EAAA,MAAAT,EAAA,qBAAAA,EAAA,QAAAA,EAAA,sBAAA,GACAiB,IAAAR,EAAA,MAAAT,EAAA,qBAAA,CAAAA,EAAA,QAAA,GACAkB,IAAAT;AAAA,MAA+B,MAAAT,EAAA,YAAAA,EAAA,qBAAAgB,EAAA,MAAA,SAAA,KAAAhB,EAAA;AAAA,IAKjB;AAGd,IAAAmB;AAAA,MAAA,MAAAJ,EAAA;AAAA,MAC0B,MAAA;AAElB,QAAAA,EAAA,SAAA,CAAAf,EAAA,yBACIoB,EAAA,MAAA;AACI,UAAAhB,EAAA,MAAA,MAAA;AAAA,QAAoB,CAAA;AAAA,MAE5B;AAAA,IACJ;AAGJ,UAAAiB,IAAA,YAAA;AACI,MAAA,CAAArB,EAAA,YAAA,CAAAA,EAAA,aACIE,EAAAf,EAAA,IAAA,GAEA,MAAAiC,EAAA,GACAhB,EAAA,MAAA,MAAA;AAAA,IACJ,GAGJkB,IAAA,MAAA;AACI,MAAAtB,EAAA,SACII,EAAA,MAAA,MAAA,GACAF,EAAAf,EAAA,KAAA;AAAA,IACJ,GAGJoC,IAAA,CAAAC,MACIxB,EAAA,QAAAwB,EAAA,OAAA,YAAA,UAOI,OAGJxB,EAAA,OAAAsB,EAAA,IAAAD,EAAA,GAGJI,IAAA,MAAA;AACI,MAAAvB,EAAAf,EAAA,KAAA,GACAe,EAAAf,EAAA,OAAA,EAAA,GACAiB,EAAA,MAAA,MAAA;AAAA,IAAoB,GAExBsB,IAAAC,GAAA,CAAAH,MAAA;AACI,MAAA,CAAAxB,EAAA,YAAA,CAAAA,EAAA,WACIE,EAAAf,EAAA,OAAAqC,EAAA,OAAA,KAAA,KAEAA,EAAA,eAAA,GACAA,EAAA,gBAAA;AAAA,IACJ,GAAAxB,EAAA,YAAA;AAOJ,WAAA4B,EAAA;AAAA,MAAa,OAJb,MAAA;AACI,QAAAxB,EAAA,MAAA,MAAA;AAAA,MAAoB;AAAA,IAIpB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4HCtHJyB,KAAAvC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,cAAA;AAEV,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/LA,UAAAY,IAAAC,GA2BAP,IAAAC,EAAA,GAEAG,IAAAC,GA0GA6B,IAAAzB,EAAA,IAAA,GAEAG,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,+BAAAxB,EAAA,KAAA,EAAA,GAAA,CAAAe,EAAA,YAAA,CAAAA,EAAA,YAAAA,EAAA;AAAA,MAES,CAAA,+BAAAf,EAAA,QAAA,EAAA,GAAAe,EAAA;AAAA,MAC4B,CAAA,+BAAAf,EAAA,QAAA,EAAA,GAAAe,EAAA;AAAA,MACA,CAAA,+BAAAf,EAAA,MAAA,EAAA,GAAAe,EAAA;AAAA,MACF,yCAAAA,EAAA;AAAA,IAC3B,EAAA,GAGnD+B,IAAAtB,EAAA,MAAAT,EAAA,QAAA,CAAAA,EAAA,YAAA,CAAAA,EAAA,QAAA,GAEAgC,IAAA,CAAAC,MAAA;AACI,MAAA/B,EAAA,SAAA+B,CAAA;AAAA,IAAsB,GAE1BC,IAAA,CAAAC,MAAA;AACI,MAAAjC,EAAA,WAAAiC,CAAA;AAAA,IAAiB,GAErBC,IAAA,CAAAD,MAAA;AACI,MAAAE,EAAAF,CAAA,GACAjC,EAAA,MAAA;AAAA,IAAW,GAEfoC,IAAA,CAAAH,MAAA;AACI,MAAAE,EAAAF,CAAA,GACAjC,EAAA,OAAA;AAAA,IAAY,GAEhBqC,IAAA,CAAAJ,MAAA;AACI,MAAAE,EAAAF,CAAA,GACAjC,EAAA,OAAA;AAAA,IAAY,GAGhBsC,IAAA;AAAA,MAAkB,CAAArD,EAAA,KAAA,GAAA6C;AAAA,MACoB,CAAA7C,EAAA,IAAA,GAAAiD;AAAA,MACD,CAAAjD,EAAA,KAAA,GAAAmD;AAAA,MACC,CAAAnD,EAAA,KAAA,GAAAoD;AAAA,MACA,CAAApD,EAAA,OAAA,GAAA+C;AAAA,IACE;AAOxC,WAAAN,EAAA;AAAA,MAAa,OAJb,MAAA;AACI,QAAAE,EAAA,MAAA,MAAA;AAAA,MAAwB;AAAA,IAIxB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|