@adyen/bento-vue3 1.67.0 → 1.68.1

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 (177) hide show
  1. package/dist/@types/index.d.ts +2154 -2110
  2. package/dist/action-bar.js +1 -1
  3. package/dist/assets/accordion-item.css +1 -1
  4. package/dist/assets/action-bar.css +1 -1
  5. package/dist/assets/base-modal.css +1 -1
  6. package/dist/assets/button-actions.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/checkbox.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/dropdown.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -1
  13. package/dist/assets/filter-bar.css +1 -1
  14. package/dist/assets/header-meta.css +1 -0
  15. package/dist/assets/header-with-views.css +1 -1
  16. package/dist/assets/header.css +1 -1
  17. package/dist/assets/input-field-phone-number.css +1 -1
  18. package/dist/assets/input-field.css +1 -1
  19. package/dist/assets/inspector.css +1 -1
  20. package/dist/assets/menu.css +1 -1
  21. package/dist/assets/modal-fullscreen.css +1 -1
  22. package/dist/assets/popover.css +1 -1
  23. package/dist/assets/sidepanel.css +1 -1
  24. package/dist/assets/summary-grid.css +1 -1
  25. package/dist/assets/textarea.css +1 -1
  26. package/dist/assets/use-cached-selected-values.css +1 -1
  27. package/dist/button.js +1 -1
  28. package/dist/card.js +1 -1
  29. package/dist/checkbox.js +2 -2
  30. package/dist/chunks/{action-bar.ComuZPet.js → action-bar.C93kgr7l.js} +4 -4
  31. package/dist/chunks/{action-bar.ComuZPet.js.map → action-bar.C93kgr7l.js.map} +1 -1
  32. package/dist/chunks/{base-modal.DzJrvis_.js → base-modal.C3_r3rmc.js} +120 -183
  33. package/dist/chunks/base-modal.C3_r3rmc.js.map +1 -0
  34. package/dist/chunks/{button-actions-with-menu.B0nWCTwZ.js → button-actions-with-menu.DUccmaB2.js} +3 -3
  35. package/dist/chunks/{button-actions-with-menu.B0nWCTwZ.js.map → button-actions-with-menu.DUccmaB2.js.map} +1 -1
  36. package/dist/chunks/{button-actions.BwpznQ6c.js → button-actions.CZdO9YOk.js} +7 -7
  37. package/dist/chunks/button-actions.CZdO9YOk.js.map +1 -0
  38. package/dist/chunks/{card.JBOvn2BO.js → card.CS34Mi_G.js} +2 -2
  39. package/dist/chunks/{card.JBOvn2BO.js.map → card.CS34Mi_G.js.map} +1 -1
  40. package/dist/chunks/{checkbox-group.Dc5Olq0c.js → checkbox-group.JRo6xNpe.js} +2 -2
  41. package/dist/chunks/{checkbox-group.Dc5Olq0c.js.map → checkbox-group.JRo6xNpe.js.map} +1 -1
  42. package/dist/chunks/{checkbox.fkPJvdUo.js → checkbox.DGrG3GN1.js} +70 -67
  43. package/dist/chunks/checkbox.DGrG3GN1.js.map +1 -0
  44. package/dist/chunks/{code-snippet.vrlSqi9k.js → code-snippet.D5M76Qy6.js} +3 -3
  45. package/dist/chunks/{code-snippet.vrlSqi9k.js.map → code-snippet.D5M76Qy6.js.map} +1 -1
  46. package/dist/chunks/{country.BhAcCmRx.js → country.Q95voxeL.js} +2 -2
  47. package/dist/chunks/{country.BhAcCmRx.js.map → country.Q95voxeL.js.map} +1 -1
  48. package/dist/chunks/{dashboard-section.Bg0dfNs-.js → dashboard-section.CUcq2ahu.js} +2 -2
  49. package/dist/chunks/{dashboard-section.Bg0dfNs-.js.map → dashboard-section.CUcq2ahu.js.map} +1 -1
  50. package/dist/chunks/{dashed-underline.DgE-UB-x.js → dashed-underline.DkzQkpaf.js} +2 -2
  51. package/dist/chunks/{dashed-underline.DgE-UB-x.js.map → dashed-underline.DkzQkpaf.js.map} +1 -1
  52. package/dist/chunks/{data-grid-template.Df7j2oxe.js → data-grid-template.CDsV2GFG.js} +2 -2
  53. package/dist/chunks/{data-grid-template.Df7j2oxe.js.map → data-grid-template.CDsV2GFG.js.map} +1 -1
  54. package/dist/chunks/data-grid.BbZSu-mA.js +3861 -0
  55. package/dist/chunks/data-grid.BbZSu-mA.js.map +1 -0
  56. package/dist/chunks/{date-picker.CZ6zU-NJ.js → date-picker.CAoXTiZR.js} +2 -2
  57. package/dist/chunks/{date-picker.CZ6zU-NJ.js.map → date-picker.CAoXTiZR.js.map} +1 -1
  58. package/dist/chunks/{date-range-picker.Dw4R9bIs.js → date-range-picker.DtV4L3L6.js} +5 -5
  59. package/dist/chunks/{date-range-picker.Dw4R9bIs.js.map → date-range-picker.DtV4L3L6.js.map} +1 -1
  60. package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +1 -1
  61. package/dist/chunks/dropdown-tag.B3fptORX.js +230 -0
  62. package/dist/chunks/dropdown-tag.B3fptORX.js.map +1 -0
  63. package/dist/chunks/dropdown.CMOYmQLB.js +814 -0
  64. package/dist/chunks/dropdown.CMOYmQLB.js.map +1 -0
  65. package/dist/chunks/es6.n1ewaW31.js.map +1 -1
  66. package/dist/chunks/{filter-bar.XonJn7ao.js → filter-bar.DoHMLZ4O.js} +848 -833
  67. package/dist/chunks/filter-bar.DoHMLZ4O.js.map +1 -0
  68. package/dist/chunks/{footer-actions.CdJLLWNR.js → footer-actions.Bje-DDqw.js} +2 -2
  69. package/dist/chunks/{footer-actions.CdJLLWNR.js.map → footer-actions.Bje-DDqw.js.map} +1 -1
  70. package/dist/chunks/header-meta.Yt43-cUI.js +234 -0
  71. package/dist/chunks/header-meta.Yt43-cUI.js.map +1 -0
  72. package/dist/chunks/{header-with-views.CHbH1_1V.js → header-with-views.C9ql_Wem.js} +697 -678
  73. package/dist/chunks/header-with-views.C9ql_Wem.js.map +1 -0
  74. package/dist/chunks/header.wiq0wlgm.js +141 -0
  75. package/dist/chunks/header.wiq0wlgm.js.map +1 -0
  76. package/dist/chunks/{input-field-password.DWZAf1Oh.js → input-field-password.DN0Jro1V.js} +4 -4
  77. package/dist/chunks/{input-field-password.DWZAf1Oh.js.map → input-field-password.DN0Jro1V.js.map} +1 -1
  78. package/dist/chunks/{input-field-phone-number.CbpRItYf.js → input-field-phone-number.BhPsrafR.js} +548 -532
  79. package/dist/chunks/{input-field-phone-number.CbpRItYf.js.map → input-field-phone-number.BhPsrafR.js.map} +1 -1
  80. package/dist/chunks/{input-field.DExw_Cow.js → input-field.su5Cq8Dt.js} +30 -29
  81. package/dist/chunks/input-field.su5Cq8Dt.js.map +1 -0
  82. package/dist/chunks/{menu.CeLJ1gIz.js → menu.C-3obPGl.js} +182 -180
  83. package/dist/chunks/{menu.CeLJ1gIz.js.map → menu.C-3obPGl.js.map} +1 -1
  84. package/dist/chunks/{modal-fullscreen.CZnLS-fQ.js → modal-fullscreen.DBTnoSX9.js} +90 -77
  85. package/dist/chunks/modal-fullscreen.DBTnoSX9.js.map +1 -0
  86. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js → modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js} +10 -10
  87. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js.map → modal.vue_vue_type_script_setup_true_lang.Cd-mQUJ8.js.map} +1 -1
  88. package/dist/chunks/{pagination.DL9LmFMJ.js → pagination.fYQak4C8.js} +2 -2
  89. package/dist/chunks/{pagination.DL9LmFMJ.js.map → pagination.fYQak4C8.js.map} +1 -1
  90. package/dist/chunks/popover.DYgCCUCJ.js +200 -0
  91. package/dist/chunks/popover.DYgCCUCJ.js.map +1 -0
  92. package/dist/chunks/popover.types.V8old-GW.js +6 -0
  93. package/dist/chunks/popover.types.V8old-GW.js.map +1 -0
  94. package/dist/chunks/{rich-text-editor.Dl9PsYbk.js → rich-text-editor.Dx78coVL.js} +2 -2
  95. package/dist/chunks/{rich-text-editor.Dl9PsYbk.js.map → rich-text-editor.Dx78coVL.js.map} +1 -1
  96. package/dist/chunks/{search-bar.a-jzP1UA.js → search-bar.CUrcP_wf.js} +3 -3
  97. package/dist/chunks/{search-bar.a-jzP1UA.js.map → search-bar.CUrcP_wf.js.map} +1 -1
  98. package/dist/chunks/{secondary-nav.UrmIAVGD.js → secondary-nav.j3ddtYoZ.js} +2 -2
  99. package/dist/chunks/{secondary-nav.UrmIAVGD.js.map → secondary-nav.j3ddtYoZ.js.map} +1 -1
  100. package/dist/chunks/{sidepanel.BuNmgmpj.js → sidepanel.DPN__L3Q.js} +2 -2
  101. package/dist/chunks/{sidepanel.BuNmgmpj.js.map → sidepanel.DPN__L3Q.js.map} +1 -1
  102. package/dist/chunks/{summary-grid.types.CoSCUI1V.js → summary-grid.types.CjbbSZBJ.js} +4 -4
  103. package/dist/chunks/summary-grid.types.CjbbSZBJ.js.map +1 -0
  104. package/dist/chunks/{textarea.DXSe9MHH.js → textarea.BBhN67-I.js} +41 -40
  105. package/dist/chunks/textarea.BBhN67-I.js.map +1 -0
  106. package/dist/chunks/{timeline-item.BRHwCA1F.js → timeline-item.CuCII37W.js} +3 -3
  107. package/dist/chunks/{timeline-item.BRHwCA1F.js.map → timeline-item.CuCII37W.js.map} +1 -1
  108. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js → tutorial.vue_vue_type_script_setup_true_lang.nYHtTHqy.js} +28 -27
  109. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js.map → tutorial.vue_vue_type_script_setup_true_lang.nYHtTHqy.js.map} +1 -1
  110. package/dist/chunks/{use-cached-selected-values.D7dOPJSO.js → use-cached-selected-values.Dyoz6cUK.js} +579 -563
  111. package/dist/chunks/use-cached-selected-values.Dyoz6cUK.js.map +1 -0
  112. package/dist/chunks/{use-country-items.4kZgVg_l.js → use-country-items.Duh4bMqW.js} +2 -2
  113. package/dist/chunks/{use-country-items.4kZgVg_l.js.map → use-country-items.Duh4bMqW.js.map} +1 -1
  114. package/dist/chunks/{use-country-phon-code.DVgE19zT.js → use-country-phon-code.BOaJ9PDl.js} +507 -498
  115. package/dist/chunks/{use-country-phon-code.DVgE19zT.js.map → use-country-phon-code.BOaJ9PDl.js.map} +1 -1
  116. package/dist/code-snippet.js +1 -1
  117. package/dist/country.js +2 -2
  118. package/dist/dashboard-template.js +1 -1
  119. package/dist/dashed-underline.js +1 -1
  120. package/dist/data-grid-template.js +1 -1
  121. package/dist/data-grid.js +1 -1
  122. package/dist/date-picker.js +1 -1
  123. package/dist/date-range-picker.js +1 -1
  124. package/dist/dropdown.js +3 -3
  125. package/dist/filter-bar.js +1 -1
  126. package/dist/header-with-views.js +1 -1
  127. package/dist/header.js +1 -1
  128. package/dist/index.js +156 -155
  129. package/dist/index.js.map +1 -1
  130. package/dist/input-field-password.js +1 -1
  131. package/dist/input-field-phone-number.js +1 -1
  132. package/dist/input-field.js +1 -1
  133. package/dist/internal.js +15 -14
  134. package/dist/menu.js +1 -1
  135. package/dist/modal-fullscreen.js +1 -1
  136. package/dist/modal.js +11 -11
  137. package/dist/pagination.js +1 -1
  138. package/dist/popover.js +3 -2
  139. package/dist/popover.js.map +1 -1
  140. package/dist/rich-text-editor.js +1 -1
  141. package/dist/search-bar.js +2 -2
  142. package/dist/secondary-nav.js +1 -1
  143. package/dist/sidepanel.js +1 -1
  144. package/dist/styles/bento-dark.css +10 -2
  145. package/dist/styles/bento-light.css +10 -2
  146. package/dist/styles/bento.css +10 -2
  147. package/dist/styles/legacy.css +10 -2
  148. package/dist/styles/styleguide.css +10 -2
  149. package/dist/summary-grid.js +1 -1
  150. package/dist/textarea.js +1 -1
  151. package/dist/timeline.js +1 -1
  152. package/dist/tutorial.js +1 -1
  153. package/dist/web-types.json +1 -1
  154. package/package.json +23 -6
  155. package/dist/assets/info-icon-with-popover.css +0 -1
  156. package/dist/chunks/base-modal.DzJrvis_.js.map +0 -1
  157. package/dist/chunks/button-actions.BwpznQ6c.js.map +0 -1
  158. package/dist/chunks/checkbox.fkPJvdUo.js.map +0 -1
  159. package/dist/chunks/data-grid.rDZadZwc.js +0 -3781
  160. package/dist/chunks/data-grid.rDZadZwc.js.map +0 -1
  161. package/dist/chunks/dropdown-tag.BlHovDol.js +0 -202
  162. package/dist/chunks/dropdown-tag.BlHovDol.js.map +0 -1
  163. package/dist/chunks/dropdown.B5ZaFDn_.js +0 -957
  164. package/dist/chunks/dropdown.B5ZaFDn_.js.map +0 -1
  165. package/dist/chunks/filter-bar.XonJn7ao.js.map +0 -1
  166. package/dist/chunks/header-with-views.CHbH1_1V.js.map +0 -1
  167. package/dist/chunks/header.CJJWPB5Z.js +0 -254
  168. package/dist/chunks/header.CJJWPB5Z.js.map +0 -1
  169. package/dist/chunks/info-icon-with-popover.DVH46dPy.js +0 -97
  170. package/dist/chunks/info-icon-with-popover.DVH46dPy.js.map +0 -1
  171. package/dist/chunks/input-field.DExw_Cow.js.map +0 -1
  172. package/dist/chunks/modal-fullscreen.CZnLS-fQ.js.map +0 -1
  173. package/dist/chunks/popover.VI3TrUkL.js +0 -350
  174. package/dist/chunks/popover.VI3TrUkL.js.map +0 -1
  175. package/dist/chunks/summary-grid.types.CoSCUI1V.js.map +0 -1
  176. package/dist/chunks/textarea.DXSe9MHH.js.map +0 -1
  177. package/dist/chunks/use-cached-selected-values.D7dOPJSO.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, useSlots as ee, ref as g, computed as c, inject as de, watch as Y, nextTick as re, onUnmounted as me, createBlock as S, openBlock as A, normalizeClass as J, createSlots as te, withCtx as l, createElementVNode as L, normalizeStyle as O, createCommentVNode as w, unref as t, renderSlot as d, createVNode as q, useAttrs as ge, toRefs as ve, onMounted as fe, provide as G, createElementBlock as pe, withKeys as ye, withDirectives as _e } from "vue";
