@adyen/bento-vue3 1.96.0 → 1.96.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/chunks/{data-grid.CNIXkdCJ.js → data-grid.kZgqWqQx.js} +2 -2
- package/dist/chunks/{data-grid.CNIXkdCJ.js.map → data-grid.kZgqWqQx.js.map} +1 -1
- package/dist/chunks/{filter-bar.CvZnM3hM.js → filter-bar.CzFtzztU.js} +42 -35
- package/dist/chunks/{filter-bar.CvZnM3hM.js.map → filter-bar.CzFtzztU.js.map} +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/index.js +2 -2
- package/dist/web-types.json +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as R, onMounted as Ne, watch as
|
|
1
|
+
import { ref as R, onMounted as Ne, watch as ee, computed as d, defineComponent as W, useSlots as Ue, useAttrs as Qt, openBlock as m, createBlock as O, unref as r, mergeProps as le, withCtx as h, createElementVNode as q, renderSlot as pe, createCommentVNode as K, createVNode as C, createTextVNode as X, toDisplayString as J, shallowRef as Zt, resolveComponent as M, normalizeClass as oe, createSlots as Ie, createElementBlock as Y, withDirectives as Ye, withKeys as be, nextTick as ft, toRef as Q, onBeforeUpdate as Ve, provide as pt, Fragment as Ee, reactive as xt, isRef as el, renderList as he, normalizeProps as Le, guardReactiveProps as $e, vShow as tl, resolveDynamicComponent as Pe, normalizeStyle as ll } from "vue";
|
|
2
2
|
import { B as ke, a as Te } from "./search-bar.TKgi1KLs.js";
|
|
3
3
|
import { u as al } from "./use-bento-toast-controller.D_NSnBxi.js";
|
|
4
4
|
import { u as ce } from "./index.B875RXHM.js";
|
|
@@ -49,7 +49,7 @@ function wt(e, l) {
|
|
|
49
49
|
const t = R(), n = R();
|
|
50
50
|
Ne(() => {
|
|
51
51
|
e.value != null && (n.value = Xl(e.value));
|
|
52
|
-
}),
|
|
52
|
+
}), ee(
|
|
53
53
|
() => e.value,
|
|
54
54
|
(u) => {
|
|
55
55
|
t.value = we(u);
|
|
@@ -868,7 +868,7 @@ function ra(e, l) {
|
|
|
868
868
|
function c() {
|
|
869
869
|
a.value > je || a.value < je && a.value >= nt && l.value.medium === "multi-line" ? s() : i();
|
|
870
870
|
}
|
|
871
|
-
|
|
871
|
+
ee(() => l.value, c), nl(e, (p) => {
|
|
872
872
|
a.value = p[0].contentRect.width, c();
|
|
873
873
|
});
|
|
874
874
|
const v = d(() => a.value >= je), u = d(() => ({ "b-filter-bar--large-layout": v.value }));
|
|
@@ -1180,14 +1180,14 @@ const It = {
|
|
|
1180
1180
|
disabled: a.disableSecondaryButton
|
|
1181
1181
|
}
|
|
1182
1182
|
]);
|
|
1183
|
-
return
|
|
1183
|
+
return ee(
|
|
1184
1184
|
() => i.value,
|
|
1185
|
-
(L,
|
|
1186
|
-
!L &&
|
|
1185
|
+
(L, te) => {
|
|
1186
|
+
!L && te && c.value?.filterBarButtonRef?.bentoBaseButtonRef && c.value.filterBarButtonRef.bentoBaseButtonRef.focus();
|
|
1187
1187
|
}
|
|
1188
1188
|
), fl(v, se, { ignore: [c] }), l({
|
|
1189
1189
|
closePopover: B
|
|
1190
|
-
}), (L,
|
|
1190
|
+
}), (L, te) => L.onlySlot ? (m(), Y("div", Ca, [
|
|
1191
1191
|
pe(L.$slots, "default", {}, void 0, !0)
|
|
1192
1192
|
])) : (m(), Y("div", Ta, [
|
|
1193
1193
|
Ye((m(), O(_t, {
|
|
@@ -1267,7 +1267,7 @@ const It = {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
}), me = /* @__PURE__ */ Z(Da, [["__scopeId", "data-v-77e077a9"]]), wa = (e) => e instanceof Array, st = (e) => wa(e) ? e.length === 0 || e.every((l) => l === "") : !e, rt = (e, l) => JSON.stringify(e) === JSON.stringify(l), ge = (e, l) => {
|
|
1269
1269
|
const t = R(e.value);
|
|
1270
|
-
|
|
1270
|
+
ee(
|
|
1271
1271
|
() => e.value,
|
|
1272
1272
|
() => {
|
|
1273
1273
|
t.value = e.value;
|
|
@@ -1310,7 +1310,7 @@ const It = {
|
|
|
1310
1310
|
}));
|
|
1311
1311
|
Ve(() => {
|
|
1312
1312
|
u.value === "" && (u.value = null);
|
|
1313
|
-
}),
|
|
1313
|
+
}), ee(a, () => {
|
|
1314
1314
|
a.value?.focusInput();
|
|
1315
1315
|
});
|
|
1316
1316
|
const _ = () => {
|
|
@@ -1332,7 +1332,7 @@ const It = {
|
|
|
1332
1332
|
}, ae = (j) => {
|
|
1333
1333
|
o.value = j;
|
|
1334
1334
|
};
|
|
1335
|
-
return pt(bl, s.value),
|
|
1335
|
+
return pt(bl, s.value), ee(
|
|
1336
1336
|
() => t.options,
|
|
1337
1337
|
() => {
|
|
1338
1338
|
(t.options?.dropdown || t.options?.dropdownPosition || t.options?.variant) && Me(
|
|
@@ -1413,7 +1413,7 @@ const It = {
|
|
|
1413
1413
|
})), f = d(() => !(!!o.value?.inputValue && !!u.value) || i.value);
|
|
1414
1414
|
Ve(() => {
|
|
1415
1415
|
o.value?.inputValue === "" && (o.value = { ...o.value, inputValue: void 0 });
|
|
1416
|
-
}),
|
|
1416
|
+
}), ee(a, () => {
|
|
1417
1417
|
a.value?.focusInput();
|
|
1418
1418
|
});
|
|
1419
1419
|
const w = () => {
|
|
@@ -1709,7 +1709,7 @@ const ut = {
|
|
|
1709
1709
|
startTime: Ae(e.value?.startDate),
|
|
1710
1710
|
endTime: Ae(e.value?.endDate)
|
|
1711
1711
|
});
|
|
1712
|
-
|
|
1712
|
+
ee(
|
|
1713
1713
|
() => e.value,
|
|
1714
1714
|
() => {
|
|
1715
1715
|
f.startDate = o(e.value?.startDate), f.endDate = o(e.value?.endDate), f.startTime = Ae(e.value?.startDate), f.endTime = Ae(e.value?.endDate);
|
|
@@ -1766,12 +1766,12 @@ const ut = {
|
|
|
1766
1766
|
disabled: F.value && i.value
|
|
1767
1767
|
}
|
|
1768
1768
|
]
|
|
1769
|
-
),
|
|
1769
|
+
), te = () => {
|
|
1770
1770
|
F.value = !0, s.value = { startDate: void 0, endDate: void 0 }, l(g.INPUT, { ...e, value: s.value });
|
|
1771
1771
|
}, z = (b) => {
|
|
1772
1772
|
F.value = !1, b.startTime && (f.startTime = b.startTime), b.endTime && (f.endTime = b.endTime);
|
|
1773
1773
|
};
|
|
1774
|
-
return
|
|
1774
|
+
return ee(
|
|
1775
1775
|
() => e.value,
|
|
1776
1776
|
(b) => {
|
|
1777
1777
|
_.value = A(b);
|
|
@@ -1797,7 +1797,7 @@ const ut = {
|
|
|
1797
1797
|
clearFilter: y,
|
|
1798
1798
|
resetFilter: G,
|
|
1799
1799
|
updateFilter: B,
|
|
1800
|
-
onDatePickerRangeError:
|
|
1800
|
+
onDatePickerRangeError: te,
|
|
1801
1801
|
onDatePickerRangeFormDateInputUpdate: z,
|
|
1802
1802
|
onDateInputSelected: re,
|
|
1803
1803
|
onRangeSelectorInput: se
|
|
@@ -2046,7 +2046,7 @@ const Lt = /* @__PURE__ */ Z(ka, [["render", Ua], ["__scopeId", "data-v-ae77b64f
|
|
|
2046
2046
|
Q(a, "defaultValue"),
|
|
2047
2047
|
Q(i.value, "multiple")
|
|
2048
2048
|
), { internalFilterValue: f, isSecondaryButtonDisabled: w, isApplyButtonDisabled: A } = ge(v, F);
|
|
2049
|
-
|
|
2049
|
+
ee(i, () => {
|
|
2050
2050
|
c.value = i.value.listboxItems ?? [];
|
|
2051
2051
|
});
|
|
2052
2052
|
const _ = ze(
|
|
@@ -2099,14 +2099,14 @@ const Lt = /* @__PURE__ */ Z(ka, [["render", Ua], ["__scopeId", "data-v-ae77b64f
|
|
|
2099
2099
|
u(F.value), f.value = F.value, ae();
|
|
2100
2100
|
}, L = () => {
|
|
2101
2101
|
p(), f.value = [], ae();
|
|
2102
|
-
},
|
|
2102
|
+
}, te = d(() => {
|
|
2103
2103
|
if (a.value == null || !a.options.multiple)
|
|
2104
2104
|
return null;
|
|
2105
2105
|
const z = a.options.listboxItems?.reduce((V, H) => (V += H?.items?.length ? H.items.length : 1, V), 0), b = a.value?.length;
|
|
2106
2106
|
return b === 1 ? null : b === z ? o("all") : b;
|
|
2107
2107
|
});
|
|
2108
2108
|
return (z, b) => (m(), O(r(me), {
|
|
2109
|
-
"applied-filters-count":
|
|
2109
|
+
"applied-filters-count": te.value,
|
|
2110
2110
|
"button-label": B.value,
|
|
2111
2111
|
"button-secondary-label": y.value,
|
|
2112
2112
|
disabled: e.disabled,
|
|
@@ -2241,7 +2241,7 @@ const Lt = /* @__PURE__ */ Z(ka, [["render", Ua], ["__scopeId", "data-v-ae77b64f
|
|
|
2241
2241
|
emits: ["input", "update"],
|
|
2242
2242
|
setup(e, { emit: l }) {
|
|
2243
2243
|
const { t } = ce({ messages: Nt }), n = Ue(), a = l, o = e, { internalFilterValue: s } = ge(Q(o, "value"), Q(o, "defaultValue")), i = Q(o, "options"), c = R(o.options.listboxItems);
|
|
2244
|
-
|
|
2244
|
+
ee(i, () => {
|
|
2245
2245
|
c.value = i.value.listboxItems;
|
|
2246
2246
|
});
|
|
2247
2247
|
const v = d(() => t("noFiltersMatchThisSearch")), u = (p) => {
|
|
@@ -2444,7 +2444,7 @@ const Ut = /* @__PURE__ */ Z(Ka, [["render", Qa]]), Za = W({
|
|
|
2444
2444
|
const t = (s) => {
|
|
2445
2445
|
l(g.UPDATE, s);
|
|
2446
2446
|
}, n = R([]);
|
|
2447
|
-
|
|
2447
|
+
ee(
|
|
2448
2448
|
() => e.options?.listboxItems,
|
|
2449
2449
|
(s) => {
|
|
2450
2450
|
n.value = s || [];
|
|
@@ -2522,7 +2522,7 @@ const Vt = /* @__PURE__ */ Z(Za, [["render", xa]]), en = {
|
|
|
2522
2522
|
emits: [g.INPUT, g.UPDATE],
|
|
2523
2523
|
setup(e, { emit: l }) {
|
|
2524
2524
|
const t = e, n = l, a = R(t.options.variant), o = R(t.options.listboxItems);
|
|
2525
|
-
|
|
2525
|
+
ee([() => t.options.variant, () => t.options.listboxItems], () => {
|
|
2526
2526
|
a.value = t.options.variant, o.value = t.options.listboxItems;
|
|
2527
2527
|
});
|
|
2528
2528
|
const s = (v) => n(g.UPDATE, v), i = Bl(a, o), c = d(() => ({
|
|
@@ -2679,7 +2679,7 @@ const Ht = /* @__PURE__ */ Z(an, [["render", nn]]), Gt = {
|
|
|
2679
2679
|
emits: ["input", "update"],
|
|
2680
2680
|
setup(e, { emit: l }) {
|
|
2681
2681
|
const { t } = ce({ messages: Gt }), n = Oe("toggle-filter-checkbox-label"), a = Oe("toggle-filter-checkbox-description"), o = e, s = l, i = R(o.value);
|
|
2682
|
-
|
|
2682
|
+
ee(
|
|
2683
2683
|
() => o.value,
|
|
2684
2684
|
(f) => {
|
|
2685
2685
|
i.value = f;
|
|
@@ -3113,7 +3113,14 @@ const Wt = /* @__PURE__ */ Z(fn, [["render", pn], ["__scopeId", "data-v-c71c8dbd
|
|
|
3113
3113
|
clearFilter: c,
|
|
3114
3114
|
resetFilter: v,
|
|
3115
3115
|
openFilter: u
|
|
3116
|
-
} = wt(Q(t, "value"), Q(t, "defaultValue")), p = R(o.value ?? [])
|
|
3116
|
+
} = wt(Q(t, "value"), Q(t, "defaultValue")), p = R(o.value ?? []);
|
|
3117
|
+
ee(
|
|
3118
|
+
() => t.value,
|
|
3119
|
+
(B) => {
|
|
3120
|
+
p.value = B ?? [];
|
|
3121
|
+
}
|
|
3122
|
+
);
|
|
3123
|
+
const F = d(() => ({
|
|
3117
3124
|
"b-checkbox-group-filter--only-slot": t.onlySlot
|
|
3118
3125
|
})), f = d(() => t.label), w = d(
|
|
3119
3126
|
() => p.value.length === 1 ? ve(
|
|
@@ -3156,7 +3163,7 @@ const Wt = /* @__PURE__ */ Z(fn, [["render", pn], ["__scopeId", "data-v-c71c8dbd
|
|
|
3156
3163
|
_: 1
|
|
3157
3164
|
}, 16, ["applied-filters-count", "button-label", "button-secondary-label", "disable-apply-button", "disable-secondary-button", "tooltip-position", "tooltip-text", "onOpen"]));
|
|
3158
3165
|
}
|
|
3159
|
-
}), Xt = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-
|
|
3166
|
+
}), Xt = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-54301bd9"]]), mn = { class: "b-all-filters-modal" }, yn = {
|
|
3160
3167
|
key: 0,
|
|
3161
3168
|
class: "b-all-filters-modal__empty-search-message"
|
|
3162
3169
|
}, hn = {
|
|
@@ -3198,7 +3205,7 @@ const Wt = /* @__PURE__ */ Z(fn, [["render", pn], ["__scopeId", "data-v-c71c8dbd
|
|
|
3198
3205
|
const t = e, n = l, a = R(t.value), o = Oe("all-filters-modal"), s = R([]), i = R(!1), c = R(0), v = R(null), u = R(""), { t: p, n: F } = ce({ messages: Ot }), f = ze(u, Q(a, "value")), w = R({});
|
|
3199
3206
|
Ve(() => {
|
|
3200
3207
|
w.value = [];
|
|
3201
|
-
}),
|
|
3208
|
+
}), ee(
|
|
3202
3209
|
() => t.value,
|
|
3203
3210
|
() => {
|
|
3204
3211
|
i.value ? a.value = t.value.map((E, S) => ({ ...E, value: a.value[S].value })) : a.value = t.value;
|
|
@@ -3284,7 +3291,7 @@ const Wt = /* @__PURE__ */ Z(fn, [["render", pn], ["__scopeId", "data-v-c71c8dbd
|
|
|
3284
3291
|
() => Array.isArray(y.value.value) ? y.value?.value.length && y.value.value.find((E) => E !== "") : !!a.value[c.value].value
|
|
3285
3292
|
), j = d(() => y.value.type !== x.TOGGLE), se = d(() => !ae.value || y.value.disabled), re = d(() => N(t.value)?.filter(({ count: E }) => !!E).length), L = () => {
|
|
3286
3293
|
i.value ? i.value = !1 : i.value = !0;
|
|
3287
|
-
},
|
|
3294
|
+
}, te = (E) => {
|
|
3288
3295
|
const S = N(a.value).find((qe) => qe.field === E.field).count, P = typeof E.type == "string" && // Type guard to avoid casting
|
|
3289
3296
|
E.type.includes("BentoSelect") && E.options?.multiple && S === E.options?.listboxItems?.length, fe = typeof E.type == "string" && E.type === x.CHECKBOX_GROUP && S === E.options?.checkboxItems?.length;
|
|
3290
3297
|
return P || fe ? p("all") : S === null ? null : F(S);
|
|
@@ -3408,7 +3415,7 @@ const Wt = /* @__PURE__ */ Z(fn, [["render", pn], ["__scopeId", "data-v-c71c8dbd
|
|
|
3408
3415
|
ref_for: !0,
|
|
3409
3416
|
ref: (fe) => w.value[P.label] = fe,
|
|
3410
3417
|
label: P.label,
|
|
3411
|
-
"applied-filters-count":
|
|
3418
|
+
"applied-filters-count": te(P),
|
|
3412
3419
|
"is-filter-open": y.value.label === P.label,
|
|
3413
3420
|
disabled: P.disabled,
|
|
3414
3421
|
onClick: (fe) => z(P.label, P.field)
|
|
@@ -3441,7 +3448,7 @@ const Wt = /* @__PURE__ */ Z(fn, [["render", pn], ["__scopeId", "data-v-c71c8dbd
|
|
|
3441
3448
|
ref: (fe) => w.value[P.label] = fe,
|
|
3442
3449
|
label: P.label,
|
|
3443
3450
|
disabled: P.disabled,
|
|
3444
|
-
"applied-filters-count":
|
|
3451
|
+
"applied-filters-count": te(P),
|
|
3445
3452
|
"is-filter-open": y.value.label === P.label,
|
|
3446
3453
|
onClick: (fe) => z(P.label, P.field)
|
|
3447
3454
|
}, null, 8, ["label", "disabled", "applied-filters-count", "is-filter-open", "onClick"])
|
|
@@ -3620,7 +3627,7 @@ const Wt = /* @__PURE__ */ Z(fn, [["render", pn], ["__scopeId", "data-v-c71c8dbd
|
|
|
3620
3627
|
)
|
|
3621
3628
|
)), j = d(() => n.searchTerm != null), se = d(
|
|
3622
3629
|
() => i.value.filter(({ defaultValue: T }) => T == null).some(({ value: T }) => T != null)
|
|
3623
|
-
), re = d(() => G.value.length === 0 && se.value), L = d(() => G.value.length === 0 ? !1 : !i.value.filter(({ defaultValue: D }) => D !== void 0 || D !== null).every(({ value: D, defaultValue: I }) => JSON.stringify(D) === JSON.stringify(I)) || se.value),
|
|
3630
|
+
), re = d(() => G.value.length === 0 && se.value), L = d(() => G.value.length === 0 ? !1 : !i.value.filter(({ defaultValue: D }) => D !== void 0 || D !== null).every(({ value: D, defaultValue: I }) => JSON.stringify(D) === JSON.stringify(I)) || se.value), te = (T) => {
|
|
3624
3631
|
a(Se.INPUT, T), a(
|
|
3625
3632
|
Se.UPDATE_FILTER_VALUES_ARRAY,
|
|
3626
3633
|
T?.filter(({ value: D }) => D !== null || D !== void 0).map(({ field: D, value: I }) => ({ field: D, value: I }))
|
|
@@ -3630,7 +3637,7 @@ const Wt = /* @__PURE__ */ Z(fn, [["render", pn], ["__scopeId", "data-v-c71c8dbd
|
|
|
3630
3637
|
);
|
|
3631
3638
|
}, z = (T) => {
|
|
3632
3639
|
const D = Array.isArray(T) ? T : [T], I = new Map(D.map((de) => [de.field, de.value])), ue = i.value.map((de) => I.has(de.field) ? { ...de, value: I.get(de.field) } : de);
|
|
3633
|
-
|
|
3640
|
+
te(ue);
|
|
3634
3641
|
}, b = () => {
|
|
3635
3642
|
const T = i.value.slice(), D = i.value.map(({ value: I, ...ue }) => ({
|
|
3636
3643
|
...ue,
|
|
@@ -3639,10 +3646,10 @@ const Wt = /* @__PURE__ */ Z(fn, [["render", pn], ["__scopeId", "data-v-c71c8dbd
|
|
|
3639
3646
|
c({
|
|
3640
3647
|
text: o("filtersHaveBeenCleared"),
|
|
3641
3648
|
action: {
|
|
3642
|
-
handler: () =>
|
|
3649
|
+
handler: () => te(T),
|
|
3643
3650
|
text: o("undo")
|
|
3644
3651
|
}
|
|
3645
|
-
}),
|
|
3652
|
+
}), te(D);
|
|
3646
3653
|
}, V = () => {
|
|
3647
3654
|
const T = i.value.slice(), D = i.value.map(({ defaultValue: I, ...ue }) => ({
|
|
3648
3655
|
...ue,
|
|
@@ -3652,10 +3659,10 @@ const Wt = /* @__PURE__ */ Z(fn, [["render", pn], ["__scopeId", "data-v-c71c8dbd
|
|
|
3652
3659
|
c({
|
|
3653
3660
|
text: o("filtersHaveBeenReset"),
|
|
3654
3661
|
action: {
|
|
3655
|
-
handler: () =>
|
|
3662
|
+
handler: () => te(T),
|
|
3656
3663
|
text: o("undo")
|
|
3657
3664
|
}
|
|
3658
|
-
}),
|
|
3665
|
+
}), te(D);
|
|
3659
3666
|
}, H = (T) => {
|
|
3660
3667
|
a(Te.INPUT, T), a(Te.UPDATE, T);
|
|
3661
3668
|
}, U = () => {
|
|
@@ -3763,4 +3770,4 @@ export {
|
|
|
3763
3770
|
x as d,
|
|
3764
3771
|
wt as u
|
|
3765
3772
|
};
|
|
3766
|
-
//# sourceMappingURL=filter-bar.
|
|
3773
|
+
//# sourceMappingURL=filter-bar.CzFtzztU.js.map
|