@adyen/bento-vue2 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 -51
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +24 -28
- 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 +161 -150
- 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 +77 -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 +4 -6
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -4
- 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 +36 -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 +2 -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 +326 -14
- 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 +1 -21
- 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 +1 -21
- 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 +277 -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-avatar/dropdown-avatar.vue.d.ts +5 -5
- 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 +5 -6
- 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-currency/dropdown-currency.vue.d.ts +5 -5
- 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-payment-method/dropdown-payment-method.vue.d.ts +5 -5
- 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/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +6 -6
- 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 +0 -26
- 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-range-filter/date-range-filter.vue.d.ts +0 -10
- package/dist/@types/packages/vue2/src/components/filter-bar/components/{base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts → filter-bar-button/filter-bar-button.vue.d.ts} +17 -22
- 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/variants/select-country-filter/select-country-filter.vue.d.ts +2 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -4
- 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 +3 -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 +50 -47
- 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/__test__/calendar-month-day-stub.vue.d.ts +1 -1
- 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/controls-group/controls-group.vue.d.ts +1 -1
- 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 -4
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +16 -339
- 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 +4 -7
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -9
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -12
- 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 +4 -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/print-development-warning.d.ts +1 -0
- package/dist/accordion.js +69 -177
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +57 -60
- 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/index23.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 -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 +110 -12
- package/dist/button.js.map +1 -1
- package/dist/card.js +66 -67
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +27 -26
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.98379576.js → base-button.bd8fa976.js} +24 -27
- package/dist/chunks/base-button.bd8fa976.js.map +1 -0
- package/dist/chunks/base-modal.a365f260.js +207 -0
- package/dist/chunks/base-modal.a365f260.js.map +1 -0
- package/dist/chunks/{button.d0c9527d.js → button.fb307df3.js} +36 -39
- package/dist/chunks/button.fb307df3.js.map +1 -0
- package/dist/chunks/{calendar.0ae43a96.js → calendar.79ea42c1.js} +214 -217
- package/dist/chunks/calendar.79ea42c1.js.map +1 -0
- package/dist/chunks/checkbox.c7d791ed.js +173 -0
- package/dist/chunks/checkbox.c7d791ed.js.map +1 -0
- package/dist/chunks/{chevron-down.b851a6da.js → chevron-up.674ec2e5.js} +8 -8
- package/dist/chunks/chevron-up.674ec2e5.js.map +1 -0
- package/dist/chunks/{controls-group.b827382b.js → controls-group.5d3e04dd.js} +20 -20
- package/dist/chunks/controls-group.5d3e04dd.js.map +1 -0
- package/dist/chunks/{copy.5a4cbd4d.js → copy.ac796536.js} +37 -38
- package/dist/chunks/copy.ac796536.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.819e43f7.js → dropdown-default-textbox.109c36d2.js} +38 -40
- package/dist/chunks/dropdown-default-textbox.109c36d2.js.map +1 -0
- package/dist/chunks/{dropdown.c05678d0.js → dropdown.fd93f0ce.js} +351 -335
- package/dist/chunks/dropdown.fd93f0ce.js.map +1 -0
- package/dist/chunks/error-message.3b3c33d4.js +47 -0
- package/dist/chunks/error-message.3b3c33d4.js.map +1 -0
- package/dist/chunks/{footer-actions.67642347.js → footer-actions.f02e8699.js} +23 -23
- package/dist/chunks/footer-actions.f02e8699.js.map +1 -0
- package/dist/chunks/get-slot-text.c1114034.js +9 -0
- package/dist/chunks/get-slot-text.c1114034.js.map +1 -0
- package/dist/chunks/{grid-layout.73f23b1b.js → grid-layout.b7e0d964.js} +2 -2
- package/dist/chunks/{grid-layout.73f23b1b.js.map → grid-layout.b7e0d964.js.map} +1 -1
- package/dist/chunks/{index.56858f4e.js → index.45295dd3.js} +23 -19
- package/dist/chunks/index.45295dd3.js.map +1 -0
- package/dist/chunks/{index.10aaf539.js → index.88ff49c2.js} +136 -142
- package/dist/chunks/index.88ff49c2.js.map +1 -0
- package/dist/chunks/{index.73d50fa6.js → index.9902cae4.js} +65 -68
- package/dist/chunks/{index.73d50fa6.js.map → index.9902cae4.js.map} +1 -1
- package/dist/chunks/{index.0cf00b47.js → index.bd734551.js} +35 -37
- package/dist/chunks/index.bd734551.js.map +1 -0
- package/dist/chunks/{index.133e4da0.js → index.c85a1ab9.js} +81 -79
- package/dist/chunks/{index.133e4da0.js.map → index.c85a1ab9.js.map} +1 -1
- package/dist/chunks/{index.f0f8ed98.js → index.c8f81673.js} +23 -26
- package/dist/chunks/index.c8f81673.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.8d6cccac.js → listbox-option-tag.ec42431b.js} +32 -36
- package/dist/chunks/listbox-option-tag.ec42431b.js.map +1 -0
- package/dist/chunks/{listbox.116ed0c1.js → listbox.e792d2d6.js} +244 -251
- package/dist/chunks/listbox.e792d2d6.js.map +1 -0
- package/dist/chunks/loading-button.429c8416.js +86 -0
- package/dist/chunks/loading-button.429c8416.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.2aff4fa6.js → tooltip.a47ace87.js} +49 -52
- package/dist/chunks/tooltip.a47ace87.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.cbdfe693.js +13 -0
- package/dist/chunks/use-default-slot-validator.cbdfe693.js.map +1 -0
- package/dist/chunks/use-has-slot.6052d56a.js +6 -0
- package/dist/chunks/use-has-slot.6052d56a.js.map +1 -0
- package/dist/code-snippet.js +469 -413
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +492 -494
- package/dist/country.js.map +1 -1
- package/dist/currency.js +32 -35
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +595 -603
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +76 -80
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +37 -39
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +134 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/filter-bar.js +648 -638
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +64 -64
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +61 -63
- package/dist/header.js.map +1 -1
- package/dist/image.js +82 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +216 -205
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +99 -123
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +27 -26
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +96 -104
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +111 -264
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +148 -145
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +16 -18
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +58 -54
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +13 -17
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +71 -72
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +54 -66
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +68 -55
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +65 -64
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +20 -23
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +110 -141
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +68 -60
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +23 -26
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +97 -96
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +125 -125
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +44 -48
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +54 -52
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +651 -397
- package/package.json +9 -12
- 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/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.98379576.js.map +0 -1
- package/dist/chunks/button-actions.bd397c79.js +0 -104
- package/dist/chunks/button-actions.bd397c79.js.map +0 -1
- package/dist/chunks/button.d0c9527d.js.map +0 -1
- package/dist/chunks/calendar.0ae43a96.js.map +0 -1
- package/dist/chunks/checkbox.f8457c93.js +0 -164
- package/dist/chunks/checkbox.f8457c93.js.map +0 -1
- package/dist/chunks/chevron-down.b851a6da.js.map +0 -1
- package/dist/chunks/controls-group.b827382b.js.map +0 -1
- package/dist/chunks/copy.5a4cbd4d.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +0 -1
- package/dist/chunks/dropdown.c05678d0.js.map +0 -1
- package/dist/chunks/error-message.0433b539.js +0 -47
- package/dist/chunks/error-message.0433b539.js.map +0 -1
- package/dist/chunks/footer-actions.67642347.js.map +0 -1
- package/dist/chunks/get-slot-text.e5c766d0.js +0 -9
- package/dist/chunks/get-slot-text.e5c766d0.js.map +0 -1
- package/dist/chunks/index.0cf00b47.js.map +0 -1
- package/dist/chunks/index.10aaf539.js.map +0 -1
- package/dist/chunks/index.56858f4e.js.map +0 -1
- package/dist/chunks/index.f0f8ed98.js.map +0 -1
- package/dist/chunks/listbox-option-tag.8d6cccac.js.map +0 -1
- package/dist/chunks/listbox.116ed0c1.js.map +0 -1
- package/dist/chunks/loading-button.1c201f87.js +0 -84
- package/dist/chunks/loading-button.1c201f87.js.map +0 -1
- package/dist/chunks/tooltip.2aff4fa6.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,15 +1,14 @@
|
|
|
1
|
-
import { computed as r, defineComponent as
|
|
2
|
-
import { B as
|
|
1
|
+
import { computed as r, defineComponent as k, ref as C, onMounted as de, toRef as _e, watch as be } from "vue";
|
|
2
|
+
import { B as $ } from "./index.45295dd3.js";
|
|
3
3
|
import { BentoLoadingIndicator as ve } from "../loading-indicator.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { B as h, a as U, d as ge } from "./debounce.f8d92e44.js";
|
|
4
|
+
import { u as F } from "./i18n.155748d6.js";
|
|
5
|
+
import { B as h, a as G, d as me } from "./debounce.f8d92e44.js";
|
|
7
6
|
import { n as R } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
8
|
-
import { B as
|
|
9
|
-
import { C as
|
|
10
|
-
import { B as
|
|
7
|
+
import { B as U } from "./checkbox.c7d791ed.js";
|
|
8
|
+
import { C as fe, a as ge } from "./chevron-up.674ec2e5.js";
|
|
9
|
+
import { B as pe, a as Y } from "./loading-button.429c8416.js";
|
|
11
10
|
import "../assets/listbox.css";
|
|
12
|
-
const
|
|
11
|
+
const K = (t, e, l, s) => {
|
|
13
12
|
const n = r(
|
|
14
13
|
() => {
|
|
15
14
|
var u, d;
|
|
@@ -27,8 +26,8 @@ const W = (t, e, l, s) => {
|
|
|
27
26
|
}
|
|
28
27
|
};
|
|
29
28
|
};
|
|
30
|
-
var o = /* @__PURE__ */ ((t) => (t.SELECT = "select", t.SHOW_MORE = "show-more", t.ESCAPE = "escape-pressed", t.CLICK = "click", t.ENTER = "enter-pressed", t.SPACE = "space-pressed", t.TAB = "tab-pressed", t.CLOSE_DROPDOWN = "close-dropdown", t))(o || {}),
|
|
31
|
-
const
|
|
29
|
+
var o = /* @__PURE__ */ ((t) => (t.SELECT = "select", t.SHOW_MORE = "show-more", t.ESCAPE = "escape-pressed", t.CLICK = "click", t.ENTER = "enter-pressed", t.SPACE = "space-pressed", t.TAB = "tab-pressed", t.CLOSE_DROPDOWN = "close-dropdown", t))(o || {}), D = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "automatic", t.BUTTON = "button", t.NONE = "none", t))(D || {});
|
|
30
|
+
const Ee = k({
|
|
32
31
|
name: "bento-listbox-option",
|
|
33
32
|
props: {
|
|
34
33
|
/**
|
|
@@ -56,13 +55,13 @@ const xe = N({
|
|
|
56
55
|
onClick: (c) => {
|
|
57
56
|
e(o.CLICK, c);
|
|
58
57
|
},
|
|
59
|
-
onOptionSelected: (c,
|
|
60
|
-
e(c,
|
|
58
|
+
onOptionSelected: (c, v) => {
|
|
59
|
+
e(c, v);
|
|
61
60
|
}
|
|
62
61
|
};
|
|
63
62
|
}
|
|
64
63
|
});
|
|
65
|
-
var
|
|
64
|
+
var xe = function() {
|
|
66
65
|
var e = this, l = e._self._c;
|
|
67
66
|
return e._self._setupProxy, l("label", e._b({ staticClass: "b-listbox-option", class: e.conditionalClasses, attrs: { role: "option" }, on: { click: e.onClick, keydown: [function(s) {
|
|
68
67
|
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, s);
|
|
@@ -71,42 +70,42 @@ var Se = function() {
|
|
|
71
70
|
}, function(s) {
|
|
72
71
|
return !s.type.indexOf("key") && e._k(s.keyCode, "tab", 9, s.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, s);
|
|
73
72
|
}] } }, "label", e.$attrs, !1), [e._t("default")], 2);
|
|
74
|
-
},
|
|
73
|
+
}, ye = [], Se = /* @__PURE__ */ R(
|
|
74
|
+
Ee,
|
|
75
75
|
xe,
|
|
76
|
-
|
|
77
|
-
Ce,
|
|
76
|
+
ye,
|
|
78
77
|
!1,
|
|
79
78
|
null,
|
|
80
79
|
"d7fb415c",
|
|
81
80
|
null,
|
|
82
81
|
null
|
|
83
82
|
);
|
|
84
|
-
const
|
|
85
|
-
let
|
|
86
|
-
const
|
|
83
|
+
const P = Se.exports;
|
|
84
|
+
let V = 0;
|
|
85
|
+
const Ce = {
|
|
87
86
|
beforeCreate() {
|
|
88
|
-
this.uuid =
|
|
87
|
+
this.uuid = V.toString(), V += 1;
|
|
89
88
|
}
|
|
90
89
|
};
|
|
91
|
-
var
|
|
90
|
+
var he = function() {
|
|
92
91
|
var e = this, l = e._self._c;
|
|
93
92
|
return l("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M14.5303 4.53033C14.8232 4.23744 14.8232 3.76256 14.5303 3.46967C14.2374 3.17678 13.7626 3.17678 13.4697 3.46967L6 10.9393L2.53033 7.46967C2.23744 7.17678 1.76256 7.17678 1.46967 7.46967C1.17678 7.76256 1.17678 8.23744 1.46967 8.53033L5.46967 12.5303C5.50628 12.5669 5.54574 12.599 5.58732 12.6264C5.87844 12.8186 6.27405 12.7866 6.53033 12.5303L14.5303 4.53033Z", "clip-rule": "evenodd" } })]);
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
}, Le = [], Oe = /* @__PURE__ */ R(
|
|
94
|
+
Ce,
|
|
95
|
+
he,
|
|
96
|
+
Le,
|
|
98
97
|
!1,
|
|
99
98
|
null,
|
|
100
99
|
"4687fbd0",
|
|
101
100
|
null,
|
|
102
101
|
null
|
|
103
102
|
);
|
|
104
|
-
const
|
|
103
|
+
const Te = Oe.exports, Ae = k({
|
|
105
104
|
name: "bento-listbox-single-select-option",
|
|
106
105
|
components: {
|
|
107
|
-
BentoListboxOption:
|
|
108
|
-
BentoTypography:
|
|
109
|
-
CheckmarkIcon:
|
|
106
|
+
BentoListboxOption: P,
|
|
107
|
+
BentoTypography: $,
|
|
108
|
+
CheckmarkIcon: Te
|
|
110
109
|
},
|
|
111
110
|
props: {
|
|
112
111
|
/**
|
|
@@ -128,8 +127,8 @@ const Be = Le.exports, Ie = N({
|
|
|
128
127
|
},
|
|
129
128
|
emits: [o.ENTER, o.SELECT, o.SPACE, o.TAB],
|
|
130
129
|
setup(t, { emit: e }) {
|
|
131
|
-
const l = (
|
|
132
|
-
t.disabled || e(
|
|
130
|
+
const l = (v) => {
|
|
131
|
+
t.disabled || e(v, t.option.value);
|
|
133
132
|
}, s = r(() => t.disabled ? !0 : null), n = r(() => t.selected ? !0 : null), c = r(() => t.disabled ? -1 : 0);
|
|
134
133
|
return {
|
|
135
134
|
// Values
|
|
@@ -137,14 +136,13 @@ const Be = Le.exports, Ie = N({
|
|
|
137
136
|
ariaSelected: n,
|
|
138
137
|
tabIndex: c,
|
|
139
138
|
// Enums
|
|
140
|
-
BentoTypographyElement: $,
|
|
141
139
|
BentoListboxEvent: o,
|
|
142
140
|
// Events
|
|
143
141
|
onOptionSelected: l
|
|
144
142
|
};
|
|
145
143
|
}
|
|
146
144
|
});
|
|
147
|
-
var
|
|
145
|
+
var Ie = function() {
|
|
148
146
|
var e = this, l = e._self._c;
|
|
149
147
|
return e._self._setupProxy, l("bento-listbox-option", { staticClass: "b-listbox-single-select-option", attrs: { disabled: e.disabled, selected: e.selected, "aria-selected": e.ariaSelected, "aria-disabled": e.ariaDisabled, tabindex: e.tabIndex }, on: e._d({ click: function(s) {
|
|
150
148
|
return e.onOptionSelected(e.BentoListboxEvent.SELECT);
|
|
@@ -155,25 +153,25 @@ var Re = function() {
|
|
|
155
153
|
}, e.BentoListboxEvent.TAB, function(s) {
|
|
156
154
|
return e.onOptionSelected(e.BentoListboxEvent.TAB);
|
|
157
155
|
}]) }, [e._t("default", function() {
|
|
158
|
-
return [l("span", { staticClass: "b-listbox-single-select-option__text" }, [l("bento-typography", { attrs: { el:
|
|
156
|
+
return [l("span", { staticClass: "b-listbox-single-select-option__text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.option.label))]), e.option.description ? l("bento-typography", { staticClass: "b-listbox-single-select-option__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.option.description) + " ")]) : e._e()], 1)];
|
|
159
157
|
}, null, e.option), l("span", { staticClass: "b-listbox-single-select-option__check-icon" }, [l("checkmark-icon", { directives: [{ name: "show", rawName: "v-show", value: e.selected, expression: "selected" }], attrs: { "svg-title": "selected" } })], 1)], 2);
|
|
160
|
-
},
|
|
158
|
+
}, Be = [], Re = /* @__PURE__ */ R(
|
|
159
|
+
Ae,
|
|
161
160
|
Ie,
|
|
162
|
-
|
|
163
|
-
ke,
|
|
161
|
+
Be,
|
|
164
162
|
!1,
|
|
165
163
|
null,
|
|
166
|
-
"
|
|
164
|
+
"092ed5ee",
|
|
167
165
|
null,
|
|
168
166
|
null
|
|
169
167
|
);
|
|
170
|
-
const
|
|
168
|
+
const ke = Re.exports, W = ({ items: t, isOptionDisabled: e }, l) => {
|
|
171
169
|
const s = r(() => t.value.length - 1), n = C(0);
|
|
172
|
-
|
|
173
|
-
e && (n.value = t.value.findIndex((
|
|
170
|
+
de(() => {
|
|
171
|
+
e && (n.value = t.value.findIndex((m) => !e(m)));
|
|
174
172
|
});
|
|
175
|
-
const c = (
|
|
176
|
-
switch (
|
|
173
|
+
const c = (m) => !e || !!e && e(t.value[m]), v = (m) => !e || !!e && !e(t.value[m]), u = (m) => {
|
|
174
|
+
switch (m) {
|
|
177
175
|
case "increase":
|
|
178
176
|
n.value += 1;
|
|
179
177
|
break;
|
|
@@ -181,27 +179,27 @@ const De = Ne.exports, q = ({ items: t, isOptionDisabled: e }, l) => {
|
|
|
181
179
|
n.value -= 1;
|
|
182
180
|
break;
|
|
183
181
|
}
|
|
184
|
-
}, d = ({ edgeCaseItem:
|
|
185
|
-
n.value !==
|
|
182
|
+
}, d = ({ edgeCaseItem: m, isItemBeforeEdgeCaseItem: O }, T, L) => {
|
|
183
|
+
n.value !== m && (O ? v(m) && u(L) : (u(L), c(n.value) && T()), l(n.value));
|
|
186
184
|
}, _ = () => {
|
|
187
|
-
const
|
|
185
|
+
const m = n.value === s.value - 2;
|
|
188
186
|
d(
|
|
189
187
|
{
|
|
190
|
-
isItemBeforeEdgeCaseItem:
|
|
188
|
+
isItemBeforeEdgeCaseItem: m,
|
|
191
189
|
edgeCaseItem: s.value
|
|
192
190
|
},
|
|
193
191
|
_,
|
|
194
192
|
"increase"
|
|
195
193
|
/* INCREASE */
|
|
196
194
|
);
|
|
197
|
-
},
|
|
198
|
-
const
|
|
195
|
+
}, x = () => {
|
|
196
|
+
const m = n.value === 1;
|
|
199
197
|
d(
|
|
200
198
|
{
|
|
201
199
|
edgeCaseItem: 0,
|
|
202
|
-
isItemBeforeEdgeCaseItem:
|
|
200
|
+
isItemBeforeEdgeCaseItem: m
|
|
203
201
|
},
|
|
204
|
-
|
|
202
|
+
x,
|
|
205
203
|
"decrease"
|
|
206
204
|
/* DECREASE */
|
|
207
205
|
);
|
|
@@ -211,17 +209,17 @@ const De = Ne.exports, q = ({ items: t, isOptionDisabled: e }, l) => {
|
|
|
211
209
|
n.value = 0, c(n.value) ? _() : l(n.value);
|
|
212
210
|
},
|
|
213
211
|
moveToLastElement: () => {
|
|
214
|
-
n.value = s.value, c(n.value) ?
|
|
212
|
+
n.value = s.value, c(n.value) ? x() : l(n.value);
|
|
215
213
|
},
|
|
216
214
|
moveToNextElement: _,
|
|
217
|
-
moveToPreviousElement:
|
|
215
|
+
moveToPreviousElement: x
|
|
218
216
|
};
|
|
219
|
-
},
|
|
217
|
+
}, De = k({
|
|
220
218
|
name: "bento-listbox-single-select",
|
|
221
219
|
components: {
|
|
222
|
-
BentoListboxSingleSelectOption:
|
|
220
|
+
BentoListboxSingleSelectOption: ke
|
|
223
221
|
},
|
|
224
|
-
directives: { BentoKeyboardNavigationDirective:
|
|
222
|
+
directives: { BentoKeyboardNavigationDirective: G },
|
|
225
223
|
inheritAttrs: !1,
|
|
226
224
|
props: {
|
|
227
225
|
/**
|
|
@@ -260,17 +258,17 @@ const De = Ne.exports, q = ({ items: t, isOptionDisabled: e }, l) => {
|
|
|
260
258
|
},
|
|
261
259
|
emits: [o.SELECT, o.ENTER, o.SPACE, o.TAB],
|
|
262
260
|
setup(t, { emit: e, slots: l }) {
|
|
263
|
-
const s = C([]), n = (
|
|
264
|
-
e(
|
|
265
|
-
}, c = (
|
|
261
|
+
const s = C([]), n = (y) => (m) => {
|
|
262
|
+
e(y, m);
|
|
263
|
+
}, c = (y) => s.value[y].$el.focus(), { moveToNextElement: v, moveToPreviousElement: u, moveToFirstElement: d, moveToLastElement: _ } = W(
|
|
266
264
|
{
|
|
267
|
-
items:
|
|
265
|
+
items: _e(t, "items"),
|
|
268
266
|
isOptionDisabled: t.isOptionDisabled
|
|
269
267
|
},
|
|
270
268
|
c
|
|
271
|
-
),
|
|
269
|
+
), x = {
|
|
272
270
|
[h.ARROW_UP]: u,
|
|
273
|
-
[h.ARROW_DOWN]:
|
|
271
|
+
[h.ARROW_DOWN]: v,
|
|
274
272
|
[h.HOME]: d,
|
|
275
273
|
[h.END]: _
|
|
276
274
|
}, E = {
|
|
@@ -288,46 +286,46 @@ const De = Ne.exports, q = ({ items: t, isOptionDisabled: e }, l) => {
|
|
|
288
286
|
// Methods
|
|
289
287
|
onOptionSelected: n,
|
|
290
288
|
// Keyboard navigation
|
|
291
|
-
listboxListeners:
|
|
289
|
+
listboxListeners: x,
|
|
292
290
|
listboxOptionListeners: E
|
|
293
291
|
};
|
|
294
292
|
}
|
|
295
293
|
});
|
|
296
|
-
var
|
|
294
|
+
var Ne = function() {
|
|
297
295
|
var e = this, l = e._self._c;
|
|
298
296
|
return e._self._setupProxy, l("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }] }, e.listboxListeners), e._l(e.items, function(s) {
|
|
299
297
|
return l("bento-listbox-single-select-option", e._g({ key: s.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: s, disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, selected: s.value === e.selectedValue }, scopedSlots: e._u([e._l(e.slots, function(n, c) {
|
|
300
|
-
return { key: c, fn: function(
|
|
301
|
-
return [e._t(c, null, null,
|
|
298
|
+
return { key: c, fn: function(v) {
|
|
299
|
+
return [e._t(c, null, null, v)];
|
|
302
300
|
} };
|
|
303
301
|
})], null, !0) }, e.listboxOptionListeners));
|
|
304
302
|
}), 1);
|
|
305
|
-
},
|
|
306
|
-
|
|
303
|
+
}, $e = [], Pe = /* @__PURE__ */ R(
|
|
304
|
+
De,
|
|
305
|
+
Ne,
|
|
307
306
|
$e,
|
|
308
|
-
we,
|
|
309
307
|
!1,
|
|
310
308
|
null,
|
|
311
309
|
null,
|
|
312
310
|
null,
|
|
313
311
|
null
|
|
314
312
|
);
|
|
315
|
-
const
|
|
316
|
-
var
|
|
317
|
-
const
|
|
313
|
+
const we = Pe.exports;
|
|
314
|
+
var q = /* @__PURE__ */ ((t) => (t.DISABLED = "disabled", t))(q || {}), N = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.UNSELECT_CATEGORY = "unselect-category", t))(N || {});
|
|
315
|
+
const Me = {
|
|
318
316
|
"en-US": {
|
|
319
317
|
categoryClosed: "{category} closed",
|
|
320
318
|
categoryOpened: "{category} opened"
|
|
321
319
|
}
|
|
322
|
-
},
|
|
323
|
-
i18n: { messages:
|
|
320
|
+
}, Fe = k({
|
|
321
|
+
i18n: { messages: Me },
|
|
324
322
|
name: "bento-listbox-multi-select-category",
|
|
325
323
|
components: {
|
|
326
|
-
BentoCheckbox:
|
|
327
|
-
BentoTypography:
|
|
328
|
-
BentoListboxOption:
|
|
329
|
-
ChevronDownIcon:
|
|
330
|
-
ChevronUpIcon:
|
|
324
|
+
BentoCheckbox: U,
|
|
325
|
+
BentoTypography: $,
|
|
326
|
+
BentoListboxOption: P,
|
|
327
|
+
ChevronDownIcon: fe,
|
|
328
|
+
ChevronUpIcon: ge
|
|
331
329
|
},
|
|
332
330
|
props: {
|
|
333
331
|
/**
|
|
@@ -364,24 +362,24 @@ const Ge = {
|
|
|
364
362
|
default: () => []
|
|
365
363
|
}
|
|
366
364
|
},
|
|
367
|
-
emits: [
|
|
365
|
+
emits: [N.SELECT_CATEGORY, N.UNSELECT_CATEGORY],
|
|
368
366
|
setup(t, { emit: e }) {
|
|
369
|
-
const l = C(!1), { t: s } =
|
|
367
|
+
const l = C(!1), { t: s } = F(), n = (f) => t.isOptionDisabled ? t.isOptionDisabled(f) : !1, c = r(
|
|
370
368
|
() => t.category.items.every((f) => n(f))
|
|
371
|
-
),
|
|
372
|
-
[`b-listbox-multi-select-category--${
|
|
369
|
+
), v = r(() => ({
|
|
370
|
+
[`b-listbox-multi-select-category--${q.DISABLED}`]: c.value
|
|
373
371
|
})), u = (f) => {
|
|
374
372
|
f.preventDefault(), l.value = !l.value;
|
|
375
373
|
}, d = (f) => {
|
|
376
|
-
var
|
|
377
|
-
const S = n(f), p = ((
|
|
374
|
+
var A;
|
|
375
|
+
const S = n(f), p = ((A = t.selectedItemsList) == null ? void 0 : A.includes(f.value)) || !1;
|
|
378
376
|
return { isDisabled: S, isPreSelected: p };
|
|
379
377
|
}, _ = r(
|
|
380
378
|
() => t.category.items.filter((f) => {
|
|
381
379
|
const { isDisabled: S, isPreSelected: p } = d(f);
|
|
382
380
|
return S && p || !S;
|
|
383
381
|
})
|
|
384
|
-
),
|
|
382
|
+
), x = r(
|
|
385
383
|
() => {
|
|
386
384
|
var f;
|
|
387
385
|
return (f = _.value) == null ? void 0 : f.filter(
|
|
@@ -394,56 +392,54 @@ const Ge = {
|
|
|
394
392
|
), E = r(() => {
|
|
395
393
|
const f = l.value ? "categoryOpened" : "categoryClosed";
|
|
396
394
|
return s(f, { category: t.category.label });
|
|
397
|
-
}),
|
|
398
|
-
e(
|
|
399
|
-
},
|
|
400
|
-
e(
|
|
401
|
-
}, { isAllSelected:
|
|
402
|
-
y,
|
|
403
|
-
_,
|
|
395
|
+
}), y = () => {
|
|
396
|
+
e(N.SELECT_CATEGORY);
|
|
397
|
+
}, m = () => {
|
|
398
|
+
e(N.UNSELECT_CATEGORY);
|
|
399
|
+
}, { isAllSelected: O, isIndeterminate: T, toggleSelectAll: L } = K(
|
|
404
400
|
x,
|
|
405
|
-
|
|
401
|
+
_,
|
|
402
|
+
y,
|
|
403
|
+
m
|
|
406
404
|
);
|
|
407
405
|
return {
|
|
408
406
|
// Values
|
|
409
407
|
chevronTitle: E,
|
|
410
|
-
conditionalClass:
|
|
408
|
+
conditionalClass: v,
|
|
411
409
|
hasAllPropsDisabled: c,
|
|
412
410
|
isOpen: l,
|
|
413
|
-
isAllSelected:
|
|
414
|
-
isIndeterminate:
|
|
415
|
-
// Enums
|
|
416
|
-
BentoTypographyElement: $,
|
|
411
|
+
isAllSelected: O,
|
|
412
|
+
isIndeterminate: T,
|
|
417
413
|
// Methods
|
|
418
414
|
toggleOpen: u,
|
|
419
|
-
toggleSelectAll:
|
|
415
|
+
toggleSelectAll: L
|
|
420
416
|
};
|
|
421
417
|
}
|
|
422
418
|
});
|
|
423
|
-
var
|
|
419
|
+
var Ge = function() {
|
|
424
420
|
var e = this, l = e._self._c;
|
|
425
|
-
return e._self._setupProxy, l("div", [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass }, [l("bento-checkbox", { attrs: { "model-value": e.isAllSelected, indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, "aria-label": e.category.label, value: e.category.value }, on: { "update:model-value": e.toggleSelectAll } }), l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { el:
|
|
421
|
+
return e._self._setupProxy, l("div", [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass }, [l("bento-checkbox", { attrs: { "model-value": e.isAllSelected, indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, "aria-label": e.category.label, value: e.category.value }, on: { "update:model-value": e.toggleSelectAll } }), l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { el: "span" } }, [e._v(" " + e._s(e.category.label) + " ")]), l("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "data-testid": "toggle-listbox" }, on: { "!click": function(s) {
|
|
426
422
|
return e.toggleOpen.apply(null, arguments);
|
|
427
423
|
} } }, [e.isOpen ? l("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : l("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), l("div", { directives: [{ name: "show", rawName: "v-show", value: e.isOpen, expression: "isOpen" }] }, [e._t("default")], 2)], 1);
|
|
428
|
-
},
|
|
424
|
+
}, Ue = [], Ye = /* @__PURE__ */ R(
|
|
425
|
+
Fe,
|
|
426
|
+
Ge,
|
|
429
427
|
Ue,
|
|
430
|
-
Ye,
|
|
431
|
-
Ve,
|
|
432
428
|
!1,
|
|
433
429
|
null,
|
|
434
|
-
"
|
|
430
|
+
"360ce3ac",
|
|
435
431
|
null,
|
|
436
432
|
null
|
|
437
433
|
);
|
|
438
|
-
const
|
|
439
|
-
var
|
|
440
|
-
const
|
|
434
|
+
const Ve = Ye.exports;
|
|
435
|
+
var B = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", t.UNSELECT_CATEGORY = "unselect-category", t))(B || {});
|
|
436
|
+
const He = k({
|
|
441
437
|
name: "listbox-multi-select-options",
|
|
442
438
|
components: {
|
|
443
|
-
BentoCheckbox:
|
|
444
|
-
BentoListboxOption:
|
|
445
|
-
BentoTypography:
|
|
446
|
-
ListboxMultiSelectCategory:
|
|
439
|
+
BentoCheckbox: U,
|
|
440
|
+
BentoListboxOption: P,
|
|
441
|
+
BentoTypography: $,
|
|
442
|
+
ListboxMultiSelectCategory: Ve
|
|
447
443
|
},
|
|
448
444
|
props: {
|
|
449
445
|
/**
|
|
@@ -497,19 +493,19 @@ const We = N({
|
|
|
497
493
|
}
|
|
498
494
|
},
|
|
499
495
|
emits: [
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
496
|
+
B.TOGGLE_CHECKBOX_SELECTION,
|
|
497
|
+
B.SELECT_CATEGORY,
|
|
498
|
+
B.UNSELECT_CATEGORY
|
|
503
499
|
],
|
|
504
500
|
setup(t, { emit: e }) {
|
|
505
501
|
const l = (d) => {
|
|
506
|
-
e(
|
|
502
|
+
e(B.TOGGLE_CHECKBOX_SELECTION, d);
|
|
507
503
|
}, s = (d) => !!d.items, n = (d) => {
|
|
508
504
|
const _ = t.isMultiLevel && t.searching;
|
|
509
505
|
return d.description && (!t.isMultiLevel || _);
|
|
510
|
-
}, c = (d) => d.items ? !!d.items.find((_) => t.selectedItemsList.includes(_.value)) : t.selectedItemsList.includes(d.value),
|
|
506
|
+
}, c = (d) => d.items ? !!d.items.find((_) => t.selectedItemsList.includes(_.value)) : t.selectedItemsList.includes(d.value), v = (d, _) => {
|
|
511
507
|
if (s(_))
|
|
512
|
-
return e(d ?
|
|
508
|
+
return e(d ? B.SELECT_CATEGORY : B.UNSELECT_CATEGORY, _);
|
|
513
509
|
l(_.value);
|
|
514
510
|
};
|
|
515
511
|
return {
|
|
@@ -522,19 +518,18 @@ const We = N({
|
|
|
522
518
|
isOptionSelected: c,
|
|
523
519
|
shouldShowDescription: n,
|
|
524
520
|
toggleCheckboxSelection: l,
|
|
525
|
-
selectSearch:
|
|
521
|
+
selectSearch: v,
|
|
526
522
|
// Enums
|
|
527
523
|
BentoListboxEvent: o,
|
|
528
|
-
|
|
529
|
-
ListboxMultiSelectOptionsEvent: I
|
|
524
|
+
ListboxMultiSelectOptionsEvent: B
|
|
530
525
|
};
|
|
531
526
|
}
|
|
532
527
|
});
|
|
533
|
-
var
|
|
528
|
+
var Ke = function() {
|
|
534
529
|
var e = this, l = e._self._c;
|
|
535
530
|
return e._self._setupProxy, l("div", e._l(e.items, function(s) {
|
|
536
531
|
return l("div", { key: `selected-${s.value}` }, [e.searching && e.isMultiLevel ? [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null } }, [l("bento-checkbox", { attrs: { "model-value": e.isOptionSelected(s), "aria-label": s.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, value: s.value }, on: { "update:model-value": (n) => e.selectSearch(n, s) } }), e._t("default", function() {
|
|
537
|
-
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el:
|
|
532
|
+
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(s.label))]), e.shouldShowDescription(s) ? l("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(s.description) + " ")]) : e._e()], 1)];
|
|
538
533
|
}, null, s)], 2)] : [s.items ? [l("listbox-multi-select-category", { attrs: { category: s, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList }, on: { "select-category": function(n) {
|
|
539
534
|
return e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, s);
|
|
540
535
|
}, "unselect-category": function(n) {
|
|
@@ -542,35 +537,35 @@ var qe = function() {
|
|
|
542
537
|
} } }, [l("listbox-multi-select-options", { attrs: { "category-items": "", items: s.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": e.isMultiLevel, "selected-items-list": e.selectedItemsList, searching: e.searching }, on: { "toggle-checkbox-selection": (n) => e.toggleCheckboxSelection(n) } })], 1)] : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null } }, [l("bento-checkbox", { attrs: { "model-value": e.selectedItemsList, "aria-label": s.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, value: s.value }, on: { "update:model-value": function(n) {
|
|
543
538
|
return e.toggleCheckboxSelection(s.value);
|
|
544
539
|
} } }), e._t("default", function() {
|
|
545
|
-
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el:
|
|
540
|
+
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(s.label))]), e.shouldShowDescription(s) ? l("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(s.description) + " ")]) : e._e()], 1)];
|
|
546
541
|
}, null, s)], 2)]], 2);
|
|
547
542
|
}), 0);
|
|
548
|
-
},
|
|
543
|
+
}, We = [], qe = /* @__PURE__ */ R(
|
|
544
|
+
He,
|
|
545
|
+
Ke,
|
|
549
546
|
We,
|
|
550
|
-
qe,
|
|
551
|
-
ze,
|
|
552
547
|
!1,
|
|
553
548
|
null,
|
|
554
|
-
"
|
|
549
|
+
"23f75bdb",
|
|
555
550
|
null,
|
|
556
551
|
null
|
|
557
552
|
);
|
|
558
|
-
const
|
|
553
|
+
const ze = qe.exports, je = {
|
|
559
554
|
"en-US": {
|
|
560
555
|
allSelected: "All selected ({total})",
|
|
561
556
|
numberOfTotalSelected: "{number} of {total} selected",
|
|
562
557
|
selectAll: "Select all ({total})"
|
|
563
558
|
}
|
|
564
|
-
},
|
|
565
|
-
i18n: { messages:
|
|
559
|
+
}, Xe = k({
|
|
560
|
+
i18n: { messages: je },
|
|
566
561
|
name: "bento-listbox-multi-select",
|
|
567
562
|
components: {
|
|
568
|
-
BentoCheckbox:
|
|
569
|
-
BentoListboxOption:
|
|
570
|
-
BentoTypography:
|
|
571
|
-
ListboxMultiSelectOptions:
|
|
563
|
+
BentoCheckbox: U,
|
|
564
|
+
BentoListboxOption: P,
|
|
565
|
+
BentoTypography: $,
|
|
566
|
+
ListboxMultiSelectOptions: ze
|
|
572
567
|
},
|
|
573
|
-
directives: { BentoKeyboardNavigationDirective:
|
|
568
|
+
directives: { BentoKeyboardNavigationDirective: G },
|
|
574
569
|
props: {
|
|
575
570
|
/**
|
|
576
571
|
* Function that allows the options to be disabled
|
|
@@ -614,8 +609,8 @@ const Xe = je.exports, Ze = {
|
|
|
614
609
|
},
|
|
615
610
|
emits: [o.SELECT],
|
|
616
611
|
setup(t, { emit: e, slots: l }) {
|
|
617
|
-
const { t: s } =
|
|
618
|
-
|
|
612
|
+
const { t: s } = F(), n = C(null), c = C(null), v = C(null), u = C();
|
|
613
|
+
be(
|
|
619
614
|
() => t.selectedValues,
|
|
620
615
|
() => {
|
|
621
616
|
u.value = [...t.selectedValues ?? []];
|
|
@@ -624,136 +619,135 @@ const Xe = je.exports, Ze = {
|
|
|
624
619
|
immediate: !0
|
|
625
620
|
}
|
|
626
621
|
);
|
|
627
|
-
const d = r(() => !!t.items.find(({ items: i }) => !!i)), _ = r(() => d.value ? t.items.reduce((i, a) => (a.items ? i.push(...a.items.flat()) : i.push(a), i), []) : t.items),
|
|
622
|
+
const d = r(() => !!t.items.find(({ items: i }) => !!i)), _ = r(() => d.value ? t.items.reduce((i, a) => (a.items ? i.push(...a.items.flat()) : i.push(a), i), []) : t.items), x = (i) => {
|
|
628
623
|
var b;
|
|
629
624
|
const a = t.isOptionDisabled(i), g = ((b = u.value) == null ? void 0 : b.includes(i.value)) || !1;
|
|
630
625
|
return { isDisabled: a, isPreSelected: g };
|
|
631
626
|
}, E = r(
|
|
632
627
|
() => t.searching && d ? t.items : _.value.filter((i) => {
|
|
633
|
-
const { isDisabled: a, isPreSelected: g } =
|
|
628
|
+
const { isDisabled: a, isPreSelected: g } = x(i);
|
|
634
629
|
return a && g || !a;
|
|
635
630
|
})
|
|
636
|
-
),
|
|
631
|
+
), y = r(
|
|
637
632
|
() => {
|
|
638
633
|
var i;
|
|
639
634
|
return (i = E.value) == null ? void 0 : i.filter((a) => {
|
|
640
635
|
var g;
|
|
641
636
|
return a.items && d.value && t.searching ? a.items.filter(
|
|
642
|
-
(
|
|
643
|
-
|
|
637
|
+
(I) => (t.selectedValues ?? []).includes(
|
|
638
|
+
I.value
|
|
644
639
|
)
|
|
645
640
|
).length === a.items.length : (g = u.value) == null ? void 0 : g.includes(a.value);
|
|
646
641
|
});
|
|
647
642
|
}
|
|
648
|
-
),
|
|
643
|
+
), m = () => d.value && !t.searching ? E.value.length : t.items.length, O = r(() => {
|
|
649
644
|
var g;
|
|
650
|
-
const i =
|
|
645
|
+
const i = m(), a = ((g = y.value) == null ? void 0 : g.length) || 0;
|
|
651
646
|
return a === 0 ? s("selectAll", { total: i }) : a === i ? s("allSelected", { total: i }) : s("numberOfTotalSelected", { number: a, total: i });
|
|
652
|
-
}),
|
|
647
|
+
}), T = (i) => {
|
|
653
648
|
const a = (b) => {
|
|
654
|
-
const { isDisabled:
|
|
655
|
-
return
|
|
649
|
+
const { isDisabled: I, isPreSelected: M } = x(b);
|
|
650
|
+
return I && M || !I;
|
|
656
651
|
}, g = i.filter(a).filter((b) => !u.value.includes(b.value)).map(({ value: b }) => b);
|
|
657
652
|
u.value = [...u.value, ...g], e(o.SELECT, u.value);
|
|
658
|
-
},
|
|
653
|
+
}, L = (i) => {
|
|
659
654
|
const a = (b) => {
|
|
660
|
-
const { isDisabled:
|
|
661
|
-
return !(
|
|
655
|
+
const { isDisabled: I, isPreSelected: M } = x(b);
|
|
656
|
+
return !(I && M);
|
|
662
657
|
}, g = i.filter(a).map(({ value: b }) => b);
|
|
663
658
|
u.value = u.value.filter((b) => !(g != null && g.includes(b))), e(o.SELECT, u.value);
|
|
664
659
|
}, f = () => {
|
|
665
|
-
O(_.value);
|
|
666
|
-
}, S = () => {
|
|
667
660
|
T(_.value);
|
|
668
|
-
},
|
|
669
|
-
|
|
661
|
+
}, S = () => {
|
|
662
|
+
L(_.value);
|
|
663
|
+
}, { isAllSelected: p, isIndeterminate: A, toggleSelectAll: z } = K(
|
|
664
|
+
y,
|
|
670
665
|
E,
|
|
671
666
|
f,
|
|
672
667
|
S
|
|
673
|
-
),
|
|
674
|
-
O(i.items);
|
|
675
|
-
}, Z = (i) => {
|
|
668
|
+
), j = (i) => {
|
|
676
669
|
T(i.items);
|
|
677
|
-
},
|
|
670
|
+
}, X = (i) => {
|
|
671
|
+
L(i.items);
|
|
672
|
+
}, Z = (i, a) => {
|
|
678
673
|
let g = !1;
|
|
679
674
|
u.value = u.value.filter((b) => a === b ? (g = !0, !1) : !0), g || u.value.push(a), e(i, u.value);
|
|
680
|
-
},
|
|
681
|
-
const i = (b) => u.value.includes(b.value), a = (b) => !!b.find((
|
|
675
|
+
}, w = r(() => {
|
|
676
|
+
const i = (b) => u.value.includes(b.value), a = (b) => !!b.find((I) => i(I));
|
|
682
677
|
return t.items.filter((b) => b.items && a(b.items) ? !0 : i(b));
|
|
683
|
-
}),
|
|
678
|
+
}), J = r(() => {
|
|
684
679
|
var i;
|
|
685
|
-
return ((i =
|
|
686
|
-
}),
|
|
680
|
+
return ((i = w.value) == null ? void 0 : i.length) > 0;
|
|
681
|
+
}), Q = r(
|
|
687
682
|
() => {
|
|
688
683
|
var i, a;
|
|
689
|
-
return ((i =
|
|
684
|
+
return ((i = y.value) == null ? void 0 : i.length) === ((a = _.value) == null ? void 0 : a.length);
|
|
690
685
|
}
|
|
691
|
-
),
|
|
686
|
+
), ee = r(
|
|
692
687
|
() => n.value ? [n.value] : []
|
|
693
|
-
),
|
|
688
|
+
), te = r(
|
|
694
689
|
() => {
|
|
695
690
|
var i, a;
|
|
696
691
|
return (a = (i = c.value) == null ? void 0 : i.$children) != null && a.length ? c.value.$children : [];
|
|
697
692
|
}
|
|
698
|
-
),
|
|
693
|
+
), se = r(
|
|
699
694
|
() => {
|
|
700
695
|
var i, a;
|
|
701
|
-
return (a = (i =
|
|
696
|
+
return (a = (i = v.value) == null ? void 0 : i.$children) != null && a.length ? v.value.$children : [];
|
|
702
697
|
}
|
|
703
|
-
),
|
|
704
|
-
|
|
705
|
-
...
|
|
698
|
+
), le = r(() => ({ label: O, value: p })), ne = r(() => [
|
|
699
|
+
le,
|
|
700
|
+
...w.value,
|
|
706
701
|
..._.value
|
|
707
|
-
]),
|
|
702
|
+
]), oe = (i) => {
|
|
708
703
|
[
|
|
704
|
+
...ee.value,
|
|
709
705
|
...te.value,
|
|
710
|
-
...se.value
|
|
711
|
-
...le.value
|
|
706
|
+
...se.value
|
|
712
707
|
][i].$el.focus();
|
|
713
|
-
}, { moveToNextElement:
|
|
708
|
+
}, { moveToNextElement: ie, moveToPreviousElement: ae, moveToFirstElement: ce, moveToLastElement: re } = W(
|
|
714
709
|
{
|
|
715
|
-
items: C(
|
|
710
|
+
items: C(ne),
|
|
716
711
|
isOptionDisabled: t.isOptionDisabled
|
|
717
712
|
},
|
|
718
|
-
|
|
719
|
-
),
|
|
720
|
-
[h.ARROW_UP]:
|
|
721
|
-
[h.ARROW_DOWN]:
|
|
722
|
-
[h.HOME]:
|
|
723
|
-
[h.END]:
|
|
713
|
+
oe
|
|
714
|
+
), ue = {
|
|
715
|
+
[h.ARROW_UP]: ae,
|
|
716
|
+
[h.ARROW_DOWN]: ie,
|
|
717
|
+
[h.HOME]: ce,
|
|
718
|
+
[h.END]: re
|
|
724
719
|
};
|
|
725
720
|
return {
|
|
726
721
|
// Refs
|
|
727
722
|
selectAllListboxItemsRef: n,
|
|
728
723
|
selectedListboxItemsRef: c,
|
|
729
|
-
listboxItemsRef:
|
|
724
|
+
listboxItemsRef: v,
|
|
730
725
|
// Values
|
|
731
726
|
isAllSelected: p,
|
|
732
|
-
isAllItemsIncludingDisabled:
|
|
733
|
-
isAnOptionSelected:
|
|
734
|
-
isIndeterminate:
|
|
727
|
+
isAllItemsIncludingDisabled: Q,
|
|
728
|
+
isAnOptionSelected: J,
|
|
729
|
+
isIndeterminate: A,
|
|
735
730
|
isMultiLevelSelect: d,
|
|
736
731
|
flattenedItemsList: _,
|
|
737
732
|
selectedItemsList: u,
|
|
738
|
-
selectAllCheckboxText:
|
|
739
|
-
selectedOptions:
|
|
733
|
+
selectAllCheckboxText: O,
|
|
734
|
+
selectedOptions: w,
|
|
740
735
|
slots: l,
|
|
741
736
|
// Enums
|
|
742
|
-
BentoTypographyElement: $,
|
|
743
737
|
BentoListboxEvent: o,
|
|
744
738
|
// Methods
|
|
745
|
-
selectAllCategory:
|
|
746
|
-
toggleCheckboxSelection:
|
|
747
|
-
toggleSelectAll:
|
|
748
|
-
unselectAllCategory:
|
|
739
|
+
selectAllCategory: j,
|
|
740
|
+
toggleCheckboxSelection: Z,
|
|
741
|
+
toggleSelectAll: z,
|
|
742
|
+
unselectAllCategory: X,
|
|
749
743
|
// Events
|
|
750
|
-
listboxListeners:
|
|
744
|
+
listboxListeners: ue
|
|
751
745
|
};
|
|
752
746
|
}
|
|
753
747
|
});
|
|
754
|
-
var
|
|
748
|
+
var Ze = function() {
|
|
755
749
|
var e = this, l = e._self._c;
|
|
756
|
-
return e._self._setupProxy, l("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select" }, e.listboxListeners), [l("bento-listbox-option", { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option" }, [l("bento-checkbox", { attrs: { "aria-label": e.selectAllCheckboxText, "model-value": e.isAllSelected, indeterminate: e.isIndeterminate }, on: { "update:model-value": e.toggleSelectAll } }), l("bento-typography", { attrs: { el:
|
|
750
|
+
return e._self._setupProxy, l("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select" }, e.listboxListeners), [l("bento-listbox-option", { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option" }, [l("bento-checkbox", { attrs: { "aria-label": e.selectAllCheckboxText, "model-value": e.isAllSelected, indeterminate: e.isIndeterminate }, on: { "update:model-value": e.toggleSelectAll } }), l("bento-typography", { attrs: { el: "span" } }, [e._v(" " + e._s(e.selectAllCheckboxText) + " ")])], 1), e.isAnOptionSelected ? l("div", [l("hr", { staticClass: "b-listbox-multi-select__divider" }), l("listbox-multi-select-options", { ref: "selectedListboxItemsRef", attrs: { items: e.selectedOptions, "is-option-disabled": e.isOptionDisabled, "is-multi-level": e.isMultiLevelSelect, searching: e.searching, "selected-items-list": e.selectedItemsList }, on: e._d({ "select-category": e.selectAllCategory, "unselect-category": e.unselectAllCategory, "toggle-checkbox-selection": function(s) {
|
|
757
751
|
return e.toggleCheckboxSelection(e.BentoListboxEvent.SELECT, s);
|
|
758
752
|
} }, [e.BentoListboxEvent.SPACE, function(s) {
|
|
759
753
|
return e.toggleCheckboxSelection(e.BentoListboxEvent.SPACE, s);
|
|
@@ -778,32 +772,32 @@ var Qe = function() {
|
|
|
778
772
|
return [e._t(n, null, null, c)];
|
|
779
773
|
} };
|
|
780
774
|
})], null, !0) })], 1)], 1);
|
|
781
|
-
},
|
|
775
|
+
}, Je = [], Qe = /* @__PURE__ */ R(
|
|
776
|
+
Xe,
|
|
777
|
+
Ze,
|
|
782
778
|
Je,
|
|
783
|
-
Qe,
|
|
784
|
-
et,
|
|
785
779
|
!1,
|
|
786
780
|
null,
|
|
787
|
-
"
|
|
781
|
+
"70173dcf",
|
|
788
782
|
null,
|
|
789
783
|
null
|
|
790
784
|
);
|
|
791
|
-
const
|
|
785
|
+
const H = Qe.exports, et = {
|
|
792
786
|
"en-US": {
|
|
793
787
|
showMore: "Show more",
|
|
794
788
|
loading: "Loading"
|
|
795
789
|
}
|
|
796
|
-
},
|
|
790
|
+
}, tt = k({
|
|
797
791
|
name: "bento-listbox",
|
|
798
792
|
components: {
|
|
799
|
-
BentoListboxSingleSelect:
|
|
800
|
-
BentoListboxMultiSelect:
|
|
801
|
-
BentoTypography:
|
|
793
|
+
BentoListboxSingleSelect: we,
|
|
794
|
+
BentoListboxMultiSelect: H,
|
|
795
|
+
BentoTypography: $,
|
|
802
796
|
BentoLoadingIndicator: ve,
|
|
803
|
-
BentoLoadingButton:
|
|
797
|
+
BentoLoadingButton: pe
|
|
804
798
|
},
|
|
805
|
-
directives: { BentoKeyboardNavigationDirective:
|
|
806
|
-
i18n: { messages:
|
|
799
|
+
directives: { BentoKeyboardNavigationDirective: G },
|
|
800
|
+
i18n: { messages: et },
|
|
807
801
|
props: {
|
|
808
802
|
/**
|
|
809
803
|
* Defines a string value that labels an interactive element.
|
|
@@ -852,8 +846,8 @@ const K = tt.exports, st = {
|
|
|
852
846
|
*/
|
|
853
847
|
lazyLoadType: {
|
|
854
848
|
type: String,
|
|
855
|
-
default:
|
|
856
|
-
validator: (t) => Object.values(
|
|
849
|
+
default: D.NONE,
|
|
850
|
+
validator: (t) => Object.values(D).includes(t)
|
|
857
851
|
},
|
|
858
852
|
/**
|
|
859
853
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -869,7 +863,7 @@ const K = tt.exports, st = {
|
|
|
869
863
|
*
|
|
870
864
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
871
865
|
*/
|
|
872
|
-
searching:
|
|
866
|
+
searching: H.props.searching,
|
|
873
867
|
/**
|
|
874
868
|
* The `input` value.
|
|
875
869
|
* Providing an empty string or empty array will select no options.
|
|
@@ -889,26 +883,26 @@ const K = tt.exports, st = {
|
|
|
889
883
|
o.TAB
|
|
890
884
|
],
|
|
891
885
|
setup(t, { emit: e, slots: l }) {
|
|
892
|
-
const { t: s } =
|
|
893
|
-
() =>
|
|
886
|
+
const { t: s } = F(), n = C(null), c = C([]), v = r(() => t.lazyLoadType !== D.AUTOMATIC), u = r(() => t.lazyLoadType === D.AUTOMATIC), d = r(
|
|
887
|
+
() => v.value ? "true" : void 0
|
|
894
888
|
), _ = r(
|
|
895
|
-
() =>
|
|
896
|
-
),
|
|
897
|
-
() =>
|
|
898
|
-
), E = (p) => (
|
|
899
|
-
e(p,
|
|
900
|
-
},
|
|
889
|
+
() => v.value && t.loading ? "true" : "false"
|
|
890
|
+
), x = r(
|
|
891
|
+
() => v.value ? "polite" : void 0
|
|
892
|
+
), E = (p) => (A) => {
|
|
893
|
+
e(p, A);
|
|
894
|
+
}, y = () => {
|
|
901
895
|
e(o.SHOW_MORE);
|
|
902
|
-
},
|
|
903
|
-
const p = n.value,
|
|
904
|
-
t.hasMoreItems &&
|
|
905
|
-
}),
|
|
896
|
+
}, m = me(() => {
|
|
897
|
+
const p = n.value, A = p.scrollTop + p.clientHeight >= p.scrollHeight;
|
|
898
|
+
t.hasMoreItems && A && !t.loading && y();
|
|
899
|
+
}), O = r(() => {
|
|
906
900
|
var p;
|
|
907
901
|
return t.searching && ((p = t.items) == null ? void 0 : p.length) === 0;
|
|
908
|
-
}),
|
|
909
|
-
() => t.lazyLoadType ===
|
|
910
|
-
),
|
|
911
|
-
() => t.loading ?
|
|
902
|
+
}), T = r(
|
|
903
|
+
() => t.lazyLoadType === D.BUTTON && t.hasMoreItems
|
|
904
|
+
), L = r(
|
|
905
|
+
() => t.loading ? Y.LOADING : Y.START
|
|
912
906
|
), f = r(() => t.loading ? s("loading") : s("showMore")), S = {
|
|
913
907
|
[o.SELECT]: E(o.SELECT),
|
|
914
908
|
[o.SPACE]: E(o.SPACE),
|
|
@@ -922,31 +916,28 @@ const K = tt.exports, st = {
|
|
|
922
916
|
// a11y
|
|
923
917
|
ariaAtomic: d,
|
|
924
918
|
ariaBusy: _,
|
|
925
|
-
ariaLive:
|
|
919
|
+
ariaLive: x,
|
|
926
920
|
// Values
|
|
927
921
|
hasAutomaticLazyLoader: u,
|
|
928
|
-
isSearchResultEmpty:
|
|
929
|
-
loadingButtonState:
|
|
922
|
+
isSearchResultEmpty: O,
|
|
923
|
+
loadingButtonState: L,
|
|
930
924
|
slots: l,
|
|
931
|
-
shouldDisplayShowMoreButton:
|
|
925
|
+
shouldDisplayShowMoreButton: T,
|
|
932
926
|
showMoreButtonText: f,
|
|
933
927
|
// Enums
|
|
934
|
-
BentoTypographyElement: $,
|
|
935
|
-
BentoButtonVariant: fe,
|
|
936
|
-
BentoListboxLazyLoadType: k,
|
|
937
928
|
BentoKeyboardNavigationKeyDownEvent: h,
|
|
938
929
|
BentoListboxEvent: o,
|
|
939
930
|
// Methods
|
|
940
931
|
onOptionSelected: E,
|
|
941
|
-
emitShowMoreOnScrollEnd:
|
|
942
|
-
emitShowMore:
|
|
932
|
+
emitShowMoreOnScrollEnd: m,
|
|
933
|
+
emitShowMore: y,
|
|
943
934
|
listboxListeners: S
|
|
944
935
|
};
|
|
945
936
|
}
|
|
946
937
|
});
|
|
947
|
-
var
|
|
938
|
+
var st = function() {
|
|
948
939
|
var e = this, l = e._self._c;
|
|
949
|
-
return e._self._setupProxy, l("div", { directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", attrs: { id: e.id, role: "listbox", tabindex: "-1", "aria-busy": e.ariaBusy, "aria-atomic": e.ariaAtomic, "aria-label": e.ariaLabel, "aria-live": e.ariaLive }, on: { scroll: () => e.hasAutomaticLazyLoader ? e.emitShowMoreOnScrollEnd() : void 0 } }, [e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [l("bento-typography", { attrs: { el:
|
|
940
|
+
return e._self._setupProxy, l("div", { directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", attrs: { id: e.id, role: "listbox", tabindex: "-1", "aria-busy": e.ariaBusy, "aria-atomic": e.ariaAtomic, "aria-label": e.ariaLabel, "aria-live": e.ariaLive }, on: { scroll: () => e.hasAutomaticLazyLoader ? e.emitShowMoreOnScrollEnd() : void 0 } }, [e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [l("bento-listbox-multi-select", e._g({ ref: "listboxItemRef", attrs: { items: e.items, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(s, n) {
|
|
950
941
|
return { key: n, fn: function(c) {
|
|
951
942
|
return [e._t(n, null, null, c)];
|
|
952
943
|
} };
|
|
@@ -954,22 +945,24 @@ var nt = function() {
|
|
|
954
945
|
return { key: n, fn: function(c) {
|
|
955
946
|
return [e._t(n, null, null, c)];
|
|
956
947
|
} };
|
|
957
|
-
})], null, !0) }, e.listboxListeners))], e.shouldDisplayShowMoreButton ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-button", { attrs: { state: e.loadingButtonState, variant:
|
|
958
|
-
|
|
948
|
+
})], null, !0) }, e.listboxListeners))], e.shouldDisplayShowMoreButton ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(s) {
|
|
949
|
+
return e.emitShowMore.apply(null, arguments);
|
|
950
|
+
} } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-indicator")], 1) : e._e()]], 2);
|
|
951
|
+
}, lt = [], nt = /* @__PURE__ */ R(
|
|
952
|
+
tt,
|
|
953
|
+
st,
|
|
959
954
|
lt,
|
|
960
|
-
nt,
|
|
961
|
-
ot,
|
|
962
955
|
!1,
|
|
963
956
|
null,
|
|
964
|
-
"
|
|
957
|
+
"0bc89a2b",
|
|
965
958
|
null,
|
|
966
959
|
null
|
|
967
960
|
);
|
|
968
|
-
const
|
|
961
|
+
const vt = nt.exports;
|
|
969
962
|
export {
|
|
970
|
-
|
|
971
|
-
|
|
963
|
+
vt as B,
|
|
964
|
+
Te as C,
|
|
972
965
|
o as a,
|
|
973
|
-
|
|
966
|
+
D as b
|
|
974
967
|
};
|
|
975
|
-
//# sourceMappingURL=listbox.
|
|
968
|
+
//# sourceMappingURL=listbox.e792d2d6.js.map
|