@adyen/bento-vue3 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +8 -4
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
- package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -57
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +27 -29
- package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +136 -128
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +46 -15
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +6 -7
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +37 -11
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -22
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +277 -16
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +164 -104
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
- package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -27
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -11
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +53 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +61 -58
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +19 -390
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +6 -9
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -10
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
- package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +8 -1
- package/dist/@types/packages/vue2/src/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
- package/dist/accordion.js +104 -254
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +61 -64
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chevron-up.css +1 -0
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +2 -2
- package/dist/button.js +143 -12
- package/dist/button.js.map +1 -1
- package/dist/card.js +99 -94
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +40 -39
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/base-button.6d2843c2.js +108 -0
- package/dist/chunks/base-button.6d2843c2.js.map +1 -0
- package/dist/chunks/base-modal.3ccb9eb5.js +291 -0
- package/dist/chunks/base-modal.3ccb9eb5.js.map +1 -0
- package/dist/chunks/{button.e1c39f66.js → button.a8462029.js} +39 -42
- package/dist/chunks/button.a8462029.js.map +1 -0
- package/dist/chunks/{calendar.09b683b3.js → calendar.3f930683.js} +237 -240
- package/dist/chunks/calendar.3f930683.js.map +1 -0
- package/dist/chunks/checkbox.5e1e05ae.js +235 -0
- package/dist/chunks/checkbox.5e1e05ae.js.map +1 -0
- package/dist/chunks/{chevron-down.69bedf14.js → chevron-up.c03b58f8.js} +8 -8
- package/dist/chunks/chevron-up.c03b58f8.js.map +1 -0
- package/dist/chunks/controls-group.3b0dfb94.js +136 -0
- package/dist/chunks/controls-group.3b0dfb94.js.map +1 -0
- package/dist/chunks/{copy.2cf5e6c3.js → copy.1d14b783.js} +49 -50
- package/dist/chunks/copy.1d14b783.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.203e747f.js → dropdown-default-textbox.a90e84f9.js} +88 -90
- package/dist/chunks/dropdown-default-textbox.a90e84f9.js.map +1 -0
- package/dist/chunks/{dropdown.8b415aac.js → dropdown.b798a82e.js} +348 -330
- package/dist/chunks/dropdown.b798a82e.js.map +1 -0
- package/dist/chunks/{error-message.ddfe8ea5.js → error-message.9acead25.js} +16 -16
- package/dist/chunks/error-message.9acead25.js.map +1 -0
- package/dist/chunks/footer-actions.9537d0df.js +111 -0
- package/dist/chunks/footer-actions.9537d0df.js.map +1 -0
- package/dist/chunks/get-slot-text.bead058f.js +9 -0
- package/dist/chunks/get-slot-text.bead058f.js.map +1 -0
- package/dist/chunks/{grid-layout.a30855ff.js → grid-layout.984317d7.js} +2 -2
- package/dist/chunks/{grid-layout.a30855ff.js.map → grid-layout.984317d7.js.map} +1 -1
- package/dist/chunks/index.228ecda0.js +101 -0
- package/dist/chunks/index.228ecda0.js.map +1 -0
- package/dist/chunks/index.89b00b94.js +124 -0
- package/dist/chunks/index.89b00b94.js.map +1 -0
- package/dist/chunks/{index.3da90517.js → index.9d8273fc.js} +38 -40
- package/dist/chunks/index.9d8273fc.js.map +1 -0
- package/dist/chunks/{index.c9225c3b.js → index.c2a80208.js} +195 -201
- package/dist/chunks/index.c2a80208.js.map +1 -0
- package/dist/chunks/{index.13949709.js → index.d26fdf71.js} +116 -113
- package/dist/chunks/{index.13949709.js.map → index.d26fdf71.js.map} +1 -1
- package/dist/chunks/{index.d27367cd.js → index.e84dbeae.js} +80 -83
- package/dist/chunks/{index.d27367cd.js.map → index.e84dbeae.js.map} +1 -1
- package/dist/chunks/listbox-option-tag.0c9c571e.js +129 -0
- package/dist/chunks/listbox-option-tag.0c9c571e.js.map +1 -0
- package/dist/chunks/{listbox.0c7c4e5e.js → listbox.6b52af1a.js} +315 -334
- package/dist/chunks/listbox.6b52af1a.js.map +1 -0
- package/dist/chunks/{loading-button.61d8ebe5.js → loading-button.081adbf3.js} +33 -33
- package/dist/chunks/loading-button.081adbf3.js.map +1 -0
- package/dist/chunks/tabs.keys.358742f2.js +7 -0
- package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
- package/dist/chunks/{tooltip.835d9b52.js → tooltip.e4e34b86.js} +56 -59
- package/dist/chunks/tooltip.e4e34b86.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js +16 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js.map +1 -0
- package/dist/chunks/use-has-slot.9fac7123.js +16 -0
- package/dist/chunks/use-has-slot.9fac7123.js.map +1 -0
- package/dist/code-snippet.js +548 -463
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +501 -505
- package/dist/country.js.map +1 -1
- package/dist/currency.js +38 -41
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +837 -833
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +83 -87
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +30 -32
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +166 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/filter-bar.js +986 -935
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +72 -72
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +50 -52
- package/dist/header.js.map +1 -1
- package/dist/image.js +76 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +239 -232
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +241 -269
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +38 -36
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +131 -139
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +121 -356
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +182 -185
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +19 -23
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +56 -52
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +36 -41
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +112 -113
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +77 -91
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +88 -75
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +122 -121
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +18 -21
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +129 -162
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +83 -75
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +32 -35
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +156 -155
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +212 -213
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +68 -72
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +75 -73
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +11 -10
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -58
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/chevron-down.css +0 -1
- package/dist/chunks/base-button.20be08da.js +0 -111
- package/dist/chunks/base-button.20be08da.js.map +0 -1
- package/dist/chunks/button-actions.54e28e75.js +0 -124
- package/dist/chunks/button-actions.54e28e75.js.map +0 -1
- package/dist/chunks/button.e1c39f66.js.map +0 -1
- package/dist/chunks/calendar.09b683b3.js.map +0 -1
- package/dist/chunks/checkbox.a404069b.js +0 -226
- package/dist/chunks/checkbox.a404069b.js.map +0 -1
- package/dist/chunks/chevron-down.69bedf14.js.map +0 -1
- package/dist/chunks/controls-group.60fb2a86.js +0 -136
- package/dist/chunks/controls-group.60fb2a86.js.map +0 -1
- package/dist/chunks/copy.2cf5e6c3.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.203e747f.js.map +0 -1
- package/dist/chunks/dropdown.8b415aac.js.map +0 -1
- package/dist/chunks/error-message.ddfe8ea5.js.map +0 -1
- package/dist/chunks/footer-actions.0f640f87.js +0 -106
- package/dist/chunks/footer-actions.0f640f87.js.map +0 -1
- package/dist/chunks/get-slot-text.2db867f8.js +0 -9
- package/dist/chunks/get-slot-text.2db867f8.js.map +0 -1
- package/dist/chunks/index.222d29b0.js +0 -120
- package/dist/chunks/index.222d29b0.js.map +0 -1
- package/dist/chunks/index.3da90517.js.map +0 -1
- package/dist/chunks/index.aa34e363.js +0 -104
- package/dist/chunks/index.aa34e363.js.map +0 -1
- package/dist/chunks/index.c9225c3b.js.map +0 -1
- package/dist/chunks/listbox-option-tag.5ae8b79b.js +0 -133
- package/dist/chunks/listbox-option-tag.5ae8b79b.js.map +0 -1
- package/dist/chunks/listbox.0c7c4e5e.js.map +0 -1
- package/dist/chunks/loading-button.61d8ebe5.js.map +0 -1
- package/dist/chunks/tooltip.835d9b52.js.map +0 -1
- package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
- package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
- package/dist/chunks/use-has-slot.068222e6.js +0 -5
- package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
package/dist/menu.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { openBlock as m, createElementBlock as k, mergeProps as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { openBlock as m, createElementBlock as k, mergeProps as V, toDisplayString as E, createCommentVNode as P, pushScopeId as se, popScopeId as le, createElementVNode as O, defineComponent as K, computed as B, resolveComponent as h, createBlock as L, normalizeClass as W, createSlots as ue, withCtx as g, createVNode as I, createTextVNode as D, resolveDynamicComponent as ie, renderSlot as j, ref as f, onMounted as ae, Transition as re, withKeys as y, withModifiers as T, Fragment as Z, renderList as z, normalizeStyle as G, resolveDirective as de, withDirectives as ce } from "vue";
|
|
2
|
+
import { _ as S } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
3
|
import { g as F } from "./chunks/unique-id.a2a2b458.js";
|
|
4
|
-
import { B as
|
|
5
|
-
import {
|
|
6
|
-
import { BentoPopover as
|
|
7
|
-
import { a as
|
|
8
|
-
import { B as
|
|
9
|
-
import { B as
|
|
10
|
-
import "./assets/
|
|
4
|
+
import { B as me } from "./chunks/directive.0408e565.js";
|
|
5
|
+
import { a as pe } from "./chunks/button.a8462029.js";
|
|
6
|
+
import { BentoPopover as fe, BentoPopoverPositions as H } from "./popover.js";
|
|
7
|
+
import { a as ve, C as A } from "./chunks/chevron-right.aef416c6.js";
|
|
8
|
+
import { B as _e, a as q } from "./chunks/base-button.6d2843c2.js";
|
|
9
|
+
import { B as be } from "./chunks/index.89b00b94.js";
|
|
10
|
+
import "./assets/index19.css";
|
|
11
11
|
let U = 0;
|
|
12
|
-
const
|
|
12
|
+
const ye = {
|
|
13
13
|
beforeCreate() {
|
|
14
14
|
this.uuid = U.toString(), U += 1;
|
|
15
15
|
}
|
|
16
|
-
},
|
|
16
|
+
}, N = (e) => (se("data-v-c663a42e"), e = e(), le(), e), Ce = { key: 0 }, he = /* @__PURE__ */ N(() => /* @__PURE__ */ O("path", {
|
|
17
17
|
fill: "#00112C",
|
|
18
18
|
"fill-rule": "evenodd",
|
|
19
19
|
d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00166 0.970945 7.70006 1.00065 7.42597 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65804 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z",
|
|
20
20
|
"clip-rule": "evenodd"
|
|
21
|
-
}, null, -1)),
|
|
21
|
+
}, null, -1)), ge = /* @__PURE__ */ N(() => /* @__PURE__ */ O("path", {
|
|
22
22
|
fill: "#00112C",
|
|
23
23
|
"fill-rule": "evenodd",
|
|
24
24
|
d: "M8 15C8.29667 15 8.58668 14.912 8.83335 14.7472C9.08003 14.5824 9.27229 14.3481 9.38582 14.074C9.49935 13.7999 9.52906 13.4983 9.47118 13.2074C9.4133 12.9164 9.27044 12.6491 9.06066 12.4393C8.85088 12.2296 8.58361 12.0867 8.29264 12.0288C8.00166 11.9709 7.70006 12.0007 7.42597 12.1142C7.15189 12.2277 6.91762 12.42 6.7528 12.6666C6.58797 12.9133 6.5 13.2033 6.5 13.5C6.5 13.8978 6.65804 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z",
|
|
25
25
|
"clip-rule": "evenodd"
|
|
26
|
-
}, null, -1)),
|
|
26
|
+
}, null, -1)), $e = /* @__PURE__ */ N(() => /* @__PURE__ */ O("path", {
|
|
27
27
|
fill: "#00112C",
|
|
28
28
|
"fill-rule": "evenodd",
|
|
29
29
|
d: "M8.83335 9.24721C8.58668 9.41203 8.29667 9.5 8 9.5C7.60218 9.5 7.22064 9.34197 6.93934 9.06066C6.65804 8.77936 6.5 8.39783 6.5 8C6.5 7.70333 6.58797 7.41332 6.7528 7.16665C6.91762 6.91997 7.15189 6.72771 7.42597 6.61418C7.70006 6.50065 8.00166 6.47094 8.29264 6.52882C8.58361 6.5867 8.85088 6.72956 9.06066 6.93934C9.27044 7.14912 9.4133 7.41639 9.47118 7.70737C9.52906 7.99834 9.49935 8.29994 9.38582 8.57403C9.27229 8.84811 9.08003 9.08238 8.83335 9.24721Z",
|
|
30
30
|
"clip-rule": "evenodd"
|
|
31
31
|
}, null, -1));
|
|
32
|
-
function
|
|
33
|
-
return m(), k("svg",
|
|
32
|
+
function Me(e, t, c, s, i, a) {
|
|
33
|
+
return m(), k("svg", V({ role: "img" }, e.$attrs, {
|
|
34
34
|
xmlns: "http://www.w3.org/2000/svg",
|
|
35
35
|
width: "16",
|
|
36
36
|
height: "16",
|
|
37
37
|
fill: "none"
|
|
38
38
|
}), [
|
|
39
|
-
e.$attrs["svg-title"] ? (m(), k("title",
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
e.$attrs["svg-title"] ? (m(), k("title", Ce, E(e.$attrs["svg-title"]), 1)) : P("", !0),
|
|
40
|
+
he,
|
|
41
|
+
ge,
|
|
42
|
+
$e
|
|
43
43
|
], 16);
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const Be = /* @__PURE__ */ S(ye, [["render", Me], ["__scopeId", "data-v-c663a42e"]]), Ie = K({
|
|
46
46
|
name: "menu-item",
|
|
47
|
-
components: { BaseButton:
|
|
47
|
+
components: { BaseButton: _e, BentoTypography: be, ChevronRightIcon: ve },
|
|
48
48
|
props: {
|
|
49
49
|
/**
|
|
50
50
|
* menu-item text that gets displayed as the main label
|
|
@@ -112,16 +112,12 @@ const we = /* @__PURE__ */ L(ge, [["render", ke], ["__scopeId", "data-v-c663a42e
|
|
|
112
112
|
},
|
|
113
113
|
emits: [q.CLICK],
|
|
114
114
|
setup(e, { emit: t }) {
|
|
115
|
-
const d = M(() => ({
|
|
116
|
-
"b-menu-item--critical": e.critical,
|
|
117
|
-
"b-menu-item--indent": e.indent
|
|
118
|
-
}));
|
|
119
115
|
return {
|
|
120
|
-
// Enums
|
|
121
|
-
BentoTypographyElement: he,
|
|
122
|
-
BentoTypographyVariant: Ce,
|
|
123
116
|
// Values
|
|
124
|
-
conditionalClasses:
|
|
117
|
+
conditionalClasses: B(() => ({
|
|
118
|
+
"b-menu-item--critical": e.critical,
|
|
119
|
+
"b-menu-item--indent": e.indent
|
|
120
|
+
})),
|
|
125
121
|
// Methods
|
|
126
122
|
onClick: (i) => {
|
|
127
123
|
i.stopPropagation(), e.handler(), t(q.CLICK);
|
|
@@ -129,45 +125,45 @@ const we = /* @__PURE__ */ L(ge, [["render", ke], ["__scopeId", "data-v-c663a42e
|
|
|
129
125
|
};
|
|
130
126
|
}
|
|
131
127
|
});
|
|
132
|
-
function
|
|
133
|
-
const u =
|
|
134
|
-
return m(),
|
|
135
|
-
class:
|
|
128
|
+
function ke(e, t, c, s, i, a) {
|
|
129
|
+
const u = h("bento-typography"), l = h("chevron-right-icon"), o = h("base-button");
|
|
130
|
+
return m(), L(o, {
|
|
131
|
+
class: W(["b-menu-item", e.conditionalClasses]),
|
|
136
132
|
role: "menuitem",
|
|
137
133
|
disabled: e.disabled,
|
|
138
134
|
tabindex: "-1",
|
|
139
135
|
onClick: e.onClick
|
|
140
|
-
},
|
|
136
|
+
}, ue({
|
|
141
137
|
default: g(() => [
|
|
142
138
|
I(u, {
|
|
143
|
-
el:
|
|
144
|
-
variant:
|
|
139
|
+
el: "span",
|
|
140
|
+
variant: "body",
|
|
145
141
|
stronger: e.isTitle,
|
|
146
142
|
class: "b-menu-item__primary-text"
|
|
147
143
|
}, {
|
|
148
144
|
default: g(() => [
|
|
149
|
-
|
|
145
|
+
D(E(e.text), 1)
|
|
150
146
|
]),
|
|
151
147
|
_: 1
|
|
152
|
-
}, 8, ["
|
|
153
|
-
e.secondaryText ? (m(),
|
|
148
|
+
}, 8, ["stronger"]),
|
|
149
|
+
e.secondaryText ? (m(), L(u, {
|
|
154
150
|
key: 0,
|
|
155
|
-
el:
|
|
156
|
-
variant:
|
|
151
|
+
el: "span",
|
|
152
|
+
variant: "body",
|
|
157
153
|
class: "b-menu-item__secondary-text"
|
|
158
154
|
}, {
|
|
159
155
|
default: g(() => [
|
|
160
|
-
|
|
156
|
+
D(E(e.secondaryText), 1)
|
|
161
157
|
]),
|
|
162
158
|
_: 1
|
|
163
|
-
}
|
|
159
|
+
})) : P("", !0)
|
|
164
160
|
]),
|
|
165
161
|
_: 2
|
|
166
162
|
}, [
|
|
167
163
|
e.icon ? {
|
|
168
164
|
name: "iconLeft",
|
|
169
165
|
fn: g(() => [
|
|
170
|
-
(m(),
|
|
166
|
+
(m(), L(ie(e.icon), {
|
|
171
167
|
class: "b-menu-item__icon-left",
|
|
172
168
|
"aria-hidden": "true"
|
|
173
169
|
}))
|
|
@@ -183,23 +179,23 @@ function Le(e, t, d, s, i, a) {
|
|
|
183
179
|
} : void 0
|
|
184
180
|
]), 1032, ["class", "disabled", "onClick"]);
|
|
185
181
|
}
|
|
186
|
-
const J = /* @__PURE__ */
|
|
187
|
-
var
|
|
188
|
-
const
|
|
182
|
+
const J = /* @__PURE__ */ S(Ie, [["render", ke], ["__scopeId", "data-v-4fbf6230"]]);
|
|
183
|
+
var C = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(C || {});
|
|
184
|
+
const we = K({
|
|
189
185
|
name: "bento-menu-list-container"
|
|
190
186
|
});
|
|
191
|
-
const
|
|
192
|
-
function
|
|
193
|
-
return m(), k("div",
|
|
194
|
-
|
|
187
|
+
const Le = { class: "b-menu-list-container" };
|
|
188
|
+
function Se(e, t, c, s, i, a) {
|
|
189
|
+
return m(), k("div", Le, [
|
|
190
|
+
j(e.$slots, "default", {}, void 0, !0)
|
|
195
191
|
]);
|
|
196
192
|
}
|
|
197
|
-
const Q = /* @__PURE__ */
|
|
193
|
+
const Q = /* @__PURE__ */ S(we, [["render", Se], ["__scopeId", "data-v-ea0113ba"]]), X = {
|
|
198
194
|
"en-US": {
|
|
199
195
|
menuButton: "Open menu",
|
|
200
196
|
backButton: "Go back"
|
|
201
197
|
}
|
|
202
|
-
},
|
|
198
|
+
}, Oe = K({
|
|
203
199
|
i18n: { messages: X },
|
|
204
200
|
name: "sub-menu-item-list",
|
|
205
201
|
components: { MenuItem: J, MenuListContainer: Q },
|
|
@@ -213,11 +209,11 @@ const Q = /* @__PURE__ */ L(Te, [["render", Pe], ["__scopeId", "data-v-ea0113ba"
|
|
|
213
209
|
required: !0
|
|
214
210
|
}
|
|
215
211
|
},
|
|
216
|
-
emits: [
|
|
212
|
+
emits: [C.CLOSE, C.BACK],
|
|
217
213
|
setup(e, { emit: t }) {
|
|
218
|
-
const
|
|
214
|
+
const c = f(null), s = f(0), i = f(e.items.length), a = () => t(C.CLOSE), u = () => t(C.BACK), l = B(() => {
|
|
219
215
|
var v;
|
|
220
|
-
const
|
|
216
|
+
const d = (v = e.items) == null ? void 0 : v.map((_) => ({
|
|
221
217
|
..._,
|
|
222
218
|
indent: !_.icon,
|
|
223
219
|
isTitle: !1,
|
|
@@ -228,20 +224,20 @@ const Q = /* @__PURE__ */ L(Te, [["render", Pe], ["__scopeId", "data-v-ea0113ba"
|
|
|
228
224
|
text: e.title,
|
|
229
225
|
secondaryText: null,
|
|
230
226
|
critical: !1,
|
|
231
|
-
icon:
|
|
227
|
+
icon: A,
|
|
232
228
|
isTitle: !0,
|
|
233
229
|
disabled: !1,
|
|
234
230
|
indent: !1,
|
|
235
231
|
handler: u,
|
|
236
232
|
clickHandler: u
|
|
237
233
|
},
|
|
238
|
-
...
|
|
234
|
+
...d
|
|
239
235
|
];
|
|
240
236
|
}), o = async () => {
|
|
241
|
-
var
|
|
242
|
-
(
|
|
237
|
+
var d, v, _, w, $;
|
|
238
|
+
($ = (w = (_ = (v = (d = c.value) == null ? void 0 : d.children) == null ? void 0 : v[s.value]) == null ? void 0 : _.children) == null ? void 0 : w[0]) == null || $.focus();
|
|
243
239
|
};
|
|
244
|
-
|
|
240
|
+
ae(async () => {
|
|
245
241
|
setTimeout(() => o(), 150);
|
|
246
242
|
});
|
|
247
243
|
const n = () => {
|
|
@@ -251,11 +247,11 @@ const Q = /* @__PURE__ */ L(Te, [["render", Pe], ["__scopeId", "data-v-ea0113ba"
|
|
|
251
247
|
};
|
|
252
248
|
return {
|
|
253
249
|
// Enums
|
|
254
|
-
BentoMenuEvent:
|
|
250
|
+
BentoMenuEvent: C,
|
|
255
251
|
// Values
|
|
256
|
-
subMenuItemListRefLocal:
|
|
252
|
+
subMenuItemListRefLocal: c,
|
|
257
253
|
subMenuFocusedIndex: s,
|
|
258
|
-
ChevronLeftIcon:
|
|
254
|
+
ChevronLeftIcon: A,
|
|
259
255
|
computedItems: l,
|
|
260
256
|
// Methods
|
|
261
257
|
closeMenu: a,
|
|
@@ -265,28 +261,28 @@ const Q = /* @__PURE__ */ L(Te, [["render", Pe], ["__scopeId", "data-v-ea0113ba"
|
|
|
265
261
|
};
|
|
266
262
|
}
|
|
267
263
|
});
|
|
268
|
-
function Ke(e, t,
|
|
269
|
-
const u =
|
|
270
|
-
return m(),
|
|
264
|
+
function Ke(e, t, c, s, i, a) {
|
|
265
|
+
const u = h("menu-item"), l = h("menu-list-container");
|
|
266
|
+
return m(), L(re, {
|
|
271
267
|
name: "b-sub-menu-item-list__transition",
|
|
272
268
|
appear: ""
|
|
273
269
|
}, {
|
|
274
270
|
default: g(() => [
|
|
275
271
|
I(l, { class: "b-sub-menu-item-list" }, {
|
|
276
272
|
default: g(() => [
|
|
277
|
-
|
|
273
|
+
O("ul", {
|
|
278
274
|
ref: "subMenuItemListRefLocal",
|
|
279
275
|
role: "menu",
|
|
280
276
|
class: "b-sub-menu-item-list__list",
|
|
281
277
|
onKeydown: [
|
|
282
|
-
t[0] || (t[0] = y(
|
|
283
|
-
t[1] || (t[1] = y(
|
|
284
|
-
t[2] || (t[2] = y(
|
|
278
|
+
t[0] || (t[0] = y(T((...o) => e.focusNext && e.focusNext(...o), ["stop"]), ["down"])),
|
|
279
|
+
t[1] || (t[1] = y(T((...o) => e.focusPrevious && e.focusPrevious(...o), ["stop"]), ["up"])),
|
|
280
|
+
t[2] || (t[2] = y(T((...o) => e.onBackButton && e.onBackButton(...o), ["stop"]), ["esc"]))
|
|
285
281
|
]
|
|
286
282
|
}, [
|
|
287
283
|
(m(!0), k(Z, null, z(e.computedItems, (o, n) => (m(), k("li", {
|
|
288
284
|
key: `sub-menu-item-list-item-${n}`,
|
|
289
|
-
class:
|
|
285
|
+
class: W([
|
|
290
286
|
{ "b-sub-menu-item-list__back-button": n === 0 },
|
|
291
287
|
{ "b-sub-menu-item-list__first-item": n == 1 }
|
|
292
288
|
]),
|
|
@@ -313,9 +309,9 @@ function Ke(e, t, d, s, i, a) {
|
|
|
313
309
|
_: 1
|
|
314
310
|
});
|
|
315
311
|
}
|
|
316
|
-
const
|
|
312
|
+
const Pe = /* @__PURE__ */ S(Oe, [["render", Ke], ["__scopeId", "data-v-67456329"]]), Te = K({
|
|
317
313
|
name: "menu-item-list",
|
|
318
|
-
components: { MenuItem: J, MenuListContainer: Q, SubMenuItemList:
|
|
314
|
+
components: { MenuItem: J, MenuListContainer: Q, SubMenuItemList: Pe },
|
|
319
315
|
props: {
|
|
320
316
|
/**
|
|
321
317
|
* The data to be displayed in the list
|
|
@@ -339,9 +335,9 @@ const Ne = /* @__PURE__ */ L(Ee, [["render", Ke], ["__scopeId", "data-v-67456329
|
|
|
339
335
|
default: !1
|
|
340
336
|
}
|
|
341
337
|
},
|
|
342
|
-
emits: [
|
|
338
|
+
emits: [C.CLOSE],
|
|
343
339
|
setup(e, { emit: t }) {
|
|
344
|
-
const
|
|
340
|
+
const c = f(null), s = f(null), i = f(null), a = f(!1), u = f(null), l = f(e.focusLastElement ? e.data.length - 1 : 0), o = f(0), n = f(e.data.length - 1), p = B(() => e.data.some((r) => r.icon)), d = B(() => e.indentItems || p.value ? e.data.map((r) => {
|
|
345
341
|
let b = !1;
|
|
346
342
|
return r.icon || (b = !0), {
|
|
347
343
|
...r,
|
|
@@ -349,35 +345,35 @@ const Ne = /* @__PURE__ */ L(Ee, [["render", Ke], ["__scopeId", "data-v-67456329
|
|
|
349
345
|
indent: b
|
|
350
346
|
};
|
|
351
347
|
}) : e.data), v = () => {
|
|
352
|
-
var r, b,
|
|
353
|
-
return (
|
|
354
|
-
}, _ = () => t(
|
|
348
|
+
var r, b, M;
|
|
349
|
+
return (M = (b = (r = c.value) == null ? void 0 : r.children[l.value]) == null ? void 0 : b.children[0]) == null ? void 0 : M.focus();
|
|
350
|
+
}, _ = () => t(C.CLOSE), w = async (r, b) => {
|
|
355
351
|
r.items ? (u.value = b, a.value = !0) : (u.value = b, a.value = !1, _());
|
|
356
|
-
},
|
|
357
|
-
l.value > 0 ? (l.value -= 1,
|
|
352
|
+
}, $ = () => {
|
|
353
|
+
l.value > 0 ? (l.value -= 1, d.value[l.value].disabled && $()) : l.value = n.value, v();
|
|
358
354
|
}, R = () => {
|
|
359
|
-
l.value < n.value ? (l.value += 1,
|
|
360
|
-
},
|
|
361
|
-
var
|
|
362
|
-
(
|
|
363
|
-
},
|
|
355
|
+
l.value < n.value ? (l.value += 1, d.value[l.value].disabled && R()) : l.value = 0, v();
|
|
356
|
+
}, Y = (r, b) => {
|
|
357
|
+
var M;
|
|
358
|
+
(M = r == null ? void 0 : r.items) != null && M.length && (u.value = b, a.value = !0);
|
|
359
|
+
}, x = () => {
|
|
364
360
|
u.value && a.value && (u.value = null, a.value = !1);
|
|
365
|
-
},
|
|
361
|
+
}, ee = () => {
|
|
366
362
|
a.value = !1, u.value = null, v();
|
|
367
|
-
},
|
|
363
|
+
}, ne = B(() => {
|
|
368
364
|
var r;
|
|
369
365
|
return (r = s == null ? void 0 : s.value) == null ? void 0 : r.$el.offsetHeight;
|
|
370
|
-
}),
|
|
371
|
-
var r, b,
|
|
372
|
-
return (
|
|
373
|
-
}),
|
|
366
|
+
}), te = B(() => {
|
|
367
|
+
var r, b, M;
|
|
368
|
+
return (M = (b = (r = i == null ? void 0 : i.value) == null ? void 0 : r[0]) == null ? void 0 : b.$el) == null ? void 0 : M.offsetHeight;
|
|
369
|
+
}), oe = B(() => a.value ? `${te.value}px` : `${ne.value}px`);
|
|
374
370
|
return {
|
|
375
371
|
// Values
|
|
376
|
-
menuItemListRef:
|
|
372
|
+
menuItemListRef: c,
|
|
377
373
|
menuItemListWrapperRef: s,
|
|
378
374
|
subMenuItemListRef: i,
|
|
379
|
-
computedData:
|
|
380
|
-
computedHeight:
|
|
375
|
+
computedData: d,
|
|
376
|
+
computedHeight: oe,
|
|
381
377
|
focusedIndex: l,
|
|
382
378
|
subMenuFocusedIndex: o,
|
|
383
379
|
showSubMenu: a,
|
|
@@ -385,23 +381,23 @@ const Ne = /* @__PURE__ */ L(Ee, [["render", Ke], ["__scopeId", "data-v-67456329
|
|
|
385
381
|
// Methods
|
|
386
382
|
toggleMenu: w,
|
|
387
383
|
closeMenu: _,
|
|
388
|
-
focusPrevious:
|
|
384
|
+
focusPrevious: $,
|
|
389
385
|
focusNext: R,
|
|
390
|
-
focusRight:
|
|
391
|
-
focusLeft:
|
|
392
|
-
onBackButton:
|
|
386
|
+
focusRight: Y,
|
|
387
|
+
focusLeft: x,
|
|
388
|
+
onBackButton: ee
|
|
393
389
|
};
|
|
394
390
|
}
|
|
395
391
|
});
|
|
396
|
-
const
|
|
397
|
-
function
|
|
398
|
-
const u =
|
|
399
|
-
return m(),
|
|
392
|
+
const Ee = ["onKeydown"];
|
|
393
|
+
function Ne(e, t, c, s, i, a) {
|
|
394
|
+
const u = h("menu-item"), l = h("sub-menu-item-list"), o = h("menu-list-container");
|
|
395
|
+
return m(), L(o, {
|
|
400
396
|
ref: "menuItemListWrapperRef",
|
|
401
397
|
style: G({ height: e.computedHeight })
|
|
402
398
|
}, {
|
|
403
399
|
default: g(() => [
|
|
404
|
-
|
|
400
|
+
O("ul", {
|
|
405
401
|
ref: "menuItemListRef",
|
|
406
402
|
class: "b-menu-item-list",
|
|
407
403
|
role: "menu",
|
|
@@ -413,19 +409,19 @@ function Ae(e, t, d, s, i, a) {
|
|
|
413
409
|
]
|
|
414
410
|
}, [
|
|
415
411
|
(m(!0), k(Z, null, z(e.computedData, (n, p) => {
|
|
416
|
-
var
|
|
412
|
+
var d, v, _, w;
|
|
417
413
|
return m(), k("li", {
|
|
418
414
|
key: `menu-item-${p}`,
|
|
419
415
|
class: "b-menu-item-list__item",
|
|
420
416
|
role: "none",
|
|
421
417
|
onKeydown: [
|
|
422
|
-
y((
|
|
423
|
-
t[0] || (t[0] = y((
|
|
418
|
+
y(($) => e.focusRight(n, p), ["right"]),
|
|
419
|
+
t[0] || (t[0] = y(($) => e.focusLeft(), ["left"]))
|
|
424
420
|
]
|
|
425
421
|
}, [
|
|
426
422
|
I(u, {
|
|
427
423
|
text: n.text,
|
|
428
|
-
handler: (
|
|
424
|
+
handler: (d = n.items) != null && d.length ? () => null : n.handler,
|
|
429
425
|
"secondary-text": n.secondaryText,
|
|
430
426
|
icon: n.icon,
|
|
431
427
|
chevron: !!((v = n.items) != null && v.length),
|
|
@@ -435,9 +431,9 @@ function Ae(e, t, d, s, i, a) {
|
|
|
435
431
|
tabindex: p === e.subMenuFocusedIndex ? "0" : "-1",
|
|
436
432
|
"aria-haspopup": !!((_ = n.items) != null && _.length),
|
|
437
433
|
"aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === p,
|
|
438
|
-
onClick: (
|
|
434
|
+
onClick: ($) => e.toggleMenu(n, p)
|
|
439
435
|
}, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
|
|
440
|
-
(w = n.items) != null && w.length && e.showSubMenu && e.visibleSubMenuIndex === p ? (m(),
|
|
436
|
+
(w = n.items) != null && w.length && e.showSubMenu && e.visibleSubMenuIndex === p ? (m(), L(l, {
|
|
441
437
|
key: 0,
|
|
442
438
|
ref_for: !0,
|
|
443
439
|
ref: "subMenuItemListRef",
|
|
@@ -446,18 +442,18 @@ function Ae(e, t, d, s, i, a) {
|
|
|
446
442
|
onBack: e.onBackButton,
|
|
447
443
|
onClose: e.closeMenu
|
|
448
444
|
}, null, 8, ["items", "title", "onBack", "onClose"])) : P("", !0)
|
|
449
|
-
], 40,
|
|
445
|
+
], 40, Ee);
|
|
450
446
|
}), 128))
|
|
451
447
|
], 544)
|
|
452
448
|
]),
|
|
453
449
|
_: 1
|
|
454
450
|
}, 8, ["style"]);
|
|
455
451
|
}
|
|
456
|
-
const
|
|
452
|
+
const Re = /* @__PURE__ */ S(Te, [["render", Ne], ["__scopeId", "data-v-a917040d"]]), De = K({
|
|
457
453
|
i18n: { messages: X },
|
|
458
454
|
name: "bento-menu",
|
|
459
|
-
components: { BentoButton:
|
|
460
|
-
directives: { BentoClickOutsideDirective:
|
|
455
|
+
components: { BentoButton: pe, BentoPopover: fe, MenuItemList: Re, OptionsVerticalIcon: Be },
|
|
456
|
+
directives: { BentoClickOutsideDirective: me },
|
|
461
457
|
props: {
|
|
462
458
|
/**
|
|
463
459
|
* The data to be displayed in the list
|
|
@@ -468,12 +464,11 @@ const Fe = /* @__PURE__ */ L(De, [["render", Ae], ["__scopeId", "data-v-a917040d
|
|
|
468
464
|
},
|
|
469
465
|
/**
|
|
470
466
|
* The position of where the menu should open.
|
|
471
|
-
* @see BentoPopoverPositions
|
|
472
467
|
*/
|
|
473
468
|
menuPosition: {
|
|
474
469
|
type: String,
|
|
475
|
-
default:
|
|
476
|
-
validator: (e) => Object.values(
|
|
470
|
+
default: H.BOTTOM_START,
|
|
471
|
+
validator: (e) => Object.values(H).includes(e)
|
|
477
472
|
},
|
|
478
473
|
/**
|
|
479
474
|
* Instructs the menu popover to be visible outside of the containing container.
|
|
@@ -496,23 +491,20 @@ const Fe = /* @__PURE__ */ L(De, [["render", Ae], ["__scopeId", "data-v-a917040d
|
|
|
496
491
|
button: {
|
|
497
492
|
type: Object,
|
|
498
493
|
default: () => ({
|
|
499
|
-
variant:
|
|
494
|
+
variant: "secondary"
|
|
500
495
|
})
|
|
501
496
|
}
|
|
502
497
|
},
|
|
503
|
-
emits: [
|
|
498
|
+
emits: [C.CLOSE, C.OPEN],
|
|
504
499
|
setup(e, { emit: t }) {
|
|
505
|
-
const
|
|
506
|
-
s.value = !0, t(
|
|
500
|
+
const c = f(null), s = f(!1), i = f(!1), a = F("menu"), u = F("menu-popover"), l = B(() => e.menuWidth ? { width: `${e.menuWidth}px` } : null), o = () => {
|
|
501
|
+
s.value = !0, t(C.OPEN);
|
|
507
502
|
}, n = () => {
|
|
508
|
-
s.value && (s.value = !1,
|
|
503
|
+
s.value && (s.value = !1, c.value.$el.focus(), t(C.CLOSE));
|
|
509
504
|
};
|
|
510
505
|
return {
|
|
511
|
-
// Enums
|
|
512
|
-
BentoButtonVariant: V,
|
|
513
|
-
BentoPopoverPositions: K,
|
|
514
506
|
// Values
|
|
515
|
-
menuButtonRef:
|
|
507
|
+
menuButtonRef: c,
|
|
516
508
|
menuId: a,
|
|
517
509
|
popoverId: u,
|
|
518
510
|
showMenu: s,
|
|
@@ -532,26 +524,26 @@ const Fe = /* @__PURE__ */ L(De, [["render", Ae], ["__scopeId", "data-v-a917040d
|
|
|
532
524
|
};
|
|
533
525
|
}
|
|
534
526
|
});
|
|
535
|
-
function
|
|
536
|
-
const u =
|
|
537
|
-
return
|
|
527
|
+
function Fe(e, t, c, s, i, a) {
|
|
528
|
+
const u = h("options-vertical-icon"), l = h("bento-button"), o = h("menu-item-list"), n = h("bento-popover"), p = de("bento-click-outside-directive");
|
|
529
|
+
return ce((m(), k("div", {
|
|
538
530
|
class: "b-menu",
|
|
539
531
|
onKeydown: [
|
|
540
|
-
t[0] || (t[0] = y((...
|
|
541
|
-
t[1] || (t[1] = y((...
|
|
542
|
-
t[2] || (t[2] = y((...
|
|
532
|
+
t[0] || (t[0] = y((...d) => e.onKeyDown && e.onKeyDown(...d), ["down"])),
|
|
533
|
+
t[1] || (t[1] = y((...d) => e.onKeyUp && e.onKeyUp(...d), ["up"])),
|
|
534
|
+
t[2] || (t[2] = y((...d) => e.closeMenu && e.closeMenu(...d), ["esc"]))
|
|
543
535
|
]
|
|
544
536
|
}, [
|
|
545
|
-
I(l,
|
|
537
|
+
I(l, V({
|
|
546
538
|
ref: "menuButtonRef",
|
|
547
539
|
"aria-haspopup": "true"
|
|
548
540
|
}, e.button, {
|
|
549
|
-
"aria-expanded": e.showMenu
|
|
541
|
+
"aria-expanded": `${e.showMenu}`,
|
|
550
542
|
"aria-controls": e.showMenu ? e.menuId : null,
|
|
551
543
|
onClick: e.toggleShowMenu
|
|
552
544
|
}), {
|
|
553
545
|
iconLeft: g(() => [
|
|
554
|
-
|
|
546
|
+
j(e.$slots, "default", {}, () => [
|
|
555
547
|
I(u, {
|
|
556
548
|
title: e.$t("menuButton")
|
|
557
549
|
}, null, 8, ["title"])
|
|
@@ -559,7 +551,7 @@ function He(e, t, d, s, i, a) {
|
|
|
559
551
|
]),
|
|
560
552
|
_: 3
|
|
561
553
|
}, 16, ["aria-expanded", "aria-controls", "onClick"]),
|
|
562
|
-
e.menuButtonRef ? (m(),
|
|
554
|
+
e.menuButtonRef ? (m(), L(n, {
|
|
563
555
|
key: 0,
|
|
564
556
|
id: e.menuId,
|
|
565
557
|
open: e.showMenu,
|
|
@@ -583,9 +575,9 @@ function He(e, t, d, s, i, a) {
|
|
|
583
575
|
[p, e.closeMenu]
|
|
584
576
|
]);
|
|
585
577
|
}
|
|
586
|
-
const
|
|
578
|
+
const Ge = /* @__PURE__ */ S(De, [["render", Fe], ["__scopeId", "data-v-487dd6cd"]]);
|
|
587
579
|
export {
|
|
588
|
-
|
|
589
|
-
|
|
580
|
+
Ge as BentoMenu,
|
|
581
|
+
C as BentoMenuEvent
|
|
590
582
|
};
|
|
591
583
|
//# sourceMappingURL=menu.js.map
|