@volverjs/ui-vue 0.0.2 → 0.0.3-beta.2

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 (53) hide show
  1. package/auto-imports.d.ts +289 -0
  2. package/dist/components/VvTextarea/VvTextarea.es.js +231 -275
  3. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  4. package/dist/components/VvTooltip/VvTooltip.es.js +28 -0
  5. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -0
  6. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +23 -0
  7. package/dist/components/VvTooltip/index.d.ts +18 -0
  8. package/dist/components/index.es.js +874 -874
  9. package/dist/components/index.umd.js +1 -1
  10. package/dist/icons.es.js +3 -3
  11. package/dist/icons.umd.js +1 -1
  12. package/dist/index.es.js +554 -554
  13. package/dist/index.umd.js +1 -1
  14. package/dist/stories/Tooltip/Tooltip.settings.d.ts +42 -0
  15. package/dist/stories/Tooltip/Tooltip.test.d.ts +2 -0
  16. package/package.json +27 -20
  17. package/src/assets/icons/detailed.json +1 -1
  18. package/src/assets/icons/normal.json +1 -1
  19. package/src/assets/icons/simple.json +1 -1
  20. package/src/components/VvTextarea/VvTextarea.vue +1 -15
  21. package/src/components/VvTooltip/VvTooltip.vue +17 -0
  22. package/src/components/VvTooltip/index.ts +21 -0
  23. package/src/stories/Accordion/Accordion.stories.mdx +1 -1
  24. package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +1 -1
  25. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +1 -1
  26. package/src/stories/Badge/Badge.stories.mdx +1 -1
  27. package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +1 -1
  28. package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +1 -1
  29. package/src/stories/Button/Button.stories.mdx +1 -1
  30. package/src/stories/Button/ButtonModifiers.stories.mdx +2 -2
  31. package/src/stories/Button/ButtonSlots.stories.mdx +3 -3
  32. package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +1 -1
  33. package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +1 -1
  34. package/src/stories/Card/Card.stories.mdx +1 -1
  35. package/src/stories/Card/CardSlots.stories.mdx +1 -1
  36. package/src/stories/Checkbox/Checkbox.stories.mdx +1 -1
  37. package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +1 -1
  38. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +1 -1
  39. package/src/stories/Combobox/Combobox.stories.mdx +1 -1
  40. package/src/stories/Dialog/Dialog.stories.mdx +1 -1
  41. package/src/stories/Dropdown/Dropdown.stories.mdx +1 -1
  42. package/src/stories/Icon/Icon.stories.mdx +1 -1
  43. package/src/stories/Icon/IconsCollection.stories.mdx +1 -1
  44. package/src/stories/InputText/InputText.stories.mdx +1 -1
  45. package/src/stories/Progress/Progress.stories.mdx +1 -1
  46. package/src/stories/Radio/Radio.stories.mdx +1 -1
  47. package/src/stories/RadioGroup/RadioGroup.stories.mdx +1 -1
  48. package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +1 -1
  49. package/src/stories/Select/Select.stories.mdx +1 -1
  50. package/src/stories/Textarea/Textarea.stories.mdx +1 -1
  51. package/src/stories/Tooltip/Tooltip.settings.ts +26 -0
  52. package/src/stories/Tooltip/Tooltip.stories.mdx +98 -0
  53. package/src/stories/Tooltip/Tooltip.test.ts +49 -0
