@adyen/bento-vue3 1.32.0 → 1.33.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 +5 -5
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/avatar/avatar.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/avatar/components/avatar-image/avatar-image.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/button/components/toggle-button/toggle-button.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +481 -22
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +764 -12
- package/dist/@types/packages/vue2/src/components/click-outside/click-outside.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +2149 -17
- package/dist/@types/packages/vue2/src/components/country/composables/use-country-capital/use-country-capital.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/composables/use-country-name/use-country-name.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/composables/use-country-phone-code/use-country-phon-code.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +158 -8
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +157 -7
- package/dist/@types/packages/vue2/src/components/dashed-underline/dashed-underline.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +10 -10
- 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 +229 -10
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +1304 -16
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-lazy-load/data-grid-lazy-load.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-static-icon/data-grid-static-icon.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +63 -5
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +61 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-keyboard-navigator/use-keyboard-navigator.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-lazy-loading/use-lazy-loading.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +62 -4
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-selector.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-sorter.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +43 -9
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +157 -7
- 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.vue.d.ts +1701 -21
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +2725 -147
- package/dist/@types/packages/vue2/src/components/date-range-picker/composables/use-date-range-picker-calendar-text.types.d.ts +3 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +3739 -18
- package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.d.ts +8 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +8 -8
- 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/use-country-items.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-keyboard-navigation.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/composables/use-keyboard-navigation.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +455 -11
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +18251 -1703
- 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 +422 -7
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +557 -16
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/composables/use-base-filter.d.ts +7 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +361 -10
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +931 -17
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +3284 -76
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +7588 -145
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1061 -19
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +1056 -14
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.props.d.ts +59 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +19 -80
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +229 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +73 -9
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +559 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +384 -6
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +587 -7
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +16154 -21
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/header/components/info-icon-with-popover/info-icon-with-popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +388 -10
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +17 -5
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/components/inspector/inspector.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +161 -11
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +5 -5
- 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 +726 -144
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +582 -15
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/__test__/calendar-month-day-stub.vue.d.ts +287 -4
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.props.d.ts +34 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +197 -38
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/move-calendar-date.d.ts +5 -135
- package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +185 -9
- package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/error-message/error-message.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.d.ts +19 -19
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/internal/footer-actions/footer-actions.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/internal/grid-layout/grid-layout.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +7 -7
- 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 +801 -53
- 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 +1631 -8
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +2534 -21
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option/listbox-option.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +357 -6
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +153 -3
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +409 -12
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +197 -10
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +8 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3552 -50
- package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/loading-indicator/loading-indicator.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +358 -8
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +992 -16
- 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 +469 -9
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1579 -15
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/modal/components/modal-page/modal-page.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/modal/modal.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +350 -8
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/components/modal-fullscreen-page.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/modal-fullscreen/modal-fullscreen.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +1481 -7
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +179 -10
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +1489 -9
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +3264 -10
- package/dist/@types/packages/vue2/src/components/payment-method/composables/use-payment-icon/use-payment-icon.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +159 -8
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +172 -6
- package/dist/@types/packages/vue2/src/components/popover/components/popover-image/popover-image.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +157 -7
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +8 -8
- 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 +16 -8
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +10 -10
- package/dist/@types/packages/vue2/src/components/search-bar/useSearchBarDataFilter.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +8 -8
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/selection-card/selection-card.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/selection-card/selection-card.vue.d.ts +22 -7
- package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/stepper/components/step/step.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/stepper/composables/use-keyboard-navigation/use-keyboard-navigation.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/stepper/composables/use-step-register/use-step-register.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +619 -11
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +733 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue.d.ts +733 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +733 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +733 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +732 -4
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.vue.d.ts +49 -6
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +300 -25
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +171 -11
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +1080 -19
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +367 -10
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/toast/components/toast-shadow-stack/toast-shadow-stack.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/toast/toast.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +162 -11
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +437 -8
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +14 -28
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/composables/initials.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-bento-toast-controller/use-bento-toast-controller.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/use-expandable-content-height/use-expandable-content-height.d.ts +3 -3
- package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +2 -2
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +3 -3
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +2 -2
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +6 -6
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.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/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/install.d.ts +1 -1
- package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +2 -2
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +7 -7
- package/dist/@types/packages/vue2/src/types/elements.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 +2 -2
- package/dist/@types/packages/vue2/src/utils/ts/aria-label.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/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -1
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/alert.css +1 -1
- package/dist/assets/avatar.css +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox-input.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/code-snippet.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/dashboard-section.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/empty-state.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/header.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/loading-indicator.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/payment-method.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/structured-list-item.css +1 -1
- package/dist/assets/summary-grid-item-custom.css +1 -1
- package/dist/assets/tabs.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toast.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/typography.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +4 -4
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/accordion-item.CQ8DLt9l.js +126 -0
- package/dist/chunks/{accordion-item.C7rQK0Xh.js.map → accordion-item.CQ8DLt9l.js.map} +1 -1
- package/dist/chunks/{action-bar.2Ch92mVR.js → action-bar.BsULBDh4.js} +62 -62
- package/dist/chunks/{action-bar.2Ch92mVR.js.map → action-bar.BsULBDh4.js.map} +1 -1
- package/dist/chunks/alert.Bz4tNKDH.js +162 -0
- package/dist/chunks/{alert.BOqbFni9.js.map → alert.Bz4tNKDH.js.map} +1 -1
- package/dist/chunks/avatar.mNlMngHQ.js +94 -0
- package/dist/chunks/{avatar.DWSW4vWC.js.map → avatar.mNlMngHQ.js.map} +1 -1
- package/dist/chunks/{base-button.jyEuuRdl.js → base-button.BxUrydaP.js} +2 -2
- package/dist/chunks/{base-button.jyEuuRdl.js.map → base-button.BxUrydaP.js.map} +1 -1
- package/dist/chunks/{base-modal.09efJqFH.js → base-modal.BPaKKH3Q.js} +186 -189
- package/dist/chunks/base-modal.BPaKKH3Q.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.DAxUzw2c.js → button-actions-with-menu.Cv1s9I3x.js} +16 -16
- package/dist/chunks/{button-actions-with-menu.DAxUzw2c.js.map → button-actions-with-menu.Cv1s9I3x.js.map} +1 -1
- package/dist/chunks/{button-actions.Dkrp7NsY.js → button-actions.hdK5IgrZ.js} +32 -32
- package/dist/chunks/{button-actions.Dkrp7NsY.js.map → button-actions.hdK5IgrZ.js.map} +1 -1
- package/dist/chunks/{button.BbV2BOSa.js → button.Br6CyG40.js} +39 -39
- package/dist/chunks/{button.BbV2BOSa.js.map → button.Br6CyG40.js.map} +1 -1
- package/dist/chunks/{calendar.DrP5wyvL.js → calendar.D--sOCBT.js} +153 -153
- package/dist/chunks/calendar.D--sOCBT.js.map +1 -0
- package/dist/chunks/card.BvSoujBc.js +205 -0
- package/dist/chunks/{card.BKtIXyL-.js.map → card.BvSoujBc.js.map} +1 -1
- package/dist/chunks/{checkbox-group.CEzhFcdh.js → checkbox-group.DovPyqmF.js} +20 -20
- package/dist/chunks/{checkbox-group.CEzhFcdh.js.map → checkbox-group.DovPyqmF.js.map} +1 -1
- package/dist/chunks/{checkbox-input.CR1lHf7f.js → checkbox-input.JdcvpfTa.js} +56 -54
- package/dist/chunks/checkbox-input.JdcvpfTa.js.map +1 -0
- package/dist/chunks/{checkbox.Blsg-Tvr.js → checkbox.FQ03XNeR.js} +6 -6
- package/dist/chunks/{checkbox.Blsg-Tvr.js.map → checkbox.FQ03XNeR.js.map} +1 -1
- package/dist/chunks/checkmark-circle-fill.ChV7Jy6r.js +44 -0
- package/dist/chunks/{checkmark-circle-fill.D29b-JWj.js.map → checkmark-circle-fill.ChV7Jy6r.js.map} +1 -1
- package/dist/chunks/checkmark-small.DEc2T64_.js +29 -0
- package/dist/chunks/{checkmark-small.BCeGkayS.js.map → checkmark-small.DEc2T64_.js.map} +1 -1
- package/dist/chunks/chevron-left.NvV5m76j.js +52 -0
- package/dist/chunks/{chevron-left.4JHuWe7i.js.map → chevron-left.NvV5m76j.js.map} +1 -1
- package/dist/chunks/chevron-up.DQZG_BP3.js +52 -0
- package/dist/chunks/{chevron-up.5-KtIp8i.js.map → chevron-up.DQZG_BP3.js.map} +1 -1
- package/dist/chunks/{code-snippet.DyvQts81.js → code-snippet.BP2IQQvW.js} +117 -117
- package/dist/chunks/{code-snippet.DyvQts81.js.map → code-snippet.BP2IQQvW.js.map} +1 -1
- package/dist/chunks/{controls-group.CLureEBJ.js → controls-group.CY5Hi11Y.js} +18 -18
- package/dist/chunks/{controls-group.CLureEBJ.js.map → controls-group.CY5Hi11Y.js.map} +1 -1
- package/dist/chunks/{copy._G3BOh-w.js → copy.h-wVGvID.js} +26 -26
- package/dist/chunks/{copy._G3BOh-w.js.map → copy.h-wVGvID.js.map} +1 -1
- package/dist/chunks/{country.DfvzuoT-.js → country.CVI-oSer.js} +3 -3
- package/dist/chunks/{country.DfvzuoT-.js.map → country.CVI-oSer.js.map} +1 -1
- package/dist/chunks/cross-circle-fill-small.BXO78Wde.js +29 -0
- package/dist/chunks/{cross-circle-fill-small.DiZWEd7W.js.map → cross-circle-fill-small.BXO78Wde.js.map} +1 -1
- package/dist/chunks/cross-circle-fill.DN5b3_eL.js +44 -0
- package/dist/chunks/{cross-circle-fill.vLaelNTN.js.map → cross-circle-fill.DN5b3_eL.js.map} +1 -1
- package/dist/chunks/cross-small.CXWTuKA_.js +29 -0
- package/dist/chunks/{cross-small.48UCoOqB.js.map → cross-small.CXWTuKA_.js.map} +1 -1
- package/dist/chunks/cross.OvPfvoqX.js +29 -0
- package/dist/chunks/{cross.BlL0FyHo.js.map → cross.OvPfvoqX.js.map} +1 -1
- package/dist/chunks/{currency.CUF_wGMv.js → currency.CFJy6QYU.js} +2 -2
- package/dist/chunks/{currency.CUF_wGMv.js.map → currency.CFJy6QYU.js.map} +1 -1
- package/dist/chunks/dashboard-section.DcvZOi79.js +167 -0
- package/dist/chunks/{dashboard-section.CwOasd7G.js.map → dashboard-section.DcvZOi79.js.map} +1 -1
- package/dist/chunks/dashed-underline.C7eCX1CM.js +79 -0
- package/dist/chunks/{dashed-underline.D_262wln.js.map → dashed-underline.C7eCX1CM.js.map} +1 -1
- package/dist/chunks/data-grid-template.C_8bGAC6.js +93 -0
- package/dist/chunks/data-grid-template.C_8bGAC6.js.map +1 -0
- package/dist/chunks/data-grid.DWJmWbjg.js +2766 -0
- package/dist/chunks/data-grid.DWJmWbjg.js.map +1 -0
- package/dist/chunks/{date-picker.CKiY1ZtA.js → date-picker.D36sJUDB.js} +8 -8
- package/dist/chunks/{date-picker.CKiY1ZtA.js.map → date-picker.D36sJUDB.js.map} +1 -1
- package/dist/chunks/date-range-picker.rytlJBZs.js +942 -0
- package/dist/chunks/date-range-picker.rytlJBZs.js.map +1 -0
- package/dist/chunks/{date.DXg5sG5Z.js → date.D8rQMzMG.js} +3 -3
- package/dist/chunks/{date.DXg5sG5Z.js.map → date.D8rQMzMG.js.map} +1 -1
- package/dist/chunks/dialog-page.DALFn9KR.js +171 -0
- package/dist/chunks/{dialog-page.CBim-VWH.js.map → dialog-page.DALFn9KR.js.map} +1 -1
- package/dist/chunks/divider.ugNXYI-T.js +22 -0
- package/dist/chunks/{divider.CnwfddJD.js.map → divider.ugNXYI-T.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.Bues7tON.js → dropdown-default-textbox.Bu4bpNGU.js} +116 -116
- package/dist/chunks/{dropdown-default-textbox.Bues7tON.js.map → dropdown-default-textbox.Bu4bpNGU.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.BiVKlJ-B.js → dropdown-tag.CocbqRcO.js} +67 -67
- package/dist/chunks/{dropdown-tag.BiVKlJ-B.js.map → dropdown-tag.CocbqRcO.js.map} +1 -1
- package/dist/chunks/{dropdown.CZyiZiox.js → dropdown.DQpKDlC-.js} +355 -355
- package/dist/chunks/{dropdown.CZyiZiox.js.map → dropdown.DQpKDlC-.js.map} +1 -1
- package/dist/chunks/{empty-state.CApqeBsH.js → empty-state.CyEWCcDk.js} +48 -48
- package/dist/chunks/{empty-state.CApqeBsH.js.map → empty-state.CyEWCcDk.js.map} +1 -1
- package/dist/chunks/{error-message.DCScf_vk.js → error-message.BfOmvPPb.js} +13 -13
- package/dist/chunks/{error-message.DCScf_vk.js.map → error-message.BfOmvPPb.js.map} +1 -1
- package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
- package/dist/chunks/expand.CgwNEbbz.js +33 -0
- package/dist/chunks/{expand.D1DTqaBO.js.map → expand.CgwNEbbz.js.map} +1 -1
- package/dist/chunks/filter-bar.-G1-moOO.js +2767 -0
- package/dist/chunks/filter-bar.-G1-moOO.js.map +1 -0
- package/dist/chunks/{fixed-scroller.BN3jp9Ss.js → fixed-scroller.DwYB1pqo.js} +4 -4
- package/dist/chunks/fixed-scroller.DwYB1pqo.js.map +1 -0
- package/dist/chunks/focus-trap.CwkbHfT8.js.map +1 -1
- package/dist/chunks/{footer-actions.Dj2vH6Hj.js → footer-actions.gtxofUAa.js} +19 -19
- package/dist/chunks/{footer-actions.Dj2vH6Hj.js.map → footer-actions.gtxofUAa.js.map} +1 -1
- package/dist/chunks/{form-layout-title.BKJPBhsv.js → form-layout-title.Boi0QQZL.js} +42 -42
- package/dist/chunks/{form-layout-title.BKJPBhsv.js.map → form-layout-title.Boi0QQZL.js.map} +1 -1
- package/dist/chunks/grid-layout.CqLbbEzI.js.map +1 -1
- package/dist/chunks/{header.DygonMXo.js → header.BLKs2Erq.js} +8 -8
- package/dist/chunks/{header.DygonMXo.js.map → header.BLKs2Erq.js.map} +1 -1
- package/dist/chunks/i18n.DL9GT2-k.js +3086 -0
- package/dist/chunks/i18n.DL9GT2-k.js.map +1 -0
- package/dist/chunks/image.0KzfycGE.js.map +1 -1
- package/dist/chunks/{info-icon.Bb20bxQm.js → info-icon.DIu8FeJC.js} +4 -4
- package/dist/chunks/{info-icon.Bb20bxQm.js.map → info-icon.DIu8FeJC.js.map} +1 -1
- package/dist/chunks/info.CIFBUqf-.js +44 -0
- package/dist/chunks/{info.CNegCnli.js.map → info.CIFBUqf-.js.map} +1 -1
- package/dist/chunks/{input-field.dPEY8nfT.js → input-field.f4lqnh2q.js} +66 -66
- package/dist/chunks/{input-field.dPEY8nfT.js.map → input-field.f4lqnh2q.js.map} +1 -1
- package/dist/chunks/inspector.types.t2SPyhw3.js +116 -0
- package/dist/chunks/{inspector.types.BpPQ6zrm.js.map → inspector.types.t2SPyhw3.js.map} +1 -1
- package/dist/chunks/link.2YS7haGc.js +110 -0
- package/dist/chunks/link.2YS7haGc.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.BU_sJ_KV.js → listbox-option-tag.QqDEHMKB.js} +3 -3
- package/dist/chunks/{listbox-option-tag.BU_sJ_KV.js.map → listbox-option-tag.QqDEHMKB.js.map} +1 -1
- package/dist/chunks/{loading-button.CrijUhme.js → loading-button.Mx-oDIGy.js} +39 -39
- package/dist/chunks/{loading-button.CrijUhme.js.map → loading-button.Mx-oDIGy.js.map} +1 -1
- package/dist/chunks/{menu.CE8khC0O.js → menu.DFMKn3Zr.js} +96 -96
- package/dist/chunks/{menu.CE8khC0O.js.map → menu.DFMKn3Zr.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.DYfgO3lG.js → modal-fullscreen.Caqa7dDp.js} +80 -80
- package/dist/chunks/{modal-fullscreen.DYfgO3lG.js.map → modal-fullscreen.Caqa7dDp.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.uUB7rtBH.js → modal.vue_vue_type_script_setup_true_lang.Bh6Q4yIf.js} +136 -136
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.uUB7rtBH.js.map → modal.vue_vue_type_script_setup_true_lang.Bh6Q4yIf.js.map} +1 -1
- package/dist/chunks/on-click-outside.MUWbmGDn.js.map +1 -1
- package/dist/chunks/{pagination.DfKNN2Mb.js → pagination.B4ker8JJ.js} +130 -130
- package/dist/chunks/{pagination.DfKNN2Mb.js.map → pagination.B4ker8JJ.js.map} +1 -1
- package/dist/chunks/{payment-method.Dyrh0PaX.js → payment-method.-3VYG5ud.js} +2 -2
- package/dist/chunks/{payment-method.Dyrh0PaX.js.map → payment-method.-3VYG5ud.js.map} +1 -1
- package/dist/chunks/{popover.BSGQxusD.js → popover.CczC6Fhk.js} +63 -63
- package/dist/chunks/{popover.BSGQxusD.js.map → popover.CczC6Fhk.js.map} +1 -1
- package/dist/chunks/{popper-container.DigB3V2j.js → popper-container.DFpaesDm.js} +239 -239
- package/dist/chunks/{popper-container.DigB3V2j.js.map → popper-container.DFpaesDm.js.map} +1 -1
- package/dist/chunks/{radio-group.CIXsaLLX.js → radio-group.C18T8QQs.js} +112 -112
- package/dist/chunks/{radio-group.CIXsaLLX.js.map → radio-group.C18T8QQs.js.map} +1 -1
- package/dist/chunks/{radio-input.Dp-se-SR.js → radio-input.DtvlM-mr.js} +20 -20
- package/dist/chunks/{radio-input.Dp-se-SR.js.map → radio-input.DtvlM-mr.js.map} +1 -1
- package/dist/chunks/refresh.DvQeGwUF.js +29 -0
- package/dist/chunks/{refresh.BfxRdaQb.js.map → refresh.DvQeGwUF.js.map} +1 -1
- package/dist/chunks/{search-bar.exXNyvwZ.js → search-bar.C__L0enF.js} +39 -39
- package/dist/chunks/{search-bar.exXNyvwZ.js.map → search-bar.C__L0enF.js.map} +1 -1
- package/dist/chunks/search.EnLryD8V.js +44 -0
- package/dist/chunks/{search.0lh99z1F.js.map → search.EnLryD8V.js.map} +1 -1
- package/dist/chunks/secondary-nav.DCe7I3pu.js +137 -0
- package/dist/chunks/{secondary-nav.CRJ27DQY.js.map → secondary-nav.DCe7I3pu.js.map} +1 -1
- package/dist/chunks/segmented-control.DbR5NYWR.js +142 -0
- package/dist/chunks/{segmented-control.hE7kcMb7.js.map → segmented-control.DbR5NYWR.js.map} +1 -1
- package/dist/chunks/{selection-card-group.Bxv-t-CN.js → selection-card-group.DNZTT85O.js} +129 -122
- package/dist/chunks/selection-card-group.DNZTT85O.js.map +1 -0
- package/dist/chunks/{sidepanel.C6ndYx2_.js → sidepanel.CprbeR-2.js} +76 -76
- package/dist/chunks/{sidepanel.C6ndYx2_.js.map → sidepanel.CprbeR-2.js.map} +1 -1
- package/dist/chunks/{status.types.wKICxOth.js → status.types.r9TfZmvE.js} +12 -12
- package/dist/chunks/{status.types.wKICxOth.js.map → status.types.r9TfZmvE.js.map} +1 -1
- package/dist/chunks/step.ClnCjesW.js +284 -0
- package/dist/chunks/step.ClnCjesW.js.map +1 -0
- package/dist/chunks/structured-list-item.Z-1ivOFu.js +101 -0
- package/dist/chunks/{structured-list-item.CnrBWJgo.js.map → structured-list-item.Z-1ivOFu.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.BMK48oR5.js → summary-grid-item-custom.Dq3IIEvH.js} +5 -5
- package/dist/chunks/{summary-grid-item-custom.BMK48oR5.js.map → summary-grid-item-custom.Dq3IIEvH.js.map} +1 -1
- package/dist/chunks/{tabs.BeCbcy81.js → tabs.xY_6yqmE.js} +3 -3
- package/dist/chunks/{tabs.BeCbcy81.js.map → tabs.xY_6yqmE.js.map} +1 -1
- package/dist/chunks/{tag.BZ90rkBe.js → tag.RYw4OhWk.js} +3 -3
- package/dist/chunks/{tag.BZ90rkBe.js.map → tag.RYw4OhWk.js.map} +1 -1
- package/dist/chunks/teleport.L8qFCYpr.js.map +1 -1
- package/dist/chunks/{textarea.C9dCXF7c.js → textarea.C-Oje7QC.js} +100 -101
- package/dist/chunks/{textarea.C9dCXF7c.js.map → textarea.C-Oje7QC.js.map} +1 -1
- package/dist/chunks/{timeline-item.DVugzZI5.js → timeline-item.FTU5rl7e.js} +209 -209
- package/dist/chunks/{timeline-item.DVugzZI5.js.map → timeline-item.FTU5rl7e.js.map} +1 -1
- package/dist/chunks/toast.LNgV2jhU.js +215 -0
- package/dist/chunks/{toast.CtEylmx6.js.map → toast.LNgV2jhU.js.map} +1 -1
- package/dist/chunks/{toggle-button.CYVGUQYj.js → toggle-button.CBRd1v6x.js} +19 -19
- package/dist/chunks/{toggle-button.CYVGUQYj.js.map → toggle-button.CBRd1v6x.js.map} +1 -1
- package/dist/chunks/{toggle.D1DUlF_5.js → toggle.8t4flh_3.js} +3 -3
- package/dist/chunks/{toggle.D1DUlF_5.js.map → toggle.8t4flh_3.js.map} +1 -1
- package/dist/chunks/{tooltip.CVUXkVlR.js → tooltip.DvsfWV0-.js} +3 -3
- package/dist/chunks/{tooltip.CVUXkVlR.js.map → tooltip.DvsfWV0-.js.map} +1 -1
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.DgbanhBM.js +409 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dorj2fX-.js.map → tutorial.vue_vue_type_script_setup_true_lang.DgbanhBM.js.map} +1 -1
- package/dist/chunks/{typography.CSIykcgS.js → typography.z9P0Ec3Q.js} +22 -22
- package/dist/chunks/{typography.CSIykcgS.js.map → typography.z9P0Ec3Q.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.kD6xtHQE.js → use-bento-toast-controller.BDYlxAYq.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.kD6xtHQE.js.map → use-bento-toast-controller.BDYlxAYq.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.DplP72ef.js → use-cached-selected-values.DaSn9dB9.js} +593 -589
- package/dist/chunks/use-cached-selected-values.DaSn9dB9.js.map +1 -0
- package/dist/chunks/{use-country-items.CongYNiX.js → use-country-items.DQR8plsq.js} +2 -2
- package/dist/chunks/{use-country-items.CongYNiX.js.map → use-country-items.DQR8plsq.js.map} +1 -1
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
- package/dist/chunks/warning-filled.Dm_HhqzW.js +29 -0
- package/dist/chunks/{warning-filled.DHw1rVWs.js.map → warning-filled.Dm_HhqzW.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +69 -67
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/accordion-item.C7rQK0Xh.js +0 -126
- package/dist/chunks/alert.BOqbFni9.js +0 -162
- package/dist/chunks/avatar.DWSW4vWC.js +0 -94
- package/dist/chunks/base-modal.09efJqFH.js.map +0 -1
- package/dist/chunks/calendar.DrP5wyvL.js.map +0 -1
- package/dist/chunks/card.BKtIXyL-.js +0 -205
- package/dist/chunks/checkbox-input.CR1lHf7f.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.D29b-JWj.js +0 -44
- package/dist/chunks/checkmark-small.BCeGkayS.js +0 -29
- package/dist/chunks/chevron-left.4JHuWe7i.js +0 -52
- package/dist/chunks/chevron-up.5-KtIp8i.js +0 -52
- package/dist/chunks/cross-circle-fill-small.DiZWEd7W.js +0 -29
- package/dist/chunks/cross-circle-fill.vLaelNTN.js +0 -44
- package/dist/chunks/cross-small.48UCoOqB.js +0 -29
- package/dist/chunks/cross.BlL0FyHo.js +0 -29
- package/dist/chunks/dashboard-section.CwOasd7G.js +0 -167
- package/dist/chunks/dashed-underline.D_262wln.js +0 -79
- package/dist/chunks/data-grid-template.ViVmshHU.js +0 -93
- package/dist/chunks/data-grid-template.ViVmshHU.js.map +0 -1
- package/dist/chunks/data-grid.CCVRJrXT.js +0 -2765
- package/dist/chunks/data-grid.CCVRJrXT.js.map +0 -1
- package/dist/chunks/date-range-picker.T10FmcWb.js +0 -923
- package/dist/chunks/date-range-picker.T10FmcWb.js.map +0 -1
- package/dist/chunks/dialog-page.CBim-VWH.js +0 -171
- package/dist/chunks/divider.CnwfddJD.js +0 -22
- package/dist/chunks/expand.D1DTqaBO.js +0 -33
- package/dist/chunks/filter-bar.DCaEgOFF.js +0 -2809
- package/dist/chunks/filter-bar.DCaEgOFF.js.map +0 -1
- package/dist/chunks/fixed-scroller.BN3jp9Ss.js.map +0 -1
- package/dist/chunks/i18n.DY5YXG5f.js +0 -2652
- package/dist/chunks/i18n.DY5YXG5f.js.map +0 -1
- package/dist/chunks/info.CNegCnli.js +0 -44
- package/dist/chunks/inspector.types.BpPQ6zrm.js +0 -116
- package/dist/chunks/link.DgEKZGKQ.js +0 -110
- package/dist/chunks/link.DgEKZGKQ.js.map +0 -1
- package/dist/chunks/refresh.BfxRdaQb.js +0 -29
- package/dist/chunks/search.0lh99z1F.js +0 -44
- package/dist/chunks/secondary-nav.CRJ27DQY.js +0 -137
- package/dist/chunks/segmented-control.hE7kcMb7.js +0 -142
- package/dist/chunks/selection-card-group.Bxv-t-CN.js.map +0 -1
- package/dist/chunks/step.D3y_Iv1_.js +0 -284
- package/dist/chunks/step.D3y_Iv1_.js.map +0 -1
- package/dist/chunks/structured-list-item.CnrBWJgo.js +0 -101
- package/dist/chunks/toast.CtEylmx6.js +0 -215
- package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Dorj2fX-.js +0 -408
- package/dist/chunks/use-cached-selected-values.DplP72ef.js.map +0 -1
- package/dist/chunks/warning-filled.DHw1rVWs.js +0 -29
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as v, useSlots as
|
|
2
|
-
import { d as
|
|
3
|
-
import { u as
|
|
4
|
-
import { F as
|
|
5
|
-
import { a as k } from "./button.
|
|
6
|
-
import { u as
|
|
7
|
-
import { B as P } from "./button-actions.
|
|
8
|
-
import { d as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as v, useSlots as D, onMounted as N, openBlock as B, createBlock as b, mergeProps as E, createSlots as $, unref as o, withCtx as l, renderSlot as s, createVNode as q, toRefs as U, ref as j, computed as S, createTextVNode as V, toDisplayString as F, useAttrs as G, watch as K, resolveDynamicComponent as Y } from "vue";
|
|
2
|
+
import { d as O, h as z, f as y, e as W, c as T, a as H, b as A } from "./base-modal.BPaKKH3Q.js";
|
|
3
|
+
import { u as w } from "./use-has-slot.B7eQSabc.js";
|
|
4
|
+
import { F as J } from "./footer-actions.gtxofUAa.js";
|
|
5
|
+
import { a as k } from "./button.Br6CyG40.js";
|
|
6
|
+
import { u as Q } from "./i18n.DL9GT2-k.js";
|
|
7
|
+
import { B as P } from "./button-actions.hdK5IgrZ.js";
|
|
8
|
+
import { d as X } from "./typography.z9P0Ec3Q.js";
|
|
9
|
+
const Z = v({
|
|
10
10
|
name: "bento-modal-default"
|
|
11
|
-
}),
|
|
12
|
-
...
|
|
11
|
+
}), x = /* @__PURE__ */ v({
|
|
12
|
+
...Z,
|
|
13
13
|
props: {
|
|
14
14
|
/**
|
|
15
15
|
* List of actions that will be used to render the buttons.
|
|
@@ -64,7 +64,7 @@ const X = v({
|
|
|
64
64
|
*/
|
|
65
65
|
columnsSize: {
|
|
66
66
|
type: String,
|
|
67
|
-
default:
|
|
67
|
+
default: O.SMALLER
|
|
68
68
|
},
|
|
69
69
|
/**
|
|
70
70
|
* If passed - sets first button color to red
|
|
@@ -99,63 +99,63 @@ const X = v({
|
|
|
99
99
|
withColumnLayout: { type: Boolean, default: !1 }
|
|
100
100
|
},
|
|
101
101
|
emits: ["update:active-page", "close-modal"],
|
|
102
|
-
setup(
|
|
103
|
-
const
|
|
104
|
-
|
|
102
|
+
setup(t, { emit: g }) {
|
|
103
|
+
const h = D(), n = w(h), c = g, d = t, r = () => {
|
|
104
|
+
c("close-modal");
|
|
105
105
|
};
|
|
106
|
-
return
|
|
107
|
-
if (!(
|
|
106
|
+
return N(() => {
|
|
107
|
+
if (!(n("content") || n("content-col-1") && n("content-col-2")) && !d.activePage)
|
|
108
108
|
throw new Error("Bento Modal default variant requires content slot or column slots");
|
|
109
|
-
}), (
|
|
110
|
-
actions:
|
|
111
|
-
"active-page":
|
|
112
|
-
size:
|
|
113
|
-
"hide-close-button":
|
|
114
|
-
"columns-size":
|
|
115
|
-
"custom-padding":
|
|
116
|
-
"is-dismissible":
|
|
117
|
-
"is-open":
|
|
118
|
-
"with-column-layout":
|
|
119
|
-
"initially-open":
|
|
120
|
-
"onUpdate:activePage": a[0] || (a[0] = (p) =>
|
|
121
|
-
onCloseModal:
|
|
109
|
+
}), (e, a) => (B(), b(z, E({ class: "b-modal-default" }, e.$attrs, {
|
|
110
|
+
actions: t.actions,
|
|
111
|
+
"active-page": t.activePage,
|
|
112
|
+
size: t.size,
|
|
113
|
+
"hide-close-button": t.hideCloseButton,
|
|
114
|
+
"columns-size": t.columnsSize,
|
|
115
|
+
"custom-padding": t.customPadding,
|
|
116
|
+
"is-dismissible": t.isDismissible,
|
|
117
|
+
"is-open": t.isOpen,
|
|
118
|
+
"with-column-layout": t.withColumnLayout,
|
|
119
|
+
"initially-open": t.initiallyOpen,
|
|
120
|
+
"onUpdate:activePage": a[0] || (a[0] = (p) => c("update:active-page", p)),
|
|
121
|
+
onCloseModal: r
|
|
122
122
|
}), $({ _: 2 }, [
|
|
123
|
-
n
|
|
123
|
+
o(n)("default") ? {
|
|
124
124
|
name: "default",
|
|
125
125
|
fn: l(() => [
|
|
126
|
-
|
|
126
|
+
s(e.$slots, "default")
|
|
127
127
|
]),
|
|
128
128
|
key: "0"
|
|
129
129
|
} : void 0,
|
|
130
|
-
n
|
|
130
|
+
o(n)("content-col-1") ? {
|
|
131
131
|
name: "content-col-1",
|
|
132
132
|
fn: l(() => [
|
|
133
|
-
|
|
133
|
+
s(e.$slots, "content-col-1")
|
|
134
134
|
]),
|
|
135
135
|
key: "1"
|
|
136
136
|
} : void 0,
|
|
137
|
-
n
|
|
137
|
+
o(n)("content-col-2") ? {
|
|
138
138
|
name: "content-col-2",
|
|
139
139
|
fn: l(() => [
|
|
140
|
-
|
|
140
|
+
s(e.$slots, "content-col-2")
|
|
141
141
|
]),
|
|
142
142
|
key: "2"
|
|
143
143
|
} : void 0,
|
|
144
|
-
n
|
|
144
|
+
o(n)("content") ? {
|
|
145
145
|
name: "content",
|
|
146
146
|
fn: l(() => [
|
|
147
|
-
|
|
147
|
+
s(e.$slots, "content")
|
|
148
148
|
]),
|
|
149
149
|
key: "3"
|
|
150
150
|
} : void 0,
|
|
151
|
-
|
|
151
|
+
t.actions && t.actions.length > 0 ? {
|
|
152
152
|
name: "actions",
|
|
153
153
|
fn: l(() => [
|
|
154
|
-
|
|
155
|
-
q(
|
|
156
|
-
actions:
|
|
157
|
-
"actions-label":
|
|
158
|
-
"destructive-actions":
|
|
154
|
+
s(e.$slots, "actions", {}, () => [
|
|
155
|
+
q(o(J), {
|
|
156
|
+
actions: t.actions,
|
|
157
|
+
"actions-label": t.actionsLabel,
|
|
158
|
+
"destructive-actions": t.destructiveActions
|
|
159
159
|
}, null, 8, ["actions", "actions-label", "destructive-actions"])
|
|
160
160
|
])
|
|
161
161
|
]),
|
|
@@ -163,15 +163,15 @@ const X = v({
|
|
|
163
163
|
} : void 0
|
|
164
164
|
]), 1040, ["actions", "active-page", "size", "hide-close-button", "columns-size", "custom-padding", "is-dismissible", "is-open", "with-column-layout", "initially-open"]));
|
|
165
165
|
}
|
|
166
|
-
}),
|
|
166
|
+
}), R = {
|
|
167
167
|
"en-US": {
|
|
168
168
|
okButtonText: "OK"
|
|
169
169
|
}
|
|
170
|
-
},
|
|
171
|
-
i18n: { messages:
|
|
170
|
+
}, _ = v({
|
|
171
|
+
i18n: { messages: R },
|
|
172
172
|
name: "bento-modal-dialog"
|
|
173
|
-
}),
|
|
174
|
-
...
|
|
173
|
+
}), ee = /* @__PURE__ */ v({
|
|
174
|
+
..._,
|
|
175
175
|
props: {
|
|
176
176
|
/**
|
|
177
177
|
* List of actions that will be used to render the buttons.
|
|
@@ -231,78 +231,78 @@ const X = v({
|
|
|
231
231
|
isOpen: { type: Boolean, required: !0 }
|
|
232
232
|
},
|
|
233
233
|
emits: ["close-modal"],
|
|
234
|
-
setup(
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
},
|
|
238
|
-
p.value.internalModalActionClose(
|
|
234
|
+
setup(t, { emit: g }) {
|
|
235
|
+
const h = g, n = t, { t: c } = Q({ messages: R }), d = D(), r = w(d), { actions: e, dialogType: a } = U(n), p = j(null), C = () => {
|
|
236
|
+
h("close-modal");
|
|
237
|
+
}, i = (u) => {
|
|
238
|
+
p.value.internalModalActionClose(u);
|
|
239
239
|
}, m = S(() => [
|
|
240
240
|
{
|
|
241
|
-
title:
|
|
242
|
-
event:
|
|
241
|
+
title: c("okButtonText"),
|
|
242
|
+
event: i,
|
|
243
243
|
variant: k.SECONDARY
|
|
244
244
|
}
|
|
245
|
-
]),
|
|
246
|
-
var
|
|
247
|
-
const
|
|
245
|
+
]), M = S(() => {
|
|
246
|
+
var L;
|
|
247
|
+
const u = {
|
|
248
248
|
title: "Cancel",
|
|
249
|
-
event:
|
|
250
|
-
}, f = (
|
|
251
|
-
return a.value === y.DESTRUCTIVE ? f.critical = !0 : a.value === y.INFO && (f.variant = k.SECONDARY), [f,
|
|
252
|
-
}),
|
|
249
|
+
event: i
|
|
250
|
+
}, f = (L = e == null ? void 0 : e.value) == null ? void 0 : L[0];
|
|
251
|
+
return a.value === y.DESTRUCTIVE ? f.critical = !0 : a.value === y.INFO && (f.variant = k.SECONDARY), [f, u];
|
|
252
|
+
}), I = S(() => ({
|
|
253
253
|
[`b-modal-dialog--${a.value}`]: a.value
|
|
254
254
|
}));
|
|
255
|
-
return
|
|
256
|
-
var
|
|
257
|
-
if (
|
|
255
|
+
return N(() => {
|
|
256
|
+
var u, f;
|
|
257
|
+
if (n.activePage)
|
|
258
258
|
throw new Error(
|
|
259
259
|
"Bento Modal Dialog cannot contain multiple pages. Use Bento Modal default variant instead."
|
|
260
260
|
);
|
|
261
|
-
if (!
|
|
261
|
+
if (!r("default") || !n.content && !r("content"))
|
|
262
262
|
throw new Error("Bento Modal Dialog requires header title and content");
|
|
263
|
-
if (((
|
|
263
|
+
if (((u = e == null ? void 0 : e.value) == null ? void 0 : u.length) > 1)
|
|
264
264
|
throw new Error("Not more than 1 action button may be provided to Modal Dialog");
|
|
265
|
-
if (a.value !== y.ACKNOWLEDGEMENT && !(
|
|
265
|
+
if (a.value !== y.ACKNOWLEDGEMENT && !(e != null && e.value))
|
|
266
266
|
throw new Error("Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button");
|
|
267
|
-
if (a.value === y.ACKNOWLEDGEMENT && ((f =
|
|
267
|
+
if (a.value === y.ACKNOWLEDGEMENT && ((f = e == null ? void 0 : e.value) != null && f.length))
|
|
268
268
|
throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
|
|
269
|
-
}), (
|
|
269
|
+
}), (u, f) => (B(), b(z, E({
|
|
270
270
|
ref_key: "modalRef",
|
|
271
271
|
ref: p,
|
|
272
|
-
class: ["b-modal-dialog",
|
|
273
|
-
actions:
|
|
274
|
-
"active-page":
|
|
272
|
+
class: ["b-modal-dialog", I.value],
|
|
273
|
+
actions: o(e),
|
|
274
|
+
"active-page": t.activePage,
|
|
275
275
|
"hide-close-button": !0,
|
|
276
276
|
size: "small",
|
|
277
|
-
"is-dismissible":
|
|
278
|
-
"is-open":
|
|
279
|
-
"modal-role":
|
|
280
|
-
"initially-open":
|
|
281
|
-
},
|
|
277
|
+
"is-dismissible": t.isDismissible,
|
|
278
|
+
"is-open": t.isOpen,
|
|
279
|
+
"modal-role": o(W).ALERT_DIALOG,
|
|
280
|
+
"initially-open": t.initiallyOpen
|
|
281
|
+
}, u.$attrs, { onCloseModal: C }), {
|
|
282
282
|
default: l(() => [
|
|
283
|
-
|
|
283
|
+
s(u.$slots, "default")
|
|
284
284
|
]),
|
|
285
285
|
content: l(() => [
|
|
286
|
-
|
|
286
|
+
V(F(t.content), 1)
|
|
287
287
|
]),
|
|
288
288
|
actions: l(() => [
|
|
289
|
-
|
|
289
|
+
o(a) === "acknowledgement" ? (B(), b(o(P), {
|
|
290
290
|
key: 0,
|
|
291
|
-
actions:
|
|
291
|
+
actions: m.value,
|
|
292
292
|
layout: "buttons-end"
|
|
293
|
-
}, null, 8, ["actions"])) : (
|
|
293
|
+
}, null, 8, ["actions"])) : (B(), b(o(P), {
|
|
294
294
|
key: 1,
|
|
295
|
-
actions:
|
|
295
|
+
actions: M.value,
|
|
296
296
|
layout: "buttons-end"
|
|
297
297
|
}, null, 8, ["actions"]))
|
|
298
298
|
]),
|
|
299
299
|
_: 3
|
|
300
300
|
}, 16, ["actions", "active-page", "class", "is-dismissible", "is-open", "modal-role", "initially-open"]));
|
|
301
301
|
}
|
|
302
|
-
}),
|
|
303
|
-
components: { BentoModalDefault:
|
|
304
|
-
}),
|
|
305
|
-
...
|
|
302
|
+
}), te = v({
|
|
303
|
+
components: { BentoModalDefault: x, BentoModalDialog: ee }
|
|
304
|
+
}), de = /* @__PURE__ */ v({
|
|
305
|
+
...te,
|
|
306
306
|
__name: "modal",
|
|
307
307
|
props: {
|
|
308
308
|
/**
|
|
@@ -355,8 +355,8 @@ const X = v({
|
|
|
355
355
|
*/
|
|
356
356
|
columnsSize: {
|
|
357
357
|
type: String,
|
|
358
|
-
default:
|
|
359
|
-
validator: (
|
|
358
|
+
default: O.SMALLER,
|
|
359
|
+
validator: (t) => Object.values(O).includes(t)
|
|
360
360
|
},
|
|
361
361
|
/**
|
|
362
362
|
* If provided, manages the padding of the whole modal container
|
|
@@ -372,7 +372,7 @@ const X = v({
|
|
|
372
372
|
dialogType: {
|
|
373
373
|
type: String,
|
|
374
374
|
default: y.CONFIRMATION,
|
|
375
|
-
validator: (
|
|
375
|
+
validator: (t) => Object.values(y).includes(t)
|
|
376
376
|
},
|
|
377
377
|
/**
|
|
378
378
|
* Hides a cross icon on the right side of the title
|
|
@@ -398,8 +398,8 @@ const X = v({
|
|
|
398
398
|
*/
|
|
399
399
|
size: {
|
|
400
400
|
type: String,
|
|
401
|
-
default:
|
|
402
|
-
validator: (
|
|
401
|
+
default: T.SMALL,
|
|
402
|
+
validator: (t) => Object.values(T).includes(t)
|
|
403
403
|
},
|
|
404
404
|
/**
|
|
405
405
|
* Choose between default or dialog versions of modal
|
|
@@ -407,7 +407,7 @@ const X = v({
|
|
|
407
407
|
variant: {
|
|
408
408
|
type: String,
|
|
409
409
|
default: "default",
|
|
410
|
-
validator: (
|
|
410
|
+
validator: (t) => Object.values(H).includes(t) || Object.values(A).includes(t)
|
|
411
411
|
},
|
|
412
412
|
/**
|
|
413
413
|
* If provided, renders the modal's content in a two-column layout an wth dividers separating its content
|
|
@@ -415,74 +415,74 @@ const X = v({
|
|
|
415
415
|
withColumnLayout: { type: Boolean, default: !1 }
|
|
416
416
|
},
|
|
417
417
|
emits: ["update:active-page", "close-modal"],
|
|
418
|
-
setup(
|
|
419
|
-
const
|
|
420
|
-
() => a.value ===
|
|
421
|
-
activePage:
|
|
422
|
-
hideCloseButton:
|
|
423
|
-
size:
|
|
424
|
-
customPadding:
|
|
425
|
-
actionsLabel:
|
|
426
|
-
destructiveActions:
|
|
427
|
-
isDismissible:
|
|
428
|
-
withColumnLayout:
|
|
429
|
-
columnsSize:
|
|
430
|
-
...
|
|
418
|
+
setup(t, { emit: g }) {
|
|
419
|
+
const n = D(), c = w(n), d = G(), r = g, e = t, a = S(() => Object.values(A).includes(e.variant) ? e.variant : A[e.variant.toUpperCase()]), p = S(
|
|
420
|
+
() => a.value === A.DEFAULT ? {
|
|
421
|
+
activePage: e.activePage,
|
|
422
|
+
hideCloseButton: e.hideCloseButton,
|
|
423
|
+
size: e.size,
|
|
424
|
+
customPadding: e.customPadding,
|
|
425
|
+
actionsLabel: e.actionsLabel,
|
|
426
|
+
destructiveActions: e.destructiveActions,
|
|
427
|
+
isDismissible: e.isDismissible ?? !0,
|
|
428
|
+
withColumnLayout: e.withColumnLayout,
|
|
429
|
+
columnsSize: e.columnsSize,
|
|
430
|
+
...d
|
|
431
431
|
} : {
|
|
432
|
-
activePage:
|
|
433
|
-
dialogType:
|
|
434
|
-
content:
|
|
435
|
-
isDismissible:
|
|
436
|
-
...
|
|
432
|
+
activePage: e.activePage,
|
|
433
|
+
dialogType: e.dialogType,
|
|
434
|
+
content: e.content,
|
|
435
|
+
isDismissible: e.isDismissible ?? !1,
|
|
436
|
+
...d
|
|
437
437
|
}
|
|
438
|
-
),
|
|
438
|
+
), C = () => {
|
|
439
439
|
r("close-modal");
|
|
440
440
|
};
|
|
441
|
-
return
|
|
442
|
-
() =>
|
|
441
|
+
return K(
|
|
442
|
+
() => e.actions,
|
|
443
443
|
() => {
|
|
444
|
-
var
|
|
445
|
-
((m = (
|
|
444
|
+
var i, m;
|
|
445
|
+
((m = (i = e.actions) == null ? void 0 : i[0]) == null ? void 0 : m.state) === "success" && setTimeout(C, 500);
|
|
446
446
|
}
|
|
447
|
-
), Object.keys(
|
|
447
|
+
), Object.keys(d).includes("overflow-visible") && X(
|
|
448
448
|
'BentoModal "overflow-visible" property',
|
|
449
449
|
`"overflow-visible" property was made redundant. BentoModal can work correctly without the need to pass the propery.
|
|
450
450
|
Remove the "overflow-visible" prop from BentoModal to remove this error.`,
|
|
451
451
|
"2.0.0"
|
|
452
|
-
), (
|
|
452
|
+
), (i, m) => (B(), b(Y(a.value), E({
|
|
453
453
|
class: "b-modal",
|
|
454
|
-
"is-open":
|
|
455
|
-
actions:
|
|
456
|
-
"initially-open":
|
|
457
|
-
},
|
|
458
|
-
onCloseModal:
|
|
459
|
-
"onUpdate:activePage": m[0] || (m[0] = (
|
|
454
|
+
"is-open": t.isOpen,
|
|
455
|
+
actions: t.actions,
|
|
456
|
+
"initially-open": t.initiallyOpen
|
|
457
|
+
}, p.value, {
|
|
458
|
+
onCloseModal: C,
|
|
459
|
+
"onUpdate:activePage": m[0] || (m[0] = (M) => r("update:active-page", M))
|
|
460
460
|
}), $({ _: 2 }, [
|
|
461
|
-
|
|
461
|
+
o(c)("default") ? {
|
|
462
462
|
name: "default",
|
|
463
463
|
fn: l(() => [
|
|
464
|
-
|
|
464
|
+
s(i.$slots, "default")
|
|
465
465
|
]),
|
|
466
466
|
key: "0"
|
|
467
467
|
} : void 0,
|
|
468
|
-
|
|
468
|
+
o(c)("content-col-1") ? {
|
|
469
469
|
name: "content-col-1",
|
|
470
470
|
fn: l(() => [
|
|
471
|
-
|
|
471
|
+
s(i.$slots, "content-col-1")
|
|
472
472
|
]),
|
|
473
473
|
key: "1"
|
|
474
474
|
} : void 0,
|
|
475
|
-
|
|
475
|
+
o(c)("content-col-2") ? {
|
|
476
476
|
name: "content-col-2",
|
|
477
477
|
fn: l(() => [
|
|
478
|
-
|
|
478
|
+
s(i.$slots, "content-col-2")
|
|
479
479
|
]),
|
|
480
480
|
key: "2"
|
|
481
481
|
} : void 0,
|
|
482
|
-
|
|
482
|
+
o(c)("content") ? {
|
|
483
483
|
name: "content",
|
|
484
484
|
fn: l(() => [
|
|
485
|
-
|
|
485
|
+
s(i.$slots, "content")
|
|
486
486
|
]),
|
|
487
487
|
key: "3"
|
|
488
488
|
} : void 0
|
|
@@ -490,6 +490,6 @@ const X = v({
|
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
492
|
export {
|
|
493
|
-
|
|
493
|
+
de as _
|
|
494
494
|
};
|
|
495
|
-
//# sourceMappingURL=modal.vue_vue_type_script_setup_true_lang.
|
|
495
|
+
//# sourceMappingURL=modal.vue_vue_type_script_setup_true_lang.Bh6Q4yIf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.vue_vue_type_script_setup_true_lang.uUB7rtBH.js","sources":["../../../vue2/src/components/modal/components/modal-default/modal-default.vue","../../../vue2/src/components/modal/components/modal-dialog/modal-dialog.vue","../../../vue2/src/components/modal/modal.vue"],"sourcesContent":["<template>\n <base-modal\n class=\"b-modal-default\"\n v-bind=\"$attrs\"\n :actions=\"actions\"\n :active-page=\"activePage\"\n :size=\"size\"\n :hide-close-button=\"hideCloseButton\"\n :columns-size=\"columnsSize\"\n :custom-padding=\"customPadding\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :with-column-layout=\"withColumnLayout\"\n :initially-open=\"initiallyOpen\"\n @update:active-page=\"emit('update:active-page', $event)\"\n @close-modal=\"onCloseModal\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n\n <template v-if=\"actions && actions.length > 0\" #actions>\n <slot name=\"actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </slot>\n </template>\n </base-modal>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, onMounted, PropType, useSlots } from 'vue';\n import { BentoModalColumnLayoutVariant, BentoModalSize } from '@/components/modal/modal.types';\n import { useHasSlot } from '@/composables';\n import { BentoButtonActionsList } from '@/components/button';\n import { FooterActions } from '@/components/internal/footer-actions';\n import BaseModal from '@/components/modal/components/base-modal/base-modal.vue';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: 'update:active-page', page: string): void;\n /**\n * Emitted when the modal is closed.\n */\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n * But you may change the color of 1-st action to red with 'critial' key\n * Not more than 3 action buttons can be provided\n * Or 2 action buttons and 1 Label for them\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: { type: String, default: null },\n\n /**\n * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: { type: String, default: null },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: { type: Boolean, default: false },\n\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: { type: Boolean, default: false },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: { type: Boolean, required: true },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: { type: Boolean, required: true },\n\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n required: true,\n },\n\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: { type: Boolean, default: false },\n });\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n onMounted(() => {\n if (!(hasSlot('content') || (hasSlot('content-col-1') && hasSlot('content-col-2'))) && !props.activePage) {\n throw new Error('Bento Modal default variant requires content slot or column slots');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Creates a Modal based off the `base-modal` component.\n * It allows two column modals as well as content modals.\n *\n * @example\n * import { BentoModalDefault } from '@/components/modal/components';\n *\n * export default {\n * components: { BentoModalDefault },\n * template: `\n * <bento-modal-default\n * :is-dismissible=\"false\"\n * :is-open=\"isOpen\"\n * @close-modal=\"isOpen = false\"\n * >\n * <template #content-col-1>\n * // Content on the left side column\n * </template>\n *\n * <template #content-col-2>\n * // Content on the right side column\n * </template>\n *\n * <template v-if=\"actions\" #actions>\n * <footer-actions :actions=\"actions\" />\n * </template>\n * </bento-modal-default>\n * `,\n * setup() {\n * const isOpen = ref(true)\n * const footerActions = [{\n * title: 'Primary action',\n * event: () => { ... }\n * }]\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-modal-default',\n });\n</script>\n","<template>\n <base-modal\n ref=\"modalRef\"\n class=\"b-modal-dialog\"\n :actions=\"actions\"\n :active-page=\"activePage\"\n :class=\"modalDialogConditionalClasses\"\n :hide-close-button=\"true\"\n size=\"small\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :modal-role=\"BentoModalRole.ALERT_DIALOG\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"$attrs\"\n @close-modal=\"onCloseModal\"\n >\n <template #default>\n <slot></slot>\n </template>\n <template #content>\n {{ content }}\n </template>\n\n <template #actions>\n <bento-button-actions\n v-if=\"dialogType === 'acknowledgement'\"\n :actions=\"acknowledgementDialogActions\"\n layout=\"buttons-end\"\n />\n\n <bento-button-actions v-else :actions=\"dialogActions\" layout=\"buttons-end\" />\n </template>\n </base-modal>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, onMounted, PropType, Ref, ref, toRefs, useSlots } from 'vue';\n import { BentoModalDialogType, BentoModalRole } from '@/components/modal/modal.types';\n import { useHasSlot } from '@/composables';\n import {\n BentoButtonActionObject,\n BentoButtonActions,\n BentoButtonActionsList,\n BentoButtonVariant,\n } from '@/components/button';\n import { useI18n } from '@/utils/ts/i18n';\n import BaseModal from '@/components/modal/components/base-modal/base-modal.vue';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const emit = defineEmits<{\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * Only 1 action button is allowed for Modal Dialog\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * Text that is displayed in the content section of modal\n */\n content: { type: String, required: true },\n\n /**\n * Sets different action buttons styling and appearance\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n required: true,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: { type: Boolean, required: true },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: { type: Boolean, required: true },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const { actions, dialogType } = toRefs(props);\n const modalRef: Ref<InstanceType<typeof BaseModal>> = ref(null);\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n const onCloseActionButton = (event: Event) => {\n // Calls \"base-modal\" internal function to initialize the\n // \"close\" animation and trigger the \"close\" event.\n // This follows the same \"dialog\" pattern of calling \"dialog.close()\"\n modalRef.value.internalModalActionClose(event);\n };\n\n const acknowledgementDialogActions = computed(() => [\n {\n title: t('okButtonText') as string,\n event: onCloseActionButton,\n variant: BentoButtonVariant.SECONDARY,\n },\n ]);\n\n const dialogActions = computed(() => {\n const mandatoryCancelActionButton: BentoButtonActionObject = {\n title: 'Cancel',\n event: onCloseActionButton,\n };\n const updatedPassedActionsObject: BentoButtonActionObject = actions?.value?.[0];\n\n if (dialogType.value === BentoModalDialogType.DESTRUCTIVE) {\n updatedPassedActionsObject.critical = true;\n } else if (dialogType.value === BentoModalDialogType.INFO) {\n updatedPassedActionsObject.variant = BentoButtonVariant.SECONDARY;\n }\n\n return [updatedPassedActionsObject, mandatoryCancelActionButton];\n });\n\n const modalDialogConditionalClasses = computed(() => ({\n [`b-modal-dialog--${dialogType.value}`]: dialogType.value,\n }));\n\n onMounted(() => {\n if (props.activePage) {\n throw new Error(\n 'Bento Modal Dialog cannot contain multiple pages. Use Bento Modal default variant instead.'\n );\n }\n\n if (!hasSlot('default') || (!props.content && !hasSlot('content'))) {\n throw new Error('Bento Modal Dialog requires header title and content');\n }\n\n if (actions?.value?.length > 1) {\n throw new Error('Not more than 1 action button may be provided to Modal Dialog');\n }\n\n if (dialogType.value !== BentoModalDialogType.ACKNOWLEDGEMENT && !actions?.value) {\n throw new Error('Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button');\n }\n\n if (dialogType.value === BentoModalDialogType.ACKNOWLEDGEMENT && actions?.value?.length) {\n throw new Error('Acknowledgement Modal Dialog does not accept action buttons');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Creates a \"dialog\" type of modal.\n * These are are modals that require a deliberate user action or acknowledgement\n * (confirmations or destructive actions).\n *\n * It’s not customizable and consists of title, description label and one action.\n *\n * @example\n * import { BentoModalDialog } from '@/components/modal/components';\n *\n * export default {\n * components: { BentoModalDialog },\n * template: `\n * <bento-modal-dialog\n * dialog-type=\"destructive\"\n * :is-dismissible=\"false\"\n * :is-open=\"isOpen\"\n * @close-modal=\"isOpen = false\"\n * >\n * Dialog content\n * </bento-modal-dialog>\n * `,\n * setup() {\n * const isOpen = ref(true)\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-modal-dialog',\n });\n</script>\n","<template>\n <component\n :is=\"computedVariant\"\n class=\"b-modal\"\n :is-open=\"isOpen\"\n :actions=\"actions\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"customProps\"\n @close-modal=\"onCloseModal\"\n @update:active-page=\"emit('update:active-page', $event)\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, PropType, useAttrs, useSlots, watch } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n BentoModalDialogType,\n BentoModalSize,\n BentoModalVariant,\n BentoModalVariantMapping,\n } from './modal.types';\n import { BentoModalDefault, BentoModalDialog } from '@/components/modal/components';\n import { useHasSlot } from '@/composables';\n import { BentoButtonActionsList } from '@/components/button';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME = 500;\n\n type BentoModalVariantProp = BentoModalVariant | `${BentoModalVariant}` | `${BentoModalVariantMapping}`;\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const attrs = useAttrs();\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: 'update:active-page', page: string): void;\n /**\n * Emitted when the modal is closed\n */\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: { type: String, default: null },\n\n /**\n * Text that will be displayed in the content section of Modal\n */\n content: { type: String, default: null },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant | `${BentoModalColumnLayoutVariant}`>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n validator: (value: BentoModalColumnLayoutVariant) =>\n Object.values(BentoModalColumnLayoutVariant).includes(value),\n },\n\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: { type: String, default: null },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: { type: Boolean, default: false },\n\n /**\n * Changes the visual styling of action buttons\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n default: BentoModalDialogType.CONFIRMATION,\n validator: (value: BentoModalDialogType) => Object.values(BentoModalDialogType).includes(value),\n },\n\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed without performing an action\n */\n isDismissible: { type: Boolean, default: null },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n default: BentoModalSize.SMALL,\n validator: (value: BentoModalSize) => Object.values(BentoModalSize).includes(value),\n },\n\n /**\n * Choose between default or dialog versions of modal\n */\n variant: {\n type: String as PropType<BentoModalVariantProp>,\n default: 'default',\n validator: (value: BentoModalVariantProp) =>\n Object.values<BentoModalVariantProp>(BentoModalVariant).includes(value) ||\n Object.values<BentoModalVariantProp>(BentoModalVariantMapping).includes(value),\n },\n\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: { type: Boolean, default: false },\n });\n\n const computedVariant = computed(() => {\n if (Object.values<BentoModalVariantProp>(BentoModalVariantMapping).includes(props.variant)) {\n return props.variant;\n }\n return BentoModalVariantMapping[props.variant.toUpperCase()];\n });\n\n const customProps = computed(() =>\n computedVariant.value === BentoModalVariantMapping.DEFAULT\n ? {\n activePage: props.activePage,\n hideCloseButton: props.hideCloseButton,\n size: props.size,\n customPadding: props.customPadding,\n actionsLabel: props.actionsLabel,\n destructiveActions: props.destructiveActions,\n isDismissible: props.isDismissible ?? true,\n withColumnLayout: props.withColumnLayout,\n columnsSize: props.columnsSize,\n ...attrs,\n }\n : {\n activePage: props.activePage,\n dialogType: props.dialogType,\n content: props.content,\n isDismissible: props.isDismissible ?? false,\n ...attrs,\n }\n );\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n // If the first button is a loading button then close the modal have 0.5 seconds\n // if the state is changed to 'success'.\n watch(\n () => props.actions,\n () => {\n if (props.actions?.[0]?.state === 'success') {\n setTimeout(onCloseModal, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME);\n }\n }\n );\n\n if (Object.keys(attrs).includes('overflow-visible')) {\n deprecate(\n 'BentoModal \"overflow-visible\" property',\n `\"overflow-visible\" property was made redundant. BentoModal can work correctly without the need to pass the propery.\n Remove the \"overflow-visible\" prop from BentoModal to remove this error.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Modal is a window that appear over any other page content\n * and focus user attention exclusively on one task or piece of\n * information at the moment.\n *\n * @example\n * import { BentoModal } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModal },\n * template: `\n * <bento-modal :isOpen=\"true\">\n * Title of the Modal\n * <template #content>\n * Mandatory content slot\n * </template>\n * </bento-modal>\n * `\n * };\n */\n export default defineComponent({\n components: { BentoModalDefault, BentoModalDialog },\n });\n</script>\n"],"names":["__default__","defineComponent","slots","useSlots","hasSlot","useHasSlot","onCloseModal","emit","onMounted","props","messages","t","useI18n","actions","dialogType","toRefs","modalRef","ref","onCloseActionButton","event","acknowledgementDialogActions","computed","BentoButtonVariant","dialogActions","mandatoryCancelActionButton","updatedPassedActionsObject","_a","BentoModalDialogType","modalDialogConditionalClasses","_b","BentoModalDefault","BentoModalDialog","LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME","attrs","useAttrs","computedVariant","BentoModalVariantMapping","customProps","watch","deprecate"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"modal.vue_vue_type_script_setup_true_lang.Bh6Q4yIf.js","sources":["../../../vue2/src/components/modal/components/modal-default/modal-default.vue","../../../vue2/src/components/modal/components/modal-dialog/modal-dialog.vue","../../../vue2/src/components/modal/modal.vue"],"sourcesContent":["<template>\n <base-modal\n class=\"b-modal-default\"\n v-bind=\"$attrs\"\n :actions=\"actions\"\n :active-page=\"activePage\"\n :size=\"size\"\n :hide-close-button=\"hideCloseButton\"\n :columns-size=\"columnsSize\"\n :custom-padding=\"customPadding\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :with-column-layout=\"withColumnLayout\"\n :initially-open=\"initiallyOpen\"\n @update:active-page=\"emit('update:active-page', $event)\"\n @close-modal=\"onCloseModal\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n\n <template v-if=\"actions && actions.length > 0\" #actions>\n <slot name=\"actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </slot>\n </template>\n </base-modal>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, onMounted, PropType, useSlots } from 'vue';\n import { BentoModalColumnLayoutVariant, BentoModalSize } from '@/components/modal/modal.types';\n import { useHasSlot } from '@/composables';\n import { BentoButtonActionsList } from '@/components/button';\n import { FooterActions } from '@/components/internal/footer-actions';\n import BaseModal from '@/components/modal/components/base-modal/base-modal.vue';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: 'update:active-page', page: string): void;\n /**\n * Emitted when the modal is closed.\n */\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n * But you may change the color of 1-st action to red with 'critial' key\n * Not more than 3 action buttons can be provided\n * Or 2 action buttons and 1 Label for them\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: { type: String, default: null },\n\n /**\n * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: { type: String, default: null },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: { type: Boolean, default: false },\n\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: { type: Boolean, default: false },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: { type: Boolean, required: true },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: { type: Boolean, required: true },\n\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n required: true,\n },\n\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: { type: Boolean, default: false },\n });\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n onMounted(() => {\n if (!(hasSlot('content') || (hasSlot('content-col-1') && hasSlot('content-col-2'))) && !props.activePage) {\n throw new Error('Bento Modal default variant requires content slot or column slots');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Creates a Modal based off the `base-modal` component.\n * It allows two column modals as well as content modals.\n *\n * @example\n * import { BentoModalDefault } from '@/components/modal/components';\n *\n * export default {\n * components: { BentoModalDefault },\n * template: `\n * <bento-modal-default\n * :is-dismissible=\"false\"\n * :is-open=\"isOpen\"\n * @close-modal=\"isOpen = false\"\n * >\n * <template #content-col-1>\n * // Content on the left side column\n * </template>\n *\n * <template #content-col-2>\n * // Content on the right side column\n * </template>\n *\n * <template v-if=\"actions\" #actions>\n * <footer-actions :actions=\"actions\" />\n * </template>\n * </bento-modal-default>\n * `,\n * setup() {\n * const isOpen = ref(true)\n * const footerActions = [{\n * title: 'Primary action',\n * event: () => { ... }\n * }]\n * }\n * }\n */\n export default defineComponent({\n name: 'bento-modal-default',\n });\n</script>\n","<template>\n <base-modal\n ref=\"modalRef\"\n class=\"b-modal-dialog\"\n :actions=\"actions\"\n :active-page=\"activePage\"\n :class=\"modalDialogConditionalClasses\"\n :hide-close-button=\"true\"\n size=\"small\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :modal-role=\"BentoModalRole.ALERT_DIALOG\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"$attrs\"\n @close-modal=\"onCloseModal\"\n >\n <template #default>\n <slot></slot>\n </template>\n <template #content>\n {{ content }}\n </template>\n\n <template #actions>\n <bento-button-actions\n v-if=\"dialogType === 'acknowledgement'\"\n :actions=\"acknowledgementDialogActions\"\n layout=\"buttons-end\"\n />\n\n <bento-button-actions v-else :actions=\"dialogActions\" layout=\"buttons-end\" />\n </template>\n </base-modal>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, onMounted, PropType, Ref, ref, toRefs, useSlots } from 'vue';\n import { BentoModalDialogType, BentoModalRole } from '@/components/modal/modal.types';\n import { useHasSlot } from '@/composables';\n import {\n BentoButtonActionObject,\n BentoButtonActions,\n BentoButtonActionsList,\n BentoButtonVariant,\n } from '@/components/button';\n import { useI18n } from '@/utils/ts/i18n';\n import BaseModal from '@/components/modal/components/base-modal/base-modal.vue';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const emit = defineEmits<{\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * Only 1 action button is allowed for Modal Dialog\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * Text that is displayed in the content section of modal\n */\n content: { type: String, required: true },\n\n /**\n * Sets different action buttons styling and appearance\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n required: true,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: { type: Boolean, required: true },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: { type: Boolean, required: true },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const { actions, dialogType } = toRefs(props);\n const modalRef: Ref<InstanceType<typeof BaseModal>> = ref(null);\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n const onCloseActionButton = (event: Event) => {\n // Calls \"base-modal\" internal function to initialize the\n // \"close\" animation and trigger the \"close\" event.\n // This follows the same \"dialog\" pattern of calling \"dialog.close()\"\n modalRef.value.internalModalActionClose(event);\n };\n\n const acknowledgementDialogActions = computed(() => [\n {\n title: t('okButtonText') as string,\n event: onCloseActionButton,\n variant: BentoButtonVariant.SECONDARY,\n },\n ]);\n\n const dialogActions = computed(() => {\n const mandatoryCancelActionButton: BentoButtonActionObject = {\n title: 'Cancel',\n event: onCloseActionButton,\n };\n const updatedPassedActionsObject: BentoButtonActionObject = actions?.value?.[0];\n\n if (dialogType.value === BentoModalDialogType.DESTRUCTIVE) {\n updatedPassedActionsObject.critical = true;\n } else if (dialogType.value === BentoModalDialogType.INFO) {\n updatedPassedActionsObject.variant = BentoButtonVariant.SECONDARY;\n }\n\n return [updatedPassedActionsObject, mandatoryCancelActionButton];\n });\n\n const modalDialogConditionalClasses = computed(() => ({\n [`b-modal-dialog--${dialogType.value}`]: dialogType.value,\n }));\n\n onMounted(() => {\n if (props.activePage) {\n throw new Error(\n 'Bento Modal Dialog cannot contain multiple pages. Use Bento Modal default variant instead.'\n );\n }\n\n if (!hasSlot('default') || (!props.content && !hasSlot('content'))) {\n throw new Error('Bento Modal Dialog requires header title and content');\n }\n\n if (actions?.value?.length > 1) {\n throw new Error('Not more than 1 action button may be provided to Modal Dialog');\n }\n\n if (dialogType.value !== BentoModalDialogType.ACKNOWLEDGEMENT && !actions?.value) {\n throw new Error('Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button');\n }\n\n if (dialogType.value === BentoModalDialogType.ACKNOWLEDGEMENT && actions?.value?.length) {\n throw new Error('Acknowledgement Modal Dialog does not accept action buttons');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Creates a \"dialog\" type of modal.\n * These are are modals that require a deliberate user action or acknowledgement\n * (confirmations or destructive actions).\n *\n * It’s not customizable and consists of title, description label and one action.\n *\n * @example\n * import { BentoModalDialog } from '@/components/modal/components';\n *\n * export default {\n * components: { BentoModalDialog },\n * template: `\n * <bento-modal-dialog\n * dialog-type=\"destructive\"\n * :is-dismissible=\"false\"\n * :is-open=\"isOpen\"\n * @close-modal=\"isOpen = false\"\n * >\n * Dialog content\n * </bento-modal-dialog>\n * `,\n * setup() {\n * const isOpen = ref(true)\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-modal-dialog',\n });\n</script>\n","<template>\n <component\n :is=\"computedVariant\"\n class=\"b-modal\"\n :is-open=\"isOpen\"\n :actions=\"actions\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"customProps\"\n @close-modal=\"onCloseModal\"\n @update:active-page=\"emit('update:active-page', $event)\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, PropType, useAttrs, useSlots, watch } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n BentoModalDialogType,\n BentoModalSize,\n BentoModalVariant,\n BentoModalVariantMapping,\n } from './modal.types';\n import { BentoModalDefault, BentoModalDialog } from '@/components/modal/components';\n import { useHasSlot } from '@/composables';\n import { BentoButtonActionsList } from '@/components/button';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME = 500;\n\n type BentoModalVariantProp = BentoModalVariant | `${BentoModalVariant}` | `${BentoModalVariantMapping}`;\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const attrs = useAttrs();\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: 'update:active-page', page: string): void;\n /**\n * Emitted when the modal is closed\n */\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: { type: String, default: null },\n\n /**\n * Text that will be displayed in the content section of Modal\n */\n content: { type: String, default: null },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant | `${BentoModalColumnLayoutVariant}`>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n validator: (value: BentoModalColumnLayoutVariant) =>\n Object.values(BentoModalColumnLayoutVariant).includes(value),\n },\n\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: { type: String, default: null },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: { type: Boolean, default: false },\n\n /**\n * Changes the visual styling of action buttons\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n default: BentoModalDialogType.CONFIRMATION,\n validator: (value: BentoModalDialogType) => Object.values(BentoModalDialogType).includes(value),\n },\n\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed without performing an action\n */\n isDismissible: { type: Boolean, default: null },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n default: BentoModalSize.SMALL,\n validator: (value: BentoModalSize) => Object.values(BentoModalSize).includes(value),\n },\n\n /**\n * Choose between default or dialog versions of modal\n */\n variant: {\n type: String as PropType<BentoModalVariantProp>,\n default: 'default',\n validator: (value: BentoModalVariantProp) =>\n Object.values<BentoModalVariantProp>(BentoModalVariant).includes(value) ||\n Object.values<BentoModalVariantProp>(BentoModalVariantMapping).includes(value),\n },\n\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: { type: Boolean, default: false },\n });\n\n const computedVariant = computed(() => {\n if (Object.values<BentoModalVariantProp>(BentoModalVariantMapping).includes(props.variant)) {\n return props.variant;\n }\n return BentoModalVariantMapping[props.variant.toUpperCase()];\n });\n\n const customProps = computed(() =>\n computedVariant.value === BentoModalVariantMapping.DEFAULT\n ? {\n activePage: props.activePage,\n hideCloseButton: props.hideCloseButton,\n size: props.size,\n customPadding: props.customPadding,\n actionsLabel: props.actionsLabel,\n destructiveActions: props.destructiveActions,\n isDismissible: props.isDismissible ?? true,\n withColumnLayout: props.withColumnLayout,\n columnsSize: props.columnsSize,\n ...attrs,\n }\n : {\n activePage: props.activePage,\n dialogType: props.dialogType,\n content: props.content,\n isDismissible: props.isDismissible ?? false,\n ...attrs,\n }\n );\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n // If the first button is a loading button then close the modal have 0.5 seconds\n // if the state is changed to 'success'.\n watch(\n () => props.actions,\n () => {\n if (props.actions?.[0]?.state === 'success') {\n setTimeout(onCloseModal, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME);\n }\n }\n );\n\n if (Object.keys(attrs).includes('overflow-visible')) {\n deprecate(\n 'BentoModal \"overflow-visible\" property',\n `\"overflow-visible\" property was made redundant. BentoModal can work correctly without the need to pass the propery.\n Remove the \"overflow-visible\" prop from BentoModal to remove this error.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Modal is a window that appear over any other page content\n * and focus user attention exclusively on one task or piece of\n * information at the moment.\n *\n * @example\n * import { BentoModal } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModal },\n * template: `\n * <bento-modal :isOpen=\"true\">\n * Title of the Modal\n * <template #content>\n * Mandatory content slot\n * </template>\n * </bento-modal>\n * `\n * };\n */\n export default defineComponent({\n components: { BentoModalDefault, BentoModalDialog },\n });\n</script>\n"],"names":["defineComponent","slots","useSlots","hasSlot","useHasSlot","emit","__emit","props","__props","onCloseModal","onMounted","messages","t","useI18n","actions","dialogType","toRefs","modalRef","ref","onCloseActionButton","event","acknowledgementDialogActions","computed","BentoButtonVariant","dialogActions","mandatoryCancelActionButton","updatedPassedActionsObject","_a","BentoModalDialogType","modalDialogConditionalClasses","_b","BentoModalDefault","BentoModalDialog","attrs","useAttrs","computedVariant","BentoModalVariantMapping","customProps","watch","deprecate"],"mappings":";;;;;;;;AA8MI,UAAeA,EAAgB;AAAA,EAC3B,MAAM;AACV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AApKD,UAAMC,IAAQC,EAAS,GACjBC,IAAUC,EAAWH,CAAK,GAC1BI,IAAOC,GAWPC,IAAQC,GAoGRC,IAAe,MAAM;AACvB,MAAAJ,EAAK,aAAa;AAAA,IACtB;AAEA,WAAAK,EAAU,MAAM;AACZ,UAAI,EAAEP,EAAQ,SAAS,KAAMA,EAAQ,eAAe,KAAKA,EAAQ,eAAe,MAAO,CAACI,EAAM;AACpF,cAAA,IAAI,MAAM,mEAAmE;AAAA,IACvF,CACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OCsDcP,EAAgB;AAAA,EAC3B,MAAM,EAAE,UAAAW,EAAS;AAAA,EACjB,MAAM;AACV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA3KD,UAAMN,IAAOC,GAIPC,IAAQC,GAiER,EAAE,GAAAI,EAAE,IAAIC,EAAoC,EAAE,UAAAF,GAAU,GAExDV,IAAQC,EAAS,GACjBC,IAAUC,EAAWH,CAAK,GAC1B,EAAE,SAAAa,GAAS,YAAAC,MAAeC,EAAOT,CAAK,GACtCU,IAAgDC,EAAI,IAAI,GAExDT,IAAe,MAAM;AACvB,MAAAJ,EAAK,aAAa;AAAA,IACtB,GAEMc,IAAsB,CAACC,MAAiB;AAIjC,MAAAH,EAAA,MAAM,yBAAyBG,CAAK;AAAA,IACjD,GAEMC,IAA+BC,EAAS,MAAM;AAAA,MAChD;AAAA,QACI,OAAOV,EAAE,cAAc;AAAA,QACvB,OAAOO;AAAA,QACP,SAASI,EAAmB;AAAA,MAAA;AAAA,IAChC,CACH,GAEKC,IAAgBF,EAAS,MAAM;;AACjC,YAAMG,IAAuD;AAAA,QACzD,OAAO;AAAA,QACP,OAAON;AAAA,MACX,GACMO,KAAsDC,IAAAb,KAAA,gBAAAA,EAAS,UAAT,gBAAAa,EAAiB;AAEzE,aAAAZ,EAAW,UAAUa,EAAqB,cAC1CF,EAA2B,WAAW,KAC/BX,EAAW,UAAUa,EAAqB,SACjDF,EAA2B,UAAUH,EAAmB,YAGrD,CAACG,GAA4BD,CAA2B;AAAA,IAAA,CAClE,GAEKI,IAAgCP,EAAS,OAAO;AAAA,MAClD,CAAC,mBAAmBP,EAAW,KAAK,EAAE,GAAGA,EAAW;AAAA,IAAA,EACtD;AAEF,WAAAL,EAAU,MAAM;;AACZ,UAAIH,EAAM;AACN,cAAM,IAAI;AAAA,UACN;AAAA,QACJ;AAGA,UAAA,CAACJ,EAAQ,SAAS,KAAM,CAACI,EAAM,WAAW,CAACJ,EAAQ,SAAS;AACtD,cAAA,IAAI,MAAM,sDAAsD;AAGtE,YAAAwB,IAAAb,KAAA,gBAAAA,EAAS,UAAT,gBAAAa,EAAgB,UAAS;AACnB,cAAA,IAAI,MAAM,+DAA+D;AAGnF,UAAIZ,EAAW,UAAUa,EAAqB,mBAAmB,EAACd,KAAA,QAAAA,EAAS;AACjE,cAAA,IAAI,MAAM,oFAAoF;AAGxG,UAAIC,EAAW,UAAUa,EAAqB,qBAAmBE,IAAAhB,KAAA,gBAAAA,EAAS,UAAT,QAAAgB,EAAgB;AACvE,cAAA,IAAI,MAAM,6DAA6D;AAAA,IACjF,CACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCoEc9B,EAAgB;AAAA,EAC3B,YAAY,EAAE+B,mBAAAA,qBAAmBC,GAAiB;AACtD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5ND,UAAM/B,IAAQC,EAAS,GACjBC,IAAUC,EAAWH,CAAK,GAC1BgC,IAAQC,EAAS,GACjB7B,IAAOC,GAWPC,IAAQC,GAgIR2B,IAAkBb,EAAS,MACzB,OAAO,OAA8Bc,CAAwB,EAAE,SAAS7B,EAAM,OAAO,IAC9EA,EAAM,UAEV6B,EAAyB7B,EAAM,QAAQ,YAAA,CAAa,CAC9D,GAEK8B,IAAcf;AAAA,MAAS,MACzBa,EAAgB,UAAUC,EAAyB,UAC7C;AAAA,QACI,YAAY7B,EAAM;AAAA,QAClB,iBAAiBA,EAAM;AAAA,QACvB,MAAMA,EAAM;AAAA,QACZ,eAAeA,EAAM;AAAA,QACrB,cAAcA,EAAM;AAAA,QACpB,oBAAoBA,EAAM;AAAA,QAC1B,eAAeA,EAAM,iBAAiB;AAAA,QACtC,kBAAkBA,EAAM;AAAA,QACxB,aAAaA,EAAM;AAAA,QACnB,GAAG0B;AAAA,MAAA,IAEP;AAAA,QACI,YAAY1B,EAAM;AAAA,QAClB,YAAYA,EAAM;AAAA,QAClB,SAASA,EAAM;AAAA,QACf,eAAeA,EAAM,iBAAiB;AAAA,QACtC,GAAG0B;AAAA,MAAA;AAAA,IAEjB,GAEMxB,IAAe,MAAM;AACvB,MAAAJ,EAAK,aAAa;AAAA,IACtB;AAIA,WAAAiC;AAAA,MACI,MAAM/B,EAAM;AAAA,MACZ,MAAM;;AACF,UAAIuB,KAAAH,IAAApB,EAAM,YAAN,gBAAAoB,EAAgB,OAAhB,gBAAAG,EAAoB,WAAU,aAC9B,WAAWrB,GAAc,GAA0C;AAAA,MACvE;AAAA,IAER,GAEI,OAAO,KAAKwB,CAAK,EAAE,SAAS,kBAAkB,KAC9CM;AAAA,MACI;AAAA,MACA;AAAA;AAAA,MAEA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|