@adyen/bento-vue3 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +8 -4
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
- package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -57
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +27 -29
- package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +136 -128
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +46 -15
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +6 -7
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +37 -11
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -22
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +277 -16
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +164 -104
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
- package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -27
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -11
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +53 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +61 -58
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +19 -390
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +6 -9
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -10
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
- package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +8 -1
- package/dist/@types/packages/vue2/src/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
- package/dist/accordion.js +104 -254
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +61 -64
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chevron-up.css +1 -0
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +2 -2
- package/dist/button.js +143 -12
- package/dist/button.js.map +1 -1
- package/dist/card.js +99 -94
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +40 -39
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/base-button.6d2843c2.js +108 -0
- package/dist/chunks/base-button.6d2843c2.js.map +1 -0
- package/dist/chunks/base-modal.3ccb9eb5.js +291 -0
- package/dist/chunks/base-modal.3ccb9eb5.js.map +1 -0
- package/dist/chunks/{button.e1c39f66.js → button.a8462029.js} +39 -42
- package/dist/chunks/button.a8462029.js.map +1 -0
- package/dist/chunks/{calendar.09b683b3.js → calendar.3f930683.js} +237 -240
- package/dist/chunks/calendar.3f930683.js.map +1 -0
- package/dist/chunks/checkbox.5e1e05ae.js +235 -0
- package/dist/chunks/checkbox.5e1e05ae.js.map +1 -0
- package/dist/chunks/{chevron-down.69bedf14.js → chevron-up.c03b58f8.js} +8 -8
- package/dist/chunks/chevron-up.c03b58f8.js.map +1 -0
- package/dist/chunks/controls-group.3b0dfb94.js +136 -0
- package/dist/chunks/controls-group.3b0dfb94.js.map +1 -0
- package/dist/chunks/{copy.2cf5e6c3.js → copy.1d14b783.js} +49 -50
- package/dist/chunks/copy.1d14b783.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.203e747f.js → dropdown-default-textbox.a90e84f9.js} +88 -90
- package/dist/chunks/dropdown-default-textbox.a90e84f9.js.map +1 -0
- package/dist/chunks/{dropdown.8b415aac.js → dropdown.b798a82e.js} +348 -330
- package/dist/chunks/dropdown.b798a82e.js.map +1 -0
- package/dist/chunks/{error-message.ddfe8ea5.js → error-message.9acead25.js} +16 -16
- package/dist/chunks/error-message.9acead25.js.map +1 -0
- package/dist/chunks/footer-actions.9537d0df.js +111 -0
- package/dist/chunks/footer-actions.9537d0df.js.map +1 -0
- package/dist/chunks/get-slot-text.bead058f.js +9 -0
- package/dist/chunks/get-slot-text.bead058f.js.map +1 -0
- package/dist/chunks/{grid-layout.a30855ff.js → grid-layout.984317d7.js} +2 -2
- package/dist/chunks/{grid-layout.a30855ff.js.map → grid-layout.984317d7.js.map} +1 -1
- package/dist/chunks/index.228ecda0.js +101 -0
- package/dist/chunks/index.228ecda0.js.map +1 -0
- package/dist/chunks/index.89b00b94.js +124 -0
- package/dist/chunks/index.89b00b94.js.map +1 -0
- package/dist/chunks/{index.3da90517.js → index.9d8273fc.js} +38 -40
- package/dist/chunks/index.9d8273fc.js.map +1 -0
- package/dist/chunks/{index.c9225c3b.js → index.c2a80208.js} +195 -201
- package/dist/chunks/index.c2a80208.js.map +1 -0
- package/dist/chunks/{index.13949709.js → index.d26fdf71.js} +116 -113
- package/dist/chunks/{index.13949709.js.map → index.d26fdf71.js.map} +1 -1
- package/dist/chunks/{index.d27367cd.js → index.e84dbeae.js} +80 -83
- package/dist/chunks/{index.d27367cd.js.map → index.e84dbeae.js.map} +1 -1
- package/dist/chunks/listbox-option-tag.0c9c571e.js +129 -0
- package/dist/chunks/listbox-option-tag.0c9c571e.js.map +1 -0
- package/dist/chunks/{listbox.0c7c4e5e.js → listbox.6b52af1a.js} +315 -334
- package/dist/chunks/listbox.6b52af1a.js.map +1 -0
- package/dist/chunks/{loading-button.61d8ebe5.js → loading-button.081adbf3.js} +33 -33
- package/dist/chunks/loading-button.081adbf3.js.map +1 -0
- package/dist/chunks/tabs.keys.358742f2.js +7 -0
- package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
- package/dist/chunks/{tooltip.835d9b52.js → tooltip.e4e34b86.js} +56 -59
- package/dist/chunks/tooltip.e4e34b86.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js +16 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js.map +1 -0
- package/dist/chunks/use-has-slot.9fac7123.js +16 -0
- package/dist/chunks/use-has-slot.9fac7123.js.map +1 -0
- package/dist/code-snippet.js +548 -463
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +501 -505
- package/dist/country.js.map +1 -1
- package/dist/currency.js +38 -41
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +837 -833
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +83 -87
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +30 -32
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +166 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/filter-bar.js +986 -935
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +72 -72
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +50 -52
- package/dist/header.js.map +1 -1
- package/dist/image.js +76 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +239 -232
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +241 -269
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +38 -36
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +131 -139
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +121 -356
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +182 -185
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +19 -23
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +56 -52
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +36 -41
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +112 -113
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +77 -91
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +88 -75
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +122 -121
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +18 -21
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +129 -162
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +83 -75
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +32 -35
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +156 -155
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +212 -213
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +68 -72
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +75 -73
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +11 -10
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -58
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/chevron-down.css +0 -1
- package/dist/chunks/base-button.20be08da.js +0 -111
- package/dist/chunks/base-button.20be08da.js.map +0 -1
- package/dist/chunks/button-actions.54e28e75.js +0 -124
- package/dist/chunks/button-actions.54e28e75.js.map +0 -1
- package/dist/chunks/button.e1c39f66.js.map +0 -1
- package/dist/chunks/calendar.09b683b3.js.map +0 -1
- package/dist/chunks/checkbox.a404069b.js +0 -226
- package/dist/chunks/checkbox.a404069b.js.map +0 -1
- package/dist/chunks/chevron-down.69bedf14.js.map +0 -1
- package/dist/chunks/controls-group.60fb2a86.js +0 -136
- package/dist/chunks/controls-group.60fb2a86.js.map +0 -1
- package/dist/chunks/copy.2cf5e6c3.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.203e747f.js.map +0 -1
- package/dist/chunks/dropdown.8b415aac.js.map +0 -1
- package/dist/chunks/error-message.ddfe8ea5.js.map +0 -1
- package/dist/chunks/footer-actions.0f640f87.js +0 -106
- package/dist/chunks/footer-actions.0f640f87.js.map +0 -1
- package/dist/chunks/get-slot-text.2db867f8.js +0 -9
- package/dist/chunks/get-slot-text.2db867f8.js.map +0 -1
- package/dist/chunks/index.222d29b0.js +0 -120
- package/dist/chunks/index.222d29b0.js.map +0 -1
- package/dist/chunks/index.3da90517.js.map +0 -1
- package/dist/chunks/index.aa34e363.js +0 -104
- package/dist/chunks/index.aa34e363.js.map +0 -1
- package/dist/chunks/index.c9225c3b.js.map +0 -1
- package/dist/chunks/listbox-option-tag.5ae8b79b.js +0 -133
- package/dist/chunks/listbox-option-tag.5ae8b79b.js.map +0 -1
- package/dist/chunks/listbox.0c7c4e5e.js.map +0 -1
- package/dist/chunks/loading-button.61d8ebe5.js.map +0 -1
- package/dist/chunks/tooltip.835d9b52.js.map +0 -1
- package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
- package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
- package/dist/chunks/use-has-slot.068222e6.js +0 -5
- package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
package/dist/modal.js
CHANGED
|
@@ -1,251 +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 { _ as N } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
11
|
-
import { F as me } from "./chunks/footer-actions.0f640f87.js";
|
|
12
|
-
import { B as fe, c as ye } from "./chunks/button-actions.54e28e75.js";
|
|
13
|
-
import "./assets/index12.css";
|
|
14
|
-
var w = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(w || {}), O = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(O || {}), B = /* @__PURE__ */ ((e) => (e.SMALLER = "smaller", e.EQUAL = "equal", e.BIGGER = "bigger", e))(B || {}), T = /* @__PURE__ */ ((e) => (e.DIALOG = "dialog", e.ALERT_DIALOG = "alertdialog", e))(T || {}), g = /* @__PURE__ */ ((e) => (e.CONFIRMATION = "confirmation", e.DESTRUCTIVE = "destructive", e.INFO = "info", e.ACKNOWLEDGEMENT = "acknowledgement", e))(g || {}), p = /* @__PURE__ */ ((e) => (e.CLOSE_MODAL = "close-modal", e))(p || {});
|
|
15
|
-
const q = {
|
|
16
|
-
"en-US": {
|
|
17
|
-
ariaLabelFallback: "modal"
|
|
18
|
-
}
|
|
19
|
-
}, pe = $({
|
|
20
|
-
i18n: { messages: q },
|
|
21
|
-
name: "base-modal",
|
|
22
|
-
components: { CrossIcon: re, BentoTypography: ae, BentoButton: ne, BentoDivider: ie, BentoFocusTrap: de, GridLayout: ue },
|
|
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: B.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: T.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: O.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: [p.CLOSE_MODAL],
|
|
72
|
-
setup(e, { slots: l, emit: r }) {
|
|
73
|
-
const { t: a } = W({ messages: q }), u = U(), o = k(l), t = J(null), c = m(() => {
|
|
74
|
-
if (!e.customPadding)
|
|
75
|
-
return {};
|
|
76
|
-
const A = {
|
|
77
|
-
paddingLeft: e.customPadding,
|
|
78
|
-
paddingRight: e.customPadding
|
|
79
|
-
}, R = { ...A, paddingTop: void 0, paddingBottom: void 0 };
|
|
80
|
-
return o("default") || (R.paddingTop = e.customPadding), o("actions") || (R.paddingBottom = e.customPadding), {
|
|
81
|
-
header: { ...A, paddingTop: e.customPadding },
|
|
82
|
-
content: R,
|
|
83
|
-
actions: { ...A, paddingBottom: e.customPadding }
|
|
84
|
-
};
|
|
85
|
-
}), C = m(
|
|
86
|
-
() => u["aria-label"] ?? a("ariaLabelFallback")
|
|
87
|
-
), b = m(() => e.withColumnLayout && e.size === O.LARGE), L = () => {
|
|
88
|
-
t.value.showModal();
|
|
89
|
-
}, S = () => {
|
|
90
|
-
r(p.CLOSE_MODAL);
|
|
91
|
-
}, d = () => {
|
|
92
|
-
t.value.close(), S();
|
|
93
|
-
}, v = () => {
|
|
94
|
-
d();
|
|
95
|
-
}, D = ({ target: A }) => {
|
|
96
|
-
A && A.tagName === T.DIALOG.toUpperCase() && d();
|
|
97
|
-
}, Y = m(() => ({
|
|
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": b.value
|
|
102
|
-
})), H = m(() => ({
|
|
103
|
-
"b-modal-base__content--column-layout": b.value,
|
|
104
|
-
"b-modal-base__content--with-header": o("default"),
|
|
105
|
-
"b-modal-base__content--with-actions": o("actions")
|
|
106
|
-
})), Q = m(() => e.columnsSize === B.SMALLER ? [{ small: 4, medium: 4, large: 4 }] : e.columnsSize === B.BIGGER ? [{ small: 8, medium: 8, large: 8 }] : [{ small: 6, medium: 6, large: 6 }]);
|
|
107
|
-
return X(
|
|
108
|
-
() => [e.isOpen, t.value],
|
|
109
|
-
() => {
|
|
110
|
-
e.isOpen && t.value ? L() : t.value && d();
|
|
111
|
-
},
|
|
112
|
-
{ immediate: !0 }
|
|
113
|
-
), G(() => {
|
|
114
|
-
e.isOpen && t.value && L();
|
|
115
|
-
}), {
|
|
116
|
-
// Refs
|
|
117
|
-
modal: t,
|
|
118
|
-
computedAriaLabel: C,
|
|
119
|
-
// Handling the state
|
|
120
|
-
openModal: L,
|
|
121
|
-
closeModalOnClickOutside: D,
|
|
122
|
-
// Methods
|
|
123
|
-
onCloseButtonClick: v,
|
|
124
|
-
hasSlot: o,
|
|
125
|
-
emitCloseEvent: S,
|
|
126
|
-
t: a,
|
|
127
|
-
// Styles
|
|
128
|
-
modalConditionalClasses: Y,
|
|
129
|
-
modalContentConditionalClasses: H,
|
|
130
|
-
customPaddingStyles: c,
|
|
131
|
-
hasColumnLayout: b,
|
|
132
|
-
computedColumnWidth: Q,
|
|
133
|
-
// Enums
|
|
134
|
-
BentoButtonVariant: _,
|
|
135
|
-
BentoTypographyElement: le,
|
|
136
|
-
BentoTypographyVariant: se,
|
|
137
|
-
GridLayoutContainerType: ce
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
const be = { class: "b-modal-base" }, ve = ["role", "aria-label", "open"], ge = { class: "b-modal-base__wrapper" }, Ce = { class: "b-modal-base__header" }, Le = {
|
|
142
|
-
"aria-label": "modal actions",
|
|
143
|
-
class: "b-modal-base__actions"
|
|
144
|
-
};
|
|
145
|
-
function he(e, l, r, a, u, o) {
|
|
146
|
-
const t = f("bento-typography"), c = f("cross-icon"), C = f("bento-button"), b = f("bento-divider"), L = f("grid-layout"), S = f("bento-focus-trap");
|
|
147
|
-
return i(), I("div", be, [
|
|
148
|
-
E("dialog", {
|
|
149
|
-
ref: "modal",
|
|
150
|
-
role: e.modalRole,
|
|
151
|
-
"aria-label": e.computedAriaLabel,
|
|
152
|
-
class: z(["b-modal-base__container", e.modalConditionalClasses]),
|
|
153
|
-
open: e.initiallyOpen,
|
|
154
|
-
onClick: l[0] || (l[0] = (d) => e.isDismissible && e.closeModalOnClickOutside(d)),
|
|
155
|
-
onKeydown: l[1] || (l[1] = Z((...d) => e.emitCloseEvent && e.emitCloseEvent(...d), ["esc"]))
|
|
156
|
-
}, [
|
|
157
|
-
M(S, null, {
|
|
158
|
-
default: n(() => [
|
|
159
|
-
E("div", ge, [
|
|
160
|
-
e.hasSlot("default") || !e.hideCloseButton ? (i(), I("div", {
|
|
161
|
-
key: 0,
|
|
162
|
-
class: "b-modal-base__header-container",
|
|
163
|
-
style: P(e.customPaddingStyles.header)
|
|
164
|
-
}, [
|
|
165
|
-
E("div", Ce, [
|
|
166
|
-
M(t, {
|
|
167
|
-
class: "b-modal-base__title",
|
|
168
|
-
"aria-label": "base modal title",
|
|
169
|
-
el: e.BentoTypographyElement.SPAN,
|
|
170
|
-
variant: e.BentoTypographyVariant.TITLE,
|
|
171
|
-
stronger: ""
|
|
172
|
-
}, {
|
|
173
|
-
default: n(() => [
|
|
174
|
-
e.hasSlot("default") ? s(e.$slots, "default", { key: 0 }, void 0, !0) : h("", !0)
|
|
175
|
-
]),
|
|
176
|
-
_: 3
|
|
177
|
-
}, 8, ["el", "variant"]),
|
|
178
|
-
e.hideCloseButton ? h("", !0) : (i(), y(C, {
|
|
179
|
-
key: 0,
|
|
180
|
-
class: "b-modal-base__close-button",
|
|
181
|
-
variant: e.BentoButtonVariant.TERTIARY,
|
|
182
|
-
type: "button",
|
|
183
|
-
onClick: e.onCloseButtonClick
|
|
184
|
-
}, {
|
|
185
|
-
default: n(() => [
|
|
186
|
-
M(c, { "svg-title": "close" })
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
}, 8, ["variant", "onClick"]))
|
|
190
|
-
]),
|
|
191
|
-
e.hasColumnLayout ? (i(), y(b, {
|
|
192
|
-
key: 0,
|
|
193
|
-
class: "b-modal-base__divider"
|
|
194
|
-
})) : h("", !0)
|
|
195
|
-
], 4)) : h("", !0),
|
|
196
|
-
E("div", {
|
|
197
|
-
class: z(["b-modal-base__content", e.modalContentConditionalClasses]),
|
|
198
|
-
style: P(e.customPaddingStyles.content)
|
|
199
|
-
}, [
|
|
200
|
-
e.hasSlot("content") ? (i(), y(t, {
|
|
201
|
-
key: 0,
|
|
202
|
-
"aria-label": "base modal content",
|
|
203
|
-
el: e.BentoTypographyElement.DIV,
|
|
204
|
-
variant: e.BentoTypographyVariant.BODY,
|
|
205
|
-
stronger: ""
|
|
206
|
-
}, {
|
|
207
|
-
default: n(() => [
|
|
208
|
-
e.hasColumnLayout ? (i(), y(L, {
|
|
209
|
-
key: 0,
|
|
210
|
-
"column-width": e.computedColumnWidth,
|
|
211
|
-
"container-type": e.GridLayoutContainerType.NORMAL,
|
|
212
|
-
class: "b-modal-base__grid"
|
|
213
|
-
}, {
|
|
214
|
-
"col-1": n(() => [
|
|
215
|
-
s(e.$slots, "content-col-1", {}, void 0, !0)
|
|
216
|
-
]),
|
|
217
|
-
"col-2": n(() => [
|
|
218
|
-
s(e.$slots, "content-col-2", {}, void 0, !0)
|
|
219
|
-
]),
|
|
220
|
-
_: 3
|
|
221
|
-
}, 8, ["column-width", "container-type"])) : s(e.$slots, "content", { key: 1 }, void 0, !0)
|
|
222
|
-
]),
|
|
223
|
-
_: 3
|
|
224
|
-
}, 8, ["el", "variant"])) : h("", !0)
|
|
225
|
-
], 6),
|
|
226
|
-
e.hasSlot("actions") ? (i(), I("div", {
|
|
227
|
-
key: 1,
|
|
228
|
-
class: "b-modal-base__actions-container",
|
|
229
|
-
style: P(e.customPaddingStyles.actions)
|
|
230
|
-
}, [
|
|
231
|
-
e.hasColumnLayout ? (i(), y(b, {
|
|
232
|
-
key: 0,
|
|
233
|
-
class: "b-modal-base__divider"
|
|
234
|
-
})) : h("", !0),
|
|
235
|
-
E("div", Le, [
|
|
236
|
-
s(e.$slots, "actions", {}, void 0, !0)
|
|
237
|
-
])
|
|
238
|
-
], 4)) : h("", !0)
|
|
239
|
-
])
|
|
240
|
-
]),
|
|
241
|
-
_: 3
|
|
242
|
-
})
|
|
243
|
-
], 42, ve)
|
|
244
|
-
]);
|
|
245
|
-
}
|
|
246
|
-
const j = /* @__PURE__ */ N(pe, [["render", he], ["__scopeId", "data-v-3bd8058e"]]), Be = $({
|
|
1
|
+
import { defineComponent as S, onMounted as E, resolveComponent as v, openBlock as f, createBlock as p, mergeProps as M, createSlots as $, withCtx as l, renderSlot as a, createVNode as z, toRefs as R, computed as b, createTextVNode as q, toDisplayString as P, useAttrs as I, watch as F, resolveDynamicComponent as j } from "vue";
|
|
2
|
+
import { f as T, b as B, e as m, d as c, c as G, B as C, a as O } from "./chunks/base-modal.3ccb9eb5.js";
|
|
3
|
+
import { u as A } from "./chunks/use-has-slot.9fac7123.js";
|
|
4
|
+
import { F as U } from "./chunks/footer-actions.9537d0df.js";
|
|
5
|
+
import { _ as D } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
6
|
+
import { B as h } from "./chunks/button.a8462029.js";
|
|
7
|
+
import { u as K } from "./chunks/i18n.6c402773.js";
|
|
8
|
+
import { BentoButtonActions as W } from "./button.js";
|
|
9
|
+
const Y = S({
|
|
247
10
|
name: "bento-modal-default",
|
|
248
|
-
components: { BaseModal:
|
|
11
|
+
components: { BaseModal: T, FooterActions: U },
|
|
249
12
|
props: {
|
|
250
13
|
/**
|
|
251
14
|
* Adds a cross icon on the right side of the alert
|
|
@@ -360,24 +123,25 @@ const j = /* @__PURE__ */ N(pe, [["render", he], ["__scopeId", "data-v-3bd8058e"
|
|
|
360
123
|
default: !1
|
|
361
124
|
}
|
|
362
125
|
},
|
|
363
|
-
emits: [
|
|
364
|
-
setup(e, { slots:
|
|
365
|
-
const
|
|
366
|
-
|
|
126
|
+
emits: [m.CLOSE_MODAL],
|
|
127
|
+
setup(e, { slots: i, emit: d }) {
|
|
128
|
+
const n = A(i), u = () => {
|
|
129
|
+
d(m.CLOSE_MODAL);
|
|
367
130
|
};
|
|
368
|
-
return
|
|
369
|
-
if (!(
|
|
131
|
+
return E(() => {
|
|
132
|
+
if (!(n("content") || n("content-col-1") && n("content-col-2")))
|
|
370
133
|
throw new Error("Bento Modal default variant requires content slot or column slots");
|
|
371
134
|
}), {
|
|
372
135
|
// Methods
|
|
373
136
|
onCloseModal: u,
|
|
374
|
-
hasSlot:
|
|
137
|
+
hasSlot: n
|
|
375
138
|
};
|
|
376
139
|
}
|
|
377
140
|
});
|
|
378
|
-
function
|
|
379
|
-
const t =
|
|
380
|
-
return
|
|
141
|
+
function _(e, i, d, n, u, o) {
|
|
142
|
+
const t = v("footer-actions"), s = v("base-modal");
|
|
143
|
+
return f(), p(s, M({ class: "b-modal-default" }, e.$attrs, {
|
|
144
|
+
actions: e.actions,
|
|
381
145
|
size: e.size,
|
|
382
146
|
"hide-close-button": e.hideCloseButton,
|
|
383
147
|
"custom-padding": e.customPadding,
|
|
@@ -387,30 +151,30 @@ function Se(e, l, r, a, u, o) {
|
|
|
387
151
|
"with-column-layout": e.withColumnLayout,
|
|
388
152
|
"initially-open": e.initiallyOpen,
|
|
389
153
|
onCloseModal: e.onCloseModal
|
|
390
|
-
}),
|
|
391
|
-
"content-col-1":
|
|
392
|
-
|
|
154
|
+
}), $({
|
|
155
|
+
"content-col-1": l(() => [
|
|
156
|
+
a(e.$slots, "content-col-1")
|
|
393
157
|
]),
|
|
394
|
-
"content-col-2":
|
|
395
|
-
|
|
158
|
+
"content-col-2": l(() => [
|
|
159
|
+
a(e.$slots, "content-col-2")
|
|
396
160
|
]),
|
|
397
|
-
content:
|
|
398
|
-
|
|
161
|
+
content: l(() => [
|
|
162
|
+
a(e.$slots, "content")
|
|
399
163
|
]),
|
|
400
164
|
_: 2
|
|
401
165
|
}, [
|
|
402
166
|
e.hasSlot("default") ? {
|
|
403
167
|
name: "default",
|
|
404
|
-
fn:
|
|
405
|
-
|
|
168
|
+
fn: l(() => [
|
|
169
|
+
a(e.$slots, "default")
|
|
406
170
|
]),
|
|
407
171
|
key: "0"
|
|
408
172
|
} : void 0,
|
|
409
173
|
e.actions ? {
|
|
410
174
|
name: "actions",
|
|
411
|
-
fn:
|
|
412
|
-
|
|
413
|
-
|
|
175
|
+
fn: l(() => [
|
|
176
|
+
a(e.$slots, "actions", {}, () => [
|
|
177
|
+
z(t, {
|
|
414
178
|
actions: e.actions,
|
|
415
179
|
"actions-label": e.actionsLabel,
|
|
416
180
|
"destructive-actions": e.destructiveActions
|
|
@@ -419,16 +183,16 @@ function Se(e, l, r, a, u, o) {
|
|
|
419
183
|
]),
|
|
420
184
|
key: "1"
|
|
421
185
|
} : void 0
|
|
422
|
-
]), 1040, ["size", "hide-close-button", "custom-padding", "is-dismissible", "is-open", "overflow-visible", "with-column-layout", "initially-open", "onCloseModal"]);
|
|
186
|
+
]), 1040, ["actions", "size", "hide-close-button", "custom-padding", "is-dismissible", "is-open", "overflow-visible", "with-column-layout", "initially-open", "onCloseModal"]);
|
|
423
187
|
}
|
|
424
|
-
const
|
|
188
|
+
const H = /* @__PURE__ */ D(Y, [["render", _]]), w = {
|
|
425
189
|
"en-US": {
|
|
426
190
|
okButtonText: "OK"
|
|
427
191
|
}
|
|
428
|
-
},
|
|
429
|
-
i18n: { messages:
|
|
192
|
+
}, J = S({
|
|
193
|
+
i18n: { messages: w },
|
|
430
194
|
name: "bento-modal-dialog",
|
|
431
|
-
components: { BaseModal:
|
|
195
|
+
components: { BaseModal: T, BentoButtonActions: W },
|
|
432
196
|
props: {
|
|
433
197
|
/**
|
|
434
198
|
* Controls the modal's state from the outside. Set it to true to open the modal
|
|
@@ -498,101 +262,98 @@ const Ae = /* @__PURE__ */ N(Be, [["render", Se]]), F = {
|
|
|
498
262
|
default: !1
|
|
499
263
|
}
|
|
500
264
|
},
|
|
501
|
-
emits: [
|
|
502
|
-
setup(e, { slots:
|
|
503
|
-
const { t:
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
},
|
|
265
|
+
emits: [m.CLOSE_MODAL],
|
|
266
|
+
setup(e, { slots: i, emit: d }) {
|
|
267
|
+
const { t: n } = K({ messages: w }), u = A(i), { actions: o, dialogType: t } = R(e), s = () => {
|
|
268
|
+
d(m.CLOSE_MODAL);
|
|
269
|
+
}, g = () => {
|
|
270
|
+
s();
|
|
271
|
+
}, k = b(() => [
|
|
508
272
|
{
|
|
509
|
-
title:
|
|
510
|
-
event:
|
|
511
|
-
variant:
|
|
273
|
+
title: n("okButtonText"),
|
|
274
|
+
event: g,
|
|
275
|
+
variant: h.SECONDARY
|
|
512
276
|
}
|
|
513
|
-
]),
|
|
514
|
-
var
|
|
515
|
-
const
|
|
277
|
+
]), N = b(() => {
|
|
278
|
+
var L;
|
|
279
|
+
const y = {
|
|
516
280
|
title: "Cancel",
|
|
517
|
-
event:
|
|
518
|
-
},
|
|
519
|
-
return t.value ===
|
|
520
|
-
}),
|
|
281
|
+
event: g
|
|
282
|
+
}, r = (L = o == null ? void 0 : o.value) == null ? void 0 : L[0];
|
|
283
|
+
return t.value === c.DESTRUCTIVE ? r.critical = !0 : t.value === c.INFO && (r.variant = h.SECONDARY), [r, y];
|
|
284
|
+
}), V = b(() => ({
|
|
521
285
|
[`b-modal-dialog--${t.value}`]: t.value
|
|
522
286
|
}));
|
|
523
|
-
return
|
|
524
|
-
var
|
|
287
|
+
return E(() => {
|
|
288
|
+
var y, r;
|
|
525
289
|
if (!u("default") || !e.content)
|
|
526
290
|
throw new Error("Bento Modal Dialog requires header title and content");
|
|
527
|
-
if (((
|
|
291
|
+
if (((y = o == null ? void 0 : o.value) == null ? void 0 : y.length) > 1)
|
|
528
292
|
throw new Error("Not more than 1 action button may be provided to Modal Dialog");
|
|
529
|
-
if (t.value !==
|
|
293
|
+
if (t.value !== c.ACKNOWLEDGEMENT && !(o != null && o.value))
|
|
530
294
|
throw new Error(
|
|
531
295
|
"Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button"
|
|
532
296
|
);
|
|
533
|
-
if (t.value ===
|
|
297
|
+
if (t.value === c.ACKNOWLEDGEMENT && ((r = o == null ? void 0 : o.value) != null && r.length))
|
|
534
298
|
throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
|
|
535
299
|
}), {
|
|
536
300
|
// Values
|
|
537
|
-
dialogActions:
|
|
538
|
-
acknowledgementDialogActions:
|
|
301
|
+
dialogActions: N,
|
|
302
|
+
acknowledgementDialogActions: k,
|
|
539
303
|
// Methods
|
|
540
|
-
onCloseModal:
|
|
541
|
-
onCloseActionButton:
|
|
304
|
+
onCloseModal: s,
|
|
305
|
+
onCloseActionButton: g,
|
|
542
306
|
// Styles
|
|
543
|
-
modalDialogConditionalClasses:
|
|
307
|
+
modalDialogConditionalClasses: V,
|
|
544
308
|
// Enums
|
|
545
|
-
BentoModalRole:
|
|
546
|
-
BentoModalSize: O,
|
|
547
|
-
BentoButtonVariant: _,
|
|
548
|
-
BentoModalDialogType: g,
|
|
549
|
-
BentoButtonActionsLayout: ye
|
|
309
|
+
BentoModalRole: G
|
|
550
310
|
};
|
|
551
311
|
}
|
|
552
312
|
});
|
|
553
|
-
function
|
|
554
|
-
const t =
|
|
555
|
-
return
|
|
313
|
+
function Q(e, i, d, n, u, o) {
|
|
314
|
+
const t = v("bento-button-actions"), s = v("base-modal");
|
|
315
|
+
return f(), p(s, M({
|
|
556
316
|
class: ["b-modal-dialog", e.modalDialogConditionalClasses],
|
|
317
|
+
actions: e.actions,
|
|
557
318
|
"hide-close-button": !0,
|
|
558
|
-
size:
|
|
319
|
+
size: "small",
|
|
559
320
|
"is-dismissible": e.isDismissible,
|
|
560
321
|
"is-open": e.isOpen,
|
|
561
322
|
"overflow-visible": e.overflowVisible,
|
|
562
323
|
"modal-role": e.BentoModalRole.ALERT_DIALOG,
|
|
563
324
|
"initially-open": e.initiallyOpen
|
|
564
325
|
}, e.$attrs, { onCloseModal: e.onCloseModal }), {
|
|
565
|
-
default:
|
|
566
|
-
|
|
326
|
+
default: l(() => [
|
|
327
|
+
a(e.$slots, "default")
|
|
567
328
|
]),
|
|
568
|
-
content:
|
|
569
|
-
|
|
329
|
+
content: l(() => [
|
|
330
|
+
q(P(e.content), 1)
|
|
570
331
|
]),
|
|
571
|
-
actions:
|
|
572
|
-
e.dialogType ===
|
|
332
|
+
actions: l(() => [
|
|
333
|
+
e.dialogType === "acknowledgement" ? (f(), p(t, {
|
|
573
334
|
key: 0,
|
|
574
335
|
actions: e.acknowledgementDialogActions,
|
|
575
|
-
layout:
|
|
576
|
-
}, null, 8, ["actions"
|
|
336
|
+
layout: "buttons-end"
|
|
337
|
+
}, null, 8, ["actions"])) : (f(), p(t, {
|
|
577
338
|
key: 1,
|
|
578
339
|
actions: e.dialogActions,
|
|
579
|
-
layout:
|
|
580
|
-
}, null, 8, ["actions"
|
|
340
|
+
layout: "buttons-end"
|
|
341
|
+
}, null, 8, ["actions"]))
|
|
581
342
|
]),
|
|
582
343
|
_: 3
|
|
583
|
-
}, 16, ["
|
|
344
|
+
}, 16, ["actions", "class", "is-dismissible", "is-open", "overflow-visible", "modal-role", "initially-open", "onCloseModal"]);
|
|
584
345
|
}
|
|
585
|
-
const
|
|
346
|
+
const X = /* @__PURE__ */ D(J, [["render", Q]]), Z = 500, x = S({
|
|
586
347
|
name: "bento-modal",
|
|
587
|
-
components: { BentoModalDefault:
|
|
348
|
+
components: { BentoModalDefault: H, BentoModalDialog: X },
|
|
588
349
|
props: {
|
|
589
350
|
/**
|
|
590
351
|
* Choose between default or dialog versions of modal
|
|
591
352
|
*/
|
|
592
353
|
variant: {
|
|
593
354
|
type: String,
|
|
594
|
-
default:
|
|
595
|
-
validator: (e) => Object.values(
|
|
355
|
+
default: C.DEFAULT,
|
|
356
|
+
validator: (e) => Object.values(C).includes(e)
|
|
596
357
|
},
|
|
597
358
|
// Shared Modal Default and Modal Default props
|
|
598
359
|
/**
|
|
@@ -703,8 +464,8 @@ const De = /* @__PURE__ */ N(Oe, [["render", Ee]]), Me = $({
|
|
|
703
464
|
*/
|
|
704
465
|
dialogType: {
|
|
705
466
|
type: String,
|
|
706
|
-
default:
|
|
707
|
-
validator: (e) => Object.values(
|
|
467
|
+
default: c.CONFIRMATION,
|
|
468
|
+
validator: (e) => Object.values(c).includes(e)
|
|
708
469
|
},
|
|
709
470
|
/**
|
|
710
471
|
* Text that will be displayed in the content section of Modal
|
|
@@ -714,10 +475,10 @@ const De = /* @__PURE__ */ N(Oe, [["render", Ee]]), Me = $({
|
|
|
714
475
|
default: null
|
|
715
476
|
}
|
|
716
477
|
},
|
|
717
|
-
emits: [
|
|
718
|
-
setup(e, { slots:
|
|
719
|
-
const
|
|
720
|
-
() => e.variant ===
|
|
478
|
+
emits: [m.CLOSE_MODAL],
|
|
479
|
+
setup(e, { slots: i, emit: d }) {
|
|
480
|
+
const n = I(), u = b(
|
|
481
|
+
() => e.variant === C.DEFAULT ? {
|
|
721
482
|
hideCloseButton: e.hideCloseButton,
|
|
722
483
|
size: e.size,
|
|
723
484
|
customPadding: e.customPadding,
|
|
@@ -726,68 +487,72 @@ const De = /* @__PURE__ */ N(Oe, [["render", Ee]]), Me = $({
|
|
|
726
487
|
isDismissible: e.isDismissible ?? !0,
|
|
727
488
|
overflowVisible: e.overflowVisible,
|
|
728
489
|
withColumnLayout: e.withColumnLayout,
|
|
729
|
-
|
|
490
|
+
columnSize: e.columnsSize,
|
|
491
|
+
...n
|
|
730
492
|
} : {
|
|
731
493
|
dialogType: e.dialogType,
|
|
732
494
|
content: e.content,
|
|
733
495
|
isDismissible: e.isDismissible ?? !1,
|
|
734
496
|
overflowVisible: e.overflowVisible,
|
|
735
|
-
...
|
|
497
|
+
...n
|
|
736
498
|
}
|
|
737
|
-
)
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
499
|
+
), o = () => {
|
|
500
|
+
d(m.CLOSE_MODAL);
|
|
501
|
+
};
|
|
502
|
+
return F(e.actions, () => {
|
|
503
|
+
var t, s;
|
|
504
|
+
((s = (t = e.actions) == null ? void 0 : t[0]) == null ? void 0 : s.state) === "success" && setTimeout(o, Z);
|
|
505
|
+
}), {
|
|
506
|
+
onCloseModal: o,
|
|
742
507
|
customProps: u,
|
|
743
|
-
hasSlot:
|
|
508
|
+
hasSlot: A(i)
|
|
744
509
|
};
|
|
745
510
|
}
|
|
746
511
|
});
|
|
747
|
-
function
|
|
748
|
-
return
|
|
512
|
+
function ee(e, i, d, n, u, o) {
|
|
513
|
+
return f(), p(j(e.variant), M({
|
|
749
514
|
class: "b-modal",
|
|
750
515
|
"is-open": e.isOpen,
|
|
751
516
|
actions: e.actions
|
|
752
|
-
}, e.customProps, { onCloseModal: e.onCloseModal }),
|
|
517
|
+
}, e.customProps, { onCloseModal: e.onCloseModal }), $({ _: 2 }, [
|
|
753
518
|
e.hasSlot("default") ? {
|
|
754
519
|
name: "default",
|
|
755
|
-
fn:
|
|
756
|
-
|
|
520
|
+
fn: l(() => [
|
|
521
|
+
a(e.$slots, "default")
|
|
757
522
|
]),
|
|
758
523
|
key: "0"
|
|
759
524
|
} : void 0,
|
|
760
525
|
e.hasSlot("content-col-1") ? {
|
|
761
526
|
name: "content-col-1",
|
|
762
|
-
fn:
|
|
763
|
-
|
|
527
|
+
fn: l(() => [
|
|
528
|
+
a(e.$slots, "content-col-1")
|
|
764
529
|
]),
|
|
765
530
|
key: "1"
|
|
766
531
|
} : void 0,
|
|
767
532
|
e.hasSlot("content-col-2") ? {
|
|
768
533
|
name: "content-col-2",
|
|
769
|
-
fn:
|
|
770
|
-
|
|
534
|
+
fn: l(() => [
|
|
535
|
+
a(e.$slots, "content-col-2")
|
|
771
536
|
]),
|
|
772
537
|
key: "2"
|
|
773
538
|
} : void 0,
|
|
774
539
|
e.hasSlot("content") ? {
|
|
775
540
|
name: "content",
|
|
776
|
-
fn:
|
|
777
|
-
|
|
541
|
+
fn: l(() => [
|
|
542
|
+
a(e.$slots, "content")
|
|
778
543
|
]),
|
|
779
544
|
key: "3"
|
|
780
545
|
} : void 0
|
|
781
546
|
]), 1040, ["is-open", "actions", "onCloseModal"]);
|
|
782
547
|
}
|
|
783
|
-
const
|
|
548
|
+
const ue = /* @__PURE__ */ D(x, [["render", ee]]);
|
|
784
549
|
export {
|
|
785
|
-
|
|
550
|
+
ue as BentoModal,
|
|
786
551
|
B as BentoModalColumnLayoutVariant,
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
552
|
+
c as BentoModalDialogType,
|
|
553
|
+
m as BentoModalEvent,
|
|
554
|
+
G as BentoModalRole,
|
|
790
555
|
O as BentoModalSize,
|
|
791
|
-
|
|
556
|
+
C as BentoModalVariant
|
|
792
557
|
};
|
|
793
558
|
//# sourceMappingURL=modal.js.map
|