@adyen/bento-vue2 1.42.0 → 1.43.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.
Files changed (88) hide show
  1. package/dist/@types/index.d.ts +35 -0
  2. package/dist/action-bar.js +1 -1
  3. package/dist/assets/accordion-item.css +1 -1
  4. package/dist/assets/action-bar.css +1 -1
  5. package/dist/assets/base-modal.css +1 -1
  6. package/dist/assets/card.css +1 -1
  7. package/dist/assets/data-grid.css +1 -1
  8. package/dist/assets/date-range-picker.css +1 -1
  9. package/dist/assets/dialog-page.css +1 -1
  10. package/dist/assets/file-uploader.css +1 -1
  11. package/dist/assets/filter-bar.css +1 -1
  12. package/dist/assets/inspector.css +1 -1
  13. package/dist/assets/menu.css +1 -1
  14. package/dist/assets/modal-fullscreen.css +1 -1
  15. package/dist/assets/popover.css +1 -1
  16. package/dist/assets/sidepanel.css +1 -1
  17. package/dist/assets/typography.css +1 -1
  18. package/dist/checkbox.js +2 -2
  19. package/dist/chunks/{action-bar.C1iwQWyj.js → action-bar.kPPYSgQK.js} +2 -2
  20. package/dist/chunks/{action-bar.C1iwQWyj.js.map → action-bar.kPPYSgQK.js.map} +1 -1
  21. package/dist/chunks/{checkbox-group.B1FsPVSl.js → checkbox-group.Bcqac3y8.js} +2 -2
  22. package/dist/chunks/{checkbox-group.B1FsPVSl.js.map → checkbox-group.Bcqac3y8.js.map} +1 -1
  23. package/dist/chunks/{checkbox.kd1EnszA.js → checkbox.B1qjI4R_.js} +15 -15
  24. package/dist/chunks/{checkbox.kd1EnszA.js.map → checkbox.B1qjI4R_.js.map} +1 -1
  25. package/dist/chunks/{code-snippet.DGMVhQoj.js → code-snippet.DuZDA7gH.js} +2 -2
  26. package/dist/chunks/{code-snippet.DGMVhQoj.js.map → code-snippet.DuZDA7gH.js.map} +1 -1
  27. package/dist/chunks/{dashboard-section.D8ey7nzl.js → dashboard-section.CExqPbQb.js} +2 -2
  28. package/dist/chunks/{dashboard-section.D8ey7nzl.js.map → dashboard-section.CExqPbQb.js.map} +1 -1
  29. package/dist/chunks/data-grid.BXB98JQr.js +2556 -0
  30. package/dist/chunks/data-grid.BXB98JQr.js.map +1 -0
  31. package/dist/chunks/{date-range-picker.BvHFTptS.js → date-range-picker.xYGf0SRg.js} +176 -173
  32. package/dist/chunks/date-range-picker.xYGf0SRg.js.map +1 -0
  33. package/dist/chunks/{dropdown-tag.DqgJnpjk.js → dropdown-tag.B4RMse5R.js} +2 -2
  34. package/dist/chunks/{dropdown-tag.DqgJnpjk.js.map → dropdown-tag.B4RMse5R.js.map} +1 -1
  35. package/dist/chunks/{dropdown.2tXfuDlU.js → dropdown.BfzsI2Th.js} +2 -2
  36. package/dist/chunks/{dropdown.2tXfuDlU.js.map → dropdown.BfzsI2Th.js.map} +1 -1
  37. package/dist/chunks/es6.b4enG1py.js.map +1 -1
  38. package/dist/chunks/{filter-bar.DP_nQeeo.js → filter-bar.hBPWastb.js} +9 -9
  39. package/dist/chunks/filter-bar.hBPWastb.js.map +1 -0
  40. package/dist/chunks/index.Gcw_BUVh.js +367 -0
  41. package/dist/chunks/index.Gcw_BUVh.js.map +1 -0
  42. package/dist/chunks/{input-field-password.ijBN-aVx.js → input-field-password.BmfOGkrH.js} +3 -3
  43. package/dist/chunks/{input-field-password.ijBN-aVx.js.map → input-field-password.BmfOGkrH.js.map} +1 -1
  44. package/dist/chunks/{input-field.BoElSWuV.js → input-field.CHD3Fzzg.js} +2 -2
  45. package/dist/chunks/{input-field.BoElSWuV.js.map → input-field.CHD3Fzzg.js.map} +1 -1
  46. package/dist/chunks/{layout-row.6jCBhtd4.js → layout-row.DzS_XyyF.js} +2 -2
  47. package/dist/chunks/{layout-row.6jCBhtd4.js.map → layout-row.DzS_XyyF.js.map} +1 -1
  48. package/dist/chunks/{pagination.FbkfItkS.js → pagination.DORr-ox0.js} +2 -2
  49. package/dist/chunks/{pagination.FbkfItkS.js.map → pagination.DORr-ox0.js.map} +1 -1
  50. package/dist/chunks/{promo-banner.CGz3MVPw.js → promo-banner.cTUF9seG.js} +2 -2
  51. package/dist/chunks/{promo-banner.CGz3MVPw.js.map → promo-banner.cTUF9seG.js.map} +1 -1
  52. package/dist/chunks/{search-bar.DD6eA0jG.js → search-bar.BtFX4039.js} +3 -3
  53. package/dist/chunks/{search-bar.DD6eA0jG.js.map → search-bar.BtFX4039.js.map} +1 -1
  54. package/dist/chunks/{secondary-nav.C56_jw55.js → secondary-nav.DtnWRhFW.js} +3 -3
  55. package/dist/chunks/{secondary-nav.C56_jw55.js.map → secondary-nav.DtnWRhFW.js.map} +1 -1
  56. package/dist/chunks/{selection-card-group.DwkH9xJd.js → selection-card-group.B6XXbJsv.js} +8 -8
  57. package/dist/chunks/{selection-card-group.DwkH9xJd.js.map → selection-card-group.B6XXbJsv.js.map} +1 -1
  58. package/dist/chunks/{use-cached-selected-values.-_Gk6HO_.js → use-cached-selected-values.CAlfyb_L.js} +7 -4
  59. package/dist/chunks/{use-cached-selected-values.-_Gk6HO_.js.map → use-cached-selected-values.CAlfyb_L.js.map} +1 -1
  60. package/dist/code-snippet.js +1 -1
  61. package/dist/dashboard-template.js +1 -1
  62. package/dist/data-grid.js +1 -1
  63. package/dist/date-range-picker.js +1 -1
  64. package/dist/dropdown.js +3 -3
  65. package/dist/filter-bar.js +1 -1
  66. package/dist/index.js +19 -19
  67. package/dist/input-field-password.js +1 -1
  68. package/dist/input-field.js +1 -1
  69. package/dist/internal.js +1 -1
  70. package/dist/layout.js +1 -1
  71. package/dist/pagination.js +1 -1
  72. package/dist/promo-banner.js +1 -1
  73. package/dist/search-bar.js +2 -2
  74. package/dist/secondary-nav.js +1 -1
  75. package/dist/selection-card.js +1 -1
  76. package/dist/styles/bento-dark.css +3 -0
  77. package/dist/styles/bento-light.css +3 -0
  78. package/dist/styles/bento.css +3 -0
  79. package/dist/styles/legacy.css +3 -0
  80. package/dist/styles/styleguide.css +3 -0
  81. package/dist/web-types.json +75 -1
  82. package/package.json +7 -4
  83. package/dist/chunks/data-grid.bti50Fs6.js +0 -2373
  84. package/dist/chunks/data-grid.bti50Fs6.js.map +0 -1
  85. package/dist/chunks/date-range-picker.BvHFTptS.js.map +0 -1
  86. package/dist/chunks/filter-bar.DP_nQeeo.js.map +0 -1
  87. package/dist/chunks/index.BiaBX5uu.js +0 -345
  88. package/dist/chunks/index.BiaBX5uu.js.map +0 -1
