@shtabapp/ui-kit 1.79.0 → 1.80.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/CHANGELOG.md +14 -0
- package/dist/{SAvatar-hWbsODUa.js → SAvatar-6uaisUHm.js} +23 -21
- package/dist/{SAvatar-ClmtSIFg.cjs → SAvatar-BQNqFdkk.cjs} +1 -1
- package/dist/{SAvatarGroup-By8oMNTe.cjs → SAvatarGroup-D27squmU.cjs} +1 -1
- package/dist/{SAvatarGroup-CSSCQKdH.js → SAvatarGroup-DnVhY7I1.js} +1 -1
- package/dist/SBadge-Dn87LB9z.cjs +1 -0
- package/dist/{SBadge-BDxQJh6c.js → SBadge-Du9iIiXS.js} +4 -2
- package/dist/{SButton-BxsPvcET.cjs → SButton-B3o80WMR.cjs} +1 -1
- package/dist/{SButton-B21hubD2.js → SButton-D-dmK8Cm.js} +1 -1
- package/dist/{SChip-suCSzJ9O.js → SChip-C6Z1VRf9.js} +1 -1
- package/dist/{SChip-no4cGQNB.cjs → SChip-Cr6wNKd7.cjs} +1 -1
- package/dist/{SColorPicker-DHjY2NVd.cjs → SColorPicker--sBL2SBq.cjs} +1 -1
- package/dist/{SColorPicker-C5pA54Q3.js → SColorPicker-D2072gdX.js} +3 -3
- package/dist/SDropdown-B_nsm3Jf.cjs +1 -0
- package/dist/SDropdown-aWjZrahp.js +541 -0
- package/dist/{SInput-DRV4XHWh.js → SInput-D2pCcaym.js} +1 -1
- package/dist/{SInput-Doale-L0.cjs → SInput-DG9R9tJC.cjs} +1 -1
- package/dist/{SList-DuSCQL0t.js → SList-DKstFJu1.js} +1 -1
- package/dist/{SList-B98BGyt8.cjs → SList-_VnusDWn.cjs} +1 -1
- package/dist/SListItem-B7RIawMl.cjs +1 -0
- package/dist/SListItem-Bw0OXPVk.js +231 -0
- package/dist/{SPhotoEdit-D3a1Ptp0.cjs → SPhotoEdit-C1K1n0ti.cjs} +1 -1
- package/dist/{SPhotoEdit-CuVHNypX.js → SPhotoEdit-eKRRevtl.js} +1 -1
- package/dist/SSelect-91iBEAHR.cjs +1 -0
- package/dist/{SSelect-BU4eSrVf.js → SSelect-CKw3a1AD.js} +238 -230
- package/dist/STable-CdMVPiYt.cjs +1 -0
- package/dist/{STable-BTKXjbrB.js → STable-Dbr1oX01.js} +1032 -1002
- package/dist/{STabs-B07Q6QYO.js → STabs-DhwF2GvF.js} +1 -1
- package/dist/{STabs-JtF4ca3o.cjs → STabs-yf2Mtaji.cjs} +1 -1
- package/dist/{STag-BKLs0RRY.js → STag-BCGC8smg.js} +1 -1
- package/dist/{STag-Btut_n-4.cjs → STag-DBerzc3o.cjs} +1 -1
- package/dist/{STagGroup-CNZVwrG2.js → STagGroup-B2FeOTSD.js} +1 -1
- package/dist/{STagGroup-Ddeb_8Ot.cjs → STagGroup-GecKyBlJ.cjs} +1 -1
- package/dist/components/SAvatar/SAvatar.vue.d.ts.map +1 -1
- package/dist/components/SBadge/SBadge.vue.d.ts.map +1 -1
- package/dist/components/SDropdown/SDropdown.types.d.ts +16 -1
- package/dist/components/SDropdown/SDropdown.types.d.ts.map +1 -1
- package/dist/components/SDropdown/SDropdown.vue.d.ts +2 -2
- package/dist/components/SDropdown/SDropdown.vue.d.ts.map +1 -1
- package/dist/components/SDropdown/utils/dropdownFocusables.d.ts +9 -0
- package/dist/components/SDropdown/utils/dropdownFocusables.d.ts.map +1 -0
- package/dist/components/SDropdown/utils/useDropdownFocus.d.ts +31 -0
- package/dist/components/SDropdown/utils/useDropdownFocus.d.ts.map +1 -0
- package/dist/components/SListItem/SListItem.types.d.ts +5 -3
- package/dist/components/SListItem/SListItem.types.d.ts.map +1 -1
- package/dist/components/SListItem/SListItem.vue.d.ts.map +1 -1
- package/dist/components/SSelect/SSelect.vue.d.ts.map +1 -1
- package/dist/components/STable/STable.vue.d.ts.map +1 -1
- package/dist/components/STable/utils/useTableGridFocus.d.ts +5 -2
- package/dist/components/STable/utils/useTableGridFocus.d.ts.map +1 -1
- package/dist/components/STable/utils/useTableGridKeyboard.d.ts.map +1 -1
- package/dist/components/SToastProvider/SToastProvider.vue.d.ts +1 -1
- package/dist/components/SToastProvider/SToastProvider.vue.d.ts.map +1 -1
- package/dist/entries/avatar-group.cjs +1 -1
- package/dist/entries/avatar-group.js +1 -1
- package/dist/entries/avatar.cjs +1 -1
- package/dist/entries/avatar.js +1 -1
- package/dist/entries/badge.cjs +1 -1
- package/dist/entries/badge.js +1 -1
- package/dist/entries/button.cjs +1 -1
- package/dist/entries/button.js +1 -1
- package/dist/entries/chip.cjs +1 -1
- package/dist/entries/chip.js +1 -1
- package/dist/entries/color-picker.cjs +1 -1
- package/dist/entries/color-picker.js +1 -1
- package/dist/entries/dropdown.cjs +1 -1
- package/dist/entries/dropdown.js +1 -1
- package/dist/entries/input.cjs +1 -1
- package/dist/entries/input.js +1 -1
- package/dist/entries/list-item.cjs +1 -1
- package/dist/entries/list-item.js +1 -1
- package/dist/entries/list.cjs +1 -1
- package/dist/entries/list.js +1 -1
- package/dist/entries/photo-edit.cjs +1 -1
- package/dist/entries/photo-edit.js +1 -1
- package/dist/entries/select.cjs +1 -1
- package/dist/entries/select.js +1 -1
- package/dist/entries/table.cjs +1 -1
- package/dist/entries/table.js +1 -1
- package/dist/entries/tabs.cjs +1 -1
- package/dist/entries/tabs.js +1 -1
- package/dist/entries/tag-group.cjs +1 -1
- package/dist/entries/tag-group.js +2 -2
- package/dist/entries/tag.cjs +1 -1
- package/dist/entries/tag.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +447 -423
- package/dist/uikit-components.css +1 -1
- package/package.json +3 -3
- package/dist/SBadge-d1GOPFP-.cjs +0 -1
- package/dist/SDropdown-CPfoNHbg.cjs +0 -1
- package/dist/SDropdown-DvPW3_WP.js +0 -400
- package/dist/SListItem-B3MQgu4Q.js +0 -227
- package/dist/SListItem-CZtR8bgI.cjs +0 -1
- package/dist/SSelect-CPQIcGhK.cjs +0 -1
- package/dist/STable-RmVTPyg2.cjs +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./SButton-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./SButton-D-dmK8Cm.js";
|
|
2
2
|
import { n as i } from "./useSelectionGroup-BCAmPf3R.js";
|
|
3
3
|
import { t as a } from "./useAriaAttrs-CxGRTeye.js";
|
|
4
|
-
import { t as o } from "./SDropdown-
|
|
4
|
+
import { t as o } from "./SDropdown-aWjZrahp.js";
|
|
5
5
|
import { t as s } from "./SDropdownMenu-2koPU6IG.js";
|
|
6
|
-
import { n as c, r as l, t as u } from "./SInput-
|
|
7
|
-
import { t as d } from "./SListItem-
|
|
8
|
-
import { i as f, n as p, r as m, t as ee } from "./SList-
|
|
9
|
-
import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as b, createTextVNode as te, createVNode as x, defineComponent as S, guardReactiveProps as C, isRef as ne, mergeModels as w, mergeProps as T, nextTick as E, normalizeProps as D, openBlock as O, ref as k, renderSlot as A, toDisplayString as j, toValue as M, unref as N, useId as re, useModel as ie, useSlots as ae, useTemplateRef as
|
|
10
|
-
import { SIcon as
|
|
6
|
+
import { n as c, r as l, t as u } from "./SInput-D2pCcaym.js";
|
|
7
|
+
import { t as d } from "./SListItem-Bw0OXPVk.js";
|
|
8
|
+
import { i as f, n as p, r as m, t as ee } from "./SList-DKstFJu1.js";
|
|
9
|
+
import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as b, createTextVNode as te, createVNode as x, defineComponent as S, guardReactiveProps as C, isRef as ne, mergeModels as w, mergeProps as T, nextTick as E, normalizeProps as D, openBlock as O, ref as k, renderSlot as A, toDisplayString as j, toValue as M, unref as N, useId as re, useModel as ie, useSlots as ae, useTemplateRef as P, vModelText as oe, watch as F, withCtx as I, withDirectives as se, withModifiers as ce } from "vue";
|
|
10
|
+
import { SIcon as le, useUiKitI18n as ue } from "@shtabapp/ui-kit-primitives";
|
|
11
|
+
import { useFocusWithin as de } from "@vueuse/core";
|
|
11
12
|
//#region src/components/SSelect/utils/buildSelectListItemProps.ts
|
|
12
13
|
var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, itemIconLeft: i, listActiveKey: a, isOptionSelected: o }) => {
|
|
13
14
|
let s = e.item;
|
|
@@ -22,33 +23,33 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
22
23
|
revealRight: e.revealRight,
|
|
23
24
|
tiny: !0
|
|
24
25
|
};
|
|
25
|
-
}, pe = (e) => typeof e == "string" || typeof e == "number",
|
|
26
|
+
}, pe = (e) => typeof e == "string" || typeof e == "number", L = (e, t) => {
|
|
26
27
|
let n = e[t];
|
|
27
28
|
if (pe(n)) return n;
|
|
28
|
-
},
|
|
29
|
+
}, R = (e) => typeof e == "string" ? e : String(e), z = (e) => e == null ? !1 : typeof e == "string" ? e.length > 0 : !0, me = (e, t, n) => t.find((t) => R(L(t, n) ?? "") === e), he = (e) => typeof e == "object" && !!e, B = (e, t, n) => {
|
|
29
30
|
let r = me(e, t, n);
|
|
30
|
-
if (r) return
|
|
31
|
-
},
|
|
31
|
+
if (r) return L(r, n);
|
|
32
|
+
}, V = /* @__PURE__ */ function(e) {
|
|
32
33
|
return e.INPUT = "input", e.CONTENT = "content", e;
|
|
33
|
-
}({}),
|
|
34
|
+
}({}), ge = (e, t, n) => {
|
|
34
35
|
if (!e) return !0;
|
|
35
|
-
let r = e.toLocaleLowerCase(), i = f(t, n.itemTitle)?.toLocaleLowerCase() ?? "", a = L(
|
|
36
|
+
let r = e.toLocaleLowerCase(), i = f(t, n.itemTitle)?.toLocaleLowerCase() ?? "", a = R(L(t, n.itemValue) ?? "").toLocaleLowerCase();
|
|
36
37
|
return i.includes(r) || a.includes(r);
|
|
37
38
|
}, H = (e, t, n, r) => {
|
|
38
|
-
let i = r ?? ((e, t) =>
|
|
39
|
+
let i = r ?? ((e, t) => ge(e, t, n));
|
|
39
40
|
return t ? e.filter((e) => i(t, e)) : [...e];
|
|
40
|
-
}, U = (e) => typeof e == "string" &&
|
|
41
|
+
}, U = (e) => typeof e == "string" && z(e), W = (e) => typeof e == "number" && z(e), G = (e, t, n) => {
|
|
41
42
|
if (t) {
|
|
42
43
|
if (!he(e)) return;
|
|
43
|
-
let t =
|
|
44
|
+
let t = L(e, n);
|
|
44
45
|
return U(t) || W(t) ? t : void 0;
|
|
45
46
|
}
|
|
46
47
|
let r = typeof e == "string" || typeof e == "number" ? e : void 0;
|
|
47
48
|
if (U(r) || W(r)) return r;
|
|
48
49
|
}, K = (e, t, n) => e ? (Array.isArray(e) ? e : [e]).flatMap((e) => {
|
|
49
50
|
let r = G(e, t, n);
|
|
50
|
-
return
|
|
51
|
-
}) : [],
|
|
51
|
+
return z(r) ? [r] : [];
|
|
52
|
+
}) : [], _e = (e, t) => {
|
|
52
53
|
if (U(t)) {
|
|
53
54
|
e.value = t;
|
|
54
55
|
return;
|
|
@@ -58,11 +59,11 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
58
59
|
return;
|
|
59
60
|
}
|
|
60
61
|
e.value = void 0;
|
|
61
|
-
},
|
|
62
|
-
let r =
|
|
62
|
+
}, ve = (e, t, n) => t.flatMap((t) => {
|
|
63
|
+
let r = R(t), i = e.find((e) => R(L(e, n) ?? "") === r);
|
|
63
64
|
return i ? [i] : [];
|
|
64
|
-
}),
|
|
65
|
-
let u = h(() => M(r)), d = h(() => M(a)), p = h(() => M(o) ===
|
|
65
|
+
}), ye = ({ modelValue: e, options: t, itemFields: n, multiple: r, returnObject: a, searchable: o, filterOption: s, isDropdownOpen: c, searchQuery: l }) => {
|
|
66
|
+
let u = h(() => M(r)), d = h(() => M(a)), p = h(() => M(o) === V.INPUT), m = h(() => M(o) === V.CONTENT), ee = h(() => !!M(o)), g = h(() => {
|
|
66
67
|
let t = M(n);
|
|
67
68
|
return K(e.value, d.value, t.itemValue);
|
|
68
69
|
}), _ = h(() => {
|
|
@@ -70,7 +71,7 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
70
71
|
return H(e, ee.value ? l.value : "", r, M(s));
|
|
71
72
|
}), v = h(() => u.value ? i.MULTIPLE : i.SINGLE), y = (t, n, r) => {
|
|
72
73
|
if (d.value) {
|
|
73
|
-
e.value =
|
|
74
|
+
e.value = ve(n, t, r);
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
77
|
e.value = t;
|
|
@@ -83,41 +84,41 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
83
84
|
e.value = me(t, n, r) ?? void 0;
|
|
84
85
|
return;
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
+
_e(e, B(t, n, r));
|
|
87
88
|
}, te = h({
|
|
88
89
|
get: () => {
|
|
89
|
-
if (u.value) return g.value.map((e) =>
|
|
90
|
+
if (u.value) return g.value.map((e) => R(e));
|
|
90
91
|
let e = g.value[0];
|
|
91
|
-
if (
|
|
92
|
+
if (z(e)) return R(e);
|
|
92
93
|
},
|
|
93
94
|
set: (e) => {
|
|
94
95
|
let r = M(t), i = M(n);
|
|
95
96
|
if (u.value) {
|
|
96
|
-
y((Array.isArray(e) ? e : []).map((e) =>
|
|
97
|
+
y((Array.isArray(e) ? e : []).map((e) => B(e, r, i.itemValue)).filter((e) => z(e)), r, i.itemValue);
|
|
97
98
|
return;
|
|
98
99
|
}
|
|
99
100
|
b(typeof e == "string" ? e : void 0, r, i.itemValue);
|
|
100
101
|
}
|
|
101
102
|
}), x = h(() => g.value.length > 0), S = (e, t, n) => {
|
|
102
|
-
let r =
|
|
103
|
-
return e.find((e) => L(
|
|
103
|
+
let r = R(t);
|
|
104
|
+
return e.find((e) => R(L(e, n) ?? "") === r);
|
|
104
105
|
}, C = h(() => {
|
|
105
106
|
let e = g.value[0];
|
|
106
|
-
if (!
|
|
107
|
+
if (!z(e)) return "";
|
|
107
108
|
let r = M(n), i = S(M(t), e, r.itemValue);
|
|
108
|
-
return i ? f(i, r.itemTitle) ?? "" :
|
|
109
|
+
return i ? f(i, r.itemTitle) ?? "" : R(e);
|
|
109
110
|
}), ne = h(() => {
|
|
110
111
|
let e = M(t), r = M(n);
|
|
111
112
|
return g.value.map((t) => {
|
|
112
113
|
let n = S(e, t, r.itemValue);
|
|
113
|
-
return n ? f(n, r.itemTitle) ?? "" :
|
|
114
|
+
return n ? f(n, r.itemTitle) ?? "" : R(t);
|
|
114
115
|
});
|
|
115
116
|
}), w = h(() => ne.value.join(", ")), T = h(() => u.value ? g.value.length === 0 : !C.value), E = h(() => p.value && (c.value || u.value)), D = () => {
|
|
116
117
|
l.value = "";
|
|
117
118
|
};
|
|
118
|
-
return
|
|
119
|
+
return F(c, (e) => {
|
|
119
120
|
e || D();
|
|
120
|
-
}),
|
|
121
|
+
}), F(() => M(o), () => {
|
|
121
122
|
D();
|
|
122
123
|
}), {
|
|
123
124
|
searchQuery: l,
|
|
@@ -140,17 +141,17 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
140
141
|
e.value = void 0, D();
|
|
141
142
|
},
|
|
142
143
|
removeSelectedValue: (e) => {
|
|
143
|
-
let r =
|
|
144
|
-
y(g.value.filter((e) =>
|
|
144
|
+
let r = R(e);
|
|
145
|
+
y(g.value.filter((e) => R(e) !== r), M(t), M(n).itemValue);
|
|
145
146
|
},
|
|
146
147
|
resetSearchQuery: D,
|
|
147
|
-
formatSelectListKey:
|
|
148
|
-
resolveValueFromListKey: (e) =>
|
|
148
|
+
formatSelectListKey: R,
|
|
149
|
+
resolveValueFromListKey: (e) => B(e, M(t), M(n).itemValue)
|
|
149
150
|
};
|
|
150
|
-
},
|
|
151
|
+
}, be = {
|
|
151
152
|
key: 1,
|
|
152
153
|
class: "s-ui-select__empty s-ui-typography-body-14-regular"
|
|
153
|
-
},
|
|
154
|
+
}, xe = [
|
|
154
155
|
"id",
|
|
155
156
|
"aria-expanded",
|
|
156
157
|
"aria-controls",
|
|
@@ -158,27 +159,27 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
158
159
|
"aria-readonly",
|
|
159
160
|
"aria-autocomplete",
|
|
160
161
|
"tabindex"
|
|
161
|
-
],
|
|
162
|
+
], Se = {
|
|
162
163
|
key: 0,
|
|
163
164
|
class: "s-ui-select__value"
|
|
164
|
-
}, Se = {
|
|
165
|
-
key: 1,
|
|
166
|
-
class: "s-ui-select__placeholder"
|
|
167
165
|
}, Ce = {
|
|
168
166
|
key: 1,
|
|
169
167
|
class: "s-ui-select__placeholder"
|
|
170
168
|
}, we = {
|
|
169
|
+
key: 1,
|
|
170
|
+
class: "s-ui-select__placeholder"
|
|
171
|
+
}, Te = {
|
|
171
172
|
key: 2,
|
|
172
173
|
class: "s-ui-select__value"
|
|
173
|
-
},
|
|
174
|
+
}, Ee = {
|
|
174
175
|
key: 3,
|
|
175
176
|
class: "s-ui-select__value-suffix"
|
|
176
|
-
},
|
|
177
|
+
}, De = [
|
|
177
178
|
"name",
|
|
178
179
|
"placeholder",
|
|
179
180
|
"disabled",
|
|
180
181
|
"readonly"
|
|
181
|
-
],
|
|
182
|
+
], Oe = 20, ke = "100%", Ae = 20, je = /* @__PURE__ */ S({
|
|
182
183
|
inheritAttrs: !1,
|
|
183
184
|
__name: "SSelect",
|
|
184
185
|
props: /*@__PURE__*/ w({
|
|
@@ -260,229 +261,235 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
260
261
|
"endReached"
|
|
261
262
|
], ["update:modelValue", "update:searchQuery"]),
|
|
262
263
|
setup(i, { expose: l, emit: f }) {
|
|
263
|
-
let p = ie(i, "modelValue"), m = ie(i, "searchQuery"), S = f, { t: w } =
|
|
264
|
+
let p = ie(i, "modelValue"), m = ie(i, "searchQuery"), S = f, { t: w } = ue(), M = ae(), { getRootAttrs: pe, getAriaAttrs: L, getAriaAttr: R } = a(), me = re(), he = re(), B = P("rootElementRef"), V = P("triggerInputRef"), ge = k(""), H = P("searchInputElementRef"), U = P("panelSearchInputElementRef"), W = P("listElementRef"), G = k(), K = k(!1), _e = k(!1), ve = h(() => i.panelWidth === void 0), je = h(() => i.panelWidth ?? ke), Me = h(() => i.itemId ?? i.itemValue), Ne = h(() => ({
|
|
264
265
|
itemValue: i.itemValue,
|
|
265
266
|
itemTitle: i.itemTitle,
|
|
266
267
|
itemSubtitle: i.itemSubtitle,
|
|
267
|
-
itemId:
|
|
268
|
-
})), { selectedValues:
|
|
268
|
+
itemId: Me.value
|
|
269
|
+
})), { selectedValues: Pe, filteredOptions: Fe, listSelectionMode: Ie, listSelectedModel: q, hasSelectedValues: Le, singleDisplayLabel: Re, multipleDisplayLabels: ze, multipleDisplayText: Be, showPlaceholder: Ve, showInputSearchField: J, isSearchableMode: He, isSearchableInputMode: Ue, isSearchableContentMode: Y, isMultipleMode: X, clearSelection: We, removeSelectedValue: Ge, resolveValueFromListKey: Ke, formatSelectListKey: qe } = ye({
|
|
269
270
|
modelValue: p,
|
|
270
271
|
options: () => i.options,
|
|
271
|
-
itemFields: () =>
|
|
272
|
+
itemFields: () => Ne.value,
|
|
272
273
|
multiple: () => i.multiple,
|
|
273
274
|
returnObject: () => i.returnObject,
|
|
274
275
|
searchable: () => i.searchable,
|
|
275
276
|
filterOption: () => i.filterOption,
|
|
276
|
-
isDropdownOpen:
|
|
277
|
+
isDropdownOpen: K,
|
|
277
278
|
searchQuery: m
|
|
278
|
-
}),
|
|
279
|
+
}), Je = h(() => ({
|
|
279
280
|
disabled: i.disabled,
|
|
280
|
-
displayLabel:
|
|
281
|
-
})),
|
|
282
|
-
|
|
281
|
+
displayLabel: Re.value
|
|
282
|
+
})), Ye = h(() => Fe.value.length > Ae), Xe = k();
|
|
283
|
+
F(m, (e, t) => {
|
|
283
284
|
if (!e) {
|
|
284
|
-
|
|
285
|
+
Xe.value = void 0;
|
|
285
286
|
return;
|
|
286
287
|
}
|
|
287
|
-
if (!t &&
|
|
288
|
-
let e =
|
|
289
|
-
|
|
288
|
+
if (!t && Y.value && !Ye.value) {
|
|
289
|
+
let e = W.value?.$el;
|
|
290
|
+
Xe.value = e instanceof HTMLElement ? e.offsetHeight : void 0;
|
|
290
291
|
}
|
|
291
292
|
}, { flush: "pre" });
|
|
292
|
-
let
|
|
293
|
-
if (!
|
|
294
|
-
}),
|
|
293
|
+
let Ze = h(() => Ye.value ? i.listHeight : Xe.value ?? "auto"), Qe = h(() => {
|
|
294
|
+
if (!Ye.value) return i.listHeight;
|
|
295
|
+
}), $e = h(() => Pe.value.map((e) => qe(e))), et = (e) => $e.value.includes(e), tt = () => ({ tiny: !0 }), nt = (e) => fe({
|
|
295
296
|
listItemScope: e,
|
|
296
297
|
itemTitle: i.itemTitle,
|
|
297
298
|
itemSubtitle: i.itemSubtitle,
|
|
298
299
|
itemDisabled: i.itemDisabled,
|
|
299
300
|
itemIconLeft: i.itemIconLeft,
|
|
300
|
-
listActiveKey:
|
|
301
|
-
isOptionSelected:
|
|
302
|
-
}),
|
|
303
|
-
let t =
|
|
304
|
-
if (
|
|
305
|
-
if (
|
|
306
|
-
|
|
301
|
+
listActiveKey: G.value,
|
|
302
|
+
isOptionSelected: et(e.key)
|
|
303
|
+
}), rt = (e) => {
|
|
304
|
+
let t = Ke(e);
|
|
305
|
+
if (z(t)) {
|
|
306
|
+
if (X.value) {
|
|
307
|
+
Ge(t);
|
|
307
308
|
return;
|
|
308
309
|
}
|
|
309
310
|
p.value = void 0;
|
|
310
311
|
}
|
|
311
|
-
},
|
|
312
|
-
let e =
|
|
312
|
+
}, it = h(() => i.id ?? me), at = h(() => he), ot = h(() => c(it.value)), st = () => {
|
|
313
|
+
let e = R("aria-label"), t = R("aria-labelledby");
|
|
313
314
|
return e || t ? {
|
|
314
315
|
"aria-label": e,
|
|
315
316
|
"aria-labelledby": t
|
|
316
|
-
} : i.label || M.label ? { "aria-labelledby":
|
|
317
|
-
},
|
|
318
|
-
...
|
|
319
|
-
...
|
|
320
|
-
}),
|
|
321
|
-
labels:
|
|
322
|
-
values:
|
|
323
|
-
displayText:
|
|
317
|
+
} : i.label || M.label ? { "aria-labelledby": ot.value } : i.placeholder ? { "aria-label": i.placeholder } : {};
|
|
318
|
+
}, ct = h(() => R("aria-label") || i.label || i.placeholder), { focused: lt } = de(B), ut = () => ({
|
|
319
|
+
...L(),
|
|
320
|
+
...st()
|
|
321
|
+
}), dt = h(() => V.value?.fieldElementRef ?? null), ft = h(() => ({
|
|
322
|
+
labels: ze.value,
|
|
323
|
+
values: Pe.value,
|
|
324
|
+
displayText: Be.value,
|
|
324
325
|
disabled: i.disabled || i.readonly,
|
|
325
|
-
removeValue:
|
|
326
|
-
})),
|
|
327
|
-
if (!i.disabled && (i.readonly && !
|
|
328
|
-
}),
|
|
326
|
+
removeValue: Ge
|
|
327
|
+
})), pt = h(() => {
|
|
328
|
+
if (!i.disabled && (i.readonly && !Ue.value || !Ue.value)) return 0;
|
|
329
|
+
}), mt = h(() => ({
|
|
329
330
|
"s-ui-select--disabled": i.disabled,
|
|
330
331
|
"s-ui-select--readonly": i.readonly,
|
|
331
|
-
"s-ui-select--multiple":
|
|
332
|
-
"s-ui-select--open":
|
|
333
|
-
})),
|
|
334
|
-
if (
|
|
335
|
-
|
|
332
|
+
"s-ui-select--multiple": X.value,
|
|
333
|
+
"s-ui-select--open": K.value
|
|
334
|
+
})), ht = () => {
|
|
335
|
+
if (Y.value) {
|
|
336
|
+
U.value?.focus();
|
|
336
337
|
return;
|
|
337
338
|
}
|
|
338
|
-
|
|
339
|
-
},
|
|
340
|
-
await E(),
|
|
341
|
-
},
|
|
342
|
-
await E(), await
|
|
343
|
-
},
|
|
344
|
-
if (!(i.disabled || i.readonly) && !
|
|
345
|
-
if (
|
|
346
|
-
await
|
|
339
|
+
H.value?.focus();
|
|
340
|
+
}, gt = async () => {
|
|
341
|
+
await E(), U.value?.focus();
|
|
342
|
+
}, _t = async () => {
|
|
343
|
+
await E(), await W.value?.focusNavigation();
|
|
344
|
+
}, Z = async () => {
|
|
345
|
+
if (!(i.disabled || i.readonly) && !K.value) {
|
|
346
|
+
if (K.value = !0, S("open"), Y.value) {
|
|
347
|
+
await gt();
|
|
347
348
|
return;
|
|
348
349
|
}
|
|
349
|
-
if (
|
|
350
|
-
await E(),
|
|
350
|
+
if (Ue.value) {
|
|
351
|
+
await E(), H.value?.focus();
|
|
351
352
|
return;
|
|
352
353
|
}
|
|
353
|
-
await
|
|
354
|
+
await _t();
|
|
354
355
|
}
|
|
355
|
-
},
|
|
356
|
-
i.disabled || i.readonly ||
|
|
356
|
+
}, vt = async () => {
|
|
357
|
+
i.disabled || i.readonly || K.value || await Z();
|
|
357
358
|
};
|
|
358
|
-
|
|
359
|
-
|
|
359
|
+
F(m, async (e) => {
|
|
360
|
+
Ue.value && (i.disabled || i.readonly || e && (K.value || await Z()));
|
|
360
361
|
});
|
|
361
|
-
let
|
|
362
|
-
|
|
363
|
-
},
|
|
364
|
-
!i.closeOnSelect ||
|
|
362
|
+
let Q = () => {
|
|
363
|
+
K.value && (K.value = !1, G.value = void 0, S("close"));
|
|
364
|
+
}, yt = () => {
|
|
365
|
+
!i.closeOnSelect || X.value || Q();
|
|
365
366
|
};
|
|
366
|
-
|
|
367
|
-
!i.closeOnSelect ||
|
|
367
|
+
F(p, (e, t) => {
|
|
368
|
+
!i.closeOnSelect || X.value || !K.value || !e || e === t || Q();
|
|
368
369
|
});
|
|
369
|
-
let
|
|
370
|
-
|
|
371
|
-
},
|
|
372
|
-
e.key !== "Enter" && e.key !== " " && e.key !== "Spacebar" ||
|
|
373
|
-
},
|
|
374
|
-
if (
|
|
375
|
-
|
|
370
|
+
let bt = (e) => {
|
|
371
|
+
K.value && e.target instanceof Element && e.target.closest(".s-ui-list-item") && yt();
|
|
372
|
+
}, xt = async (e) => {
|
|
373
|
+
e.key !== "Enter" && e.key !== " " && e.key !== "Spacebar" || K.value && (await E(), yt());
|
|
374
|
+
}, $ = async () => {
|
|
375
|
+
if (K.value) {
|
|
376
|
+
Q();
|
|
376
377
|
return;
|
|
377
378
|
}
|
|
378
|
-
await
|
|
379
|
-
},
|
|
379
|
+
await Z();
|
|
380
|
+
}, St = async (e) => {
|
|
380
381
|
if (!(i.disabled || i.readonly) && e.target instanceof HTMLElement) {
|
|
381
382
|
if (e.target.closest(".s-ui-select__search-input")) {
|
|
382
|
-
|
|
383
|
+
K.value || await Z();
|
|
383
384
|
return;
|
|
384
385
|
}
|
|
385
|
-
await
|
|
386
|
+
await $();
|
|
386
387
|
}
|
|
387
|
-
},
|
|
388
|
-
i.disabled || i.readonly || await
|
|
389
|
-
},
|
|
390
|
-
let t =
|
|
388
|
+
}, Ct = async () => {
|
|
389
|
+
i.disabled || i.readonly || await $();
|
|
390
|
+
}, wt = async (e) => e.key !== "ArrowDown" && e.key !== "ArrowUp" ? !1 : (e.preventDefault(), e.stopPropagation(), K.value || await Z(), await _t(), await W.value?.handleKeyboardNavigation(e), !0), Tt = (e) => {
|
|
391
|
+
let t = Ke(e);
|
|
391
392
|
if (t) {
|
|
392
|
-
if (
|
|
393
|
-
|
|
393
|
+
if (X.value) {
|
|
394
|
+
Pe.value.some((t) => qe(t) === e) ? Ge(t) : q.value = [...Pe.value.map((e) => qe(e)), e];
|
|
394
395
|
return;
|
|
395
396
|
}
|
|
396
|
-
|
|
397
|
+
q.value = e, yt();
|
|
397
398
|
}
|
|
398
|
-
},
|
|
399
|
-
if (!(i.disabled || i.readonly) && !await
|
|
399
|
+
}, Et = async (e) => {
|
|
400
|
+
if (!(i.disabled || i.readonly) && !await wt(e)) {
|
|
400
401
|
if (e.key === "Escape") {
|
|
401
|
-
e.preventDefault(),
|
|
402
|
+
e.preventDefault(), Q();
|
|
402
403
|
return;
|
|
403
404
|
}
|
|
404
405
|
if (e.key === "Enter" || e.key === " ") {
|
|
405
|
-
if (e.preventDefault(),
|
|
406
|
-
|
|
406
|
+
if (e.preventDefault(), K.value && G.value) {
|
|
407
|
+
Tt(G.value);
|
|
407
408
|
return;
|
|
408
409
|
}
|
|
409
|
-
await
|
|
410
|
+
await $();
|
|
410
411
|
}
|
|
411
412
|
}
|
|
412
|
-
},
|
|
413
|
+
}, Dt = async (e) => {
|
|
413
414
|
if (e.key === "Escape") {
|
|
414
|
-
e.preventDefault(),
|
|
415
|
+
e.preventDefault(), Q();
|
|
415
416
|
return;
|
|
416
417
|
}
|
|
417
|
-
await
|
|
418
|
-
},
|
|
419
|
-
i.disabled || (
|
|
420
|
-
},
|
|
418
|
+
await wt(e);
|
|
419
|
+
}, Ot = Dt, kt = (e) => {
|
|
420
|
+
i.disabled || (_e.value || S("focus", e), _e.value = !0);
|
|
421
|
+
}, At = (e) => {
|
|
421
422
|
if (!(e.currentTarget instanceof HTMLElement)) return;
|
|
422
423
|
let t = e.relatedTarget;
|
|
423
|
-
t instanceof Node && e.currentTarget.contains(t) || (
|
|
424
|
-
},
|
|
425
|
-
|
|
426
|
-
},
|
|
424
|
+
t instanceof Node && e.currentTarget.contains(t) || (_e.value = !1, S("blur", e));
|
|
425
|
+
}, jt = () => {
|
|
426
|
+
We(), S("clear");
|
|
427
|
+
}, Mt = (e) => {
|
|
427
428
|
S("endReached", e);
|
|
428
429
|
};
|
|
429
430
|
return l({
|
|
430
|
-
open:
|
|
431
|
-
close:
|
|
432
|
-
toggle:
|
|
433
|
-
focusSearchInput:
|
|
434
|
-
}), (a, c) => (O(), v("div", T({
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
431
|
+
open: Z,
|
|
432
|
+
close: Q,
|
|
433
|
+
toggle: $,
|
|
434
|
+
focusSearchInput: ht
|
|
435
|
+
}), (a, c) => (O(), v("div", T({
|
|
436
|
+
ref_key: "rootElementRef",
|
|
437
|
+
ref: B,
|
|
438
|
+
class: ["s-ui-select", mt.value]
|
|
439
|
+
}, N(pe)()), [x(N(o), {
|
|
440
|
+
modelValue: K.value,
|
|
441
|
+
"onUpdate:modelValue": c[4] ||= (e) => K.value = e,
|
|
442
|
+
reference: dt.value,
|
|
438
443
|
disabled: i.disabled,
|
|
439
|
-
"match-reference-width":
|
|
444
|
+
"match-reference-width": ve.value,
|
|
440
445
|
"fit-viewport": i.fitViewport,
|
|
441
446
|
"surface-class": i.surfaceClass,
|
|
442
|
-
"content-id":
|
|
447
|
+
"content-id": at.value,
|
|
443
448
|
"dismiss-on-click-outside": !0,
|
|
444
|
-
"dismiss-on-escape": !0
|
|
449
|
+
"dismiss-on-escape": !0,
|
|
450
|
+
"focus-on-open": !1,
|
|
451
|
+
"panel-label": ct.value
|
|
445
452
|
}, {
|
|
446
|
-
content:
|
|
453
|
+
content: I(() => [x(N(s), {
|
|
447
454
|
class: "s-ui-select__menu",
|
|
448
|
-
width:
|
|
455
|
+
width: je.value
|
|
449
456
|
}, b({
|
|
450
|
-
default:
|
|
457
|
+
default: I(() => [y("div", {
|
|
451
458
|
class: "s-ui-select__menu-body",
|
|
452
|
-
onClick:
|
|
453
|
-
onKeydown:
|
|
454
|
-
}, [N(
|
|
459
|
+
onClick: bt,
|
|
460
|
+
onKeydown: xt
|
|
461
|
+
}, [N(Fe).length > 0 ? (O(), g(N(ee), T({
|
|
455
462
|
key: 0,
|
|
456
463
|
ref_key: "listElementRef",
|
|
457
|
-
ref:
|
|
458
|
-
modelValue:
|
|
459
|
-
"onUpdate:modelValue": c[2] ||= (e) =>
|
|
460
|
-
selected: N(
|
|
461
|
-
"onUpdate:selected": c[3] ||= (e) => ne(
|
|
462
|
-
items: N(
|
|
463
|
-
"item-key":
|
|
464
|
+
ref: W,
|
|
465
|
+
modelValue: G.value,
|
|
466
|
+
"onUpdate:modelValue": c[2] ||= (e) => G.value = e,
|
|
467
|
+
selected: N(q),
|
|
468
|
+
"onUpdate:selected": c[3] ||= (e) => ne(q) ? q.value = e : null,
|
|
469
|
+
items: N(Fe),
|
|
470
|
+
"item-key": Me.value,
|
|
464
471
|
"title-key": i.itemTitle,
|
|
465
472
|
"subtitle-key": i.itemSubtitle,
|
|
466
473
|
"icon-left-key": i.itemIconLeft,
|
|
467
474
|
"disabled-key": i.itemDisabled,
|
|
468
|
-
"selection-mode": N(
|
|
475
|
+
"selection-mode": N(Ie),
|
|
469
476
|
mandatory: !i.multiple,
|
|
470
|
-
height:
|
|
471
|
-
"max-height":
|
|
472
|
-
virtual:
|
|
473
|
-
"item-props":
|
|
474
|
-
"selected-on-top": N(
|
|
477
|
+
height: Ze.value,
|
|
478
|
+
"max-height": Qe.value,
|
|
479
|
+
virtual: Ye.value,
|
|
480
|
+
"item-props": tt,
|
|
481
|
+
"selected-on-top": N(X),
|
|
475
482
|
"can-load-more": i.canLoadMore,
|
|
476
483
|
"end-reached-distance": i.endReachedDistance
|
|
477
|
-
},
|
|
484
|
+
}, st(), { onEndReached: Mt }), b({ _: 2 }, [N(M).option || N(M)["option-icon"] || i.closableOptions || N(X) ? {
|
|
478
485
|
name: "item",
|
|
479
|
-
fn:
|
|
486
|
+
fn: I((o) => [N(M).option ? A(a.$slots, "option", D(T({ key: 0 }, o))) : i.closableOptions ? (O(), g(N(d), D(T({ key: 1 }, nt(o))), b({ _: 2 }, [N(M)["option-icon"] ? {
|
|
480
487
|
name: "icon-left",
|
|
481
|
-
fn:
|
|
488
|
+
fn: I(() => [A(a.$slots, "option-icon", D(C(o)))]),
|
|
482
489
|
key: "0"
|
|
483
|
-
} : void 0,
|
|
490
|
+
} : void 0, et(o.key) ? {
|
|
484
491
|
name: "right",
|
|
485
|
-
fn:
|
|
492
|
+
fn: I((i) => [x(N(r), {
|
|
486
493
|
appearance: N(t).BARE,
|
|
487
494
|
variant: N(e).NEUTRAL,
|
|
488
495
|
size: N(n).SMALL,
|
|
@@ -490,7 +497,7 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
490
497
|
"aria-label": N(w)("select.removeOption"),
|
|
491
498
|
disabled: i.disabled || i.readonly,
|
|
492
499
|
tabindex: -1,
|
|
493
|
-
onClick:
|
|
500
|
+
onClick: ce((e) => rt(o.key), ["stop"])
|
|
494
501
|
}, null, 8, [
|
|
495
502
|
"appearance",
|
|
496
503
|
"variant",
|
|
@@ -500,9 +507,9 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
500
507
|
"onClick"
|
|
501
508
|
])]),
|
|
502
509
|
key: "1"
|
|
503
|
-
} : void 0]), 1040)) : (O(), g(N(d), D(T({ key: 2 },
|
|
510
|
+
} : void 0]), 1040)) : (O(), g(N(d), D(T({ key: 2 }, nt(o))), b({ _: 2 }, [N(M)["option-icon"] ? {
|
|
504
511
|
name: "icon-left",
|
|
505
|
-
fn:
|
|
512
|
+
fn: I(() => [A(a.$slots, "option-icon", D(C(o)))]),
|
|
506
513
|
key: "0"
|
|
507
514
|
} : void 0]), 1040))]),
|
|
508
515
|
key: "0"
|
|
@@ -523,14 +530,14 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
523
530
|
"selected-on-top",
|
|
524
531
|
"can-load-more",
|
|
525
532
|
"end-reached-distance"
|
|
526
|
-
])) : (O(), v("div",
|
|
533
|
+
])) : (O(), v("div", be, [A(a.$slots, "empty", {}, () => [te(j(N(w)("select.noOptions")), 1)])]))], 32)]),
|
|
527
534
|
_: 2
|
|
528
|
-
}, [N(
|
|
535
|
+
}, [N(Y) || N(M)["panel-header"] ? {
|
|
529
536
|
name: "header",
|
|
530
|
-
fn:
|
|
537
|
+
fn: I(() => [A(a.$slots, "panel-header"), N(Y) ? (O(), g(N(u), {
|
|
531
538
|
key: 0,
|
|
532
539
|
ref_key: "panelSearchInputElementRef",
|
|
533
|
-
ref:
|
|
540
|
+
ref: U,
|
|
534
541
|
modelValue: m.value,
|
|
535
542
|
"onUpdate:modelValue": c[0] ||= (e) => m.value = e,
|
|
536
543
|
placeholder: i.searchPlaceholder,
|
|
@@ -538,8 +545,8 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
538
545
|
clearable: !1,
|
|
539
546
|
"aria-label": i.searchPlaceholder,
|
|
540
547
|
"icon-left": "search",
|
|
541
|
-
onClick: c[1] ||=
|
|
542
|
-
onKeydown: N(
|
|
548
|
+
onClick: c[1] ||= ce(() => {}, ["stop"]),
|
|
549
|
+
onKeydown: N(Ot)
|
|
543
550
|
}, null, 8, [
|
|
544
551
|
"modelValue",
|
|
545
552
|
"placeholder",
|
|
@@ -550,7 +557,7 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
550
557
|
key: "0"
|
|
551
558
|
} : void 0, N(M)["panel-footer"] ? {
|
|
552
559
|
name: "footer",
|
|
553
|
-
fn:
|
|
560
|
+
fn: I(() => [A(a.$slots, "panel-footer")]),
|
|
554
561
|
key: "1"
|
|
555
562
|
} : void 0]), 1032, ["width"])]),
|
|
556
563
|
_: 3
|
|
@@ -561,12 +568,13 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
561
568
|
"match-reference-width",
|
|
562
569
|
"fit-viewport",
|
|
563
570
|
"surface-class",
|
|
564
|
-
"content-id"
|
|
571
|
+
"content-id",
|
|
572
|
+
"panel-label"
|
|
565
573
|
]), x(N(u), {
|
|
566
574
|
ref_key: "triggerInputRef",
|
|
567
|
-
ref:
|
|
568
|
-
modelValue:
|
|
569
|
-
"onUpdate:modelValue": c[7] ||= (e) =>
|
|
575
|
+
ref: V,
|
|
576
|
+
modelValue: ge.value,
|
|
577
|
+
"onUpdate:modelValue": c[7] ||= (e) => ge.value = e,
|
|
570
578
|
label: i.label,
|
|
571
579
|
"label-props": i.labelProps,
|
|
572
580
|
placeholder: i.placeholder,
|
|
@@ -576,41 +584,41 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
576
584
|
disabled: i.disabled,
|
|
577
585
|
readonly: i.readonly,
|
|
578
586
|
clearable: i.clearable,
|
|
579
|
-
"has-value": N(
|
|
580
|
-
focused:
|
|
587
|
+
"has-value": N(Le),
|
|
588
|
+
focused: N(lt) || K.value,
|
|
581
589
|
"icon-left": i.iconLeft,
|
|
582
590
|
customize: i.customize,
|
|
583
591
|
name: i.name,
|
|
584
|
-
id:
|
|
585
|
-
onClear:
|
|
586
|
-
onFocus:
|
|
587
|
-
onBlur:
|
|
592
|
+
id: it.value,
|
|
593
|
+
onClear: jt,
|
|
594
|
+
onFocus: kt,
|
|
595
|
+
onBlur: At
|
|
588
596
|
}, b({
|
|
589
|
-
control:
|
|
590
|
-
id:
|
|
597
|
+
control: I(() => [y("div", T({
|
|
598
|
+
id: it.value,
|
|
591
599
|
class: ["s-ui-select__control s-ui-typography-body-14-regular", {
|
|
592
|
-
"s-ui-select__control--multiple": N(
|
|
593
|
-
"s-ui-select__control--empty": N(
|
|
594
|
-
"s-ui-select__control--with-value-suffix": N(M)["value-suffix"] && !N(
|
|
600
|
+
"s-ui-select__control--multiple": N(X),
|
|
601
|
+
"s-ui-select__control--empty": N(X) && !N(Le) && !N(J),
|
|
602
|
+
"s-ui-select__control--with-value-suffix": N(M)["value-suffix"] && !N(X) && !N(J) && !N(Ve)
|
|
595
603
|
}],
|
|
596
604
|
role: "combobox",
|
|
597
|
-
"aria-expanded":
|
|
598
|
-
"aria-controls":
|
|
605
|
+
"aria-expanded": K.value,
|
|
606
|
+
"aria-controls": at.value,
|
|
599
607
|
"aria-haspopup": "listbox",
|
|
600
608
|
"aria-disabled": i.disabled ? !0 : void 0,
|
|
601
609
|
"aria-readonly": i.readonly ? !0 : void 0,
|
|
602
|
-
"aria-autocomplete": N(
|
|
603
|
-
},
|
|
604
|
-
tabindex:
|
|
605
|
-
onClick:
|
|
606
|
-
onKeydown:
|
|
610
|
+
"aria-autocomplete": N(He) ? "list" : void 0
|
|
611
|
+
}, ut(), {
|
|
612
|
+
tabindex: pt.value,
|
|
613
|
+
onClick: St,
|
|
614
|
+
onKeydown: Et
|
|
607
615
|
}), [
|
|
608
|
-
N(
|
|
609
|
-
N(M)["value-suffix"] && !N(
|
|
610
|
-
N(
|
|
616
|
+
N(X) ? A(a.$slots, "selection", D(T({ key: 0 }, ft.value)), () => [N(Be) ? (O(), v("span", Se, j(N(Be)), 1)) : N(Ve) && !N(J) ? (O(), v("span", Ce, j(i.placeholder), 1)) : _("", !0)]) : N(Ve) && !N(J) ? (O(), v("span", we, j(i.placeholder), 1)) : N(J) ? _("", !0) : (O(), v("span", Te, j(N(Re)), 1)),
|
|
617
|
+
N(M)["value-suffix"] && !N(X) && !N(J) && !N(Ve) ? (O(), v("div", Ee, [A(a.$slots, "value-suffix", D(C(Je.value)))])) : _("", !0),
|
|
618
|
+
N(J) ? se((O(), v("input", T({
|
|
611
619
|
key: 4,
|
|
612
620
|
ref_key: "searchInputElementRef",
|
|
613
|
-
ref:
|
|
621
|
+
ref: H,
|
|
614
622
|
"onUpdate:modelValue": c[5] ||= (e) => m.value = e,
|
|
615
623
|
class: "s-ui-select__search-input",
|
|
616
624
|
type: "text",
|
|
@@ -619,38 +627,38 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
619
627
|
disabled: i.disabled,
|
|
620
628
|
readonly: i.readonly,
|
|
621
629
|
autocomplete: "off"
|
|
622
|
-
},
|
|
623
|
-
onClick: c[6] ||=
|
|
624
|
-
onFocus:
|
|
625
|
-
onKeydown:
|
|
626
|
-
}), null, 16,
|
|
627
|
-
], 16,
|
|
628
|
-
action:
|
|
630
|
+
}, st(), {
|
|
631
|
+
onClick: c[6] ||= ce(() => {}, ["stop"]),
|
|
632
|
+
onFocus: vt,
|
|
633
|
+
onKeydown: Dt
|
|
634
|
+
}), null, 16, De)), [[oe, m.value]]) : _("", !0)
|
|
635
|
+
], 16, xe)]),
|
|
636
|
+
action: I(() => [x(N(le), {
|
|
629
637
|
name: "chevronMiniDown",
|
|
630
|
-
size:
|
|
638
|
+
size: Oe,
|
|
631
639
|
class: "s-ui-select__chevron",
|
|
632
|
-
onClick:
|
|
640
|
+
onClick: Ct
|
|
633
641
|
})]),
|
|
634
642
|
_: 2
|
|
635
643
|
}, [
|
|
636
644
|
N(M).label ? {
|
|
637
645
|
name: "label",
|
|
638
|
-
fn:
|
|
646
|
+
fn: I(() => [A(a.$slots, "label")]),
|
|
639
647
|
key: "0"
|
|
640
648
|
} : void 0,
|
|
641
649
|
N(M).prefix ? {
|
|
642
650
|
name: "prefix",
|
|
643
|
-
fn:
|
|
651
|
+
fn: I((e) => [A(a.$slots, "prefix", D(C(e)))]),
|
|
644
652
|
key: "1"
|
|
645
653
|
} : void 0,
|
|
646
654
|
N(M).prepend ? {
|
|
647
655
|
name: "prepend",
|
|
648
|
-
fn:
|
|
656
|
+
fn: I((e) => [A(a.$slots, "prepend", D(C(e)))]),
|
|
649
657
|
key: "2"
|
|
650
658
|
} : void 0,
|
|
651
659
|
N(M).message ? {
|
|
652
660
|
name: "message",
|
|
653
|
-
fn:
|
|
661
|
+
fn: I(() => [A(a.$slots, "message")]),
|
|
654
662
|
key: "3"
|
|
655
663
|
} : void 0
|
|
656
664
|
]), 1032, [
|
|
@@ -674,4 +682,4 @@ var fe = ({ listItemScope: e, itemTitle: t, itemSubtitle: n, itemDisabled: r, it
|
|
|
674
682
|
}
|
|
675
683
|
});
|
|
676
684
|
//#endregion
|
|
677
|
-
export {
|
|
685
|
+
export { V as n, je as t };
|