@webilio-xyz/webilio-vue 1.1.0 → 1.1.1

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 +132 -128
  2. package/package.json +1 -1
package/dist/Input.js CHANGED
@@ -1,5 +1,5 @@
1
- import { computed as b, withDirectives as O, openBlock as h, createElementBlock as S, vModelCheckbox as J, ref as I, onMounted as T, renderSlot as v, createCommentVNode as N, createElementVNode as U, unref as z, Fragment as se, createBlock as $, createVNode as L, normalizeClass as w, normalizeStyle as ue, createSlots as q, withCtx as g, createTextVNode as M, toDisplayString as A } from "vue";
2
- import { trans as oe, isLoaded as ie, getActiveLanguage as re } from "laravel-vue-i18n";
1
+ import { computed as y, withDirectives as O, openBlock as b, createElementBlock as S, vModelCheckbox as J, ref as I, onMounted as T, renderSlot as v, createCommentVNode as N, createElementVNode as U, unref as z, Fragment as se, createBlock as $, createVNode as L, normalizeClass as w, normalizeStyle as ue, createSlots as q, withCtx as h, createTextVNode as M, toDisplayString as A } from "vue";
2
+ import { trans as oe, isLoaded as re, getActiveLanguage as ie } from "laravel-vue-i18n";
3
3
  import de from "@vuepic/vue-datepicker";
4
4
  import { s as me, u as H, _ as K, E as Q } from "./LabelComponent-CfsH2P2a.js";
5
5
  import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -17,7 +17,7 @@ const Y = {
17
17
  },
18
18
  emits: ["update:checked", "update:modelValue"],
