@adyen/bento-vue2 1.74.0 → 1.76.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/index.d.ts +1693 -616
- 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/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/calendar.Fm_dfQC5.js +1871 -0
- package/dist/chunks/calendar.Fm_dfQC5.js.map +1 -0
- package/dist/chunks/{checkbox-group.DETXTJqI.js → checkbox-group.CtNVRcmP.js} +2 -2
- package/dist/chunks/{checkbox-group.DETXTJqI.js.map → checkbox-group.CtNVRcmP.js.map} +1 -1
- package/dist/chunks/{checkbox.BPtHAAEa.js → checkbox.nyUc0gLb.js} +18 -18
- package/dist/chunks/{checkbox.BPtHAAEa.js.map → checkbox.nyUc0gLb.js.map} +1 -1
- package/dist/chunks/{code-snippet.VtrsOTEC.js → code-snippet.DFf3KMSi.js} +2 -2
- package/dist/chunks/{code-snippet.VtrsOTEC.js.map → code-snippet.DFf3KMSi.js.map} +1 -1
- package/dist/chunks/constructNow.CHWWeLPc.js +8 -0
- package/dist/chunks/constructNow.CHWWeLPc.js.map +1 -0
- package/dist/chunks/{currency.DDB4G_A8.js → currency.AvvbekWO.js} +15 -14
- package/dist/chunks/{currency.DDB4G_A8.js.map → currency.AvvbekWO.js.map} +1 -1
- package/dist/chunks/{dashboard-section.jIpBvP6X.js → dashboard-section.D1l7wDX3.js} +2 -2
- package/dist/chunks/{dashboard-section.jIpBvP6X.js.map → dashboard-section.D1l7wDX3.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CozTcWQ0.js → data-grid-template.DGUDqzjj.js} +2 -2
- package/dist/chunks/{data-grid-template.CozTcWQ0.js.map → data-grid-template.DGUDqzjj.js.map} +1 -1
- package/dist/chunks/{data-grid.DN9xml8y.js → data-grid.B5aCkT0o.js} +1257 -1223
- package/dist/chunks/data-grid.B5aCkT0o.js.map +1 -0
- package/dist/chunks/{date-picker.DoYYzWcA.js → date-picker.DImAYvoM.js} +14 -14
- package/dist/chunks/date-picker.DImAYvoM.js.map +1 -0
- package/dist/chunks/date-range-picker.DgZMERzx.js +914 -0
- package/dist/chunks/date-range-picker.DgZMERzx.js.map +1 -0
- package/dist/chunks/{get-date-locale.CAyOIbcp.js → differenceInMonths.C8FyCrav.js} +580 -364
- package/dist/chunks/differenceInMonths.C8FyCrav.js.map +1 -0
- package/dist/chunks/dropdown-tag.CpvU8eSZ.js +260 -0
- package/dist/chunks/dropdown-tag.CpvU8eSZ.js.map +1 -0
- package/dist/chunks/{dropdown.BOvtYKXS.js → dropdown.RxD2TqnP.js} +14 -14
- package/dist/chunks/{dropdown.BOvtYKXS.js.map → dropdown.RxD2TqnP.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{filter-bar.DzHJi42d.js → filter-bar.C0S87JZD.js} +511 -486
- package/dist/chunks/filter-bar.C0S87JZD.js.map +1 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
- package/dist/chunks/{index.BrH1t1iu.js → getTimezoneOffsetInMilliseconds.BW7U6PxE.js} +254 -177
- package/dist/chunks/getTimezoneOffsetInMilliseconds.BW7U6PxE.js.map +1 -0
- package/dist/chunks/header-meta.D-6dL1Vg.js +170 -0
- package/dist/chunks/header-meta.D-6dL1Vg.js.map +1 -0
- package/dist/chunks/{header-with-views.t5Fr63SD.js → header-with-views.j16q5wEc.js} +4 -4
- package/dist/chunks/{header-with-views.t5Fr63SD.js.map → header-with-views.j16q5wEc.js.map} +1 -1
- package/dist/chunks/{header.DwSyDQ68.js → header.DoWKsA15.js} +2 -2
- package/dist/chunks/{header.DwSyDQ68.js.map → header.DoWKsA15.js.map} +1 -1
- package/dist/chunks/{input-field-password.Dm3HYonF.js → input-field-password.CSfXqEbT.js} +47 -38
- package/dist/chunks/input-field-password.CSfXqEbT.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.bZauIuHJ.js → input-field-phone-number.oa4hXQdK.js} +3 -3
- package/dist/chunks/{input-field-phone-number.bZauIuHJ.js.map → input-field-phone-number.oa4hXQdK.js.map} +1 -1
- package/dist/chunks/input-field.DdQu3b1-.js +161 -0
- package/dist/chunks/input-field.DdQu3b1-.js.map +1 -0
- package/dist/chunks/{pagination.CKD9FDrA.js → pagination.C0YW_A_o.js} +2 -2
- package/dist/chunks/{pagination.CKD9FDrA.js.map → pagination.C0YW_A_o.js.map} +1 -1
- package/dist/chunks/radio-group.AcYMFudv.js.map +1 -1
- package/dist/chunks/{rich-text-editor.BZgQ578S.js → rich-text-editor.eYW8X_YP.js} +354 -352
- package/dist/chunks/{rich-text-editor.BZgQ578S.js.map → rich-text-editor.eYW8X_YP.js.map} +1 -1
- package/dist/chunks/{search-bar.c-w7Uky2.js → search-bar.DJVfPz-f.js} +3 -3
- package/dist/chunks/{search-bar.c-w7Uky2.js.map → search-bar.DJVfPz-f.js.map} +1 -1
- package/dist/chunks/{secondary-nav.D69COlqF.js → secondary-nav.BFiTQaag.js} +2 -2
- package/dist/chunks/{secondary-nav.D69COlqF.js.map → secondary-nav.BFiTQaag.js.map} +1 -1
- package/dist/chunks/{selection-card-group.8UIir78G.js → selection-card-group.D4rcUyvV.js} +58 -120
- package/dist/chunks/{selection-card-group.8UIir78G.js.map → selection-card-group.D4rcUyvV.js.map} +1 -1
- package/dist/chunks/textarea.CIQuLWQ8.js.map +1 -1
- package/dist/chunks/{timeline-item.VSw9vKdO.js → timeline-item.CZBuknZ_.js} +156 -168
- package/dist/chunks/timeline-item.CZBuknZ_.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.IsfhJHxQ.js → use-cached-selected-values.BZd3CTeP.js} +334 -314
- package/dist/chunks/use-cached-selected-values.BZd3CTeP.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +221 -220
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/internal.js +3 -3
- package/dist/pagination.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/styles/bento-dark.css +7 -5
- package/dist/styles/bento-light.css +7 -5
- package/dist/styles/bento.css +7 -5
- package/dist/styles/legacy.css +7 -5
- package/dist/styles/styleguide.css +7 -5
- package/dist/timeline.js +1 -1
- package/dist/web-types.json +692 -1390
- package/package.json +12 -27
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
- package/dist/chunks/calendar.EfqJlztU.js +0 -2093
- package/dist/chunks/calendar.EfqJlztU.js.map +0 -1
- package/dist/chunks/data-grid.DN9xml8y.js.map +0 -1
- package/dist/chunks/date-picker.DoYYzWcA.js.map +0 -1
- package/dist/chunks/date-range-picker.C_pJ8yH5.js +0 -917
- package/dist/chunks/date-range-picker.C_pJ8yH5.js.map +0 -1
- package/dist/chunks/dropdown-tag.DBnurtCQ.js +0 -245
- package/dist/chunks/dropdown-tag.DBnurtCQ.js.map +0 -1
- package/dist/chunks/filter-bar.DzHJi42d.js.map +0 -1
- package/dist/chunks/get-date-locale.CAyOIbcp.js.map +0 -1
- package/dist/chunks/header-meta.uiIO1wHP.js +0 -185
- package/dist/chunks/header-meta.uiIO1wHP.js.map +0 -1
- package/dist/chunks/index.BrH1t1iu.js.map +0 -1
- package/dist/chunks/index.BxBB1rsx.js +0 -15
- package/dist/chunks/index.BxBB1rsx.js.map +0 -1
- package/dist/chunks/input-field-password.Dm3HYonF.js.map +0 -1
- package/dist/chunks/input-field.D52XYEzU.js +0 -157
- package/dist/chunks/input-field.D52XYEzU.js.map +0 -1
- package/dist/chunks/timeline-item.VSw9vKdO.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.IsfhJHxQ.js.map +0 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { computed as i, ref as S, onMounted as
|
|
2
|
-
import { B as
|
|
1
|
+
import { computed as i, ref as S, onMounted as Me, onUnmounted as we, watch as X, defineComponent as G, nextTick as ge, toRef as H, useSlots as Ge, useAttrs as Pe } from "vue";
|
|
2
|
+
import { B as $, a as se } from "./keyboard-navigation.pB8weElW.js";
|
|
3
3
|
import { B as j } from "./typography.hlOAxsEn.js";
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
4
|
+
import { B as Fe } from "./loading-indicator.PxbRzshH.js";
|
|
5
|
+
import { B as Ye } from "./empty-state.BsdRxzS2.js";
|
|
6
6
|
import { u as le } from "./index.B6WW_F-J.js";
|
|
7
|
-
import { d as
|
|
7
|
+
import { d as Ue } from "./debounce.DUTu11PS.js";
|
|
8
8
|
import "./index.Cl4_42j5.js";
|
|
9
|
-
import {
|
|
10
|
-
import { C as J, N as ze } from "./minus-small.DJacLGTw.js";
|
|
9
|
+
import { C as Z, N as ze } from "./minus-small.DJacLGTw.js";
|
|
11
10
|
import { C as Ve } from "./checkmark-small.DVDtD4HQ.js";
|
|
11
|
+
/* empty css */
|
|
12
12
|
import { n as M } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
13
|
-
import {
|
|
14
|
-
import { C as Ke } from "./chevron-
|
|
13
|
+
import { B as We } from "./chip.fqEIkR-s.js";
|
|
14
|
+
import { C as Ke } from "./chevron-down.eYtgv5ly.js";
|
|
15
|
+
import { C as je } from "./chevron-up.d8cwIlA_.js";
|
|
15
16
|
import { g as be } from "./generate-uid.NJ8tVoha.js";
|
|
16
|
-
import { a as
|
|
17
|
-
|
|
18
|
-
import { o as qe } from "./resize.Bqks3WUm.js";
|
|
17
|
+
import { a as qe, b as fe } from "./button-actions.B81vY51z.js";
|
|
18
|
+
import { o as He } from "./resize.Bqks3WUm.js";
|
|
19
19
|
import "../assets/use-cached-selected-values.css";
|
|
20
|
-
const
|
|
20
|
+
const pe = (s, e, l, t) => {
|
|
21
21
|
const n = i(
|
|
22
22
|
() => {
|
|
23
|
-
var f,
|
|
24
|
-
return !!((f = s.value) != null && f.length) && ((
|
|
23
|
+
var f, L;
|
|
24
|
+
return !!((f = s.value) != null && f.length) && ((L = s.value) == null ? void 0 : L.length) === e.value.length;
|
|
25
25
|
}
|
|
26
|
-
),
|
|
26
|
+
), a = i(() => {
|
|
27
27
|
var f;
|
|
28
28
|
return s.value == null || s.value.length === 0 ? !1 : ((f = s.value) == null ? void 0 : f.length) !== e.value.length;
|
|
29
29
|
});
|
|
30
30
|
return {
|
|
31
31
|
isAllSelected: n,
|
|
32
|
-
isIndeterminate:
|
|
32
|
+
isIndeterminate: a,
|
|
33
33
|
toggleSelectAll: (f) => {
|
|
34
34
|
f ? l() : t();
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
function
|
|
39
|
-
const
|
|
38
|
+
function Xe(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: n }) {
|
|
39
|
+
const a = S(null), r = S([]), f = S(0), L = S(0), d = S(0);
|
|
40
40
|
let b;
|
|
41
41
|
const T = i(() => {
|
|
42
|
-
const I = typeof l == "number" ? s.value.length * l : s.value.reduce((
|
|
42
|
+
const I = typeof l == "number" ? s.value.length * l : s.value.reduce((C, m, y) => C + l(y), 0), O = typeof l == "number" ? f.value * l : s.value.slice(0, f.value).reduce((C, m, y) => C + l(y), 0);
|
|
43
43
|
return {
|
|
44
44
|
style: {
|
|
45
45
|
marginTop: `${O}px`,
|
|
@@ -47,70 +47,70 @@ function He(s, { disabled: e, itemHeight: l, overscan: t = 5, prefixHeight: n })
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}), g = () => {
|
|
50
|
-
const I = (n == null ? void 0 : n.value) ?? 0, O = Math.max(
|
|
50
|
+
const I = (n == null ? void 0 : n.value) ?? 0, O = Math.max(a.value.scrollTop - I, 0);
|
|
51
51
|
if (typeof l == "number")
|
|
52
52
|
return Math.floor(O / l);
|
|
53
|
-
let
|
|
53
|
+
let C = 0, m = 0;
|
|
54
54
|
for (let y = 0; y < s.value.length; y += 1) {
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
55
|
+
const R = l(y);
|
|
56
|
+
if (C += R, C >= O) {
|
|
57
57
|
m = y;
|
|
58
58
|
break;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
return m;
|
|
62
62
|
}, p = () => {
|
|
63
|
-
if (d.value =
|
|
63
|
+
if (d.value = a.value.clientHeight, typeof l == "number")
|
|
64
64
|
return Math.ceil(d.value / l);
|
|
65
65
|
const I = f.value ?? 0;
|
|
66
|
-
let O = 0,
|
|
66
|
+
let O = 0, C = 0;
|
|
67
67
|
for (let m = I; m < s.value.length; m += 1) {
|
|
68
68
|
const y = l(m);
|
|
69
|
-
if (O += y,
|
|
69
|
+
if (O += y, C = m, O > d.value)
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
|
-
return
|
|
73
|
-
},
|
|
74
|
-
if (
|
|
72
|
+
return C - I;
|
|
73
|
+
}, x = () => {
|
|
74
|
+
if (a.value) {
|
|
75
75
|
const I = p();
|
|
76
|
-
f.value = g(),
|
|
76
|
+
f.value = g(), L.value = Math.min(f.value + I + t, s.value.length), r.value = s.value.slice(f.value, L.value);
|
|
77
77
|
}
|
|
78
|
-
},
|
|
79
|
-
|
|
78
|
+
}, D = () => {
|
|
79
|
+
x();
|
|
80
80
|
};
|
|
81
|
-
e || (
|
|
82
|
-
|
|
83
|
-
d.value = I,
|
|
84
|
-
}),
|
|
85
|
-
}),
|
|
81
|
+
e || (Me(() => {
|
|
82
|
+
a.value && (d.value = a.value.clientHeight, b = He(a.value, ({ clientHeight: I }) => {
|
|
83
|
+
d.value = I, x();
|
|
84
|
+
}), x());
|
|
85
|
+
}), we(() => {
|
|
86
86
|
b == null || b.disconnect();
|
|
87
87
|
}), X(
|
|
88
88
|
() => s.value,
|
|
89
89
|
() => {
|
|
90
|
-
|
|
90
|
+
x();
|
|
91
91
|
}
|
|
92
92
|
));
|
|
93
93
|
const B = {
|
|
94
|
-
ref:
|
|
94
|
+
ref: a,
|
|
95
95
|
style: { overflowY: "auto" }
|
|
96
96
|
};
|
|
97
97
|
return e ? {
|
|
98
|
-
containerRef:
|
|
98
|
+
containerRef: a,
|
|
99
99
|
containerProps: B,
|
|
100
100
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
101
101
|
onScroll: () => {
|
|
102
102
|
},
|
|
103
103
|
list: s
|
|
104
104
|
} : {
|
|
105
|
-
containerRef:
|
|
105
|
+
containerRef: a,
|
|
106
106
|
containerProps: B,
|
|
107
|
-
onScroll:
|
|
107
|
+
onScroll: D,
|
|
108
108
|
list: r,
|
|
109
109
|
wrapperProps: T
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
var c = /* @__PURE__ */ ((s) => (s.SELECT = "select", s.SHOW_MORE = "show-more", s.ESCAPE = "escape-pressed", s.CLICK = "click", s.ENTER = "enter-pressed", s.SPACE = "space-pressed", s.TAB = "tab-pressed", s.CLOSE_DROPDOWN = "close-dropdown", s))(c || {}), K = /* @__PURE__ */ ((s) => (s.AUTOMATIC = "automatic", s.BUTTON = "button", s.NONE = "none", s))(K || {});
|
|
113
|
-
const
|
|
113
|
+
const Ze = G({
|
|
114
114
|
name: "bento-listbox-static-category",
|
|
115
115
|
components: {
|
|
116
116
|
BentoTypography: j
|
|
@@ -128,15 +128,15 @@ const Xe = G({
|
|
|
128
128
|
var Je = function() {
|
|
129
129
|
var e = this, l = e._self._c;
|
|
130
130
|
return e._self._setupProxy, l("div", { staticClass: "b-listbox-single-select-category", attrs: { role: "group", "aria-label": e.categoryLabel } }, [l("bento-typography", { staticClass: "b-listbox-single-select-category__label-text", attrs: { variant: "caption", el: "span", "aria-hidden": "true" } }, [e._v(" " + e._s(e.categoryLabel) + " ")]), l("div", [e._t("default")], 2)], 1);
|
|
131
|
-
},
|
|
132
|
-
Xe,
|
|
133
|
-
Je,
|
|
131
|
+
}, Qe = [], et = /* @__PURE__ */ M(
|
|
134
132
|
Ze,
|
|
133
|
+
Je,
|
|
134
|
+
Qe,
|
|
135
135
|
!1,
|
|
136
136
|
null,
|
|
137
137
|
"bfbc1649"
|
|
138
138
|
);
|
|
139
|
-
const
|
|
139
|
+
const tt = et.exports, st = G({
|
|
140
140
|
name: "bento-listbox-option",
|
|
141
141
|
props: {
|
|
142
142
|
/**
|
|
@@ -156,21 +156,21 @@ const et = Qe.exports, tt = G({
|
|
|
156
156
|
}));
|
|
157
157
|
return {
|
|
158
158
|
// Enums
|
|
159
|
-
BentoKeyboardNavigationKeyDownEvent:
|
|
159
|
+
BentoKeyboardNavigationKeyDownEvent: $,
|
|
160
160
|
BentoListboxEvent: c,
|
|
161
161
|
// Values
|
|
162
162
|
conditionalClasses: l,
|
|
163
163
|
// Events
|
|
164
|
-
onClick: (
|
|
165
|
-
e(c.CLICK,
|
|
164
|
+
onClick: (a) => {
|
|
165
|
+
e(c.CLICK, a);
|
|
166
166
|
},
|
|
167
|
-
onOptionSelected: (
|
|
168
|
-
e(
|
|
167
|
+
onOptionSelected: (a, r) => {
|
|
168
|
+
e(a, r);
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
|
-
var
|
|
173
|
+
var lt = function() {
|
|
174
174
|
var e = this, l = e._self._c;
|
|
175
175
|
return e._self._setupProxy, l("div", e._b({ staticClass: "b-listbox-option", class: e.conditionalClasses, attrs: { role: "option" }, on: { click: e.onClick, keydown: [function(t) {
|
|
176
176
|
return !t.type.indexOf("key") && e._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, t);
|
|
@@ -179,38 +179,38 @@ var st = function() {
|
|
|
179
179
|
}, function(t) {
|
|
180
180
|
return !t.type.indexOf("key") && e._k(t.keyCode, "tab", 9, t.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, t);
|
|
181
181
|
}] } }, "div", e.$attrs, !1), [e._t("default")], 2);
|
|
182
|
-
},
|
|
183
|
-
tt,
|
|
182
|
+
}, nt = [], at = /* @__PURE__ */ M(
|
|
184
183
|
st,
|
|
185
184
|
lt,
|
|
185
|
+
nt,
|
|
186
186
|
!1,
|
|
187
187
|
null,
|
|
188
188
|
"c345b6c0"
|
|
189
189
|
);
|
|
190
|
-
const
|
|
190
|
+
const J = at.exports;
|
|
191
191
|
let ve = 0;
|
|
192
|
-
const
|
|
192
|
+
const it = {
|
|
193
193
|
beforeCreate() {
|
|
194
194
|
this.uuid = ve.toString(), ve += 1;
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
-
var
|
|
197
|
+
var ot = function() {
|
|
198
198
|
var e = this, l = e._self._c;
|
|
199
199
|
return l("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
|
|
200
|
-
},
|
|
201
|
-
ot,
|
|
200
|
+
}, ct = [], rt = /* @__PURE__ */ M(
|
|
202
201
|
it,
|
|
203
|
-
|
|
202
|
+
ot,
|
|
203
|
+
ct,
|
|
204
204
|
!1,
|
|
205
205
|
null,
|
|
206
206
|
null
|
|
207
207
|
);
|
|
208
|
-
const
|
|
208
|
+
const ut = rt.exports, dt = G({
|
|
209
209
|
name: "bento-listbox-single-select-option",
|
|
210
210
|
components: {
|
|
211
|
-
BentoListboxOption:
|
|
211
|
+
BentoListboxOption: J,
|
|
212
212
|
BentoTypography: j,
|
|
213
|
-
CheckmarkIcon:
|
|
213
|
+
CheckmarkIcon: ut
|
|
214
214
|
},
|
|
215
215
|
props: {
|
|
216
216
|
/**
|
|
@@ -234,12 +234,12 @@ const rt = ct.exports, ut = G({
|
|
|
234
234
|
setup(s, { emit: e }) {
|
|
235
235
|
const l = (r) => {
|
|
236
236
|
s.disabled || e(r, s.option);
|
|
237
|
-
}, t = i(() => s.disabled ? !0 : null), n = i(() => s.selected ? !0 : null),
|
|
237
|
+
}, t = i(() => s.disabled ? !0 : null), n = i(() => s.selected ? !0 : null), a = i(() => s.disabled ? -1 : 0);
|
|
238
238
|
return {
|
|
239
239
|
// Values
|
|
240
240
|
ariaDisabled: t,
|
|
241
241
|
ariaSelected: n,
|
|
242
|
-
tabIndex:
|
|
242
|
+
tabIndex: a,
|
|
243
243
|
// Enums
|
|
244
244
|
BentoListboxEvent: c,
|
|
245
245
|
// Events
|
|
@@ -247,7 +247,7 @@ const rt = ct.exports, ut = G({
|
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
-
var
|
|
250
|
+
var bt = function() {
|
|
251
251
|
var e = this, l = e._self._c;
|
|
252
252
|
return e._self._setupProxy, l("bento-listbox-option", { staticClass: "b-listbox-single-select-option", attrs: { disabled: e.disabled, selected: e.selected, "aria-selected": e.ariaSelected, "aria-disabled": e.ariaDisabled, tabindex: e.tabIndex }, on: { click: function(t) {
|
|
253
253
|
return e.onOptionSelected(e.BentoListboxEvent.SELECT);
|
|
@@ -260,15 +260,15 @@ var dt = function() {
|
|
|
260
260
|
} } }, [e._t("default", function() {
|
|
261
261
|
return [l("span", { staticClass: "b-listbox-single-select-option__text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.option.label))]), e.option.description ? l("bento-typography", { staticClass: "b-listbox-single-select-option__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.option.description) + " ")]) : e._e()], 1)];
|
|
262
262
|
}, null, e.option), l("span", { staticClass: "b-listbox-single-select-option__check-icon" }, [l("checkmark-icon", { directives: [{ name: "show", rawName: "v-show", value: e.selected, expression: "selected" }], attrs: { "svg-title": "selected" } })], 1)], 2);
|
|
263
|
-
},
|
|
264
|
-
ut,
|
|
263
|
+
}, ft = [], vt = /* @__PURE__ */ M(
|
|
265
264
|
dt,
|
|
266
265
|
bt,
|
|
266
|
+
ft,
|
|
267
267
|
!1,
|
|
268
268
|
null,
|
|
269
269
|
"bb14d75a"
|
|
270
270
|
);
|
|
271
|
-
const
|
|
271
|
+
const mt = vt.exports, ye = ({ items: s }, e) => {
|
|
272
272
|
const l = i(() => s.value.length - 1), t = S(0), n = (g) => {
|
|
273
273
|
switch (g) {
|
|
274
274
|
case "increase":
|
|
@@ -278,10 +278,10 @@ const vt = ft.exports, pe = ({ items: s }, e) => {
|
|
|
278
278
|
t.value -= 1;
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
|
-
},
|
|
281
|
+
}, a = ({ edgeCaseItem: g }, p) => {
|
|
282
282
|
t.value !== g && (n(p), e(t.value));
|
|
283
283
|
}, r = (g) => {
|
|
284
|
-
T(g),
|
|
284
|
+
T(g), a(
|
|
285
285
|
{
|
|
286
286
|
edgeCaseItem: l.value
|
|
287
287
|
},
|
|
@@ -289,14 +289,14 @@ const vt = ft.exports, pe = ({ items: s }, e) => {
|
|
|
289
289
|
/* INCREASE */
|
|
290
290
|
);
|
|
291
291
|
}, f = (g) => {
|
|
292
|
-
T(g),
|
|
292
|
+
T(g), a(
|
|
293
293
|
{
|
|
294
294
|
edgeCaseItem: 0
|
|
295
295
|
},
|
|
296
296
|
"decrease"
|
|
297
297
|
/* DECREASE */
|
|
298
298
|
);
|
|
299
|
-
},
|
|
299
|
+
}, L = () => {
|
|
300
300
|
t.value = 0, e(t.value);
|
|
301
301
|
}, d = () => {
|
|
302
302
|
t.value = l.value, e(t.value);
|
|
@@ -307,7 +307,7 @@ const vt = ft.exports, pe = ({ items: s }, e) => {
|
|
|
307
307
|
(p = g == null ? void 0 : g.detail) == null || p.preventDefault();
|
|
308
308
|
};
|
|
309
309
|
return {
|
|
310
|
-
moveToFirstElement:
|
|
310
|
+
moveToFirstElement: L,
|
|
311
311
|
moveToLastElement: d,
|
|
312
312
|
moveToNextElement: r,
|
|
313
313
|
moveToPreviousElement: f,
|
|
@@ -315,8 +315,8 @@ const vt = ft.exports, pe = ({ items: s }, e) => {
|
|
|
315
315
|
preventDefault: T,
|
|
316
316
|
focusedIndex: t
|
|
317
317
|
};
|
|
318
|
-
},
|
|
319
|
-
const n = S([]),
|
|
318
|
+
}, he = (s, e, l = S("option"), t = !0) => {
|
|
319
|
+
const n = S([]), a = async () => {
|
|
320
320
|
if (!s.value || s.value.nodeType === Node.COMMENT_NODE)
|
|
321
321
|
return;
|
|
322
322
|
const r = Array.from(s.value.querySelectorAll(`[role="${l.value}"]`));
|
|
@@ -325,20 +325,20 @@ const vt = ft.exports, pe = ({ items: s }, e) => {
|
|
|
325
325
|
return X(
|
|
326
326
|
e,
|
|
327
327
|
() => {
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
ge(() => {
|
|
329
|
+
a();
|
|
330
330
|
});
|
|
331
331
|
},
|
|
332
332
|
{ immediate: !0 }
|
|
333
333
|
), {
|
|
334
334
|
visibleDomOptions: n,
|
|
335
|
-
updateVisibleDomOptions:
|
|
335
|
+
updateVisibleDomOptions: a
|
|
336
336
|
};
|
|
337
|
-
},
|
|
337
|
+
}, _t = G({
|
|
338
338
|
name: "bento-listbox-single-select",
|
|
339
339
|
components: {
|
|
340
|
-
BentoListboxSingleSelectCategory:
|
|
341
|
-
BentoListboxSingleSelectOption:
|
|
340
|
+
BentoListboxSingleSelectCategory: tt,
|
|
341
|
+
BentoListboxSingleSelectOption: mt
|
|
342
342
|
},
|
|
343
343
|
directives: { BentoKeyboardNavigationDirective: se },
|
|
344
344
|
inheritAttrs: !1,
|
|
@@ -383,41 +383,41 @@ const vt = ft.exports, pe = ({ items: s }, e) => {
|
|
|
383
383
|
},
|
|
384
384
|
emits: [c.SELECT, c.ENTER, c.SPACE, c.TAB],
|
|
385
385
|
setup(s, { emit: e, expose: l, slots: t, attrs: n }) {
|
|
386
|
-
const
|
|
386
|
+
const a = S(null), r = S([]), f = i(() => {
|
|
387
387
|
var m;
|
|
388
388
|
return !!((m = s.selectedValue) != null && m.length) && s.selectedValue.at(0);
|
|
389
|
-
}),
|
|
389
|
+
}), L = i(
|
|
390
390
|
() => {
|
|
391
|
-
var m, y,
|
|
391
|
+
var m, y, R, P;
|
|
392
392
|
return {
|
|
393
393
|
"aria-label": (m = n["aria-label"]) == null ? void 0 : m.toString(),
|
|
394
394
|
"aria-busy": (y = n["aria-busy"]) == null ? void 0 : y.toString(),
|
|
395
|
-
"aria-atomic": (
|
|
395
|
+
"aria-atomic": (R = n["aria-atomic"]) == null ? void 0 : R.toString(),
|
|
396
396
|
"aria-live": (P = n["aria-live"]) == null ? void 0 : P.toString()
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
), d = i(() => !!s.items.some(({ items: m }) => !!m)), b = (m) => (y) => {
|
|
400
400
|
e(m, [y]);
|
|
401
|
-
}, { visibleDomOptions: T } =
|
|
401
|
+
}, { visibleDomOptions: T } = he(a, H(s, "items"), S("option"), !1), g = (m) => {
|
|
402
402
|
var y;
|
|
403
403
|
(y = T.value[m]) == null || y.focus();
|
|
404
404
|
}, {
|
|
405
405
|
moveToNextElement: p,
|
|
406
|
-
moveToPreviousElement:
|
|
407
|
-
moveToFirstElement:
|
|
406
|
+
moveToPreviousElement: x,
|
|
407
|
+
moveToFirstElement: D,
|
|
408
408
|
moveToLastElement: B,
|
|
409
409
|
setListboxFocusedIndex: I
|
|
410
|
-
} =
|
|
410
|
+
} = ye(
|
|
411
411
|
{
|
|
412
412
|
items: T
|
|
413
413
|
},
|
|
414
414
|
g
|
|
415
415
|
), O = {
|
|
416
|
-
[
|
|
417
|
-
[
|
|
418
|
-
[
|
|
419
|
-
[
|
|
420
|
-
},
|
|
416
|
+
[$.ARROW_UP]: x,
|
|
417
|
+
[$.ARROW_DOWN]: p,
|
|
418
|
+
[$.HOME]: D,
|
|
419
|
+
[$.END]: B
|
|
420
|
+
}, C = {
|
|
421
421
|
[c.SELECT]: b(c.SELECT),
|
|
422
422
|
[c.SPACE]: b(c.SPACE),
|
|
423
423
|
[c.TAB]: b(c.TAB),
|
|
@@ -438,92 +438,111 @@ const vt = ft.exports, pe = ({ items: s }, e) => {
|
|
|
438
438
|
// Enums
|
|
439
439
|
BentoListboxEvent: c,
|
|
440
440
|
// Values
|
|
441
|
-
listboxRef:
|
|
441
|
+
listboxRef: a,
|
|
442
442
|
listboxItemRef: r,
|
|
443
443
|
selectedItem: f,
|
|
444
444
|
slots: t,
|
|
445
|
-
ariaAttributes:
|
|
445
|
+
ariaAttributes: L,
|
|
446
446
|
// Computed
|
|
447
447
|
hasCategories: d,
|
|
448
448
|
// Methods
|
|
449
449
|
onOptionSelected: b,
|
|
450
450
|
// Keyboard navigation
|
|
451
451
|
listboxListeners: O,
|
|
452
|
-
listboxOptionListeners:
|
|
452
|
+
listboxOptionListeners: C
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
|
-
var
|
|
456
|
+
var gt = function() {
|
|
457
457
|
var e = this, l = e._self._c;
|
|
458
458
|
return e._self._setupProxy, l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", attrs: { role: "listbox" } }, "div", e.ariaAttributes, !1), e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(t) {
|
|
459
459
|
return l("bento-listbox-single-select-category", { key: t.value, attrs: { "category-label": t.label } }, e._l(t.items, function(n) {
|
|
460
|
-
return l("bento-listbox-single-select-option", e._g({ key: n.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: n, disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null, selected: n.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(
|
|
460
|
+
return l("bento-listbox-single-select-option", e._g({ key: n.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: n, disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null, selected: n.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(a, r) {
|
|
461
461
|
return { key: r, fn: function(f) {
|
|
462
462
|
return [e._t(r, null, null, f)];
|
|
463
463
|
} };
|
|
464
464
|
})], null, !0) }, e.listboxOptionListeners));
|
|
465
465
|
}), 1);
|
|
466
466
|
}) : e._l(e.items, function(t) {
|
|
467
|
-
return l("bento-listbox-single-select-option", e._g({ key: t.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: t, disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, selected: t.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n,
|
|
468
|
-
return { key:
|
|
469
|
-
return [e._t(
|
|
467
|
+
return l("bento-listbox-single-select-option", e._g({ key: t.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: t, disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, selected: t.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n, a) {
|
|
468
|
+
return { key: a, fn: function(r) {
|
|
469
|
+
return [e._t(a, null, null, r)];
|
|
470
470
|
} };
|
|
471
471
|
})], null, !0) }, e.listboxOptionListeners));
|
|
472
472
|
})], 2);
|
|
473
|
-
},
|
|
474
|
-
mt,
|
|
473
|
+
}, pt = [], yt = /* @__PURE__ */ M(
|
|
475
474
|
_t,
|
|
476
475
|
gt,
|
|
476
|
+
pt,
|
|
477
477
|
!1,
|
|
478
478
|
null,
|
|
479
479
|
null
|
|
480
480
|
);
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
|
|
481
|
+
const ht = yt.exports;
|
|
482
|
+
let me = 0;
|
|
483
|
+
const Ct = {
|
|
484
|
+
beforeCreate() {
|
|
485
|
+
this.uuid = me.toString(), me += 1;
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
var xt = function() {
|
|
489
|
+
var e = this, l = e._self._c;
|
|
490
|
+
return l("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#001222", d: "M9.69043 5.75L4.62988 10.8105L1.56934 7.75L2.62988 6.68945L4.62988 8.68945L8.62988 4.68945L9.69043 5.75Z" } }), l("path", { attrs: { fill: "#001222", d: "M13.9307 5.75L8.87012 10.8105L7.80957 9.75L12.8701 4.68945L13.9307 5.75Z" } })]);
|
|
491
|
+
}, St = [], Ot = /* @__PURE__ */ M(
|
|
492
|
+
Ct,
|
|
493
|
+
xt,
|
|
494
|
+
St,
|
|
495
|
+
!1,
|
|
496
|
+
null,
|
|
497
|
+
null
|
|
498
|
+
);
|
|
499
|
+
const Et = Ot.exports, Tt = {}, It = /* @__PURE__ */ G({
|
|
500
|
+
...Tt,
|
|
501
|
+
__name: "decorative-checkbox",
|
|
484
502
|
props: {
|
|
485
503
|
disabled: { type: Boolean, default: !1 },
|
|
486
504
|
indeterminate: { type: Boolean, default: !1 },
|
|
487
|
-
checked: { type: Boolean, default: !1 }
|
|
505
|
+
checked: { type: Boolean, default: !1 },
|
|
506
|
+
allSelected: { type: Boolean, default: !1 }
|
|
488
507
|
},
|
|
489
508
|
setup(s) {
|
|
490
509
|
const e = s, l = i(() => ({
|
|
491
|
-
[`b-checkbox-input--${
|
|
510
|
+
[`b-checkbox-input--${Z.DISABLED}`]: e.disabled
|
|
492
511
|
})), t = i(() => ({
|
|
493
|
-
[`b-checkbox-input__outline--${
|
|
494
|
-
[`b-checkbox-input__outline--${
|
|
495
|
-
[`b-checkbox-input__outline--${
|
|
512
|
+
[`b-checkbox-input__outline--${Z.UNCHECKED}`]: !e.checked && !e.indeterminate && !e.allSelected,
|
|
513
|
+
[`b-checkbox-input__outline--${Z.CHECKED}`]: (e.checked || e.allSelected) && !e.indeterminate,
|
|
514
|
+
[`b-checkbox-input__outline--${Z.INDETERMINATE}`]: e.indeterminate
|
|
496
515
|
}));
|
|
497
|
-
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon: Ve, MinusSmallIcon: ze };
|
|
516
|
+
return { __sfc: !0, props: e, conditionalClasses: l, outlineConditionalClasses: t, CheckmarkSmallIcon: Ve, MinusSmallIcon: ze, DoubleCheckmarkSmallIcon: Et };
|
|
498
517
|
}
|
|
499
518
|
});
|
|
500
|
-
var
|
|
519
|
+
var Lt = function() {
|
|
501
520
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
502
|
-
return l("div", { staticClass: "b-checkbox-input", class: t.conditionalClasses, attrs: { role: "presentation" } }, [e.indeterminate ? l(t.MinusSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e.checked ? l(t.CheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e._e(), l("div", { staticClass: "b-checkbox-input__outline", class: t.outlineConditionalClasses })], 1);
|
|
503
|
-
},
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
521
|
+
return l("div", { staticClass: "b-checkbox-input", class: t.conditionalClasses, attrs: { role: "presentation" } }, [e.indeterminate ? l(t.MinusSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e.allSelected ? l(t.DoubleCheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true", "data-testid": "decorative-checkbox-double-checkmark-icon" } }) : e.checked ? l(t.CheckmarkSmallIcon, { staticClass: "b-checkbox-input__icon", attrs: { "svg-title": "", "aria-hidden": "true" } }) : e._e(), l("div", { staticClass: "b-checkbox-input__outline", class: t.outlineConditionalClasses })], 1);
|
|
522
|
+
}, At = [], kt = /* @__PURE__ */ M(
|
|
523
|
+
It,
|
|
524
|
+
Lt,
|
|
525
|
+
At,
|
|
507
526
|
!1,
|
|
508
527
|
null,
|
|
509
|
-
"
|
|
528
|
+
"b87bbaf9"
|
|
510
529
|
);
|
|
511
|
-
const ne =
|
|
512
|
-
var
|
|
513
|
-
const
|
|
530
|
+
const ne = kt.exports;
|
|
531
|
+
var Ce = /* @__PURE__ */ ((s) => (s.DISABLED = "disabled", s.STATIC_CATEGORY = "static-category", s))(Ce || {}), z = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.UNSELECT_CATEGORY = "unselect-category", s.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", s))(z || {});
|
|
532
|
+
const Dt = {
|
|
514
533
|
"en-US": {
|
|
515
534
|
categoryClosed: "{category} closed",
|
|
516
535
|
categoryOpened: "{category} opened"
|
|
517
536
|
}
|
|
518
|
-
},
|
|
519
|
-
i18n: { messages:
|
|
537
|
+
}, Rt = G({
|
|
538
|
+
i18n: { messages: Dt },
|
|
520
539
|
name: "bento-listbox-multi-select-category",
|
|
521
540
|
components: {
|
|
522
541
|
BentoTypography: j,
|
|
523
|
-
BentoListboxOption:
|
|
524
|
-
ChevronDownIcon:
|
|
525
|
-
ChevronUpIcon:
|
|
526
|
-
|
|
542
|
+
BentoListboxOption: J,
|
|
543
|
+
ChevronDownIcon: Ke,
|
|
544
|
+
ChevronUpIcon: je,
|
|
545
|
+
DecorativeCheckbox: ne
|
|
527
546
|
},
|
|
528
547
|
props: {
|
|
529
548
|
/**
|
|
@@ -574,59 +593,59 @@ const Et = {
|
|
|
574
593
|
z.TOGGLE_CATEGORY_VISIBILITY
|
|
575
594
|
],
|
|
576
595
|
setup(s, { emit: e }) {
|
|
577
|
-
const l = S(!1), { t } = le(), n = be("category-group"),
|
|
596
|
+
const l = S(!1), { t } = le(), n = be("category-group"), a = be("category-name"), r = (E) => s.isOptionDisabled ? s.isOptionDisabled(E) : !1, f = i(
|
|
578
597
|
() => s.category.items.every((E) => r(E))
|
|
579
|
-
),
|
|
580
|
-
[`b-listbox-multi-select-category--${
|
|
581
|
-
})), T = (E,
|
|
582
|
-
E.preventDefault(), l.value =
|
|
598
|
+
), L = H(s, "staticCategories"), d = i(() => l.value || s.staticCategories), b = i(() => ({
|
|
599
|
+
[`b-listbox-multi-select-category--${Ce.DISABLED}`]: f.value
|
|
600
|
+
})), T = (E, A) => {
|
|
601
|
+
E.preventDefault(), l.value = A !== void 0 ? A : !l.value, e(z.TOGGLE_CATEGORY_VISIBILITY, s.category.value);
|
|
583
602
|
}, g = (E) => {
|
|
584
603
|
var Y;
|
|
585
|
-
const
|
|
586
|
-
return { isDisabled:
|
|
604
|
+
const A = r(E), N = ((Y = s.selectedItemsList) == null ? void 0 : Y.includes(E.value)) || !1;
|
|
605
|
+
return { isDisabled: A, isPreSelected: N };
|
|
587
606
|
}, p = i(
|
|
588
607
|
() => s.category.items.filter((E) => {
|
|
589
|
-
const { isDisabled:
|
|
590
|
-
return
|
|
608
|
+
const { isDisabled: A, isPreSelected: N } = g(E);
|
|
609
|
+
return A && N || !A;
|
|
591
610
|
})
|
|
592
|
-
),
|
|
611
|
+
), x = i(
|
|
593
612
|
() => {
|
|
594
613
|
var E;
|
|
595
614
|
return (E = p.value) == null ? void 0 : E.filter(
|
|
596
|
-
({ value:
|
|
597
|
-
var
|
|
598
|
-
return (
|
|
615
|
+
({ value: A }) => {
|
|
616
|
+
var N;
|
|
617
|
+
return (N = s.selectedItemsList) == null ? void 0 : N.includes(A);
|
|
599
618
|
}
|
|
600
619
|
);
|
|
601
620
|
}
|
|
602
|
-
),
|
|
621
|
+
), D = i(() => {
|
|
603
622
|
const E = l.value ? "categoryOpened" : "categoryClosed";
|
|
604
623
|
return t(E, { category: s.category.label });
|
|
605
624
|
}), B = () => {
|
|
606
625
|
e(z.SELECT_CATEGORY);
|
|
607
626
|
}, I = () => {
|
|
608
627
|
e(z.UNSELECT_CATEGORY);
|
|
609
|
-
}, { isAllSelected: O, isIndeterminate:
|
|
610
|
-
|
|
628
|
+
}, { isAllSelected: O, isIndeterminate: C, toggleSelectAll: m } = pe(
|
|
629
|
+
x,
|
|
611
630
|
p,
|
|
612
631
|
B,
|
|
613
632
|
I
|
|
614
|
-
), y = i(() =>
|
|
615
|
-
|
|
633
|
+
), y = i(() => C.value ? "mixed" : `${O.value}`), R = S(O.value), P = () => {
|
|
634
|
+
R.value = !R.value, m(R.value);
|
|
616
635
|
};
|
|
617
636
|
return X(O, () => {
|
|
618
|
-
|
|
637
|
+
R.value = O.value;
|
|
619
638
|
}), {
|
|
620
639
|
// Values
|
|
621
|
-
chevronTitle:
|
|
640
|
+
chevronTitle: D,
|
|
622
641
|
conditionalClass: b,
|
|
623
642
|
hasAllPropsDisabled: f,
|
|
624
643
|
isOpen: l,
|
|
625
644
|
isAllSelected: O,
|
|
626
|
-
isIndeterminate:
|
|
627
|
-
isStaticCategory:
|
|
645
|
+
isIndeterminate: C,
|
|
646
|
+
isStaticCategory: L,
|
|
628
647
|
categoryGroupId: n,
|
|
629
|
-
categoryNameId:
|
|
648
|
+
categoryNameId: a,
|
|
630
649
|
// Computed
|
|
631
650
|
showItemChildren: d,
|
|
632
651
|
ariaCheckedComputed: y,
|
|
@@ -637,7 +656,7 @@ const Et = {
|
|
|
637
656
|
};
|
|
638
657
|
}
|
|
639
658
|
});
|
|
640
|
-
var
|
|
659
|
+
var Bt = function() {
|
|
641
660
|
var e = this, l = e._self._c;
|
|
642
661
|
return e._self._setupProxy, l("div", [e.isStaticCategory ? l("div", { staticClass: "b-listbox-multi-select-category b-listbox-multi-select-category--static-category", attrs: { "aria-hidden": "true" } }, [l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { el: "span", variant: "caption" } }, [e._v(" " + e._s(e.category.label) + " ")])], 1)]) : l("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass, attrs: { tabindex: e.tabindex, "aria-selected": e.ariaCheckedComputed !== "false", "aria-checked": e.ariaCheckedComputed, "aria-disabled": e.hasAllPropsDisabled, "aria-expanded": `${e.isOpen}`, role: "treeitem", "aria-owns": e.categoryGroupId, "aria-labelledby": e.categoryNameId }, on: { click: e.handleSelectAll, "enter-pressed": e.handleSelectAll, "space-pressed": function(t) {
|
|
643
662
|
return t.preventDefault(), e.handleSelectAll.apply(null, arguments);
|
|
@@ -645,26 +664,26 @@ var It = function() {
|
|
|
645
664
|
return !t.type.indexOf("key") && e._k(t.keyCode, "arrow-left", void 0, t.key, void 0) ? null : e.toggleOpen(t, !1);
|
|
646
665
|
}, function(t) {
|
|
647
666
|
return !t.type.indexOf("key") && e._k(t.keyCode, "arrow-right", void 0, t.key, void 0) ? null : e.toggleOpen(t, !0);
|
|
648
|
-
}] } }, [l("
|
|
667
|
+
}] } }, [l("decorative-checkbox", { attrs: { indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, checked: e.isAllSelected } }), l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { id: e.categoryNameId, el: "span" } }, [e._v(" " + e._s(e.category.label) + " ")]), l("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "aria-hidden": "true", "data-testid": "toggle-listbox" }, on: { "!click": function(t) {
|
|
649
668
|
return t.stopPropagation(), e.toggleOpen.apply(null, arguments);
|
|
650
669
|
} } }, [e.isOpen ? l("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : l("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), l("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }], attrs: { id: e.categoryGroupId, role: "group", "aria-label": e.category.label } }, [e._t("default")], 2)], 1);
|
|
651
|
-
},
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
670
|
+
}, $t = [], Nt = /* @__PURE__ */ M(
|
|
671
|
+
Rt,
|
|
672
|
+
Bt,
|
|
673
|
+
$t,
|
|
655
674
|
!1,
|
|
656
675
|
null,
|
|
657
|
-
"
|
|
676
|
+
"00ccd708"
|
|
658
677
|
);
|
|
659
|
-
const
|
|
678
|
+
const Mt = Nt.exports;
|
|
660
679
|
var w = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", s.UNSELECT_CATEGORY = "unselect-category", s.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", s))(w || {});
|
|
661
|
-
const
|
|
680
|
+
const wt = G({
|
|
662
681
|
name: "listbox-multi-select-options",
|
|
663
682
|
components: {
|
|
664
|
-
BentoListboxOption:
|
|
683
|
+
BentoListboxOption: J,
|
|
665
684
|
BentoTypography: j,
|
|
666
|
-
ListboxMultiSelectCategory:
|
|
667
|
-
|
|
685
|
+
ListboxMultiSelectCategory: Mt,
|
|
686
|
+
DecorativeCheckbox: ne
|
|
668
687
|
},
|
|
669
688
|
inheritAttrs: !1,
|
|
670
689
|
props: {
|
|
@@ -745,9 +764,9 @@ const Rt = G({
|
|
|
745
764
|
}, t = (d) => !!d.items, n = (d) => {
|
|
746
765
|
const b = s.isMultiLevel && s.searching;
|
|
747
766
|
return d.description && (!s.isMultiLevel || b);
|
|
748
|
-
},
|
|
767
|
+
}, a = (d) => d.items ? !!d.items.find((b) => s.selectedItemsList.includes(b.value)) : s.selectedItemsList.includes(d.value), r = (d) => {
|
|
749
768
|
if (t(d)) {
|
|
750
|
-
const b =
|
|
769
|
+
const b = a(d) ? w.UNSELECT_CATEGORY : w.SELECT_CATEGORY;
|
|
751
770
|
e(b, d);
|
|
752
771
|
} else
|
|
753
772
|
l(d);
|
|
@@ -759,7 +778,7 @@ const Rt = G({
|
|
|
759
778
|
"b-listbox-multi-select-options__category-option": s.categoryItems
|
|
760
779
|
})),
|
|
761
780
|
// Methods
|
|
762
|
-
isOptionSelected:
|
|
781
|
+
isOptionSelected: a,
|
|
763
782
|
shouldShowDescription: n,
|
|
764
783
|
toggleCheckboxSelection: l,
|
|
765
784
|
toggleSearchOption: r,
|
|
@@ -770,7 +789,7 @@ const Rt = G({
|
|
|
770
789
|
};
|
|
771
790
|
}
|
|
772
791
|
});
|
|
773
|
-
var
|
|
792
|
+
var Gt = function() {
|
|
774
793
|
var e = this, l = e._self._c;
|
|
775
794
|
return e._self._setupProxy, l("div", e._l(e.items, function(t) {
|
|
776
795
|
return l("div", { key: `selected-${t.value}` }, [e.searching && e.isMultiLevel ? [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, tabindex: e.computedTabindex(t.value), "aria-selected": `${e.isOptionSelected(t)}`, "aria-checked": `${e.isOptionSelected(t)}`, "aria-disabled": e.isOptionDisabled ? e.isOptionDisabled(t) : null, role: e.$attrs.role }, on: { click: function(n) {
|
|
@@ -779,7 +798,7 @@ var Dt = function() {
|
|
|
779
798
|
return e.toggleSearchOption(t);
|
|
780
799
|
}, "space-pressed": function(n) {
|
|
781
800
|
return n.preventDefault(), e.toggleSearchOption(t);
|
|
782
|
-
} } }, [l("
|
|
801
|
+
} } }, [l("decorative-checkbox", { attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, checked: e.isOptionSelected(t) } }), e._t("default", function() {
|
|
783
802
|
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(t.label))]), e.shouldShowDescription(t) ? l("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(t.description) + " ")]) : e._e()], 1)];
|
|
784
803
|
}, null, t)], 2)] : [t.items ? [l("listbox-multi-select-category", { attrs: { category: t, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList, tabindex: e.computedTabindex(t.value) }, on: { "select-category": function(n) {
|
|
785
804
|
return e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, t);
|
|
@@ -793,31 +812,31 @@ var Dt = function() {
|
|
|
793
812
|
return e.toggleCheckboxSelection(t);
|
|
794
813
|
}, "space-pressed": function(n) {
|
|
795
814
|
return n.preventDefault(), e.toggleCheckboxSelection(t);
|
|
796
|
-
} } }, [l("
|
|
815
|
+
} } }, [l("decorative-checkbox", { attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(t) : null, checked: e.isOptionSelected(t) } }), e._t("default", function() {
|
|
797
816
|
return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(t.label))]), e.shouldShowDescription(t) ? l("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(t.description) + " ")]) : e._e()], 1)];
|
|
798
817
|
}, null, t)], 2)]], 2);
|
|
799
818
|
}), 0);
|
|
800
|
-
},
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
819
|
+
}, Pt = [], Ft = /* @__PURE__ */ M(
|
|
820
|
+
wt,
|
|
821
|
+
Gt,
|
|
822
|
+
Pt,
|
|
804
823
|
!1,
|
|
805
824
|
null,
|
|
806
|
-
"
|
|
825
|
+
"68986632"
|
|
807
826
|
);
|
|
808
|
-
const
|
|
827
|
+
const Yt = Ft.exports, Ut = (s) => {
|
|
809
828
|
const e = i(() => {
|
|
810
829
|
var t;
|
|
811
830
|
return !!((t = s.value) != null && t.find(({ items: n }) => !!n));
|
|
812
831
|
}), l = i(() => {
|
|
813
832
|
var t;
|
|
814
|
-
return e.value ? (t = s.value) == null ? void 0 : t.reduce((n,
|
|
833
|
+
return e.value ? (t = s.value) == null ? void 0 : t.reduce((n, a) => (a.items ? n.push(...a.items.flat()) : n.push(a), n), []) : s.value;
|
|
815
834
|
});
|
|
816
835
|
return {
|
|
817
836
|
isMultiLevelSelect: e,
|
|
818
837
|
flattenedItemsList: l
|
|
819
838
|
};
|
|
820
|
-
},
|
|
839
|
+
}, zt = {
|
|
821
840
|
"en-US": {
|
|
822
841
|
allSelected: "All selected ({total})",
|
|
823
842
|
numberOfTotalSelected: "{number} of {total} selected",
|
|
@@ -836,8 +855,8 @@ const $t = Nt.exports, Mt = (s) => {
|
|
|
836
855
|
numbersSelected: "{number} selecionados",
|
|
837
856
|
selectAll: "Selecionar todos ({total})"
|
|
838
857
|
}
|
|
839
|
-
},
|
|
840
|
-
...
|
|
858
|
+
}, Vt = { i18n: { messages: zt } }, Wt = /* @__PURE__ */ G({
|
|
859
|
+
...Vt,
|
|
841
860
|
__name: "listbox-multi-select",
|
|
842
861
|
props: {
|
|
843
862
|
hasMoreItems: { type: Boolean, default: !1 },
|
|
@@ -850,120 +869,120 @@ const $t = Nt.exports, Mt = (s) => {
|
|
|
850
869
|
},
|
|
851
870
|
emits: ["select"],
|
|
852
871
|
setup(s, { expose: e, emit: l }) {
|
|
853
|
-
const t = s, { t: n, n:
|
|
872
|
+
const t = s, { t: n, n: a } = le(), r = Ge(), f = Pe(), L = i(
|
|
854
873
|
() => {
|
|
855
|
-
var
|
|
874
|
+
var o, u, v, h;
|
|
856
875
|
return {
|
|
857
|
-
"aria-label": (
|
|
876
|
+
"aria-label": (o = f["aria-label"]) == null ? void 0 : o.toString(),
|
|
858
877
|
"aria-busy": (u = f["aria-busy"]) == null ? void 0 : u.toString(),
|
|
859
878
|
"aria-atomic": (v = f["aria-atomic"]) == null ? void 0 : v.toString(),
|
|
860
879
|
"aria-live": (h = f["aria-live"]) == null ? void 0 : h.toString(),
|
|
861
880
|
"aria-multiselectable": !0
|
|
862
881
|
};
|
|
863
882
|
}
|
|
864
|
-
), d = S(null), b = S(null), T = S(null), g = S(null), p = i(() => t.selectedValues.map(({ value:
|
|
883
|
+
), d = S(null), b = S(null), T = S(null), g = S(null), p = i(() => t.selectedValues.map(({ value: o }) => o)), { isMultiLevelSelect: x, flattenedItemsList: D } = Ut(H(t, "items")), B = i(() => x.value && !t.staticCategories), I = i(() => B.value ? "tree" : "listbox"), O = i(() => B.value ? "treeitem" : "option"), C = (o) => {
|
|
865
884
|
var h;
|
|
866
|
-
const u = t.isOptionDisabled(
|
|
885
|
+
const u = t.isOptionDisabled(o), v = ((h = p.value) == null ? void 0 : h.includes(o.value)) || !1;
|
|
867
886
|
return { isDisabled: u, isPreSelected: v };
|
|
868
887
|
}, m = i(() => {
|
|
869
|
-
if (t.searching &&
|
|
888
|
+
if (t.searching && x)
|
|
870
889
|
return t.items;
|
|
871
|
-
const
|
|
872
|
-
const { isDisabled: v, isPreSelected: h } =
|
|
890
|
+
const o = D.value.filter((u) => {
|
|
891
|
+
const { isDisabled: v, isPreSelected: h } = C(u);
|
|
873
892
|
return v && h || !v;
|
|
874
893
|
});
|
|
875
894
|
return t.selectedValues.forEach((u) => {
|
|
876
|
-
|
|
877
|
-
}),
|
|
895
|
+
o.find((v) => v.value === u.value) || o.push(u);
|
|
896
|
+
}), o;
|
|
878
897
|
}), y = i(
|
|
879
898
|
() => {
|
|
880
|
-
var
|
|
881
|
-
return (
|
|
899
|
+
var o;
|
|
900
|
+
return (o = m.value) == null ? void 0 : o.filter((u) => {
|
|
882
901
|
var v;
|
|
883
|
-
return u.items &&
|
|
902
|
+
return u.items && x.value && t.searching ? u.items.filter(
|
|
884
903
|
(_) => (t.selectedValues ?? []).includes(_.value)
|
|
885
904
|
).length === u.items.length : (v = p.value) == null ? void 0 : v.includes(u.value);
|
|
886
905
|
});
|
|
887
906
|
}
|
|
888
|
-
),
|
|
907
|
+
), R = () => x.value && !t.searching ? D.value.length : t.items.length, P = i(() => {
|
|
889
908
|
var h;
|
|
890
|
-
const
|
|
891
|
-
return v === 0 ? n("selectAll", { total: o
|
|
892
|
-
}), E = (
|
|
909
|
+
const o = m.value.length, u = R(), v = ((h = y.value) == null ? void 0 : h.length) || 0;
|
|
910
|
+
return v === 0 ? n("selectAll", { total: a(o) }) : v === u ? n("allSelected", { total: a(u) }) : v <= u ? n("numberOfTotalSelected", { number: a(v), total: a(u) }) : n("numbersSelected", { number: a(v) });
|
|
911
|
+
}), E = (o) => {
|
|
893
912
|
const u = (h) => {
|
|
894
|
-
const { isDisabled: _, isPreSelected: F } =
|
|
913
|
+
const { isDisabled: _, isPreSelected: F } = C(h);
|
|
895
914
|
return _ && F || !_;
|
|
896
|
-
}, v =
|
|
915
|
+
}, v = o.filter(u).filter((h) => !p.value.includes(h.value));
|
|
897
916
|
l("select", [...t.selectedValues, ...v]);
|
|
898
|
-
},
|
|
917
|
+
}, A = (o) => {
|
|
899
918
|
const u = (_) => {
|
|
900
|
-
const { isDisabled: F, isPreSelected: Ne } =
|
|
919
|
+
const { isDisabled: F, isPreSelected: Ne } = C(_);
|
|
901
920
|
return !(F && Ne);
|
|
902
|
-
}, v =
|
|
921
|
+
}, v = o.filter(u).map(({ value: _ }) => _), h = t.selectedValues.filter((_) => !(v != null && v.includes(_.value)));
|
|
903
922
|
l("select", h);
|
|
904
|
-
},
|
|
905
|
-
E(
|
|
923
|
+
}, N = () => {
|
|
924
|
+
E(D.value);
|
|
906
925
|
}, Y = () => {
|
|
907
|
-
|
|
908
|
-
}, { isAllSelected: U, isIndeterminate: k, toggleSelectAll: V } =
|
|
926
|
+
A(D.value);
|
|
927
|
+
}, { isAllSelected: U, isIndeterminate: k, toggleSelectAll: V } = pe(
|
|
909
928
|
y,
|
|
910
929
|
m,
|
|
911
|
-
|
|
930
|
+
N,
|
|
912
931
|
Y
|
|
913
|
-
), xe = i(() => k.value ? "mixed" : `${U.value}`), q = S(U.value),
|
|
932
|
+
), xe = i(() => k.value ? "mixed" : `${U.value}`), q = S(U.value), Se = () => {
|
|
914
933
|
q.value = !q.value, V(q.value);
|
|
915
934
|
};
|
|
916
935
|
X(U, () => {
|
|
917
936
|
q.value = U.value;
|
|
918
937
|
});
|
|
919
|
-
const
|
|
920
|
-
E(
|
|
921
|
-
},
|
|
922
|
-
|
|
923
|
-
},
|
|
938
|
+
const Oe = (o) => {
|
|
939
|
+
E(o.items);
|
|
940
|
+
}, Ee = (o) => {
|
|
941
|
+
A(o.items);
|
|
942
|
+
}, Te = (o, u) => {
|
|
924
943
|
let v = !1;
|
|
925
944
|
const h = t.selectedValues.filter(({ value: _ }) => u.value === _ ? (v = !0, !1) : !0);
|
|
926
|
-
v || h.push(u), l(
|
|
927
|
-
},
|
|
928
|
-
if (!
|
|
945
|
+
v || h.push(u), l(o, h);
|
|
946
|
+
}, Ie = i(() => {
|
|
947
|
+
if (!x.value)
|
|
929
948
|
return t.selectedValues;
|
|
930
|
-
const
|
|
949
|
+
const o = (_) => p.value.includes(_.value), u = (_) => !t.staticCategories && _.every((F) => o(F));
|
|
931
950
|
return t.items.flatMap(
|
|
932
951
|
(_) => _.items && !u(_.items) ? _.items : _
|
|
933
|
-
).filter((_) => _.items ? !0 :
|
|
934
|
-
}),
|
|
952
|
+
).filter((_) => _.items ? !0 : o(_));
|
|
953
|
+
}), Le = i(() => {
|
|
935
954
|
var v, h, _, F;
|
|
936
|
-
const
|
|
937
|
-
return
|
|
938
|
-
}), Ae = i(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), W = S([]), { visibleDomOptions: Q, updateVisibleDomOptions:
|
|
955
|
+
const o = ["automatic", "button"].includes(t.lazyLoadType), u = ((v = t.selectedValues) == null ? void 0 : v.length) > 0 && ((h = y.value) == null ? void 0 : h.length) !== ((_ = D.value) == null ? void 0 : _.length);
|
|
956
|
+
return o && t.hasMoreItems ? !!((F = t.selectedValues) != null && F.length) : u;
|
|
957
|
+
}), Ae = i(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), W = S([]), { visibleDomOptions: Q, updateVisibleDomOptions: ae } = he(
|
|
939
958
|
d,
|
|
940
959
|
H(t, "items"),
|
|
941
960
|
O
|
|
942
|
-
),
|
|
943
|
-
W.value.includes(
|
|
944
|
-
|
|
961
|
+
), ke = (o) => {
|
|
962
|
+
W.value.includes(o) ? W.value = W.value.filter((u) => u !== o) : W.value.push(o), ge(() => {
|
|
963
|
+
ae();
|
|
945
964
|
});
|
|
946
|
-
}, ie = (
|
|
965
|
+
}, ie = (o) => {
|
|
947
966
|
var u;
|
|
948
|
-
(u = Q.value[
|
|
967
|
+
(u = Q.value[o]) == null || u.focus();
|
|
949
968
|
}, {
|
|
950
|
-
moveToNextElement:
|
|
969
|
+
moveToNextElement: oe,
|
|
951
970
|
moveToPreviousElement: ce,
|
|
952
971
|
moveToFirstElement: re,
|
|
953
972
|
moveToLastElement: ue,
|
|
954
973
|
preventDefault: ee,
|
|
955
|
-
focusedIndex:
|
|
974
|
+
focusedIndex: De,
|
|
956
975
|
setListboxFocusedIndex: de
|
|
957
|
-
} =
|
|
976
|
+
} = ye(
|
|
958
977
|
{
|
|
959
978
|
items: Q
|
|
960
979
|
},
|
|
961
980
|
ie
|
|
962
981
|
), Re = {
|
|
963
|
-
[
|
|
964
|
-
[
|
|
965
|
-
[
|
|
966
|
-
[
|
|
982
|
+
[$.ARROW_UP]: (o) => ce(o),
|
|
983
|
+
[$.ARROW_DOWN]: (o) => oe(o),
|
|
984
|
+
[$.HOME]: re,
|
|
985
|
+
[$.END]: ue
|
|
967
986
|
};
|
|
968
987
|
e({
|
|
969
988
|
/**
|
|
@@ -972,29 +991,29 @@ const $t = Nt.exports, Mt = (s) => {
|
|
|
972
991
|
*/
|
|
973
992
|
setListboxFocusedIndex: de
|
|
974
993
|
});
|
|
975
|
-
const
|
|
976
|
-
[
|
|
977
|
-
[
|
|
978
|
-
},
|
|
979
|
-
let
|
|
994
|
+
const Be = {
|
|
995
|
+
[$.ARROW_UP]: ee,
|
|
996
|
+
[$.ARROW_DOWN]: ee
|
|
997
|
+
}, $e = i(() => {
|
|
998
|
+
let o = 1;
|
|
980
999
|
const u = {};
|
|
981
1000
|
return t.items.forEach((v) => {
|
|
982
1001
|
let h = W.value.includes(v.value);
|
|
983
|
-
v.items ? (t.staticCategories ? h = !0 : u[v.value] =
|
|
1002
|
+
v.items ? (t.staticCategories ? h = !0 : u[v.value] = o++, h && v.items.forEach((_) => u[_.value] = o++)) : u[v.value] = o++;
|
|
984
1003
|
}), u;
|
|
985
1004
|
});
|
|
986
|
-
return { __sfc: !0, props: t, emit: l, t: n, n:
|
|
1005
|
+
return { __sfc: !0, props: t, emit: l, t: n, n: a, slots: r, attrs: f, ariaAttributes: L, listboxRef: d, selectAllListboxItemsRef: b, selectedListboxItemsRef: T, listboxItemsRef: g, selectedItemsList: p, isMultiLevelSelect: x, flattenedItemsList: D, isTreePattern: B, computedRole: I, computedOptionRole: O, optionStates: C, enabledItems: m, visibleSelectedList: y, calculateTotalItems: R, selectAllCheckboxText: P, selectAll: E, unselectAll: A, selectAllItems: N, unselectAllItems: Y, isAllSelected: U, isIndeterminate: k, toggleSelectAll: V, ariaCheckedComputed: xe, isSelectAllOn: q, handleSelectAll: Se, selectAllCategory: Oe, unselectAllCategory: Ee, toggleCheckboxSelection: Te, selectedOptions: Ie, showSelectedItems: Le, showSelectAllCheckbox: Ae, expandedCategories: W, visibleDomOptions: Q, updateVisibleDomOptions: ae, toggleCategoryVisibility: ke, focusItem: ie, moveToNextElement: oe, moveToPreviousElement: ce, moveToFirstElement: re, moveToLastElement: ue, preventDefault: ee, focusedIndex: De, setListboxFocusedIndex: de, listboxListeners: Re, chipsSectionListeners: Be, computedItemsIndex: $e, DecorativeCheckbox: ne, BentoTypography: j, BentoChip: We, BentoListboxOption: J, ListboxMultiSelectOptions: Yt, vBentoKeyboardNavigationDirective: se, BentoListboxEvent: c };
|
|
987
1006
|
}
|
|
988
1007
|
});
|
|
989
|
-
var
|
|
1008
|
+
var Kt = function() {
|
|
990
1009
|
var e = this, l = e._self._c, t = e._self._setupProxy;
|
|
991
1010
|
return l("div", { ref: "listboxRef", staticClass: "b-listbox-multi-select" }, [t.showSelectedItems ? l("div", [l("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, t.chipsSectionListeners), e._l(t.selectedOptions, function(n) {
|
|
992
|
-
return l("li", { key: n.value }, [l(t.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(n), label: n.label, condensed: "" }, on: { click: function(
|
|
1011
|
+
return l("li", { key: n.value }, [l(t.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(n), label: n.label, condensed: "" }, on: { click: function(a) {
|
|
993
1012
|
n.items ? t.unselectAllCategory(n) : t.toggleCheckboxSelection("select", n);
|
|
994
1013
|
} } })], 1);
|
|
995
1014
|
}), 0), l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } })]) : e._e(), l("div", e._g(e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], attrs: { role: t.computedRole } }, "div", t.ariaAttributes, !1), t.listboxListeners), [t.showSelectAllCheckbox ? l(t.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option", attrs: { tabindex: t.focusedIndex === 0 ? 0 : -1, "aria-selected": t.ariaCheckedComputed !== "false", "aria-checked": t.ariaCheckedComputed, role: t.computedOptionRole }, on: { click: t.handleSelectAll, "enter-pressed": t.handleSelectAll, "space-pressed": function(n) {
|
|
996
1015
|
return n.preventDefault(), t.handleSelectAll.apply(null, arguments);
|
|
997
|
-
} } }, [l(t.
|
|
1016
|
+
} } }, [l(t.DecorativeCheckbox, { attrs: { checked: t.isAllSelected, indeterminate: t.isIndeterminate } }), l(t.BentoTypography, { attrs: { el: "span" } }, [e._v(" " + e._s(t.selectAllCheckboxText) + " ")])], 1) : e._e(), t.showSelectAllCheckbox ? l("hr", { staticClass: "b-listbox-multi-select__divider", attrs: { "aria-hidden": "true" } }) : e._e(), l(t.ListboxMultiSelectOptions, { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": t.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": t.selectedItemsList, "focused-index": t.focusedIndex, "items-index": t.computedItemsIndex, role: t.computedOptionRole }, on: { "toggle-checkbox-selection": function(n) {
|
|
998
1017
|
return t.toggleCheckboxSelection("select", n);
|
|
999
1018
|
}, "select-category": t.selectAllCategory, "unselect-category": t.unselectAllCategory, "toggle-category-visibility": t.toggleCategoryVisibility, "space-pressed": function(n) {
|
|
1000
1019
|
return t.toggleCheckboxSelection(t.BentoListboxEvent.SPACE, n);
|
|
@@ -1002,20 +1021,20 @@ var Ft = function() {
|
|
|
1002
1021
|
return t.toggleCheckboxSelection(t.BentoListboxEvent.TAB, n);
|
|
1003
1022
|
}, "enter-pressed": function(n) {
|
|
1004
1023
|
return t.toggleCheckboxSelection(t.BentoListboxEvent.ENTER, n);
|
|
1005
|
-
} }, scopedSlots: e._u([e._l(t.slots, function(n,
|
|
1006
|
-
return { key:
|
|
1007
|
-
return [e._t(
|
|
1024
|
+
} }, scopedSlots: e._u([e._l(t.slots, function(n, a) {
|
|
1025
|
+
return { key: a, fn: function(r) {
|
|
1026
|
+
return [e._t(a, null, null, r)];
|
|
1008
1027
|
} };
|
|
1009
1028
|
})], null, !0) })], 1)]);
|
|
1010
|
-
},
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1029
|
+
}, jt = [], qt = /* @__PURE__ */ M(
|
|
1030
|
+
Wt,
|
|
1031
|
+
Kt,
|
|
1032
|
+
jt,
|
|
1014
1033
|
!1,
|
|
1015
1034
|
null,
|
|
1016
|
-
"
|
|
1035
|
+
"efcc8ad5"
|
|
1017
1036
|
);
|
|
1018
|
-
const
|
|
1037
|
+
const _e = qt.exports, Ht = {
|
|
1019
1038
|
"en-US": {
|
|
1020
1039
|
loading: "Loading",
|
|
1021
1040
|
showMore: "Show more"
|
|
@@ -1028,18 +1047,18 @@ const me = Ut.exports, zt = {
|
|
|
1028
1047
|
loading: "Carregando",
|
|
1029
1048
|
showMore: "Mostrar mais"
|
|
1030
1049
|
}
|
|
1031
|
-
},
|
|
1050
|
+
}, Xt = 36, Zt = G({
|
|
1032
1051
|
name: "bento-listbox",
|
|
1033
1052
|
components: {
|
|
1034
|
-
BentoEmptyState:
|
|
1035
|
-
BentoListboxSingleSelect:
|
|
1036
|
-
BentoListboxMultiSelect:
|
|
1053
|
+
BentoEmptyState: Ye,
|
|
1054
|
+
BentoListboxSingleSelect: ht,
|
|
1055
|
+
BentoListboxMultiSelect: _e,
|
|
1037
1056
|
BentoTypography: j,
|
|
1038
|
-
BentoLoadingIndicator:
|
|
1039
|
-
BentoLoadingButton:
|
|
1057
|
+
BentoLoadingIndicator: Fe,
|
|
1058
|
+
BentoLoadingButton: qe
|
|
1040
1059
|
},
|
|
1041
1060
|
directives: { BentoKeyboardNavigationDirective: se },
|
|
1042
|
-
i18n: { messages:
|
|
1061
|
+
i18n: { messages: Ht },
|
|
1043
1062
|
props: {
|
|
1044
1063
|
/**
|
|
1045
1064
|
* Defines a string value that labels an interactive element.
|
|
@@ -1120,7 +1139,7 @@ const me = Ut.exports, zt = {
|
|
|
1120
1139
|
*
|
|
1121
1140
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
1122
1141
|
*/
|
|
1123
|
-
searching:
|
|
1142
|
+
searching: _e.props.searching,
|
|
1124
1143
|
/**
|
|
1125
1144
|
* The `input` value.
|
|
1126
1145
|
* Providing an empty string or empty array will select no options.
|
|
@@ -1148,30 +1167,30 @@ const me = Ut.exports, zt = {
|
|
|
1148
1167
|
c.TAB
|
|
1149
1168
|
],
|
|
1150
1169
|
setup(s, { emit: e, slots: l }) {
|
|
1151
|
-
const t = S([]), n = H(s, "items"), { t:
|
|
1170
|
+
const t = S([]), n = H(s, "items"), { t: a } = le(), r = i(() => s.lazyLoadType !== K.AUTOMATIC), f = i(() => s.lazyLoadType === K.AUTOMATIC), L = () => {
|
|
1152
1171
|
var k;
|
|
1153
|
-
return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((k = s == null ? void 0 : s.virtualScroll) != null && k.itemHeight) ? s.virtualScroll.itemHeight :
|
|
1172
|
+
return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((k = s == null ? void 0 : s.virtualScroll) != null && k.itemHeight) ? s.virtualScroll.itemHeight : Xt;
|
|
1154
1173
|
}, {
|
|
1155
1174
|
containerRef: d,
|
|
1156
1175
|
containerProps: b,
|
|
1157
1176
|
onScroll: T,
|
|
1158
1177
|
list: g,
|
|
1159
1178
|
wrapperProps: p
|
|
1160
|
-
} =
|
|
1161
|
-
itemHeight:
|
|
1179
|
+
} = Xe(n, {
|
|
1180
|
+
itemHeight: L(),
|
|
1162
1181
|
// Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
|
|
1163
1182
|
disabled: (s == null ? void 0 : s.multiple) || (s == null ? void 0 : s.virtualScroll) === !1 || (s == null ? void 0 : s.lazyLoadType) !== "none"
|
|
1164
|
-
}),
|
|
1183
|
+
}), x = i(
|
|
1165
1184
|
() => s.componentLoading !== void 0 || r.value ? "true" : void 0
|
|
1166
|
-
),
|
|
1185
|
+
), D = i(
|
|
1167
1186
|
() => r.value && s.loading || s.componentLoading ? "true" : "false"
|
|
1168
1187
|
), B = i(
|
|
1169
1188
|
() => r.value || s.componentLoading !== void 0 ? "polite" : void 0
|
|
1170
1189
|
), I = i(
|
|
1171
1190
|
() => ({
|
|
1172
1191
|
"aria-label": s.ariaLabel,
|
|
1173
|
-
"aria-busy":
|
|
1174
|
-
"aria-atomic":
|
|
1192
|
+
"aria-busy": D.value,
|
|
1193
|
+
"aria-atomic": x.value,
|
|
1175
1194
|
"aria-live": B.value
|
|
1176
1195
|
})
|
|
1177
1196
|
), O = i(
|
|
@@ -1179,33 +1198,33 @@ const me = Ut.exports, zt = {
|
|
|
1179
1198
|
...I.value,
|
|
1180
1199
|
role: "alert"
|
|
1181
1200
|
} : {}
|
|
1182
|
-
),
|
|
1201
|
+
), C = (k) => (V) => {
|
|
1183
1202
|
e(k, V);
|
|
1184
1203
|
}, m = () => {
|
|
1185
1204
|
e(c.SHOW_MORE);
|
|
1186
|
-
}, y =
|
|
1205
|
+
}, y = Ue(() => {
|
|
1187
1206
|
const k = d.value;
|
|
1188
1207
|
if (!k)
|
|
1189
1208
|
return;
|
|
1190
1209
|
const V = Math.round(k.scrollTop) + k.clientHeight >= k.scrollHeight;
|
|
1191
1210
|
s.hasMoreItems && V && !s.loading && m();
|
|
1192
|
-
}),
|
|
1211
|
+
}), R = () => {
|
|
1193
1212
|
f.value ? y() : T();
|
|
1194
1213
|
}, P = i(() => {
|
|
1195
1214
|
var k;
|
|
1196
1215
|
return ((k = s.items) == null ? void 0 : k.length) === 0;
|
|
1197
1216
|
}), E = i(
|
|
1198
1217
|
() => s.lazyLoadType === K.BUTTON && s.hasMoreItems
|
|
1199
|
-
),
|
|
1218
|
+
), A = i(
|
|
1200
1219
|
() => s.loading ? fe.LOADING : fe.START
|
|
1201
|
-
),
|
|
1220
|
+
), N = i(() => s.loading ? a("loading") : a("showMore")), Y = i(() => ({
|
|
1202
1221
|
...s.emptyState,
|
|
1203
1222
|
variant: "condensed"
|
|
1204
1223
|
})), U = {
|
|
1205
|
-
[c.SELECT]:
|
|
1206
|
-
[c.SPACE]:
|
|
1207
|
-
[c.TAB]:
|
|
1208
|
-
[c.ENTER]:
|
|
1224
|
+
[c.SELECT]: C(c.SELECT),
|
|
1225
|
+
[c.SPACE]: C(c.SPACE),
|
|
1226
|
+
[c.TAB]: C(c.TAB),
|
|
1227
|
+
[c.ENTER]: C(c.ENTER)
|
|
1209
1228
|
};
|
|
1210
1229
|
return {
|
|
1211
1230
|
// Refs
|
|
@@ -1218,46 +1237,46 @@ const me = Ut.exports, zt = {
|
|
|
1218
1237
|
containerProps: b,
|
|
1219
1238
|
isSearchResultEmpty: P,
|
|
1220
1239
|
limitedEmptyStateProps: Y,
|
|
1221
|
-
loadingButtonState:
|
|
1240
|
+
loadingButtonState: A,
|
|
1222
1241
|
slots: l,
|
|
1223
1242
|
shouldDisplayShowMoreButton: E,
|
|
1224
|
-
showMoreButtonText:
|
|
1243
|
+
showMoreButtonText: N,
|
|
1225
1244
|
virtualisedItems: g,
|
|
1226
1245
|
wrapperProps: p,
|
|
1227
1246
|
// Enums
|
|
1228
|
-
BentoKeyboardNavigationKeyDownEvent:
|
|
1247
|
+
BentoKeyboardNavigationKeyDownEvent: $,
|
|
1229
1248
|
BentoListboxEvent: c,
|
|
1230
1249
|
// Methods
|
|
1231
|
-
onListboxContainerScroll:
|
|
1232
|
-
onOptionSelected:
|
|
1250
|
+
onListboxContainerScroll: R,
|
|
1251
|
+
onOptionSelected: C,
|
|
1233
1252
|
emitShowMore: m,
|
|
1234
1253
|
listboxListeners: U
|
|
1235
1254
|
};
|
|
1236
1255
|
}
|
|
1237
1256
|
});
|
|
1238
|
-
var
|
|
1257
|
+
var Jt = function() {
|
|
1239
1258
|
var t;
|
|
1240
1259
|
var e = this, l = e._self._c;
|
|
1241
|
-
return e._self._setupProxy, l("div", e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (t = e.containerProps) == null ? void 0 : t.style, attrs: { id: e.id, tabindex: "-1", "data-testid": "listbox-container" }, on: { scroll: e.onListboxContainerScroll } }, "div", e.listboxContainerAttributes, !1), [l("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? l("div", { staticClass: "b-listbox__loading-filtered-items" }, [l("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? l("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [l("bento-listbox-multi-select", e._g(e._b({ ref: "listboxItemRef", attrs: { "has-more-items": e.hasMoreItems, items: e.items, "lazy-load-type": e.lazyLoadType, "static-categories": e.staticCategories, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(n,
|
|
1242
|
-
return { key:
|
|
1243
|
-
return [e._t(
|
|
1260
|
+
return e._self._setupProxy, l("div", e._b({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (t = e.containerProps) == null ? void 0 : t.style, attrs: { id: e.id, tabindex: "-1", "data-testid": "listbox-container" }, on: { scroll: e.onListboxContainerScroll } }, "div", e.listboxContainerAttributes, !1), [l("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? l("div", { staticClass: "b-listbox__loading-filtered-items" }, [l("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? l("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : l("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [l("bento-listbox-multi-select", e._g(e._b({ ref: "listboxItemRef", attrs: { "has-more-items": e.hasMoreItems, items: e.items, "lazy-load-type": e.lazyLoadType, "static-categories": e.staticCategories, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(n, a) {
|
|
1261
|
+
return { key: a, fn: function(r) {
|
|
1262
|
+
return [e._t(a, null, null, r)];
|
|
1244
1263
|
} };
|
|
1245
|
-
})], null, !0) }, "bento-listbox-multi-select", e.ariaAttributes, !1), e.listboxListeners))] : [l("bento-listbox-single-select", e._g(e._b({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(n,
|
|
1246
|
-
return { key:
|
|
1247
|
-
return [e._t(
|
|
1264
|
+
})], null, !0) }, "bento-listbox-multi-select", e.ariaAttributes, !1), e.listboxListeners))] : [l("bento-listbox-single-select", e._g(e._b({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(n, a) {
|
|
1265
|
+
return { key: a, fn: function(r) {
|
|
1266
|
+
return [e._t(a, null, null, r)];
|
|
1248
1267
|
} };
|
|
1249
1268
|
})], null, !0) }, "bento-listbox-single-select", e.ariaAttributes, !1), e.listboxListeners))], e.shouldDisplayShowMoreButton ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(n) {
|
|
1250
1269
|
return e.emitShowMore.apply(null, arguments);
|
|
1251
1270
|
} } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-indicator")], 1) : e._e()]], 2)]);
|
|
1252
|
-
},
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1271
|
+
}, Qt = [], es = /* @__PURE__ */ M(
|
|
1272
|
+
Zt,
|
|
1273
|
+
Jt,
|
|
1274
|
+
Qt,
|
|
1256
1275
|
!1,
|
|
1257
1276
|
null,
|
|
1258
1277
|
"35cb3605"
|
|
1259
1278
|
);
|
|
1260
|
-
const
|
|
1279
|
+
const hs = es.exports, te = (s, e) => {
|
|
1261
1280
|
for (const l of s) {
|
|
1262
1281
|
if (l.value === e)
|
|
1263
1282
|
return l;
|
|
@@ -1268,15 +1287,15 @@ const vs = qt.exports, te = (s, e) => {
|
|
|
1268
1287
|
}
|
|
1269
1288
|
}
|
|
1270
1289
|
return null;
|
|
1271
|
-
},
|
|
1272
|
-
const n = S([]),
|
|
1273
|
-
l.value ?
|
|
1290
|
+
}, ts = (s) => typeof s == "object" && s !== null && "value" in s && "label" in s, Cs = (s, e, l, t) => {
|
|
1291
|
+
const n = S([]), a = S(), r = (b) => {
|
|
1292
|
+
l.value ? a.value = b.map(({ value: T }) => T) : a.value = b.length > 0 ? b[0].value : null;
|
|
1274
1293
|
}, f = (b) => {
|
|
1275
|
-
l.value ?
|
|
1276
|
-
},
|
|
1294
|
+
l.value ? a.value = b.map(({ value: T, label: g }) => ({ value: T, label: g })) : a.value = b.length > 0 ? { value: b[0].value, label: b[0].label } : null;
|
|
1295
|
+
}, L = (b) => {
|
|
1277
1296
|
n.value = b, t != null && t.value ? f(b) : r(b);
|
|
1278
1297
|
}, d = () => {
|
|
1279
|
-
n.value = [],
|
|
1298
|
+
n.value = [], a.value = null;
|
|
1280
1299
|
};
|
|
1281
1300
|
return X(
|
|
1282
1301
|
() => e.value,
|
|
@@ -1288,11 +1307,11 @@ const vs = qt.exports, te = (s, e) => {
|
|
|
1288
1307
|
const b = !Array.isArray(e.value), T = [...n.value];
|
|
1289
1308
|
d();
|
|
1290
1309
|
const g = (p) => {
|
|
1291
|
-
if (
|
|
1310
|
+
if (ts(p))
|
|
1292
1311
|
n.value.push(p);
|
|
1293
1312
|
else {
|
|
1294
|
-
let
|
|
1295
|
-
|
|
1313
|
+
let x = te(s.value, p);
|
|
1314
|
+
x || (x = te(T, p)), x || (x = { value: p, label: p.toString() }), n.value.push(x);
|
|
1296
1315
|
}
|
|
1297
1316
|
};
|
|
1298
1317
|
if (b) {
|
|
@@ -1306,18 +1325,19 @@ const vs = qt.exports, te = (s, e) => {
|
|
|
1306
1325
|
), {
|
|
1307
1326
|
// Values
|
|
1308
1327
|
cachedSelectedListboxOptions: n,
|
|
1309
|
-
cachedListboxSelectedValues:
|
|
1328
|
+
cachedListboxSelectedValues: a,
|
|
1310
1329
|
// Methods
|
|
1311
1330
|
resetCache: d,
|
|
1312
|
-
setCachedValues:
|
|
1331
|
+
setCachedValues: L
|
|
1313
1332
|
};
|
|
1314
1333
|
};
|
|
1315
1334
|
export {
|
|
1316
1335
|
K as B,
|
|
1336
|
+
ne as D,
|
|
1317
1337
|
c as a,
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1338
|
+
hs as b,
|
|
1339
|
+
Cs as c,
|
|
1340
|
+
he as d,
|
|
1341
|
+
Ut as u
|
|
1322
1342
|
};
|
|
1323
|
-
//# sourceMappingURL=use-cached-selected-values.
|
|
1343
|
+
//# sourceMappingURL=use-cached-selected-values.BZd3CTeP.js.map
|