vectis-ui 0.13.0 → 0.14.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/components/VColorPicker/VColorPicker.css +1 -1
- package/dist/components/VColorPicker/VColorPicker.js.map +1 -1
- package/dist/components/VColorPicker/VColorPicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCommandPalette/VCommandPalette.css +1 -1
- package/dist/components/VCommandPalette/VCommandPalette.js.map +1 -1
- package/dist/components/VCommandPalette/VCommandPalette.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDataTable/VDataTable.js.map +1 -1
- package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js +6 -5
- package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VNumberInput/number.d.ts +2 -2
- package/dist/components/VNumberInput/number.js +1 -1
- package/dist/components/VNumberInput/number.js.map +1 -1
- package/dist/components/VPagination/VPagination.js.map +1 -1
- package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSelect/VSelect.js.map +1 -1
- package/dist/components/VSelect/VSelect.vue_vue_type_script_setup_true_lang.js +168 -174
- package/dist/components/VSelect/VSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTimeInput/VTimeInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTimePicker/VTimePicker.js.map +1 -1
- package/dist/components/VTimePicker/VTimePicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/VTimePicker/VTimePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToggle/VToggle.js.map +1 -1
- package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTreeView/VTreeView.js.map +1 -1
- package/dist/components/VTreeView/VTreeView.vue_vue_type_script_setup_true_lang.js +127 -131
- package/dist/components/VTreeView/VTreeView.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/composables/useHotkeyListener.js +5 -2
- package/dist/composables/useHotkeyListener.js.map +1 -1
- package/dist/composables/useInfiniteScroll.js +2 -2
- package/dist/composables/useInfiniteScroll.js.map +1 -1
- package/dist/composables/useTypeahead.d.ts +13 -0
- package/dist/composables/useTypeahead.js +23 -0
- package/dist/composables/useTypeahead.js.map +1 -0
- package/dist/i18n/state.d.ts +1 -1
- package/dist/i18n/state.js +17 -6
- package/dist/i18n/state.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/date.js +4 -3
- package/dist/utils/date.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { useMessages as e } from "../../i18n/state.js";
|
|
2
2
|
import { useControlShape as t } from "../../composables/useControlShape.js";
|
|
3
3
|
import n from "../VSpinner/VSpinner.js";
|
|
4
|
-
import { useRootAttrs as
|
|
5
|
-
import { expand_more as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { toggleValue as
|
|
9
|
-
import { iconStartListener as
|
|
10
|
-
import { canClear as
|
|
11
|
-
import { inputGroupKey as
|
|
12
|
-
import
|
|
13
|
-
import { partitionAttrs as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { chipScaleFor as
|
|
18
|
-
import { useFocusoutDismiss as
|
|
19
|
-
import { selectionOf as
|
|
20
|
-
import { Fragment as
|
|
4
|
+
import { useRootAttrs as ee } from "../../composables/useRootAttrs.js";
|
|
5
|
+
import { expand_more as r } from "../VIcon/icons/expand_more.js";
|
|
6
|
+
import { createNormalizedCache as te } from "../../utils/text.js";
|
|
7
|
+
import { useTypeahead as ne } from "../../composables/useTypeahead.js";
|
|
8
|
+
import { toggleValue as re } from "../../utils/array.js";
|
|
9
|
+
import { iconStartListener as ie } from "../../composables/useIconClickHandlers.js";
|
|
10
|
+
import { canClear as ae } from "../../composables/useClearable.js";
|
|
11
|
+
import { inputGroupKey as oe } from "../VInput/context.js";
|
|
12
|
+
import se from "../VInput/VInput.js";
|
|
13
|
+
import { partitionAttrs as ce } from "../../utils/attrs.js";
|
|
14
|
+
import le from "../VListbox/VListboxChevron.js";
|
|
15
|
+
import ue from "../VListbox/VListboxPanel.js";
|
|
16
|
+
import de from "../VListbox/VListboxValues.js";
|
|
17
|
+
import { chipScaleFor as fe } from "../../utils/chip.js";
|
|
18
|
+
import { useFocusoutDismiss as pe } from "../../composables/useFocusoutDismiss.js";
|
|
19
|
+
import { selectionOf as me, useListbox as he } from "../../composables/useListbox.js";
|
|
20
|
+
import { Fragment as ge, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createVNode as u, defineComponent as d, guardReactiveProps as f, inject as _e, mergeModels as p, mergeProps as m, normalizeClass as ve, normalizeProps as h, normalizeStyle as ye, onBeforeUnmount as be, onMounted as xe, openBlock as g, ref as _, renderList as Se, renderSlot as v, toDisplayString as y, unref as b, useId as Ce, useModel as we, watch as x, withCtx as S } from "vue";
|
|
21
21
|
//#region src/components/VSelect/VSelect.vue?vue&type=script&setup=true&lang.ts
|
|
22
22
|
var Te = [
|
|
23
23
|
"data-size",
|
|
@@ -39,10 +39,10 @@ var Te = [
|
|
|
39
39
|
], ke = {
|
|
40
40
|
key: 0,
|
|
41
41
|
value: ""
|
|
42
|
-
}, Ae = ["value", "disabled"],
|
|
42
|
+
}, Ae = ["value", "disabled"], C = "a, button, input, select, textarea, [tabindex]", w = /*@__PURE__*/ d({
|
|
43
43
|
inheritAttrs: !1,
|
|
44
44
|
__name: "VSelect",
|
|
45
|
-
props: /*@__PURE__*/
|
|
45
|
+
props: /*@__PURE__*/ p({
|
|
46
46
|
options: {},
|
|
47
47
|
multiple: {
|
|
48
48
|
type: Boolean,
|
|
@@ -86,7 +86,7 @@ var Te = [
|
|
|
86
86
|
},
|
|
87
87
|
iconStart: { default: void 0 },
|
|
88
88
|
iconStartLabel: { default: void 0 },
|
|
89
|
-
expandIcon: { default: () =>
|
|
89
|
+
expandIcon: { default: () => r },
|
|
90
90
|
loading: {
|
|
91
91
|
type: Boolean,
|
|
92
92
|
default: !1
|
|
@@ -102,253 +102,247 @@ var Te = [
|
|
|
102
102
|
modelValue: { default: "" },
|
|
103
103
|
modelModifiers: {}
|
|
104
104
|
}),
|
|
105
|
-
emits: /*@__PURE__*/
|
|
106
|
-
setup(
|
|
107
|
-
let
|
|
105
|
+
emits: /*@__PURE__*/ p(["clear", "click:icon-start"], ["update:modelValue"]),
|
|
106
|
+
setup(r, { expose: d, emit: p }) {
|
|
107
|
+
let w = r, je = e(), Me = i(() => w.clearLabel ?? je.value.select.clear), T = p, { size: E, compact: D, disabled: O } = t(w, _e(oe, null)), k = i(() => fe(E.value, D.value)), A = we(r, "modelValue"), { rootClass: Ne, rootStyle: Pe, forwardedAttrs: Fe } = ee(), Ie = [
|
|
108
108
|
"name",
|
|
109
109
|
"form",
|
|
110
110
|
"autocomplete"
|
|
111
|
-
],
|
|
112
|
-
...
|
|
113
|
-
...
|
|
114
|
-
})),
|
|
115
|
-
items: () =>
|
|
116
|
-
selected: () =>
|
|
117
|
-
open: () =>
|
|
118
|
-
id:
|
|
119
|
-
panelEl: () =>
|
|
111
|
+
], j = i(() => ce(Fe.value, Ie)), Le = i(() => j.value.picked), Re = ie((e) => T("click:icon-start", e)), ze = i(() => ({
|
|
112
|
+
...j.value.rest,
|
|
113
|
+
...Re
|
|
114
|
+
})), M = _(null), N = _(null), P = _(null), F = _(null), I = Ce(), L = _(!1), R = _(!1), z = i(() => me(A.value, w.multiple)), { allOptions: B, visible: V, optionOf: Be, labelOf: H, remember: Ve, activeIndex: U, optionId: He, highlightFirst: Ue, highlightLast: We, highlightSelected: Ge, move: Ke, page: qe, hover: Je, blocks: Ye, measureRow: Xe } = he({
|
|
115
|
+
items: () => w.options,
|
|
116
|
+
selected: () => z.value,
|
|
117
|
+
open: () => L.value,
|
|
118
|
+
id: I,
|
|
119
|
+
panelEl: () => F.value?.el ?? null,
|
|
120
120
|
virtual: () => !1,
|
|
121
121
|
size: () => E.value,
|
|
122
122
|
compact: () => D.value
|
|
123
|
-
}),
|
|
124
|
-
function
|
|
125
|
-
O.value ||
|
|
123
|
+
}), Ze = i(() => z.value.map(H).join(", ")), Qe = i(() => w.multiple && w.display === "text"), $e = i(() => w.multiple && !R.value && !L.value), et = i(() => ae(w, O.value, z.value.length > 0)), W = _(!1);
|
|
124
|
+
function G() {
|
|
125
|
+
O.value || w.readonly || L.value || (L.value = !0, Ge());
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
127
|
+
function K() {
|
|
128
|
+
L.value && (L.value = !1, U.value = -1);
|
|
129
129
|
}
|
|
130
130
|
function tt() {
|
|
131
|
-
|
|
131
|
+
L.value ? K() : G();
|
|
132
132
|
}
|
|
133
|
-
let nt =
|
|
134
|
-
|
|
133
|
+
let nt = pe(M, () => {
|
|
134
|
+
R.value = !1, K();
|
|
135
135
|
});
|
|
136
136
|
function rt(e) {
|
|
137
|
-
e.disabled ||
|
|
137
|
+
e.disabled || w.readonly || O.value || (Ve(e), w.multiple ? A.value = re(z.value, e.value) : (A.value !== e.value && (A.value = e.value), K()));
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
let e =
|
|
139
|
+
function q() {
|
|
140
|
+
let e = V.value[U.value];
|
|
141
141
|
e && rt(e);
|
|
142
142
|
}
|
|
143
143
|
function it(e) {
|
|
144
|
-
!
|
|
144
|
+
!w.multiple || w.readonly || O.value || (A.value = z.value.filter((t) => t !== e), N.value?.focus());
|
|
145
145
|
}
|
|
146
146
|
function at() {
|
|
147
|
-
|
|
147
|
+
A.value = w.multiple ? [] : "", N.value?.focus(), T("clear");
|
|
148
148
|
}
|
|
149
|
-
let ot =
|
|
150
|
-
function
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
let n = (Math.max(i, 0) + e) % t.length, a = t[n];
|
|
157
|
-
if (!a.disabled && ot(a, a.label).startsWith(r)) {
|
|
158
|
-
z.value = n;
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
149
|
+
let ot = te(), { find: st, typing: ct } = ne();
|
|
150
|
+
function J(e) {
|
|
151
|
+
let t = V.value, n = st(e, t.length, U.value, (e) => {
|
|
152
|
+
let n = t[e];
|
|
153
|
+
return n.disabled ? void 0 : ot(n, n.label);
|
|
154
|
+
});
|
|
155
|
+
n >= 0 && (U.value = n);
|
|
162
156
|
}
|
|
163
|
-
let
|
|
157
|
+
let Y = (e) => e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey;
|
|
164
158
|
function lt(e) {
|
|
165
|
-
if (!
|
|
159
|
+
if (!L.value) {
|
|
166
160
|
switch (e.key) {
|
|
167
161
|
case "ArrowDown":
|
|
168
162
|
case "ArrowUp":
|
|
169
163
|
case "Enter":
|
|
170
164
|
case " ":
|
|
171
|
-
e.preventDefault(),
|
|
165
|
+
e.preventDefault(), G();
|
|
172
166
|
return;
|
|
173
167
|
case "Home":
|
|
174
|
-
e.preventDefault(),
|
|
168
|
+
e.preventDefault(), G(), L.value && Ue();
|
|
175
169
|
return;
|
|
176
170
|
case "End":
|
|
177
|
-
e.preventDefault(),
|
|
171
|
+
e.preventDefault(), G(), L.value && We();
|
|
178
172
|
return;
|
|
179
173
|
}
|
|
180
|
-
|
|
174
|
+
Y(e) && (G(), L.value && J(e.key));
|
|
181
175
|
return;
|
|
182
176
|
}
|
|
183
177
|
switch (e.key) {
|
|
184
178
|
case "ArrowDown":
|
|
185
|
-
e.preventDefault(),
|
|
179
|
+
e.preventDefault(), Ke(1);
|
|
186
180
|
break;
|
|
187
181
|
case "ArrowUp":
|
|
188
|
-
e.preventDefault(), e.altKey ? (
|
|
182
|
+
e.preventDefault(), e.altKey ? (q(), K()) : Ke(-1);
|
|
189
183
|
break;
|
|
190
184
|
case "Home":
|
|
191
|
-
e.preventDefault(),
|
|
185
|
+
e.preventDefault(), Ue();
|
|
192
186
|
break;
|
|
193
187
|
case "End":
|
|
194
|
-
e.preventDefault(),
|
|
188
|
+
e.preventDefault(), We();
|
|
195
189
|
break;
|
|
196
190
|
case "PageDown":
|
|
197
|
-
e.preventDefault(),
|
|
191
|
+
e.preventDefault(), qe(10);
|
|
198
192
|
break;
|
|
199
193
|
case "PageUp":
|
|
200
|
-
e.preventDefault(),
|
|
194
|
+
e.preventDefault(), qe(-10);
|
|
201
195
|
break;
|
|
202
196
|
case " ":
|
|
203
|
-
e.preventDefault(),
|
|
197
|
+
e.preventDefault(), ct() ? J(" ") : q();
|
|
204
198
|
break;
|
|
205
199
|
case "Enter":
|
|
206
|
-
e.preventDefault(),
|
|
200
|
+
e.preventDefault(), q();
|
|
207
201
|
break;
|
|
208
202
|
case "Escape":
|
|
209
|
-
e.preventDefault(),
|
|
203
|
+
e.preventDefault(), K();
|
|
210
204
|
break;
|
|
211
205
|
case "Tab":
|
|
212
|
-
|
|
206
|
+
w.multiple || q(), K();
|
|
213
207
|
break;
|
|
214
|
-
default:
|
|
208
|
+
default: Y(e) && J(e.key);
|
|
215
209
|
}
|
|
216
210
|
}
|
|
217
211
|
function ut(e) {
|
|
218
212
|
let t = e.target;
|
|
219
|
-
t.closest(".v-input-field") && !t.closest(
|
|
213
|
+
t.closest(".v-input-field") && !t.closest(C) && e.preventDefault();
|
|
220
214
|
}
|
|
221
215
|
function dt(e) {
|
|
222
216
|
let t = e.target;
|
|
223
|
-
O.value || !t.closest(".v-input-field") || t.closest(
|
|
217
|
+
O.value || !t.closest(".v-input-field") || t.closest(C) || (N.value?.focus(), tt());
|
|
224
218
|
}
|
|
225
|
-
function
|
|
226
|
-
let e =
|
|
219
|
+
function X() {
|
|
220
|
+
let e = P.value;
|
|
227
221
|
if (e) {
|
|
228
222
|
for (let t of e.options) t.selected = t.value !== "" && ft.value.has(t.value);
|
|
229
|
-
!
|
|
223
|
+
!w.multiple && z.value.length === 0 && (e.value = "");
|
|
230
224
|
}
|
|
231
225
|
}
|
|
232
|
-
let ft =
|
|
233
|
-
|
|
234
|
-
|
|
226
|
+
let ft = i(() => new Set(z.value.map(String)));
|
|
227
|
+
x([z, B], X, { flush: "post" }), x(z, () => {
|
|
228
|
+
W.value &&= !P.value?.checkValidity();
|
|
235
229
|
}, { flush: "post" });
|
|
236
230
|
function pt() {
|
|
237
|
-
let e =
|
|
231
|
+
let e = P.value;
|
|
238
232
|
if (!e) return;
|
|
239
|
-
let t = [...e.selectedOptions].map((e) =>
|
|
240
|
-
|
|
233
|
+
let t = [...e.selectedOptions].map((e) => B.value.find((t) => String(t.value) === e.value)).filter((e) => e !== void 0).map((e) => e.value);
|
|
234
|
+
A.value = w.multiple ? t : t[0] ?? "";
|
|
241
235
|
}
|
|
242
|
-
let
|
|
243
|
-
function
|
|
244
|
-
|
|
236
|
+
let Z = "", Q = null;
|
|
237
|
+
function $() {
|
|
238
|
+
A.value = Array.isArray(Z) ? [...Z] : Z, W.value = !1, setTimeout(X);
|
|
245
239
|
}
|
|
246
240
|
return xe(() => {
|
|
247
|
-
|
|
248
|
-
}), be(() =>
|
|
249
|
-
focus: (e) =>
|
|
250
|
-
el:
|
|
251
|
-
}), (e, t) => (
|
|
241
|
+
Z = Array.isArray(A.value) ? [...A.value] : A.value, X(), Q = P.value?.form ?? null, Q?.addEventListener("reset", $);
|
|
242
|
+
}), be(() => Q?.removeEventListener("reset", $)), d({
|
|
243
|
+
focus: (e) => N.value?.focus(e),
|
|
244
|
+
el: N
|
|
245
|
+
}), (e, t) => (g(), s("div", {
|
|
252
246
|
ref_key: "rootEl",
|
|
253
|
-
ref:
|
|
254
|
-
class: ve(["v-select",
|
|
255
|
-
style: ye([{ "--chip-height":
|
|
256
|
-
"data-size":
|
|
257
|
-
"data-multiple":
|
|
258
|
-
"data-open":
|
|
259
|
-
onFocusin: t[3] ||= (e) =>
|
|
260
|
-
onFocusout: t[4] ||= (...e) =>
|
|
261
|
-
}, [
|
|
247
|
+
ref: M,
|
|
248
|
+
class: ve(["v-select", b(Ne)]),
|
|
249
|
+
style: ye([{ "--chip-height": k.value.height }, b(Pe)]),
|
|
250
|
+
"data-size": b(E),
|
|
251
|
+
"data-multiple": r.multiple ? "" : void 0,
|
|
252
|
+
"data-open": L.value ? "" : void 0,
|
|
253
|
+
onFocusin: t[3] ||= (e) => R.value = !0,
|
|
254
|
+
onFocusout: t[4] ||= (...e) => b(nt) && b(nt)(...e)
|
|
255
|
+
}, [c("div", {
|
|
262
256
|
class: "v-select-control",
|
|
263
257
|
onMousedown: ut,
|
|
264
258
|
onClick: dt
|
|
265
|
-
}, [
|
|
266
|
-
label:
|
|
267
|
-
hint:
|
|
268
|
-
error:
|
|
269
|
-
required:
|
|
270
|
-
"hide-label":
|
|
271
|
-
"label-position":
|
|
272
|
-
size:
|
|
273
|
-
compact:
|
|
274
|
-
invalid:
|
|
275
|
-
disabled:
|
|
276
|
-
readonly:
|
|
277
|
-
"icon-start":
|
|
278
|
-
"icon-start-label":
|
|
279
|
-
clearable:
|
|
259
|
+
}, [u(se, m({ class: ["v-input-end-pinned", { "v-input-chips": r.multiple && !Qe.value }] }, ze.value, {
|
|
260
|
+
label: r.label,
|
|
261
|
+
hint: r.hint,
|
|
262
|
+
error: r.error,
|
|
263
|
+
required: r.required,
|
|
264
|
+
"hide-label": r.hideLabel,
|
|
265
|
+
"label-position": r.labelPosition,
|
|
266
|
+
size: b(E),
|
|
267
|
+
compact: b(D),
|
|
268
|
+
invalid: r.invalid || W.value,
|
|
269
|
+
disabled: b(O),
|
|
270
|
+
readonly: r.readonly,
|
|
271
|
+
"icon-start": r.iconStart,
|
|
272
|
+
"icon-start-label": r.iconStartLabel,
|
|
273
|
+
clearable: r.clearable,
|
|
280
274
|
"clear-visible": et.value,
|
|
281
275
|
"clear-label": Me.value,
|
|
282
276
|
onClear: at
|
|
283
|
-
}),
|
|
284
|
-
control:
|
|
277
|
+
}), l({
|
|
278
|
+
control: S(({ controlProps: e }) => [c("button", m({
|
|
285
279
|
ref_key: "triggerEl",
|
|
286
|
-
ref:
|
|
280
|
+
ref: N,
|
|
287
281
|
type: "button",
|
|
288
282
|
role: "combobox",
|
|
289
|
-
"aria-expanded":
|
|
290
|
-
"aria-controls":
|
|
291
|
-
"aria-activedescendant":
|
|
292
|
-
"aria-required":
|
|
293
|
-
"aria-readonly":
|
|
283
|
+
"aria-expanded": L.value,
|
|
284
|
+
"aria-controls": b(I),
|
|
285
|
+
"aria-activedescendant": L.value && b(U) >= 0 ? b(He)(b(U)) : void 0,
|
|
286
|
+
"aria-required": r.required || void 0,
|
|
287
|
+
"aria-readonly": r.readonly || void 0
|
|
294
288
|
}, e, {
|
|
295
289
|
class: "v-select-trigger",
|
|
296
290
|
onClick: tt,
|
|
297
291
|
onKeydown: lt
|
|
298
|
-
}), [
|
|
292
|
+
}), [Ze.value ? (g(), s("span", {
|
|
299
293
|
key: 0,
|
|
300
|
-
class: ve(["v-select-value", { "v-visually-hidden":
|
|
301
|
-
},
|
|
294
|
+
class: ve(["v-select-value", { "v-visually-hidden": r.multiple }])
|
|
295
|
+
}, y(Ze.value), 3)) : r.placeholder ? (g(), s("span", De, y(r.placeholder), 1)) : o("", !0)], 16, Ee), c("select", m({
|
|
302
296
|
ref_key: "nativeEl",
|
|
303
|
-
ref:
|
|
304
|
-
},
|
|
297
|
+
ref: P
|
|
298
|
+
}, Le.value, {
|
|
305
299
|
class: "v-select-native v-hidden-input",
|
|
306
300
|
tabindex: "-1",
|
|
307
301
|
"aria-hidden": "true",
|
|
308
|
-
multiple:
|
|
309
|
-
required:
|
|
310
|
-
disabled:
|
|
302
|
+
multiple: r.multiple || void 0,
|
|
303
|
+
required: r.required || void 0,
|
|
304
|
+
disabled: b(O) || void 0,
|
|
311
305
|
onChange: pt,
|
|
312
|
-
onFocus: t[0] ||= (e) =>
|
|
313
|
-
onInvalid: t[1] ||= (e) =>
|
|
314
|
-
}), [
|
|
306
|
+
onFocus: t[0] ||= (e) => N.value?.focus(),
|
|
307
|
+
onInvalid: t[1] ||= (e) => W.value = !0
|
|
308
|
+
}), [r.multiple ? o("", !0) : (g(), s("option", ke)), (g(!0), s(ge, null, Se(b(B), (e, t) => (g(), s("option", {
|
|
315
309
|
key: t,
|
|
316
310
|
value: String(e.value),
|
|
317
311
|
disabled: e.disabled
|
|
318
|
-
},
|
|
319
|
-
end:
|
|
312
|
+
}, y(e.label), 9, Ae))), 128))], 16, Oe)]),
|
|
313
|
+
end: S(() => [r.loading ? (g(), a(n, {
|
|
320
314
|
key: 0,
|
|
321
315
|
class: "v-select-spinner v-input-icon-end",
|
|
322
|
-
label:
|
|
323
|
-
}, null, 8, ["label"])) : (
|
|
316
|
+
label: r.loadingText
|
|
317
|
+
}, null, 8, ["label"])) : (g(), a(le, {
|
|
324
318
|
key: 1,
|
|
325
|
-
icon:
|
|
326
|
-
open:
|
|
319
|
+
icon: r.expandIcon,
|
|
320
|
+
open: L.value
|
|
327
321
|
}, null, 8, ["icon", "open"]))]),
|
|
328
322
|
_: 2
|
|
329
|
-
}, [
|
|
323
|
+
}, [r.multiple || e.$slots.start ? {
|
|
330
324
|
name: "start",
|
|
331
|
-
fn:
|
|
325
|
+
fn: S(() => [r.multiple ? (g(), a(de, {
|
|
332
326
|
key: 0,
|
|
333
|
-
values:
|
|
334
|
-
display:
|
|
335
|
-
max:
|
|
327
|
+
values: z.value,
|
|
328
|
+
display: r.display,
|
|
329
|
+
max: r.max,
|
|
336
330
|
collapsed: $e.value,
|
|
337
|
-
"overflow-text":
|
|
338
|
-
scale:
|
|
339
|
-
removable: !
|
|
340
|
-
disabled:
|
|
331
|
+
"overflow-text": r.overflowText,
|
|
332
|
+
scale: k.value,
|
|
333
|
+
removable: !r.readonly,
|
|
334
|
+
disabled: b(O),
|
|
341
335
|
"hide-text": "",
|
|
342
|
-
"label-of":
|
|
343
|
-
"option-of":
|
|
336
|
+
"label-of": b(H),
|
|
337
|
+
"option-of": b(Be),
|
|
344
338
|
onRemove: it
|
|
345
|
-
},
|
|
339
|
+
}, l({ _: 2 }, [e.$slots.chip ? {
|
|
346
340
|
name: "chip",
|
|
347
|
-
fn:
|
|
341
|
+
fn: S((t) => [v(e.$slots, "chip", h(f(t)))]),
|
|
348
342
|
key: "0"
|
|
349
343
|
} : void 0, e.$slots.overflow ? {
|
|
350
344
|
name: "overflow",
|
|
351
|
-
fn:
|
|
345
|
+
fn: S((t) => [v(e.$slots, "overflow", h(f(t)))]),
|
|
352
346
|
key: "1"
|
|
353
347
|
} : void 0]), 1032, [
|
|
354
348
|
"values",
|
|
@@ -361,11 +355,11 @@ var Te = [
|
|
|
361
355
|
"disabled",
|
|
362
356
|
"label-of",
|
|
363
357
|
"option-of"
|
|
364
|
-
])) :
|
|
358
|
+
])) : o("", !0), v(e.$slots, "start")]),
|
|
365
359
|
key: "0"
|
|
366
360
|
} : void 0, e.$slots["value-end"] ? {
|
|
367
361
|
name: "value-end",
|
|
368
|
-
fn:
|
|
362
|
+
fn: S(() => [v(e.$slots, "value-end")]),
|
|
369
363
|
key: "1"
|
|
370
364
|
} : void 0]), 1040, [
|
|
371
365
|
"class",
|
|
@@ -385,25 +379,25 @@ var Te = [
|
|
|
385
379
|
"clearable",
|
|
386
380
|
"clear-visible",
|
|
387
381
|
"clear-label"
|
|
388
|
-
])], 32),
|
|
389
|
-
id:
|
|
382
|
+
])], 32), u(ue, {
|
|
383
|
+
id: b(I),
|
|
390
384
|
ref_key: "panelRef",
|
|
391
|
-
ref:
|
|
392
|
-
open:
|
|
393
|
-
"onUpdate:open": t[2] ||= (e) =>
|
|
385
|
+
ref: F,
|
|
386
|
+
open: L.value,
|
|
387
|
+
"onUpdate:open": t[2] ||= (e) => L.value = e,
|
|
394
388
|
anchor: "--select-anchor",
|
|
395
|
-
placement:
|
|
389
|
+
placement: r.placement,
|
|
396
390
|
class: "v-select-panel",
|
|
397
|
-
size:
|
|
398
|
-
compact:
|
|
399
|
-
multiple:
|
|
400
|
-
blocks:
|
|
401
|
-
measure:
|
|
391
|
+
size: b(E),
|
|
392
|
+
compact: b(D),
|
|
393
|
+
multiple: r.multiple,
|
|
394
|
+
blocks: b(Ye),
|
|
395
|
+
measure: b(Xe),
|
|
402
396
|
onSelect: rt,
|
|
403
|
-
onHighlight:
|
|
404
|
-
},
|
|
397
|
+
onHighlight: b(Je)
|
|
398
|
+
}, l({ _: 2 }, [e.$slots.option ? {
|
|
405
399
|
name: "option",
|
|
406
|
-
fn:
|
|
400
|
+
fn: S((t) => [v(e.$slots, "option", h(f(t)))]),
|
|
407
401
|
key: "0"
|
|
408
402
|
} : void 0]), 1032, [
|
|
409
403
|
"id",
|
|
@@ -419,6 +413,6 @@ var Te = [
|
|
|
419
413
|
}
|
|
420
414
|
});
|
|
421
415
|
//#endregion
|
|
422
|
-
export {
|
|
416
|
+
export { w as default };
|
|
423
417
|
|
|
424
418
|
//# sourceMappingURL=VSelect.vue_vue_type_script_setup_true_lang.js.map
|