@adyen/bento-vue2 1.11.0 → 1.12.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.
Files changed (221) hide show
  1. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  2. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +11 -0
  3. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +1 -0
  4. package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +38 -29
  6. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +43 -1306
  7. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +5 -11
  8. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +43 -48
  9. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/index.d.ts +2 -0
  10. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +43 -44
  11. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/index.d.ts +2 -0
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +43 -43
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/index.d.ts +2 -0
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +43 -43
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/index.d.ts +2 -0
  16. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +43 -48
  17. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/index.d.ts +2 -0
  18. package/dist/@types/packages/vue2/src/components/dropdown/composables/index.d.ts +2 -0
  19. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +2 -0
  20. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +28 -0
  21. package/dist/@types/packages/vue2/src/components/dropdown/composables/{useKeyboardNavigation.d.ts → use-keyboard-navigation.d.ts} +3 -13
  22. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-keyboard-navigation.types.d.ts +15 -0
  23. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +48 -1674
  24. package/dist/@types/packages/vue2/src/components/dropdown/index.d.ts +6 -5
  25. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -12
  26. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +1 -1
  27. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +1 -1
  28. package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +17 -11
  29. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +16 -60
  30. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +59 -49
  31. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +39 -291
  32. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +76 -83
  33. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +1 -1
  34. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +1 -1
  35. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +1 -1
  36. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +3 -3
  37. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +3 -3
  39. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +6 -0
  40. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +10 -0
  41. package/dist/@types/packages/vue2/src/templates/data-grid-template/index.d.ts +1 -0
  42. package/dist/accordion.js +2 -2
  43. package/dist/action-bar.js +5 -5
  44. package/dist/alert.js +3 -3
  45. package/dist/assets/base-modal.css +1 -1
  46. package/dist/assets/button.css +1 -1
  47. package/dist/assets/dropdown-default-textbox.css +1 -1
  48. package/dist/assets/dropdown.css +1 -1
  49. package/dist/assets/index10.css +1 -1
  50. package/dist/assets/index11.css +1 -1
  51. package/dist/assets/index12.css +1 -1
  52. package/dist/assets/index13.css +1 -1
  53. package/dist/assets/index14.css +1 -1
  54. package/dist/assets/index15.css +1 -1
  55. package/dist/assets/index16.css +1 -1
  56. package/dist/assets/index17.css +1 -1
  57. package/dist/assets/index18.css +1 -1
  58. package/dist/assets/index19.css +1 -1
  59. package/dist/assets/index2.css +1 -1
  60. package/dist/assets/index20.css +1 -1
  61. package/dist/assets/index21.css +1 -1
  62. package/dist/assets/index22.css +1 -1
  63. package/dist/assets/index23.css +1 -1
  64. package/dist/assets/index24.css +1 -1
  65. package/dist/assets/index25.css +1 -1
  66. package/dist/assets/index26.css +1 -1
  67. package/dist/assets/index27.css +1 -1
  68. package/dist/assets/index28.css +1 -1
  69. package/dist/assets/index29.css +1 -1
  70. package/dist/assets/index3.css +1 -1
  71. package/dist/assets/index30.css +1 -1
  72. package/dist/assets/index31.css +1 -1
  73. package/dist/assets/index32.css +1 -1
  74. package/dist/assets/index33.css +1 -1
  75. package/dist/assets/index34.css +1 -1
  76. package/dist/assets/index35.css +1 -1
  77. package/dist/assets/index36.css +1 -1
  78. package/dist/assets/index37.css +1 -1
  79. package/dist/assets/index38.css +1 -1
  80. package/dist/assets/index39.css +1 -1
  81. package/dist/assets/index4.css +1 -1
  82. package/dist/assets/index40.css +1 -1
  83. package/dist/assets/index41.css +1 -1
  84. package/dist/assets/index42.css +1 -1
  85. package/dist/assets/index43.css +1 -1
  86. package/dist/assets/index44.css +1 -1
  87. package/dist/assets/index45.css +1 -1
  88. package/dist/assets/index46.css +1 -1
  89. package/dist/assets/index5.css +1 -1
  90. package/dist/assets/index6.css +1 -1
  91. package/dist/assets/index7.css +1 -1
  92. package/dist/assets/index8.css +1 -1
  93. package/dist/assets/index9.css +1 -1
  94. package/dist/avatar-image.js +1 -1
  95. package/dist/button.js +5 -5
  96. package/dist/card.js +15 -15
  97. package/dist/card.js.map +1 -1
  98. package/dist/checkbox.js +6 -6
  99. package/dist/chunks/{base-button.bd61ab14.js → base-button.1f07b7c1.js} +2 -2
  100. package/dist/chunks/{base-button.bd61ab14.js.map → base-button.1f07b7c1.js.map} +1 -1
  101. package/dist/chunks/base-modal.9d63bdaf.js +200 -0
  102. package/dist/chunks/base-modal.9d63bdaf.js.map +1 -0
  103. package/dist/chunks/{button-actions-with-menu.767344df.js → button-actions-with-menu.4c5091f4.js} +3 -3
  104. package/dist/chunks/{button-actions-with-menu.767344df.js.map → button-actions-with-menu.4c5091f4.js.map} +1 -1
  105. package/dist/chunks/{button.bb5b4909.js → button.133f145e.js} +2 -2
  106. package/dist/chunks/{button.bb5b4909.js.map → button.133f145e.js.map} +1 -1
  107. package/dist/chunks/{calendar.4ab3c2dc.js → calendar.9a8605d1.js} +8 -7
  108. package/dist/chunks/{calendar.4ab3c2dc.js.map → calendar.9a8605d1.js.map} +1 -1
  109. package/dist/chunks/{checkbox.c684c20a.js → checkbox.d8b810c7.js} +3 -3
  110. package/dist/chunks/{checkbox.c684c20a.js.map → checkbox.d8b810c7.js.map} +1 -1
  111. package/dist/chunks/{controls-group.d25f5044.js → controls-group.bf152dea.js} +3 -3
  112. package/dist/chunks/{controls-group.d25f5044.js.map → controls-group.bf152dea.js.map} +1 -1
  113. package/dist/chunks/{copy.36c058e9.js → copy.68a7d416.js} +4 -4
  114. package/dist/chunks/{copy.36c058e9.js.map → copy.68a7d416.js.map} +1 -1
  115. package/dist/chunks/{dropdown-default-textbox.1cba89ea.js → dropdown-default-textbox.c595fd31.js} +129 -148
  116. package/dist/chunks/dropdown-default-textbox.c595fd31.js.map +1 -0
  117. package/dist/chunks/dropdown.eaee22a3.js +797 -0
  118. package/dist/chunks/dropdown.eaee22a3.js.map +1 -0
  119. package/dist/chunks/{field-label.a0c54b7d.js → field-label.66f52c8f.js} +2 -2
  120. package/dist/chunks/{field-label.a0c54b7d.js.map → field-label.66f52c8f.js.map} +1 -1
  121. package/dist/chunks/{fixed-scroller.5c90f692.js → fixed-scroller.01fc96f7.js} +2 -2
  122. package/dist/chunks/{fixed-scroller.5c90f692.js.map → fixed-scroller.01fc96f7.js.map} +1 -1
  123. package/dist/chunks/{footer-actions.b14cfca8.js → footer-actions.38e99891.js} +3 -3
  124. package/dist/chunks/{footer-actions.b14cfca8.js.map → footer-actions.38e99891.js.map} +1 -1
  125. package/dist/chunks/{index.aaedd8f9.js → index.14758ff7.js} +3 -3
  126. package/dist/chunks/{index.aaedd8f9.js.map → index.14758ff7.js.map} +1 -1
  127. package/dist/chunks/index.18773b0b.js +637 -0
  128. package/dist/chunks/index.18773b0b.js.map +1 -0
  129. package/dist/chunks/{index.7d2ea1de.js → index.2cfe4a09.js} +2 -2
  130. package/dist/chunks/{index.7d2ea1de.js.map → index.2cfe4a09.js.map} +1 -1
  131. package/dist/chunks/{index.1e8c900a.js → index.3b7d40b7.js} +2 -2
  132. package/dist/chunks/{index.1e8c900a.js.map → index.3b7d40b7.js.map} +1 -1
  133. package/dist/chunks/{index.f18f79eb.js → index.45aa17fc.js} +5 -5
  134. package/dist/chunks/{index.f18f79eb.js.map → index.45aa17fc.js.map} +1 -1
  135. package/dist/chunks/{index.b0a89960.js → index.99a2184a.js} +2 -2
  136. package/dist/chunks/{index.b0a89960.js.map → index.99a2184a.js.map} +1 -1
  137. package/dist/chunks/{index.f2223abb.js → index.9b669c12.js} +6 -6
  138. package/dist/chunks/{index.f2223abb.js.map → index.9b669c12.js.map} +1 -1
  139. package/dist/chunks/{index.720f0cbf.js → index.b38a191d.js} +13 -12
  140. package/dist/chunks/{index.720f0cbf.js.map → index.b38a191d.js.map} +1 -1
  141. package/dist/chunks/{index.58282364.js → index.d90c5838.js} +3 -3
  142. package/dist/chunks/{index.58282364.js.map → index.d90c5838.js.map} +1 -1
  143. package/dist/chunks/{index.75f0e99f.js → index.eb527b75.js} +6 -6
  144. package/dist/chunks/{index.75f0e99f.js.map → index.eb527b75.js.map} +1 -1
  145. package/dist/chunks/{listbox-option-tag.9103c011.js → listbox-option-tag.168c794c.js} +3 -3
  146. package/dist/chunks/{listbox-option-tag.9103c011.js.map → listbox-option-tag.168c794c.js.map} +1 -1
  147. package/dist/chunks/{listbox.7cf6d6b4.js → listbox.23c6b393.js} +6 -6
  148. package/dist/chunks/{listbox.7cf6d6b4.js.map → listbox.23c6b393.js.map} +1 -1
  149. package/dist/chunks/{loading-button.fb025a2e.js → loading-button.44d698b9.js} +2 -2
  150. package/dist/chunks/{loading-button.fb025a2e.js.map → loading-button.44d698b9.js.map} +1 -1
  151. package/dist/chunks/{tooltip.f48beb54.js → tooltip.f91b2040.js} +3 -3
  152. package/dist/chunks/{tooltip.f48beb54.js.map → tooltip.f91b2040.js.map} +1 -1
  153. package/dist/chunks/{useCountryItems.6b7985bf.js → use-country-items.6b7985bf.js} +1 -1
  154. package/dist/chunks/use-country-items.6b7985bf.js.map +1 -0
  155. package/dist/code-snippet.js +7 -7
  156. package/dist/code-snippet.js.map +1 -1
  157. package/dist/country.js +2 -2
  158. package/dist/currency.js +1 -1
  159. package/dist/data-grid.js +460 -451
  160. package/dist/data-grid.js.map +1 -1
  161. package/dist/date-picker.js +38 -38
  162. package/dist/date-picker.js.map +1 -1
  163. package/dist/date-range-picker.js +2 -2
  164. package/dist/date.js +1 -1
  165. package/dist/divider.js +1 -1
  166. package/dist/dropdown.js +102 -132
  167. package/dist/dropdown.js.map +1 -1
  168. package/dist/empty-state.js +3 -3
  169. package/dist/filter-bar.js +54 -53
  170. package/dist/filter-bar.js.map +1 -1
  171. package/dist/focus-trap.js +1 -1
  172. package/dist/form-layout.js +2 -2
  173. package/dist/header.js +3 -3
  174. package/dist/index.js +218 -215
  175. package/dist/info-icon.js +3 -3
  176. package/dist/input-field.js +4 -4
  177. package/dist/internal.js +7 -7
  178. package/dist/link.js +38 -28
  179. package/dist/link.js.map +1 -1
  180. package/dist/loading-indicator.js +1 -1
  181. package/dist/menu.js +1 -1
  182. package/dist/modal.js +209 -302
  183. package/dist/modal.js.map +1 -1
  184. package/dist/pagination.js +88 -88
  185. package/dist/pagination.js.map +1 -1
  186. package/dist/payment-method.js +2 -2
  187. package/dist/popover.js +1 -1
  188. package/dist/popper-container.js +1 -1
  189. package/dist/radio-group.js +4 -4
  190. package/dist/search-bar.js +2 -2
  191. package/dist/secondary-nav.js +2 -2
  192. package/dist/segmented-control.js +3 -3
  193. package/dist/sidepanel.js +5 -5
  194. package/dist/status.js +2 -2
  195. package/dist/stepper.js +3 -3
  196. package/dist/structured-list.js +1 -1
  197. package/dist/summary-grid.js +3 -3
  198. package/dist/tabs.js +4 -4
  199. package/dist/tabs.js.map +1 -1
  200. package/dist/tag.js +3 -3
  201. package/dist/textarea.js +4 -4
  202. package/dist/timeline.js +5 -5
  203. package/dist/toast.js +3 -3
  204. package/dist/toggle.js +2 -2
  205. package/dist/tutorial.js +5 -5
  206. package/dist/typography.js +1 -1
  207. package/dist/web-types.json +3739 -3589
  208. package/package.json +2 -2
  209. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.d.ts +0 -2
  210. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +0 -12
  211. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDropdownSearchFilter.d.ts +0 -3
  212. package/dist/chunks/base-modal.5640a66a.js +0 -222
  213. package/dist/chunks/base-modal.5640a66a.js.map +0 -1
  214. package/dist/chunks/dropdown-default-textbox.1cba89ea.js.map +0 -1
  215. package/dist/chunks/dropdown.4152cc00.js +0 -887
  216. package/dist/chunks/dropdown.4152cc00.js.map +0 -1
  217. package/dist/chunks/index.179d485c.js +0 -635
  218. package/dist/chunks/index.179d485c.js.map +0 -1
  219. package/dist/chunks/useCountryItems.6b7985bf.js.map +0 -1
  220. /package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/{useDropdownOptionsListbox.d.ts → use-dropdown-options-listbox.d.ts} +0 -0
  221. /package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/composables/{useCountryItems.d.ts → use-country-items.d.ts} +0 -0
