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