vectis-ui 0.16.0 → 0.17.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.
Files changed (77) hide show
  1. package/dist/components/VColorPicker/color.js +2 -2
  2. package/dist/components/VColorPicker/color.js.map +1 -1
  3. package/dist/components/VCombobox/VCombobox.d.ts +10 -0
  4. package/dist/components/VCombobox/VCombobox.js.map +1 -1
  5. package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js +177 -159
  6. package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  7. package/dist/components/VDataTable/VDataTable.css +1 -1
  8. package/dist/components/VDataTable/VDataTable.js.map +1 -1
  9. package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js +1 -1
  10. package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  11. package/dist/components/VDatePicker/VDatePicker.css +1 -1
  12. package/dist/components/VDatePicker/VDatePicker.js.map +1 -1
  13. package/dist/components/VDatePicker/VDatePicker.vue_vue_type_script_setup_true_lang.js +3 -2
  14. package/dist/components/VDatePicker/VDatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  15. package/dist/components/VDialog/VDialog.css +1 -1
  16. package/dist/components/VDialog/VDialog.js.map +1 -1
  17. package/dist/components/VDialog/VDialog.vue_vue_type_script_setup_true_lang.js +4 -2
  18. package/dist/components/VDialog/VDialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
  19. package/dist/components/VDrawer/VDrawer.css +1 -1
  20. package/dist/components/VDrawer/VDrawer.js.map +1 -1
  21. package/dist/components/VDrawer/VDrawer.vue_vue_type_script_setup_true_lang.js +4 -2
  22. package/dist/components/VDrawer/VDrawer.vue_vue_type_script_setup_true_lang.js.map +1 -1
  23. package/dist/components/VMeter/VMeter.css +1 -1
  24. package/dist/components/VMeter/VMeter.d.ts +24 -8
  25. package/dist/components/VMeter/VMeter.js.map +1 -1
  26. package/dist/components/VMeter/VMeter.vue_vue_type_script_setup_true_lang.js +65 -48
  27. package/dist/components/VMeter/VMeter.vue_vue_type_script_setup_true_lang.js.map +1 -1
  28. package/dist/components/VMeterGroup/VMeterGroup.css +2 -0
  29. package/dist/components/VMeterGroup/VMeterGroup.d.ts +101 -0
  30. package/dist/components/VMeterGroup/VMeterGroup.js +9 -0
  31. package/dist/components/VMeterGroup/VMeterGroup.js.map +1 -0
  32. package/dist/components/VMeterGroup/VMeterGroup.vue_vue_type_script_setup_true_lang.js +117 -0
  33. package/dist/components/VMeterGroup/VMeterGroup.vue_vue_type_script_setup_true_lang.js.map +1 -0
  34. package/dist/components/VNumberInput/number.js +2 -2
  35. package/dist/components/VNumberInput/number.js.map +1 -1
  36. package/dist/components/VProgressCircular/VProgressCircular.d.ts +1 -1
  37. package/dist/components/VProgressLinear/VProgressLinear.css +1 -1
  38. package/dist/components/VProgressLinear/VProgressLinear.d.ts +12 -13
  39. package/dist/components/VProgressLinear/VProgressLinear.js.map +1 -1
  40. package/dist/components/VProgressLinear/VProgressLinear.vue_vue_type_script_setup_true_lang.js +65 -48
  41. package/dist/components/VProgressLinear/VProgressLinear.vue_vue_type_script_setup_true_lang.js.map +1 -1
  42. package/dist/components/VSeparator/VSeparator.css +1 -1
  43. package/dist/components/VSeparator/VSeparator.d.ts +42 -2
  44. package/dist/components/VSeparator/VSeparator.js.map +1 -1
  45. package/dist/components/VSeparator/VSeparator.vue_vue_type_script_setup_true_lang.js +50 -9
  46. package/dist/components/VSeparator/VSeparator.vue_vue_type_script_setup_true_lang.js.map +1 -1
  47. package/dist/components/VSideNavigation/VSideNavigation.d.ts +6 -0
  48. package/dist/components/VSideNavigation/VSideNavigation.js.map +1 -1
  49. package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js +11 -2
  50. package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js.map +1 -1
  51. package/dist/components/VSideNavigation/VSideNavigationItem.css +1 -1
  52. package/dist/components/VSideNavigation/VSideNavigationItem.js.map +1 -1
  53. package/dist/components/VSideNavigation/VSideNavigationItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  54. package/dist/components/VSnackbar/state.js +2 -3
  55. package/dist/components/VSnackbar/state.js.map +1 -1
  56. package/dist/components/VToast/state.js +2 -3
  57. package/dist/components/VToast/state.js.map +1 -1
  58. package/dist/composables/useAriaLabel.d.ts +5 -0
  59. package/dist/composables/useAriaLabel.js +5 -1
  60. package/dist/composables/useAriaLabel.js.map +1 -1
  61. package/dist/composables/useListbox.d.ts +2 -0
  62. package/dist/composables/useListbox.js +71 -68
  63. package/dist/composables/useListbox.js.map +1 -1
  64. package/dist/i18n/en.js +3 -1
  65. package/dist/i18n/en.js.map +1 -1
  66. package/dist/i18n/fr.js +3 -1
  67. package/dist/i18n/fr.js.map +1 -1
  68. package/dist/i18n/types.d.ts +6 -0
  69. package/dist/index.d.ts +5 -3
  70. package/dist/index.js +21 -20
  71. package/dist/styles.css +1 -1
  72. package/dist/tokens/index.d.ts +10 -5
  73. package/dist/tokens/semantic.d.ts +10 -5
  74. package/dist/tokens/semantic.js +10 -5
  75. package/dist/tokens/semantic.js.map +1 -1
  76. package/dist/tokens.json +39 -14
  77. package/package.json +3 -3
