@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
@@ -1,137 +1,145 @@
1
- import { computed as f, unref as a, defineComponent as J, ref as x, toRefs as V, inject as Ce, openBlock as I, createBlock as K, mergeProps as D, createCommentVNode as $, h as be, watch as Q, useSlots as we, useAttrs as De, onMounted as xe, createElementBlock as w, toDisplayString as Ne, createElementVNode as b, renderSlot as G, normalizeProps as X, createVNode as R, withDirectives as Re, vModelDynamic as Be, guardReactiveProps as ke, withModifiers as B } from "vue";
2
- import { iconExists as k, Icon as Fe, addIcon as $e } from "@iconify/vue";
3
- import { useFocus as He, refDebounced as Me } from "@vueuse/core";
4
- const E = {
5
- equals(e, t, n) {
6
- return n ? this.resolveFieldData(e, n) === this.resolveFieldData(t, n) : this.deepEquals(e, t);
1
+ import { computed as d, unref as i, defineComponent as L, ref as C, toRefs as U, inject as ve, openBlock as O, createBlock as k, mergeProps as $, createCommentVNode as x, h as P, watch as re, useSlots as ge, useAttrs as ye, onMounted as he, createElementBlock as N, toDisplayString as J, createElementVNode as K, renderSlot as M, normalizeProps as Q, createVNode as V, withDirectives as Se, isRef as Ae, vModelDynamic as be, guardReactiveProps as Ee, createTextVNode as Ie } from "vue";
2
+ import { iconExists as j, Icon as Oe, addIcon as Pe } from "@iconify/vue";
3
+ import { toReactive as Te, useFocus as _e, refDebounced as xe, isString as ee } from "@vueuse/core";
4
+ const A = {
5
+ equals(t, n, e) {
6
+ return e ? this.resolveFieldData(t, e) === this.resolveFieldData(n, e) : this.deepEquals(t, n);
7
7
  },
8
- deepEquals(e, t) {
9
- if (e === t)
8
+ deepEquals(t, n) {
9
+ if (t === n)
10
10
  return !0;
11
- if (e && t && typeof e == "object" && typeof t == "object") {
12
- const n = Array.isArray(e), o = Array.isArray(t);
13
- let r, i, u;
14
- if (n && o) {
15
- if (i = e.length, i != t.length)
11
+ if (t && n && typeof t == "object" && typeof n == "object") {
12
+ const e = Array.isArray(t), o = Array.isArray(n);
13
+ let r, s, a;
14
+ if (e && o) {
15
+ if (s = t.length, s != n.length)
16
16
  return !1;
17
- for (r = i; r-- !== 0; )
18
- if (!this.deepEquals(e[r], t[r]))
17
+ for (r = s; r-- !== 0; )
18
+ if (!this.deepEquals(t[r], n[r]))
19
19
  return !1;
20
20
  return !0;
21
21
  }
22
- if (n != o)
22
+ if (e != o)
23
23
  return !1;
24
- const s = e instanceof Date, v = t instanceof Date;
25
- if (s != v)
24
+ const p = t instanceof Date, u = n instanceof Date;
25
+ if (p != u)
26
26
  return !1;
27
- if (s && v)
28
- return e.getTime() == t.getTime();
29
- const m = e instanceof RegExp, l = t instanceof RegExp;
30
- if (m != l)
27
+ if (p && u)
28
+ return t.getTime() == n.getTime();
29
+ const S = t instanceof RegExp, l = n instanceof RegExp;
30
+ if (S != l)
31
31
  return !1;
32
- if (m && l)
33
- return e.toString() == t.toString();
34
- const c = Object.keys(e);
35
- if (i = c.length, i !== Object.keys(t).length)
32
+ if (S && l)
33
+ return t.toString() == n.toString();
34
+ const c = Object.keys(t);
35
+ if (s = c.length, s !== Object.keys(n).length)
36
36
  return !1;
37
- for (r = i; r-- !== 0; )
38
- if (!Object.prototype.hasOwnProperty.call(t, c[r]))
37
+ for (r = s; r-- !== 0; )
38
+ if (!Object.prototype.hasOwnProperty.call(n, c[r]))
39
39
  return !1;
40
- for (r = i; r-- !== 0; )
41
- if (u = c[r], !this.deepEquals(e[u], t[u]))
40
+ for (r = s; r-- !== 0; )
41
+ if (a = c[r], !this.deepEquals(t[a], n[a]))
42
42
  return !1;
43
43
  return !0;
44
44
  }
45
- return e !== e && t !== t;
45
+ return t !== t && n !== n;
46
46
  },
47
- resolveFieldData(e, t) {
48
- if (e && Object.keys(e).length && t) {
49
- if (t.indexOf(".") === -1)
50
- return e[t];
47
+ resolveFieldData(t, n) {
48
+ if (t && Object.keys(t).length && n) {
49
+ if (n.indexOf(".") === -1)
50
+ return t[n];
51
51
  {
52
- const n = t.split(".");
53
- let o = e;
54
- for (let r = 0, i = n.length; r < i; ++r) {
55
- if (e == null)
52
+ const e = n.split(".");
53
+ let o = t;
54
+ for (let r = 0, s = e.length; r < s; ++r) {
55
+ if (t == null)
56
56
  return null;
57
- o = o[n[r]];
57
+ o = o[e[r]];
58
58
  }
59
59
  return o;
60
60
  }
61
61
  } else
62
62
  return null;
63
63
  },
64
- isFunction(e) {
65
- return !!(e && e.constructor && e.call && e.apply);
64
+ isFunction(t) {
65
+ return !!(t && t.constructor && t.call && t.apply);
66
66
  },
67
- findIndexInList(e, t) {
68
- let n = -1;
69
- if (t) {
70
- for (let o = 0; o < t.length; o++)
71
- if (this.equals(t[o], e)) {
72
- n = o;
67
+ findIndexInList(t, n) {
68
+ let e = -1;
69
+ if (n) {
70
+ for (let o = 0; o < n.length; o++)
71
+ if (this.equals(n[o], t)) {
72
+ e = o;
73
73
  break;
74
74
  }
75
75
  }
76
- return n;
76
+ return e;
77
77
  },
78
- contains(e, t) {
79
- if (e != null && t && t.length) {
80
- for (const n of t)
81
- if (this.equals(e, n))
78
+ contains(t, n) {
79
+ if (t != null && n && n.length) {
80
+ for (const e of n)
81
+ if (this.equals(t, e))
82
82
  return !0;
83
83
  }
84
84
  return !1;
85
85
  },
86
- isEmpty(e) {
87
- return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
86
+ isEmpty(t) {
87
+ return t == null || t === "" || Array.isArray(t) && t.length === 0 || !(t instanceof Date) && typeof t == "object" && Object.keys(t).length === 0;
88
88
  },
89
- isNotEmpty(e) {
90
- return !this.isEmpty(e);
89
+ isNotEmpty(t) {
90
+ return !this.isEmpty(t);
91
91
  },
92
- pickBy(e, t) {
92
+ pickBy(t, n) {
93
93
  return Object.fromEntries(
94
- Object.entries(e).filter(([n]) => t(n))
94
+ Object.entries(t).filter(([e]) => n(e))
95
95
  );
96
96
  },
97
- removeFromList(e, t) {
98
- const n = this.findIndexInList(e, t);
99
- return n > -1 ? t.filter((o, r) => r !== n) : t;
97
+ removeFromList(t, n) {
98
+ const e = this.findIndexInList(t, n);
99
+ return e > -1 ? n.filter((o, r) => r !== e) : n;
100
100
  },
101
- isString(e) {
102
- return typeof e == "string" || e instanceof String;
101
+ isString(t) {
102
+ return typeof t == "string" || t instanceof String;
103
103
  },
104
- propsToObject(e) {
105
- return Object.keys(e).reduce((t, n) => {
106
- var o, r, i, u, s;
107
- return this.isFunction(e[n]) ? t[n] = e[n]() : Array.isArray(e[n]) ? t[n] = e[n][0]() : (o = e[n]) != null && o.type && (Array.isArray(e[n].type) ? t[n] = ((r = e[n]) == null ? void 0 : r.default) || ((i = e[n]) == null ? void 0 : i.type[0]()) : t[n] = ((u = e[n]) == null ? void 0 : u.default) || ((s = e[n]) == null ? void 0 : s.type())), t;
104
+ propsToObject(t) {
105
+ return Object.keys(t).reduce((n, e) => {
106
+ var o, r, s, a, p;
107
+ return this.isFunction(t[e]) ? n[e] = t[e]() : Array.isArray(t[e]) ? n[e] = t[e][0]() : (o = t[e]) != null && o.type && (Array.isArray(t[e].type) ? n[e] = ((r = t[e]) == null ? void 0 : r.default) || ((s = t[e]) == null ? void 0 : s.type[0]()) : n[e] = ((a = t[e]) == null ? void 0 : a.default) || ((p = t[e]) == null ? void 0 : p.type())), n;
108
108
  }, {});
109
109
  },
110
- filterArray(e, t, n) {
111
- return e.filter((o) => t.some((r) => typeof r == "string" ? o[n] == r : this.equals(
112
- o[n],
113
- r[n]
110
+ filterArray(t, n, e) {
111
+ return t.filter((o) => n.some((r) => typeof r == "string" ? o[e] == r : this.equals(
112
+ o[e],
113
+ r[e]
114
114
  )));
115
115
  },
116
- kebabCase(e) {
117
- var t, n;
118
- if (e)
119
- return (n = (t = e.match(
116
+ kebabCase(t) {
117
+ var n, e;
118
+ if (t)
119
+ return (e = (n = t.match(
120
120
  /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
121
- )) == null ? void 0 : t.join("-")) == null ? void 0 : n.toLowerCase();
121
+ )) == null ? void 0 : n.join("-")) == null ? void 0 : e.toLowerCase();
122
122
  }
123
- }, Ve = {
123
+ }, De = {
124
124
  valid: Boolean,
125
125
  validLabel: [String, Array]
126
- }, Ye = {
126
+ }, Ce = {
127
127
  error: Boolean,
128
128
  errorLabel: [String, Array]
129
- }, je = {
129
+ }, we = {
130
130
  loading: Boolean,
131
131
  loadingLabel: String
132
- }, qe = {
132
+ }, Re = {
133
+ modifiers: [String, Array]
134
+ }, Ne = {
133
135
  hintLabel: { type: String, default: "" }
134
- }, H = {
136
+ }, Be = {
137
+ limit: {
138
+ type: [Boolean, String],
139
+ default: !1,
140
+ validator: (t) => [!0, !1, "countdown"].includes(t)
141
+ }
142
+ }, w = {
135
143
  TEXT: "text",
136
144
  PASSWORD: "password",
137
145
  DATE: "date",
@@ -144,30 +152,32 @@ const E = {
144
152
  COLOR: "color",
145
153
  SEARCH: "search",
146
154
  FILE: "file"
147
- }, M = {
155
+ }, H = {
148
156
  LEFT: "left",
149
157
  RIGHT: "right"
150
- }, Ue = {
158
+ }, q = {
151
159
  PASSWORD_ON: "eye-on",
152
160
  PASSWORD_OFF: "eye-off",
153
161
  DATE: "calendar",
154
162
  TIME: "time",
155
163
  COLOR: "color",
156
164
  SEARCH: "search"
157
- }, S = {
158
- TYPES: H,
159
- ICON_POSITIONS: M,
160
- TYPES_ICON: Ue
161
- }, We = ["update:modelValue", "focus", "blur"], Le = {
162
- ...Ve,
163
- ...Ye,
164
- ...qe,
165
- ...je,
165
+ }, h = {
166
+ TYPES: w,
167
+ ICON_POSITIONS: H,
168
+ TYPES_ICON: q
169
+ }, ke = ["update:modelValue", "focus", "blur"], $e = {
170
+ ...De,
171
+ ...Ce,
172
+ ...Ne,
173
+ ...we,
174
+ ...Re,
175
+ ...Be,
166
176
  modelValue: null,
167
177
  type: {
168
178
  type: String,
169
- default: H.TEXT,
170
- validator: (e) => Object.values(H).includes(e)
179
+ default: w.TEXT,
180
+ validator: (t) => Object.values(w).includes(t)
171
181
  },
172
182
  id: String,
173
183
  name: { type: String, required: !0 },
@@ -185,12 +195,13 @@ const E = {
185
195
  icon: { type: String, default: "" },
186
196
  iconPosition: {
187
197
  type: String,
188
- validation: (e) => Object.values(M).includes(e),
189
- default: M.RIGHT
198
+ validation: (t) => Object.values(H).includes(t),
199
+ default: H.RIGHT
190
200
  },
191
201
  floating: Boolean,
192
- debounce: Number
193
- }, ze = {
202
+ debounce: Number,
203
+ autoclear: Boolean
204
+ }, Le = {
194
205
  color: String,
195
206
  width: {
196
207
  type: [String, Number]
@@ -222,22 +233,22 @@ const E = {
222
233
  type: [String, Array]
223
234
  }
224
235
  };
225
- function ee(e, t) {
226
- const n = { [`${e}`]: !0 };
236
+ function Fe(t, n) {
237
+ const e = { [`${t}`]: !0 };
227
238
  return {
228
- bemCssClasses: f(() => Object.keys(t).reduce((r, i) => {
229
- const u = a(t[i]) || !1;
230
- if (!u)
239
+ bemCssClasses: d(() => Object.keys(n).reduce((r, s) => {
240
+ const a = i(n[s]) || !1;
241
+ if (!a)
231
242
  return r;
232
- if (i === "modifiers") {
233
- const s = Array.isArray(u) ? u : [u];
243
+ if (s === "modifiers") {
244
+ const p = Array.isArray(a) ? a : [a];
234
245
  return {
235
246
  ...r,
236
- ...s.reduce(
237
- (v, m) => ({
238
- ...v,
239
- [`${e}--${E.kebabCase(
240
- m
247
+ ...p.reduce(
248
+ (u, S) => ({
249
+ ...u,
250
+ [`${t}--${A.kebabCase(
251
+ S
241
252
  )}`]: !0
242
253
  }),
243
254
  {}
@@ -246,351 +257,469 @@ function ee(e, t) {
246
257
  } else
247
258
  return {
248
259
  ...r,
249
- [`${e}--${E.kebabCase(i)}`]: u
260
+ [`${t}--${A.kebabCase(s)}`]: a
250
261
  };
251
- }, n) || {})
262
+ }, e) || {})
252
263
  };
253
264
  }
254
- const F = /* @__PURE__ */ J({
265
+ function Me(t, n) {
266
+ const e = { [`${t}`]: !0 };
267
+ return Object.keys(n).reduce((o, r) => {
268
+ const s = i(n[r]) || !1;
269
+ if (!s)
270
+ return o;
271
+ if (r === "modifiers") {
272
+ const a = Array.isArray(s) ? s : [s];
273
+ return {
274
+ ...o,
275
+ ...a.reduce(
276
+ (p, u) => ({
277
+ ...p,
278
+ [`${t}--${A.kebabCase(
279
+ u
280
+ )}`]: !0
281
+ }),
282
+ {}
283
+ )
284
+ };
285
+ } else
286
+ return {
287
+ ...o,
288
+ [`${t}--${A.kebabCase(r)}`]: s
289
+ };
290
+ }, e) || {};
291
+ }
292
+ const T = /* @__PURE__ */ L({
255
293
  __name: "VvIcon",
256
- props: ze,
257
- setup(e) {
258
- const t = e, n = x(!0), { modifiers: o } = V(t), r = Ce("ds"), { bemCssClasses: i } = ee("vv-icon", {
294
+ props: Le,
295
+ setup(t) {
296
+ const n = t, e = C(!0), { modifiers: o } = U(n), r = ve("ds"), { bemCssClasses: s } = Fe("vv-icon", {
259
297
  modifiers: o
260
- }), u = f(() => t.provider || (r == null ? void 0 : r.provider)), s = f(() => {
261
- const l = t.name || "", c = `@${u.value}:${t.prefix}:${t.name}`;
262
- return k(l) ? l : k(c) ? c : (r == null ? void 0 : r.iconsCollections.find((d) => {
263
- const y = `@${u.value}:${d.prefix}:${l}`;
264
- if (k(y))
265
- return y;
298
+ }), a = d(() => n.provider || (r == null ? void 0 : r.provider)), p = d(() => {
299
+ const l = n.name || "", c = `@${a.value}:${n.prefix}:${n.name}`;
300
+ return j(l) ? l : j(c) ? c : (r == null ? void 0 : r.iconsCollections.find((v) => {
301
+ const f = `@${a.value}:${v.prefix}:${l}`;
302
+ if (j(f))
303
+ return f;
266
304
  })) || l;
267
305
  });
268
- function v(l) {
306
+ function u(l) {
269
307
  let c = null;
270
308
  if (typeof window > "u") {
271
- const { JSDOM: T } = require("jsdom");
272
- c = new T().window;
309
+ const { JSDOM: E } = require("jsdom");
310
+ c = new E().window;
273
311
  }
274
312
  return (c ? new c.DOMParser() : new window.DOMParser()).parseFromString(l, "text/html").querySelector("svg");
275
313
  }
276
- function m(l) {
277
- const c = v(l), d = (c == null ? void 0 : c.innerHTML.trim()) || "";
278
- c && d && $e(`@${u.value}:${t.prefix}:${t.name}`, {
279
- body: d,
314
+ function S(l) {
315
+ const c = u(l), v = (c == null ? void 0 : c.innerHTML.trim()) || "";
316
+ c && v && Pe(`@${a.value}:${n.prefix}:${n.name}`, {
317
+ body: v,
280
318
  height: c.viewBox.baseVal.height,
281
319
  width: c.viewBox.baseVal.width
282
320
  });
283
321
  }
284
- return r && (t.src ? (n.value = !1, r.fetchIcon(t.src).then((l) => {
285
- l && (m(l), n.value = !0);
322
+ return r && (n.src ? (e.value = !1, r.fetchIcon(n.src).then((l) => {
323
+ l && (S(l), e.value = !0);
286
324
  }).catch((l) => {
287
325
  throw new Error(`During fetch icon: ${l == null ? void 0 : l.message}`);
288
- })) : t.svg && m(t.svg)), (l, c) => n.value ? (I(), K(a(Fe), D({
326
+ })) : n.svg && S(n.svg)), (l, c) => e.value ? (O(), k(i(Oe), $({
289
327
  key: 0,
290
- class: a(i)
328
+ class: i(s)
291
329
  }, {
292
330
  ...l.$props,
293
- provider: a(u),
294
- icon: a(s)
295
- }), null, 16, ["class"])) : $("", !0);
331
+ provider: i(a),
332
+ icon: i(p)
333
+ }), null, 16, ["class"])) : x("", !0);
296
334
  }
297
335
  });
298
- function Ze(e) {
299
- return Array.isArray(e) ? e.filter((t) => E.isString(t)).reduce((t, n) => t.length > 0 ? t + `
300
- ` + n : n, "") : e;
336
+ function B(t) {
337
+ return Array.isArray(t) ? t.filter((n) => A.isString(n)).reduce((n, e) => n.length > 0 ? n + `
338
+ ` + e : e, "") : t;
301
339
  }
302
- function Ge(e, t) {
340
+ function Ve(t, n) {
303
341
  return {
304
342
  name: "HintSlot",
305
- setup() {
306
- const n = V(e), {
307
- error: o,
308
- valid: r,
309
- hint: i,
310
- loading: u
311
- } = t, {
312
- hintLabel: s,
313
- modelValue: v,
314
- valid: m,
315
- validLabel: l,
316
- error: c,
317
- errorLabel: d
318
- } = n, y = E.resolveFieldData(n, "loading"), P = E.resolveFieldData(
319
- n,
343
+ props: {
344
+ params: { type: Object, default: () => {
345
+ } }
346
+ },
347
+ setup(e) {
348
+ const o = U(t), {
349
+ error: r,
350
+ valid: s,
351
+ hint: a,
352
+ loading: p
353
+ } = n, {
354
+ hintLabel: u,
355
+ modelValue: S,
356
+ valid: l,
357
+ validLabel: c,
358
+ error: v,
359
+ errorLabel: f
360
+ } = o, g = A.resolveFieldData(o, "loading"), E = A.resolveFieldData(
361
+ o,
320
362
  "loadingLabel"
321
- ), T = f(() => c.value ? !!(c.value && o || (d == null ? void 0 : d.value) && Array.isArray(d.value) && d.value.length > 0 || (d == null ? void 0 : d.value) && E.isNotEmpty(d.value)) : !1), A = f(() => !!(s && s.value || i || r || l && l.value || T.value || (y == null ? void 0 : y.value) && u || (y == null ? void 0 : y.value) && (P == null ? void 0 : P.value))), O = f(() => Array.isArray(d == null ? void 0 : d.value) ? Ze((d == null ? void 0 : d.value) || "") : d == null ? void 0 : d.value), C = f(() => {
322
- const _ = { modelValue: v, error: c, valid: m };
323
- return c != null && c.value ? (o == null ? void 0 : o(_)) || (O == null ? void 0 : O.value) || (s == null ? void 0 : s.value) : m != null && m.value ? (r == null ? void 0 : r(_)) || (l == null ? void 0 : l.value) || (s == null ? void 0 : s.value) : y != null && y.value ? (u == null ? void 0 : u(_)) || (P == null ? void 0 : P.value) || (s == null ? void 0 : s.value) : (i == null ? void 0 : i(_)) || (s == null ? void 0 : s.value) || (s == null ? void 0 : s.value);
363
+ ), I = d(() => v.value ? !!(v.value && r || (f == null ? void 0 : f.value) && Array.isArray(f.value) && f.value.length > 0 || (f == null ? void 0 : f.value) && A.isNotEmpty(f.value)) : !1), D = d(() => !!(u && u.value || a || s || c && c.value || I.value || (g == null ? void 0 : g.value) && p || (g == null ? void 0 : g.value) && (E == null ? void 0 : E.value))), R = d(() => {
364
+ const _ = Te({
365
+ hintLabel: u,
366
+ modelValue: S,
367
+ valid: l,
368
+ validLabel: c,
369
+ error: v,
370
+ errorLabel: f,
371
+ loading: g,
372
+ loadingLabel: E,
373
+ ...e.params
374
+ });
375
+ return v != null && v.value ? (r == null ? void 0 : r(_)) || B(f == null ? void 0 : f.value) || (u == null ? void 0 : u.value) : l != null && l.value ? (s == null ? void 0 : s(_)) || B(c == null ? void 0 : c.value) || (u == null ? void 0 : u.value) : g != null && g.value ? (p == null ? void 0 : p(_)) || B(E == null ? void 0 : E.value) || (u == null ? void 0 : u.value) : (a == null ? void 0 : a(_)) || B(u == null ? void 0 : u.value) || (u == null ? void 0 : u.value);
324
376
  });
325
377
  return {
326
- hasHint: A,
327
- hintContent: C
378
+ hasHint: D,
379
+ hintContent: R
328
380
  };
329
381
  },
330
382
  render() {
331
383
  if (this.hasHint)
332
- return be("span", null, this.hintContent);
384
+ return P(
385
+ "pre",
386
+ { style: { "white-space": "pre" } },
387
+ this.hintContent
388
+ );
333
389
  }
334
390
  };
335
391
  }
336
- function Xe(e) {
337
- const { type: t, disabled: n, readonly: o } = e, r = x(!0), i = f(() => t.value === S.TYPES.PASSWORD), u = f(() => !r.value), s = f(
338
- () => u.value ? S.TYPES_ICON.PASSWORD_OFF : S.TYPES_ICON.PASSWORD_ON
339
- );
340
- function v() {
341
- !n.value && !o.value && (r.value = !r.value);
342
- }
343
- return {
344
- isPassword: i,
345
- isPasswordVisible: u,
346
- passwordButtonIcon: s,
347
- toggleShowHidePassword: v
348
- };
349
- }
350
- function Je(e, t) {
351
- const { type: n, disabled: o, readonly: r, inputTemplateRef: i } = t, u = f(() => n.value === S.TYPES.NUMBER);
352
- function s() {
353
- !o.value && !r.value && (i.value.stepUp(), e.value = a(i.value).value);
392
+ const te = L({
393
+ components: {
394
+ VvIcon: T
395
+ },
396
+ props: {
397
+ disabled: Boolean
398
+ },
399
+ setup(t, { emit: n }) {
400
+ const e = C(!1), o = d(
401
+ () => e.value ? q.PASSWORD_OFF : q.PASSWORD_ON
402
+ );
403
+ function r() {
404
+ t.disabled || (e.value = !e.value, n(
405
+ e.value ? "action-password-on" : "action-password-off"
406
+ ));
407
+ }
408
+ return {
409
+ activeIcon: o,
410
+ onClick: r
411
+ };
412
+ },
413
+ render() {
414
+ const t = P(T, { name: this.activeIcon });
415
+ return P(
416
+ "button",
417
+ {
418
+ disabled: this.disabled,
419
+ class: ["vv-input-text__action"],
420
+ onClick: this.onClick
421
+ },
422
+ t
423
+ );
354
424
  }
355
- function v() {
356
- !o.value && !r.value && (i.value.stepDown(), e.value = a(i.value).value);
425
+ }), Y = L({
426
+ components: {
427
+ VvIcon: T
428
+ },
429
+ props: {
430
+ disabled: Boolean,
431
+ mode: {
432
+ type: String,
433
+ validator: (t) => ["up", "down"].includes(t),
434
+ default: "up"
435
+ }
436
+ },
437
+ setup(t, { emit: n }) {
438
+ function e() {
439
+ t.disabled || n(
440
+ t.mode === "up" ? "action-step-up" : "action-step-down"
441
+ );
442
+ }
443
+ return {
444
+ onClick: e
445
+ };
446
+ },
447
+ render() {
448
+ return P("button", {
449
+ class: [
450
+ "vv-input-text__action-chevron",
451
+ this.mode === "up" && "vv-input-text__action-chevron-up"
452
+ ],
453
+ disabled: this.disabled,
454
+ onClick: this.onClick
455
+ });
357
456
  }
457
+ });
458
+ function ne(t, n) {
358
459
  return {
359
- isNumber: u,
360
- stepUp: s,
361
- stepDown: v
460
+ name: "VvInputTextActions",
461
+ components: {
462
+ VvIcon: T,
463
+ VvInputPasswordAction: te,
464
+ VvInputStepAction: Y
465
+ },
466
+ setup() {
467
+ return {
468
+ isDisabled: d(() => n.disabled || n.readonly)
469
+ };
470
+ },
471
+ render() {
472
+ let e = null;
473
+ switch (t) {
474
+ case w.PASSWORD: {
475
+ const { onActionPasswordOn: o, onActionPasswordOff: r } = this.$attrs;
476
+ e = [
477
+ P(te, {
478
+ disabled: this.isDisabled,
479
+ onActionPasswordOn: o,
480
+ onActionPasswordOff: r
481
+ })
482
+ ];
483
+ break;
484
+ }
485
+ case w.NUMBER: {
486
+ const { onActionStepUp: o, onActionStepDown: r } = this.$attrs;
487
+ e = [
488
+ P(Y, {
489
+ mode: "up",
490
+ disabled: this.isDisabled,
491
+ onActionStepUp: o,
492
+ onActionStepDown: r
493
+ }),
494
+ P(Y, {
495
+ mode: "down",
496
+ disabled: this.isDisabled,
497
+ onActionStepUp: o,
498
+ onActionStepDown: r
499
+ })
500
+ ];
501
+ break;
502
+ }
503
+ default: {
504
+ e = null;
505
+ break;
506
+ }
507
+ }
508
+ return Array.isArray(e) ? P("div", { class: "vv-input-text__actions-group" }, e) : e;
509
+ }
362
510
  };
363
511
  }
364
- function Ke(e, t) {
365
- const { icon: n, iconPosition: o } = e, r = f(
366
- () => !!(n.value && o.value === "left" || t.iconLeft)
367
- ), i = f(
368
- () => !!(n.value && o.value === "right" || t.iconRight)
369
- ), u = f(
370
- () => !!(n.value && o.value === "top" || t.iconTop)
371
- ), s = f(
372
- () => !!(n.value && o.value === "bottom" || t.iconBottom)
512
+ function je(t, n, e) {
513
+ const o = d(
514
+ () => !!(t.value && n.value === "left" || e.iconLeft)
515
+ ), r = d(
516
+ () => !!(t.value && n.value === "right" || e.iconRight)
517
+ ), s = d(
518
+ () => !!(t.value && n.value === "top" || e.iconTop)
519
+ ), a = d(
520
+ () => !!(t.value && n.value === "bottom" || e.iconBottom)
373
521
  );
374
522
  return {
375
- icon: n,
376
- iconPosition: o,
377
- hasIconLeft: r,
378
- hasIconRight: i,
379
- hasIconTop: u,
380
- hasIconBottom: s
523
+ hasIconLeft: o,
524
+ hasIconRight: r,
525
+ hasIconTop: s,
526
+ hasIconBottom: a
381
527
  };
382
528
  }
383
- function Qe(e, t) {
384
- const { focused: n } = He(e);
385
- return Q(n, (o) => {
386
- t(o ? "focus" : "blur", e.value);
529
+ function Ye(t, n) {
530
+ const { focused: e } = _e(t);
531
+ return re(e, (o) => {
532
+ n(o ? "focus" : "blur", t.value);
387
533
  }), {
388
- focused: n
534
+ focused: e
389
535
  };
390
536
  }
391
- const et = ["for"], tt = { class: "vv-input-text__wrapper" }, nt = {
392
- key: 0,
393
- class: "vv-input-text__actions-group"
394
- }, rt = ["disabled"], ot = {
395
- key: 1,
396
- class: "vv-input-text__actions-group"
397
- }, st = ["disabled"], it = ["disabled"], ut = {
537
+ function He(t, n, e) {
538
+ const o = C(t == null ? void 0 : t.value), r = xe(
539
+ o,
540
+ n || 0
541
+ );
542
+ return re(r, (s) => e("update:modelValue", s)), o;
543
+ }
544
+ function qe(t, n) {
545
+ const e = d(() => {
546
+ const s = i(t);
547
+ return ee(s) ? s.length : 0;
548
+ }), o = d(() => {
549
+ const s = i(t) || "";
550
+ return !ee(s) || n.mode === !1 ? 0 : n.mode === !0 ? s.length : i(n.upperLimit) - s.length;
551
+ }), r = d(() => n.mode === !1 ? "" : n.mode === !0 && n.upperLimit && n.upperLimit > 0 ? `${o.value}/${i(n.upperLimit)}` : o.value);
552
+ return {
553
+ textLength: e,
554
+ textLimitLength: o,
555
+ formattedTextLimitLength: r
556
+ };
557
+ }
558
+ const Ue = ["for"], We = { class: "vv-input-text__wrapper" }, ze = {
559
+ key: 2,
560
+ class: "vv-input-text__limit"
561
+ }, Ze = {
398
562
  inheritAttrs: !1
399
- }, dt = /* @__PURE__ */ J({
400
- ...ut,
563
+ }, Ke = /* @__PURE__ */ L({
564
+ ...Ze,
401
565
  __name: "VvInputText",
402
- props: Le,
403
- emits: We,
404
- setup(e, { emit: t }) {
405
- const n = e, o = we(), r = De(), i = x(), u = x(n.modelValue), {
406
- disabled: s,
407
- readonly: v,
408
- type: m,
409
- icon: l,
410
- iconPosition: c,
411
- valid: d,
412
- error: y,
413
- loading: P,
414
- floating: T,
415
- label: A,
416
- modelValue: O
417
- } = V(n), C = f(() => s.value || v.value), _ = Me(u, n.debounce || 0);
418
- Q(_, (g) => t("update:modelValue", g));
419
- const te = { icon: l, iconPosition: c }, ne = {
566
+ props: $e,
567
+ emits: ke,
568
+ setup(t, { emit: n }) {
569
+ const e = t, o = ge(), r = ye(), s = C(), { icon: a, iconPosition: p, label: u, modelValue: S, autoclear: l, limit: c } = U(e), v = e.id || e.name, f = `${e.name}-label`, g = `${e.name}-hint`, E = d(
570
+ () => e.floating && A.isEmpty(e.placeholder) ? " " : e.placeholder
571
+ ), I = He(S, e.debounce, n), D = C(!1), R = d(() => e.type === h.TYPES.PASSWORD), _ = d(() => e.type === h.TYPES.NUMBER);
572
+ function oe() {
573
+ const y = e.max;
574
+ !G.value && I.value + 1 <= y && (s.value.stepUp(), I.value = i(s.value).value);
575
+ }
576
+ function se() {
577
+ const y = e.min;
578
+ !G.value && I.value - 1 <= y && (s.value.stepDown(), I.value = i(s.value).value);
579
+ }
580
+ const { hasIconLeft: W, hasIconRight: z } = je(a, p, {
420
581
  iconLeft: o["icon-left"],
421
582
  iconRight: o["icon-right"]
422
- }, { hasIconLeft: Y, hasIconRight: re } = Ke(te, ne), N = f(() => {
423
- if (re.value)
424
- return n.icon;
425
- switch (n.type) {
426
- case S.TYPES.PASSWORD:
427
- return ie.value;
428
- case S.TYPES.COLOR:
429
- return S.TYPES_ICON.COLOR;
430
- case S.TYPES.DATE:
431
- case S.TYPES.DATETIME_LOCAL:
432
- return S.TYPES_ICON.DATE;
433
- case S.TYPES.TIME:
434
- return S.TYPES_ICON.TIME;
435
- case S.TYPES.SEARCH:
436
- return S.TYPES_ICON.SEARCH;
583
+ }), F = d(() => {
584
+ switch (e.type) {
585
+ case h.TYPES.PASSWORD:
586
+ return h.TYPES_ICON.PASSWORD_OFF;
587
+ case h.TYPES.COLOR:
588
+ return h.TYPES_ICON.COLOR;
589
+ case h.TYPES.DATE:
590
+ case h.TYPES.DATETIME_LOCAL:
591
+ return h.TYPES_ICON.DATE;
592
+ case h.TYPES.TIME:
593
+ return h.TYPES_ICON.TIME;
594
+ case h.TYPES.SEARCH:
595
+ return h.TYPES_ICON.SEARCH;
437
596
  default:
438
597
  return "";
439
598
  }
440
- }), oe = {
441
- type: m,
442
- disabled: s,
443
- readonly: v
444
- }, {
445
- isPassword: j,
446
- isPasswordVisible: se,
447
- passwordButtonIcon: ie,
448
- toggleShowHidePassword: q
449
- } = Xe(oe), ue = {
450
- disabled: s,
451
- readonly: v,
452
- type: m,
453
- inputTemplateRef: i
454
- }, { isNumber: ae, stepUp: le, stepDown: ce } = Je(
455
- u,
456
- ue
457
- ), { focused: U } = Qe(i, t), { bemCssClasses: de } = ee("vv-input-text", {
458
- readonly: v,
459
- valid: d,
460
- invalid: y,
461
- loading: P,
462
- iconLeft: Y,
463
- iconRight: f(() => E.isNotEmpty(N.value)),
464
- floating: f(
465
- () => T.value && E.isNotEmpty(A == null ? void 0 : A.value)
466
- ),
467
- dirty: f(() => E.isNotEmpty(O))
468
- }), fe = f(() => {
469
- const { class: g } = r;
470
- return {
471
- class: g,
472
- ...de.value
473
- };
474
- }), pe = f(() => {
475
- const { style: g } = r, p = E.pickBy(
599
+ }), { textLength: ie, formattedTextLimitLength: ae } = qe(I, {
600
+ mode: e.limit,
601
+ upperLimit: e.maxlength || 0
602
+ }), { focused: Z } = Ye(s, n), G = d(() => e.disabled || e.readonly), ue = d(() => {
603
+ const y = z.value || A.isNotEmpty(F.value), m = e.floating && A.isNotEmpty(e.label), b = A.isNotEmpty(S == null ? void 0 : S.value);
604
+ return [
605
+ Me("vv-input-text", {
606
+ modifiers: e.modifiers,
607
+ readonly: e.readonly,
608
+ valid: e.valid,
609
+ invalid: e.error,
610
+ loading: e.loading,
611
+ iconLeft: W,
612
+ iconRight: y,
613
+ floating: m,
614
+ dirty: b
615
+ }),
616
+ r.class
617
+ ];
618
+ }), le = d(() => {
619
+ const { style: y } = r, m = A.pickBy(
476
620
  r,
477
- (h) => h.startsWith("data-")
621
+ (b) => b.startsWith("data-")
478
622
  );
479
623
  return {
480
- style: g,
481
- ...p
482
- };
483
- }), W = f(() => {
484
- const {
485
- id: g,
486
- name: p,
487
- type: h,
488
- autocomplete: me,
489
- minlength: ye,
490
- maxlength: ge,
491
- min: he,
492
- max: Se,
493
- step: Ee,
494
- disabled: Pe,
495
- readonly: Ae,
496
- floating: _e,
497
- placeholder: Z
498
- } = n, Ie = g || p, Te = j.value && se.value ? "text" : h, Oe = _e && E.isEmpty(Z) ? " " : Z;
499
- return {
500
- id: Ie,
501
- type: Te,
502
- placeholder: Oe,
503
- name: p,
504
- autocomplete: me,
505
- disabled: Pe,
506
- readonly: Ae,
507
- minlength: ye,
508
- maxlength: ge,
509
- min: he,
510
- max: Se,
511
- step: Ee,
512
- ...L.value
624
+ style: y,
625
+ ...m
513
626
  };
514
- }), L = f(() => {
515
- const { name: g } = r, p = E.pickBy(
627
+ }), ce = d(() => {
628
+ const y = R.value && D.value ? "text" : e.type, m = A.pickBy(
516
629
  r,
517
- (h) => h.startsWith("aria-")
630
+ (b) => b.startsWith("aria-")
518
631
  );
519
632
  return {
520
- "aria-label": g,
521
- "aria-describedby": `${g}-hint`,
522
- "aria-invalid": n.error,
523
- ...p
633
+ id: v,
634
+ type: y,
635
+ placeholder: E.value,
636
+ name: e.name,
637
+ autocomplete: e.autocomplete,
638
+ disabled: e.disabled,
639
+ readonly: e.readonly,
640
+ minlength: e.minlength,
641
+ maxlength: e.maxlength,
642
+ min: e.min,
643
+ max: e.max,
644
+ step: e.step,
645
+ "aria-invalid": e.error,
646
+ "aria-valid": !e.valid,
647
+ "aria-labeledby": f,
648
+ "aria-describedby": g,
649
+ "aria-errormessage": g,
650
+ ...m
524
651
  };
525
- }), z = f(() => {
526
- const { modelValue: g, valid: p, error: h } = n;
652
+ }), X = d(() => {
653
+ const { modelValue: y, valid: m, error: b } = e;
527
654
  return {
528
- valid: p,
529
- error: h,
530
- modelValue: g
655
+ valid: m,
656
+ error: b,
657
+ modelValue: y
531
658
  };
532
- }), ve = Ge(n, o);
533
- return xe(() => {
534
- n.autofocus && (U.value = !0), console.log("Focused", U.value);
535
- }), (g, p) => (I(), w("div", D(a(pe), { class: a(fe) }), [
536
- a(A) ? (I(), w("label", {
659
+ }), de = Ve(e, o), fe = ne(
660
+ h.TYPES.PASSWORD,
661
+ e
662
+ ), pe = ne(h.TYPES.NUMBER, e);
663
+ function me() {
664
+ I.value = null;
665
+ }
666
+ return he(() => {
667
+ e.autofocus && (Z.value = !0), console.log("Focused", Z.value);
668
+ }), (y, m) => (O(), N("div", $(i(le), { class: i(ue) }), [
669
+ i(u) ? (O(), N("label", {
537
670
  key: 0,
538
- for: a(W).id
539
- }, Ne(a(A)), 9, et)) : $("", !0),
540
- b("div", tt, [
541
- a(Y) ? G(g.$slots, "icon-left", X(D({ key: 0 }, a(z))), () => [
542
- R(F, {
671
+ for: i(v)
672
+ }, J(i(u)), 9, Ue)) : x("", !0),
673
+ K("div", We, [
674
+ i(W) ? M(y.$slots, "icon-left", Q($({ key: 0 }, i(X))), () => [
675
+ V(T, {
543
676
  class: "vv-input-text__icon-left",
544
- name: a(l)
677
+ name: i(a)
545
678
  }, null, 8, ["name"])
546
- ]) : $("", !0),
547
- Re(b("input", D({
679
+ ]) : x("", !0),
680
+ Se(K("input", $({
548
681
  ref_key: "input",
549
- ref: i
550
- }, a(W), {
551
- "onUpdate:modelValue": p[0] || (p[0] = (h) => u.value = h),
552
- onInput: p[1] || (p[1] = (h) => t("input", h))
682
+ ref: s
683
+ }, i(ce), {
684
+ "onUpdate:modelValue": m[0] || (m[0] = (b) => Ae(I) ? I.value = b : null),
685
+ onInput: m[1] || (m[1] = (b) => n("input", b))
553
686
  }), null, 16), [
554
- [Be, u.value]
687
+ [be, i(I)]
555
688
  ]),
556
- G(g.$slots, "icon-right", X(ke(a(z))), () => [
557
- a(j) ? (I(), w("div", nt, [
558
- b("button", {
559
- class: "vv-input-text__action",
560
- disabled: a(C),
561
- onClick: p[2] || (p[2] = B(
562
- (...h) => a(q) && a(q)(...h),
563
- ["prevent"]
564
- ))
565
- }, [
566
- R(F, { name: a(N) }, null, 8, ["name"])
567
- ], 8, rt)
568
- ])) : a(ae) ? (I(), w("div", ot, [
569
- b("button", {
570
- type: "button",
571
- class: "vv-input-text__action-chevron vv-input-text__action-chevron-up",
572
- disabled: a(C),
573
- onClick: p[3] || (p[3] = B((h) => a(le)(), ["prevent"]))
574
- }, null, 8, st),
575
- b("button", {
576
- type: "button",
577
- class: "vv-input-text__action-chevron",
578
- disabled: a(C),
579
- onClick: p[4] || (p[4] = B((h) => a(ce)(), ["prevent"]))
580
- }, null, 8, it)
581
- ])) : (I(), K(F, {
689
+ i(l) && i(ie) > 0 ? (O(), N("button", {
690
+ key: 1,
691
+ class: "vv-button vv-button--ghost",
692
+ onClick: me
693
+ }, [
694
+ V(T, { name: "clear-field" })
695
+ ])) : x("", !0),
696
+ M(y.$slots, "icon-right", Q(Ee(i(X))), () => [
697
+ i(R) ? (O(), k(i(fe), {
698
+ key: 0,
699
+ onActionPasswordOn: m[2] || (m[2] = (b) => D.value = !0),
700
+ onActionPasswordOff: m[3] || (m[3] = (b) => D.value = !1)
701
+ })) : i(_) ? (O(), k(i(pe), {
702
+ key: 1,
703
+ onActionStepUp: oe,
704
+ onActionStepDown: se
705
+ })) : i(z) || i(F) ? (O(), k(T, {
582
706
  key: 2,
583
- name: a(N)
584
- }, null, 8, ["name"]))
585
- ])
707
+ name: i(a) || i(F)
708
+ }, null, 8, ["name"])) : x("", !0)
709
+ ]),
710
+ i(c) ? (O(), N("span", ze, [
711
+ M(y.$slots, "limit", {}, () => [
712
+ Ie(J(i(ae)), 1)
713
+ ])
714
+ ])) : x("", !0)
586
715
  ]),
587
- R(a(ve), {
588
- id: a(L)["aria-describedby"],
716
+ V(i(de), {
717
+ id: g,
589
718
  class: "vv-input-text__hint"
590
- }, null, 8, ["id"])
719
+ })
591
720
  ], 16));
592
721
  }
593
722
  });
594
723
  export {
595
- dt as default
724
+ Ke as default
596
725
  };