@adyen/bento-vue3 1.1.0 → 1.2.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/packages/vue2/src/components/accordion/accordion.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +24 -20
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/badge/badge.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +43 -43
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/button/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +36 -32
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +14 -14
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/click-outside/click-outside.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +23 -19
- package/dist/@types/packages/vue2/src/components/code-snippet/composables/useLanguage.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/country/composables/useCountryCapital/useCountryCapital.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/composables/useCountryName/useCountryName.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/country/composables/useCountryPhoneCode/useCountryPhoneCode.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +15 -13
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +12 -12
- 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 +11 -11
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useKeyboardNavigator/useKeyboardNavigator.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useResizer.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useSelector.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useSorter.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +30 -30
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +11 -9
- package/dist/@types/packages/vue2/src/components/date-picker/composables/use-date-picker-single-calendar-text.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/date-range-picker/composables/use-date-range-picker-calendar-text.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/composables/use-date-range-picker-calendar-text.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/useDropdownOptionsListbox.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +100 -98
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/composables/useDropdownSearchFilter.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/composables/useKeyboardNavigation.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +27 -25
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +41 -41
- 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 +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/composables/use-base-filter.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +18 -18
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +14 -14
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +11 -9
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +36 -28
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/__test__/calendar-month-day-stub.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/move-calendar-date.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/internal/error-message/error-message.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/footer-actions/footer-actions.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/internal/grid-layout/grid-layout.vue.d.ts +4 -4
- 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 +11 -11
- 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 +6 -6
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +15 -15
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option/listbox-option.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +24 -22
- package/dist/@types/packages/vue2/src/components/link/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/loading-indicator/loading-indicator.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/menu/components/menu-list-container/menu-list-container.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +11 -11
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +28 -20
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/payment-method/composables/usePaymentIcon.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +11 -9
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/popover/components/popover-image/popover-image.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +19 -19
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.utils.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +97 -85
- package/dist/@types/packages/vue2/src/components/search-bar/useSearchBarDataFilter.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +47 -39
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +19 -13
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +19 -13
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +19 -13
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +25 -23
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +30 -30
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/toast/toast.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/toggle/toggle.types.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +16 -16
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +37 -37
- package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/composables/initials.d.ts +2 -2
- package/dist/@types/packages/vue2/src/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +3 -3
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +2 -2
- package/dist/@types/packages/vue2/src/directives/click-outside/directive.d.ts +1 -1
- package/dist/@types/packages/vue2/src/directives/click-outside/on-click-outside.d.ts +1 -1
- package/dist/@types/packages/vue2/src/directives/click-outside/types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/directives/click-outside/useEventListener/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/directives/click-outside/utils.d.ts +1 -1
- package/dist/@types/packages/vue2/src/directives/keyboard-navigation/keyboard-navigation.d.ts +1 -1
- package/dist/@types/packages/vue2/src/directives/keyboard-navigation/keyboard-navigation.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/directives/tooltip/tooltip.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/install.d.ts +1 -1
- package/dist/@types/packages/vue2/src/plugins/toastController.d.ts +1 -1
- package/dist/@types/packages/vue2/src/types/elements.d.ts +1 -1
- package/dist/@types/packages/vue2/src/types/index.d.ts +0 -1
- package/dist/@types/packages/vue2/src/types/listbox.d.ts +1 -1
- package/dist/@types/packages/vue2/src/types/maybe-ref.d.ts +1 -1
- package/dist/@types/packages/vue2/src/types/refs.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/aria-label.d.ts +2 -2
- package/dist/@types/packages/vue2/src/utils/ts/events.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/focus-trap.utils.d.ts +1 -1
- 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/i18n.d.ts +1 -1
- package/dist/alert.js +49 -47
- package/dist/alert.js.map +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dropdown.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/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/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/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.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +77 -68
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +16 -16
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.fe807878.js → base-button.4a56c2fb.js} +2 -2
- package/dist/chunks/{base-button.fe807878.js.map → base-button.4a56c2fb.js.map} +1 -1
- package/dist/chunks/{button-actions.59449cda.js → button-actions.a6e541ad.js} +7 -7
- package/dist/chunks/{button-actions.59449cda.js.map → button-actions.a6e541ad.js.map} +1 -1
- package/dist/chunks/{button.4ccc3a72.js → button.1f630b6e.js} +10 -10
- package/dist/chunks/button.1f630b6e.js.map +1 -0
- package/dist/chunks/{calendar.1fb0d5b2.js → calendar.08885a56.js} +4 -4
- package/dist/chunks/{calendar.1fb0d5b2.js.map → calendar.08885a56.js.map} +1 -1
- package/dist/chunks/{checkbox.39fa87c7.js → checkbox.cfb8b8df.js} +3 -3
- package/dist/chunks/{checkbox.39fa87c7.js.map → checkbox.cfb8b8df.js.map} +1 -1
- package/dist/chunks/{controls-group.0126679a.js → controls-group.806da9bd.js} +2 -2
- package/dist/chunks/{controls-group.0126679a.js.map → controls-group.806da9bd.js.map} +1 -1
- package/dist/chunks/{copy.012e43f2.js → copy.1ce0203e.js} +3 -3
- package/dist/chunks/{copy.012e43f2.js.map → copy.1ce0203e.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.2ac50ee2.js → dropdown-default-textbox.dd77bb42.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.2ac50ee2.js.map → dropdown-default-textbox.dd77bb42.js.map} +1 -1
- package/dist/chunks/{dropdown.374481a8.js → dropdown.f9997464.js} +84 -82
- package/dist/chunks/dropdown.f9997464.js.map +1 -0
- package/dist/chunks/{error-message.a65a9abf.js → error-message.b88bb75a.js} +2 -2
- package/dist/chunks/{error-message.a65a9abf.js.map → error-message.b88bb75a.js.map} +1 -1
- package/dist/chunks/{index.0f958a0c.js → index.361c61d3.js} +2 -2
- package/dist/chunks/{index.0f958a0c.js.map → index.361c61d3.js.map} +1 -1
- package/dist/chunks/{index.05d4c01b.js → index.64b7b3cc.js} +6 -6
- package/dist/chunks/{index.05d4c01b.js.map → index.64b7b3cc.js.map} +1 -1
- package/dist/chunks/{index.c25bbcc8.js → index.7dd953ea.js} +53 -52
- package/dist/chunks/{index.c25bbcc8.js.map → index.7dd953ea.js.map} +1 -1
- package/dist/chunks/{index.1e002876.js → index.96001b1d.js} +3 -3
- package/dist/chunks/{index.1e002876.js.map → index.96001b1d.js.map} +1 -1
- package/dist/chunks/{index.b2d970f6.js → index.b46a5047.js} +20 -20
- package/dist/chunks/{index.b2d970f6.js.map → index.b46a5047.js.map} +1 -1
- package/dist/chunks/index.ebf5f6cf.js +119 -0
- package/dist/chunks/index.ebf5f6cf.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.caa1ceba.js → listbox-option-tag.73661a5d.js} +3 -3
- package/dist/chunks/{listbox-option-tag.caa1ceba.js.map → listbox-option-tag.73661a5d.js.map} +1 -1
- package/dist/chunks/{listbox.ceacb0ca.js → listbox.7b5e0eee.js} +42 -41
- package/dist/chunks/{listbox.ceacb0ca.js.map → listbox.7b5e0eee.js.map} +1 -1
- package/dist/chunks/{loading-button.5b8db3dc.js → loading-button.426d89b9.js} +2 -2
- package/dist/chunks/{loading-button.5b8db3dc.js.map → loading-button.426d89b9.js.map} +1 -1
- package/dist/chunks/{tooltip.ca53a83a.js → tooltip.53290a34.js} +2 -2
- package/dist/chunks/{tooltip.ca53a83a.js.map → tooltip.53290a34.js.map} +1 -1
- package/dist/chunks/useCountryItems.e83ef8f0.js.map +1 -1
- package/dist/code-snippet.js +71 -69
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +25 -24
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +204 -204
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +21 -21
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/dropdown.js.map +1 -1
- package/dist/filter-bar.js +13 -13
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header.js +61 -61
- package/dist/header.js.map +1 -1
- package/dist/index.js +65 -65
- package/dist/info-icon.js +20 -19
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +81 -77
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +6 -6
- package/dist/link.js +15 -15
- package/dist/link.js.map +1 -1
- package/dist/menu.js +5 -5
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +113 -109
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +15 -14
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +21 -21
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +17 -17
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +5 -5
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/status.js +6 -6
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +155 -142
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +2 -2
- package/dist/tag.js +8 -8
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +25 -21
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +31 -31
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +157 -3
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -4
- package/dist/@types/packages/vue2/src/types/label-position.d.ts +0 -4
- package/dist/chunks/button.4ccc3a72.js.map +0 -1
- package/dist/chunks/dropdown.374481a8.js.map +0 -1
- package/dist/chunks/index.0b6c7187.js +0 -160
- package/dist/chunks/index.0b6c7187.js.map +0 -1
- package/dist/chunks/index.92f7d550.js +0 -119
- package/dist/chunks/index.92f7d550.js.map +0 -1
package/dist/modal.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as T, ref as se, toRefs as
|
|
2
|
-
import { B as ce, a as
|
|
3
|
-
import { B as J, a as X, b as Z } from "./chunks/index.
|
|
1
|
+
import { defineComponent as T, ref as se, toRefs as G, computed as f, watch as ie, onMounted as z, resolveComponent as v, openBlock as d, createElementBlock as N, createElementVNode as D, normalizeClass as U, withKeys as re, createVNode as M, withCtx as i, normalizeStyle as q, renderSlot as u, createCommentVNode as g, createBlock as p, unref as y, createTextVNode as j, toDisplayString as H, createSlots as Q, resolveDynamicComponent as de, mergeProps as ue } from "vue";
|
|
2
|
+
import { B as ce, a as w } from "./chunks/button.1f630b6e.js";
|
|
3
|
+
import { B as J, a as X, b as Z } from "./chunks/index.ebf5f6cf.js";
|
|
4
4
|
import { BentoDivider as me } from "./divider.js";
|
|
5
|
-
import { B as pe } from "./chunks/index.
|
|
6
|
-
import { u as
|
|
5
|
+
import { B as pe } from "./chunks/index.361c61d3.js";
|
|
6
|
+
import { u as V } from "./chunks/use-has-slot.068222e6.js";
|
|
7
7
|
import { u as fe } from "./chunks/aria-label.ac9651a5.js";
|
|
8
8
|
import { u as x } from "./chunks/i18n.6c402773.js";
|
|
9
9
|
import { g as ye } from "./chunks/get-slot-text.2db867f8.js";
|
|
10
|
-
import { C as
|
|
11
|
-
import { G as
|
|
10
|
+
import { C as ve } from "./chunks/cross.5c36a670.js";
|
|
11
|
+
import { G as be, a as ge } from "./chunks/grid-layout.a30855ff.js";
|
|
12
12
|
import { _ as $ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
13
|
-
import { B as
|
|
14
|
-
import "./assets/
|
|
15
|
-
var
|
|
13
|
+
import { B as F, c as K } from "./chunks/button-actions.a6e541ad.js";
|
|
14
|
+
import "./assets/index21.css";
|
|
15
|
+
var R = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(R || {}), E = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(E || {}), S = /* @__PURE__ */ ((e) => (e.SMALLER = "smaller", e.EQUAL = "equal", e.BIGGER = "bigger", e))(S || {}), I = /* @__PURE__ */ ((e) => (e.DIALOG = "dialog", e.ALERT_DIALOG = "alertdialog", e))(I || {}), L = /* @__PURE__ */ ((e) => (e.CONFIRMATION = "confirmation", e.DESTRUCTIVE = "destructive", e.INFO = "info", e.ACKNOWLEDGEMENT = "acknowledgement", e))(L || {}), h = /* @__PURE__ */ ((e) => (e.CLOSE_MODAL = "close-modal", e))(h || {});
|
|
16
16
|
const W = {
|
|
17
17
|
"en-US": {
|
|
18
18
|
ariaLabelFallback: "modal"
|
|
@@ -20,14 +20,14 @@ const W = {
|
|
|
20
20
|
}, he = T({
|
|
21
21
|
i18n: { messages: W },
|
|
22
22
|
name: "base-modal",
|
|
23
|
-
components: { CrossIcon:
|
|
23
|
+
components: { CrossIcon: ve, BentoTypography: J, BentoButton: ce, BentoDivider: me, BentoFocusTrap: pe, GridLayout: be },
|
|
24
24
|
props: {
|
|
25
25
|
/**
|
|
26
26
|
* Defines whether the modal will be an alert modal
|
|
27
27
|
*/
|
|
28
28
|
modalRole: {
|
|
29
29
|
type: String,
|
|
30
|
-
default:
|
|
30
|
+
default: I.DIALOG
|
|
31
31
|
},
|
|
32
32
|
/**
|
|
33
33
|
* If set to true, it allows the modal to be closed by clicking outside of it
|
|
@@ -62,7 +62,7 @@ const W = {
|
|
|
62
62
|
*/
|
|
63
63
|
columnsSize: {
|
|
64
64
|
type: String,
|
|
65
|
-
default:
|
|
65
|
+
default: S.SMALLER
|
|
66
66
|
},
|
|
67
67
|
/**
|
|
68
68
|
* Controls the modal's state from the outside. Set it to true to open the modal
|
|
@@ -76,7 +76,7 @@ const W = {
|
|
|
76
76
|
*/
|
|
77
77
|
size: {
|
|
78
78
|
type: String,
|
|
79
|
-
default:
|
|
79
|
+
default: E.SMALL
|
|
80
80
|
},
|
|
81
81
|
/**
|
|
82
82
|
* Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
|
|
@@ -92,70 +92,70 @@ const W = {
|
|
|
92
92
|
},
|
|
93
93
|
emits: [h.CLOSE_MODAL],
|
|
94
94
|
setup(e, { slots: t, emit: l }) {
|
|
95
|
-
const { t: r } = x({ messages: W }), a =
|
|
95
|
+
const { t: r } = x({ messages: W }), a = V(t), o = se(null), { isOpen: n, customPadding: s, overflowVisible: b } = G(e), C = f(
|
|
96
96
|
() => a("default") && t.default() ? ye(t)("default") : null
|
|
97
|
-
),
|
|
97
|
+
), B = f(() => {
|
|
98
98
|
if (!s.value)
|
|
99
99
|
return {};
|
|
100
|
-
const
|
|
100
|
+
const O = {
|
|
101
101
|
paddingLeft: s.value,
|
|
102
102
|
paddingRight: s.value
|
|
103
|
-
},
|
|
104
|
-
return a("default") || (
|
|
105
|
-
header: { ...
|
|
106
|
-
content:
|
|
107
|
-
actions: { ...
|
|
103
|
+
}, P = { ...O, paddingTop: void 0, paddingBottom: void 0 };
|
|
104
|
+
return a("default") || (P.paddingTop = s.value), a("actions") || (P.paddingBottom = s.value), {
|
|
105
|
+
header: { ...O, paddingTop: s.value },
|
|
106
|
+
content: P,
|
|
107
|
+
actions: { ...O, paddingBottom: s.value }
|
|
108
108
|
};
|
|
109
|
-
}),
|
|
109
|
+
}), A = fe({
|
|
110
110
|
label: C,
|
|
111
111
|
defaultFallback: r("ariaLabelFallback")
|
|
112
|
-
}), c = f(() => e.withColumnLayout && e.size ===
|
|
112
|
+
}), c = f(() => e.withColumnLayout && e.size === E.LARGE), m = () => {
|
|
113
113
|
o.value.showModal();
|
|
114
|
-
},
|
|
114
|
+
}, _ = () => {
|
|
115
115
|
l(h.CLOSE_MODAL);
|
|
116
116
|
}, k = () => {
|
|
117
|
-
o.value.close(),
|
|
117
|
+
o.value.close(), _();
|
|
118
118
|
}, oe = () => {
|
|
119
119
|
k();
|
|
120
|
-
}, te = ({ target:
|
|
121
|
-
|
|
120
|
+
}, te = ({ target: O }) => {
|
|
121
|
+
O && O.tagName === I.DIALOG.toUpperCase() && k();
|
|
122
122
|
}, ne = f(() => ({
|
|
123
123
|
[`b-modal-base__container--${e.size}`]: e.size,
|
|
124
124
|
["b-modal-base__container--visible"]: n.value,
|
|
125
|
-
["b-modal-base__container--overflow-visible"]:
|
|
125
|
+
["b-modal-base__container--overflow-visible"]: b.value,
|
|
126
126
|
["b-modal-base__container--column-layout"]: c.value
|
|
127
127
|
})), ae = f(() => ({
|
|
128
128
|
"b-modal-base__content--column-layout": c.value,
|
|
129
129
|
"b-modal-base__content--with-header": a("default"),
|
|
130
130
|
"b-modal-base__content--with-actions": a("actions")
|
|
131
|
-
})), le = f(() => e.columnsSize ===
|
|
131
|
+
})), le = f(() => e.columnsSize === S.SMALLER ? [{ small: 4, medium: 4, large: 4 }] : e.columnsSize === S.BIGGER ? [{ small: 8, medium: 8, large: 8 }] : [{ small: 6, medium: 6, large: 6 }]);
|
|
132
132
|
return ie(
|
|
133
133
|
() => [n.value, o.value],
|
|
134
134
|
() => {
|
|
135
135
|
n.value && o.value ? m() : o.value && k();
|
|
136
136
|
},
|
|
137
137
|
{ immediate: !0 }
|
|
138
|
-
),
|
|
138
|
+
), z(() => {
|
|
139
139
|
n.value && o.value && m();
|
|
140
140
|
}), {
|
|
141
141
|
// Refs
|
|
142
142
|
modal: o,
|
|
143
|
-
computedAriaLabel:
|
|
143
|
+
computedAriaLabel: A,
|
|
144
144
|
// Handling the state
|
|
145
145
|
openModal: m,
|
|
146
146
|
closeModalOnClickOutside: te,
|
|
147
147
|
// Methods
|
|
148
148
|
onCloseButtonClick: oe,
|
|
149
149
|
hasSlot: a,
|
|
150
|
-
emitCloseEvent:
|
|
150
|
+
emitCloseEvent: _,
|
|
151
151
|
// Styles
|
|
152
152
|
modalConditionalClasses: ne,
|
|
153
153
|
modalContentConditionalClasses: ae,
|
|
154
|
-
customPaddingStyles:
|
|
154
|
+
customPaddingStyles: B,
|
|
155
155
|
hasColumnLayout: c,
|
|
156
156
|
computedColumnWidth: le,
|
|
157
157
|
// Enums
|
|
158
|
-
BentoButtonVariant:
|
|
158
|
+
BentoButtonVariant: w,
|
|
159
159
|
BentoTypographyElement: X,
|
|
160
160
|
BentoTypographyVariant: Z,
|
|
161
161
|
GridLayoutContainerType: ge
|
|
@@ -167,27 +167,27 @@ const Ce = { class: "b-modal-base" }, Le = ["role", "aria-label", "open"], Be =
|
|
|
167
167
|
class: "b-modal-base__actions"
|
|
168
168
|
};
|
|
169
169
|
function Se(e, t, l, r, a, o) {
|
|
170
|
-
const n =
|
|
170
|
+
const n = v("bento-typography"), s = v("cross-icon"), b = v("bento-button"), C = v("bento-divider"), B = v("grid-layout"), A = v("bento-focus-trap");
|
|
171
171
|
return d(), N("div", Ce, [
|
|
172
|
-
|
|
172
|
+
D("dialog", {
|
|
173
173
|
ref: "modal",
|
|
174
174
|
role: e.modalRole,
|
|
175
175
|
"aria-label": e.computedAriaLabel,
|
|
176
|
-
class:
|
|
176
|
+
class: U(["b-modal-base__container", e.modalConditionalClasses]),
|
|
177
177
|
open: e.initiallyOpen,
|
|
178
178
|
onClick: t[0] || (t[0] = (c) => e.isDismissible && e.closeModalOnClickOutside(c)),
|
|
179
179
|
onKeydown: t[1] || (t[1] = re((...c) => e.emitCloseEvent && e.emitCloseEvent(...c), ["esc"]))
|
|
180
180
|
}, [
|
|
181
|
-
|
|
181
|
+
M(A, null, {
|
|
182
182
|
default: i(() => [
|
|
183
|
-
|
|
183
|
+
D("div", Be, [
|
|
184
184
|
e.hasSlot("default") || !e.hideCloseButton ? (d(), N("div", {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "b-modal-base__header-container",
|
|
187
|
-
style:
|
|
187
|
+
style: q(e.customPaddingStyles.header)
|
|
188
188
|
}, [
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
D("div", Ae, [
|
|
190
|
+
M(n, {
|
|
191
191
|
class: "b-modal-base__title",
|
|
192
192
|
"aria-label": "base modal title",
|
|
193
193
|
el: e.BentoTypographyElement.SPAN,
|
|
@@ -199,7 +199,7 @@ function Se(e, t, l, r, a, o) {
|
|
|
199
199
|
]),
|
|
200
200
|
_: 3
|
|
201
201
|
}, 8, ["el", "variant"]),
|
|
202
|
-
e.hideCloseButton ? g("", !0) : (d(), p(
|
|
202
|
+
e.hideCloseButton ? g("", !0) : (d(), p(b, {
|
|
203
203
|
key: 0,
|
|
204
204
|
class: "b-modal-base__close-button",
|
|
205
205
|
variant: e.BentoButtonVariant.TERTIARY,
|
|
@@ -207,7 +207,7 @@ function Se(e, t, l, r, a, o) {
|
|
|
207
207
|
onClick: e.onCloseButtonClick
|
|
208
208
|
}, {
|
|
209
209
|
default: i(() => [
|
|
210
|
-
|
|
210
|
+
M(s, { "svg-title": "close" })
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
213
213
|
}, 8, ["variant", "onClick"]))
|
|
@@ -217,9 +217,9 @@ function Se(e, t, l, r, a, o) {
|
|
|
217
217
|
class: "b-modal-base__divider"
|
|
218
218
|
})) : g("", !0)
|
|
219
219
|
], 4)) : g("", !0),
|
|
220
|
-
|
|
221
|
-
class:
|
|
222
|
-
style:
|
|
220
|
+
D("div", {
|
|
221
|
+
class: U(["b-modal-base__content", e.modalContentConditionalClasses]),
|
|
222
|
+
style: q(e.customPaddingStyles.content)
|
|
223
223
|
}, [
|
|
224
224
|
e.hasSlot("content") ? (d(), p(n, {
|
|
225
225
|
key: 0,
|
|
@@ -229,7 +229,7 @@ function Se(e, t, l, r, a, o) {
|
|
|
229
229
|
stronger: ""
|
|
230
230
|
}, {
|
|
231
231
|
default: i(() => [
|
|
232
|
-
e.hasColumnLayout ? (d(), p(
|
|
232
|
+
e.hasColumnLayout ? (d(), p(B, {
|
|
233
233
|
key: 0,
|
|
234
234
|
"column-width": e.computedColumnWidth,
|
|
235
235
|
"container-type": e.GridLayoutContainerType.NORMAL,
|
|
@@ -250,13 +250,13 @@ function Se(e, t, l, r, a, o) {
|
|
|
250
250
|
e.hasSlot("actions") ? (d(), N("div", {
|
|
251
251
|
key: 1,
|
|
252
252
|
class: "b-modal-base__actions-container",
|
|
253
|
-
style:
|
|
253
|
+
style: q(e.customPaddingStyles.actions)
|
|
254
254
|
}, [
|
|
255
255
|
e.hasColumnLayout ? (d(), p(C, {
|
|
256
256
|
key: 0,
|
|
257
257
|
class: "b-modal-base__divider"
|
|
258
258
|
})) : g("", !0),
|
|
259
|
-
|
|
259
|
+
D("div", _e, [
|
|
260
260
|
u(e.$slots, "actions", {}, void 0, !0)
|
|
261
261
|
])
|
|
262
262
|
], 4)) : g("", !0)
|
|
@@ -267,8 +267,8 @@ function Se(e, t, l, r, a, o) {
|
|
|
267
267
|
], 42, Le)
|
|
268
268
|
]);
|
|
269
269
|
}
|
|
270
|
-
const ee = /* @__PURE__ */ $(he, [["render", Se], ["__scopeId", "data-v-c82b2878"]]),
|
|
271
|
-
...
|
|
270
|
+
const ee = /* @__PURE__ */ $(he, [["render", Se], ["__scopeId", "data-v-c82b2878"]]), Oe = { class: "b-footer-actions" }, Ee = {}, De = /* @__PURE__ */ T({
|
|
271
|
+
...Ee,
|
|
272
272
|
__name: "footer-actions",
|
|
273
273
|
props: {
|
|
274
274
|
/**
|
|
@@ -319,26 +319,26 @@ const ee = /* @__PURE__ */ $(he, [["render", Se], ["__scopeId", "data-v-c82b2878
|
|
|
319
319
|
}
|
|
320
320
|
},
|
|
321
321
|
setup(e) {
|
|
322
|
-
const t = e, { actions: l, destructiveActions: r } =
|
|
322
|
+
const t = e, { actions: l, destructiveActions: r } = G(t), a = f(() => {
|
|
323
323
|
const o = l.value.length < 3 ? l.value : l.value.slice(0, l.value.length - 1);
|
|
324
324
|
return o[0].critical = r.value, {
|
|
325
325
|
leftAligned: l.value.length === 3 ? [
|
|
326
326
|
{
|
|
327
327
|
...l.value[l.value.length - 1],
|
|
328
|
-
variant:
|
|
328
|
+
variant: w.SECONDARY
|
|
329
329
|
}
|
|
330
330
|
] : null,
|
|
331
331
|
rightAligned: [...o]
|
|
332
332
|
};
|
|
333
333
|
});
|
|
334
|
-
return
|
|
334
|
+
return z(() => {
|
|
335
335
|
if (t.actions && t.actions.length > 3)
|
|
336
336
|
throw new Error("Not more than 3 action buttons may be provided to Bento Modal default variant");
|
|
337
337
|
if (t.actionsLabel && t.actions && t.actions.length > 2)
|
|
338
338
|
throw new Error(
|
|
339
339
|
"Not more than 2 action buttons may be provided with actions label to Bento Modal default variant"
|
|
340
340
|
);
|
|
341
|
-
}), (o, n) => (d(), N("div",
|
|
341
|
+
}), (o, n) => (d(), N("div", Oe, [
|
|
342
342
|
e.actionsLabel ? (d(), p(y(J), {
|
|
343
343
|
key: 0,
|
|
344
344
|
el: y(X).SPAN,
|
|
@@ -350,14 +350,14 @@ const ee = /* @__PURE__ */ $(he, [["render", Se], ["__scopeId", "data-v-c82b2878
|
|
|
350
350
|
]),
|
|
351
351
|
_: 1
|
|
352
352
|
}, 8, ["el", "variant"])) : g("", !0),
|
|
353
|
-
y(a).leftAligned ? (d(), p(y(
|
|
353
|
+
y(a).leftAligned ? (d(), p(y(F), {
|
|
354
354
|
key: 1,
|
|
355
355
|
actions: y(a).leftAligned,
|
|
356
|
-
layout: y(
|
|
356
|
+
layout: y(K).BUTTONS_START
|
|
357
357
|
}, null, 8, ["actions", "layout"])) : g("", !0),
|
|
358
|
-
|
|
358
|
+
M(y(F), {
|
|
359
359
|
actions: y(a).rightAligned,
|
|
360
|
-
layout: y(
|
|
360
|
+
layout: y(K).BUTTONS_END
|
|
361
361
|
}, null, 8, ["actions", "layout"])
|
|
362
362
|
]));
|
|
363
363
|
}
|
|
@@ -423,7 +423,7 @@ const Me = /* @__PURE__ */ $(De, [["__scopeId", "data-v-7d3e4571"]]), we = T({
|
|
|
423
423
|
*/
|
|
424
424
|
columnsSize: {
|
|
425
425
|
type: String,
|
|
426
|
-
default:
|
|
426
|
+
default: S.SMALLER
|
|
427
427
|
},
|
|
428
428
|
/**
|
|
429
429
|
* List of actions that will be used to render the buttons.
|
|
@@ -481,10 +481,10 @@ const Me = /* @__PURE__ */ $(De, [["__scopeId", "data-v-7d3e4571"]]), we = T({
|
|
|
481
481
|
},
|
|
482
482
|
emits: [h.CLOSE_MODAL],
|
|
483
483
|
setup(e, { slots: t, emit: l }) {
|
|
484
|
-
const r =
|
|
484
|
+
const r = V(t), a = () => {
|
|
485
485
|
l(h.CLOSE_MODAL);
|
|
486
486
|
};
|
|
487
|
-
return
|
|
487
|
+
return z(() => {
|
|
488
488
|
if (!(r("content") || r("content-col-1") && r("content-col-2")))
|
|
489
489
|
throw new Error("Bento Modal default variant requires content slot or column slots");
|
|
490
490
|
}), {
|
|
@@ -495,7 +495,7 @@ const Me = /* @__PURE__ */ $(De, [["__scopeId", "data-v-7d3e4571"]]), we = T({
|
|
|
495
495
|
}
|
|
496
496
|
});
|
|
497
497
|
function Te(e, t, l, r, a, o) {
|
|
498
|
-
const n =
|
|
498
|
+
const n = v("footer-actions"), s = v("base-modal");
|
|
499
499
|
return d(), p(s, {
|
|
500
500
|
class: "b-modal-default",
|
|
501
501
|
size: e.size,
|
|
@@ -530,7 +530,7 @@ function Te(e, t, l, r, a, o) {
|
|
|
530
530
|
name: "actions",
|
|
531
531
|
fn: i(() => [
|
|
532
532
|
u(e.$slots, "actions", {}, () => [
|
|
533
|
-
|
|
533
|
+
M(n, {
|
|
534
534
|
actions: e.actions,
|
|
535
535
|
"actions-label": e.actionsLabel,
|
|
536
536
|
"destructive-actions": e.destructiveActions
|
|
@@ -548,7 +548,7 @@ const $e = /* @__PURE__ */ $(we, [["render", Te]]), Y = {
|
|
|
548
548
|
}, ke = T({
|
|
549
549
|
i18n: { messages: Y },
|
|
550
550
|
name: "bento-modal-dialog",
|
|
551
|
-
components: { BaseModal: ee, BentoButtonActions:
|
|
551
|
+
components: { BaseModal: ee, BentoButtonActions: F },
|
|
552
552
|
props: {
|
|
553
553
|
/**
|
|
554
554
|
* Controls the modal's state from the outside. Set it to true to open the modal
|
|
@@ -620,60 +620,60 @@ const $e = /* @__PURE__ */ $(we, [["render", Te]]), Y = {
|
|
|
620
620
|
},
|
|
621
621
|
emits: [h.CLOSE_MODAL],
|
|
622
622
|
setup(e, { slots: t, emit: l }) {
|
|
623
|
-
const { t: r } = x({ messages: Y }), a =
|
|
623
|
+
const { t: r } = x({ messages: Y }), a = V(t), { actions: o, dialogType: n } = G(e), s = () => {
|
|
624
624
|
l(h.CLOSE_MODAL);
|
|
625
|
-
},
|
|
625
|
+
}, b = () => {
|
|
626
626
|
s();
|
|
627
627
|
}, C = f(() => [
|
|
628
628
|
{
|
|
629
629
|
title: r("okButtonText"),
|
|
630
|
-
event:
|
|
631
|
-
variant:
|
|
630
|
+
event: b,
|
|
631
|
+
variant: w.SECONDARY
|
|
632
632
|
}
|
|
633
|
-
]),
|
|
634
|
-
var
|
|
633
|
+
]), B = f(() => {
|
|
634
|
+
var _;
|
|
635
635
|
const c = {
|
|
636
636
|
title: "Cancel",
|
|
637
|
-
event:
|
|
638
|
-
}, m = (
|
|
639
|
-
return n.value ===
|
|
640
|
-
}),
|
|
637
|
+
event: b
|
|
638
|
+
}, m = (_ = o == null ? void 0 : o.value) == null ? void 0 : _[0];
|
|
639
|
+
return n.value === L.DESTRUCTIVE ? m.critical = !0 : n.value === L.INFO && (m.variant = w.SECONDARY), [m, c];
|
|
640
|
+
}), A = f(() => ({
|
|
641
641
|
[`b-modal-dialog--${n.value}`]: n.value
|
|
642
642
|
}));
|
|
643
|
-
return
|
|
643
|
+
return z(() => {
|
|
644
644
|
var c, m;
|
|
645
645
|
if (!a("default") || !e.content)
|
|
646
646
|
throw new Error("Bento Modal Dialog requires header title and content");
|
|
647
647
|
if (((c = o == null ? void 0 : o.value) == null ? void 0 : c.length) > 1)
|
|
648
648
|
throw new Error("Not more than 1 action button may be provided to Modal Dialog");
|
|
649
|
-
if (n.value !==
|
|
649
|
+
if (n.value !== L.ACKNOWLEDGEMENT && !(o != null && o.value))
|
|
650
650
|
throw new Error(
|
|
651
651
|
"Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button"
|
|
652
652
|
);
|
|
653
|
-
if (n.value ===
|
|
653
|
+
if (n.value === L.ACKNOWLEDGEMENT && ((m = o == null ? void 0 : o.value) != null && m.length))
|
|
654
654
|
throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
|
|
655
655
|
}), {
|
|
656
656
|
// Values
|
|
657
|
-
dialogActions:
|
|
657
|
+
dialogActions: B,
|
|
658
658
|
acknowledgementDialogActions: C,
|
|
659
659
|
// Methods
|
|
660
660
|
onCloseModal: s,
|
|
661
|
-
onCloseActionButton:
|
|
661
|
+
onCloseActionButton: b,
|
|
662
662
|
// Styles
|
|
663
|
-
modalDialogConditionalClasses:
|
|
663
|
+
modalDialogConditionalClasses: A,
|
|
664
664
|
// Enums
|
|
665
|
-
BentoModalRole:
|
|
666
|
-
BentoModalSize:
|
|
667
|
-
BentoButtonVariant:
|
|
668
|
-
BentoModalDialogType:
|
|
669
|
-
BentoButtonActionsLayout:
|
|
665
|
+
BentoModalRole: I,
|
|
666
|
+
BentoModalSize: E,
|
|
667
|
+
BentoButtonVariant: w,
|
|
668
|
+
BentoModalDialogType: L,
|
|
669
|
+
BentoButtonActionsLayout: K
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
function Ne(e, t, l, r, a, o) {
|
|
674
|
-
const n =
|
|
674
|
+
const n = v("bento-button-actions"), s = v("base-modal");
|
|
675
675
|
return d(), p(s, {
|
|
676
|
-
class:
|
|
676
|
+
class: U(["b-modal-dialog", e.modalDialogConditionalClasses]),
|
|
677
677
|
"hide-close-button": !0,
|
|
678
678
|
size: e.BentoModalSize.SMALL,
|
|
679
679
|
"is-dismissible": e.isDismissible,
|
|
@@ -712,7 +712,8 @@ const Re = /* @__PURE__ */ $(ke, [["render", Ne]]), Ie = T({
|
|
|
712
712
|
*/
|
|
713
713
|
variant: {
|
|
714
714
|
type: String,
|
|
715
|
-
default:
|
|
715
|
+
default: R.DEFAULT,
|
|
716
|
+
validator: (e) => Object.values(R).includes(e)
|
|
716
717
|
},
|
|
717
718
|
// Shared Modal Default and Modal Default props
|
|
718
719
|
/**
|
|
@@ -778,7 +779,8 @@ const Re = /* @__PURE__ */ $(ke, [["render", Ne]]), Ie = T({
|
|
|
778
779
|
*/
|
|
779
780
|
size: {
|
|
780
781
|
type: String,
|
|
781
|
-
default:
|
|
782
|
+
default: E.SMALL,
|
|
783
|
+
validator: (e) => Object.values(E).includes(e)
|
|
782
784
|
},
|
|
783
785
|
/**
|
|
784
786
|
* If provided, manages the padding of the whole modal container
|
|
@@ -799,7 +801,8 @@ const Re = /* @__PURE__ */ $(ke, [["render", Ne]]), Ie = T({
|
|
|
799
801
|
*/
|
|
800
802
|
columnsSize: {
|
|
801
803
|
type: String,
|
|
802
|
-
default:
|
|
804
|
+
default: S.SMALLER,
|
|
805
|
+
validator: (e) => Object.values(S).includes(e)
|
|
803
806
|
},
|
|
804
807
|
/**
|
|
805
808
|
* Text label that is displayed left to the action buttons
|
|
@@ -821,7 +824,8 @@ const Re = /* @__PURE__ */ $(ke, [["render", Ne]]), Ie = T({
|
|
|
821
824
|
*/
|
|
822
825
|
dialogType: {
|
|
823
826
|
type: String,
|
|
824
|
-
default:
|
|
827
|
+
default: L.CONFIRMATION,
|
|
828
|
+
validator: (e) => Object.values(L).includes(e)
|
|
825
829
|
},
|
|
826
830
|
/**
|
|
827
831
|
* Text that will be displayed in the content section of Modal
|
|
@@ -839,24 +843,24 @@ const Re = /* @__PURE__ */ $(ke, [["render", Ne]]), Ie = T({
|
|
|
839
843
|
size: o,
|
|
840
844
|
isDismissible: n,
|
|
841
845
|
overflowVisible: s,
|
|
842
|
-
dialogType:
|
|
846
|
+
dialogType: b,
|
|
843
847
|
content: C,
|
|
844
|
-
customPadding:
|
|
845
|
-
actionsLabel:
|
|
848
|
+
customPadding: B,
|
|
849
|
+
actionsLabel: A,
|
|
846
850
|
destructiveActions: c,
|
|
847
851
|
withColumnLayout: m
|
|
848
|
-
} =
|
|
849
|
-
() => r.value ===
|
|
852
|
+
} = G(e), _ = f(
|
|
853
|
+
() => r.value === R.DEFAULT ? {
|
|
850
854
|
hideCloseButton: a.value,
|
|
851
855
|
size: o.value,
|
|
852
|
-
customPadding:
|
|
853
|
-
actionsLabel:
|
|
856
|
+
customPadding: B.value,
|
|
857
|
+
actionsLabel: A.value,
|
|
854
858
|
destructiveActions: c.value,
|
|
855
859
|
isDismissible: n.value ?? !0,
|
|
856
860
|
overflowVisible: s.value,
|
|
857
861
|
withColumnLayout: m.value
|
|
858
862
|
} : {
|
|
859
|
-
dialogType:
|
|
863
|
+
dialogType: b.value,
|
|
860
864
|
content: C.value,
|
|
861
865
|
isDismissible: n.value ?? !1,
|
|
862
866
|
overflowVisible: s.value
|
|
@@ -866,8 +870,8 @@ const Re = /* @__PURE__ */ $(ke, [["render", Ne]]), Ie = T({
|
|
|
866
870
|
onCloseModal: () => {
|
|
867
871
|
l(h.CLOSE_MODAL);
|
|
868
872
|
},
|
|
869
|
-
customProps:
|
|
870
|
-
hasSlot:
|
|
873
|
+
customProps: _,
|
|
874
|
+
hasSlot: V(t)
|
|
871
875
|
};
|
|
872
876
|
}
|
|
873
877
|
});
|
|
@@ -910,11 +914,11 @@ function Ge(e, t, l, r, a, o) {
|
|
|
910
914
|
const Xe = /* @__PURE__ */ $(Ie, [["render", Ge]]);
|
|
911
915
|
export {
|
|
912
916
|
Xe as BentoModal,
|
|
913
|
-
|
|
914
|
-
|
|
917
|
+
S as BentoModalColumnLayoutVariant,
|
|
918
|
+
L as BentoModalDialogType,
|
|
915
919
|
h as BentoModalEvent,
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
920
|
+
I as BentoModalRole,
|
|
921
|
+
E as BentoModalSize,
|
|
922
|
+
R as BentoModalVariant
|
|
919
923
|
};
|
|
920
924
|
//# sourceMappingURL=modal.js.map
|