@volverjs/ui-vue 0.0.1-beta.6 → 0.0.1-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +61 -2
  2. package/dist/components/VvButton/vv-button.es.js +56 -58
  3. package/dist/components/VvButton/vv-button.umd.js +1 -1
  4. package/dist/components/VvCheckGroup/vv-check-group.es.js +221 -203
  5. package/dist/components/VvCheckGroup/vv-check-group.umd.js +2 -2
  6. package/dist/components/VvInputText/VvInputText.d.ts +14 -0
  7. package/dist/components/VvInputText/VvInputText.vue.d.ts +36 -1
  8. package/dist/components/VvInputText/VvInputTextActions.d.ts +3 -0
  9. package/dist/components/VvInputText/vv-input-text.es.js +509 -380
  10. package/dist/components/VvInputText/vv-input-text.umd.js +2 -2
  11. package/dist/components/VvNativeSelect/vv-native-select.es.js +180 -161
  12. package/dist/components/VvNativeSelect/vv-native-select.umd.js +2 -2
  13. package/dist/components/VvRadioGroup/vv-radio-group.es.js +211 -193
  14. package/dist/components/VvRadioGroup/vv-radio-group.umd.js +2 -2
  15. package/dist/components/VvSelect/vv-select.es.js +189 -171
  16. package/dist/components/VvSelect/vv-select.umd.js +2 -2
  17. package/dist/components/VvTextarea/VvTextarea.d.ts +43 -22
  18. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +140 -85
  19. package/dist/components/VvTextarea/vv-textarea.es.js +364 -288
  20. package/dist/components/VvTextarea/vv-textarea.umd.js +2 -2
  21. package/dist/composables/debouncedInput/useDebouncedInput.d.ts +2 -0
  22. package/dist/composables/icons/useComponentIcons.d.ts +6 -0
  23. package/dist/composables/textLimit/useTextLimit.d.ts +14 -0
  24. package/dist/composables/useModifiers.d.ts +3 -2
  25. package/dist/icons.es.js +3 -3
  26. package/dist/icons.umd.js +1 -1
  27. package/dist/props/index.d.ts +42 -0
  28. package/dist/stories/utils.d.ts +5 -0
  29. package/dist/ui-vue.es.js +417 -401
  30. package/dist/ui-vue.umd.js +2 -2
  31. package/package.json +3 -1
  32. package/src/assets/icons/detailed.json +1 -1
  33. package/src/assets/icons/normal.json +1 -1
  34. package/src/assets/icons/simple.json +1 -1
  35. package/src/components/VvButton/VvButton.vue +1 -2
  36. package/src/components/VvInputText/VvInputText.ts +19 -2
  37. package/src/components/VvInputText/VvInputText.vue +123 -149
  38. package/src/components/VvInputText/VvInputTextActions.ts +151 -0
  39. package/src/components/VvTextarea/VvTextarea.ts +25 -16
  40. package/src/components/VvTextarea/VvTextarea.vue +89 -93
  41. package/src/components/common/HintSlot.ts +31 -13
  42. package/src/composables/debouncedInput/useDebouncedInput.ts +19 -0
  43. package/src/composables/icons/useComponentIcons.ts +35 -0
  44. package/src/composables/textLimit/useTextLimit.ts +44 -0
  45. package/src/composables/useModifiers.ts +47 -1
  46. package/src/props/index.ts +39 -0
  47. package/src/stories/InputText/InputTextMaxLength.stories.mdx +21 -0
  48. package/src/stories/Textarea/Textarea.stories.mdx +33 -51
  49. package/src/stories/Textarea/TextareaAutoclear.stories.mdx +23 -0
  50. package/src/stories/Textarea/TextareaAutocomplete.stories.mdx +10 -2
  51. package/src/stories/Textarea/TextareaAutofocus.stories.mdx +5 -1
  52. package/src/stories/Textarea/TextareaDebounce.stories.mdx +23 -0
  53. package/src/stories/Textarea/TextareaDisabled.stories.mdx +5 -1
  54. package/src/stories/Textarea/TextareaError.stories.mdx +6 -3
  55. package/src/stories/Textarea/TextareaErrorLabel.stories.mdx +37 -0
  56. package/src/stories/Textarea/TextareaFloating.stories.mdx +7 -2
  57. package/src/stories/Textarea/TextareaHintLabel.stories.mdx +5 -1
  58. package/src/stories/Textarea/TextareaIcon.stories.mdx +5 -1
  59. package/src/stories/Textarea/TextareaIconPosition.stories.mdx +9 -1
  60. package/src/stories/Textarea/TextareaId.stories.mdx +19 -0
  61. package/src/stories/Textarea/TextareaLabel.stories.mdx +5 -1
  62. package/src/stories/Textarea/TextareaLimit.stories.mdx +50 -0
  63. package/src/stories/Textarea/TextareaLoading.stories.mdx +6 -3
  64. package/src/stories/Textarea/TextareaLoadingLabel.stories.mdx +23 -0
  65. package/src/stories/Textarea/TextareaMaxLength.stories.mdx +6 -2
  66. package/src/stories/Textarea/TextareaMinLength.stories.mdx +5 -1
  67. package/src/stories/Textarea/TextareaModifiers.stories.mdx +24 -0
  68. package/src/stories/Textarea/TextareaName.stories.mdx +23 -0
  69. package/src/stories/Textarea/TextareaPlaceholder.stories.mdx +5 -1
  70. package/src/stories/Textarea/TextareaReadonly.stories.mdx +5 -1
  71. package/src/stories/Textarea/TextareaRequired.stories.mdx +22 -0
  72. package/src/stories/Textarea/TextareaResizable.stories.mdx +22 -0
  73. package/src/stories/Textarea/TextareaRowsCols.stories.mdx +9 -1
  74. package/src/stories/Textarea/TextareaValid.stories.mdx +7 -4
  75. package/src/stories/Textarea/TextareaValidLabel.stories.mdx +35 -0
  76. package/src/stories/stories.scss +11 -0
  77. package/src/stories/utils.ts +12 -0
  78. package/src/stories/volver-ui-vue.stories.mdx +7 -1
  79. package/dist/components/VvInputText/useInputNumber.d.ts +0 -16
  80. package/dist/components/VvInputText/useInputPassword.d.ts +0 -16
  81. package/src/components/VvInputText/useInputNumber.ts +0 -40
  82. package/src/components/VvInputText/useInputPassword.ts +0 -38
package/dist/ui-vue.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { computed as p, unref as m, defineComponent as j, ref as E, toRefs as L, inject as e1, openBlock as f, createBlock as O, mergeProps as S, createCommentVNode as H, toRef as m1, useAttrs as F, useSlots as o1, resolveDynamicComponent as l1, withCtx as X, renderSlot as w, createElementBlock as M, toDisplayString as V, Fragment as R, createTextVNode as D, normalizeClass as I, isRef as g1, provide as p1, createElementVNode as A, renderList as U, watch as f1, h as v1, createVNode as n1, Transition as C1, toHandlers as y1, withDirectives as M1, withModifiers as w1, vShow as b1 } from "vue";
2
- import { v4 as Y } from "uuid";
3
- import { iconExists as W, Icon as x1, addIcon as Z1 } from "@iconify/vue";
4
- import { useVModel as K, useFocus as A1, onClickOutside as H1 } from "@vueuse/core";
1
+ import { computed as v, unref as g, defineComponent as j, ref as R, toRefs as L, inject as o1, openBlock as f, createBlock as O, mergeProps as S, createCommentVNode as H, toRef as m1, useAttrs as U, resolveDynamicComponent as l1, withCtx as Y, renderSlot as w, createElementBlock as M, toDisplayString as V, Fragment as E, createTextVNode as D, normalizeClass as I, isRef as g1, provide as p1, createElementVNode as A, renderList as K, watch as f1, h as v1, useSlots as C1, createVNode as n1, Transition as y1, toHandlers as M1, withDirectives as w1, withModifiers as b1, vShow as x1 } from "vue";
2
+ import { v4 as r1 } from "uuid";
3
+ import { iconExists as J, Icon as Z1, addIcon as A1 } from "@iconify/vue";
4
+ import { useVModel as Q, useFocus as H1, toReactive as V1, onClickOutside as j1 } from "@vueuse/core";
5
5
  var G = /* @__PURE__ */ ((r) => (r.left = "left", r.right = "right", r.top = "top", r.bottom = "bottom", r))(G || {}), q = /* @__PURE__ */ ((r) => (r.nuxtLink = "nuxt-link", r.routerLink = "router-link", r.a = "a", r.button = "button", r))(q || {}), a1 = /* @__PURE__ */ ((r) => (r._blank = "_blank", r._self = "_self", r._parent = "_parent", r._top = "_top", r))(a1 || {});