1
+ import { defineComponent as $, useSlots as ee, ref as g, computed as d, inject as ce, watch as Y, nextTick as re, onUnmounted as me, createBlock as P, openBlock as A, normalizeClass as J, createSlots as te, withCtx as l, createElementVNode as L, normalizeStyle as O, createCommentVNode as w, unref as t, renderSlot as c, createVNode as q, useAttrs as ge, toRefs as ve, onMounted as pe, provide as G, createElementBlock as fe, withKeys as _e, withDirectives as ye } from "vue";
2
2
  import { B as be } from "./button.AB0SOQMn.js";
3
3
  import { B as he } from "./focus-trap.CljZgv9i.js";
4
4
  import { u as ae } from "./use-has-slot.B7eQSabc.js";
@@ -6,13 +6,13 @@ import { u as Le } from "./i18n.B6g5VX0q.js";
6
6
  import { M as Ae } from "./base-modal.keys.C2PQXcE2.js";
7
7
  import { g as Ce } from "./generate-uid.NJ8tVoha.js";
8
8
  import { B as Ee } from "./directive.Cbdox5VL.js";
9
- import { B as Z } from "./typography.DN5eC5ch.js";
10
- import { F as Ie } from "./footer-actions.CdJLLWNR.js";
11
- import { D as Oe, B as Se, b as Pe, a as De } from "./dialog-page.C80HOigq.js";
12
- import { o as ke } from "./resize.Bqks3WUm.js";
13
- import { G as Be, a as Te } from "./grid-layout.BTLE3rac.js";
9
+ import { C as Ie } from "./cross.B92GxFTY.js";
10
+ import { D as Oe, B as Pe, b as Se, a as De } from "./dialog-page.C80HOigq.js";
11
+ import { B as x } from "./typography.DN5eC5ch.js";
12
+ import { F as ke } from "./footer-actions.Bje-DDqw.js";
13
+ import { o as Be } from "./resize.Bqks3WUm.js";
14
+ import { G as Te, a as Ne } from "./grid-layout.BTLE3rac.js";
14
15
  import { _ as oe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
15
- import { C as Ne } from "./cross.B92GxFTY.js";
16
16
  import "../assets/base-modal.css";
17
17
  var Ge = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.DIALOG = "dialog", e))(Ge || {}), we = /* @__PURE__ */ ((e) => (e.DEFAULT = "BentoModalDefault", e.DIALOG = "BentoModalDialog", e))(we || {}), R = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.MEDIUM = "medium", e.LARGE = "large", e))(R || {}), k = /* @__PURE__ */ ((e) => (e.SMALLER = "smaller", e.EQUAL = "equal", e.BIGGER = "bigger", e))(k || {}), W = /* @__PURE__ */ ((e) => (e.DIALOG = "dialog", e.ALERT_DIALOG = "alertdialog", e))(W || {}), Re = /* @__PURE__ */ ((e) => (e.CONFIRMATION = "confirmation", e.DESTRUCTIVE = "destructive", e.INFO = "info", e.ACKNOWLEDGEMENT = "acknowledgement", e))(Re || {}), $e = /* @__PURE__ */ ((e) => (e.CLOSE_MODAL = "close-modal", e))($e || {});
