@adyen/bento-vue3 1.92.0 → 1.92.2

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 (61) hide show
  1. package/dist/assets/accordion-item.css +1 -1
  2. package/dist/assets/action-bar.css +1 -1
  3. package/dist/assets/base-modal.css +1 -1
  4. package/dist/assets/button-actions.css +1 -1
  5. package/dist/assets/card.css +1 -1
  6. package/dist/assets/data-grid.css +1 -1
  7. package/dist/assets/dialog-page.css +1 -1
  8. package/dist/assets/file-uploader.css +1 -1
  9. package/dist/assets/input-field.css +1 -1
  10. package/dist/assets/inspector.css +1 -1
  11. package/dist/assets/modal-fullscreen.css +1 -1
  12. package/dist/assets/secondary-nav.css +1 -1
  13. package/dist/assets/sidepanel.css +1 -1
  14. package/dist/checkbox.js +2 -2
  15. package/dist/chunks/{checkbox-group.DawPC5Go.js → checkbox-group.CgrmMYbN.js} +2 -2
  16. package/dist/chunks/{checkbox-group.DawPC5Go.js.map → checkbox-group.CgrmMYbN.js.map} +1 -1
  17. package/dist/chunks/{checkbox.CDjMTuJk.js → checkbox.CdkqCAAL.js} +18 -18
  18. package/dist/chunks/{checkbox.CDjMTuJk.js.map → checkbox.CdkqCAAL.js.map} +1 -1
  19. package/dist/chunks/{data-grid._kCZlpR4.js → data-grid.T-FnwChG.js} +4 -4
  20. package/dist/chunks/{data-grid._kCZlpR4.js.map → data-grid.T-FnwChG.js.map} +1 -1
  21. package/dist/chunks/{date-picker.D08qIp2A.js → date-picker.hUcnFn4K.js} +2 -2
  22. package/dist/chunks/{date-picker.D08qIp2A.js.map → date-picker.hUcnFn4K.js.map} +1 -1
  23. package/dist/chunks/{date-range-picker.BXzTT4AF.js → date-range-picker.BM5gxJcL.js} +3 -3
  24. package/dist/chunks/{date-range-picker.BXzTT4AF.js.map → date-range-picker.BM5gxJcL.js.map} +1 -1
  25. package/dist/chunks/{filter-bar.gwDFNkp5.js → filter-bar.BA2Rtf_p.js} +12 -12
  26. package/dist/chunks/{filter-bar.gwDFNkp5.js.map → filter-bar.BA2Rtf_p.js.map} +1 -1
  27. package/dist/chunks/{header-with-views.CMO5q6g5.js → header-with-views.CYBBcnCP.js} +4 -4
  28. package/dist/chunks/{header-with-views.CMO5q6g5.js.map → header-with-views.CYBBcnCP.js.map} +1 -1
  29. package/dist/chunks/{input-field-password.DWR0liBW.js → input-field-password.CpRKmq4h.js} +2 -2
  30. package/dist/chunks/{input-field-password.DWR0liBW.js.map → input-field-password.CpRKmq4h.js.map} +1 -1
  31. package/dist/chunks/{input-field-phone-number.ByjukCrO.js → input-field-phone-number.BZy1o9VW.js} +2 -2
  32. package/dist/chunks/{input-field-phone-number.ByjukCrO.js.map → input-field-phone-number.BZy1o9VW.js.map} +1 -1
  33. package/dist/chunks/{input-field.FkzBZDWS.js → input-field.BseE_MT0.js} +109 -112
  34. package/dist/chunks/input-field.BseE_MT0.js.map +1 -0
  35. package/dist/chunks/{input-time.DlvANG4O.js → input-time.DAxp5Kku.js} +2 -2
  36. package/dist/chunks/{input-time.DlvANG4O.js.map → input-time.DAxp5Kku.js.map} +1 -1
  37. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js → modal.vue_vue_type_script_setup_true_lang.Bh_GY-Ah.js} +103 -110
  38. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js.map → modal.vue_vue_type_script_setup_true_lang.Bh_GY-Ah.js.map} +1 -1
  39. package/dist/chunks/{rich-text-editor.mxbLaG6q.js → rich-text-editor.CSvPpLth.js} +2 -2
  40. package/dist/chunks/{rich-text-editor.mxbLaG6q.js.map → rich-text-editor.CSvPpLth.js.map} +1 -1
  41. package/dist/chunks/{search-bar.JDkxJGjF.js → search-bar.BRf_Mf7n.js} +2 -2
  42. package/dist/chunks/{search-bar.JDkxJGjF.js.map → search-bar.BRf_Mf7n.js.map} +1 -1
  43. package/dist/chunks/{selection-card-group.DJ6FFvsA.js → selection-card-group.58XZj_SJ.js} +9 -9
  44. package/dist/chunks/{selection-card-group.DJ6FFvsA.js.map → selection-card-group.58XZj_SJ.js.map} +1 -1
  45. package/dist/data-grid.js +1 -1
  46. package/dist/date-picker.js +1 -1
  47. package/dist/date-range-picker.js +1 -1
  48. package/dist/filter-bar.js +1 -1
  49. package/dist/header-with-views.js +1 -1
  50. package/dist/index.js +15 -15
  51. package/dist/input-field-password.js +1 -1
  52. package/dist/input-field-phone-number.js +1 -1
  53. package/dist/input-field.js +1 -1
  54. package/dist/input-time.js +1 -1
  55. package/dist/modal.js +1 -1
  56. package/dist/rich-text-editor.js +1 -1
  57. package/dist/search-bar.js +1 -1
  58. package/dist/selection-card.js +1 -1
  59. package/dist/web-types.json +1 -1
  60. package/package.json +4 -4
  61. package/dist/chunks/input-field.FkzBZDWS.js.map +0 -1
