@adyen/bento-vue3 1.3.0 → 1.4.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 +8 -4
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
- package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -57
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +27 -29
- package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +136 -128
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +46 -15
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +6 -7
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +37 -11
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -22
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +277 -16
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +164 -104
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
- package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -27
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -11
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +53 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +61 -58
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +19 -390
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +6 -9
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -10
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
- package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +8 -1
- package/dist/@types/packages/vue2/src/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
- package/dist/accordion.js +104 -254
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +61 -64
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chevron-up.css +1 -0
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +2 -2
- package/dist/button.js +143 -12
- package/dist/button.js.map +1 -1
- package/dist/card.js +99 -94
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +40 -39
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/base-button.6d2843c2.js +108 -0
- package/dist/chunks/base-button.6d2843c2.js.map +1 -0
- package/dist/chunks/base-modal.3ccb9eb5.js +291 -0
- package/dist/chunks/base-modal.3ccb9eb5.js.map +1 -0
- package/dist/chunks/{button.e1c39f66.js → button.a8462029.js} +39 -42
- package/dist/chunks/button.a8462029.js.map +1 -0
- package/dist/chunks/{calendar.09b683b3.js → calendar.3f930683.js} +237 -240
- package/dist/chunks/calendar.3f930683.js.map +1 -0
- package/dist/chunks/checkbox.5e1e05ae.js +235 -0
- package/dist/chunks/checkbox.5e1e05ae.js.map +1 -0
- package/dist/chunks/{chevron-down.69bedf14.js → chevron-up.c03b58f8.js} +8 -8
- package/dist/chunks/chevron-up.c03b58f8.js.map +1 -0
- package/dist/chunks/controls-group.3b0dfb94.js +136 -0
- package/dist/chunks/controls-group.3b0dfb94.js.map +1 -0
- package/dist/chunks/{copy.2cf5e6c3.js → copy.1d14b783.js} +49 -50
- package/dist/chunks/copy.1d14b783.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.203e747f.js → dropdown-default-textbox.a90e84f9.js} +88 -90
- package/dist/chunks/dropdown-default-textbox.a90e84f9.js.map +1 -0
- package/dist/chunks/{dropdown.8b415aac.js → dropdown.b798a82e.js} +348 -330
- package/dist/chunks/dropdown.b798a82e.js.map +1 -0
- package/dist/chunks/{error-message.ddfe8ea5.js → error-message.9acead25.js} +16 -16
- package/dist/chunks/error-message.9acead25.js.map +1 -0
- package/dist/chunks/footer-actions.9537d0df.js +111 -0
- package/dist/chunks/footer-actions.9537d0df.js.map +1 -0
- package/dist/chunks/get-slot-text.bead058f.js +9 -0
- package/dist/chunks/get-slot-text.bead058f.js.map +1 -0
- package/dist/chunks/{grid-layout.a30855ff.js → grid-layout.984317d7.js} +2 -2
- package/dist/chunks/{grid-layout.a30855ff.js.map → grid-layout.984317d7.js.map} +1 -1
- package/dist/chunks/index.228ecda0.js +101 -0
- package/dist/chunks/index.228ecda0.js.map +1 -0
- package/dist/chunks/index.89b00b94.js +124 -0
- package/dist/chunks/index.89b00b94.js.map +1 -0
- package/dist/chunks/{index.3da90517.js → index.9d8273fc.js} +38 -40
- package/dist/chunks/index.9d8273fc.js.map +1 -0
- package/dist/chunks/{index.c9225c3b.js → index.c2a80208.js} +195 -201
- package/dist/chunks/index.c2a80208.js.map +1 -0
- package/dist/chunks/{index.13949709.js → index.d26fdf71.js} +116 -113
- package/dist/chunks/{index.13949709.js.map → index.d26fdf71.js.map} +1 -1
- package/dist/chunks/{index.d27367cd.js → index.e84dbeae.js} +80 -83
- package/dist/chunks/{index.d27367cd.js.map → index.e84dbeae.js.map} +1 -1
- package/dist/chunks/listbox-option-tag.0c9c571e.js +129 -0
- package/dist/chunks/listbox-option-tag.0c9c571e.js.map +1 -0
- package/dist/chunks/{listbox.0c7c4e5e.js → listbox.6b52af1a.js} +315 -334
- package/dist/chunks/listbox.6b52af1a.js.map +1 -0
- package/dist/chunks/{loading-button.61d8ebe5.js → loading-button.081adbf3.js} +33 -33
- package/dist/chunks/loading-button.081adbf3.js.map +1 -0
- package/dist/chunks/tabs.keys.358742f2.js +7 -0
- package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
- package/dist/chunks/{tooltip.835d9b52.js → tooltip.e4e34b86.js} +56 -59
- package/dist/chunks/tooltip.e4e34b86.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js +16 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js.map +1 -0
- package/dist/chunks/use-has-slot.9fac7123.js +16 -0
- package/dist/chunks/use-has-slot.9fac7123.js.map +1 -0
- package/dist/code-snippet.js +548 -463
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +501 -505
- package/dist/country.js.map +1 -1
- package/dist/currency.js +38 -41
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +837 -833
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +83 -87
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +30 -32
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +166 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/filter-bar.js +986 -935
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +72 -72
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +50 -52
- package/dist/header.js.map +1 -1
- package/dist/image.js +76 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +239 -232
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +241 -269
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +38 -36
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +131 -139
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +121 -356
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +182 -185
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +19 -23
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +56 -52
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +36 -41
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +112 -113
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +77 -91
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +88 -75
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +122 -121
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +18 -21
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +129 -162
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +83 -75
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +32 -35
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +156 -155
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +212 -213
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +68 -72
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +75 -73
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +11 -10
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -58
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/chevron-down.css +0 -1
- package/dist/chunks/base-button.20be08da.js +0 -111
- package/dist/chunks/base-button.20be08da.js.map +0 -1
- package/dist/chunks/button-actions.54e28e75.js +0 -124
- package/dist/chunks/button-actions.54e28e75.js.map +0 -1
- package/dist/chunks/button.e1c39f66.js.map +0 -1
- package/dist/chunks/calendar.09b683b3.js.map +0 -1
- package/dist/chunks/checkbox.a404069b.js +0 -226
- package/dist/chunks/checkbox.a404069b.js.map +0 -1
- package/dist/chunks/chevron-down.69bedf14.js.map +0 -1
- package/dist/chunks/controls-group.60fb2a86.js +0 -136
- package/dist/chunks/controls-group.60fb2a86.js.map +0 -1
- package/dist/chunks/copy.2cf5e6c3.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.203e747f.js.map +0 -1
- package/dist/chunks/dropdown.8b415aac.js.map +0 -1
- package/dist/chunks/error-message.ddfe8ea5.js.map +0 -1
- package/dist/chunks/footer-actions.0f640f87.js +0 -106
- package/dist/chunks/footer-actions.0f640f87.js.map +0 -1
- package/dist/chunks/get-slot-text.2db867f8.js +0 -9
- package/dist/chunks/get-slot-text.2db867f8.js.map +0 -1
- package/dist/chunks/index.222d29b0.js +0 -120
- package/dist/chunks/index.222d29b0.js.map +0 -1
- package/dist/chunks/index.3da90517.js.map +0 -1
- package/dist/chunks/index.aa34e363.js +0 -104
- package/dist/chunks/index.aa34e363.js.map +0 -1
- package/dist/chunks/index.c9225c3b.js.map +0 -1
- package/dist/chunks/listbox-option-tag.5ae8b79b.js +0 -133
- package/dist/chunks/listbox-option-tag.5ae8b79b.js.map +0 -1
- package/dist/chunks/listbox.0c7c4e5e.js.map +0 -1
- package/dist/chunks/loading-button.61d8ebe5.js.map +0 -1
- package/dist/chunks/tooltip.835d9b52.js.map +0 -1
- package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
- package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
- package/dist/chunks/use-has-slot.068222e6.js +0 -5
- package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
|
@@ -1,80 +1,81 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { a as s, B as
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import { g as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
1
|
+
import { ref as $, watch as be, computed as c, defineComponent as ne, toRefs as ve, resolveComponent as R, openBlock as b, createBlock as B, resolveDynamicComponent as ye, mergeProps as A, withCtx as E, createElementVNode as U, withKeys as Ne, createVNode as z, toHandlers as x, createSlots as Z, renderList as Y, renderSlot as G, normalizeProps as Q, guardReactiveProps as X, createElementBlock as O, toDisplayString as P, createCommentVNode as L, pushScopeId as ge, popScopeId as he, normalizeClass as we, withDirectives as q, vShow as de, nextTick as I, toRef as N, resolveDirective as ue, createTextVNode as W } from "vue";
|
|
2
|
+
import { a as s, B as ee, b as te } from "./listbox.6b52af1a.js";
|
|
3
|
+
import { B as Me } from "./directive.0408e565.js";
|
|
4
|
+
import { B as D, a as Pe } from "./debounce.f8d92e44.js";
|
|
5
|
+
import { B as Ke, d as ke } from "./index.89b00b94.js";
|
|
6
|
+
import { g as k } from "./unique-id.a2a2b458.js";
|
|
7
|
+
import { u as le } from "./i18n.6c402773.js";
|
|
8
|
+
import { u as ze } from "./aria-label.ac9651a5.js";
|
|
9
|
+
import { u as Fe } from "./use-form-layout-loading.d03e5d48.js";
|
|
10
|
+
import { PopperContainer as j } from "../popper-container.js";
|
|
11
|
+
import { BentoPopover as ce } from "../popover.js";
|
|
12
|
+
import { BentoButtonActionsLayout as We } from "../button.js";
|
|
13
|
+
import { _ as F } from "./_plugin-vue_export-helper.dad06003.js";
|
|
14
|
+
import { D as xe, a as M, b as J, c as qe } from "./dropdown-default-textbox.a90e84f9.js";
|
|
15
|
+
import { E as Ue } from "./error-message.9acead25.js";
|
|
15
16
|
import "../assets/dropdown.css";
|
|
16
17
|
var T = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(T || {});
|
|
17
|
-
const
|
|
18
|
+
const oe = {
|
|
18
19
|
"en-US": {
|
|
19
20
|
apply: "Apply",
|
|
20
21
|
cancel: "Cancel",
|
|
21
22
|
noOptionsMatchThisSearch: "No options match this search"
|
|
22
23
|
}
|
|
23
|
-
},
|
|
24
|
-
const t =
|
|
25
|
-
|
|
24
|
+
}, He = (e, o, n) => {
|
|
25
|
+
const t = $(e.value), { t: a } = le({ messages: oe });
|
|
26
|
+
be(e, () => {
|
|
26
27
|
t.value = e.value;
|
|
27
28
|
});
|
|
28
29
|
const i = c(
|
|
29
30
|
() => JSON.stringify(t.value) === JSON.stringify(e.value)
|
|
30
|
-
),
|
|
31
|
+
), r = () => {
|
|
31
32
|
n(s.SELECT, t.value), n(s.CLOSE_DROPDOWN);
|
|
32
|
-
},
|
|
33
|
+
}, d = () => {
|
|
33
34
|
t.value = e.value, n(s.CLOSE_DROPDOWN);
|
|
34
|
-
},
|
|
35
|
+
}, l = c(() => [
|
|
35
36
|
{
|
|
36
37
|
title: a("apply"),
|
|
37
|
-
event:
|
|
38
|
+
event: r,
|
|
38
39
|
disabled: i.value
|
|
39
40
|
},
|
|
40
41
|
{
|
|
41
42
|
title: a("cancel"),
|
|
42
|
-
event:
|
|
43
|
+
event: d
|
|
43
44
|
}
|
|
44
|
-
]),
|
|
45
|
-
t.value =
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
}, g = (
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
},
|
|
45
|
+
]), f = (v) => {
|
|
46
|
+
t.value = v, o.value || n(s.SELECT, v);
|
|
47
|
+
}, _ = (v) => {
|
|
48
|
+
f(v), n(s.TAB);
|
|
49
|
+
}, y = (v) => {
|
|
50
|
+
f(v), n(s.ENTER);
|
|
51
|
+
}, g = (v) => {
|
|
52
|
+
f(v), n(s.SPACE);
|
|
53
|
+
}, m = () => {
|
|
54
|
+
d(), n(s.ESCAPE);
|
|
55
|
+
}, h = () => {
|
|
55
56
|
n(s.SHOW_MORE);
|
|
56
|
-
},
|
|
57
|
-
[s.SELECT]:
|
|
58
|
-
[s.SHOW_MORE]:
|
|
59
|
-
[s.TAB]:
|
|
57
|
+
}, C = {
|
|
58
|
+
[s.SELECT]: f,
|
|
59
|
+
[s.SHOW_MORE]: h,
|
|
60
|
+
[s.TAB]: _,
|
|
60
61
|
[s.SPACE]: g,
|
|
61
|
-
[s.ENTER]:
|
|
62
|
+
[s.ENTER]: y
|
|
62
63
|
};
|
|
63
64
|
return {
|
|
64
65
|
// Values
|
|
65
|
-
actions:
|
|
66
|
+
actions: l,
|
|
66
67
|
internalSelectedValue: t,
|
|
67
68
|
// Methods
|
|
68
|
-
listeners:
|
|
69
|
-
onEscapeKey:
|
|
69
|
+
listeners: C,
|
|
70
|
+
onEscapeKey: m
|
|
70
71
|
};
|
|
71
|
-
},
|
|
72
|
-
i18n: { messages:
|
|
72
|
+
}, Ve = ne({
|
|
73
|
+
i18n: { messages: oe },
|
|
73
74
|
name: "bento-dropdown-options-container",
|
|
74
75
|
components: {
|
|
75
|
-
BentoListbox:
|
|
76
|
-
PopperContainer:
|
|
77
|
-
BentoPopover:
|
|
76
|
+
BentoListbox: ee,
|
|
77
|
+
PopperContainer: j,
|
|
78
|
+
BentoPopover: ce
|
|
78
79
|
},
|
|
79
80
|
props: {
|
|
80
81
|
/**
|
|
@@ -108,7 +109,6 @@ const Q = {
|
|
|
108
109
|
},
|
|
109
110
|
/**
|
|
110
111
|
* Dropdown input size
|
|
111
|
-
* @see BentoDropdownSize
|
|
112
112
|
*/
|
|
113
113
|
inputSize: {
|
|
114
114
|
type: String,
|
|
@@ -136,8 +136,8 @@ const Q = {
|
|
|
136
136
|
*/
|
|
137
137
|
lazyLoadType: {
|
|
138
138
|
type: String,
|
|
139
|
-
default:
|
|
140
|
-
validator: (e) => Object.values(
|
|
139
|
+
default: te.AUTOMATIC,
|
|
140
|
+
validator: (e) => Object.values(te).includes(e)
|
|
141
141
|
},
|
|
142
142
|
/**
|
|
143
143
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -163,12 +163,12 @@ const Q = {
|
|
|
163
163
|
*
|
|
164
164
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
165
165
|
*/
|
|
166
|
-
searching:
|
|
166
|
+
searching: ee.props.searching,
|
|
167
167
|
/**
|
|
168
168
|
* Reference to the DOM element or Vue component for positioning
|
|
169
169
|
* the Dropdown container.
|
|
170
170
|
*/
|
|
171
|
-
targetElement: { type:
|
|
171
|
+
targetElement: { type: j.props.targetElement.type, required: !0 }
|
|
172
172
|
},
|
|
173
173
|
emits: [
|
|
174
174
|
s.CLOSE_DROPDOWN,
|
|
@@ -180,67 +180,68 @@ const Q = {
|
|
|
180
180
|
s.TAB
|
|
181
181
|
],
|
|
182
182
|
setup(e, { emit: o, slots: n }) {
|
|
183
|
-
const { selectedValue: t, multiple: a } =
|
|
183
|
+
const { selectedValue: t, multiple: a } = ve(e), i = $(null), { t: r } = le({ messages: oe }), d = c(() => e.open && !e.disabled), l = c(() => r("noOptionsMatchThisSearch")), f = c(() => ({
|
|
184
|
+
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
185
|
+
})), _ = c(() => ({
|
|
184
186
|
"b-dropdown-options-container__listbox--small": e.inputSize === T.SMALL,
|
|
185
187
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
186
|
-
})), { actions: y, internalSelectedValue:
|
|
188
|
+
})), { actions: y, internalSelectedValue: g, listeners: m, onEscapeKey: h } = He(
|
|
187
189
|
t,
|
|
188
190
|
a,
|
|
189
191
|
o
|
|
190
|
-
),
|
|
191
|
-
() => e != null && e.multiple ?
|
|
192
|
-
),
|
|
192
|
+
), C = c(
|
|
193
|
+
() => e != null && e.multiple ? ce : j
|
|
194
|
+
), v = c(
|
|
193
195
|
() => {
|
|
194
|
-
var
|
|
196
|
+
var K;
|
|
195
197
|
return e != null && e.multiple ? {
|
|
196
|
-
actionsLayout:
|
|
198
|
+
actionsLayout: We.SPACE_BETWEEN,
|
|
197
199
|
actions: y.value,
|
|
198
200
|
divider: !0,
|
|
199
|
-
id:
|
|
201
|
+
id: k(`dropdown-options-${e.id}`),
|
|
200
202
|
open: e.open,
|
|
201
|
-
position:
|
|
202
|
-
style: { width: `${(
|
|
203
|
+
position: "bottom-start",
|
|
204
|
+
style: { width: `${(K = e == null ? void 0 : e.targetElement) == null ? void 0 : K.clientWidth}px` },
|
|
203
205
|
targetElement: e.targetElement
|
|
204
206
|
} : {
|
|
205
207
|
matchWidth: !0,
|
|
206
208
|
offset: [0, 8],
|
|
207
|
-
position:
|
|
208
|
-
style: { display:
|
|
209
|
+
position: "bottom-start",
|
|
210
|
+
style: { display: d.value ? "block" : "none" },
|
|
209
211
|
targetElement: e.targetElement
|
|
210
212
|
};
|
|
211
213
|
}
|
|
212
214
|
);
|
|
213
215
|
return {
|
|
214
216
|
// Values
|
|
215
|
-
isDropdownOpen:
|
|
216
|
-
|
|
217
|
-
|
|
217
|
+
isDropdownOpen: d,
|
|
218
|
+
conditionalClasses: f,
|
|
219
|
+
conditionalListboxClasses: _,
|
|
220
|
+
noResultsMessage: l,
|
|
218
221
|
slots: n,
|
|
219
222
|
actions: y,
|
|
220
|
-
internalSelectedValue:
|
|
223
|
+
internalSelectedValue: g,
|
|
221
224
|
// Component wrapper
|
|
222
|
-
popperContainerOrPopoverComponent:
|
|
223
|
-
popperContainerOrPopoverProps:
|
|
225
|
+
popperContainerOrPopoverComponent: C,
|
|
226
|
+
popperContainerOrPopoverProps: v,
|
|
224
227
|
// Refs
|
|
225
228
|
dropdownOptionsListboxRef: i,
|
|
226
|
-
// Enums
|
|
227
|
-
BentoButtonActionsLayout: ue,
|
|
228
|
-
BentoPopoverPositions: de,
|
|
229
|
-
PopperContainerPosition: se,
|
|
230
229
|
// Events
|
|
231
|
-
onEscapeKey:
|
|
232
|
-
listeners:
|
|
230
|
+
onEscapeKey: h,
|
|
231
|
+
listeners: m
|
|
233
232
|
};
|
|
234
233
|
}
|
|
235
234
|
});
|
|
236
|
-
function
|
|
237
|
-
const
|
|
238
|
-
return
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
235
|
+
function je(e, o, n, t, a, i) {
|
|
236
|
+
const r = R("bento-listbox");
|
|
237
|
+
return b(), B(ye(e.popperContainerOrPopoverComponent), A({
|
|
238
|
+
class: ["b-dropdown-options-container", e.conditionalClasses]
|
|
239
|
+
}, e.popperContainerOrPopoverProps), {
|
|
240
|
+
default: E(() => [
|
|
241
|
+
U("div", {
|
|
242
|
+
onKeydown: o[0] || (o[0] = Ne((...d) => e.onEscapeKey && e.onEscapeKey(...d), ["esc"]))
|
|
242
243
|
}, [
|
|
243
|
-
|
|
244
|
+
z(r, A({
|
|
244
245
|
id: e.id,
|
|
245
246
|
ref: "dropdownOptionsListboxRef",
|
|
246
247
|
"aria-label": e.ariaLabel,
|
|
@@ -254,68 +255,68 @@ function qe(e, o, n, t, a, i) {
|
|
|
254
255
|
loading: e.loading,
|
|
255
256
|
"lazy-load-type": e.lazyLoadType,
|
|
256
257
|
"has-more-items": e.hasMoreItems
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
name:
|
|
260
|
-
fn:
|
|
261
|
-
|
|
258
|
+
}, x(e.listeners)), Z({ _: 2 }, [
|
|
259
|
+
Y(e.slots, (d, l) => ({
|
|
260
|
+
name: l,
|
|
261
|
+
fn: E((f) => [
|
|
262
|
+
G(e.$slots, l, Q(X(f)), void 0, !0)
|
|
262
263
|
])
|
|
263
264
|
}))
|
|
264
265
|
]), 1040, ["id", "aria-label", "class", "is-option-disabled", "items", "selected-value", "multiple", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items"])
|
|
265
266
|
], 32)
|
|
266
267
|
]),
|
|
267
268
|
_: 3
|
|
268
|
-
}, 16);
|
|
269
|
+
}, 16, ["class"]);
|
|
269
270
|
}
|
|
270
|
-
const
|
|
271
|
-
let
|
|
272
|
-
const
|
|
271
|
+
const Je = /* @__PURE__ */ F(Ve, [["render", je], ["__scopeId", "data-v-de2a5709"]]);
|
|
272
|
+
let fe = 0;
|
|
273
|
+
const Ze = {
|
|
273
274
|
beforeCreate() {
|
|
274
|
-
this.uuid =
|
|
275
|
+
this.uuid = fe.toString(), fe += 1;
|
|
275
276
|
}
|
|
276
|
-
},
|
|
277
|
+
}, Ye = (e) => (ge("data-v-18645fe6"), e = e(), he(), e), Ge = { key: 0 }, Qe = /* @__PURE__ */ Ye(() => /* @__PURE__ */ U("path", {
|
|
277
278
|
fill: "#00112C",
|
|
278
279
|
"fill-rule": "evenodd",
|
|
279
280
|
d: "M4.4697 5.96967C4.76259 5.67678 5.23747 5.67678 5.53036 5.96967L8.00003 8.43934L10.4697 5.96967C10.7626 5.67678 11.2375 5.67678 11.5304 5.96967C11.8233 6.26256 11.8233 6.73744 11.5304 7.03033L8.53036 10.0303C8.23747 10.3232 7.76259 10.3232 7.4697 10.0303L4.4697 7.03033C4.17681 6.73744 4.17681 6.26256 4.4697 5.96967Z",
|
|
280
281
|
"clip-rule": "evenodd"
|
|
281
282
|
}, null, -1));
|
|
282
|
-
function
|
|
283
|
-
return
|
|
283
|
+
function Xe(e, o, n, t, a, i) {
|
|
284
|
+
return b(), O("svg", A({ role: "img" }, e.$attrs, {
|
|
284
285
|
xmlns: "http://www.w3.org/2000/svg",
|
|
285
286
|
width: "16",
|
|
286
287
|
height: "16",
|
|
287
288
|
fill: "none"
|
|
288
289
|
}), [
|
|
289
|
-
e.$attrs["svg-title"] ? (
|
|
290
|
-
|
|
290
|
+
e.$attrs["svg-title"] ? (b(), O("title", Ge, P(e.$attrs["svg-title"]), 1)) : L("", !0),
|
|
291
|
+
Qe
|
|
291
292
|
], 16);
|
|
292
293
|
}
|
|
293
|
-
const
|
|
294
|
+
const et = /* @__PURE__ */ F(Ze, [["render", Xe], ["__scopeId", "data-v-18645fe6"]]);
|
|
294
295
|
let pe = 0;
|
|
295
|
-
const
|
|
296
|
+
const tt = {
|
|
296
297
|
beforeCreate() {
|
|
297
298
|
this.uuid = pe.toString(), pe += 1;
|
|
298
299
|
}
|
|
299
|
-
},
|
|
300
|
+
}, ot = (e) => (ge("data-v-6f20d431"), e = e(), he(), e), nt = { key: 0 }, lt = /* @__PURE__ */ ot(() => /* @__PURE__ */ U("path", {
|
|
300
301
|
fill: "#00112C",
|
|
301
302
|
"fill-rule": "evenodd",
|
|
302
303
|
d: "M11.5303 10.0303C11.2374 10.3232 10.7626 10.3232 10.4697 10.0303L8 7.56066L5.53033 10.0303C5.23744 10.3232 4.76256 10.3232 4.46967 10.0303C4.17678 9.73744 4.17678 9.26256 4.46967 8.96967L7.46967 5.96967C7.61032 5.82902 7.80109 5.75 8 5.75C8.19891 5.75 8.38968 5.82902 8.53033 5.96967L11.5303 8.96967C11.8232 9.26256 11.8232 9.73744 11.5303 10.0303Z",
|
|
303
304
|
"clip-rule": "evenodd"
|
|
304
305
|
}, null, -1));
|
|
305
|
-
function
|
|
306
|
-
return
|
|
306
|
+
function at(e, o, n, t, a, i) {
|
|
307
|
+
return b(), O("svg", A({ role: "img" }, e.$attrs, {
|
|
307
308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
308
309
|
width: "16",
|
|
309
310
|
height: "16",
|
|
310
311
|
fill: "none"
|
|
311
312
|
}), [
|
|
312
|
-
e.$attrs["svg-title"] ? (
|
|
313
|
-
|
|
313
|
+
e.$attrs["svg-title"] ? (b(), O("title", nt, P(e.$attrs["svg-title"]), 1)) : L("", !0),
|
|
314
|
+
lt
|
|
314
315
|
], 16);
|
|
315
316
|
}
|
|
316
|
-
const
|
|
317
|
+
const it = /* @__PURE__ */ F(tt, [["render", at], ["__scopeId", "data-v-6f20d431"]]), st = ne({
|
|
317
318
|
name: "dropdown-small-textbox",
|
|
318
|
-
components: { ChevronDownSmallIcon:
|
|
319
|
+
components: { ChevronDownSmallIcon: et, ChevronUpSmallIcon: it, DropdownBaseTextbox: xe },
|
|
319
320
|
inheritAttrs: !1,
|
|
320
321
|
props: {
|
|
321
322
|
/**
|
|
@@ -387,43 +388,43 @@ const tt = /* @__PURE__ */ K(Ye, [["render", et], ["__scopeId", "data-v-6f20d431
|
|
|
387
388
|
*/
|
|
388
389
|
value: { type: String, default: "" }
|
|
389
390
|
},
|
|
390
|
-
emits: [
|
|
391
|
+
emits: [M.OPEN, M.CLOSE],
|
|
391
392
|
setup(e, { emit: o }) {
|
|
392
393
|
const n = c(() => ({
|
|
393
|
-
[`b-dropdown-small-textbox--${
|
|
394
|
-
[`b-dropdown-small-textbox--${
|
|
395
|
-
[`b-dropdown-small-textbox--${
|
|
394
|
+
[`b-dropdown-small-textbox--${J.DISABLED}`]: e.disabled,
|
|
395
|
+
[`b-dropdown-small-textbox--${J.READONLY}`]: e.readonly,
|
|
396
|
+
[`b-dropdown-small-textbox--${J.OPENED}`]: e.open
|
|
396
397
|
})), t = c(() => e.open && !e.disabled && !e.readonly), a = () => {
|
|
397
|
-
o(
|
|
398
|
+
o(M.OPEN);
|
|
398
399
|
}, i = () => {
|
|
399
|
-
o(
|
|
400
|
-
},
|
|
401
|
-
[
|
|
402
|
-
[
|
|
400
|
+
o(M.CLOSE);
|
|
401
|
+
}, r = {
|
|
402
|
+
[M.OPEN]: a,
|
|
403
|
+
[M.CLOSE]: i
|
|
403
404
|
};
|
|
404
405
|
return {
|
|
405
406
|
// Values
|
|
406
407
|
conditionalClasses: n,
|
|
407
408
|
isDropdownOpen: t,
|
|
408
409
|
// Events
|
|
409
|
-
listeners:
|
|
410
|
+
listeners: r
|
|
410
411
|
};
|
|
411
412
|
}
|
|
412
413
|
});
|
|
413
|
-
const
|
|
414
|
-
function
|
|
415
|
-
const
|
|
416
|
-
return
|
|
417
|
-
class:
|
|
414
|
+
const rt = { class: "b-dropdown-small-textbox__chevron" };
|
|
415
|
+
function dt(e, o, n, t, a, i) {
|
|
416
|
+
const r = R("chevron-up-small-icon"), d = R("chevron-down-small-icon"), l = R("dropdown-base-textbox");
|
|
417
|
+
return b(), O("div", {
|
|
418
|
+
class: we(["b-dropdown-small-textbox", e.conditionalClasses])
|
|
418
419
|
}, [
|
|
419
|
-
|
|
420
|
-
icon:
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
[
|
|
420
|
+
z(l, A({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" }, x(e.listeners)), {
|
|
421
|
+
icon: E(() => [
|
|
422
|
+
U("div", rt, [
|
|
423
|
+
q(z(r, { "svg-title": "opened" }, null, 512), [
|
|
424
|
+
[de, e.isDropdownOpen]
|
|
424
425
|
]),
|
|
425
|
-
|
|
426
|
-
[
|
|
426
|
+
q(z(d, { "svg-title": "closed" }, null, 512), [
|
|
427
|
+
[de, !e.isDropdownOpen]
|
|
427
428
|
])
|
|
428
429
|
])
|
|
429
430
|
]),
|
|
@@ -431,102 +432,113 @@ function lt(e, o, n, t, a, i) {
|
|
|
431
432
|
}, 16)
|
|
432
433
|
], 2);
|
|
433
434
|
}
|
|
434
|
-
const
|
|
435
|
-
function
|
|
436
|
-
const t =
|
|
437
|
-
return
|
|
435
|
+
const ut = /* @__PURE__ */ F(st, [["render", dt], ["__scopeId", "data-v-55bc3614"]]);
|
|
436
|
+
function ct(e, o, n) {
|
|
437
|
+
const t = $(e), a = $(o), i = (d, l = []) => l.flatMap((f) => f.label.toLocaleLowerCase().includes(d) ? [f, ...i(d, f.items)] : f.items ? [...i(d, f.items)] : []);
|
|
438
|
+
return be(t, () => {
|
|
438
439
|
n !== void 0 && n(t.value);
|
|
439
440
|
}), c(() => {
|
|
440
441
|
if (!t.value || n !== void 0)
|
|
441
442
|
return a.value;
|
|
442
|
-
const
|
|
443
|
-
return i(
|
|
443
|
+
const d = t.value.toLocaleLowerCase();
|
|
444
|
+
return i(d, a.value);
|
|
444
445
|
});
|
|
445
446
|
}
|
|
446
|
-
const
|
|
447
|
+
const ft = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
447
448
|
const t = e.value.find(({ value: a }) => a === n.value);
|
|
448
449
|
return (t == null ? void 0 : t.label) || o.value || null;
|
|
449
|
-
},
|
|
450
|
-
const { label: a } = o.value.find(({ value: i }) => i === t);
|
|
451
|
-
return a;
|
|
452
|
-
}).join(", ") : n.value || null, dt = ({ selectedValues: e, items: o, placeholder: n }) => {
|
|
450
|
+
}, pt = ({ selectedValues: e, items: o, placeholder: n }) => {
|
|
453
451
|
var t;
|
|
454
|
-
return (t = e.value)
|
|
452
|
+
return !e.value || ((t = e.value) == null ? void 0 : t.length) === 0 ? n.value || null : e.value.map((a) => {
|
|
453
|
+
const { label: i } = o.value.find(({ value: r }) => r === a);
|
|
454
|
+
return i;
|
|
455
|
+
}).join(", ");
|
|
456
|
+
}, mt = ({ selectedValues: e, items: o, placeholder: n }) => {
|
|
457
|
+
var t;
|
|
458
|
+
return !e.value || !((t = e.value) != null && t.length) ? n.value || null : o.value.reduce((a, i) => {
|
|
455
459
|
if (i.items) {
|
|
456
|
-
const
|
|
457
|
-
(
|
|
460
|
+
const r = i.items.filter(
|
|
461
|
+
(l) => e.value.includes(l.value)
|
|
458
462
|
);
|
|
459
|
-
|
|
463
|
+
r.length === i.items.length ? a.push(i.label) : r.forEach(({ label: l }) => a.push(l));
|
|
460
464
|
}
|
|
461
465
|
return e.value.includes(i.value) && a.push(i.label), a;
|
|
462
|
-
}, []).join(", ")
|
|
463
|
-
},
|
|
464
|
-
const a = c(() => e.value.find((
|
|
465
|
-
var
|
|
466
|
-
return (
|
|
466
|
+
}, []).join(", ");
|
|
467
|
+
}, bt = ({ items: e, placeholder: o, value: n, multiple: t }) => {
|
|
468
|
+
const a = c(() => e.value.find((r) => {
|
|
469
|
+
var d;
|
|
470
|
+
return (d = r.items) == null ? void 0 : d.length;
|
|
467
471
|
}));
|
|
468
|
-
return c(() => t.value ? a.value ?
|
|
469
|
-
},
|
|
472
|
+
return c(() => t.value ? a.value ? mt({ selectedValues: n, placeholder: o, items: e }) : pt({ selectedValues: n, items: e, placeholder: o }) : ft({ items: e, placeholder: o, selectedValue: n }));
|
|
473
|
+
}, me = {
|
|
470
474
|
"en-US": {
|
|
471
475
|
optional: "optional",
|
|
472
476
|
required: "required",
|
|
473
|
-
clearSearch: "Clear filter"
|
|
477
|
+
clearSearch: "Clear filter",
|
|
478
|
+
ariaLabelFallback: "Dropdown"
|
|
474
479
|
}
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
|
|
480
|
+
}, $e = (e) => {
|
|
481
|
+
var o;
|
|
482
|
+
(o = e.value.$children) == null || o[0].$refs.textbox.focus();
|
|
483
|
+
}, vt = ({
|
|
478
484
|
inputContainerRef: e,
|
|
479
485
|
optionsContainerRef: o,
|
|
480
486
|
selectedValueIndex: n,
|
|
481
487
|
isDropdownOpen: t,
|
|
482
488
|
isDynamicFltering: a,
|
|
483
489
|
items: i,
|
|
484
|
-
isMultiple:
|
|
485
|
-
},
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
490
|
+
isMultiple: r
|
|
491
|
+
}, d, l, f) => {
|
|
492
|
+
const _ = ({ detail: u }) => {
|
|
493
|
+
u.preventDefault(), t.value || (l(), I(() => {
|
|
494
|
+
var p, S;
|
|
495
|
+
r ? (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (S = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || S[n.value].$el.focus();
|
|
489
496
|
}));
|
|
490
|
-
},
|
|
491
|
-
|
|
492
|
-
|
|
497
|
+
}, y = ({ detail: u }) => {
|
|
498
|
+
u.preventDefault(), t.value || (l(), I(() => {
|
|
499
|
+
var p;
|
|
500
|
+
(p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus();
|
|
493
501
|
}));
|
|
494
502
|
}, g = () => {
|
|
495
|
-
t.value || (
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children
|
|
503
|
+
t.value || (l(), I(() => {
|
|
504
|
+
var u, p;
|
|
505
|
+
if (r) {
|
|
506
|
+
const S = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
507
|
+
(u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[S.length - 1].$children[i.length - 1].$el.focus();
|
|
499
508
|
} else
|
|
500
|
-
o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[i.length - 1].$el.focus();
|
|
509
|
+
(p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[i.length - 1].$el.focus();
|
|
501
510
|
}));
|
|
502
|
-
},
|
|
503
|
-
t.value && (
|
|
504
|
-
},
|
|
505
|
-
t.value ||
|
|
506
|
-
|
|
511
|
+
}, m = () => {
|
|
512
|
+
t.value && (f(), $e(e));
|
|
513
|
+
}, h = () => {
|
|
514
|
+
t.value || l(), I(() => {
|
|
515
|
+
var u;
|
|
516
|
+
(u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus();
|
|
507
517
|
});
|
|
508
|
-
},
|
|
509
|
-
|
|
510
|
-
|
|
518
|
+
}, C = ({ detail: u }) => {
|
|
519
|
+
u.preventDefault(), d(), t.value && I(() => {
|
|
520
|
+
var p, S;
|
|
521
|
+
r ? (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (S = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || S[n.value].$el.focus();
|
|
511
522
|
});
|
|
512
|
-
},
|
|
513
|
-
|
|
514
|
-
|
|
523
|
+
}, v = () => {
|
|
524
|
+
d(), t.value && I(() => {
|
|
525
|
+
var u, p;
|
|
526
|
+
r ? (u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (p = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[n.value].$el.focus();
|
|
515
527
|
});
|
|
516
528
|
};
|
|
517
529
|
return c(() => ({
|
|
518
|
-
...a.value ? {} : { [
|
|
519
|
-
[
|
|
520
|
-
[
|
|
521
|
-
[
|
|
522
|
-
[
|
|
523
|
-
[
|
|
524
|
-
[
|
|
530
|
+
...a.value ? {} : { [D.SPACE]: C },
|
|
531
|
+
[D.ENTER]: v,
|
|
532
|
+
[D.ARROW_DOWN]: _,
|
|
533
|
+
[D.ARROW_UP]: y,
|
|
534
|
+
[D.END]: g,
|
|
535
|
+
[D.ESCAPE]: m,
|
|
536
|
+
[D.HOME]: h
|
|
525
537
|
}));
|
|
526
|
-
},
|
|
538
|
+
}, yt = ({ inputContainerRef: e, isDropdownOpen: o }, n) => {
|
|
527
539
|
const t = () => {
|
|
528
|
-
o.value && n(),
|
|
529
|
-
|
|
540
|
+
o.value && n(), I(() => {
|
|
541
|
+
$e(e);
|
|
530
542
|
});
|
|
531
543
|
};
|
|
532
544
|
return {
|
|
@@ -535,18 +547,21 @@ const st = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
535
547
|
[s.TAB]: t,
|
|
536
548
|
[s.SPACE]: t
|
|
537
549
|
};
|
|
538
|
-
},
|
|
539
|
-
i18n: { messages:
|
|
550
|
+
}, gt = ne({
|
|
551
|
+
i18n: { messages: me },
|
|
540
552
|
name: "b-dropdown",
|
|
541
553
|
components: {
|
|
542
|
-
BentoDropdownOptionsContainer:
|
|
543
|
-
BentoTypography:
|
|
544
|
-
DropdownInputDefault:
|
|
545
|
-
DropdownInputSmall:
|
|
546
|
-
ErrorMessage:
|
|
554
|
+
BentoDropdownOptionsContainer: Je,
|
|
555
|
+
BentoTypography: Ke,
|
|
556
|
+
DropdownInputDefault: qe,
|
|
557
|
+
DropdownInputSmall: ut,
|
|
558
|
+
ErrorMessage: Ue
|
|
547
559
|
},
|
|
548
|
-
directives: { BentoClickOutsideDirective:
|
|
560
|
+
directives: { BentoClickOutsideDirective: Me, BentoKeyboardNavigationDirective: Pe },
|
|
549
561
|
props: {
|
|
562
|
+
/**
|
|
563
|
+
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
564
|
+
*/
|
|
550
565
|
/**
|
|
551
566
|
* Defines a string value that labels an interactive element.
|
|
552
567
|
*/
|
|
@@ -625,8 +640,8 @@ const st = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
625
640
|
*/
|
|
626
641
|
lazyLoadType: {
|
|
627
642
|
type: String,
|
|
628
|
-
default:
|
|
629
|
-
validator: (e) => Object.values(
|
|
643
|
+
default: ee.props.lazyLoadType.default,
|
|
644
|
+
validator: (e) => Object.values(te).includes(e)
|
|
630
645
|
},
|
|
631
646
|
/*
|
|
632
647
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -650,7 +665,7 @@ const st = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
650
665
|
showSlotContentInMultiple: { type: Boolean, default: !1 },
|
|
651
666
|
/**
|
|
652
667
|
* Dropdown input size
|
|
653
|
-
* @see BentoDropdownSize
|
|
668
|
+
* * @see BentoDropdownSize
|
|
654
669
|
*/
|
|
655
670
|
size: {
|
|
656
671
|
type: String,
|
|
@@ -676,151 +691,154 @@ const st = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
676
691
|
}
|
|
677
692
|
},
|
|
678
693
|
emits: ["input", s.SHOW_MORE],
|
|
679
|
-
setup(e, {
|
|
680
|
-
var
|
|
681
|
-
const t =
|
|
694
|
+
setup(e, { attrs: o, emit: n, slots: t }) {
|
|
695
|
+
var re;
|
|
696
|
+
const { t: a } = le({ messages: me }), i = $(null), r = $(null), d = $(null), l = $(!1), f = k("bento-dropdown-options-container"), _ = k("dropdown-label"), y = k("dropdown-description"), g = k("dropdown-error"), { isReadOnly: m } = Fe(N(e, "readonly")), h = $(o["aria-label"]), { ariaLabel: C } = ve(e), v = ze({
|
|
697
|
+
ariaLabel: h.value,
|
|
698
|
+
// TODO: take this line away when the aria-label props is removed
|
|
699
|
+
label: C,
|
|
700
|
+
defaultFallback: a("ariaLabelFallback")
|
|
701
|
+
}), K = c(() => ({
|
|
682
702
|
"b-dropdown__description--error": !!e.errorMessage
|
|
683
|
-
})),
|
|
684
|
-
items:
|
|
685
|
-
multiple:
|
|
686
|
-
placeholder:
|
|
687
|
-
value:
|
|
688
|
-
}),
|
|
703
|
+
})), u = $(""), p = N(e, "items"), S = ct(u, p, (re = e == null ? void 0 : e.search) == null ? void 0 : re.searchEvent), H = c(() => e.dynamicFiltering && !!u.value), _e = bt({
|
|
704
|
+
items: p,
|
|
705
|
+
multiple: N(e, "multiple"),
|
|
706
|
+
placeholder: N(e, "placeholder"),
|
|
707
|
+
value: N(e, "value")
|
|
708
|
+
}), Se = c(() => e.size === T.DEFAULT), Ee = c(
|
|
689
709
|
() => e != null && e.multiple ? e.items.filter(
|
|
690
|
-
({ value:
|
|
691
|
-
) : e.items.find(({ value:
|
|
692
|
-
),
|
|
693
|
-
const
|
|
694
|
-
return
|
|
695
|
-
}),
|
|
696
|
-
var
|
|
697
|
-
return e.multiple ? (
|
|
698
|
-
}),
|
|
699
|
-
() => `${e.description ?
|
|
700
|
-
),
|
|
701
|
-
|
|
702
|
-
},
|
|
710
|
+
({ value: w }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(w)
|
|
711
|
+
) : e.items.find(({ value: w }) => w === (e == null ? void 0 : e.value))
|
|
712
|
+
), Le = c(() => {
|
|
713
|
+
const w = e.items.findIndex(({ value: Ae }) => e.value === Ae);
|
|
714
|
+
return w > 0 ? w : 0;
|
|
715
|
+
}), Oe = c(() => {
|
|
716
|
+
var w;
|
|
717
|
+
return e.multiple ? (w = e == null ? void 0 : e.value) == null ? void 0 : w.length : null;
|
|
718
|
+
}), Ce = c(
|
|
719
|
+
() => `${e.description ? y : ""} ${e.errorMessage ? g : ""}`.trim() || null
|
|
720
|
+
), De = () => {
|
|
721
|
+
m.value || (l.value = !0);
|
|
722
|
+
}, V = () => {
|
|
703
723
|
l.value = !1;
|
|
704
|
-
},
|
|
705
|
-
|
|
706
|
-
},
|
|
707
|
-
|
|
708
|
-
},
|
|
709
|
-
e.multiple || (
|
|
710
|
-
},
|
|
711
|
-
|
|
712
|
-
},
|
|
724
|
+
}, ae = () => {
|
|
725
|
+
m.value || (l.value = !l.value, H.value && (u.value = ""));
|
|
726
|
+
}, Be = () => {
|
|
727
|
+
H.value && (u.value = ""), l.value && (l.value = !1);
|
|
728
|
+
}, ie = (w) => {
|
|
729
|
+
e.multiple || (u.value = "", l.value = !1), n("input", w);
|
|
730
|
+
}, se = () => {
|
|
731
|
+
n(s.SHOW_MORE);
|
|
732
|
+
}, Ie = vt(
|
|
713
733
|
{
|
|
714
|
-
inputContainerRef:
|
|
715
|
-
optionsContainerRef:
|
|
716
|
-
selectedValueIndex:
|
|
734
|
+
inputContainerRef: i,
|
|
735
|
+
optionsContainerRef: d,
|
|
736
|
+
selectedValueIndex: Le,
|
|
717
737
|
isDropdownOpen: l,
|
|
718
|
-
isDynamicFltering:
|
|
738
|
+
isDynamicFltering: N(e, "dynamicFiltering"),
|
|
719
739
|
items: e.items,
|
|
720
740
|
isMultiple: e.multiple
|
|
721
741
|
},
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
),
|
|
742
|
+
ae,
|
|
743
|
+
De,
|
|
744
|
+
V
|
|
745
|
+
), Re = yt(
|
|
726
746
|
{
|
|
727
|
-
inputContainerRef:
|
|
747
|
+
inputContainerRef: i,
|
|
728
748
|
isDropdownOpen: l
|
|
729
749
|
},
|
|
730
|
-
|
|
731
|
-
),
|
|
732
|
-
[s.CLOSE_DROPDOWN]:
|
|
733
|
-
[s.SELECT]:
|
|
734
|
-
[s.SHOW_MORE]:
|
|
735
|
-
...
|
|
750
|
+
V
|
|
751
|
+
), Te = {
|
|
752
|
+
[s.CLOSE_DROPDOWN]: V,
|
|
753
|
+
[s.SELECT]: ie,
|
|
754
|
+
[s.SHOW_MORE]: se,
|
|
755
|
+
...Re
|
|
736
756
|
};
|
|
737
|
-
return e.error &&
|
|
757
|
+
return e.error && ke(
|
|
738
758
|
'BentoDropdown "error" property',
|
|
739
759
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
740
|
-
|
|
741
|
-
|
|
760
|
+
Having the field as "undefined" will hide/remove the error.
|
|
761
|
+
<bento-dropdown errorMessage="Error message text" />`,
|
|
742
762
|
"2.0.0"
|
|
743
763
|
), {
|
|
744
764
|
// Values
|
|
745
|
-
|
|
765
|
+
computedAriaLabel: v,
|
|
766
|
+
additionalItemsSelected: Oe,
|
|
767
|
+
idDefaultSize: Se,
|
|
746
768
|
isDropdownOpen: l,
|
|
747
|
-
displayValue:
|
|
748
|
-
dropdownOptionsContainerId:
|
|
749
|
-
filteredItems:
|
|
750
|
-
isSearching:
|
|
751
|
-
isReadOnly:
|
|
752
|
-
searchTerm:
|
|
753
|
-
labelId:
|
|
754
|
-
descriptionId:
|
|
755
|
-
errorId:
|
|
756
|
-
ariaDescribedBy:
|
|
757
|
-
selectedValueItem:
|
|
769
|
+
displayValue: _e,
|
|
770
|
+
dropdownOptionsContainerId: f,
|
|
771
|
+
filteredItems: S,
|
|
772
|
+
isSearching: H,
|
|
773
|
+
isReadOnly: m,
|
|
774
|
+
searchTerm: u,
|
|
775
|
+
labelId: _,
|
|
776
|
+
descriptionId: y,
|
|
777
|
+
errorId: g,
|
|
778
|
+
ariaDescribedBy: Ce,
|
|
779
|
+
selectedValueItem: Ee,
|
|
758
780
|
// Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
|
|
759
781
|
// The setup method and the "useSlots" composible define
|
|
760
782
|
// { slots } as a proxy of $scopedSlots and $scopes in their
|
|
761
783
|
// respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
|
|
762
|
-
slots:
|
|
763
|
-
descriptionConditionalClasses:
|
|
784
|
+
slots: t,
|
|
785
|
+
descriptionConditionalClasses: K,
|
|
764
786
|
// Refs
|
|
765
|
-
inputContainerRef:
|
|
766
|
-
inputContainerRefWrapper:
|
|
767
|
-
optionsContainerRef:
|
|
787
|
+
inputContainerRef: i,
|
|
788
|
+
inputContainerRefWrapper: r,
|
|
789
|
+
optionsContainerRef: d,
|
|
768
790
|
// Events
|
|
769
|
-
closeOpenedDropdown:
|
|
770
|
-
toggleDropdown:
|
|
771
|
-
onOptionSelected:
|
|
772
|
-
emitShowMoreEvent:
|
|
773
|
-
textboxKeyboardNavigationListeners:
|
|
774
|
-
listboxListeners:
|
|
775
|
-
// Enums
|
|
776
|
-
BentoTypographyElement: Pe,
|
|
777
|
-
BentoDropdownSize: T,
|
|
778
|
-
BentoDropdownLazyLoadType: F
|
|
791
|
+
closeOpenedDropdown: Be,
|
|
792
|
+
toggleDropdown: ae,
|
|
793
|
+
onOptionSelected: ie,
|
|
794
|
+
emitShowMoreEvent: se,
|
|
795
|
+
textboxKeyboardNavigationListeners: Ie,
|
|
796
|
+
listboxListeners: Te
|
|
779
797
|
};
|
|
780
798
|
}
|
|
781
799
|
});
|
|
782
|
-
const
|
|
783
|
-
function
|
|
784
|
-
var
|
|
785
|
-
const
|
|
786
|
-
return
|
|
787
|
-
e.label ? (
|
|
800
|
+
const ht = { class: "b-dropdown" }, wt = ["id"];
|
|
801
|
+
function $t(e, o, n, t, a, i) {
|
|
802
|
+
var y;
|
|
803
|
+
const r = R("bento-typography"), d = R("bento-dropdown-options-container"), l = R("error-message"), f = ue("bento-keyboard-navigation-directive"), _ = ue("bento-click-outside-directive");
|
|
804
|
+
return q((b(), O("div", ht, [
|
|
805
|
+
e.label ? (b(), O("div", {
|
|
788
806
|
key: 0,
|
|
789
807
|
id: e.labelId,
|
|
790
808
|
class: "b-dropdown__label"
|
|
791
809
|
}, [
|
|
792
|
-
|
|
793
|
-
el:
|
|
810
|
+
z(r, {
|
|
811
|
+
el: "span",
|
|
794
812
|
stronger: ""
|
|
795
813
|
}, {
|
|
796
|
-
default:
|
|
797
|
-
|
|
814
|
+
default: E(() => [
|
|
815
|
+
W(P(e.label), 1)
|
|
798
816
|
]),
|
|
799
817
|
_: 1
|
|
800
|
-
}
|
|
801
|
-
e.optional ? (
|
|
818
|
+
}),
|
|
819
|
+
e.optional ? (b(), B(r, {
|
|
802
820
|
key: 0,
|
|
803
821
|
class: "b-dropdown__label-requirement",
|
|
804
|
-
el:
|
|
822
|
+
el: "span"
|
|
805
823
|
}, {
|
|
806
|
-
default:
|
|
807
|
-
|
|
824
|
+
default: E(() => [
|
|
825
|
+
W(" (" + P(e.$t("optional")) + ") ", 1)
|
|
808
826
|
]),
|
|
809
827
|
_: 1
|
|
810
|
-
}
|
|
811
|
-
e.required ? (
|
|
828
|
+
})) : L("", !0),
|
|
829
|
+
e.required ? (b(), B(r, {
|
|
812
830
|
key: 1,
|
|
813
831
|
class: "b-dropdown__label-requirement",
|
|
814
|
-
el:
|
|
832
|
+
el: "span"
|
|
815
833
|
}, {
|
|
816
|
-
default:
|
|
817
|
-
|
|
834
|
+
default: E(() => [
|
|
835
|
+
W(" (" + P(e.$t("required")) + ") ", 1)
|
|
818
836
|
]),
|
|
819
837
|
_: 1
|
|
820
|
-
}
|
|
821
|
-
], 8,
|
|
822
|
-
|
|
823
|
-
(
|
|
838
|
+
})) : L("", !0)
|
|
839
|
+
], 8, wt)) : L("", !0),
|
|
840
|
+
q((b(), O("div", A({ ref: "inputContainerRefWrapper" }, x(e.textboxKeyboardNavigationListeners, !0)), [
|
|
841
|
+
(b(), B(ye(e.size), {
|
|
824
842
|
ref: "inputContainerRef",
|
|
825
843
|
value: e.searchTerm,
|
|
826
844
|
"additional-items-selected": e.additionalItemsSelected,
|
|
@@ -828,7 +846,7 @@ function yt(e, o, n, t, a, i) {
|
|
|
828
846
|
ariaExpanded: e.isDropdownOpen,
|
|
829
847
|
"aria-labelledby": e.label ? e.labelId : null,
|
|
830
848
|
"aria-describedby": e.ariaDescribedBy,
|
|
831
|
-
"aria-label": e.
|
|
849
|
+
"aria-label": e.computedAriaLabel,
|
|
832
850
|
"aria-readonly": e.isReadOnly,
|
|
833
851
|
readonly: e.isReadOnly,
|
|
834
852
|
disabled: e.disabled,
|
|
@@ -837,28 +855,28 @@ function yt(e, o, n, t, a, i) {
|
|
|
837
855
|
"is-invalid": !!e.errorMessage || e.error,
|
|
838
856
|
multiple: e.multiple,
|
|
839
857
|
open: e.isDropdownOpen,
|
|
840
|
-
"selected-value-item": e.
|
|
858
|
+
"selected-value-item": e.idDefaultSize ? e.selectedValueItem : void 0,
|
|
841
859
|
"show-slot-content-in-multiple": e.showSlotContentInMultiple,
|
|
842
860
|
onInput: o[0] || (o[0] = (g) => e.searchTerm = g),
|
|
843
861
|
onOpen: e.toggleDropdown,
|
|
844
862
|
onClose: e.toggleDropdown
|
|
845
|
-
},
|
|
846
|
-
|
|
847
|
-
name:
|
|
848
|
-
fn:
|
|
849
|
-
|
|
863
|
+
}, Z({ _: 2 }, [
|
|
864
|
+
Y(e.slots, (g, m) => ({
|
|
865
|
+
name: m,
|
|
866
|
+
fn: E((h) => [
|
|
867
|
+
G(e.$slots, m, Q(X(h)), void 0, !0)
|
|
850
868
|
])
|
|
851
869
|
}))
|
|
852
870
|
]), 1064, ["value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple", "onOpen", "onClose"]))
|
|
853
871
|
], 16)), [
|
|
854
|
-
[
|
|
872
|
+
[f]
|
|
855
873
|
]),
|
|
856
|
-
e.inputContainerRef ? (
|
|
874
|
+
e.inputContainerRef ? (b(), B(d, A({
|
|
857
875
|
key: 1,
|
|
858
876
|
id: e.dropdownOptionsContainerId,
|
|
859
877
|
ref: "optionsContainerRef",
|
|
860
|
-
"aria-label": e.
|
|
861
|
-
"debounce-time": (
|
|
878
|
+
"aria-label": e.computedAriaLabel,
|
|
879
|
+
"debounce-time": (y = e.search) == null ? void 0 : y.debounceTime,
|
|
862
880
|
disabled: e.disabled,
|
|
863
881
|
"input-size": e.size,
|
|
864
882
|
"is-option-disabled": e.isOptionDisabled,
|
|
@@ -871,39 +889,39 @@ function yt(e, o, n, t, a, i) {
|
|
|
871
889
|
loading: e.loading,
|
|
872
890
|
"has-more-items": e.hasMoreItems,
|
|
873
891
|
"lazy-load-type": e.lazyLoadType
|
|
874
|
-
},
|
|
875
|
-
|
|
876
|
-
name:
|
|
877
|
-
fn:
|
|
878
|
-
|
|
892
|
+
}, x(e.listboxListeners)), Z({ _: 2 }, [
|
|
893
|
+
Y(e.slots, (g, m) => ({
|
|
894
|
+
name: m,
|
|
895
|
+
fn: E((h) => [
|
|
896
|
+
G(e.$slots, m, Q(X(h)), void 0, !0)
|
|
879
897
|
])
|
|
880
898
|
}))
|
|
881
|
-
]), 1040, ["id", "aria-label", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type"])) :
|
|
882
|
-
e.errorMessage ? (
|
|
899
|
+
]), 1040, ["id", "aria-label", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type"])) : L("", !0),
|
|
900
|
+
e.errorMessage ? (b(), B(l, {
|
|
883
901
|
key: 2,
|
|
884
902
|
id: e.errorId,
|
|
885
903
|
"error-message": e.errorMessage,
|
|
886
904
|
class: "b-dropdown__error-message"
|
|
887
|
-
}, null, 8, ["id", "error-message"])) :
|
|
888
|
-
e.description ? (
|
|
905
|
+
}, null, 8, ["id", "error-message"])) : L("", !0),
|
|
906
|
+
e.description ? (b(), B(r, {
|
|
889
907
|
key: 3,
|
|
890
908
|
id: e.descriptionId,
|
|
891
|
-
class:
|
|
892
|
-
el:
|
|
909
|
+
class: we(["b-dropdown__description", e.descriptionConditionalClasses]),
|
|
910
|
+
el: "span"
|
|
893
911
|
}, {
|
|
894
|
-
default:
|
|
895
|
-
|
|
912
|
+
default: E(() => [
|
|
913
|
+
W(P(e.description), 1)
|
|
896
914
|
]),
|
|
897
915
|
_: 1
|
|
898
|
-
}, 8, ["id", "class"
|
|
916
|
+
}, 8, ["id", "class"])) : L("", !0)
|
|
899
917
|
])), [
|
|
900
|
-
[
|
|
918
|
+
[_, e.closeOpenedDropdown]
|
|
901
919
|
]);
|
|
902
920
|
}
|
|
903
|
-
const
|
|
921
|
+
const Kt = /* @__PURE__ */ F(gt, [["render", $t], ["__scopeId", "data-v-79de8f04"]]);
|
|
904
922
|
export {
|
|
905
|
-
|
|
923
|
+
Kt as B,
|
|
906
924
|
T as a,
|
|
907
|
-
|
|
925
|
+
ct as u
|
|
908
926
|
};
|
|
909
|
-
//# sourceMappingURL=dropdown.
|
|
927
|
+
//# sourceMappingURL=dropdown.b798a82e.js.map
|