@@ -3,24 +3,24 @@ import { useControlShape as t } from "../../composables/useControlShape.js";
3
3
  import n from "../VSpinner/VSpinner.js";
4
4
  import { useRootAttrs as r } from "../../composables/useRootAttrs.js";
5
5
  import { expand_more as i } from "../VIcon/icons/expand_more.js";
6
- import { createNormalizedCache as ee, normalizeText as te } from "../../utils/text.js";
7
- import { toggleValue as ne } from "../../utils/array.js";
8
- import { iconStartListener as re } from "../../composables/useIconClickHandlers.js";
9
- import { canClear as ie } from "../../composables/useClearable.js";
10
- import { inputGroupKey as ae } from "../VInput/context.js";
11
- import oe from "../VInput/VInput.js";
12
- import se from "../VEmptyState/VEmptyState.js";
13
- import { inbox as ce } from "../VIcon/icons/inbox.js";
14
- import { search_off as le } from "../VIcon/icons/search_off.js";
15
- import ue from "../VListbox/VListboxChevron.js";
16
- import de from "../VListbox/VListboxPanel.js";
17
- import fe from "../VListbox/VListboxValues.js";
18
- import { chipScaleFor as pe } from "../../utils/chip.js";
19
- import { useFocusoutDismiss as me } from "../../composables/useFocusoutDismiss.js";
20
- import { useInfiniteScroll as he } from "../../composables/useInfiniteScroll.js";
21
- import { selectionOf as ge, useListbox as _e } from "../../composables/useListbox.js";
6
+ import { createNormalizedCache as ee, normalizeText as a } from "../../utils/text.js";
7
+ import { toggleValue as te } from "../../utils/array.js";
8
+ import { iconStartListener as ne } from "../../composables/useIconClickHandlers.js";
9
+ import { canClear as re } from "../../composables/useClearable.js";
10
+ import { inputGroupKey as ie } from "../VInput/context.js";
11
+ import ae from "../VInput/VInput.js";
12
+ import oe from "../VEmptyState/VEmptyState.js";
13
+ import { inbox as se } from "../VIcon/icons/inbox.js";
14
+ import { search_off as ce } from "../VIcon/icons/search_off.js";
15
+ import le from "../VListbox/VListboxChevron.js";
16
+ import ue from "../VListbox/VListboxPanel.js";
17
+ import de from "../VListbox/VListboxValues.js";
18
+ import { chipScaleFor as fe } from "../../utils/chip.js";
19
+ import { useFocusoutDismiss as pe } from "../../composables/useFocusoutDismiss.js";
20
+ import { useInfiniteScroll as me } from "../../composables/useInfiniteScroll.js";
21
+ import { optionsOf as he, selectionOf as ge, useListbox as _e } from "../../composables/useListbox.js";
22
22
  import { useDebouncedSearch as ve } from "../../composables/useDebouncedSearch.js";
