@volverjs/ui-vue 0.0.1-beta.11 → 0.0.1-beta.12

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 (81) hide show
  1. package/dist/components/VvBadge/VvBadge.d.ts +1 -1
  2. package/dist/components/VvBadge/VvBadge.es.js +165 -12
  3. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  4. package/dist/components/VvBadge/VvBadge.vue.d.ts +4 -4
  5. package/dist/components/VvBreadcrumb/VvBreadcrumb.d.ts +1 -1
  6. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +4 -4
  7. package/dist/components/VvButton/VvButton.d.ts +2 -33
  8. package/dist/components/VvButton/VvButton.es.js +183 -198
  9. package/dist/components/VvButton/VvButton.umd.js +1 -1
  10. package/dist/components/VvButton/VvButton.vue.d.ts +9 -44
  11. package/dist/components/VvButton/useButtonGroupProps.d.ts +1 -6
  12. package/dist/components/VvButtonGroup/VvButtonGroup.d.ts +2 -26
  13. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +68 -78
  14. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  15. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +9 -69
  16. package/dist/components/VvDropdown/VvDropdown.d.ts +1 -1
  17. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +4 -4
  18. package/dist/components/VvInputText/VvInputText.d.ts +1 -1
  19. package/dist/components/VvInputText/VvInputText.vue.d.ts +4 -4
  20. package/dist/components/VvProgress/VvProgress.d.ts +1 -1
  21. package/dist/components/VvProgress/VvProgress.vue.d.ts +4 -4
  22. package/dist/components/VvSelect/VvSelect.d.ts +5 -1
  23. package/dist/components/VvSelect/VvSelect.es.js +395 -207
  24. package/dist/components/VvSelect/VvSelect.umd.js +2 -2
  25. package/dist/components/VvSelect/VvSelect.vue.d.ts +12 -5
  26. package/dist/components/VvTextarea/VvTextarea.d.ts +1 -1
  27. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +4 -4
  28. package/dist/components/index.es.js +579 -610
  29. package/dist/components/index.umd.js +2 -2
  30. package/dist/composables/group/types/IButtonGroupState.d.ts +4 -0
  31. package/dist/icons.es.js +3 -3
  32. package/dist/icons.umd.js +1 -1
  33. package/dist/index.es.js +553 -585
  34. package/dist/index.umd.js +2 -2
  35. package/dist/props/index.d.ts +2 -1
  36. package/dist/stories/RadioGroup/RadioOption.test.d.ts +4 -0
  37. package/dist/stories/RadioGroup/RadioProperty.test.d.ts +1 -1
  38. package/dist/stories/RadioGroup/RadioSlots.test.d.ts +6 -0
  39. package/package.json +2 -2
  40. package/src/assets/icons/detailed.json +1 -1
  41. package/src/assets/icons/normal.json +1 -1
  42. package/src/assets/icons/simple.json +1 -1
  43. package/src/components/VvBadge/VvBadge.ts +4 -2
  44. package/src/components/VvBadge/VvBadge.vue +8 -3
  45. package/src/components/VvButton/VvButton.ts +4 -34
  46. package/src/components/VvButton/VvButton.vue +3 -12
  47. package/src/components/VvButton/useButtonGroupProps.ts +3 -11
  48. package/src/components/VvButtonGroup/VvButtonGroup.ts +4 -17
  49. package/src/components/VvButtonGroup/VvButtonGroup.vue +5 -16
  50. package/src/components/VvSelect/VvSelect.ts +5 -1
  51. package/src/components/VvSelect/VvSelect.vue +7 -1
  52. package/src/composables/group/types/IButtonGroupState.ts +4 -0
  53. package/src/props/index.ts +3 -1
  54. package/src/stories/Badge/BadgeColor.stories.mdx +4 -4
  55. package/src/stories/Badge/BadgeModifiers.stories.mdx +65 -0
  56. package/src/stories/Button/ButtonActive.stories.mdx +27 -0
  57. package/src/stories/Button/ButtonDisabled.stories.mdx +28 -0
  58. package/src/stories/Button/ButtonIconPosition.stories.mdx +0 -1
  59. package/src/stories/Button/ButtonModifiers.stories.mdx +103 -46
  60. package/src/stories/Button/ButtonSelected.stories.mdx +30 -0
  61. package/src/stories/ButtonGroup/ButtonGroupAction.stories.mdx +2 -2
  62. package/src/stories/ButtonGroup/ButtonGroupActionQuiet.stories.mdx +2 -2
  63. package/src/stories/ButtonGroup/ButtonGroupBlock.stories.mdx +1 -1
  64. package/src/stories/ButtonGroup/ButtonGroupRounded.stories.mdx +1 -1
  65. package/src/stories/RadioGroup/RadioGroupHintLabel.stories.mdx +6 -6
  66. package/src/stories/RadioGroup/RadioGroupLabel.stories.mdx +7 -2
  67. package/src/stories/RadioGroup/RadioGroupOptionLabel.stories.mdx +7 -19
  68. package/src/stories/RadioGroup/RadioGroupOptionValue.stories.mdx +7 -19
  69. package/src/stories/RadioGroup/RadioGroupOptions.stories.mdx +3 -17
  70. package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +10 -9
  71. package/src/stories/RadioGroup/RadioOption.test.ts +45 -0
  72. package/src/stories/RadioGroup/RadioProperty.test.ts +4 -4
  73. package/src/stories/RadioGroup/RadioSlots.test.ts +29 -0
  74. package/src/stories/Select/SelectNative.stories.mdx +45 -0
  75. package/src/stories/stories.scss +5 -27
  76. package/src/stories/Button/ButtonVariant.stories.mdx +0 -205
  77. package/src/stories/Button/test.js +0 -41
  78. package/src/stories/Radio/RadioTest.js +0 -90
  79. package/src/stories/RadioGroup/RadioOptionsTest.js +0 -78
  80. package/src/stories/RadioGroup/RadioPropertyTest.js +0 -131
  81. package/src/stories/RadioGroup/RadioSlotsTest.js +0 -20
@@ -1,9 +1,28 @@
1
- import { computed as b, unref as m, defineComponent as w, ref as M, toRefs as P, inject as ne, openBlock as y, createBlock as j, mergeProps as E, createCommentVNode as B, toRef as pe, useAttrs as Q, resolveDynamicComponent as re, withCtx as x, renderSlot as k, createElementBlock as V, toDisplayString as O, Fragment as U, createTextVNode as N, normalizeClass as F, isRef as me, provide as ge, createElementVNode as A, renderList as T, watch as ye, h as be, useSlots as he, createVNode as se, Transition as _e, toHandlers as Ve, withDirectives as ke, withModifiers as Ce, vShow as Se } from "vue";
1
+ import { computed as y, unref as p, defineComponent as P, ref as H, toRefs as S, inject as oe, openBlock as g, createBlock as I, mergeProps as E, createCommentVNode as O, toRef as ge, useAttrs as Z, useSlots as se, resolveDynamicComponent as ae, withCtx as x, renderSlot as C, createElementBlock as _, toDisplayString as B, Fragment as U, createTextVNode as j, normalizeClass as N, isRef as ye, provide as he, createElementVNode as $, renderList as W, watch as be, h as _e, createVNode as le, Transition as Ve, toHandlers as Ce, withDirectives as ke, withModifiers as $e, vShow as Se } from "vue";
2
2
  import { v4 as ee } from "uuid";
