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