23
- import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createVNode as d, defineComponent as f, guardReactiveProps as p, inject as ye, mergeModels as m, mergeProps as be, normalizeClass as xe, normalizeProps as h, normalizeStyle as Se, openBlock as g, ref as _, renderSlot as v, toDisplayString as Ce, unref as y, useId as we, useModel as Te, watch as b, withCtx as x } from "vue";
23
+ import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createVNode as f, defineComponent as p, guardReactiveProps as m, inject as ye, mergeModels as h, mergeProps as be, normalizeClass as xe, normalizeProps as g, normalizeStyle as Se, openBlock as _, ref as v, renderSlot as y, toDisplayString as Ce, unref as b, useId as we, useModel as Te, watch as x, withCtx as S } from "vue";
24
24
  //#region src/components/VCombobox/VCombobox.vue?vue&type=script&setup=true&lang.ts
25
25
  var Ee = [
26
26
  "data-size",
@@ -38,10 +38,10 @@ var Ee = [
38
38
  }, ke = {
39
39
  class: "v-visually-hidden",
40
40
  role: "status"
41
- }, S = /*@__PURE__*/ f({
41
+ }, C = /*@__PURE__*/ p({
42
42
  inheritAttrs: !1,
43
43
  __name: "VCombobox",
44
- props: /*@__PURE__*/ m({
44
+ props: /*@__PURE__*/ h({
45
45
  options: {},
46
46
  multiple: {
47
47
  type: Boolean,
@@ -92,6 +92,10 @@ var Ee = [
92
92
  type: [Boolean, Function],
93
93
  default: !0
94
94
  },
95
+ creatable: {
96
+ type: Boolean,
97
+ default: !1
98
+ },
95
99
  searchDebounce: { default: 250 },
96
100
  loading: {
97
101
  type: Boolean,
@@ -111,149 +115,164 @@ var Ee = [
111
115
  modelValue: { default: "" },
112
116
  modelModifiers: {}
113
117
  }),
114
- emits: /*@__PURE__*/ m([
118
+ emits: /*@__PURE__*/ h([
115
119
  "search",
116
120
  "load-more",
117
121
  "clear",
122
+ "create",
118
123
  "click:icon-start"
119
124
  ], ["update:modelValue"]),
120
- setup(i, { expose: f, emit: m }) {
121
- let S = i, C = e(), w = a(() => S.emptyText ?? C.value.combobox.empty), Ae = a(() => S.clearLabel ?? C.value.combobox.clear), T = a(() => S.loadingText ?? C.value.common.loading), E = m, je = ye(ae, null), { size: D, disabled: O } = t(S, je), k = a(() => pe(D.value)), A = Te(i, "modelValue"), { rootClass: Me, rootStyle: Ne, forwardedAttrs: Pe } = r(), Fe = re((e) => E("click:icon-start", e)), Ie = a(() => ({
125
+ setup(i, { expose: p, emit: h }) {
126
+ let C = i, w = e(), T = o(() => C.emptyText ?? w.value.combobox.empty), Ae = o(() => C.clearLabel ?? w.value.combobox.clear), E = o(() => C.loadingText ?? w.value.common.loading), D = h, je = ye(ie, null), { size: O, disabled: k } = t(C, je), A = o(() => fe(O.value)), j = Te(i, "modelValue"), { rootClass: Me, rootStyle: Ne, forwardedAttrs: Pe } = r(), Fe = ne((e) => D("click:icon-start", e)), Ie = o(() => ({
122
127
  ...Pe.value,
123
128
  ...Fe
124
- })), j = _(null), M = _(null), N = we(), P = _(!1), F = _(""), I = _(!1), L = _(!1), R = a(() => ge(A.value, S.multiple)), Le = ee(), Re = (e) => Le(e, e.label), z = a(() => L.value ? F.value.trim() : ""), B = _(null), V = _(null), { allOptions: H, visible: U, optionOf: ze, labelOf: W, remember: Be, activeIndex: G, optionId: Ve, highlightFirst: K, highlightSelected: He, move: q, hover: Ue, blocks: We, measureRow: Ge } = _e({
125
- items: () => S.options,
129
+ })), M = v(null), N = v(null), P = we(), F = v(!1), I = v(""), L = v(!1), R = v(!1), z = o(() => ge(j.value, C.multiple)), Le = ee(), B = (e) => Le(e, e.label), V = o(() => R.value ? I.value.trim() : ""), H = v(null), U = v(null), W = o(() => he(C.options)), Re = `${P}-create`, G = o(() => {
130
+ let e = H.value ?? V.value;
131
+ if (!C.creatable || !e) return null;
132
+ let t = a(e);
133
+ return W.value.some((e) => B(e) === t) || z.value.some((e) => typeof e == "string" && a(e) === t) ? null : {
134
+ value: Re,
135
+ label: w.value.combobox.create(e)
136
+ };
137
+ }), { allOptions: ze, visible: K, optionOf: Be, labelOf: Ve, remember: He, activeIndex: q, optionId: Ue, highlightFirst: We, highlightSelected: Ge, move: Ke, hover: qe, blocks: Je, measureRow: Ye } = _e({
138
+ items: () => G.value ? [...C.options, G.value] : C.options,
126
139
  filter: (e) => {
127
- let t = S.filter;
140
+ let t = C.filter;
128
141
  if (t === !1) return e;
129
- let n = B.value ?? z.value;
142
+ let n = H.value ?? V.value;
130
143
  if (!n) return e;
131
- if (typeof t == "function") return e.filter((e) => t(e, n));
132
- let r = te(n);
133
- return e.filter((e) => Re(e).includes(r));
144
+ let r = a(n), i = typeof t == "function" ? (e) => t(e, n) : (e) => B(e).includes(r);
145
+ return e.filter((e) => e === G.value || i(e));
134
146
  },
135
- selected: () => R.value,
136
- open: () => P.value,
137
- id: N,
138
- panelEl: () => V.value?.el ?? null,
139
- virtual: () => S.virtual,
140
- hasMore: () => S.hasMore,
141
- size: () => D.value
142
- }), Ke = a(() => !P.value || U.value.length > 0 ? "" : S.loading ? T.value : w.value), { request: J, cancel: qe } = ve({
143
- delay: () => S.searchDebounce,
144
- active: () => P.value,
145
- report: (e) => E("search", e)
147
+ selected: () => z.value,
148
+ open: () => F.value,
149
+ id: P,
150
+ panelEl: () => U.value?.el ?? null,
151
+ virtual: () => C.virtual,
152
+ hasMore: () => C.hasMore,
153
+ size: () => O.value
154
+ }), J = o(() => F.value && (!C.creatable || K.value.length > 0 || C.loading)), Xe = o(() => !J.value || K.value.length > 0 ? "" : C.loading ? E.value : T.value), { request: Ze, cancel: Qe } = ve({
155
+ delay: () => C.searchDebounce,
156
+ active: () => F.value,
157
+ report: (e) => D("search", e)
146
158
  });
147
- b(z, (e) => {
148
- P.value && (K(), Xe.restart(), J(e));
159
+ x(V, (e) => {
160
+ F.value && (We(), rt.restart(), Ze(e));
149
161
  });
150
162
  function Y() {
151
- let e = S.multiple ? void 0 : R.value[0];
152
- return e === void 0 ? "" : W(e);
163
+ let e = C.multiple ? void 0 : z.value[0];
164
+ return e === void 0 ? "" : Ve(e);
153
165
  }
154
- F.value = Y(), b([H, R], () => {
155
- S.multiple || P.value || L.value || (F.value = Y());
166
+ I.value = Y(), x([ze, z], () => {
167
+ C.multiple || F.value || R.value || (I.value = Y());
156
168
  }, { flush: "post" });
157
- let X = a(() => S.multiple && S.display === "text"), Z = a(() => S.multiple && R.value.length > 0 && (!I.value || X.value && S.readonly)), Je = a(() => ie(S, O.value, R.value.length > 0 || F.value.length > 0));
158
- function Q() {
159
- O.value || S.readonly || P.value || (B.value = null, P.value = !0, He(), J(z.value, !0));
169
+ let $e = o(() => C.multiple && C.display === "text"), et = o(() => C.multiple && z.value.length > 0 && (!L.value || $e.value && C.readonly)), tt = o(() => re(C, k.value, z.value.length > 0 || I.value.length > 0));
170
+ function X() {
171
+ k.value || C.readonly || F.value || (H.value = null, F.value = !0, Ge(), Ze(V.value, !0));
160
172
  }
161
- let Ye = _(null), Xe = he({
162
- sentinelEl: Ye,
173
+ let nt = v(null), rt = me({
174
+ sentinelEl: nt,
163
175
  root: (e) => e.closest("[role=\"listbox\"]"),
164
- canLoad: () => P.value && S.hasMore && !S.loading,
165
- loaded: () => H.value,
166
- onLoadMore: () => E("load-more")
176
+ canLoad: () => F.value && C.hasMore && !C.loading,
177
+ loaded: () => W.value,
178
+ onLoadMore: () => D("load-more")
167
179
  });
168
- function $(e = Y()) {
169
- P.value && (qe(), Xe.reset(), B.value = z.value, P.value = !1, G.value = -1, L.value = !1, F.value = e);
180
+ function Z(e = Y()) {
181
+ F.value && (Qe(), rt.reset(), H.value = V.value, F.value = !1, q.value = -1, R.value = !1, I.value = e);
170
182
  }
171
- b(() => S.readonly || O.value, (e) => {
172
- e && $();
183
+ x(() => C.readonly || k.value, (e) => {
184
+ e && Z();
173
185
  });
174
- let Ze = me(j, () => $());
175
- function Qe() {
176
- L.value = !0, Q();
186
+ let it = pe(M, () => Z());
187
+ function at() {
188
+ R.value = !0, X();
177
189
  }
178
- function $e() {
179
- !S.multiple && F.value && M.value?.select();
190
+ function Q() {
191
+ !C.multiple && I.value && N.value?.select();
180
192
  }
181
- function et() {
182
- I.value = !0, $e();
193
+ function ot() {
194
+ L.value = !0, Q();
183
195
  }
184
- let tt = (e) => e.target instanceof Element && e.target.closest(".v-combobox-chevron, .v-combobox-spinner") !== null;
185
- function nt(e) {
186
- tt(e) && e.preventDefault();
196
+ let st = (e) => e.target instanceof Element && e.target.closest(".v-combobox-chevron, .v-combobox-spinner") !== null;
197
+ function ct(e) {
198
+ st(e) && e.preventDefault();
187
199
  }
188
- function rt(e) {
189
- O.value || (M.value?.focus(), P.value && tt(e) ? $() : (Q(), $e()));
200
+ function lt(e) {
201
+ k.value || (N.value?.focus(), F.value && st(e) ? Z() : (X(), Q()));
190
202
  }
191
- function it(e) {
192
- e.disabled || S.readonly || O.value || (Be(e), S.multiple ? (L.value = !1, A.value = ne(R.value, e.value), F.value = "", M.value?.focus()) : (A.value = e.value, $(e.label)));
203
+ function ut(e) {
204
+ e.disabled || C.readonly || k.value || (e.value === Re ? dt() : (He(e), C.multiple ? (R.value = !1, j.value = te(z.value, e.value), I.value = "", N.value?.focus()) : (j.value = e.value, Z(e.label))));
193
205
  }
194
- function at(e) {
195
- !S.multiple || S.readonly || O.value || (A.value = R.value.filter((t) => t !== e), M.value?.focus());
206
+ function dt() {
207
+ let e = V.value;
208
+ He({
209
+ value: e,
210
+ label: e
211
+ }), C.multiple ? (R.value = !1, j.value = [...z.value, e], I.value = "", N.value?.focus()) : (j.value = e, Z(e)), D("create", e);
196
212
  }
197
- function ot() {
198
- A.value = S.multiple ? [] : "", L.value = !1, P.value ? K() : G.value = -1, E("clear");
213
+ function $(e) {
214
+ !C.multiple || C.readonly || k.value || (j.value = z.value.filter((t) => t !== e), N.value?.focus());
215
+ }
216
+ function ft() {
217
+ j.value = C.multiple ? [] : "", R.value = !1, F.value ? We() : q.value = -1, D("clear");
199
218
  }
200
- function st(e) {
219
+ function pt(e) {
201
220
  switch (e.key) {
202
221
  case "ArrowDown":
203
- e.preventDefault(), P.value ? q(1) : Q();
222
+ e.preventDefault(), F.value ? Ke(1) : X();
204
223
  break;
205
224
  case "ArrowUp":
206
- e.preventDefault(), P.value ? q(-1) : Q();
225
+ e.preventDefault(), F.value ? Ke(-1) : X();
207
226
  break;
208
227
  case "Enter":
209
- if (P.value && G.value >= 0) {
228
+ if (F.value && q.value >= 0) {
210
229
  e.preventDefault();
211
- let t = U.value[G.value];
212
- t && it(t);
230
+ let t = K.value[q.value];
231
+ t && ut(t);
213
232
  }
214
233
  break;
215
234
  case "Escape":
216
- P.value && (e.preventDefault(), $());
235
+ J.value && e.preventDefault(), Z();
217
236
  break;
218
237
  case "Tab":
219
- $();
238
+ Z();
220
239
  break;
221
- case "Backspace": if (S.multiple && !F.value) {
222
- let e = R.value.at(-1);
223
- e !== void 0 && at(e);
240
+ case "Backspace": if (C.multiple && !I.value) {
241
+ let e = z.value.at(-1);
242
+ e !== void 0 && $(e);
224
243
  }
225
244
  }
226
245
  }
227
- return f({
228
- focus: (e) => M.value?.focus(e),
229
- select: () => M.value?.select(),
230
- el: a(() => M.value?.el ?? null)
231
- }), (e, t) => (g(), c("div", {
246
+ return p({
247
+ focus: (e) => N.value?.focus(e),
248
+ select: () => N.value?.select(),
249
+ el: o(() => N.value?.el ?? null)
250
+ }), (e, t) => (_(), l("div", {
232
251
  ref_key: "rootEl",
233
- ref: j,
234
- class: xe(["v-combobox", y(Me)]),
235
- style: Se([{ "--chip-height": k.value.height }, y(Ne)]),
236
- "data-size": y(D),
252
+ ref: M,
253
+ class: xe(["v-combobox", b(Me)]),
254
+ style: Se([{ "--chip-height": A.value.height }, b(Ne)]),
255
+ "data-size": b(O),
237
256
  "data-multiple": i.multiple ? "" : void 0,
238
- "data-collapsed": Z.value ? "" : void 0,
239
- "data-open": P.value ? "" : void 0,
240
- onFocusout: t[3] ||= (...e) => y(Ze) && y(Ze)(...e)
257
+ "data-collapsed": et.value ? "" : void 0,
258
+ "data-open": F.value ? "" : void 0,
259
+ onFocusout: t[2] ||= (...e) => b(it) && b(it)(...e)
241
260
  }, [
242
- l("div", {
261
+ u("div", {
243
262
  class: "v-combobox-control",
244
- onMousedown: nt,
245
- onClick: rt
246
- }, [d(oe, be({
263
+ onMousedown: ct,
264
+ onClick: lt
265
+ }, [f(ae, be({
247
266
  ref_key: "inputRef",
248
- ref: M,
249
- modelValue: F.value,
250
- "onUpdate:modelValue": t[0] ||= (e) => F.value = e,
251
- class: ["v-input-end-pinned", { "v-input-chips": i.multiple && !X.value }],
267
+ ref: N,
268
+ modelValue: I.value,
269
+ "onUpdate:modelValue": t[0] ||= (e) => I.value = e,
270
+ class: ["v-input-end-pinned", { "v-input-chips": i.multiple && !$e.value }],
252
271
  role: "combobox",
253
272
  "aria-haspopup": "listbox",
254
273
  "aria-autocomplete": "list",
255
- "aria-expanded": P.value,
256
- "aria-controls": y(N)
274
+ "aria-expanded": J.value,
275
+ "aria-controls": b(P)
257
276
  }, Ie.value, {
258
277
  label: i.label,
259
278
  hint: i.hint,
@@ -261,56 +280,56 @@ var Ee = [
261
280
  required: i.required,
262
281
  "hide-label": i.hideLabel,
263
282
  "label-position": i.labelPosition,
264
- size: y(D),
283
+ size: b(O),
265
284
  invalid: i.invalid,
266
- disabled: y(O),
285
+ disabled: b(k),
267
286
  readonly: i.readonly,
268
287
  "icon-start": i.iconStart,
269
288
  "icon-start-label": i.iconStartLabel,
270
289
  clearable: i.clearable,
271
- "clear-visible": Je.value,
290
+ "clear-visible": tt.value,
272
291
  "clear-label": Ae.value,
273
- placeholder: R.value.length === 0 ? i.placeholder : void 0,
274
- "aria-activedescendant": P.value && y(G) >= 0 ? y(Ve)(y(G)) : void 0,
275
- onInput: Qe,
276
- onKeydown: st,
277
- onFocus: et,
278
- onBlur: t[1] ||= (e) => I.value = !1,
279
- onClear: ot
280
- }), u({
281
- end: x(() => [i.loading ? (g(), o(n, {
292
+ placeholder: z.value.length === 0 ? i.placeholder : void 0,
293
+ "aria-activedescendant": J.value && b(q) >= 0 ? b(Ue)(b(q)) : void 0,
294
+ onInput: at,
295
+ onKeydown: pt,
296
+ onFocus: ot,
297
+ onBlur: t[1] ||= (e) => L.value = !1,
298
+ onClear: ft
299
+ }), d({
300
+ end: S(() => [i.loading ? (_(), s(n, {
282
301
  key: 0,
283
302
  class: "v-combobox-spinner v-input-icon-end",
284
303
  "aria-hidden": "true"
285
- })) : (g(), o(ue, {
304
+ })) : !i.creatable || W.value.length > 0 ? (_(), s(le, {
286
305
  key: 1,
287
306
  class: "v-combobox-chevron",
288
307
  icon: i.expandIcon,
289
- open: P.value
290
- }, null, 8, ["icon", "open"]))]),
308
+ open: J.value
309
+ }, null, 8, ["icon", "open"])) : c("", !0)]),
291
310
  _: 2
292
311
  }, [i.multiple || e.$slots.start ? {
293
312
  name: "start",
294
- fn: x(() => [i.multiple ? (g(), o(fe, {
313
+ fn: S(() => [i.multiple ? (_(), s(de, {
295
314
  key: 0,
296
- values: R.value,
315
+ values: z.value,
297
316
  display: i.display,
298
317
  max: i.max,
299
- collapsed: Z.value,
318
+ collapsed: et.value,
300
319
  "overflow-text": i.overflowText,
301
- scale: k.value,
320
+ scale: A.value,
302
321
  removable: !i.readonly,
303
- disabled: y(O),
304
- "label-of": y(W),
305
- "option-of": y(ze),
306
- onRemove: at
307
- }, u({ _: 2 }, [e.$slots.chip ? {
322
+ disabled: b(k),
323
+ "label-of": b(Ve),
324
+ "option-of": b(Be),
325
+ onRemove: $
326
+ }, d({ _: 2 }, [e.$slots.chip ? {
308
327
  name: "chip",
309
- fn: x((t) => [v(e.$slots, "chip", h(p(t)))]),
328
+ fn: S((t) => [y(e.$slots, "chip", g(m(t)))]),
310
329
  key: "0"
311
330
  } : void 0, e.$slots.overflow ? {
312
331
  name: "overflow",
313
- fn: x((t) => [v(e.$slots, "overflow", h(p(t)))]),
332
+ fn: S((t) => [y(e.$slots, "overflow", g(m(t)))]),
314
333
  key: "1"
315
334
  } : void 0]), 1032, [
316
335
  "values",
@@ -323,11 +342,11 @@ var Ee = [
323
342
  "disabled",
324
343
  "label-of",
325
344
  "option-of"
326
- ])) : s("", !0), v(e.$slots, "start")]),
345
+ ])) : c("", !0), y(e.$slots, "start")]),
327
346
  key: "0"
328
347
  } : void 0, e.$slots["value-end"] ? {
329
348
  name: "value-end",
330
- fn: x(() => [v(e.$slots, "value-end")]),
349
+ fn: S(() => [y(e.$slots, "value-end")]),
331
350
  key: "1"
332
351
  } : void 0]), 1040, [
333
352
  "modelValue",
@@ -352,42 +371,41 @@ var Ee = [
352
371
  "placeholder",
353
372
  "aria-activedescendant"
354
373
  ])], 32),
355
- d(de, {
356
- id: y(N),
374
+ f(ue, {
375
+ id: b(P),
357
376
  ref_key: "panelRef",
358
- ref: V,
359
- open: P.value,
360
- "onUpdate:open": t[2] ||= (e) => P.value = e,
377
+ ref: U,
378
+ open: J.value,
361
379
  anchor: "--combobox-anchor",
362
380
  placement: i.placement,
363
381
  class: "v-combobox-panel",
364
- size: y(D),
382
+ size: b(O),
365
383
  multiple: i.multiple,
366
384
  virtual: i.virtual,
367
- blocks: y(We),
368
- measure: y(Ge),
369
- onSelect: it,
370
- onHighlight: y(Ue)
371
- }, u({
372
- default: x(() => [i.loading && y(U).length === 0 ? (g(), c("div", De, [v(e.$slots, "loading", {}, () => [d(n, { label: T.value }, null, 8, ["label"]), l("span", null, Ce(T.value), 1)])])) : y(U).length === 0 ? (g(), c("div", Oe, [v(e.$slots, "empty", { query: z.value }, () => [d(se, {
385
+ blocks: b(Je),
386
+ measure: b(Ye),
387
+ onSelect: ut,
388
+ onHighlight: b(qe)
389
+ }, d({
390
+ default: S(() => [i.loading && b(K).length === 0 ? (_(), l("div", De, [y(e.$slots, "loading", {}, () => [f(n, { label: E.value }, null, 8, ["label"]), u("span", null, Ce(E.value), 1)])])) : b(K).length === 0 && !i.creatable ? (_(), l("div", Oe, [y(e.$slots, "empty", { query: V.value }, () => [f(oe, {
373
391
  size: "sm",
374
392
  class: "v-combobox-empty",
375
- icon: z.value ? y(le) : y(ce),
376
- title: w.value
377
- }, null, 8, ["icon", "title"])])])) : s("", !0), i.hasMore ? (g(), c("div", {
393
+ icon: V.value ? b(ce) : b(se),
394
+ title: T.value
395
+ }, null, 8, ["icon", "title"])])])) : c("", !0), i.hasMore ? (_(), l("div", {
378
396
  key: 2,
379
397
  ref_key: "sentinelEl",
380
- ref: Ye,
398
+ ref: nt,
381
399
  class: "v-combobox-more",
382
400
  "aria-hidden": "true"
383
- }, [i.loading ? (g(), o(n, {
401
+ }, [i.loading ? (_(), s(n, {
384
402
  key: 0,
385
- label: T.value
386
- }, null, 8, ["label"])) : s("", !0)], 512)) : s("", !0)]),
403
+ label: E.value
404
+ }, null, 8, ["label"])) : c("", !0)], 512)) : c("", !0)]),
387
405
  _: 2
388
406
  }, [e.$slots.option ? {
389
407
  name: "option",
390
- fn: x((t) => [v(e.$slots, "option", h(p(t)))]),
408
+ fn: S((t) => [y(e.$slots, "option", g(m(t)))]),
391
409
  key: "0"
392
410
  } : void 0]), 1032, [
393
411
  "id",
@@ -400,11 +418,11 @@ var Ee = [
400
418
  "measure",
401
419
  "onHighlight"
402
420
  ]),
403
- l("span", ke, Ce(Ke.value), 1)
421
+ u("span", ke, Ce(Xe.value), 1)
404
422
  ], 46, Ee));
405
423
  }
406
424
  });
407
425
  //#endregion
408
- export { S as default };
426
+ export { C as default };
409
427
 
410
428
  //# sourceMappingURL=VCombobox.vue_vue_type_script_setup_true_lang.js.map