3
- import { iconExists as X, Icon as $e, addIcon as Ae } from "@iconify/vue";
4
- import { useVModel as Z, useFocus as Be, toReactive as Oe, onClickOutside as we } from "@vueuse/core";
5
- var L = /* @__PURE__ */ ((e) => (e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(L || {}), q = /* @__PURE__ */ ((e) => (e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e))(q || {}), ae = /* @__PURE__ */ ((e) => (e._blank = "_blank", e._self = "_self", e._parent = "_parent", e._top = "_top", e))(ae || {});
6
- const Pe = {
3
+ import { iconExists as Q, Icon as Ae, addIcon as Oe } from "@iconify/vue";
4
+ import { useVModel as J, useFocus as Be, toReactive as we, onClickOutside as Pe } from "@vueuse/core";
5
+ const ie = {
6
+ valid: Boolean,
7
+ validLabel: [String, Array]
8
+ }, ue = {
9
+ error: Boolean,
10
+ errorLabel: [String, Array]
11
+ }, te = {
12
+ disabled: Boolean
13
+ }, z = {
14
+ modifiers: [String, Array]
15
+ }, Ge = {
16
+ hintLabel: { type: String, default: "" }
17
+ }, Ee = {
18
+ options: { type: Array, default: () => [] },
19
+ optionLabel: { type: [String, Function], default: () => "label" },
20
+ optionValue: { type: [String, Function], default: () => "value" }
21
+ };
22
+ var L = /* @__PURE__ */ ((e) => (e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(L || {}), q = /* @__PURE__ */ ((e) => (e.nuxtLink = "nuxt-link", e.routerLink = "router-link", e.a = "a", e.button = "button", e))(q || {}), ce = /* @__PURE__ */ ((e) => (e._blank = "_blank", e._self = "_self", e._parent = "_parent", e._top = "_top", e))(ce || {});
23
+ const Re = {
24
+ ...z,
25
+ ...te,
7
26
  icon: String,
8
27
  iconPosition: {
9
28
  type: String,
@@ -23,73 +42,66 @@ const Pe = {
23
42
  href: String,
24
43
  target: {
25
44
  type: String,
26
- validator: (e) => e in ae
45
+ validator: (e) => e in ce
27
46
  },
28
- block: Boolean,
29
47
  active: Boolean,
30
- rounded: Boolean,
31
- disabled: Boolean,
32
- fullBleed: Boolean,
33
- action: Boolean,
34
- actionQuiet: Boolean,
35
- selected: Boolean,
36
- modifiers: [Array, String]
37
- }, h = {
38
- equals(e, o, t) {
39
- return t ? this.resolveFieldData(e, t) === this.resolveFieldData(o, t) : this.deepEquals(e, o);
48
+ selected: Boolean
49
+ }, b = {
50
+ equals(e, n, t) {
51
+ return t ? this.resolveFieldData(e, t) === this.resolveFieldData(n, t) : this.deepEquals(e, n);
40
52
  },
41
- deepEquals(e, o) {
42
- if (e === o)
53
+ deepEquals(e, n) {
54
+ if (e === n)
43
55
  return !0;
44
- if (e && o && typeof e == "object" && typeof o == "object") {
45
- const t = Array.isArray(e), r = Array.isArray(o);
46
- let n, l, a;
47
- if (t && r) {
48
- if (l = e.length, l != o.length)
56
+ if (e && n && typeof e == "object" && typeof n == "object") {
57
+ const t = Array.isArray(e), s = Array.isArray(n);
58
+ let r, i, a;
59
+ if (t && s) {
60
+ if (i = e.length, i != n.length)
49
61
  return !1;
50
- for (n = l; n-- !== 0; )
51
- if (!this.deepEquals(e[n], o[n]))
62
+ for (r = i; r-- !== 0; )
63
+ if (!this.deepEquals(e[r], n[r]))
52
64
  return !1;
53
65
  return !0;
54
66
  }
55
- if (t != r)
67
+ if (t != s)
56
68
  return !1;
57
- const c = e instanceof Date, i = o instanceof Date;
58
- if (c != i)
69
+ const u = e instanceof Date, l = n instanceof Date;
70
+ if (u != l)
59
71
  return !1;
60
- if (c && i)
61
- return e.getTime() == o.getTime();
62
- const v = e instanceof RegExp, u = o instanceof RegExp;
63
- if (v != u)
72
+ if (u && l)
73
+ return e.getTime() == n.getTime();
74
+ const d = e instanceof RegExp, c = n instanceof RegExp;
75
+ if (d != c)
64
76
  return !1;
65
- if (v && u)
66
- return e.toString() == o.toString();
67
- const s = Object.keys(e);
68
- if (l = s.length, l !== Object.keys(o).length)
77
+ if (d && c)
78
+ return e.toString() == n.toString();
79
+ const o = Object.keys(e);
80
+ if (i = o.length, i !== Object.keys(n).length)
69
81
  return !1;
70
- for (n = l; n-- !== 0; )
71
- if (!Object.prototype.hasOwnProperty.call(o, s[n]))
82
+ for (r = i; r-- !== 0; )
83
+ if (!Object.prototype.hasOwnProperty.call(n, o[r]))
72
84
  return !1;
73
- for (n = l; n-- !== 0; )
74
- if (a = s[n], !this.deepEquals(e[a], o[a]))
85
+ for (r = i; r-- !== 0; )
86
+ if (a = o[r], !this.deepEquals(e[a], n[a]))
75
87
  return !1;
76
88
  return !0;
77
89
  }
78
- return e !== e && o !== o;
90
+ return e !== e && n !== n;
79
91
  },
80
- resolveFieldData(e, o) {
81
- if (e && Object.keys(e).length && o) {
82
- if (o.indexOf(".") === -1)
83
- return e[o];
92
+ resolveFieldData(e, n) {
93
+ if (e && Object.keys(e).length && n) {
94
+ if (n.indexOf(".") === -1)
95
+ return e[n];
84
96
  {
85
- const t = o.split(".");
86
- let r = e;
87
- for (let n = 0, l = t.length; n < l; ++n) {
97
+ const t = n.split(".");
98
+ let s = e;
99
+ for (let r = 0, i = t.length; r < i; ++r) {
88
100
  if (e == null)
89
101
  return null;
90
- r = r[t[n]];
102
+ s = s[t[r]];
91
103
  }
92
- return r;
104
+ return s;
93
105
  }
94
106
  } else
95
107
  return null;
@@ -97,20 +109,20 @@ const Pe = {
97
109
  isFunction(e) {
98
110
  return !!(e && e.constructor && e.call && e.apply);
99
111
  },
100
- findIndexInList(e, o) {
112
+ findIndexInList(e, n) {
101
113
  let t = -1;
102
- if (o) {
103
- for (let r = 0; r < o.length; r++)
104
- if (this.equals(o[r], e)) {
105
- t = r;
114
+ if (n) {
115
+ for (let s = 0; s < n.length; s++)
116
+ if (this.equals(n[s], e)) {
117
+ t = s;
106
118
  break;
107
119
  }
108
120
  }
109
121
  return t;
110
122
  },
111
- contains(e, o) {
112
- if (e != null && o && o.length) {
113
- for (const t of o)
123
+ contains(e, n) {
124
+ if (e != null && n && n.length) {
125
+ for (const t of n)
114
126
  if (this.equals(e, t))
115
127
  return !0;
116
128
  }
@@ -122,38 +134,38 @@ const Pe = {
122
134
  isNotEmpty(e) {
123
135
  return !this.isEmpty(e);
124
136
  },
125
- pickBy(e, o) {
137
+ pickBy(e, n) {
126
138
  return Object.fromEntries(
127
- Object.entries(e).filter(([t]) => o(t))
139
+ Object.entries(e).filter(([t]) => n(t))
128
140
  );
129
141
  },
130
- removeFromList(e, o) {
131
- const t = this.findIndexInList(e, o);
132
- return t > -1 ? o.filter((r, n) => n !== t) : o;
142
+ removeFromList(e, n) {
143
+ const t = this.findIndexInList(e, n);
144
+ return t > -1 ? n.filter((s, r) => r !== t) : n;
133
145
  },
134
146
  isString(e) {
135
147
  return typeof e == "string" || e instanceof String;
136
148
  },
137
149
  propsToObject(e) {
138
- return Object.keys(e).reduce((o, t) => {
139
- var r, n, l, a, c;
140
- return this.isFunction(e[t]) ? o[t] = e[t]() : Array.isArray(e[t]) ? o[t] = e[t][0]() : (r = e[t]) != null && r.type && (Array.isArray(e[t].type) ? o[t] = ((n = e[t]) == null ? void 0 : n.default) || ((l = e[t]) == null ? void 0 : l.type[0]()) : o[t] = ((a = e[t]) == null ? void 0 : a.default) || ((c = e[t]) == null ? void 0 : c.type())), o;
150
+ return Object.keys(e).reduce((n, t) => {
151
+ var s, r, i, a, u;
152
+ return this.isFunction(e[t]) ? n[t] = e[t]() : Array.isArray(e[t]) ? n[t] = e[t][0]() : (s = e[t]) != null && s.type && (Array.isArray(e[t].type) ? n[t] = ((r = e[t]) == null ? void 0 : r.default) || ((i = e[t]) == null ? void 0 : i.type[0]()) : n[t] = ((a = e[t]) == null ? void 0 : a.default) || ((u = e[t]) == null ? void 0 : u.type())), n;
141
153
  }, {});
142
154
  },
143
- filterArray(e, o, t) {
144
- return e.filter((r) => o.some((n) => typeof n == "string" ? r[t] == n : this.equals(
145
- r[t],
146
- n[t]
155
+ filterArray(e, n, t) {
156
+ return e.filter((s) => n.some((r) => typeof r == "string" ? s[t] == r : this.equals(
157
+ s[t],
158
+ r[t]
147
159
  )));
148
160
  },
149
161
  kebabCase(e) {
150
- var o, t;
162
+ var n, t;
151
163
  if (e)
152
- return (t = (o = e.match(
164
+ return (t = (n = e.match(
153
165
  /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
154
- )) == null ? void 0 : o.join("-")) == null ? void 0 : t.toLowerCase();
166
+ )) == null ? void 0 : n.join("-")) == null ? void 0 : t.toLowerCase();
155
167
  }
156
- }, Ge = "ds", Ee = {
168
+ }, De = "ds", Ie = {
157
169
  color: String,
158
170
  width: {
159
171
  type: [String, Number]
@@ -185,22 +197,22 @@ const Pe = {
185
197
  type: [String, Array]
186
198
  }
187
199
  };
188
- function G(e, o) {
200
+ function w(e, n) {
189
201
  const t = { [`${e}`]: !0 };
190
202
  return {
191
- bemCssClasses: b(() => Object.keys(o).reduce((n, l) => {
192
- const a = m(o[l]) || !1;
203
+ bemCssClasses: y(() => Object.keys(n).reduce((r, i) => {
204
+ const a = p(n[i]) || !1;
193
205
  if (!a)
194
- return n;
195
- if (l === "modifiers") {
196
- const c = Array.isArray(a) ? a : [a];
206
+ return r;
207
+ if (i === "modifiers") {
208
+ const u = Array.isArray(a) ? a : [a];
197
209
  return {
198
- ...n,
199
- ...c.reduce(
200
- (i, v) => ({
201
- ...i,
202
- [`${e}--${h.kebabCase(
203
- v
210
+ ...r,
211
+ ...u.reduce(
212
+ (l, d) => ({
213
+ ...l,
214
+ [`${e}--${b.kebabCase(
215
+ d
204
216
  )}`]: !0
205
217
  }),
206
218
  {}
@@ -208,282 +220,255 @@ function G(e, o) {
208
220
  };
209
221
  } else
210
222
  return {
211
- ...n,
212
- [`${e}--${h.kebabCase(l)}`]: a
223
+ ...r,
224
+ [`${e}--${b.kebabCase(i)}`]: a
213
225
  };
214
226
  }, t) || {})
215
227
  };
216
228
  }
217
- const Y = /* @__PURE__ */ w({
229
+ const Y = /* @__PURE__ */ P({
218
230
  __name: "VvIcon",
219
- props: Ee,
231
+ props: Ie,
220
232
  setup(e) {
221
- const o = e, t = M(!0), { modifiers: r } = P(o), n = ne(Ge), { bemCssClasses: l } = G("vv-icon", {
222
- modifiers: r
223
- }), a = b(() => o.provider || (n == null ? void 0 : n.provider)), c = b(() => {
224
- const u = o.name || "", s = `@${a.value}:${o.prefix}:${o.name}`;
225
- return X(u) ? u : X(s) ? s : (n == null ? void 0 : n.iconsCollections.find((f) => {
226
- const d = `@${a.value}:${f.prefix}:${u}`;
227
- if (X(d))
228
- return d;
229
- })) || u;
233
+ const n = e, t = H(!0), { modifiers: s } = S(n), r = oe(De), { bemCssClasses: i } = w("vv-icon", {
234
+ modifiers: s
235
+ }), a = y(() => n.provider || (r == null ? void 0 : r.provider)), u = y(() => {
236
+ const c = n.name || "", o = `@${a.value}:${n.prefix}:${n.name}`;
237
+ return Q(c) ? c : Q(o) ? o : (r == null ? void 0 : r.iconsCollections.find((f) => {
238
+ const v = `@${a.value}:${f.prefix}:${c}`;
239
+ if (Q(v))
240
+ return v;
241
+ })) || c;
230
242
  });
231
- function i(u) {
232
- let s = null;
243
+ function l(c) {
244
+ let o = null;
233
245
  if (typeof window > "u") {
234
- const { JSDOM: p } = require("jsdom");
235
- s = new p().window;
246
+ const { JSDOM: m } = require("jsdom");
247
+ o = new m().window;
236
248
  }
237
- return (s ? new s.DOMParser() : new window.DOMParser()).parseFromString(u, "text/html").querySelector("svg");
249
+ return (o ? new o.DOMParser() : new window.DOMParser()).parseFromString(c, "text/html").querySelector("svg");
238
250
  }
239
- function v(u) {
240
- const s = i(u), f = (s == null ? void 0 : s.innerHTML.trim()) || "";
241
- s && f && Ae(`@${a.value}:${o.prefix}:${o.name}`, {
251
+ function d(c) {
252
+ const o = l(c), f = (o == null ? void 0 : o.innerHTML.trim()) || "";
253
+ o && f && Oe(`@${a.value}:${n.prefix}:${n.name}`, {
242
254
  body: f,
243
- height: s.viewBox.baseVal.height,
244
- width: s.viewBox.baseVal.width
255
+ height: o.viewBox.baseVal.height,
256
+ width: o.viewBox.baseVal.width
245
257
  });
246
258
  }
247
- return n && (o.src ? (t.value = !1, n.fetchIcon(o.src).then((u) => {
248
- u && (v(u), t.value = !0);
249
- }).catch((u) => {
250
- throw new Error(`During fetch icon: ${u == null ? void 0 : u.message}`);
251
- })) : o.svg && v(o.svg)), (u, s) => t.value ? (y(), j(m($e), E({
259
+ return r && (n.src ? (t.value = !1, r.fetchIcon(n.src).then((c) => {
260
+ c && (d(c), t.value = !0);
261
+ }).catch((c) => {
262
+ throw new Error(`During fetch icon: ${c == null ? void 0 : c.message}`);
263
+ })) : n.svg && d(n.svg)), (c, o) => t.value ? (g(), I(p(Ae), E({
252
264
  key: 0,
253
- class: m(l)
265
+ class: p(i)
254
266
  }, {
255
- ...u.$props,
256
- provider: m(a),
257
- icon: m(c)
258
- }), null, 16, ["class"])) : B("", !0);
267
+ ...c.$props,
268
+ provider: p(a),
269
+ icon: p(u)
270
+ }), null, 16, ["class"])) : O("", !0);
259
271
  }
260
272
  });
261
- function te(e) {
262
- const o = ne(e, void 0), t = b(() => h.isNotEmpty(o));
263
- function r(n, l, a) {
264
- if (o != null && o.value) {
265
- const c = m(o.value)[n];
266
- return b({
273
+ function ne(e) {
274
+ const n = oe(e, void 0), t = y(() => b.isNotEmpty(n));
275
+ function s(r, i, a) {
276
+ if (n != null && n.value) {
277
+ const u = p(n.value)[r];
278
+ return y({
267
279
  get() {
268
- return c == null ? void 0 : c.value;
280
+ return u == null ? void 0 : u.value;
269
281
  },
270
- set(i) {
271
- c.value = i;
282
+ set(l) {
283
+ u.value = l;
272
284
  }
273
285
  });
274
286
  } else {
275
- const c = pe(l, n);
276
- return b({
287
+ const u = ge(i, r);
288
+ return y({
277
289
  get() {
278
- return c.value;
290
+ return u.value;
279
291
  },
280
- set(i) {
281
- a && a(`update:${n}`, i);
292
+ set(l) {
293
+ a && a(`update:${r}`, l);
282
294
  }
283
295
  });
284
296
  }
285
297
  }
286
298
  return {
287
- group: o,
299
+ group: n,
288
300
  isInGroup: t,
289
- getGroupOrLocalRef: r
301
+ getGroupOrLocalRef: s
290
302
  };
291
303
  }
292
- const le = Symbol("VV_BUTTON_GROUP"), ie = Symbol("VV_CHECK_GROUP"), ue = Symbol("VV_ACCORDION_GROUP");
293
- function Re(e) {
294
- const { group: o, isInGroup: t, getGroupOrLocalRef: r } = te(le), { modifiers: n, fullBleed: l, iconPosition: a, icon: c, label: i, block: v, selected: u } = P(e), s = r("modelValue", e), f = r("disabled", e), d = r("toggle", e), g = r("rounded", e), p = r("action", e), _ = r("actionQuiet", e);
304
+ const de = Symbol("VV_BUTTON_GROUP"), ve = Symbol("VV_CHECK_GROUP"), fe = Symbol("VV_ACCORDION_GROUP");
305
+ function je(e) {
306
+ const { group: n, isInGroup: t, getGroupOrLocalRef: s } = ne(de), { iconPosition: r, icon: i, label: a, selected: u } = S(e), l = s("modelValue", e), d = s("disabled", e), c = s("toggle", e), o = s("modifiers", e);
295
307
  return {
296
- modelValue: s,
297
- disabled: f,
298
- toggle: d,
308
+ modelValue: l,
309
+ disabled: d,
310
+ toggle: c,
299
311
  isInGroup: t,
300
- group: o,
301
- modifiers: n,
302
- action: p,
303
- actionQuiet: _,
312
+ group: n,
313
+ modifiers: o,
304
314
  selected: u,
305
- block: v,
306
- rounded: g,
307
- fullBleed: l,
308
- iconPosition: a,
309
- icon: c,
310
- label: i
315
+ iconPosition: r,
316
+ icon: i,
317
+ label: a
311
318
  };
312
319
  }
313
- const De = {
320
+ const Ne = {
314
321
  key: 1,
315
322
  class: "vv-button__label"
316
- }, Ie = {
323
+ }, Fe = {
317
324
  key: 1,
318
325
  class: "vv-button__label"
319
- }, Pt = /* @__PURE__ */ w({
326
+ }, Pt = /* @__PURE__ */ P({
320
327
  __name: "VvButton",
321
- props: Pe,
328
+ props: Re,
322
329
  setup(e) {
323
- const o = e, t = Q(), r = (t == null ? void 0 : t.name) || ee(), {
324
- modifiers: n,
325
- action: l,
326
- actionQuiet: a,
327
- block: c,
328
- rounded: i,
329
- fullBleed: v,
330
- iconPosition: u,
331
- icon: s,
332
- label: f,
330
+ const n = e, t = Z(), s = se(), r = (t == null ? void 0 : t.name) || ee(), {
331
+ modifiers: i,
332
+ iconPosition: a,
333
+ icon: u,
334
+ label: l,
333
335
  modelValue: d,
334
- disabled: g,
335
- toggle: p,
336
- isInGroup: _
337
- } = Re(o), S = b(() => {
336
+ disabled: c,
337
+ toggle: o,
338
+ isInGroup: f
339
+ } = je(n), v = y(() => {
338
340
  switch (!0) {
339
- case g.value:
341
+ case c.value:
340
342
  return q.button;
341
- case o.to !== void 0:
343
+ case n.to !== void 0:
342
344
  return q.routerLink;
343
- case o.href !== void 0:
345
+ case n.href !== void 0:
344
346
  return q.a;
345
347
  default:
346
348
  return q.button;
347
349
  }
348
- }), D = b(() => p.value ? Array.isArray(d.value) ? h.contains(r, d.value) : h.equals(r, d.value) : o.active), I = b(() => p.value ? Array.isArray(d.value) ? h.contains(r, d.value) : h.equals(r, d.value) : o.selected), { bemCssClasses: W } = G("vv-button", {
349
- modifiers: n,
350
- active: D,
351
- action: l,
352
- actionQuiet: a,
353
- selected: I,
354
- block: c,
355
- rounded: i,
356
- fullBleed: v,
357
- disabled: g,
358
- reverse: b(
350
+ }), h = y(() => o.value ? Array.isArray(d.value) ? b.contains(r, d.value) : b.equals(r, d.value) : n.active), m = y(() => o.value ? Array.isArray(d.value) ? b.contains(r, d.value) : b.equals(r, d.value) : n.selected), { bemCssClasses: V } = w("vv-button", {
351
+ modifiers: i,
352
+ active: h,
353
+ selected: m,
354
+ disabled: c,
355
+ reverse: y(
359
356
  () => [L.right, L.bottom].includes(
360
- u.value
357
+ a.value
361
358
  )
362
359
  ),
363
- column: b(
360
+ column: y(
364
361
  () => [L.top, L.bottom].includes(
365
- u.value
362
+ a.value
366
363
  )
367
364
  ),
368
- iconOnly: b(() => (s == null ? void 0 : s.value) && !(f != null && f.value))
369
- }), J = b(() => ({
370
- ...$.value,
371
- "aria-label": o.label || t["aria-label"],
372
- "aria-disabled": g.value,
365
+ iconOnly: y(() => (u == null ? void 0 : u.value) && !(l != null && l.value) && !s.default)
366
+ }), A = y(() => ({
367
+ ...R.value,
368
+ "aria-label": n.label || t["aria-label"],
369
+ "aria-disabled": c.value,
373
370
  role: "button",
374
- class: W.value,
375
- to: o.to
376
- })), $ = b(() => {
377
- const C = S.value === q.a;
378
- let H = {};
379
- return C && (H = g.value ? {
371
+ class: V.value,
372
+ to: n.to
373
+ })), R = y(() => {
374
+ const k = v.value === q.a;
375
+ let M = {};
376
+ return k && (M = c.value ? {
380
377
  href: "javascript:;"
381
378
  } : {
382
- target: o.target,
383
- href: o.href
384
- }), H;
379
+ target: n.target,
380
+ href: n.href
381
+ }), M;
385
382
  });
386
- function R() {
387
- _.value && (d.value = r);
383
+ function D() {
384
+ f.value && (d.value = r);
388
385
  }
389
- return (C, H) => (y(), j(re(m(S)), E(m(J), { onClickPassive: R }), {
386
+ return (k, M) => (g(), I(ae(p(v)), E(p(A), { onClickPassive: D }), {
390
387
  default: x(() => [
391
- k(C.$slots, "default", {}, () => [
392
- C.loading ? k(C.$slots, "loading", { key: 0 }, () => [
393
- C.loadingIcon ? (y(), j(Y, {
388
+ C(k.$slots, "default", {}, () => [
389
+ k.loading ? C(k.$slots, "loading", { key: 0 }, () => [
390
+ k.loadingIcon ? (g(), I(Y, {
394
391
  key: 0,
395
392
  class: "vv-button__loading-icon",
396
- name: C.loadingIcon
397
- }, null, 8, ["name"])) : B("", !0),
398
- C.loadingLabel ? (y(), V("span", De, O(C.loadingLabel), 1)) : B("", !0)
399
- ]) : (y(), V(U, { key: 1 }, [
400
- k(C.$slots, "before"),
401
- m(s) ? (y(), j(Y, {
393
+ name: k.loadingIcon
394
+ }, null, 8, ["name"])) : O("", !0),
395
+ k.loadingLabel ? (g(), _("span", Ne, B(k.loadingLabel), 1)) : O("", !0)
396
+ ]) : (g(), _(U, { key: 1 }, [
397
+ C(k.$slots, "before"),
398
+ p(u) ? (g(), I(Y, {
402
399
  key: 0,
403
400
  class: "vv-button__icon",
404
- name: m(s)
405
- }, null, 8, ["name"])) : B("", !0),
406
- m(f) ? (y(), V("span", Ie, [
407
- k(C.$slots, "label", {}, () => [
408
- N(O(m(f)), 1)
401
+ name: p(u)
402
+ }, null, 8, ["name"])) : O("", !0),
403
+ p(l) ? (g(), _("span", Fe, [
404
+ C(k.$slots, "label", {}, () => [
405
+ j(B(p(l)), 1)
409
406
  ])
410
- ])) : B("", !0),
411
- k(C.$slots, "after")
407
+ ])) : O("", !0),
408
+ C(k.$slots, "after")
412
409
  ], 64))
413
410
  ])
414
411
  ]),
415
412
  _: 3
416
413
  }, 16));
417
414
  }
418
- }), je = {
419
- value: [String, Number],
420
- color: String
421
- }, Gt = /* @__PURE__ */ w({
415
+ }), qe = {
416
+ ...z,
417
+ value: [String, Number]
418
+ }, Gt = /* @__PURE__ */ P({
422
419
  __name: "VvBadge",
423
- props: je,
420
+ props: qe,
424
421
  setup(e) {
425
- const o = e, t = b(() => o.color ? `vv-badge--${o.color}` : "");
426
- return (r, n) => (y(), V("span", {
427
- class: F(["vv-badge", m(t)]),
422
+ const n = e, { modifiers: t } = S(n), { bemCssClasses: s } = w("vv-badge", {
423
+ modifiers: t
424
+ });
425
+ return (r, i) => (g(), _("span", {
426
+ class: N(p(s)),
428
427
  role: "status"
429
- }, O(r.value), 3));
428
+ }, B(r.value), 3));
430
429
  }
431
- }), Ne = {
432
- disabled: { type: Boolean, default: !1 },
430
+ }), Le = {
431
+ ...z,
432
+ ...te,
433
433
  vertical: { type: Boolean, default: !1 },
434
434
  compact: { type: Boolean, default: !1 },
435
435
  toggle: { type: Boolean, default: !1 },
436
- block: { type: Boolean, default: !1 },
437
- rounded: { type: Boolean, default: !1 },
438
- action: Boolean,
439
- actionQuiet: Boolean,
440
436
  modelValue: { type: String, default: void 0 }
441
- }, Fe = ["update:modelValue"];
442
- function oe(e) {
437
+ }, He = ["update:modelValue"];
438
+ function re(e) {
443
439
  if (Object.keys(e).some(
444
- (o) => o !== "key" && !me(e[o])
440
+ (n) => n !== "key" && !ye(e[n])
445
441
  ))
446
442
  throw Error("One or more groupState props aren't ref.");
447
- ge(
443
+ he(
448
444
  e.key,
449
- b(() => e)
445
+ y(() => e)
450
446
  );
451
447
  }
452
- const Et = /* @__PURE__ */ w({
448
+ const Et = /* @__PURE__ */ P({
453
449
  __name: "VvButtonGroup",
454
- props: Ne,
455
- emits: Fe,
456
- setup(e, { emit: o }) {
457
- const t = e, r = Z(t, "modelValue", o), {
458
- disabled: n,
459
- vertical: l,
460
- compact: a,
461
- block: c,
462
- rounded: i,
463
- toggle: v,
464
- action: u,
465
- actionQuiet: s
466
- } = P(t), { bemCssClasses: f } = G("vv-button-group", {
467
- vertical: l,
468
- compact: a,
469
- block: c
470
- });
471
- return oe({
472
- key: le,
473
- modelValue: r,
474
- disabled: n,
475
- toggle: v,
476
- rounded: i,
477
- action: u,
478
- actionQuiet: s
479
- }), (g, p) => (y(), V("div", {
480
- class: F(m(f)),
450
+ props: Le,
451
+ emits: He,
452
+ setup(e, { emit: n }) {
453
+ const t = e, s = J(t, "modelValue", n), { disabled: r, vertical: i, compact: a, toggle: u, modifiers: l } = S(t), { bemCssClasses: d } = w("vv-button-group", {
454
+ modifiers: l,
455
+ vertical: i,
456
+ compact: a
457
+ }), c = {
458
+ key: de,
459
+ modelValue: s,
460
+ disabled: r,
461
+ toggle: u,
462
+ modifiers: l != null && l.value ? l : H([])
463
+ };
464
+ return re(c), (o, f) => (g(), _("div", {
465
+ class: N(p(d)),
481
466
  role: "group"
482
467
  }, [
483
- k(g.$slots, "default")
468
+ C(o.$slots, "default")
484
469
  ], 2));
485
470
  }
486
- }), qe = {
471
+ }), Me = {
487
472
  title: String,
488
473
  content: String,
489
474
  open: Boolean,
@@ -491,73 +476,73 @@ const Et = /* @__PURE__ */ w({
491
476
  bordered: Boolean,
492
477
  modifiers: [String, Array],
493
478
  disabled: Boolean
494
- }, Le = ["update:open"];
495
- function He(e, o) {
496
- const { group: t, isInGroup: r, getGroupOrLocalRef: n } = te(ue), { modifiers: l } = P(e), a = n("modelValue", e, o), c = n("bordered", e), i = n("disabled", e), v = n("iconRight", e), u = n("accordion", e);
479
+ }, Ue = ["update:open"];
480
+ function ze(e, n) {
481
+ const { group: t, isInGroup: s, getGroupOrLocalRef: r } = ne(fe), { modifiers: i } = S(e), a = r("modelValue", e, n), u = r("bordered", e), l = r("disabled", e), d = r("iconRight", e), c = r("accordion", e);
497
482
  return {
498
483
  modelValue: a,
499
- disabled: i,
500
- bordered: c,
501
- iconRight: v,
502
- isInGroup: r,
484
+ disabled: l,
485
+ bordered: u,
486
+ iconRight: d,
487
+ isInGroup: s,
503
488
  group: t,
504
- accordion: u,
505
- modifiers: l
489
+ accordion: c,
490
+ modifiers: i
506
491
  };
507
492
  }
508
- const Me = ["open"], Ue = ["aria-controls", "aria-expanded"], ze = ["aria-hidden"], Ke = /* @__PURE__ */ w({
493
+ const Ke = ["open"], Te = ["aria-controls", "aria-expanded"], Ze = ["aria-hidden"], We = /* @__PURE__ */ P({
509
494
  __name: "VvAccordion",
510
- props: qe,
511
- emits: Le,
512
- setup(e, { emit: o }) {
513
- const t = e, r = Q(), n = (r == null ? void 0 : r.name) || ee(), {
514
- modelValue: l,
495
+ props: Me,
496
+ emits: Ue,
497
+ setup(e, { emit: n }) {
498
+ const t = e, s = Z(), r = (s == null ? void 0 : s.name) || ee(), {
499
+ modelValue: i,
515
500
  modifiers: a,
516
- bordered: c,
517
- disabled: i = M(!1),
518
- iconRight: v,
519
- isInGroup: u,
520
- accordion: s
521
- } = He(t, o), f = b(() => u.value ? s.value ? h.equals(n, l.value) : h.contains(n, l.value) : t.open), { bemCssClasses: d } = G("vv-accordion", {
501
+ bordered: u,
502
+ disabled: l = H(!1),
503
+ iconRight: d,
504
+ isInGroup: c,
505
+ accordion: o
506
+ } = ze(t, n), f = y(() => c.value ? o.value ? b.equals(r, i.value) : b.contains(r, i.value) : t.open), { bemCssClasses: v } = w("vv-accordion", {
522
507
  modifiers: a,
523
- disabled: i,
524
- markerRight: b(() => v.value),
525
- bordered: c
526
- }), g = (_) => {
527
- const S = _.target;
528
- o("update:open", S.open);
529
- }, p = (_) => {
530
- u.value && (s.value ? l.value = f.value ? null : n : l.value = f.value ? h.removeFromList(
531
- n,
532
- l.value
533
- ) : [...l.value, n], _.preventDefault());
508
+ disabled: l,
509
+ markerRight: y(() => d.value),
510
+ bordered: u
511
+ }), h = (V) => {
512
+ const A = V.target;
513
+ n("update:open", A.open);
514
+ }, m = (V) => {
515
+ c.value && (o.value ? i.value = f.value ? null : r : i.value = f.value ? b.removeFromList(
516
+ r,
517
+ i.value
518
+ ) : [...i.value, r], V.preventDefault());
534
519
  };
535
- return (_, S) => (y(), V("details", {
536
- class: F(m(d)),
537
- open: m(f),
538
- onToggle: g,
539
- onClick: p
520
+ return (V, A) => (g(), _("details", {
521
+ class: N(p(v)),
522
+ open: p(f),
523
+ onToggle: h,
524
+ onClick: m
540
525
  }, [
541
- A("summary", {
542
- "aria-controls": `#${m(n)}`,
543
- "aria-expanded": m(f),
526
+ $("summary", {
527
+ "aria-controls": `#${p(r)}`,
528
+ "aria-expanded": p(f),
544
529
  class: "vv-collapse__summary"
545
530
  }, [
546
- k(_.$slots, "header", {}, () => [
547
- N(O(_.title), 1)
531
+ C(V.$slots, "header", {}, () => [
532
+ j(B(V.title), 1)
548
533
  ])
549
- ], 8, Ue),
550
- A("div", {
551
- "aria-hidden": !m(f),
534
+ ], 8, Te),
535
+ $("div", {
536
+ "aria-hidden": !p(f),
552
537
  class: "vv-collapse__content"
553
538
  }, [
554
- k(_.$slots, "details", {}, () => [
555
- N(O(_.content), 1)
539
+ C(V.$slots, "details", {}, () => [
540
+ j(B(V.content), 1)
556
541
  ])
557
- ], 8, ze)
558
- ], 42, Me));
542
+ ], 8, Ze)
543
+ ], 42, Ke));
559
544
  }
560
- }), Qe = {
545
+ }), Je = {
561
546
  modelValue: [String, Array],
562
547
  iconRight: Boolean,
563
548
  bordered: Boolean,
@@ -565,100 +550,84 @@ const Me = ["open"], Ue = ["aria-controls", "aria-expanded"], ze = ["aria-hidden
565
550
  accordion: Boolean,
566
551
  modifiers: [String, Array],
567
552
  disabled: Boolean
568
- }, Te = ["update:open"], Rt = /* @__PURE__ */ w({
553
+ }, Xe = ["update:open"], Rt = /* @__PURE__ */ P({
569
554
  __name: "VvAccordionGroup",
570
- props: Qe,
571
- emits: Te,
572
- setup(e, { emit: o }) {
573
- const t = e, r = Z(t, "modelValue", o), { disabled: n, bordered: l, iconRight: a, accordion: c, modifiers: i, items: v } = P(t);
574
- oe({
575
- key: ue,
576
- modelValue: r,
577
- disabled: n,
578
- bordered: l,
555
+ props: Je,
556
+ emits: Xe,
557
+ setup(e, { emit: n }) {
558
+ const t = e, s = J(t, "modelValue", n), { disabled: r, bordered: i, iconRight: a, accordion: u, modifiers: l, items: d } = S(t);
559
+ re({
560
+ key: fe,
561
+ modelValue: s,
562
+ disabled: r,
563
+ bordered: i,
579
564
  iconRight: a,
580
- accordion: c
565
+ accordion: u
581
566
  });
582
- const { bemCssClasses: s } = G("vv-accordion-group", {
583
- modifiers: i,
584
- disabled: n
567
+ const { bemCssClasses: o } = w("vv-accordion-group", {
568
+ modifiers: l,
569
+ disabled: r
585
570
  });
586
- return (f, d) => {
587
- var g;
588
- return y(), V("div", {
589
- class: F(m(s))
571
+ return (f, v) => {
572
+ var h;
573
+ return g(), _("div", {
574
+ class: N(p(o))
590
575
  }, [
591
- ((g = t.items) == null ? void 0 : g.length) > 0 ? (y(!0), V(U, { key: 0 }, T(m(v), (p) => (y(), j(Ke, E({
592
- key: p.title
576
+ ((h = t.items) == null ? void 0 : h.length) > 0 ? (g(!0), _(U, { key: 0 }, W(p(d), (m) => (g(), I(We, E({
577
+ key: m.title
593
578
  }, {
594
- name: p.name,
595
- title: p.title,
596
- content: p.content,
579
+ name: m.name,
580
+ title: m.title,
581
+ content: m.content,
597
582
  ...t
598
- }), null, 16))), 128)) : k(f.$slots, "default", { key: 1 })
583
+ }), null, 16))), 128)) : C(f.$slots, "default", { key: 1 })
599
584
  ], 2);
600
585
  };
601
586
  }
602
- }), ce = {
603
- valid: Boolean,
604
- validLabel: [String, Array]
605
- }, de = {
606
- error: Boolean,
607
- errorLabel: [String, Array]
608
- }, Ze = {
609
- disabled: Boolean
610
- }, fe = {
611
- modifiers: [String, Array]
612
- }, We = {
613
- hintLabel: { type: String, default: "" }
614
- }, Je = {
615
- options: { type: Array, default: () => [] },
616
- optionLabel: { type: [String, Function], default: () => "label" },
617
- optionValue: { type: [String, Function], default: () => "value" }
618
- }, Xe = {
619
- ...fe,
587
+ }), Qe = {
588
+ ...z,
620
589
  routes: Array,
621
590
  multiline: Boolean
622
- }, Ye = { class: "vv-breadcrumb__list" }, xe = ["content"], Dt = /* @__PURE__ */ w({
591
+ }, Ye = { class: "vv-breadcrumb__list" }, xe = ["content"], Dt = /* @__PURE__ */ P({
623
592
  __name: "VvBreadcrumb",
624
- props: Xe,
593
+ props: Qe,
625
594
  setup(e) {
626
- const o = e, { modifiers: t, multiline: r } = P(o), { bemCssClasses: n } = G("vv-breadcrumb", {
595
+ const n = e, { modifiers: t, multiline: s } = S(n), { bemCssClasses: r } = w("vv-breadcrumb", {
627
596
  modifiers: t,
628
- multiline: r
597
+ multiline: s
629
598
  });
630
- return (l, a) => (y(), V("nav", {
631
- class: F(m(n)),
599
+ return (i, a) => (g(), _("nav", {
600
+ class: N(p(r)),
632
601
  "aria-label": "breadcrumbs"
633
602
  }, [
634
- A("ol", Ye, [
635
- (y(!0), V(U, null, T(l.routes, (c, i) => {
636
- var v, u, s, f;
637
- return y(), V("li", {
638
- key: `${c.label}-${i}`,
639
- class: F({
640
- "vv-breadcrumb__item": i < Number((v = l.routes) == null ? void 0 : v.length) - 1,
641
- "vv-breadcrumb__item-active": i === Number((u = l.routes) == null ? void 0 : u.length) - 1
603
+ $("ol", Ye, [
604
+ (g(!0), _(U, null, W(i.routes, (u, l) => {
605
+ var d, c, o, f;
606
+ return g(), _("li", {
607
+ key: `${u.label}-${l}`,
608
+ class: N({
609
+ "vv-breadcrumb__item": l < Number((d = i.routes) == null ? void 0 : d.length) - 1,
610
+ "vv-breadcrumb__item-active": l === Number((c = i.routes) == null ? void 0 : c.length) - 1
642
611
  }),
643
612
  itemprop: "itemListElement",
644
613
  itemtype: "https://schema.org/ListItem",
645
614
  itemscope: ""
646
615
  }, [
647
- (y(), j(re(c.to ? "router-link" : c.href ? "a" : "span"), E(c, {
616
+ (g(), I(ae(u.to ? "router-link" : u.href ? "a" : "span"), E(u, {
648
617
  class: {
649
- "vv-breadcrumb__link": i < Number((s = l.routes) == null ? void 0 : s.length) - 1
618
+ "vv-breadcrumb__link": l < Number((o = i.routes) == null ? void 0 : o.length) - 1
650
619
  },
651
- "aria-current": i === Number((f = l.routes) == null ? void 0 : f.length) - 1 ? "page" : void 0,
620
+ "aria-current": l === Number((f = i.routes) == null ? void 0 : f.length) - 1 ? "page" : void 0,
652
621
  itemprop: "item"
653
622
  }), {
654
623
  default: x(() => [
655
- N(O(c.label) + " ", 1)
624
+ j(B(u.label) + " ", 1)
656
625
  ]),
657
626
  _: 2
658
627
  }, 1040, ["class", "aria-current"])),
659
- A("meta", {
628
+ $("meta", {
660
629
  itemprop: "position",
661
- content: `${i + 1}`
630
+ content: `${l + 1}`
662
631
  }, null, 8, xe)
663
632
  ], 2);
664
633
  }), 128))
@@ -671,37 +640,37 @@ const Me = ["open"], Ue = ["aria-controls", "aria-expanded"], ze = ["aria-hidden
671
640
  }, tt = {
672
641
  key: 0,
673
642
  class: "vv-card__header"
674
- }, ot = {
643
+ }, nt = {
675
644
  key: 1,
676
645
  class: "vv-card__content"
677
- }, nt = {
646
+ }, rt = {
678
647
  key: 2,
679
648
  class: "vv-card__footer"
680
- }, It = /* @__PURE__ */ w({
649
+ }, It = /* @__PURE__ */ P({
681
650
  __name: "VvCard",
682
651
  props: et,
683
652
  setup(e) {
684
- const o = e, t = Q(), { modifiers: r } = P(o), { bemCssClasses: n } = G("vv-card", {
685
- modifiers: r
686
- }), l = b(() => t);
687
- return (a, c) => (y(), V("article", E({ class: m(n) }, m(l)), [
688
- a.$slots.header || a.title ? (y(), V("header", tt, [
689
- k(a.$slots, "header", {}, () => [
690
- N(O(a.title), 1)
653
+ const n = e, t = Z(), { modifiers: s } = S(n), { bemCssClasses: r } = w("vv-card", {
654
+ modifiers: s
655
+ }), i = y(() => t);
656
+ return (a, u) => (g(), _("article", E({ class: p(r) }, p(i)), [
657
+ a.$slots.header || a.title ? (g(), _("header", tt, [
658
+ C(a.$slots, "header", {}, () => [
659
+ j(B(a.title), 1)
691
660
  ])
692
- ])) : B("", !0),
693
- k(a.$slots, "default"),
694
- a.$slots.content ? (y(), V("div", ot, [
695
- k(a.$slots, "content")
696
- ])) : B("", !0),
697
- a.$slots.footer ? (y(), V("footer", nt, [
698
- k(a.$slots, "footer")
699
- ])) : B("", !0)
661
+ ])) : O("", !0),
662
+ C(a.$slots, "default"),
663
+ a.$slots.content ? (g(), _("div", nt, [
664
+ C(a.$slots, "content")
665
+ ])) : O("", !0),
666
+ a.$slots.footer ? (g(), _("footer", rt, [
667
+ C(a.$slots, "footer")
668
+ ])) : O("", !0)
700
669
  ], 16));
701
670
  }
702
- }), rt = {
703
- ...ce,
704
- ...de,
671
+ }), ot = {
672
+ ...ie,
673
+ ...ue,
705
674
  value: null,
706
675
  modelValue: null,
707
676
  binary: Boolean,
@@ -718,118 +687,118 @@ const Me = ["open"], Ue = ["aria-controls", "aria-expanded"], ze = ["aria-hidden
718
687
  "focus",
719
688
  "blur"
720
689
  ];
721
- function at(e, o) {
722
- const { group: t, isInGroup: r, getGroupOrLocalRef: n } = te(ie), { valid: l, error: a, switch: c } = P(e), i = n("modelValue", e, o), v = n("readonly", e), u = n("disabled", e);
690
+ function at(e, n) {
691
+ const { group: t, isInGroup: s, getGroupOrLocalRef: r } = ne(ve), { valid: i, error: a, switch: u } = S(e), l = r("modelValue", e, n), d = r("readonly", e), c = r("disabled", e);
723
692
  return {
724
693
  group: t,
725
- isInGroup: r,
726
- valid: l,
694
+ isInGroup: s,
695
+ valid: i,
727
696
  error: a,
728
- propsSwitch: c,
729
- modelValue: i,
730
- readonly: v,
731
- disabled: u
697
+ propsSwitch: u,
698
+ modelValue: l,
699
+ readonly: d,
700
+ disabled: c
732
701
  };
733
702
  }
734
- function lt(e, o) {
703
+ function lt(e, n) {
735
704
  const { focused: t } = Be(e);
736
- return ye(t, (r) => {
737
- o(r ? "focus" : "blur", e.value);
705
+ return be(t, (s) => {
706
+ n(s ? "focus" : "blur", e.value);
738
707
  }), {
739
708
  focused: t
740
709
  };
741
710
  }
742
711
  const it = {
743
712
  inheritAttrs: !1
744
- }, ut = /* @__PURE__ */ w({
713
+ }, ut = /* @__PURE__ */ P({
745
714
  ...it,
746
715
  __name: "VvCheck",
747
- props: rt,
716
+ props: ot,
748
717
  emits: st,
749
- setup(e, { emit: o }) {
750
- const t = e, r = Q(), { disabled: n, readonly: l, valid: a, error: c, propsSwitch: i, modelValue: v } = at(t, o), u = M(), { focused: s } = lt(u, o), f = b(() => t.binary ? h.equals(v.value, t.trueValue) : Array.isArray(v.value) ? h.contains(t.value, v.value) : h.equals(t.value, v.value)), { bemCssClasses: d } = G("vv-input-checkbox", {
751
- switch: i,
718
+ setup(e, { emit: n }) {
719
+ const t = e, s = Z(), { disabled: r, readonly: i, valid: a, error: u, propsSwitch: l, modelValue: d } = at(t, n), c = H(), { focused: o } = lt(c, n), f = y(() => t.binary ? b.equals(d.value, t.trueValue) : Array.isArray(d.value) ? b.contains(t.value, d.value) : b.equals(t.value, d.value)), { bemCssClasses: v } = w("vv-input-checkbox", {
720
+ switch: l,
752
721
  valid: a,
753
- invalid: c
754
- }), { bemCssClasses: g } = G(
722
+ invalid: u
723
+ }), { bemCssClasses: h } = w(
755
724
  "vv-input-check__input",
756
725
  {
757
726
  checked: f,
758
- disabled: n,
759
- readonly: l
727
+ disabled: r,
728
+ readonly: i
760
729
  }
761
- ), p = b(() => ({
762
- [r.class]: !0,
763
- ...d.value
764
- })), _ = b(() => ({
765
- ...g.value,
766
- "focus-visible": s.value
767
- })), S = b(() => {
768
- const { id: $, name: R, style: C } = r, H = h.pickBy(
769
- r,
770
- (ve) => ve.startsWith("data-")
730
+ ), m = y(() => ({
731
+ [s.class]: !0,
732
+ ...v.value
733
+ })), V = y(() => ({
734
+ ...h.value,
735
+ "focus-visible": o.value
736
+ })), A = y(() => {
737
+ const { id: G, name: F, style: X } = s, pe = b.pickBy(
738
+ s,
739
+ (me) => me.startsWith("data-")
771
740
  );
772
741
  return {
773
- for: $ || R,
774
- style: C,
775
- ...H
742
+ for: G || F,
743
+ style: X,
744
+ ...pe
776
745
  };
777
- }), D = b(() => {
778
- const { id: $ = "", name: R = "" } = r;
746
+ }), R = y(() => {
747
+ const { id: G = "", name: F = "" } = s;
779
748
  return {
780
749
  type: "checkbox",
781
- id: $ || R,
782
- name: R,
750
+ id: G || F,
751
+ name: F,
783
752
  value: t.value,
784
- disabled: n.value,
785
- readonly: l.value,
753
+ disabled: r.value,
754
+ readonly: i.value,
786
755
  checked: f.value,
787
- ...I.value
756
+ ...D.value
788
757
  };
789
- }), I = b(() => {
790
- const { name: $ } = r, R = h.pickBy(
791
- r,
792
- (C) => C.startsWith("aria-")
758
+ }), D = y(() => {
759
+ const { name: G } = s, F = b.pickBy(
760
+ s,
761
+ (X) => X.startsWith("aria-")
793
762
  );
794
763
  return {
795
- "aria-label": $,
764
+ "aria-label": G,
796
765
  "aria-checked": f.value,
797
- ...R
766
+ ...F
798
767
  };
799
768
  });
800
- function W() {
769
+ function k() {
801
770
  if (t.binary) {
802
- v.value = f.value ? t.falseValue : t.trueValue;
771
+ d.value = f.value ? t.falseValue : t.trueValue;
803
772
  return;
804
773
  }
805
- if (v.value === null) {
806
- v.value = [t.value];
774
+ if (d.value === null) {
775
+ d.value = [t.value];
807
776
  return;
808
777
  }
809
- if (Array.isArray(v.value)) {
810
- v.value = f.value ? h.removeFromList(t.value, v.value) : [...v.value, t.value];
778
+ if (Array.isArray(d.value)) {
779
+ d.value = f.value ? b.removeFromList(t.value, d.value) : [...d.value, t.value];
811
780
  return;
812
781
  }
813
782
  }
814
- function J($) {
815
- n.value || (o("click", $), o("change", f.value ? t.value : null), s.value = !0);
783
+ function M(G) {
784
+ r.value || (n("click", G), n("change", f.value ? t.value : null), o.value = !0);
816
785
  }
817
- return ($, R) => (y(), V("label", E({ class: m(p) }, m(S), { onClick: J }), [
818
- A("input", E({
786
+ return (G, F) => (g(), _("label", E({ class: p(m) }, p(A), { onClick: M }), [
787
+ $("input", E({
819
788
  ref_key: "input",
820
- ref: u,
821
- class: m(_)
822
- }, m(D), { onInput: W }), null, 16),
823
- k($.$slots, "default", { value: m(v) }, () => [
824
- N(O($.label), 1)
789
+ ref: c,
790
+ class: p(V)
791
+ }, p(R), { onInput: k }), null, 16),
792
+ C(G.$slots, "default", { value: p(d) }, () => [
793
+ j(B(G.label), 1)
825
794
  ])
826
795
  ], 16));
827
796
  }
828
797
  }), ct = {
829
- ...ce,
830
- ...de,
831
- ...We,
832
- ...Je,
798
+ ...ie,
799
+ ...ue,
800
+ ...Ge,
801
+ ...Ee,
833
802
  modelValue: { type: Array },
834
803
  label: { type: String, default: "" },
835
804
  name: { type: String, default: "", required: !0 },
@@ -837,19 +806,19 @@ const it = {
837
806
  readonly: { type: Boolean, default: !1 },
838
807
  vertical: { type: Boolean, default: !1 }
839
808
  }, dt = ["update:modelValue", "change"];
840
- function ft(e) {
841
- const { options: o, optionLabel: t, optionValue: r } = P(e);
809
+ function vt(e) {
810
+ const { options: n, optionLabel: t, optionValue: s } = S(e);
842
811
  return {
843
- options: o,
812
+ options: n,
844
813
  getOptionLabel: (a) => typeof a != "object" && a !== null ? a : typeof t.value == "function" ? t.value(a) : a[t.value],
845
- getOptionValue: (a) => typeof a != "object" && a !== null ? a : typeof r.value == "function" ? r.value(a) : a[r.value]
814
+ getOptionValue: (a) => typeof a != "object" && a !== null ? a : typeof s.value == "function" ? s.value(a) : a[s.value]
846
815
  };
847
816
  }
848
- function z(e) {
849
- return Array.isArray(e) ? e.filter((o) => h.isString(o)).reduce((o, t) => o.length > 0 ? o + `
817
+ function K(e) {
818
+ return Array.isArray(e) ? e.filter((n) => b.isString(n)).reduce((n, t) => n.length > 0 ? n + `
850
819
  ` + t : t, "") : e;
851
820
  }
852
- function vt(e, o) {
821
+ function ft(e, n) {
853
822
  return {
854
823
  name: "HintSlot",
855
824
  props: {
@@ -859,43 +828,43 @@ function vt(e, o) {
859
828
  }
860
829
  },
861
830
  setup(t) {
862
- const r = P(e), {
863
- error: n,
864
- valid: l,
831
+ const s = S(e), {
832
+ error: r,
833
+ valid: i,
865
834
  hint: a,
866
- loading: c
867
- } = o, {
868
- hintLabel: i,
869
- modelValue: v,
870
- valid: u,
871
- validLabel: s,
835
+ loading: u
836
+ } = n, {
837
+ hintLabel: l,
838
+ modelValue: d,
839
+ valid: c,
840
+ validLabel: o,
872
841
  error: f,
873
- errorLabel: d
874
- } = r, g = h.resolveFieldData(r, "loading"), p = h.resolveFieldData(
875
- r,
842
+ errorLabel: v
843
+ } = s, h = b.resolveFieldData(s, "loading"), m = b.resolveFieldData(
844
+ s,
876
845
  "loadingLabel"
877
- ), _ = b(() => f.value ? !!(f.value && n || (d == null ? void 0 : d.value) && Array.isArray(d.value) && d.value.length > 0 || (d == null ? void 0 : d.value) && h.isNotEmpty(d.value)) : !1), S = b(() => !!(i && i.value || a || l || s && s.value || _.value || (g == null ? void 0 : g.value) && c || (g == null ? void 0 : g.value) && (p == null ? void 0 : p.value))), D = b(() => {
878
- const I = Oe({
879
- hintLabel: i,
880
- modelValue: v,
881
- valid: u,
882
- validLabel: s,
846
+ ), V = y(() => f.value ? !!(f.value && r || (v == null ? void 0 : v.value) && Array.isArray(v.value) && v.value.length > 0 || (v == null ? void 0 : v.value) && b.isNotEmpty(v.value)) : !1), A = y(() => !!(l && l.value || a || i || o && o.value || V.value || (h == null ? void 0 : h.value) && u || (h == null ? void 0 : h.value) && (m == null ? void 0 : m.value))), R = y(() => {
847
+ const D = we({
848
+ hintLabel: l,
849
+ modelValue: d,
850
+ valid: c,
851
+ validLabel: o,
883
852
  error: f,
884
- errorLabel: d,
885
- loading: g,
886
- loadingLabel: p,
853
+ errorLabel: v,
854
+ loading: h,
855
+ loadingLabel: m,
887
856
  ...t.params
888
857
  });
889
- return f != null && f.value ? (n == null ? void 0 : n(I)) || z(d == null ? void 0 : d.value) || (i == null ? void 0 : i.value) : u != null && u.value ? (l == null ? void 0 : l(I)) || z(s == null ? void 0 : s.value) || (i == null ? void 0 : i.value) : g != null && g.value ? (c == null ? void 0 : c(I)) || z(p == null ? void 0 : p.value) || (i == null ? void 0 : i.value) : (a == null ? void 0 : a(I)) || z(i == null ? void 0 : i.value) || (i == null ? void 0 : i.value);
858
+ return f != null && f.value ? (r == null ? void 0 : r(D)) || K(v == null ? void 0 : v.value) || (l == null ? void 0 : l.value) : c != null && c.value ? (i == null ? void 0 : i(D)) || K(o == null ? void 0 : o.value) || (l == null ? void 0 : l.value) : h != null && h.value ? (u == null ? void 0 : u(D)) || K(m == null ? void 0 : m.value) || (l == null ? void 0 : l.value) : (a == null ? void 0 : a(D)) || K(l == null ? void 0 : l.value) || (l == null ? void 0 : l.value);
890
859
  });
891
860
  return {
892
- hasHint: S,
893
- hintContent: D
861
+ hasHint: A,
862
+ hintContent: R
894
863
  };
895
864
  },
896
865
  render() {
897
866
  if (this.hasHint)
898
- return be(
867
+ return _e(
899
868
  "pre",
900
869
  { style: { "white-space": "pre" } },
901
870
  this.hintContent
@@ -903,45 +872,45 @@ function vt(e, o) {
903
872
  }
904
873
  };
905
874
  }
906
- const pt = ["textContent"], mt = { class: "vv-input-checkbox-group__wrapper" }, jt = /* @__PURE__ */ w({
875
+ const pt = ["textContent"], mt = { class: "vv-input-checkbox-group__wrapper" }, jt = /* @__PURE__ */ P({
907
876
  __name: "VvCheckGroup",
908
877
  props: ct,
909
878
  emits: dt,
910
- setup(e, { emit: o }) {
911
- const t = e, r = he(), n = Z(t, "modelValue", o), { disabled: l, readonly: a, error: c, valid: i } = P(t);
912
- oe({
913
- key: ie,
914
- modelValue: n,
915
- disabled: l,
879
+ setup(e, { emit: n }) {
880
+ const t = e, s = se(), r = J(t, "modelValue", n), { disabled: i, readonly: a, error: u, valid: l } = S(t);
881
+ re({
882
+ key: ve,
883
+ modelValue: r,
884
+ disabled: i,
916
885
  readonly: a
917
886
  });
918
- const { getOptionLabel: u, getOptionValue: s } = ft(t), { bemCssClasses: f } = G(
887
+ const { getOptionLabel: c, getOptionValue: o } = vt(t), { bemCssClasses: f } = w(
919
888
  "vv-input-checkbox-group",
920
889
  {
921
- horizontal: b(() => !t.vertical),
922
- valid: i,
923
- invalid: c
890
+ horizontal: y(() => !t.vertical),
891
+ valid: l,
892
+ invalid: u
924
893
  }
925
- ), d = (p, _) => ({
926
- id: `${t.name}_opt${_}`,
894
+ ), v = (m, V) => ({
895
+ id: `${t.name}_opt${V}`,
927
896
  name: t.name,
928
- label: u(p),
929
- value: s(p)
930
- }), g = vt(t, r);
931
- return (p, _) => (y(), V("fieldset", {
932
- class: F(m(f))
897
+ label: c(m),
898
+ value: o(m)
899
+ }), h = ft(t, s);
900
+ return (m, V) => (g(), _("fieldset", {
901
+ class: N(p(f))
933
902
  }, [
934
- p.label ? (y(), V("legend", {
903
+ m.label ? (g(), _("legend", {
935
904
  key: 0,
936
- textContent: O(p.label)
937
- }, null, 8, pt)) : B("", !0),
938
- A("div", mt, [
939
- p.options.length > 0 ? (y(!0), V(U, { key: 0 }, T(p.options, (S, D) => (y(), j(ut, E({ key: D }, d(S, D)), null, 16))), 128)) : k(p.$slots, "default", { key: 1 })
905
+ textContent: B(m.label)
906
+ }, null, 8, pt)) : O("", !0),
907
+ $("div", mt, [
908
+ m.options.length > 0 ? (g(!0), _(U, { key: 0 }, W(m.options, (A, R) => (g(), I(ut, E({ key: R }, v(A, R)), null, 16))), 128)) : C(m.$slots, "default", { key: 1 })
940
909
  ]),
941
- se(m(g), { class: "vv-input-checkbox-group__hint" })
910
+ le(p(h), { class: "vv-input-checkbox-group__hint" })
942
911
  ], 2));
943
912
  }
944
- }), K = {
913
+ }), T = {
945
914
  normal: "",
946
915
  small: "small",
947
916
  fullscreen: "fullscreen"
@@ -952,83 +921,83 @@ const pt = ["textContent"], mt = { class: "vv-input-checkbox-group__wrapper" },
952
921
  transition: { type: String, default: "fade-block" },
953
922
  size: {
954
923
  type: String,
955
- default: K.normal,
956
- validator: (e) => Object.values(K).includes(e)
924
+ default: T.normal,
925
+ validator: (e) => Object.values(T).includes(e)
957
926
  },
958
927
  autoClose: { type: Boolean, default: !0 }
959
- }, bt = {
928
+ }, ht = {
960
929
  key: 0,
961
930
  class: "vv-dialog__header"
962
- }, ht = ["onClick"], _t = { class: "vv-dialog__content" }, Vt = {
931
+ }, bt = ["onClick"], _t = { class: "vv-dialog__content" }, Vt = {
963
932
  key: 1,
964
933
  class: "vv-dialog__footer"
965
- }, Nt = /* @__PURE__ */ w({
934
+ }, Nt = /* @__PURE__ */ P({
966
935
  __name: "VvDialog",
967
936
  props: yt,
968
937
  emits: gt,
969
- setup(e, { emit: o }) {
970
- const t = e, r = Z(t, "open", o), n = M(!0), l = M(null), a = b(() => {
971
- const { id: s } = t;
938
+ setup(e, { emit: n }) {
939
+ const t = e, s = J(t, "open", n), r = H(!0), i = H(null), a = y(() => {
940
+ const { id: o } = t;
972
941
  return {
973
- id: s,
974
- open: n.value
942
+ id: o,
943
+ open: r.value
975
944
  };
976
- }), c = b(() => ({
945
+ }), u = y(() => ({
977
946
  "vv-dialog": !0,
978
- "vv-dialog--small": t.size === K.small,
979
- "vv-dialog--fullscreen": t.size === K.fullscreen
980
- })), i = b(() => `vv-dialog--${t.transition}`), v = {
947
+ "vv-dialog--small": t.size === T.small,
948
+ "vv-dialog--fullscreen": t.size === T.fullscreen
949
+ })), l = y(() => `vv-dialog--${t.transition}`), d = {
981
950
  "after-enter": () => {
982
- n.value = !0, o("open");
951
+ r.value = !0, n("open");
983
952
  },
984
953
  "after-leave": () => {
985
- n.value = !1, o("close");
954
+ r.value = !1, n("close");
986
955
  }
987
956
  };
988
- we(l, () => {
989
- t.autoClose && (r.value = !1);
957
+ Pe(i, () => {
958
+ t.autoClose && (s.value = !1);
990
959
  });
991
- function u() {
992
- r.value = !1;
960
+ function c() {
961
+ s.value = !1;
993
962
  }
994
- return (s, f) => (y(), j(_e, E({ name: m(i) }, Ve(v)), {
963
+ return (o, f) => (g(), I(Ve, E({ name: p(l) }, Ce(d)), {
995
964
  default: x(() => [
996
- ke(A("dialog", E(m(a), { class: m(c) }), [
997
- A("article", {
965
+ ke($("dialog", E(p(a), { class: p(u) }), [
966
+ $("article", {
998
967
  ref_key: "modalWrapper",
999
- ref: l,
968
+ ref: i,
1000
969
  class: "vv-dialog__wrapper"
1001
970
  }, [
1002
- s.$slots.header || s.title ? (y(), V("header", bt, [
1003
- k(s.$slots, "header", {}, () => [
1004
- N(O(s.title) + " ", 1),
1005
- A("button", {
971
+ o.$slots.header || o.title ? (g(), _("header", ht, [
972
+ C(o.$slots, "header", {}, () => [
973
+ j(B(o.title) + " ", 1),
974
+ $("button", {
1006
975
  type: "button",
1007
976
  "aria-label": "Close",
1008
977
  class: "vv-dialog__close",
1009
- onClick: Ce(u, ["prevent"])
978
+ onClick: $e(c, ["prevent"])
1010
979
  }, [
1011
- se(Y, { name: "close" })
1012
- ], 8, ht)
980
+ le(Y, { name: "close" })
981
+ ], 8, bt)
1013
982
  ])
1014
- ])) : B("", !0),
1015
- A("div", _t, [
1016
- k(s.$slots, "default")
983
+ ])) : O("", !0),
984
+ $("div", _t, [
985
+ C(o.$slots, "default")
1017
986
  ]),
1018
- s.$slots.footer ? (y(), V("footer", Vt, [
1019
- k(s.$slots, "footer")
1020
- ])) : B("", !0)
987
+ o.$slots.footer ? (g(), _("footer", Vt, [
988
+ C(o.$slots, "footer")
989
+ ])) : O("", !0)
1021
990
  ], 512)
1022
991
  ], 16), [
1023
- [Se, m(r)]
992
+ [Se, p(s)]
1024
993
  ])
1025
994
  ]),
1026
995
  _: 3
1027
996
  }, 16, ["name"]));
1028
997
  }
1029
- }), kt = {
1030
- ...Ze,
1031
- ...fe,
998
+ }), Ct = {
999
+ ...te,
1000
+ ...z,
1032
1001
  modelValue: [String, Array, Object],
1033
1002
  labelNoResult: { type: String, default: "No results" },
1034
1003
  options: {
@@ -1040,64 +1009,64 @@ const pt = ["textContent"], mt = { class: "vv-input-checkbox-group__wrapper" },
1040
1009
  maxValues: [Number, String],
1041
1010
  labelKey: { type: String, default: "label" },
1042
1011
  valueKey: { type: String, default: "value" }
1043
- }, Ct = { key: 0 }, St = ["for"], $t = ["id", "type", "value", "checked", "disabled"], Ft = /* @__PURE__ */ w({
1012
+ }, kt = { key: 0 }, $t = ["for"], St = ["id", "type", "value", "checked", "disabled"], Ft = /* @__PURE__ */ P({
1044
1013
  __name: "VvDropdown",
1045
- props: kt,
1014
+ props: Ct,
1046
1015
  emits: ["update:modelValue"],
1047
- setup(e, { emit: o }) {
1048
- const t = e, r = ee(), { modifiers: n, disabled: l } = P(t), { bemCssClasses: a } = G("vv-dropdown", {
1049
- modifiers: n,
1050
- disabled: l
1016
+ setup(e, { emit: n }) {
1017
+ const t = e, s = ee(), { modifiers: r, disabled: i } = S(t), { bemCssClasses: a } = w("vv-dropdown", {
1018
+ modifiers: r,
1019
+ disabled: i
1051
1020
  });
1052
- function c(s) {
1053
- return Array.isArray(t.modelValue) ? h.contains(s, t.modelValue) || h.contains(i(s), t.modelValue) : h.equals(s, t.modelValue) || h.equals(i(s), t.modelValue);
1021
+ function u(o) {
1022
+ return Array.isArray(t.modelValue) ? b.contains(o, t.modelValue) || b.contains(l(o), t.modelValue) : b.equals(o, t.modelValue) || b.equals(l(o), t.modelValue);
1054
1023
  }
1055
- function i(s) {
1056
- return typeof s == "string" ? s : String(s[t.valueKey]);
1024
+ function l(o) {
1025
+ return typeof o == "string" ? o : String(o[t.valueKey]);
1057
1026
  }
1058
- function v(s) {
1059
- return typeof s == "string" ? s : s[t.labelKey];
1027
+ function d(o) {
1028
+ return typeof o == "string" ? o : o[t.labelKey];
1060
1029
  }
1061
- function u(s) {
1062
- var p, _;
1063
- const f = s.target;
1064
- let d = f.value;
1065
- if (d = (t.useObject ? (p = t.options) == null ? void 0 : p.find(
1066
- (S) => S[t.valueKey] == d
1067
- ) : null) || d, t.multiple) {
1068
- if (typeof t.maxValues < "u" && t.maxValues >= 0 && ((_ = t.modelValue) == null ? void 0 : _.length) >= t.maxValues && (Array.isArray(t.modelValue) && !h.contains(d, t.modelValue) || t.maxValues == 0)) {
1030
+ function c(o) {
1031
+ var m, V;
1032
+ const f = o.target;
1033
+ let v = f.value;
1034
+ if (v = (t.useObject ? (m = t.options) == null ? void 0 : m.find(
1035
+ (A) => A[t.valueKey] == v
1036
+ ) : null) || v, t.multiple) {
1037
+ if (typeof t.maxValues < "u" && t.maxValues >= 0 && ((V = t.modelValue) == null ? void 0 : V.length) >= t.maxValues && (Array.isArray(t.modelValue) && !b.contains(v, t.modelValue) || t.maxValues == 0)) {
1069
1038
  f.checked = !1;
1070
1039
  return;
1071
1040
  }
1072
- Array.isArray(t.modelValue) ? d = h.contains(d, t.modelValue) ? h.removeFromList(d, t.modelValue) : [...t.modelValue, d] : d = [d];
1041
+ Array.isArray(t.modelValue) ? v = b.contains(v, t.modelValue) ? b.removeFromList(v, t.modelValue) : [...t.modelValue, v] : v = [v];
1073
1042
  }
1074
- o("update:modelValue", d);
1043
+ n("update:modelValue", v);
1075
1044
  }
1076
- return (s, f) => {
1077
- var d;
1078
- return y(), V("ul", {
1079
- class: F(m(a)),
1045
+ return (o, f) => {
1046
+ var v;
1047
+ return g(), _("ul", {
1048
+ class: N(p(a)),
1080
1049
  role: "listbox"
1081
1050
  }, [
1082
- (d = s.options) != null && d.length ? B("", !0) : (y(), V("li", Ct, [
1083
- A("label", null, O(s.labelNoResult), 1)
1051
+ (v = o.options) != null && v.length ? O("", !0) : (g(), _("li", kt, [
1052
+ $("label", null, B(o.labelNoResult), 1)
1084
1053
  ])),
1085
- (y(!0), V(U, null, T(s.options, (g, p) => {
1086
- var _;
1087
- return y(), V("li", { key: p }, [
1088
- A("label", {
1089
- for: `dropdown-${p}-${m(r)}`
1054
+ (g(!0), _(U, null, W(o.options, (h, m) => {
1055
+ var V;
1056
+ return g(), _("li", { key: m }, [
1057
+ $("label", {
1058
+ for: `dropdown-${m}-${p(s)}`
1090
1059
  }, [
1091
- A("input", {
1092
- id: `dropdown-${p}-${m(r)}`,
1093
- type: s.multiple ? "checkbox" : "radio",
1094
- value: i(g),
1095
- checked: c(g),
1096
- disabled: typeof g == "object" ? (_ = g.disabled) != null ? _ : m(l) : m(l),
1097
- onInput: u
1098
- }, null, 40, $t),
1099
- N(" " + O(v(g)), 1)
1100
- ], 8, St)
1060
+ $("input", {
1061
+ id: `dropdown-${m}-${p(s)}`,
1062
+ type: o.multiple ? "checkbox" : "radio",
1063
+ value: l(h),
1064
+ checked: u(h),
1065
+ disabled: typeof h == "object" ? (V = h.disabled) != null ? V : p(i) : p(i),
1066
+ onInput: c
1067
+ }, null, 40, St),
1068
+ j(" " + B(d(h)), 1)
1069
+ ], 8, $t)
1101
1070
  ]);
1102
1071
  }), 128))
1103
1072
  ], 2);
@@ -1105,7 +1074,7 @@ const pt = ["textContent"], mt = { class: "vv-input-checkbox-group__wrapper" },
1105
1074
  }
1106
1075
  });
1107
1076
  export {
1108
- Ke as VvAccordion,
1077
+ We as VvAccordion,
1109
1078
  Rt as VvAccordionGroup,
1110
1079
  Gt as VvBadge,
1111
1080
  Dt as VvBreadcrumb,