@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,43 +1,43 @@
|
|
|
1
|
-
import { defineComponent as n, inject as i, computed as
|
|
1
|
+
import { defineComponent as n, inject as i, computed as r } from "vue";
|
|
2
2
|
import { n as a } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
3
|
-
import {
|
|
4
|
-
import { BentoInfoIcon as
|
|
5
|
-
import { B as
|
|
6
|
-
import { C as
|
|
7
|
-
import { S as
|
|
8
|
-
import { b as
|
|
9
|
-
import "../assets/
|
|
3
|
+
import { a as c } from "./button.fb307df3.js";
|
|
4
|
+
import { BentoInfoIcon as l } from "../info-icon.js";
|
|
5
|
+
import { B as _, a as o } from "./index.45295dd3.js";
|
|
6
|
+
import { C as u } from "./copy.ac796536.js";
|
|
7
|
+
import { S as p } from "./search.a8055e95.js";
|
|
8
|
+
import { b as d } from "./tooltip.a47ace87.js";
|
|
9
|
+
import "../assets/index33.css";
|
|
10
10
|
const f = n({
|
|
11
11
|
name: "bento-structured-list"
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var m = function() {
|
|
14
14
|
var t = this, e = t._self._c;
|
|
15
15
|
return t._self._setupProxy, e("dl", { staticClass: "b-structured-list" }, [t._t("default")], 2);
|
|
16
|
-
},
|
|
16
|
+
}, y = [], b = /* @__PURE__ */ a(
|
|
17
17
|
f,
|
|
18
|
+
m,
|
|
18
19
|
y,
|
|
19
|
-
v,
|
|
20
20
|
!1,
|
|
21
21
|
null,
|
|
22
|
-
"
|
|
22
|
+
"94635ffe",
|
|
23
23
|
null,
|
|
24
24
|
null
|
|
25
25
|
);
|
|
26
|
-
const
|
|
26
|
+
const O = b.exports, v = Symbol("structured list condensed style injection key"), h = {
|
|
27
27
|
"en-US": {
|
|
28
28
|
search: "Search"
|
|
29
29
|
}
|
|
30
|
-
},
|
|
31
|
-
i18n: { messages:
|
|
30
|
+
}, C = n({
|
|
31
|
+
i18n: { messages: h },
|
|
32
32
|
name: "bento-structured-list-item",
|
|
33
33
|
components: {
|
|
34
34
|
BentoButton: c,
|
|
35
|
-
BentoInfoIcon:
|
|
36
|
-
BentoTypography:
|
|
37
|
-
Copy:
|
|
38
|
-
SearchIcon:
|
|
35
|
+
BentoInfoIcon: l,
|
|
36
|
+
BentoTypography: _,
|
|
37
|
+
Copy: u,
|
|
38
|
+
SearchIcon: p
|
|
39
39
|
},
|
|
40
|
-
directives: { BentoTooltipDirective:
|
|
40
|
+
directives: { BentoTooltipDirective: d },
|
|
41
41
|
props: {
|
|
42
42
|
/**
|
|
43
43
|
* Label to display for the value
|
|
@@ -76,39 +76,37 @@ const V = b.exports, h = Symbol("structured list condensed style injection key")
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
setup() {
|
|
79
|
-
const s = i(
|
|
79
|
+
const s = i(v, !1), t = r(() => ({
|
|
80
80
|
"b-structured-list-item--condensed": s
|
|
81
|
-
})), e =
|
|
82
|
-
() => s ?
|
|
81
|
+
})), e = r(
|
|
82
|
+
() => s ? o.CAPTION : o.BODY
|
|
83
83
|
);
|
|
84
84
|
return {
|
|
85
85
|
// Values
|
|
86
86
|
conditionalClasses: t,
|
|
87
|
-
labelTypographyVariant: e
|
|
88
|
-
// Types
|
|
89
|
-
BentoButtonVariant: l
|
|
87
|
+
labelTypographyVariant: e
|
|
90
88
|
};
|
|
91
89
|
}
|
|
92
90
|
});
|
|
93
|
-
var
|
|
91
|
+
var S = function() {
|
|
94
92
|
var t = this, e = t._self._c;
|
|
95
|
-
return t._self._setupProxy, e("div", { staticClass: "b-structured-list-item", class: t.conditionalClasses }, [e("dt", { staticClass: "b-structured-list-item__label" }, [e("bento-typography", { attrs: { variant: t.labelTypographyVariant } }, [t._v(" " + t._s(t.label) + " ")]), t.labelInfo ? e("bento-info-icon", { staticClass: "b-structured-list-item__icon", attrs: { "tooltip-text": t.labelInfo } }) : t._e()], 1), e("dd", { staticClass: "b-structured-list-item__value" }, [t._t("default"), t.copy ? e("copy", { staticClass: "b-structured-list-item__icon", attrs: { text: t.copy } }) : t._e(), t.search ? e("bento-button", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:top", value: t.searchTooltip ? t.searchTooltip : t.$t("search"), expression: "searchTooltip ? searchTooltip : $t('search')", arg: "top" }], staticClass: "b-structured-list-item__icon", attrs: { variant:
|
|
93
|
+
return t._self._setupProxy, e("div", { staticClass: "b-structured-list-item", class: t.conditionalClasses }, [e("dt", { staticClass: "b-structured-list-item__label" }, [e("bento-typography", { attrs: { variant: t.labelTypographyVariant } }, [t._v(" " + t._s(t.label) + " ")]), t.labelInfo ? e("bento-info-icon", { staticClass: "b-structured-list-item__icon", attrs: { "tooltip-text": t.labelInfo } }) : t._e()], 1), e("dd", { staticClass: "b-structured-list-item__value" }, [t._t("default"), t.copy ? e("copy", { staticClass: "b-structured-list-item__icon", attrs: { text: t.copy } }) : t._e(), t.search ? e("bento-button", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:top", value: t.searchTooltip ? t.searchTooltip : t.$t("search"), expression: "searchTooltip ? searchTooltip : $t('search')", arg: "top" }], staticClass: "b-structured-list-item__icon", attrs: { variant: "tertiary" }, on: { click: t.search }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
96
94
|
return [e("search-icon", { attrs: { "svg-title": t.$t("search") } })];
|
|
97
95
|
}, proxy: !0 }], null, !1, 1678634924) }) : t._e()], 2)]);
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
B,
|
|
96
|
+
}, T = [], g = /* @__PURE__ */ a(
|
|
97
|
+
C,
|
|
101
98
|
S,
|
|
99
|
+
T,
|
|
102
100
|
!1,
|
|
103
101
|
null,
|
|
104
|
-
"
|
|
102
|
+
"b8ef6948",
|
|
105
103
|
null,
|
|
106
104
|
null
|
|
107
105
|
);
|
|
108
|
-
const
|
|
106
|
+
const R = g.exports;
|
|
109
107
|
export {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
O as B,
|
|
109
|
+
v as S,
|
|
110
|
+
R as a
|
|
113
111
|
};
|
|
114
|
-
//# sourceMappingURL=index.
|
|
112
|
+
//# sourceMappingURL=index.bd734551.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.bd734551.js","sources":["../../src/components/structured-list/structured-list.vue","../../src/components/structured-list/structured-list.keys.ts","../../src/components/structured-list/components/structered-list-item/structured-list-item.vue"],"sourcesContent":["<template>\n <dl class=\"b-structured-list\">\n <slot />\n </dl>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue';\n\n /**\n * This is a list used to display pairs of information in a clear and organized manner.\n * `BentoStructureListItem` should be used to pass the label/value pairs to the list.\n *\n * @example\n * import { BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredList, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Payment\">\n * <bento-payment-method label=\"Klarna\" type=\"Klarna\" />\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\">\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-structured-list',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list.scss\" />\n","export const STRUCTURED_LIST_CONDENSED_INJECTION_KEY = Symbol('structured list condensed style injection key');\n","<template>\n <div class=\"b-structured-list-item\" :class=\"conditionalClasses\">\n <dt class=\"b-structured-list-item__label\">\n <bento-typography :variant=\"labelTypographyVariant\">\n {{ label }}\n </bento-typography>\n <bento-info-icon v-if=\"labelInfo\" class=\"b-structured-list-item__icon\" :tooltip-text=\"labelInfo\" />\n </dt>\n <dd class=\"b-structured-list-item__value\">\n <slot />\n <copy v-if=\"copy\" class=\"b-structured-list-item__icon\" :text=\"copy\" />\n <bento-button\n v-if=\"search\"\n v-bento-tooltip-directive:top=\"searchTooltip ? searchTooltip : $t('search')\"\n class=\"b-structured-list-item__icon\"\n variant=\"tertiary\"\n @click=\"search\"\n >\n <template #iconLeft>\n <search-icon :svg-title=\"$t('search')\" />\n </template>\n </bento-button>\n </dd>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, inject, PropType } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography, BentoTypographyVariant } from '@/components/typography';\n import Copy from '@/components/internal/copy/copy.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n\n // Directives\n import { BentoTooltipDirective } from '@/directives';\n\n // Keys\n import { STRUCTURED_LIST_CONDENSED_INJECTION_KEY } from '../../structured-list.keys';\n\n import messages from '../../messages.json';\n\n /**\n * This is an item of the `BentoStructuredList` meant to be used only with that component.\n * It consists of a label/value pair, and also the optional copy and search modifiers.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredListItem, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Shopper\" search='searchShopper' search-tooltip='Find shopper'>\n * <bento-typography>\n * 143442642\n * </bento-status>\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\" copy='123456'>\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-structured-list-item',\n components: {\n BentoButton,\n BentoInfoIcon,\n BentoTypography,\n Copy,\n SearchIcon,\n },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Label to display for the value\n */\n label: {\n type: String,\n required: true,\n },\n /**\n * Text to display in info icon tooltip in the label to display for the value\n */\n labelInfo: {\n type: String,\n default: undefined,\n },\n /**\n * Text to copy when the user clicks `Copy` icon\n */\n copy: {\n type: String,\n default: undefined,\n },\n /**\n * Function to trigger when user clicks `Search` icon\n */\n search: {\n type: Function as PropType<(event: Event) => void>,\n default: undefined,\n },\n /**\n * Text to display when the user hovers over `Search` icon\n */\n searchTooltip: {\n type: String,\n default: undefined,\n },\n },\n setup() {\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n\n const conditionalClasses = computed(() => ({\n 'b-structured-list-item--condensed': isCondensed,\n }));\n\n const labelTypographyVariant = computed(() =>\n isCondensed ? BentoTypographyVariant.CAPTION : BentoTypographyVariant.BODY\n );\n\n return {\n // Values\n conditionalClasses,\n labelTypographyVariant,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list-item.scss\" />\n"],"names":["_sfc_main$1","defineComponent","STRUCTURED_LIST_CONDENSED_INJECTION_KEY","_sfc_main","messages","BentoButton","BentoInfoIcon","BentoTypography","Copy","SearchIcon","BentoTooltipDirective","isCondensed","inject","conditionalClasses","computed","labelTypographyVariant","BentoTypographyVariant"],"mappings":";;;;;;;;;AAgCA,MAAAA,IAAAC,EAAA;AAAA,EAAA,MAAA;AAEA,CAAA;;;;;;;;;;;;;;qBClCaC,IAAA,OAAA,+CAAA;;;;GCqEbC,IAAAF,EAAA;AAAA,EAAA,MAAA,EAAA,UAAAG,EAAA;AAAA,EACA,MAAA;AAAA,EACA,YAAA;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,YAAAC;AAAA,EACA;AAAA,EACA,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IACA,OAAA;AAAA,MAIA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,WAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,MAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,QAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IACA,eAAA;AAAA,MAIA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,QAAA;AAEA,UAAAC,IAAAC,EAAAV,GAAA,EAAA,GAEAW,IAAAC,EAAA,OAAA;AAAA,MAAA,qCAAAH;AAAA,IACA,EAAA,GAGAI,IAAAD;AAAA,MAAA,MAAAH,IAAAK,EAAA,UAAAA,EAAA;AAAA,IACA;AAGA,WAAA;AAAA;AAAA,MAAA,oBAAAH;AAAA,MAEA,wBAAAE;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineComponent as re } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
2
|
+
import { u as ne } from "./use-has-slot.6052d56a.js";
|
|
3
|
+
import { n as ae } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
4
|
+
import "../assets/index22.css";
|
|
5
|
+
var R = "data-focus-lock", oe = "data-focus-lock-disabled", ue = "data-no-focus-lock", ie = "data-autofocus-inside", ce = "data-no-autofocus", m = function(e) {
|
|
5
6
|
for (var t = Array(e.length), r = 0; r < e.length; ++r)
|
|
6
7
|
t[r] = e[r];
|
|
7
8
|
return t;
|
|
8
9
|
}, E = function(e) {
|
|
9
10
|
return Array.isArray(e) ? e : [e];
|
|
10
|
-
},
|
|
11
|
+
}, se = function(e) {
|
|
11
12
|
if (e.nodeType !== Node.ELEMENT_NODE)
|
|
12
13
|
return !1;
|
|
13
14
|
var t = window.getComputedStyle(e, null);
|
|
@@ -19,43 +20,43 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
19
20
|
) : e.parentNode;
|
|
20
21
|
}, V = function(e) {
|
|
21
22
|
return e === document || e && e.nodeType === Node.DOCUMENT_NODE;
|
|
22
|
-
},
|
|
23
|
-
return !e || V(e) || !
|
|
23
|
+
}, fe = function(e, t) {
|
|
24
|
+
return !e || V(e) || !se(e) && t(k(e));
|
|
24
25
|
}, W = function(e, t) {
|
|
25
26
|
var r = e.get(t);
|
|
26
27
|
if (r !== void 0)
|
|
27
28
|
return r;
|
|
28
|
-
var n =
|
|
29
|
+
var n = fe(t, W.bind(void 0, e));
|
|
29
30
|
return e.set(t, n), n;
|
|
30
|
-
},
|
|
31
|
-
return e && !V(e) ?
|
|
32
|
-
},
|
|
31
|
+
}, de = function(e, t) {
|
|
32
|
+
return e && !V(e) ? me(e) ? t(k(e)) : !1 : !0;
|
|
33
|
+
}, H = function(e, t) {
|
|
33
34
|
var r = e.get(t);
|
|
34
35
|
if (r !== void 0)
|
|
35
36
|
return r;
|
|
36
|
-
var n =
|
|
37
|
+
var n = de(t, H.bind(void 0, e));
|
|
37
38
|
return e.set(t, n), n;
|
|
38
|
-
},
|
|
39
|
+
}, G = function(e) {
|
|
39
40
|
return e.dataset;
|
|
40
|
-
},
|
|
41
|
+
}, le = function(e) {
|
|
41
42
|
return e.tagName === "BUTTON";
|
|
42
43
|
}, q = function(e) {
|
|
43
44
|
return e.tagName === "INPUT";
|
|
44
45
|
}, $ = function(e) {
|
|
45
46
|
return q(e) && e.type === "radio";
|
|
46
|
-
}, le = function(e) {
|
|
47
|
-
return !((q(e) || de(e)) && (e.type === "hidden" || e.disabled));
|
|
48
47
|
}, ve = function(e) {
|
|
49
|
-
|
|
48
|
+
return !((q(e) || le(e)) && (e.type === "hidden" || e.disabled));
|
|
49
|
+
}, me = function(e) {
|
|
50
|
+
var t = e.getAttribute(ce);
|
|
50
51
|
return ![!0, "true", ""].includes(t);
|
|
51
52
|
}, x = function(e) {
|
|
52
53
|
var t;
|
|
53
|
-
return !!(e && (!((t =
|
|
54
|
+
return !!(e && (!((t = G(e)) === null || t === void 0) && t.focusGuard));
|
|
54
55
|
}, g = function(e) {
|
|
55
56
|
return !x(e);
|
|
56
|
-
},
|
|
57
|
+
}, be = function(e) {
|
|
57
58
|
return !!e;
|
|
58
|
-
},
|
|
59
|
+
}, he = function(e, t) {
|
|
59
60
|
var r = e.tabIndex - t.tabIndex, n = e.index - t.index;
|
|
60
61
|
if (r) {
|
|
61
62
|
if (!e.tabIndex)
|
|
@@ -73,8 +74,8 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
73
74
|
};
|
|
74
75
|
}).filter(function(n) {
|
|
75
76
|
return !t || n.tabIndex >= 0;
|
|
76
|
-
}).sort(
|
|
77
|
-
},
|
|
77
|
+
}).sort(he);
|
|
78
|
+
}, pe = [
|
|
78
79
|
"button:enabled",
|
|
79
80
|
"select:enabled",
|
|
80
81
|
"textarea:enabled",
|
|
@@ -92,10 +93,10 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
92
93
|
"[tabindex]",
|
|
93
94
|
"[contenteditable]",
|
|
94
95
|
"[autofocus]"
|
|
95
|
-
], w =
|
|
96
|
+
], w = pe.join(","), ge = "".concat(w, ", [data-focus-guard]"), z = function(e, t) {
|
|
96
97
|
var r;
|
|
97
98
|
return m(((r = e.shadowRoot) === null || r === void 0 ? void 0 : r.children) || e.children).reduce(function(n, a) {
|
|
98
|
-
return n.concat(a.matches(t ?
|
|
99
|
+
return n.concat(a.matches(t ? ge : w) ? [a] : [], z(a));
|
|
99
100
|
}, []);
|
|
100
101
|
}, y = function(e, t) {
|
|
101
102
|
return e.reduce(function(r, n) {
|
|
@@ -108,8 +109,8 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
108
109
|
}) : []
|
|
109
110
|
);
|
|
110
111
|
}, []);
|
|
111
|
-
},
|
|
112
|
-
var t = e.querySelectorAll("[".concat(
|
|
112
|
+
}, Oe = function(e) {
|
|
113
|
+
var t = e.querySelectorAll("[".concat(ie, "]"));
|
|
113
114
|
return m(t).map(function(r) {
|
|
114
115
|
return y([r]);
|
|
115
116
|
}).reduce(function(r, n) {
|
|
@@ -119,23 +120,23 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
119
120
|
return m(e).filter(function(r) {
|
|
120
121
|
return W(t, r);
|
|
121
122
|
}).filter(function(r) {
|
|
122
|
-
return
|
|
123
|
+
return ve(r);
|
|
123
124
|
});
|
|
124
125
|
}, U = function(e, t) {
|
|
125
126
|
return t === void 0 && (t = /* @__PURE__ */ new Map()), m(e).filter(function(r) {
|
|
126
|
-
return
|
|
127
|
+
return H(t, r);
|
|
127
128
|
});
|
|
128
129
|
}, _ = function(e, t, r) {
|
|
129
130
|
return K(F(y(e, r), t), !0, r);
|
|
130
131
|
}, B = function(e, t) {
|
|
131
132
|
return K(F(y(e), t), !1);
|
|
132
|
-
},
|
|
133
|
-
return F(
|
|
133
|
+
}, Ae = function(e, t) {
|
|
134
|
+
return F(Oe(e), t);
|
|
134
135
|
}, h = function(e, t) {
|
|
135
136
|
return (e.shadowRoot ? h(e.shadowRoot, t) : e.contains(t)) || Array.from(e.children).some(function(r) {
|
|
136
137
|
return h(r, t);
|
|
137
138
|
});
|
|
138
|
-
},
|
|
139
|
+
}, Ne = function(e) {
|
|
139
140
|
for (var t = /* @__PURE__ */ new Set(), r = e.length, n = 0; n < r; n += 1)
|
|
140
141
|
for (var a = n + 1; a < r; a += 1) {
|
|
141
142
|
var i = e[n].compareDocumentPosition(e[a]);
|
|
@@ -150,37 +151,37 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
150
151
|
var t = E(e);
|
|
151
152
|
return t.filter(Boolean).reduce(function(r, n) {
|
|
152
153
|
var a = n.getAttribute(R);
|
|
153
|
-
return r.push.apply(r, a ?
|
|
154
|
+
return r.push.apply(r, a ? Ne(m(j(n).querySelectorAll("[".concat(R, '="').concat(a, '"]:not([').concat(oe, '="disabled"])')))) : [n]), r;
|
|
154
155
|
}, []);
|
|
155
156
|
}, Z = function(e) {
|
|
156
157
|
return e.activeElement ? e.activeElement.shadowRoot ? Z(e.activeElement.shadowRoot) : e.activeElement : void 0;
|
|
157
158
|
}, C = function() {
|
|
158
159
|
return document.activeElement ? document.activeElement.shadowRoot ? Z(document.activeElement.shadowRoot) : document.activeElement : void 0;
|
|
159
|
-
}, Ne = function(e) {
|
|
160
|
-
return e === document.activeElement;
|
|
161
160
|
}, Ee = function(e) {
|
|
161
|
+
return e === document.activeElement;
|
|
162
|
+
}, _e = function(e) {
|
|
162
163
|
return !!m(e.querySelectorAll("iframe")).some(function(t) {
|
|
163
|
-
return
|
|
164
|
+
return Ee(t);
|
|
164
165
|
});
|
|
165
|
-
},
|
|
166
|
+
}, Ie = function(e) {
|
|
166
167
|
var t = document && C();
|
|
167
168
|
return !t || t.dataset && t.dataset.focusGuard ? !1 : T(e).some(function(r) {
|
|
168
|
-
return h(r, t) ||
|
|
169
|
+
return h(r, t) || _e(r);
|
|
169
170
|
});
|
|
170
|
-
},
|
|
171
|
+
}, xe = function() {
|
|
171
172
|
var e = document && C();
|
|
172
|
-
return e ? m(document.querySelectorAll("[".concat(
|
|
173
|
+
return e ? m(document.querySelectorAll("[".concat(ue, "]"))).some(function(t) {
|
|
173
174
|
return h(t, e);
|
|
174
175
|
}) : !1;
|
|
175
|
-
},
|
|
176
|
+
}, we = function(e, t) {
|
|
176
177
|
return t.filter($).filter(function(r) {
|
|
177
178
|
return r.name === e.name;
|
|
178
179
|
}).filter(function(r) {
|
|
179
180
|
return r.checked;
|
|
180
181
|
})[0] || e;
|
|
181
182
|
}, S = function(e, t) {
|
|
182
|
-
return $(e) && e.name ?
|
|
183
|
-
},
|
|
183
|
+
return $(e) && e.name ? we(e, t) : e;
|
|
184
|
+
}, ye = function(e) {
|
|
184
185
|
var t = /* @__PURE__ */ new Set();
|
|
185
186
|
return e.forEach(function(r) {
|
|
186
187
|
return t.add(S(r, e));
|
|
@@ -191,10 +192,10 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
191
192
|
return e[0] && e.length > 1 ? S(e[0], e) : e[0];
|
|
192
193
|
}, M = function(e, t) {
|
|
193
194
|
return e.length > 1 ? e.indexOf(S(e[t], e)) : t;
|
|
194
|
-
}, Y = "NEW_FOCUS",
|
|
195
|
+
}, Y = "NEW_FOCUS", Fe = function(e, t, r, n) {
|
|
195
196
|
var a = e.length, i = e[0], o = e[a - 1], u = x(r);
|
|
196
197
|
if (!(r && e.indexOf(r) >= 0)) {
|
|
197
|
-
var c = r !== void 0 ? t.indexOf(r) : -1, l = n ? t.indexOf(n) : c, v = n ? e.indexOf(n) : -1, s = c - l, b = t.indexOf(i), f = t.indexOf(o), d =
|
|
198
|
+
var c = r !== void 0 ? t.indexOf(r) : -1, l = n ? t.indexOf(n) : c, v = n ? e.indexOf(n) : -1, s = c - l, b = t.indexOf(i), f = t.indexOf(o), d = ye(t), ee = r !== void 0 ? d.indexOf(r) : -1, te = ee - (n ? d.indexOf(n) : c), P = M(e, 0), D = M(e, a - 1);
|
|
198
199
|
if (c === -1 || v === -1)
|
|
199
200
|
return Y;
|
|
200
201
|
if (!s && v >= 0)
|
|
@@ -229,23 +230,23 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
229
230
|
l && (!o || h(l, o) ? o = l : o = O(l, o));
|
|
230
231
|
});
|
|
231
232
|
}), o;
|
|
232
|
-
},
|
|
233
|
+
}, Te = function(e, t) {
|
|
233
234
|
return e.reduce(function(r, n) {
|
|
234
|
-
return r.concat(
|
|
235
|
+
return r.concat(Ae(n, t));
|
|
235
236
|
}, []);
|
|
236
|
-
},
|
|
237
|
+
}, Ce = function(e) {
|
|
237
238
|
return function(t) {
|
|
238
239
|
var r;
|
|
239
|
-
return t.autofocus || !!(!((r =
|
|
240
|
+
return t.autofocus || !!(!((r = G(t)) === null || r === void 0) && r.autofocus) || e.indexOf(t) >= 0;
|
|
240
241
|
};
|
|
241
|
-
},
|
|
242
|
+
}, Se = function(e, t) {
|
|
242
243
|
var r = /* @__PURE__ */ new Map();
|
|
243
244
|
return t.forEach(function(n) {
|
|
244
245
|
return r.set(n.node, n);
|
|
245
246
|
}), e.map(function(n) {
|
|
246
247
|
return r.get(n);
|
|
247
|
-
}).filter(
|
|
248
|
-
},
|
|
248
|
+
}).filter(be);
|
|
249
|
+
}, Pe = function(e, t) {
|
|
249
250
|
var r = document && C(), n = T(e).filter(g), a = J(r || e, e, n), i = /* @__PURE__ */ new Map(), o = B(n, i), u = _(n, i).filter(function(f) {
|
|
250
251
|
var d = f.node;
|
|
251
252
|
return g(d);
|
|
@@ -254,22 +255,22 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
254
255
|
var c = B([a], i).map(function(f) {
|
|
255
256
|
var d = f.node;
|
|
256
257
|
return d;
|
|
257
|
-
}), l =
|
|
258
|
+
}), l = Se(c, u), v = l.map(function(f) {
|
|
258
259
|
var d = f.node;
|
|
259
260
|
return d;
|
|
260
|
-
}), s =
|
|
261
|
+
}), s = Fe(v, c, r, t);
|
|
261
262
|
if (s === Y) {
|
|
262
263
|
var b = U(o.map(function(f) {
|
|
263
264
|
var d = f.node;
|
|
264
265
|
return d;
|
|
265
|
-
})).filter(Te(
|
|
266
|
+
})).filter(Ce(Te(n, i)));
|
|
266
267
|
return {
|
|
267
268
|
node: b && b.length ? L(b) : L(U(v))
|
|
268
269
|
};
|
|
269
270
|
}
|
|
270
271
|
return s === void 0 ? s : l[s];
|
|
271
272
|
}
|
|
272
|
-
},
|
|
273
|
+
}, De = function(e) {
|
|
273
274
|
var t = T(e).filter(g), r = J(e, e, t), n = /* @__PURE__ */ new Map(), a = _([r], n, !0), i = _(t, n).filter(function(o) {
|
|
274
275
|
var u = o.node;
|
|
275
276
|
return g(u);
|
|
@@ -286,11 +287,11 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
286
287
|
guard: x(u)
|
|
287
288
|
};
|
|
288
289
|
});
|
|
289
|
-
},
|
|
290
|
+
}, Re = De, Ue = function(e, t) {
|
|
290
291
|
"focus" in e && e.focus(t), "contentWindow" in e && e.contentWindow && e.contentWindow.focus();
|
|
291
|
-
}, A = 0, N = !1,
|
|
292
|
+
}, A = 0, N = !1, Be = function(e, t, r) {
|
|
292
293
|
r === void 0 && (r = {});
|
|
293
|
-
var n =
|
|
294
|
+
var n = Pe(e, t);
|
|
294
295
|
if (!N && n) {
|
|
295
296
|
if (A > 2) {
|
|
296
297
|
console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), N = !0, setTimeout(function() {
|
|
@@ -298,27 +299,27 @@ var R = "data-focus-lock", ae = "data-focus-lock-disabled", oe = "data-no-focus-
|
|
|
298
299
|
}, 1);
|
|
299
300
|
return;
|
|
300
301
|
}
|
|
301
|
-
A++,
|
|
302
|
+
A++, Ue(n.node, r.focusOptions), A--;
|
|
302
303
|
}
|
|
303
304
|
}, p = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(p || {}), Q = /* @__PURE__ */ ((e) => (e.ARROW_UP = "arrowup", e.ARROW_DOWN = "arrowdown", e))(Q || {}), X = /* @__PURE__ */ ((e) => (e.ARROW_LEFT = "arrowleft", e.ARROW_RIGHT = "arrowright", e))(X || {});
|
|
304
|
-
const
|
|
305
|
+
const Le = (e) => requestAnimationFrame(e), Me = (e, t) => {
|
|
305
306
|
const r = t.findIndex((n) => n.node === e);
|
|
306
307
|
return r === -1 ? 0 : r;
|
|
307
|
-
},
|
|
308
|
+
}, ke = (e, t) => {
|
|
308
309
|
var i;
|
|
309
|
-
const r = document.activeElement, n =
|
|
310
|
+
const r = document.activeElement, n = Re(t), a = Me(r, n) + e;
|
|
310
311
|
return ((i = n[a]) == null ? void 0 : i.node) || r;
|
|
311
|
-
},
|
|
312
|
+
}, Ve = (e, t) => {
|
|
312
313
|
const r = e.key.toLowerCase();
|
|
313
314
|
return {
|
|
314
315
|
isArrowNext: r === t[0],
|
|
315
316
|
isArrowPrev: r === t[1]
|
|
316
317
|
};
|
|
317
|
-
},
|
|
318
|
+
}, We = {
|
|
318
319
|
behavior: "smooth",
|
|
319
320
|
block: "center",
|
|
320
321
|
inline: "center"
|
|
321
|
-
},
|
|
322
|
+
}, He = re({
|
|
322
323
|
name: "bento-focus-trap",
|
|
323
324
|
props: {
|
|
324
325
|
/**
|
|
@@ -374,13 +375,13 @@ const Be = (e) => requestAnimationFrame(e), Le = (e, t) => {
|
|
|
374
375
|
* `focus-lock` can determine the next interable element to focus on.
|
|
375
376
|
*/
|
|
376
377
|
async setFocusInside() {
|
|
377
|
-
(document.activeElement === document.body ||
|
|
378
|
+
(document.activeElement === document.body || xe() || !this.lastFocusedElement) && (Ie(this.$refs.root) || Be(this.$refs.root, this.lastFocusedElement), this.lastFocusedElement = document.activeElement);
|
|
378
379
|
},
|
|
379
380
|
/**
|
|
380
381
|
* On blur, trap the focus inside!
|
|
381
382
|
*/
|
|
382
383
|
onBlur() {
|
|
383
|
-
this.disabled ||
|
|
384
|
+
this.disabled || Le(this.setFocusInside);
|
|
384
385
|
},
|
|
385
386
|
/**
|
|
386
387
|
* If the no arrow navigation is enabled
|
|
@@ -401,12 +402,12 @@ const Be = (e) => requestAnimationFrame(e), Le = (e, t) => {
|
|
|
401
402
|
onKeyDown(e) {
|
|
402
403
|
if (this.disabled || document.activeElement.isContentEditable || this.shouldPreventNavigation())
|
|
403
404
|
return;
|
|
404
|
-
const { isArrowNext: t, isArrowPrev: r } =
|
|
405
|
+
const { isArrowNext: t, isArrowPrev: r } = Ve(e, this.arrowOrder);
|
|
405
406
|
if (r || t) {
|
|
406
407
|
e.preventDefault(), e.stopPropagation();
|
|
407
|
-
const n =
|
|
408
|
+
const n = ke(r ? 1 : -1, this.$el);
|
|
408
409
|
if (n.focus(), "scrollIntoView" in n) {
|
|
409
|
-
const a = "scrollBehavior" in document.documentElement.style ?
|
|
410
|
+
const a = "scrollBehavior" in document.documentElement.style ? We : !1;
|
|
410
411
|
n.scrollIntoView(a);
|
|
411
412
|
}
|
|
412
413
|
}
|
|
@@ -417,25 +418,26 @@ const Be = (e) => requestAnimationFrame(e), Le = (e, t) => {
|
|
|
417
418
|
disable() {
|
|
418
419
|
const e = this.lastFocusedElement || this.$el.parentNode || document.body;
|
|
419
420
|
e && e.focus();
|
|
420
|
-
}
|
|
421
|
+
},
|
|
422
|
+
useHasSlot: ne
|
|
421
423
|
}
|
|
422
424
|
});
|
|
423
425
|
var Ge = function() {
|
|
424
426
|
var t = this, r = t._self._c;
|
|
425
|
-
return t._self._setupProxy, t.$slots
|
|
426
|
-
},
|
|
427
|
-
We,
|
|
428
|
-
Ge,
|
|
427
|
+
return t._self._setupProxy, t.useHasSlot(t.$slots)("default") ? r("div", t._g({ ref: "root", staticClass: "b-focus-trap", attrs: { "data-testid": "focus-trap", tabindex: "-1" }, on: { focusout: t.onBlur } }, t.arrowNavigation ? { keydown: t.onKeyDown } : {}), [t._t("default")], 2) : t._e();
|
|
428
|
+
}, qe = [], $e = /* @__PURE__ */ ae(
|
|
429
429
|
He,
|
|
430
|
+
Ge,
|
|
431
|
+
qe,
|
|
430
432
|
!1,
|
|
431
433
|
null,
|
|
432
|
-
"
|
|
434
|
+
"1dbb775c",
|
|
433
435
|
null,
|
|
434
436
|
null
|
|
435
437
|
);
|
|
436
|
-
const
|
|
438
|
+
const Ze = $e.exports;
|
|
437
439
|
export {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
+
Ze as B,
|
|
441
|
+
ke as g
|
|
440
442
|
};
|
|
441
|
-
//# sourceMappingURL=index.
|
|
443
|
+
//# sourceMappingURL=index.c85a1ab9.js.map
|