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