@webilio-xyz/webilio-vue 1.1.5 → 1.1.6

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 (2) hide show
  1. package/dist/Input.js +89 -82
  2. package/package.json +1 -1
package/dist/Input.js CHANGED
@@ -1,4 +1,4 @@
1
- import { computed as v, withDirectives as U, openBlock as b, createElementBlock as S, vModelCheckbox as J, ref as A, onMounted as M, renderSlot as y, createCommentVNode as N, createElementVNode as D, normalizeClass as V, unref as z, Fragment as se, createBlock as C, createVNode as L, normalizeStyle as ue, createSlots as q, withCtx as h, createTextVNode as E, toDisplayString as B, normalizeProps as oe, guardReactiveProps as ie } from "vue";
1
+ import { computed as v, withDirectives as U, openBlock as b, createElementBlock as S, vModelCheckbox as J, ref as A, onMounted as M, normalizeClass as V, renderSlot as y, createCommentVNode as N, createElementVNode as D, unref as z, Fragment as se, createBlock as C, createVNode as L, normalizeStyle as ue, createSlots as q, withCtx as h, createTextVNode as E, toDisplayString as B, normalizeProps as ie, guardReactiveProps as oe } from "vue";
2
2
  import { trans as re, isLoaded as de, getActiveLanguage as me } from "laravel-vue-i18n";
3
3
  import ce from "@vuepic/vue-datepicker";
4
4
  import { s as pe, u as H, _ as K, E as Q } from "./LabelComponent-G6wxDGoZ.js";
@@ -25,8 +25,8 @@ const Y = {
25
25
  l("update:checked", u), l("update:modelValue", u);
26
26
  }
27
27
  });
