@adyen/bento-vue2 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +8 -4
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
- package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -51
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +24 -28
- package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +161 -150
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +77 -15
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +36 -11
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +2 -22
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +326 -14
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +1 -21
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +1 -21
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +277 -104
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +5 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
- package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +0 -26
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -10
- package/dist/@types/packages/vue2/src/components/filter-bar/components/{base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts → filter-bar-button/filter-bar-button.vue.d.ts} +17 -22
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +50 -47
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/__test__/calendar-month-day-stub.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +16 -339
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -7
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -9
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -12
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
- package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +4 -1
- package/dist/@types/packages/vue2/src/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
- package/dist/accordion.js +69 -177
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +57 -60
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chevron-up.css +1 -0
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +2 -2
- package/dist/button.js +110 -12
- package/dist/button.js.map +1 -1
- package/dist/card.js +66 -67
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +27 -26
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.98379576.js → base-button.bd8fa976.js} +24 -27
- package/dist/chunks/base-button.bd8fa976.js.map +1 -0
- package/dist/chunks/base-modal.a365f260.js +207 -0
- package/dist/chunks/base-modal.a365f260.js.map +1 -0
- package/dist/chunks/{button.d0c9527d.js → button.fb307df3.js} +36 -39
- package/dist/chunks/button.fb307df3.js.map +1 -0
- package/dist/chunks/{calendar.0ae43a96.js → calendar.79ea42c1.js} +214 -217
- package/dist/chunks/calendar.79ea42c1.js.map +1 -0
- package/dist/chunks/checkbox.c7d791ed.js +173 -0
- package/dist/chunks/checkbox.c7d791ed.js.map +1 -0
- package/dist/chunks/{chevron-down.b851a6da.js → chevron-up.674ec2e5.js} +8 -8
- package/dist/chunks/chevron-up.674ec2e5.js.map +1 -0
- package/dist/chunks/{controls-group.b827382b.js → controls-group.5d3e04dd.js} +20 -20
- package/dist/chunks/controls-group.5d3e04dd.js.map +1 -0
- package/dist/chunks/{copy.5a4cbd4d.js → copy.ac796536.js} +37 -38
- package/dist/chunks/copy.ac796536.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.819e43f7.js → dropdown-default-textbox.109c36d2.js} +38 -40
- package/dist/chunks/dropdown-default-textbox.109c36d2.js.map +1 -0
- package/dist/chunks/{dropdown.c05678d0.js → dropdown.fd93f0ce.js} +351 -335
- package/dist/chunks/dropdown.fd93f0ce.js.map +1 -0
- package/dist/chunks/error-message.3b3c33d4.js +47 -0
- package/dist/chunks/error-message.3b3c33d4.js.map +1 -0
- package/dist/chunks/{footer-actions.67642347.js → footer-actions.f02e8699.js} +23 -23
- package/dist/chunks/footer-actions.f02e8699.js.map +1 -0
- package/dist/chunks/get-slot-text.c1114034.js +9 -0
- package/dist/chunks/get-slot-text.c1114034.js.map +1 -0
- package/dist/chunks/{grid-layout.73f23b1b.js → grid-layout.b7e0d964.js} +2 -2
- package/dist/chunks/{grid-layout.73f23b1b.js.map → grid-layout.b7e0d964.js.map} +1 -1
- package/dist/chunks/{index.56858f4e.js → index.45295dd3.js} +23 -19
- package/dist/chunks/index.45295dd3.js.map +1 -0
- package/dist/chunks/{index.10aaf539.js → index.88ff49c2.js} +136 -142
- package/dist/chunks/index.88ff49c2.js.map +1 -0
- package/dist/chunks/{index.73d50fa6.js → index.9902cae4.js} +65 -68
- package/dist/chunks/{index.73d50fa6.js.map → index.9902cae4.js.map} +1 -1
- package/dist/chunks/{index.0cf00b47.js → index.bd734551.js} +35 -37
- package/dist/chunks/index.bd734551.js.map +1 -0
- package/dist/chunks/{index.133e4da0.js → index.c85a1ab9.js} +81 -79
- package/dist/chunks/{index.133e4da0.js.map → index.c85a1ab9.js.map} +1 -1
- package/dist/chunks/{index.f0f8ed98.js → index.c8f81673.js} +23 -26
- package/dist/chunks/index.c8f81673.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.8d6cccac.js → listbox-option-tag.ec42431b.js} +32 -36
- package/dist/chunks/listbox-option-tag.ec42431b.js.map +1 -0
- package/dist/chunks/{listbox.116ed0c1.js → listbox.e792d2d6.js} +244 -251
- package/dist/chunks/listbox.e792d2d6.js.map +1 -0
- package/dist/chunks/loading-button.429c8416.js +86 -0
- package/dist/chunks/loading-button.429c8416.js.map +1 -0
- package/dist/chunks/tabs.keys.358742f2.js +7 -0
- package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
- package/dist/chunks/{tooltip.2aff4fa6.js → tooltip.a47ace87.js} +49 -52
- package/dist/chunks/tooltip.a47ace87.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.cbdfe693.js +13 -0
- package/dist/chunks/use-default-slot-validator.cbdfe693.js.map +1 -0
- package/dist/chunks/use-has-slot.6052d56a.js +6 -0
- package/dist/chunks/use-has-slot.6052d56a.js.map +1 -0
- package/dist/code-snippet.js +469 -413
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +492 -494
- package/dist/country.js.map +1 -1
- package/dist/currency.js +32 -35
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +595 -603
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +76 -80
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +37 -39
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +134 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/filter-bar.js +648 -638
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +64 -64
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +61 -63
- package/dist/header.js.map +1 -1
- package/dist/image.js +82 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +216 -205
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +99 -123
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +27 -26
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +96 -104
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +111 -264
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +148 -145
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +16 -18
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +58 -54
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +13 -17
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +71 -72
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +54 -66
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +68 -55
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +65 -64
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +20 -23
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +110 -141
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +68 -60
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +23 -26
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +97 -96
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +125 -125
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +44 -48
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +54 -52
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +651 -397
- package/package.json +9 -12
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/chevron-down.css +0 -1
- package/dist/chunks/base-button.98379576.js.map +0 -1
- package/dist/chunks/button-actions.bd397c79.js +0 -104
- package/dist/chunks/button-actions.bd397c79.js.map +0 -1
- package/dist/chunks/button.d0c9527d.js.map +0 -1
- package/dist/chunks/calendar.0ae43a96.js.map +0 -1
- package/dist/chunks/checkbox.f8457c93.js +0 -164
- package/dist/chunks/checkbox.f8457c93.js.map +0 -1
- package/dist/chunks/chevron-down.b851a6da.js.map +0 -1
- package/dist/chunks/controls-group.b827382b.js.map +0 -1
- package/dist/chunks/copy.5a4cbd4d.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +0 -1
- package/dist/chunks/dropdown.c05678d0.js.map +0 -1
- package/dist/chunks/error-message.0433b539.js +0 -47
- package/dist/chunks/error-message.0433b539.js.map +0 -1
- package/dist/chunks/footer-actions.67642347.js.map +0 -1
- package/dist/chunks/get-slot-text.e5c766d0.js +0 -9
- package/dist/chunks/get-slot-text.e5c766d0.js.map +0 -1
- package/dist/chunks/index.0cf00b47.js.map +0 -1
- package/dist/chunks/index.10aaf539.js.map +0 -1
- package/dist/chunks/index.56858f4e.js.map +0 -1
- package/dist/chunks/index.f0f8ed98.js.map +0 -1
- package/dist/chunks/listbox-option-tag.8d6cccac.js.map +0 -1
- package/dist/chunks/listbox.116ed0c1.js.map +0 -1
- package/dist/chunks/loading-button.1c201f87.js +0 -84
- package/dist/chunks/loading-button.1c201f87.js.map +0 -1
- package/dist/chunks/tooltip.2aff4fa6.js.map +0 -1
- package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
- package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
- package/dist/chunks/use-has-slot.068222e6.js +0 -5
- package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
package/dist/modal.js
CHANGED
|
@@ -1,167 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { n as A } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
11
|
-
import { F as j } from "./chunks/footer-actions.67642347.js";
|
|
12
|
-
import { B as Y, c as H } from "./chunks/button-actions.bd397c79.js";
|
|
13
|
-
import "./assets/index17.css";
|
|
14
|
-
var B = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(B || {}), _ = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(_ || {}), m = /* @__PURE__ */ ((e) => (e.SMALLER = "smaller", e.EQUAL = "equal", e.BIGGER = "bigger", e))(m || {}), h = /* @__PURE__ */ ((e) => (e.DIALOG = "dialog", e.ALERT_DIALOG = "alertdialog", e))(h || {}), c = /* @__PURE__ */ ((e) => (e.CONFIRMATION = "confirmation", e.DESTRUCTIVE = "destructive", e.INFO = "info", e.ACKNOWLEDGEMENT = "acknowledgement", e))(c || {}), i = /* @__PURE__ */ ((e) => (e.CLOSE_MODAL = "close-modal", e))(i || {});
|
|
15
|
-
const Q = {
|
|
16
|
-
"en-US": {
|
|
17
|
-
ariaLabelFallback: "modal"
|
|
18
|
-
}
|
|
19
|
-
}, J = S({
|
|
20
|
-
i18n: { messages: Q },
|
|
21
|
-
name: "base-modal",
|
|
22
|
-
components: { CrossIcon: U, BentoTypography: z, BentoButton: G, BentoDivider: $, BentoFocusTrap: q, GridLayout: W },
|
|
23
|
-
props: {
|
|
24
|
-
/**
|
|
25
|
-
* 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.
|
|
26
|
-
*/
|
|
27
|
-
columnsSize: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: m.SMALLER
|
|
30
|
-
},
|
|
31
|
-
/**
|
|
32
|
-
* If provided, manages the padding of the whole modal container
|
|
33
|
-
*/
|
|
34
|
-
customPadding: { type: String, default: null },
|
|
35
|
-
/**
|
|
36
|
-
* Hides a cross icon on the right side of the title
|
|
37
|
-
*/
|
|
38
|
-
hideCloseButton: { type: Boolean, required: !0 },
|
|
39
|
-
/**
|
|
40
|
-
* Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
|
|
41
|
-
*/
|
|
42
|
-
initiallyOpen: { type: Boolean, default: !1 },
|
|
43
|
-
/**
|
|
44
|
-
* If set to true, it allows the modal to be closed by clicking outside of it
|
|
45
|
-
*/
|
|
46
|
-
isDismissible: { type: Boolean, required: !0 },
|
|
47
|
-
/**
|
|
48
|
-
* Controls the modal's state from the outside. Set it to true to open the modal
|
|
49
|
-
*/
|
|
50
|
-
isOpen: { type: Boolean, required: !0 },
|
|
51
|
-
/**
|
|
52
|
-
* Defines whether the modal will be an alert modal
|
|
53
|
-
*/
|
|
54
|
-
modalRole: { type: String, default: h.DIALOG },
|
|
55
|
-
/**
|
|
56
|
-
* Allows the inner elments to overflow the dialog
|
|
57
|
-
*/
|
|
58
|
-
overflowVisible: { type: Boolean, default: !1 },
|
|
59
|
-
/**
|
|
60
|
-
* Sets the width of the modal
|
|
61
|
-
*/
|
|
62
|
-
size: {
|
|
63
|
-
type: String,
|
|
64
|
-
default: _.SMALL
|
|
65
|
-
},
|
|
66
|
-
/**
|
|
67
|
-
* If provided, renders the modal's content in a two-column layout an wth dividers separating its content
|
|
68
|
-
*/
|
|
69
|
-
withColumnLayout: { type: Boolean, default: !1 }
|
|
70
|
-
},
|
|
71
|
-
emits: [i.CLOSE_MODAL],
|
|
72
|
-
setup(e, { slots: t, emit: o }) {
|
|
73
|
-
const { t: a } = w(), d = M(), n = O(t), l = N(null), v = s(() => {
|
|
74
|
-
if (!e.customPadding)
|
|
75
|
-
return {};
|
|
76
|
-
const f = {
|
|
77
|
-
paddingLeft: e.customPadding,
|
|
78
|
-
paddingRight: e.customPadding
|
|
79
|
-
}, E = { ...f, paddingTop: void 0, paddingBottom: void 0 };
|
|
80
|
-
return n("default") || (E.paddingTop = e.customPadding), n("actions") || (E.paddingBottom = e.customPadding), {
|
|
81
|
-
header: { ...f, paddingTop: e.customPadding },
|
|
82
|
-
content: E,
|
|
83
|
-
actions: { ...f, paddingBottom: e.customPadding }
|
|
84
|
-
};
|
|
85
|
-
}), y = s(
|
|
86
|
-
() => d["aria-label"] ?? a("ariaLabelFallback")
|
|
87
|
-
), p = s(() => e.withColumnLayout && e.size === _.LARGE), b = () => {
|
|
88
|
-
l.value.showModal();
|
|
89
|
-
}, g = () => {
|
|
90
|
-
o(i.CLOSE_MODAL);
|
|
91
|
-
}, r = () => {
|
|
92
|
-
l.value.close(), g();
|
|
93
|
-
}, u = () => {
|
|
94
|
-
r();
|
|
95
|
-
}, C = ({ target: f }) => {
|
|
96
|
-
f && f.tagName === h.DIALOG.toUpperCase() && r();
|
|
97
|
-
}, k = s(() => ({
|
|
98
|
-
[`b-modal-base__container--${e.size}`]: e.size,
|
|
99
|
-
"b-modal-base__container--visible": e.isOpen,
|
|
100
|
-
"b-modal-base__container--overflow-visible": e.overflowVisible,
|
|
101
|
-
"b-modal-base__container--column-layout": p.value
|
|
102
|
-
})), x = s(() => ({
|
|
103
|
-
"b-modal-base__content--column-layout": p.value,
|
|
104
|
-
"b-modal-base__content--with-header": n("default"),
|
|
105
|
-
"b-modal-base__content--with-actions": n("actions")
|
|
106
|
-
})), R = s(() => e.columnsSize === m.SMALLER ? [{ small: 4, medium: 4, large: 4 }] : e.columnsSize === m.BIGGER ? [{ small: 8, medium: 8, large: 8 }] : [{ small: 6, medium: 6, large: 6 }]);
|
|
107
|
-
return P(
|
|
108
|
-
() => [e.isOpen, l.value],
|
|
109
|
-
() => {
|
|
110
|
-
e.isOpen && l.value ? b() : l.value && r();
|
|
111
|
-
},
|
|
112
|
-
{ immediate: !0 }
|
|
113
|
-
), D(() => {
|
|
114
|
-
e.isOpen && l.value && b();
|
|
115
|
-
}), {
|
|
116
|
-
// Refs
|
|
117
|
-
modal: l,
|
|
118
|
-
computedAriaLabel: y,
|
|
119
|
-
// Handling the state
|
|
120
|
-
openModal: b,
|
|
121
|
-
closeModalOnClickOutside: C,
|
|
122
|
-
// Methods
|
|
123
|
-
onCloseButtonClick: u,
|
|
124
|
-
hasSlot: n,
|
|
125
|
-
emitCloseEvent: g,
|
|
126
|
-
t: a,
|
|
127
|
-
// Styles
|
|
128
|
-
modalConditionalClasses: k,
|
|
129
|
-
modalContentConditionalClasses: x,
|
|
130
|
-
customPaddingStyles: v,
|
|
131
|
-
hasColumnLayout: p,
|
|
132
|
-
computedColumnWidth: R,
|
|
133
|
-
// Enums
|
|
134
|
-
BentoButtonVariant: L,
|
|
135
|
-
BentoTypographyElement: F,
|
|
136
|
-
BentoTypographyVariant: V,
|
|
137
|
-
GridLayoutContainerType: K
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
var X = function() {
|
|
142
|
-
var t = this, o = t._self._c;
|
|
143
|
-
return t._self._setupProxy, o("div", { staticClass: "b-modal-base" }, [o("dialog", { ref: "modal", staticClass: "b-modal-base__container", class: t.modalConditionalClasses, attrs: { role: t.modalRole, "aria-label": t.computedAriaLabel, open: t.initiallyOpen }, on: { click: function(a) {
|
|
144
|
-
t.isDismissible && t.closeModalOnClickOutside(a);
|
|
145
|
-
}, keydown: function(a) {
|
|
146
|
-
return !a.type.indexOf("key") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : t.emitCloseEvent.apply(null, arguments);
|
|
147
|
-
} } }, [o("bento-focus-trap", [o("div", { staticClass: "b-modal-base__wrapper" }, [t.hasSlot("default") || !t.hideCloseButton ? o("div", { staticClass: "b-modal-base__header-container", style: t.customPaddingStyles.header }, [o("div", { staticClass: "b-modal-base__header" }, [o("bento-typography", { staticClass: "b-modal-base__title", attrs: { "aria-label": "base modal title", el: t.BentoTypographyElement.SPAN, variant: t.BentoTypographyVariant.TITLE, stronger: "" } }, [t.hasSlot("default") ? t._t("default") : t._e()], 2), t.hideCloseButton ? t._e() : o("bento-button", { staticClass: "b-modal-base__close-button", attrs: { variant: t.BentoButtonVariant.TERTIARY, type: "button" }, on: { click: t.onCloseButtonClick } }, [o("cross-icon", { attrs: { "svg-title": "close" } })], 1)], 1), t.hasColumnLayout ? o("bento-divider", { staticClass: "b-modal-base__divider" }) : t._e()], 1) : t._e(), o("div", { staticClass: "b-modal-base__content", class: t.modalContentConditionalClasses, style: t.customPaddingStyles.content }, [t.hasSlot("content") ? o("bento-typography", { attrs: { "aria-label": "base modal content", el: t.BentoTypographyElement.DIV, variant: t.BentoTypographyVariant.BODY, stronger: "" } }, [t.hasColumnLayout ? o("grid-layout", { staticClass: "b-modal-base__grid", attrs: { "column-width": t.computedColumnWidth, "container-type": t.GridLayoutContainerType.NORMAL }, scopedSlots: t._u([{ key: "col-1", fn: function() {
|
|
148
|
-
return [t._t("content-col-1")];
|
|
149
|
-
}, proxy: !0 }, { key: "col-2", fn: function() {
|
|
150
|
-
return [t._t("content-col-2")];
|
|
151
|
-
}, proxy: !0 }], null, !0) }) : t._t("content")], 2) : t._e()], 1), t.hasSlot("actions") ? o("div", { staticClass: "b-modal-base__actions-container", style: t.customPaddingStyles.actions }, [t.hasColumnLayout ? o("bento-divider", { staticClass: "b-modal-base__divider" }) : t._e(), o("div", { staticClass: "b-modal-base__actions", attrs: { "aria-label": "modal actions" } }, [t._t("actions")], 2)], 1) : t._e()])])], 1)]);
|
|
152
|
-
}, Z = [], tt = /* @__PURE__ */ A(
|
|
153
|
-
J,
|
|
154
|
-
X,
|
|
155
|
-
Z,
|
|
156
|
-
!1,
|
|
157
|
-
null,
|
|
158
|
-
"68c26733",
|
|
159
|
-
null,
|
|
160
|
-
null
|
|
161
|
-
);
|
|
162
|
-
const T = tt.exports, et = S({
|
|
1
|
+
import { defineComponent as _, onMounted as C, toRefs as M, computed as f, useAttrs as h, watch as E } from "vue";
|
|
2
|
+
import { f as A, b as p, e as u, d as i, c as w, B as y, a as S } from "./chunks/base-modal.a365f260.js";
|
|
3
|
+
import { u as v } from "./chunks/use-has-slot.6052d56a.js";
|
|
4
|
+
import { F as x } from "./chunks/footer-actions.f02e8699.js";
|
|
5
|
+
import { n as b } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
|
+
import { B } from "./chunks/button.fb307df3.js";
|
|
7
|
+
import { u as T } from "./chunks/i18n.155748d6.js";
|
|
8
|
+
import { BentoButtonActions as k } from "./button.js";
|
|
9
|
+
const N = _({
|
|
163
10
|
name: "bento-modal-default",
|
|
164
|
-
components: { BaseModal:
|
|
11
|
+
components: { BaseModal: A, FooterActions: x },
|
|
165
12
|
props: {
|
|
166
13
|
/**
|
|
167
14
|
* Adds a cross icon on the right side of the alert
|
|
@@ -220,7 +67,7 @@ const T = tt.exports, et = S({
|
|
|
220
67
|
*/
|
|
221
68
|
columnsSize: {
|
|
222
69
|
type: String,
|
|
223
|
-
default:
|
|
70
|
+
default: p.SMALLER
|
|
224
71
|
},
|
|
225
72
|
/**
|
|
226
73
|
* List of actions that will be used to render the buttons.
|
|
@@ -276,24 +123,24 @@ const T = tt.exports, et = S({
|
|
|
276
123
|
default: !1
|
|
277
124
|
}
|
|
278
125
|
},
|
|
279
|
-
emits: [
|
|
280
|
-
setup(e, { slots: t, emit:
|
|
281
|
-
const
|
|
282
|
-
|
|
126
|
+
emits: [u.CLOSE_MODAL],
|
|
127
|
+
setup(e, { slots: t, emit: n }) {
|
|
128
|
+
const l = v(t), r = () => {
|
|
129
|
+
n(u.CLOSE_MODAL);
|
|
283
130
|
};
|
|
284
|
-
return
|
|
285
|
-
if (!(
|
|
131
|
+
return C(() => {
|
|
132
|
+
if (!(l("content") || l("content-col-1") && l("content-col-2")))
|
|
286
133
|
throw new Error("Bento Modal default variant requires content slot or column slots");
|
|
287
134
|
}), {
|
|
288
135
|
// Methods
|
|
289
|
-
onCloseModal:
|
|
290
|
-
hasSlot:
|
|
136
|
+
onCloseModal: r,
|
|
137
|
+
hasSlot: l
|
|
291
138
|
};
|
|
292
139
|
}
|
|
293
140
|
});
|
|
294
|
-
var
|
|
295
|
-
var t = this,
|
|
296
|
-
return t._self._setupProxy,
|
|
141
|
+
var R = function() {
|
|
142
|
+
var t = this, n = t._self._c;
|
|
143
|
+
return t._self._setupProxy, n("base-modal", t._b({ staticClass: "b-modal-default", attrs: { actions: t.actions, size: t.size, "hide-close-button": t.hideCloseButton, "custom-padding": t.customPadding, "is-dismissible": t.isDismissible, "is-open": t.isOpen, "overflow-visible": t.overflowVisible, "with-column-layout": t.withColumnLayout, "initially-open": t.initiallyOpen }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([t.hasSlot("default") ? { key: "default", fn: function() {
|
|
297
144
|
return [t._t("default")];
|
|
298
145
|
}, proxy: !0 } : null, { key: "content-col-1", fn: function() {
|
|
299
146
|
return [t._t("content-col-1")];
|
|
@@ -303,27 +150,27 @@ var ot = function() {
|
|
|
303
150
|
return [t._t("content")];
|
|
304
151
|
}, proxy: !0 }, t.actions ? { key: "actions", fn: function() {
|
|
305
152
|
return [t._t("actions", function() {
|
|
306
|
-
return [
|
|
153
|
+
return [n("footer-actions", { attrs: { actions: t.actions, "actions-label": t.actionsLabel, "destructive-actions": t.destructiveActions } })];
|
|
307
154
|
})];
|
|
308
155
|
}, proxy: !0 } : null], null, !0) }, "base-modal", t.$attrs, !1));
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
156
|
+
}, z = [], V = /* @__PURE__ */ b(
|
|
157
|
+
N,
|
|
158
|
+
R,
|
|
159
|
+
z,
|
|
313
160
|
!1,
|
|
314
161
|
null,
|
|
315
162
|
null,
|
|
316
163
|
null,
|
|
317
164
|
null
|
|
318
165
|
);
|
|
319
|
-
const
|
|
166
|
+
const P = V.exports, $ = {
|
|
320
167
|
"en-US": {
|
|
321
168
|
okButtonText: "OK"
|
|
322
169
|
}
|
|
323
|
-
},
|
|
324
|
-
i18n: { messages:
|
|
170
|
+
}, F = _({
|
|
171
|
+
i18n: { messages: $ },
|
|
325
172
|
name: "bento-modal-dialog",
|
|
326
|
-
components: { BaseModal:
|
|
173
|
+
components: { BaseModal: A, BentoButtonActions: k },
|
|
327
174
|
props: {
|
|
328
175
|
/**
|
|
329
176
|
* Controls the modal's state from the outside. Set it to true to open the modal
|
|
@@ -393,88 +240,84 @@ const lt = at.exports, st = {
|
|
|
393
240
|
default: !1
|
|
394
241
|
}
|
|
395
242
|
},
|
|
396
|
-
emits: [
|
|
397
|
-
setup(e, { slots: t, emit:
|
|
398
|
-
const { t:
|
|
399
|
-
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
},
|
|
243
|
+
emits: [u.CLOSE_MODAL],
|
|
244
|
+
setup(e, { slots: t, emit: n }) {
|
|
245
|
+
const { t: l } = T(), r = v(t), { actions: o, dialogType: a } = M(e), c = () => {
|
|
246
|
+
n(u.CLOSE_MODAL);
|
|
247
|
+
}, m = () => {
|
|
248
|
+
c();
|
|
249
|
+
}, L = f(() => [
|
|
403
250
|
{
|
|
404
|
-
title:
|
|
405
|
-
event:
|
|
406
|
-
variant:
|
|
251
|
+
title: l("okButtonText"),
|
|
252
|
+
event: m,
|
|
253
|
+
variant: B.SECONDARY
|
|
407
254
|
}
|
|
408
|
-
]),
|
|
409
|
-
var
|
|
410
|
-
const
|
|
255
|
+
]), O = f(() => {
|
|
256
|
+
var g;
|
|
257
|
+
const d = {
|
|
411
258
|
title: "Cancel",
|
|
412
|
-
event:
|
|
413
|
-
},
|
|
414
|
-
return
|
|
415
|
-
}),
|
|
416
|
-
[`b-modal-dialog--${
|
|
259
|
+
event: m
|
|
260
|
+
}, s = (g = o == null ? void 0 : o.value) == null ? void 0 : g[0];
|
|
261
|
+
return a.value === i.DESTRUCTIVE ? s.critical = !0 : a.value === i.INFO && (s.variant = B.SECONDARY), [s, d];
|
|
262
|
+
}), D = f(() => ({
|
|
263
|
+
[`b-modal-dialog--${a.value}`]: a.value
|
|
417
264
|
}));
|
|
418
|
-
return
|
|
419
|
-
var
|
|
420
|
-
if (!
|
|
265
|
+
return C(() => {
|
|
266
|
+
var d, s;
|
|
267
|
+
if (!r("default") || !e.content)
|
|
421
268
|
throw new Error("Bento Modal Dialog requires header title and content");
|
|
422
|
-
if (((
|
|
269
|
+
if (((d = o == null ? void 0 : o.value) == null ? void 0 : d.length) > 1)
|
|
423
270
|
throw new Error("Not more than 1 action button may be provided to Modal Dialog");
|
|
424
|
-
if (
|
|
271
|
+
if (a.value !== i.ACKNOWLEDGEMENT && !(o != null && o.value))
|
|
425
272
|
throw new Error(
|
|
426
273
|
"Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button"
|
|
427
274
|
);
|
|
428
|
-
if (
|
|
275
|
+
if (a.value === i.ACKNOWLEDGEMENT && ((s = o == null ? void 0 : o.value) != null && s.length))
|
|
429
276
|
throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
|
|
430
277
|
}), {
|
|
431
278
|
// Values
|
|
432
|
-
dialogActions:
|
|
433
|
-
acknowledgementDialogActions:
|
|
279
|
+
dialogActions: O,
|
|
280
|
+
acknowledgementDialogActions: L,
|
|
434
281
|
// Methods
|
|
435
|
-
onCloseModal:
|
|
436
|
-
onCloseActionButton:
|
|
282
|
+
onCloseModal: c,
|
|
283
|
+
onCloseActionButton: m,
|
|
437
284
|
// Styles
|
|
438
|
-
modalDialogConditionalClasses:
|
|
285
|
+
modalDialogConditionalClasses: D,
|
|
439
286
|
// Enums
|
|
440
|
-
BentoModalRole:
|
|
441
|
-
BentoModalSize: _,
|
|
442
|
-
BentoButtonVariant: L,
|
|
443
|
-
BentoModalDialogType: c,
|
|
444
|
-
BentoButtonActionsLayout: H
|
|
287
|
+
BentoModalRole: w
|
|
445
288
|
};
|
|
446
289
|
}
|
|
447
290
|
});
|
|
448
|
-
var
|
|
449
|
-
var t = this,
|
|
450
|
-
return t._self._setupProxy,
|
|
291
|
+
var q = function() {
|
|
292
|
+
var t = this, n = t._self._c;
|
|
293
|
+
return t._self._setupProxy, n("base-modal", t._b({ staticClass: "b-modal-dialog", class: t.modalDialogConditionalClasses, attrs: { actions: t.actions, "hide-close-button": !0, size: "small", "is-dismissible": t.isDismissible, "is-open": t.isOpen, "overflow-visible": t.overflowVisible, "modal-role": t.BentoModalRole.ALERT_DIALOG, "initially-open": t.initiallyOpen }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([{ key: "default", fn: function() {
|
|
451
294
|
return [t._t("default")];
|
|
452
295
|
}, proxy: !0 }, { key: "content", fn: function() {
|
|
453
296
|
return [t._v(" " + t._s(t.content) + " ")];
|
|
454
297
|
}, proxy: !0 }, { key: "actions", fn: function() {
|
|
455
|
-
return [t.dialogType ===
|
|
298
|
+
return [t.dialogType === "acknowledgement" ? n("bento-button-actions", { attrs: { actions: t.acknowledgementDialogActions, layout: "buttons-end" } }) : n("bento-button-actions", { attrs: { actions: t.dialogActions, layout: "buttons-end" } })];
|
|
456
299
|
}, proxy: !0 }], null, !0) }, "base-modal", t.$attrs, !1));
|
|
457
|
-
},
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
300
|
+
}, I = [], j = /* @__PURE__ */ b(
|
|
301
|
+
F,
|
|
302
|
+
q,
|
|
303
|
+
I,
|
|
461
304
|
!1,
|
|
462
305
|
null,
|
|
463
306
|
null,
|
|
464
307
|
null,
|
|
465
308
|
null
|
|
466
309
|
);
|
|
467
|
-
const
|
|
310
|
+
const G = j.exports, U = 500, K = _({
|
|
468
311
|
name: "bento-modal",
|
|
469
|
-
components: { BentoModalDefault:
|
|
312
|
+
components: { BentoModalDefault: P, BentoModalDialog: G },
|
|
470
313
|
props: {
|
|
471
314
|
/**
|
|
472
315
|
* Choose between default or dialog versions of modal
|
|
473
316
|
*/
|
|
474
317
|
variant: {
|
|
475
318
|
type: String,
|
|
476
|
-
default:
|
|
477
|
-
validator: (e) => Object.values(
|
|
319
|
+
default: y.DEFAULT,
|
|
320
|
+
validator: (e) => Object.values(y).includes(e)
|
|
478
321
|
},
|
|
479
322
|
// Shared Modal Default and Modal Default props
|
|
480
323
|
/**
|
|
@@ -540,8 +383,8 @@ const dt = ct.exports, mt = S({
|
|
|
540
383
|
*/
|
|
541
384
|
size: {
|
|
542
385
|
type: String,
|
|
543
|
-
default:
|
|
544
|
-
validator: (e) => Object.values(
|
|
386
|
+
default: S.SMALL,
|
|
387
|
+
validator: (e) => Object.values(S).includes(e)
|
|
545
388
|
},
|
|
546
389
|
/**
|
|
547
390
|
* If provided, manages the padding of the whole modal container
|
|
@@ -562,8 +405,8 @@ const dt = ct.exports, mt = S({
|
|
|
562
405
|
*/
|
|
563
406
|
columnsSize: {
|
|
564
407
|
type: String,
|
|
565
|
-
default:
|
|
566
|
-
validator: (e) => Object.values(
|
|
408
|
+
default: p.SMALLER,
|
|
409
|
+
validator: (e) => Object.values(p).includes(e)
|
|
567
410
|
},
|
|
568
411
|
/**
|
|
569
412
|
* Text label that is displayed left to the action buttons
|
|
@@ -585,8 +428,8 @@ const dt = ct.exports, mt = S({
|
|
|
585
428
|
*/
|
|
586
429
|
dialogType: {
|
|
587
430
|
type: String,
|
|
588
|
-
default:
|
|
589
|
-
validator: (e) => Object.values(
|
|
431
|
+
default: i.CONFIRMATION,
|
|
432
|
+
validator: (e) => Object.values(i).includes(e)
|
|
590
433
|
},
|
|
591
434
|
/**
|
|
592
435
|
* Text that will be displayed in the content section of Modal
|
|
@@ -596,10 +439,10 @@ const dt = ct.exports, mt = S({
|
|
|
596
439
|
default: null
|
|
597
440
|
}
|
|
598
441
|
},
|
|
599
|
-
emits: [
|
|
600
|
-
setup(e, { slots: t, emit:
|
|
601
|
-
const
|
|
602
|
-
() => e.variant ===
|
|
442
|
+
emits: [u.CLOSE_MODAL],
|
|
443
|
+
setup(e, { slots: t, emit: n }) {
|
|
444
|
+
const l = h(), r = f(
|
|
445
|
+
() => e.variant === y.DEFAULT ? {
|
|
603
446
|
hideCloseButton: e.hideCloseButton,
|
|
604
447
|
size: e.size,
|
|
605
448
|
customPadding: e.customPadding,
|
|
@@ -608,27 +451,31 @@ const dt = ct.exports, mt = S({
|
|
|
608
451
|
isDismissible: e.isDismissible ?? !0,
|
|
609
452
|
overflowVisible: e.overflowVisible,
|
|
610
453
|
withColumnLayout: e.withColumnLayout,
|
|
611
|
-
|
|
454
|
+
columnSize: e.columnsSize,
|
|
455
|
+
...l
|
|
612
456
|
} : {
|
|
613
457
|
dialogType: e.dialogType,
|
|
614
458
|
content: e.content,
|
|
615
459
|
isDismissible: e.isDismissible ?? !1,
|
|
616
460
|
overflowVisible: e.overflowVisible,
|
|
617
|
-
...
|
|
461
|
+
...l
|
|
618
462
|
}
|
|
619
|
-
)
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
463
|
+
), o = () => {
|
|
464
|
+
n(u.CLOSE_MODAL);
|
|
465
|
+
};
|
|
466
|
+
return E(e.actions, () => {
|
|
467
|
+
var a, c;
|
|
468
|
+
((c = (a = e.actions) == null ? void 0 : a[0]) == null ? void 0 : c.state) === "success" && setTimeout(o, U);
|
|
469
|
+
}), {
|
|
470
|
+
onCloseModal: o,
|
|
471
|
+
customProps: r,
|
|
472
|
+
hasSlot: v(t)
|
|
626
473
|
};
|
|
627
474
|
}
|
|
628
475
|
});
|
|
629
|
-
var
|
|
630
|
-
var t = this,
|
|
631
|
-
return t._self._setupProxy,
|
|
476
|
+
var W = function() {
|
|
477
|
+
var t = this, n = t._self._c;
|
|
478
|
+
return t._self._setupProxy, n(t.variant, t._b({ tag: "component", staticClass: "b-modal", attrs: { "is-open": t.isOpen, actions: t.actions }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([t.hasSlot("default") ? { key: "default", fn: function() {
|
|
632
479
|
return [t._t("default")];
|
|
633
480
|
}, proxy: !0 } : null, t.hasSlot("content-col-1") ? { key: "content-col-1", fn: function() {
|
|
634
481
|
return [t._t("content-col-1")];
|
|
@@ -637,24 +484,24 @@ var ft = function() {
|
|
|
637
484
|
}, proxy: !0 } : null, t.hasSlot("content") ? { key: "content", fn: function() {
|
|
638
485
|
return [t._t("content")];
|
|
639
486
|
}, proxy: !0 } : null], null, !0) }, "component", t.customProps, !1));
|
|
640
|
-
},
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
487
|
+
}, Y = [], H = /* @__PURE__ */ b(
|
|
488
|
+
K,
|
|
489
|
+
W,
|
|
490
|
+
Y,
|
|
644
491
|
!1,
|
|
645
492
|
null,
|
|
646
493
|
null,
|
|
647
494
|
null,
|
|
648
495
|
null
|
|
649
496
|
);
|
|
650
|
-
const
|
|
497
|
+
const lt = H.exports;
|
|
651
498
|
export {
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
499
|
+
lt as BentoModal,
|
|
500
|
+
p as BentoModalColumnLayoutVariant,
|
|
501
|
+
i as BentoModalDialogType,
|
|
502
|
+
u as BentoModalEvent,
|
|
503
|
+
w as BentoModalRole,
|
|
504
|
+
S as BentoModalSize,
|
|
505
|
+
y as BentoModalVariant
|
|
659
506
|
};
|
|
660
507
|
//# sourceMappingURL=modal.js.map
|