@adyen/bento-vue2 1.41.0 → 1.42.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/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +457 -54
- package/dist/action-bar.js +1 -1
- package/dist/alert.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/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -0
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/input-field-password.css +1 -0
- 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/step.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/button.js +2 -2
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.r05wfyni.js → action-bar.C1iwQWyj.js} +5 -5
- package/dist/chunks/{action-bar.r05wfyni.js.map → action-bar.C1iwQWyj.js.map} +1 -1
- package/dist/chunks/{alert.Y4JUnmhl.js → alert.D2Z_aiFC.js} +19 -19
- package/dist/chunks/{alert.Y4JUnmhl.js.map → alert.D2Z_aiFC.js.map} +1 -1
- package/dist/chunks/{base-modal.SJX9uGT4.js → base-modal.DroVbSCn.js} +2 -2
- package/dist/chunks/{base-modal.SJX9uGT4.js.map → base-modal.DroVbSCn.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DZOHTxUi.js → button-actions-with-menu.dp6C-PKX.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.DZOHTxUi.js.map → button-actions-with-menu.dp6C-PKX.js.map} +1 -1
- package/dist/chunks/{button-actions.BJMK3kZC.js → button-actions.Cpx4PQp0.js} +2 -2
- package/dist/chunks/{button-actions.BJMK3kZC.js.map → button-actions.Cpx4PQp0.js.map} +1 -1
- package/dist/chunks/{card.Cfj-r6CX.js → card.BcjxzwZV.js} +2 -2
- package/dist/chunks/{card.Cfj-r6CX.js.map → card.BcjxzwZV.js.map} +1 -1
- package/dist/chunks/{checkbox-group.BEI5FPnW.js → checkbox-group.B1FsPVSl.js} +4 -4
- package/dist/chunks/{checkbox-group.BEI5FPnW.js.map → checkbox-group.B1FsPVSl.js.map} +1 -1
- package/dist/chunks/{checkbox.5uVM-HLg.js → checkbox.kd1EnszA.js} +16 -16
- package/dist/chunks/{checkbox.5uVM-HLg.js.map → checkbox.kd1EnszA.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js → checkmark-circle-fill.Cn7JN_Tk.js} +5 -5
- package/dist/chunks/{checkmark-circle-fill.DVl6QSwm.js.map → checkmark-circle-fill.Cn7JN_Tk.js.map} +1 -1
- package/dist/chunks/{code-snippet.DRH4X9pH.js → code-snippet.DGMVhQoj.js} +5 -5
- package/dist/chunks/{code-snippet.DRH4X9pH.js.map → code-snippet.DGMVhQoj.js.map} +1 -1
- package/dist/chunks/{controls-group.Sni8leS5.js → controls-group.J8shO_JL.js} +2 -2
- package/dist/chunks/{controls-group.Sni8leS5.js.map → controls-group.J8shO_JL.js.map} +1 -1
- package/dist/chunks/{copy.C5j6vSQT.js → copy.DgzxvExj.js} +2 -2
- package/dist/chunks/{copy.C5j6vSQT.js.map → copy.DgzxvExj.js.map} +1 -1
- package/dist/chunks/{dashboard-section.DchlD4B2.js → dashboard-section.D8ey7nzl.js} +3 -3
- package/dist/chunks/{dashboard-section.DchlD4B2.js.map → dashboard-section.D8ey7nzl.js.map} +1 -1
- package/dist/chunks/{dashed-underline.6Aw4MP34.js → dashed-underline.dGO33Q_E.js} +3 -3
- package/dist/chunks/{dashed-underline.6Aw4MP34.js.map → dashed-underline.dGO33Q_E.js.map} +1 -1
- package/dist/chunks/{data-grid-template.Bhotcrsr.js → data-grid-template.BF7JMfoJ.js} +2 -2
- package/dist/chunks/{data-grid-template.Bhotcrsr.js.map → data-grid-template.BF7JMfoJ.js.map} +1 -1
- package/dist/chunks/{data-grid.ahAWR42s.js → data-grid.bti50Fs6.js} +459 -494
- package/dist/chunks/data-grid.bti50Fs6.js.map +1 -0
- package/dist/chunks/{date-picker.lFLlAGXs.js → date-picker.Dfg1_eo6.js} +3 -3
- package/dist/chunks/{date-picker.lFLlAGXs.js.map → date-picker.Dfg1_eo6.js.map} +1 -1
- package/dist/chunks/{date-range-picker.Cr_YCwxP.js → date-range-picker.BvHFTptS.js} +7 -7
- package/dist/chunks/{date-range-picker.Cr_YCwxP.js.map → date-range-picker.BvHFTptS.js.map} +1 -1
- package/dist/chunks/dot.BCX4w7eT.js +24 -0
- package/dist/chunks/dot.BCX4w7eT.js.map +1 -0
- package/dist/chunks/{dropdown-tag.BPkMWSmY.js → dropdown-tag.DqgJnpjk.js} +3 -3
- package/dist/chunks/{dropdown-tag.BPkMWSmY.js.map → dropdown-tag.DqgJnpjk.js.map} +1 -1
- package/dist/chunks/{dropdown.D8xKm1YA.js → dropdown.2tXfuDlU.js} +4 -4
- package/dist/chunks/{dropdown.D8xKm1YA.js.map → dropdown.2tXfuDlU.js.map} +1 -1
- package/dist/chunks/{error-message.Bk2maRF8.js → error-message.B7uoqQpq.js} +2 -2
- package/dist/chunks/{error-message.Bk2maRF8.js.map → error-message.B7uoqQpq.js.map} +1 -1
- package/dist/chunks/es6.b4enG1py.js.map +1 -1
- package/dist/chunks/file-uploader.CK-Frs_q.js +728 -0
- package/dist/chunks/file-uploader.CK-Frs_q.js.map +1 -0
- package/dist/chunks/{filter-bar.dQZY8j9C.js → filter-bar.DP_nQeeo.js} +702 -697
- package/dist/chunks/filter-bar.DP_nQeeo.js.map +1 -0
- package/dist/chunks/{footer-actions.B68XcD93.js → footer-actions.DwnLB4NW.js} +2 -2
- package/dist/chunks/{footer-actions.B68XcD93.js.map → footer-actions.DwnLB4NW.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Cd2WlefD.js → form-layout-title.BarHgyjC.js} +2 -2
- package/dist/chunks/{form-layout-title.Cd2WlefD.js.map → form-layout-title.BarHgyjC.js.map} +1 -1
- package/dist/chunks/{header.DwTrDlSa.js → header.CAJtHW1k.js} +4 -4
- package/dist/chunks/{header.DwTrDlSa.js.map → header.CAJtHW1k.js.map} +1 -1
- package/dist/chunks/index.BiaBX5uu.js +345 -0
- package/dist/chunks/{index.D5am6ibQ.js.map → index.BiaBX5uu.js.map} +1 -1
- package/dist/chunks/{info-icon.CCR-cAFR.js → info-icon.p-28zHUJ.js} +2 -2
- package/dist/chunks/{info-icon.CCR-cAFR.js.map → info-icon.p-28zHUJ.js.map} +1 -1
- package/dist/chunks/input-field-password.ijBN-aVx.js +191 -0
- package/dist/chunks/input-field-password.ijBN-aVx.js.map +1 -0
- package/dist/chunks/{input-field.CKOdyDVy.js → input-field.BoElSWuV.js} +37 -35
- package/dist/chunks/input-field.BoElSWuV.js.map +1 -0
- package/dist/chunks/{layout-row.CtFsZ5-v.js → layout-row.6jCBhtd4.js} +2 -2
- package/dist/chunks/{layout-row.CtFsZ5-v.js.map → layout-row.6jCBhtd4.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.CuHL51H9.js → listbox-option-tag.BnX0H4HE.js} +2 -2
- package/dist/chunks/{listbox-option-tag.CuHL51H9.js.map → listbox-option-tag.BnX0H4HE.js.map} +1 -1
- package/dist/chunks/{loading-button.2h9RXXIZ.js → loading-button.CiPmvU7F.js} +2 -2
- package/dist/chunks/{loading-button.2h9RXXIZ.js.map → loading-button.CiPmvU7F.js.map} +1 -1
- package/dist/chunks/{menu.DEeyofbM.js → menu.N41WnXc8.js} +2 -2
- package/dist/chunks/{menu.DEeyofbM.js.map → menu.N41WnXc8.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Ct4aitSv.js → modal-fullscreen.BbNe6M9T.js} +2 -2
- package/dist/chunks/{modal-fullscreen.Ct4aitSv.js.map → modal-fullscreen.BbNe6M9T.js.map} +1 -1
- package/dist/chunks/{modal.tUtoM34X.js → modal.Cb4zg5fN.js} +4 -4
- package/dist/chunks/{modal.tUtoM34X.js.map → modal.Cb4zg5fN.js.map} +1 -1
- package/dist/chunks/{pagination.CqrSR1Md.js → pagination.FbkfItkS.js} +2 -2
- package/dist/chunks/{pagination.CqrSR1Md.js.map → pagination.FbkfItkS.js.map} +1 -1
- package/dist/chunks/{popover.BcWFpCY_.js → popover.Uy-vuQq5.js} +2 -2
- package/dist/chunks/{popover.BcWFpCY_.js.map → popover.Uy-vuQq5.js.map} +1 -1
- package/dist/chunks/{promo-banner.NSOVGA7M.js → promo-banner.CGz3MVPw.js} +2 -2
- package/dist/chunks/{promo-banner.NSOVGA7M.js.map → promo-banner.CGz3MVPw.js.map} +1 -1
- package/dist/chunks/{radio-group.DtlPzh_w.js → radio-group.EnMXbuly.js} +4 -4
- package/dist/chunks/{radio-group.DtlPzh_w.js.map → radio-group.EnMXbuly.js.map} +1 -1
- package/dist/chunks/{search-bar.CN9pWrLP.js → search-bar.DD6eA0jG.js} +3 -3
- package/dist/chunks/{search-bar.CN9pWrLP.js.map → search-bar.DD6eA0jG.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DMw1l7rH.js → secondary-nav.C56_jw55.js} +3 -3
- package/dist/chunks/{secondary-nav.DMw1l7rH.js.map → secondary-nav.C56_jw55.js.map} +1 -1
- package/dist/chunks/{segmented-control.uVH5ahVY.js → segmented-control.CVeUROYR.js} +2 -2
- package/dist/chunks/{segmented-control.uVH5ahVY.js.map → segmented-control.CVeUROYR.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BjOuUbQD.js → selection-card-group.DwkH9xJd.js} +10 -10
- package/dist/chunks/{selection-card-group.BjOuUbQD.js.map → selection-card-group.DwkH9xJd.js.map} +1 -1
- package/dist/chunks/show.IEAxtCB7.js +43 -0
- package/dist/chunks/show.IEAxtCB7.js.map +1 -0
- package/dist/chunks/{sidepanel.BjrsqXLl.js → sidepanel.CRJN9Acz.js} +2 -2
- package/dist/chunks/{sidepanel.BjrsqXLl.js.map → sidepanel.CRJN9Acz.js.map} +1 -1
- package/dist/chunks/step.5g9BIi15.js +217 -0
- package/dist/chunks/step.5g9BIi15.js.map +1 -0
- package/dist/chunks/{structured-list-item.CAcBJutf.js → structured-list-item.BEhWyaVP.js} +4 -4
- package/dist/chunks/{structured-list-item.CAcBJutf.js.map → structured-list-item.BEhWyaVP.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.CPprUptt.js → summary-grid-item-custom.CSXo4NjY.js} +4 -4
- package/dist/chunks/{summary-grid-item-custom.CPprUptt.js.map → summary-grid-item-custom.CSXo4NjY.js.map} +1 -1
- package/dist/chunks/{tag.DSFSfnAf.js → tag.wTXg-O7i.js} +2 -2
- package/dist/chunks/{tag.DSFSfnAf.js.map → tag.wTXg-O7i.js.map} +1 -1
- package/dist/chunks/{textarea.B4MZ_pi1.js → textarea.Y3yd_3ll.js} +2 -2
- package/dist/chunks/{textarea.B4MZ_pi1.js.map → textarea.Y3yd_3ll.js.map} +1 -1
- package/dist/chunks/{timeline-item.CxB3KFiu.js → timeline-item.CCV4U3Zx.js} +5 -5
- package/dist/chunks/{timeline-item.CxB3KFiu.js.map → timeline-item.CCV4U3Zx.js.map} +1 -1
- package/dist/chunks/{tooltip.CS2Gij6x.js → tooltip.DH8TqpYV.js} +84 -68
- package/dist/chunks/tooltip.DH8TqpYV.js.map +1 -0
- package/dist/chunks/{tutorial.CGjM0EJT.js → tutorial.4r7MKNEU.js} +4 -4
- package/dist/chunks/{tutorial.CGjM0EJT.js.map → tutorial.4r7MKNEU.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.D5ARl96f.js → use-cached-selected-values.-_Gk6HO_.js} +3 -3
- package/dist/chunks/{use-cached-selected-values.D5ARl96f.js.map → use-cached-selected-values.-_Gk6HO_.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- 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/file-uploader.js +5 -0
- package/dist/file-uploader.js.map +1 -0
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +227 -218
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +10 -0
- package/dist/input-field-password.js.map +1 -0
- package/dist/input-field.js +1 -1
- package/dist/internal.js +6 -6
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +95 -34
- package/dist/styles/bento-light.css +95 -34
- package/dist/styles/bento.css +95 -34
- package/dist/styles/legacy.css +103 -42
- package/dist/styles/styleguide.css +95 -34
- package/dist/summary-grid.js +1 -1
- package/dist/tag.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 +550 -4
- package/package.json +6 -7
- package/dist/chunks/data-grid.ahAWR42s.js.map +0 -1
- package/dist/chunks/filter-bar.dQZY8j9C.js.map +0 -1
- package/dist/chunks/index.D5am6ibQ.js +0 -249
- package/dist/chunks/input-field.CKOdyDVy.js.map +0 -1
- package/dist/chunks/step.D3-7YL7-.js +0 -234
- package/dist/chunks/step.D3-7YL7-.js.map +0 -1
- package/dist/chunks/tooltip.CS2Gij6x.js.map +0 -1
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import "./index.Cl4_42j5.js";
|
|
2
|
-
import { getCurrentScope as N, onScopeDispose as A, unref as L, onMounted as E, nextTick as T, getCurrentInstance as $, ref as m, watchEffect as j, computed as y, watch as g } from "vue";
|
|
3
|
-
function S(t) {
|
|
4
|
-
return N() ? (A(t), !0) : !1;
|
|
5
|
-
}
|
|
6
|
-
function x(t) {
|
|
7
|
-
return typeof t == "function" ? t() : L(t);
|
|
8
|
-
}
|
|
9
|
-
const B = typeof window < "u" && typeof document < "u";
|
|
10
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
11
|
-
const C = Object.prototype.toString, _ = (t) => C.call(t) === "[object Object]", z = () => {
|
|
12
|
-
};
|
|
13
|
-
function R(t, n) {
|
|
14
|
-
var r;
|
|
15
|
-
if (typeof t == "number")
|
|
16
|
-
return t + n;
|
|
17
|
-
const u = ((r = t.match(/^-?[0-9]+\.?[0-9]*/)) == null ? void 0 : r[0]) || "", o = t.slice(u.length), c = Number.parseFloat(u) + n;
|
|
18
|
-
return Number.isNaN(c) ? t : c + o;
|
|
19
|
-
}
|
|
20
|
-
function F(t) {
|
|
21
|
-
return $();
|
|
22
|
-
}
|
|
23
|
-
function W(t, n = !0, r) {
|
|
24
|
-
F() ? E(t, r) : n ? t() : T(t);
|
|
25
|
-
}
|
|
26
|
-
function p(t) {
|
|
27
|
-
var n;
|
|
28
|
-
const r = x(t);
|
|
29
|
-
return (n = r == null ? void 0 : r.$el) != null ? n : r;
|
|
30
|
-
}
|
|
31
|
-
const w = B ? window : void 0;
|
|
32
|
-
function I(...t) {
|
|
33
|
-
let n, r, u, o;
|
|
34
|
-
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([r, u, o] = t, n = w) : [n, r, u, o] = t, !n)
|
|
35
|
-
return z;
|
|
36
|
-
Array.isArray(r) || (r = [r]), Array.isArray(u) || (u = [u]);
|
|
37
|
-
const c = [], a = () => {
|
|
38
|
-
c.forEach((f) => f()), c.length = 0;
|
|
39
|
-
}, e = (f, s, d, h) => (f.addEventListener(s, d, h), () => f.removeEventListener(s, d, h)), i = g(
|
|
40
|
-
() => [p(n), x(o)],
|
|
41
|
-
([f, s]) => {
|
|
42
|
-
if (a(), !f)
|
|
43
|
-
return;
|
|
44
|
-
const d = _(s) ? { ...s } : s;
|
|
45
|
-
c.push(
|
|
46
|
-
...r.flatMap((h) => u.map((v) => e(f, h, v, d)))
|
|
47
|
-
);
|
|
48
|
-
},
|
|
49
|
-
{ immediate: !0, flush: "post" }
|
|
50
|
-
), l = () => {
|
|
51
|
-
i(), a();
|
|
52
|
-
};
|
|
53
|
-
return S(l), l;
|
|
54
|
-
}
|
|
55
|
-
function G() {
|
|
56
|
-
const t = m(!1);
|
|
57
|
-
return $() && E(() => {
|
|
58
|
-
t.value = !0;
|
|
59
|
-
}), t;
|
|
60
|
-
}
|
|
61
|
-
function M(t) {
|
|
62
|
-
const n = G();
|
|
63
|
-
return y(() => (n.value, !!t()));
|
|
64
|
-
}
|
|
65
|
-
function b(t, n = {}) {
|
|
66
|
-
const { window: r = w } = n, u = M(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
|
|
67
|
-
let o;
|
|
68
|
-
const c = m(!1), a = (l) => {
|
|
69
|
-
c.value = l.matches;
|
|
70
|
-
}, e = () => {
|
|
71
|
-
o && ("removeEventListener" in o ? o.removeEventListener("change", a) : o.removeListener(a));
|
|
72
|
-
}, i = j(() => {
|
|
73
|
-
u.value && (e(), o = r.matchMedia(x(t)), "addEventListener" in o ? o.addEventListener("change", a) : o.addListener(a), c.value = o.matches);
|
|
74
|
-
});
|
|
75
|
-
return S(() => {
|
|
76
|
-
i(), e(), o = void 0;
|
|
77
|
-
}), c;
|
|
78
|
-
}
|
|
79
|
-
function q(t, n = {}) {
|
|
80
|
-
function r(e, i) {
|
|
81
|
-
let l = x(t[e]);
|
|
82
|
-
return i != null && (l = R(l, i)), typeof l == "number" && (l = `${l}px`), l;
|
|
83
|
-
}
|
|
84
|
-
const { window: u = w } = n;
|
|
85
|
-
function o(e) {
|
|
86
|
-
return u ? u.matchMedia(e).matches : !1;
|
|
87
|
-
}
|
|
88
|
-
const c = (e) => b(() => `(min-width: ${r(e)})`, n), a = Object.keys(t).reduce((e, i) => (Object.defineProperty(e, i, {
|
|
89
|
-
get: () => c(i),
|
|
90
|
-
enumerable: !0,
|
|
91
|
-
configurable: !0
|
|
92
|
-
}), e), {});
|
|
93
|
-
return Object.assign(a, {
|
|
94
|
-
greater(e) {
|
|
95
|
-
return b(() => `(min-width: ${r(e, 0.1)})`, n);
|
|
96
|
-
},
|
|
97
|
-
greaterOrEqual: c,
|
|
98
|
-
smaller(e) {
|
|
99
|
-
return b(() => `(max-width: ${r(e, -0.1)})`, n);
|
|
100
|
-
},
|
|
101
|
-
smallerOrEqual(e) {
|
|
102
|
-
return b(() => `(max-width: ${r(e)})`, n);
|
|
103
|
-
},
|
|
104
|
-
between(e, i) {
|
|
105
|
-
return b(() => `(min-width: ${r(e)}) and (max-width: ${r(i, -0.1)})`, n);
|
|
106
|
-
},
|
|
107
|
-
isGreater(e) {
|
|
108
|
-
return o(`(min-width: ${r(e, 0.1)})`);
|
|
109
|
-
},
|
|
110
|
-
isGreaterOrEqual(e) {
|
|
111
|
-
return o(`(min-width: ${r(e)})`);
|
|
112
|
-
},
|
|
113
|
-
isSmaller(e) {
|
|
114
|
-
return o(`(max-width: ${r(e, -0.1)})`);
|
|
115
|
-
},
|
|
116
|
-
isSmallerOrEqual(e) {
|
|
117
|
-
return o(`(max-width: ${r(e)})`);
|
|
118
|
-
},
|
|
119
|
-
isInBetween(e, i) {
|
|
120
|
-
return o(`(min-width: ${r(e)}) and (max-width: ${r(i, -0.1)})`);
|
|
121
|
-
},
|
|
122
|
-
current() {
|
|
123
|
-
const e = Object.keys(t).map((i) => [i, c(i)]);
|
|
124
|
-
return y(() => e.filter(([, i]) => i.value).map(([i]) => i));
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
function H(t, n, r = {}) {
|
|
129
|
-
const { window: u = w, ...o } = r;
|
|
130
|
-
let c;
|
|
131
|
-
const a = M(() => u && "ResizeObserver" in u), e = () => {
|
|
132
|
-
c && (c.disconnect(), c = void 0);
|
|
133
|
-
}, i = y(() => Array.isArray(t) ? t.map((s) => p(s)) : [p(t)]), l = g(
|
|
134
|
-
i,
|
|
135
|
-
(s) => {
|
|
136
|
-
if (e(), a.value && u) {
|
|
137
|
-
c = new ResizeObserver(n);
|
|
138
|
-
for (const d of s)
|
|
139
|
-
d && c.observe(d, o);
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
{ immediate: !0, flush: "post", deep: !0 }
|
|
143
|
-
), f = () => {
|
|
144
|
-
e(), l();
|
|
145
|
-
};
|
|
146
|
-
return S(f), {
|
|
147
|
-
isSupported: a,
|
|
148
|
-
stop: f
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
function P(t, n = { width: 0, height: 0 }, r = {}) {
|
|
152
|
-
const { window: u = w, box: o = "content-box" } = r, c = y(() => {
|
|
153
|
-
var s, d;
|
|
154
|
-
return (d = (s = p(t)) == null ? void 0 : s.namespaceURI) == null ? void 0 : d.includes("svg");
|
|
155
|
-
}), a = m(n.width), e = m(n.height), { stop: i } = H(
|
|
156
|
-
t,
|
|
157
|
-
([s]) => {
|
|
158
|
-
const d = o === "border-box" ? s.borderBoxSize : o === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
|
|
159
|
-
if (u && c.value) {
|
|
160
|
-
const h = p(t);
|
|
161
|
-
if (h) {
|
|
162
|
-
const v = u.getComputedStyle(h);
|
|
163
|
-
a.value = Number.parseFloat(v.width), e.value = Number.parseFloat(v.height);
|
|
164
|
-
}
|
|
165
|
-
} else if (d) {
|
|
166
|
-
const h = Array.isArray(d) ? d : [d];
|
|
167
|
-
a.value = h.reduce((v, { inlineSize: O }) => v + O, 0), e.value = h.reduce((v, { blockSize: O }) => v + O, 0);
|
|
168
|
-
} else
|
|
169
|
-
a.value = s.contentRect.width, e.value = s.contentRect.height;
|
|
170
|
-
},
|
|
171
|
-
r
|
|
172
|
-
);
|
|
173
|
-
W(() => {
|
|
174
|
-
const s = p(t);
|
|
175
|
-
s && (a.value = "offsetWidth" in s ? s.offsetWidth : n.width, e.value = "offsetHeight" in s ? s.offsetHeight : n.height);
|
|
176
|
-
});
|
|
177
|
-
const l = g(
|
|
178
|
-
() => p(t),
|
|
179
|
-
(s) => {
|
|
180
|
-
a.value = s ? n.width : 0, e.value = s ? n.height : 0;
|
|
181
|
-
}
|
|
182
|
-
);
|
|
183
|
-
function f() {
|
|
184
|
-
i(), l();
|
|
185
|
-
}
|
|
186
|
-
return {
|
|
187
|
-
width: a,
|
|
188
|
-
height: e,
|
|
189
|
-
stop: f
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
function k(t = {}) {
|
|
193
|
-
const { window: n = w, behavior: r = "auto" } = t;
|
|
194
|
-
if (!n)
|
|
195
|
-
return {
|
|
196
|
-
x: m(0),
|
|
197
|
-
y: m(0)
|
|
198
|
-
};
|
|
199
|
-
const u = m(n.scrollX), o = m(n.scrollY), c = y({
|
|
200
|
-
get() {
|
|
201
|
-
return u.value;
|
|
202
|
-
},
|
|
203
|
-
set(e) {
|
|
204
|
-
scrollTo({ left: e, behavior: r });
|
|
205
|
-
}
|
|
206
|
-
}), a = y({
|
|
207
|
-
get() {
|
|
208
|
-
return o.value;
|
|
209
|
-
},
|
|
210
|
-
set(e) {
|
|
211
|
-
scrollTo({ top: e, behavior: r });
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
return I(
|
|
215
|
-
n,
|
|
216
|
-
"scroll",
|
|
217
|
-
() => {
|
|
218
|
-
u.value = n.scrollX, o.value = n.scrollY;
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
capture: !1,
|
|
222
|
-
passive: !0
|
|
223
|
-
}
|
|
224
|
-
), { x: c, y: a };
|
|
225
|
-
}
|
|
226
|
-
function X(t = {}) {
|
|
227
|
-
const {
|
|
228
|
-
window: n = w,
|
|
229
|
-
initialWidth: r = Number.POSITIVE_INFINITY,
|
|
230
|
-
initialHeight: u = Number.POSITIVE_INFINITY,
|
|
231
|
-
listenOrientation: o = !0,
|
|
232
|
-
includeScrollbar: c = !0
|
|
233
|
-
} = t, a = m(r), e = m(u), i = () => {
|
|
234
|
-
n && (c ? (a.value = n.innerWidth, e.value = n.innerHeight) : (a.value = n.document.documentElement.clientWidth, e.value = n.document.documentElement.clientHeight));
|
|
235
|
-
};
|
|
236
|
-
if (i(), W(i), I("resize", i, { passive: !0 }), o) {
|
|
237
|
-
const l = b("(orientation: portrait)");
|
|
238
|
-
g(l, () => i());
|
|
239
|
-
}
|
|
240
|
-
return { width: a, height: e };
|
|
241
|
-
}
|
|
242
|
-
export {
|
|
243
|
-
P as a,
|
|
244
|
-
k as b,
|
|
245
|
-
b as c,
|
|
246
|
-
q as d,
|
|
247
|
-
X as u
|
|
248
|
-
};
|
|
249
|
-
//# sourceMappingURL=index.D5am6ibQ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-field.CKOdyDVy.js","sources":["../../src/components/input-field/input-field.types.ts","../../src/components/input-field/input-field.vue"],"sourcesContent":["import { BentoDropdown } from '@/components/dropdown/';\nimport type { HTMLAttributes } from 'vue/types/jsx';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldVariant {\n DEFAULT = 'default',\n PAYMENT_METHOD = 'payment-method',\n STATIC_VALUE = 'static-value',\n DROPDOWN = 'dropdown',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldElementPosition {\n START = 'start',\n END = 'end',\n}\n\nexport enum BentoInputFieldStateClass {\n CONDENSED = 'condensed',\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoInputFieldType {\n SEARCH = 'search',\n TEXT = 'text',\n NUMBER = 'number',\n}\n\nexport type BentoInputFieldValue = string | number;\n\ntype DropdownProps = InstanceType<typeof BentoDropdown>['$props'];\nexport type BentoInputDropdownProps = {\n items: DropdownProps['items'];\n value: DropdownProps['value'];\n dynamicFiltering?: DropdownProps['dynamicFiltering'];\n 'aria-label'?: HTMLAttributes['aria-label'];\n};\n\n/**\n * @deprecated The use of these enums is no longer supported.\n * Use `v-on:` or `@` to listen to the events being emitted.\n * This enum will be removed in 2.0.\n */\nexport enum BentoInputFieldEvent {\n INPUT = 'input',\n ESCAPE_PRESSED = 'escape-pressed',\n UPDATE_DROPDOWN = 'update:dropdown',\n DROPDOWN_INPUT = 'dropdown-input',\n FOCUS = 'focus',\n CHANGE = 'change',\n BLUR = 'blur',\n KEYDOWN = 'keydown',\n}\n","<template>\n <bento-typography\n class=\"b-input-field\"\n data-testid=\"input-text-container\"\n :class=\"inputFieldConditionalClasses\"\n el=\"div\"\n variant=\"body\"\n >\n <field-label\n v-if=\"hasSlot('default')\"\n :for=\"inputFieldId\"\n data-testid=\"input-field-label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n @click=\"focusInput\"\n >\n <slot></slot>\n </field-label>\n\n <div class=\"b-input-field__input-box\" data-testid=\"input-box\" :aria-disabled=\"disabled\" @click=\"focusInput\">\n <!-- Optional Icon for Default text variant -->\n <span\n v-if=\"isDefaultVariant && (hasSlot('defaultIconBefore') || hasSlot('iconBefore'))\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-before\"\n >\n <slot v-if=\"hasSlot('iconBefore')\" name=\"iconBefore\" />\n <slot v-if=\"hasSlot('defaultIconBefore') && !hasSlot('iconBefore')\" name=\"defaultIconBefore\" />\n </span>\n\n <!-- Mandatory Icon for Payment Method variant -->\n <span\n v-if=\"isPaymentMethodVariant && hasSlot('paymentMethod')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__payment-method\"\n >\n <slot name=\"paymentMethod\" />\n </span>\n\n <!-- Dropdown at start -->\n <div\n v-if=\"shouldDisplayDropdownAtStart\"\n :id=\"dropdownId\"\n class=\"b-input-field__dropdown b-input-field__dropdown--start\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n\n <!-- Static Value at start -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtStart\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--start\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n <div class=\"b-input-field__input-container\">\n <input\n :id=\"inputFieldId\"\n v-bind=\"attrs\"\n ref=\"inputFieldElement\"\n class=\"b-input-field__input\"\n :aria-label=\"computedAriaLabel\"\n :aria-describedby=\"computedAriaDescribedBy\"\n :aria-owns=\"computedAriaOwns\"\n :aria-invalid=\"shouldShowError\"\n :placeholder=\"placeholder\"\n :type=\"type\"\n :value=\"value\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onInput\"\n @change=\"emit('change')\"\n @focus=\"onFocus\"\n @blur=\"onBlur\"\n @keydown=\"emit('keydown', $event)\"\n @keydown.esc=\"emit('escape-pressed')\"\n />\n\n <!-- Hint at the end -->\n <bento-typography v-if=\"hint && isFocused && value\" el=\"span\" class=\"b-input-field__hint\">\n {{ hint }}\n </bento-typography>\n </div>\n\n <span\n v-if=\"hasSlot('iconAfter')\"\n :aria-hidden=\"ariaHidden ? 'true' : undefined\"\n class=\"b-input-field__icon-after\"\n data-testid=\"input-text__icon-after\"\n >\n <slot name=\"iconAfter\" />\n </span>\n\n <!-- Static Value at the end -->\n <bento-typography\n v-if=\"shouldDisplayStaticValueAtEnd\"\n :id=\"staticValueId\"\n class=\"b-input-field__static-value b-input-field__static-value--end\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"staticValue\" />\n </bento-typography>\n\n <!-- Dropdown at end -->\n <div\n v-if=\"shouldDisplayDropdownAtEnd\"\n :id=\"dropdownId\"\n data-testid=\"input-field-dropdown-container-end\"\n class=\"b-input-field__dropdown b-input-field__dropdown--end\"\n @click.stop\n >\n <bento-dropdown\n v-if=\"dropdown\"\n :id=\"dropdownId\"\n v-bind=\"inputFieldDropdownProps\"\n :disabled=\"disabled\"\n :readonly=\"isReadOnly\"\n @input=\"onDropdownInput\"\n />\n </div>\n </div>\n\n <error-message\n v-if=\"shouldShowError && !!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-input-field__error-message\"\n />\n\n <span v-if=\"hasSlot('description')\" :id=\"descriptionId\" class=\"b-input-field__description\" @click=\"focusInput\">\n <bento-typography el=\"span\" variant=\"body\">\n <slot id=\"description\" name=\"description\" />\n </bento-typography>\n </span>\n </bento-typography>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, provide, Ref, ref, toRef, toRefs, useAttrs, useSlots } from 'vue';\n\n // Components\n import { BentoDropdown } from '@/components/dropdown';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { printDevelopmentWarning } from '@/utils/ts/print-development-warning';\n import {\n INPUT_FIELD_COMPONENT_INJECTION_KEY,\n INPUT_FIELD_HINT_INJECTION_KEY,\n } from '@/components/input-field/input-field.keys';\n\n // Composables\n import { useFormLayoutFieldLoading, useHasSlot } from '@/composables';\n\n // Types\n import {\n BentoInputDropdownProps,\n BentoInputFieldElementPosition,\n BentoInputFieldStateClass,\n BentoInputFieldType,\n BentoInputFieldValue,\n BentoInputFieldVariant,\n } from './input-field.types';\n import { BentoListboxSelectedValue } from '@/types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n ariaHidden: { type: Boolean, default: true },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Text that labels an the input element\n */\n ariaLabel: { type: String, default: undefined },\n\n /**\n * Reduces height of the input\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Disables the possibility of changing value in the input-field\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Dropdown props for the small selectable dropdown menu.\n * Properties supported:\n *\n * - `value`: Selected value of the dropdown\n * - `items`: List of available items\n * - `aria-label`: Text that labels the dropdown element\n *\n */\n dropdown: {\n type: Object as PropType<BentoInputDropdownProps>,\n default: undefined,\n },\n\n /**\n * Position of the dropdown before or after input value\n */\n dropdownPosition: {\n type: String as PropType<BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`>,\n default: BentoInputFieldElementPosition.START,\n validator: (value: BentoInputFieldElementPosition) =>\n Object.values(BentoInputFieldElementPosition).includes(value),\n },\n\n /**\n * Adds error validation class for outlining input-field.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n error: { type: Boolean, default: false },\n\n /**\n * Renders input-field with an error state and the error message beneath the input box\n */\n errorMessage: { type: String, default: null },\n\n /**\n * Highlights the dropdown is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Text displayed as the placeholder of the input-field\n */\n placeholder: { type: String, default: '' },\n\n /**\n * Highlights the dropdown is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will set the input field to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Static text that displayed before or after input value\n * Applicable to the Static Value variant\n */\n staticValue: { type: String, default: '' },\n\n /**\n * Position of Static Value before or after input value\n */\n staticValuePosition: {\n type: String as PropType<BentoInputFieldElementPosition | `${BentoInputFieldElementPosition}`>,\n default: BentoInputFieldElementPosition.START,\n validator: (value: BentoInputFieldElementPosition) =>\n Object.values(BentoInputFieldElementPosition).includes(value),\n },\n\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: { type: String, default: null },\n\n /**\n * A string specifying the type of control to render.\n * All `input` types are available but only `search`, `text` and `number` are fully supported.\n *\n * If `type` is `search`, use `bento-search-bar` instead.\n */\n type: {\n type: String as PropType<BentoInputFieldType | `${BentoInputFieldType}` | HTMLInputElement['type']>,\n default: BentoInputFieldType.TEXT,\n },\n\n /**\n * Text displayed as the value of the input-field\n */\n value: { type: [String, Number] as PropType<BentoInputFieldValue>, default: undefined },\n\n /**\n * Describes the different variants for the input element\n */\n variant: {\n type: String as PropType<BentoInputFieldVariant | `${BentoInputFieldVariant}`>,\n default: BentoInputFieldVariant.DEFAULT,\n validator: (value: BentoInputFieldVariant) => Object.values(BentoInputFieldVariant).includes(value),\n },\n });\n\n const emit = defineEmits([\"update:dropdown\", \"blur\", \"change\", \"dropdown-input\", \"escape-pressed\", \"focus\", \"keydown\", \"input\"]);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const hasSlot = useHasSlot(slots);\n const inputFieldElement = ref(null);\n const inputFieldId = generateUid('input');\n const dropdownId = generateUid('input-dropdown');\n const staticValueId = generateUid('input-static-value');\n const descriptionId = generateUid('input-description');\n const errorId = generateUid('input-error');\n const isFocused = ref(false);\n\n // Provide INPUT_FIELD_COMPONENT_INJECTION_KEY as true, to set the input only dropdown size variant in the BentoDropdown comp\n provide(INPUT_FIELD_COMPONENT_INJECTION_KEY, true);\n // Renders the input with a hint if a string is provided\n const hint = inject<Ref<string | undefined>>(INPUT_FIELD_HINT_INJECTION_KEY, ref(undefined));\n\n const onFocus = () => {\n isFocused.value = true;\n emit('focus');\n };\n\n const onBlur = () => {\n isFocused.value = false;\n emit('blur');\n };\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const shouldShowStaticValue = computed(\n () => props.variant === BentoInputFieldVariant.STATIC_VALUE && !!slots.staticValue\n );\n\n const isDefaultVariant = computed(() => props.variant === BentoInputFieldVariant.DEFAULT);\n\n const isPaymentMethodVariant = computed(() => props.variant === BentoInputFieldVariant.PAYMENT_METHOD);\n\n const shouldDisplayStaticValueAtStart = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayStaticValueAtEnd = computed(\n () => shouldShowStaticValue.value && props.staticValuePosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowDropdown = computed(() => props.variant === BentoInputFieldVariant.DROPDOWN && !!props.dropdown);\n const shouldDisplayDropdownAtStart = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.START\n );\n const shouldDisplayDropdownAtEnd = computed(\n () => shouldShowDropdown.value && props.dropdownPosition === BentoInputFieldElementPosition.END\n );\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.error)\n );\n\n const computedAriaOwns = computed(() => {\n if (shouldShowDropdown.value === true && shouldShowStaticValue.value === true) {\n return `${staticValueId} ${dropdownId}`;\n }\n if (shouldShowDropdown.value === true) {\n return `${dropdownId}`;\n }\n if (shouldShowStaticValue.value === true) {\n return `${staticValueId}`;\n }\n return null;\n });\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabelDropdowFallback = computed(() =>\n t('ariaLabelDropdownFallback', { inputLabel: computedAriaLabel.value })\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: hasSlot('default')\n ? (getSlotText(slots)('default') as string)\n : computedAriaLabelFallbackMessage,\n });\n\n const computedAriaDescribedBy = computed(\n () =>\n `${hasSlot('description') ? descriptionId : ''} ${\n shouldShowError.value && !!props.errorMessage ? errorId : ''\n }`\n );\n\n const inputFieldConditionalClasses = computed(() => ({\n [`b-input-field--${BentoInputFieldStateClass.CONDENSED}`]: props.condensed,\n [`b-input-field--${BentoInputFieldStateClass.DISABLED}`]: props.disabled,\n [`b-input-field--${BentoInputFieldStateClass.READONLY}`]: isReadOnly.value,\n [`b-input-field--${BentoInputFieldStateClass.ERROR}`]: shouldShowError.value,\n }));\n\n const inputFieldDropdownProps = computed(() => ({\n 'aria-label': computedAriaLabelDropdowFallback.value,\n ...props.dropdown,\n }));\n\n const onInput = (event: Event) => {\n const inputValue = (event.target as HTMLInputElement).value;\n if (!props.disabled && !isReadOnly.value) {\n emit('input', inputValue);\n }\n };\n\n const onDropdownInput = (selectedValue: BentoListboxSelectedValue) => {\n emit('dropdown-input', selectedValue);\n emit('update:dropdown', { ...props?.dropdown, value: selectedValue });\n };\n\n const focusInput = () => {\n inputFieldElement.value.focus();\n };\n\n // Expose method so that other components can focus on it in Vue3\n defineExpose({\n focusInput,\n });\n\n if (!Object.values(BentoInputFieldType).includes(props.type as BentoInputFieldType)) {\n printDevelopmentWarning(`\"bento-input-field\" dropdown does not support the type ${props.type}`);\n }\n\n /**\n * Deprecations\n */\n if (props.error) {\n deprecate(\n 'BentoInputField \"error\" property',\n `Use the BentoInputField \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (hasSlot('defaultIconBefore')) {\n deprecate(\n 'BentoInputField \"defaultIconBefore\" slot',\n `Use the BentoInputField \"iconBefore\" slot instead to add an icon at the left side of the input field\n <bento-input-field>\n \\t<template #iconBefore>\n \\t\\t<my-icon-goes-here />\n \\t</template>\n </bento-input-field>`,\n '2.0.0'\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * Input field component is used to create interactive controls for web-based\n * forms in order to accept data from the user.\n *\n * @example\n * import { BentoInputField } from '@adyen/bento-vue2'\n *\n * const inputValue = ref('');\n *\n * export default {\n * components: { BentoInputField },\n * tempate: `\n * <bento-input-field\n * :value=\"inputValue\"\n * :input=\"newValue => inputValue.value = newValue\"\n * >\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./input-field.scss\" />\n"],"names":["BentoInputFieldVariant","BentoInputFieldVariant2","BentoInputFieldElementPosition","BentoInputFieldElementPosition2","BentoInputFieldStateClass","BentoInputFieldStateClass2","BentoInputFieldType","BentoInputFieldType2","BentoInputFieldEvent","BentoInputFieldEvent2","__default__","messages","attrs","useAttrs","slots","useSlots","t","useI18n","hasSlot","useHasSlot","inputFieldElement","ref","inputFieldId","generateUid","dropdownId","staticValueId","descriptionId","errorId","isFocused","provide","INPUT_FIELD_COMPONENT_INJECTION_KEY","hint","inject","INPUT_FIELD_HINT_INJECTION_KEY","onFocus","emit","onBlur","isReadOnly","useFormLayoutFieldLoading","toRef","props","shouldShowStaticValue","computed","isDefaultVariant","isPaymentMethodVariant","shouldDisplayStaticValueAtStart","shouldDisplayStaticValueAtEnd","shouldShowDropdown","shouldDisplayDropdownAtStart","shouldDisplayDropdownAtEnd","shouldShowError","computedAriaOwns","computedAriaLabelFallbackMessage","computedAriaLabelDropdowFallback","computedAriaLabel","ariaLabelAttribute","ariaLabel","toRefs","useAriaLabel","getSlotText","computedAriaDescribedBy","inputFieldConditionalClasses","inputFieldDropdownProps","onInput","event","inputValue","onDropdownInput","selectedValue","focusInput","expose","printDevelopmentWarning","deprecate"],"mappings":";;;;;;;;;;;;AAMY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,iBAAA,kBACAA,EAAA,eAAA,gBACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAA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ACI+B;AAAA,MAAA;AAAA,MACI;AAAA;AAAA;AAAA,MACA;AAAA,IAGA,GAIRrD,EAAA,mBAAA,KACIqD;AAAA,MAAA;AAAA,MACI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MACA;AAAA,IAMA;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,234 +0,0 @@
|
|
|
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 "./typography.Bu_WAKdf.js";
|
|
3
|
-
import { u as G } from "./i18n.BQkEbtPM.js";
|
|
4
|
-
import { B as E, a as q } from "./keyboard-navigation.Clz1jOaA.js";
|
|
5
|
-
import { n as O } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
-
import { B as J } from "./base-button.4UYC3kp2.js";
|
|
7
|
-
import { C as Q } from "./checkmark-small.BtF8b2gE.js";
|
|
8
|
-
import "../assets/step.css";
|
|
9
|
-
const X = (a) => {
|
|
10
|
-
function t(i) {
|
|
11
|
-
return ({ detail: c }) => {
|
|
12
|
-
var s;
|
|
13
|
-
c.preventDefault();
|
|
14
|
-
const l = a.value.indexOf(document.activeElement);
|
|
15
|
-
l < 0 || (s = a.value[l + i]) == null || s.focus();
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
const n = t(-1), e = t(1);
|
|
19
|
-
return {
|
|
20
|
-
[E.ARROW_DOWN]: e,
|
|
21
|
-
[E.ARROW_RIGHT]: e,
|
|
22
|
-
[E.ARROW_UP]: n,
|
|
23
|
-
[E.ARROW_LEFT]: n
|
|
24
|
-
};
|
|
25
|
-
}, Y = (a) => {
|
|
26
|
-
const t = a.buttonElement.value.parentElement, n = t.parentElement;
|
|
27
|
-
return Array.from(n.children).indexOf(t);
|
|
28
|
-
}, k = (a) => ({ registerStep: (e) => {
|
|
29
|
-
const i = Y(e);
|
|
30
|
-
a.value.splice(i, 0, {
|
|
31
|
-
stepContent: e.stepContent,
|
|
32
|
-
buttonElement: e.buttonElement,
|
|
33
|
-
substeps: e.substeps
|
|
34
|
-
});
|
|
35
|
-
}, removeStep: (e) => {
|
|
36
|
-
a.value.splice(
|
|
37
|
-
a.value.findIndex((i) => i.buttonElement === e.buttonElement.value),
|
|
38
|
-
1
|
|
39
|
-
);
|
|
40
|
-
} }), B = Symbol("stepper state");
|
|
41
|
-
var T = /* @__PURE__ */ ((a) => (a.LINEAR = "linear", a.NON_LINEAR = "non-linear", a))(T || {}), $ = /* @__PURE__ */ ((a) => (a.HORIZONTAL = "horizontal", a.VERTICAL = "vertical", a))($ || {});
|
|
42
|
-
const ee = {
|
|
43
|
-
"en-US": {
|
|
44
|
-
step: "Step {currentIndex}/{totalSteps} {content}"
|
|
45
|
-
}
|
|
46
|
-
}, te = {
|
|
47
|
-
i18n: { messages: ee },
|
|
48
|
-
name: "stepper"
|
|
49
|
-
}, se = /* @__PURE__ */ w({
|
|
50
|
-
...te,
|
|
51
|
-
props: {
|
|
52
|
-
/**
|
|
53
|
-
* Type of stepper; defines how the stepper should behave. Default: linear
|
|
54
|
-
* @values linear, non-linear
|
|
55
|
-
*/
|
|
56
|
-
type: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: "linear"
|
|
59
|
-
},
|
|
60
|
-
/**
|
|
61
|
-
* Stepper variant; defines how the stepper should be displayed. Default: vertical
|
|
62
|
-
* @values vertical, horizontal
|
|
63
|
-
*/
|
|
64
|
-
variant: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: "vertical"
|
|
67
|
-
},
|
|
68
|
-
/**
|
|
69
|
-
* Active step index
|
|
70
|
-
*/
|
|
71
|
-
index: {
|
|
72
|
-
type: Number,
|
|
73
|
-
default: 0
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
emits: ["update:index"],
|
|
77
|
-
setup(a, { emit: t }) {
|
|
78
|
-
const n = a, { t: e } = G(), i = p([]), c = p(n.index), l = p(c.value), s = (r) => {
|
|
79
|
-
r > l.value && (l.value = r), c.value = r;
|
|
80
|
-
}, b = o(() => {
|
|
81
|
-
var r;
|
|
82
|
-
return (r = i.value[c.value]) == null ? void 0 : r.stepContent;
|
|
83
|
-
}), v = o(() => i.value.length), m = o(() => i.value.map(({ buttonElement: r }) => r)), f = o(() => n.variant === $.HORIZONTAL), d = o(
|
|
84
|
-
() => i.value.map(({ buttonElement: r, substeps: h }, g) => {
|
|
85
|
-
const N = c.value === g;
|
|
86
|
-
return !f.value && N ? [r].concat(h.map((y) => y.buttonElement)) : [r];
|
|
87
|
-
}).flat()
|
|
88
|
-
), { registerStep: _, removeStep: S } = k(i), C = p({
|
|
89
|
-
activeStepIndex: c,
|
|
90
|
-
latestActiveStep: l,
|
|
91
|
-
steps: m,
|
|
92
|
-
type: n.type,
|
|
93
|
-
variant: n.variant,
|
|
94
|
-
navigateToStep: s,
|
|
95
|
-
registerStep: _,
|
|
96
|
-
removeStep: S
|
|
97
|
-
}), x = o(() => ({
|
|
98
|
-
"b-stepper__list--horizontal": f.value
|
|
99
|
-
}));
|
|
100
|
-
A(() => n.index, s), A(c, (r) => {
|
|
101
|
-
t("update:index", r);
|
|
102
|
-
});
|
|
103
|
-
const I = X(d);
|
|
104
|
-
return L(B, z(C)), { __sfc: !0, props: n, emit: t, t: e, childrenSteps: i, activeStepIndex: c, latestActiveStep: l, navigateToStep: s, currentStepContent: b, stepsAmount: v, childrenStepsElements: m, isHorizontalVariant: f, allVisibleStepsElements: d, registerStep: _, removeStep: S, stepperState: C, conditionalClasses: x, keyboardNavigationListeners: I, BentoTypography: D, vBentoKeyboardNavigationDirective: q };
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
var ne = function() {
|
|
108
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
109
|
-
return n("nav", { staticClass: "b-stepper" }, [n("ol", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-stepper__list", class: e.conditionalClasses }, e.keyboardNavigationListeners), [t._t("default")], 2), n(e.BentoTypography, { staticClass: "b-stepper__text-stepper", attrs: { el: "span", variant: "body", stronger: "" } }, [t._v(t._s(e.t("step", { currentIndex: e.activeStepIndex + 1, totalSteps: e.stepsAmount, content: e.currentStepContent })) + " ")])], 1);
|
|
110
|
-
}, ae = [], oe = /* @__PURE__ */ O(
|
|
111
|
-
se,
|
|
112
|
-
ne,
|
|
113
|
-
ae,
|
|
114
|
-
!1,
|
|
115
|
-
null,
|
|
116
|
-
"8dd6f794"
|
|
117
|
-
);
|
|
118
|
-
const Ie = oe.exports;
|
|
119
|
-
let V = 0;
|
|
120
|
-
const re = {
|
|
121
|
-
beforeCreate() {
|
|
122
|
-
this.uuid = V.toString(), V += 1;
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
var ie = function() {
|
|
126
|
-
var t = this, n = t._self._c;
|
|
127
|
-
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z" } })]);
|
|
128
|
-
}, le = [], ue = /* @__PURE__ */ O(
|
|
129
|
-
re,
|
|
130
|
-
ie,
|
|
131
|
-
le,
|
|
132
|
-
!1,
|
|
133
|
-
null,
|
|
134
|
-
null
|
|
135
|
-
);
|
|
136
|
-
const ce = ue.exports, pe = {
|
|
137
|
-
name: "step"
|
|
138
|
-
}, ve = /* @__PURE__ */ w({
|
|
139
|
-
...pe,
|
|
140
|
-
props: {
|
|
141
|
-
/**
|
|
142
|
-
* Completed status. Used on non-linear steppers to indicate if the step is completed.
|
|
143
|
-
*/
|
|
144
|
-
completed: {
|
|
145
|
-
type: Boolean,
|
|
146
|
-
default: !1
|
|
147
|
-
},
|
|
148
|
-
/**
|
|
149
|
-
* Active substep index
|
|
150
|
-
*/
|
|
151
|
-
substepIndex: {
|
|
152
|
-
type: Number,
|
|
153
|
-
default: 0
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
emits: ["update:substep-index"],
|
|
157
|
-
setup(a, { emit: t }) {
|
|
158
|
-
const n = a, e = Z(), i = p(null), c = p(null), l = p([]), s = U(B), b = o(() => {
|
|
159
|
-
var u;
|
|
160
|
-
return (u = i.value) == null ? void 0 : u.$el;
|
|
161
|
-
}), v = o(() => s == null ? void 0 : s.value.steps.indexOf(b.value)), m = o(() => {
|
|
162
|
-
var u;
|
|
163
|
-
return (u = c.value) == null ? void 0 : u.$el.textContent;
|
|
164
|
-
}), f = o(() => l.value.map(({ buttonElement: u }) => u)), d = p(n.substepIndex), _ = p(d.value), S = (u) => {
|
|
165
|
-
u > _.value && (_.value = u), d.value = u;
|
|
166
|
-
}, { registerStep: C, removeStep: x } = k(l), I = p({
|
|
167
|
-
activeStepIndex: d,
|
|
168
|
-
latestActiveStep: _,
|
|
169
|
-
type: s.value.type,
|
|
170
|
-
variant: s.value.variant,
|
|
171
|
-
steps: f,
|
|
172
|
-
isParentStep: !0,
|
|
173
|
-
navigateToStep: S,
|
|
174
|
-
registerStep: C,
|
|
175
|
-
removeStep: x
|
|
176
|
-
});
|
|
177
|
-
L(B, I), A(() => n.substepIndex, S), A(d, (u) => {
|
|
178
|
-
t("update:substep-index", u);
|
|
179
|
-
}), M(() => {
|
|
180
|
-
if (!s)
|
|
181
|
-
throw new Error(
|
|
182
|
-
"BentoStep components should only be used inside BentoStepper or other BentoStep components."
|
|
183
|
-
);
|
|
184
|
-
s.value.registerStep({
|
|
185
|
-
buttonElement: b,
|
|
186
|
-
stepContent: m,
|
|
187
|
-
substeps: l
|
|
188
|
-
});
|
|
189
|
-
}), j(() => {
|
|
190
|
-
s.value.removeStep({
|
|
191
|
-
buttonElement: b,
|
|
192
|
-
stepContent: m,
|
|
193
|
-
substeps: l
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
const r = o(() => s.value.isParentStep), h = p(!1), g = o(() => (s == null ? void 0 : s.value.activeStepIndex) === v.value), N = o(
|
|
197
|
-
() => g.value && s.value.variant !== $.HORIZONTAL && !r.value && e.substeps
|
|
198
|
-
), R = o(() => (s == null ? void 0 : s.value.type) === T.NON_LINEAR ? n.completed : (s == null ? void 0 : s.value.latestActiveStep) > v.value), y = o(
|
|
199
|
-
() => (s == null ? void 0 : s.value.type) === T.LINEAR && v.value > (s == null ? void 0 : s.value.latestActiveStep)
|
|
200
|
-
), P = () => {
|
|
201
|
-
y.value || s.value.navigateToStep(v.value);
|
|
202
|
-
}, F = o(() => g.value ? "step" : "false"), H = o(() => y.value.toString()), K = o(() => h.value || v.value === 0 && !r.value ? "0" : "-1"), W = o(() => ({
|
|
203
|
-
"b-step--active": g.value,
|
|
204
|
-
"b-step--completed": R.value,
|
|
205
|
-
"b-step--substep": r.value
|
|
206
|
-
}));
|
|
207
|
-
return { __sfc: !0, slots: e, props: n, emit: t, buttonComponent: i, stepContent: c, substeps: l, stepper: s, buttonElement: b, index: v, stepContentValue: m, substepsButtonElements: f, activeSubStepIndex: d, latestActiveSubStepIndex: _, navigateToSubstep: S, registerStep: C, removeStep: x, stepState: I, isSubstep: r, isFocused: h, isActive: g, isSubstepsVisible: N, isCompleted: R, isDisabled: y, navigateToStep: P, ariaCurrentValue: F, ariaDisabledValue: H, tabIndexValue: K, conditionalClasses: W, BaseButton: J, BentoTypography: D, CheckmarkSmallIcon: Q, DotIcon: ce };
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
var de = function() {
|
|
211
|
-
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
212
|
-
return n("li", { staticClass: "b-step", class: e.conditionalClasses }, [n(e.BaseButton, { ref: "buttonComponent", staticClass: "b-step__button", attrs: { "aria-current": e.ariaCurrentValue, "aria-disabled": e.ariaDisabledValue, type: "button", tabindex: e.tabIndexValue, disabled: e.isDisabled }, on: { click: e.navigateToStep, focus: function(i) {
|
|
213
|
-
e.isFocused = !0;
|
|
214
|
-
}, blur: function(i) {
|
|
215
|
-
e.isFocused = !1;
|
|
216
|
-
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
217
|
-
return [n(e.BentoTypography, { staticClass: "b-step__index", attrs: { el: "span", variant: "body", stronger: "", "aria-hidden": "true" } }, [e.isCompleted ? n(e.CheckmarkSmallIcon) : e.isSubstep ? n(e.DotIcon) : [t._v(t._s(e.index + 1))]], 2)];
|
|
218
|
-
}, proxy: !0 }]) }, [n(e.BentoTypography, { ref: "stepContent", staticClass: "b-step__content", attrs: { el: "span", variant: "body", stronger: e.isActive } }, [t._t("default")], 2)], 1), n("ul", { directives: [{ name: "show", rawName: "v-show", value: e.isSubstepsVisible, expression: "isSubstepsVisible" }], ref: "substepList", staticClass: "b-step__substep-list" }, [t._t("substeps")], 2)], 1);
|
|
219
|
-
}, _e = [], be = /* @__PURE__ */ O(
|
|
220
|
-
ve,
|
|
221
|
-
de,
|
|
222
|
-
_e,
|
|
223
|
-
!1,
|
|
224
|
-
null,
|
|
225
|
-
"1941e86b"
|
|
226
|
-
);
|
|
227
|
-
const he = be.exports;
|
|
228
|
-
export {
|
|
229
|
-
T as B,
|
|
230
|
-
he as a,
|
|
231
|
-
$ as b,
|
|
232
|
-
Ie as s
|
|
233
|
-
};
|
|
234
|
-
//# sourceMappingURL=step.D3-7YL7-.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"step.D3-7YL7-.js","sources":["../../src/components/stepper/composables/use-keyboard-navigation/use-keyboard-navigation.ts","../../src/components/stepper/composables/use-step-register/use-step-register.ts","../../src/components/stepper/stepper.keys.ts","../../src/components/stepper/stepper.types.ts","../../src/components/stepper/stepper.vue","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@4.1.0_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/dot.vue","../../src/components/stepper/components/step/step.vue"],"sourcesContent":["import { Ref, UnwrapRef } from 'vue';\n\nimport { BentoKeyboardNavigationKeyDownEvent } from '@/types';\n\n/**\n * Returns keyboard navigation's event handlers to navigate through the steps\n *\n * @param steps the list of bento-steps DOM elements to focus on the navigation\n * @returns\n */\nexport const useKeyboardNavigation = (steps: Ref<UnwrapRef<HTMLButtonElement[]>>) => {\n // Returns the event handler that moves the focus on a given step offset\n function focusOnStep(indexOffset: number) {\n return ({ detail: event }) => {\n event.preventDefault();\n\n const currentIndex = steps.value.indexOf(document.activeElement as HTMLButtonElement);\n if (currentIndex < 0) {\n return;\n }\n\n steps.value[currentIndex + indexOffset]?.focus();\n };\n }\n\n const focusOnPreviousStep = focusOnStep(-1);\n const focusOnNextStep = focusOnStep(1);\n\n return {\n [BentoKeyboardNavigationKeyDownEvent.ARROW_DOWN]: focusOnNextStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_RIGHT]: focusOnNextStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_UP]: focusOnPreviousStep,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_LEFT]: focusOnPreviousStep,\n };\n};\n","import type { Ref, UnwrapRef } from 'vue';\nimport type { BentoStepperStepExposeState } from '../../stepper.types';\n\n/**\n * Gets the position of a `bento-step` element within its `bento-stepper` parent.\n * @param stepState The `bento-step` state.\n * @returns The index of the element.\n */\nconst getStepPosition = (stepState: BentoStepperStepExposeState) => {\n // Button is wrapped by <li> element\n const listItemElement = (stepState.buttonElement as Ref<UnwrapRef<HTMLButtonElement>>).value.parentElement;\n const listElement = listItemElement.parentElement;\n return Array.from(listElement.children).indexOf(listItemElement);\n};\n\n/**\n * Provides methods to register/unregister `bento-step` elements to/from the `bento-stepper` step state.\n * These methods allow for tracking the child step elements, including their position in the DOM tree.\n * @param childrenSteps The `bento-stepper` (or `bento-step` if substeps) step state.\n */\nexport const useStepRegister = (childrenSteps: Ref<BentoStepperStepExposeState[]>) => {\n /**\n * Registers a step's HTML element in the stepper state.\n * Should be called by a `bento-step` when it is mounted.\n * @param stepState The `bento-step` state.\n */\n const registerStep = (stepState: BentoStepperStepExposeState) => {\n const position = getStepPosition(stepState);\n childrenSteps.value.splice(position, 0, {\n stepContent: stepState.stepContent as string,\n buttonElement: stepState.buttonElement as HTMLButtonElement,\n substeps: stepState.substeps as BentoStepperStepExposeState[],\n });\n };\n\n /**\n * Unregisters a step's HTML element in the stepper state.\n * Should be called by a `bento-step` before it is unmounted.\n * @param stepState The `bento-step` state.\n */\n const removeStep = (stepState: BentoStepperStepExposeState) => {\n childrenSteps.value.splice(\n childrenSteps.value.findIndex(step => step.buttonElement === stepState.buttonElement.value),\n 1\n );\n };\n\n return { registerStep, removeStep };\n};\n","export const STEPPER_STATE = Symbol('stepper state');\n","import type { ComputedRef, Ref, UnwrapRef } from 'vue';\n\nexport enum BentoStepperTypeOption {\n LINEAR = 'linear',\n NON_LINEAR = 'non-linear',\n}\n\nexport enum BentoStepperVariantOption {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoStepperStepExposeState {\n buttonElement: HTMLButtonElement | Ref<UnwrapRef<HTMLButtonElement>>;\n substeps: BentoStepperStepExposeState[] | Ref<BentoStepperStepExposeState[]>;\n stepContent: string | ComputedRef<string>;\n}\n\nexport type BentoStepperState = Ref<{\n activeStepIndex: number;\n latestActiveStep: number;\n type: `${BentoStepperTypeOption}`;\n variant: `${BentoStepperVariantOption}`;\n steps: HTMLElement[];\n isParentStep?: boolean;\n navigateToStep: (index: number) => void;\n registerStep: (stepState: BentoStepperStepExposeState) => void;\n removeStep: (stepState: BentoStepperStepExposeState) => void;\n}>;\n","<template>\n <nav class=\"b-stepper\">\n <ol\n v-bento-keyboard-navigation-directive\n class=\"b-stepper__list\"\n :class=\"conditionalClasses\"\n v-on=\"keyboardNavigationListeners\"\n >\n <slot></slot>\n </ol>\n\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-stepper__text-stepper\"\n >{{\n t('step', { currentIndex: activeStepIndex + 1, totalSteps: stepsAmount, content: currentStepContent })\n }}\n </bento-typography>\n </nav>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n\n import { computed, type DeepReadonly, PropType, provide, readonly, ref, watch } from 'vue';\n import { BentoKeyboardNavigationDirective as vBentoKeyboardNavigationDirective } from '@/directives';\n\n import { useKeyboardNavigation, useStepRegister } from './composables';\n import { useI18n } from '@/utils/ts/i18n';\n\n import { STEPPER_STATE } from './stepper.keys';\n import {\n BentoStepperState,\n BentoStepperStepExposeState,\n BentoStepperTypeOption,\n BentoStepperVariantOption,\n } from './stepper.types';\n\n import messages from './messages.json';\n\n const props = defineProps({\n /**\n * Type of stepper; defines how the stepper should behave. Default: linear\n * @values linear, non-linear\n */\n type: {\n type: String as PropType<`${BentoStepperTypeOption}`>,\n default: 'linear',\n },\n /**\n * Stepper variant; defines how the stepper should be displayed. Default: vertical\n * @values vertical, horizontal\n */\n variant: {\n type: String as PropType<`${BentoStepperVariantOption}`>,\n default: 'vertical',\n },\n /**\n * Active step index\n */\n index: {\n type: Number,\n default: 0,\n },\n });\n\n const emit = defineEmits([\"update:index\"]);\n\n type MessageSchema = (typeof messages)['en-US'];\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const childrenSteps = ref<BentoStepperStepExposeState[]>([]);\n const activeStepIndex = ref(props.index);\n const latestActiveStep = ref(activeStepIndex.value);\n\n const navigateToStep = (index: number) => {\n // Stores latest active step index so users can navigate backwards and forwards on linear stepper\n if (index > latestActiveStep.value) {\n latestActiveStep.value = index;\n }\n activeStepIndex.value = index;\n };\n\n const currentStepContent = computed(() => childrenSteps.value[activeStepIndex.value]?.stepContent);\n const stepsAmount = computed(() => childrenSteps.value.length);\n const childrenStepsElements = computed(() => childrenSteps.value.map(({ buttonElement }) => buttonElement));\n const isHorizontalVariant = computed(() => props.variant === BentoStepperVariantOption.HORIZONTAL);\n\n // List of all visible steps nested on the stepper, including the substeps of the children steps\n // Flattening the steps on a single list makes the keyboard navigation easier to be handled\n const allVisibleStepsElements = computed(() =>\n childrenSteps.value\n .map(({ buttonElement, substeps }, index) => {\n const isStepActive = activeStepIndex.value === index;\n const isSubstepsVisible = !isHorizontalVariant.value && isStepActive;\n\n if (!isSubstepsVisible) {\n return [buttonElement];\n }\n\n return [buttonElement].concat(substeps.map(step => step.buttonElement));\n })\n .flat()\n );\n\n const { registerStep, removeStep } = useStepRegister(childrenSteps);\n\n const stepperState: BentoStepperState = ref({\n activeStepIndex,\n latestActiveStep,\n steps: childrenStepsElements,\n type: props.type,\n variant: props.variant,\n navigateToStep,\n registerStep,\n removeStep,\n });\n\n const conditionalClasses = computed(() => ({\n 'b-stepper__list--horizontal': isHorizontalVariant.value,\n }));\n\n watch(() => props.index, navigateToStep);\n watch(activeStepIndex, index => {\n emit('update:index', index);\n });\n\n const keyboardNavigationListeners = useKeyboardNavigation(allVisibleStepsElements);\n\n // Provides stepper state to BentoStep children components\n provide<DeepReadonly<BentoStepperState>>(STEPPER_STATE, readonly(stepperState));\n</script>\n\n<script lang=\"ts\">\n /**\n * Steppers break down complex processes into manageable steps to guide users through a sequential or multi-step process.\n *\n * @example\n * import { BentoStep, BentoStepper } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStep, BentoStepper },\n * template: `\n * <bento-stepper :index=\"1\">\n * <bento-step>Step 1</bento-step>\n * <bento-step>Step 2</bento-step>\n * <bento-step>Step 3</bento-step>\n * </bento-stepper>\n * `\n * }\n */\n\n export default {\n i18n: { messages },\n name: 'stepper',\n };\n</script>\n\n<style scoped src=\"./stepper.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <li :class=\"conditionalClasses\" class=\"b-step\">\n <base-button\n ref=\"buttonComponent\"\n :aria-current=\"ariaCurrentValue\"\n :aria-disabled=\"ariaDisabledValue\"\n class=\"b-step__button\"\n type=\"button\"\n :tabindex=\"tabIndexValue\"\n :disabled=\"isDisabled\"\n @click=\"navigateToStep\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n >\n <template #iconLeft>\n <bento-typography el=\"span\" variant=\"body\" stronger class=\"b-step__index\" aria-hidden=\"true\">\n <checkmark-small-icon v-if=\"isCompleted\" />\n <template v-else-if=\"!isSubstep\">{{ index + 1 }}</template>\n <dot-icon v-else />\n </bento-typography>\n </template>\n\n <bento-typography ref=\"stepContent\" el=\"span\" variant=\"body\" :stronger=\"isActive\" class=\"b-step__content\">\n <slot></slot>\n </bento-typography>\n </base-button>\n\n <ul v-show=\"isSubstepsVisible\" ref=\"substepList\" class=\"b-step__substep-list\">\n <slot name=\"substeps\"></slot>\n </ul>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, onBeforeUnmount, onMounted, provide, ref, useSlots, watch } from 'vue';\n import { BaseButton } from '@/components/internal/base-button';\n import { BentoTypography } from '@/components/typography';\n import CheckmarkSmallIcon from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import DotIcon from '@adyen/ui-assets-icons-16/vue/dot';\n\n import { useStepRegister } from '../../composables';\n import { STEPPER_STATE } from '../../stepper.keys';\n import {\n BentoStepperState,\n BentoStepperStepExposeState,\n BentoStepperTypeOption,\n BentoStepperVariantOption,\n } from '../../stepper.types';\n import { Booleanish } from '@/types';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Completed status. Used on non-linear steppers to indicate if the step is completed.\n */\n completed: {\n type: Boolean,\n default: false,\n },\n /**\n * Active substep index\n */\n substepIndex: {\n type: Number,\n default: 0,\n },\n });\n\n const emit = defineEmits([\"update:substep-index\"]);\n\n // Element refs\n const buttonComponent = ref<InstanceType<typeof BaseButton> | null>(null);\n const stepContent = ref<InstanceType<typeof BentoTypography> | null>(null);\n const substeps = ref<BentoStepperStepExposeState[]>([]);\n\n // Injects parent BentoStepper state data\n const stepper = inject<BentoStepperState>(STEPPER_STATE);\n\n const buttonElement = computed(() => buttonComponent.value?.$el as HTMLButtonElement);\n const index = computed(() => stepper?.value.steps.indexOf(buttonElement.value));\n\n const stepContentValue = computed(() => stepContent.value?.$el.textContent);\n\n // Substep logic\n const substepsButtonElements = computed(() => substeps.value.map(({ buttonElement }) => buttonElement));\n\n const activeSubStepIndex = ref(props.substepIndex);\n const latestActiveSubStepIndex = ref(activeSubStepIndex.value);\n\n const navigateToSubstep = (value: number) => {\n if (value > latestActiveSubStepIndex.value) {\n latestActiveSubStepIndex.value = value;\n }\n\n activeSubStepIndex.value = value;\n };\n\n const { registerStep, removeStep } = useStepRegister(substeps);\n\n const stepState: BentoStepperState = ref({\n activeStepIndex: activeSubStepIndex,\n latestActiveStep: latestActiveSubStepIndex,\n type: stepper.value.type,\n variant: stepper.value.variant,\n steps: substepsButtonElements,\n isParentStep: true,\n navigateToStep: navigateToSubstep,\n registerStep,\n removeStep,\n });\n\n provide(STEPPER_STATE, stepState);\n\n watch(() => props.substepIndex, navigateToSubstep);\n watch(activeSubStepIndex, value => {\n emit('update:substep-index', value);\n });\n\n onMounted(() => {\n if (!stepper) {\n throw new Error(\n 'BentoStep components should only be used inside BentoStepper or other BentoStep components.'\n );\n }\n\n stepper.value.registerStep({\n buttonElement,\n stepContent: stepContentValue,\n substeps,\n });\n });\n\n onBeforeUnmount(() => {\n stepper.value.removeStep({\n buttonElement,\n stepContent: stepContentValue,\n substeps,\n });\n });\n\n // Step states\n const isSubstep = computed(() => stepper.value.isParentStep);\n const isFocused = ref(false);\n const isActive = computed(() => stepper?.value.activeStepIndex === index.value);\n const isSubstepsVisible = computed(\n () =>\n isActive.value &&\n stepper.value.variant !== BentoStepperVariantOption.HORIZONTAL &&\n !isSubstep.value &&\n slots.substeps\n );\n const isCompleted = computed(() => {\n if (stepper?.value.type === BentoStepperTypeOption.NON_LINEAR) {\n return props.completed;\n }\n\n return stepper?.value.latestActiveStep > index.value;\n });\n const isDisabled = computed(\n () => stepper?.value.type === BentoStepperTypeOption.LINEAR && index.value > stepper?.value.latestActiveStep\n );\n\n const navigateToStep = () => {\n if (isDisabled.value) {\n return;\n }\n\n stepper.value.navigateToStep(index.value);\n };\n\n // Styling and a11y\n const ariaCurrentValue = computed(() => (isActive.value ? 'step' : ('false' as Booleanish)));\n const ariaDisabledValue = computed(() => isDisabled.value.toString() as Booleanish);\n const tabIndexValue = computed(() => (isFocused.value || (index.value === 0 && !isSubstep.value) ? '0' : '-1'));\n\n const conditionalClasses = computed(() => ({\n 'b-step--active': isActive.value,\n 'b-step--completed': isCompleted.value,\n 'b-step--substep': isSubstep.value,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Steps are components placed inside BentoSteppers to break down complex processes\n *\n * @example\n * import { BentoStep } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStep },\n * template: `\n * <bento-stepper>\n * <bento-step>Step 1</bento-step>\n * <bento-step>\n * Step 2\n * <template #substeps>\n * <bento-step>Substep 1</bento-step>\n * <bento-step>Substep 2</bento-step>\n * </template>\n * </bento-step>\n * </bento-stepper>\n * `\n * }\n */\n\n export default {\n name: 'step',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./step.scss\" />\n"],"names":["useKeyboardNavigation","steps","focusOnStep","indexOffset","event","currentIndex","_a","focusOnPreviousStep","focusOnNextStep","BentoKeyboardNavigationKeyDownEvent","getStepPosition","stepState","listItemElement","listElement","useStepRegister","childrenSteps","position","step","STEPPER_STATE","BentoStepperTypeOption","BentoStepperTypeOption2","BentoStepperVariantOption","BentoStepperVariantOption2","__default__$1","messages","t","useI18n","ref","activeStepIndex","props","latestActiveStep","navigateToStep","index","currentStepContent","computed","stepsAmount","childrenStepsElements","buttonElement","isHorizontalVariant","allVisibleStepsElements","substeps","isStepActive","registerStep","removeStep","stepperState","conditionalClasses","watch","emit","keyboardNavigationListeners","provide","readonly","uuid","_sfc_main$1","__default__","slots","useSlots","buttonComponent","stepContent","stepper","inject","stepContentValue","substepsButtonElements","buttonElement2","activeSubStepIndex","latestActiveSubStepIndex","navigateToSubstep","value","onMounted","onBeforeUnmount","isSubstep","isFocused","isActive","isSubstepsVisible","isCompleted","isDisabled","ariaCurrentValue","ariaDisabledValue","tabIndexValue"],"mappings":";;;;;;;;AAUa,MAAAA,IAAA,CAAAC,MAAA;AAET,WAAAC,EAAAC,GAAA;AACI,WAAA,CAAA,EAAA,QAAAC,EAAA,MAAA;;AACI,MAAAA,EAAA,eAAA;AAEA,YAAAC,IAAAJ,EAAA,MAAA,QAAA,SAAA,aAAA;AACA,MAAAI,IAAA,MAIAC,IAAAL,EAAA,MAAAI,IAAAF,CAAA,MAAA,QAAAG,EAAA;AAAA,IAA+C;AAAA,EACnD;AAGJ,QAAAC,IAAAL,EAAA,EAAA,GACAM,IAAAN,EAAA,CAAA;AAEA,SAAA;AAAA,IAAO,CAAAO,EAAA,UAAA,GAAAD;AAAA,IAC+C,CAAAC,EAAA,WAAA,GAAAD;AAAA,IACC,CAAAC,EAAA,QAAA,GAAAF;AAAA,IACH,CAAAE,EAAA,UAAA,GAAAF;AAAA,EACE;AAE1D,GC1BAG,IAAA,CAAAC,MAAA;AAEI,QAAAC,IAAAD,EAAA,cAAA,MAAA,eACAE,IAAAD,EAAA;AACA,SAAA,MAAA,KAAAC,EAAA,QAAA,EAAA,QAAAD,CAAA;AACJ,GAOaE,IAA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