28
- return (u, i) => U((b(), S("input", {
29
- "onUpdate:modelValue": i[0] || (i[0] = (o) => s.value = o),
28
+ return (u, o) => U((b(), S("input", {
29
+ "onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i),
30
30
  type: "checkbox",
31
31
  class: "wv-input wv-checkbox-input rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500"
32
32
  }, null, 512)), [
@@ -47,18 +47,18 @@ const j = {
47
47
  roundingMode: "trunc"
48
48
  });
49
49
  }, xe = (e, a = !0, l) => {
50
- var t, s, u, i;
51
- const o = ((t = l.number) == null ? void 0 : t.unsigned) == null && e.startsWith("-") ? "-" : "", n = ((s = l.number) == null ? void 0 : s.fraction) ?? 0;
50
+ var t, s, u, o;
51
+ const i = ((t = l.number) == null ? void 0 : t.unsigned) == null && e.startsWith("-") ? "-" : "", n = ((s = l.number) == null ? void 0 : s.fraction) ?? 0;
52
52
  let d = G(0, n, l);
53
- const f = d.formatToParts(1000.12), g = ((u = f.find((r) => r.type === "group")) == null ? void 0 : u.value) ?? " ", m = ((i = f.find((r) => r.type === "decimal")) == null ? void 0 : i.value) ?? ".", p = Z(e, g, m);
54
- if (p === "" || Number.isNaN(p)) return o;
53
+ const f = d.formatToParts(1000.12), g = ((u = f.find((r) => r.type === "group")) == null ? void 0 : u.value) ?? " ", m = ((o = f.find((r) => r.type === "decimal")) == null ? void 0 : o.value) ?? ".", p = Z(e, g, m);
54
+ if (p === "" || Number.isNaN(p)) return i;
55
55
  const x = p.split(".");
56
56
  if (x[1] != null && x[1].length >= 1) {
57
57
  const r = x[1].length <= n ? x[1].length : n;
58
58
  d = G(r, n, l);
59
59
  }
60
60
  let c = d.format(parseFloat(p));
61
- return a ? n > 0 && p.endsWith(".") && !p.slice(0, -1).includes(".") && (c += m) : c = Z(c, g, m), o + c;
61
+ return a ? n > 0 && p.endsWith(".") && !p.slice(0, -1).includes(".") && (c += m) : c = Z(c, g, m), i + c;
62
62
  };
63
63
  class Ve {
64
64
  constructor(a = {}) {
@@ -112,14 +112,14 @@ class Ve {
112
112
  if (l == null) return a;
113
113
  const s = `v=${a},mr=${l},m=${t ? 1 : 0}`;
114
114
  if (this.memo.has(s)) return this.memo.get(s);
115
- const { mask: u, escaped: i } = this.escapeMask(l), o = [], n = this.opts.tokens != null ? this.opts.tokens : {}, d = this.isReversed() ? -1 : 1, f = this.isReversed() ? "unshift" : "push", g = this.isReversed() ? 0 : u.length - 1, m = this.isReversed() ? () => r > -1 && k > -1 : () => r < u.length && k < a.length, p = ($) => !this.isReversed() && $ <= g || this.isReversed() && $ >= g;
115
+ const { mask: u, escaped: o } = this.escapeMask(l), i = [], n = this.opts.tokens != null ? this.opts.tokens : {}, d = this.isReversed() ? -1 : 1, f = this.isReversed() ? "unshift" : "push", g = this.isReversed() ? 0 : u.length - 1, m = this.isReversed() ? () => r > -1 && k > -1 : () => r < u.length && k < a.length, p = ($) => !this.isReversed() && $ <= g || this.isReversed() && $ >= g;
116
116
  let x, c = -1, r = this.isReversed() ? u.length - 1 : 0, k = this.isReversed() ? a.length - 1 : 0, P = !1;
117
117
  for (; m(); ) {
118
118
  const $ = u.charAt(r), w = n[$], I = (w == null ? void 0 : w.transform) != null ? w.transform(a.charAt(k)) : a.charAt(k);
119
- if (!i.includes(r) && w != null ? (I.match(w.pattern) != null ? (o[f](I), w.repeated ? (c === -1 ? c = r : r === g && r !== c && (r = c - d), g === c && (r -= d)) : w.multiple && (P = !0, r -= d), r += d) : w.multiple ? P && (r += d, k -= d, P = !1) : I === x ? x = void 0 : w.optional && (r += d, k -= d), k += d) : (t && !this.isEager() && o[f]($), I === $ && !this.isEager() ? k += d : x = $, this.isEager() || (r += d)), this.isEager())
120
- for (; p(r) && (n[u.charAt(r)] == null || i.includes(r)); ) {
119
+ if (!o.includes(r) && w != null ? (I.match(w.pattern) != null ? (i[f](I), w.repeated ? (c === -1 ? c = r : r === g && r !== c && (r = c - d), g === c && (r -= d)) : w.multiple && (P = !0, r -= d), r += d) : w.multiple ? P && (r += d, k -= d, P = !1) : I === x ? x = void 0 : w.optional && (r += d, k -= d), k += d) : (t && !this.isEager() && i[f]($), I === $ && !this.isEager() ? k += d : x = $, this.isEager() || (r += d)), this.isEager())
120
+ for (; p(r) && (n[u.charAt(r)] == null || o.includes(r)); ) {
121
121
  if (t) {
122
- if (o[f](u.charAt(r)), a.charAt(k) === u.charAt(r)) {
122
+ if (i[f](u.charAt(r)), a.charAt(k) === u.charAt(r)) {
123
123
  r += d, k += d;
124
124
  continue;
125
125
  }
@@ -127,7 +127,7 @@ class Ve {
127
127
  r += d;
128
128
  }
129
129
  }
130
- return this.memo.set(s, o.join("")), this.memo.get(s);
130
+ return this.memo.set(s, i.join("")), this.memo.get(s);
131
131
  }
132
132
  }
133
133
  const _ = (e) => JSON.parse(e.replaceAll("'", '"')), we = (e, a = {}) => {
@@ -154,8 +154,8 @@ class $e {
154
154
  R(this, "items", /* @__PURE__ */ new Map()), R(this, "onInput", (t) => {
155
155
  if (t instanceof CustomEvent && t.type === "input")
156
156
  return;
157
- const s = t.target, u = this.items.get(s), i = "inputType" in t && t.inputType.startsWith("delete"), o = u.isEager(), n = i && o && u.unmasked(s.value) === "" ? "" : s.value;
158
- this.fixCursor(s, i, () => this.setValue(s, n));
157
+ const s = t.target, u = this.items.get(s), o = "inputType" in t && t.inputType.startsWith("delete"), i = u.isEager(), n = o && i && u.unmasked(s.value) === "" ? "" : s.value;
158
+ this.fixCursor(s, o, () => this.setValue(s, n));
159
159
  }), this.options = l, this.init(this.getInputs(a));
160
160
  }
161
161
  update(a = {}) {
@@ -187,9 +187,9 @@ class $e {
187
187
  fixCursor(a, l, t) {
188
188
  const s = a.selectionStart, u = a.value;
189
189
  if (t(), s === null || s === u.length && !l) return;
190
- const i = a.value, o = u.slice(0, s), n = i.slice(0, s), d = this.processInput(a, o).unmasked, f = this.processInput(a, n).unmasked;
190
+ const o = a.value, i = u.slice(0, s), n = o.slice(0, s), d = this.processInput(a, i).unmasked, f = this.processInput(a, n).unmasked;
191
191
  let g = s;
192
- o !== n && (g += l ? i.length - u.length : d.length - f.length), a.setSelectionRange(g, g);
192
+ i !== n && (g += l ? o.length - u.length : d.length - f.length), a.setSelectionRange(g, g);
193
193
  }
194
194
  setValue(a, l) {
195
195
  const t = this.processInput(a, l);
@@ -217,17 +217,17 @@ const F = /* @__PURE__ */ new WeakMap(), Ae = (e, a) => {
217
217
  if (t == null || (t == null ? void 0 : t.type) === "file") return;
218
218
  let s = {};
219
219
  if (a.value != null && (s = typeof a.value == "string" ? { mask: a.value } : { ...a.value }), a.arg != null) {
220
- const u = (i) => {
221
- const o = a.modifiers.unmasked ? i.unmasked : a.modifiers.completed ? i.completed : i.masked;
222
- Ae(a, o);
220
+ const u = (o) => {
221
+ const i = a.modifiers.unmasked ? o.unmasked : a.modifiers.completed ? o.completed : o.masked;
222
+ Ae(a, i);
223
223
  };
224
224
  s.onMaska = s.onMaska == null ? u : Array.isArray(s.onMaska) ? [...s.onMaska, u] : [s.onMaska, u];
225
225
  }
226
226
  F.has(t) ? (l = F.get(t)) == null || l.update(s) : F.set(t, new $e(t, s));
227
- }, Ie = { class: "wv-input wv-text-input-wrapper flex items-center border border-gray-300 focus-within:border-indigo-500 focus-within:ring-1 focus-within:ring-indigo-500 rounded-md shadow-sm" }, Te = {
227
+ }, Ie = {
228
228
  key: 0,
229
229
  class: "wv-text-input-prefix flex items-center pl-2"
230
- }, Ee = ["type", "inputmode", "value", "min", "max", "step"], Be = {
230
+ }, Te = ["disabled", "inputmode", "max", "min", "step", "type", "value"], Ee = {
231
231
  key: 1,
232
232
  class: "wv-text-input-suffix flex items-center pr-2"
233
233
  }, W = {
@@ -255,11 +255,15 @@ const F = /* @__PURE__ */ new WeakMap(), Ae = (e, a) => {
255
255
  inputClass: {
256
256
  type: [String, Array, Object],
257
257
  default: null
258
+ },
259
+ disabled: {
260
+ type: Boolean,
261
+ default: !1
258
262
  }
259
263
  },
260
264
  emits: ["update:modelValue"],
261
265
  setup(e, { expose: a, emit: l }) {
262
- const t = e, s = l, u = v(() => t.type === "number"), i = v(() => u.value && t.precision !== null ? "text" : t.type), o = v(() => u.value && t.precision !== null ? "decimal" : null), n = v(() => t.step ? t.step : t.precision !== null ? Math.pow(10, -t.precision).toFixed(t.precision) : null), d = (m) => {
266
+ const t = e, s = l, u = v(() => t.type === "number"), o = v(() => u.value && t.precision !== null ? "text" : t.type), i = v(() => u.value && t.precision !== null ? "decimal" : null), n = v(() => t.step ? t.step : t.precision !== null ? Math.pow(10, -t.precision).toFixed(t.precision) : null), d = (m) => {
263
267
  if (!u.value || m === "" || m === "-" || m === "." || m === "-.") return m;
264
268
  const p = parseFloat(m);
265
269
  return isNaN(p) ? m : t.min !== null && p < parseFloat(t.min) ? t.min : t.max !== null && p > parseFloat(t.max) ? t.max : m;
@@ -276,30 +280,33 @@ const F = /* @__PURE__ */ new WeakMap(), Ae = (e, a) => {
276
280
  }, g = A(null);
277
281
  return M(() => {
278
282
  g.value.hasAttribute("autofocus") && g.value.focus();
279
- }), a({ focus: () => g.value.focus() }), (m, p) => (b(), S("div", Ie, [
280
- m.$slots.prefix ? (b(), S("div", Te, [
283
+ }), a({ focus: () => g.value.focus() }), (m, p) => (b(), S("div", {
284
+ class: V(["wv-input wv-text-input-wrapper flex items-center border border-gray-300 focus-within:border-indigo-500 focus-within:ring-1 focus-within:ring-indigo-500 rounded-md shadow-sm", { "disabled-input": e.disabled }])
285
+ }, [
286
+ m.$slots.prefix ? (b(), S("div", Ie, [
281
287
  y(m.$slots, "prefix")
282
288
  ])) : N("", !0),
283
289
  U(D("input", {
284
290
  ref_key: "input",
285
291
  ref: g,
286
- type: i.value,
287
- inputmode: o.value,
288
292
  class: V(["wv-text-input flex-1 border-0 focus:ring-0 disabled:bg-gray-200 px-1", e.inputClass]),
289
- value: e.modelValue,
290
- min: e.min,
293
+ disabled: e.disabled,
294
+ inputmode: i.value,
291
295
  max: e.max,
296
+ min: e.min,
292
297
  step: n.value,
298
+ type: o.value,
299
+ value: e.modelValue,
293
300
  onInput: f
294
- }, null, 42, Ee), [
301
+ }, null, 42, Te), [
295
302
  [z(Me), e.mask]
296
303
  ]),
297
- m.$slots.suffix ? (b(), S("div", Be, [
304
+ m.$slots.suffix ? (b(), S("div", Ee, [
298
305
  y(m.$slots, "suffix")
299
306
  ])) : N("", !0)
300
- ]));
307
+ ], 2));
301
308
  }
302
- }, Ne = {
309
+ }, Be = {
303
310
  __name: "DateComponent",
304
311
  props: {
305
312
  modelValue: String,
@@ -332,21 +339,21 @@ const F = /* @__PURE__ */ new WeakMap(), Ae = (e, a) => {
332
339
  ]));
333
340
  }, u = v(() => {
334
341
  let c = "yyyy/MM/dd";
335
- if (i.value && l)
342
+ if (o.value && l)
336
343
  try {
337
344
  const r = re("date.format").toString(), k = l.parse("29/10/1989", "P", /* @__PURE__ */ new Date());
338
345
  l.format(k, r), c = r;
339
346
  } catch {
340
347
  }
341
348
  return c;
342
- }), i = A(!1);
349
+ }), o = A(!1);
343
350
  M(async () => {
344
351
  await s();
345
352
  const c = setInterval(() => {
346
- de() && (i.value = !0, clearInterval(c));
353
+ de() && (o.value = !0, clearInterval(c));
347
354
  }, 50);
348
355
  });
349
- const o = v(() => me()), n = e, d = a, f = (c) => !c || !t ? null : Array.isArray(c) ? c.map((r) => t.fromZonedTime(r, Intl.DateTimeFormat().resolvedOptions().timeZone)) : t.fromZonedTime(c, Intl.DateTimeFormat().resolvedOptions().timeZone), g = v(() => f(n.modelValue)), m = v(() => f(n.min)), p = v(() => f(n.max)), x = (c) => {
356
+ const i = v(() => me()), n = e, d = a, f = (c) => !c || !t ? null : Array.isArray(c) ? c.map((r) => t.fromZonedTime(r, Intl.DateTimeFormat().resolvedOptions().timeZone)) : t.fromZonedTime(c, Intl.DateTimeFormat().resolvedOptions().timeZone), g = v(() => f(n.modelValue)), m = v(() => f(n.min)), p = v(() => f(n.max)), x = (c) => {
350
357
  d("update:modelValue", c);
351
358
  };
352
359
  return (c, r) => (b(), S(se, null, [
@@ -358,7 +365,7 @@ const F = /* @__PURE__ */ new WeakMap(), Ae = (e, a) => {
358
365
  "max-date": p.value,
359
366
  "enable-time-picker": e.enableTimePicker,
360
367
  format: u.value,
361
- locale: o.value,
368
+ locale: i.value,
362
369
  range: e.range,
363
370
  "select-text": c.$t("Select"),
364
371
  "cancel-text-text": c.$t("Cancel"),
@@ -375,7 +382,7 @@ const F = /* @__PURE__ */ new WeakMap(), Ae = (e, a) => {
375
382
  }, null, 8, ["model-value"])
376
383
  ], 64));
377
384
  }
378
- }, ee = /* @__PURE__ */ X(Ne, [["__scopeId", "data-v-75d7c74c"]]), Le = ["disabled"], Re = {
385
+ }, ee = /* @__PURE__ */ X(Be, [["__scopeId", "data-v-75d7c74c"]]), Ne = ["disabled"], Le = {
379
386
  __name: "ToggleComponent",
380
387
  props: {
381
388
  modelValue: {
@@ -399,20 +406,20 @@ const F = /* @__PURE__ */ new WeakMap(), Ae = (e, a) => {
399
406
  get() {
400
407
  return !!t.modelValue;
401
408
  },
402
- set(i) {
403
- t.disabled || (l("update:modelValue", i), l("update:checked", i));
409
+ set(o) {
410
+ t.disabled || (l("update:modelValue", o), l("update:checked", o));
404
411
  }
405
412
  });
406
- return (i, o) => (b(), S("label", {
413
+ return (o, i) => (b(), S("label", {
407
414
  class: V(["inline-flex items-center", { "cursor-pointer": !e.disabled }])
408
415
  }, [
409
416
  U(D("input", {
410
- "onUpdate:modelValue": o[0] || (o[0] = (n) => u.value = n),
417
+ "onUpdate:modelValue": i[0] || (i[0] = (n) => u.value = n),
411
418
  type: "checkbox",
412
419
  value: "",
413
420
  disabled: e.disabled,
414
421
  class: "sr-only peer"
415
- }, null, 8, Le), [
422
+ }, null, 8, Ne), [
416
423
  [J, u.value]
417
424
  ]),
418
425
  D("div", {
@@ -425,15 +432,15 @@ const F = /* @__PURE__ */ new WeakMap(), Ae = (e, a) => {
425
432
  }, null, 6)
426
433
  ], 2));
427
434
  }
428
- }, te = /* @__PURE__ */ X(Re, [["__scopeId", "data-v-d62d3d36"]]);
429
- function Pe(e, a) {
435
+ }, te = /* @__PURE__ */ X(Le, [["__scopeId", "data-v-d62d3d36"]]);
436
+ function Re(e, a) {
430
437
  var l = -1, t = he(e) ? Array(e.length) : [];
431
- return be(e, function(s, u, i) {
432
- t[++l] = a(s, u, i);
438
+ return be(e, function(s, u, o) {
439
+ t[++l] = a(s, u, o);
433
440
  }), t;
434
441
  }
435
442
  function O(e, a) {
436
- var l = ye(e) ? fe : Pe;
443
+ var l = ye(e) ? fe : Re;
437
444
  return l(e, ge(a));
438
445
  }
439
446
  const ae = {
@@ -507,7 +514,7 @@ const ae = {
507
514
  }), u = v(() => O(t == null ? void 0 : t.options, (n) => typeof n == "string" ? {
508
515
  label: n,
509
516
  value: n
510
- } : n) ?? []), i = (n) => {
517
+ } : n) ?? []), o = (n) => {
511
518
  if (t.deselectable) {
512
519
  let d;
513
520
  if (t.multiple) {
@@ -516,7 +523,7 @@ const ae = {
516
523
  }
517
524
  l("update:modelValue", d);
518
525
  }
519
- }, o = (n) => {
526
+ }, i = (n) => {
520
527
  l("tag", n);
521
528
  };
522
529
  return (n, d) => (b(), C(z(pe), {
@@ -537,8 +544,8 @@ const ae = {
537
544
  "group-values": e.groupValues,
538
545
  "group-label": e.groupLabel,
539
546
  taggable: e.taggable,
540
- onTag: o,
541
- onRemove: i
547
+ onTag: i,
548
+ onRemove: o
542
549
  }, q({
543
550
  maxElements: h(() => [
544
551
  E(B(n.$tChoice("select.maxElements", e.max)), 1)
@@ -554,7 +561,7 @@ const ae = {
554
561
  n.$slots.tag ? {
555
562
  name: "tag",
556
563
  fn: h((f) => [
557
- y(n.$slots, "tag", oe(ie(f)))
564
+ y(n.$slots, "tag", ie(oe(f)))
558
565
  ]),
559
566
  key: "0"
560
567
  } : void 0,
@@ -623,7 +630,7 @@ const ae = {
623
630
  } : void 0
624
631
  ]), 1032, ["modelValue", "options", "placeholder", "multiple", "max", "open-direction", "close-on-select", "searchable", "group-select", "group-values", "group-label", "taggable"]));
625
632
  }
626
- }, Fe = ["value", "placeholder"], le = {
633
+ }, Pe = ["value", "placeholder"], le = {
627
634
  __name: "TextareaComponent",
628
635
  props: {
629
636
  modelValue: String,
@@ -641,9 +648,9 @@ const ae = {
641
648
  value: e.modelValue,
642
649
  placeholder: e.placeholder,
643
650
  onInput: s[0] || (s[0] = (u) => t.$emit("update:modelValue", u.target.value))
644
- }, null, 40, Fe));
651
+ }, null, 40, Pe));
645
652
  }
646
- }, Oe = {
653
+ }, Fe = {
647
654
  key: 1,
648
655
  class: "h-10 flex items-center"
649
656
  }, ne = {
@@ -721,15 +728,15 @@ const ae = {
721
728
  s.value = H("input_group_");
722
729
  });
723
730
  const u = v(() => l.type === "tel" ? "(###) ###-####" : null);
724
- return (i, o) => e.type === "checkbox" ? (b(), C(Y, {
731
+ return (o, i) => e.type === "checkbox" ? (b(), C(Y, {
725
732
  key: 0,
726
733
  id: s.value,
727
734
  name: e.name,
728
735
  "model-value": e.modelValue,
729
736
  class: V("size-10 " + e.customClass),
730
737
  disabled: e.disabled,
731
- "onUpdate:modelValue": o[0] || (o[0] = (n) => t("update:modelValue", n))
732
- }, null, 8, ["id", "name", "model-value", "class", "disabled"])) : e.type === "toggle" ? (b(), S("div", Oe, [
738
+ "onUpdate:modelValue": i[0] || (i[0] = (n) => t("update:modelValue", n))
739
+ }, null, 8, ["id", "name", "model-value", "class", "disabled"])) : e.type === "toggle" ? (b(), S("div", Fe, [
733
740
  L(te, {
734
741
  id: s.value,
735
742
  name: e.name,
@@ -737,7 +744,7 @@ const ae = {
737
744
  size: "15",
738
745
  class: V(e.customClass),
739
746
  disabled: e.disabled,
740
- "onUpdate:modelValue": o[1] || (o[1] = (n) => t("update:modelValue", n))
747
+ "onUpdate:modelValue": i[1] || (i[1] = (n) => t("update:modelValue", n))
741
748
  }, null, 8, ["id", "name", "model-value", "class", "disabled"])
742
749
  ])) : e.type === "select" ? (b(), C(ae, {
743
750
  key: 2,
@@ -751,8 +758,8 @@ const ae = {
751
758
  searchable: e.searchable,
752
759
  taggable: e.taggable,
753
760
  deselectable: e.deselectable,
754
- "onUpdate:modelValue": o[2] || (o[2] = (n) => t("update:modelValue", n)),
755
- onTag: o[3] || (o[3] = (n) => t("tag", n))
761
+ "onUpdate:modelValue": i[2] || (i[2] = (n) => t("update:modelValue", n)),
762
+ onTag: i[3] || (i[3] = (n) => t("tag", n))
756
763
  }, null, 8, ["id", "name", "model-value", "class", "options", "disabled", "multiple", "searchable", "taggable", "deselectable"])) : e.type === "textarea" ? (b(), C(le, {
757
764
  key: 3,
758
765
  id: s.value,
@@ -761,7 +768,7 @@ const ae = {
761
768
  class: V("w-full " + e.customClass),
762
769
  placeholder: e.placeholder,
763
770
  disabled: e.disabled,
764
- "onUpdate:modelValue": o[4] || (o[4] = (n) => t("update:modelValue", n))
771
+ "onUpdate:modelValue": i[4] || (i[4] = (n) => t("update:modelValue", n))
765
772
  }, null, 8, ["id", "name", "model-value", "class", "placeholder", "disabled"])) : e.type === "date" ? (b(), C(ee, {
766
773
  key: 4,
767
774
  id: s.value,
@@ -773,7 +780,7 @@ const ae = {
773
780
  range: e.range,
774
781
  "enable-time-picker": e.enableTimePicker,
775
782
  disabled: e.disabled,
776
- "onUpdate:modelValue": o[5] || (o[5] = (n) => t("update:modelValue", n))
783
+ "onUpdate:modelValue": i[5] || (i[5] = (n) => t("update:modelValue", n))
777
784
  }, null, 8, ["id", "name", "model-value", "class", "max", "min", "range", "enable-time-picker", "disabled"])) : (b(), C(W, {
778
785
  key: 5,
779
786
  id: s.value,
@@ -789,25 +796,25 @@ const ae = {
789
796
  step: e.step,
790
797
  class: V("w-full " + e.customClass),
791
798
  "input-class": e.inputClass,
792
- "onUpdate:modelValue": o[6] || (o[6] = (n) => t("update:modelValue", n))
799
+ "onUpdate:modelValue": i[6] || (i[6] = (n) => t("update:modelValue", n))
793
800
  }, q({ _: 2 }, [
794
- i.$slots.prefix ? {
801
+ o.$slots.prefix ? {
795
802
  name: "prefix",
796
803
  fn: h(() => [
797
- y(i.$slots, "prefix")
804
+ y(o.$slots, "prefix")
798
805
  ]),
799
806
  key: "0"
800
807
  } : void 0,
801
- i.$slots.suffix ? {
808
+ o.$slots.suffix ? {
802
809
  name: "suffix",
803
810
  fn: h(() => [
804
- y(i.$slots, "suffix")
811
+ y(o.$slots, "suffix")
805
812
  ]),
806
813
  key: "1"
807
814
  } : void 0
808
815
  ]), 1032, ["id", "type", "name", "placeholder", "model-value", "disabled", "min", "max", "mask", "precision", "step", "class", "input-class"]));
809
816
  }
810
- }, De = {
817
+ }, Oe = {
811
818
  __name: "InputGroupComponent",
812
819
  props: {
813
820
  modelValue: String,
@@ -891,7 +898,7 @@ const ae = {
891
898
  s.value = H("input_group_");
892
899
  });
893
900
  const u = v(() => l.type === "tel" ? "(###) ###-####" : null);
894
- return (i, o) => (b(), S("div", {
901
+ return (o, i) => (b(), S("div", {
895
902
  class: V(["w-full", { error: e.errors !== null && e.errors !== "" }])
896
903
  }, [
897
904
  L(K, {
@@ -926,20 +933,20 @@ const ae = {
926
933
  precision: e.precision,
927
934
  step: e.step,
928
935
  "input-class": e.inputClass,
929
- "onUpdate:modelValue": o[0] || (o[0] = (n) => t("update:modelValue", n)),
930
- onTag: o[1] || (o[1] = (n) => t("tag", n))
936
+ "onUpdate:modelValue": i[0] || (i[0] = (n) => t("update:modelValue", n)),
937
+ onTag: i[1] || (i[1] = (n) => t("tag", n))
931
938
  }, q({ _: 2 }, [
932
- i.$slots.prefix ? {
939
+ o.$slots.prefix ? {
933
940
  name: "prefix",
934
941
  fn: h(() => [
935
- y(i.$slots, "prefix")
942
+ y(o.$slots, "prefix")
936
943
  ]),
937
944
  key: "0"
938
945
  } : void 0,
939
- i.$slots.suffix ? {
946
+ o.$slots.suffix ? {
940
947
  name: "suffix",
941
948
  fn: h(() => [
942
- y(i.$slots, "suffix")
949
+ y(o.$slots, "suffix")
943
950
  ]),
944
951
  key: "1"
945
952
  } : void 0
@@ -951,12 +958,12 @@ const ae = {
951
958
  }, null, 8, ["message"])) : N("", !0)
952
959
  ], 2));
953
960
  }
954
- }, Ke = {
961
+ }, He = {
955
962
  CheckboxComponent: Y,
956
963
  DateComponent: ee,
957
964
  ErrorComponent: Q,
958
965
  InputComponent: ne,
959
- InputGroupComponent: De,
966
+ InputGroupComponent: Oe,
960
967
  LabelComponent: K,
961
968
  SelectComponent: ae,
962
969
  TextareaComponent: le,
@@ -968,11 +975,11 @@ export {
968
975
  ee as DateComponent,
969
976
  Q as ErrorComponent,
970
977
  ne as InputComponent,
971
- De as InputGroupComponent,
978
+ Oe as InputGroupComponent,
972
979
  K as LabelComponent,
973
980
  ae as SelectComponent,
974
981
  W as TextInputComponent,
975
982
  le as TextareaComponent,
976
983
  te as ToggleComponent,
977
- Ke as default
984
+ He as default
978
985
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilio-xyz/webilio-vue",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host 0.0.0.0",