@adyen/bento-vue3 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +8 -4
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
- package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -57
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +27 -29
- package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +136 -128
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +46 -15
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +6 -7
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +37 -11
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -22
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +277 -16
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +164 -104
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
- package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -27
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -11
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +53 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +61 -58
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +19 -390
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +6 -9
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -10
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
- package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +8 -1
- package/dist/@types/packages/vue2/src/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
- package/dist/accordion.js +104 -254
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +61 -64
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chevron-up.css +1 -0
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +2 -2
- package/dist/button.js +143 -12
- package/dist/button.js.map +1 -1
- package/dist/card.js +99 -94
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +40 -39
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/base-button.6d2843c2.js +108 -0
- package/dist/chunks/base-button.6d2843c2.js.map +1 -0
- package/dist/chunks/base-modal.3ccb9eb5.js +291 -0
- package/dist/chunks/base-modal.3ccb9eb5.js.map +1 -0
- package/dist/chunks/{button.e1c39f66.js → button.a8462029.js} +39 -42
- package/dist/chunks/button.a8462029.js.map +1 -0
- package/dist/chunks/{calendar.09b683b3.js → calendar.3f930683.js} +237 -240
- package/dist/chunks/calendar.3f930683.js.map +1 -0
- package/dist/chunks/checkbox.5e1e05ae.js +235 -0
- package/dist/chunks/checkbox.5e1e05ae.js.map +1 -0
- package/dist/chunks/{chevron-down.69bedf14.js → chevron-up.c03b58f8.js} +8 -8
- package/dist/chunks/chevron-up.c03b58f8.js.map +1 -0
- package/dist/chunks/controls-group.3b0dfb94.js +136 -0
- package/dist/chunks/controls-group.3b0dfb94.js.map +1 -0
- package/dist/chunks/{copy.2cf5e6c3.js → copy.1d14b783.js} +49 -50
- package/dist/chunks/copy.1d14b783.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.203e747f.js → dropdown-default-textbox.a90e84f9.js} +88 -90
- package/dist/chunks/dropdown-default-textbox.a90e84f9.js.map +1 -0
- package/dist/chunks/{dropdown.8b415aac.js → dropdown.b798a82e.js} +348 -330
- package/dist/chunks/dropdown.b798a82e.js.map +1 -0
- package/dist/chunks/{error-message.ddfe8ea5.js → error-message.9acead25.js} +16 -16
- package/dist/chunks/error-message.9acead25.js.map +1 -0
- package/dist/chunks/footer-actions.9537d0df.js +111 -0
- package/dist/chunks/footer-actions.9537d0df.js.map +1 -0
- package/dist/chunks/get-slot-text.bead058f.js +9 -0
- package/dist/chunks/get-slot-text.bead058f.js.map +1 -0
- package/dist/chunks/{grid-layout.a30855ff.js → grid-layout.984317d7.js} +2 -2
- package/dist/chunks/{grid-layout.a30855ff.js.map → grid-layout.984317d7.js.map} +1 -1
- package/dist/chunks/index.228ecda0.js +101 -0
- package/dist/chunks/index.228ecda0.js.map +1 -0
- package/dist/chunks/index.89b00b94.js +124 -0
- package/dist/chunks/index.89b00b94.js.map +1 -0
- package/dist/chunks/{index.3da90517.js → index.9d8273fc.js} +38 -40
- package/dist/chunks/index.9d8273fc.js.map +1 -0
- package/dist/chunks/{index.c9225c3b.js → index.c2a80208.js} +195 -201
- package/dist/chunks/index.c2a80208.js.map +1 -0
- package/dist/chunks/{index.13949709.js → index.d26fdf71.js} +116 -113
- package/dist/chunks/{index.13949709.js.map → index.d26fdf71.js.map} +1 -1
- package/dist/chunks/{index.d27367cd.js → index.e84dbeae.js} +80 -83
- package/dist/chunks/{index.d27367cd.js.map → index.e84dbeae.js.map} +1 -1
- package/dist/chunks/listbox-option-tag.0c9c571e.js +129 -0
- package/dist/chunks/listbox-option-tag.0c9c571e.js.map +1 -0
- package/dist/chunks/{listbox.0c7c4e5e.js → listbox.6b52af1a.js} +315 -334
- package/dist/chunks/listbox.6b52af1a.js.map +1 -0
- package/dist/chunks/{loading-button.61d8ebe5.js → loading-button.081adbf3.js} +33 -33
- package/dist/chunks/loading-button.081adbf3.js.map +1 -0
- package/dist/chunks/tabs.keys.358742f2.js +7 -0
- package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
- package/dist/chunks/{tooltip.835d9b52.js → tooltip.e4e34b86.js} +56 -59
- package/dist/chunks/tooltip.e4e34b86.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js +16 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js.map +1 -0
- package/dist/chunks/use-has-slot.9fac7123.js +16 -0
- package/dist/chunks/use-has-slot.9fac7123.js.map +1 -0
- package/dist/code-snippet.js +548 -463
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +501 -505
- package/dist/country.js.map +1 -1
- package/dist/currency.js +38 -41
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +837 -833
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +83 -87
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +30 -32
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +166 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/filter-bar.js +986 -935
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +72 -72
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +50 -52
- package/dist/header.js.map +1 -1
- package/dist/image.js +76 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +239 -232
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +241 -269
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +38 -36
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +131 -139
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +121 -356
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +182 -185
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +19 -23
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +56 -52
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +36 -41
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +112 -113
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +77 -91
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +88 -75
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +122 -121
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +18 -21
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +129 -162
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +83 -75
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +32 -35
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +156 -155
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +212 -213
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +68 -72
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +75 -73
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +11 -10
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -58
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/chevron-down.css +0 -1
- package/dist/chunks/base-button.20be08da.js +0 -111
- package/dist/chunks/base-button.20be08da.js.map +0 -1
- package/dist/chunks/button-actions.54e28e75.js +0 -124
- package/dist/chunks/button-actions.54e28e75.js.map +0 -1
- package/dist/chunks/button.e1c39f66.js.map +0 -1
- package/dist/chunks/calendar.09b683b3.js.map +0 -1
- package/dist/chunks/checkbox.a404069b.js +0 -226
- package/dist/chunks/checkbox.a404069b.js.map +0 -1
- package/dist/chunks/chevron-down.69bedf14.js.map +0 -1
- package/dist/chunks/controls-group.60fb2a86.js +0 -136
- package/dist/chunks/controls-group.60fb2a86.js.map +0 -1
- package/dist/chunks/copy.2cf5e6c3.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.203e747f.js.map +0 -1
- package/dist/chunks/dropdown.8b415aac.js.map +0 -1
- package/dist/chunks/error-message.ddfe8ea5.js.map +0 -1
- package/dist/chunks/footer-actions.0f640f87.js +0 -106
- package/dist/chunks/footer-actions.0f640f87.js.map +0 -1
- package/dist/chunks/get-slot-text.2db867f8.js +0 -9
- package/dist/chunks/get-slot-text.2db867f8.js.map +0 -1
- package/dist/chunks/index.222d29b0.js +0 -120
- package/dist/chunks/index.222d29b0.js.map +0 -1
- package/dist/chunks/index.3da90517.js.map +0 -1
- package/dist/chunks/index.aa34e363.js +0 -104
- package/dist/chunks/index.aa34e363.js.map +0 -1
- package/dist/chunks/index.c9225c3b.js.map +0 -1
- package/dist/chunks/listbox-option-tag.5ae8b79b.js +0 -133
- package/dist/chunks/listbox-option-tag.5ae8b79b.js.map +0 -1
- package/dist/chunks/listbox.0c7c4e5e.js.map +0 -1
- package/dist/chunks/loading-button.61d8ebe5.js.map +0 -1
- package/dist/chunks/tooltip.835d9b52.js.map +0 -1
- package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
- package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
- package/dist/chunks/use-has-slot.068222e6.js +0 -5
- package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { PropType } from "../../../../vue3/node_modules/vue";
|
|
2
|
-
import { PopperContainerAriaRole
|
|
3
|
-
import { BentoTypographyElement, BentoTypographyVariant } from "../typography";
|
|
2
|
+
import { PopperContainerAriaRole } from "../popper-container";
|
|
4
3
|
import { VueNodeElement } from "../../types";
|
|
5
4
|
export declare const Tooltip: {
|
|
6
5
|
name: string;
|
|
7
6
|
components: {
|
|
8
7
|
BentoTypography: import("../../../../vue3/node_modules/vue").DefineComponent<{
|
|
9
8
|
el: {
|
|
10
|
-
type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement>;
|
|
11
|
-
default: BentoTypographyElement;
|
|
12
|
-
validator: (value: BentoTypographyElement) => boolean;
|
|
9
|
+
type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
|
|
10
|
+
default: import("../typography").BentoTypographyElement;
|
|
11
|
+
validator: (value: import("../typography").BentoTypographyElement) => boolean;
|
|
13
12
|
};
|
|
14
13
|
stronger: {
|
|
15
14
|
type: BooleanConstructor;
|
|
@@ -20,9 +19,9 @@ export declare const Tooltip: {
|
|
|
20
19
|
default: boolean;
|
|
21
20
|
};
|
|
22
21
|
variant: {
|
|
23
|
-
type: PropType<"body" | "caption" | "title" | "subtitle" | BentoTypographyVariant>;
|
|
24
|
-
default: BentoTypographyVariant;
|
|
25
|
-
validator: (value: BentoTypographyVariant) => boolean;
|
|
22
|
+
type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
|
|
23
|
+
default: import("../typography").BentoTypographyVariant;
|
|
24
|
+
validator: (value: import("../typography").BentoTypographyVariant) => boolean;
|
|
26
25
|
};
|
|
27
26
|
medium: {
|
|
28
27
|
type: BooleanConstructor;
|
|
@@ -42,9 +41,9 @@ export declare const Tooltip: {
|
|
|
42
41
|
}>;
|
|
43
42
|
}, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
|
|
44
43
|
el: {
|
|
45
|
-
type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement>;
|
|
46
|
-
default: BentoTypographyElement;
|
|
47
|
-
validator: (value: BentoTypographyElement) => boolean;
|
|
44
|
+
type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement>;
|
|
45
|
+
default: import("../typography").BentoTypographyElement;
|
|
46
|
+
validator: (value: import("../typography").BentoTypographyElement) => boolean;
|
|
48
47
|
};
|
|
49
48
|
stronger: {
|
|
50
49
|
type: BooleanConstructor;
|
|
@@ -55,9 +54,9 @@ export declare const Tooltip: {
|
|
|
55
54
|
default: boolean;
|
|
56
55
|
};
|
|
57
56
|
variant: {
|
|
58
|
-
type: PropType<"body" | "caption" | "title" | "subtitle" | BentoTypographyVariant>;
|
|
59
|
-
default: BentoTypographyVariant;
|
|
60
|
-
validator: (value: BentoTypographyVariant) => boolean;
|
|
57
|
+
type: PropType<"body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant>;
|
|
58
|
+
default: import("../typography").BentoTypographyVariant;
|
|
59
|
+
validator: (value: import("../typography").BentoTypographyVariant) => boolean;
|
|
61
60
|
};
|
|
62
61
|
medium: {
|
|
63
62
|
type: BooleanConstructor;
|
|
@@ -75,8 +74,8 @@ export declare const Tooltip: {
|
|
|
75
74
|
wide: boolean;
|
|
76
75
|
stronger: boolean;
|
|
77
76
|
strongest: boolean;
|
|
78
|
-
el: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement;
|
|
79
|
-
variant: "body" | "caption" | "title" | "subtitle" | BentoTypographyVariant;
|
|
77
|
+
el: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | import("../typography").BentoTypographyElement;
|
|
78
|
+
variant: "body" | "caption" | "title" | "subtitle" | import("../typography").BentoTypographyVariant;
|
|
80
79
|
medium: boolean;
|
|
81
80
|
large: boolean;
|
|
82
81
|
}>;
|
|
@@ -85,17 +84,13 @@ export declare const Tooltip: {
|
|
|
85
84
|
type: StringConstructor;
|
|
86
85
|
default: any;
|
|
87
86
|
};
|
|
88
|
-
ariaLabel: {
|
|
89
|
-
type: StringConstructor;
|
|
90
|
-
default: any;
|
|
91
|
-
};
|
|
92
87
|
targetElement: {
|
|
93
88
|
type: PropType<VueNodeElement>;
|
|
94
89
|
required: true;
|
|
95
90
|
};
|
|
96
91
|
position: {
|
|
97
|
-
type: PropType<"
|
|
98
|
-
default: PopperContainerPositionExtended;
|
|
92
|
+
type: PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition>;
|
|
93
|
+
default: import("../popper-container").PopperContainerPositionExtended;
|
|
99
94
|
validator: (value: unknown) => boolean;
|
|
100
95
|
};
|
|
101
96
|
fixedPositioning: {
|
|
@@ -149,17 +144,13 @@ export declare const Tooltip: {
|
|
|
149
144
|
type: StringConstructor;
|
|
150
145
|
default: any;
|
|
151
146
|
};
|
|
152
|
-
ariaLabel: {
|
|
153
|
-
type: StringConstructor;
|
|
154
|
-
default: any;
|
|
155
|
-
};
|
|
156
147
|
targetElement: {
|
|
157
148
|
type: PropType<VueNodeElement>;
|
|
158
149
|
required: true;
|
|
159
150
|
};
|
|
160
151
|
position: {
|
|
161
|
-
type: PropType<"
|
|
162
|
-
default: PopperContainerPositionExtended;
|
|
152
|
+
type: PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition>;
|
|
153
|
+
default: import("../popper-container").PopperContainerPositionExtended;
|
|
163
154
|
validator: (value: unknown) => boolean;
|
|
164
155
|
};
|
|
165
156
|
fixedPositioning: {
|
|
@@ -197,13 +188,12 @@ export declare const Tooltip: {
|
|
|
197
188
|
validator: (value: unknown) => boolean;
|
|
198
189
|
};
|
|
199
190
|
}>>, {
|
|
200
|
-
|
|
191
|
+
position: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition;
|
|
192
|
+
offset: number[];
|
|
201
193
|
modifiers: unknown[];
|
|
202
194
|
arrow: any;
|
|
203
|
-
offset: number[];
|
|
204
|
-
position: "left" | "auto" | "top" | "right" | "bottom" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | import("../popper-container").PopperContainerPosition;
|
|
205
195
|
matchWidth: boolean;
|
|
206
|
-
|
|
196
|
+
id: string;
|
|
207
197
|
fixedPositioning: boolean;
|
|
208
198
|
disabledFocusTrap: boolean;
|
|
209
199
|
fallbackPosition: import("../popper-container").FallbackPositionProp;
|
|
@@ -238,10 +228,7 @@ export declare const Tooltip: {
|
|
|
238
228
|
};
|
|
239
229
|
};
|
|
240
230
|
setup(props: any): {
|
|
241
|
-
BentoTypographyElement: typeof BentoTypographyElement;
|
|
242
|
-
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
243
231
|
PopperContainerAriaRole: typeof PopperContainerAriaRole;
|
|
244
|
-
PopperContainerPositionExtended: typeof PopperContainerPositionExtended;
|
|
245
232
|
conditionalClasses: import("../../../../vue3/node_modules/vue").ComputedRef<{
|
|
246
233
|
[x: string]: boolean;
|
|
247
234
|
}>;
|
|
@@ -275,10 +262,7 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
|
|
|
275
262
|
default: boolean;
|
|
276
263
|
};
|
|
277
264
|
}, {
|
|
278
|
-
BentoTypographyElement: typeof BentoTypographyElement;
|
|
279
|
-
BentoTypographyVariant: typeof BentoTypographyVariant;
|
|
280
265
|
PopperContainerAriaRole: typeof PopperContainerAriaRole;
|
|
281
|
-
PopperContainerPositionExtended: typeof PopperContainerPositionExtended;
|
|
282
266
|
conditionalClasses: import("../../../../vue3/node_modules/vue").ComputedRef<{
|
|
283
267
|
[x: string]: boolean;
|
|
284
268
|
}>;
|
|
@@ -310,9 +294,9 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
|
|
|
310
294
|
default: boolean;
|
|
311
295
|
};
|
|
312
296
|
}>>, {
|
|
313
|
-
id: string;
|
|
314
|
-
offset: number;
|
|
315
297
|
position: import("../popper-container").PopperContainerPositionBasic;
|
|
298
|
+
offset: number;
|
|
299
|
+
id: string;
|
|
316
300
|
isShown: boolean;
|
|
317
301
|
}>;
|
|
318
302
|
export default _default;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Slot } from "../../../../vue3/node_modules/vue";
|
|
2
|
+
export declare const useDefaultSlotValidator: (componentName: string, defaultSlot: Slot, ...optionalSlots: Slot[]) => void;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import { VNode } from "../../../../../node_modules/vue-demi";
|
|
1
2
|
import type { Slots } from "../../../../vue3/node_modules/vue";
|
|
2
|
-
export declare const useHasSlot: (slots:
|
|
3
|
+
export declare const useHasSlot: (slots: Readonly<{
|
|
4
|
+
[name: string]: import("../../../../../node_modules/vue-demi").Slot;
|
|
5
|
+
}> | {
|
|
6
|
+
[key: string]: VNode<import("../../../../../node_modules/vue-demi").RendererNode, import("../../../../../node_modules/vue-demi").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>[];
|
|
9
|
+
}) => (name: string) => boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import BentoVue from './install';
|
|
2
|
+
export * from './components/accordion';
|
|
2
3
|
export * from './components/alert';
|
|
3
4
|
export * from './components/button';
|
|
4
5
|
export * from './components/data-grid';
|
|
@@ -13,8 +14,10 @@ export * from './components/country';
|
|
|
13
14
|
export * from './components/currency';
|
|
14
15
|
export * from './components/date';
|
|
15
16
|
export * from './components/divider';
|
|
17
|
+
export * from './components/empty-state';
|
|
16
18
|
export * from './components/filter-bar';
|
|
17
19
|
export * from './components/form-layout';
|
|
20
|
+
export * from './components/image';
|
|
18
21
|
export * from './components/info-icon';
|
|
19
22
|
export * from './components/input-field';
|
|
20
23
|
export * from './components/loading-indicator';
|
package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_modules/vue").DefineComponent<{}, {}, {}, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{}>>, {}>, Record<string, (_: {}) => any> & {
|
|
2
|
+
default: (_: {}) => any;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
+
new (): {
|
|
7
|
+
$slots: S;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function printDevelopmentWarning(...args: Parameters<typeof console.warn>): void;
|
package/dist/accordion.js
CHANGED
|
@@ -1,274 +1,124 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { C as
|
|
1
|
+
import { defineComponent as g, provide as T, toRef as k, openBlock as c, createElementBlock as x, renderSlot as S, ref as r, inject as B, watch as f, nextTick as $, createVNode as b, unref as e, withCtx as y, createElementVNode as d, createBlock as h, createTextVNode as w, toDisplayString as D, Transition as O, withDirectives as z, normalizeStyle as A, vShow as H } from "vue";
|
|
2
|
+
import { _ as C } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
|
+
import { B as R } from "./chunks/index.89b00b94.js";
|
|
4
|
+
import { C as V, a as j } from "./chunks/chevron-up.c03b58f8.js";
|
|
5
|
+
import { g as I } from "./chunks/unique-id.a2a2b458.js";
|
|
5
6
|
import "./assets/index2.css";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
name: "adl-accordion",
|
|
7
|
+
const E = Symbol("accordion title size injection key"), U = { class: "b-accordion" }, q = {}, J = /* @__PURE__ */ g({
|
|
8
|
+
...q,
|
|
9
|
+
__name: "accordion",
|
|
10
10
|
props: {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* - true: all accordion items can be expanded at a time
|
|
15
|
-
* - false: only one accordion item can be expanded at a time
|
|
12
|
+
* Controls accordion title size.
|
|
13
|
+
* @values default, small
|
|
16
14
|
*/
|
|
17
|
-
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: !0
|
|
20
|
-
},
|
|
21
|
-
/**
|
|
22
|
-
* Grouped represents if the accordion is grouped inside a container or not
|
|
23
|
-
* - true: grouped inside a container
|
|
24
|
-
* - false: independent accordion item
|
|
25
|
-
*/
|
|
26
|
-
grouped: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
},
|
|
30
|
-
/**
|
|
31
|
-
* Indicates the position of caret in the accordion. The default is right.
|
|
32
|
-
* - true: caret is on right
|
|
33
|
-
* - false: caret is on left
|
|
34
|
-
*/
|
|
35
|
-
caretRight: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: !0
|
|
38
|
-
},
|
|
39
|
-
/**
|
|
40
|
-
* Variant represents accordion variant
|
|
41
|
-
* @values enum AccordionVariant
|
|
42
|
-
*/
|
|
43
|
-
variant: {
|
|
15
|
+
titleSize: {
|
|
44
16
|
type: String,
|
|
45
|
-
default:
|
|
46
|
-
validator: (e) => Object.values(s).includes(e)
|
|
17
|
+
default: "default"
|
|
47
18
|
}
|
|
48
19
|
},
|
|
49
|
-
|
|
50
|
-
return
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
simultaneouslyExpandAllTabs: this.simultaneouslyExpandAllTabs,
|
|
54
|
-
variant: this.variant,
|
|
55
|
-
grouped: this.grouped,
|
|
56
|
-
caretRight: this.caretRight
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
},
|
|
60
|
-
computed: {
|
|
61
|
-
conditionalClasses() {
|
|
62
|
-
return {
|
|
63
|
-
[`ds-accordion--${s.GHOST}`]: this.variant === s.GHOST,
|
|
64
|
-
[`ds-accordion--${c.GROUPED}`]: this.grouped,
|
|
65
|
-
[`ds-accordion--${c.SEPARATE}`]: !this.grouped
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
provide() {
|
|
70
|
-
const e = E(
|
|
71
|
-
() => ({
|
|
72
|
-
caretRight: this.caretRight,
|
|
73
|
-
grouped: this.grouped,
|
|
74
|
-
variant: this.variant,
|
|
75
|
-
simultaneouslyExpandAllTabs: this.simultaneouslyExpandAllTabs,
|
|
76
|
-
registerItem: this.registerItem,
|
|
77
|
-
getItem: this.getItem,
|
|
78
|
-
open: this.open,
|
|
79
|
-
close: this.close
|
|
80
|
-
})
|
|
81
|
-
);
|
|
82
|
-
return {
|
|
83
|
-
[v]: e
|
|
84
|
-
};
|
|
85
|
-
},
|
|
86
|
-
methods: {
|
|
87
|
-
getUniqueId() {
|
|
88
|
-
return A("accordion-item");
|
|
89
|
-
},
|
|
90
|
-
registerItem(e = !1) {
|
|
91
|
-
var l;
|
|
92
|
-
const t = this.getUniqueId, n = t();
|
|
93
|
-
return (l = this.accordion.items) == null || l.push({ id: n, opened: e }), { id: n, opened: e };
|
|
94
|
-
},
|
|
95
|
-
getItem(e) {
|
|
96
|
-
return this.accordion.items.find((t) => t.id === e);
|
|
97
|
-
},
|
|
98
|
-
open(e) {
|
|
99
|
-
if (this.accordion.simultaneouslyExpandAllTabs)
|
|
100
|
-
this.accordion.items.find((t) => t.id === e).opened = !0;
|
|
101
|
-
else {
|
|
102
|
-
const t = this.accordion.items.map((n) => ({ id: n.id, opened: n.id === e }));
|
|
103
|
-
this.accordion.items = t;
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
close(e) {
|
|
107
|
-
this.accordion.items.find((t) => t.id === e).opened = !1;
|
|
108
|
-
}
|
|
20
|
+
setup(a) {
|
|
21
|
+
return T(E, k(a, "titleSize")), (i, _) => (c(), x("div", U, [
|
|
22
|
+
S(i.$slots, "default", {}, void 0, !0)
|
|
23
|
+
]));
|
|
109
24
|
}
|
|
110
25
|
});
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"data-testid": "adl-accordion"
|
|
115
|
-
}, [
|
|
116
|
-
d(e.$slots, "default", {}, void 0, !0)
|
|
117
|
-
], 2);
|
|
118
|
-
}
|
|
119
|
-
const Q = /* @__PURE__ */ _(O, [["render", k], ["__scopeId", "data-v-ae8b8b28"]]), U = m({
|
|
120
|
-
name: "adl-accordion-item",
|
|
121
|
-
components: { ChevronDown: P, ChevronUp: R },
|
|
122
|
-
// Props attribute is required by provide/inject. Do not delete.
|
|
26
|
+
const ee = /* @__PURE__ */ C(J, [["__scopeId", "data-v-9fccc066"]]), K = { class: "b-accordion-item" }, L = ["id", "aria-controls", "aria-expanded"], M = ["id", "aria-labelledby"], Y = {}, Z = /* @__PURE__ */ g({
|
|
27
|
+
...Y,
|
|
28
|
+
__name: "accordion-item",
|
|
123
29
|
props: {
|
|
124
30
|
/**
|
|
125
|
-
*
|
|
126
|
-
* NOTE: This Prop defintion can be removed when the following issue is resolved:
|
|
127
|
-
* https://github.com/vuejs/vue/issues/8969
|
|
31
|
+
* Sets the title of the accordion item.
|
|
128
32
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
data: () => ({
|
|
133
|
-
item: {
|
|
134
|
-
id: void 0,
|
|
135
|
-
opened: !1
|
|
136
|
-
}
|
|
137
|
-
}),
|
|
138
|
-
computed: {
|
|
139
|
-
accordionProvider() {
|
|
140
|
-
return this.accordion;
|
|
141
|
-
},
|
|
142
|
-
showContent() {
|
|
143
|
-
var e;
|
|
144
|
-
return (e = this.accordionProvider.getItem(this.item.id)) == null ? void 0 : e.opened;
|
|
145
|
-
},
|
|
146
|
-
conditionalClasses() {
|
|
147
|
-
return {
|
|
148
|
-
[`adl-accordion-item__caret-${g.LEFT}`]: !this.accordionProvider.caretRight,
|
|
149
|
-
[`adl-accordion-item--${s.GHOST}`]: this.accordionProvider.variant === s.GHOST,
|
|
150
|
-
[`adl-accordion-item--${c.GROUPED}`]: this.accordionProvider.grouped,
|
|
151
|
-
[`adl-accordion-item--${c.SEPARATE}`]: !this.accordionProvider.grouped
|
|
152
|
-
};
|
|
153
|
-
},
|
|
154
|
-
shouldShowIcon() {
|
|
155
|
-
return !!this.$slots.default;
|
|
156
|
-
},
|
|
157
|
-
shouldShowTitle() {
|
|
158
|
-
return !!this.$slots.title;
|
|
159
|
-
},
|
|
160
|
-
shouldShowSubtitle() {
|
|
161
|
-
return !!this.$slots.subtitle;
|
|
33
|
+
title: {
|
|
34
|
+
type: String,
|
|
35
|
+
required: !0
|
|
162
36
|
},
|
|
163
|
-
|
|
164
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Controls if the content is visible or hidden.
|
|
39
|
+
*/
|
|
40
|
+
isExpanded: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
165
43
|
}
|
|
166
44
|
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
r("h2", null, [
|
|
214
|
-
r("button", {
|
|
215
|
-
type: "button",
|
|
216
|
-
"aria-expanded": `${e.showContent}`,
|
|
217
|
-
"aria-controls": e.item.id,
|
|
218
|
-
class: "adl-accordion-item__header",
|
|
219
|
-
onClick: t[0] || (t[0] = (...b) => e.toggle && e.toggle(...b))
|
|
220
|
-
}, [
|
|
221
|
-
e.shouldShowIcon ? (o(), i("span", B, [
|
|
222
|
-
d(e.$slots, "default", {}, void 0, !0)
|
|
223
|
-
])) : a("", !0),
|
|
224
|
-
r("span", D, [
|
|
225
|
-
e.shouldShowPicture ? (o(), i("div", H, [
|
|
226
|
-
d(e.$slots, "picture", {}, void 0, !0)
|
|
227
|
-
])) : a("", !0),
|
|
228
|
-
r("div", null, [
|
|
229
|
-
e.shouldShowTitle ? (o(), i("div", L, [
|
|
230
|
-
d(e.$slots, "title", {}, void 0, !0)
|
|
231
|
-
])) : a("", !0),
|
|
232
|
-
e.shouldShowSubtitle ? (o(), i("div", N, [
|
|
233
|
-
d(e.$slots, "subtitle", {}, void 0, !0)
|
|
234
|
-
])) : a("", !0)
|
|
235
|
-
])
|
|
45
|
+
emits: ["update:is-expanded"],
|
|
46
|
+
setup(a, { emit: l }) {
|
|
47
|
+
const i = a, _ = "b-accordion-item__animation--content", p = r(null), t = r(i.isExpanded), s = r(null), u = I("accordionItemButton"), m = I("accordionItemContent"), v = B(E, "default"), N = () => {
|
|
48
|
+
var n;
|
|
49
|
+
const o = ((n = p.value) == null ? void 0 : n.scrollHeight) || null;
|
|
50
|
+
s.value = t.value ? `${o}px` : "0";
|
|
51
|
+
};
|
|
52
|
+
return f(
|
|
53
|
+
() => i.isExpanded,
|
|
54
|
+
(o) => {
|
|
55
|
+
t.value = o;
|
|
56
|
+
}
|
|
57
|
+
), f(
|
|
58
|
+
t,
|
|
59
|
+
async (o) => {
|
|
60
|
+
l("update:is-expanded", o), await $(), N();
|
|
61
|
+
},
|
|
62
|
+
{ immediate: !0 }
|
|
63
|
+
), (o, n) => (c(), x("div", K, [
|
|
64
|
+
b(e(R), {
|
|
65
|
+
el: "h3",
|
|
66
|
+
variant: e(v) === "small" ? "body" : "title",
|
|
67
|
+
strongest: e(v) === "small"
|
|
68
|
+
}, {
|
|
69
|
+
default: y(() => [
|
|
70
|
+
d("button", {
|
|
71
|
+
id: e(u),
|
|
72
|
+
"aria-controls": e(m),
|
|
73
|
+
"aria-expanded": `${t.value}`,
|
|
74
|
+
type: "button",
|
|
75
|
+
class: "b-accordion-item__button",
|
|
76
|
+
onClick: n[0] || (n[0] = (F) => t.value = !t.value)
|
|
77
|
+
}, [
|
|
78
|
+
t.value ? (c(), h(e(V), {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: "b-accordion-item__icon",
|
|
81
|
+
"svg-title": "collapse",
|
|
82
|
+
"aria-hidden": "true"
|
|
83
|
+
})) : (c(), h(e(j), {
|
|
84
|
+
key: 1,
|
|
85
|
+
class: "b-accordion-item__icon",
|
|
86
|
+
"svg-title": "expand",
|
|
87
|
+
"aria-hidden": "true"
|
|
88
|
+
})),
|
|
89
|
+
w(" " + D(a.title), 1)
|
|
90
|
+
], 8, L)
|
|
236
91
|
]),
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
r("div", F, [
|
|
258
|
-
d(e.$slots, "content", {}, void 0, !0)
|
|
92
|
+
_: 1
|
|
93
|
+
}, 8, ["variant", "strongest"]),
|
|
94
|
+
b(O, { name: _ }, {
|
|
95
|
+
default: y(() => [
|
|
96
|
+
z(d("div", {
|
|
97
|
+
id: e(m),
|
|
98
|
+
"aria-labelledby": e(u),
|
|
99
|
+
role: "region",
|
|
100
|
+
class: "b-accordion-item__container",
|
|
101
|
+
style: A(s.value ? { "max-height": s.value } : {})
|
|
102
|
+
}, [
|
|
103
|
+
d("div", {
|
|
104
|
+
ref_key: "contentDiv",
|
|
105
|
+
ref: p,
|
|
106
|
+
class: "b-accordion-item__content"
|
|
107
|
+
}, [
|
|
108
|
+
S(o.$slots, "default", {}, void 0, !0)
|
|
109
|
+
], 512)
|
|
110
|
+
], 12, M), [
|
|
111
|
+
[H, t.value]
|
|
259
112
|
])
|
|
260
|
-
]
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
268
|
-
const W = /* @__PURE__ */ _(U, [["render", M], ["__scopeId", "data-v-6825b862"]]);
|
|
113
|
+
]),
|
|
114
|
+
_: 3
|
|
115
|
+
})
|
|
116
|
+
]));
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
const te = /* @__PURE__ */ C(Z, [["__scopeId", "data-v-bb9edb27"]]);
|
|
269
120
|
export {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
s as AdlAccordionVariant
|
|
121
|
+
ee as BentoAccordion,
|
|
122
|
+
te as BentoAccordionItem
|
|
273
123
|
};
|
|
274
124
|
//# sourceMappingURL=accordion.js.map
|