6
- const V1 = {
6
+ const L1 = {
7
7
  icon: String,
8
8
  iconPosition: {
9
9
  type: String,
@@ -54,15 +54,15 @@ const V1 = {
54
54
  }
55
55
  if (t != l)
56
56
  return !1;
57
- const c = r instanceof Date, u = e instanceof Date;
58
- if (c != u)
57
+ const h = r instanceof Date, c = e instanceof Date;
58
+ if (h != c)
59
59
  return !1;
60
- if (c && u)
60
+ if (h && c)
61
61
  return r.getTime() == e.getTime();
62
- const d = r instanceof RegExp, h = e instanceof RegExp;
63
- if (d != h)
62
+ const u = r instanceof RegExp, s = e instanceof RegExp;
63
+ if (u != s)
64
64
  return !1;
65
- if (d && h)
65
+ if (u && s)
66
66
  return r.toString() == e.toString();
67
67
  const n = Object.keys(r);
68
68
  if (i = n.length, i !== Object.keys(e).length)
@@ -136,8 +136,8 @@ const V1 = {
136
136
  },
137
137
  propsToObject(r) {
138
138
  return Object.keys(r).reduce((e, t) => {
139
- var l, o, i, a, c;
140
- return this.isFunction(r[t]) ? e[t] = r[t]() : Array.isArray(r[t]) ? e[t] = r[t][0]() : (l = r[t]) != null && l.type && (Array.isArray(r[t].type) ? e[t] = ((o = r[t]) == null ? void 0 : o.default) || ((i = r[t]) == null ? void 0 : i.type[0]()) : e[t] = ((a = r[t]) == null ? void 0 : a.default) || ((c = r[t]) == null ? void 0 : c.type())), e;
139
+ var l, o, i, a, h;
140
+ return this.isFunction(r[t]) ? e[t] = r[t]() : Array.isArray(r[t]) ? e[t] = r[t][0]() : (l = r[t]) != null && l.type && (Array.isArray(r[t].type) ? e[t] = ((o = r[t]) == null ? void 0 : o.default) || ((i = r[t]) == null ? void 0 : i.type[0]()) : e[t] = ((a = r[t]) == null ? void 0 : a.default) || ((h = r[t]) == null ? void 0 : h.type())), e;
141
141
  }, {});
142
142
  },
143
143
  filterArray(r, e, t) {
@@ -153,7 +153,7 @@ const V1 = {
153
153
  /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
154
154
  )) == null ? void 0 : e.join("-")) == null ? void 0 : t.toLowerCase();
155
155
  }
156
- }, j1 = {
156
+ }, _1 = {
157
157
  color: String,
158
158
  width: {
159
159
  type: [String, Number]
@@ -188,19 +188,19 @@ const V1 = {
188
188
  function _(r, e) {
189
189
  const t = { [`${r}`]: !0 };
190
190
  return {
191
- bemCssClasses: p(() => Object.keys(e).reduce((o, i) => {
192
- const a = m(e[i]) || !1;
191
+ bemCssClasses: v(() => Object.keys(e).reduce((o, i) => {
192
+ const a = g(e[i]) || !1;
193
193
  if (!a)
194
194
  return o;
195
195
  if (i === "modifiers") {
196
- const c = Array.isArray(a) ? a : [a];
196
+ const h = Array.isArray(a) ? a : [a];
197
197
  return {
198
198
  ...o,
199
- ...c.reduce(
200
- (u, d) => ({
201
- ...u,
199
+ ...h.reduce(
200
+ (c, u) => ({
201
+ ...c,
202
202
  [`${r}--${C.kebabCase(
203
- d
203
+ u
204
204
  )}`]: !0
205
205
  }),
206
206
  {}
@@ -214,73 +214,73 @@ function _(r, e) {
214
214
  }, t) || {})
215
215
  };
216
216
  }
217
- const J = /* @__PURE__ */ j({
217
+ const X = /* @__PURE__ */ j({
218
218
  __name: "VvIcon",
219
- props: j1,
219
+ props: _1,
220
220
  setup(r) {
221
- const e = r, t = E(!0), { modifiers: l } = L(e), o = e1("ds"), { bemCssClasses: i } = _("vv-icon", {
221
+ const e = r, t = R(!0), { modifiers: l } = L(e), o = o1("ds"), { bemCssClasses: i } = _("vv-icon", {
222
222
  modifiers: l
223
- }), a = p(() => e.provider || (o == null ? void 0 : o.provider)), c = p(() => {
224
- const h = e.name || "", n = `@${a.value}:${e.prefix}:${e.name}`;
225
- return W(h) ? h : W(n) ? n : (o == null ? void 0 : o.iconsCollections.find((s) => {
226
- const k = `@${a.value}:${s.prefix}:${h}`;
227
- if (W(k))
228
- return k;
229
- })) || h;
223
+ }), a = v(() => e.provider || (o == null ? void 0 : o.provider)), h = v(() => {
224
+ const s = e.name || "", n = `@${a.value}:${e.prefix}:${e.name}`;
225
+ return J(s) ? s : J(n) ? n : (o == null ? void 0 : o.iconsCollections.find((k) => {
226
+ const d = `@${a.value}:${k.prefix}:${s}`;
227
+ if (J(d))
228
+ return d;
229
+ })) || s;
230
230
  });
231
- function u(h) {
231
+ function c(s) {
232
232
  let n = null;
233
233
  if (typeof window > "u") {
234
- const { JSDOM: g } = require("jsdom");
235
- n = new g().window;
234
+ const { JSDOM: m } = require("jsdom");
235
+ n = new m().window;
236
236
  }
237
- return (n ? new n.DOMParser() : new window.DOMParser()).parseFromString(h, "text/html").querySelector("svg");
237
+ return (n ? new n.DOMParser() : new window.DOMParser()).parseFromString(s, "text/html").querySelector("svg");
238
238
  }
239
- function d(h) {
240
- const n = u(h), s = (n == null ? void 0 : n.innerHTML.trim()) || "";
241
- n && s && Z1(`@${a.value}:${e.prefix}:${e.name}`, {
242
- body: s,
239
+ function u(s) {
240
+ const n = c(s), k = (n == null ? void 0 : n.innerHTML.trim()) || "";
241
+ n && k && A1(`@${a.value}:${e.prefix}:${e.name}`, {
242
+ body: k,
243
243
  height: n.viewBox.baseVal.height,
244
244
  width: n.viewBox.baseVal.width
245
245
  });
246
246
  }
247
- return o && (e.src ? (t.value = !1, o.fetchIcon(e.src).then((h) => {
248
- h && (d(h), t.value = !0);
249
- }).catch((h) => {
250
- throw new Error(`During fetch icon: ${h == null ? void 0 : h.message}`);
251
- })) : e.svg && d(e.svg)), (h, n) => t.value ? (f(), O(m(x1), S({
247
+ return o && (e.src ? (t.value = !1, o.fetchIcon(e.src).then((s) => {
248
+ s && (u(s), t.value = !0);
249
+ }).catch((s) => {
250
+ throw new Error(`During fetch icon: ${s == null ? void 0 : s.message}`);
251
+ })) : e.svg && u(e.svg)), (s, n) => t.value ? (f(), O(g(Z1), S({
252
252
  key: 0,
253
- class: m(i)
253
+ class: g(i)
254
254
  }, {
255
- ...h.$props,
256
- provider: m(a),
257
- icon: m(c)
255
+ ...s.$props,
256
+ provider: g(a),
257
+ icon: g(h)
258
258
  }), null, 16, ["class"])) : H("", !0);
259
259
  }
260
260
  });
261
- function r1(r) {
262
- const e = e1(r, void 0);
261
+ function t1(r) {
262
+ const e = o1(r, void 0);
263
263
  console.log("Inject - ", e);
264
- const t = p(() => C.isNotEmpty(e));
264
+ const t = v(() => C.isNotEmpty(e));
265
265
  function l(o, i, a) {
266
266
  if (e != null && e.value) {
267
- const c = m(e.value)[o];
268
- return p({
267
+ const h = g(e.value)[o];
268
+ return v({
269
269
  get() {
270
- return c == null ? void 0 : c.value;
270
+ return h == null ? void 0 : h.value;
271
271
  },
272
- set(u) {
273
- c.value = u;
272
+ set(c) {
273
+ h.value = c;
274
274
  }
275
275
  });
276
276
  } else {
277
- const c = m1(i, o);
278
- return p({
277
+ const h = m1(i, o);
278
+ return v({
279
279
  get() {
280
- return c.value;
280
+ return h.value;
281
281
  },
282
- set(u) {
283
- a && a(`update:${o}`, u);
282
+ set(c) {
283
+ a && a(`update:${o}`, c);
284
284
  }
285
285
  });
286
286
  }
@@ -292,55 +292,53 @@ function r1(r) {
292
292
  };
293
293
  }
294
294
  const i1 = Symbol("VV_BUTTON_GROUP"), c1 = Symbol("VV_CHECK_GROUP"), s1 = Symbol("VV_ACCORDION_GROUP");
295
- function L1(r) {
296
- const { group: e, isInGroup: t, getGroupOrLocalRef: l } = r1(i1), { modifiers: o, fullBleed: i, iconPosition: a, icon: c, label: u, block: d, selected: h } = L(r), n = l("modelValue", r), s = l("disabled", r), k = l("toggle", r), v = l("rounded", r), g = l("action", r), y = l("actionQuiet", r);
295
+ function S1(r) {
296
+ const { group: e, isInGroup: t, getGroupOrLocalRef: l } = t1(i1), { modifiers: o, fullBleed: i, iconPosition: a, icon: h, label: c, block: u, selected: s } = L(r), n = l("modelValue", r), k = l("disabled", r), d = l("toggle", r), p = l("rounded", r), m = l("action", r), y = l("actionQuiet", r);
297
297
  return {
298
298
  modelValue: n,
299
- disabled: s,
300
- toggle: k,
299
+ disabled: k,
300
+ toggle: d,
301
301
  isInGroup: t,
302
302
  group: e,
303
303
  modifiers: o,
304
- action: g,
304
+ action: m,
305
305
  actionQuiet: y,
306
- selected: h,
307
- block: d,
308
- rounded: v,
306
+ selected: s,
307
+ block: u,
308
+ rounded: p,
309
309
  fullBleed: i,
310
310
  iconPosition: a,
311
- icon: c,
312
- label: u
311
+ icon: h,
312
+ label: c
313
313
  };
314
314
  }
315
- const _1 = {
315
+ const $1 = {
316
316
  key: 1,
317
317
  class: "vv-button__label"
318
- }, S1 = {
318
+ }, B1 = {
319
319
  key: 1,
320
320
  class: "vv-button__label"
321
- }, P0 = /* @__PURE__ */ j({
321
+ }, R0 = /* @__PURE__ */ j({
322
322
  __name: "VvButton",
323
- props: V1,
323
+ props: L1,
324
324
  setup(r) {
325
- const e = r, t = F();
326
- o1();
327
- const l = (t == null ? void 0 : t.name) || Y(), {
325
+ const e = r, t = U(), l = (t == null ? void 0 : t.name) || r1(), {
328
326
  modifiers: o,
329
327
  action: i,
330
328
  actionQuiet: a,
331
- block: c,
332
- rounded: u,
333
- fullBleed: d,
334
- iconPosition: h,
329
+ block: h,
330
+ rounded: c,
331
+ fullBleed: u,
332
+ iconPosition: s,
335
333
  icon: n,
336
- label: s,
337
- modelValue: k,
338
- disabled: v,
339
- toggle: g,
334
+ label: k,
335
+ modelValue: d,
336
+ disabled: p,
337
+ toggle: m,
340
338
  isInGroup: y
341
- } = L1(e), x = p(() => {
339
+ } = S1(e), x = v(() => {
342
340
  switch (!0) {
343
- case v.value:
341
+ case p.value:
344
342
  return q.button;
345
343
  case e.to !== void 0:
346
344
  return q.routerLink;
@@ -349,38 +347,38 @@ const _1 = {
349
347
  default:
350
348
  return q.button;
351
349
  }
352
- }), B = p(() => g.value ? Array.isArray(k.value) ? C.contains(l, k.value) : C.equals(l, k.value) : e.active), z = p(() => g.value ? Array.isArray(k.value) ? C.contains(l, k.value) : C.equals(l, k.value) : e.selected), { bemCssClasses: Q } = _("vv-button", {
350
+ }), B = v(() => m.value ? Array.isArray(d.value) ? C.contains(l, d.value) : C.equals(l, d.value) : e.active), z = v(() => m.value ? Array.isArray(d.value) ? C.contains(l, d.value) : C.equals(l, d.value) : e.selected), { bemCssClasses: T } = _("vv-button", {
353
351
  modifiers: o,
354
352
  active: B,
355
353
  action: i,
356
354
  actionQuiet: a,
357
355
  selected: z,
358
- block: c,
359
- rounded: u,
360
- fullBleed: d,
361
- disabled: v,
362
- reverse: p(
356
+ block: h,
357
+ rounded: c,
358
+ fullBleed: u,
359
+ disabled: p,
360
+ reverse: v(
363
361
  () => [G.right, G.bottom].includes(
364
- h.value
362
+ s.value
365
363
  )
366
364
  ),
367
- column: p(
365
+ column: v(
368
366
  () => [G.top, G.bottom].includes(
369
- h.value
367
+ s.value
370
368
  )
371
369
  ),
372
- iconOnly: p(() => (n == null ? void 0 : n.value) && !(s != null && s.value))
373
- }), T = p(() => ({
370
+ iconOnly: v(() => (n == null ? void 0 : n.value) && !(k != null && k.value))
371
+ }), W = v(() => ({
374
372
  ...Z.value,
375
373
  "aria-label": e.label || t["aria-label"],
376
- "aria-disabled": v.value,
374
+ "aria-disabled": p.value,
377
375
  role: "button",
378
- class: Q.value,
376
+ class: T.value,
379
377
  to: e.to
380
- })), Z = p(() => {
378
+ })), Z = v(() => {
381
379
  const b = x.value === q.a;
382
380
  let P = {};
383
- return b && (P = v.value ? {
381
+ return b && (P = p.value ? {
384
382
  href: "javascript:;"
385
383
  } : {
386
384
  target: e.target,
@@ -388,28 +386,28 @@ const _1 = {
388
386
  }), P;
389
387
  });
390
388
  function $() {
391
- y.value && (k.value = l);
389
+ y.value && (d.value = l);
392
390
  }
393
- return (b, P) => (f(), O(l1(m(x)), S(m(T), { onClickPassive: $ }), {
394
- default: X(() => [
391
+ return (b, P) => (f(), O(l1(g(x)), S(g(W), { onClickPassive: $ }), {
392
+ default: Y(() => [
395
393
  w(b.$slots, "default", {}, () => [
396
394
  b.loading ? w(b.$slots, "loading", { key: 0 }, () => [
397
- b.loadingIcon ? (f(), O(J, {
395
+ b.loadingIcon ? (f(), O(X, {
398
396
  key: 0,
399
397
  class: "vv-button__loading-icon",
400
398
  name: b.loadingIcon
401
399
  }, null, 8, ["name"])) : H("", !0),
402
- b.loadingLabel ? (f(), M("span", _1, V(b.loadingLabel), 1)) : H("", !0)
403
- ]) : (f(), M(R, { key: 1 }, [
400
+ b.loadingLabel ? (f(), M("span", $1, V(b.loadingLabel), 1)) : H("", !0)
401
+ ]) : (f(), M(E, { key: 1 }, [
404
402
  w(b.$slots, "before"),
405
- m(n) ? (f(), O(J, {
403
+ g(n) ? (f(), O(X, {
406
404
  key: 0,
407
405
  class: "vv-button__icon",
408
- name: m(n)
406
+ name: g(n)
409
407
  }, null, 8, ["name"])) : H("", !0),
410
- m(s) ? (f(), M("span", S1, [
408
+ g(k) ? (f(), M("span", B1, [
411
409
  w(b.$slots, "label", {}, () => [
412
- D(V(m(s)), 1)
410
+ D(V(g(k)), 1)
413
411
  ])
414
412
  ])) : H("", !0),
415
413
  w(b.$slots, "after")
@@ -419,20 +417,20 @@ const _1 = {
419
417
  _: 3
420
418
  }, 16));
421
419
  }
422
- }), $1 = {
420
+ }), z1 = {
423
421
  value: [String, Number],
424
422
  color: String
425
423
  }, E0 = /* @__PURE__ */ j({
426
424
  __name: "VvBadge",
427
- props: $1,
425
+ props: z1,
428
426
  setup(r) {
429
- const e = r, t = p(() => e.color ? `vv-badge--${e.color}` : "");
427
+ const e = r, t = v(() => e.color ? `vv-badge--${e.color}` : "");
430
428
  return (l, o) => (f(), M("span", {
431
- class: I(["vv-badge", m(t)]),
429
+ class: I(["vv-badge", g(t)]),
432
430
  role: "status"
433
431
  }, V(l.value), 3));
434
432
  }
435
- }), B1 = {
433
+ }), O1 = {
436
434
  disabled: { type: Boolean, default: !1 },
437
435
  vertical: { type: Boolean, default: !1 },
438
436
  compact: { type: Boolean, default: !1 },
@@ -442,52 +440,52 @@ const _1 = {
442
440
  action: Boolean,
443
441
  actionQuiet: Boolean,
444
442
  modelValue: { type: String, default: void 0 }
445
- }, z1 = ["update:modelValue"];
446
- function t1(r) {
443
+ }, D1 = ["update:modelValue"];
444
+ function e1(r) {
447
445
  if (Object.keys(r).some(
448
446
  (e) => e !== "key" && !g1(r[e])
449
447
  ))
450
448
  throw Error("One or more groupState props aren't ref.");
451
449
  console.log("PRovide - ", r), p1(
452
450
  r.key,
453
- p(() => r)
451
+ v(() => r)
454
452
  );
455
453
  }
456
- const R0 = /* @__PURE__ */ j({
454
+ const N0 = /* @__PURE__ */ j({
457
455
  __name: "VvButtonGroup",
458
- props: B1,
459
- emits: z1,
456
+ props: O1,
457
+ emits: D1,
460
458
  setup(r, { emit: e }) {
461
- const t = r, l = K(t, "modelValue", e), {
459
+ const t = r, l = Q(t, "modelValue", e), {
462
460
  disabled: o,
463
461
  vertical: i,
464
462
  compact: a,
465
- block: c,
466
- rounded: u,
467
- toggle: d,
468
- action: h,
463
+ block: h,
464
+ rounded: c,
465
+ toggle: u,
466
+ action: s,
469
467
  actionQuiet: n
470
- } = L(t), { bemCssClasses: s } = _("vv-button-group", {
468
+ } = L(t), { bemCssClasses: k } = _("vv-button-group", {
471
469
  vertical: i,
472
470
  compact: a,
473
- block: c
471
+ block: h
474
472
  });
475
- return t1({
473
+ return e1({
476
474
  key: i1,
477
475
  modelValue: l,
478
476
  disabled: o,
479
- toggle: d,
480
- rounded: u,
481
- action: h,
477
+ toggle: u,
478
+ rounded: c,
479
+ action: s,
482
480
  actionQuiet: n
483
- }), (v, g) => (f(), M("div", {
484
- class: I(m(s)),
481
+ }), (p, m) => (f(), M("div", {
482
+ class: I(g(k)),
485
483
  role: "group"
486
484
  }, [
487
- w(v.$slots, "default")
485
+ w(p.$slots, "default")
488
486
  ], 2));
489
487
  }
490
- }), O1 = {
488
+ }), I1 = {
491
489
  title: String,
492
490
  content: String,
493
491
  open: Boolean,
@@ -495,73 +493,73 @@ const R0 = /* @__PURE__ */ j({
495
493
  bordered: Boolean,
496
494
  modifiers: [String, Array],
497
495
  disabled: Boolean
498
- }, D1 = ["update:open"];
499
- function I1(r, e) {
500
- const { group: t, isInGroup: l, getGroupOrLocalRef: o } = r1(s1), { modifiers: i } = L(r), a = o("modelValue", r, e), c = o("bordered", r), u = o("disabled", r), d = o("iconRight", r), h = o("accordion", r);
496
+ }, q1 = ["update:open"];
497
+ function G1(r, e) {
498
+ const { group: t, isInGroup: l, getGroupOrLocalRef: o } = t1(s1), { modifiers: i } = L(r), a = o("modelValue", r, e), h = o("bordered", r), c = o("disabled", r), u = o("iconRight", r), s = o("accordion", r);
501
499
  return {
502
500
  modelValue: a,
503
- disabled: u,
504
- bordered: c,
505
- iconRight: d,
501
+ disabled: c,
502
+ bordered: h,
503
+ iconRight: u,
506
504
  isInGroup: l,
507
505
  group: t,
508
- accordion: h,
506
+ accordion: s,
509
507
  modifiers: i
510
508
  };
511
509
  }
512
- const q1 = ["open"], G1 = ["aria-controls", "aria-expanded"], P1 = ["aria-hidden"], E1 = /* @__PURE__ */ j({
510
+ const P1 = ["open"], R1 = ["aria-controls", "aria-expanded"], E1 = ["aria-hidden"], N1 = /* @__PURE__ */ j({
513
511
  __name: "VvAccordion",
514
- props: O1,
515
- emits: D1,
512
+ props: I1,
513
+ emits: q1,
516
514
  setup(r, { emit: e }) {
517
- const t = r, l = F(), o = (l == null ? void 0 : l.name) || Y(), {
515
+ const t = r, l = U(), o = (l == null ? void 0 : l.name) || r1(), {
518
516
  modelValue: i,
519
517
  modifiers: a,
520
- bordered: c,
521
- disabled: u = E(!1),
522
- iconRight: d,
523
- isInGroup: h,
518
+ bordered: h,
519
+ disabled: c = R(!1),
520
+ iconRight: u,
521
+ isInGroup: s,
524
522
  accordion: n
525
- } = I1(t, e), s = p(() => h.value ? n.value ? C.equals(o, i.value) : C.contains(o, i.value) : t.open), { bemCssClasses: k } = _("vv-accordion", {
523
+ } = G1(t, e), k = v(() => s.value ? n.value ? C.equals(o, i.value) : C.contains(o, i.value) : t.open), { bemCssClasses: d } = _("vv-accordion", {
526
524
  modifiers: a,
527
- disabled: u,
528
- markerRight: p(() => d.value),
529
- bordered: c
530
- }), v = (y) => {
525
+ disabled: c,
526
+ markerRight: v(() => u.value),
527
+ bordered: h
528
+ }), p = (y) => {
531
529
  const x = y.target;
532
530
  e("update:open", x.open);
533
- }, g = (y) => {
534
- h.value && (n.value ? i.value = s.value ? null : o : i.value = s.value ? C.removeFromList(
531
+ }, m = (y) => {
532
+ s.value && (n.value ? i.value = k.value ? null : o : i.value = k.value ? C.removeFromList(
535
533
  o,
536
534
  i.value
537
535
  ) : [...i.value, o], y.preventDefault());
538
536
  };
539
537
  return (y, x) => (f(), M("details", {
540
- class: I(m(k)),
541
- open: m(s),
542
- onToggle: v,
543
- onClick: g
538
+ class: I(g(d)),
539
+ open: g(k),
540
+ onToggle: p,
541
+ onClick: m
544
542
  }, [
545
543
  A("summary", {
546
- "aria-controls": `#${m(o)}`,
547
- "aria-expanded": m(s),
544
+ "aria-controls": `#${g(o)}`,
545
+ "aria-expanded": g(k),
548
546
  class: "vv-collapse__summary"
549
547
  }, [
550
548
  w(y.$slots, "header", {}, () => [
551
549
  D(V(y.title), 1)
552
550
  ])
553
- ], 8, G1),
551
+ ], 8, R1),
554
552
  A("div", {
555
- "aria-hidden": !m(s),
553
+ "aria-hidden": !g(k),
556
554
  class: "vv-collapse__content"
557
555
  }, [
558
556
  w(y.$slots, "details", {}, () => [
559
557
  D(V(y.content), 1)
560
558
  ])
561
- ], 8, P1)
562
- ], 42, q1));
559
+ ], 8, E1)
560
+ ], 42, P1));
563
561
  }
564
- }), R1 = {
562
+ }), F1 = {
565
563
  modelValue: [String, Array],
566
564
  iconRight: Boolean,
567
565
  bordered: Boolean,
@@ -569,37 +567,37 @@ const q1 = ["open"], G1 = ["aria-controls", "aria-expanded"], P1 = ["aria-hidden
569
567
  accordion: Boolean,
570
568
  modifiers: [String, Array],
571
569
  disabled: Boolean
572
- }, N1 = ["update:open"], N0 = /* @__PURE__ */ j({
570
+ }, U1 = ["update:open"], F0 = /* @__PURE__ */ j({
573
571
  __name: "VvAccordionGroup",
574
- props: R1,
575
- emits: N1,
572
+ props: F1,
573
+ emits: U1,
576
574
  setup(r, { emit: e }) {
577
- const t = r, l = K(t, "modelValue", e), { disabled: o, bordered: i, iconRight: a, accordion: c, modifiers: u, items: d } = L(t);
578
- t1({
575
+ const t = r, l = Q(t, "modelValue", e), { disabled: o, bordered: i, iconRight: a, accordion: h, modifiers: c, items: u } = L(t);
576
+ e1({
579
577
  key: s1,
580
578
  modelValue: l,
581
579
  disabled: o,
582
580
  bordered: i,
583
581
  iconRight: a,
584
- accordion: c
582
+ accordion: h
585
583
  });
586
584
  const { bemCssClasses: n } = _("vv-accordion-group", {
587
- modifiers: u,
585
+ modifiers: c,
588
586
  disabled: o
589
587
  });
590
- return (s, k) => {
591
- var v;
588
+ return (k, d) => {
589
+ var p;
592
590
  return f(), M("div", {
593
- class: I(m(n))
591
+ class: I(g(n))
594
592
  }, [
595
- ((v = t.items) == null ? void 0 : v.length) > 0 ? (f(!0), M(R, { key: 0 }, U(m(d), (g) => (f(), O(E1, S({
596
- key: g.title
593
+ ((p = t.items) == null ? void 0 : p.length) > 0 ? (f(!0), M(E, { key: 0 }, K(g(u), (m) => (f(), O(N1, S({
594
+ key: m.title
597
595
  }, {
598
- name: g.name,
599
- title: g.title,
600
- content: g.content,
596
+ name: m.name,
597
+ title: m.title,
598
+ content: m.content,
601
599
  ...t
602
- }), null, 16))), 128)) : w(s.$slots, "default", { key: 1 })
600
+ }), null, 16))), 128)) : w(k.$slots, "default", { key: 1 })
603
601
  ], 2);
604
602
  };
605
603
  }
@@ -609,101 +607,101 @@ const q1 = ["open"], G1 = ["aria-controls", "aria-expanded"], P1 = ["aria-hidden
609
607
  }, d1 = {
610
608
  error: Boolean,
611
609
  errorLabel: [String, Array]
612
- }, F1 = {
610
+ }, K1 = {
613
611
  disabled: Boolean
614
612
  }, k1 = {
615
613
  modifiers: [String, Array]
616
- }, U1 = {
614
+ }, Q1 = {
617
615
  hintLabel: { type: String, default: "" }
618
- }, K1 = {
616
+ }, T1 = {
619
617
  options: { type: Array, default: () => [] },
620
618
  optionLabel: { type: [String, Function], default: () => "label" },
621
619
  optionValue: { type: [String, Function], default: () => "value" }
622
- }, Q1 = {
620
+ }, W1 = {
623
621
  ...k1,
624
622
  routes: Array,
625
623
  multiline: Boolean
626
- }, T1 = { class: "vv-breadcrumb__list" }, W1 = ["content"], F0 = /* @__PURE__ */ j({
624
+ }, J1 = { class: "vv-breadcrumb__list" }, X1 = ["content"], U0 = /* @__PURE__ */ j({
627
625
  __name: "VvBreadcrumb",
628
- props: Q1,
626
+ props: W1,
629
627
  setup(r) {
630
628
  const e = r, { modifiers: t, multiline: l } = L(e), { bemCssClasses: o } = _("vv-breadcrumb", {
631
629
  modifiers: t,
632
630
  multiline: l
633
631
  });
634
632
  return (i, a) => (f(), M("nav", {
635
- class: I(m(o)),
633
+ class: I(g(o)),
636
634
  "aria-label": "breadcrumbs"
637
635
  }, [
638
- A("ol", T1, [
639
- (f(!0), M(R, null, U(i.routes, (c, u) => {
640
- var d, h, n, s;
636
+ A("ol", J1, [
637
+ (f(!0), M(E, null, K(i.routes, (h, c) => {
638
+ var u, s, n, k;
641
639
  return f(), M("li", {
642
- key: `${c.label}-${u}`,
640
+ key: `${h.label}-${c}`,
643
641
  class: I({
644
- "vv-breadcrumb__item": u < Number((d = i.routes) == null ? void 0 : d.length) - 1,
645
- "vv-breadcrumb__item-active": u === Number((h = i.routes) == null ? void 0 : h.length) - 1
642
+ "vv-breadcrumb__item": c < Number((u = i.routes) == null ? void 0 : u.length) - 1,
643
+ "vv-breadcrumb__item-active": c === Number((s = i.routes) == null ? void 0 : s.length) - 1
646
644
  }),
647
645
  itemprop: "itemListElement",
648
646
  itemtype: "https://schema.org/ListItem",
649
647
  itemscope: ""
650
648
  }, [
651
- (f(), O(l1(c.to ? "router-link" : c.href ? "a" : "span"), S(c, {
649
+ (f(), O(l1(h.to ? "router-link" : h.href ? "a" : "span"), S(h, {
652
650
  class: {
653
- "vv-breadcrumb__link": u < Number((n = i.routes) == null ? void 0 : n.length) - 1
651
+ "vv-breadcrumb__link": c < Number((n = i.routes) == null ? void 0 : n.length) - 1
654
652
  },
655
- "aria-current": u === Number((s = i.routes) == null ? void 0 : s.length) - 1 ? "page" : void 0,
653
+ "aria-current": c === Number((k = i.routes) == null ? void 0 : k.length) - 1 ? "page" : void 0,
656
654
  itemprop: "item"
657
655
  }), {
658
- default: X(() => [
659
- D(V(c.label) + " ", 1)
656
+ default: Y(() => [
657
+ D(V(h.label) + " ", 1)
660
658
  ]),
661
659
  _: 2
662
660
  }, 1040, ["class", "aria-current"])),
663
661
  A("meta", {
664
662
  itemprop: "position",
665
- content: `${u + 1}`
666
- }, null, 8, W1)
663
+ content: `${c + 1}`
664
+ }, null, 8, X1)
667
665
  ], 2);
668
666
  }), 128))
669
667
  ])
670
668
  ], 2));
671
669
  }
672
- }), J1 = {
670
+ }), Y1 = {
673
671
  title: String,
674
672
  modifiers: [String, Array]
675
- }, X1 = {
673
+ }, r0 = {
676
674
  key: 0,
677
675
  class: "vv-card__header"
678
- }, Y1 = {
676
+ }, t0 = {
679
677
  key: 1,
680
678
  class: "vv-card__content"
681
- }, r0 = {
679
+ }, e0 = {
682
680
  key: 2,
683
681
  class: "vv-card__footer"
684
- }, U0 = /* @__PURE__ */ j({
682
+ }, K0 = /* @__PURE__ */ j({
685
683
  __name: "VvCard",
686
- props: J1,
684
+ props: Y1,
687
685
  setup(r) {
688
- const e = r, t = F(), { modifiers: l } = L(e), { bemCssClasses: o } = _("vv-card", {
686
+ const e = r, t = U(), { modifiers: l } = L(e), { bemCssClasses: o } = _("vv-card", {
689
687
  modifiers: l
690
- }), i = p(() => t);
691
- return (a, c) => (f(), M("article", S({ class: m(o) }, m(i)), [
692
- a.$slots.header || a.title ? (f(), M("header", X1, [
688
+ }), i = v(() => t);
689
+ return (a, h) => (f(), M("article", S({ class: g(o) }, g(i)), [
690
+ a.$slots.header || a.title ? (f(), M("header", r0, [
693
691
  w(a.$slots, "header", {}, () => [
694
692
  D(V(a.title), 1)
695
693
  ])
696
694
  ])) : H("", !0),
697
695
  w(a.$slots, "default"),
698
- a.$slots.content ? (f(), M("div", Y1, [
696
+ a.$slots.content ? (f(), M("div", t0, [
699
697
  w(a.$slots, "content")
700
698
  ])) : H("", !0),
701
- a.$slots.footer ? (f(), M("footer", r0, [
699
+ a.$slots.footer ? (f(), M("footer", e0, [
702
700
  w(a.$slots, "footer")
703
701
  ])) : H("", !0)
704
702
  ], 16));
705
703
  }
706
- }), t0 = {
704
+ }), o0 = {
707
705
  ...h1,
708
706
  ...d1,
709
707
  value: null,
@@ -715,60 +713,60 @@ const q1 = ["open"], G1 = ["aria-controls", "aria-expanded"], P1 = ["aria-hidden
715
713
  label: String,
716
714
  disabled: Boolean,
717
715
  readonly: Boolean
718
- }, e0 = [
716
+ }, l0 = [
719
717
  "click",
720
718
  "update:modelValue",
721
719
  "change",
722
720
  "focus",
723
721
  "blur"
724
722
  ];
725
- function o0(r, e) {
726
- const { group: t, isInGroup: l, getGroupOrLocalRef: o } = r1(c1), { valid: i, error: a, switch: c } = L(r), u = o("modelValue", r, e), d = o("readonly", r), h = o("disabled", r);
723
+ function n0(r, e) {
724
+ const { group: t, isInGroup: l, getGroupOrLocalRef: o } = t1(c1), { valid: i, error: a, switch: h } = L(r), c = o("modelValue", r, e), u = o("readonly", r), s = o("disabled", r);
727
725
  return {
728
726
  group: t,
729
727
  isInGroup: l,
730
728
  valid: i,
731
729
  error: a,
732
- propsSwitch: c,
733
- modelValue: u,
734
- readonly: d,
735
- disabled: h
730
+ propsSwitch: h,
731
+ modelValue: c,
732
+ readonly: u,
733
+ disabled: s
736
734
  };
737
735
  }
738
- function l0(r, e) {
739
- const { focused: t } = A1(r);
736
+ function a0(r, e) {
737
+ const { focused: t } = H1(r);
740
738
  return f1(t, (l) => {
741
739
  e(l ? "focus" : "blur", r.value);
742
740
  }), {
743
741
  focused: t
744
742
  };
745
743
  }
746
- const n0 = {
744
+ const i0 = {
747
745
  inheritAttrs: !1
748
- }, a0 = /* @__PURE__ */ j({
749
- ...n0,
746
+ }, c0 = /* @__PURE__ */ j({
747
+ ...i0,
750
748
  __name: "VvCheck",
751
- props: t0,
752
- emits: e0,
749
+ props: o0,
750
+ emits: l0,
753
751
  setup(r, { emit: e }) {
754
- const t = r, l = F(), { disabled: o, readonly: i, valid: a, error: c, propsSwitch: u, modelValue: d } = o0(t, e), h = E(), { focused: n } = l0(h, e), s = p(() => t.binary ? C.equals(d.value, t.trueValue) : Array.isArray(d.value) ? C.contains(t.value, d.value) : C.equals(t.value, d.value)), { bemCssClasses: k } = _("vv-input-checkbox", {
755
- switch: u,
752
+ const t = r, l = U(), { disabled: o, readonly: i, valid: a, error: h, propsSwitch: c, modelValue: u } = n0(t, e), s = R(), { focused: n } = a0(s, e), k = v(() => t.binary ? C.equals(u.value, t.trueValue) : Array.isArray(u.value) ? C.contains(t.value, u.value) : C.equals(t.value, u.value)), { bemCssClasses: d } = _("vv-input-checkbox", {
753
+ switch: c,
756
754
  valid: a,
757
- invalid: c
758
- }), { bemCssClasses: v } = _(
755
+ invalid: h
756
+ }), { bemCssClasses: p } = _(
759
757
  "vv-input-check__input",
760
758
  {
761
- checked: s,
759
+ checked: k,
762
760
  disabled: o,
763
761
  readonly: i
764
762
  }
765
- ), g = p(() => ({
763
+ ), m = v(() => ({
766
764
  [l.class]: !0,
767
- ...k.value
768
- })), y = p(() => ({
769
- ...v.value,
765
+ ...d.value
766
+ })), y = v(() => ({
767
+ ...p.value,
770
768
  "focus-visible": n.value
771
- })), x = p(() => {
769
+ })), x = v(() => {
772
770
  const { id: Z, name: $, style: b } = l, P = C.pickBy(
773
771
  l,
774
772
  (u1) => u1.startsWith("data-")
@@ -778,7 +776,7 @@ const n0 = {
778
776
  style: b,
779
777
  ...P
780
778
  };
781
- }), B = p(() => {
779
+ }), B = v(() => {
782
780
  const { id: Z = "", name: $ = "" } = l;
783
781
  return {
784
782
  type: "checkbox",
@@ -787,62 +785,62 @@ const n0 = {
787
785
  value: t.value,
788
786
  disabled: o.value,
789
787
  readonly: i.value,
790
- checked: s.value,
788
+ checked: k.value,
791
789
  ...z.value
792
790
  };
793
- }), z = p(() => {
791
+ }), z = v(() => {
794
792
  const { name: Z } = l, $ = C.pickBy(
795
793
  l,
796
794
  (b) => b.startsWith("aria-")
797
795
  );
798
796
  return {
799
797
  "aria-label": Z,
800
- "aria-checked": s.value,
798
+ "aria-checked": k.value,
801
799
  ...$
802
800
  };
803
801
  });
804
- function Q() {
802
+ function T() {
805
803
  if (t.binary) {
806
- d.value = s.value ? t.falseValue : t.trueValue;
804
+ u.value = k.value ? t.falseValue : t.trueValue;
807
805
  return;
808
806
  }
809
- if (d.value === null) {
810
- d.value = [t.value];
807
+ if (u.value === null) {
808
+ u.value = [t.value];
811
809
  return;
812
810
  }
813
- if (Array.isArray(d.value)) {
814
- d.value = s.value ? C.removeFromList(t.value, d.value) : [...d.value, t.value];
811
+ if (Array.isArray(u.value)) {
812
+ u.value = k.value ? C.removeFromList(t.value, u.value) : [...u.value, t.value];
815
813
  return;
816
814
  }
817
815
  console.warn("Cannot change value - VvCheck modelValue is not an array");
818
816
  }
819
- function T(Z) {
820
- o.value || (e("click", Z), e("change", s.value ? t.value : null), n.value = !0);
817
+ function W(Z) {
818
+ o.value || (e("click", Z), e("change", k.value ? t.value : null), n.value = !0);
821
819
  }
822
- return (Z, $) => (f(), M("label", S({ class: m(g) }, m(x), { onClick: T }), [
820
+ return (Z, $) => (f(), M("label", S({ class: g(m) }, g(x), { onClick: W }), [
823
821
  A("input", S({
824
822
  ref_key: "input",
825
- ref: h,
826
- class: m(y)
827
- }, m(B), { onInput: Q }), null, 16),
828
- w(Z.$slots, "default", { value: m(d) }, () => [
823
+ ref: s,
824
+ class: g(y)
825
+ }, g(B), { onInput: T }), null, 16),
826
+ w(Z.$slots, "default", { value: g(u) }, () => [
829
827
  D(V(Z.label), 1)
830
828
  ])
831
829
  ], 16));
832
830
  }
833
- }), i0 = {
831
+ }), s0 = {
834
832
  ...h1,
835
833
  ...d1,
836
- ...U1,
837
- ...K1,
834
+ ...Q1,
835
+ ...T1,
838
836
  modelValue: { type: Array },
839
837
  label: { type: String, default: "" },
840
838
  name: { type: String, default: "", required: !0 },
841
839
  disabled: { type: Boolean, default: !1 },
842
840
  readonly: { type: Boolean, default: !1 },
843
841
  vertical: { type: Boolean, default: !1 }
844
- }, c0 = ["update:modelValue", "change"];
845
- function s0(r) {
842
+ }, h0 = ["update:modelValue", "change"];
843
+ function d0(r) {
846
844
  const { options: e, optionLabel: t, optionValue: l } = L(r);
847
845
  return {
848
846
  options: e,
@@ -850,119 +848,137 @@ function s0(r) {
850
848
  getOptionValue: (a) => typeof a != "object" && a !== null ? a : typeof l.value == "function" ? l.value(a) : a[l.value]
851
849
  };
852
850
  }
853
- function h0(r) {
851
+ function N(r) {
854
852
  return Array.isArray(r) ? r.filter((e) => C.isString(e)).reduce((e, t) => e.length > 0 ? e + `
855
853
  ` + t : t, "") : r;
856
854
  }
857
- function d0(r, e) {
855
+ function k0(r, e) {
858
856
  return {
859
857
  name: "HintSlot",
860
- setup() {
861
- const t = L(r), {
862
- error: l,
863
- valid: o,
864
- hint: i,
865
- loading: a
858
+ props: {
859
+ params: { type: Object, default: () => {
860
+ } }
861
+ },
862
+ setup(t) {
863
+ const l = L(r), {
864
+ error: o,
865
+ valid: i,
866
+ hint: a,
867
+ loading: h
866
868
  } = e, {
867
869
  hintLabel: c,
868
870
  modelValue: u,
869
- valid: d,
870
- validLabel: h,
871
- error: n,
872
- errorLabel: s
873
- } = t, k = C.resolveFieldData(t, "loading"), v = C.resolveFieldData(
874
- t,
871
+ valid: s,
872
+ validLabel: n,
873
+ error: k,
874
+ errorLabel: d
875
+ } = l, p = C.resolveFieldData(l, "loading"), m = C.resolveFieldData(
876
+ l,
875
877
  "loadingLabel"
876
- ), g = p(() => n.value ? !!(n.value && l || (s == null ? void 0 : s.value) && Array.isArray(s.value) && s.value.length > 0 || (s == null ? void 0 : s.value) && C.isNotEmpty(s.value)) : !1), y = p(() => !!(c && c.value || i || o || h && h.value || g.value || (k == null ? void 0 : k.value) && a || (k == null ? void 0 : k.value) && (v == null ? void 0 : v.value))), x = p(() => Array.isArray(s == null ? void 0 : s.value) ? h0((s == null ? void 0 : s.value) || "") : s == null ? void 0 : s.value), B = p(() => {
877
- const z = { modelValue: u, error: n, valid: d };
878
- return n != null && n.value ? (l == null ? void 0 : l(z)) || (x == null ? void 0 : x.value) || (c == null ? void 0 : c.value) : d != null && d.value ? (o == null ? void 0 : o(z)) || (h == null ? void 0 : h.value) || (c == null ? void 0 : c.value) : k != null && k.value ? (a == null ? void 0 : a(z)) || (v == null ? void 0 : v.value) || (c == null ? void 0 : c.value) : (i == null ? void 0 : i(z)) || (c == null ? void 0 : c.value) || (c == null ? void 0 : c.value);
878
+ ), y = v(() => k.value ? !!(k.value && o || (d == null ? void 0 : d.value) && Array.isArray(d.value) && d.value.length > 0 || (d == null ? void 0 : d.value) && C.isNotEmpty(d.value)) : !1), x = v(() => !!(c && c.value || a || i || n && n.value || y.value || (p == null ? void 0 : p.value) && h || (p == null ? void 0 : p.value) && (m == null ? void 0 : m.value))), B = v(() => {
879
+ const z = V1({
880
+ hintLabel: c,
881
+ modelValue: u,
882
+ valid: s,
883
+ validLabel: n,
884
+ error: k,
885
+ errorLabel: d,
886
+ loading: p,
887
+ loadingLabel: m,
888
+ ...t.params
889
+ });
890
+ return k != null && k.value ? (o == null ? void 0 : o(z)) || N(d == null ? void 0 : d.value) || (c == null ? void 0 : c.value) : s != null && s.value ? (i == null ? void 0 : i(z)) || N(n == null ? void 0 : n.value) || (c == null ? void 0 : c.value) : p != null && p.value ? (h == null ? void 0 : h(z)) || N(m == null ? void 0 : m.value) || (c == null ? void 0 : c.value) : (a == null ? void 0 : a(z)) || N(c == null ? void 0 : c.value) || (c == null ? void 0 : c.value);
879
891
  });
880
892
  return {
881
- hasHint: y,
893
+ hasHint: x,
882
894
  hintContent: B
883
895
  };
884
896
  },
885
897
  render() {
886
898
  if (this.hasHint)
887
- return v1("span", null, this.hintContent);
899
+ return v1(
900
+ "pre",
901
+ { style: { "white-space": "pre" } },
902
+ this.hintContent
903
+ );
888
904
  }
889
905
  };
890
906
  }
891
- const k0 = ["textContent"], u0 = { class: "vv-input-checkbox-group__wrapper" }, K0 = /* @__PURE__ */ j({
907
+ const u0 = ["textContent"], m0 = { class: "vv-input-checkbox-group__wrapper" }, Q0 = /* @__PURE__ */ j({
892
908
  __name: "VvCheckGroup",
893
- props: i0,
894
- emits: c0,
909
+ props: s0,
910
+ emits: h0,
895
911
  setup(r, { emit: e }) {
896
- const t = r, l = o1(), o = K(t, "modelValue", e), { disabled: i, readonly: a, error: c, valid: u } = L(t);
897
- t1({
912
+ const t = r, l = C1(), o = Q(t, "modelValue", e), { disabled: i, readonly: a, error: h, valid: c } = L(t);
913
+ e1({
898
914
  key: c1,
899
915
  modelValue: o,
900
916
  disabled: i,
901
917
  readonly: a
902
918
  });
903
- const { getOptionLabel: h, getOptionValue: n } = s0(t), { bemCssClasses: s } = _(
919
+ const { getOptionLabel: s, getOptionValue: n } = d0(t), { bemCssClasses: k } = _(
904
920
  "vv-input-checkbox-group",
905
921
  {
906
- horizontal: p(() => !t.vertical),
907
- valid: u,
908
- invalid: c
922
+ horizontal: v(() => !t.vertical),
923
+ valid: c,
924
+ invalid: h
909
925
  }
910
- ), k = (g, y) => ({
926
+ ), d = (m, y) => ({
911
927
  id: `${t.name}_opt${y}`,
912
928
  name: t.name,
913
- label: h(g),
914
- value: n(g)
915
- }), v = d0(t, l);
916
- return (g, y) => (f(), M("fieldset", {
917
- class: I(m(s))
929
+ label: s(m),
930
+ value: n(m)
931
+ }), p = k0(t, l);
932
+ return (m, y) => (f(), M("fieldset", {
933
+ class: I(g(k))
918
934
  }, [
919
- g.label ? (f(), M("legend", {
935
+ m.label ? (f(), M("legend", {
920
936
  key: 0,
921
- textContent: V(g.label)
922
- }, null, 8, k0)) : H("", !0),
923
- A("div", u0, [
924
- g.options.length > 0 ? (f(!0), M(R, { key: 0 }, U(g.options, (x, B) => (f(), O(a0, S({ key: B }, k(x, B)), null, 16))), 128)) : w(g.$slots, "default", { key: 1 })
937
+ textContent: V(m.label)
938
+ }, null, 8, u0)) : H("", !0),
939
+ A("div", m0, [
940
+ m.options.length > 0 ? (f(!0), M(E, { key: 0 }, K(m.options, (x, B) => (f(), O(c0, S({ key: B }, d(x, B)), null, 16))), 128)) : w(m.$slots, "default", { key: 1 })
925
941
  ]),
926
- n1(m(v), { class: "vv-input-checkbox-group__hint" })
942
+ n1(g(p), { class: "vv-input-checkbox-group__hint" })
927
943
  ], 2));
928
944
  }
929
- }), N = {
945
+ }), F = {
930
946
  normal: "",
931
947
  small: "small",
932
948
  fullscreen: "fullscreen"
933
- }, m0 = ["open", "close", "update:open"], g0 = {
949
+ }, g0 = ["open", "close", "update:open"], p0 = {
934
950
  id: { type: String, required: !0 },
935
951
  title: String,
936
952
  open: Boolean,
937
953
  transition: { type: String, default: "fade-block" },
938
954
  size: {
939
955
  type: String,
940
- default: N.normal,
941
- validator: (r) => Object.values(N).includes(r)
956
+ default: F.normal,
957
+ validator: (r) => Object.values(F).includes(r)
942
958
  },
943
959
  autoClose: { type: Boolean, default: !0 }
944
- }, p0 = {
960
+ }, f0 = {
945
961
  key: 0,
946
962
  class: "vv-dialog__header"
947
- }, f0 = ["onClick"], v0 = { class: "vv-dialog__content" }, C0 = {
963
+ }, v0 = ["onClick"], C0 = { class: "vv-dialog__content" }, y0 = {
948
964
  key: 1,
949
965
  class: "vv-dialog__footer"
950
- }, Q0 = /* @__PURE__ */ j({
966
+ }, T0 = /* @__PURE__ */ j({
951
967
  __name: "VvDialog",
952
- props: g0,
953
- emits: m0,
968
+ props: p0,
969
+ emits: g0,
954
970
  setup(r, { emit: e }) {
955
- const t = r, l = K(t, "open", e), o = E(!0), i = E(null), a = p(() => {
971
+ const t = r, l = Q(t, "open", e), o = R(!0), i = R(null), a = v(() => {
956
972
  const { id: n } = t;
957
973
  return {
958
974
  id: n,
959
975
  open: o.value
960
976
  };
961
- }), c = p(() => ({
977
+ }), h = v(() => ({
962
978
  "vv-dialog": !0,
963
- "vv-dialog--small": t.size === N.small,
964
- "vv-dialog--fullscreen": t.size === N.fullscreen
965
- })), u = p(() => `vv-dialog--${t.transition}`), d = {
979
+ "vv-dialog--small": t.size === F.small,
980
+ "vv-dialog--fullscreen": t.size === F.fullscreen
981
+ })), c = v(() => `vv-dialog--${t.transition}`), u = {
966
982
  "after-enter": () => {
967
983
  o.value = !0, e("open");
968
984
  },
@@ -970,49 +986,49 @@ const k0 = ["textContent"], u0 = { class: "vv-input-checkbox-group__wrapper" },
970
986
  o.value = !1, e("close");
971
987
  }
972
988
  };
973
- H1(i, () => {
989
+ j1(i, () => {
974
990
  t.autoClose && (l.value = !1);
975
991
  });
976
- function h() {
992
+ function s() {
977
993
  l.value = !1;
978
994
  }
979
- return (n, s) => (f(), O(C1, S({ name: m(u) }, y1(d)), {
980
- default: X(() => [
981
- M1(A("dialog", S(m(a), { class: m(c) }), [
995
+ return (n, k) => (f(), O(y1, S({ name: g(c) }, M1(u)), {
996
+ default: Y(() => [
997
+ w1(A("dialog", S(g(a), { class: g(h) }), [
982
998
  A("article", {
983
999
  ref_key: "modalWrapper",
984
1000
  ref: i,
985
1001
  class: "vv-dialog__wrapper"
986
1002
  }, [
987
- n.$slots.header || n.title ? (f(), M("header", p0, [
1003
+ n.$slots.header || n.title ? (f(), M("header", f0, [
988
1004
  w(n.$slots, "header", {}, () => [
989
1005
  D(V(n.title) + " ", 1),
990
1006
  A("button", {
991
1007
  type: "button",
992
1008
  "aria-label": "Close",
993
1009
  class: "vv-dialog__close",
994
- onClick: w1(h, ["prevent"])
1010
+ onClick: b1(s, ["prevent"])
995
1011
  }, [
996
- n1(J, { name: "close" })
997
- ], 8, f0)
1012
+ n1(X, { name: "close" })
1013
+ ], 8, v0)
998
1014
  ])
999
1015
  ])) : H("", !0),
1000
- A("div", v0, [
1016
+ A("div", C0, [
1001
1017
  w(n.$slots, "default")
1002
1018
  ]),
1003
- n.$slots.footer ? (f(), M("footer", C0, [
1019
+ n.$slots.footer ? (f(), M("footer", y0, [
1004
1020
  w(n.$slots, "footer")
1005
1021
  ])) : H("", !0)
1006
1022
  ], 512)
1007
1023
  ], 16), [
1008
- [b1, m(l)]
1024
+ [x1, g(l)]
1009
1025
  ])
1010
1026
  ]),
1011
1027
  _: 3
1012
1028
  }, 16, ["name"]));
1013
1029
  }
1014
- }), y0 = {
1015
- ...F1,
1030
+ }), M0 = {
1031
+ ...K1,
1016
1032
  ...k1,
1017
1033
  modelValue: [String, Array, Object],
1018
1034
  labelNoResult: { type: String, default: "No results" },
@@ -1025,70 +1041,70 @@ const k0 = ["textContent"], u0 = { class: "vv-input-checkbox-group__wrapper" },
1025
1041
  maxValues: [Number, String],
1026
1042
  labelKey: { type: String, default: "label" },
1027
1043
  valueKey: { type: String, default: "value" }
1028
- }, M0 = { key: 0 }, w0 = ["for"], b0 = ["id", "type", "value", "checked", "disabled"], T0 = /* @__PURE__ */ j({
1044
+ }, w0 = { key: 0 }, b0 = ["for"], x0 = ["id", "type", "value", "checked", "disabled"], W0 = /* @__PURE__ */ j({
1029
1045
  __name: "VvDropdown",
1030
- props: y0,
1046
+ props: M0,
1031
1047
  emits: ["update:modelValue"],
1032
1048
  setup(r, { emit: e }) {
1033
- const t = r, l = Y(), { modifiers: o, disabled: i } = L(t), { bemCssClasses: a } = _("vv-dropdown", {
1049
+ const t = r, l = r1(), { modifiers: o, disabled: i } = L(t), { bemCssClasses: a } = _("vv-dropdown", {
1034
1050
  modifiers: o,
1035
1051
  disabled: i
1036
1052
  });
1037
- function c(n) {
1038
- return Array.isArray(t.modelValue) ? C.contains(n, t.modelValue) || C.contains(u(n), t.modelValue) : C.equals(n, t.modelValue) || C.equals(u(n), t.modelValue);
1053
+ function h(n) {
1054
+ return Array.isArray(t.modelValue) ? C.contains(n, t.modelValue) || C.contains(c(n), t.modelValue) : C.equals(n, t.modelValue) || C.equals(c(n), t.modelValue);
1039
1055
  }
1040
- function u(n) {
1056
+ function c(n) {
1041
1057
  return typeof n == "string" ? n : String(n[t.valueKey]);
1042
1058
  }
1043
- function d(n) {
1059
+ function u(n) {
1044
1060
  return typeof n == "string" ? n : n[t.labelKey];
1045
1061
  }
1046
- function h(n) {
1047
- var g, y;
1048
- const s = n.target;
1049
- let k = s.value;
1050
- if (k = (t.useObject ? (g = t.options) == null ? void 0 : g.find(
1051
- (x) => x[t.valueKey] == k
1052
- ) : null) || k, t.multiple) {
1053
- if (typeof t.maxValues < "u" && t.maxValues >= 0 && ((y = t.modelValue) == null ? void 0 : y.length) >= t.maxValues && (Array.isArray(t.modelValue) && !C.contains(k, t.modelValue) || t.maxValues == 0)) {
1054
- s.checked = !1;
1062
+ function s(n) {
1063
+ var m, y;
1064
+ const k = n.target;
1065
+ let d = k.value;
1066
+ if (d = (t.useObject ? (m = t.options) == null ? void 0 : m.find(
1067
+ (x) => x[t.valueKey] == d
1068
+ ) : null) || d, t.multiple) {
1069
+ if (typeof t.maxValues < "u" && t.maxValues >= 0 && ((y = t.modelValue) == null ? void 0 : y.length) >= t.maxValues && (Array.isArray(t.modelValue) && !C.contains(d, t.modelValue) || t.maxValues == 0)) {
1070
+ k.checked = !1;
1055
1071
  return;
1056
1072
  }
1057
- Array.isArray(t.modelValue) ? k = C.contains(k, t.modelValue) ? C.removeFromList(k, t.modelValue) : [...t.modelValue, k] : k = [k];
1073
+ Array.isArray(t.modelValue) ? d = C.contains(d, t.modelValue) ? C.removeFromList(d, t.modelValue) : [...t.modelValue, d] : d = [d];
1058
1074
  }
1059
- e("update:modelValue", k);
1075
+ e("update:modelValue", d);
1060
1076
  }
1061
- return (n, s) => {
1062
- var k;
1077
+ return (n, k) => {
1078
+ var d;
1063
1079
  return f(), M("ul", {
1064
- class: I(m(a)),
1080
+ class: I(g(a)),
1065
1081
  role: "listbox"
1066
1082
  }, [
1067
- (k = n.options) != null && k.length ? H("", !0) : (f(), M("li", M0, [
1083
+ (d = n.options) != null && d.length ? H("", !0) : (f(), M("li", w0, [
1068
1084
  A("label", null, V(n.labelNoResult), 1)
1069
1085
  ])),
1070
- (f(!0), M(R, null, U(n.options, (v, g) => {
1086
+ (f(!0), M(E, null, K(n.options, (p, m) => {
1071
1087
  var y;
1072
- return f(), M("li", { key: g }, [
1088
+ return f(), M("li", { key: m }, [
1073
1089
  A("label", {
1074
- for: `dropdown-${g}-${m(l)}`
1090
+ for: `dropdown-${m}-${g(l)}`
1075
1091
  }, [
1076
1092
  A("input", {
1077
- id: `dropdown-${g}-${m(l)}`,
1093
+ id: `dropdown-${m}-${g(l)}`,
1078
1094
  type: n.multiple ? "checkbox" : "radio",
1079
- value: u(v),
1080
- checked: c(v),
1081
- disabled: typeof v == "object" ? (y = v.disabled) != null ? y : m(i) : m(i),
1082
- onInput: h
1083
- }, null, 40, b0),
1084
- D(" " + V(d(v)), 1)
1085
- ], 8, w0)
1095
+ value: c(p),
1096
+ checked: h(p),
1097
+ disabled: typeof p == "object" ? (y = p.disabled) != null ? y : g(i) : g(i),
1098
+ onInput: s
1099
+ }, null, 40, x0),
1100
+ D(" " + V(u(p)), 1)
1101
+ ], 8, b0)
1086
1102
  ]);
1087
1103
  }), 128))
1088
1104
  ], 2);
1089
1105
  };
1090
1106
  }
1091
- }), x0 = "simple", Z0 = 1668073484, A0 = {
1107
+ }), Z0 = "simple", A0 = 1668188662, H0 = {
1092
1108
  add: {
1093
1109
  body: '<path fill="none" stroke="currentColor" stroke-linecap="round" d="M.5 8h15M8 .5v15"/>'
1094
1110
  },
@@ -1751,11 +1767,11 @@ const k0 = ["textContent"], u0 = { class: "vv-input-checkbox-group__wrapper" },
1751
1767
  "zoom-out": {
1752
1768
  body: '<g stroke="currentColor" stroke-miterlimit="10"><path fill="currentColor" stroke-linecap="round" d="m9 9 6 6"/><g fill="none"><circle cx="5.5" cy="5.5" r="5.5" stroke="none"/><circle cx="5.5" cy="5.5" r="5"/></g></g><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" d="M2.5 5.5h6"/>'
1753
1769
  }
1754
- }, W0 = {
1755
- prefix: x0,
1756
- lastModified: Z0,
1757
- icons: A0
1758
- }, H0 = "normal", V0 = 1668073484, j0 = {
1770
+ }, J0 = {
1771
+ prefix: Z0,
1772
+ lastModified: A0,
1773
+ icons: H0
1774
+ }, V0 = "normal", j0 = 1668188662, L0 = {
1759
1775
  add: {
1760
1776
  body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M4 12h16m-8-8v16"/>'
1761
1777
  },
@@ -2355,13 +2371,13 @@ const k0 = ["textContent"], u0 = { class: "vv-input-checkbox-group__wrapper" },
2355
2371
  "zoom-out": {
2356
2372
  body: '<g stroke="currentColor" stroke-miterlimit="10" stroke-width="2"><path fill="currentColor" stroke-linecap="round" d="m15 15 6 6"/><g fill="none" transform="translate(3 3)"><circle cx="7" cy="7" r="7" stroke="none"/><circle cx="7" cy="7" r="6"/></g><path fill="none" stroke-linecap="round" d="M8 10h4"/></g>'
2357
2373
  }
2358
- }, L0 = 24, _0 = 24, J0 = {
2359
- prefix: H0,
2360
- lastModified: V0,
2361
- icons: j0,
2362
- width: L0,
2363
- height: _0
2364
- }, S0 = "detailed", $0 = 1668073484, B0 = {
2374
+ }, _0 = 24, S0 = 24, X0 = {
2375
+ prefix: V0,
2376
+ lastModified: j0,
2377
+ icons: L0,
2378
+ width: _0,
2379
+ height: S0
2380
+ }, $0 = "detailed", B0 = 1668188662, z0 = {
2365
2381
  add: {
2366
2382
  body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M4 15.999h24m-12-12v24"/>'
2367
2383
  },
@@ -2959,27 +2975,27 @@ const k0 = ["textContent"], u0 = { class: "vv-input-checkbox-group__wrapper" },
2959
2975
  "zoom-out": {
2960
2976
  body: '<g stroke="currentColor" stroke-miterlimit="10" stroke-width="2"><path fill="currentColor" stroke-linecap="round" d="m18 18 10 10"/><g fill="none" transform="translate(3 3)"><circle cx="9" cy="9" r="9" stroke="none"/><circle cx="9" cy="9" r="8"/></g></g><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M9 11.999h6"/>'
2961
2977
  }
2962
- }, z0 = 32, O0 = 32, X0 = {
2963
- prefix: S0,
2964
- lastModified: $0,
2965
- icons: B0,
2966
- width: z0,
2967
- height: O0
2978
+ }, O0 = 32, D0 = 32, Y0 = {
2979
+ prefix: $0,
2980
+ lastModified: B0,
2981
+ icons: z0,
2982
+ width: O0,
2983
+ height: D0
2968
2984
  };
2969
2985
  export {
2970
- E1 as VvAccordion,
2971
- N0 as VvAccordionGroup,
2986
+ N1 as VvAccordion,
2987
+ F0 as VvAccordionGroup,
2972
2988
  E0 as VvBadge,
2973
- F0 as VvBreadcrumb,
2974
- P0 as VvButton,
2975
- R0 as VvButtonGroup,
2976
- U0 as VvCard,
2977
- a0 as VvCheck,
2978
- K0 as VvCheckGroup,
2979
- Q0 as VvDialog,
2980
- T0 as VvDropdown,
2981
- J as VvIcon,
2982
- X0 as iconsDetailed,
2983
- J0 as iconsNormal,
2984
- W0 as iconsSimple
2989
+ U0 as VvBreadcrumb,
2990
+ R0 as VvButton,
2991
+ N0 as VvButtonGroup,
2992
+ K0 as VvCard,
2993
+ c0 as VvCheck,
2994
+ Q0 as VvCheckGroup,
2995
+ T0 as VvDialog,
2996
+ W0 as VvDropdown,
2997
+ X as VvIcon,
2998
+ Y0 as iconsDetailed,
2999
+ X0 as iconsNormal,
3000
+ J0 as iconsSimple
2985
3001
  };