@@ -1,345 +0,0 @@
1
- import "./index.Cl4_42j5.js";
2
- import { getCurrentScope as F, onScopeDispose as M, unref as N, watch as E, onMounted as T, nextTick as j, ref as m, customRef as L, getCurrentInstance as $, watchEffect as R, computed as w } from "vue";
3
- function _(e, n) {
4
- let t, o, i;
5
- const s = m(!0), c = () => {
6
- s.value = !0, i();
7
- };
8
- E(e, c, { flush: "sync" });
9
- const r = typeof n == "function" ? n : n.get, u = typeof n == "function" ? void 0 : n.set, a = L((d, l) => (o = d, i = l, {
10
- get() {
11
- return s.value && (t = r(), s.value = !1), o(), t;
12
- },
13
- set(f) {
14
- u == null || u(f);
15
- }
16
- }));
17
- return Object.isExtensible(a) && (a.trigger = c), a;
18
- }
19
- function W(e) {
20
- return F() ? (M(e), !0) : !1;
21
- }
22
- function y(e) {
23
- return typeof e == "function" ? e() : N(e);
24
- }
25
- const C = typeof window < "u" && typeof document < "u";
26
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
27
- const P = Object.prototype.toString, B = (e) => P.call(e) === "[object Object]", S = () => {
28
- };
29
- function z(e, n) {
30
- function t(...o) {
31
- return new Promise((i, s) => {
32
- Promise.resolve(e(() => n.apply(this, o), { fn: n, thisArg: this, args: o })).then(i).catch(s);
33
- });
34
- }
35
- return t;
36
- }
37
- const D = (e) => e();
38
- function G(e, n = {}) {
39
- let t, o, i = S;
40
- const s = (r) => {
41
- clearTimeout(r), i(), i = S;
42
- };
43
- return (r) => {
44
- const u = y(e), a = y(n.maxWait);
45
- return t && s(t), u <= 0 || a !== void 0 && a <= 0 ? (o && (s(o), o = null), Promise.resolve(r())) : new Promise((d, l) => {
46
- i = n.rejectOnCancel ? l : d, a && !o && (o = setTimeout(() => {
47
- t && s(t), o = null, d(r());
48
- }, a)), t = setTimeout(() => {
49
- o && s(o), o = null, d(r());
50
- }, u);
51
- });
52
- };
53
- }
54
- function H(e, n) {
55
- var t;
56
- if (typeof e == "number")
57
- return e + n;
58
- const o = ((t = e.match(/^-?[0-9]+\.?[0-9]*/)) == null ? void 0 : t[0]) || "", i = e.slice(o.length), s = Number.parseFloat(o) + n;
59
- return Number.isNaN(s) ? e : s + i;
60
- }
61
- function V(e) {
62
- return $();
63
- }
64
- function Y(e, n, t = {}) {
65
- const {
66
- eventFilter: o = D,
67
- ...i
68
- } = t;
69
- return E(
70
- e,
71
- z(
72
- o,
73
- n
74
- ),
75
- i
76
- );
77
- }
78
- function A(e, n = !0, t) {
79
- V() ? T(e, t) : n ? e() : j(e);
80
- }
81
- function J(e, n, t = {}) {
82
- const {
83
- debounce: o = 0,
84
- maxWait: i = void 0,
85
- ...s
86
- } = t;
87
- return Y(
88
- e,
89
- n,
90
- {
91
- ...s,
92
- eventFilter: G(o, { maxWait: i })
93
- }
94
- );
95
- }
96
- function p(e) {
97
- var n;
98
- const t = y(e);
99
- return (n = t == null ? void 0 : t.$el) != null ? n : t;
100
- }
101
- const b = C ? window : void 0;
102
- function x(...e) {
103
- let n, t, o, i;
104
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, o, i] = e, n = b) : [n, t, o, i] = e, !n)
105
- return S;
106
- Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
107
- const s = [], c = () => {
108
- s.forEach((d) => d()), s.length = 0;
109
- }, r = (d, l, f, h) => (d.addEventListener(l, f, h), () => d.removeEventListener(l, f, h)), u = E(
110
- () => [p(n), y(i)],
111
- ([d, l]) => {
112
- if (c(), !d)
113
- return;
114
- const f = B(l) ? { ...l } : l;
115
- s.push(
116
- ...t.flatMap((h) => o.map((v) => r(d, h, v, f)))
117
- );
118
- },
119
- { immediate: !0, flush: "post" }
120
- ), a = () => {
121
- u(), c();
122
- };
123
- return W(a), a;
124
- }
125
- function q(e = {}) {
126
- var n;
127
- const {
128
- window: t = b,
129
- deep: o = !0
130
- } = e, i = (n = e.document) != null ? n : t == null ? void 0 : t.document, s = () => {
131
- var r;
132
- let u = i == null ? void 0 : i.activeElement;
133
- if (o)
134
- for (; u != null && u.shadowRoot; )
135
- u = (r = u == null ? void 0 : u.shadowRoot) == null ? void 0 : r.activeElement;
136
- return u;
137
- }, c = _(
138
- () => null,
139
- () => s()
140
- );
141
- return t && (x(t, "blur", (r) => {
142
- r.relatedTarget === null && c.trigger();
143
- }, !0), x(t, "focus", c.trigger, !0)), c;
144
- }
145
- function X() {
146
- const e = m(!1);
147
- return $() && T(() => {
148
- e.value = !0;
149
- }), e;
150
- }
151
- function I(e) {
152
- const n = X();
153
- return w(() => (n.value, !!e()));
154
- }
155
- function g(e, n = {}) {
156
- const { window: t = b } = n, o = I(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
157
- let i;
158
- const s = m(!1), c = (a) => {
159
- s.value = a.matches;
160
- }, r = () => {
161
- i && ("removeEventListener" in i ? i.removeEventListener("change", c) : i.removeListener(c));
162
- }, u = R(() => {
163
- o.value && (r(), i = t.matchMedia(y(e)), "addEventListener" in i ? i.addEventListener("change", c) : i.addListener(c), s.value = i.matches);
164
- });
165
- return W(() => {
166
- u(), r(), i = void 0;
167
- }), s;
168
- }
169
- function K(e, n = {}) {
170
- function t(r, u) {
171
- let a = y(e[r]);
172
- return u != null && (a = H(a, u)), typeof a == "number" && (a = `${a}px`), a;
173
- }
174
- const { window: o = b } = n;
175
- function i(r) {
176
- return o ? o.matchMedia(r).matches : !1;
177
- }
178
- const s = (r) => g(() => `(min-width: ${t(r)})`, n), c = Object.keys(e).reduce((r, u) => (Object.defineProperty(r, u, {
179
- get: () => s(u),
180
- enumerable: !0,
181
- configurable: !0
182
- }), r), {});
183
- return Object.assign(c, {
184
- greater(r) {
185
- return g(() => `(min-width: ${t(r, 0.1)})`, n);
186
- },
187
- greaterOrEqual: s,
188
- smaller(r) {
189
- return g(() => `(max-width: ${t(r, -0.1)})`, n);
190
- },
191
- smallerOrEqual(r) {
192
- return g(() => `(max-width: ${t(r)})`, n);
193
- },
194
- between(r, u) {
195
- return g(() => `(min-width: ${t(r)}) and (max-width: ${t(u, -0.1)})`, n);
196
- },
197
- isGreater(r) {
198
- return i(`(min-width: ${t(r, 0.1)})`);
199
- },
200
- isGreaterOrEqual(r) {
201
- return i(`(min-width: ${t(r)})`);
202
- },
203
- isSmaller(r) {
204
- return i(`(max-width: ${t(r, -0.1)})`);
205
- },
206
- isSmallerOrEqual(r) {
207
- return i(`(max-width: ${t(r)})`);
208
- },
209
- isInBetween(r, u) {
210
- return i(`(min-width: ${t(r)}) and (max-width: ${t(u, -0.1)})`);
211
- },
212
- current() {
213
- const r = Object.keys(e).map((u) => [u, s(u)]);
214
- return w(() => r.filter(([, u]) => u.value).map(([u]) => u));
215
- }
216
- });
217
- }
218
- function k(e, n, t = {}) {
219
- const { window: o = b, ...i } = t;
220
- let s;
221
- const c = I(() => o && "ResizeObserver" in o), r = () => {
222
- s && (s.disconnect(), s = void 0);
223
- }, u = w(() => Array.isArray(e) ? e.map((l) => p(l)) : [p(e)]), a = E(
224
- u,
225
- (l) => {
226
- if (r(), c.value && o) {
227
- s = new ResizeObserver(n);
228
- for (const f of l)
229
- f && s.observe(f, i);
230
- }
231
- },
232
- { immediate: !0, flush: "post", deep: !0 }
233
- ), d = () => {
234
- r(), a();
235
- };
236
- return W(d), {
237
- isSupported: c,
238
- stop: d
239
- };
240
- }
241
- function Z(e, n = { width: 0, height: 0 }, t = {}) {
242
- const { window: o = b, box: i = "content-box" } = t, s = w(() => {
243
- var l, f;
244
- return (f = (l = p(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : f.includes("svg");
245
- }), c = m(n.width), r = m(n.height), { stop: u } = k(
246
- e,
247
- ([l]) => {
248
- const f = i === "border-box" ? l.borderBoxSize : i === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
249
- if (o && s.value) {
250
- const h = p(e);
251
- if (h) {
252
- const v = o.getComputedStyle(h);
253
- c.value = Number.parseFloat(v.width), r.value = Number.parseFloat(v.height);
254
- }
255
- } else if (f) {
256
- const h = Array.isArray(f) ? f : [f];
257
- c.value = h.reduce((v, { inlineSize: O }) => v + O, 0), r.value = h.reduce((v, { blockSize: O }) => v + O, 0);
258
- } else
259
- c.value = l.contentRect.width, r.value = l.contentRect.height;
260
- },
261
- t
262
- );
263
- A(() => {
264
- const l = p(e);
265
- l && (c.value = "offsetWidth" in l ? l.offsetWidth : n.width, r.value = "offsetHeight" in l ? l.offsetHeight : n.height);
266
- });
267
- const a = E(
268
- () => p(e),
269
- (l) => {
270
- c.value = l ? n.width : 0, r.value = l ? n.height : 0;
271
- }
272
- );
273
- function d() {
274
- u(), a();
275
- }
276
- return {
277
- width: c,
278
- height: r,
279
- stop: d
280
- };
281
- }
282
- function ee(e, n = {}) {
283
- const t = q(n), o = w(() => p(e));
284
- return { focused: w(() => o.value && t.value ? o.value.contains(t.value) : !1) };
285
- }
286
- function te(e = {}) {
287
- const { window: n = b, behavior: t = "auto" } = e;
288
- if (!n)
289
- return {
290
- x: m(0),
291
- y: m(0)
292
- };
293
- const o = m(n.scrollX), i = m(n.scrollY), s = w({
294
- get() {
295
- return o.value;
296
- },
297
- set(r) {
298
- scrollTo({ left: r, behavior: t });
299
- }
300
- }), c = w({
301
- get() {
302
- return i.value;
303
- },
304
- set(r) {
305
- scrollTo({ top: r, behavior: t });
306
- }
307
- });
308
- return x(
309
- n,
310
- "scroll",
311
- () => {
312
- o.value = n.scrollX, i.value = n.scrollY;
313
- },
314
- {
315
- capture: !1,
316
- passive: !0
317
- }
318
- ), { x: s, y: c };
319
- }
320
- function ne(e = {}) {
321
- const {
322
- window: n = b,
323
- initialWidth: t = Number.POSITIVE_INFINITY,
324
- initialHeight: o = Number.POSITIVE_INFINITY,
325
- listenOrientation: i = !0,
326
- includeScrollbar: s = !0
327
- } = e, c = m(t), r = m(o), u = () => {
328
- n && (s ? (c.value = n.innerWidth, r.value = n.innerHeight) : (c.value = n.document.documentElement.clientWidth, r.value = n.document.documentElement.clientHeight));
329
- };
330
- if (u(), A(u), x("resize", u, { passive: !0 }), i) {
331
- const a = g("(orientation: portrait)");
332
- E(a, () => u());
333
- }
334
- return { width: c, height: r };
335
- }
336
- export {
337
- Z as a,
338
- te as b,
339
- ee as c,
340
- g as d,
341
- K as e,
342
- ne as u,
343
- J as w
344
- };
345
- //# sourceMappingURL=index.BiaBX5uu.js.map