@adyen/bento-vue2 1.92.1 → 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.
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/chunks/{data-grid.Bl9uIuud.js → data-grid.CJzEtn4Q.js} +2 -2
- package/dist/chunks/{data-grid.Bl9uIuud.js.map → data-grid.CJzEtn4Q.js.map} +1 -1
- package/dist/chunks/{filter-bar.BsasuEa_.js → filter-bar.C5NxhUhF.js} +2 -2
- package/dist/chunks/{filter-bar.BsasuEa_.js.map → filter-bar.C5NxhUhF.js.map} +1 -1
- package/dist/chunks/{header-with-views.BQovAN1f.js → header-with-views.DKD7O8pU.js} +2 -2
- package/dist/chunks/{header-with-views.BQovAN1f.js.map → header-with-views.DKD7O8pU.js.map} +1 -1
- package/dist/chunks/{modal.BXxwn9H4.js → modal.B6n5AWs2.js} +105 -113
- package/dist/chunks/{modal.BXxwn9H4.js.map → modal.B6n5AWs2.js.map} +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +4 -4
- package/dist/modal.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as d, useSlots as
|
|
2
|
-
import { B, h as
|
|
3
|
-
import { u as
|
|
1
|
+
import { defineComponent as d, useSlots as v, onMounted as M, toRefs as k, ref as E, computed as p, useAttrs as L } from "vue";
|
|
2
|
+
import { B as _, h as C, a as c, d as P, e as h, g as m, f as x } from "./base-modal.DMdzcBrq.js";
|
|
3
|
+
import { u as g } from "./use-has-slot.C9lQZ6nz.js";
|
|
4
4
|
import { F as R } from "./footer-actions.D9mHwk5l.js";
|
|
5
|
-
import { n as
|
|
6
|
-
import { b as
|
|
5
|
+
import { n as B } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
+
import { b as S } from "./button.C9b2AC9w.js";
|
|
7
7
|
import { u as z } from "./index.B6WW_F-J.js";
|
|
8
|
-
import { B as
|
|
9
|
-
import { d as
|
|
10
|
-
const
|
|
8
|
+
import { B as T } from "./button-actions.CXD6_9qN.js";
|
|
9
|
+
import { d as N } from "./typography.C8lPlsbD.js";
|
|
10
|
+
const $ = d({
|
|
11
11
|
name: "bento-modal-default"
|
|
12
|
-
}),
|
|
13
|
-
|
|
12
|
+
}), K = /* @__PURE__ */ d({
|
|
13
|
+
...$,
|
|
14
14
|
props: {
|
|
15
15
|
/**
|
|
16
16
|
* List of actions that will be used to render the buttons.
|
|
@@ -65,7 +65,7 @@ const K = d({
|
|
|
65
65
|
*/
|
|
66
66
|
columnsSize: {
|
|
67
67
|
type: String,
|
|
68
|
-
default:
|
|
68
|
+
default: _.SMALLER
|
|
69
69
|
},
|
|
70
70
|
/**
|
|
71
71
|
* If passed - sets first button color to red
|
|
@@ -100,42 +100,42 @@ const K = d({
|
|
|
100
100
|
withColumnLayout: { type: Boolean, default: !1 }
|
|
101
101
|
},
|
|
102
102
|
emits: ["update:active-page", "close-modal"],
|
|
103
|
-
setup(
|
|
104
|
-
const
|
|
103
|
+
setup(n, { emit: t }) {
|
|
104
|
+
const o = n, e = v(), l = g(e), s = () => {
|
|
105
105
|
t("close-modal");
|
|
106
106
|
};
|
|
107
|
-
return
|
|
108
|
-
if (!(l("content") || l("content-col-1") && l("content-col-2")) && !
|
|
107
|
+
return M(() => {
|
|
108
|
+
if (!(l("content") || l("content-col-1") && l("content-col-2")) && !o.activePage)
|
|
109
109
|
throw new Error("Bento Modal default variant requires content slot or column slots");
|
|
110
|
-
}), { __sfc: !0, slots:
|
|
110
|
+
}), { __sfc: !0, slots: e, hasSlot: l, emit: t, props: o, onCloseModal: s, FooterActions: R, BaseModal: C };
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
var
|
|
114
|
-
var t = this,
|
|
115
|
-
return e
|
|
116
|
-
return
|
|
117
|
-
}, "close-modal":
|
|
113
|
+
var F = function() {
|
|
114
|
+
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
115
|
+
return o(e.BaseModal, t._b({ staticClass: "b-modal-default", attrs: { actions: t.actions, "active-page": t.activePage, size: t.size, "hide-close-button": t.hideCloseButton, "columns-size": t.columnsSize, "custom-padding": t.customPadding, "is-dismissible": t.isDismissible, "is-open": t.isOpen, "with-column-layout": t.withColumnLayout, "initially-open": t.initiallyOpen }, on: { "update:active-page": function(l) {
|
|
116
|
+
return e.emit("update:active-page", l);
|
|
117
|
+
}, "close-modal": e.onCloseModal }, scopedSlots: t._u([e.hasSlot("default") ? { key: "default", fn: function() {
|
|
118
118
|
return [t._t("default")];
|
|
119
|
-
}, proxy: !0 } : null,
|
|
119
|
+
}, proxy: !0 } : null, e.hasSlot("content-col-1") ? { key: "content-col-1", fn: function() {
|
|
120
120
|
return [t._t("content-col-1")];
|
|
121
|
-
}, proxy: !0 } : null,
|
|
121
|
+
}, proxy: !0 } : null, e.hasSlot("content-col-2") ? { key: "content-col-2", fn: function() {
|
|
122
122
|
return [t._t("content-col-2")];
|
|
123
|
-
}, proxy: !0 } : null,
|
|
123
|
+
}, proxy: !0 } : null, e.hasSlot("content") ? { key: "content", fn: function() {
|
|
124
124
|
return [t._t("content")];
|
|
125
125
|
}, proxy: !0 } : null, t.actions && t.actions.length > 0 ? { key: "actions", fn: function() {
|
|
126
126
|
return [t._t("actions", function() {
|
|
127
|
-
return [e
|
|
127
|
+
return [o(e.FooterActions, { attrs: { actions: t.actions, "actions-label": t.actionsLabel, "destructive-actions": t.destructiveActions } })];
|
|
128
128
|
})];
|
|
129
129
|
}, proxy: !0 } : null], null, !0) }, "base-modal", t.$attrs, !1));
|
|
130
|
-
}, j = [], q = /* @__PURE__ */
|
|
130
|
+
}, j = [], q = /* @__PURE__ */ B(
|
|
131
|
+
K,
|
|
131
132
|
F,
|
|
132
|
-
I,
|
|
133
133
|
j,
|
|
134
134
|
!1,
|
|
135
135
|
null,
|
|
136
136
|
null
|
|
137
137
|
);
|
|
138
|
-
const
|
|
138
|
+
const I = q.exports, V = {
|
|
139
139
|
"de-DE": {
|
|
140
140
|
ok: "OK"
|
|
141
141
|
},
|
|
@@ -166,11 +166,11 @@ const V = q.exports, G = {
|
|
|
166
166
|
"zh-CN": {
|
|
167
167
|
ok: "确定"
|
|
168
168
|
}
|
|
169
|
-
},
|
|
170
|
-
i18n: { messages:
|
|
169
|
+
}, G = d({
|
|
170
|
+
i18n: { messages: V },
|
|
171
171
|
name: "bento-modal-dialog"
|
|
172
|
-
}),
|
|
173
|
-
...
|
|
172
|
+
}), U = /* @__PURE__ */ d({
|
|
173
|
+
...G,
|
|
174
174
|
props: {
|
|
175
175
|
/**
|
|
176
176
|
* List of actions that will be used to render the buttons.
|
|
@@ -230,65 +230,65 @@ const V = q.exports, G = {
|
|
|
230
230
|
isOpen: { type: Boolean, required: !0 }
|
|
231
231
|
},
|
|
232
232
|
emits: ["close-modal"],
|
|
233
|
-
setup(
|
|
234
|
-
const
|
|
233
|
+
setup(n, { emit: t }) {
|
|
234
|
+
const o = n, { t: e } = z(), l = v(), s = g(l), { actions: a, dialogType: i } = k(o), f = E(null), O = () => {
|
|
235
235
|
t("close-modal");
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
},
|
|
236
|
+
}, y = (r) => {
|
|
237
|
+
f.value.internalModalActionClose(r);
|
|
238
|
+
}, A = p(() => [
|
|
239
239
|
{
|
|
240
|
-
title:
|
|
241
|
-
event:
|
|
242
|
-
variant:
|
|
240
|
+
title: e("ok"),
|
|
241
|
+
event: y,
|
|
242
|
+
variant: S.SECONDARY
|
|
243
243
|
}
|
|
244
|
-
]),
|
|
245
|
-
var
|
|
244
|
+
]), w = p(() => {
|
|
245
|
+
var b;
|
|
246
246
|
const r = {
|
|
247
247
|
title: "Cancel",
|
|
248
|
-
event:
|
|
249
|
-
}, u = (
|
|
250
|
-
return
|
|
251
|
-
}),
|
|
252
|
-
[`b-modal-dialog--${
|
|
248
|
+
event: y
|
|
249
|
+
}, u = (b = a == null ? void 0 : a.value) == null ? void 0 : b[0];
|
|
250
|
+
return i.value === c.DESTRUCTIVE ? u.critical = !0 : i.value === c.INFO && (u.variant = S.SECONDARY), [u, r];
|
|
251
|
+
}), D = p(() => ({
|
|
252
|
+
[`b-modal-dialog--${i.value}`]: i.value
|
|
253
253
|
}));
|
|
254
|
-
return
|
|
254
|
+
return M(() => {
|
|
255
255
|
var r, u;
|
|
256
|
-
if (
|
|
256
|
+
if (o.activePage)
|
|
257
257
|
throw new Error(
|
|
258
258
|
"Bento Modal Dialog cannot contain multiple pages. Use Bento Modal default variant instead."
|
|
259
259
|
);
|
|
260
|
-
if (!
|
|
260
|
+
if (!s("default") || !o.content && !s("content"))
|
|
261
261
|
throw new Error("Bento Modal Dialog requires header title and content");
|
|
262
|
-
if (((r =
|
|
262
|
+
if (((r = a == null ? void 0 : a.value) == null ? void 0 : r.length) > 1)
|
|
263
263
|
throw new Error("Not more than 1 action button may be provided to Modal Dialog");
|
|
264
|
-
if (
|
|
264
|
+
if (i.value !== c.ACKNOWLEDGEMENT && !(a != null && a.value))
|
|
265
265
|
throw new Error("Modal Dialog, except ACKNOWLEDGEMENT type, always has to contain one action button");
|
|
266
|
-
if (
|
|
266
|
+
if (i.value === c.ACKNOWLEDGEMENT && ((u = a == null ? void 0 : a.value) != null && u.length))
|
|
267
267
|
throw new Error("Acknowledgement Modal Dialog does not accept action buttons");
|
|
268
|
-
}), { __sfc: !0, emit: t, props:
|
|
268
|
+
}), { __sfc: !0, emit: t, props: o, t: e, slots: l, hasSlot: s, actions: a, dialogType: i, modalRef: f, onCloseModal: O, onCloseActionButton: y, acknowledgementDialogActions: A, dialogActions: w, modalDialogConditionalClasses: D, BentoModalRole: P, BentoButtonActions: T, BaseModal: C };
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
|
-
var
|
|
272
|
-
var t = this,
|
|
273
|
-
return e
|
|
271
|
+
var W = function() {
|
|
272
|
+
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
273
|
+
return o(e.BaseModal, t._b({ ref: "modalRef", staticClass: "b-modal-dialog", class: e.modalDialogConditionalClasses, attrs: { actions: e.actions, "active-page": t.activePage, "hide-close-button": !0, size: "small", "is-dismissible": t.isDismissible, "is-open": t.isOpen, "modal-role": e.BentoModalRole.ALERT_DIALOG, "initially-open": t.initiallyOpen }, on: { "close-modal": e.onCloseModal }, scopedSlots: t._u([{ key: "default", fn: function() {
|
|
274
274
|
return [t._t("default")];
|
|
275
275
|
}, proxy: !0 }, { key: "content", fn: function() {
|
|
276
276
|
return [t._v(" " + t._s(t.content) + " ")];
|
|
277
277
|
}, proxy: !0 }, { key: "actions", fn: function() {
|
|
278
|
-
return [
|
|
278
|
+
return [e.dialogType === "acknowledgement" ? o(e.BentoButtonActions, { attrs: { actions: e.acknowledgementDialogActions, layout: "buttons-end" } }) : o(e.BentoButtonActions, { attrs: { actions: e.dialogActions, layout: "buttons-end" } })];
|
|
279
279
|
}, proxy: !0 }], null, !0) }, "base-modal", t.$attrs, !1));
|
|
280
|
-
},
|
|
280
|
+
}, Y = [], H = /* @__PURE__ */ B(
|
|
281
|
+
U,
|
|
281
282
|
W,
|
|
282
283
|
Y,
|
|
283
|
-
H,
|
|
284
284
|
!1,
|
|
285
285
|
null,
|
|
286
286
|
null
|
|
287
287
|
);
|
|
288
|
-
const
|
|
289
|
-
components: { BentoModalDefault:
|
|
290
|
-
}),
|
|
291
|
-
...
|
|
288
|
+
const J = H.exports, X = d({
|
|
289
|
+
components: { BentoModalDefault: I, BentoModalDialog: J }
|
|
290
|
+
}), Q = /* @__PURE__ */ d({
|
|
291
|
+
...X,
|
|
292
292
|
__name: "modal",
|
|
293
293
|
props: {
|
|
294
294
|
/**
|
|
@@ -341,8 +341,8 @@ const X = J.exports, Q = d({
|
|
|
341
341
|
*/
|
|
342
342
|
columnsSize: {
|
|
343
343
|
type: String,
|
|
344
|
-
default:
|
|
345
|
-
validator: (
|
|
344
|
+
default: _.SMALLER,
|
|
345
|
+
validator: (n) => Object.values(_).includes(n)
|
|
346
346
|
},
|
|
347
347
|
/**
|
|
348
348
|
* If provided, manages the padding of the whole modal container
|
|
@@ -358,7 +358,7 @@ const X = J.exports, Q = d({
|
|
|
358
358
|
dialogType: {
|
|
359
359
|
type: String,
|
|
360
360
|
default: c.CONFIRMATION,
|
|
361
|
-
validator: (
|
|
361
|
+
validator: (n) => Object.values(c).includes(n)
|
|
362
362
|
},
|
|
363
363
|
/**
|
|
364
364
|
* Hides a cross icon on the right side of the title
|
|
@@ -384,8 +384,8 @@ const X = J.exports, Q = d({
|
|
|
384
384
|
*/
|
|
385
385
|
size: {
|
|
386
386
|
type: String,
|
|
387
|
-
default:
|
|
388
|
-
validator: (
|
|
387
|
+
default: h.SMALL,
|
|
388
|
+
validator: (n) => Object.values(h).includes(n)
|
|
389
389
|
},
|
|
390
390
|
/**
|
|
391
391
|
* Choose between default or dialog versions of modal
|
|
@@ -393,7 +393,7 @@ const X = J.exports, Q = d({
|
|
|
393
393
|
variant: {
|
|
394
394
|
type: String,
|
|
395
395
|
default: "default",
|
|
396
|
-
validator: (
|
|
396
|
+
validator: (n) => Object.values(x).includes(n) || Object.values(m).includes(n)
|
|
397
397
|
},
|
|
398
398
|
/**
|
|
399
399
|
* If provided, renders the modal's content in a two-column layout an wth dividers separating its content
|
|
@@ -401,68 +401,60 @@ const X = J.exports, Q = d({
|
|
|
401
401
|
withColumnLayout: { type: Boolean, default: !1 }
|
|
402
402
|
},
|
|
403
403
|
emits: ["update:active-page", "close-modal"],
|
|
404
|
-
setup(
|
|
405
|
-
const
|
|
406
|
-
() =>
|
|
407
|
-
activePage:
|
|
408
|
-
hideCloseButton:
|
|
409
|
-
size:
|
|
410
|
-
customPadding:
|
|
411
|
-
actionsLabel:
|
|
412
|
-
destructiveActions:
|
|
413
|
-
isDismissible:
|
|
414
|
-
withColumnLayout:
|
|
415
|
-
columnsSize:
|
|
416
|
-
...
|
|
404
|
+
setup(n, { emit: t }) {
|
|
405
|
+
const o = n, e = v(), l = g(e), s = L(), a = p(() => Object.values(m).includes(o.variant) ? o.variant : m[o.variant.toUpperCase()]), i = p(
|
|
406
|
+
() => a.value === m.DEFAULT ? {
|
|
407
|
+
activePage: o.activePage,
|
|
408
|
+
hideCloseButton: o.hideCloseButton,
|
|
409
|
+
size: o.size,
|
|
410
|
+
customPadding: o.customPadding,
|
|
411
|
+
actionsLabel: o.actionsLabel,
|
|
412
|
+
destructiveActions: o.destructiveActions,
|
|
413
|
+
isDismissible: o.isDismissible ?? !0,
|
|
414
|
+
withColumnLayout: o.withColumnLayout,
|
|
415
|
+
columnsSize: o.columnsSize,
|
|
416
|
+
...s
|
|
417
417
|
} : {
|
|
418
|
-
activePage:
|
|
419
|
-
dialogType:
|
|
420
|
-
content:
|
|
421
|
-
isDismissible:
|
|
422
|
-
...
|
|
418
|
+
activePage: o.activePage,
|
|
419
|
+
dialogType: o.dialogType,
|
|
420
|
+
content: o.content,
|
|
421
|
+
isDismissible: o.isDismissible ?? !1,
|
|
422
|
+
...s
|
|
423
423
|
}
|
|
424
|
-
),
|
|
424
|
+
), f = () => {
|
|
425
425
|
t("close-modal");
|
|
426
|
-
}, f = () => {
|
|
427
|
-
e.isOpen && p();
|
|
428
426
|
};
|
|
429
|
-
return
|
|
430
|
-
() => e.actions,
|
|
431
|
-
() => {
|
|
432
|
-
var _, v;
|
|
433
|
-
((v = (_ = e.actions) == null ? void 0 : _[0]) == null ? void 0 : v.state) === "success" && setTimeout(p, o);
|
|
434
|
-
}
|
|
435
|
-
), Object.keys(n).includes("overflow-visible") && $(
|
|
427
|
+
return Object.keys(s).includes("overflow-visible") && N(
|
|
436
428
|
'BentoModal "overflow-visible" property',
|
|
437
429
|
`"overflow-visible" property was made redundant. BentoModal can work correctly without the need to pass the propery.
|
|
438
430
|
Remove the "overflow-visible" prop from BentoModal to remove this error.`,
|
|
439
431
|
"2.0.0"
|
|
440
|
-
), { __sfc: !0,
|
|
432
|
+
), { __sfc: !0, slots: e, hasSlot: l, attrs: s, emit: t, props: o, computedVariant: a, customProps: i, onCloseModal: f };
|
|
441
433
|
}
|
|
442
434
|
});
|
|
443
|
-
var
|
|
444
|
-
var t = this,
|
|
445
|
-
return e
|
|
446
|
-
return
|
|
447
|
-
} }, scopedSlots: t._u([
|
|
435
|
+
var Z = function() {
|
|
436
|
+
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
437
|
+
return o(e.computedVariant, t._b({ tag: "component", staticClass: "b-modal", attrs: { "is-open": t.isOpen, actions: t.actions, "initially-open": t.initiallyOpen }, on: { "close-modal": e.onCloseModal, "update:active-page": function(l) {
|
|
438
|
+
return e.emit("update:active-page", l);
|
|
439
|
+
} }, scopedSlots: t._u([e.hasSlot("default") ? { key: "default", fn: function() {
|
|
448
440
|
return [t._t("default")];
|
|
449
|
-
}, proxy: !0 } : null,
|
|
441
|
+
}, proxy: !0 } : null, e.hasSlot("content-col-1") ? { key: "content-col-1", fn: function() {
|
|
450
442
|
return [t._t("content-col-1")];
|
|
451
|
-
}, proxy: !0 } : null,
|
|
443
|
+
}, proxy: !0 } : null, e.hasSlot("content-col-2") ? { key: "content-col-2", fn: function() {
|
|
452
444
|
return [t._t("content-col-2")];
|
|
453
|
-
}, proxy: !0 } : null,
|
|
445
|
+
}, proxy: !0 } : null, e.hasSlot("content") ? { key: "content", fn: function() {
|
|
454
446
|
return [t._t("content")];
|
|
455
|
-
}, proxy: !0 } : null], null, !0) }, "component",
|
|
456
|
-
},
|
|
447
|
+
}, proxy: !0 } : null], null, !0) }, "component", e.customProps, !1));
|
|
448
|
+
}, tt = [], et = /* @__PURE__ */ B(
|
|
449
|
+
Q,
|
|
457
450
|
Z,
|
|
458
451
|
tt,
|
|
459
|
-
et,
|
|
460
452
|
!1,
|
|
461
453
|
null,
|
|
462
454
|
null
|
|
463
455
|
);
|
|
464
|
-
const
|
|
456
|
+
const dt = et.exports;
|
|
465
457
|
export {
|
|
466
|
-
|
|
458
|
+
dt as B
|
|
467
459
|
};
|
|
468
|
-
//# sourceMappingURL=modal.
|
|
460
|
+
//# sourceMappingURL=modal.B6n5AWs2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.BXxwn9H4.js","sources":["../../src/components/modal/components/modal-default/modal-default.vue","../../src/components/modal/components/modal-dialog/modal-dialog.vue","../../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([\"update:active-page\", \"close-modal\"]);\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([\"close-modal\"]);\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([\"update:active-page\", \"close-modal\"]);\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":["__default__","defineComponent","slots","useSlots","hasSlot","useHasSlot","onCloseModal","emit","onMounted","props","messages","t","useI18n","actions","dialogType","toRefs","modalRef","ref","onCloseActionButton","event","acknowledgementDialogActions","computed","BentoButtonVariant","dialogActions","mandatoryCancelActionButton","updatedPassedActionsObject","_a","BentoModalDialogType","modalDialogConditionalClasses","_b","BentoModalDefault","BentoModalDialog","LOADING_BTN_CLOSE_AFTER_SUCCESS_DELAY_TIME","attrs","useAttrs","computedVariant","BentoModalVariantMapping","customProps","handleInternalClose","watch","deprecate"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"modal.B6n5AWs2.js","sources":["../../src/components/modal/components/modal-default/modal-default.vue","../../src/components/modal/components/modal-dialog/modal-dialog.vue","../../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([\"update:active-page\", \"close-modal\"]);\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([\"close-modal\"]);\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([\"update:active-page\", \"close-modal\"]);\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":["__default__","defineComponent","slots","useSlots","hasSlot","useHasSlot","onCloseModal","emit","onMounted","props","messages","t","useI18n","actions","dialogType","toRefs","modalRef","ref","onCloseActionButton","event","acknowledgementDialogActions","computed","BentoButtonVariant","dialogActions","mandatoryCancelActionButton","updatedPassedActionsObject","_a","BentoModalDialogType","modalDialogConditionalClasses","_b","BentoModalDefault","BentoModalDialog","attrs","useAttrs","computedVariant","BentoModalVariantMapping","customProps","deprecate"],"mappings":"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"}
|
package/dist/data-grid.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, d as o, a as r, b as i, c as n, e as d, f as B, g as l, h as s, i as D } from "./chunks/data-grid.
|
|
1
|
+
import { B as e, d as o, a as r, b as i, c as n, e as d, f as B, g as l, h as s, i as D } from "./chunks/data-grid.CJzEtn4Q.js";
|
|
2
2
|
export {
|
|
3
3
|
e as BentoColumnOverflow,
|
|
4
4
|
o as BentoDataGrid,
|
package/dist/filter-bar.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { a as ce } from "./chunks/anchor-scroller.DWaykZQj.js";
|
|
|
11
11
|
import { B as Te } from "./chunks/avatar.rwWPYJnt.js";
|
|
12
12
|
import { B as ye, a as xe, b as Se } from "./chunks/button.C9b2AC9w.js";
|
|
13
13
|
import { B as Ee } from "./chunks/dashed-underline.D_FhFRXM.js";
|
|
14
|
-
import { B as Ie, d as Ce, a as Me, b as De, c as Le, e as Oe, f as ve, g as Ne, h as _e, i as Pe } from "./chunks/data-grid.
|
|
14
|
+
import { B as Ie, d as Ce, a as Me, b as De, c as Le, e as Oe, f as ve, g as Ne, h as _e, i as Pe } from "./chunks/data-grid.CJzEtn4Q.js";
|
|
15
15
|
import { c as Ge, B as Re, a as ke } from "./chunks/card.Brma5kdb.js";
|
|
16
16
|
import { B as He } from "./chunks/date-picker.C9DIeaWH.js";
|
|
17
17
|
import { B as Ve } from "./chunks/date-picker.types.Ckt7zxGy.js";
|
|
@@ -29,9 +29,9 @@ import { B as xt, a as St } from "./chunks/date.B0m0sFP6.js";
|
|
|
29
29
|
import { B as Et } from "./chunks/divider.DX5gwN7p.js";
|
|
30
30
|
import { B as It, a as Ct, b as Mt, c as Dt } from "./chunks/empty-state.DMV23IZy.js";
|
|
31
31
|
import { f as Ot } from "./chunks/file-uploader.Djl0xaDN.js";
|
|
32
|
-
import { B as Nt, a as _t, b as Pt, c as At, d as Gt, u as Rt } from "./chunks/filter-bar.
|
|
32
|
+
import { B as Nt, a as _t, b as Pt, c as At, d as Gt, u as Rt } from "./chunks/filter-bar.C5NxhUhF.js";
|
|
33
33
|
import { f as Ft, a as Ht, b as wt, c as Vt } from "./chunks/form-layout-title.zZVLCyqe.js";
|
|
34
|
-
import { h as Yt } from "./chunks/header-with-views.
|
|
34
|
+
import { h as Yt } from "./chunks/header-with-views.DKD7O8pU.js";
|
|
35
35
|
import { B as zt, a as Kt, b as Wt } from "./chunks/image.C2D2hKat.js";
|
|
36
36
|
import { B as Zt } from "./chunks/info-icon.DCR42Kvm.js";
|
|
37
37
|
import { B as Jt, a as Qt, b as Xt, c as eo, d as to, e as oo } from "./chunks/input-field.BgzXEyxn.js";
|
|
@@ -45,7 +45,7 @@ import { l as Io, a as Co } from "./chunks/list-item.DqTHh8-Z.js";
|
|
|
45
45
|
import { B as Do, a as Lo } from "./chunks/loading-indicator.PxbRzshH.js";
|
|
46
46
|
import { B as vo, a as No } from "./chunks/link.DB5g6d48.js";
|
|
47
47
|
import { B as Po, a as Ao, b as Go, f as Ro, g as ko, h as Fo, c as Ho, u as wo } from "./chunks/button-actions.CXD6_9qN.js";
|
|
48
|
-
import { B as Uo } from "./chunks/modal.
|
|
48
|
+
import { B as Uo } from "./chunks/modal.B6n5AWs2.js";
|
|
49
49
|
import { B as jo, a as zo, b as Ko, c as Wo, d as qo, e as Zo, f as $o, g as Jo } from "./chunks/base-modal.DMdzcBrq.js";
|
|
50
50
|
import { m as Xo, B as ea } from "./chunks/modal-fullscreen.De6mevyD.js";
|
|
51
51
|
import { B as oa } from "./chunks/header.DyZG7qWe.js";
|
package/dist/modal.js
CHANGED
package/dist/web-types.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/bento-vue2",
|
|
3
|
-
"version": "1.92.
|
|
3
|
+
"version": "1.92.2",
|
|
4
4
|
"description": "Adyen Bento Vue2 components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"unified": "11.0.5",
|
|
52
52
|
"uuid": "11.0.5",
|
|
53
53
|
"vue-demi": "0.14.10",
|
|
54
|
-
"@adyen/bento-design-tokens": "1.92.
|
|
54
|
+
"@adyen/bento-design-tokens": "1.92.2"
|
|
55
55
|
},
|
|
56
56
|
"dependenciesMeta": {
|
|
57
57
|
"@adyen/bento-vue-i18n-demi": {
|
|
@@ -133,9 +133,9 @@
|
|
|
133
133
|
"vue-tsc": "2.2.10",
|
|
134
134
|
"zod": "3.25.35",
|
|
135
135
|
"@adyen/bento-cli": "0.10.1",
|
|
136
|
-
"@adyen/bento-vue-i18n-demi": "0.1.0",
|
|
137
|
-
"@adyen/ui-assets-icons-16": "7.9.0",
|
|
138
136
|
"@adyen/bento-core": "0.0.1",
|
|
137
|
+
"@adyen/ui-assets-icons-16": "7.9.0",
|
|
138
|
+
"@adyen/bento-vue-i18n-demi": "0.1.0",
|
|
139
139
|
"@adyen/ui-assets-payment-method-icons": "10.8.1"
|
|
140
140
|
},
|
|
141
141
|
"optionalDependencies": {
|