@adyen/bento-vue2 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/checkbox.js +2 -2
- package/dist/chunks/{checkbox-group.BAjvgXlc.js → checkbox-group.CNTMMwQr.js} +2 -2
- package/dist/chunks/{checkbox-group.BAjvgXlc.js.map → checkbox-group.CNTMMwQr.js.map} +1 -1
- package/dist/chunks/{checkbox.BAQDBNL6.js → checkbox.BIzqX_eH.js} +18 -18
- package/dist/chunks/{checkbox.BAQDBNL6.js.map → checkbox.BIzqX_eH.js.map} +1 -1
- package/dist/chunks/{data-grid.Djy7XjVS.js → data-grid.DQwAkw4U.js} +3 -3
- package/dist/chunks/{data-grid.Djy7XjVS.js.map → data-grid.DQwAkw4U.js.map} +1 -1
- package/dist/chunks/{filter-bar.C6ZBgizQ.js → filter-bar.DQ9fJXq1.js} +44 -37
- package/dist/chunks/{filter-bar.C6ZBgizQ.js.map → filter-bar.DQ9fJXq1.js.map} +1 -1
- package/dist/chunks/{header-with-views.m0xMmoav.js → header-with-views.4VNHbNk0.js} +2 -2
- package/dist/chunks/{header-with-views.m0xMmoav.js.map → header-with-views.4VNHbNk0.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.Dwq3Z_lK.js → rich-text-editor.D5URbwnM.js} +2 -2
- package/dist/chunks/{rich-text-editor.Dwq3Z_lK.js.map → rich-text-editor.D5URbwnM.js.map} +1 -1
- package/dist/chunks/{selection-card-group.ZZ_qF1L1.js → selection-card-group.CiFW4AZR.js} +8 -8
- package/dist/chunks/{selection-card-group.ZZ_qF1L1.js.map → selection-card-group.CiFW4AZR.js.map} +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +7 -7
- package/dist/rich-text-editor.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as w, onMounted as Fe, watch as
|
|
1
|
+
import { ref as w, onMounted as Fe, watch as z, computed as u, defineComponent as M, useSlots as ge, useAttrs as Bt, nextTick as Ge, toRef as H, onBeforeUpdate as Be, provide as je, reactive as St, shallowRef as Ct } from "vue";
|
|
2
2
|
import { a as Ye } from "./radio-group.cn4lZb8R.js";
|
|
3
3
|
import { u as Z } from "./index.B6WW_F-J.js";
|
|
4
4
|
import { t as te } from "./truncate.BfIl_-71.js";
|
|
@@ -13,7 +13,7 @@ import { u as Qe } from "./use-has-slot.C9lQZ6nz.js";
|
|
|
13
13
|
import { u as Ke } from "./aria-label.CaUURpnB.js";
|
|
14
14
|
import { g as Ze } from "./get-slot-text.Bjb9dTSV.js";
|
|
15
15
|
import { B as we } from "./input-field.BkQZ6Qzl.js";
|
|
16
|
-
import { B as It } from "./checkbox-group.
|
|
16
|
+
import { B as It } from "./checkbox-group.CNTMMwQr.js";
|
|
17
17
|
import "./index.Cl4_42j5.js";
|
|
18
18
|
import { B as Oe, a as de } from "./search-bar.D-WK8eMQ.js";
|
|
19
19
|
import { n as Et } from "./index.CJYgd0QI.js";
|
|
@@ -25,8 +25,8 @@ import { g as kt } from "./focus-trap.CBIb3SyN.js";
|
|
|
25
25
|
import { C as Nt } from "./chevron-up.d8cwIlA_.js";
|
|
26
26
|
import { C as $t } from "./chevron-down.eYtgv5ly.js";
|
|
27
27
|
/* empty css */
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
28
|
+
import { u as Re, b as Vt, C as Ut } from "./use-cached-selected-values.D0s14AxT.js";
|
|
29
|
+
import { C as Mt } from "./checkbox-input.08E9BNeF.js";
|
|
30
30
|
import { B as Ee } from "./divider.DX5gwN7p.js";
|
|
31
31
|
import { L as tt } from "./listbox-option-tag.Ddyl2vuc.js";
|
|
32
32
|
import { B as Ht } from "./payment-method.B3CkgsAY.js";
|
|
@@ -50,7 +50,7 @@ function rt(a, e) {
|
|
|
50
50
|
const l = w(), t = w();
|
|
51
51
|
Fe(() => {
|
|
52
52
|
a.value != null && (t.value = ml(a.value));
|
|
53
|
-
}),
|
|
53
|
+
}), z(
|
|
54
54
|
() => a.value,
|
|
55
55
|
(d) => {
|
|
56
56
|
l.value = be(d);
|
|
@@ -994,11 +994,11 @@ const Nl = {
|
|
|
994
994
|
disabled: t.disableSecondaryButton
|
|
995
995
|
}
|
|
996
996
|
]);
|
|
997
|
-
return
|
|
997
|
+
return z(
|
|
998
998
|
() => o.value,
|
|
999
999
|
(P, $) => {
|
|
1000
|
-
var
|
|
1001
|
-
!P && $ && (W = (
|
|
1000
|
+
var X, W;
|
|
1001
|
+
!P && $ && (W = (X = i.value) == null ? void 0 : X.filterBarButtonRef) != null && W.bentoBaseButtonRef && i.value.filterBarButtonRef.bentoBaseButtonRef.focus();
|
|
1002
1002
|
}
|
|
1003
1003
|
), Dt(c, E, { ignore: [i] }), e({
|
|
1004
1004
|
closePopover: C
|
|
@@ -1024,7 +1024,7 @@ var Ul = function() {
|
|
|
1024
1024
|
);
|
|
1025
1025
|
const le = Hl.exports, ql = (a) => a instanceof Array, Ue = (a) => ql(a) ? a.length === 0 || a.every((e) => e === "") : !a, Me = (a, e) => JSON.stringify(a) === JSON.stringify(e), oe = (a, e) => {
|
|
1026
1026
|
const l = w(a.value);
|
|
1027
|
-
|
|
1027
|
+
z(
|
|
1028
1028
|
() => a.value,
|
|
1029
1029
|
() => {
|
|
1030
1030
|
l.value = a.value;
|
|
@@ -1080,7 +1080,7 @@ const le = Hl.exports, ql = (a) => a instanceof Array, Ue = (a) => ql(a) ? a.len
|
|
|
1080
1080
|
}));
|
|
1081
1081
|
Be(() => {
|
|
1082
1082
|
f.value === "" && (f.value = null);
|
|
1083
|
-
}),
|
|
1083
|
+
}), z(t, () => {
|
|
1084
1084
|
var A;
|
|
1085
1085
|
(A = t.value) == null || A.focusInput();
|
|
1086
1086
|
});
|
|
@@ -1103,7 +1103,7 @@ const le = Hl.exports, ql = (a) => a instanceof Array, Ue = (a) => ql(a) ? a.len
|
|
|
1103
1103
|
}, I = (A) => {
|
|
1104
1104
|
n.value = A;
|
|
1105
1105
|
};
|
|
1106
|
-
return je(xt, r.value),
|
|
1106
|
+
return je(xt, r.value), z(
|
|
1107
1107
|
() => l.options,
|
|
1108
1108
|
() => {
|
|
1109
1109
|
var A, P, $;
|
|
@@ -1180,7 +1180,7 @@ const Xl = {
|
|
|
1180
1180
|
Be(() => {
|
|
1181
1181
|
var B;
|
|
1182
1182
|
((B = n.value) == null ? void 0 : B.inputValue) === "" && (n.value = { ...n.value, inputValue: void 0 });
|
|
1183
|
-
}),
|
|
1183
|
+
}), z(t, () => {
|
|
1184
1184
|
var B;
|
|
1185
1185
|
(B = t.value) == null || B.focusInput();
|
|
1186
1186
|
});
|
|
@@ -1469,7 +1469,7 @@ const ra = {
|
|
|
1469
1469
|
startTime: fe((G = a.value) == null ? void 0 : G.startDate),
|
|
1470
1470
|
endTime: fe((h = a.value) == null ? void 0 : h.endDate)
|
|
1471
1471
|
});
|
|
1472
|
-
|
|
1472
|
+
z(
|
|
1473
1473
|
() => a.value,
|
|
1474
1474
|
() => {
|
|
1475
1475
|
var s, b, x, R;
|
|
@@ -1529,12 +1529,12 @@ const ra = {
|
|
|
1529
1529
|
disabled: p.value && i.value
|
|
1530
1530
|
}
|
|
1531
1531
|
]
|
|
1532
|
-
),
|
|
1532
|
+
), X = () => {
|
|
1533
1533
|
p.value = !0, o.value = { startDate: void 0, endDate: void 0 }, e(S.INPUT, { ...a, value: o.value });
|
|
1534
1534
|
}, W = (s) => {
|
|
1535
1535
|
p.value = !1, s.startTime && (g.startTime = s.startTime), s.endTime && (g.endTime = s.endTime);
|
|
1536
1536
|
};
|
|
1537
|
-
return
|
|
1537
|
+
return z(
|
|
1538
1538
|
() => a.value,
|
|
1539
1539
|
(s) => {
|
|
1540
1540
|
O.value = D(s);
|
|
@@ -1560,7 +1560,7 @@ const ra = {
|
|
|
1560
1560
|
clearFilter: F,
|
|
1561
1561
|
resetFilter: B,
|
|
1562
1562
|
updateFilter: _,
|
|
1563
|
-
onDatePickerRangeError:
|
|
1563
|
+
onDatePickerRangeError: X,
|
|
1564
1564
|
onDatePickerRangeFormDateInputUpdate: W,
|
|
1565
1565
|
onDateInputSelected: P,
|
|
1566
1566
|
onRangeSelectorInput: A
|
|
@@ -1570,7 +1570,7 @@ const ra = {
|
|
|
1570
1570
|
var sa = function() {
|
|
1571
1571
|
var t, n, r, o, i, c, f, d, v, p, g, T, D, O, C, _, F, B, I, L, E, A, P, $;
|
|
1572
1572
|
var e = this, l = e._self._c;
|
|
1573
|
-
return e._self._setupProxy, l("bento-base-filter", { ref: "baseFilter", staticClass: "b-base-filter-date-range-filter", attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, controlled: !e.onlySlot, disabled: e.disabled, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, field: e.field, label: e.label, "only-slot": e.onlySlot, "tooltip-position": (t = e.options) == null ? void 0 : t.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText, "fit-content": "" }, on: { open: e.openFilter, clear: e.clearFilter, reset: e.resetFilter, cancel: e.onCancel } }, [e.onlySlot ? l("bento-date-range-picker", { attrs: { "allow-time-input": (r = e.options) == null ? void 0 : r.allowTimeInput, "model-value": e.internalFilterValue, "first-day-of-week": (o = e.options) == null ? void 0 : o.firstDayOfWeek, "is-date-disabled": (i = e.options) == null ? void 0 : i.isDateDisabled, "number-of-months": (c = e.options) == null ? void 0 : c.numberOfMonths, "quick-select-ranges": (f = e.options) == null ? void 0 : f.quickSelectRanges, variant: (d = e.options) == null ? void 0 : d.variant, disabled: e.disabled, granularities: (v = e.options) == null ? void 0 : v.granularities, "max-range": (p = e.options) == null ? void 0 : p.maxRange, min: (g = e.options) == null ? void 0 : g.min, max: (T = e.options) == null ? void 0 : T.max, "date-form-data": e.formData, "show-end-date-on-open": (D = e.options) == null ? void 0 : D.showEndDateOnOpen, "aria-labelledby": (O = e.$attrs) == null ? void 0 : O["aria-labelledby"] }, on: { "update:model-value": e.onDateInputSelected } }) : [l("div", { staticClass: "b-date-range-filter" }, [l("date-range-picker-calendar", { attrs: { "allow-time-input": (C = e.options) == null ? void 0 : C.allowTimeInput, "first-day-of-week": (_ = e.options) == null ? void 0 : _.firstDayOfWeek, "is-date-disabled": (F = e.options) == null ? void 0 : F.isDateDisabled, granularities: (B = e.options) == null ? void 0 : B.granularities, "max-range": (I = e.options) == null ? void 0 : I.maxRange, min: (L = e.options) == null ? void 0 : L.min, max: (E = e.options) == null ? void 0 : E.max, "number-of-months": (A = e.options) == null ? void 0 : A.numberOfMonths, "quick-select-ranges": e.adjustedQuickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData, "show-end-date-on-open": (P = e.options) == null ? void 0 : P.showEndDateOnOpen, variant: ($ = e.options) == null ? void 0 : $.variant }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate, "start-date-selected": function(
|
|
1573
|
+
return e._self._setupProxy, l("bento-base-filter", { ref: "baseFilter", staticClass: "b-base-filter-date-range-filter", attrs: { "button-label": e.buttonLabel, "button-secondary-label": e.buttonSecondaryLabel, controlled: !e.onlySlot, disabled: e.disabled, "disable-apply-button": e.isApplyButtonDisabled, "disable-secondary-button": e.isSecondaryButtonDisabled, "default-value": e.defaultValue, field: e.field, label: e.label, "only-slot": e.onlySlot, "tooltip-position": (t = e.options) == null ? void 0 : t.tooltipPosition, "tooltip-text": (n = e.options) == null ? void 0 : n.tooltipText, "fit-content": "" }, on: { open: e.openFilter, clear: e.clearFilter, reset: e.resetFilter, cancel: e.onCancel } }, [e.onlySlot ? l("bento-date-range-picker", { attrs: { "allow-time-input": (r = e.options) == null ? void 0 : r.allowTimeInput, "model-value": e.internalFilterValue, "first-day-of-week": (o = e.options) == null ? void 0 : o.firstDayOfWeek, "is-date-disabled": (i = e.options) == null ? void 0 : i.isDateDisabled, "number-of-months": (c = e.options) == null ? void 0 : c.numberOfMonths, "quick-select-ranges": (f = e.options) == null ? void 0 : f.quickSelectRanges, variant: (d = e.options) == null ? void 0 : d.variant, disabled: e.disabled, granularities: (v = e.options) == null ? void 0 : v.granularities, "max-range": (p = e.options) == null ? void 0 : p.maxRange, min: (g = e.options) == null ? void 0 : g.min, max: (T = e.options) == null ? void 0 : T.max, "date-form-data": e.formData, "show-end-date-on-open": (D = e.options) == null ? void 0 : D.showEndDateOnOpen, "aria-labelledby": (O = e.$attrs) == null ? void 0 : O["aria-labelledby"] }, on: { "update:model-value": e.onDateInputSelected } }) : [l("div", { staticClass: "b-date-range-filter" }, [l("date-range-picker-calendar", { attrs: { "allow-time-input": (C = e.options) == null ? void 0 : C.allowTimeInput, "first-day-of-week": (_ = e.options) == null ? void 0 : _.firstDayOfWeek, "is-date-disabled": (F = e.options) == null ? void 0 : F.isDateDisabled, granularities: (B = e.options) == null ? void 0 : B.granularities, "max-range": (I = e.options) == null ? void 0 : I.maxRange, min: (L = e.options) == null ? void 0 : L.min, max: (E = e.options) == null ? void 0 : E.max, "number-of-months": (A = e.options) == null ? void 0 : A.numberOfMonths, "quick-select-ranges": e.adjustedQuickSelectRanges, value: e.internalFilterValue, "date-form-data": e.formData, "show-end-date-on-open": (P = e.options) == null ? void 0 : P.showEndDateOnOpen, variant: ($ = e.options) == null ? void 0 : $.variant }, on: { input: e.onDateSelected, "custom-range": e.onRangeSelectorInput, error: e.onDatePickerRangeError, "form-date": e.onDatePickerRangeFormDateInputUpdate, "start-date-selected": function(X) {
|
|
1574
1574
|
e.isSelectingDate = !0;
|
|
1575
1575
|
} }, scopedSlots: e._u([{ key: "title", fn: function() {
|
|
1576
1576
|
return [l("bento-typography", { attrs: { strongest: "", variant: "body", el: "span" } }, [e._v(" " + e._s(e.label) + " ")])];
|
|
@@ -1752,7 +1752,7 @@ const dt = ba.exports, va = {
|
|
|
1752
1752
|
},
|
|
1753
1753
|
emits: ["input", "update"],
|
|
1754
1754
|
setup(a, { emit: e }) {
|
|
1755
|
-
var
|
|
1755
|
+
var X, W;
|
|
1756
1756
|
const l = a, t = ge(), { t: n } = Z(), r = w(""), o = H(l, "options"), i = w(l.options.listboxItems ?? []), { cachedSelectedListboxOptions: c, setCachedValues: f, resetCache: d } = Re(
|
|
1757
1757
|
i,
|
|
1758
1758
|
H(l, "value"),
|
|
@@ -1762,13 +1762,13 @@ const dt = ba.exports, va = {
|
|
|
1762
1762
|
H(l, "defaultValue"),
|
|
1763
1763
|
H(o.value, "multiple")
|
|
1764
1764
|
), { internalFilterValue: p, isSecondaryButtonDisabled: g, isApplyButtonDisabled: T } = oe(c, v);
|
|
1765
|
-
|
|
1765
|
+
z(o, () => {
|
|
1766
1766
|
i.value = o.value.listboxItems ?? [];
|
|
1767
1767
|
});
|
|
1768
1768
|
const D = Ie(
|
|
1769
1769
|
r,
|
|
1770
1770
|
i,
|
|
1771
|
-
(W = (
|
|
1771
|
+
(W = (X = l.options) == null ? void 0 : X.search) == null ? void 0 : W.searchEvent
|
|
1772
1772
|
), O = u(() => n("noFiltersMatchThisSearch")), C = u(() => l.label), _ = u(() => {
|
|
1773
1773
|
var G, h, s, b, x;
|
|
1774
1774
|
const k = !((G = l == null ? void 0 : l.options) != null && G.multiple) && l.value != null, q = ((h = l == null ? void 0 : l.options) == null ? void 0 : h.multiple) && Array.isArray(l.value) && l.value.length === 1;
|
|
@@ -1832,7 +1832,7 @@ const dt = ba.exports, va = {
|
|
|
1832
1832
|
}, 0), q = (h = l.value) == null ? void 0 : h.length;
|
|
1833
1833
|
return q === 1 ? null : q === k ? n("all") : q;
|
|
1834
1834
|
});
|
|
1835
|
-
return { __sfc: !0, slots: t, emit: e, props: l, t: n, searchTerm: r, optionsRef: o, itemsRef: i, cachedSelectedListboxOptions: c, setCachedValues: f, resetCache: d, cachedDefaultSelectedListboxOptions: v, internalFilterValue: p, isSecondaryButtonDisabled: g, isApplyButtonDisabled: T, filteredItems: D, noResultsMessage: O, buttonLabel: C, buttonSecondaryLabel: _, listboxFilterId: F, onOptionSelected: B, updateFilter: I, openFilter: L, closeFilter: E, resetFilter: A, clearFilter: P, appliedFiltersCount: $, BentoSearchBar: Oe, BentoDivider: Ee, BentoListbox:
|
|
1835
|
+
return { __sfc: !0, slots: t, emit: e, props: l, t: n, searchTerm: r, optionsRef: o, itemsRef: i, cachedSelectedListboxOptions: c, setCachedValues: f, resetCache: d, cachedDefaultSelectedListboxOptions: v, internalFilterValue: p, isSecondaryButtonDisabled: g, isApplyButtonDisabled: T, filteredItems: D, noResultsMessage: O, buttonLabel: C, buttonSecondaryLabel: _, listboxFilterId: F, onOptionSelected: B, updateFilter: I, openFilter: L, closeFilter: E, resetFilter: A, clearFilter: P, appliedFiltersCount: $, BentoSearchBar: Oe, BentoDivider: Ee, BentoListbox: Vt, BentoBaseFilter: le };
|
|
1836
1836
|
}
|
|
1837
1837
|
});
|
|
1838
1838
|
var ya = function() {
|
|
@@ -1945,7 +1945,7 @@ const ga = Fa.exports, Ba = {
|
|
|
1945
1945
|
emits: ["input", "update"],
|
|
1946
1946
|
setup(a, { emit: e }) {
|
|
1947
1947
|
const l = a, { t } = Z(), n = ge(), { internalFilterValue: r } = oe(H(l, "value"), H(l, "defaultValue")), o = H(l, "options"), i = w(l.options.listboxItems);
|
|
1948
|
-
|
|
1948
|
+
z(o, () => {
|
|
1949
1949
|
i.value = o.value.listboxItems;
|
|
1950
1950
|
});
|
|
1951
1951
|
const c = u(() => t("noFiltersMatchThisSearch"));
|
|
@@ -2130,7 +2130,7 @@ const ft = Na.exports, $a = M({
|
|
|
2130
2130
|
const l = (i) => {
|
|
2131
2131
|
e(S.UPDATE, i);
|
|
2132
2132
|
}, t = w([]);
|
|
2133
|
-
|
|
2133
|
+
z(
|
|
2134
2134
|
() => {
|
|
2135
2135
|
var i;
|
|
2136
2136
|
return (i = a.options) == null ? void 0 : i.listboxItems;
|
|
@@ -2210,7 +2210,7 @@ const pt = Ma.exports, Ha = {
|
|
|
2210
2210
|
emits: [S.INPUT, S.UPDATE],
|
|
2211
2211
|
setup(a, { emit: e }) {
|
|
2212
2212
|
const l = a, t = w(l.options.variant), n = w(l.options.listboxItems);
|
|
2213
|
-
|
|
2213
|
+
z([() => l.options.variant, () => l.options.listboxItems], () => {
|
|
2214
2214
|
t.value = l.options.variant, n.value = l.options.listboxItems;
|
|
2215
2215
|
});
|
|
2216
2216
|
const r = (c) => e(S.UPDATE, c), o = qt(t, n), i = u(() => ({
|
|
@@ -2390,7 +2390,7 @@ const _t = en.exports, tn = {
|
|
|
2390
2390
|
emits: ["input", "update"],
|
|
2391
2391
|
setup(a, { emit: e }) {
|
|
2392
2392
|
const l = a, { t } = Z(), n = ve("toggle-filter-checkbox-label"), r = ve("toggle-filter-checkbox-description"), o = w(l.value);
|
|
2393
|
-
|
|
2393
|
+
z(
|
|
2394
2394
|
() => l.value,
|
|
2395
2395
|
(p) => {
|
|
2396
2396
|
o.value = p;
|
|
@@ -2407,7 +2407,7 @@ const _t = en.exports, tn = {
|
|
|
2407
2407
|
o.value = !o.value, f();
|
|
2408
2408
|
}, resetFilter: () => {
|
|
2409
2409
|
o.value = !1, f();
|
|
2410
|
-
}, vBentoTooltipDirective: ze, FilterBarButtonGroup: ot, FilterBarButton: Ce, CheckboxInput:
|
|
2410
|
+
}, vBentoTooltipDirective: ze, FilterBarButtonGroup: ot, FilterBarButton: Ce, CheckboxInput: Mt, BentoTypography: _e, CheckmarkIcon: Ut, CrossSmallIcon: Xe };
|
|
2411
2411
|
}
|
|
2412
2412
|
});
|
|
2413
2413
|
var nn = function() {
|
|
@@ -2681,12 +2681,12 @@ const yt = fn.exports, pn = {
|
|
|
2681
2681
|
H(a, "value"),
|
|
2682
2682
|
H(a, "defaultValue")
|
|
2683
2683
|
), i = u(() => {
|
|
2684
|
-
var L, E, A, P, $,
|
|
2684
|
+
var L, E, A, P, $, X, W, k;
|
|
2685
2685
|
if (!((L = a.value) != null && L[0]) && !((E = a.value) != null && E[1]))
|
|
2686
2686
|
return null;
|
|
2687
2687
|
let _ = "";
|
|
2688
2688
|
(A = a.value) != null && A[0] ? (P = a.value) != null && P[1] || (_ = "≥") : _ = "≤";
|
|
2689
|
-
const F = ($ = a.value) != null && $[0] ? `${te(a.value[0], 5)}` : "", B = (
|
|
2689
|
+
const F = ($ = a.value) != null && $[0] ? `${te(a.value[0], 5)}` : "", B = (X = a.value) != null && X[0] && ((W = a.value) != null && W[1]) ? " - " : "", I = (k = a.value) != null && k[1] ? `${te(a.value[1], 5)}` : "";
|
|
2690
2690
|
return `${_}${F}${B}${I}`;
|
|
2691
2691
|
}), c = u(() => a.label), f = u(() => i.value), d = u(() => ({
|
|
2692
2692
|
"b-range-filter--only-slot": a.onlySlot
|
|
@@ -2795,7 +2795,14 @@ const ht = mn.exports, yn = {
|
|
|
2795
2795
|
clearFilter: i,
|
|
2796
2796
|
resetFilter: c,
|
|
2797
2797
|
openFilter: f
|
|
2798
|
-
} = rt(H(l, "value"), H(l, "defaultValue")), d = w(n.value ?? [])
|
|
2798
|
+
} = rt(H(l, "value"), H(l, "defaultValue")), d = w(n.value ?? []);
|
|
2799
|
+
z(
|
|
2800
|
+
() => l.value,
|
|
2801
|
+
(C) => {
|
|
2802
|
+
d.value = C ?? [];
|
|
2803
|
+
}
|
|
2804
|
+
);
|
|
2805
|
+
const v = u(() => ({
|
|
2799
2806
|
"b-checkbox-group-filter--only-slot": l.onlySlot
|
|
2800
2807
|
})), p = u(() => l.label), g = u(
|
|
2801
2808
|
() => {
|
|
@@ -2834,7 +2841,7 @@ var gn = function() {
|
|
|
2834
2841
|
Bn,
|
|
2835
2842
|
!1,
|
|
2836
2843
|
null,
|
|
2837
|
-
"
|
|
2844
|
+
"a3c2bae1"
|
|
2838
2845
|
);
|
|
2839
2846
|
const Ft = Sn.exports, He = 430, Ae = 700;
|
|
2840
2847
|
function Cn(a, e) {
|
|
@@ -2848,7 +2855,7 @@ function Cn(a, e) {
|
|
|
2848
2855
|
function c() {
|
|
2849
2856
|
n.value > Ae || n.value < Ae && n.value >= He && e.value.medium === "multi-line" ? o() : i();
|
|
2850
2857
|
}
|
|
2851
|
-
|
|
2858
|
+
z(() => e.value, c), Et(a, (v) => {
|
|
2852
2859
|
n.value = v[0].contentRect.width, c();
|
|
2853
2860
|
});
|
|
2854
2861
|
const f = u(() => n.value >= Ae), d = u(() => ({ "b-filter-bar--large-layout": f.value }));
|
|
@@ -3141,7 +3148,7 @@ const Vn = $n.exports, Un = {
|
|
|
3141
3148
|
const l = a, t = w(l.value), n = ve("all-filters-modal"), r = w([]), o = w(!1), i = w(0), c = w(null), f = w(""), { t: d, n: v } = Z(), p = Ie(f, H(t, "value")), g = w({});
|
|
3142
3149
|
Be(() => {
|
|
3143
3150
|
g.value = [];
|
|
3144
|
-
}),
|
|
3151
|
+
}), z(
|
|
3145
3152
|
() => l.value,
|
|
3146
3153
|
() => {
|
|
3147
3154
|
o.value ? t.value = l.value.map((m, y) => ({ ...m, value: t.value[y].value })) : t.value = l.value;
|
|
@@ -3251,7 +3258,7 @@ const Vn = $n.exports, Un = {
|
|
|
3251
3258
|
const y = B(t.value).find((ye) => ye.field === m.field).count, U = typeof m.type == "string" && // Type guard to avoid casting
|
|
3252
3259
|
m.type.includes("BentoSelect") && ((ee = m.options) == null ? void 0 : ee.multiple) && y === ((ne = (ae = m.options) == null ? void 0 : ae.listboxItems) == null ? void 0 : ne.length), Q = typeof m.type == "string" && m.type === Y.CHECKBOX_GROUP && y === ((j = (se = m.options) == null ? void 0 : se.checkboxItems) == null ? void 0 : j.length);
|
|
3253
3260
|
return U || Q ? d("all") : y === null ? null : v(y);
|
|
3254
|
-
},
|
|
3261
|
+
}, X = (m, y) => {
|
|
3255
3262
|
i.value = t.value.findIndex(
|
|
3256
3263
|
(U) => U.label === m && U.field === y
|
|
3257
3264
|
);
|
|
@@ -3294,7 +3301,7 @@ const Vn = $n.exports, Un = {
|
|
|
3294
3301
|
event: h
|
|
3295
3302
|
}
|
|
3296
3303
|
]);
|
|
3297
|
-
return { __sfc: !0, props: l, emit: e, filtersInModal: t, allFiltersModalUniqueId: n, allFiltersModalFiltersSection: r, isModalOpen: o, selectedFilterIndex: i, selectedFilterRef: c, searchTerm: f, t: d, n: v, filteredItems: p, allFiltersModalFilterButtons: g, sortAlphabetically: T, activeFilters: D, otherFilters: O, isEmptyResultForSearchFilter: C, selectedFilter: _, selectOpenedFilter: F, computeCounts: B, hasValueSelected: I, shouldShowFilterTitle: L, isClearButtonDisabled: E, numberOfActiveFilters: A, onClickAllFiltersModal: P, getFilterCount: $, selectFilter:
|
|
3304
|
+
return { __sfc: !0, props: l, emit: e, filtersInModal: t, allFiltersModalUniqueId: n, allFiltersModalFiltersSection: r, isModalOpen: o, selectedFilterIndex: i, selectedFilterRef: c, searchTerm: f, t: d, n: v, filteredItems: p, allFiltersModalFilterButtons: g, sortAlphabetically: T, activeFilters: D, otherFilters: O, isEmptyResultForSearchFilter: C, selectedFilter: _, selectOpenedFilter: F, computeCounts: B, hasValueSelected: I, shouldShowFilterTitle: L, isClearButtonDisabled: E, numberOfActiveFilters: A, onClickAllFiltersModal: P, getFilterCount: $, selectFilter: X, onSearchbarClear: W, cancel: k, updateFilter: q, clearFilter: G, clearAll: h, applyAll: s, isApplyAllButtonDisabled: b, modalActions: x, onKeydownRight: () => {
|
|
3298
3305
|
kt(1, c.value.$el).focus();
|
|
3299
3306
|
}, onKeydownLeft: () => {
|
|
3300
3307
|
g.value[_.value.label].$el.focus();
|
|
@@ -3525,7 +3532,7 @@ const Yn = jn.exports, Wn = {
|
|
|
3525
3532
|
ue.UPDATE_FILTER_VALUES_OBJECT,
|
|
3526
3533
|
h == null ? void 0 : h.filter(({ value: s }) => s !== null || s !== void 0).reduce((s, b) => (s[b.field] = b.value, s), {})
|
|
3527
3534
|
);
|
|
3528
|
-
},
|
|
3535
|
+
}, X = (h) => {
|
|
3529
3536
|
const s = Array.isArray(h) ? h : [h], b = new Map(s.map((R) => [R.field, R.value])), x = o.value.map((R) => b.has(R.field) ? { ...R, value: b.get(R.field) } : R);
|
|
3530
3537
|
$(x);
|
|
3531
3538
|
}, W = () => {
|
|
@@ -3558,7 +3565,7 @@ const Yn = jn.exports, Wn = {
|
|
|
3558
3565
|
}, G = () => {
|
|
3559
3566
|
l(de.CLEAR);
|
|
3560
3567
|
};
|
|
3561
|
-
return e({ isClearAllVisible: A, clearAllFilters: W, isResetAllVisible: P, resetAllFilters: k }), { __sfc: !0, props: t, emit: l, t: n, filterBarRef: r, valueAndFilterValuesPropsMerged: o, addToast: i, screenLayoutComponent: c, showSearchbarInsideContainer: f, isOneLineLayout: d, isLargeLayout: v, rootElementConditionalClasses: p, containerConditionalClasses: g, contentConditionalClasses: T, searchBarAriaLabel: D, searchBarProps: O, searchBarWidthStyle: C, hasHiddenFilters: _, persistentFilters: F, dynamicFilters: B, regularFilters: I, isSearchBarEnabled: L, hasActiveFilters: E, isClearAllVisible: A, isResetAllVisible: P, updateAllFilters: $, updateFilterHandler:
|
|
3568
|
+
return e({ isClearAllVisible: A, clearAllFilters: W, isResetAllVisible: P, resetAllFilters: k }), { __sfc: !0, props: t, emit: l, t: n, filterBarRef: r, valueAndFilterValuesPropsMerged: o, addToast: i, screenLayoutComponent: c, showSearchbarInsideContainer: f, isOneLineLayout: d, isLargeLayout: v, rootElementConditionalClasses: p, containerConditionalClasses: g, contentConditionalClasses: T, searchBarAriaLabel: D, searchBarProps: O, searchBarWidthStyle: C, hasHiddenFilters: _, persistentFilters: F, dynamicFilters: B, regularFilters: I, isSearchBarEnabled: L, hasActiveFilters: E, isClearAllVisible: A, isResetAllVisible: P, updateAllFilters: $, updateFilterHandler: X, clearAllFilters: W, resetAllFilters: k, onSearchbarInput: q, onSearchbarClear: G, FilterBarButton: Ce, BentoSearchBar: Oe, AllFiltersModal: Yn, RefreshIcon: vl };
|
|
3562
3569
|
}
|
|
3563
3570
|
});
|
|
3564
3571
|
var Jn = function() {
|
|
@@ -3589,4 +3596,4 @@ export {
|
|
|
3589
3596
|
Y as d,
|
|
3590
3597
|
rt as u
|
|
3591
3598
|
};
|
|
3592
|
-
//# sourceMappingURL=filter-bar.
|
|
3599
|
+
//# sourceMappingURL=filter-bar.DQ9fJXq1.js.map
|