@adyen/bento-vue2 1.23.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/@types/index.d.ts +602 -715
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +6 -6
- package/dist/alert.js +82 -98
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/grid-layout.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/{listbox.css → use-cached-selected-values.css} +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +83 -180
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +5 -5
- package/dist/chunks/{base-button.025269d7.js → base-button.773343f6.js} +2 -2
- package/dist/chunks/{base-button.025269d7.js.map → base-button.773343f6.js.map} +1 -1
- package/dist/chunks/{base-modal.c354f456.js → base-modal.2d596e6f.js} +6 -6
- package/dist/chunks/{base-modal.c354f456.js.map → base-modal.2d596e6f.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.15d22fa3.js → button-actions-with-menu.d08d2c51.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.15d22fa3.js.map → button-actions-with-menu.d08d2c51.js.map} +1 -1
- package/dist/chunks/{button-actions.3882346f.js → button-actions.a03a672f.js} +3 -3
- package/dist/chunks/{button-actions.3882346f.js.map → button-actions.a03a672f.js.map} +1 -1
- package/dist/chunks/{button.a823da67.js → button.e5f5638f.js} +3 -3
- package/dist/chunks/{button.a823da67.js.map → button.e5f5638f.js.map} +1 -1
- package/dist/chunks/{calendar.4ba3b251.js → calendar.7d3e2db0.js} +4 -4
- package/dist/chunks/{calendar.4ba3b251.js.map → calendar.7d3e2db0.js.map} +1 -1
- package/dist/chunks/{checkbox.1edcc4c0.js → checkbox.28578383.js} +3 -3
- package/dist/chunks/{checkbox.1edcc4c0.js.map → checkbox.28578383.js.map} +1 -1
- package/dist/chunks/{controls-group.b17e40ad.js → controls-group.faa482b2.js} +3 -3
- package/dist/chunks/{controls-group.b17e40ad.js.map → controls-group.faa482b2.js.map} +1 -1
- package/dist/chunks/{copy.b20b47f9.js → copy.3c50b447.js} +4 -4
- package/dist/chunks/{copy.b20b47f9.js.map → copy.3c50b447.js.map} +1 -1
- package/dist/chunks/dialog-page.286ead53.js +133 -0
- package/dist/chunks/dialog-page.286ead53.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.537c81a2.js → dropdown-default-textbox.a1c0c0fb.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.537c81a2.js.map → dropdown-default-textbox.a1c0c0fb.js.map} +1 -1
- package/dist/chunks/dropdown.7d4a8dfc.js +775 -0
- package/dist/chunks/dropdown.7d4a8dfc.js.map +1 -0
- package/dist/chunks/{error-message.7022fa86.js → error-message.db315e68.js} +2 -2
- package/dist/chunks/{error-message.7022fa86.js.map → error-message.db315e68.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.077a5709.js → fixed-scroller.3135f86c.js} +2 -2
- package/dist/chunks/{fixed-scroller.077a5709.js.map → fixed-scroller.3135f86c.js.map} +1 -1
- package/dist/chunks/{footer-actions.1f22f86d.js → footer-actions.32891b25.js} +4 -4
- package/dist/chunks/{footer-actions.1f22f86d.js.map → footer-actions.32891b25.js.map} +1 -1
- package/dist/chunks/{index.255c82a2.js → index.30948302.js} +138 -119
- package/dist/chunks/index.30948302.js.map +1 -0
- package/dist/chunks/{index.19675c16.js → index.444d221f.js} +3 -3
- package/dist/chunks/{index.19675c16.js.map → index.444d221f.js.map} +1 -1
- package/dist/chunks/{index.0be6a210.js → index.4b6211c7.js} +27 -27
- package/dist/chunks/{index.0be6a210.js.map → index.4b6211c7.js.map} +1 -1
- package/dist/chunks/{index.9d130872.js → index.596c4d0a.js} +2 -2
- package/dist/chunks/{index.9d130872.js.map → index.596c4d0a.js.map} +1 -1
- package/dist/chunks/{index.7a59b0b8.js → index.81e509f3.js} +6 -6
- package/dist/chunks/{index.7a59b0b8.js.map → index.81e509f3.js.map} +1 -1
- package/dist/chunks/{index.f828081b.js → index.939dd5cf.js} +2 -2
- package/dist/chunks/{index.f828081b.js.map → index.939dd5cf.js.map} +1 -1
- package/dist/chunks/{index.59d76d6b.js → index.94acf214.js} +3 -3
- package/dist/chunks/{index.59d76d6b.js.map → index.94acf214.js.map} +1 -1
- package/dist/chunks/index.9536a077.js +49 -0
- package/dist/chunks/index.9536a077.js.map +1 -0
- package/dist/chunks/{index.b231f9ef.js → index.9e40ffeb.js} +2 -2
- package/dist/chunks/{index.b231f9ef.js.map → index.9e40ffeb.js.map} +1 -1
- package/dist/chunks/index.d97166c6.js +79 -0
- package/dist/chunks/index.d97166c6.js.map +1 -0
- package/dist/chunks/{index.787ded40.js → index.ec632d95.js} +6 -6
- package/dist/chunks/{index.787ded40.js.map → index.ec632d95.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.e025da67.js → listbox-option-tag.95a65534.js} +3 -3
- package/dist/chunks/{listbox-option-tag.e025da67.js.map → listbox-option-tag.95a65534.js.map} +1 -1
- package/dist/chunks/{loading-button.5de13e50.js → loading-button.e8060c04.js} +2 -2
- package/dist/chunks/{loading-button.5de13e50.js.map → loading-button.e8060c04.js.map} +1 -1
- package/dist/chunks/{payment-method.bf9e71a2.js → payment-method.564ed43a.js} +2 -2
- package/dist/chunks/{payment-method.bf9e71a2.js.map → payment-method.564ed43a.js.map} +1 -1
- package/dist/chunks/{tooltip.eb1eb37e.js → tooltip.e5deb137.js} +3 -3
- package/dist/chunks/{tooltip.eb1eb37e.js.map → tooltip.e5deb137.js.map} +1 -1
- package/dist/chunks/use-bento-toast-controller.8414d283.js +52 -0
- package/dist/chunks/use-bento-toast-controller.8414d283.js.map +1 -0
- package/dist/chunks/{listbox.f99c2f3e.js → use-cached-selected-values.3772a679.js} +510 -448
- package/dist/chunks/use-cached-selected-values.3772a679.js.map +1 -0
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +746 -705
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +19 -19
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +1104 -948
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +4 -4
- package/dist/index.js +262 -276
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +54 -48
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +31 -78
- package/dist/internal.js.map +1 -1
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +6 -6
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +62 -62
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +3 -3
- package/dist/selection-card.js +4 -4
- package/dist/sidepanel.js +52 -50
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +143 -98
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +6 -6
- package/dist/typography.js +1 -1
- package/dist/web-types.json +748 -451
- package/package.json +3 -2
- package/dist/chunks/dialog-page.3965f89e.js +0 -133
- package/dist/chunks/dialog-page.3965f89e.js.map +0 -1
- package/dist/chunks/dropdown.93a582cc.js +0 -797
- package/dist/chunks/dropdown.93a582cc.js.map +0 -1
- package/dist/chunks/index.0b534dc6.js +0 -83
- package/dist/chunks/index.0b534dc6.js.map +0 -1
- package/dist/chunks/index.255c82a2.js.map +0 -1
- package/dist/chunks/index.be6917c8.js +0 -127
- package/dist/chunks/index.be6917c8.js.map +0 -1
- package/dist/chunks/info-filled.c37e091d.js +0 -26
- package/dist/chunks/info-filled.c37e091d.js.map +0 -1
- package/dist/chunks/listbox.f99c2f3e.js.map +0 -1
- package/dist/chunks/toastController.fd667b68.js +0 -15
- package/dist/chunks/toastController.fd667b68.js.map +0 -1
package/dist/sidepanel.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import { F as
|
|
4
|
-
import { D as
|
|
5
|
-
import { n as
|
|
6
|
-
import { a as
|
|
7
|
-
import { B as
|
|
8
|
-
import { C as
|
|
9
|
-
import { S as
|
|
10
|
-
import { u as
|
|
11
|
-
import { g as
|
|
12
|
-
import "./assets/
|
|
13
|
-
const
|
|
14
|
-
|
|
1
|
+
import { defineComponent as C, toRefs as B, ref as l, computed as h, watch as k, nextTick as N, provide as v } from "vue";
|
|
2
|
+
import { B as x } from "./chunks/index.d97166c6.js";
|
|
3
|
+
import { F as G } from "./chunks/footer-actions.32891b25.js";
|
|
4
|
+
import { D as L, B as F, b as R, a as U } from "./chunks/dialog-page.286ead53.js";
|
|
5
|
+
import { n as I } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
|
+
import { a as w } from "./chunks/button.e5f5638f.js";
|
|
7
|
+
import { B as V } from "./chunks/index.596c4d0a.js";
|
|
8
|
+
import { C as J } from "./chunks/cross.04678d81.js";
|
|
9
|
+
import { S as K } from "./chunks/sidepanel.keys.1ed8a57c.js";
|
|
10
|
+
import { u as Y } from "./chunks/i18n.eb5b985b.js";
|
|
11
|
+
import { g as $ } from "./chunks/unique-id.a2a2b458.js";
|
|
12
|
+
import "./assets/index33.css";
|
|
13
|
+
const z = {}, M = /* @__PURE__ */ C({
|
|
14
|
+
...z,
|
|
15
15
|
__name: "sidepanel-page",
|
|
16
16
|
props: {
|
|
17
17
|
/**
|
|
@@ -73,10 +73,10 @@ const $ = {}, z = /* @__PURE__ */ P({
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
setup(i) {
|
|
76
|
-
return { __sfc: !0, BentoTypography:
|
|
76
|
+
return { __sfc: !0, BentoTypography: x, FooterActions: G, DialogPage: L };
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
var
|
|
79
|
+
var j = function() {
|
|
80
80
|
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
81
81
|
return s(t.DialogPage, { staticClass: "b-sidepanel-page", attrs: { "page-id": e.pageId, "previous-page": e.previousPage }, scopedSlots: e._u([{ key: "header", fn: function() {
|
|
82
82
|
return [s("div", { staticClass: "b-sidepanel-page__header" }, [s(t.BentoTypography, { staticClass: "b-sidepanel-page__title", attrs: { el: "h2", variant: "title" } }, [e._v(" " + e._s(e.title) + " ")])], 1)];
|
|
@@ -85,26 +85,26 @@ var M = function() {
|
|
|
85
85
|
}, proxy: !0 }, e.actions && e.actions.length > 0 ? { key: "footer", fn: function() {
|
|
86
86
|
return [s("div", { staticClass: "b-sidepanel-page__actions" }, [s(t.FooterActions, { attrs: { actions: e.actions, "actions-label": e.actionsLabel, "destructive-actions": e.destructiveActions } })], 1)];
|
|
87
87
|
}, proxy: !0 } : null], null, !0) });
|
|
88
|
-
},
|
|
89
|
-
z,
|
|
88
|
+
}, q = [], H = /* @__PURE__ */ I(
|
|
90
89
|
M,
|
|
91
90
|
j,
|
|
91
|
+
q,
|
|
92
92
|
!1,
|
|
93
93
|
null,
|
|
94
94
|
"4e6c994b",
|
|
95
95
|
null,
|
|
96
96
|
null
|
|
97
97
|
);
|
|
98
|
-
const
|
|
98
|
+
const de = H.exports;
|
|
99
99
|
var u = /* @__PURE__ */ ((i) => (i.UPDATE_ACTIVE_PAGE = "update:active-page", i.UPDATE_IS_OPEN = "update:is-open", i))(u || {});
|
|
100
|
-
const
|
|
100
|
+
const Q = {
|
|
101
101
|
"en-US": {
|
|
102
102
|
close: "Close"
|
|
103
103
|
}
|
|
104
|
-
},
|
|
105
|
-
i18n: { messages:
|
|
106
|
-
},
|
|
107
|
-
...
|
|
104
|
+
}, W = {
|
|
105
|
+
i18n: { messages: Q }
|
|
106
|
+
}, X = /* @__PURE__ */ C({
|
|
107
|
+
...W,
|
|
108
108
|
__name: "sidepanel",
|
|
109
109
|
props: {
|
|
110
110
|
/**
|
|
@@ -132,37 +132,39 @@ const H = {
|
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
setup(i, { emit: e }) {
|
|
135
|
-
const s = i, { activePage: t, isOpen: a } =
|
|
136
|
-
"b-sidepanel--hide":
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
const s = i, { activePage: t, isOpen: a } = B(s), { t: b } = Y(), r = l(null), c = l([]), o = l([]), g = l(F.TRANSITION_LEVEL_DEEPER), p = l(!1), m = $("sidepanel"), _ = l(!1), d = l(!1), D = h(() => ({
|
|
136
|
+
"b-sidepanel--hide": p.value,
|
|
137
|
+
"b-sidepanel--animation": d.value
|
|
138
|
+
})), S = () => {
|
|
139
|
+
p.value && (r.value.close(), o.value[0] && e(u.UPDATE_ACTIVE_PAGE, o.value[0]), o.value = [], p.value = !1, _.value = !1, e(u.UPDATE_IS_OPEN, !1));
|
|
140
|
+
}, f = () => {
|
|
141
|
+
r.value.open && (p.value = !0);
|
|
142
|
+
}, O = ({ target: n }) => {
|
|
143
|
+
n && n.tagName === "DIALOG" && f();
|
|
143
144
|
};
|
|
144
|
-
|
|
145
|
+
k(
|
|
145
146
|
() => a.value,
|
|
146
147
|
async () => {
|
|
147
|
-
await
|
|
148
|
+
await N(), r.value && (a.value ? (_.value = !0, r.value.showModal(), o.value.length || o.value.push(t.value)) : r.value.open && f());
|
|
148
149
|
},
|
|
149
150
|
{ immediate: !0 }
|
|
150
151
|
);
|
|
151
|
-
const
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
},
|
|
155
|
-
return
|
|
152
|
+
const y = (n) => e(u.UPDATE_ACTIVE_PAGE, n), A = (n) => () => {
|
|
153
|
+
var P;
|
|
154
|
+
c.value = (P = c.value) == null ? void 0 : P.filter((T) => T !== n);
|
|
155
|
+
}, E = (n) => (c.value.push(n), { unregisterPage: A(n) });
|
|
156
|
+
return v(R, {
|
|
156
157
|
activePage: t,
|
|
157
|
-
animation:
|
|
158
|
+
animation: g,
|
|
159
|
+
isAnimationActive: d,
|
|
158
160
|
isOpen: _,
|
|
159
|
-
pages:
|
|
161
|
+
pages: c,
|
|
160
162
|
previousPages: o,
|
|
161
|
-
updatePage:
|
|
162
|
-
}),
|
|
163
|
+
updatePage: y
|
|
164
|
+
}), v(U, E), v(K, m), { __sfc: !0, props: s, emit: e, activePage: t, isOpen: a, t: b, sidepanel: r, pages: c, previousPages: o, animation: g, isClosing: p, sidepanelId: m, internalIsOpen: _, isAnimationActive: d, conditionalClasses: D, closeSidepanelAfterAnimation: S, startCloseSidepanelAnimation: f, closeSidepanelOnClickOutside: O, updatePage: y, unregisterPage: A, registerPage: E, BentoButton: w, BentoFocusTrap: V, CrossIcon: J };
|
|
163
165
|
}
|
|
164
166
|
});
|
|
165
|
-
var
|
|
167
|
+
var Z = function() {
|
|
166
168
|
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
167
169
|
return s("dialog", { ref: "sidepanel", staticClass: "b-sidepanel", class: t.conditionalClasses, attrs: { id: t.sidepanelId }, on: { animationend: t.closeSidepanelAfterAnimation, click: function(a) {
|
|
168
170
|
e.isDismissible && t.closeSidepanelOnClickOutside(a);
|
|
@@ -171,20 +173,20 @@ var X = function() {
|
|
|
171
173
|
return null;
|
|
172
174
|
a.preventDefault(), e.isDismissible && t.startCloseSidepanelAnimation;
|
|
173
175
|
} } }, [s(t.BentoFocusTrap, [e.isDismissible ? s("div", { staticClass: "b-sidepanel__close-button" }, [s(t.BentoButton, { attrs: { variant: "tertiary" }, on: { click: t.startCloseSidepanelAnimation } }, [s(t.CrossIcon, { attrs: { "svg-title": t.t("close") } })], 1)], 1) : e._e(), e._t("default")], 2)], 1);
|
|
174
|
-
},
|
|
175
|
-
W,
|
|
176
|
+
}, ee = [], te = /* @__PURE__ */ I(
|
|
176
177
|
X,
|
|
177
178
|
Z,
|
|
179
|
+
ee,
|
|
178
180
|
!1,
|
|
179
181
|
null,
|
|
180
|
-
"
|
|
182
|
+
"11e634f1",
|
|
181
183
|
null,
|
|
182
184
|
null
|
|
183
185
|
);
|
|
184
|
-
const
|
|
186
|
+
const fe = te.exports;
|
|
185
187
|
export {
|
|
186
|
-
|
|
188
|
+
fe as BentoSidepanel,
|
|
187
189
|
u as BentoSidepanelEvent,
|
|
188
|
-
|
|
190
|
+
de as BentoSidepanelPage
|
|
189
191
|
};
|
|
190
192
|
//# sourceMappingURL=sidepanel.js.map
|
package/dist/sidepanel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidepanel.js","sources":["../src/components/sidepanel/components/sidepanel-page.vue","../src/components/sidepanel/sidepanel.types.ts","../src/components/sidepanel/sidepanel.vue"],"sourcesContent":["<template>\n <dialog-page class=\"b-sidepanel-page\" :page-id=\"pageId\" :previous-page=\"previousPage\">\n <template #header>\n <div class=\"b-sidepanel-page__header\">\n <bento-typography class=\"b-sidepanel-page__title\" el=\"h2\" variant=\"title\">\n {{ title }}\n </bento-typography>\n </div>\n </template>\n <template #content>\n <div class=\"b-sidepanel-page__content\">\n <bento-typography el=\"div\" variant=\"body\">\n <slot />\n </bento-typography>\n </div>\n </template>\n <template v-if=\"actions && actions.length > 0\" #footer>\n <div class=\"b-sidepanel-page__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 { PropType } from 'vue';\n\n import { BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { FooterActions } from '@/components/internal/footer-actions';\n import { DialogPage } from '@/internal';\n\n 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 * ```\n * [{\n * title: 'Primary',\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: {\n type: String,\n default: null,\n },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Identifier of the page, used with activePage prop to handle sidepanel navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title of the sidepanel page\n */\n title: {\n type: String,\n default: null,\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * SidepanelPage is used to render different pages of Sidepanel component\n *\n * @example\n * import { BentoSidepanel, BentoSidepanelPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSidepanel, BentoSidepanelPage },\n * template: `\n * <bento-sidepanel active-page='step1' is-open='true'>\n * <bento-sidepanel-page\n * title='Step 1'\n * pageId='step1'\n * :actions=\"[\n * {\n * title: 'Next step',\n * event: () => {\n * activePage.value = 'step2';\n * },\n * }]\">\n * Step 1 info\n * </bento-sidepanel-page>\n * <bento-sidepanel-page\n * title='Step 2'\n * pageId='step2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Step 2 info\n * </bento-sidepanel-page>\n * </bento-sidepanel>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./sidepanel-page.scss\" />\n","export enum BentoSidepanelEvent {\n UPDATE_ACTIVE_PAGE = 'update:active-page',\n UPDATE_IS_OPEN = 'update:is-open',\n}\n","<template>\n <dialog\n :id=\"sidepanelId\"\n ref=\"sidepanel\"\n class=\"b-sidepanel\"\n :class=\"conditionalClasses\"\n @animationend=\"closeSidepanelAfterAnimation\"\n @click=\"isDismissible && closeSidepanelOnClickOutside($event)\"\n @keydown.esc.prevent=\"isDismissible && startCloseSidepanelAnimation\"\n >\n <bento-focus-trap>\n <div v-if=\"isDismissible\" class=\"b-sidepanel__close-button\">\n <bento-button variant=\"tertiary\" @click=\"startCloseSidepanelAnimation\">\n <cross-icon :svg-title=\"t('close')\" />\n </bento-button>\n </div>\n <slot />\n </bento-focus-trap>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, provide, ref, toRefs, watch } from 'vue';\n\n import { BentoButton } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { BentoSidepanelEvent } from './sidepanel.types';\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 import { SIDEPANEL_DIALOG_ID_INJECTION_KEY } from './sidepanel.keys';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n import { generateUid } from '@/utils/ts/unique-id';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * The id of the current active page\n * Should be the same id as the BentoSidepanelPage to be displayed\n * If the component only has one page, it can be left null/undefined.\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * If set to true, it allows the sidepanel to be closed\n */\n isDismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Controls the sidepanel's state from the outside. Set it to true to open the sidepanel\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, page: string): void;\n /**\n * Emits close-sidepanel event when the sidepanel is closed\n */\n (e: BentoSidepanelEvent.UPDATE_IS_OPEN, isOpen: boolean): void;\n }>();\n\n // Refs\n const { activePage, isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const sidepanel = ref(null);\n const pages = ref<string[]>([]);\n const previousPages = ref([]);\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n const isClosing = ref(false);\n const sidepanelId = generateUid('sidepanel');\n const internalIsOpen = ref(false);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-sidepanel--hide': isClosing.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeSidepanelAfterAnimation = () => {\n if (isClosing.value) {\n sidepanel.value.close();\n if (previousPages.value[0]) {\n emit(BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n internalIsOpen.value = false;\n emit(BentoSidepanelEvent.UPDATE_IS_OPEN, false);\n }\n };\n\n const startCloseSidepanelAnimation = () => {\n if (!sidepanel.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n /**\n * Since the dialog HTML element doesn't automatically close when clicking outside, a check on when the user is clicking is needed.\n * If the click doesn't happen in the dialog box itself, the modal closes\n */\n const closeSidepanelOnClickOutside = ({ target }: Event): void => {\n if (target && (target as HTMLElement).tagName === 'DIALOG') {\n startCloseSidepanelAnimation();\n }\n };\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for sidepanel ref to be created\n await nextTick();\n\n if (!sidepanel.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n sidepanel.value.showModal();\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (sidepanel.value.open) {\n startCloseSidepanelAnimation();\n }\n },\n { immediate: true }\n );\n\n // Pages\n const updatePage = page => emit(BentoSidepanelEvent.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 pages.value.push(pageId);\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isOpen: internalIsOpen,\n pages,\n previousPages,\n updatePage,\n });\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n\n // Let's Children components know they are inside a SidePanel (dialog element)\n provide(SIDEPANEL_DIALOG_ID_INJECTION_KEY, sidepanelId);\n</script>\n\n<script lang=\"ts\">\n /**\n * Sidepanel component is a slide-in panel that should be used for presenting actions, settings or features that are directly associated with a specific task or interaction on the main screen.\n *\n * @example\n * import { BentoSidepanel, BentoSidepanelPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSidepanel, BentoSidepanelPage },\n * template: `\n * <bento-sidepanel active-page='step1' is-open='true'>\n * <bento-sidepanel-page\n * title='Step 1'\n * pageId='step1'\n * :actions=\"[\n * {\n * title: 'Next step',\n * event: () => {\n * activePage.value = 'step2';\n * },\n * }]\">\n * Step 1 info\n * </bento-sidepanel-page>\n * <bento-sidepanel-page\n * title='Step 2'\n * pageId='step2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Step 2 info\n * </bento-sidepanel-page>\n * </bento-sidepanel>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n<style lang=\"scss\" scoped src=\"./sidepanel.scss\" />\n"],"names":["__default__$1","BentoSidepanelEvent","BentoSidepanelEvent2","__default__","messages","activePage","isOpen","toRefs","props","t","useI18n","sidepanel","ref","pages","previousPages","animation","BentoDialogPageAnimation","isClosing","sidepanelId","generateUid","internalIsOpen","conditionalClasses","computed","closeSidepanelAfterAnimation","emit","startCloseSidepanelAnimation","closeSidepanelOnClickOutside","target","watch","nextTick","updatePage","page","unregisterPage","pageIdToRemove","_a","pageId","registerPage","provide","DIALOG_PAGE_CONFIG_INJECTION_KEY","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY","SIDEPANEL_DIALOG_ID_INJECTION_KEY"],"mappings":";;;;;;;;;;;;AA2II,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3IQ,IAAAC,IAAA,kBAAAC,OACRA,EAAA,qBAAA,sBACAA,EAAA,iBAAA,kBAFQA,IAAAD,KAAA,CAAA,CAAA;;;;;GC8NRE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA1IA,EAAA,YAAAC,GAAA,QAAAC,EAAA,IAAAC,EAAAC,CAAA,GACA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,CAAA,CAAA,GACAE,IAAAF,EAAA,CAAA,CAAA,GACAG,IAAAH,EAAAI,EAAA,uBAAA,GACAC,IAAAL,EAAA,EAAA,GACAM,IAAAC,EAAA,WAAA,GACAC,IAAAR,EAAA,EAAA,GAGAS,IAAAC,EAAA,OAAA;AAAA,MAA2C,qBAAAL,EAAA;AAAA,IACR,EAAA,GAInCM,IAAA,MAAA;AACI,MAAAN,EAAA,UACIN,EAAA,MAAA,MAAA,GACAG,EAAA,MAAA,CAAA,KACIU,EAAAvB,EAAA,oBAAAa,EAAA,MAAA,CAAA,CAAA,GAEJA,EAAA,QAAA,CAAA,GACAG,EAAA,QAAA,IACAG,EAAA,QAAA,IACAI,EAAAvB,EAAA,gBAAA,EAAA;AAAA,IACJ,GAGJwB,IAAA,MAAA;AACI,MAAAd,EAAA,MAAA,SAGAM,EAAA,QAAA;AAAA,IAAkB,GAOtBS,IAAA,CAAA,EAAA,QAAAC,EAAA,MAAA;AACI,MAAAA,KAAAA,EAAA,YAAA,YACIF,EAAA;AAAA,IACJ;AAIJ,IAAAG;AAAA,MAAA,MAAAtB,EAAA;AAAA,MACiB,YAAA;AAKT,QAFA,MAAAuB,EAAA,GAEAlB,EAAA,UAIAL,EAAA,SACIc,EAAA,QAAA,IACAT,EAAA,MAAA,UAAA,GACAG,EAAA,MAAA,UACIA,EAAA,MAAA,KAAAT,EAAA,KAAA,KACJM,EAAA,MAAA,QAEAc,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;AAItB,UAAAK,IAAA,CAAAC,MAAAP,EAAAvB,EAAA,oBAAA8B,CAAA,GAGAC,IAAA,CAAAC,MAAA,MAAA;;AACI,MAAApB,EAAA,SAAAqB,IAAArB,EAAA,UAAA,gBAAAqB,EAAA,OAAA,CAAAC,MAAAA,MAAAF;AAAA,IAAqE,GAIzEG,IAAA,CAAAD,OACItB,EAAA,MAAA,KAAAsB,CAAA,GAEA,EAAA,gBAAAH,EAAAG,CAAA,EAAA;AAGJ,WAAAE,EAAAC,GAAA;AAAA,MAAqE,YAAAjC;AAAA,MACjE,WAAAU;AAAA,MACA,QAAAK;AAAA,MACQ,OAAAP;AAAA,MACR,eAAAC;AAAA,MACA,YAAAgB;AAAA,IACA,CAAA,GAEJO,EAAAE,GAAAH,CAAA,GAGAC,EAAAG,GAAAtB,CAAA;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"sidepanel.js","sources":["../src/components/sidepanel/components/sidepanel-page.vue","../src/components/sidepanel/sidepanel.types.ts","../src/components/sidepanel/sidepanel.vue"],"sourcesContent":["<template>\n <dialog-page class=\"b-sidepanel-page\" :page-id=\"pageId\" :previous-page=\"previousPage\">\n <template #header>\n <div class=\"b-sidepanel-page__header\">\n <bento-typography class=\"b-sidepanel-page__title\" el=\"h2\" variant=\"title\">\n {{ title }}\n </bento-typography>\n </div>\n </template>\n <template #content>\n <div class=\"b-sidepanel-page__content\">\n <bento-typography el=\"div\" variant=\"body\">\n <slot />\n </bento-typography>\n </div>\n </template>\n <template v-if=\"actions && actions.length > 0\" #footer>\n <div class=\"b-sidepanel-page__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 { PropType } from 'vue';\n\n import { BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { FooterActions } from '@/components/internal/footer-actions';\n import { DialogPage } from '@/internal';\n\n 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 * ```\n * [{\n * title: 'Primary',\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: {\n type: String,\n default: null,\n },\n\n /**\n * If passed - sets first button color to red\n */\n destructiveActions: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Identifier of the page, used with activePage prop to handle sidepanel navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title of the sidepanel page\n */\n title: {\n type: String,\n default: null,\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * SidepanelPage is used to render different pages of Sidepanel component\n *\n * @example\n * import { BentoSidepanel, BentoSidepanelPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSidepanel, BentoSidepanelPage },\n * template: `\n * <bento-sidepanel active-page='step1' is-open='true'>\n * <bento-sidepanel-page\n * title='Step 1'\n * pageId='step1'\n * :actions=\"[\n * {\n * title: 'Next step',\n * event: () => {\n * activePage.value = 'step2';\n * },\n * }]\">\n * Step 1 info\n * </bento-sidepanel-page>\n * <bento-sidepanel-page\n * title='Step 2'\n * pageId='step2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Step 2 info\n * </bento-sidepanel-page>\n * </bento-sidepanel>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./sidepanel-page.scss\" />\n","export enum BentoSidepanelEvent {\n UPDATE_ACTIVE_PAGE = 'update:active-page',\n UPDATE_IS_OPEN = 'update:is-open',\n}\n","<template>\n <dialog\n :id=\"sidepanelId\"\n ref=\"sidepanel\"\n class=\"b-sidepanel\"\n :class=\"conditionalClasses\"\n @animationend=\"closeSidepanelAfterAnimation\"\n @click=\"isDismissible && closeSidepanelOnClickOutside($event)\"\n @keydown.esc.prevent=\"isDismissible && startCloseSidepanelAnimation\"\n >\n <bento-focus-trap>\n <div v-if=\"isDismissible\" class=\"b-sidepanel__close-button\">\n <bento-button variant=\"tertiary\" @click=\"startCloseSidepanelAnimation\">\n <cross-icon :svg-title=\"t('close')\" />\n </bento-button>\n </div>\n <slot />\n </bento-focus-trap>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, provide, ref, toRefs, watch } from 'vue';\n\n import { BentoButton } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { BentoSidepanelEvent } from './sidepanel.types';\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 import { SIDEPANEL_DIALOG_ID_INJECTION_KEY } from './sidepanel.keys';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n import { generateUid } from '@/utils/ts/unique-id';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * The id of the current active page\n * Should be the same id as the BentoSidepanelPage to be displayed\n * If the component only has one page, it can be left null/undefined.\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * If set to true, it allows the sidepanel to be closed\n */\n isDismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Controls the sidepanel's state from the outside. Set it to true to open the sidepanel\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emits update event when page is changed internally\n */\n (e: BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, page: string): void;\n /**\n * Emits close-sidepanel event when the sidepanel is closed\n */\n (e: BentoSidepanelEvent.UPDATE_IS_OPEN, isOpen: boolean): void;\n }>();\n\n // Refs\n const { activePage, isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const sidepanel = ref(null);\n const pages = ref<string[]>([]);\n const previousPages = ref([]);\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n const isClosing = ref(false);\n const sidepanelId = generateUid('sidepanel');\n const internalIsOpen = ref(false);\n const isAnimationActive = ref(false);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-sidepanel--hide': isClosing.value,\n 'b-sidepanel--animation': isAnimationActive.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeSidepanelAfterAnimation = () => {\n if (isClosing.value) {\n sidepanel.value.close();\n if (previousPages.value[0]) {\n emit(BentoSidepanelEvent.UPDATE_ACTIVE_PAGE, previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n internalIsOpen.value = false;\n emit(BentoSidepanelEvent.UPDATE_IS_OPEN, false);\n }\n };\n\n const startCloseSidepanelAnimation = () => {\n if (!sidepanel.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n /**\n * Since the dialog HTML element doesn't automatically close when clicking outside, a check on when the user is clicking is needed.\n * If the click doesn't happen in the dialog box itself, the modal closes\n */\n const closeSidepanelOnClickOutside = ({ target }: Event): void => {\n if (target && (target as HTMLElement).tagName === 'DIALOG') {\n startCloseSidepanelAnimation();\n }\n };\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for sidepanel ref to be created\n await nextTick();\n\n if (!sidepanel.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n sidepanel.value.showModal();\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (sidepanel.value.open) {\n startCloseSidepanelAnimation();\n }\n },\n { immediate: true }\n );\n\n // Pages\n const updatePage = page => emit(BentoSidepanelEvent.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 pages.value.push(pageId);\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isAnimationActive,\n isOpen: internalIsOpen,\n pages,\n previousPages,\n updatePage,\n });\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n\n // Let's Children components know they are inside a SidePanel (dialog element)\n provide(SIDEPANEL_DIALOG_ID_INJECTION_KEY, sidepanelId);\n</script>\n\n<script lang=\"ts\">\n /**\n * Sidepanel component is a slide-in panel that should be used for presenting actions, settings or features that are directly associated with a specific task or interaction on the main screen.\n *\n * @example\n * import { BentoSidepanel, BentoSidepanelPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoSidepanel, BentoSidepanelPage },\n * template: `\n * <bento-sidepanel active-page='step1' is-open='true'>\n * <bento-sidepanel-page\n * title='Step 1'\n * pageId='step1'\n * :actions=\"[\n * {\n * title: 'Next step',\n * event: () => {\n * activePage.value = 'step2';\n * },\n * }]\">\n * Step 1 info\n * </bento-sidepanel-page>\n * <bento-sidepanel-page\n * title='Step 2'\n * pageId='step2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Step 2 info\n * </bento-sidepanel-page>\n * </bento-sidepanel>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n<style lang=\"scss\" scoped src=\"./sidepanel.scss\" />\n"],"names":["__default__$1","BentoSidepanelEvent","BentoSidepanelEvent2","__default__","messages","activePage","isOpen","toRefs","props","t","useI18n","sidepanel","ref","pages","previousPages","animation","BentoDialogPageAnimation","isClosing","sidepanelId","generateUid","internalIsOpen","isAnimationActive","conditionalClasses","computed","closeSidepanelAfterAnimation","emit","startCloseSidepanelAnimation","closeSidepanelOnClickOutside","target","watch","nextTick","updatePage","page","unregisterPage","pageIdToRemove","_a","pageId","registerPage","provide","DIALOG_PAGE_CONFIG_INJECTION_KEY","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY","SIDEPANEL_DIALOG_ID_INJECTION_KEY"],"mappings":";;;;;;;;;;;;AA2II,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3IQ,IAAAC,IAAA,kBAAAC,OACRA,EAAA,qBAAA,sBACAA,EAAA,iBAAA,kBAFQA,IAAAD,KAAA,CAAA,CAAA;;;;;GCiORE,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7IA,EAAA,YAAAC,GAAA,QAAAC,EAAA,IAAAC,EAAAC,CAAA,GACA,EAAA,GAAAC,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,CAAA,CAAA,GACAE,IAAAF,EAAA,CAAA,CAAA,GACAG,IAAAH,EAAAI,EAAA,uBAAA,GACAC,IAAAL,EAAA,EAAA,GACAM,IAAAC,EAAA,WAAA,GACAC,IAAAR,EAAA,EAAA,GACAS,IAAAT,EAAA,EAAA,GAGAU,IAAAC,EAAA,OAAA;AAAA,MAA2C,qBAAAN,EAAA;AAAA,MACR,0BAAAI,EAAA;AAAA,IACa,EAAA,GAIhDG,IAAA,MAAA;AACI,MAAAP,EAAA,UACIN,EAAA,MAAA,MAAA,GACAG,EAAA,MAAA,CAAA,KACIW,EAAAxB,EAAA,oBAAAa,EAAA,MAAA,CAAA,CAAA,GAEJA,EAAA,QAAA,CAAA,GACAG,EAAA,QAAA,IACAG,EAAA,QAAA,IACAK,EAAAxB,EAAA,gBAAA,EAAA;AAAA,IACJ,GAGJyB,IAAA,MAAA;AACI,MAAAf,EAAA,MAAA,SAGAM,EAAA,QAAA;AAAA,IAAkB,GAOtBU,IAAA,CAAA,EAAA,QAAAC,EAAA,MAAA;AACI,MAAAA,KAAAA,EAAA,YAAA,YACIF,EAAA;AAAA,IACJ;AAIJ,IAAAG;AAAA,MAAA,MAAAvB,EAAA;AAAA,MACiB,YAAA;AAKT,QAFA,MAAAwB,EAAA,GAEAnB,EAAA,UAIAL,EAAA,SACIc,EAAA,QAAA,IACAT,EAAA,MAAA,UAAA,GACAG,EAAA,MAAA,UACIA,EAAA,MAAA,KAAAT,EAAA,KAAA,KACJM,EAAA,MAAA,QAEAe,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB;AAItB,UAAAK,IAAA,CAAAC,MAAAP,EAAAxB,EAAA,oBAAA+B,CAAA,GAGAC,IAAA,CAAAC,MAAA,MAAA;;AACI,MAAArB,EAAA,SAAAsB,IAAAtB,EAAA,UAAA,gBAAAsB,EAAA,OAAA,CAAAC,MAAAA,MAAAF;AAAA,IAAqE,GAIzEG,IAAA,CAAAD,OACIvB,EAAA,MAAA,KAAAuB,CAAA,GAEA,EAAA,gBAAAH,EAAAG,CAAA,EAAA;AAGJ,WAAAE,EAAAC,GAAA;AAAA,MAAqE,YAAAlC;AAAA,MACjE,WAAAU;AAAA,MACA,mBAAAM;AAAA,MACA,QAAAD;AAAA,MACQ,OAAAP;AAAA,MACR,eAAAC;AAAA,MACA,YAAAiB;AAAA,IACA,CAAA,GAEJO,EAAAE,GAAAH,CAAA,GAGAC,EAAAG,GAAAvB,CAAA;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/status.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as n, computed as a } from "vue";
|
|
2
|
-
import { B as o } from "./chunks/index.
|
|
2
|
+
import { B as o } from "./chunks/index.d97166c6.js";
|
|
3
3
|
import { n as l } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
4
|
-
import "./assets/
|
|
4
|
+
import "./assets/index20.css";
|
|
5
5
|
var r = /* @__PURE__ */ ((s) => (s.BLUE = "blue", s.GREEN = "green", s.GREY = "grey", s.ORANGE = "orange", s.RED = "red", s.YELLOW = "yellow", s))(r || {});
|
|
6
6
|
const _ = n({
|
|
7
7
|
name: "bento-status",
|
package/dist/stepper.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as w, ref as p, computed as o, watch as A, provide as L, readonly as z, useSlots as Z, inject as U, onMounted as M, onBeforeUnmount as j } from "vue";
|
|
2
|
-
import { B as D } from "./chunks/index.
|
|
2
|
+
import { B as D } from "./chunks/index.d97166c6.js";
|
|
3
3
|
import { u as G } from "./chunks/i18n.eb5b985b.js";
|
|
4
4
|
import { B as E, a as q } from "./chunks/keyboard-navigation.ca47dfa8.js";
|
|
5
5
|
import { n as O } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
|
-
import { B as J } from "./chunks/base-button.
|
|
6
|
+
import { B as J } from "./chunks/base-button.773343f6.js";
|
|
7
7
|
import { C as Q } from "./chunks/checkmark-small.520f01b1.js";
|
|
8
|
-
import "./assets/
|
|
8
|
+
import "./assets/index21.css";
|
|
9
9
|
const X = (a) => {
|
|
10
10
|
function t(i) {
|
|
11
11
|
return ({ detail: c }) => {
|
package/dist/structured-list.js
CHANGED
package/dist/summary-grid.js
CHANGED
|
@@ -4,10 +4,10 @@ import { S as h } from "./chunks/summary-grid.keys.1d1028c2.js";
|
|
|
4
4
|
import { G as E } from "./chunks/grid-layout.e0025286.js";
|
|
5
5
|
import { n as c } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
6
|
import { BentoInfoIcon as O } from "./info-icon.js";
|
|
7
|
-
import { B as L, a as g } from "./chunks/index.
|
|
7
|
+
import { B as L, a as g } from "./chunks/index.d97166c6.js";
|
|
8
8
|
import { BentoTag as M, BentoTagVariant as f } from "./tag.js";
|
|
9
|
-
import { C as G } from "./chunks/copy.
|
|
10
|
-
import "./assets/
|
|
9
|
+
import { C as G } from "./chunks/copy.3c50b447.js";
|
|
10
|
+
import "./assets/index22.css";
|
|
11
11
|
const P = l({
|
|
12
12
|
name: "bento-summary-grid",
|
|
13
13
|
components: { GridLayout: E },
|
package/dist/tabs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as m, toRefs as C, ref as b, provide as u, computed as w, inject as p, onUnmounted as A, watch as N, nextTick as B } from "vue";
|
|
2
2
|
import { E as k, T as I, a as h } from "./chunks/tabs.keys.358742f2.js";
|
|
3
3
|
import { n as g } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
4
|
-
import { B as R } from "./chunks/index.
|
|
4
|
+
import { B as R } from "./chunks/index.d97166c6.js";
|
|
5
5
|
import { g as D } from "./chunks/unique-id.a2a2b458.js";
|
|
6
|
-
import { F as S } from "./chunks/fixed-scroller.
|
|
7
|
-
import "./assets/
|
|
6
|
+
import { F as S } from "./chunks/fixed-scroller.3135f86c.js";
|
|
7
|
+
import "./assets/index23.css";
|
|
8
8
|
const K = m({
|
|
9
9
|
props: {
|
|
10
10
|
/**
|
package/dist/tag.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as c, computed as o } from "vue";
|
|
2
|
-
import { B as d } from "./chunks/index.
|
|
2
|
+
import { B as d } from "./chunks/index.d97166c6.js";
|
|
3
3
|
import { u as m } from "./chunks/aria-label.ac9651a5.js";
|
|
4
4
|
import { g as s } from "./chunks/get-slot-text.99c3d860.js";
|
|
5
|
-
import { b as _ } from "./chunks/tooltip.
|
|
5
|
+
import { b as _ } from "./chunks/tooltip.e5deb137.js";
|
|
6
6
|
import { n as v } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
7
|
-
import "./assets/
|
|
7
|
+
import "./assets/index48.css";
|
|
8
8
|
var r = /* @__PURE__ */ ((t) => (t.GREY = "grey", t.BLUE = "blue", t.GREEN = "green", t.ORANGE = "orange", t.RED = "red", t.WHITE = "white", t))(r || {});
|
|
9
9
|
const p = c({
|
|
10
10
|
name: "bento-tag",
|
package/dist/textarea.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as K, useAttrs as Q, toRefs as O, ref as d, toRef as X, computed as n, watch as L, nextTick as ee, onMounted as te, onUnmounted as ae } from "vue";
|
|
2
|
-
import { a as le } from "./chunks/button.
|
|
3
|
-
import { B as re } from "./chunks/index.
|
|
2
|
+
import { a as le } from "./chunks/button.e5f5638f.js";
|
|
3
|
+
import { B as re } from "./chunks/index.d97166c6.js";
|
|
4
4
|
import { n as T } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
5
|
import { g as se } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { o as F } from "./chunks/resize.a041304d.js";
|
|
7
7
|
import { u as oe } from "./chunks/aria-label.ac9651a5.js";
|
|
8
8
|
import { u as ne } from "./chunks/i18n.eb5b985b.js";
|
|
9
9
|
import { u as ie } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
10
|
-
import { E as ue, F as ce } from "./chunks/error-message.
|
|
11
|
-
import "./assets/
|
|
10
|
+
import { E as ue, F as ce } from "./chunks/error-message.db315e68.js";
|
|
11
|
+
import "./assets/index19.css";
|
|
12
12
|
let H = 0;
|
|
13
13
|
const de = {
|
|
14
14
|
beforeCreate() {
|
package/dist/timeline.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as Y, computed as r, ref as N, toRefs as Z, provide as A, inject as D, onUnmounted as G } from "vue";
|
|
2
|
-
import { a as z } from "./chunks/button.
|
|
2
|
+
import { a as z } from "./chunks/button.e5f5638f.js";
|
|
3
3
|
import { BentoTextarea as Q } from "./textarea.js";
|
|
4
4
|
import { u as H } from "./chunks/i18n.eb5b985b.js";
|
|
5
|
-
import { B as X } from "./chunks/button-actions.
|
|
5
|
+
import { B as X } from "./chunks/button-actions.a03a672f.js";
|
|
6
6
|
import { n as x } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
7
|
-
import { B as ee } from "./chunks/index.
|
|
8
|
-
import { B as te } from "./chunks/index.
|
|
7
|
+
import { B as ee } from "./chunks/index.9e40ffeb.js";
|
|
8
|
+
import { B as te } from "./chunks/index.444d221f.js";
|
|
9
9
|
import { BentoTag as ie } from "./tag.js";
|
|
10
|
-
import { B as ae, d as se } from "./chunks/index.
|
|
11
|
-
import { B as ne, a as oe, S as re } from "./chunks/index.
|
|
10
|
+
import { B as ae, d as se } from "./chunks/index.d97166c6.js";
|
|
11
|
+
import { B as ne, a as oe, S as re } from "./chunks/index.81e509f3.js";
|
|
12
12
|
import { g as le } from "./chunks/unique-id.a2a2b458.js";
|
|
13
13
|
import { u as me } from "./chunks/use-has-slot.fbeb19ec.js";
|
|
14
14
|
import { r as ce, e as de, t as w, g as k } from "./chunks/index.f55fdc32.js";
|
|
15
15
|
import { c as ue, a as _e } from "./chunks/index.86453263.js";
|
|
16
|
-
import "./assets/
|
|
16
|
+
import "./assets/index38.css";
|
|
17
17
|
var F = 1e3 * 60, M = 60 * 24, U = M * 30, j = M * 365;
|
|
18
18
|
function B(t, e) {
|
|
19
19
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|