18
18
  const ne = {
@@ -33,166 +33,103 @@ const ne = {
33
33
  ...Fe,
34
34
  __name: "modal-page",
35
35
  props: {
36
- /**
37
- * List of actions that will be used to render the buttons.
38
- * First element in the list will be rendered as "primary".
39
- * All elements after the first will be rendered as "secondary".
40
- * But you may change the color of 1-st action to red with 'critial' key
41
- * Not more than 3 action buttons can be provided
42
- * Or 2 action buttons and 1 Label for them
43
- *
44
- * Each object in the list should have a `title`, an `event` and
45
- * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.
46
- *
47
- * `title`: Button's text.
48
- *
49
- * `event`: Event triggered when clicking the Button.
50
- *
51
- * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.
52
- *
53
- * ```
54
- * [{
55
- * title: 'Primary',2
56
- * event: () => { ... },
57
- * icon: FourPeopleIcon
58
- * }, {
59
- * title: 'Secondary',
60
- * event: () => { ... }
61
- * }]
62
- * ```
63
- */
64
- actions: {
65
- type: Array,
66
- default: null
67
- },
68
- /**
69
- * Text label that is displayed left to the action buttons
70
- */
71
- actionsLabel: { type: String, default: null },
72
- /**
73
- * 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.
74
- */
75
- columnsSize: {
76
- type: String,
77
- default: k.SMALLER
78
- },
79
- /**
80
- * If provided, manages the padding of the whole modal container
81
- */
82
- customPadding: { type: String, default: null },
83
- /**
84
- * If passed - sets first button color to red
85
- */
36
+ actions: { default: null },
37
+ actionsLabel: { default: null },
38
+ columnsSize: { default: k.SMALLER },
39
+ customPadding: { default: null },
86
40
  destructiveActions: { type: Boolean, default: !1 },
87
- /**
88
- * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
89
- */
90
41
  withColumnLayout: { type: Boolean, default: !1 },
91
- /**
92
- * Identifier of the page, used with activePage prop to handle modal navigation
93
- */
94
- pageId: {
95
- type: String,
96
- default: void 0
97
- },
98
- /**
99
- * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior
100
- * Used when the back button should not take the user to the natural previous page
101
- * Set to `null` to hide back button in the page
102
- */
103
- previousPage: {
104
- type: String,
105
- default: void 0
106
- }
42
+ pageId: { default: void 0 },
43
+ previousPage: { default: void 0 }
107
44
  },
108
45
  setup(e) {
109
- const M = ee(), u = ae(M), p = g(null), n = e, z = c(() => ({
110
- "b-modal-page--custom-padding": n.customPadding
111
- })), y = c(() => {
112
- var s;
46
+ const M = ee(), u = ae(M), f = g(null), s = e, z = d(() => ({
47
+ "b-modal-page--custom-padding": s.customPadding
48
+ })), _ = d(() => {
49
+ var a;
113
50
  return {
114
51
  "b-modal-page__content--with-header": u("default"),
115
- "b-modal-page__content--with-actions": u("actions") || ((s = n.actions) == null ? void 0 : s.length)
52
+ "b-modal-page__content--with-actions": u("actions") || ((a = s.actions) == null ? void 0 : a.length)
116
53
  };
117
- }), i = c(() => {
118
- if (!n.customPadding)
54
+ }), i = d(() => {
55
+ if (!s.customPadding)
119
56
  return {};
120
- const s = {
121
- paddingLeft: n.customPadding,
122
- paddingRight: n.customPadding
123
- }, r = { ...s, paddingTop: void 0, paddingBottom: void 0 };
124
- return u("default") || (r.paddingTop = n.customPadding), u("actions") || (r.paddingBottom = n.customPadding), {
57
+ const a = {
58
+ paddingLeft: s.customPadding,
59
+ paddingRight: s.customPadding
60
+ }, r = { ...a, paddingTop: void 0, paddingBottom: void 0 };
61
+ return u("default") || (r.paddingTop = s.customPadding), u("actions") || (r.paddingBottom = s.customPadding), {
125
62
  header: {
126
- ...s,
127
- paddingTop: n.customPadding,
128
- paddingRight: `${parseInt(n.customPadding, 10) + 26}px`,
63
+ ...a,
64
+ paddingTop: s.customPadding,
65
+ paddingRight: `${parseInt(s.customPadding, 10) + 26}px`,
129
66
  flex: 1
130
67
  },
131
68
  content: r,
132
- actions: { ...s, paddingBottom: n.customPadding },
133
- backButton: { top: n.customPadding, paddingLeft: n.customPadding }
69
+ actions: { ...a, paddingBottom: s.customPadding },
70
+ backButton: { top: s.customPadding, paddingLeft: s.customPadding }
134
71
  };
135
- }), _ = c(() => n.withColumnLayout && U.value === R.LARGE), B = c(() => n.columnsSize === k.SMALLER ? [
72
+ }), y = d(() => s.withColumnLayout && U.value === R.LARGE), B = d(() => s.columnsSize === k.SMALLER ? [
136
73
  { small: 4, medium: 4, large: 4 },
137
74
  { small: 8, medium: 8, large: 8 }
138
- ] : n.columnsSize === k.BIGGER ? [
75
+ ] : s.columnsSize === k.BIGGER ? [
139
76
  { small: 8, medium: 8, large: 8 },
140
77
  { small: 4, medium: 4, large: 4 }
141
78
  ] : [
142
79
  { small: 6, medium: 6, large: 6 },
143
80
  { small: 6, medium: 6, large: 6 }
144
- ]), { activePage: b, height: o, isAnimationActive: P, pageCustomPadding: C, showCloseButton: F, size: U } = de(se), K = c(() => b.value === n.pageId || !b.value);
81
+ ]), { activePage: b, height: n, isAnimationActive: S, pageCustomPadding: C, showCloseButton: F, size: U } = ce(se), K = d(() => b.value === s.pageId || !b.value);
145
82
  let h = null;
146
83
  return Y(
147
84
  () => b.value,
148
- async (s, r) => {
85
+ async (a, r) => {
149
86
  var m, v;
150
- K.value && (await re(), o.value = `${(v = (m = p.value) == null ? void 0 : m.$el) == null ? void 0 : v.clientHeight}px`, C.value = n.customPadding, P.value = r !== void 0, h = ke(p.value, () => {
87
+ K.value && (await re(), n.value = `${(v = (m = f.value) == null ? void 0 : m.$el) == null ? void 0 : v.clientHeight}px`, C.value = s.customPadding, S.value = r !== void 0, h = Be(f.value, () => {
151
88
  var T, E;
152
- const D = `${(E = (T = p.value) == null ? void 0 : T.$el) == null ? void 0 : E.clientHeight}px`;
153
- D && D !== o.value && (o.value = D);
89
+ const D = `${(E = (T = f.value) == null ? void 0 : T.$el) == null ? void 0 : E.clientHeight}px`;
90
+ D && D !== n.value && (n.value = D);
154
91
  }));
155
92
  },
156
93
  { immediate: !0 }
157
94
  ), me(() => {
158
95
  h == null || h.disconnect();
159
- }), (s, r) => {
96
+ }), (a, r) => {
160
97
  var m;
161
- return A(), S(Oe, {
98
+ return A(), P(Oe, {
162
99
  ref_key: "page",
163
- ref: p,
100
+ ref: f,
164
101
  class: J(["b-modal-page", z.value]),
165
- "page-id": e.pageId,
166
- "always-show-border": _.value,
102
+ "page-id": a.pageId,
103
+ "always-show-border": y.value,
167
104
  "back-button-styling": (m = i.value) == null ? void 0 : m.backButton,
168
- "previous-page": e.previousPage,
169
- onAnimationend: r[0] || (r[0] = (v) => P.value = !1)
105
+ "previous-page": a.previousPage,
106
+ onAnimationend: r[0] || (r[0] = (v) => S.value = !1)
170
107
  }, te({
171
108
  content: l(() => [
172
109
  L("div", {
173
- class: J(["b-modal-page__content", y.value]),
110
+ class: J(["b-modal-page__content", _.value]),
174
111
  style: O(i.value.content)
175
112
  }, [
176
- t(u)("content") || t(u)("content-col-1") && t(u)("content-col-2") ? (A(), S(t(Z), {
113
+ t(u)("content") || t(u)("content-col-1") && t(u)("content-col-2") ? (A(), P(t(x), {
177
114
  key: 0,
178
115
  el: "div"
179
116
  }, {
180
117
  default: l(() => [
181
- _.value ? (A(), S(t(Be), {
118
+ y.value ? (A(), P(t(Te), {
182
119
  key: 0,
183
120
  "column-width": B.value,
184
- "container-type": t(Te).NORMAL,
121
+ "container-type": t(Ne).NORMAL,
185
122
  "no-gap": "",
186
123
  class: "b-modal-page__grid"
187
124
  }, {
188
125
  "col-1": l(() => [
189
- d(s.$slots, "content-col-1", {}, void 0, !0)
126
+ c(a.$slots, "content-col-1", {}, void 0, !0)
190
127
  ]),
191
128
  "col-2": l(() => [
192
- d(s.$slots, "content-col-2", {}, void 0, !0)
129
+ c(a.$slots, "content-col-2", {}, void 0, !0)
193
130
  ]),
194
131
  _: 3
195
- }, 8, ["column-width", "container-type"])) : d(s.$slots, "content", { key: 1 }, void 0, !0)
132
+ }, 8, ["column-width", "container-type"])) : c(a.$slots, "content", { key: 1 }, void 0, !0)
196
133
  ]),
197
134
  _: 3
198
135
  })) : w("", !0)
@@ -208,14 +145,14 @@ const ne = {
208
145
  style: O(i.value.header)
209
146
  }, [
210
147
  L("div", Me, [
211
- q(t(Z), {
148
+ q(t(x), {
212
149
  class: "b-modal-page__title",
213
150
  el: "span",
214
151
  variant: "title",
215
152
  stronger: ""
216
153
  }, {
217
154
  default: l(() => [
218
- t(u)("default") ? d(s.$slots, "default", { key: 0 }, void 0, !0) : w("", !0)
155
+ t(u)("default") ? c(a.$slots, "default", { key: 0 }, void 0, !0) : w("", !0)
219
156
  ]),
220
157
  _: 3
221
158
  })
@@ -232,22 +169,22 @@ const ne = {
232
169
  style: O(i.value.actions)
233
170
  }, [
234
171
  L("div", ze, [
235
- d(s.$slots, "actions", {}, void 0, !0)
172
+ c(a.$slots, "actions", {}, void 0, !0)
236
173
  ])
237
174
  ], 4)
238
175
  ]),
239
176
  key: "1"
240
- } : e.actions && e.actions.length > 0 ? {
177
+ } : a.actions && a.actions.length > 0 ? {
241
178
  name: "footer",
242
179
  fn: l(() => [
243
180
  L("div", {
244
181
  class: "b-modal-page__actions-container",
245
182
  style: O(i.value.actions)
246
183
  }, [
247
- q(t(Ie), {
248
- actions: e.actions,
249
- "actions-label": e.actionsLabel,
250
- "destructive-actions": e.destructiveActions
184
+ q(t(ke), {
185
+ actions: a.actions,
186
+ "actions-label": a.actionsLabel,
187
+ "destructive-actions": a.destructiveActions
251
188
  }, null, 8, ["actions", "actions-label", "destructive-actions"])
252
189
  ], 4)
253
190
  ]),
@@ -256,7 +193,7 @@ const ne = {
256
193
  ]), 1032, ["class", "page-id", "always-show-border", "back-button-styling", "previous-page"]);
257
194
  };
258
195
  }
259
- }), Ke = /* @__PURE__ */ oe(Ue, [["__scopeId", "data-v-20505cf1"]]), He = { class: "b-modal-base" }, Ye = ["role", "aria-label", "open"], Je = $({
196
+ }), Ke = /* @__PURE__ */ oe(Ue, [["__scopeId", "data-v-67effa50"]]), He = { class: "b-modal-base" }, Ye = ["role", "aria-label", "open"], Je = $({
260
197
  i18n: { messages: ne },
261
198
  name: "base-modal"
262
199
  }), qe = /* @__PURE__ */ $({
@@ -351,79 +288,79 @@ const ne = {
351
288
  },
352
289
  emits: ["update:active-page", "close-modal"],
353
290
  setup(e, { expose: j, emit: M }) {
354
- const { t: p } = Le({ messages: ne }), n = ee(), z = ge(), y = ae(n), i = g(null), _ = g(!1), B = Ce("modal"), b = M, o = e, P = c(() => o.isDismissible && !o.hideCloseButton), C = g(o.customPadding), F = c(() => C.value ? { top: C.value, right: C.value } : {}), U = c(() => z["aria-label"] ?? p("ariaLabelFallback")), K = c(() => o.withColumnLayout && o.size === R.LARGE), h = () => {
291
+ const { t: f } = Le({ messages: ne }), s = ee(), z = ge(), _ = ae(s), i = g(null), y = g(!1), B = Ce("modal"), b = M, n = e, S = d(() => n.isDismissible && !n.hideCloseButton), C = g(n.customPadding), F = d(() => C.value ? { top: C.value, right: C.value } : {}), U = d(() => z["aria-label"] ?? f("ariaLabelFallback")), K = d(() => n.withColumnLayout && n.size === R.LARGE), h = () => {
355
292
  i.value.showModal();
356
- }, s = () => {
293
+ }, a = () => {
357
294
  b("close-modal");
358
295
  }, r = () => {
359
- _.value && (i.value.close(), I.value[0] && b("update:active-page", I.value[0]), I.value = [], _.value = !1, s());
296
+ y.value && (i.value.close(), I.value[0] && b("update:active-page", I.value[0]), I.value = [], y.value = !1, a());
360
297
  }, m = () => {
361
- i.value.open && (_.value = !0);
362
- }, v = (a) => {
363
- a && a.preventDefault(), !(!o.isDismissible && o.modalRole === W.DIALOG) && m();
298
+ i.value.open && (y.value = !0);
299
+ }, v = (o) => {
300
+ o && o.preventDefault(), !(!n.isDismissible && n.modalRole === W.DIALOG) && m();
364
301
  }, D = () => {
365
- o.isDismissible && v();
366
- }, T = c(() => ({
367
- [`b-modal-base__container--${o.size}`]: o.size,
368
- "b-modal-base__container--hide": _.value,
302
+ n.isDismissible && v();
303
+ }, T = d(() => ({
304
+ [`b-modal-base__container--${n.size}`]: n.size,
305
+ "b-modal-base__container--hide": y.value,
369
306
  "b-modal-base__container--column-layout": K.value,
370
- "b-modal-base__container--animation": X.value
307
+ "b-modal-base__container--animation": Z.value
371
308
  }));
372
309
  Y(
373
- () => [o.isOpen, i.value],
374
- ([a, f], [, H]) => {
375
- if (!f)
310
+ () => [n.isOpen, i.value],
311
+ ([o, p], [, H]) => {
312
+ if (!p)
376
313
  return;
377
- a ? (h(), I.value.length || I.value.push(E.value)) : !H || m();
314
+ o ? (h(), I.value.length || I.value.push(E.value)) : !H || m();
378
315
  }
379
316
  ), Y(
380
- () => o.actions,
317
+ () => n.actions,
381
318
  () => {
382
- var a, f;
383
- ((f = (a = o.actions) == null ? void 0 : a[0]) == null ? void 0 : f.state) === "success" && setTimeout(m, 500);
319
+ var o, p;
320
+ ((p = (o = n.actions) == null ? void 0 : o[0]) == null ? void 0 : p.state) === "success" && setTimeout(m, 500);
384
321
  },
385
322
  { deep: !0 }
386
- ), fe(() => {
387
- o.isOpen && i.value && h();
323
+ ), pe(() => {
324
+ n.isOpen && i.value && h();
388
325
  }), j({
389
326
  internalModalActionClose: v
390
327
  }), G(Ae, B);
391
- const { activePage: E, isOpen: x, size: Q } = ve(o), le = g(Se.TRANSITION_LEVEL_DEEPER), N = g([]), I = g([]), ie = (a) => b("update:active-page", a), ue = (a) => () => {
392
- var f;
393
- N.value = (f = N.value) == null ? void 0 : f.filter((H) => H !== a);
394
- }, ce = (a) => (a && N.value.push(a), { unregisterPage: ue(a) }), V = g(""), X = g(!1);
328
+ const { activePage: E, isOpen: Q, size: V } = ve(n), le = g(Pe.TRANSITION_LEVEL_DEEPER), N = g([]), I = g([]), ie = (o) => b("update:active-page", o), ue = (o) => () => {
329
+ var p;
330
+ N.value = (p = N.value) == null ? void 0 : p.filter((H) => H !== o);
331
+ }, de = (o) => (o && N.value.push(o), { unregisterPage: ue(o) }), X = g(""), Z = g(!1);
395
332
  return G(se, {
396
333
  activePage: E,
397
- height: V,
398
- isAnimationActive: X,
334
+ height: X,
335
+ isAnimationActive: Z,
399
336
  pageCustomPadding: C,
400
- showCloseButton: P,
401
- size: Q
402
- }), G(Pe, {
337
+ showCloseButton: S,
338
+ size: V
339
+ }), G(Se, {
403
340
  activePage: E,
404
341
  animation: le,
405
- isOpen: x,
342
+ isOpen: Q,
406
343
  pages: N,
407
344
  previousPages: I,
408
345
  updatePage: ie
409
- }), G(De, ce), (a, f) => (A(), pe("div", He, [
346
+ }), G(De, de), (o, p) => (A(), fe("div", He, [
410
347
  L("dialog", {
411
348
  ref_key: "modal",
412
349
  ref: i,
413
350
  role: e.modalRole,
414
351
  "aria-label": U.value,
415
- style: O({ height: V.value }),
352
+ style: O({ height: X.value }),
416
353
  class: J(["b-modal-base__container", T.value]),
417
354
  open: e.initiallyOpen,
418
355
  onAnimationend: r,
419
- onKeydown: ye(v, ["esc"])
356
+ onKeydown: _e(v, ["esc"])
420
357
  }, [
421
- t(x) || e.initiallyOpen ? _e((A(), S(t(he), {
358
+ t(Q) || e.initiallyOpen ? ye((A(), P(t(he), {
422
359
  key: 0,
423
360
  id: t(B)
424
361
  }, {
425
362
  default: l(() => [
426
- P.value ? (A(), S(t(be), {
363
+ S.value ? (A(), P(t(be), {
427
364
  key: 0,
428
365
  class: "b-modal-base__close-button",
429
366
  variant: "tertiary",
@@ -432,51 +369,51 @@ const ne = {
432
369
  onClick: v
433
370
  }, {
434
371
  default: l(() => [
435
- q(t(Ne), {
436
- "svg-title": t(p)("close")
372
+ q(t(Ie), {
373
+ "svg-title": t(f)("close")
437
374
  }, null, 8, ["svg-title"])
438
375
  ]),
439
376
  _: 1
440
377
  }, 8, ["style"])) : w("", !0),
441
- o.activePage ? d(a.$slots, "default", { key: 1 }, void 0, !0) : (A(), S(t(Ke), {
378
+ n.activePage ? c(o.$slots, "default", { key: 1 }, void 0, !0) : (A(), P(t(Ke), {
442
379
  key: 2,
443
380
  "with-column-layout": e.withColumnLayout,
444
- size: t(Q),
381
+ size: t(V),
445
382
  "custom-padding": e.customPadding,
446
383
  "columns-size": e.columnsSize
447
384
  }, te({ _: 2 }, [
448
- t(y)("default") ? {
385
+ t(_)("default") ? {
449
386
  name: "default",
450
387
  fn: l(() => [
451
- d(a.$slots, "default", {}, void 0, !0)
388
+ c(o.$slots, "default", {}, void 0, !0)
452
389
  ]),
453
390
  key: "0"
454
391
  } : void 0,
455
- t(y)("content-col-1") ? {
392
+ t(_)("content-col-1") ? {
456
393
  name: "content-col-1",
457
394
  fn: l(() => [
458
- d(a.$slots, "content-col-1", {}, void 0, !0)
395
+ c(o.$slots, "content-col-1", {}, void 0, !0)
459
396
  ]),
460
397
  key: "1"
461
398
  } : void 0,
462
- t(y)("content-col-2") ? {
399
+ t(_)("content-col-2") ? {
463
400
  name: "content-col-2",
464
401
  fn: l(() => [
465
- d(a.$slots, "content-col-2", {}, void 0, !0)
402
+ c(o.$slots, "content-col-2", {}, void 0, !0)
466
403
  ]),
467
404
  key: "2"
468
405
  } : void 0,
469
- t(y)("content") ? {
406
+ t(_)("content") ? {
470
407
  name: "content",
471
408
  fn: l(() => [
472
- d(a.$slots, "content", {}, void 0, !0)
409
+ c(o.$slots, "content", {}, void 0, !0)
473
410
  ]),
474
411
  key: "3"
475
412
  } : void 0,
476
- t(y)("actions") ? {
413
+ t(_)("actions") ? {
477
414
  name: "actions",
478
415
  fn: l(() => [
479
- d(a.$slots, "actions", {}, void 0, !0)
416
+ c(o.$slots, "actions", {}, void 0, !0)
480
417
  ]),
481
418
  key: "4"
482
419
  } : void 0
@@ -489,16 +426,16 @@ const ne = {
489
426
  ], 46, Ye)
490
427
  ]));
491
428
  }
492
- }), ct = /* @__PURE__ */ oe(qe, [["__scopeId", "data-v-55c8c255"]]);
429
+ }), dt = /* @__PURE__ */ oe(qe, [["__scopeId", "data-v-55c8c255"]]);
493
430
  export {
494
- Ke as B,
495
- Ge as a,
496
- we as b,
497
- R as c,
498
- k as d,
499
- W as e,
500
- Re as f,
501
- $e as g,
502
- ct as h
431
+ Ge as B,
432
+ we as a,
433
+ R as b,
434
+ k as c,
435
+ W as d,
436
+ Re as e,
437
+ $e as f,
438
+ Ke as g,
439
+ dt as h
503
440
  };
504
- //# sourceMappingURL=base-modal.DzJrvis_.js.map
441
+ //# sourceMappingURL=base-modal.C3_r3rmc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-modal.C3_r3rmc.js","sources":["../../../vue2/src/components/modal/modal.types.ts","../../../vue2/src/components/modal/modal.keys.ts","../../../vue2/src/components/modal/components/modal-page/modal-page.vue","../../../vue2/src/components/modal/components/base-modal/base-modal.vue"],"sourcesContent":["import { ComputedRef, Ref } from 'vue';\n\n/**\n * Public\n */\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoModalVariant {\n DEFAULT = 'default',\n DIALOG = 'dialog',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoModalVariantMapping {\n DEFAULT = 'BentoModalDefault',\n DIALOG = 'BentoModalDialog',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoModalSize {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoModalColumnLayoutVariant {\n SMALLER = 'smaller',\n EQUAL = 'equal',\n BIGGER = 'bigger',\n}\n\nexport enum BentoModalRole {\n DIALOG = 'dialog',\n ALERT_DIALOG = 'alertdialog',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoModalDialogType {\n CONFIRMATION = 'confirmation',\n DESTRUCTIVE = 'destructive',\n INFO = 'info',\n ACKNOWLEDGEMENT = 'acknowledgement',\n}\n\nexport enum BentoModalEvent {\n CLOSE_MODAL = 'close-modal',\n}\n\n/**\n * Private\n */\nexport interface BentoModalConfigData {\n activePage: Ref<string>;\n height: Ref<string>;\n isAnimationActive: Ref<boolean>;\n pageCustomPadding: Ref<string>;\n showCloseButton: ComputedRef<boolean>;\n size: Ref<BentoModalSize | `${BentoModalSize}`>;\n}\n","export const MODAL_CONFIG_INJECTION_KEY = Symbol('modal config data injection key');\n","<template>\n <dialog-page\n ref=\"page\"\n class=\"b-modal-page\"\n :class=\"modalPageConditionalClasses\"\n :page-id=\"pageId\"\n :always-show-border=\"hasColumnLayout\"\n :back-button-styling=\"customPaddingStyles?.backButton\"\n :previous-page=\"previousPage\"\n @animationend=\"isAnimationActive = false\"\n >\n <template v-if=\"hasSlot('default') || showCloseButton\" #header>\n <div class=\"b-modal-page__header-container\" :style=\"customPaddingStyles.header\">\n <div class=\"b-modal-page__header\">\n <bento-typography class=\"b-modal-page__title\" el=\"span\" variant=\"title\" stronger>\n <slot v-if=\"hasSlot('default')\" />\n </bento-typography>\n </div>\n </div>\n </template>\n\n <template #content>\n <div\n class=\"b-modal-page__content\"\n :class=\"modalContentConditionalClasses\"\n :style=\"customPaddingStyles.content\"\n >\n <bento-typography\n v-if=\"hasSlot('content') || (hasSlot('content-col-1') && hasSlot('content-col-2'))\"\n el=\"div\"\n >\n <grid-layout\n v-if=\"hasColumnLayout\"\n :column-width=\"computedColumnWidth\"\n :container-type=\"GridLayoutContainerType.NORMAL\"\n no-gap\n class=\"b-modal-page__grid\"\n >\n <template #col-1><slot name=\"content-col-1\"></slot></template>\n <template #col-2><slot name=\"content-col-2\"></slot></template>\n </grid-layout>\n <slot v-else name=\"content\" />\n </bento-typography>\n </div>\n </template>\n <template v-if=\"hasSlot('actions')\" #footer>\n <div class=\"b-modal-page__actions-container\" :style=\"customPaddingStyles.actions\">\n <div aria-label=\"modal actions\" class=\"b-modal-page__actions\">\n <slot name=\"actions\" />\n </div>\n </div>\n </template>\n <template v-else-if=\"actions && actions.length > 0\" #footer>\n <div class=\"b-modal-page__actions-container\" :style=\"customPaddingStyles.actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </div>\n </template>\n </dialog-page>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, inject, nextTick, onUnmounted, ref, useSlots, watch } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n BentoModalConfigData,\n BentoModalSize,\n } from '@/components/modal/modal.types';\n import { BentoTypography } from '@/components/typography';\n import { GridLayout, GridLayoutContainerType } from '@/internal';\n import { useHasSlot } from '@/composables';\n\n import { FooterActions } from '@/components/internal/footer-actions';\n\n import DialogPage from '@/internal/dialog-page/dialog-page.vue';\n import { MODAL_CONFIG_INJECTION_KEY } from '../../modal.keys';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n import type { BentoModalPageProps } from './modal-page.types';\n\n const CLOSE_BUTTON_ICON_WIDTH = 26;\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const page = ref<InstanceType<typeof DialogPage>>(null);\n\n const props = withDefaults(defineProps<BentoModalPageProps>(), {\n actions: null,\n actionsLabel: null,\n columnsSize: BentoModalColumnLayoutVariant.SMALLER,\n customPadding: null,\n destructiveActions: false,\n withColumnLayout: false,\n pageId: undefined,\n previousPage: undefined,\n });\n\n const modalPageConditionalClasses = computed(() => ({\n 'b-modal-page--custom-padding': props.customPadding,\n }));\n\n const modalContentConditionalClasses = computed(() => ({\n 'b-modal-page__content--with-header': hasSlot('default'),\n 'b-modal-page__content--with-actions': hasSlot('actions') || props.actions?.length,\n }));\n\n // Setting custom padding styles\n const customPaddingStyles = computed(() => {\n if (!props.customPadding) {\n return {};\n }\n\n const xPadding = {\n paddingLeft: props.customPadding,\n paddingRight: props.customPadding,\n };\n\n const content = { ...xPadding, paddingTop: undefined, paddingBottom: undefined };\n\n if (!hasSlot('default')) {\n content.paddingTop = props.customPadding;\n }\n\n if (!hasSlot('actions')) {\n content.paddingBottom = props.customPadding;\n }\n\n return {\n header: {\n ...xPadding,\n paddingTop: props.customPadding,\n paddingRight: `${parseInt(props.customPadding, 10) + CLOSE_BUTTON_ICON_WIDTH}px`,\n flex: 1,\n },\n content,\n actions: { ...xPadding, paddingBottom: props.customPadding },\n backButton: { top: props.customPadding, paddingLeft: props.customPadding },\n };\n });\n\n // Column layout styles\n const hasColumnLayout = computed(() => props.withColumnLayout && size.value === BentoModalSize.LARGE);\n\n const computedColumnWidth = computed(() => {\n if (props.columnsSize === BentoModalColumnLayoutVariant.SMALLER) {\n return [\n { small: 4, medium: 4, large: 4 },\n { small: 8, medium: 8, large: 8 },\n ];\n }\n if (props.columnsSize === BentoModalColumnLayoutVariant.BIGGER) {\n return [\n { small: 8, medium: 8, large: 8 },\n { small: 4, medium: 4, large: 4 },\n ];\n }\n return [\n { small: 6, medium: 6, large: 6 },\n { small: 6, medium: 6, large: 6 },\n ];\n });\n\n // Register page to parent component and inject data from parent component\n const { activePage, height, isAnimationActive, pageCustomPadding, showCloseButton, size } =\n inject<BentoModalConfigData>(MODAL_CONFIG_INJECTION_KEY);\n\n const isCurrentPage = computed(() => activePage.value === props.pageId || !activePage.value);\n\n // Animation\n // Set resize observer on mount of update the height of the dialog on resize\n let pageElementObserver: ResizeObserver | null = null;\n\n // Watching activePage changes to set the height of the page and set isAnimationActive\n watch(\n () => activePage.value,\n async (value, oldValue) => {\n if (isCurrentPage.value) {\n await nextTick();\n height.value = `${page.value?.$el?.clientHeight}px`;\n pageCustomPadding.value = props.customPadding;\n // only set isAnimationActive to true if its going from two different pages and not from null to the first page\n isAnimationActive.value = oldValue !== undefined;\n\n pageElementObserver = observeSizeOfElement(page.value, () => {\n const pageHeight = `${page.value?.$el?.clientHeight}px`;\n if (pageHeight && pageHeight !== height.value) {\n height.value = pageHeight;\n }\n });\n }\n },\n { immediate: true }\n );\n\n // Disconnect observer on unmounting the page\n onUnmounted(() => {\n pageElementObserver?.disconnect();\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * ModalPage is used to render different pages of the Modal component\n *\n * @example\n * import { BentoModal, BentoModalPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModal, BentoModalPage },\n * template: `\n * <bento-modal active-page='page1' :is-open='true'>\n * <bento-modal-page\n * pageId='page1'\n * actions-label='Move to next page'\n * :actions=\"[\n * {\n * title: 'Next page',\n * event: () => {\n * activePage.value = 'page2';\n * },\n * }]\">\n * Page 1\n * <template #content>\n * Page 1 content\n * </template>\n * </bento-modal-page>\n * <bento-modal-page\n * pageId='page2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Page 2\n * <template #content>\n * Page 2 content\n * </template>\n * </bento-modal-page>\n * </bento-modal>\n * `\n * }\n */\n export default defineComponent({});\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-page.scss\" />\n","<template>\n <div class=\"b-modal-base\">\n <dialog\n ref=\"modal\"\n :role=\"modalRole\"\n :aria-label=\"computedAriaLabel\"\n :style=\"{ height: height }\"\n class=\"b-modal-base__container\"\n :class=\"modalConditionalClasses\"\n :open=\"initiallyOpen\"\n @animationend=\"closeModalAfterAnimation\"\n @keydown.esc=\"internalModalActionClose\"\n >\n <bento-focus-trap\n v-if=\"isOpen || initiallyOpen\"\n :id=\"modalId\"\n v-bento-click-outside-directive=\"closeModalOnClickOutside\"\n >\n <bento-button\n v-if=\"showCloseButton\"\n class=\"b-modal-base__close-button\"\n variant=\"tertiary\"\n type=\"button\"\n :style=\"customPaddingStyles\"\n @click=\"internalModalActionClose\"\n >\n <cross-icon :svg-title=\"t('close')\" />\n </bento-button>\n <template v-if=\"props.activePage\">\n <slot />\n </template>\n <bento-modal-page\n v-else\n :with-column-layout=\"withColumnLayout\"\n :size=\"size\"\n :custom-padding=\"customPadding\"\n :columns-size=\"columnsSize\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1\n ><slot name=\"content-col-1\"></slot\n ></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2\n ><slot name=\"content-col-2\"></slot\n ></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n <template v-if=\"hasSlot('actions')\" #actions><slot name=\"actions\"></slot></template>\n </bento-modal-page>\n </bento-focus-trap>\n </dialog>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import {\n computed,\n defineComponent,\n onMounted,\n PropType,\n provide,\n ref,\n toRefs,\n useAttrs,\n useSlots,\n watch,\n } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n BentoModalConfigData,\n BentoModalRole,\n BentoModalSize,\n } from '@/components/modal/modal.types';\n import { BentoButton, BentoButtonActionsList } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import { useHasSlot } from '@/composables';\n import { useI18n } from '@/utils/ts/i18n';\n import { MODAL_DIALOG_ID_INJECTION_KEY } from '@/components/modal/components/base-modal/base-modal.keys';\n import { generateUid } from '@/core/utils/ts';\n import { BentoClickOutsideDirective as vBentoClickOutsideDirective } from '@/directives/click-outside';\n import messages from './messages.json';\n\n import { BentoModalPage } from '@/components/modal';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { MODAL_CONFIG_INJECTION_KEY } from '../../modal.keys';\n import {\n BentoDialogPageAnimation,\n BentoDialogPageConfigData,\n BentoDialogPageRegisterPage,\n DIALOG_PAGE_CONFIG_INJECTION_KEY,\n DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,\n } from '@/internal';\n\n type MessageSchema = (typeof messages)['en-US'];\n const LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME = 500;\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const slots = useSlots();\n const attrs = useAttrs();\n const hasSlot = useHasSlot(slots);\n const modal = ref<HTMLDialogElement>(null);\n const isClosing = ref(false);\n const modalId = generateUid('modal');\n\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: 'update:active-page', page: string): void;\n /**\n * Emitted when the modal is closed.\n */\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n * But you may change the color of 1-st action to red with 'critial' key\n * Not more than 3 action buttons can be provided\n * Or 2 action buttons and 1 Label for them\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same id as the BentoModalPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n },\n\n /**\n * If provided, manages the padding of the whole modal container\n */\n customPadding: { type: String, default: null },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: { type: Boolean, default: false },\n\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: { type: Boolean, required: true },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed by clicking outside of it\n */\n isDismissible: { type: Boolean, required: true },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: { type: Boolean, required: true },\n\n /**\n * Defines whether the modal will be an alert modal\n */\n modalRole: { type: String, default: BentoModalRole.DIALOG },\n\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n default: BentoModalSize.SMALL,\n },\n\n /**\n * If provided, renders the modal's content in a two-column layout an wth dividers separating its content\n */\n withColumnLayout: { type: Boolean, default: false },\n });\n\n const showCloseButton = computed(() => props.isDismissible && !props.hideCloseButton);\n\n const pageCustomPadding = ref(props.customPadding);\n\n const customPaddingStyles = computed(() => {\n if (!pageCustomPadding.value) {\n return {};\n }\n\n return { top: pageCustomPadding.value, right: pageCustomPadding.value };\n });\n\n const computedAriaLabel = computed(() => (attrs['aria-label'] as string) ?? (t('ariaLabelFallback') as string));\n const hasColumnLayout = computed(() => props.withColumnLayout && props.size === BentoModalSize.LARGE);\n\n const openModal = (): void => {\n modal.value.showModal();\n };\n\n const emitCloseEvent = (): void => {\n emit('close-modal');\n };\n\n // Handle closing and closing animation for dialog element\n const closeModalAfterAnimation = () => {\n if (isClosing.value) {\n modal.value.close();\n if (previousPages.value[0]) {\n emit('update:active-page', previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n emitCloseEvent();\n }\n };\n\n const startCloseModalAnimation = () => {\n if (!modal.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n /**\n * If the user has pressed escape, clicked outside or clicked the close icon.\n * Needs to be called from outside, following the \"dialog.close()\" pattern,\n * when the closing event is triggered outside of the \"base-modal\"\n * component (e.g. from a closing action).\n */\n const internalModalActionClose = (event?: Event) => {\n if (event) {\n event.preventDefault();\n }\n if (!props.isDismissible && props.modalRole === BentoModalRole.DIALOG) {\n return;\n }\n startCloseModalAnimation();\n };\n\n const closeModalOnClickOutside = () => {\n if (props.isDismissible) {\n internalModalActionClose();\n }\n };\n\n const modalConditionalClasses = computed(() => ({\n [`b-modal-base__container--${props.size}`]: props.size,\n 'b-modal-base__container--hide': isClosing.value,\n 'b-modal-base__container--column-layout': hasColumnLayout.value,\n 'b-modal-base__container--animation': isAnimationActive.value,\n }));\n\n watch(\n () => [props.isOpen, modal.value],\n ([newIsOpen, newModalValue], [, oldModalValue]): void => {\n if (!newModalValue) {\n return;\n }\n\n const isFirstMutation = !oldModalValue;\n if (newIsOpen) {\n openModal();\n // add the first page to the array when the modal opens\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (!isFirstMutation) {\n startCloseModalAnimation();\n }\n }\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(startCloseModalAnimation, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME);\n }\n },\n { deep: true }\n );\n\n onMounted(() => {\n if (props.isOpen && modal.value) {\n openModal();\n }\n });\n\n /**\n * Expose methods through its 'ref'\n */\n defineExpose({\n internalModalActionClose,\n });\n\n // Let's Children components know they are inside a Modal (dialog element)\n provide(MODAL_DIALOG_ID_INJECTION_KEY, modalId);\n\n // Modal pagination\n const { activePage, isOpen, size } = toRefs(props);\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n\n const pages = ref<string[]>([]);\n const previousPages = ref([]);\n\n const updatePage = page => emit('update:active-page', page);\n\n // unregister page if removed / destroyed\n const unregisterPage = (pageIdToRemove: string) => () => {\n pages.value = pages.value?.filter(pageId => pageId !== pageIdToRemove);\n };\n\n // Provide data and function to register page to subcomponent\n const registerPage: BentoDialogPageRegisterPage = pageId => {\n if (pageId) {\n pages.value.push(pageId);\n }\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n const height = ref('');\n const isAnimationActive = ref(false);\n\n provide<BentoModalConfigData>(MODAL_CONFIG_INJECTION_KEY, {\n activePage,\n height,\n isAnimationActive,\n pageCustomPadding,\n showCloseButton,\n size,\n });\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isOpen,\n pages,\n previousPages,\n updatePage,\n });\n\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n</script>\n\n<script lang=\"ts\">\n /**\n * Dialog container. It creates a dialog HTML element for the modal to use.\n *\n * @example\n * import BaseModal from './components/base-modal/base-modal.vue';\n *\n * export default {\n * components: { BaseModal },\n * template: `\n * <base-modal\n * :hide-close-button=\"true\"\n * :is-dismissible=\"false\"\n * :is-open=\"isOpen\"\n * @close-modal=\"isOpen = false\"\n * >\n * <template #content-col-1>\n * // Content on the left side column\n * </template>\n *\n * <template #content-col-2>\n * // Content on the right side column\n * </template>\n *\n * <template v-if=\"actions\" #actions>\n * <footer-actions :actions=\"actions\" />\n * </template>\n * </base-modal>\n * `,\n * setup() {\n * const isOpen = ref(true)\n * const footerActions = [{\n * title: 'Primary action',\n * event: () => { ... }\n * }]\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'base-modal',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./base-modal.scss\" />\n"],"names":["BentoModalVariant","BentoModalVariant2","BentoModalVariantMapping","BentoModalVariantMapping2","BentoModalSize","BentoModalSize2","BentoModalColumnLayoutVariant","BentoModalColumnLayoutVariant2","BentoModalRole","BentoModalRole2","BentoModalDialogType","BentoModalDialogType2","BentoModalEvent","BentoModalEvent2","MODAL_CONFIG_INJECTION_KEY","__default__$1","defineComponent","slots","useSlots","hasSlot","useHasSlot","page","ref","props","__props","modalPageConditionalClasses","computed","modalContentConditionalClasses","_a","customPaddingStyles","xPadding","content","hasColumnLayout","size","computedColumnWidth","activePage","height","isAnimationActive","pageCustomPadding","showCloseButton","inject","isCurrentPage","pageElementObserver","watch","value","oldValue","nextTick","_b","observeSizeOfElement","pageHeight","onUnmounted","__default__","messages","t","useI18n","attrs","useAttrs","modal","isClosing","modalId","generateUid","emit","__emit","computedAriaLabel","openModal","emitCloseEvent","closeModalAfterAnimation","previousPages","startCloseModalAnimation","internalModalActionClose","event","closeModalOnClickOutside","modalConditionalClasses","newIsOpen","newModalValue","oldModalValue","onMounted","__expose","provide","MODAL_DIALOG_ID_INJECTION_KEY","isOpen","toRefs","animation","BentoDialogPageAnimation","pages","updatePage","unregisterPage","pageIdToRemove","pageId","registerPage","DIALOG_PAGE_CONFIG_INJECTION_KEY","DIALOG_PAGE_REGISTER_PAGE_IN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AAAN;AAAA,IACA,CAAA,GAGJ6C,EAAAY,IAAA;AAAA,MAAqE,YAAAvD;AAAA,MACjE,WAAA+C;AAAA,MACA,QAAAF;AAAA,MACA,OAAAI;AAAA,MACA,eAAAjB;AAAA,MACA,YAAAkB;AAAA,IACA,CAAA,GAGJP,EAAAa,IAAAF,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { ref as v, watch as b, nextTick as f, defineComponent as A, toRef as y, computed as p, provide as _, createElementBlock as B, openBlock as h, createElementVNode as w, normalizeClass as N, createVNode as k, createBlock as E, createCommentVNode as C, unref as I } from "vue";
2
- import { M as W, B as T } from "./menu.CeLJ1gIz.js";
3
- import { f as M, B as R } from "./button-actions.BwpznQ6c.js";
2
+ import { M as W, B as T } from "./menu.C-3obPGl.js";
3
+ import { f as M, B as R } from "./button-actions.CZdO9YOk.js";
4
4
  import { u as g } from "./index.FNUaPG4G.js";
5
5
  import { _ as O } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
6
  import "../assets/button-actions-with-menu.css";
@@ -88,4 +88,4 @@ const L = (m) => {
88
88
  export {
89
89
  P as B
90
90
  };
91
- //# sourceMappingURL=button-actions-with-menu.B0nWCTwZ.js.map
91
+ //# sourceMappingURL=button-actions-with-menu.DUccmaB2.js.map