19
19
  setup(e, { emit: a }) {
20
- const l = a, t = e, s = b({
20
+ const l = a, t = e, s = y({
21
21
  get() {
22
22
  return t.checked;
23
23
  },
@@ -25,8 +25,8 @@ const Y = {
25
25
  l("update:checked", u), l("update:modelValue", u);
26
26
  }
27
27
  });
28
- return (u, i) => O((h(), S("input", {
29
- "onUpdate:modelValue": i[0] || (i[0] = (o) => s.value = o),
28
+ return (u, r) => O((b(), S("input", {
29
+ "onUpdate:modelValue": r[0] || (r[0] = (o) => s.value = o),
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)), [
@@ -34,7 +34,7 @@ const Y = {
34
34
  ]);
35
35
  }
36
36
  };
37
- var be = Object.defineProperty, ve = (e, a, l) => a in e ? be(e, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[a] = l, R = (e, a, l) => ve(e, typeof a != "symbol" ? a + "" : a, l);
37
+ var be = Object.defineProperty, ye = (e, a, l) => a in e ? be(e, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[a] = l, R = (e, a, l) => ye(e, typeof a != "symbol" ? a + "" : a, l);
38
38
  const Z = {
39
39
  "#": { pattern: /[0-9]/ },
40
40
  "@": { pattern: /[a-zA-Z]/ },
@@ -46,19 +46,19 @@ const Z = {
46
46
  maximumFractionDigits: a,
47
47
  roundingMode: "trunc"
48
48
  });
49
- }, ye = (e, a = !0, l) => {
50
- var t, s, u, i;
49
+ }, ve = (e, a = !0, l) => {
50
+ var t, s, u, r;
51
51
  const o = ((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 c = d.formatToParts(1000.12), p = ((u = c.find((r) => r.type === "group")) == null ? void 0 : u.value) ?? " ", f = ((i = c.find((r) => r.type === "decimal")) == null ? void 0 : i.value) ?? ".", k = j(e, p, f);
54
- if (k === "" || Number.isNaN(k)) return o;
55
- const x = k.split(".");
53
+ const f = d.formatToParts(1000.12), g = ((u = f.find((i) => i.type === "group")) == null ? void 0 : u.value) ?? " ", m = ((r = f.find((i) => i.type === "decimal")) == null ? void 0 : r.value) ?? ".", p = j(e, g, m);
54
+ if (p === "" || Number.isNaN(p)) return o;
55
+ const x = p.split(".");
56
56
  if (x[1] != null && x[1].length >= 1) {
57
- const r = x[1].length <= n ? x[1].length : n;
58
- d = G(r, n, l);
57
+ const i = x[1].length <= n ? x[1].length : n;
58
+ d = G(i, n, l);
59
59
  }
60
- let m = d.format(parseFloat(k));
61
- return a ? n > 0 && k.endsWith(".") && !k.slice(0, -1).includes(".") && (m += f) : m = j(m, p, f), o + m;
60
+ let c = d.format(parseFloat(p));
61
+ return a ? n > 0 && p.endsWith(".") && !p.slice(0, -1).includes(".") && (c += m) : c = j(c, g, m), o + c;
62
62
  };
63
63
  class ke {
64
64
  constructor(a = {}) {
@@ -108,23 +108,23 @@ class ke {
108
108
  }), { mask: l.join(""), escaped: t };
109
109
  }
110
110
  process(a, l, t = !0) {
111
- if (this.opts.number != null) return ye(a, t, this.opts);
111
+ if (this.opts.number != null) return ve(a, t, this.opts);
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, c = this.isReversed() ? "unshift" : "push", p = this.isReversed() ? 0 : u.length - 1, f = this.isReversed() ? () => r > -1 && y > -1 : () => r < u.length && y < a.length, k = (C) => !this.isReversed() && C <= p || this.isReversed() && C >= p;
116
- let x, m = -1, r = this.isReversed() ? u.length - 1 : 0, y = this.isReversed() ? a.length - 1 : 0, P = !1;
117
- for (; f(); ) {
118
- const C = u.charAt(r), V = n[C], E = (V == null ? void 0 : V.transform) != null ? V.transform(a.charAt(y)) : a.charAt(y);
119
- if (!i.includes(r) && V != null ? (E.match(V.pattern) != null ? (o[c](E), V.repeated ? (m === -1 ? m = r : r === p && r !== m && (r = m - d), p === m && (r -= d)) : V.multiple && (P = !0, r -= d), r += d) : V.multiple ? P && (r += d, y -= d, P = !1) : E === x ? x = void 0 : V.optional && (r += d, y -= d), y += d) : (t && !this.isEager() && o[c](C), E === C && !this.isEager() ? y += d : x = C, this.isEager() || (r += d)), this.isEager())
120
- for (; k(r) && (n[u.charAt(r)] == null || i.includes(r)); ) {
115
+ const { mask: u, escaped: r } = 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() ? () => i > -1 && k > -1 : () => i < u.length && k < a.length, p = (C) => !this.isReversed() && C <= g || this.isReversed() && C >= g;
116
+ let x, c = -1, i = this.isReversed() ? u.length - 1 : 0, k = this.isReversed() ? a.length - 1 : 0, F = !1;
117
+ for (; m(); ) {
118
+ const C = u.charAt(i), V = n[C], E = (V == null ? void 0 : V.transform) != null ? V.transform(a.charAt(k)) : a.charAt(k);
119
+ if (!r.includes(i) && V != null ? (E.match(V.pattern) != null ? (o[f](E), V.repeated ? (c === -1 ? c = i : i === g && i !== c && (i = c - d), g === c && (i -= d)) : V.multiple && (F = !0, i -= d), i += d) : V.multiple ? F && (i += d, k -= d, F = !1) : E === x ? x = void 0 : V.optional && (i += d, k -= d), k += d) : (t && !this.isEager() && o[f](C), E === C && !this.isEager() ? k += d : x = C, this.isEager() || (i += d)), this.isEager())
120
+ for (; p(i) && (n[u.charAt(i)] == null || r.includes(i)); ) {
121
121
  if (t) {
122
- if (o[c](u.charAt(r)), a.charAt(y) === u.charAt(r)) {
123
- r += d, y += d;
122
+ if (o[f](u.charAt(i)), a.charAt(k) === u.charAt(i)) {
123
+ i += d, k += d;
124
124
  continue;
125
125
  }
126
- } else u.charAt(r) === a.charAt(y) && (y += d);
127
- r += d;
126
+ } else u.charAt(i) === a.charAt(k) && (k += d);
127
+ i += d;
128
128
  }
129
129
  }
130
130
  return this.memo.set(s, o.join("")), this.memo.get(s);
@@ -154,8 +154,8 @@ class Se {
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), r = "inputType" in t && t.inputType.startsWith("delete"), o = u.isEager(), n = r && o && u.unmasked(s.value) === "" ? "" : s.value;
158
+ this.fixCursor(s, r, () => 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 Se {
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, c = this.processInput(a, n).unmasked;
191
- let p = s;
192
- o !== n && (p += l ? i.length - u.length : d.length - c.length), a.setSelectionRange(p, p);
190
+ const r = a.value, o = u.slice(0, s), n = r.slice(0, s), d = this.processInput(a, o).unmasked, f = this.processInput(a, n).unmasked;
191
+ let g = s;
192
+ o !== n && (g += l ? r.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);
@@ -207,7 +207,7 @@ class Se {
207
207
  };
208
208
  }
209
209
  }
210
- const D = /* @__PURE__ */ new WeakMap(), $e = (e, a) => {
210
+ const P = /* @__PURE__ */ new WeakMap(), $e = (e, a) => {
211
211
  if (e.arg == null || e.instance == null) return;
212
212
  const l = "setup" in e.instance.$.type;
213
213
  e.arg in e.instance ? e.instance[e.arg] = a : l && console.warn("Maska: please expose `%s` using defineExpose", e.arg);
@@ -217,13 +217,13 @@ const D = /* @__PURE__ */ new WeakMap(), $e = (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;
220
+ const u = (r) => {
221
+ const o = a.modifiers.unmasked ? r.unmasked : a.modifiers.completed ? r.completed : r.masked;
222
222
  $e(a, o);
223
223
  };
224
224
  s.onMaska = s.onMaska == null ? u : Array.isArray(s.onMaska) ? [...s.onMaska, u] : [s.onMaska, u];
225
225
  }
226
- D.has(t) ? (l = D.get(t)) == null || l.update(s) : D.set(t, new Se(t, s));
226
+ P.has(t) ? (l = P.get(t)) == null || l.update(s) : P.set(t, new Se(t, s));
227
227
  }, Me = { class: "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" }, Ae = {
228
228
  key: 0,
229
229
  class: "wv-text-input-prefix flex items-center pl-2"
@@ -255,39 +255,43 @@ const D = /* @__PURE__ */ new WeakMap(), $e = (e, a) => {
255
255
  },
256
256
  emits: ["update:modelValue"],
257
257
  setup(e, { expose: a, emit: l }) {
258
- const t = e, s = l, u = b(() => t.type === "number"), i = b(() => u.value && t.precision !== null ? "text" : t.type), o = b(() => u.value && t.precision !== null ? "decimal" : null), n = b(() => t.step ? t.step : t.precision !== null ? Math.pow(10, -t.precision).toFixed(t.precision) : null), d = (p) => {
259
- let f = p.target.value;
258
+ const t = e, s = l, u = y(() => t.type === "number"), r = y(() => u.value && t.precision !== null ? "text" : t.type), o = y(() => u.value && t.precision !== null ? "decimal" : null), n = y(() => t.step ? t.step : t.precision !== null ? Math.pow(10, -t.precision).toFixed(t.precision) : null), d = (m) => {
259
+ if (!u.value || m === "" || m === "-" || m === "." || m === "-.") return m;
260
+ const p = parseFloat(m);
261
+ return isNaN(p) ? m : t.min !== null && p < parseFloat(t.min) ? t.min : t.max !== null && p > parseFloat(t.max) ? t.max : m;
262
+ }, f = (m) => {
263
+ let p = m.target.value;
260
264
  if (u.value && t.precision !== null) {
261
- const k = new RegExp(`^-?\\d*\\.?\\d{0,${t.precision}}$`);
262
- if (f !== "" && f !== "-" && f !== "." && f !== "-." && !k.test(f)) {
263
- p.target.value = t.modelValue || "";
265
+ const x = new RegExp(`^-?\\d*\\.?\\d{0,${t.precision}}$`);
266
+ if (p !== "" && p !== "-" && p !== "." && p !== "-." && !x.test(p)) {
267
+ m.target.value = t.modelValue || "";
264
268
  return;
265
269
  }
266
270
  }
267
- s("update:modelValue", f);
268
- }, c = I(null);
271
+ p = d(p), m.target.value = p, s("update:modelValue", p);
272
+ }, g = I(null);
269
273
  return T(() => {
270
- c.value.hasAttribute("autofocus") && c.value.focus();
271
- }), a({ focus: () => c.value.focus() }), (p, f) => (h(), S("div", Me, [
272
- p.$slots.prefix ? (h(), S("div", Ae, [
273
- v(p.$slots, "prefix")
274
+ g.value.hasAttribute("autofocus") && g.value.focus();
275
+ }), a({ focus: () => g.value.focus() }), (m, p) => (b(), S("div", Me, [
276
+ m.$slots.prefix ? (b(), S("div", Ae, [
277
+ v(m.$slots, "prefix")
274
278
  ])) : N("", !0),
275
279
  O(U("input", {
276
280
  ref_key: "input",
277
- ref: c,
278
- type: i.value,
281
+ ref: g,
282
+ type: r.value,
279
283
  inputmode: o.value,
280
284
  class: "wv-input wv-text-input flex-1 border-0 focus:ring-0 disabled:bg-gray-200 px-1",
281
285
  value: e.modelValue,
282
286
  min: e.min,
283
287
  max: e.max,
284
288
  step: n.value,
285
- onInput: d
289
+ onInput: f
286
290
  }, null, 40, Ie), [
287
291
  [z(Ce), e.mask]
288
292
  ]),
289
- p.$slots.suffix ? (h(), S("div", Te, [
290
- v(p.$slots, "suffix")
293
+ m.$slots.suffix ? (b(), S("div", Te, [
294
+ v(m.$slots, "suffix")
291
295
  ])) : N("", !0)
292
296
  ]));
293
297
  }
@@ -322,39 +326,39 @@ const D = /* @__PURE__ */ new WeakMap(), $e = (e, a) => {
322
326
  import("date-fns"),
323
327
  import("date-fns-tz")
324
328
  ]));
325
- }, u = b(() => {
326
- let m = "yyyy/MM/dd";
327
- if (i.value && l)
329
+ }, u = y(() => {
330
+ let c = "yyyy/MM/dd";
331
+ if (r.value && l)
328
332
  try {
329
- const r = oe("date.format").toString(), y = l.parse("29/10/1989", "P", /* @__PURE__ */ new Date());
330
- l.format(y, r), m = r;
333
+ const i = oe("date.format").toString(), k = l.parse("29/10/1989", "P", /* @__PURE__ */ new Date());
334
+ l.format(k, i), c = i;
331
335
  } catch {
332
336
  }
333
- return m;
334
- }), i = I(!1);
337
+ return c;
338
+ }), r = I(!1);
335
339
  T(async () => {
336
340
  await s();
337
- const m = setInterval(() => {
338
- ie() && (i.value = !0, clearInterval(m));
341
+ const c = setInterval(() => {
342
+ re() && (r.value = !0, clearInterval(c));
339
343
  }, 50);
340
344
  });
341
- const o = b(() => re()), n = e, d = a, c = (m) => !m || !t ? null : Array.isArray(m) ? m.map((r) => t.fromZonedTime(r, Intl.DateTimeFormat().resolvedOptions().timeZone)) : t.fromZonedTime(m, Intl.DateTimeFormat().resolvedOptions().timeZone), p = b(() => c(n.modelValue)), f = b(() => c(n.min)), k = b(() => c(n.max)), x = (m) => {
342
- d("update:modelValue", m);
345
+ const o = y(() => ie()), n = e, d = a, f = (c) => !c || !t ? null : Array.isArray(c) ? c.map((i) => t.fromZonedTime(i, Intl.DateTimeFormat().resolvedOptions().timeZone)) : t.fromZonedTime(c, Intl.DateTimeFormat().resolvedOptions().timeZone), g = y(() => f(n.modelValue)), m = y(() => f(n.min)), p = y(() => f(n.max)), x = (c) => {
346
+ d("update:modelValue", c);
343
347
  };
344
- return (m, r) => (h(), S(se, null, [
345
- u.value ? (h(), $(z(de), {
348
+ return (c, i) => (b(), S(se, null, [
349
+ u.value ? (b(), $(z(de), {
346
350
  key: 0,
347
351
  class: "print:hidden wv-input wv-date-input",
348
- "model-value": p.value,
349
- "min-date": f.value,
350
- "max-date": k.value,
352
+ "model-value": g.value,
353
+ "min-date": m.value,
354
+ "max-date": p.value,
351
355
  "enable-time-picker": e.enableTimePicker,
352
356
  format: u.value,
353
357
  locale: o.value,
354
358
  range: e.range,
355
- "select-text": m.$t("Select"),
356
- "cancel-text-text": m.$t("Cancel"),
357
- "now-button-label": m.$t("Now"),
359
+ "select-text": c.$t("Select"),
360
+ "cancel-text-text": c.$t("Cancel"),
361
+ "now-button-label": c.$t("Now"),
358
362
  "time-picker": !1,
359
363
  "auto-apply": !0,
360
364
  "partial-flow": !0,
@@ -385,17 +389,17 @@ const D = /* @__PURE__ */ new WeakMap(), $e = (e, a) => {
385
389
  },
386
390
  emits: ["update:checked", "update:modelValue"],
387
391
  setup(e, { emit: a }) {
388
- const l = a, t = e, s = b(() => ({
392
+ const l = a, t = e, s = y(() => ({
389
393
  "--size": `${t.size}rem`
390
- })), u = b({
394
+ })), u = y({
391
395
  get() {
392
396
  return !!t.modelValue;
393
397
  },
394
- set(i) {
395
- t.disabled || (l("update:modelValue", i), l("update:checked", i));
398
+ set(r) {
399
+ t.disabled || (l("update:modelValue", r), l("update:checked", r));
396
400
  }
397
401
  });
398
- return (i, o) => (h(), S("label", {
402
+ return (r, o) => (b(), S("label", {
399
403
  class: w(["inline-flex items-center", { "cursor-pointer": !e.disabled }])
400
404
  }, [
401
405
  O(U("input", {
@@ -420,11 +424,11 @@ const D = /* @__PURE__ */ new WeakMap(), $e = (e, a) => {
420
424
  }, te = /* @__PURE__ */ X(Ne, [["__scopeId", "data-v-d62d3d36"]]);
421
425
  function Le(e, a) {
422
426
  var l = -1, t = fe(e) ? Array(e.length) : [];
423
- return ge(e, function(s, u, i) {
424
- t[++l] = a(s, u, i);
427
+ return ge(e, function(s, u, r) {
428
+ t[++l] = a(s, u, r);
425
429
  }), t;
426
430
  }
427
- function F(e, a) {
431
+ function D(e, a) {
428
432
  var l = he(e) ? ce : Le;
429
433
  return l(e, pe(a));
430
434
  }
@@ -483,7 +487,7 @@ const ae = {
483
487
  },
484
488
  emits: ["update:modelValue", "tag"],
485
489
  setup(e, { emit: a }) {
486
- const l = a, t = e, s = b({
490
+ const l = a, t = e, s = y({
487
491
  get() {
488
492
  return Array.isArray(t.modelValue) ? u.value.filter((n) => t.modelValue.includes(n == null ? void 0 : n.value)) : u.value.find((n) => (n == null ? void 0 : n.value) === t.modelValue);
489
493
  },
@@ -492,29 +496,29 @@ const ae = {
492
496
  if (!t.multiple)
493
497
  l("update:modelValue", n == null ? void 0 : n.value);
494
498
  else {
495
- const d = F(n, (c) => c == null ? void 0 : c.value);
499
+ const d = D(n, (f) => f == null ? void 0 : f.value);
496
500
  l("update:modelValue", d);
497
501
  }
498
502
  }
499
- }), u = b(() => F(t == null ? void 0 : t.options, (n) => typeof n == "string" ? {
503
+ }), u = y(() => D(t == null ? void 0 : t.options, (n) => typeof n == "string" ? {
500
504
  label: n,
501
505
  value: n
502
- } : n) ?? []), i = (n) => {
506
+ } : n) ?? []), r = (n) => {
503
507
  if (t.deselectable) {
504
508
  let d;
505
509
  if (t.multiple) {
506
- const c = n == null ? void 0 : n.value;
507
- d = F(s.value ?? [], (f) => f == null ? void 0 : f.value).filter((f) => f !== c);
510
+ const f = n == null ? void 0 : n.value;
511
+ d = D(s.value ?? [], (m) => m == null ? void 0 : m.value).filter((m) => m !== f);
508
512
  }
509
513
  l("update:modelValue", d);
510
514
  }
511
515
  }, o = (n) => {
512
516
  l("tag", n);
513
517
  };
514
- return (n, d) => (h(), $(z(me), {
518
+ return (n, d) => (b(), $(z(me), {
515
519
  id: "value",
516
520
  modelValue: s.value,
517
- "onUpdate:modelValue": d[0] || (d[0] = (c) => s.value = c),
521
+ "onUpdate:modelValue": d[0] || (d[0] = (f) => s.value = f),
518
522
  class: "wv-input wv-select-input border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm",
519
523
  options: u.value,
520
524
  placeholder: e.placeholder ?? n.$t("select.placeholder"),
@@ -530,81 +534,81 @@ const ae = {
530
534
  "group-label": e.groupLabel,
531
535
  taggable: e.taggable,
532
536
  onTag: o,
533
- onRemove: i
537
+ onRemove: r
534
538
  }, q({
535
- maxElements: g(() => [
539
+ maxElements: h(() => [
536
540
  M(A(n.$tChoice("select.maxElements", e.max)), 1)
537
541
  ]),
538
- noResult: g(() => [
542
+ noResult: h(() => [
539
543
  M(A(n.$t("select.noResult")), 1)
540
544
  ]),
541
- noOptions: g(() => [
545
+ noOptions: h(() => [
542
546
  M(A(n.$t("select.noOptions")), 1)
543
547
  ]),
544
- tag: g(() => [
548
+ tag: h(() => [
545
549
  M(A(n.$t("select.tag")), 1)
546
550
  ]),
547
551
  _: 2
548
552
  }, [
549
553
  n.$slots.beforeList ? {
550
554
  name: "beforeList",
551
- fn: g(() => [
555
+ fn: h(() => [
552
556
  v(n.$slots, "beforeList")
553
557
  ]),
554
558
  key: "0"
555
559
  } : void 0,
556
560
  n.$slots.afterList ? {
557
561
  name: "afterList",
558
- fn: g(() => [
562
+ fn: h(() => [
559
563
  v(n.$slots, "afterList")
560
564
  ]),
561
565
  key: "1"
562
566
  } : void 0,
563
567
  n.$slots.caret ? {
564
568
  name: "caret",
565
- fn: g(() => [
569
+ fn: h(() => [
566
570
  v(n.$slots, "caret")
567
571
  ]),
568
572
  key: "2"
569
573
  } : void 0,
570
574
  n.$slots.singleLabel ? {
571
575
  name: "singleLabel",
572
- fn: g(() => [
576
+ fn: h(() => [
573
577
  v(n.$slots, "singleLabel")
574
578
  ]),
575
579
  key: "3"
576
580
  } : void 0,
577
581
  n.$slots.placeholder ? {
578
582
  name: "placeholder",
579
- fn: g(() => [
583
+ fn: h(() => [
580
584
  v(n.$slots, "placeholder")
581
585
  ]),
582
586
  key: "4"
583
587
  } : void 0,
584
588
  n.$slots.limit ? {
585
589
  name: "limit",
586
- fn: g(() => [
590
+ fn: h(() => [
587
591
  v(n.$slots, "limit")
588
592
  ]),
589
593
  key: "5"
590
594
  } : void 0,
591
595
  n.$slots.clear ? {
592
596
  name: "clear",
593
- fn: g(() => [
597
+ fn: h(() => [
594
598
  v(n.$slots, "clear")
595
599
  ]),
596
600
  key: "6"
597
601
  } : void 0,
598
602
  n.$slots.tag ? {
599
603
  name: "tag",
600
- fn: g(() => [
604
+ fn: h(() => [
601
605
  v(n.$slots, "tag")
602
606
  ]),
603
607
  key: "7"
604
608
  } : void 0,
605
609
  n.$slots.selection ? {
606
610
  name: "selection",
607
- fn: g(() => [
611
+ fn: h(() => [
608
612
  v(n.$slots, "selection")
609
613
  ]),
610
614
  key: "8"
@@ -622,7 +626,7 @@ const ae = {
622
626
  const l = I(null);
623
627
  return T(() => {
624
628
  l.value.hasAttribute("autofocus") && l.value.focus();
625
- }), a({ focus: () => l.value.focus() }), (t, s) => (h(), S("textarea", {
629
+ }), a({ focus: () => l.value.focus() }), (t, s) => (b(), S("textarea", {
626
630
  ref_key: "input",
627
631
  ref: l,
628
632
  class: "wv-input wv-textarea-input border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm disabled:bg-gray-200",
@@ -631,7 +635,7 @@ const ae = {
631
635
  onInput: s[0] || (s[0] = (u) => t.$emit("update:modelValue", u.target.value))
632
636
  }, null, 40, Re));
633
637
  }
634
- }, Pe = {
638
+ }, Fe = {
635
639
  key: 1,
636
640
  class: "h-10 flex items-center"
637
641
  }, ne = {
@@ -704,8 +708,8 @@ const ae = {
704
708
  T(() => {
705
709
  s.value = H("input_group_");
706
710
  });
707
- const u = b(() => l.type === "tel" ? "(###) ###-####" : null);
708
- return (i, o) => e.type === "checkbox" ? (h(), $(Y, {
711
+ const u = y(() => l.type === "tel" ? "(###) ###-####" : null);
712
+ return (r, o) => e.type === "checkbox" ? (b(), $(Y, {
709
713
  key: 0,
710
714
  id: s.value,
711
715
  name: e.name,
@@ -713,7 +717,7 @@ const ae = {
713
717
  class: w("size-10 " + e.customClass),
714
718
  disabled: e.disabled,
715
719
  "onUpdate:modelValue": o[0] || (o[0] = (n) => t("update:modelValue", n))
716
- }, null, 8, ["id", "name", "model-value", "class", "disabled"])) : e.type === "toggle" ? (h(), S("div", Pe, [
720
+ }, null, 8, ["id", "name", "model-value", "class", "disabled"])) : e.type === "toggle" ? (b(), S("div", Fe, [
717
721
  L(te, {
718
722
  id: s.value,
719
723
  name: e.name,
@@ -723,7 +727,7 @@ const ae = {
723
727
  disabled: e.disabled,
724
728
  "onUpdate:modelValue": o[1] || (o[1] = (n) => t("update:modelValue", n))
725
729
  }, null, 8, ["id", "name", "model-value", "class", "disabled"])
726
- ])) : e.type === "select" ? (h(), $(ae, {
730
+ ])) : e.type === "select" ? (b(), $(ae, {
727
731
  key: 2,
728
732
  id: s.value,
729
733
  name: e.name,
@@ -737,7 +741,7 @@ const ae = {
737
741
  deselectable: e.deselectable,
738
742
  "onUpdate:modelValue": o[2] || (o[2] = (n) => t("update:modelValue", n)),
739
743
  onTag: o[3] || (o[3] = (n) => t("tag", n))
740
- }, null, 8, ["id", "name", "model-value", "class", "options", "disabled", "multiple", "searchable", "taggable", "deselectable"])) : e.type === "textarea" ? (h(), $(le, {
744
+ }, null, 8, ["id", "name", "model-value", "class", "options", "disabled", "multiple", "searchable", "taggable", "deselectable"])) : e.type === "textarea" ? (b(), $(le, {
741
745
  key: 3,
742
746
  id: s.value,
743
747
  name: e.name,
@@ -746,7 +750,7 @@ const ae = {
746
750
  placeholder: e.placeholder,
747
751
  disabled: e.disabled,
748
752
  "onUpdate:modelValue": o[4] || (o[4] = (n) => t("update:modelValue", n))
749
- }, null, 8, ["id", "name", "model-value", "class", "placeholder", "disabled"])) : e.type === "date" ? (h(), $(ee, {
753
+ }, null, 8, ["id", "name", "model-value", "class", "placeholder", "disabled"])) : e.type === "date" ? (b(), $(ee, {
750
754
  key: 4,
751
755
  id: s.value,
752
756
  name: e.name,
@@ -758,7 +762,7 @@ const ae = {
758
762
  "enable-time-picker": e.enableTimePicker,
759
763
  disabled: e.disabled,
760
764
  "onUpdate:modelValue": o[5] || (o[5] = (n) => t("update:modelValue", n))
761
- }, null, 8, ["id", "name", "model-value", "class", "max", "min", "range", "enable-time-picker", "disabled"])) : (h(), $(W, {
765
+ }, null, 8, ["id", "name", "model-value", "class", "max", "min", "range", "enable-time-picker", "disabled"])) : (b(), $(W, {
762
766
  key: 5,
763
767
  id: s.value,
764
768
  type: e.type,
@@ -774,23 +778,23 @@ const ae = {
774
778
  class: w("w-full " + e.customClass),
775
779
  "onUpdate:modelValue": o[6] || (o[6] = (n) => t("update:modelValue", n))
776
780
  }, q({ _: 2 }, [
777
- i.$slots.prefix ? {
781
+ r.$slots.prefix ? {
778
782
  name: "prefix",
779
- fn: g(() => [
780
- v(i.$slots, "prefix")
783
+ fn: h(() => [
784
+ v(r.$slots, "prefix")
781
785
  ]),
782
786
  key: "0"
783
787
  } : void 0,
784
- i.$slots.suffix ? {
788
+ r.$slots.suffix ? {
785
789
  name: "suffix",
786
- fn: g(() => [
787
- v(i.$slots, "suffix")
790
+ fn: h(() => [
791
+ v(r.$slots, "suffix")
788
792
  ]),
789
793
  key: "1"
790
794
  } : void 0
791
795
  ]), 1032, ["id", "type", "name", "placeholder", "model-value", "disabled", "min", "max", "mask", "precision", "step", "class"]));
792
796
  }
793
- }, De = {
797
+ }, Pe = {
794
798
  __name: "InputGroupComponent",
795
799
  props: {
796
800
  modelValue: String,
@@ -869,8 +873,8 @@ const ae = {
869
873
  T(() => {
870
874
  s.value = H("input_group_");
871
875
  });
872
- const u = b(() => l.type === "tel" ? "(###) ###-####" : null);
873
- return (i, o) => (h(), S("div", {
876
+ const u = y(() => l.type === "tel" ? "(###) ###-####" : null);
877
+ return (r, o) => (b(), S("div", {
874
878
  class: w(["w-full", { error: e.errors !== null && e.errors !== "" }])
875
879
  }, [
876
880
  L(K, {
@@ -879,7 +883,7 @@ const ae = {
879
883
  required: e.required,
880
884
  class: "w-full mb-2"
881
885
  }, {
882
- default: g(() => [
886
+ default: h(() => [
883
887
  M(A(e.label), 1)
884
888
  ]),
885
889
  _: 1
@@ -907,22 +911,22 @@ const ae = {
907
911
  "onUpdate:modelValue": o[0] || (o[0] = (n) => t("update:modelValue", n)),
908
912
  onTag: o[1] || (o[1] = (n) => t("tag", n))
909
913
  }, q({ _: 2 }, [
910
- i.$slots.prefix ? {
914
+ r.$slots.prefix ? {
911
915
  name: "prefix",
912
- fn: g(() => [
913
- v(i.$slots, "prefix")
916
+ fn: h(() => [
917
+ v(r.$slots, "prefix")
914
918
  ]),
915
919
  key: "0"
916
920
  } : void 0,
917
- i.$slots.suffix ? {
921
+ r.$slots.suffix ? {
918
922
  name: "suffix",
919
- fn: g(() => [
920
- v(i.$slots, "suffix")
923
+ fn: h(() => [
924
+ v(r.$slots, "suffix")
921
925
  ]),
922
926
  key: "1"
923
927
  } : void 0
924
928
  ]), 1032, ["id", "name", "type", "model-value", "disabled", "multiple", "options", "max", "min", "range", "mask", "searchable", "placeholder", "taggable", "deselectable", "enable-time-picker", "custom-class", "precision", "step"]),
925
- e.errors ? (h(), $(Q, {
929
+ e.errors ? (b(), $(Q, {
926
930
  key: 0,
927
931
  class: "mt-2",
928
932
  message: e.errors
@@ -934,7 +938,7 @@ const ae = {
934
938
  DateComponent: ee,
935
939
  ErrorComponent: Q,
936
940
  InputComponent: ne,
937
- InputGroupComponent: De,
941
+ InputGroupComponent: Pe,
938
942
  LabelComponent: K,
939
943
  SelectComponent: ae,
940
944
  TextareaComponent: le,
@@ -946,7 +950,7 @@ export {
946
950
  ee as DateComponent,
947
951
  Q as ErrorComponent,
948
952
  ne as InputComponent,
949
- De as InputGroupComponent,
953
+ Pe as InputGroupComponent,
950
954
  K as LabelComponent,
951
955
  ae as SelectComponent,
952
956
  W as TextInputComponent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilio-xyz/webilio-vue",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host 0.0.0.0",