package/dist/modal.js CHANGED
@@ -1,74 +1,17 @@
1
- import { defineComponent as _, onMounted as C, toRefs as h, ref as E, computed as f, useAttrs as w, watch as x } from "vue";
2
- import { f as A, b as p, e as c, d as r, c as T, B as y, a as B } from "./chunks/base-modal.5640a66a.js";
3
- import { u as v } from "./chunks/use-has-slot.fbeb19ec.js";
4
- import { F as k } from "./chunks/footer-actions.b14cfca8.js";
5
- import { n as b } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
6
- import { B as S } from "./chunks/button.bb5b4909.js";
7
- import { u as R } from "./chunks/i18n.eb5b985b.js";
8
- import { BentoButtonActions as N } from "./button.js";
9
- const z = _({
10
- name: "bento-modal-default",
11
- components: { BaseModal: A, FooterActions: k },
1
+ import { defineComponent as d, useSlots as b, onMounted as h, toRefs as O, ref as L, computed as _, useAttrs as x, watch as T } from "vue";
2
+ import { b as v, f as M, d as c, c as k, a as C, B as y } from "./chunks/base-modal.9d63bdaf.js";
3
+ import { e as ft } from "./chunks/base-modal.9d63bdaf.js";
4
+ import { u as B } from "./chunks/use-has-slot.fbeb19ec.js";
5
+ import { F as R } from "./chunks/footer-actions.38e99891.js";
6
+ import { n as g } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
7
+ import { B as A } from "./chunks/button.133f145e.js";
8
+ import { u as N } from "./chunks/i18n.eb5b985b.js";
9
+ import { BentoButtonActions as z } from "./button.js";
10
+ const V = d({
11
+ name: "bento-modal-default"
12
+ }), $ = /* @__PURE__ */ d({
13
+ ...V,
12
14
  props: {
13
- /**
14
- * Adds a cross icon on the right side of the alert
15
- */
16
- /**
17
- * Controls the modal's state from the outside. Set it to true to open the modal
18
- */
19
- isOpen: {
20
- type: Boolean,
21
- required: !0
22
- },
23
- /**
24
- * If set to true, it allows the modal to be closed by clicking outside of it
25
- */
26
- isDismissible: {
27
- type: Boolean,
28
- required: !0
29
- },
30
- /**
31
- * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
32
- */
33
- overflowVisible: {
34
- type: Boolean,
35
- default: !1
36
- },
37
- /**
38
- * Hides a cross icon on the right side of the title
39
- */
40
- hideCloseButton: {
41
- type: Boolean,
42
- default: !1
43
- },
44
- /**
45
- * Sets the width of the modal
46
- */
47
- size: {
48
- type: String,
49
- required: !0
50
- },
51
- /**
52
- * If provided, manages the padding of the whole modal container
53
- */
54
- customPadding: {
55
- type: String,
56
- default: null
57
- },
58
- /**
59
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
60
- */
61
- withColumnLayout: {
62
- type: Boolean,
63
- default: !1
64
- },
65
- /**
66
- * 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.
67
- */
68
- columnsSize: {
69
- type: String,
70
- default: p.SMALLER
71
- },
72
15
  /**
73
16
  * List of actions that will be used to render the buttons.
74
17
  * First element in the list will be rendered as "primary".
@@ -104,43 +47,68 @@ const z = _({
104
47
  /**
105
48
  * Text label that is displayed left to the action buttons
106
49
  */
107
- actionsLabel: {
50
+ actionsLabel: { type: String, default: null },
51
+ /**
52
+ * If provided, manages the padding of the whole modal container
53
+ */
54
+ customPadding: { type: String, default: null },
55
+ /**
56
+ * 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.
57
+ */
58
+ columnsSize: {
108
59
  type: String,
109
- default: null
60
+ default: v.SMALLER
110
61
  },
111
62
  /**
112
63
  * If passed - sets first button color to red
113
64
  */
114
- destructiveActions: {
115
- type: Boolean,
116
- default: !1
117
- },
65
+ destructiveActions: { type: Boolean, default: !1 },
66
+ /**
67
+ * Hides a cross icon on the right side of the title
68
+ */
69
+ hideCloseButton: { type: Boolean, default: !1 },
118
70
  /**
119
71
  * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
120
72
  */
121
- initiallyOpen: {
122
- type: Boolean,
123
- default: !1
124
- }
73
+ initiallyOpen: { type: Boolean, default: !1 },
74
+ /**
75
+ * If set to true, it allows the modal to be closed by clicking outside of it
76
+ */
77
+ isDismissible: { type: Boolean, required: !0 },
78
+ /**
79
+ * Controls the modal's state from the outside. Set it to true to open the modal
80
+ */
81
+ isOpen: { type: Boolean, required: !0 },
82
+ /**
83
+ * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
84
+ */
85
+ overflowVisible: { type: Boolean, default: !1 },
86
+ /**
87
+ * Sets the width of the modal
88
+ */
89
+ size: {
90
+ type: String,
91
+ required: !0
92
+ },
93
+ /**
94
+ * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
95
+ */
96
+ withColumnLayout: { type: Boolean, default: !1 }
125
97
  },
126
- emits: [c.CLOSE_MODAL],
127
- setup(e, { slots: t, emit: n }) {
128
- const l = v(t), s = () => {
129
- n(c.CLOSE_MODAL);
98
+ emits: ["close-modal"],
99
+ setup(l, { emit: t }) {
100
+ const e = b(), o = B(e), a = () => {
101
+ t("close-modal");
130
102
  };
131
- return C(() => {
132
- if (!(l("content") || l("content-col-1") && l("content-col-2")))
103
+ return h(() => {
104
+ if (!(o("content") || o("content-col-1") && o("content-col-2")))
133
105
  throw new Error("Bento Modal default variant requires content slot or column slots");
134
- }), {
135
- // Methods
136
- onCloseModal: s,
137
- hasSlot: l
138
- };
106
+ }), { __sfc: !0, slots: e, hasSlot: o, emit: t, onCloseModal: a, BaseModal: M, FooterActions: R };
139
107
  }
140
108
  });
141
- var V = function() {
142
- var t = this, n = t._self._c;
143
- return t._self._setupProxy, n("base-modal", t._b({ staticClass: "b-modal-default", attrs: { actions: t.actions, size: t.size, "hide-close-button": t.hideCloseButton, "custom-padding": t.customPadding, "is-dismissible": t.isDismissible, "is-open": t.isOpen, "overflow-visible": t.overflowVisible, "with-column-layout": t.withColumnLayout, "initially-open": t.initiallyOpen }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([t.hasSlot("default") ? { key: "default", fn: function() {
109
+ var F = function() {
110
+ var t = this, e = t._self._c, o = t._self._setupProxy;
111
+ return e(o.BaseModal, t._b({ staticClass: "b-modal-default", attrs: { actions: t.actions, size: t.size, "hide-close-button": t.hideCloseButton, "custom-padding": t.customPadding, "is-dismissible": t.isDismissible, "is-open": t.isOpen, "overflow-visible": t.overflowVisible, "with-column-layout": t.withColumnLayout, "initially-open": t.initiallyOpen }, on: { "close-modal": o.onCloseModal }, scopedSlots: t._u([o.hasSlot("default") ? { key: "default", fn: function() {
144
112
  return [t._t("default")];
145
113
  }, proxy: !0 } : null, { key: "content-col-1", fn: function() {
146
114
  return [t._t("content-col-1")];
@@ -150,12 +118,12 @@ var V = function() {
150
118
  return [t._t("content")];
151
119
  }, proxy: !0 }, t.actions ? { key: "actions", fn: function() {
152
120
  return [t._t("actions", function() {
153
- return [n("footer-actions", { attrs: { actions: t.actions, "actions-label": t.actionsLabel, "destructive-actions": t.destructiveActions } })];
121
+ return [e(o.FooterActions, { attrs: { actions: t.actions, "actions-label": t.actionsLabel, "destructive-actions": t.destructiveActions } })];
154
122
  })];
155
123
  }, proxy: !0 } : null], null, !0) }, "base-modal", t.$attrs, !1));
156
- }, P = [], $ = /* @__PURE__ */ b(
157
- z,
158
- V,
124
+ }, P = [], q = /* @__PURE__ */ g(
125
+ $,
126
+ F,
159
127
  P,
160
128
  !1,
161
129
  null,
@@ -163,50 +131,16 @@ var V = function() {
163
131
  null,
164
132
  null
165
133
  );
166
- const F = $.exports, q = {
134
+ const I = q.exports, j = {
167
135
  "en-US": {
168
136
  okButtonText: "OK"
169
137
  }
170
- }, I = _({
171
- i18n: { messages: q },
172
- name: "bento-modal-dialog",
173
- components: { BaseModal: A, BentoButtonActions: N },
138
+ }, G = d({
139
+ i18n: { messages: j },
140
+ name: "bento-modal-dialog"
141
+ }), U = /* @__PURE__ */ d({
142
+ ...G,
174
143
  props: {
175
- /**
176
- * Controls the modal's state from the outside. Set it to true to open the modal
177
- */
178
- isOpen: {
179
- type: Boolean,
180
- required: !0
181
- },
182
- /**
183
- * If set to true, it allows the modal to be closed by clicking outside of it
184
- */
185
- isDismissible: {
186
- type: Boolean,
187
- required: !0
188
- },
189
- /**
190
- * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
191
- */
192
- overflowVisible: {
193
- type: Boolean,
194
- default: !1
195
- },
196
- /**
197
- * Sets different action buttons styling and appearance
198
- */
199
- dialogType: {
200
- type: String,
201
- required: !0
202
- },
203
- /**
204
- * Text that is displayed in the content section of modal
205
- */
206
- content: {
207
- type: String,
208
- required: !0
209
- },
210
144
  /**
211
145
  * List of actions that will be used to render the buttons.
212
146
  * Only 1 action button is allowed for Modal Dialog
@@ -232,124 +166,94 @@ const F = $.exports, q = {
232
166
  type: Array,
233
167
  default: null
234
168
  },
169
+ /**
170
+ * Text that is displayed in the content section of modal
171
+ */
172
+ content: { type: String, required: !0 },
173
+ /**
174
+ * Sets different action buttons styling and appearance
175
+ */
176
+ dialogType: {
177
+ type: String,
178
+ required: !0
179
+ },
235
180
  /**
236
181
  * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
237
182
  */
238
- initiallyOpen: {
239
- type: Boolean,
240
- default: !1
241
- }
183
+ initiallyOpen: { type: Boolean, default: !1 },
184
+ /**
185
+ * If set to true, it allows the modal to be closed by clicking outside of it
186
+ */
187
+ isDismissible: { type: Boolean, required: !0 },
188
+ /**
189
+ * Controls the modal's state from the outside. Set it to true to open the modal
190
+ */
191
+ isOpen: { type: Boolean, required: !0 },
192
+ /**
193
+ * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
194
+ */
195
+ overflowVisible: { type: Boolean, default: !1 }
242
196
  },
243
- emits: [c.CLOSE_MODAL],
244
- setup(e, { slots: t, emit: n }) {
245
- const { t: l } = R(), s = v(t), { actions: o, dialogType: a } = h(e), d = E(null), O = () => {
246
- n(c.CLOSE_MODAL);
247
- }, m = (i) => {
248
- d.value.internalModalActionClose(i);
249
- }, L = f(() => [
197
+ emits: ["close-modal"],
198
+ setup(l, { emit: t }) {
199
+ const e = l, { t: o } = N(), a = b(), f = B(a), { actions: n, dialogType: s } = O(e), p = L(null), m = () => {
200
+ t("close-modal");
201
+ }, i = (r) => {
202
+ p.value.internalModalActionClose(r);
203
+ }, w = _(() => [
250
204
  {
251
- title: l("okButtonText"),
252
- event: m,
253
- variant: S.SECONDARY
205
+ title: o("okButtonText"),
206
+ event: i,
207
+ variant: A.SECONDARY
254
208
  }
255
- ]), M = f(() => {
256
- var g;
257
- const i = {
209
+ ]), D = _(() => {
210
+ var S;
211
+ const r = {
258
212
  title: "Cancel",
259
- event: m
260
- }, u = (g = o == null ? void 0 : o.value) == null ? void 0 : g[0];
261
- return a.value === r.DESTRUCTIVE ? u.critical = !0 : a.value === r.INFO && (u.variant = S.SECONDARY), [u, i];
262
- }), D = f(() => ({
263
- [`b-modal-dialog--${a.value}`]: a.value
213
+ event: i
214
+ }, u = (S = n == null ? void 0 : n.value) == null ? void 0 : S[0];
215
+ return s.value === c.DESTRUCTIVE ? u.critical = !0 : s.value === c.INFO && (u.variant = A.SECONDARY), [u, r];
216
+ }), E = _(() => ({
217
+ [`b-modal-dialog--${s.value}`]: s.value
264
218
  }));
265
- return C(() => {
266
- var i, u;
267
- if (!s("default") || !e.content && !s("content"))
219
+ return h(() => {
220
+ var r, u;
221
+ if (!f("default") || !e.content && !f("content"))
268
222
  throw new Error("Bento Modal Dialog requires header title and content");
269
- if (((i = o == null ? void 0 : o.value) == null ? void 0 : i.length) > 1)
223
+ if (((r = n == null ? void 0 : n.value) == null ? void 0 : r.length) > 1)
270
224
  throw new Error("Not more than 1 action button may be provided to Modal Dialog");
271
- if (a.value !== r.ACKNOWLEDGEMENT && !(o != null && o.value))
272
- throw new Error(
273
- "Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button"
274
- );
275
- if (a.value === r.ACKNOWLEDGEMENT && ((u = o == null ? void 0 : o.value) != null && u.length))
225
+ if (s.value !== c.ACKNOWLEDGEMENT && !(n != null && n.value))
226
+ throw new Error("Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button");
227
+ if (s.value === c.ACKNOWLEDGEMENT && ((u = n == null ? void 0 : n.value) != null && u.length))
276
228
  throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
277
- }), {
278
- // Refs
279
- modalRef: d,
280
- // Values
281
- dialogActions: M,
282
- acknowledgementDialogActions: L,
283
- // Methods
284
- onCloseModal: O,
285
- onCloseActionButton: m,
286
- // Styles
287
- modalDialogConditionalClasses: D,
288
- // Enums
289
- BentoModalRole: T
290
- };
229
+ }), { __sfc: !0, emit: t, props: e, t: o, slots: a, hasSlot: f, actions: n, dialogType: s, modalRef: p, onCloseModal: m, onCloseActionButton: i, acknowledgementDialogActions: w, dialogActions: D, modalDialogConditionalClasses: E, BentoModalRole: k, BaseModal: M, BentoButtonActions: z };
291
230
  }
292
231
  });
293
- var j = function() {
294
- var t = this, n = t._self._c;
295
- return t._self._setupProxy, n("base-modal", t._b({ ref: "modalRef", staticClass: "b-modal-dialog", class: t.modalDialogConditionalClasses, attrs: { actions: t.actions, "hide-close-button": !0, size: "small", "is-dismissible": t.isDismissible, "is-open": t.isOpen, "overflow-visible": t.overflowVisible, "modal-role": t.BentoModalRole.ALERT_DIALOG, "initially-open": t.initiallyOpen }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([{ key: "default", fn: function() {
232
+ var K = function() {
233
+ var t = this, e = t._self._c, o = t._self._setupProxy;
234
+ return e(o.BaseModal, t._b({ ref: "modalRef", staticClass: "b-modal-dialog", class: o.modalDialogConditionalClasses, attrs: { actions: o.actions, "hide-close-button": !0, size: "small", "is-dismissible": t.isDismissible, "is-open": t.isOpen, "overflow-visible": t.overflowVisible, "modal-role": o.BentoModalRole.ALERT_DIALOG, "initially-open": t.initiallyOpen }, on: { "close-modal": o.onCloseModal }, scopedSlots: t._u([{ key: "default", fn: function() {
296
235
  return [t._t("default")];
297
236
  }, proxy: !0 }, { key: "content", fn: function() {
298
237
  return [t._v(" " + t._s(t.content) + " ")];
299
238
  }, proxy: !0 }, { key: "actions", fn: function() {
300
- return [t.dialogType === "acknowledgement" ? n("bento-button-actions", { attrs: { actions: t.acknowledgementDialogActions, layout: "buttons-end" } }) : n("bento-button-actions", { attrs: { actions: t.dialogActions, layout: "buttons-end" } })];
239
+ return [o.dialogType === "acknowledgement" ? e(o.BentoButtonActions, { attrs: { actions: o.acknowledgementDialogActions, layout: "buttons-end" } }) : e(o.BentoButtonActions, { attrs: { actions: o.dialogActions, layout: "buttons-end" } })];
301
240
  }, proxy: !0 }], null, !0) }, "base-modal", t.$attrs, !1));
302
- }, G = [], U = /* @__PURE__ */ b(
303
- I,
304
- j,
305
- G,
241
+ }, W = [], Y = /* @__PURE__ */ g(
242
+ U,
243
+ K,
244
+ W,
306
245
  !1,
307
246
  null,
308
247
  null,
309
248
  null,
310
249
  null
311
250
  );
312
- const K = U.exports, W = 500, Y = _({
313
- name: "bento-modal",
314
- components: { BentoModalDefault: F, BentoModalDialog: K },
251
+ const H = Y.exports, J = d({
252
+ components: { BentoModalDefault: I, BentoModalDialog: H }
253
+ }), Q = /* @__PURE__ */ d({
254
+ ...J,
255
+ __name: "modal",
315
256
  props: {
316
- /**
317
- * Choose between default or dialog versions of modal
318
- */
319
- variant: {
320
- type: String,
321
- default: y.DEFAULT,
322
- validator: (e) => Object.values(y).includes(e)
323
- },
324
- // Shared Modal Default and Modal Default props
325
- /**
326
- * If set to true, it allows the modal to be closed without performing an action
327
- */
328
- isDismissible: {
329
- type: Boolean,
330
- default: null
331
- },
332
- /**
333
- * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
334
- */
335
- overflowVisible: {
336
- type: Boolean,
337
- default: !1
338
- },
339
- /**
340
- * Controls the modal's state from the outside. Set it to true to open the modal
341
- */
342
- isOpen: {
343
- type: Boolean,
344
- default: !1
345
- },
346
- /**
347
- * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
348
- */
349
- initiallyOpen: {
350
- type: Boolean,
351
- default: !1
352
- },
353
257
  /**
354
258
  * List of actions that will be used to render the buttons.
355
259
  * First element in the list will be rendered as "primary".
@@ -379,78 +283,85 @@ const K = U.exports, W = 500, Y = _({
379
283
  type: Array,
380
284
  default: null
381
285
  },
382
- // Specific to Modal Default props
383
286
  /**
384
- * Hides a cross icon on the right side of the title
287
+ * Text label that is displayed left to the action buttons
385
288
  */
386
- hideCloseButton: {
387
- type: Boolean,
388
- default: !1
389
- },
289
+ actionsLabel: { type: String, default: null },
390
290
  /**
391
- * Sets the width of the modal
291
+ * Text that will be displayed in the content section of Modal
392
292
  */
393
- size: {
293
+ content: { type: String, default: null },
294
+ /**
295
+ * 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.
296
+ */
297
+ columnsSize: {
394
298
  type: String,
395
- default: B.SMALL,
396
- validator: (e) => Object.values(B).includes(e)
299
+ default: v.SMALLER,
300
+ validator: (l) => Object.values(v).includes(l)
397
301
  },
398
302
  /**
399
303
  * If provided, manages the padding of the whole modal container
400
304
  */
401
- customPadding: {
305
+ customPadding: { type: String, default: null },
306
+ /**
307
+ * If passed - sets first button color to red
308
+ */
309
+ destructiveActions: { type: Boolean, default: !1 },
310
+ /**
311
+ * Changes the visual styling of action buttons
312
+ */
313
+ dialogType: {
402
314
  type: String,
403
- default: null
315
+ default: c.CONFIRMATION,
316
+ validator: (l) => Object.values(c).includes(l)
404
317
  },
405
318
  /**
406
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
319
+ * Hides a cross icon on the right side of the title
320
+ */
321
+ hideCloseButton: { type: Boolean, default: !1 },
322
+ /**
323
+ * If set to true, it allows the modal to be closed without performing an action
407
324
  */
408
- withColumnLayout: {
325
+ isDismissible: { type: Boolean, default: null },
326
+ /**
327
+ * Controls the modal's state from the outside. Set it to true to open the modal
328
+ */
329
+ isOpen: {
409
330
  type: Boolean,
410
331
  default: !1
411
332
  },
412
333
  /**
413
- * 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.
334
+ * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.
414
335
  */
415
- columnsSize: {
416
- type: String,
417
- default: p.SMALLER,
418
- validator: (e) => Object.values(p).includes(e)
419
- },
336
+ initiallyOpen: { type: Boolean, default: !1 },
420
337
  /**
421
- * Text label that is displayed left to the action buttons
338
+ * Sets the width of the modal
422
339
  */
423
- actionsLabel: {
340
+ size: {
424
341
  type: String,
425
- default: null
342
+ default: C.SMALL,
343
+ validator: (l) => Object.values(C).includes(l)
426
344
  },
427
345
  /**
428
- * If passed - sets first button color to red
346
+ * If set to true, it will set overflow:visible to the modal, only recommended to be used with dropdown
429
347
  */
430
- destructiveActions: {
431
- type: Boolean,
432
- default: !1
433
- },
434
- // Specific to Modal dialog props
348
+ overflowVisible: { type: Boolean, default: !1 },
435
349
  /**
436
- * Changes the visual styling of action buttons
350
+ * Choose between default or dialog versions of modal
437
351
  */
438
- dialogType: {
352
+ variant: {
439
353
  type: String,
440
- default: r.CONFIRMATION,
441
- validator: (e) => Object.values(r).includes(e)
354
+ default: y.DEFAULT,
355
+ validator: (l) => Object.values(y).includes(l)
442
356
  },
443
357
  /**
444
- * Text that will be displayed in the content section of Modal
358
+ * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
445
359
  */
446
- content: {
447
- type: String,
448
- default: null
449
- }
360
+ withColumnLayout: { type: Boolean, default: !1 }
450
361
  },
451
- emits: [c.CLOSE_MODAL],
452
- setup(e, { slots: t, emit: n }) {
453
- const l = w(), s = f(
362
+ emits: ["close-modal"],
363
+ setup(l, { emit: t }) {
364
+ const e = l, o = 500, a = b(), f = B(a), n = x(), s = _(
454
365
  () => e.variant === y.DEFAULT ? {
455
366
  hideCloseButton: e.hideCloseButton,
456
367
  size: e.size,
@@ -461,59 +372,55 @@ const K = U.exports, W = 500, Y = _({
461
372
  overflowVisible: e.overflowVisible,
462
373
  withColumnLayout: e.withColumnLayout,
463
374
  columnSize: e.columnsSize,
464
- ...l
375
+ ...n
465
376
  } : {
466
377
  dialogType: e.dialogType,
467
378
  content: e.content,
468
379
  isDismissible: e.isDismissible ?? !1,
469
380
  overflowVisible: e.overflowVisible,
470
- ...l
381
+ ...n
471
382
  }
472
- ), o = () => {
473
- n(c.CLOSE_MODAL);
383
+ ), p = () => {
384
+ t("close-modal");
474
385
  };
475
- return x(
386
+ return T(
476
387
  () => e.actions,
477
388
  () => {
478
- var a, d;
479
- ((d = (a = e.actions) == null ? void 0 : a[0]) == null ? void 0 : d.state) === "success" && setTimeout(o, W);
389
+ var m, i;
390
+ ((i = (m = e.actions) == null ? void 0 : m[0]) == null ? void 0 : i.state) === "success" && setTimeout(p, o);
480
391
  }
481
- ), {
482
- onCloseModal: o,
483
- customProps: s,
484
- hasSlot: v(t)
485
- };
392
+ ), { __sfc: !0, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME: o, slots: a, hasSlot: f, attrs: n, emit: t, props: e, customProps: s, onCloseModal: p };
486
393
  }
487
394
  });
488
- var H = function() {
489
- var t = this, n = t._self._c;
490
- return t._self._setupProxy, n(t.variant, t._b({ tag: "component", staticClass: "b-modal", attrs: { "is-open": t.isOpen, actions: t.actions, "initially-open": t.initiallyOpen }, on: { "close-modal": t.onCloseModal }, scopedSlots: t._u([t.hasSlot("default") ? { key: "default", fn: function() {
395
+ var X = function() {
396
+ var t = this, e = t._self._c, o = t._self._setupProxy;
397
+ return e(t.variant, t._b({ tag: "component", staticClass: "b-modal", attrs: { "is-open": t.isOpen, actions: t.actions, "initially-open": t.initiallyOpen }, on: { "close-modal": o.onCloseModal }, scopedSlots: t._u([o.hasSlot("default") ? { key: "default", fn: function() {
491
398
  return [t._t("default")];
492
- }, proxy: !0 } : null, t.hasSlot("content-col-1") ? { key: "content-col-1", fn: function() {
399
+ }, proxy: !0 } : null, o.hasSlot("content-col-1") ? { key: "content-col-1", fn: function() {
493
400
  return [t._t("content-col-1")];
494
- }, proxy: !0 } : null, t.hasSlot("content-col-2") ? { key: "content-col-2", fn: function() {
401
+ }, proxy: !0 } : null, o.hasSlot("content-col-2") ? { key: "content-col-2", fn: function() {
495
402
  return [t._t("content-col-2")];
496
- }, proxy: !0 } : null, t.hasSlot("content") ? { key: "content", fn: function() {
403
+ }, proxy: !0 } : null, o.hasSlot("content") ? { key: "content", fn: function() {
497
404
  return [t._t("content")];
498
- }, proxy: !0 } : null], null, !0) }, "component", t.customProps, !1));
499
- }, J = [], Q = /* @__PURE__ */ b(
500
- Y,
501
- H,
502
- J,
405
+ }, proxy: !0 } : null], null, !0) }, "component", o.customProps, !1));
406
+ }, Z = [], tt = /* @__PURE__ */ g(
407
+ Q,
408
+ X,
409
+ Z,
503
410
  !1,
504
411
  null,
505
412
  null,
506
413
  null,
507
414
  null
508
415
  );
509
- const st = Q.exports;
416
+ const ut = tt.exports;
510
417
  export {
511
- st as BentoModal,
512
- p as BentoModalColumnLayoutVariant,
513
- r as BentoModalDialogType,
514
- c as BentoModalEvent,
515
- T as BentoModalRole,
516
- B as BentoModalSize,
418
+ ut as BentoModal,
419
+ v as BentoModalColumnLayoutVariant,
420
+ c as BentoModalDialogType,
421
+ ft as BentoModalEvent,
422
+ k as BentoModalRole,
423
+ C as BentoModalSize,
517
424
  y as BentoModalVariant
518
425
  };
519
426
  //# sourceMappingURL=modal.js.map