@@ -1,57 +1,57 @@
1
- import { unref as a, computed as r, inject as ze, toRef as Ot, toRefs as F, defineComponent as D, useAttrs as rt, ref as G, openBlock as m, createElementBlock as _, normalizeClass as K, withModifiers as qe, createElementVNode as R, renderSlot as C, normalizeProps as W, guardReactiveProps as te, createTextVNode as X, toDisplayString as L, isRef as $e, provide as Rt, watchEffect as Xe, Fragment as he, renderList as Ae, createBlock as T, mergeProps as E, withCtx as ke, resolveDynamicComponent as it, createCommentVNode as I, useSlots as ce, h as Q, watch as Ce, onMounted as Et, withDirectives as Se, vModelCheckbox as Lt, createVNode as oe, vModelSelect as Dt, withKeys as lt, vModelText as ut, Transition as Tt, toHandlers as Bt, vShow as Nt, vModelDynamic as Ht, vModelRadio as xt } from "vue";
2
- import { useToggle as Mt, toReactive as Gt, useVModel as Ze, useFocus as Ut, useElementVisibility as Ye, refDebounced as jt, onClickOutside as dt } from "@vueuse/core";
3
- import { nanoid as ve } from "nanoid";
4
- import { iconExists as Le, Icon as Kt, addIcon as Ft } from "@iconify/vue";
5
- function ge(t, l, e) {
6
- return e ? Te(t, e) === Te(l, e) : We(t, l);
1
+ import { unref as l, computed as u, inject as Ke, toRef as It, toRefs as W, defineComponent as D, useAttrs as st, ref as j, openBlock as m, createElementBlock as _, normalizeClass as F, withModifiers as We, createElementVNode as E, renderSlot as A, normalizeProps as K, guardReactiveProps as ee, createTextVNode as X, toDisplayString as L, isRef as $e, provide as Pt, watchEffect as ze, Fragment as ge, renderList as Ce, createBlock as T, mergeProps as R, withCtx as Ae, resolveDynamicComponent as rt, createCommentVNode as P, useSlots as he, h as Q, watch as ke, onMounted as Ot, withDirectives as Se, vModelCheckbox as Et, createVNode as le, vModelSelect as Rt, withKeys as tt, vModelText as it, Transition as Lt, toHandlers as Dt, vShow as Tt, vModelDynamic as Bt, vModelRadio as Nt } from "vue";
2
+ import { useToggle as xt, toReactive as Ht, useVModel as qe, useFocus as Mt, useElementVisibility as ut, refDebounced as Gt, onClickOutside as dt } from "@vueuse/core";
3
+ import { nanoid as de } from "nanoid";
4
+ import { iconExists as Le, Icon as Ut, addIcon as jt } from "@iconify/vue";
5
+ function be(t, a, e) {
6
+ return e ? Te(t, e) === Te(a, e) : Fe(t, a);
7
7
  }
8
- function We(t, l) {
9
- if (t === l)
8
+ function Fe(t, a) {
9
+ if (t === a)
10
10
  return !0;
11
- if (t && l && typeof t == "object" && typeof l == "object") {
12
- const e = Array.isArray(t), n = Array.isArray(l);
13
- let o, u, s;
11
+ if (t && a && typeof t == "object" && typeof a == "object") {
12
+ const e = Array.isArray(t), n = Array.isArray(a);
13
+ let o, i, s;
14
14
  if (e && n) {
15
- if (u = t.length, u != l.length)
15
+ if (i = t.length, i != a.length)
16
16
  return !1;
17
- for (o = u; o-- !== 0; )
18
- if (!We(t[o], l[o]))
17
+ for (o = i; o-- !== 0; )
18
+ if (!Fe(t[o], a[o]))
19
19
  return !1;
20
20
  return !0;
21
21
  }
22
22
  if (e != n)
23
23
  return !1;
24
- const b = t instanceof Date, c = l instanceof Date;
24
+ const b = t instanceof Date, c = a instanceof Date;
25
25
  if (b != c)
26
26
  return !1;
27
27
  if (b && c)
28
- return t.getTime() == l.getTime();
29
- const d = t instanceof RegExp, i = l instanceof RegExp;
30
- if (d != i)
28
+ return t.getTime() == a.getTime();
29
+ const d = t instanceof RegExp, r = a instanceof RegExp;
30
+ if (d != r)
31
31
  return !1;
32
- if (d && i)
33
- return t.toString() == l.toString();
32
+ if (d && r)
33
+ return t.toString() == a.toString();
34
34
  const p = Object.keys(t);
35
- if (u = p.length, u !== Object.keys(l).length)
35
+ if (i = p.length, i !== Object.keys(a).length)
36
36
  return !1;
37
- for (o = u; o-- !== 0; )
38
- if (!Object.prototype.hasOwnProperty.call(l, p[o]))
37
+ for (o = i; o-- !== 0; )
38
+ if (!Object.prototype.hasOwnProperty.call(a, p[o]))
39
39
  return !1;
40
- for (o = u; o-- !== 0; )
41
- if (s = p[o], !We(t[s], l[s]))
40
+ for (o = i; o-- !== 0; )
41
+ if (s = p[o], !Fe(t[s], a[s]))
42
42
  return !1;
43
43
  return !0;
44
44
  }
45
- return t !== t && l !== l;
45
+ return t !== t && a !== a;
46
46
  }
47
- function Te(t, l) {
48
- if (t && Object.keys(t).length && l) {
49
- if (l.indexOf(".") === -1)
50
- return t[l];
47
+ function Te(t, a) {
48
+ if (t && Object.keys(t).length && a) {
49
+ if (a.indexOf(".") === -1)
50
+ return t[a];
51
51
  {
52
- const e = l.split(".");
52
+ const e = a.split(".");
53
53
  let n = t;
54
- for (let o = 0, u = e.length; o < u; ++o) {
54
+ for (let o = 0, i = e.length; o < i; ++o) {
55
55
  if (t == null)
56
56
  return null;
57
57
  n = n[e[o]];
@@ -61,50 +61,50 @@ function Te(t, l) {
61
61
  } else
62
62
  return null;
63
63
  }
64
- function Wt(t, l) {
64
+ function Ft(t, a) {
65
65
  let e = -1;
66
- if (l) {
67
- for (let n = 0; n < l.length; n++)
68
- if (ge(l[n], t)) {
66
+ if (a) {
67
+ for (let n = 0; n < a.length; n++)
68
+ if (be(a[n], t)) {
69
69
  e = n;
70
70
  break;
71
71
  }
72
72
  }
73
73
  return e;
74
74
  }
75
- function me(t, l) {
76
- if (t != null && l && l.length) {
77
- for (const e of l)
78
- if (ge(t, e))
75
+ function pe(t, a) {
76
+ if (t != null && a && a.length) {
77
+ for (const e of a)
78
+ if (be(t, e))
79
79
  return !0;
80
80
  }
81
81
  return !1;
82
82
  }
83
- function ee(t) {
84
- return ((l) => l == null || l === "" || Array.isArray(l) && l.length === 0 || !(l instanceof Date) && typeof l == "object" && Object.keys(l).length === 0)(a(t));
83
+ function fe(t) {
84
+ return ((a) => a == null || a === "" || Array.isArray(a) && a.length === 0 || !(a instanceof Date) && typeof a == "object" && Object.keys(a).length === 0)(l(t));
85
85
  }
86
- function zt(t, l) {
87
- const e = Wt(t, l);
88
- return e > -1 ? l.filter((n, o) => o !== e) : l;
86
+ function Kt(t, a) {
87
+ const e = Ft(t, a);
88
+ return e > -1 ? a.filter((n, o) => o !== e) : a;
89
89
  }
90
- function qt(t) {
90
+ function Wt(t) {
91
91
  return typeof t == "string" || t instanceof String;
92
92
  }
93
93
  function at(t) {
94
- var l, e;
94
+ var a, e;
95
95
  if (t)
96
- return (e = (l = t.match(
96
+ return (e = (a = t.match(
97
97
  /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
98
- )) == null ? void 0 : l.join("-")) == null ? void 0 : e.toLowerCase();
98
+ )) == null ? void 0 : a.join("-")) == null ? void 0 : e.toLowerCase();
99
99
  }
100
- function x(t, l) {
100
+ function G(t, a) {
101
101
  const e = { [`${t}`]: !0 };
102
102
  return {
103
- bemCssClasses: r(() => Object.keys(l).reduce((o, u) => {
104
- const s = a(l[u]) || !1;
103
+ bemCssClasses: u(() => Object.keys(a).reduce((o, i) => {
104
+ const s = l(a[i]) || !1;
105
105
  if (!s)
106
106
  return o;
107
- if (u === "modifiers") {
107
+ if (i === "modifiers") {
108
108
  const b = Array.isArray(s) ? s : s.split(" ");
109
109
  return {
110
110
  ...o,
@@ -119,17 +119,17 @@ function x(t, l) {
119
119
  } else
120
120
  return {
121
121
  ...o,
122
- [`${t}--${at(u)}`]: s
122
+ [`${t}--${at(i)}`]: s
123
123
  };
124
124
  }, e) || {})
125
125
  };
126
126
  }
127
127
  function Be(t) {
128
- const l = ze(t, void 0), e = r(() => !ee(l));
129
- function n(o, u, s) {
130
- if (l != null && l.value) {
131
- const c = a(l.value)[o];
132
- return r({
128
+ const a = Ke(t, void 0), e = u(() => !fe(a));
129
+ function n(o, i, s) {
130
+ if (a != null && a.value) {
131
+ const c = l(a.value)[o];
132
+ return u({
133
133
  get() {
134
134
  return c == null ? void 0 : c.value;
135
135
  },
@@ -138,8 +138,8 @@ function Be(t) {
138
138
  }
139
139
  });
140
140
  }
141
- const b = Ot(u, o);
142
- return r({
141
+ const b = It(i, o);
142
+ return u({
143
143
  get() {
144
144
  return b.value;
145
145
  },
@@ -149,12 +149,12 @@ function Be(t) {
149
149
  });
150
150
  }
151
151
  return {
152
- group: l,
152
+ group: a,
153
153
  isInGroup: e,
154
154
  getGroupOrLocalRef: n
155
155
  };
156
156
  }
157
- const ct = "VV_BUTTON_GROUP", vt = "VV_RADIO_GROUP", pt = "VV_CHECK_GROUP", ft = "VV_ACCORDION_GROUP", Xt = {
157
+ const ct = "VV_BUTTON_GROUP", vt = "VV_RADIO_GROUP", pt = "VV_CHECK_GROUP", ft = "VV_ACCORDION_GROUP", zt = {
158
158
  name: String,
159
159
  title: String,
160
160
  content: String,
@@ -164,99 +164,99 @@ const ct = "VV_BUTTON_GROUP", vt = "VV_RADIO_GROUP", pt = "VV_CHECK_GROUP", ft =
164
164
  },
165
165
  modifiers: [String, Array],
166
166
  disabled: Boolean
167
- }, Zt = ["update:modelValue"];
168
- function Yt(t, l) {
169
- const { group: e, isInGroup: n, getGroupOrLocalRef: o } = Be(ft), { title: u, content: s } = F(t), b = o("modelValue", t, l), c = o("disabled", t), d = o("collapse", t), i = o("modifiers", t);
167
+ }, qt = ["update:modelValue"];
168
+ function Xt(t, a) {
169
+ const { group: e, isInGroup: n, getGroupOrLocalRef: o } = Be(ft), { title: i, content: s } = W(t), b = o("modelValue", t, a), c = o("disabled", t), d = o("collapse", t), r = o("modifiers", t);
170
170
  return {
171
171
  modelValue: b,
172
172
  disabled: c,
173
173
  isInGroup: n,
174
174
  group: e,
175
175
  collapse: d,
176
- modifiers: i,
177
- title: u,
176
+ modifiers: r,
177
+ title: i,
178
178
  content: s
179
179
  };
180
180
  }
181
- const Jt = ["id", "open"], Qt = ["aria-controls", "aria-expanded"], el = ["aria-hidden"], tl = {
181
+ const Zt = ["id", "open"], Yt = ["aria-controls", "aria-expanded"], Jt = ["aria-hidden"], Qt = {
182
182
  name: "VvAccordion"
183
- }, ll = /* @__PURE__ */ D({
184
- ...tl,
185
- props: Xt,
186
- emits: Zt,
187
- setup(t, { emit: l }) {
188
- const e = t, n = rt(), o = e.name || (n == null ? void 0 : n.id) || ve(), {
189
- modifiers: u,
183
+ }, ea = /* @__PURE__ */ D({
184
+ ...Qt,
185
+ props: zt,
186
+ emits: qt,
187
+ setup(t, { emit: a }) {
188
+ const e = t, n = st(), o = e.name || (n == null ? void 0 : n.id) || de(), {
189
+ modifiers: i,
190
190
  title: s,
191
191
  content: b,
192
192
  disabled: c,
193
193
  collapse: d,
194
- modelValue: i,
194
+ modelValue: r,
195
195
  isInGroup: p
196
- } = Yt(e, l), v = G(!1), g = r({
197
- get: () => p.value ? d.value && Array.isArray(i.value) ? i.value.includes(o) : i.value === o : i.value === void 0 ? v.value : i.value,
196
+ } = Xt(e, a), v = j(!1), g = u({
197
+ get: () => p.value ? d.value && Array.isArray(r.value) ? r.value.includes(o) : r.value === o : r.value === void 0 ? v.value : r.value,
198
198
  set: (f) => {
199
199
  if (p.value) {
200
- if (d.value && Array.isArray(i.value)) {
200
+ if (d.value && Array.isArray(r.value)) {
201
201
  if (f) {
202
- i.value.push(o);
202
+ r.value.push(o);
203
203
  return;
204
204
  }
205
- i.value = i.value.filter(
205
+ r.value = r.value.filter(
206
206
  (V) => V !== o
207
207
  );
208
208
  return;
209
209
  }
210
- i.value = f ? o : null;
210
+ r.value = f ? o : null;
211
211
  return;
212
212
  }
213
- if (i.value === void 0 && typeof f == "boolean") {
213
+ if (r.value === void 0 && typeof f == "boolean") {
214
214
  v.value = f;
215
215
  return;
216
216
  }
217
- i.value = f;
217
+ r.value = f;
218
218
  }
219
- }), { bemCssClasses: h } = x("vv-accordion", {
220
- modifiers: u,
219
+ }), { bemCssClasses: h } = G("vv-accordion", {
220
+ modifiers: i,
221
221
  disabled: c
222
- }), y = Mt(g);
222
+ }), y = xt(g);
223
223
  return (f, V) => (m(), _("details", {
224
- id: a(o),
225
- class: K(a(h)),
226
- open: a(g),
227
- onClick: V[0] || (V[0] = qe((P) => a(y)(), ["prevent"]))
224
+ id: l(o),
225
+ class: F(l(h)),
226
+ open: l(g),
227
+ onClick: V[0] || (V[0] = We((I) => l(y)(), ["prevent"]))
228
228
  }, [
229
- R("summary", {
230
- "aria-controls": a(o),
231
- "aria-expanded": a(g),
229
+ E("summary", {
230
+ "aria-controls": l(o),
231
+ "aria-expanded": l(g),
232
232
  class: "vv-collapse__summary"
233
233
  }, [
234
- C(f.$slots, "summary", W(te({ open: a(g) })), () => [
235
- X(L(a(s)), 1)
234
+ A(f.$slots, "summary", K(ee({ open: l(g) })), () => [
235
+ X(L(l(s)), 1)
236
236
  ])
237
- ], 8, Qt),
238
- R("div", {
239
- "aria-hidden": !a(g),
237
+ ], 8, Yt),
238
+ E("div", {
239
+ "aria-hidden": !l(g),
240
240
  class: "vv-collapse__content"
241
241
  }, [
242
- C(f.$slots, "details", W(te({ open: a(g) })), () => [
243
- X(L(a(b)), 1)
242
+ A(f.$slots, "details", K(ee({ open: l(g) })), () => [
243
+ X(L(l(b)), 1)
244
244
  ])
245
- ], 8, el)
246
- ], 10, Jt));
245
+ ], 8, Jt)
246
+ ], 10, Zt));
247
247
  }
248
248
  });
249
249
  function Ne(t) {
250
250
  if (Object.keys(t).some(
251
- (l) => l !== "key" && !$e(t[l])
251
+ (a) => a !== "key" && !$e(t[a])
252
252
  ))
253
253
  throw Error("One or more groupState props aren't ref.");
254
- Rt(
254
+ Pt(
255
255
  t.key,
256
- r(() => t)
256
+ u(() => t)
257
257
  );
258
258
  }
259
- const al = {
259
+ const ta = {
260
260
  modelValue: [String, Array],
261
261
  items: { type: Array, default: () => [] },
262
262
  collapse: Boolean,
@@ -266,27 +266,27 @@ const al = {
266
266
  default: ""
267
267
  },
268
268
  disabled: Boolean
269
- }, ol = ["update:modelValue"], nl = {
269
+ }, aa = ["update:modelValue"], la = {
270
270
  name: "VvAccordionGroup"
271
- }, Qa = /* @__PURE__ */ D({
272
- ...nl,
273
- props: al,
274
- emits: ol,
275
- setup(t, { emit: l }) {
276
- const e = t, { disabled: n, collapse: o, modifiers: u, itemModifiers: s, items: b } = F(e);
277
- Xe(() => {
271
+ }, Ql = /* @__PURE__ */ D({
272
+ ...la,
273
+ props: ta,
274
+ emits: aa,
275
+ setup(t, { emit: a }) {
276
+ const e = t, { disabled: n, collapse: o, modifiers: i, itemModifiers: s, items: b } = W(e);
277
+ ze(() => {
278
278
  typeof e.modelValue == "string" && o.value && console.warn(
279
279
  "[VvAccordionGroup]: modelValue is a string but collapse is true."
280
280
  );
281
281
  });
282
- const c = G([]), d = r({
282
+ const c = j([]), d = u({
283
283
  get: () => {
284
284
  var v;
285
285
  return e.modelValue !== void 0 ? o.value ? e.modelValue : Array.isArray(e.modelValue) ? e.modelValue[0] : e.modelValue : o.value ? c.value : (v = c.value) == null ? void 0 : v[0];
286
286
  },
287
287
  set: (v) => {
288
288
  if (e.modelValue !== void 0)
289
- return (Array.isArray(e.modelValue) || o.value) && !Array.isArray(v) && (v = [v]), l("update:modelValue", v);
289
+ return (Array.isArray(e.modelValue) || o.value) && !Array.isArray(v) && (v = [v]), a("update:modelValue", v);
290
290
  c.value = Array.isArray(v) ? v : [v];
291
291
  }
292
292
  });
@@ -297,26 +297,26 @@ const al = {
297
297
  collapse: o,
298
298
  modifiers: s
299
299
  });
300
- const { bemCssClasses: p } = x("vv-accordion-group", {
301
- modifiers: u,
300
+ const { bemCssClasses: p } = G("vv-accordion-group", {
301
+ modifiers: i,
302
302
  disabled: n
303
303
  });
304
304
  return (v, g) => (m(), _("div", {
305
- class: K(a(p))
305
+ class: F(l(p))
306
306
  }, [
307
- C(v.$slots, "default", {}, () => [
308
- (m(!0), _(he, null, Ae(a(b), (h) => (m(), T(ll, E({
307
+ A(v.$slots, "default", {}, () => [
308
+ (m(!0), _(ge, null, Ce(l(b), (h) => (m(), T(ea, R({
309
309
  key: h.title
310
310
  }, {
311
311
  name: h.name,
312
312
  title: h.title,
313
313
  content: h.content
314
314
  }), {
315
- header: ke((y) => [
316
- C(v.$slots, `header::${h.name}`, W(te(y)))
315
+ header: Ae((y) => [
316
+ A(v.$slots, `header::${h.name}`, K(ee(y)))
317
317
  ]),
318
- details: ke((y) => [
319
- C(v.$slots, `details::${h.name}`, W(te(y)))
318
+ details: Ae((y) => [
319
+ A(v.$slots, `details::${h.name}`, K(ee(y)))
320
320
  ]),
321
321
  _: 2
322
322
  }, 1040))), 128))
@@ -326,52 +326,52 @@ const al = {
326
326
  }), we = {
327
327
  valid: Boolean,
328
328
  validLabel: [String, Array]
329
- }, Pe = {
329
+ }, Ie = {
330
330
  invalid: Boolean,
331
331
  invalidLabel: [String, Array]
332
- }, Je = {
332
+ }, Xe = {
333
333
  loading: Boolean,
334
334
  loadingLabel: String
335
335
  }, ye = {
336
336
  disabled: Boolean
337
- }, Ie = {
337
+ }, Pe = {
338
338
  readonly: Boolean
339
- }, pe = {
339
+ }, ce = {
340
340
  modifiers: [String, Array]
341
341
  }, Oe = {
342
342
  hintLabel: { type: String, default: "" }
343
- }, He = {
343
+ }, xe = {
344
344
  options: {
345
345
  type: Array,
346
346
  default: () => []
347
347
  },
348
348
  labelKey: { type: [String, Function], default: "label" },
349
349
  valueKey: { type: [String, Function], default: "value" }
350
- }, sl = {
350
+ }, oa = {
351
351
  count: {
352
352
  type: [Boolean, String],
353
353
  default: !1,
354
354
  validator: (t) => [!0, !1, "limit", "countdown"].includes(t)
355
355
  }
356
- }, rl = {
356
+ }, na = {
357
357
  debounce: [Number, String]
358
- }, ot = {
358
+ }, lt = {
359
359
  LEFT: "left",
360
360
  RIGHT: "right"
361
- }, Qe = {
361
+ }, Ze = {
362
362
  icon: { type: [String, Object] },
363
363
  iconPosition: {
364
364
  type: String,
365
- validation: (t) => Object.values(ot).includes(t),
366
- default: ot.RIGHT
365
+ validation: (t) => Object.values(lt).includes(t),
366
+ default: lt.RIGHT
367
367
  }
368
- }, xe = {
368
+ }, He = {
369
369
  tabindex: { type: [String, Number], default: 0 }
370
- }, et = {
370
+ }, Ye = {
371
371
  floating: Boolean
372
372
  }, Me = {
373
373
  unselectable: { type: Boolean, default: !0 }
374
- }, Re = {
374
+ }, Ee = {
375
375
  id: [String, Number],
376
376
  name: { type: String, required: !0 }
377
377
  }, mt = {
@@ -379,91 +379,91 @@ const al = {
379
379
  }, bt = {
380
380
  autocomplete: { type: String, default: "off" }
381
381
  }, gt = {
382
- ...Re,
382
+ ...Ee,
383
383
  ...mt,
384
384
  ...bt,
385
- ...xe,
385
+ ...He,
386
386
  ...ye,
387
- ...Ie,
388
- ...we,
389
387
  ...Pe,
388
+ ...we,
389
+ ...Ie,
390
390
  ...Oe,
391
- ...Je,
392
- ...pe,
393
- ...sl,
394
- ...rl,
395
- ...Qe,
396
- ...et,
391
+ ...Xe,
392
+ ...ce,
393
+ ...oa,
394
+ ...na,
395
+ ...Ze,
396
+ ...Ye,
397
397
  minlength: Number,
398
398
  maxlength: Number,
399
399
  placeholder: String,
400
400
  required: Boolean,
401
401
  label: String
402
402
  }, ht = {
403
- ...Re,
404
- ...xe,
403
+ ...Ee,
404
+ ...He,
405
405
  ...we,
406
- ...Pe,
406
+ ...Ie,
407
407
  ...Oe,
408
408
  ...ye,
409
- ...Ie,
409
+ ...Pe,
410
410
  value: [String, Number, Boolean],
411
411
  modelValue: [Object, Number, Boolean, String],
412
412
  label: String
413
413
  }, yt = {
414
414
  ...we,
415
- ...Pe,
416
- ...He,
415
+ ...Ie,
416
+ ...xe,
417
417
  ...Oe,
418
418
  ...ye,
419
- ...Ie,
419
+ ...Pe,
420
420
  modelValue: [String, Array],
421
421
  label: String,
422
422
  name: { type: String, required: !0 },
423
423
  vertical: Boolean
424
- }, il = {
425
- ...pe,
424
+ }, sa = {
425
+ ...ce,
426
426
  value: [String, Number]
427
- }, ul = {
427
+ }, ra = {
428
428
  name: "VvBadge"
429
429
  }, eo = /* @__PURE__ */ D({
430
- ...ul,
431
- props: il,
430
+ ...ra,
431
+ props: sa,
432
432
  setup(t) {
433
- const l = t, { bemCssClasses: e } = x("vv-badge", {
434
- modifiers: l.modifiers
433
+ const a = t, { bemCssClasses: e } = G("vv-badge", {
434
+ modifiers: a.modifiers
435
435
  });
436
436
  return (n, o) => (m(), _("span", {
437
- class: K(a(e)),
437
+ class: F(l(e)),
438
438
  role: "status"
439
439
  }, [
440
- C(n.$slots, "default", {}, () => [
440
+ A(n.$slots, "default", {}, () => [
441
441
  X(L(n.value), 1)
442
442
  ])
443
443
  ], 2));
444
444
  }
445
- }), dl = {
446
- ...pe,
445
+ }), ia = {
446
+ ...ce,
447
447
  routes: Array
448
- }, cl = { class: "vv-breadcrumb__list" }, vl = ["content"], pl = {
448
+ }, ua = { class: "vv-breadcrumb__list" }, da = ["content"], ca = {
449
449
  name: "VvBreadcrumb"
450
450
  }, to = /* @__PURE__ */ D({
451
- ...pl,
452
- props: dl,
451
+ ...ca,
452
+ props: ia,
453
453
  setup(t) {
454
- const l = t, { bemCssClasses: e } = x("vv-breadcrumb", {
455
- modifiers: l.modifiers
454
+ const a = t, { bemCssClasses: e } = G("vv-breadcrumb", {
455
+ modifiers: a.modifiers
456
456
  });
457
457
  return (n, o) => (m(), _("nav", {
458
- class: K(a(e)),
458
+ class: F(l(e)),
459
459
  "aria-label": "breadcrumbs"
460
460
  }, [
461
- R("ol", cl, [
462
- (m(!0), _(he, null, Ae(n.routes, (u, s) => {
463
- var b, c, d, i;
461
+ E("ol", ua, [
462
+ (m(!0), _(ge, null, Ce(n.routes, (i, s) => {
463
+ var b, c, d, r;
464
464
  return m(), _("li", {
465
- key: `${u.label}-${s}`,
466
- class: K({
465
+ key: `${i.label}-${s}`,
466
+ class: F({
467
467
  "vv-breadcrumb__item": s < Number((b = n.routes) == null ? void 0 : b.length) - 1,
468
468
  "vv-breadcrumb__item-active": s === Number((c = n.routes) == null ? void 0 : c.length) - 1
469
469
  }),
@@ -471,30 +471,30 @@ const al = {
471
471
  itemtype: "https://schema.org/ListItem",
472
472
  itemscope: ""
473
473
  }, [
474
- (m(), T(it(u.to ? "router-link" : u.href ? "a" : "span"), E(u, {
474
+ (m(), T(rt(i.to ? "router-link" : i.href ? "a" : "span"), R(i, {
475
475
  class: {
476
476
  "vv-breadcrumb__link": s < Number((d = n.routes) == null ? void 0 : d.length) - 1
477
477
  },
478
- "aria-current": s === Number((i = n.routes) == null ? void 0 : i.length) - 1 ? "page" : void 0,
478
+ "aria-current": s === Number((r = n.routes) == null ? void 0 : r.length) - 1 ? "page" : void 0,
479
479
  itemprop: "item"
480
480
  }), {
481
- default: ke(() => [
482
- C(n.$slots, "label", W(te({ route: u, index: s })), () => [
483
- X(L(u.label), 1)
481
+ default: Ae(() => [
482
+ A(n.$slots, "label", K(ee({ route: i, index: s })), () => [
483
+ X(L(i.label), 1)
484
484
  ])
485
485
  ]),
486
486
  _: 2
487
487
  }, 1040, ["class", "aria-current"])),
488
- R("meta", {
488
+ E("meta", {
489
489
  itemprop: "position",
490
490
  content: `${s + 1}`
491
- }, null, 8, vl)
491
+ }, null, 8, da)
492
492
  ], 2);
493
493
  }), 128))
494
494
  ])
495
495
  ], 2));
496
496
  }
497
- }), _t = "ds", fl = {
497
+ }), _t = "ds", va = {
498
498
  color: String,
499
499
  width: {
500
500
  type: [String, Number]
@@ -525,62 +525,62 @@ const al = {
525
525
  modifiers: {
526
526
  type: [String, Array]
527
527
  }
528
- }, ml = {
528
+ }, pa = {
529
529
  name: "VvIcon"
530
- }, U = /* @__PURE__ */ D({
531
- ...ml,
532
- props: fl,
530
+ }, M = /* @__PURE__ */ D({
531
+ ...pa,
532
+ props: va,
533
533
  setup(t) {
534
- const l = t, e = G(!0), { modifiers: n } = F(l), o = ze(_t), { bemCssClasses: u } = x("vv-icon", {
534
+ const a = t, e = j(!0), { modifiers: n } = W(a), o = Ke(_t), { bemCssClasses: i } = G("vv-icon", {
535
535
  modifiers: n
536
- }), s = r(() => l.provider || (o == null ? void 0 : o.provider)), b = r(() => {
537
- const i = l.name ?? "", p = `@${s.value}:${l.prefix}:${l.name}`;
538
- return Le(i) ? i : Le(p) ? p : (o == null ? void 0 : o.iconsCollections.find((v) => {
539
- const g = `@${s.value}:${v.prefix}:${i}`;
536
+ }), s = u(() => a.provider || (o == null ? void 0 : o.provider)), b = u(() => {
537
+ const r = a.name ?? "", p = `@${s.value}:${a.prefix}:${a.name}`;
538
+ return Le(r) ? r : Le(p) ? p : (o == null ? void 0 : o.iconsCollections.find((v) => {
539
+ const g = `@${s.value}:${v.prefix}:${r}`;
540
540
  if (Le(g))
541
541
  return g;
542
- })) || i;
542
+ })) || r;
543
543
  });
544
- function c(i) {
544
+ function c(r) {
545
545
  let p = null;
546
546
  if (typeof window > "u") {
547
547
  const { JSDOM: y } = require("jsdom");
548
548
  p = new y().window;
549
549
  }
550
- return (p ? new p.DOMParser() : new window.DOMParser()).parseFromString(i, "text/html").querySelector("svg");
550
+ return (p ? new p.DOMParser() : new window.DOMParser()).parseFromString(r, "text/html").querySelector("svg");
551
551
  }
552
- function d(i) {
553
- const p = c(i), v = (p == null ? void 0 : p.innerHTML.trim()) || "";
554
- p && v && Ft(`@${s.value}:${l.prefix}:${l.name}`, {
552
+ function d(r) {
553
+ const p = c(r), v = (p == null ? void 0 : p.innerHTML.trim()) || "";
554
+ p && v && jt(`@${s.value}:${a.prefix}:${a.name}`, {
555
555
  body: v,
556
556
  height: p.viewBox.baseVal.height,
557
557
  width: p.viewBox.baseVal.width
558
558
  });
559
559
  }
560
- return o && (l.src && !Le(`@${s.value}:${l.prefix}:${l.name}`) ? (e.value = !1, o.fetchIcon(l.src).then((i) => {
561
- i && (d(i), e.value = !0);
562
- }).catch((i) => {
563
- throw new Error(`During fetch icon: ${i == null ? void 0 : i.message}`);
564
- })) : l.svg && d(l.svg)), (i, p) => e.value ? (m(), T(a(Kt), E({
560
+ return o && (a.src && !Le(`@${s.value}:${a.prefix}:${a.name}`) ? (e.value = !1, o.fetchIcon(a.src).then((r) => {
561
+ r && (d(r), e.value = !0);
562
+ }).catch((r) => {
563
+ throw new Error(`During fetch icon: ${r == null ? void 0 : r.message}`);
564
+ })) : a.svg && d(a.svg)), (r, p) => e.value ? (m(), T(l(Ut), R({
565
565
  key: 0,
566
- class: a(u)
566
+ class: l(i)
567
567
  }, {
568
- inline: i.inline,
569
- width: i.width,
570
- height: i.height,
571
- horizontalFlip: i.horizontalFlip,
572
- verticalFlip: i.verticalFlip,
573
- flip: i.flip,
574
- rotate: i.rotate,
575
- color: i.color,
576
- onLoad: i.onLoad,
577
- icon: a(b)
578
- }), null, 16, ["class"])) : I("", !0);
568
+ inline: r.inline,
569
+ width: r.width,
570
+ height: r.height,
571
+ horizontalFlip: r.horizontalFlip,
572
+ verticalFlip: r.verticalFlip,
573
+ flip: r.flip,
574
+ rotate: r.rotate,
575
+ color: r.color,
576
+ onLoad: r.onLoad,
577
+ icon: l(b)
578
+ }), null, 16, ["class"])) : P("", !0);
579
579
  }
580
580
  });
581
- var Ve = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t.top = "top", t.bottom = "bottom", t))(Ve || {}), St = /* @__PURE__ */ ((t) => (t.button = "button", t.submit = "submit", t.reset = "reset", t))(St || {}), de = /* @__PURE__ */ ((t) => (t.nuxtLink = "nuxt-link", t.routerLink = "router-link", t.a = "a", t.button = "button", t))(de || {}), Vt = /* @__PURE__ */ ((t) => (t._blank = "_blank", t._self = "_self", t._parent = "_parent", t._top = "_top", t))(Vt || {});
582
- const bl = ["update:modelValue"], gl = {
583
- ...pe,
581
+ var Ve = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t.top = "top", t.bottom = "bottom", t))(Ve || {}), St = /* @__PURE__ */ ((t) => (t.button = "button", t.submit = "submit", t.reset = "reset", t))(St || {}), ue = /* @__PURE__ */ ((t) => (t.nuxtLink = "nuxt-link", t.routerLink = "router-link", t.a = "a", t.button = "button", t))(ue || {}), Vt = /* @__PURE__ */ ((t) => (t._blank = "_blank", t._self = "_self", t._parent = "_parent", t._top = "_top", t))(Vt || {});
582
+ const fa = ["update:modelValue"], ma = {
583
+ ...ce,
584
584
  ...ye,
585
585
  ...Me,
586
586
  icon: {
@@ -624,197 +624,197 @@ const bl = ["update:modelValue"], gl = {
624
624
  },
625
625
  modelValue: String
626
626
  };
627
- function hl(t, l) {
627
+ function ba(t, a) {
628
628
  var f;
629
629
  const { group: e, isInGroup: n, getGroupOrLocalRef: o } = Be(ct), {
630
- iconPosition: u,
630
+ iconPosition: i,
631
631
  icon: s,
632
632
  label: b,
633
633
  pressed: c,
634
634
  modifiers: d
635
- } = F(t), i = o("modelValue", t, l), p = o("disabled", t), v = o("toggle", t), g = o(
635
+ } = W(t), r = o("modelValue", t, a), p = o("disabled", t), v = o("toggle", t), g = o(
636
636
  "unselectable",
637
637
  t
638
- ), h = ((f = e == null ? void 0 : e.value) == null ? void 0 : f.multiple) ?? G(!1), y = r(() => {
638
+ ), h = ((f = e == null ? void 0 : e.value) == null ? void 0 : f.multiple) ?? j(!1), y = u(() => {
639
639
  var $;
640
- const V = d != null && d.value ? Array.isArray(d.value) ? d.value : [d.value] : [], P = ($ = e == null ? void 0 : e.value.itemModifiers) != null && $.value ? Array.isArray(e.value.itemModifiers.value) ? e.value.itemModifiers.value : [e.value.itemModifiers.value] : [];
641
- return [...V, ...P];
640
+ const V = d != null && d.value ? Array.isArray(d.value) ? d.value : [d.value] : [], I = ($ = e == null ? void 0 : e.value.itemModifiers) != null && $.value ? Array.isArray(e.value.itemModifiers.value) ? e.value.itemModifiers.value : [e.value.itemModifiers.value] : [];
641
+ return [...V, ...I];
642
642
  });
643
643
  return {
644
644
  group: e,
645
645
  isInGroup: n,
646
- modelValue: i,
646
+ modelValue: r,
647
647
  disabled: p,
648
648
  toggle: v,
649
649
  unselectable: g,
650
650
  multiple: h,
651
651
  modifiers: y,
652
652
  pressed: c,
653
- iconPosition: u,
653
+ iconPosition: i,
654
654
  icon: s,
655
655
  label: b
656
656
  };
657
657
  }
658
- const yl = {
658
+ const ga = {
659
659
  key: 1,
660
660
  class: "vv-button__label"
661
- }, _l = {
661
+ }, ha = {
662
662
  key: 1,
663
663
  class: "vv-button__label"
664
- }, Sl = {
664
+ }, ya = {
665
665
  name: "VvButton"
666
- }, lo = /* @__PURE__ */ D({
667
- ...Sl,
668
- props: gl,
669
- emits: bl,
670
- setup(t, { emit: l }) {
671
- const e = t, n = rt(), o = ce(), u = (n == null ? void 0 : n.name) || ve(), {
666
+ }, ao = /* @__PURE__ */ D({
667
+ ...ya,
668
+ props: ma,
669
+ emits: fa,
670
+ setup(t, { emit: a }) {
671
+ const e = t, n = st(), o = he(), i = (n == null ? void 0 : n.name) || de(), {
672
672
  modifiers: s,
673
673
  iconPosition: b,
674
674
  icon: c,
675
675
  label: d,
676
- modelValue: i,
676
+ modelValue: r,
677
677
  disabled: p,
678
678
  toggle: v,
679
679
  unselectable: g
680
- } = hl(e, l), h = ze(_t), y = r(() => {
680
+ } = ba(e, a), h = Ke(_t), y = u(() => {
681
681
  switch (!0) {
682
682
  case p.value:
683
- return de.button;
683
+ return ue.button;
684
684
  case e.to !== void 0:
685
- return h != null && h.nuxt ? de.nuxtLink : de.routerLink;
685
+ return h != null && h.nuxt ? ue.nuxtLink : ue.routerLink;
686
686
  case e.href !== void 0:
687
- return de.a;
687
+ return ue.a;
688
688
  default:
689
- return de.button;
689
+ return ue.button;
690
690
  }
691
- }), f = r(() => v.value ? Array.isArray(i.value) ? me(u, i.value) : ge(u, i.value) : e.pressed), { bemCssClasses: V } = x("vv-button", {
691
+ }), f = u(() => v.value ? Array.isArray(r.value) ? pe(i, r.value) : be(i, r.value) : e.pressed), { bemCssClasses: V } = G("vv-button", {
692
692
  modifiers: s,
693
693
  active: e.active,
694
694
  pressed: f,
695
695
  disabled: p,
696
- reverse: r(
696
+ reverse: u(
697
697
  () => [Ve.right, Ve.bottom].includes(
698
698
  b.value
699
699
  )
700
700
  ),
701
- column: r(
701
+ column: u(
702
702
  () => [Ve.top, Ve.bottom].includes(
703
703
  b.value
704
704
  )
705
705
  ),
706
- iconOnly: r(
706
+ iconOnly: u(
707
707
  () => (c == null ? void 0 : c.value) && !(d != null && d.value) && !o.default
708
708
  )
709
- }), P = r(
709
+ }), I = u(
710
710
  () => typeof (c == null ? void 0 : c.value) == "string" ? { name: c == null ? void 0 : c.value } : c == null ? void 0 : c.value
711
- ), $ = r(() => {
712
- const A = {
711
+ ), $ = u(() => {
712
+ const C = {
713
713
  class: V.value,
714
714
  "aria-pressed": f.value ? !0 : void 0
715
715
  };
716
716
  switch (y.value) {
717
- case de.a:
717
+ case ue.a:
718
718
  return {
719
- ...A,
719
+ ...C,
720
720
  role: "button",
721
721
  href: e.href,
722
722
  target: e.target,
723
723
  rel: e.rel
724
724
  };
725
- case de.routerLink:
726
- case de.nuxtLink:
725
+ case ue.routerLink:
726
+ case ue.nuxtLink:
727
727
  return {
728
- ...A,
728
+ ...C,
729
729
  role: "button",
730
730
  to: e.to,
731
731
  target: e.target
732
732
  };
733
733
  default:
734
734
  return {
735
- ...A,
735
+ ...C,
736
736
  type: e.type,
737
737
  disabled: p.value
738
738
  };
739
739
  }
740
- }), H = () => {
740
+ }), x = () => {
741
741
  if (v.value) {
742
- if (Array.isArray(i.value)) {
743
- if (me(u, i.value)) {
744
- g.value && (i.value = i.value.filter(
745
- (A) => A !== u
742
+ if (Array.isArray(r.value)) {
743
+ if (pe(i, r.value)) {
744
+ g.value && (r.value = r.value.filter(
745
+ (C) => C !== i
746
746
  ));
747
747
  return;
748
748
  }
749
- i.value.push(u);
749
+ r.value.push(i);
750
750
  return;
751
751
  }
752
- if (ge(u, i.value) && g.value) {
753
- i.value = void 0;
752
+ if (be(i, r.value) && g.value) {
753
+ r.value = void 0;
754
754
  return;
755
755
  }
756
- i.value = u;
756
+ r.value = i;
757
757
  }
758
758
  };
759
- return (A, M) => (m(), T(it(a(y)), E(a($), { onClickPassive: H }), {
760
- default: ke(() => [
761
- C(A.$slots, "default", {}, () => [
762
- A.loading ? C(A.$slots, "loading", { key: 0 }, () => [
763
- A.loadingIcon ? (m(), T(U, {
759
+ return (C, H) => (m(), T(rt(l(y)), R(l($), { onClickPassive: x }), {
760
+ default: Ae(() => [
761
+ A(C.$slots, "default", {}, () => [
762
+ C.loading ? A(C.$slots, "loading", { key: 0 }, () => [
763
+ C.loadingIcon ? (m(), T(M, {
764
764
  key: 0,
765
765
  class: "vv-button__loading-icon",
766
- name: A.loadingIcon
767
- }, null, 8, ["name"])) : I("", !0),
768
- A.loadingLabel ? (m(), _("span", yl, L(A.loadingLabel), 1)) : I("", !0)
769
- ]) : (m(), _(he, { key: 1 }, [
770
- C(A.$slots, "before"),
771
- a(c) ? (m(), T(U, E({
766
+ name: C.loadingIcon
767
+ }, null, 8, ["name"])) : P("", !0),
768
+ C.loadingLabel ? (m(), _("span", ga, L(C.loadingLabel), 1)) : P("", !0)
769
+ ]) : (m(), _(ge, { key: 1 }, [
770
+ A(C.$slots, "before"),
771
+ l(c) ? (m(), T(M, R({
772
772
  key: 0,
773
773
  class: "vv-button__icon"
774
- }, a(P)), null, 16)) : I("", !0),
775
- a(d) ? (m(), _("span", _l, [
776
- C(A.$slots, "label", {}, () => [
777
- X(L(a(d)), 1)
774
+ }, l(I)), null, 16)) : P("", !0),
775
+ l(d) ? (m(), _("span", ha, [
776
+ A(C.$slots, "label", {}, () => [
777
+ X(L(l(d)), 1)
778
778
  ])
779
- ])) : I("", !0),
780
- C(A.$slots, "after")
779
+ ])) : P("", !0),
780
+ A(C.$slots, "after")
781
781
  ], 64))
782
782
  ])
783
783
  ]),
784
784
  _: 3
785
785
  }, 16));
786
786
  }
787
- }), Vl = {
788
- ...pe,
787
+ }), _a = {
788
+ ...ce,
789
789
  ...ye,
790
790
  ...Me,
791
791
  itemModifiers: { type: [String, Array], default: void 0 },
792
792
  toggle: { type: Boolean, default: !1 },
793
793
  multiple: { type: Boolean, default: !1 },
794
794
  modelValue: { type: [String, Array], default: void 0 }
795
- }, $l = ["update:modelValue"], Al = {
795
+ }, Sa = ["update:modelValue"], Va = {
796
796
  name: "VvButtonGroup"
797
- }, ao = /* @__PURE__ */ D({
798
- ...Al,
799
- props: Vl,
800
- emits: $l,
801
- setup(t, { emit: l }) {
797
+ }, lo = /* @__PURE__ */ D({
798
+ ...Va,
799
+ props: _a,
800
+ emits: Sa,
801
+ setup(t, { emit: a }) {
802
802
  const e = t, {
803
803
  disabled: n,
804
804
  toggle: o,
805
- modifiers: u,
805
+ modifiers: i,
806
806
  multiple: s,
807
807
  unselectable: b,
808
808
  itemModifiers: c
809
- } = F(e);
810
- Xe(() => {
809
+ } = W(e);
810
+ ze(() => {
811
811
  typeof e.modelValue == "string" && s.value && console.warn(
812
812
  "[VvButtonGroup]: modelValue is a string but multiple is true."
813
813
  );
814
814
  });
815
- const d = r({
815
+ const d = u({
816
816
  get: () => s.value ? e.modelValue : Array.isArray(e.modelValue) ? e.modelValue[0] : e.modelValue,
817
- set: (v) => (v !== void 0 && (Array.isArray(e.modelValue) || s.value) && !Array.isArray(v) && (v = [v]), l("update:modelValue", v))
817
+ set: (v) => (v !== void 0 && (Array.isArray(e.modelValue) || s.value) && !Array.isArray(v) && (v = [v]), a("update:modelValue", v))
818
818
  });
819
819
  Ne({
820
820
  key: ct,
@@ -825,105 +825,105 @@ const yl = {
825
825
  unselectable: b,
826
826
  itemModifiers: c
827
827
  });
828
- const { bemCssClasses: p } = x("vv-button-group", {
829
- modifiers: u
828
+ const { bemCssClasses: p } = G("vv-button-group", {
829
+ modifiers: i
830
830
  });
831
831
  return (v, g) => (m(), _("div", {
832
- class: K(a(p)),
832
+ class: F(l(p)),
833
833
  role: "group"
834
834
  }, [
835
- C(v.$slots, "default")
835
+ A(v.$slots, "default")
836
836
  ], 2));
837
837
  }
838
- }), Cl = {
838
+ }), $a = {
839
839
  title: String,
840
840
  modifiers: [String, Array]
841
- }, kl = {
841
+ }, Ca = {
842
842
  key: 0,
843
843
  class: "vv-card__header"
844
- }, wl = {
844
+ }, Aa = {
845
845
  key: 1,
846
846
  class: "vv-card__content"
847
- }, Pl = {
847
+ }, ka = {
848
848
  key: 2,
849
849
  class: "vv-card__footer"
850
- }, Il = {
850
+ }, wa = {
851
851
  name: "VvCard"
852
852
  }, oo = /* @__PURE__ */ D({
853
- ...Il,
854
- props: Cl,
853
+ ...wa,
854
+ props: $a,
855
855
  setup(t) {
856
- const l = t, { bemCssClasses: e } = x("vv-card", {
857
- modifiers: l.modifiers
856
+ const a = t, { bemCssClasses: e } = G("vv-card", {
857
+ modifiers: a.modifiers
858
858
  });
859
859
  return (n, o) => (m(), _("article", {
860
- class: K(a(e))
860
+ class: F(l(e))
861
861
  }, [
862
- n.$slots.header || n.title ? (m(), _("header", kl, [
863
- C(n.$slots, "header", {}, () => [
862
+ n.$slots.header || n.title ? (m(), _("header", Ca, [
863
+ A(n.$slots, "header", {}, () => [
864
864
  X(L(n.title), 1)
865
865
  ])
866
- ])) : I("", !0),
867
- C(n.$slots, "default"),
868
- n.$slots.content ? (m(), _("div", wl, [
869
- C(n.$slots, "content")
870
- ])) : I("", !0),
871
- n.$slots.footer ? (m(), _("footer", Pl, [
872
- C(n.$slots, "footer")
873
- ])) : I("", !0)
866
+ ])) : P("", !0),
867
+ A(n.$slots, "default"),
868
+ n.$slots.content ? (m(), _("div", Aa, [
869
+ A(n.$slots, "content")
870
+ ])) : P("", !0),
871
+ n.$slots.footer ? (m(), _("footer", ka, [
872
+ A(n.$slots, "footer")
873
+ ])) : P("", !0)
874
874
  ], 2));
875
875
  }
876
- }), Ol = {
876
+ }), Ia = {
877
877
  ...ht,
878
878
  indeterminate: Boolean,
879
879
  uncheckedValue: [String, Number, Boolean],
880
880
  switch: Boolean
881
- }, Rl = ["click", "update:modelValue", "change", "blur"];
882
- function El(t, l) {
883
- const { group: e, isInGroup: n, getGroupOrLocalRef: o } = Be(pt), { switch: u, indeterminate: s } = F(t), b = o("modelValue", t, l), c = o("readonly", t), d = o("disabled", t), i = o("valid", t), p = o("invalid", t);
881
+ }, Pa = ["click", "update:modelValue", "change", "blur"];
882
+ function Oa(t, a) {
883
+ const { group: e, isInGroup: n, getGroupOrLocalRef: o } = Be(pt), { switch: i, indeterminate: s } = W(t), b = o("modelValue", t, a), c = o("readonly", t), d = o("disabled", t), r = o("valid", t), p = o("invalid", t);
884
884
  return {
885
- propsSwitch: u,
885
+ propsSwitch: i,
886
886
  indeterminate: s,
887
887
  group: e,
888
888
  isInGroup: n,
889
889
  modelValue: b,
890
890
  readonly: c,
891
891
  disabled: d,
892
- valid: i,
892
+ valid: r,
893
893
  invalid: p
894
894
  };
895
895
  }
896
896
  function De(t) {
897
- return Array.isArray(t) ? t.filter((l) => qt(l)).join(" ") : t;
897
+ return Array.isArray(t) ? t.filter((a) => Wt(a)).join(" ") : t;
898
898
  }
899
- function _e(t, l) {
899
+ function _e(t, a) {
900
900
  const {
901
901
  invalid: e,
902
902
  valid: n,
903
903
  hint: o,
904
- loading: u
905
- } = l, {
904
+ loading: i
905
+ } = a, {
906
906
  hintLabel: s,
907
907
  modelValue: b,
908
908
  valid: c,
909
909
  validLabel: d,
910
- invalid: i,
910
+ invalid: r,
911
911
  invalidLabel: p,
912
912
  ...v
913
- } = F(t), g = Te(v, "loading"), h = Te(v, "loadingLabel"), y = r(() => i.value ? !!(i.value && e || p != null && p.value && Array.isArray(p.value) && p.value.length > 0 || p != null && p.value && !ee(p)) : !1), f = r(
913
+ } = W(t), g = Te(v, "loading"), h = Te(v, "loadingLabel"), y = u(() => r.value ? !!(r.value && e || p != null && p.value && Array.isArray(p.value) && p.value.length > 0 || p != null && p.value && !fe(p)) : !1), f = u(
914
914
  () => !!(s && s.value || o)
915
- ), V = r(
915
+ ), V = u(
916
916
  () => !!(d && d.value || n)
917
- ), P = r(
918
- () => !!(g != null && g.value && u || g != null && g.value && (h != null && h.value))
919
- ), $ = r(
920
- () => f.value || V.value || y.value || P.value
917
+ ), I = u(
918
+ () => !!(g != null && g.value && i || g != null && g.value && (h != null && h.value))
919
+ ), $ = u(
920
+ () => f.value || V.value || y.value || I.value
921
921
  );
922
922
  return {
923
923
  hasInvalid: y,
924
924
  hasHint: f,
925
925
  hasValid: V,
926
- hasLoading: P,
926
+ hasLoading: I,
927
927
  HintSlot: {
928
928
  name: "HintSlot",
929
929
  props: {
@@ -932,26 +932,26 @@ function _e(t, l) {
932
932
  default: () => ({})
933
933
  }
934
934
  },
935
- setup(H) {
936
- const A = r(() => {
937
- const M = Gt({
935
+ setup(x) {
936
+ const C = u(() => {
937
+ const H = Ht({
938
938
  hintLabel: s,
939
939
  modelValue: b,
940
940
  valid: c,
941
941
  validLabel: d,
942
- invalid: i,
942
+ invalid: r,
943
943
  invalidLabel: p,
944
944
  loading: g,
945
945
  loadingLabel: h,
946
- ...H.params
946
+ ...x.params
947
947
  });
948
- return i != null && i.value ? (e == null ? void 0 : e(M)) || De(p == null ? void 0 : p.value) || (s == null ? void 0 : s.value) : c != null && c.value ? (n == null ? void 0 : n(M)) || De(d == null ? void 0 : d.value) || (s == null ? void 0 : s.value) : g != null && g.value ? (u == null ? void 0 : u(M)) || De(h == null ? void 0 : h.value) || (s == null ? void 0 : s.value) : (o == null ? void 0 : o(M)) || De(s == null ? void 0 : s.value) || (s == null ? void 0 : s.value);
948
+ return r != null && r.value ? (e == null ? void 0 : e(H)) || De(p == null ? void 0 : p.value) || (s == null ? void 0 : s.value) : c != null && c.value ? (n == null ? void 0 : n(H)) || De(d == null ? void 0 : d.value) || (s == null ? void 0 : s.value) : g != null && g.value ? (i == null ? void 0 : i(H)) || De(h == null ? void 0 : h.value) || (s == null ? void 0 : s.value) : (o == null ? void 0 : o(H)) || De(s == null ? void 0 : s.value) || (s == null ? void 0 : s.value);
949
949
  });
950
950
  return {
951
951
  isVisible: $,
952
952
  hasInvalid: y,
953
953
  hasValid: V,
954
- hintContent: A
954
+ hintContent: C
955
955
  };
956
956
  },
957
957
  render() {
@@ -967,126 +967,126 @@ function _e(t, l) {
967
967
  }
968
968
  };
969
969
  }
970
- const Ll = ["for"], Dl = ["id", "name", "disabled", "value", "tabindex", "aria-invalid"], Tl = {
970
+ const Ea = ["for"], Ra = ["id", "name", "disabled", "value", "tabindex", "aria-invalid"], La = {
971
971
  name: "VvCheckbox"
972
- }, Bl = /* @__PURE__ */ D({
973
- ...Tl,
974
- props: Ol,
975
- emits: Rl,
976
- setup(t, { emit: l }) {
977
- const e = t, n = ce(), {
972
+ }, Da = /* @__PURE__ */ D({
973
+ ...La,
974
+ props: Ia,
975
+ emits: Pa,
976
+ setup(t, { emit: a }) {
977
+ const e = t, n = he(), {
978
978
  disabled: o,
979
- readonly: u,
979
+ readonly: i,
980
980
  valid: s,
981
981
  invalid: b,
982
982
  propsSwitch: c,
983
983
  modelValue: d,
984
- indeterminate: i,
984
+ indeterminate: r,
985
985
  isInGroup: p
986
- } = El(e, l), v = r(() => String(e.id || ve())), g = r(() => f.value ? -1 : e.tabindex), h = G(), y = r(
986
+ } = Oa(e, a), v = u(() => String(e.id || de())), g = u(() => f.value ? -1 : e.tabindex), h = j(), y = u(
987
987
  () => e.uncheckedValue !== void 0 && !p.value
988
- ), f = r(() => o.value || u.value), V = r(() => {
988
+ ), f = u(() => o.value || i.value), V = u(() => {
989
989
  if (b.value === !0)
990
990
  return !0;
991
991
  if (s.value === !0)
992
992
  return !1;
993
- }), P = r(() => y.value ? d.value === e.value : Array.isArray(d.value) ? me(e.value, d.value) : ge(e.value, d.value)), $ = r(() => !!(i.value || !P.value && y.value && e.uncheckedValue !== d.value)), H = r(() => {
993
+ }), I = u(() => y.value ? d.value === e.value : Array.isArray(d.value) ? pe(e.value, d.value) : be(e.value, d.value)), $ = u(() => !!(r.value || !I.value && y.value && e.uncheckedValue !== d.value)), x = u(() => {
994
994
  if (!y.value)
995
995
  return ["string", "number", "boolean"].includes(typeof e.value) ? e.value : !0;
996
- }), A = r({
996
+ }), C = u({
997
997
  get() {
998
- return P.value;
998
+ return I.value;
999
999
  },
1000
1000
  set(B) {
1001
1001
  if (y.value)
1002
1002
  d.value = B ? e.value : e.uncheckedValue;
1003
1003
  else if (Array.isArray(d.value) || p.value) {
1004
- const j = new Set(
1004
+ const U = new Set(
1005
1005
  Array.isArray(d.value) ? d.value : d.value !== void 0 ? [d.value] : []
1006
1006
  );
1007
- B ? j.add(e.value) : j.delete(e.value), d.value = [...j];
1007
+ B ? U.add(e.value) : U.delete(e.value), d.value = [...U];
1008
1008
  } else
1009
1009
  d.value = B ? e.value : void 0;
1010
- l("change", B);
1010
+ a("change", B);
1011
1011
  }
1012
- }), { bemCssClasses: M } = x("vv-checkbox", {
1012
+ }), { bemCssClasses: H } = G("vv-checkbox", {
1013
1013
  switch: c,
1014
1014
  valid: s,
1015
1015
  invalid: b,
1016
1016
  disabled: o,
1017
- readonly: u,
1018
- indeterminate: i
1017
+ readonly: i,
1018
+ indeterminate: r
1019
1019
  });
1020
- Xe(() => {
1020
+ ze(() => {
1021
1021
  y.value && Array.isArray(d.value) && console.warn(
1022
1022
  "[VvCheckbox] The model value is an array but the component is in binary mode."
1023
1023
  );
1024
- }), Ce(
1024
+ }), ke(
1025
1025
  () => $.value,
1026
1026
  (B) => {
1027
1027
  B ? h.value.indeterminate = !0 : h.value.indeterminate = !1;
1028
1028
  }
1029
- ), Et(() => {
1029
+ ), Ot(() => {
1030
1030
  $.value && (h.value.indeterminate = !0);
1031
1031
  });
1032
1032
  const { HintSlot: J } = _e(e, n);
1033
- return (B, j) => (m(), _("label", {
1034
- class: K(a(M)),
1035
- for: a(v)
1033
+ return (B, U) => (m(), _("label", {
1034
+ class: F(l(H)),
1035
+ for: l(v)
1036
1036
  }, [
1037
- Se(R("input", {
1038
- id: a(v),
1037
+ Se(E("input", {
1038
+ id: l(v),
1039
1039
  ref_key: "input",
1040
1040
  ref: h,
1041
- "onUpdate:modelValue": j[0] || (j[0] = (le) => $e(A) ? A.value = le : null),
1041
+ "onUpdate:modelValue": U[0] || (U[0] = (te) => $e(C) ? C.value = te : null),
1042
1042
  type: "checkbox",
1043
1043
  class: "vv-checkbox__input",
1044
1044
  name: B.name,
1045
- disabled: a(f),
1046
- value: a(H),
1047
- tabindex: a(g),
1048
- "aria-invalid": a(V)
1049
- }, null, 8, Dl), [
1050
- [Lt, a(A)]
1045
+ disabled: l(f),
1046
+ value: l(x),
1047
+ tabindex: l(g),
1048
+ "aria-invalid": l(V)
1049
+ }, null, 8, Ra), [
1050
+ [Et, l(C)]
1051
1051
  ]),
1052
- C(B.$slots, "default", { value: a(d) }, () => [
1052
+ A(B.$slots, "default", { value: l(d) }, () => [
1053
1053
  X(L(B.label), 1)
1054
1054
  ]),
1055
- oe(a(J), {
1055
+ le(l(J), {
1056
1056
  class: "vv-checkbox__hint",
1057
- params: { value: a(d) }
1057
+ params: { value: l(d) }
1058
1058
  }, null, 8, ["params"])
1059
- ], 10, Ll));
1059
+ ], 10, Ea));
1060
1060
  }
1061
1061
  });
1062
- function Ee(t) {
1063
- const { options: l, labelKey: e, valueKey: n } = F(t);
1062
+ function Re(t) {
1063
+ const { options: a, labelKey: e, valueKey: n } = W(t);
1064
1064
  return {
1065
- options: l,
1065
+ options: a,
1066
1066
  getOptionLabel: (s) => typeof s != "object" && s !== null ? s : typeof e.value == "function" ? e.value(s) : s[e.value],
1067
1067
  getOptionValue: (s) => typeof s != "object" && s !== null ? s : typeof n.value == "function" ? n.value(s) : s[n.value]
1068
1068
  };
1069
1069
  }
1070
- const Nl = yt, Hl = ["update:modelValue", "change"], xl = ["textContent"], Ml = { class: "vv-checkbox-group__wrapper" }, Gl = {
1070
+ const Ta = yt, Ba = ["update:modelValue", "change"], Na = ["textContent"], xa = { class: "vv-checkbox-group__wrapper" }, Ha = {
1071
1071
  name: "VvCheckboxGroup"
1072
1072
  }, no = /* @__PURE__ */ D({
1073
- ...Gl,
1074
- props: Nl,
1075
- emits: Hl,
1076
- setup(t, { emit: l }) {
1077
- const e = t, n = ce(), o = Ze(e, "modelValue", l), { disabled: u, readonly: s, vertical: b, valid: c, invalid: d } = F(e);
1073
+ ...Ha,
1074
+ props: Ta,
1075
+ emits: Ba,
1076
+ setup(t, { emit: a }) {
1077
+ const e = t, n = he(), o = qe(e, "modelValue", a), { disabled: i, readonly: s, vertical: b, valid: c, invalid: d } = W(e);
1078
1078
  Ne({
1079
1079
  key: pt,
1080
1080
  modelValue: o,
1081
- disabled: u,
1081
+ disabled: i,
1082
1082
  readonly: s,
1083
1083
  valid: c,
1084
1084
  invalid: d
1085
1085
  });
1086
- const { getOptionLabel: p, getOptionValue: v } = Ee(e), { bemCssClasses: g } = x("vv-checkbox-group", {
1087
- disabled: u,
1086
+ const { getOptionLabel: p, getOptionValue: v } = Re(e), { bemCssClasses: g } = G("vv-checkbox-group", {
1087
+ disabled: i,
1088
1088
  readonly: s,
1089
- horizontal: r(() => !b.value),
1089
+ horizontal: u(() => !b.value),
1090
1090
  valid: c,
1091
1091
  invalid: d
1092
1092
  }), h = (f, V) => ({
@@ -1096,50 +1096,50 @@ const Nl = yt, Hl = ["update:modelValue", "change"], xl = ["textContent"], Ml =
1096
1096
  value: v(f)
1097
1097
  }), { HintSlot: y } = _e(e, n);
1098
1098
  return (f, V) => (m(), _("fieldset", {
1099
- class: K(a(g))
1099
+ class: F(l(g))
1100
1100
  }, [
1101
1101
  f.label ? (m(), _("legend", {
1102
1102
  key: 0,
1103
1103
  textContent: L(f.label)
1104
- }, null, 8, xl)) : I("", !0),
1105
- R("div", Ml, [
1106
- f.options.length > 0 ? (m(!0), _(he, { key: 0 }, Ae(f.options, (P, $) => (m(), T(Bl, E({ key: $ }, h(P, $)), null, 16))), 128)) : C(f.$slots, "default", { key: 1 })
1104
+ }, null, 8, Na)) : P("", !0),
1105
+ E("div", xa, [
1106
+ f.options.length > 0 ? (m(!0), _(ge, { key: 0 }, Ce(f.options, (I, $) => (m(), T(Da, R({ key: $ }, h(I, $)), null, 16))), 128)) : A(f.$slots, "default", { key: 1 })
1107
1107
  ]),
1108
- oe(a(y), { class: "vv-checkbox-group__hint" })
1108
+ le(l(y), { class: "vv-checkbox-group__hint" })
1109
1109
  ], 2));
1110
1110
  }
1111
1111
  });
1112
- function Ge(t, l, e) {
1113
- const n = r(
1114
- () => !!(t != null && t.value && l.value === "left" || e != null && e.iconLeft)
1115
- ), o = r(
1116
- () => !!(t != null && t.value && l.value === "right" || e != null && e.iconRight)
1117
- ), u = r(
1118
- () => !!(t != null && t.value && l.value === "top" || e != null && e.iconTop)
1119
- ), s = r(
1120
- () => !!(t != null && t.value && l.value === "bottom" || e != null && e.iconBottom)
1112
+ function Je(t, a, e) {
1113
+ const n = u(
1114
+ () => !!(t != null && t.value && a.value === "left" || e != null && e.iconLeft)
1115
+ ), o = u(
1116
+ () => !!(t != null && t.value && a.value === "right" || e != null && e.iconRight)
1117
+ ), i = u(
1118
+ () => !!(t != null && t.value && a.value === "top" || e != null && e.iconTop)
1119
+ ), s = u(
1120
+ () => !!(t != null && t.value && a.value === "bottom" || e != null && e.iconBottom)
1121
1121
  );
1122
1122
  return {
1123
- hasIcon: r(() => typeof (t == null ? void 0 : t.value) == "string" ? { name: t == null ? void 0 : t.value } : t == null ? void 0 : t.value),
1123
+ hasIcon: u(() => typeof (t == null ? void 0 : t.value) == "string" ? { name: t == null ? void 0 : t.value } : t == null ? void 0 : t.value),
1124
1124
  hasIconLeft: n,
1125
1125
  hasIconRight: o,
1126
- hasIconTop: u,
1126
+ hasIconTop: i,
1127
1127
  hasIconBottom: s
1128
1128
  };
1129
1129
  }
1130
- function Ue(t, l) {
1131
- const { focused: e } = Ut(t);
1132
- return Ce(e, (n) => {
1133
- l(n ? "focus" : "blur", a(t));
1130
+ function Qe(t, a) {
1131
+ const { focused: e } = Mt(t);
1132
+ return ke(e, (n) => {
1133
+ a(n ? "focus" : "blur", l(t));
1134
1134
  }), {
1135
1135
  focused: e
1136
1136
  };
1137
1137
  }
1138
- const Ul = {
1139
- ...Re,
1140
- ...He,
1138
+ const Ma = {
1139
+ ...Ee,
1140
+ ...xe,
1141
1141
  ...ye,
1142
- ...pe,
1142
+ ...ce,
1143
1143
  modelValue: {
1144
1144
  type: [String, Number, Boolean, Object, Array]
1145
1145
  },
@@ -1147,25 +1147,25 @@ const Ul = {
1147
1147
  multiple: Boolean,
1148
1148
  maxValues: [Number, String],
1149
1149
  unselectable: { type: Boolean, default: !0 }
1150
- }, jl = ["id"], Kl = {
1150
+ }, Ga = ["id"], Ua = {
1151
1151
  key: 0,
1152
1152
  role: "option"
1153
- }, Fl = ["aria-selected"], Wl = ["for", "onClick"], zl = ["id", "type", "value", "checked", "disabled", "name"], ql = {
1153
+ }, ja = ["aria-selected"], Fa = ["for", "onClick"], Ka = ["id", "type", "value", "checked", "disabled", "name"], Wa = {
1154
1154
  name: "VvDropdown"
1155
- }, Xl = /* @__PURE__ */ D({
1156
- ...ql,
1157
- props: Ul,
1155
+ }, za = /* @__PURE__ */ D({
1156
+ ...Wa,
1157
+ props: Ma,
1158
1158
  emits: ["update:modelValue"],
1159
- setup(t, { emit: l }) {
1160
- const e = t, n = r(() => String(e.id || ve())), { modifiers: o, disabled: u } = F(e), { getOptionLabel: s, getOptionValue: b } = Ee(e), { bemCssClasses: c } = x("vv-dropdown", {
1159
+ setup(t, { emit: a }) {
1160
+ const e = t, n = u(() => String(e.id || de())), { modifiers: o, disabled: i } = W(e), { getOptionLabel: s, getOptionValue: b } = Re(e), { bemCssClasses: c } = G("vv-dropdown", {
1161
1161
  modifiers: o,
1162
- disabled: u
1162
+ disabled: i
1163
1163
  });
1164
1164
  function d(v) {
1165
- return Array.isArray(e.modelValue) ? me(v, e.modelValue) || me(b(v), e.modelValue) : ge(v, e.modelValue) || ge(b(v), e.modelValue);
1165
+ return Array.isArray(e.modelValue) ? pe(v, e.modelValue) || pe(b(v), e.modelValue) : be(v, e.modelValue) || be(b(v), e.modelValue);
1166
1166
  }
1167
- function i(v) {
1168
- return typeof v == "string" || v.disabled === void 0 ? u.value : v.disabled;
1167
+ function r(v) {
1168
+ return typeof v == "string" || v.disabled === void 0 ? i.value : v.disabled;
1169
1169
  }
1170
1170
  function p(v) {
1171
1171
  var h;
@@ -1174,65 +1174,65 @@ const Ul = {
1174
1174
  let g = v;
1175
1175
  if (e.multiple)
1176
1176
  if (Array.isArray(e.modelValue)) {
1177
- if (e.maxValues !== void 0 && e.maxValues >= 0 && ((h = e.modelValue) == null ? void 0 : h.length) >= e.maxValues && !me(v, e.modelValue))
1177
+ if (e.maxValues !== void 0 && e.maxValues >= 0 && ((h = e.modelValue) == null ? void 0 : h.length) >= e.maxValues && !pe(v, e.modelValue))
1178
1178
  return;
1179
- g = me(v, e.modelValue) ? zt(v, e.modelValue) : [...e.modelValue, v];
1179
+ g = pe(v, e.modelValue) ? Kt(v, e.modelValue) : [...e.modelValue, v];
1180
1180
  } else
1181
1181
  g = [v];
1182
1182
  else
1183
1183
  e.unselectable && v === e.modelValue && (g = void 0);
1184
- l("update:modelValue", g);
1184
+ a("update:modelValue", g);
1185
1185
  }
1186
1186
  return (v, g) => {
1187
1187
  var h;
1188
1188
  return m(), _("ul", {
1189
- id: a(n),
1190
- class: K(a(c)),
1189
+ id: l(n),
1190
+ class: F(l(c)),
1191
1191
  role: "listbox"
1192
1192
  }, [
1193
- (h = v.options) != null && h.length ? I("", !0) : (m(), _("li", Kl, [
1194
- R("label", null, L(v.labelNoResults), 1)
1193
+ (h = v.options) != null && h.length ? P("", !0) : (m(), _("li", Ua, [
1194
+ E("label", null, L(v.labelNoResults), 1)
1195
1195
  ])),
1196
- (m(!0), _(he, null, Ae(v.options, (y, f) => (m(), _("li", {
1196
+ (m(!0), _(ge, null, Ce(v.options, (y, f) => (m(), _("li", {
1197
1197
  key: f,
1198
1198
  role: "option",
1199
1199
  "aria-selected": d(y)
1200
1200
  }, [
1201
- R("label", {
1202
- for: `dropdown-${f}-${a(n)}`,
1203
- onClick: qe((V) => p(a(b)(y)), ["prevent"])
1201
+ E("label", {
1202
+ for: `dropdown-${f}-${l(n)}`,
1203
+ onClick: We((V) => p(l(b)(y)), ["prevent"])
1204
1204
  }, [
1205
- R("input", {
1206
- id: `dropdown-${f}-${a(n)}`,
1205
+ E("input", {
1206
+ id: `dropdown-${f}-${l(n)}`,
1207
1207
  type: v.multiple ? "checkbox" : "radio",
1208
- value: a(b)(y),
1208
+ value: l(b)(y),
1209
1209
  checked: d(y),
1210
- disabled: i(y),
1210
+ disabled: r(y),
1211
1211
  name: v.name,
1212
1212
  tabindex: "-1",
1213
1213
  "aria-hidden": "true"
1214
- }, null, 8, zl),
1215
- X(" " + L(a(s)(y)), 1)
1216
- ], 8, Wl)
1217
- ], 8, Fl))), 128))
1218
- ], 10, jl);
1214
+ }, null, 8, Ka),
1215
+ X(" " + L(l(s)(y)), 1)
1216
+ ], 8, Fa)
1217
+ ], 8, ja))), 128))
1218
+ ], 10, Ga);
1219
1219
  };
1220
1220
  }
1221
- }), Zl = {
1222
- ...Re,
1221
+ }), qa = {
1222
+ ...Ee,
1223
1223
  ...mt,
1224
1224
  ...bt,
1225
- ...xe,
1225
+ ...He,
1226
1226
  ...we,
1227
- ...Pe,
1227
+ ...Ie,
1228
1228
  ...Oe,
1229
- ...Je,
1229
+ ...Xe,
1230
1230
  ...ye,
1231
- ...Ie,
1232
- ...pe,
1233
- ...He,
1234
- ...Qe,
1235
- ...et,
1231
+ ...Pe,
1232
+ ...ce,
1233
+ ...xe,
1234
+ ...Ze,
1235
+ ...Ye,
1236
1236
  ...Me,
1237
1237
  multiple: Boolean,
1238
1238
  required: Boolean,
@@ -1243,17 +1243,17 @@ const Ul = {
1243
1243
  },
1244
1244
  label: String,
1245
1245
  placeholder: String
1246
- }, Yl = ["update:modelValue", "focus", "blur"], Jl = ["for"], Ql = { class: "vv-select__wrapper" }, ea = ["id"], ta = ["disabled", "hidden"], la = ["disabled", "value"], aa = {
1246
+ }, Xa = ["update:modelValue", "focus", "blur"], Za = ["for"], Ya = { class: "vv-select__wrapper" }, Ja = ["id"], Qa = ["disabled", "hidden"], el = ["disabled", "value"], tl = {
1247
1247
  name: "VvSelect"
1248
- }, oa = /* @__PURE__ */ D({
1249
- ...aa,
1250
- props: Zl,
1251
- emits: Yl,
1252
- setup(t, { emit: l }) {
1253
- const e = t, n = ce(), o = G(), { HintSlot: u, hasHint: s, hasInvalid: b } = _e(e, n), {
1248
+ }, al = /* @__PURE__ */ D({
1249
+ ...tl,
1250
+ props: qa,
1251
+ emits: Xa,
1252
+ setup(t, { emit: a }) {
1253
+ const e = t, n = he(), o = j(), { HintSlot: i, hasHint: s, hasInvalid: b } = _e(e, n), {
1254
1254
  modifiers: c,
1255
1255
  disabled: d,
1256
- readonly: i,
1256
+ readonly: r,
1257
1257
  loading: p,
1258
1258
  icon: v,
1259
1259
  iconPosition: g,
@@ -1261,111 +1261,111 @@ const Ul = {
1261
1261
  valid: y,
1262
1262
  floating: f,
1263
1263
  multiple: V
1264
- } = F(e), P = r(() => String(e.id || ve())), $ = r(() => `${P.value}-hint`), { focused: H } = Ue(o, l), A = Ye(o);
1265
- Ce(A, (w) => {
1266
- w && e.autofocus && (H.value = !0);
1264
+ } = W(e), I = u(() => String(e.id || de())), $ = u(() => `${I.value}-hint`), { focused: x } = Qe(o, a), C = ut(o);
1265
+ ke(C, (w) => {
1266
+ w && e.autofocus && (x.value = !0);
1267
1267
  });
1268
- const { hasIcon: M, hasIconLeft: J, hasIconRight: B } = Ge(
1268
+ const { hasIcon: H, hasIconLeft: J, hasIconRight: B } = Je(
1269
1269
  v,
1270
1270
  g
1271
- ), j = r(() => !ee(e.modelValue)), le = r(() => e.disabled || e.readonly), ne = r(() => le.value ? -1 : e.tabindex), se = r(() => {
1271
+ ), U = u(() => !fe(e.modelValue)), te = u(() => e.disabled || e.readonly), oe = u(() => te.value ? -1 : e.tabindex), ne = u(() => {
1272
1272
  if (e.invalid === !0)
1273
1273
  return !0;
1274
1274
  if (e.valid === !0)
1275
1275
  return !1;
1276
- }), { bemCssClasses: ae } = x("vv-select", {
1276
+ }), { bemCssClasses: ae } = G("vv-select", {
1277
1277
  modifiers: c,
1278
1278
  valid: y,
1279
1279
  invalid: h,
1280
1280
  loading: p,
1281
1281
  disabled: d,
1282
- readonly: i,
1282
+ readonly: r,
1283
1283
  iconLeft: J,
1284
1284
  iconRight: B,
1285
- dirty: j,
1286
- focus: H,
1285
+ dirty: U,
1286
+ focus: x,
1287
1287
  floating: f,
1288
1288
  multiple: V
1289
- }), fe = r(() => ({
1289
+ }), ve = u(() => ({
1290
1290
  name: e.name,
1291
- tabindex: ne.value,
1292
- disabled: le.value,
1291
+ tabindex: oe.value,
1292
+ disabled: te.value,
1293
1293
  required: e.required,
1294
1294
  size: e.size,
1295
1295
  autocomplete: e.autocomplete,
1296
1296
  multiple: e.multiple,
1297
- "aria-invalid": se.value,
1297
+ "aria-invalid": ne.value,
1298
1298
  "aria-describedby": !b.value && s.value ? $.value : void 0,
1299
1299
  "aria-errormessage": b.value ? $.value : void 0
1300
- })), { getOptionLabel: re, getOptionValue: ie } = Ee(e);
1301
- function ue(w) {
1300
+ })), { getOptionLabel: se, getOptionValue: re } = Re(e);
1301
+ function ie(w) {
1302
1302
  return typeof w == "string" || w.disabled === void 0 ? d.value : w.disabled;
1303
1303
  }
1304
- const q = r({
1304
+ const q = u({
1305
1305
  get: () => e.modelValue,
1306
1306
  set: (w) => {
1307
- Array.isArray(w) && (w = w.filter((Z) => Z !== void 0)), l("update:modelValue", w);
1307
+ Array.isArray(w) && (w = w.filter((Z) => Z !== void 0)), a("update:modelValue", w);
1308
1308
  }
1309
1309
  });
1310
1310
  return (w, Z) => (m(), _("div", {
1311
- class: K(a(ae))
1311
+ class: F(l(ae))
1312
1312
  }, [
1313
1313
  w.label ? (m(), _("label", {
1314
1314
  key: 0,
1315
- for: a(P)
1316
- }, L(w.label), 9, Jl)) : I("", !0),
1317
- R("div", Ql, [
1318
- C(w.$slots, "before", {}, () => [
1319
- a(J) ? (m(), T(U, W(E({ key: 0 }, a(M))), null, 16)) : I("", !0)
1315
+ for: l(I)
1316
+ }, L(w.label), 9, Za)) : P("", !0),
1317
+ E("div", Ya, [
1318
+ A(w.$slots, "before", {}, () => [
1319
+ l(J) ? (m(), T(M, K(R({ key: 0 }, l(H))), null, 16)) : P("", !0)
1320
1320
  ]),
1321
- Se(R("select", E({
1322
- id: a(P),
1321
+ Se(E("select", R({
1322
+ id: l(I),
1323
1323
  ref_key: "select",
1324
1324
  ref: o,
1325
1325
  "onUpdate:modelValue": Z[0] || (Z[0] = (k) => $e(q) ? q.value = k : null)
1326
- }, a(fe)), [
1326
+ }, l(ve)), [
1327
1327
  w.placeholder ? (m(), _("option", {
1328
1328
  key: 0,
1329
1329
  value: void 0,
1330
1330
  disabled: !w.unselectable,
1331
1331
  hidden: !w.unselectable
1332
- }, L(w.placeholder), 9, ta)) : I("", !0),
1333
- (m(!0), _(he, null, Ae(w.options, (k, N) => (m(), _("option", {
1332
+ }, L(w.placeholder), 9, Qa)) : P("", !0),
1333
+ (m(!0), _(ge, null, Ce(w.options, (k, N) => (m(), _("option", {
1334
1334
  key: N,
1335
- disabled: ue(k),
1336
- value: a(ie)(k)
1337
- }, L(a(re)(k)), 9, la))), 128))
1338
- ], 16, ea), [
1339
- [Dt, a(q)]
1335
+ disabled: ie(k),
1336
+ value: l(re)(k)
1337
+ }, L(l(se)(k)), 9, el))), 128))
1338
+ ], 16, Ja), [
1339
+ [Rt, l(q)]
1340
1340
  ]),
1341
- C(w.$slots, "after", {}, () => [
1342
- a(B) ? (m(), T(U, W(E({ key: 0 }, a(M))), null, 16)) : I("", !0)
1341
+ A(w.$slots, "after", {}, () => [
1342
+ l(B) ? (m(), T(M, K(R({ key: 0 }, l(H))), null, 16)) : P("", !0)
1343
1343
  ])
1344
1344
  ]),
1345
- oe(a(u), {
1346
- id: a($),
1345
+ le(l(i), {
1346
+ id: l($),
1347
1347
  class: "vv-select__hint"
1348
1348
  }, null, 8, ["id"])
1349
1349
  ], 2));
1350
1350
  }
1351
- }), na = [
1351
+ }), ll = [
1352
1352
  "update:modelValue",
1353
1353
  "change:search",
1354
1354
  "focus",
1355
1355
  "blur"
1356
- ], sa = {
1357
- ...Re,
1358
- ...xe,
1356
+ ], ol = {
1357
+ ...Ee,
1358
+ ...He,
1359
1359
  ...we,
1360
- ...Pe,
1360
+ ...Ie,
1361
1361
  ...Oe,
1362
- ...Je,
1362
+ ...Xe,
1363
1363
  ...ye,
1364
- ...Ie,
1365
- ...pe,
1366
- ...He,
1367
- ...Qe,
1368
- ...et,
1364
+ ...Pe,
1365
+ ...ce,
1366
+ ...xe,
1367
+ ...Ze,
1368
+ ...Ye,
1369
1369
  ...Me,
1370
1370
  modelValue: {
1371
1371
  type: [String, Number, Boolean, Object, Array],
@@ -1384,70 +1384,70 @@ const Ul = {
1384
1384
  maxValues: [Number, String],
1385
1385
  separator: { type: String, default: ", " },
1386
1386
  native: Boolean
1387
- }, ra = ["id"], ia = ["id", "for"], ua = ["tabindex"], da = ["id", "placeholder"], ca = {
1387
+ }, nl = ["id"], sl = ["id", "for"], rl = ["tabindex"], il = ["id", "placeholder"], ul = {
1388
1388
  name: "VvCombobox"
1389
1389
  }, so = /* @__PURE__ */ D({
1390
- ...ca,
1391
- props: sa,
1392
- emits: na,
1393
- setup(t, { emit: l }) {
1394
- const e = t, n = ce(), { HintSlot: o } = _e(e, n), u = G(), s = G(), { focused: b } = Ue(u, l), c = r(() => String(e.id || ve())), d = G(""), i = jt(
1390
+ ...ul,
1391
+ props: ol,
1392
+ emits: ll,
1393
+ setup(t, { emit: a }) {
1394
+ const e = t, n = he(), { HintSlot: o } = _e(e, n), i = j(), s = j(), { focused: b } = Qe(i, a), c = u(() => String(e.id || de())), d = j(""), r = Gt(
1395
1395
  d,
1396
1396
  Number(e.debounceSearch)
1397
- ), p = G(!1), {
1397
+ ), p = j(!1), {
1398
1398
  icon: v,
1399
1399
  iconPosition: g,
1400
1400
  modifiers: h,
1401
1401
  disabled: y,
1402
1402
  readonly: f,
1403
1403
  loading: V,
1404
- valid: P,
1404
+ valid: I,
1405
1405
  invalid: $,
1406
- floating: H
1407
- } = F(e);
1408
- Ce(
1409
- i,
1410
- () => l("change:search", i.value)
1406
+ floating: x
1407
+ } = W(e);
1408
+ ke(
1409
+ r,
1410
+ () => a("change:search", r.value)
1411
1411
  );
1412
- const { hasIcon: A, hasIconLeft: M, hasIconRight: J } = Ge(
1412
+ const { hasIcon: C, hasIconLeft: H, hasIconRight: J } = Je(
1413
1413
  v,
1414
1414
  g
1415
- ), B = r(() => !ee(e.modelValue)), j = r(() => y.value || f.value ? -1 : e.tabindex), { bemCssClasses: le } = x("vv-select", {
1415
+ ), B = u(() => !fe(e.modelValue)), U = u(() => y.value || f.value ? -1 : e.tabindex), { bemCssClasses: te } = G("vv-select", {
1416
1416
  modifiers: h,
1417
1417
  disabled: y,
1418
1418
  loading: V,
1419
1419
  readonly: f,
1420
- iconLeft: M,
1420
+ iconLeft: H,
1421
1421
  iconRight: J,
1422
- valid: P,
1422
+ valid: I,
1423
1423
  invalid: $,
1424
1424
  dirty: B,
1425
1425
  focus: b,
1426
- floating: H
1427
- }), ne = r(
1428
- () => e.searchable ? fe.value : e.options
1429
- ), { getOptionLabel: se, getOptionValue: ae } = Ee(e), fe = r(() => {
1426
+ floating: x
1427
+ }), oe = u(
1428
+ () => e.searchable ? ve.value : e.options
1429
+ ), { getOptionLabel: ne, getOptionValue: ae } = Re(e), ve = u(() => {
1430
1430
  var k;
1431
- return (k = e.options) == null ? void 0 : k.filter((N) => se(N).toLowerCase().includes(i.value.toLowerCase().trim()));
1432
- }), re = r(() => {
1431
+ return (k = e.options) == null ? void 0 : k.filter((N) => ne(N).toLowerCase().includes(r.value.toLowerCase().trim()));
1432
+ }), se = u(() => {
1433
1433
  let k = [];
1434
1434
  return Array.isArray(e.modelValue) ? k = e.modelValue : e.modelValue && (k = [e.modelValue]), e.options.filter(
1435
1435
  (N) => k.includes(ae(N))
1436
1436
  );
1437
- }), ie = r(() => re.value.map((k) => se(k)).join(e.separator));
1438
- dt(u, () => {
1439
- u.value.open = !1;
1437
+ }), re = u(() => se.value.map((k) => ne(k)).join(e.separator));
1438
+ dt(i, () => {
1439
+ i.value.open = !1;
1440
1440
  });
1441
- function ue(k) {
1441
+ function ie(k) {
1442
1442
  const N = k.target;
1443
1443
  p.value = N.open;
1444
1444
  }
1445
1445
  function q(k) {
1446
- u.value && !e.multiple && (u.value.open = !1), l("update:modelValue", k);
1446
+ i.value && !e.multiple && (i.value.open = !1), a("update:modelValue", k);
1447
1447
  }
1448
- const w = r(() => ({
1448
+ const w = u(() => ({
1449
1449
  name: e.name,
1450
- options: ne.value,
1450
+ options: oe.value,
1451
1451
  labelKey: e.labelKey,
1452
1452
  valueKey: e.valueKey,
1453
1453
  disabled: e.disabled,
@@ -1456,11 +1456,11 @@ const Ul = {
1456
1456
  maxValues: e.maxValues,
1457
1457
  modelValue: e.modelValue,
1458
1458
  unselectable: e.unselectable
1459
- })), Z = r(() => ({
1459
+ })), Z = u(() => ({
1460
1460
  id: c.value,
1461
1461
  name: e.name,
1462
- tabindex: j.value,
1463
- valid: P.value,
1462
+ tabindex: U.value,
1463
+ valid: I.value,
1464
1464
  validLabel: e.validLabel,
1465
1465
  invalid: $.value,
1466
1466
  invalidLabel: e.invalidLabel,
@@ -1470,7 +1470,7 @@ const Ul = {
1470
1470
  disabled: y.value,
1471
1471
  readonly: f.value,
1472
1472
  modifiers: e.modifiers,
1473
- options: ne.value,
1473
+ options: oe.value,
1474
1474
  labelKey: e.labelKey,
1475
1475
  valueKey: e.valueKey,
1476
1476
  icon: e.icon,
@@ -1482,154 +1482,154 @@ const Ul = {
1482
1482
  placeholder: e.placeholder,
1483
1483
  modelValue: e.modelValue
1484
1484
  }));
1485
- return (k, N) => k.native ? (m(), T(oa, E({ key: 1 }, a(Z), {
1486
- "onUpdate:modelValue": N[4] || (N[4] = (Y) => l("update:modelValue", Y))
1485
+ return (k, N) => k.native ? (m(), T(al, R({ key: 1 }, l(Z), {
1486
+ "onUpdate:modelValue": N[4] || (N[4] = (Y) => a("update:modelValue", Y))
1487
1487
  }), null, 16)) : (m(), _("div", {
1488
1488
  key: 0,
1489
- id: a(c),
1490
- class: K(a(le))
1489
+ id: l(c),
1490
+ class: F(l(te))
1491
1491
  }, [
1492
1492
  k.label ? (m(), _("label", {
1493
1493
  key: 0,
1494
- id: `${a(c)}-label`,
1495
- for: k.searchable && p.value ? `${a(c)}-input` : void 0
1496
- }, L(k.label), 9, ia)) : I("", !0),
1497
- R("details", {
1494
+ id: `${l(c)}-label`,
1495
+ for: k.searchable && p.value ? `${l(c)}-input` : void 0
1496
+ }, L(k.label), 9, sl)) : P("", !0),
1497
+ E("details", {
1498
1498
  ref_key: "dropdown",
1499
- ref: u,
1499
+ ref: i,
1500
1500
  class: "vv-select__wrapper",
1501
- onClick: N[2] || (N[2] = (Y) => a(y) || a(f) ? Y.preventDefault() : null),
1502
- onKeyup: N[3] || (N[3] = lt((Y) => u.value.open = !1, ["esc"])),
1503
- onToggle: ue
1501
+ onClick: N[2] || (N[2] = (Y) => l(y) || l(f) ? Y.preventDefault() : null),
1502
+ onKeyup: N[3] || (N[3] = tt((Y) => i.value.open = !1, ["esc"])),
1503
+ onToggle: ie
1504
1504
  }, [
1505
- R("summary", {
1505
+ E("summary", {
1506
1506
  class: "vv-select__input",
1507
- tabindex: a(j),
1508
- onKeyup: N[1] || (N[1] = lt((Y) => k.searchable ? Y.preventDefault() : null, ["space"]))
1507
+ tabindex: l(U),
1508
+ onKeyup: N[1] || (N[1] = tt((Y) => k.searchable ? Y.preventDefault() : null, ["space"]))
1509
1509
  }, [
1510
- C(k.$slots, "before", {}, () => [
1511
- a(M) ? (m(), T(U, E({
1510
+ A(k.$slots, "before", {}, () => [
1511
+ l(H) ? (m(), T(M, R({
1512
1512
  key: 0,
1513
1513
  class: "vv-select__icon-left"
1514
- }, a(A)), null, 16)) : I("", !0)
1514
+ }, l(C)), null, 16)) : P("", !0)
1515
1515
  ]),
1516
1516
  k.searchable && p.value ? Se((m(), _("input", {
1517
1517
  key: 0,
1518
- id: `${a(c)}-input`,
1518
+ id: `${l(c)}-input`,
1519
1519
  ref_key: "inputSearch",
1520
1520
  ref: s,
1521
1521
  "onUpdate:modelValue": N[0] || (N[0] = (Y) => d.value = Y),
1522
1522
  role: "combobox",
1523
1523
  type: "search",
1524
1524
  placeholder: k.searchPlaceholder
1525
- }, null, 8, da)), [
1526
- [ut, d.value]
1527
- ]) : (m(), _(he, { key: 1 }, [
1528
- X(L(a(ie) || k.placeholder), 1)
1525
+ }, null, 8, il)), [
1526
+ [it, d.value]
1527
+ ]) : (m(), _(ge, { key: 1 }, [
1528
+ X(L(l(re) || k.placeholder), 1)
1529
1529
  ], 64)),
1530
- C(k.$slots, "after", {}, () => [
1531
- a(J) ? (m(), T(U, E({
1530
+ A(k.$slots, "after", {}, () => [
1531
+ l(J) ? (m(), T(M, R({
1532
1532
  key: 0,
1533
1533
  class: "vv-select__icon-right"
1534
- }, a(A)), null, 16)) : I("", !0)
1534
+ }, l(C)), null, 16)) : P("", !0)
1535
1535
  ])
1536
- ], 40, ua),
1537
- oe(Xl, E({
1538
- id: `${a(c)}-dropdown`
1539
- }, a(w), { "onUpdate:modelValue": q }), null, 16, ["id"])
1536
+ ], 40, rl),
1537
+ le(za, R({
1538
+ id: `${l(c)}-dropdown`
1539
+ }, l(w), { "onUpdate:modelValue": q }), null, 16, ["id"])
1540
1540
  ], 544),
1541
- oe(a(o), { class: "vv-select__hint" })
1542
- ], 10, ra));
1541
+ le(l(o), { class: "vv-select__hint" })
1542
+ ], 10, nl));
1543
1543
  }
1544
- }), va = ["open", "close", "update:modelValue"], pa = {
1544
+ }), dl = ["open", "close", "update:modelValue"], cl = {
1545
1545
  id: { type: String, required: !0 },
1546
1546
  title: String,
1547
1547
  modelValue: Boolean,
1548
1548
  transition: { type: String, default: "fade-block" },
1549
1549
  size: String,
1550
1550
  autoClose: { type: Boolean, default: !0 }
1551
- }, fa = {
1551
+ }, vl = {
1552
1552
  key: 0,
1553
1553
  class: "vv-dialog__header"
1554
- }, ma = ["onClick"], ba = { class: "vv-dialog__content" }, ga = {
1554
+ }, pl = ["onClick"], fl = { class: "vv-dialog__content" }, ml = {
1555
1555
  key: 1,
1556
1556
  class: "vv-dialog__footer"
1557
- }, ha = {
1557
+ }, bl = {
1558
1558
  name: "VvDialog"
1559
1559
  }, ro = /* @__PURE__ */ D({
1560
- ...ha,
1561
- props: pa,
1562
- emits: va,
1563
- setup(t, { emit: l }) {
1564
- const e = t, n = Ze(e, "modelValue", l), o = G(!0), u = G(null), s = r(() => {
1560
+ ...bl,
1561
+ props: cl,
1562
+ emits: dl,
1563
+ setup(t, { emit: a }) {
1564
+ const e = t, n = qe(e, "modelValue", a), o = j(!0), i = j(null), s = u(() => {
1565
1565
  const { id: p } = e;
1566
1566
  return {
1567
1567
  id: p,
1568
1568
  open: o.value
1569
1569
  };
1570
- }), b = r(() => e.size ? ["vv-dialog", `vv-dialog--${e.size}`] : "vv-dialog"), c = r(() => `vv-dialog--${e.transition}`), d = {
1570
+ }), b = u(() => e.size ? ["vv-dialog", `vv-dialog--${e.size}`] : "vv-dialog"), c = u(() => `vv-dialog--${e.transition}`), d = {
1571
1571
  "before-enter": () => {
1572
- o.value = !0, l("open");
1572
+ o.value = !0, a("open");
1573
1573
  },
1574
1574
  "after-leave": () => {
1575
- o.value = !1, l("close");
1575
+ o.value = !1, a("close");
1576
1576
  }
1577
1577
  };
1578
- dt(u, () => {
1578
+ dt(i, () => {
1579
1579
  e.autoClose && (n.value = !1);
1580
1580
  });
1581
- function i() {
1581
+ function r() {
1582
1582
  n.value = !1;
1583
1583
  }
1584
- return (p, v) => (m(), T(Tt, E({ name: a(c) }, Bt(d)), {
1585
- default: ke(() => [
1586
- Se(R("dialog", E(a(s), { class: a(b) }), [
1587
- R("article", {
1584
+ return (p, v) => (m(), T(Lt, R({ name: l(c) }, Dt(d)), {
1585
+ default: Ae(() => [
1586
+ Se(E("dialog", R(l(s), { class: l(b) }), [
1587
+ E("article", {
1588
1588
  ref_key: "modalWrapper",
1589
- ref: u,
1589
+ ref: i,
1590
1590
  class: "vv-dialog__wrapper"
1591
1591
  }, [
1592
- p.$slots.header || p.title ? (m(), _("header", fa, [
1593
- C(p.$slots, "header", {}, () => [
1592
+ p.$slots.header || p.title ? (m(), _("header", vl, [
1593
+ A(p.$slots, "header", {}, () => [
1594
1594
  X(L(p.title) + " ", 1),
1595
- R("button", {
1595
+ E("button", {
1596
1596
  type: "button",
1597
1597
  "aria-label": "Close",
1598
1598
  class: "vv-dialog__close",
1599
- onClick: qe(i, ["prevent"])
1599
+ onClick: We(r, ["prevent"])
1600
1600
  }, [
1601
- oe(U, { name: "close" })
1602
- ], 8, ma)
1601
+ le(M, { name: "close" })
1602
+ ], 8, pl)
1603
1603
  ])
1604
- ])) : I("", !0),
1605
- R("div", ba, [
1606
- C(p.$slots, "default")
1604
+ ])) : P("", !0),
1605
+ E("div", fl, [
1606
+ A(p.$slots, "default")
1607
1607
  ]),
1608
- p.$slots.footer ? (m(), _("footer", ga, [
1609
- C(p.$slots, "footer")
1610
- ])) : I("", !0)
1608
+ p.$slots.footer ? (m(), _("footer", ml, [
1609
+ A(p.$slots, "footer")
1610
+ ])) : P("", !0)
1611
1611
  ], 512)
1612
1612
  ], 16), [
1613
- [Nt, a(n)]
1613
+ [Tt, l(n)]
1614
1614
  ])
1615
1615
  ]),
1616
1616
  _: 3
1617
1617
  }, 16, ["name"]));
1618
1618
  }
1619
1619
  });
1620
- function $t(t, l, e = 0) {
1620
+ function gl(t, a, e = 0) {
1621
1621
  let n;
1622
- return typeof e == "string" && (e = parseInt(e)), r({
1622
+ return typeof e == "string" && (e = parseInt(e)), u({
1623
1623
  get: () => t == null ? void 0 : t.value,
1624
1624
  set: (o) => {
1625
1625
  n && clearTimeout(n), n = setTimeout(() => {
1626
- l("update:modelValue", o);
1626
+ a("update:modelValue", o);
1627
1627
  }, e);
1628
1628
  }
1629
1629
  });
1630
1630
  }
1631
- function At(t, l) {
1632
- const e = r(() => (a(t) ?? "").length), n = r(() => (l == null ? void 0 : l.lowerLimit) !== void 0 && e.value < (l == null ? void 0 : l.lowerLimit) ? e.value - l.lowerLimit : (l == null ? void 0 : l.upperLimit) !== void 0 && e.value < (l == null ? void 0 : l.upperLimit) ? l.upperLimit - e.value : 0), o = r(() => (l == null ? void 0 : l.mode) === !1 ? "" : (l == null ? void 0 : l.mode) === "limit" && (l != null && l.upperLimit) ? `${e.value} / ${l.lowerLimit ? `${l.lowerLimit}-` : ""}${l.upperLimit}` : (l == null ? void 0 : l.mode) === "countdown" ? n.value === 0 ? void 0 : n : e.value);
1631
+ function hl(t, a) {
1632
+ const e = u(() => (l(t) ?? "").length), n = u(() => (a == null ? void 0 : a.lowerLimit) !== void 0 && e.value < (a == null ? void 0 : a.lowerLimit) ? e.value - a.lowerLimit : (a == null ? void 0 : a.upperLimit) !== void 0 && e.value < (a == null ? void 0 : a.upperLimit) ? a.upperLimit - e.value : 0), o = u(() => (a == null ? void 0 : a.mode) === !1 ? "" : (a == null ? void 0 : a.mode) === "limit" && (a != null && a.upperLimit) ? `${e.value} / ${a.lowerLimit ? `${a.lowerLimit}-` : ""}${a.upperLimit}` : (a == null ? void 0 : a.mode) === "countdown" ? n.value === 0 ? void 0 : n : e.value);
1633
1633
  return {
1634
1634
  length: e,
1635
1635
  gap: n,
@@ -1650,14 +1650,14 @@ const S = {
1650
1650
  DATETIME_LOCAL: "datetime-local",
1651
1651
  MONTH: "month",
1652
1652
  WEEK: "week"
1653
- }, be = {
1653
+ }, me = {
1654
1654
  PASSWORD_SHOW: "eye-on",
1655
1655
  PASSWORD_HIDE: "eye-off",
1656
1656
  DATE: "calendar",
1657
1657
  TIME: "time",
1658
1658
  COLOR: "color",
1659
1659
  SEARCH: "close"
1660
- }, ya = ["update:modelValue", "focus", "blur", "keyup"], _a = {
1660
+ }, yl = ["update:modelValue", "focus", "blur", "keyup"], _l = {
1661
1661
  ...gt,
1662
1662
  modelValue: [String, Number],
1663
1663
  type: {
@@ -1672,15 +1672,15 @@ const S = {
1672
1672
  multiple: Boolean,
1673
1673
  iconShowPassword: {
1674
1674
  type: String,
1675
- default: be.PASSWORD_SHOW
1675
+ default: me.PASSWORD_SHOW
1676
1676
  },
1677
1677
  iconHidePassword: {
1678
1678
  type: String,
1679
- default: be.PASSWORD_HIDE
1679
+ default: me.PASSWORD_HIDE
1680
1680
  },
1681
1681
  iconClear: {
1682
1682
  type: String,
1683
- default: be.SEARCH
1683
+ default: me.SEARCH
1684
1684
  },
1685
1685
  labelStepUp: {
1686
1686
  type: String,
@@ -1702,9 +1702,9 @@ const S = {
1702
1702
  type: String,
1703
1703
  default: "Clear"
1704
1704
  }
1705
- }, nt = D({
1705
+ }, ot = D({
1706
1706
  components: {
1707
- VvIcon: U
1707
+ VvIcon: M
1708
1708
  },
1709
1709
  props: {
1710
1710
  disabled: {
@@ -1721,20 +1721,20 @@ const S = {
1721
1721
  },
1722
1722
  iconShow: {
1723
1723
  type: String,
1724
- default: be.PASSWORD_SHOW
1724
+ default: me.PASSWORD_SHOW
1725
1725
  },
1726
1726
  iconHide: {
1727
1727
  type: String,
1728
- default: be.PASSWORD_HIDE
1728
+ default: me.PASSWORD_HIDE
1729
1729
  }
1730
1730
  },
1731
1731
  emits: ["toggle-password"],
1732
- setup(t, { emit: l }) {
1733
- const e = G(!1), n = r(
1732
+ setup(t, { emit: a }) {
1733
+ const e = j(!1), n = u(
1734
1734
  () => e.value ? t.iconHide : t.iconShow
1735
1735
  );
1736
- function o(u) {
1737
- u == null || u.stopPropagation(), t.disabled || (e.value = !e.value, l("toggle-password", e.value));
1736
+ function o(i) {
1737
+ i == null || i.stopPropagation(), t.disabled || (e.value = !e.value, a("toggle-password", e.value));
1738
1738
  }
1739
1739
  return {
1740
1740
  active: e,
@@ -1743,7 +1743,7 @@ const S = {
1743
1743
  };
1744
1744
  },
1745
1745
  render() {
1746
- const t = Q(U, {
1746
+ const t = Q(M, {
1747
1747
  name: this.activeIcon,
1748
1748
  class: "vv-input-text__action-icon"
1749
1749
  });
@@ -1759,9 +1759,9 @@ const S = {
1759
1759
  t
1760
1760
  );
1761
1761
  }
1762
- }), Ke = D({
1762
+ }), Ue = D({
1763
1763
  components: {
1764
- VvIcon: U
1764
+ VvIcon: M
1765
1765
  },
1766
1766
  props: {
1767
1767
  disabled: {
@@ -1778,12 +1778,12 @@ const S = {
1778
1778
  }
1779
1779
  },
1780
1780
  emits: ["step-up", "step-down"],
1781
- setup(t, { emit: l }) {
1782
- const e = r(() => t.mode === "up");
1781
+ setup(t, { emit: a }) {
1782
+ const e = u(() => t.mode === "up");
1783
1783
  return {
1784
1784
  isUp: e,
1785
1785
  onClick: (o) => {
1786
- o == null || o.stopPropagation(), t.disabled || l(e.value ? "step-up" : "step-down");
1786
+ o == null || o.stopPropagation(), t.disabled || a(e.value ? "step-up" : "step-down");
1787
1787
  }
1788
1788
  };
1789
1789
  },
@@ -1798,9 +1798,9 @@ const S = {
1798
1798
  onClick: this.onClick
1799
1799
  });
1800
1800
  }
1801
- }), st = D({
1801
+ }), nt = D({
1802
1802
  components: {
1803
- VvIcon: U
1803
+ VvIcon: M
1804
1804
  },
1805
1805
  props: {
1806
1806
  disabled: {
@@ -1817,16 +1817,16 @@ const S = {
1817
1817
  }
1818
1818
  },
1819
1819
  emits: ["clear"],
1820
- setup(t, { emit: l }) {
1820
+ setup(t, { emit: a }) {
1821
1821
  function e(n) {
1822
- n == null || n.stopPropagation(), t.disabled || l("clear");
1822
+ n == null || n.stopPropagation(), t.disabled || a("clear");
1823
1823
  }
1824
1824
  return {
1825
1825
  onClick: e
1826
1826
  };
1827
1827
  },
1828
1828
  render() {
1829
- const t = Q(U, {
1829
+ const t = Q(M, {
1830
1830
  name: this.icon,
1831
1831
  class: "vv-input-text__action-icon"
1832
1832
  });
@@ -1843,25 +1843,25 @@ const S = {
1843
1843
  );
1844
1844
  }
1845
1845
  });
1846
- function Fe(t, l) {
1846
+ function je(t, a) {
1847
1847
  return {
1848
1848
  name: "VvInputTextActions",
1849
1849
  components: {
1850
- VvIcon: U,
1851
- VvInputPasswordAction: nt,
1852
- VvInputStepAction: Ke,
1853
- VvInputClearAction: st
1850
+ VvIcon: M,
1851
+ VvInputPasswordAction: ot,
1852
+ VvInputStepAction: Ue,
1853
+ VvInputClearAction: nt
1854
1854
  },
1855
1855
  setup() {
1856
1856
  return {
1857
- isDisabled: r(() => l.disabled || l.readonly),
1858
- labelStepUp: l.labelStepUp,
1859
- labelStepDown: l.labelStepDown,
1860
- labelShowPassword: l.labelShowPassword,
1861
- labelHidePassword: l.labelHidePassword,
1862
- labelClear: l.labelClear,
1863
- iconShowPassword: l.iconShowPassword,
1864
- iconHidePassword: l.iconHidePassword
1857
+ isDisabled: u(() => a.disabled || a.readonly),
1858
+ labelStepUp: a.labelStepUp,
1859
+ labelStepDown: a.labelStepDown,
1860
+ labelShowPassword: a.labelShowPassword,
1861
+ labelHidePassword: a.labelHidePassword,
1862
+ labelClear: a.labelClear,
1863
+ iconShowPassword: a.iconShowPassword,
1864
+ iconHidePassword: a.iconHidePassword
1865
1865
  };
1866
1866
  },
1867
1867
  render() {
@@ -1870,7 +1870,7 @@ function Fe(t, l) {
1870
1870
  case S.SEARCH: {
1871
1871
  const { onClear: n } = this.$attrs;
1872
1872
  e = [
1873
- Q(st, {
1873
+ Q(nt, {
1874
1874
  disabled: this.isDisabled,
1875
1875
  label: this.labelShowPassword,
1876
1876
  onClear: n
@@ -1881,7 +1881,7 @@ function Fe(t, l) {
1881
1881
  case S.PASSWORD: {
1882
1882
  const { onTogglePassword: n } = this.$attrs;
1883
1883
  e = [
1884
- Q(nt, {
1884
+ Q(ot, {
1885
1885
  disabled: this.isDisabled,
1886
1886
  onTogglePassword: n,
1887
1887
  labelShow: this.labelShowPassword,
@@ -1895,16 +1895,16 @@ function Fe(t, l) {
1895
1895
  case S.NUMBER: {
1896
1896
  const { onStepUp: n, onStepDown: o } = this.$attrs;
1897
1897
  e = [
1898
- Q(Ke, {
1898
+ Q(Ue, {
1899
1899
  mode: "up",
1900
- disabled: this.isDisabled || l.max !== void 0 && l.modelValue === l.max,
1900
+ disabled: this.isDisabled || a.max !== void 0 && a.modelValue === a.max,
1901
1901
  label: this.labelStepUp,
1902
1902
  onStepUp: n,
1903
1903
  onStepDown: o
1904
1904
  }),
1905
- Q(Ke, {
1905
+ Q(Ue, {
1906
1906
  mode: "down",
1907
- disabled: this.isDisabled || l.min !== void 0 && l.modelValue === l.min,
1907
+ disabled: this.isDisabled || a.min !== void 0 && a.modelValue === a.min,
1908
1908
  label: this.labelStepDown,
1909
1909
  onStepUp: n,
1910
1910
  onStepDown: o
@@ -1917,83 +1917,83 @@ function Fe(t, l) {
1917
1917
  }
1918
1918
  };
1919
1919
  }
1920
- const Sa = ["for"], Va = { class: "vv-input-text__wrapper" }, $a = ["id"], Aa = {
1920
+ const Sl = ["for"], Vl = { class: "vv-input-text__wrapper" }, $l = ["id"], Cl = {
1921
1921
  key: 0,
1922
1922
  class: "vv-input-text__limit"
1923
- }, Ca = {
1923
+ }, Al = {
1924
1924
  name: "VvInputText"
1925
1925
  }, io = /* @__PURE__ */ D({
1926
- ...Ca,
1927
- props: _a,
1928
- emits: ya,
1929
- setup(t, { emit: l }) {
1930
- const e = t, n = ce(), o = G(), {
1931
- icon: u,
1926
+ ...Al,
1927
+ props: _l,
1928
+ emits: yl,
1929
+ setup(t, { emit: a }) {
1930
+ const e = t, n = he(), o = j(), {
1931
+ icon: i,
1932
1932
  iconPosition: s,
1933
1933
  label: b,
1934
1934
  modelValue: c,
1935
1935
  count: d,
1936
- valid: i,
1936
+ valid: r,
1937
1937
  invalid: p,
1938
1938
  loading: v
1939
- } = F(e), g = r(() => String(e.id || ve())), h = r(() => `${g.value}-hint`), y = r(
1940
- () => e.floating && ee(e.placeholder) ? " " : e.placeholder
1941
- ), f = $t(c, l, e.debounce), { focused: V } = Ue(o, l), P = Ye(o);
1942
- Ce(P, (O) => {
1939
+ } = W(e), g = u(() => String(e.id || de())), h = u(() => `${g.value}-hint`), y = u(
1940
+ () => e.floating && fe(e.placeholder) ? " " : e.placeholder
1941
+ ), f = gl(c, a, e.debounce), { focused: V } = Qe(o, a), I = ut(o);
1942
+ ke(I, (O) => {
1943
1943
  O && e.autofocus && (V.value = !0);
1944
1944
  });
1945
- const $ = G(!1), H = r(() => e.type === S.PASSWORD), A = () => {
1945
+ const $ = j(!1), x = u(() => e.type === S.PASSWORD), C = () => {
1946
1946
  $.value = !$.value;
1947
- }, M = r(
1947
+ }, H = u(
1948
1948
  () => e.type === S.TIME || e.type === S.DATETIME_LOCAL || e.type === S.DATE || e.type === S.WEEK || e.type === S.MONTH
1949
- ), J = r(() => e.type === S.NUMBER), B = () => {
1950
- ue.value && (o.value.stepUp(), f.value = a(o).value);
1951
- }, j = () => {
1952
- ue.value && (o.value.stepDown(), f.value = a(o).value);
1953
- }, le = r(() => e.type === S.SEARCH), ne = () => {
1949
+ ), J = u(() => e.type === S.NUMBER), B = () => {
1950
+ ie.value && (o.value.stepUp(), f.value = l(o).value);
1951
+ }, U = () => {
1952
+ ie.value && (o.value.stepDown(), f.value = l(o).value);
1953
+ }, te = u(() => e.type === S.SEARCH), oe = () => {
1954
1954
  f.value = void 0;
1955
- }, { hasIconLeft: se, hasIconRight: ae, hasIcon: fe } = Ge(
1956
- u,
1955
+ }, { hasIconLeft: ne, hasIconRight: ae, hasIcon: ve } = Je(
1956
+ i,
1957
1957
  s
1958
- ), re = r(() => {
1958
+ ), se = u(() => {
1959
1959
  switch (e.type) {
1960
1960
  case S.COLOR:
1961
- return { name: be.COLOR };
1961
+ return { name: me.COLOR };
1962
1962
  case S.DATE:
1963
1963
  case S.DATETIME_LOCAL:
1964
1964
  case S.WEEK:
1965
1965
  case S.MONTH:
1966
- return { name: be.DATE };
1966
+ return { name: me.DATE };
1967
1967
  case S.TIME:
1968
- return { name: be.TIME };
1968
+ return { name: me.TIME };
1969
1969
  default:
1970
1970
  return "";
1971
1971
  }
1972
- }), { formatted: ie } = At(f, {
1972
+ }), { formatted: re } = hl(f, {
1973
1973
  mode: e.count,
1974
1974
  upperLimit: e.maxlength,
1975
1975
  lowerLimit: e.minlength
1976
- }), ue = r(() => !e.disabled && !e.readonly), q = r(
1977
- () => ue.value ? e.tabindex : -1
1978
- ), w = r(() => !ee(c)), Z = r(() => {
1976
+ }), ie = u(() => !e.disabled && !e.readonly), q = u(
1977
+ () => ie.value ? e.tabindex : -1
1978
+ ), w = u(() => !fe(c)), Z = u(() => {
1979
1979
  if (p.value === !0)
1980
1980
  return !0;
1981
- if (i.value === !0)
1981
+ if (r.value === !0)
1982
1982
  return !1;
1983
- }), { bemCssClasses: k } = x("vv-input-text", {
1983
+ }), { bemCssClasses: k } = G("vv-input-text", {
1984
1984
  modifiers: e.modifiers,
1985
- valid: i,
1985
+ valid: r,
1986
1986
  invalid: p,
1987
1987
  loading: v,
1988
1988
  disabled: e.disabled,
1989
1989
  readonly: e.readonly,
1990
- iconLeft: se,
1991
- iconRight: ae.value || !ee(re),
1992
- floating: e.floating && !ee(e.label),
1990
+ iconLeft: ne,
1991
+ iconRight: ae.value || !fe(se),
1992
+ floating: e.floating && !fe(e.label),
1993
1993
  dirty: w,
1994
1994
  focus: V
1995
- }), N = r(() => {
1996
- const O = (() => H.value && $.value || M.value && !w.value && !V.value ? S.TEXT : e.type)(), z = {
1995
+ }), N = u(() => {
1996
+ const O = (() => x.value && $.value || H.value && !w.value && !V.value ? S.TEXT : e.type)(), z = {
1997
1997
  type: O,
1998
1998
  name: e.name,
1999
1999
  tabindex: q.value,
@@ -2002,80 +2002,80 @@ const Sa = ["for"], Va = { class: "vv-input-text__wrapper" }, $a = ["id"], Aa =
2002
2002
  required: e.required,
2003
2003
  autocomplete: e.autocomplete,
2004
2004
  "aria-invalid": Z.value,
2005
- "aria-describedby": !tt.value && kt.value ? h.value : void 0,
2006
- "aria-errormessage": tt.value ? h.value : void 0
2005
+ "aria-describedby": !et.value && Ct.value ? h.value : void 0,
2006
+ "aria-errormessage": et.value ? h.value : void 0
2007
2007
  };
2008
2008
  return (O === S.DATE || O === S.MONTH || O === S.WEEK || O === S.TIME || O === S.DATETIME_LOCAL || O === S.NUMBER) && (z.step = e.step, z.max = String(e.max), z.min = String(e.min)), (O === S.TEXT || O === S.SEARCH || O === S.URL || O === S.TEL || O === S.EMAIL || O === S.PASSWORD || O === S.NUMBER) && (z.placeholder = y.value), (O === S.TEXT || O === S.SEARCH || O === S.URL || O === S.TEL || O === S.EMAIL || O === S.PASSWORD) && (z.minlength = e.minlength, z.maxlength = e.maxlength, z.pattern = e.pattern), O === S.EMAIL && (z.multiple = e.multiple), z;
2009
- }), Y = r(() => ({
2009
+ }), Y = u(() => ({
2010
2010
  valid: e.valid,
2011
2011
  invalid: e.invalid,
2012
2012
  modelValue: e.modelValue,
2013
- togglePassword: A,
2013
+ togglePassword: C,
2014
2014
  stepUp: B,
2015
- stepDown: j,
2016
- clear: ne
2017
- })), { HintSlot: Ct, hasHint: kt, hasInvalid: tt } = _e(e, n), wt = Fe(
2015
+ stepDown: U,
2016
+ clear: oe
2017
+ })), { HintSlot: $t, hasHint: Ct, hasInvalid: et } = _e(e, n), At = je(
2018
2018
  S.PASSWORD,
2019
2019
  e
2020
- ), Pt = Fe(
2020
+ ), kt = je(
2021
2021
  S.NUMBER,
2022
2022
  e
2023
- ), It = Fe(
2023
+ ), wt = je(
2024
2024
  S.SEARCH,
2025
2025
  e
2026
2026
  );
2027
2027
  return (O, z) => (m(), _("div", {
2028
- class: K(a(k))
2028
+ class: F(l(k))
2029
2029
  }, [
2030
- a(b) ? (m(), _("label", {
2030
+ l(b) ? (m(), _("label", {
2031
2031
  key: 0,
2032
- for: a(g),
2032
+ for: l(g),
2033
2033
  class: "vv-input-text__label"
2034
- }, L(a(b)), 9, Sa)) : I("", !0),
2035
- R("div", Va, [
2036
- C(O.$slots, "before", W(te(a(Y))), () => [
2037
- a(se) ? (m(), T(U, E({
2034
+ }, L(l(b)), 9, Sl)) : P("", !0),
2035
+ E("div", Vl, [
2036
+ A(O.$slots, "before", K(ee(l(Y))), () => [
2037
+ l(ne) ? (m(), T(M, R({
2038
2038
  key: 0,
2039
2039
  class: "vv-input-text__icon-left"
2040
- }, a(fe)), null, 16)) : I("", !0)
2040
+ }, l(ve)), null, 16)) : P("", !0)
2041
2041
  ]),
2042
- Se(R("input", E({
2043
- id: a(g),
2042
+ Se(E("input", R({
2043
+ id: l(g),
2044
2044
  ref_key: "input",
2045
2045
  ref: o,
2046
- "onUpdate:modelValue": z[0] || (z[0] = (je) => $e(f) ? f.value = je : null)
2047
- }, a(N), {
2048
- onKeyup: z[1] || (z[1] = (je) => l("keyup", je))
2049
- }), null, 16, $a), [
2050
- [Ht, a(f)]
2046
+ "onUpdate:modelValue": z[0] || (z[0] = (Ge) => $e(f) ? f.value = Ge : null)
2047
+ }, l(N), {
2048
+ onKeyup: z[1] || (z[1] = (Ge) => a("keyup", Ge))
2049
+ }), null, 16, $l), [
2050
+ [Bt, l(f)]
2051
2051
  ]),
2052
- C(O.$slots, "after", W(te(a(Y))), () => [
2053
- a(ae) || a(re) ? (m(), T(U, W(E({ key: 0 }, a(ae) ? a(fe) : a(re))), null, 16)) : a(H) ? (m(), T(a(wt), {
2052
+ A(O.$slots, "after", K(ee(l(Y))), () => [
2053
+ l(ae) || l(se) ? (m(), T(M, K(R({ key: 0 }, l(ae) ? l(ve) : l(se))), null, 16)) : l(x) ? (m(), T(l(At), {
2054
2054
  key: 1,
2055
- onTogglePassword: A
2056
- })) : a(J) ? (m(), T(a(Pt), {
2055
+ onTogglePassword: C
2056
+ })) : l(J) ? (m(), T(l(kt), {
2057
2057
  key: 2,
2058
2058
  onStepUp: B,
2059
- onStepDown: j
2060
- })) : a(le) ? (m(), T(a(It), {
2059
+ onStepDown: U
2060
+ })) : l(te) ? (m(), T(l(wt), {
2061
2061
  key: 3,
2062
- onClear: ne
2063
- })) : I("", !0)
2062
+ onClear: oe
2063
+ })) : P("", !0)
2064
2064
  ]),
2065
- a(d) ? (m(), _("span", Aa, [
2066
- C(O.$slots, "count", W(te(a(Y))), () => [
2067
- X(L(a(ie)), 1)
2065
+ l(d) ? (m(), _("span", Cl, [
2066
+ A(O.$slots, "count", K(ee(l(Y))), () => [
2067
+ X(L(l(re)), 1)
2068
2068
  ])
2069
- ])) : I("", !0)
2069
+ ])) : P("", !0)
2070
2070
  ]),
2071
- oe(a(Ct), {
2072
- id: a(h),
2071
+ le(l($t), {
2072
+ id: l(h),
2073
2073
  class: "vv-input-text__hint"
2074
2074
  }, null, 8, ["id"])
2075
2075
  ], 2));
2076
2076
  }
2077
- }), ka = {
2078
- ...pe,
2077
+ }), kl = {
2078
+ ...ce,
2079
2079
  value: {
2080
2080
  type: [Number, String],
2081
2081
  default: void 0
@@ -2087,116 +2087,116 @@ const Sa = ["for"], Va = { class: "vv-input-text__wrapper" }, $a = ["id"], Aa =
2087
2087
  type: String,
2088
2088
  required: !0
2089
2089
  }
2090
- }, wa = {
2090
+ }, wl = {
2091
2091
  name: "VvProgress"
2092
2092
  }, uo = /* @__PURE__ */ D({
2093
- ...wa,
2094
- props: ka,
2093
+ ...wl,
2094
+ props: kl,
2095
2095
  setup(t) {
2096
- const l = t, { value: e, max: n, label: o } = F(l), u = r(() => l.value === void 0), { bemCssClasses: s } = x("vv-progress", {
2097
- modifiers: l.modifiers,
2098
- indeterminate: u
2096
+ const a = t, { value: e, max: n, label: o } = W(a), i = u(() => a.value === void 0), { bemCssClasses: s } = G("vv-progress", {
2097
+ modifiers: a.modifiers,
2098
+ indeterminate: i
2099
2099
  });
2100
- return (b, c) => (m(), _("progress", E({ role: "progressbar" }, {
2101
- class: a(s),
2102
- ariaLabel: a(o),
2103
- max: a(n),
2104
- value: a(e)
2100
+ return (b, c) => (m(), _("progress", R({ role: "progressbar" }, {
2101
+ class: l(s),
2102
+ ariaLabel: l(o),
2103
+ max: l(n),
2104
+ value: l(e)
2105
2105
  }), null, 16));
2106
2106
  }
2107
- }), Pa = ht, Ia = ["click", "update:modelValue", "change", "blur"];
2108
- function Oa(t, l) {
2109
- const { group: e, isInGroup: n, getGroupOrLocalRef: o } = Be(vt), u = o("modelValue", t, l), s = o("readonly", t), b = o("disabled", t), c = o("valid", t), d = o("invalid", t);
2107
+ }), Il = ht, Pl = ["click", "update:modelValue", "change", "blur"];
2108
+ function Ol(t, a) {
2109
+ const { group: e, isInGroup: n, getGroupOrLocalRef: o } = Be(vt), i = o("modelValue", t, a), s = o("readonly", t), b = o("disabled", t), c = o("valid", t), d = o("invalid", t);
2110
2110
  return {
2111
2111
  group: e,
2112
2112
  isInGroup: n,
2113
- modelValue: u,
2113
+ modelValue: i,
2114
2114
  readonly: s,
2115
2115
  disabled: b,
2116
2116
  valid: c,
2117
2117
  invalid: d
2118
2118
  };
2119
2119
  }
2120
- const Ra = ["for"], Ea = ["id", "name", "disabled", "value", "tabindex", "aria-invalid"], La = {
2120
+ const El = ["for"], Rl = ["id", "name", "disabled", "value", "tabindex", "aria-invalid"], Ll = {
2121
2121
  name: "VvRadio"
2122
- }, Da = /* @__PURE__ */ D({
2123
- ...La,
2124
- props: Pa,
2125
- emits: Ia,
2126
- setup(t, { emit: l }) {
2127
- const e = t, n = ce(), { disabled: o, readonly: u, modelValue: s, valid: b, invalid: c } = Oa(
2122
+ }, Dl = /* @__PURE__ */ D({
2123
+ ...Ll,
2124
+ props: Il,
2125
+ emits: Pl,
2126
+ setup(t, { emit: a }) {
2127
+ const e = t, n = he(), { disabled: o, readonly: i, modelValue: s, valid: b, invalid: c } = Ol(
2128
2128
  e,
2129
- l
2130
- ), d = r(() => String(e.id || ve())), i = r(() => v.value ? -1 : e.tabindex), p = G(), v = r(() => o.value || u.value), g = r(() => {
2129
+ a
2130
+ ), d = u(() => String(e.id || de())), r = u(() => v.value ? -1 : e.tabindex), p = j(), v = u(() => o.value || i.value), g = u(() => {
2131
2131
  if (c.value === !0)
2132
2132
  return !0;
2133
2133
  if (b.value === !0)
2134
2134
  return !1;
2135
- }), h = r(
2136
- () => Array.isArray(s.value) ? me(e.value, s.value) : ge(e.value, s.value)
2137
- ), y = r(
2135
+ }), h = u(
2136
+ () => Array.isArray(s.value) ? pe(e.value, s.value) : be(e.value, s.value)
2137
+ ), y = u(
2138
2138
  () => ["string", "number", "boolean"].includes(typeof e.value) ? e.value : !0
2139
- ), f = r({
2139
+ ), f = u({
2140
2140
  get() {
2141
2141
  return h.value ? y.value : null;
2142
2142
  },
2143
2143
  set($) {
2144
- Array.isArray(s.value) ? s.value = [e.value] : s.value = e.value, l("change", $);
2144
+ Array.isArray(s.value) ? s.value = [e.value] : s.value = e.value, a("change", $);
2145
2145
  }
2146
- }), { bemCssClasses: V } = x("vv-radio", {
2146
+ }), { bemCssClasses: V } = G("vv-radio", {
2147
2147
  valid: b,
2148
2148
  invalid: c,
2149
2149
  disabled: o,
2150
- readonly: u
2151
- }), { HintSlot: P } = _e(e, n);
2152
- return ($, H) => (m(), _("label", {
2153
- class: K(a(V)),
2154
- for: a(d)
2150
+ readonly: i
2151
+ }), { HintSlot: I } = _e(e, n);
2152
+ return ($, x) => (m(), _("label", {
2153
+ class: F(l(V)),
2154
+ for: l(d)
2155
2155
  }, [
2156
- Se(R("input", {
2157
- id: a(d),
2156
+ Se(E("input", {
2157
+ id: l(d),
2158
2158
  ref_key: "input",
2159
2159
  ref: p,
2160
- "onUpdate:modelValue": H[0] || (H[0] = (A) => $e(f) ? f.value = A : null),
2160
+ "onUpdate:modelValue": x[0] || (x[0] = (C) => $e(f) ? f.value = C : null),
2161
2161
  type: "radio",
2162
2162
  class: "vv-radio__input",
2163
2163
  name: $.name,
2164
- disabled: a(v),
2165
- value: a(y),
2166
- tabindex: a(i),
2167
- "aria-invalid": a(g)
2168
- }, null, 8, Ea), [
2169
- [xt, a(f)]
2164
+ disabled: l(v),
2165
+ value: l(y),
2166
+ tabindex: l(r),
2167
+ "aria-invalid": l(g)
2168
+ }, null, 8, Rl), [
2169
+ [Nt, l(f)]
2170
2170
  ]),
2171
- C($.$slots, "default", { value: a(s) }, () => [
2171
+ A($.$slots, "default", { value: l(s) }, () => [
2172
2172
  X(L($.label), 1)
2173
2173
  ]),
2174
- oe(a(P), {
2174
+ le(l(I), {
2175
2175
  class: "vv-radio__hint",
2176
- params: { value: a(s) }
2176
+ params: { value: l(s) }
2177
2177
  }, null, 8, ["params"])
2178
- ], 10, Ra));
2178
+ ], 10, El));
2179
2179
  }
2180
- }), Ta = yt, Ba = ["update:modelValue", "change"], Na = ["textContent"], Ha = { class: "vv-radio-group__wrapper" }, xa = {
2180
+ }), Tl = yt, Bl = ["update:modelValue", "change"], Nl = ["textContent"], xl = { class: "vv-radio-group__wrapper" }, Hl = {
2181
2181
  name: "VvRadioGroup"
2182
2182
  }, co = /* @__PURE__ */ D({
2183
- ...xa,
2184
- props: Ta,
2185
- emits: Ba,
2186
- setup(t, { emit: l }) {
2187
- const e = t, n = ce(), o = Ze(e, "modelValue", l), { disabled: u, readonly: s, vertical: b, valid: c, invalid: d } = F(e);
2183
+ ...Hl,
2184
+ props: Tl,
2185
+ emits: Bl,
2186
+ setup(t, { emit: a }) {
2187
+ const e = t, n = he(), o = qe(e, "modelValue", a), { disabled: i, readonly: s, vertical: b, valid: c, invalid: d } = W(e);
2188
2188
  Ne({
2189
2189
  key: vt,
2190
2190
  modelValue: o,
2191
- disabled: u,
2191
+ disabled: i,
2192
2192
  readonly: s,
2193
2193
  valid: c,
2194
2194
  invalid: d
2195
2195
  });
2196
- const { getOptionLabel: p, getOptionValue: v } = Ee(e), { bemCssClasses: g } = x("vv-radio-group", {
2197
- disabled: u,
2196
+ const { getOptionLabel: p, getOptionValue: v } = Re(e), { bemCssClasses: g } = G("vv-radio-group", {
2197
+ disabled: i,
2198
2198
  readonly: s,
2199
- horizontal: r(() => !b.value),
2199
+ horizontal: u(() => !b.value),
2200
2200
  valid: c,
2201
2201
  invalid: d
2202
2202
  }), h = (f, V) => ({
@@ -2206,86 +2206,86 @@ const Ra = ["for"], Ea = ["id", "name", "disabled", "value", "tabindex", "aria-i
2206
2206
  value: v(f)
2207
2207
  }), { HintSlot: y } = _e(e, n);
2208
2208
  return (f, V) => (m(), _("fieldset", {
2209
- class: K(a(g))
2209
+ class: F(l(g))
2210
2210
  }, [
2211
2211
  f.label ? (m(), _("legend", {
2212
2212
  key: 0,
2213
2213
  textContent: L(f.label)
2214
- }, null, 8, Na)) : I("", !0),
2215
- R("div", Ha, [
2216
- f.options.length > 0 ? (m(!0), _(he, { key: 0 }, Ae(f.options, (P, $) => (m(), T(Da, E({ key: $ }, h(P, $)), null, 16))), 128)) : C(f.$slots, "default", { key: 1 })
2214
+ }, null, 8, Nl)) : P("", !0),
2215
+ E("div", xl, [
2216
+ f.options.length > 0 ? (m(!0), _(ge, { key: 0 }, Ce(f.options, (I, $) => (m(), T(Dl, R({ key: $ }, h(I, $)), null, 16))), 128)) : A(f.$slots, "default", { key: 1 })
2217
2217
  ]),
2218
- oe(a(y), { class: "vv-radio-group__hint" })
2218
+ le(l(y), { class: "vv-radio-group__hint" })
2219
2219
  ], 2));
2220
2220
  }
2221
- }), Ma = {
2221
+ }), Ml = {
2222
2222
  hard: "hard",
2223
2223
  soft: "soft"
2224
- }, Ga = {
2224
+ }, Gl = {
2225
2225
  true: !0,
2226
2226
  false: !1,
2227
2227
  default: "default"
2228
- }, Ua = ["update:modelValue", "focus", "blur", "keyup"], ja = {
2228
+ }, Ul = ["update:modelValue", "focus", "blur", "keyup"], jl = {
2229
2229
  ...gt,
2230
2230
  modelValue: String,
2231
2231
  cols: { type: [String, Number], default: 20 },
2232
2232
  rows: { type: [String, Number], default: 2 },
2233
- wrap: { type: String, default: Ma.soft },
2234
- spellcheck: { type: [Boolean, String], default: Ga.default },
2233
+ wrap: { type: String, default: Ml.soft },
2234
+ spellcheck: { type: [Boolean, String], default: Gl.default },
2235
2235
  resizable: Boolean
2236
- }, Ka = ["for"], Fa = { class: "vv-textarea__wrapper" }, Wa = ["id"], za = {
2236
+ }, Fl = ["for"], Kl = { class: "vv-textarea__wrapper" }, Wl = ["id"], zl = {
2237
2237
  key: 0,
2238
2238
  class: "vv-textarea__limit"
2239
- }, qa = {
2239
+ }, ql = {
2240
2240
  name: "VvTextarea"
2241
2241
  }, vo = /* @__PURE__ */ D({
2242
- ...qa,
2243
- props: ja,
2244
- emits: Ua,
2245
- setup(t, { emit: l }) {
2246
- const e = t, n = ce(), o = G(), {
2247
- icon: u,
2242
+ ...ql,
2243
+ props: jl,
2244
+ emits: Ul,
2245
+ setup(t, { emit: a }) {
2246
+ const e = t, n = useSlots(), o = ref(), {
2247
+ icon: i,
2248
2248
  iconPosition: s,
2249
2249
  label: b,
2250
2250
  modelValue: c,
2251
2251
  count: d,
2252
- valid: i,
2252
+ valid: r,
2253
2253
  invalid: p,
2254
2254
  loading: v
2255
- } = F(e), g = r(() => String(e.id || ve())), h = r(() => `${g.value}-hint`), y = r(
2256
- () => e.floating && ee(e.placeholder) ? " " : e.placeholder
2257
- ), f = $t(c, l, e.debounce), { hasIcon: V, hasIconLeft: P, hasIconRight: $ } = Ge(
2258
- u,
2255
+ } = toRefs(e), g = computed(() => String(e.id || de())), h = computed(() => `${g.value}-hint`), y = computed(
2256
+ () => e.floating && isEmpty(e.placeholder) ? " " : e.placeholder
2257
+ ), f = useDebouncedInput(c, a, e.debounce), { hasIcon: V, hasIconLeft: I, hasIconRight: $ } = useComponentIcon(
2258
+ i,
2259
2259
  s
2260
- ), { focused: H } = Ue(o, l), A = Ye(o);
2261
- Ce(A, (q) => {
2262
- q && e.autofocus && (H.value = !0);
2260
+ ), { focused: x } = useComponentFocus(o, a), C = useElementVisibility(o);
2261
+ watch(C, (q) => {
2262
+ q && e.autofocus && (x.value = !0);
2263
2263
  });
2264
- const { formatted: M } = At(f, {
2264
+ const { formatted: H } = useTextCount(f, {
2265
2265
  mode: e.count,
2266
2266
  upperLimit: e.maxlength,
2267
2267
  lowerLimit: e.minlength
2268
- }), J = r(() => !e.disabled && !e.readonly), B = r(
2268
+ }), J = computed(() => !e.disabled && !e.readonly), B = computed(
2269
2269
  () => J.value ? e.tabindex : -1
2270
- ), j = r(() => !ee(c)), le = r(() => {
2270
+ ), U = computed(() => !isEmpty(c)), te = computed(() => {
2271
2271
  if (e.invalid === !0)
2272
2272
  return !0;
2273
2273
  if (e.valid === !0)
2274
2274
  return !1;
2275
- }), { HintSlot: ne, hasHint: se, hasInvalid: ae } = _e(e, n), { bemCssClasses: fe } = x("vv-textarea", {
2275
+ }), { HintSlot: oe, hasHint: ne, hasInvalid: ae } = _e(e, n), { bemCssClasses: ve } = useBemModifiers("vv-textarea", {
2276
2276
  modifiers: e.modifiers,
2277
- valid: i,
2277
+ valid: r,
2278
2278
  invalid: p,
2279
2279
  loading: v,
2280
2280
  disabled: e.disabled,
2281
2281
  readonly: e.readonly,
2282
- iconLeft: P,
2282
+ iconLeft: I,
2283
2283
  iconRight: $,
2284
- floating: e.floating && !ee(e.label),
2285
- dirty: j,
2286
- focused: H,
2284
+ floating: e.floating && !isEmpty(e.label),
2285
+ dirty: U,
2286
+ focused: x,
2287
2287
  resizable: e.resizable
2288
- }), re = r(
2288
+ }), se = computed(
2289
2289
  () => ({
2290
2290
  name: e.name,
2291
2291
  placeholder: y.value,
@@ -2300,80 +2300,80 @@ const Ra = ["for"], Ea = ["id", "name", "disabled", "value", "tabindex", "aria-i
2300
2300
  rows: e.rows,
2301
2301
  wrap: e.wrap,
2302
2302
  spellcheck: e.spellcheck,
2303
- "aria-invalid": le.value,
2304
- "aria-describedby": !ae.value && se.value ? h.value : void 0,
2303
+ "aria-invalid": te.value,
2304
+ "aria-describedby": !ae.value && ne.value ? h.value : void 0,
2305
2305
  "aria-errormessage": ae.value ? h.value : void 0
2306
2306
  })
2307
- ), ie = r(() => ({
2307
+ ), re = computed(() => ({
2308
2308
  valid: e.valid,
2309
2309
  invalid: e.invalid,
2310
2310
  modelValue: e.modelValue,
2311
2311
  hintLabel: e.hintLabel,
2312
2312
  maxlength: e.maxlength,
2313
2313
  minlength: e.minlength,
2314
- clear: ue
2315
- })), ue = () => {
2314
+ clear: ie
2315
+ })), ie = () => {
2316
2316
  f.value = void 0;
2317
2317
  };
2318
2318
  return (q, w) => (m(), _("div", {
2319
- class: K(a(fe))
2319
+ class: F(l(ve))
2320
2320
  }, [
2321
- a(b) ? (m(), _("label", {
2321
+ l(b) ? (m(), _("label", {
2322
2322
  key: 0,
2323
- for: a(g),
2323
+ for: l(g),
2324
2324
  class: "vv-textarea__label"
2325
- }, L(a(b)), 9, Ka)) : I("", !0),
2326
- R("div", Fa, [
2327
- C(q.$slots, "before", W(te(a(ie))), () => [
2328
- a(P) ? (m(), T(U, E({
2325
+ }, L(l(b)), 9, Fl)) : P("", !0),
2326
+ E("div", Kl, [
2327
+ A(q.$slots, "before", K(ee(l(re))), () => [
2328
+ l(I) ? (m(), T(M, R({
2329
2329
  key: 0,
2330
2330
  class: "vv-textarea__icon-left"
2331
- }, a(V)), null, 16)) : I("", !0)
2331
+ }, l(V)), null, 16)) : P("", !0)
2332
2332
  ]),
2333
- Se(R("textarea", E({
2334
- id: a(g),
2333
+ Se(E("textarea", R({
2334
+ id: l(g),
2335
2335
  ref_key: "textarea",
2336
2336
  ref: o,
2337
2337
  "onUpdate:modelValue": w[0] || (w[0] = (Z) => $e(f) ? f.value = Z : null)
2338
- }, a(re), {
2339
- onKeyup: w[1] || (w[1] = (Z) => l("keyup", Z))
2340
- }), null, 16, Wa), [
2341
- [ut, a(f)]
2338
+ }, l(se), {
2339
+ onKeyup: w[1] || (w[1] = (Z) => a("keyup", Z))
2340
+ }), null, 16, Wl), [
2341
+ [it, l(f)]
2342
2342
  ]),
2343
- C(q.$slots, "after", W(te(a(ie))), () => [
2344
- a($) ? (m(), T(U, W(E({ key: 0 }, a(V))), null, 16)) : I("", !0)
2343
+ A(q.$slots, "after", K(ee(l(re))), () => [
2344
+ l($) ? (m(), T(M, K(R({ key: 0 }, l(V))), null, 16)) : P("", !0)
2345
2345
  ]),
2346
- a(d) ? (m(), _("span", za, [
2347
- C(q.$slots, "count", W(te(a(ie))), () => [
2348
- X(L(a(M)), 1)
2346
+ l(d) ? (m(), _("span", zl, [
2347
+ A(q.$slots, "count", K(ee(l(re))), () => [
2348
+ X(L(l(H)), 1)
2349
2349
  ])
2350
- ])) : I("", !0)
2350
+ ])) : P("", !0)
2351
2351
  ]),
2352
- oe(a(ne), {
2353
- id: a(h),
2352
+ le(l(oe), {
2353
+ id: l(h),
2354
2354
  class: "vv-textarea__hint"
2355
2355
  }, null, 8, ["id"])
2356
2356
  ], 2));
2357
2357
  }
2358
2358
  });
2359
2359
  export {
2360
- ll as VvAccordion,
2361
- Qa as VvAccordionGroup,
2360
+ ea as VvAccordion,
2361
+ Ql as VvAccordionGroup,
2362
2362
  eo as VvBadge,
2363
2363
  to as VvBreadcrumb,
2364
- lo as VvButton,
2365
- ao as VvButtonGroup,
2364
+ ao as VvButton,
2365
+ lo as VvButtonGroup,
2366
2366
  oo as VvCard,
2367
- Bl as VvCheckbox,
2367
+ Da as VvCheckbox,
2368
2368
  no as VvCheckboxGroup,
2369
2369
  so as VvCombobox,
2370
2370
  ro as VvDialog,
2371
- Xl as VvDropdown,
2372
- U as VvIcon,
2371
+ za as VvDropdown,
2372
+ M as VvIcon,
2373
2373
  io as VvInputText,
2374
2374
  uo as VvProgress,
2375
- Da as VvRadio,
2375
+ Dl as VvRadio,
2376
2376
  co as VvRadioGroup,
2377
- oa as VvSelect,
2377
+ al as VvSelect,
2378
2378
  vo as VvTextarea
2379
2379
  };