@@ -1,15 +1,15 @@
1
- import { defineComponent as p, useSlots as D, onMounted as N, openBlock as v, createBlock as g, mergeProps as w, createSlots as z, unref as o, withCtx as l, renderSlot as i, createVNode as I, toRefs as K, ref as j, computed as B, createTextVNode as q, toDisplayString as U, useAttrs as F, watch as V, resolveDynamicComponent as G } from "vue";
2
- import { B as E, h as $, a as f, d as Y, e as L, g as A, f as W } from "./base-modal.C8Rsc2oO.js";
3
- import { u as k } from "./use-has-slot.CyMiImRQ.js";
4
- import { F as H } from "./footer-actions.4Qj_I3cd.js";
5
- import { b as T } from "./button.DWF7FSIw.js";
6
- import { u as J } from "./index.B875RXHM.js";
7
- import { B as P } from "./button-actions.7Oi2Ra4p.js";
8
- import { d as X } from "./typography.B3J6_tYk.js";
9
- const Q = p({
1
+ import { defineComponent as p, useSlots as w, onMounted as P, openBlock as b, createBlock as B, mergeProps as k, createSlots as z, unref as a, withCtx as i, renderSlot as s, createVNode as K, toRefs as j, ref as q, computed as O, createTextVNode as V, toDisplayString as I, useAttrs as U, resolveDynamicComponent as F } from "vue";
2
+ import { B as C, h as $, a as f, d as G, e as D, g as h, f as W } from "./base-modal.C8Rsc2oO.js";
3
+ import { u as A } from "./use-has-slot.CyMiImRQ.js";
4
+ import { F as Y } from "./footer-actions.4Qj_I3cd.js";
5
+ import { b as E } from "./button.DWF7FSIw.js";
6
+ import { u as H } from "./index.B875RXHM.js";
7
+ import { B as L } from "./button-actions.7Oi2Ra4p.js";
8
+ import { d as J } from "./typography.B3J6_tYk.js";
9
+ const X = p({
10
10
  name: "bento-modal-default"
11
- }), Z = /* @__PURE__ */ p({
12
- ...Q,
11
+ }), Q = /* @__PURE__ */ p({
12
+ ...X,
13
13
  props: {
14
14
  /**
15
15
  * List of actions that will be used to render the buttons.
@@ -64,7 +64,7 @@ const Q = p({
64
64
  */
65
65
  columnsSize: {
66
66
  type: String,
67
- default: E.SMALLER
67
+ default: C.SMALLER
68
68
  },
69
69
  /**
70
70
  * If passed - sets first button color to red
@@ -100,13 +100,13 @@ const Q = p({
100
100
  },
101
101
  emits: ["update:active-page", "close-modal"],
102
102
  setup(e, { emit: y }) {
103
- const b = D(), n = k(b), s = y, c = e, u = () => {
104
- s("close-modal");
103
+ const v = w(), o = A(v), c = y, u = e, t = () => {
104
+ c("close-modal");
105
105
  };
106
- return N(() => {
107
- if (!(n("content") || n("content-col-1") && n("content-col-2")) && !c.activePage)
106
+ return P(() => {
107
+ if (!(o("content") || o("content-col-1") && o("content-col-2")) && !u.activePage)
108
108
  throw new Error("Bento Modal default variant requires content slot or column slots");
109
- }), (t, a) => (v(), g($, w({ class: "b-modal-default" }, t.$attrs, {
109
+ }), (n, l) => (b(), B($, k({ class: "b-modal-default" }, n.$attrs, {
110
110
  actions: e.actions,
111
111
  "active-page": e.activePage,
112
112
  size: e.size,
@@ -117,42 +117,42 @@ const Q = p({
117
117
  "is-open": e.isOpen,
118
118
  "with-column-layout": e.withColumnLayout,
119
119
  "initially-open": e.initiallyOpen,
120
- "onUpdate:activePage": a[0] || (a[0] = (d) => s("update:active-page", d)),
121
- onCloseModal: u
120
+ "onUpdate:activePage": l[0] || (l[0] = (d) => c("update:active-page", d)),
121
+ onCloseModal: t
122
122
  }), z({ _: 2 }, [
123
- o(n)("default") ? {
123
+ a(o)("default") ? {
124
124
  name: "default",
125
- fn: l(() => [
126
- i(t.$slots, "default")
125
+ fn: i(() => [
126
+ s(n.$slots, "default")
127
127
  ]),
128
128
  key: "0"
129
129
  } : void 0,
130
- o(n)("content-col-1") ? {
130
+ a(o)("content-col-1") ? {
131
131
  name: "content-col-1",
132
- fn: l(() => [
133
- i(t.$slots, "content-col-1")
132
+ fn: i(() => [
133
+ s(n.$slots, "content-col-1")
134
134
  ]),
135
135
  key: "1"
136
136
  } : void 0,
137
- o(n)("content-col-2") ? {
137
+ a(o)("content-col-2") ? {
138
138
  name: "content-col-2",
139
- fn: l(() => [
140
- i(t.$slots, "content-col-2")
139
+ fn: i(() => [
140
+ s(n.$slots, "content-col-2")
141
141
  ]),
142
142
  key: "2"
143
143
  } : void 0,
144
- o(n)("content") ? {
144
+ a(o)("content") ? {
145
145
  name: "content",
146
- fn: l(() => [
147
- i(t.$slots, "content")
146
+ fn: i(() => [
147
+ s(n.$slots, "content")
148
148
  ]),
149
149
  key: "3"
150
150
  } : void 0,
151
151
  e.actions && e.actions.length > 0 ? {
152
152
  name: "actions",
153
- fn: l(() => [
154
- i(t.$slots, "actions", {}, () => [
155
- I(o(H), {
153
+ fn: i(() => [
154
+ s(n.$slots, "actions", {}, () => [
155
+ K(a(Y), {
156
156
  actions: e.actions,
157
157
  "actions-label": e.actionsLabel,
158
158
  "destructive-actions": e.destructiveActions
@@ -163,7 +163,7 @@ const Q = p({
163
163
  } : void 0
164
164
  ]), 1040, ["actions", "active-page", "size", "hide-close-button", "columns-size", "custom-padding", "is-dismissible", "is-open", "with-column-layout", "initially-open"]));
165
165
  }
166
- }), R = {
166
+ }), T = {
167
167
  "de-DE": { ok: "OK" },
168
168
  "en-GB": { ok: "OK" },
169
169
  "en-US": { ok: "OK" },
@@ -174,11 +174,11 @@ const Q = p({
174
174
  "ja-JP": { ok: "OK" },
175
175
  "pt-BR": { ok: "OK" },
176
176
  "zh-CN": { ok: "确定" }
177
- }, x = p({
178
- i18n: { messages: R },
177
+ }, Z = p({
178
+ i18n: { messages: T },
179
179
  name: "bento-modal-dialog"
180
- }), _ = /* @__PURE__ */ p({
181
- ...x,
180
+ }), x = /* @__PURE__ */ p({
181
+ ...Z,
182
182
  props: {
183
183
  /**
184
184
  * List of actions that will be used to render the buttons.
@@ -239,75 +239,75 @@ const Q = p({
239
239
  },
240
240
  emits: ["close-modal"],
241
241
  setup(e, { emit: y }) {
242
- const b = y, n = e, { t: s } = J({ messages: R }), c = D(), u = k(c), { actions: t, dialogType: a } = K(n), d = j(null), S = () => {
243
- b("close-modal");
244
- }, O = (m) => {
242
+ const v = y, o = e, { t: c } = H({ messages: T }), u = w(), t = A(u), { actions: n, dialogType: l } = j(o), d = q(null), r = () => {
243
+ v("close-modal");
244
+ }, g = (m) => {
245
245
  d.value.internalModalActionClose(m);
246
- }, r = B(() => [
246
+ }, M = O(() => [
247
247
  {
248
- title: s("ok"),
249
- event: O,
250
- variant: T.SECONDARY
248
+ title: c("ok"),
249
+ event: g,
250
+ variant: E.SECONDARY
251
251
  }
252
- ]), C = B(() => {
252
+ ]), N = O(() => {
253
253
  const m = {
254
254
  title: "Cancel",
255
- event: O
256
- }, h = t?.value?.[0];
257
- return a.value === f.DESTRUCTIVE ? h.critical = !0 : a.value === f.INFO && (h.variant = T.SECONDARY), [h, m];
258
- }), M = B(() => ({
259
- [`b-modal-dialog--${a.value}`]: a.value
255
+ event: g
256
+ }, S = n?.value?.[0];
257
+ return l.value === f.DESTRUCTIVE ? S.critical = !0 : l.value === f.INFO && (S.variant = E.SECONDARY), [S, m];
258
+ }), R = O(() => ({
259
+ [`b-modal-dialog--${l.value}`]: l.value
260
260
  }));
261
- return N(() => {
262
- if (n.activePage)
261
+ return P(() => {
262
+ if (o.activePage)
263
263
  throw new Error(
264
264
  "Bento Modal Dialog cannot contain multiple pages. Use Bento Modal default variant instead."
265
265
  );
266
- if (!u("default") || !n.content && !u("content"))
266
+ if (!t("default") || !o.content && !t("content"))
267
267
  throw new Error("Bento Modal Dialog requires header title and content");
268
- if (t?.value?.length > 1)
268
+ if (n?.value?.length > 1)
269
269
  throw new Error("Not more than 1 action button may be provided to Modal Dialog");
270
- if (a.value !== f.ACKNOWLEDGEMENT && !t?.value)
270
+ if (l.value !== f.ACKNOWLEDGEMENT && !n?.value)
271
271
  throw new Error("Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button");
272
- if (a.value === f.ACKNOWLEDGEMENT && t?.value?.length)
272
+ if (l.value === f.ACKNOWLEDGEMENT && n?.value?.length)
273
273
  throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
274
- }), (m, h) => (v(), g($, w({
274
+ }), (m, S) => (b(), B($, k({
275
275
  ref_key: "modalRef",
276
276
  ref: d,
277
- class: ["b-modal-dialog", M.value],
278
- actions: o(t),
277
+ class: ["b-modal-dialog", R.value],
278
+ actions: a(n),
279
279
  "active-page": e.activePage,
280
280
  "hide-close-button": !0,
281
281
  size: "small",
282
282
  "is-dismissible": e.isDismissible,
283
283
  "is-open": e.isOpen,
284
- "modal-role": o(Y).ALERT_DIALOG,
284
+ "modal-role": a(G).ALERT_DIALOG,
285
285
  "initially-open": e.initiallyOpen
286
- }, m.$attrs, { onCloseModal: S }), {
287
- default: l(() => [
288
- i(m.$slots, "default")
286
+ }, m.$attrs, { onCloseModal: r }), {
287
+ default: i(() => [
288
+ s(m.$slots, "default")
289
289
  ]),
290
- content: l(() => [
291
- q(U(e.content), 1)
290
+ content: i(() => [
291
+ V(I(e.content), 1)
292
292
  ]),
293
- actions: l(() => [
294
- o(a) === "acknowledgement" ? (v(), g(o(P), {
293
+ actions: i(() => [
294
+ a(l) === "acknowledgement" ? (b(), B(a(L), {
295
295
  key: 0,
296
- actions: r.value,
296
+ actions: M.value,
297
297
  layout: "buttons-end"
298
- }, null, 8, ["actions"])) : (v(), g(o(P), {
298
+ }, null, 8, ["actions"])) : (b(), B(a(L), {
299
299
  key: 1,
300
- actions: C.value,
300
+ actions: N.value,
301
301
  layout: "buttons-end"
302
302
  }, null, 8, ["actions"]))
303
303
  ]),
304
304
  _: 3
305
305
  }, 16, ["actions", "active-page", "class", "is-dismissible", "is-open", "modal-role", "initially-open"]));
306
306
  }
307
- }), ee = p({
308
- components: { BentoModalDefault: Z, BentoModalDialog: _ }
309
- }), ue = /* @__PURE__ */ p({
310
- ...ee,
307
+ }), _ = p({
308
+ components: { BentoModalDefault: Q, BentoModalDialog: x }
309
+ }), ce = /* @__PURE__ */ p({
310
+ ..._,
311
311
  __name: "modal",
312
312
  props: {
313
313
  /**
@@ -360,8 +360,8 @@ const Q = p({
360
360
  */
361
361
  columnsSize: {
362
362
  type: String,
363
- default: E.SMALLER,
364
- validator: (e) => Object.values(E).includes(e)
363
+ default: C.SMALLER,
364
+ validator: (e) => Object.values(C).includes(e)
365
365
  },
366
366
  /**
367
367
  * If provided, manages the padding of the whole modal container
@@ -403,8 +403,8 @@ const Q = p({
403
403
  */
404
404
  size: {
405
405
  type: String,
406
- default: L.SMALL,
407
- validator: (e) => Object.values(L).includes(e)
406
+ default: D.SMALL,
407
+ validator: (e) => Object.values(D).includes(e)
408
408
  },
409
409
  /**
410
410
  * Choose between default or dialog versions of modal
@@ -412,7 +412,7 @@ const Q = p({
412
412
  variant: {
413
413
  type: String,
414
414
  default: "default",
415
- validator: (e) => Object.values(W).includes(e) || Object.values(A).includes(e)
415
+ validator: (e) => Object.values(W).includes(e) || Object.values(h).includes(e)
416
416
  },
417
417
  /**
418
418
  * If provided, renders the modal's content in a two-column layout an wth dividers separating its content
@@ -421,8 +421,8 @@ const Q = p({
421
421
  },
422
422
  emits: ["update:active-page", "close-modal"],
423
423
  setup(e, { emit: y }) {
424
- const n = D(), s = k(n), c = F(), u = y, t = e, a = B(() => Object.values(A).includes(t.variant) ? t.variant : A[t.variant.toUpperCase()]), d = B(
425
- () => a.value === A.DEFAULT ? {
424
+ const v = w(), o = A(v), c = U(), u = y, t = e, n = O(() => Object.values(h).includes(t.variant) ? t.variant : h[t.variant.toUpperCase()]), l = O(
425
+ () => n.value === h.DEFAULT ? {
426
426
  activePage: t.activePage,
427
427
  hideCloseButton: t.hideCloseButton,
428
428
  size: t.size,
@@ -440,55 +440,48 @@ const Q = p({
440
440
  isDismissible: t.isDismissible ?? !1,
441
441
  ...c
442
442
  }
443
- ), S = () => {
443
+ ), d = () => {
444
444
  u("close-modal");
445
- }, O = () => {
446
- t.isOpen && S();
447
445
  };
448
- return V(
449
- () => t.actions,
450
- () => {
451
- t.actions?.[0]?.state === "success" && setTimeout(S, 500);
452
- }
453
- ), Object.keys(c).includes("overflow-visible") && X(
446
+ return Object.keys(c).includes("overflow-visible") && J(
454
447
  'BentoModal "overflow-visible" property',
455
448
  `"overflow-visible" property was made redundant. BentoModal can work correctly without the need to pass the propery.
456
449
  Remove the "overflow-visible" prop from BentoModal to remove this error.`,
457
450
  "2.0.0"
458
- ), (r, C) => (v(), g(G(a.value), w({
451
+ ), (r, g) => (b(), B(F(n.value), k({
459
452
  class: "b-modal",
460
453
  "is-open": e.isOpen,
461
454
  actions: e.actions,
462
455
  "initially-open": e.initiallyOpen
463
- }, d.value, {
464
- onCloseModal: O,
465
- "onUpdate:activePage": C[0] || (C[0] = (M) => u("update:active-page", M))
456
+ }, l.value, {
457
+ onCloseModal: d,
458
+ "onUpdate:activePage": g[0] || (g[0] = (M) => u("update:active-page", M))
466
459
  }), z({ _: 2 }, [
467
- o(s)("default") ? {
460
+ a(o)("default") ? {
468
461
  name: "default",
469
- fn: l(() => [
470
- i(r.$slots, "default")
462
+ fn: i(() => [
463
+ s(r.$slots, "default")
471
464
  ]),
472
465
  key: "0"
473
466
  } : void 0,
474
- o(s)("content-col-1") ? {
467
+ a(o)("content-col-1") ? {
475
468
  name: "content-col-1",
476
- fn: l(() => [
477
- i(r.$slots, "content-col-1")
469
+ fn: i(() => [
470
+ s(r.$slots, "content-col-1")
478
471
  ]),
479
472
  key: "1"
480
473
  } : void 0,
481
- o(s)("content-col-2") ? {
474
+ a(o)("content-col-2") ? {
482
475
  name: "content-col-2",
483
- fn: l(() => [
484
- i(r.$slots, "content-col-2")
476
+ fn: i(() => [
477
+ s(r.$slots, "content-col-2")
485
478
  ]),
486
479
  key: "2"
487
480
  } : void 0,
488
- o(s)("content") ? {
481
+ a(o)("content") ? {
489
482
  name: "content",
490
- fn: l(() => [
491
- i(r.$slots, "content")
483
+ fn: i(() => [
484
+ s(r.$slots, "content")
492
485
  ]),
493
486
  key: "3"
494
487
  } : void 0
@@ -496,6 +489,6 @@ const Q = p({
496
489
  }
497
490
  });
498
491
  export {
499
- ue as _
492
+ ce as _
500
493
  };
501
- //# sourceMappingURL=modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js.map
494
+ //# sourceMappingURL=modal.vue_vue_type_script_setup_true_lang.Bh_GY-Ah.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js","sources":["../../../vue2/src/components/modal/components/modal-default/modal-default.vue","../../../vue2/src/components/modal/components/modal-dialog/modal-dialog.vue","../../../vue2/src/components/modal/modal.vue"],"sourcesContent":["<template>\n <base-modal\n class=\"b-modal-default\"\n v-bind=\"$attrs\"\n :actions=\"actions\"\n :active-page=\"activePage\"\n :size=\"size\"\n :hide-close-button=\"hideCloseButton\"\n :columns-size=\"columnsSize\"\n :custom-padding=\"customPadding\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :with-column-layout=\"withColumnLayout\"\n :initially-open=\"initiallyOpen\"\n @update:active-page=\"emit('update:active-page', $event)\"\n @close-modal=\"onCloseModal\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n\n <template v-if=\"actions && actions.length > 0\" #actions>\n <slot name=\"actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </slot>\n </template>\n </base-modal>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, onMounted, type PropType, useSlots } from 'vue';\n import { BentoModalColumnLayoutVariant, type BentoModalSize } from '@/components/modal/modal.types';\n import { useHasSlot } from '@/composables';\n import { type BentoButtonActionsList } from '@/components/button';\n import { FooterActions } from '@/components/internal/footer-actions';\n import BaseModal from '@/components/modal/components/base-modal/base-modal.vue';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\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 * Text label that is displayed left to the action buttons\n */\n actionsLabel: { type: String, default: null },\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 provided, manages the padding of the whole modal container\n */\n customPadding: { type: String, default: null },\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 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, default: false },\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 * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n required: true,\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 onCloseModal = () => {\n emit('close-modal');\n };\n\n onMounted(() => {\n if (!(hasSlot('content') || (hasSlot('content-col-1') && hasSlot('content-col-2'))) && !props.activePage) {\n throw new Error('Bento Modal default variant requires content slot or column slots');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Creates a Modal based off the `base-modal` component.\n * It allows two column modals as well as content modals.\n *\n * @example\n * import { BentoModalDefault } from '@/components/modal/components';\n *\n * export default {\n * components: { BentoModalDefault },\n * template: `\n * <bento-modal-default\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 * </bento-modal-default>\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 name: 'bento-modal-default',\n });\n</script>\n","<template>\n <base-modal\n ref=\"modalRef\"\n class=\"b-modal-dialog\"\n :actions=\"actions\"\n :active-page=\"activePage\"\n :class=\"modalDialogConditionalClasses\"\n :hide-close-button=\"true\"\n size=\"small\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :modal-role=\"BentoModalRole.ALERT_DIALOG\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"$attrs\"\n @close-modal=\"onCloseModal\"\n >\n <template #default>\n <slot></slot>\n </template>\n <template #content>\n {{ content }}\n </template>\n\n <template #actions>\n <bento-button-actions\n v-if=\"dialogType === 'acknowledgement'\"\n :actions=\"acknowledgementDialogActions\"\n layout=\"buttons-end\"\n />\n\n <bento-button-actions v-else :actions=\"dialogActions\" layout=\"buttons-end\" />\n </template>\n </base-modal>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, onMounted, type PropType, type Ref, ref, toRefs, useSlots } from 'vue';\n import { BentoModalDialogType, BentoModalRole } from '@/components/modal/modal.types';\n import { useHasSlot } from '@/composables';\n import {\n type BentoButtonActionObject,\n BentoButtonActions,\n type BentoButtonActionsList,\n BentoButtonVariant,\n } from '@/components/button';\n import { useI18n } from '@/utils/ts/i18n';\n import BaseModal from '@/components/modal/components/base-modal/base-modal.vue';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const emit = defineEmits<{\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * Only 1 action button is allowed for Modal Dialog\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * 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 * Text that is displayed in the content section of modal\n */\n content: { type: String, required: true },\n\n /**\n * Sets different action buttons styling and appearance\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n required: true,\n },\n\n /**\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 const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const { actions, dialogType } = toRefs(props);\n const modalRef: Ref<InstanceType<typeof BaseModal>> = ref(null);\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n const onCloseActionButton = (event: Event) => {\n // Calls \"base-modal\" internal function to initialize the\n // \"close\" animation and trigger the \"close\" event.\n // This follows the same \"dialog\" pattern of calling \"dialog.close()\"\n modalRef.value.internalModalActionClose(event);\n };\n\n const acknowledgementDialogActions = computed(() => [\n {\n title: t('ok') as string,\n event: onCloseActionButton,\n variant: BentoButtonVariant.SECONDARY,\n },\n ]);\n\n const dialogActions = computed(() => {\n const mandatoryCancelActionButton: BentoButtonActionObject = {\n title: 'Cancel',\n event: onCloseActionButton,\n };\n const updatedPassedActionsObject: BentoButtonActionObject = actions?.value?.[0];\n\n if (dialogType.value === BentoModalDialogType.DESTRUCTIVE) {\n updatedPassedActionsObject.critical = true;\n } else if (dialogType.value === BentoModalDialogType.INFO) {\n updatedPassedActionsObject.variant = BentoButtonVariant.SECONDARY;\n }\n\n return [updatedPassedActionsObject, mandatoryCancelActionButton];\n });\n\n const modalDialogConditionalClasses = computed(() => ({\n [`b-modal-dialog--${dialogType.value}`]: dialogType.value,\n }));\n\n onMounted(() => {\n if (props.activePage) {\n throw new Error(\n 'Bento Modal Dialog cannot contain multiple pages. Use Bento Modal default variant instead.'\n );\n }\n\n if (!hasSlot('default') || (!props.content && !hasSlot('content'))) {\n throw new Error('Bento Modal Dialog requires header title and content');\n }\n\n if (actions?.value?.length > 1) {\n throw new Error('Not more than 1 action button may be provided to Modal Dialog');\n }\n\n if (dialogType.value !== BentoModalDialogType.ACKNOWLEDGEMENT && !actions?.value) {\n throw new Error('Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button');\n }\n\n if (dialogType.value === BentoModalDialogType.ACKNOWLEDGEMENT && actions?.value?.length) {\n throw new Error('Acknowledgement Modal Dialog does not accept action buttons');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Creates a \"dialog\" type of modal.\n * These are are modals that require a deliberate user action or acknowledgement\n * (confirmations or destructive actions).\n *\n * It’s not customizable and consists of title, description label and one action.\n *\n * @example\n * import { BentoModalDialog } from '@/components/modal/components';\n *\n * export default {\n * components: { BentoModalDialog },\n * template: `\n * <bento-modal-dialog\n * dialog-type=\"destructive\"\n * :is-dismissible=\"false\"\n * :is-open=\"isOpen\"\n * @close-modal=\"isOpen = false\"\n * >\n * Dialog content\n * </bento-modal-dialog>\n * `,\n * setup() {\n * const isOpen = ref(true)\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-modal-dialog',\n });\n</script>\n","<template>\n <component\n :is=\"computedVariant\"\n class=\"b-modal\"\n :is-open=\"isOpen\"\n :actions=\"actions\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"customProps\"\n @close-modal=\"handleInternalClose\"\n @update:active-page=\"emit('update:active-page', $event)\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType, useAttrs, useSlots, watch } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n BentoModalDialogType,\n BentoModalSize,\n BentoModalVariant,\n BentoModalVariantMapping,\n } from './modal.types';\n import { BentoModalDefault, BentoModalDialog } from '@/components/modal/components';\n import { useHasSlot } from '@/composables';\n import { type BentoButtonActionsList } from '@/components/button';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME = 500;\n\n type BentoModalVariantProp = BentoModalVariant | `${BentoModalVariant}` | `${BentoModalVariantMapping}`;\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const attrs = useAttrs();\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 *\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 * Text label that is displayed left to the action buttons\n */\n actionsLabel: { type: String, default: null },\n\n /**\n * Text that will be displayed in the content section of Modal\n */\n content: { type: String, default: null },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant | `${BentoModalColumnLayoutVariant}`>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n validator: (value: BentoModalColumnLayoutVariant) =>\n Object.values(BentoModalColumnLayoutVariant).includes(value),\n },\n\n /**\n * 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 * Changes the visual styling of action buttons\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n default: BentoModalDialogType.CONFIRMATION,\n validator: (value: BentoModalDialogType) => Object.values(BentoModalDialogType).includes(value),\n },\n\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed without performing an action\n */\n isDismissible: { type: Boolean, default: null },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n default: BentoModalSize.SMALL,\n validator: (value: BentoModalSize) => Object.values(BentoModalSize).includes(value),\n },\n\n /**\n * Choose between default or dialog versions of modal\n */\n variant: {\n type: String as PropType<BentoModalVariantProp>,\n default: 'default',\n validator: (value: BentoModalVariantProp) =>\n Object.values<BentoModalVariantProp>(BentoModalVariant).includes(value) ||\n Object.values<BentoModalVariantProp>(BentoModalVariantMapping).includes(value),\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 computedVariant = computed(() => {\n if (Object.values<BentoModalVariantProp>(BentoModalVariantMapping).includes(props.variant)) {\n return props.variant;\n }\n return BentoModalVariantMapping[props.variant.toUpperCase()];\n });\n\n const customProps = computed(() =>\n computedVariant.value === BentoModalVariantMapping.DEFAULT\n ? {\n activePage: props.activePage,\n hideCloseButton: props.hideCloseButton,\n size: props.size,\n customPadding: props.customPadding,\n actionsLabel: props.actionsLabel,\n destructiveActions: props.destructiveActions,\n isDismissible: props.isDismissible ?? true,\n withColumnLayout: props.withColumnLayout,\n columnsSize: props.columnsSize,\n ...attrs,\n }\n : {\n activePage: props.activePage,\n dialogType: props.dialogType,\n content: props.content,\n isDismissible: props.isDismissible ?? false,\n ...attrs,\n }\n );\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n const handleInternalClose = () => {\n // Only emit if the modal is still open to prevent double emission from animationend\n if (props.isOpen) {\n onCloseModal();\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(onCloseModal, LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME);\n }\n }\n );\n\n if (Object.keys(attrs).includes('overflow-visible')) {\n deprecate(\n 'BentoModal \"overflow-visible\" property',\n `\"overflow-visible\" property was made redundant. BentoModal can work correctly without the need to pass the propery.\n Remove the \"overflow-visible\" prop from BentoModal to remove this error.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Modal is a window that appear over any other page content\n * and focus user attention exclusively on one task or piece of\n * information at the moment.\n *\n * @example\n * import { BentoModal } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModal },\n * template: `\n * <bento-modal :isOpen=\"true\">\n * Title of the Modal\n * <template #content>\n * Mandatory content slot\n * </template>\n * </bento-modal>\n * `\n * };\n */\n export default defineComponent({\n components: { BentoModalDefault, BentoModalDialog },\n });\n</script>\n"],"names":["defineComponent","slots","useSlots","hasSlot","useHasSlot","emit","__emit","props","__props","onCloseModal","onMounted","messages","t","useI18n","actions","dialogType","toRefs","modalRef","ref","onCloseActionButton","event","acknowledgementDialogActions","computed","BentoButtonVariant","dialogActions","mandatoryCancelActionButton","updatedPassedActionsObject","BentoModalDialogType","modalDialogConditionalClasses","BentoModalDefault","BentoModalDialog","attrs","useAttrs","computedVariant","BentoModalVariantMapping","customProps","handleInternalClose","watch","deprecate"],"mappings":";;;;;;;;AA8MI,UAAeA,EAAgB;AAAA,EAC3B,MAAM;AACV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AApKD,UAAMC,IAAQC,EAAA,GACRC,IAAUC,EAAWH,CAAK,GAC1BI,IAAOC,GAWPC,IAAQC,GAoGRC,IAAe,MAAM;AACvB,MAAAJ,EAAK,aAAa;AAAA,IACtB;AAEA,WAAAK,EAAU,MAAM;AACZ,UAAI,EAAEP,EAAQ,SAAS,KAAMA,EAAQ,eAAe,KAAKA,EAAQ,eAAe,MAAO,CAACI,EAAM;AAC1F,cAAM,IAAI,MAAM,mEAAmE;AAAA,IAE3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OCsDcP,EAAgB;AAAA,EAC3B,MAAM,EAAE,UAAAW,EAAA;AAAA,EACR,MAAM;AACV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA3KD,UAAMN,IAAOC,GAIPC,IAAQC,GAiER,EAAE,GAAAI,EAAA,IAAMC,EAAoC,EAAE,UAAAF,GAAU,GAExDV,IAAQC,EAAA,GACRC,IAAUC,EAAWH,CAAK,GAC1B,EAAE,SAAAa,GAAS,YAAAC,MAAeC,EAAOT,CAAK,GACtCU,IAAgDC,EAAI,IAAI,GAExDT,IAAe,MAAM;AACvB,MAAAJ,EAAK,aAAa;AAAA,IACtB,GAEMc,IAAsB,CAACC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;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"modal.vue_vue_type_script_setup_true_lang.Bh_GY-Ah.js","sources":["../../../vue2/src/components/modal/components/modal-default/modal-default.vue","../../../vue2/src/components/modal/components/modal-dialog/modal-dialog.vue","../../../vue2/src/components/modal/modal.vue"],"sourcesContent":["<template>\n <base-modal\n class=\"b-modal-default\"\n v-bind=\"$attrs\"\n :actions=\"actions\"\n :active-page=\"activePage\"\n :size=\"size\"\n :hide-close-button=\"hideCloseButton\"\n :columns-size=\"columnsSize\"\n :custom-padding=\"customPadding\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :with-column-layout=\"withColumnLayout\"\n :initially-open=\"initiallyOpen\"\n @update:active-page=\"emit('update:active-page', $event)\"\n @close-modal=\"onCloseModal\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n\n <template v-if=\"actions && actions.length > 0\" #actions>\n <slot name=\"actions\">\n <footer-actions\n :actions=\"actions\"\n :actions-label=\"actionsLabel\"\n :destructive-actions=\"destructiveActions\"\n />\n </slot>\n </template>\n </base-modal>\n</template>\n\n<script setup lang=\"ts\">\n import { defineComponent, onMounted, type PropType, useSlots } from 'vue';\n import { BentoModalColumnLayoutVariant, type BentoModalSize } from '@/components/modal/modal.types';\n import { useHasSlot } from '@/composables';\n import { type BentoButtonActionsList } from '@/components/button';\n import { FooterActions } from '@/components/internal/footer-actions';\n import BaseModal from '@/components/modal/components/base-modal/base-modal.vue';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\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 * Text label that is displayed left to the action buttons\n */\n actionsLabel: { type: String, default: null },\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 provided, manages the padding of the whole modal container\n */\n customPadding: { type: String, default: null },\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 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, default: false },\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 * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n required: true,\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 onCloseModal = () => {\n emit('close-modal');\n };\n\n onMounted(() => {\n if (!(hasSlot('content') || (hasSlot('content-col-1') && hasSlot('content-col-2'))) && !props.activePage) {\n throw new Error('Bento Modal default variant requires content slot or column slots');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Creates a Modal based off the `base-modal` component.\n * It allows two column modals as well as content modals.\n *\n * @example\n * import { BentoModalDefault } from '@/components/modal/components';\n *\n * export default {\n * components: { BentoModalDefault },\n * template: `\n * <bento-modal-default\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 * </bento-modal-default>\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 name: 'bento-modal-default',\n });\n</script>\n","<template>\n <base-modal\n ref=\"modalRef\"\n class=\"b-modal-dialog\"\n :actions=\"actions\"\n :active-page=\"activePage\"\n :class=\"modalDialogConditionalClasses\"\n :hide-close-button=\"true\"\n size=\"small\"\n :is-dismissible=\"isDismissible\"\n :is-open=\"isOpen\"\n :modal-role=\"BentoModalRole.ALERT_DIALOG\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"$attrs\"\n @close-modal=\"onCloseModal\"\n >\n <template #default>\n <slot></slot>\n </template>\n <template #content>\n {{ content }}\n </template>\n\n <template #actions>\n <bento-button-actions\n v-if=\"dialogType === 'acknowledgement'\"\n :actions=\"acknowledgementDialogActions\"\n layout=\"buttons-end\"\n />\n\n <bento-button-actions v-else :actions=\"dialogActions\" layout=\"buttons-end\" />\n </template>\n </base-modal>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, onMounted, type PropType, type Ref, ref, toRefs, useSlots } from 'vue';\n import { BentoModalDialogType, BentoModalRole } from '@/components/modal/modal.types';\n import { useHasSlot } from '@/composables';\n import {\n type BentoButtonActionObject,\n BentoButtonActions,\n type BentoButtonActionsList,\n BentoButtonVariant,\n } from '@/components/button';\n import { useI18n } from '@/utils/ts/i18n';\n import BaseModal from '@/components/modal/components/base-modal/base-modal.vue';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const emit = defineEmits<{\n (e: 'close-modal');\n }>();\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * Only 1 action button is allowed for Modal Dialog\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',2\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * 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 * Text that is displayed in the content section of modal\n */\n content: { type: String, required: true },\n\n /**\n * Sets different action buttons styling and appearance\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n required: true,\n },\n\n /**\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 const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const { actions, dialogType } = toRefs(props);\n const modalRef: Ref<InstanceType<typeof BaseModal>> = ref(null);\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n const onCloseActionButton = (event: Event) => {\n // Calls \"base-modal\" internal function to initialize the\n // \"close\" animation and trigger the \"close\" event.\n // This follows the same \"dialog\" pattern of calling \"dialog.close()\"\n modalRef.value.internalModalActionClose(event);\n };\n\n const acknowledgementDialogActions = computed(() => [\n {\n title: t('ok') as string,\n event: onCloseActionButton,\n variant: BentoButtonVariant.SECONDARY,\n },\n ]);\n\n const dialogActions = computed(() => {\n const mandatoryCancelActionButton: BentoButtonActionObject = {\n title: 'Cancel',\n event: onCloseActionButton,\n };\n const updatedPassedActionsObject: BentoButtonActionObject = actions?.value?.[0];\n\n if (dialogType.value === BentoModalDialogType.DESTRUCTIVE) {\n updatedPassedActionsObject.critical = true;\n } else if (dialogType.value === BentoModalDialogType.INFO) {\n updatedPassedActionsObject.variant = BentoButtonVariant.SECONDARY;\n }\n\n return [updatedPassedActionsObject, mandatoryCancelActionButton];\n });\n\n const modalDialogConditionalClasses = computed(() => ({\n [`b-modal-dialog--${dialogType.value}`]: dialogType.value,\n }));\n\n onMounted(() => {\n if (props.activePage) {\n throw new Error(\n 'Bento Modal Dialog cannot contain multiple pages. Use Bento Modal default variant instead.'\n );\n }\n\n if (!hasSlot('default') || (!props.content && !hasSlot('content'))) {\n throw new Error('Bento Modal Dialog requires header title and content');\n }\n\n if (actions?.value?.length > 1) {\n throw new Error('Not more than 1 action button may be provided to Modal Dialog');\n }\n\n if (dialogType.value !== BentoModalDialogType.ACKNOWLEDGEMENT && !actions?.value) {\n throw new Error('Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button');\n }\n\n if (dialogType.value === BentoModalDialogType.ACKNOWLEDGEMENT && actions?.value?.length) {\n throw new Error('Acknowledgement Modal Dialog does not accept action buttons');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Creates a \"dialog\" type of modal.\n * These are are modals that require a deliberate user action or acknowledgement\n * (confirmations or destructive actions).\n *\n * It’s not customizable and consists of title, description label and one action.\n *\n * @example\n * import { BentoModalDialog } from '@/components/modal/components';\n *\n * export default {\n * components: { BentoModalDialog },\n * template: `\n * <bento-modal-dialog\n * dialog-type=\"destructive\"\n * :is-dismissible=\"false\"\n * :is-open=\"isOpen\"\n * @close-modal=\"isOpen = false\"\n * >\n * Dialog content\n * </bento-modal-dialog>\n * `,\n * setup() {\n * const isOpen = ref(true)\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-modal-dialog',\n });\n</script>\n","<template>\n <component\n :is=\"computedVariant\"\n class=\"b-modal\"\n :is-open=\"isOpen\"\n :actions=\"actions\"\n :initially-open=\"initiallyOpen\"\n v-bind=\"customProps\"\n @close-modal=\"onCloseModal\"\n @update:active-page=\"emit('update:active-page', $event)\"\n >\n <template v-if=\"hasSlot('default')\" #default>\n <slot></slot>\n </template>\n <template v-if=\"hasSlot('content-col-1')\" #content-col-1><slot name=\"content-col-1\"></slot></template>\n <template v-if=\"hasSlot('content-col-2')\" #content-col-2><slot name=\"content-col-2\"></slot></template>\n <template v-if=\"hasSlot('content')\" #content><slot name=\"content\"></slot></template>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType, useAttrs, useSlots } from 'vue';\n import {\n BentoModalColumnLayoutVariant,\n BentoModalDialogType,\n BentoModalSize,\n BentoModalVariant,\n BentoModalVariantMapping,\n } from './modal.types';\n import { BentoModalDefault, BentoModalDialog } from '@/components/modal/components';\n import { useHasSlot } from '@/composables';\n import { type BentoButtonActionsList } from '@/components/button';\n import { deprecate } from '@/utils/ts/deprecate';\n\n type BentoModalVariantProp = BentoModalVariant | `${BentoModalVariant}` | `${BentoModalVariantMapping}`;\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const attrs = useAttrs();\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 *\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 * Text label that is displayed left to the action buttons\n */\n actionsLabel: { type: String, default: null },\n\n /**\n * Text that will be displayed in the content section of Modal\n */\n content: { type: String, default: null },\n\n /**\n * If a column layout is provided, it renders the respective left column width variant. This can be smaller than the second column, the same size as the second column or bigger than the second column.\n */\n columnsSize: {\n type: String as PropType<BentoModalColumnLayoutVariant | `${BentoModalColumnLayoutVariant}`>,\n default: BentoModalColumnLayoutVariant.SMALLER,\n validator: (value: BentoModalColumnLayoutVariant) =>\n Object.values(BentoModalColumnLayoutVariant).includes(value),\n },\n\n /**\n * 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 * Changes the visual styling of action buttons\n */\n dialogType: {\n type: String as PropType<BentoModalDialogType | `${BentoModalDialogType}`>,\n default: BentoModalDialogType.CONFIRMATION,\n validator: (value: BentoModalDialogType) => Object.values(BentoModalDialogType).includes(value),\n },\n\n /**\n * Hides a cross icon on the right side of the title\n */\n hideCloseButton: { type: Boolean, default: false },\n\n /**\n * If set to true, it allows the modal to be closed without performing an action\n */\n isDismissible: { type: Boolean, default: null },\n\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the open attribute on the dialog element, use isOpen instead to toggle modal visbility.\n */\n initiallyOpen: { type: Boolean, default: false },\n\n /**\n * Sets the width of the modal\n */\n size: {\n type: String as PropType<BentoModalSize | `${BentoModalSize}`>,\n default: BentoModalSize.SMALL,\n validator: (value: BentoModalSize) => Object.values(BentoModalSize).includes(value),\n },\n\n /**\n * Choose between default or dialog versions of modal\n */\n variant: {\n type: String as PropType<BentoModalVariantProp>,\n default: 'default',\n validator: (value: BentoModalVariantProp) =>\n Object.values<BentoModalVariantProp>(BentoModalVariant).includes(value) ||\n Object.values<BentoModalVariantProp>(BentoModalVariantMapping).includes(value),\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 computedVariant = computed(() => {\n if (Object.values<BentoModalVariantProp>(BentoModalVariantMapping).includes(props.variant)) {\n return props.variant;\n }\n return BentoModalVariantMapping[props.variant.toUpperCase()];\n });\n\n const customProps = computed(() =>\n computedVariant.value === BentoModalVariantMapping.DEFAULT\n ? {\n activePage: props.activePage,\n hideCloseButton: props.hideCloseButton,\n size: props.size,\n customPadding: props.customPadding,\n actionsLabel: props.actionsLabel,\n destructiveActions: props.destructiveActions,\n isDismissible: props.isDismissible ?? true,\n withColumnLayout: props.withColumnLayout,\n columnsSize: props.columnsSize,\n ...attrs,\n }\n : {\n activePage: props.activePage,\n dialogType: props.dialogType,\n content: props.content,\n isDismissible: props.isDismissible ?? false,\n ...attrs,\n }\n );\n\n const onCloseModal = () => {\n emit('close-modal');\n };\n\n if (Object.keys(attrs).includes('overflow-visible')) {\n deprecate(\n 'BentoModal \"overflow-visible\" property',\n `\"overflow-visible\" property was made redundant. BentoModal can work correctly without the need to pass the propery.\n Remove the \"overflow-visible\" prop from BentoModal to remove this error.`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Modal is a window that appear over any other page content\n * and focus user attention exclusively on one task or piece of\n * information at the moment.\n *\n * @example\n * import { BentoModal } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModal },\n * template: `\n * <bento-modal :isOpen=\"true\">\n * Title of the Modal\n * <template #content>\n * Mandatory content slot\n * </template>\n * </bento-modal>\n * `\n * };\n */\n export default defineComponent({\n components: { BentoModalDefault, BentoModalDialog },\n });\n</script>\n"],"names":["defineComponent","slots","useSlots","hasSlot","useHasSlot","emit","__emit","props","__props","onCloseModal","onMounted","messages","t","useI18n","actions","dialogType","toRefs","modalRef","ref","onCloseActionButton","event","acknowledgementDialogActions","computed","BentoButtonVariant","dialogActions","mandatoryCancelActionButton","updatedPassedActionsObject","BentoModalDialogType","modalDialogConditionalClasses","BentoModalDefault","BentoModalDialog","attrs","useAttrs","computedVariant","BentoModalVariantMapping","customProps","deprecate"],"mappings":";;;;;;;;AA8MI,UAAeA,EAAgB;AAAA,EAC3B,MAAM;AACV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AApKD,UAAMC,IAAQC,EAAA,GACRC,IAAUC,EAAWH,CAAK,GAC1BI,IAAOC,GAWPC,IAAQC,GAoGRC,IAAe,MAAM;AACvB,MAAAJ,EAAK,aAAa;AAAA,IACtB;AAEA,WAAAK,EAAU,MAAM;AACZ,UAAI,EAAEP,EAAQ,SAAS,KAAMA,EAAQ,eAAe,KAAKA,EAAQ,eAAe,MAAO,CAACI,EAAM;AAC1F,cAAM,IAAI,MAAM,mEAAmE;AAAA,IAE3F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OCsDcP,EAAgB;AAAA,EAC3B,MAAM,EAAE,UAAAW,EAAA;AAAA,EACR,MAAM;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B,MAAAJ,EAAK,aAAa;AAAA,IACtB;AAEA,WAAI,OAAO,KAAK0B,CAAK,EAAE,SAAS,kBAAkB,KAC9CK;AAAA,MACI;AAAA,MACA;AAAA;AAAA,MAEA;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -4,7 +4,7 @@ import { B as sr } from "./segmented-control.CQWOO1-J.js";
4
4
  import { B as cr } from "./alert.RD0qOLhx.js";
5
5
  import { _ as Fe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
6
  import { B as fr } from "./link.D6D6YGsN.js";
7
- import { B as hr } from "./checkbox.CDjMTuJk.js";
7
+ import { B as hr } from "./checkbox.CdkqCAAL.js";
8
8
  import { u as pr } from "./index.B875RXHM.js";
9
9
  import { u as mr } from "./aria-label.CaUURpnB.js";
10
10
  import { g as Re } from "./generate-uid.DBWe4g6T.js";
@@ -6220,4 +6220,4 @@ const no = {
6220
6220
  export {
6221
6221
  wo as r
6222
6222
  };
6223
- //# sourceMappingURL=rich-text-editor.mxbLaG6q.js.map
6223
+ //# sourceMappingURL=rich-text-editor.CSvPpLth.js.map