@adyen/bento-vue3 1.9.0 → 1.11.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 +2 -0
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +23 -2455
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/code-snippet/{composables/useLanguage.d.ts → utils/get-lang-loader.d.ts} +1 -3
- package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/country/composables/{useCountryCapital/useCountryCapital.d.ts → use-country-capital/use-country-capital.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/country/composables/{useCountryName/useCountryName.d.ts → use-country-name/use-country-name.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/country/composables/{useCountryPhoneCode/useCountryPhoneCode.d.ts → use-country-phone-code/use-country-phon-code.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +21 -4
- package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +10 -8
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.d.ts → use-calculate-column-width/use-calculate-column-width.d.ts} +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +121 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +154 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.d.ts → use-keyboard-navigator/use-keyboard-navigator.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{useResizer.d.ts → use-resizer.d.ts} +0 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{useScroller/useScroller.d.ts → use-scroller/use-scroller.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSelector.d.ts → use-selector.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -5
- package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
- 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/composables/useDropdownOptionsListbox.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +16 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2355 -6
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
- 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.types.d.ts +2 -1
- 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 +51 -0
- 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 +10 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +11 -2
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +316 -3
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +14 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +22 -0
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +15 -2
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
- package/dist/@types/packages/vue2/src/utils/ts/deprecate.d.ts +1 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +5 -5
- package/dist/alert.js +23 -23
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- 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/fixed-scroller.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/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 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.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/index9.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +57 -46
- package/dist/button.js.map +1 -1
- package/dist/card.js +2 -2
- package/dist/checkbox.js +73 -54
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.aa085dfa.js → base-button.39fae75f.js} +2 -2
- package/dist/chunks/{base-button.aa085dfa.js.map → base-button.39fae75f.js.map} +1 -1
- package/dist/chunks/{base-modal.a629cb32.js → base-modal.161ce8f0.js} +86 -86
- package/dist/chunks/base-modal.161ce8f0.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.f6dfb14d.js → button-actions-with-menu.2ff339f6.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.f6dfb14d.js.map → button-actions-with-menu.2ff339f6.js.map} +1 -1
- package/dist/chunks/button.623a46d2.js +118 -0
- package/dist/chunks/button.623a46d2.js.map +1 -0
- package/dist/chunks/{calendar.fa7712e8.js → calendar.b1d05580.js} +4 -4
- package/dist/chunks/{calendar.fa7712e8.js.map → calendar.b1d05580.js.map} +1 -1
- package/dist/chunks/checkbox.d65694f2.js +278 -0
- package/dist/chunks/checkbox.d65694f2.js.map +1 -0
- package/dist/chunks/{controls-group.d6543674.js → controls-group.30352ce4.js} +21 -17
- package/dist/chunks/controls-group.30352ce4.js.map +1 -0
- package/dist/chunks/copy.2a9cddc1.js +145 -0
- package/dist/chunks/copy.2a9cddc1.js.map +1 -0
- package/dist/chunks/country.types.002caff2.js +5871 -0
- package/dist/chunks/country.types.002caff2.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.4108b289.js → dropdown-default-textbox.a731b5fb.js} +25 -25
- package/dist/chunks/dropdown-default-textbox.a731b5fb.js.map +1 -0
- package/dist/chunks/{dropdown.63de9aac.js → dropdown.96431c25.js} +399 -359
- package/dist/chunks/dropdown.96431c25.js.map +1 -0
- package/dist/chunks/{field-label.3c19a29a.js → field-label.b681234d.js} +5 -5
- package/dist/chunks/{field-label.3c19a29a.js.map → field-label.b681234d.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.bced60dd.js → fixed-scroller.ebfb2f80.js} +2 -2
- package/dist/chunks/{fixed-scroller.bced60dd.js.map → fixed-scroller.ebfb2f80.js.map} +1 -1
- package/dist/chunks/{footer-actions.cefaf1e2.js → footer-actions.03015ba1.js} +3 -3
- package/dist/chunks/{footer-actions.cefaf1e2.js.map → footer-actions.03015ba1.js.map} +1 -1
- package/dist/chunks/{index.98174339.js → index.03605cb0.js} +5 -5
- package/dist/chunks/{index.98174339.js.map → index.03605cb0.js.map} +1 -1
- package/dist/chunks/index.09f7f1b5.js +124 -0
- package/dist/chunks/index.09f7f1b5.js.map +1 -0
- package/dist/chunks/index.0a8ddfaa.js +168 -0
- package/dist/chunks/index.0a8ddfaa.js.map +1 -0
- package/dist/chunks/index.113137fb.js +21 -0
- package/dist/chunks/index.113137fb.js.map +1 -0
- package/dist/chunks/{index.89dfe209.js → index.1dac266a.js} +3 -3
- package/dist/chunks/{index.89dfe209.js.map → index.1dac266a.js.map} +1 -1
- package/dist/chunks/{index.0ee895e0.js → index.45d00aad.js} +2 -2
- package/dist/chunks/{index.0ee895e0.js.map → index.45d00aad.js.map} +1 -1
- package/dist/chunks/{index.4d2a13e1.js → index.80078bf9.js} +2 -2
- package/dist/chunks/{index.4d2a13e1.js.map → index.80078bf9.js.map} +1 -1
- package/dist/chunks/{index.85832db5.js → index.a4a6e52f.js} +3 -3
- package/dist/chunks/{index.85832db5.js.map → index.a4a6e52f.js.map} +1 -1
- package/dist/chunks/index.cf561336.js +622 -0
- package/dist/chunks/index.cf561336.js.map +1 -0
- package/dist/chunks/{index.c6fecf1c.js → index.ef1c4d59.js} +33 -33
- package/dist/chunks/{index.c6fecf1c.js.map → index.ef1c4d59.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.b1eb32bd.js → listbox-option-tag.ff6d6f32.js} +3 -3
- package/dist/chunks/{listbox-option-tag.b1eb32bd.js.map → listbox-option-tag.ff6d6f32.js.map} +1 -1
- package/dist/chunks/listbox.dd9883c5.js +1419 -0
- package/dist/chunks/listbox.dd9883c5.js.map +1 -0
- package/dist/chunks/{loading-button.4b88e24d.js → loading-button.30c5fede.js} +19 -19
- package/dist/chunks/{loading-button.4b88e24d.js.map → loading-button.30c5fede.js.map} +1 -1
- package/dist/chunks/{tooltip.27c32d36.js → tooltip.785993dd.js} +15 -15
- package/dist/chunks/tooltip.785993dd.js.map +1 -0
- package/dist/chunks/use-has-slot.4d98bf29.js.map +1 -1
- package/dist/chunks/useCountryItems.d2a1f224.js +29 -0
- package/dist/chunks/{useCountryItems.e83ef8f0.js.map → useCountryItems.d2a1f224.js.map} +1 -1
- package/dist/code-snippet.js +136 -138
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +51 -5912
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +1325 -1021
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +20 -20
- 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 +2 -10
- package/dist/divider.js.map +1 -1
- package/dist/dropdown.js +51 -50
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +23 -23
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +759 -747
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +3 -3
- package/dist/index.js +194 -185
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +17 -15
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +67 -64
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +15 -13
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +69 -67
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +8 -8
- package/dist/secondary-nav.js +110 -0
- package/dist/secondary-nav.js.map +1 -0
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +5 -5
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +173 -161
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +244 -237
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +5 -5
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +0 -67
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +0 -73
- package/dist/chunks/base-modal.a629cb32.js.map +0 -1
- package/dist/chunks/button.82ed953e.js +0 -148
- package/dist/chunks/button.82ed953e.js.map +0 -1
- package/dist/chunks/checkbox.731dc0ab.js +0 -264
- package/dist/chunks/checkbox.731dc0ab.js.map +0 -1
- package/dist/chunks/controls-group.d6543674.js.map +0 -1
- package/dist/chunks/copy.330d594e.js +0 -126
- package/dist/chunks/copy.330d594e.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.4108b289.js.map +0 -1
- package/dist/chunks/dropdown.63de9aac.js.map +0 -1
- package/dist/chunks/index.73ed22a7.js +0 -594
- package/dist/chunks/index.73ed22a7.js.map +0 -1
- package/dist/chunks/index.75f3672e.js +0 -124
- package/dist/chunks/index.75f3672e.js.map +0 -1
- package/dist/chunks/index.edcaf766.js +0 -150
- package/dist/chunks/index.edcaf766.js.map +0 -1
- package/dist/chunks/listbox.ac43f8ab.js +0 -1309
- package/dist/chunks/listbox.ac43f8ab.js.map +0 -1
- package/dist/chunks/tooltip.27c32d36.js.map +0 -1
- package/dist/chunks/useCountryItems.e83ef8f0.js +0 -29
- /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts → use-calculate-column-width/use-calculate-column-width.types.d.ts} +0 -0
- /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts → use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts} +0 -0
- /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.types.d.ts → use-keyboard-navigator/use-keyboard-navigator.types.d.ts} +0 -0
- /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useLazyLoading/useLazyLoading.d.ts → use-lazy-loading/use-lazy-loading.d.ts} +0 -0
- /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSorter.d.ts → use-sorter.d.ts} +0 -0
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../vue2/src/plugins/toastController.ts","../../vue2/src/install.ts","../src/components/link/link.vue"],"sourcesContent":["import { reactive } from 'vue';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport { BentoToastItem } from '@/components/toast/components/toast-item';\n\n/* eslint-disable no-underscore-dangle */\nexport default class ToastController {\n get state(): { queue: Array<BentoToastItem> } {\n return this._state;\n }\n\n private _state: { queue: Array<BentoToastItem> };\n\n constructor() {\n this._state = reactive({ queue: [] });\n }\n\n private dismissToast(toast: BentoToastItem): void {\n this._state.queue.splice(this._state.queue.indexOf(toast), 1);\n }\n\n public addToast(params: BentoToastItem) {\n const id = generateUid('toast');\n const toast = {\n ...params,\n id,\n dismiss: () => this.dismissToast(toast),\n };\n\n // new messages always appear in front\n this._state.queue.push(toast);\n\n // return API to manipulate toast\n return {\n dismiss: () => this.dismissToast(toast),\n };\n }\n}\n/* eslint-enable no-underscore-dangle */\n","import type { PluginObject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport ToastController from './plugins/toastController';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n if (isVue2) {\n // Adds a new property to the Vue instance\n // eslint-disable-next-line no-param-reassign\n (Vue as any).prototype.$bentoToastController = new ToastController();\n } else {\n // eslint-disable-next-line no-param-reassign\n (Vue as any).config.globalProperties.$bentoToastController = new ToastController();\n }\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n","<template>\n <a\n v-if=\"external\"\n v-bind=\"$attrs\"\n :href=\"to\"\n target=\"_blank\"\n class=\"b-link\"\n :class=\"conditionalClasses\"\n @click=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </a>\n <router-link v-else v-slot=\"{ href, navigate }\" v-bind=\"$props\" custom @click=\"onClick\">\n <a v-bind=\"$attrs\" :href=\"href\" class=\"b-link\" :class=\"conditionalClasses\" @click=\"navigate\">\n <bento-typography v-if=\"!disableTypography\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </a>\n </router-link>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoLinkVariant } from '@/core/components/link/link.types';\n import BentoTypography from '@/components/typography/typography.vue';\n import { computed, type PropType } from 'vue';\n import { RouterLink } from 'vue-router';\n import type { RouterLinkSlotArgument } from 'vue-router/types/router';\n\n const props = defineProps({\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n ...RouterLink.props,\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: { type: Boolean, default: false },\n /**\n * Disable the default typography for the component. Only use this when the component is inside another typography component.\n */\n disableTypography: { type: Boolean, default: false },\n /**\n * Link variant type affecting visual style.\n * @values default, quiet\n */\n variant: { type: String as PropType<BentoLinkVariant>, default: BentoLinkVariant.DEFAULT },\n });\n const emit = defineEmits(['click']);\n const conditionalClasses = computed(() => ({\n [`b-link--${BentoLinkVariant.QUIET}`]: props.variant === BentoLinkVariant.QUIET,\n }));\n\n const onClick = (e: MouseEvent, navigateCallback?: RouterLinkSlotArgument['navigate']) => {\n emit('click', e);\n if (navigateCallback) {\n navigateCallback();\n }\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/link/link.scss\" />\n"],"names":["ToastController","__publicField","reactive","toast","params","id","generateUid","setTheme","theme","plugin","Vue","options","conditionalClasses","computed","BentoLinkVariant","props","onClick","e","navigateCallback","emit"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../vue2/src/plugins/toastController.ts","../../vue2/src/install.ts","../src/components/link/link.vue"],"sourcesContent":["import { reactive } from 'vue';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport { BentoToastItem } from '@/components/toast/components/toast-item';\n\n/* eslint-disable no-underscore-dangle */\nexport default class ToastController {\n get state(): { queue: Array<BentoToastItem> } {\n return this._state;\n }\n\n private _state: { queue: Array<BentoToastItem> };\n\n constructor() {\n this._state = reactive({ queue: [] });\n }\n\n private dismissToast(toast: BentoToastItem): void {\n this._state.queue.splice(this._state.queue.indexOf(toast), 1);\n }\n\n public addToast(params: BentoToastItem) {\n const id = generateUid('toast');\n const toast = {\n ...params,\n id,\n dismiss: () => this.dismissToast(toast),\n };\n\n // new messages always appear in front\n this._state.queue.push(toast);\n\n // return API to manipulate toast\n return {\n dismiss: () => this.dismissToast(toast),\n };\n }\n}\n/* eslint-enable no-underscore-dangle */\n","import type { PluginObject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport ToastController from './plugins/toastController';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n if (isVue2) {\n // Adds a new property to the Vue instance\n // eslint-disable-next-line no-param-reassign\n (Vue as any).prototype.$bentoToastController = new ToastController();\n } else {\n // eslint-disable-next-line no-param-reassign\n (Vue as any).config.globalProperties.$bentoToastController = new ToastController();\n }\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n","<template>\n <a\n v-if=\"external\"\n v-bind=\"$attrs\"\n :href=\"to\"\n target=\"_blank\"\n class=\"b-link\"\n :class=\"conditionalClasses\"\n @click=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </a>\n <router-link v-else v-slot=\"{ href, navigate }\" v-bind=\"$props\" custom @click=\"onClick\">\n <a v-bind=\"$attrs\" :href=\"href\" class=\"b-link\" :class=\"conditionalClasses\" @click=\"navigate\">\n <bento-typography v-if=\"!disableTypography\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </a>\n </router-link>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoLinkVariant } from '@/core/components/link/link.types';\n import BentoTypography from '@/components/typography/typography.vue';\n import { computed, type PropType } from 'vue';\n import { RouterLink } from 'vue-router';\n import type { RouterLinkSlotArgument } from 'vue-router/types/router';\n\n const props = defineProps({\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n ...RouterLink.props,\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: { type: Boolean, default: false },\n /**\n * Disable the default typography for the component. Only use this when the component is inside another typography component.\n */\n disableTypography: { type: Boolean, default: false },\n /**\n * Link variant type affecting visual style.\n * @values default, quiet\n */\n variant: { type: String as PropType<BentoLinkVariant>, default: BentoLinkVariant.DEFAULT },\n });\n const emit = defineEmits(['click']);\n const conditionalClasses = computed(() => ({\n [`b-link--${BentoLinkVariant.QUIET}`]: props.variant === BentoLinkVariant.QUIET,\n }));\n\n const onClick = (e: MouseEvent, navigateCallback?: RouterLinkSlotArgument['navigate']) => {\n emit('click', e);\n if (navigateCallback) {\n navigateCallback();\n }\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/link/link.scss\" />\n"],"names":["ToastController","__publicField","reactive","toast","params","id","generateUid","setTheme","theme","plugin","Vue","options","conditionalClasses","computed","BentoLinkVariant","props","onClick","e","navigateCallback","emit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAAA,EAAA;AAAA,EAKY,cAAA;AAFR,IAAAC,EAAA;AAKI,SAAA,SAAAC,EAAA,EAAA,OAAA,CAAA,EAAA,CAAA;AAAA,EAAoC;AAAA,EARP,IAAA,QAAA;AAE7B,WAAA,KAAA;AAAA,EAAY;AAAA,EAOhB,aAAAC,GAAA;AAGI,SAAA,OAAA,MAAA,OAAA,KAAA,OAAA,MAAA,QAAAA,CAAA,GAAA,CAAA;AAAA,EAA4D;AAAA,EAChE,SAAAC,GAAA;AAGI,UAAAC,IAAAC,EAAA,OAAA,GACAH,IAAA;AAAA,MAAc,GAAAC;AAAA,MACP,IAAAC;AAAA,MACH,SAAA,MAAA,KAAA,aAAAF,CAAA;AAAA,IACsC;AAI1C,gBAAA,OAAA,MAAA,KAAAA,CAAA,GAGA;AAAA,MAAO,SAAA,MAAA,KAAA,aAAAA,CAAA;AAAA,IACmC;AAAA,EAC1C;AAER;ACrBA,MAAAI,IAAA,CAAAC,MAAA;AACI,WAAA,KAAA,UAAA,IAAAA,CAAA;AACJ,GAEAC,IAAA;AAAA,EAA6C,SAAA,OAAAC,GAAAC,MAAA;AAErC,IAAAA,KAAA,QAAAA,EAAA,cAOQD,EAAA,OAAA,iBAAA,wBAAA,IAAAV,EAAA,KAIRW,KAAA,gBAAAA,EAAA,WAAA,oBACIJ;AAAA,MAAA;AAAA;AAAA,IAAA,GACA,MAAA,OAAA,qEAAA,MAA6EI,KAAA,gBAAAA,EAAA,WAAA,wBAE7EJ;AAAA,MAAA;AAAA;AAAA,IAAA,GACA,MAAA,OAAA,yEAAA,KAEA,MAAA,OAAA,8DAAA,GAGJI,KAAA,QAAAA,EAAA,sBACI,MAAA,OAAA,4DAAA;AAAA,EACJ;AAER;;;;;;;;;;;;;;;;;;;;;;iBCKIC,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,WAAAC,EAAA,OAAA,GAAAC,EAAA,YAAAD,EAAA;AAAA,IACmC,EAAA,GAG9EE,IAAA,CAAAC,GAAAC,MAAA;AACI,MAAAC,EAAA,SAAAF,CAAA,GACAC,KACIA,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/info-icon.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { openBlock as e, createElementBlock as i, mergeProps as u, toDisplayString as f, createCommentVNode as h, createElementVNode as o, defineComponent as m, resolveComponent as v, resolveDirective as g, withDirectives as b, createVNode as $ } from "vue";
|
|
2
|
-
import { c as n } from "./chunks/index.
|
|
3
|
-
import { b as y } from "./chunks/tooltip.
|
|
2
|
+
import { c as n } from "./chunks/index.a4a6e52f.js";
|
|
3
|
+
import { b as y } from "./chunks/tooltip.785993dd.js";
|
|
4
4
|
import { _ as r } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
|
-
import "./assets/
|
|
5
|
+
import "./assets/index20.css";
|
|
6
6
|
let s = 0;
|
|
7
7
|
const V = {
|
|
8
8
|
beforeCreate() {
|
package/dist/input-field.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as oe, useAttrs as de, useSlots as ie, ref as U, toRef as re, computed as r, toRefs as ne, openBlock as d, createBlock as p, unref as t, normalizeClass as le, withCtx as w, renderSlot as c, createCommentVNode as n, createElementVNode as V, createElementBlock as y, withModifiers as B, mergeProps as L, withKeys as se, createVNode as ue } from "vue";
|
|
2
|
-
import { B as H, a as x } from "./chunks/dropdown.
|
|
3
|
-
import { d as pe, B as _ } from "./chunks/index.
|
|
2
|
+
import { B as H, a as x } from "./chunks/dropdown.96431c25.js";
|
|
3
|
+
import { d as pe, B as _ } from "./chunks/index.09f7f1b5.js";
|
|
4
4
|
import { g as D } from "./chunks/unique-id.a2a2b458.js";
|
|
5
5
|
import { g as ce } from "./chunks/get-slot-text.bead058f.js";
|
|
6
6
|
import { u as fe } from "./chunks/aria-label.ac9651a5.js";
|
|
7
7
|
import { u as be } from "./chunks/i18n.6c402773.js";
|
|
8
8
|
import { u as ye } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
9
9
|
import { u as ve } from "./chunks/use-has-slot.4d98bf29.js";
|
|
10
|
-
import { F as me, E as we } from "./chunks/field-label.
|
|
10
|
+
import { F as me, E as we } from "./chunks/field-label.b681234d.js";
|
|
11
11
|
import { _ as De } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
12
|
-
import "./assets/
|
|
12
|
+
import "./assets/index23.css";
|
|
13
13
|
var f = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(f || {}), l = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(l || {}), S = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(S || {}), O = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(O || {}), Se = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(Se || {});
|
|
14
14
|
const I = {
|
|
15
15
|
"en-US": {
|
package/dist/internal.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { C as s, a as p, b as
|
|
3
|
-
import { C as
|
|
4
|
-
import { C } from "./chunks/controls-group.
|
|
5
|
-
import { E as
|
|
6
|
-
import { F as y } from "./chunks/fixed-scroller.
|
|
1
|
+
import { B as r, L as e } from "./chunks/listbox-option-tag.ff6d6f32.js";
|
|
2
|
+
import { C as s, a as p, b as i } from "./chunks/calendar.b1d05580.js";
|
|
3
|
+
import { C as x, a as n } from "./chunks/copy.2a9cddc1.js";
|
|
4
|
+
import { C as f } from "./chunks/controls-group.30352ce4.js";
|
|
5
|
+
import { E as d, F as L } from "./chunks/field-label.b681234d.js";
|
|
6
|
+
import { F as y } from "./chunks/fixed-scroller.ebfb2f80.js";
|
|
7
7
|
import { G as b, a as B } from "./chunks/grid-layout.c2fe3057.js";
|
|
8
|
-
import { B as u } from "./chunks/listbox.
|
|
8
|
+
import { B as v, u as E } from "./chunks/listbox.dd9883c5.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
r as BentoAvatar,
|
|
11
|
+
v as BentoListbox,
|
|
12
12
|
s as Calendar,
|
|
13
13
|
p as CalendarEvent,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
d as
|
|
14
|
+
i as CalendarFirstDayOfWeek,
|
|
15
|
+
f as ControlsGroup,
|
|
16
|
+
x as Copy,
|
|
17
|
+
n as CopyTooltipState,
|
|
18
|
+
d as ErrorMessage,
|
|
19
|
+
L as FieldLabel,
|
|
19
20
|
y as FixedScroller,
|
|
20
21
|
b as GridLayout,
|
|
21
22
|
B as GridLayoutContainerType,
|
|
22
|
-
e as ListboxOptionTag
|
|
23
|
+
e as ListboxOptionTag,
|
|
24
|
+
E as useMultiLevelItems
|
|
23
25
|
};
|
|
24
26
|
//# sourceMappingURL=internal.js.map
|
package/dist/link.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as g, computed as b, useAttrs as h, openBlock as a, createElementBlock as v, mergeProps as y, unref as e, createBlock as n, withCtx as i, renderSlot as r } from "vue";
|
|
2
2
|
import { RouterLink as T } from "vue-router";
|
|
3
|
-
import { B as k } from "./chunks/index.
|
|
3
|
+
import { B as k } from "./chunks/index.09f7f1b5.js";
|
|
4
4
|
import { _ as B } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
|
-
import "./assets/
|
|
5
|
+
import "./assets/index45.css";
|
|
6
6
|
var l = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.QUIET = "quiet", t))(l || {});
|
|
7
7
|
const E = ["href", "title", "target"], U = {
|
|
8
8
|
name: "bento-link",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, onMounted as i, onUnmounted as l, computed as s, openBlock as d, createElementBlock as r, normalizeClass as c } from "vue";
|
|
2
2
|
import { _ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
|
-
import "./assets/
|
|
3
|
+
import "./assets/index47.css";
|
|
4
4
|
var e = /* @__PURE__ */ ((a) => (a.START = "loading-start", a.END = "loading-end", a))(e || {});
|
|
5
5
|
const p = t({
|
|
6
6
|
name: "bento-loading-indicator",
|
package/dist/menu.js
CHANGED
package/dist/modal.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as S, onMounted as E, resolveComponent as v, openBlock as
|
|
2
|
-
import { f as T, b as B, e as
|
|
1
|
+
import { defineComponent as S, onMounted as E, resolveComponent as v, openBlock as p, createBlock as y, mergeProps as M, createSlots as $, withCtx as l, renderSlot as a, createVNode as R, toRefs as q, ref as P, computed as b, createTextVNode as I, toDisplayString as F, useAttrs as j, watch as G, resolveDynamicComponent as U } from "vue";
|
|
2
|
+
import { f as T, b as B, e as m, d as f, c as K, B as g, a as L } from "./chunks/base-modal.161ce8f0.js";
|
|
3
3
|
import { u as A } from "./chunks/use-has-slot.4d98bf29.js";
|
|
4
|
-
import { F as
|
|
4
|
+
import { F as W } from "./chunks/footer-actions.03015ba1.js";
|
|
5
5
|
import { _ as O } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
6
|
-
import { B as h } from "./chunks/button.
|
|
7
|
-
import { u as
|
|
8
|
-
import { BentoButtonActions as
|
|
9
|
-
const
|
|
6
|
+
import { B as h } from "./chunks/button.623a46d2.js";
|
|
7
|
+
import { u as Y } from "./chunks/i18n.6c402773.js";
|
|
8
|
+
import { BentoButtonActions as H } from "./button.js";
|
|
9
|
+
const _ = S({
|
|
10
10
|
name: "bento-modal-default",
|
|
11
|
-
components: { BaseModal: T, FooterActions:
|
|
11
|
+
components: { BaseModal: T, FooterActions: W },
|
|
12
12
|
props: {
|
|
13
13
|
/**
|
|
14
14
|
* Adds a cross icon on the right side of the alert
|
|
@@ -123,10 +123,10 @@ const Y = S({
|
|
|
123
123
|
default: !1
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
|
-
emits: [
|
|
126
|
+
emits: [m.CLOSE_MODAL],
|
|
127
127
|
setup(e, { slots: d, emit: u }) {
|
|
128
128
|
const n = A(d), i = () => {
|
|
129
|
-
u(
|
|
129
|
+
u(m.CLOSE_MODAL);
|
|
130
130
|
};
|
|
131
131
|
return E(() => {
|
|
132
132
|
if (!(n("content") || n("content-col-1") && n("content-col-2")))
|
|
@@ -138,9 +138,9 @@ const Y = S({
|
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
function
|
|
141
|
+
function J(e, d, u, n, i, o) {
|
|
142
142
|
const t = v("footer-actions"), s = v("base-modal");
|
|
143
|
-
return
|
|
143
|
+
return p(), y(s, M({ class: "b-modal-default" }, e.$attrs, {
|
|
144
144
|
actions: e.actions,
|
|
145
145
|
size: e.size,
|
|
146
146
|
"hide-close-button": e.hideCloseButton,
|
|
@@ -174,7 +174,7 @@ function H(e, d, u, n, i, o) {
|
|
|
174
174
|
name: "actions",
|
|
175
175
|
fn: l(() => [
|
|
176
176
|
a(e.$slots, "actions", {}, () => [
|
|
177
|
-
|
|
177
|
+
R(t, {
|
|
178
178
|
actions: e.actions,
|
|
179
179
|
"actions-label": e.actionsLabel,
|
|
180
180
|
"destructive-actions": e.destructiveActions
|
|
@@ -185,14 +185,14 @@ function H(e, d, u, n, i, o) {
|
|
|
185
185
|
} : void 0
|
|
186
186
|
]), 1040, ["actions", "size", "hide-close-button", "custom-padding", "is-dismissible", "is-open", "overflow-visible", "with-column-layout", "initially-open", "onCloseModal"]);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const Q = /* @__PURE__ */ O(_, [["render", J]]), w = {
|
|
189
189
|
"en-US": {
|
|
190
190
|
okButtonText: "OK"
|
|
191
191
|
}
|
|
192
|
-
},
|
|
192
|
+
}, X = S({
|
|
193
193
|
i18n: { messages: w },
|
|
194
194
|
name: "bento-modal-dialog",
|
|
195
|
-
components: { BaseModal: T, BentoButtonActions:
|
|
195
|
+
components: { BaseModal: T, BentoButtonActions: H },
|
|
196
196
|
props: {
|
|
197
197
|
/**
|
|
198
198
|
* Controls the modal's state from the outside. Set it to true to open the modal
|
|
@@ -262,57 +262,60 @@ const _ = /* @__PURE__ */ O(Y, [["render", H]]), w = {
|
|
|
262
262
|
default: !1
|
|
263
263
|
}
|
|
264
264
|
},
|
|
265
|
-
emits: [
|
|
265
|
+
emits: [m.CLOSE_MODAL],
|
|
266
266
|
setup(e, { slots: d, emit: u }) {
|
|
267
|
-
const { t: n } =
|
|
268
|
-
u(
|
|
269
|
-
},
|
|
270
|
-
s();
|
|
271
|
-
},
|
|
267
|
+
const { t: n } = Y({ messages: w }), i = A(d), { actions: o, dialogType: t } = q(e), s = P(null), k = () => {
|
|
268
|
+
u(m.CLOSE_MODAL);
|
|
269
|
+
}, C = (r) => {
|
|
270
|
+
s.value.internalModalActionClose(r);
|
|
271
|
+
}, N = b(() => [
|
|
272
272
|
{
|
|
273
273
|
title: n("okButtonText"),
|
|
274
|
-
event:
|
|
274
|
+
event: C,
|
|
275
275
|
variant: h.SECONDARY
|
|
276
276
|
}
|
|
277
|
-
]),
|
|
277
|
+
]), V = b(() => {
|
|
278
278
|
var D;
|
|
279
|
-
const
|
|
279
|
+
const r = {
|
|
280
280
|
title: "Cancel",
|
|
281
|
-
event:
|
|
282
|
-
},
|
|
283
|
-
return t.value ===
|
|
284
|
-
}),
|
|
281
|
+
event: C
|
|
282
|
+
}, c = (D = o == null ? void 0 : o.value) == null ? void 0 : D[0];
|
|
283
|
+
return t.value === f.DESTRUCTIVE ? c.critical = !0 : t.value === f.INFO && (c.variant = h.SECONDARY), [c, r];
|
|
284
|
+
}), z = b(() => ({
|
|
285
285
|
[`b-modal-dialog--${t.value}`]: t.value
|
|
286
286
|
}));
|
|
287
287
|
return E(() => {
|
|
288
|
-
var
|
|
288
|
+
var r, c;
|
|
289
289
|
if (!i("default") || !e.content && !i("content"))
|
|
290
290
|
throw new Error("Bento Modal Dialog requires header title and content");
|
|
291
|
-
if (((
|
|
291
|
+
if (((r = o == null ? void 0 : o.value) == null ? void 0 : r.length) > 1)
|
|
292
292
|
throw new Error("Not more than 1 action button may be provided to Modal Dialog");
|
|
293
|
-
if (t.value !==
|
|
293
|
+
if (t.value !== f.ACKNOWLEDGEMENT && !(o != null && o.value))
|
|
294
294
|
throw new Error(
|
|
295
295
|
"Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button"
|
|
296
296
|
);
|
|
297
|
-
if (t.value ===
|
|
297
|
+
if (t.value === f.ACKNOWLEDGEMENT && ((c = o == null ? void 0 : o.value) != null && c.length))
|
|
298
298
|
throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
|
|
299
299
|
}), {
|
|
300
|
+
// Refs
|
|
301
|
+
modalRef: s,
|
|
300
302
|
// Values
|
|
301
|
-
dialogActions:
|
|
302
|
-
acknowledgementDialogActions:
|
|
303
|
+
dialogActions: V,
|
|
304
|
+
acknowledgementDialogActions: N,
|
|
303
305
|
// Methods
|
|
304
|
-
onCloseModal:
|
|
305
|
-
onCloseActionButton:
|
|
306
|
+
onCloseModal: k,
|
|
307
|
+
onCloseActionButton: C,
|
|
306
308
|
// Styles
|
|
307
|
-
modalDialogConditionalClasses:
|
|
309
|
+
modalDialogConditionalClasses: z,
|
|
308
310
|
// Enums
|
|
309
|
-
BentoModalRole:
|
|
311
|
+
BentoModalRole: K
|
|
310
312
|
};
|
|
311
313
|
}
|
|
312
314
|
});
|
|
313
|
-
function
|
|
315
|
+
function Z(e, d, u, n, i, o) {
|
|
314
316
|
const t = v("bento-button-actions"), s = v("base-modal");
|
|
315
|
-
return
|
|
317
|
+
return p(), y(s, M({
|
|
318
|
+
ref: "modalRef",
|
|
316
319
|
class: ["b-modal-dialog", e.modalDialogConditionalClasses],
|
|
317
320
|
actions: e.actions,
|
|
318
321
|
"hide-close-button": !0,
|
|
@@ -327,14 +330,14 @@ function Q(e, d, u, n, i, o) {
|
|
|
327
330
|
a(e.$slots, "default")
|
|
328
331
|
]),
|
|
329
332
|
content: l(() => [
|
|
330
|
-
|
|
333
|
+
I(F(e.content), 1)
|
|
331
334
|
]),
|
|
332
335
|
actions: l(() => [
|
|
333
|
-
e.dialogType === "acknowledgement" ? (
|
|
336
|
+
e.dialogType === "acknowledgement" ? (p(), y(t, {
|
|
334
337
|
key: 0,
|
|
335
338
|
actions: e.acknowledgementDialogActions,
|
|
336
339
|
layout: "buttons-end"
|
|
337
|
-
}, null, 8, ["actions"])) : (
|
|
340
|
+
}, null, 8, ["actions"])) : (p(), y(t, {
|
|
338
341
|
key: 1,
|
|
339
342
|
actions: e.dialogActions,
|
|
340
343
|
layout: "buttons-end"
|
|
@@ -343,17 +346,17 @@ function Q(e, d, u, n, i, o) {
|
|
|
343
346
|
_: 3
|
|
344
347
|
}, 16, ["actions", "class", "is-dismissible", "is-open", "overflow-visible", "modal-role", "initially-open", "onCloseModal"]);
|
|
345
348
|
}
|
|
346
|
-
const
|
|
349
|
+
const x = /* @__PURE__ */ O(X, [["render", Z]]), ee = 500, oe = S({
|
|
347
350
|
name: "bento-modal",
|
|
348
|
-
components: { BentoModalDefault:
|
|
351
|
+
components: { BentoModalDefault: Q, BentoModalDialog: x },
|
|
349
352
|
props: {
|
|
350
353
|
/**
|
|
351
354
|
* Choose between default or dialog versions of modal
|
|
352
355
|
*/
|
|
353
356
|
variant: {
|
|
354
357
|
type: String,
|
|
355
|
-
default:
|
|
356
|
-
validator: (e) => Object.values(
|
|
358
|
+
default: g.DEFAULT,
|
|
359
|
+
validator: (e) => Object.values(g).includes(e)
|
|
357
360
|
},
|
|
358
361
|
// Shared Modal Default and Modal Default props
|
|
359
362
|
/**
|
|
@@ -471,8 +474,8 @@ const X = /* @__PURE__ */ O(J, [["render", Q]]), Z = 500, x = S({
|
|
|
471
474
|
*/
|
|
472
475
|
dialogType: {
|
|
473
476
|
type: String,
|
|
474
|
-
default:
|
|
475
|
-
validator: (e) => Object.values(
|
|
477
|
+
default: f.CONFIRMATION,
|
|
478
|
+
validator: (e) => Object.values(f).includes(e)
|
|
476
479
|
},
|
|
477
480
|
/**
|
|
478
481
|
* Text that will be displayed in the content section of Modal
|
|
@@ -482,10 +485,10 @@ const X = /* @__PURE__ */ O(J, [["render", Q]]), Z = 500, x = S({
|
|
|
482
485
|
default: null
|
|
483
486
|
}
|
|
484
487
|
},
|
|
485
|
-
emits: [
|
|
488
|
+
emits: [m.CLOSE_MODAL],
|
|
486
489
|
setup(e, { slots: d, emit: u }) {
|
|
487
|
-
const n =
|
|
488
|
-
() => e.variant ===
|
|
490
|
+
const n = j(), i = b(
|
|
491
|
+
() => e.variant === g.DEFAULT ? {
|
|
489
492
|
hideCloseButton: e.hideCloseButton,
|
|
490
493
|
size: e.size,
|
|
491
494
|
customPadding: e.customPadding,
|
|
@@ -504,13 +507,13 @@ const X = /* @__PURE__ */ O(J, [["render", Q]]), Z = 500, x = S({
|
|
|
504
507
|
...n
|
|
505
508
|
}
|
|
506
509
|
), o = () => {
|
|
507
|
-
u(
|
|
510
|
+
u(m.CLOSE_MODAL);
|
|
508
511
|
};
|
|
509
|
-
return
|
|
512
|
+
return G(
|
|
510
513
|
() => e.actions,
|
|
511
514
|
() => {
|
|
512
515
|
var t, s;
|
|
513
|
-
((s = (t = e.actions) == null ? void 0 : t[0]) == null ? void 0 : s.state) === "success" && setTimeout(o,
|
|
516
|
+
((s = (t = e.actions) == null ? void 0 : t[0]) == null ? void 0 : s.state) === "success" && setTimeout(o, ee);
|
|
514
517
|
}
|
|
515
518
|
), {
|
|
516
519
|
onCloseModal: o,
|
|
@@ -519,8 +522,8 @@ const X = /* @__PURE__ */ O(J, [["render", Q]]), Z = 500, x = S({
|
|
|
519
522
|
};
|
|
520
523
|
}
|
|
521
524
|
});
|
|
522
|
-
function
|
|
523
|
-
return
|
|
525
|
+
function te(e, d, u, n, i, o) {
|
|
526
|
+
return p(), y(U(e.variant), M({
|
|
524
527
|
class: "b-modal",
|
|
525
528
|
"is-open": e.isOpen,
|
|
526
529
|
actions: e.actions,
|
|
@@ -556,14 +559,14 @@ function ee(e, d, u, n, i, o) {
|
|
|
556
559
|
} : void 0
|
|
557
560
|
]), 1040, ["is-open", "actions", "initially-open", "onCloseModal"]);
|
|
558
561
|
}
|
|
559
|
-
const
|
|
562
|
+
const ce = /* @__PURE__ */ O(oe, [["render", te]]);
|
|
560
563
|
export {
|
|
561
|
-
|
|
564
|
+
ce as BentoModal,
|
|
562
565
|
B as BentoModalColumnLayoutVariant,
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
+
f as BentoModalDialogType,
|
|
567
|
+
m as BentoModalEvent,
|
|
568
|
+
K as BentoModalRole,
|
|
566
569
|
L as BentoModalSize,
|
|
567
|
-
|
|
570
|
+
g as BentoModalVariant
|
|
568
571
|
};
|
|
569
572
|
//# sourceMappingURL=modal.js.map
|
package/dist/modal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sources":["../../vue2/src/components/modal/components/modal-default/modal-default.vue","../../vue2/src/components/modal/components/modal-dialog/modal-dialog.vue","../../vue2/src/components/modal/modal.vue"],"sourcesContent":["<template>\n <base-modal\n class=\"b-modal-default\"\n v-bind=\"$attrs\"\n :actions=\"actions\"\n :size=\"size\"\n :hide-close-button=\"hideCloseButton\"\n :custom-padding=\"customPadding\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :overflow-visible=\"overflowVisible\"\n :with-column-layout=\"withColumnLayout\"\n :initially-open=\"initiallyOpen\"\n @close-modal=\"onCloseModal\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template #content><slot name=\"content\"></slot></template>\n\n <template v-if=\"actions\" #actions>\n <slot name=\"actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </slot>\n </template>\n </base-modal>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, onMounted, PropType } from 'vue';\n import { BentoModalColumnLayoutVariant, BentoModalEvent, BentoModalSize } from '@/components/modal/modal.types';\n import { BaseModal } from '@/components/modal/components/base-modal';\n import { useHasSlot } from '@/composables';\n import { BentoButtonActionsList } from '@/components/button';\n import { FooterActions } from '@/components/internal/footer-actions';\n\n export default defineComponent({\n name: 'bento-modal-default',\n components: { BaseModal, FooterActions },\n props: {\n /**\n * Adds a cross icon on the right side of the alert\n */\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n required: true,\n },\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: {\n type: Boolean,\n required: true,\n },\n /**\n * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown\n */\n overflowVisible: {\n type: Boolean,\n default: false,\n },\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: {\n type: Boolean,\n default: false,\n },\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n required: true,\n },\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: {\n type: String,\n default: null,\n },\n\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: {\n type: Boolean,\n default: false,\n },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n },\n\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n * But you may change the color of 1-st action to red with 'critial' key\n * Not more than 3 action buttons can be provided\n * Or 2 action buttons and 1 Label for them\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoModalEvent.CLOSE_MODAL],\n setup(props, { slots, emit }) {\n const hasSlot = useHasSlot(slots);\n\n const onCloseModal = () => {\n emit(BentoModalEvent.CLOSE_MODAL);\n };\n\n onMounted(() => {\n if (!(hasSlot('content') || (hasSlot('content-col-1') && hasSlot('content-col-2')))) {\n throw new Error('Bento Modal default variant requires content slot or column slots');\n }\n });\n\n return {\n // Methods\n onCloseModal,\n hasSlot,\n };\n },\n });\n</script>\n","<template>\n <base-modal\n class=\"b-modal-dialog\"\n :actions=\"actions\"\n :class=\"modalDialogConditionalClasses\"\n :hide-close-button=\"true\"\n size=\"small\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :overflow-visible=\"overflowVisible\"\n :modal-role=\"BentoModalRole.ALERT_DIALOG\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"$attrs\"\n @close-modal=\"onCloseModal\"\n >\n <template #default>\n <slot></slot>\n </template>\n <template #content>\n {{ content }}\n </template>\n\n <template #actions>\n <bento-button-actions\n v-if=\"dialogType === 'acknowledgement'\"\n :actions=\"acknowledgementDialogActions\"\n layout=\"buttons-end\"\n ></bento-button-actions>\n\n <bento-button-actions v-else :actions=\"dialogActions\" layout=\"buttons-end\"></bento-button-actions>\n </template>\n </base-modal>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onMounted, PropType, toRefs } from 'vue';\n import { BentoModalDialogType, BentoModalEvent, BentoModalRole } from '@/components/modal/modal.types';\n import { BaseModal } from '@/components/modal/components/base-modal';\n import { useHasSlot } from '@/composables';\n import {\n BentoButtonActionObject,\n BentoButtonActions,\n BentoButtonActionsList,\n BentoButtonVariant,\n } from '@/components/button';\n import { useI18n } from '@/utils/ts/i18n';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n export default defineComponent({\n i18n: { messages },\n name: 'bento-modal-dialog',\n components: { BaseModal, BentoButtonActions },\n props: {\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n required: true,\n },\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: {\n type: Boolean,\n required: true,\n },\n /**\n * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown\n */\n overflowVisible: {\n type: Boolean,\n default: false,\n },\n /**\n * Sets different action buttons styling and appearance\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n required: true,\n },\n /**\n * Text that is displayed in the content section of modal\n */\n content: {\n type: String,\n required: true,\n },\n /**\n * List of actions that will be used to render the buttons.\n * Only 1 action button is allowed for Modal Dialog\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoModalEvent.CLOSE_MODAL],\n setup(props, { slots, emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const { actions, dialogType } = toRefs(props);\n\n const onCloseModal = () => {\n emit(BentoModalEvent.CLOSE_MODAL);\n };\n\n const onCloseActionButton = () => {\n onCloseModal();\n };\n\n const acknowledgementDialogActions = computed(() => [\n {\n title: t('okButtonText') as string,\n event: onCloseActionButton,\n variant: BentoButtonVariant.SECONDARY,\n },\n ]);\n\n const dialogActions = computed(() => {\n const mandatoryCancelActionButton: BentoButtonActionObject = {\n title: 'Cancel',\n event: onCloseActionButton,\n };\n const updatedPassedActionsObject: BentoButtonActionObject = actions?.value?.[0];\n\n if (dialogType.value === BentoModalDialogType.DESTRUCTIVE) {\n updatedPassedActionsObject.critical = true;\n } else if (dialogType.value === BentoModalDialogType.INFO) {\n updatedPassedActionsObject.variant = BentoButtonVariant.SECONDARY;\n }\n\n return [updatedPassedActionsObject, mandatoryCancelActionButton];\n });\n\n const modalDialogConditionalClasses = computed(() => ({\n [`b-modal-dialog--${dialogType.value}`]: dialogType.value,\n }));\n\n onMounted(() => {\n if (!hasSlot('default') || (!props.content && !hasSlot('content'))) {\n throw new Error('Bento Modal Dialog requires header title and content');\n }\n\n if (actions?.value?.length > 1) {\n throw new Error('Not more than 1 action button may be provided to Modal Dialog');\n }\n\n if (dialogType.value !== BentoModalDialogType.ACKNOWLEDGEMENT && !actions?.value) {\n throw new Error(\n 'Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button'\n );\n }\n\n if (dialogType.value === BentoModalDialogType.ACKNOWLEDGEMENT && actions?.value?.length) {\n throw new Error('Acknowledgement Modal Dialog does not accept action buttons');\n }\n });\n\n return {\n // Values\n dialogActions,\n acknowledgementDialogActions,\n\n // Methods\n onCloseModal,\n onCloseActionButton,\n\n // Styles\n modalDialogConditionalClasses,\n\n // Enums\n BentoModalRole,\n };\n },\n });\n</script>\n","<template>\n <component\n :is=\"variant\"\n class=\"b-modal\"\n :is-open=\"isOpen\"\n :actions=\"actions\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"customProps\"\n @close-modal=\"onCloseModal\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n </component>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, useAttrs, watch } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n BentoModalDialogType,\n BentoModalEvent,\n BentoModalSize,\n BentoModalVariant,\n } from '@/components/modal/modal.types';\n import { BentoModalDefault, BentoModalDialog } from '@/components/modal/components';\n import { useHasSlot } from '@/composables';\n import { BentoButtonActionsList } from '@/components/button';\n\n const LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME = 500;\n\n /**\n * Modal is a window that appear over any other page content and focus user attention exclusively on one task or piece of information at the moment.\n *\n * @example\n * import { BentoModal } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModal },\n * template: `\n * <bento-modal :isOpen=\"true\">\n * Title of the Modal\n * <template #content>\n * Mandatory content slot\n * </template>\n * </bento-modal>\n * `\n * };\n */\n export default defineComponent({\n name: 'bento-modal',\n components: { BentoModalDefault, BentoModalDialog },\n props: {\n /**\n * Choose between default or dialog versions of modal\n */\n variant: {\n type: String as PropType<BentoModalVariant | `${BentoModalVariant}`>,\n default: BentoModalVariant.DEFAULT,\n validator: (value: BentoModalVariant) => Object.values(BentoModalVariant).includes(value),\n },\n\n // Shared Modal Default and Modal Default props\n /**\n * If set to true, it allows the modal to be closed without performing an action\n */\n isDismissible: {\n type: Boolean,\n default: null,\n },\n /**\n * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown\n */\n overflowVisible: {\n type: Boolean,\n default: false,\n },\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n // Specific to Modal Default props\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: {\n type: Boolean,\n default: false,\n },\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n default: BentoModalSize.SMALL,\n validator: (value: BentoModalSize) => Object.values(BentoModalSize).includes(value),\n },\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: {\n type: String,\n default: null,\n },\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: {\n type: Boolean,\n default: false,\n },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant | `${BentoModalColumnLayoutVariant}`>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n validator: (value: BentoModalColumnLayoutVariant) =>\n Object.values(BentoModalColumnLayoutVariant).includes(value),\n },\n\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n\n // Specific to Modal dialog props\n /**\n * Changes the visual styling of action buttons\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n default: BentoModalDialogType.CONFIRMATION,\n validator: (value: BentoModalDialogType) => Object.values(BentoModalDialogType).includes(value),\n },\n /**\n * Text that will be displayed in the content section of Modal\n */\n content: {\n type: String,\n default: null,\n },\n },\n emits: [BentoModalEvent.CLOSE_MODAL],\n setup(props, { slots, emit }) {\n const attrs = useAttrs();\n\n const customProps = computed(() =>\n props.variant === BentoModalVariant.DEFAULT\n ? {\n hideCloseButton: props.hideCloseButton,\n size: props.size,\n customPadding: props.customPadding,\n actionsLabel: props.actionsLabel,\n destructiveActions: props.destructiveActions,\n isDismissible: props.isDismissible ?? true,\n overflowVisible: props.overflowVisible,\n withColumnLayout: props.withColumnLayout,\n columnSize: props.columnsSize,\n ...attrs,\n }\n : {\n dialogType: props.dialogType,\n content: props.content,\n isDismissible: props.isDismissible ?? false,\n overflowVisible: props.overflowVisible,\n ...attrs,\n }\n );\n\n const onCloseModal = () => {\n emit(BentoModalEvent.CLOSE_MODAL);\n };\n\n // If the first button is a loading button then close the modal have 0.5 seconds\n // if the state is changed to 'success'.\n watch(\n () => props.actions,\n () => {\n if (props.actions?.[0]?.state === 'success') {\n setTimeout(onCloseModal, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME);\n }\n }\n );\n\n return {\n onCloseModal,\n customProps,\n hasSlot: useHasSlot(slots),\n };\n },\n });\n</script>\n"],"names":["_sfc_main$2","defineComponent","BaseModal","FooterActions","BentoModalColumnLayoutVariant","BentoModalEvent","props","slots","emit","hasSlot","useHasSlot","onCloseModal","onMounted","_component_base_modal","_resolveComponent","_openBlock","_createBlock","_mergeProps","_ctx","_createSlots","_withCtx","_renderSlot","_createVNode","_component_footer_actions","_sfc_main$1","messages","BentoButtonActions","t","useI18n","actions","dialogType","toRefs","onCloseActionButton","acknowledgementDialogActions","computed","BentoButtonVariant","dialogActions","mandatoryCancelActionButton","updatedPassedActionsObject","_a","BentoModalDialogType","modalDialogConditionalClasses","_b","BentoModalRole","_createTextVNode","_toDisplayString","_component_bento_button_actions","LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME","_sfc_main","BentoModalDefault","BentoModalDialog","BentoModalVariant","value","BentoModalSize","attrs","useAttrs","customProps","watch","_sfc_render","_cache","$props","$setup","$data","$options","_resolveDynamicComponent"],"mappings":";;;;;;;;AA0CI,MAAAA,IAAeC,EAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,YAAY,EAAE,WAAAC,GAAW,eAAAC,EAAc;AAAA,EACvC,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOH,QAAQ;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IACd;AAAA;AAAA;AAAA;AAAA,IAIA,eAAe;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,IACd;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAiB;AAAA,MACb,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAiB;AAAA,MACb,MAAM;AAAA,MACN,SAAS;AAA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A;AAAA;;;IAEY,IAAA;AAAA,cAA2B,eAAa,IAAA;AAAA,MAAC,MAAA;AAAA,MAAA,IAAAA,EAAA,MAAA;AAAA;;;IACzC,IAAA;AAAA,cAA2B,eAAa,IAAA;AAAA,MAAC,MAAA;AAAA,MAAA,IAAAA,EAAA,MAAA;AAAA;;;IACzC,IAAA;AAAA,cAAqB,SAAO,IAAA;AAAA,MAAC,MAAA;AAAA,MAAA,IAAAA,EAAA,MAAA;AAAA;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"modal.js","sources":["../../vue2/src/components/modal/components/modal-default/modal-default.vue","../../vue2/src/components/modal/components/modal-dialog/modal-dialog.vue","../../vue2/src/components/modal/modal.vue"],"sourcesContent":["<template>\n <base-modal\n class=\"b-modal-default\"\n v-bind=\"$attrs\"\n :actions=\"actions\"\n :size=\"size\"\n :hide-close-button=\"hideCloseButton\"\n :custom-padding=\"customPadding\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :overflow-visible=\"overflowVisible\"\n :with-column-layout=\"withColumnLayout\"\n :initially-open=\"initiallyOpen\"\n @close-modal=\"onCloseModal\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template #content><slot name=\"content\"></slot></template>\n\n <template v-if=\"actions\" #actions>\n <slot name=\"actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </slot>\n </template>\n </base-modal>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, onMounted, PropType } from 'vue';\n import { BentoModalColumnLayoutVariant, BentoModalEvent, BentoModalSize } from '@/components/modal/modal.types';\n import { BaseModal } from '@/components/modal/components/base-modal';\n import { useHasSlot } from '@/composables';\n import { BentoButtonActionsList } from '@/components/button';\n import { FooterActions } from '@/components/internal/footer-actions';\n\n export default defineComponent({\n name: 'bento-modal-default',\n components: { BaseModal, FooterActions },\n props: {\n /**\n * Adds a cross icon on the right side of the alert\n */\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n required: true,\n },\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: {\n type: Boolean,\n required: true,\n },\n /**\n * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown\n */\n overflowVisible: {\n type: Boolean,\n default: false,\n },\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: {\n type: Boolean,\n default: false,\n },\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n required: true,\n },\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: {\n type: String,\n default: null,\n },\n\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: {\n type: Boolean,\n default: false,\n },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n },\n\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n * But you may change the color of 1-st action to red with 'critial' key\n * Not more than 3 action buttons can be provided\n * Or 2 action buttons and 1 Label for them\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoModalEvent.CLOSE_MODAL],\n setup(props, { slots, emit }) {\n const hasSlot = useHasSlot(slots);\n\n const onCloseModal = () => {\n emit(BentoModalEvent.CLOSE_MODAL);\n };\n\n onMounted(() => {\n if (!(hasSlot('content') || (hasSlot('content-col-1') && hasSlot('content-col-2')))) {\n throw new Error('Bento Modal default variant requires content slot or column slots');\n }\n });\n\n return {\n // Methods\n onCloseModal,\n hasSlot,\n };\n },\n });\n</script>\n","<template>\n <base-modal\n ref=\"modalRef\"\n class=\"b-modal-dialog\"\n :actions=\"actions\"\n :class=\"modalDialogConditionalClasses\"\n :hide-close-button=\"true\"\n size=\"small\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :overflow-visible=\"overflowVisible\"\n :modal-role=\"BentoModalRole.ALERT_DIALOG\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"$attrs\"\n @close-modal=\"onCloseModal\"\n >\n <template #default>\n <slot></slot>\n </template>\n <template #content>\n {{ content }}\n </template>\n\n <template #actions>\n <bento-button-actions\n v-if=\"dialogType === 'acknowledgement'\"\n :actions=\"acknowledgementDialogActions\"\n layout=\"buttons-end\"\n />\n\n <bento-button-actions v-else :actions=\"dialogActions\" layout=\"buttons-end\" />\n </template>\n </base-modal>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onMounted, PropType, Ref, ref, toRefs } from 'vue';\n import { BentoModalDialogType, BentoModalEvent, BentoModalRole } from '@/components/modal/modal.types';\n import { BaseModal } from '@/components/modal/components/base-modal';\n import { useHasSlot } from '@/composables';\n import {\n BentoButtonActionObject,\n BentoButtonActions,\n BentoButtonActionsList,\n BentoButtonVariant,\n } from '@/components/button';\n import { useI18n } from '@/utils/ts/i18n';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n export default defineComponent({\n i18n: { messages },\n name: 'bento-modal-dialog',\n components: { BaseModal, BentoButtonActions },\n props: {\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n required: true,\n },\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: {\n type: Boolean,\n required: true,\n },\n /**\n * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown\n */\n overflowVisible: {\n type: Boolean,\n default: false,\n },\n /**\n * Sets different action buttons styling and appearance\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n required: true,\n },\n /**\n * Text that is displayed in the content section of modal\n */\n content: {\n type: String,\n required: true,\n },\n /**\n * List of actions that will be used to render the buttons.\n * Only 1 action button is allowed for Modal Dialog\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoModalEvent.CLOSE_MODAL],\n setup(props, { slots, emit }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const { actions, dialogType } = toRefs(props);\n const modalRef: Ref<InstanceType<typeof BaseModal>> = ref(null);\n\n const onCloseModal = () => {\n emit(BentoModalEvent.CLOSE_MODAL);\n };\n\n const onCloseActionButton = (event: Event) => {\n // Calls \"base-modal\" internal function to initialize the\n // \"close\" animation and trigger the \"close\" event.\n // This follows the same \"dialog\" pattern of calling \"dialog.close()\"\n modalRef.value.internalModalActionClose(event);\n };\n\n const acknowledgementDialogActions = computed(() => [\n {\n title: t('okButtonText') as string,\n event: onCloseActionButton,\n variant: BentoButtonVariant.SECONDARY,\n },\n ]);\n\n const dialogActions = computed(() => {\n const mandatoryCancelActionButton: BentoButtonActionObject = {\n title: 'Cancel',\n event: onCloseActionButton,\n };\n const updatedPassedActionsObject: BentoButtonActionObject = actions?.value?.[0];\n\n if (dialogType.value === BentoModalDialogType.DESTRUCTIVE) {\n updatedPassedActionsObject.critical = true;\n } else if (dialogType.value === BentoModalDialogType.INFO) {\n updatedPassedActionsObject.variant = BentoButtonVariant.SECONDARY;\n }\n\n return [updatedPassedActionsObject, mandatoryCancelActionButton];\n });\n\n const modalDialogConditionalClasses = computed(() => ({\n [`b-modal-dialog--${dialogType.value}`]: dialogType.value,\n }));\n\n onMounted(() => {\n if (!hasSlot('default') || (!props.content && !hasSlot('content'))) {\n throw new Error('Bento Modal Dialog requires header title and content');\n }\n\n if (actions?.value?.length > 1) {\n throw new Error('Not more than 1 action button may be provided to Modal Dialog');\n }\n\n if (dialogType.value !== BentoModalDialogType.ACKNOWLEDGEMENT && !actions?.value) {\n throw new Error(\n 'Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button'\n );\n }\n\n if (dialogType.value === BentoModalDialogType.ACKNOWLEDGEMENT && actions?.value?.length) {\n throw new Error('Acknowledgement Modal Dialog does not accept action buttons');\n }\n });\n\n return {\n // Refs\n modalRef,\n\n // Values\n dialogActions,\n acknowledgementDialogActions,\n\n // Methods\n onCloseModal,\n onCloseActionButton,\n\n // Styles\n modalDialogConditionalClasses,\n\n // Enums\n BentoModalRole,\n };\n },\n });\n</script>\n","<template>\n <component\n :is=\"variant\"\n class=\"b-modal\"\n :is-open=\"isOpen\"\n :actions=\"actions\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"customProps\"\n @close-modal=\"onCloseModal\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n </component>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, useAttrs, watch } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n BentoModalDialogType,\n BentoModalEvent,\n BentoModalSize,\n BentoModalVariant,\n } from '@/components/modal/modal.types';\n import { BentoModalDefault, BentoModalDialog } from '@/components/modal/components';\n import { useHasSlot } from '@/composables';\n import { BentoButtonActionsList } from '@/components/button';\n\n const LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME = 500;\n\n /**\n * Modal is a window that appear over any other page content and focus user attention exclusively on one task or piece of information at the moment.\n *\n * @example\n * import { BentoModal } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModal },\n * template: `\n * <bento-modal :isOpen=\"true\">\n * Title of the Modal\n * <template #content>\n * Mandatory content slot\n * </template>\n * </bento-modal>\n * `\n * };\n */\n export default defineComponent({\n name: 'bento-modal',\n components: { BentoModalDefault, BentoModalDialog },\n props: {\n /**\n * Choose between default or dialog versions of modal\n */\n variant: {\n type: String as PropType<BentoModalVariant | `${BentoModalVariant}`>,\n default: BentoModalVariant.DEFAULT,\n validator: (value: BentoModalVariant) => Object.values(BentoModalVariant).includes(value),\n },\n\n // Shared Modal Default and Modal Default props\n /**\n * If set to true, it allows the modal to be closed without performing an action\n */\n isDismissible: {\n type: Boolean,\n default: null,\n },\n /**\n * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown\n */\n overflowVisible: {\n type: Boolean,\n default: false,\n },\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n // Specific to Modal Default props\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: {\n type: Boolean,\n default: false,\n },\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n default: BentoModalSize.SMALL,\n validator: (value: BentoModalSize) => Object.values(BentoModalSize).includes(value),\n },\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: {\n type: String,\n default: null,\n },\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: {\n type: Boolean,\n default: false,\n },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant | `${BentoModalColumnLayoutVariant}`>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n validator: (value: BentoModalColumnLayoutVariant) =>\n Object.values(BentoModalColumnLayoutVariant).includes(value),\n },\n\n /**\n * Text label that is displayed left to the action buttons\n */\n actionsLabel: {\n type: String,\n default: null,\n },\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n\n // Specific to Modal dialog props\n /**\n * Changes the visual styling of action buttons\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n default: BentoModalDialogType.CONFIRMATION,\n validator: (value: BentoModalDialogType) => Object.values(BentoModalDialogType).includes(value),\n },\n /**\n * Text that will be displayed in the content section of Modal\n */\n content: {\n type: String,\n default: null,\n },\n },\n emits: [BentoModalEvent.CLOSE_MODAL],\n setup(props, { slots, emit }) {\n const attrs = useAttrs();\n\n const customProps = computed(() =>\n props.variant === BentoModalVariant.DEFAULT\n ? {\n hideCloseButton: props.hideCloseButton,\n size: props.size,\n customPadding: props.customPadding,\n actionsLabel: props.actionsLabel,\n destructiveActions: props.destructiveActions,\n isDismissible: props.isDismissible ?? true,\n overflowVisible: props.overflowVisible,\n withColumnLayout: props.withColumnLayout,\n columnSize: props.columnsSize,\n ...attrs,\n }\n : {\n dialogType: props.dialogType,\n content: props.content,\n isDismissible: props.isDismissible ?? false,\n overflowVisible: props.overflowVisible,\n ...attrs,\n }\n );\n\n const onCloseModal = () => {\n emit(BentoModalEvent.CLOSE_MODAL);\n };\n\n // If the first button is a loading button then close the modal have 0.5 seconds\n // if the state is changed to 'success'.\n watch(\n () => props.actions,\n () => {\n if (props.actions?.[0]?.state === 'success') {\n setTimeout(onCloseModal, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME);\n }\n }\n );\n\n return {\n onCloseModal,\n customProps,\n hasSlot: useHasSlot(slots),\n };\n },\n });\n</script>\n"],"names":["_sfc_main$2","defineComponent","BaseModal","FooterActions","BentoModalColumnLayoutVariant","BentoModalEvent","props","slots","emit","hasSlot","useHasSlot","onCloseModal","onMounted","_component_base_modal","_resolveComponent","_openBlock","_createBlock","_mergeProps","_ctx","_createSlots","_withCtx","_renderSlot","_createVNode","_component_footer_actions","_sfc_main$1","messages","BentoButtonActions","t","useI18n","actions","dialogType","toRefs","modalRef","ref","onCloseActionButton","event","acknowledgementDialogActions","computed","BentoButtonVariant","dialogActions","mandatoryCancelActionButton","updatedPassedActionsObject","_a","BentoModalDialogType","modalDialogConditionalClasses","_b","BentoModalRole","_createTextVNode","_toDisplayString","_component_bento_button_actions","LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME","_sfc_main","BentoModalDefault","BentoModalDialog","BentoModalVariant","value","BentoModalSize","attrs","useAttrs","customProps","watch","_sfc_render","_cache","$props","$setup","$data","$options","_resolveDynamicComponent"],"mappings":";;;;;;;;AA0CI,MAAAA,IAAeC,EAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,YAAY,EAAE,WAAAC,GAAW,eAAAC,EAAc;AAAA,EACvC,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOH,QAAQ;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IACd;AAAA;AAAA;AAAA;AAAA,IAIA,eAAe;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,IACd;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAiB;AAAA,MACb,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAiB;AAAA,MACb,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA;AAAA;AAAA;AAAA,IAIA,MAAM;AAAA,MACF,MAAM;AAAA,MACN,UAAU;AAAA,IACd;AAAA;AAAA;AAAA;AAAA,IAIA,eAAe;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA;AAAA;AAAA;AAAA,IAKA,kBAAkB;AAAA,MACd,MAAM;AAAA,MACN,SAAS;AAAA,IACb;AAAA;AAAA;AAAA;AAAA,IAKA,aAAa;AAAA,MACT,MAAM;AAAA,MACN,SAASC,EAA8B;AAAA,IAC3C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IA8BA,SAAS;AAAA,MACL,MAAM;AAAA,M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