@webilio-xyz/webilio-vue 1.1.2 → 1.1.3

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 +112 -108
  2. package/package.json +1 -1
package/dist/Input.js CHANGED
@@ -1,12 +1,12 @@
1
- import { computed as y, withDirectives as U, openBlock as b, createElementBlock as S, vModelCheckbox as J, ref as I, onMounted as T, renderSlot as v, 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 A, toDisplayString as M } from "vue";
2
- import { trans as oe, isLoaded as ie, getActiveLanguage as re } from "laravel-vue-i18n";
3
- import de from "@vuepic/vue-datepicker";
4
- import { s as me, u as H, _ as K, E as Q } from "./LabelComponent-CfsH2P2a.js";
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";
2
+ import { trans as re, isLoaded as de, getActiveLanguage as me } from "laravel-vue-i18n";
3
+ import ce from "@vuepic/vue-datepicker";
4
+ import { s as pe, u as H, _ as K, E as Q } from "./LabelComponent-CfsH2P2a.js";
5
5
  import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { a as ce } from "./toString-CykDHNcE.js";
7
- import { b as pe } from "./_baseIteratee-r_6HOn93.js";
8
- import { i as fe, b as ge } from "./_baseEach-BeZ5ghU7.js";
9
- import { i as he } from "./isObject-BD_iszZg.js";
6
+ import { a as fe } from "./toString-CykDHNcE.js";
7
+ import { b as ge } from "./_baseIteratee-r_6HOn93.js";
8
+ import { i as he, b as be } from "./_baseEach-BeZ5ghU7.js";
9
+ import { i as ye } from "./isObject-BD_iszZg.js";
10
10
  const Y = {
11
11
  __name: "CheckboxComponent",
12
12
  props: {
@@ -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 = y({
20
+ const l = a, t = e, s = v({
21
21
  get() {
22
22
  return t.checked;
23
23
  },
@@ -34,7 +34,7 @@ const Y = {
34
34
  ]);
35
35
  }
36
36
  };
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);
37
+ var ve = Object.defineProperty, ke = (e, a, l) => a in e ? ve(e, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[a] = l, R = (e, a, l) => ke(e, typeof a != "symbol" ? a + "" : a, l);
38
38
  const j = {
39
39
  "#": { pattern: /[0-9]/ },
40
40
  "@": { pattern: /[a-zA-Z]/ },
@@ -46,7 +46,7 @@ const j = {
46
46
  maximumFractionDigits: a,
47
47
  roundingMode: "trunc"
48
48
  });
49
- }, ve = (e, a = !0, l) => {
49
+ }, xe = (e, a = !0, l) => {
50
50
  var t, s, u, i;
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);
@@ -60,7 +60,7 @@ const j = {
60
60
  let c = d.format(parseFloat(p));
61
61
  return a ? n > 0 && p.endsWith(".") && !p.slice(0, -1).includes(".") && (c += m) : c = Z(c, g, m), o + c;
62
62
  };
63
- class ke {
63
+ class Ve {
64
64
  constructor(a = {}) {
65
65
  R(this, "opts", {}), R(this, "memo", /* @__PURE__ */ new Map());
66
66
  const l = { ...a };
@@ -108,15 +108,15 @@ 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 ve(a, t, this.opts);
111
+ if (this.opts.number != null) return xe(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
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;
116
- let x, c = -1, r = this.isReversed() ? u.length - 1 : 0, k = this.isReversed() ? a.length - 1 : 0, F = !1;
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
- const $ = u.charAt(r), w = n[$], E = (w == null ? void 0 : w.transform) != null ? w.transform(a.charAt(k)) : a.charAt(k);
119
- if (!i.includes(r) && w != null ? (E.match(w.pattern) != null ? (o[f](E), w.repeated ? (c === -1 ? c = r : r === g && r !== c && (r = c - d), g === c && (r -= d)) : w.multiple && (F = !0, r -= d), r += d) : w.multiple ? F && (r += d, k -= d, F = !1) : E === x ? x = void 0 : w.optional && (r += d, k -= d), k += d) : (t && !this.isEager() && o[f]($), E === $ && !this.isEager() ? k += d : x = $, this.isEager() || (r += d)), this.isEager())
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
120
  for (; p(r) && (n[u.charAt(r)] == null || i.includes(r)); ) {
121
121
  if (t) {
122
122
  if (o[f](u.charAt(r)), a.charAt(k) === u.charAt(r)) {
@@ -130,12 +130,12 @@ class ke {
130
130
  return this.memo.set(s, o.join("")), this.memo.get(s);
131
131
  }
132
132
  }
133
- const _ = (e) => JSON.parse(e.replaceAll("'", '"')), xe = (e, a = {}) => {
133
+ const _ = (e) => JSON.parse(e.replaceAll("'", '"')), we = (e, a = {}) => {
134
134
  const l = { ...a };
135
- e.dataset.maska != null && e.dataset.maska !== "" && (l.mask = Ve(e.dataset.maska)), e.dataset.maskaEager != null && (l.eager = B(e.dataset.maskaEager)), e.dataset.maskaReversed != null && (l.reversed = B(e.dataset.maskaReversed)), e.dataset.maskaTokensReplace != null && (l.tokensReplace = B(e.dataset.maskaTokensReplace)), e.dataset.maskaTokens != null && (l.tokens = we(e.dataset.maskaTokens));
135
+ e.dataset.maska != null && e.dataset.maska !== "" && (l.mask = Se(e.dataset.maska)), e.dataset.maskaEager != null && (l.eager = T(e.dataset.maskaEager)), e.dataset.maskaReversed != null && (l.reversed = T(e.dataset.maskaReversed)), e.dataset.maskaTokensReplace != null && (l.tokensReplace = T(e.dataset.maskaTokensReplace)), e.dataset.maskaTokens != null && (l.tokens = Ce(e.dataset.maskaTokens));
136
136
  const t = {};
137
- return e.dataset.maskaNumberLocale != null && (t.locale = e.dataset.maskaNumberLocale), e.dataset.maskaNumberFraction != null && (t.fraction = parseInt(e.dataset.maskaNumberFraction)), e.dataset.maskaNumberUnsigned != null && (t.unsigned = B(e.dataset.maskaNumberUnsigned)), (e.dataset.maskaNumber != null || Object.values(t).length > 0) && (l.number = t), l;
138
- }, B = (e) => e !== "" ? !!JSON.parse(e) : !0, Ve = (e) => e.startsWith("[") && e.endsWith("]") ? _(e) : e, we = (e) => {
137
+ return e.dataset.maskaNumberLocale != null && (t.locale = e.dataset.maskaNumberLocale), e.dataset.maskaNumberFraction != null && (t.fraction = parseInt(e.dataset.maskaNumberFraction)), e.dataset.maskaNumberUnsigned != null && (t.unsigned = T(e.dataset.maskaNumberUnsigned)), (e.dataset.maskaNumber != null || Object.values(t).length > 0) && (l.number = t), l;
138
+ }, T = (e) => e !== "" ? !!JSON.parse(e) : !0, Se = (e) => e.startsWith("[") && e.endsWith("]") ? _(e) : e, Ce = (e) => {
139
139
  if (e.startsWith("{") && e.endsWith("}"))
140
140
  return _(e);
141
141
  const a = {};
@@ -149,7 +149,7 @@ const _ = (e) => JSON.parse(e.replaceAll("'", '"')), xe = (e, a = {}) => {
149
149
  };
150
150
  }), a;
151
151
  };
152
- class Se {
152
+ class $e {
153
153
  constructor(a, l = {}) {
154
154
  R(this, "items", /* @__PURE__ */ new Map()), R(this, "onInput", (t) => {
155
155
  if (t instanceof CustomEvent && t.type === "input")
@@ -173,7 +173,7 @@ class Se {
173
173
  const l = this.getOptions(this.options);
174
174
  for (const t of a) {
175
175
  this.items.has(t) || t.addEventListener("input", this.onInput, { capture: !0 });
176
- const s = new ke(xe(t, l));
176
+ const s = new Ve(we(t, l));
177
177
  this.items.set(t, s), queueMicrotask(() => this.updateValue(t)), t.selectionStart === null && s.isEager() && console.warn("Maska: input of `%s` type is not supported", t.type);
178
178
  }
179
179
  }
@@ -207,11 +207,11 @@ class Se {
207
207
  };
208
208
  }
209
209
  }
210
- const O = /* @__PURE__ */ new WeakMap(), Ce = (e, a) => {
210
+ const F = /* @__PURE__ */ new WeakMap(), Ae = (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);
214
- }, $e = (e, a) => {
214
+ }, Me = (e, a) => {
215
215
  var l;
216
216
  const t = e instanceof HTMLInputElement ? e : e.querySelector("input");
217
217
  if (t == null || (t == null ? void 0 : t.type) === "file") return;
@@ -219,15 +219,15 @@ const O = /* @__PURE__ */ new WeakMap(), Ce = (e, a) => {
219
219
  if (a.value != null && (s = typeof a.value == "string" ? { mask: a.value } : { ...a.value }), a.arg != null) {
220
220
  const u = (i) => {
221
221
  const o = a.modifiers.unmasked ? i.unmasked : a.modifiers.completed ? i.completed : i.masked;
222
- Ce(a, o);
222
+ Ae(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
- O.has(t) ? (l = O.get(t)) == null || l.update(s) : O.set(t, new Se(t, s));
227
- }, Ae = { 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" }, Me = {
226
+ F.has(t) ? (l = F.get(t)) == null || l.update(s) : F.set(t, new $e(t, s));
227
+ }, Ie = { 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" }, Te = {
228
228
  key: 0,
229
229
  class: "wv-text-input-prefix flex items-center pl-2"
230
- }, Ie = ["type", "inputmode", "value", "min", "max", "step"], Te = {
230
+ }, Ee = ["type", "inputmode", "value", "min", "max", "step"], Be = {
231
231
  key: 1,
232
232
  class: "wv-text-input-suffix flex items-center pr-2"
233
233
  }, W = {
@@ -259,7 +259,7 @@ const O = /* @__PURE__ */ new WeakMap(), Ce = (e, a) => {
259
259
  },
260
260
  emits: ["update:modelValue"],
261
261
  setup(e, { expose: a, emit: l }) {
262
- const t = e, s = l, u = y(() => t.type === "number"), i = 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) => {
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) => {
263
263
  if (!u.value || m === "" || m === "-" || m === "." || m === "-.") return m;
264
264
  const p = parseFloat(m);
265
265
  return isNaN(p) ? m : t.min !== null && p < parseFloat(t.min) ? t.min : t.max !== null && p > parseFloat(t.max) ? t.max : m;
@@ -273,12 +273,12 @@ const O = /* @__PURE__ */ new WeakMap(), Ce = (e, a) => {
273
273
  }
274
274
  }
275
275
  p = d(p), m.target.value = p, s("update:modelValue", p);
276
- }, g = I(null);
277
- return T(() => {
276
+ }, g = A(null);
277
+ return M(() => {
278
278
  g.value.hasAttribute("autofocus") && g.value.focus();
279
- }), a({ focus: () => g.value.focus() }), (m, p) => (b(), S("div", Ae, [
280
- m.$slots.prefix ? (b(), S("div", Me, [
281
- v(m.$slots, "prefix")
279
+ }), a({ focus: () => g.value.focus() }), (m, p) => (b(), S("div", Ie, [
280
+ m.$slots.prefix ? (b(), S("div", Te, [
281
+ y(m.$slots, "prefix")
282
282
  ])) : N("", !0),
283
283
  U(D("input", {
284
284
  ref_key: "input",
@@ -291,15 +291,15 @@ const O = /* @__PURE__ */ new WeakMap(), Ce = (e, a) => {
291
291
  max: e.max,
292
292
  step: n.value,
293
293
  onInput: f
294
- }, null, 42, Ie), [
295
- [z($e), e.mask]
294
+ }, null, 42, Ee), [
295
+ [z(Me), e.mask]
296
296
  ]),
297
- m.$slots.suffix ? (b(), S("div", Te, [
298
- v(m.$slots, "suffix")
297
+ m.$slots.suffix ? (b(), S("div", Be, [
298
+ y(m.$slots, "suffix")
299
299
  ])) : N("", !0)
300
300
  ]));
301
301
  }
302
- }, Ee = {
302
+ }, Ne = {
303
303
  __name: "DateComponent",
304
304
  props: {
305
305
  modelValue: String,
@@ -330,27 +330,27 @@ const O = /* @__PURE__ */ new WeakMap(), Ce = (e, a) => {
330
330
  import("date-fns"),
331
331
  import("date-fns-tz")
332
332
  ]));
333
- }, u = y(() => {
333
+ }, u = v(() => {
334
334
  let c = "yyyy/MM/dd";
335
335
  if (i.value && l)
336
336
  try {
337
- const r = oe("date.format").toString(), k = l.parse("29/10/1989", "P", /* @__PURE__ */ new Date());
337
+ const r = re("date.format").toString(), k = l.parse("29/10/1989", "P", /* @__PURE__ */ new Date());
338
338
  l.format(k, r), c = r;
339
339
  } catch {
340
340
  }
341
341
  return c;
342
- }), i = I(!1);
343
- T(async () => {
342
+ }), i = A(!1);
343
+ M(async () => {
344
344
  await s();
345
345
  const c = setInterval(() => {
346
- ie() && (i.value = !0, clearInterval(c));
346
+ de() && (i.value = !0, clearInterval(c));
347
347
  }, 50);
348
348
  });
349
- const o = y(() => re()), 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 = y(() => f(n.modelValue)), m = y(() => f(n.min)), p = y(() => f(n.max)), x = (c) => {
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) => {
350
350
  d("update:modelValue", c);
351
351
  };
352
352
  return (c, r) => (b(), S(se, null, [
353
- u.value ? (b(), C(z(de), {
353
+ u.value ? (b(), C(z(ce), {
354
354
  key: 0,
355
355
  class: "print:hidden wv-input wv-date-input",
356
356
  "model-value": g.value,
@@ -375,7 +375,7 @@ const O = /* @__PURE__ */ new WeakMap(), Ce = (e, a) => {
375
375
  }, null, 8, ["model-value"])
376
376
  ], 64));
377
377
  }
378
- }, ee = /* @__PURE__ */ X(Ee, [["__scopeId", "data-v-75d7c74c"]]), Be = ["disabled"], Ne = {
378
+ }, ee = /* @__PURE__ */ X(Ne, [["__scopeId", "data-v-75d7c74c"]]), Le = ["disabled"], Re = {
379
379
  __name: "ToggleComponent",
380
380
  props: {
381
381
  modelValue: {
@@ -393,9 +393,9 @@ const O = /* @__PURE__ */ new WeakMap(), Ce = (e, a) => {
393
393
  },
394
394
  emits: ["update:checked", "update:modelValue"],
395
395
  setup(e, { emit: a }) {
396
- const l = a, t = e, s = y(() => ({
396
+ const l = a, t = e, s = v(() => ({
397
397
  "--size": `${t.size}rem`
398
- })), u = y({
398
+ })), u = v({
399
399
  get() {
400
400
  return !!t.modelValue;
401
401
  },
@@ -412,7 +412,7 @@ const O = /* @__PURE__ */ new WeakMap(), Ce = (e, a) => {
412
412
  value: "",
413
413
  disabled: e.disabled,
414
414
  class: "sr-only peer"
415
- }, null, 8, Be), [
415
+ }, null, 8, Le), [
416
416
  [J, u.value]
417
417
  ]),
418
418
  D("div", {
@@ -425,16 +425,16 @@ const O = /* @__PURE__ */ new WeakMap(), Ce = (e, a) => {
425
425
  }, null, 6)
426
426
  ], 2));
427
427
  }
428
- }, te = /* @__PURE__ */ X(Ne, [["__scopeId", "data-v-d62d3d36"]]);
429
- function Le(e, a) {
430
- var l = -1, t = fe(e) ? Array(e.length) : [];
431
- return ge(e, function(s, u, i) {
428
+ }, te = /* @__PURE__ */ X(Re, [["__scopeId", "data-v-d62d3d36"]]);
429
+ function Pe(e, a) {
430
+ var l = -1, t = he(e) ? Array(e.length) : [];
431
+ return be(e, function(s, u, i) {
432
432
  t[++l] = a(s, u, i);
433
433
  }), t;
434
434
  }
435
- function P(e, a) {
436
- var l = he(e) ? ce : Le;
437
- return l(e, pe(a));
435
+ function O(e, a) {
436
+ var l = ye(e) ? fe : Pe;
437
+ return l(e, ge(a));
438
438
  }
439
439
  const ae = {
440
440
  __name: "SelectComponent",
@@ -491,7 +491,7 @@ const ae = {
491
491
  },
492
492
  emits: ["update:modelValue", "tag"],
493
493
  setup(e, { emit: a }) {
494
- const l = a, t = e, s = y({
494
+ const l = a, t = e, s = v({
495
495
  get() {
496
496
  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);
497
497
  },
@@ -500,11 +500,11 @@ const ae = {
500
500
  if (!t.multiple)
501
501
  l("update:modelValue", n == null ? void 0 : n.value);
502
502
  else {
503
- const d = P(n, (f) => f == null ? void 0 : f.value);
503
+ const d = O(n, (f) => f == null ? void 0 : f.value);
504
504
  l("update:modelValue", d);
505
505
  }
506
506
  }
507
- }), u = y(() => P(t == null ? void 0 : t.options, (n) => typeof n == "string" ? {
507
+ }), u = v(() => O(t == null ? void 0 : t.options, (n) => typeof n == "string" ? {
508
508
  label: n,
509
509
  value: n
510
510
  } : n) ?? []), i = (n) => {
@@ -512,14 +512,14 @@ const ae = {
512
512
  let d;
513
513
  if (t.multiple) {
514
514
  const f = n == null ? void 0 : n.value;
515
- d = P(s.value ?? [], (m) => m == null ? void 0 : m.value).filter((m) => m !== f);
515
+ d = O(s.value ?? [], (m) => m == null ? void 0 : m.value).filter((m) => m !== f);
516
516
  }
517
517
  l("update:modelValue", d);
518
518
  }
519
519
  }, o = (n) => {
520
520
  l("tag", n);
521
521
  };
522
- return (n, d) => (b(), C(z(me), {
522
+ return (n, d) => (b(), C(z(pe), {
523
523
  id: "value",
524
524
  modelValue: s.value,
525
525
  "onUpdate:modelValue": d[0] || (d[0] = (f) => s.value = f),
@@ -541,85 +541,89 @@ const ae = {
541
541
  onRemove: i
542
542
  }, q({
543
543
  maxElements: h(() => [
544
- A(M(n.$tChoice("select.maxElements", e.max)), 1)
544
+ E(B(n.$tChoice("select.maxElements", e.max)), 1)
545
545
  ]),
546
546
  noResult: h(() => [
547
- A(M(n.$t("select.noResult")), 1)
547
+ E(B(n.$t("select.noResult")), 1)
548
548
  ]),
549
549
  noOptions: h(() => [
550
- A(M(n.$t("select.noOptions")), 1)
551
- ]),
552
- tag: h(() => [
553
- A(M(n.$t("select.tag")), 1)
550
+ E(B(n.$t("select.noOptions")), 1)
554
551
  ]),
555
552
  _: 2
556
553
  }, [
554
+ n.$slots.tag ? {
555
+ name: "tag",
556
+ fn: h((f) => [
557
+ y(n.$slots, "tag", oe(ie(f)))
558
+ ]),
559
+ key: "0"
560
+ } : void 0,
557
561
  n.$slots.beforeList ? {
558
562
  name: "beforeList",
559
563
  fn: h(() => [
560
- v(n.$slots, "beforeList")
564
+ y(n.$slots, "beforeList")
561
565
  ]),
562
- key: "0"
566
+ key: "1"
563
567
  } : void 0,
564
568
  n.$slots.afterList ? {
565
569
  name: "afterList",
566
570
  fn: h(() => [
567
- v(n.$slots, "afterList")
571
+ y(n.$slots, "afterList")
568
572
  ]),
569
- key: "1"
573
+ key: "2"
570
574
  } : void 0,
571
575
  n.$slots.caret ? {
572
576
  name: "caret",
573
577
  fn: h(() => [
574
- v(n.$slots, "caret")
578
+ y(n.$slots, "caret")
575
579
  ]),
576
- key: "2"
580
+ key: "3"
577
581
  } : void 0,
578
582
  n.$slots.singleLabel ? {
579
583
  name: "singleLabel",
580
584
  fn: h(() => [
581
- v(n.$slots, "singleLabel")
585
+ y(n.$slots, "singleLabel")
582
586
  ]),
583
- key: "3"
587
+ key: "4"
584
588
  } : void 0,
585
589
  n.$slots.placeholder ? {
586
590
  name: "placeholder",
587
591
  fn: h(() => [
588
- v(n.$slots, "placeholder")
592
+ y(n.$slots, "placeholder")
589
593
  ]),
590
- key: "4"
594
+ key: "5"
591
595
  } : void 0,
592
596
  n.$slots.limit ? {
593
597
  name: "limit",
594
598
  fn: h(() => [
595
- v(n.$slots, "limit")
599
+ y(n.$slots, "limit")
596
600
  ]),
597
- key: "5"
601
+ key: "6"
598
602
  } : void 0,
599
603
  n.$slots.clear ? {
600
604
  name: "clear",
601
605
  fn: h(() => [
602
- v(n.$slots, "clear")
606
+ y(n.$slots, "clear")
603
607
  ]),
604
- key: "6"
608
+ key: "7"
605
609
  } : void 0,
606
610
  n.$slots.tag ? {
607
611
  name: "tag",
608
612
  fn: h(() => [
609
- v(n.$slots, "tag")
613
+ y(n.$slots, "tag")
610
614
  ]),
611
- key: "7"
615
+ key: "8"
612
616
  } : void 0,
613
617
  n.$slots.selection ? {
614
618
  name: "selection",
615
619
  fn: h(() => [
616
- v(n.$slots, "selection")
620
+ y(n.$slots, "selection")
617
621
  ]),
618
- key: "8"
622
+ key: "9"
619
623
  } : void 0
620
624
  ]), 1032, ["modelValue", "options", "placeholder", "multiple", "max", "open-direction", "close-on-select", "searchable", "group-select", "group-values", "group-label", "taggable"]));
621
625
  }
622
- }, Re = ["value", "placeholder"], le = {
626
+ }, Fe = ["value", "placeholder"], le = {
623
627
  __name: "TextareaComponent",
624
628
  props: {
625
629
  modelValue: String,
@@ -627,8 +631,8 @@ const ae = {
627
631
  },
628
632
  emits: ["update:modelValue"],
629
633
  setup(e, { expose: a }) {
630
- const l = I(null);
631
- return T(() => {
634
+ const l = A(null);
635
+ return M(() => {
632
636
  l.value.hasAttribute("autofocus") && l.value.focus();
633
637
  }), a({ focus: () => l.value.focus() }), (t, s) => (b(), S("textarea", {
634
638
  ref_key: "input",
@@ -637,9 +641,9 @@ const ae = {
637
641
  value: e.modelValue,
638
642
  placeholder: e.placeholder,
639
643
  onInput: s[0] || (s[0] = (u) => t.$emit("update:modelValue", u.target.value))
640
- }, null, 40, Re));
644
+ }, null, 40, Fe));
641
645
  }
642
- }, Fe = {
646
+ }, Oe = {
643
647
  key: 1,
644
648
  class: "h-10 flex items-center"
645
649
  }, ne = {
@@ -712,11 +716,11 @@ const ae = {
712
716
  },
713
717
  emits: ["update:modelValue", "tag"],
714
718
  setup(e, { emit: a }) {
715
- const l = e, t = a, s = I(null);
716
- T(() => {
719
+ const l = e, t = a, s = A(null);
720
+ M(() => {
717
721
  s.value = H("input_group_");
718
722
  });
719
- const u = y(() => l.type === "tel" ? "(###) ###-####" : null);
723
+ const u = v(() => l.type === "tel" ? "(###) ###-####" : null);
720
724
  return (i, o) => e.type === "checkbox" ? (b(), C(Y, {
721
725
  key: 0,
722
726
  id: s.value,
@@ -725,7 +729,7 @@ const ae = {
725
729
  class: V("size-10 " + e.customClass),
726
730
  disabled: e.disabled,
727
731
  "onUpdate:modelValue": o[0] || (o[0] = (n) => t("update:modelValue", n))
728
- }, null, 8, ["id", "name", "model-value", "class", "disabled"])) : e.type === "toggle" ? (b(), S("div", Fe, [
732
+ }, null, 8, ["id", "name", "model-value", "class", "disabled"])) : e.type === "toggle" ? (b(), S("div", Oe, [
729
733
  L(te, {
730
734
  id: s.value,
731
735
  name: e.name,
@@ -790,20 +794,20 @@ const ae = {
790
794
  i.$slots.prefix ? {
791
795
  name: "prefix",
792
796
  fn: h(() => [
793
- v(i.$slots, "prefix")
797
+ y(i.$slots, "prefix")
794
798
  ]),
795
799
  key: "0"
796
800
  } : void 0,
797
801
  i.$slots.suffix ? {
798
802
  name: "suffix",
799
803
  fn: h(() => [
800
- v(i.$slots, "suffix")
804
+ y(i.$slots, "suffix")
801
805
  ]),
802
806
  key: "1"
803
807
  } : void 0
804
808
  ]), 1032, ["id", "type", "name", "placeholder", "model-value", "disabled", "min", "max", "mask", "precision", "step", "class", "input-class"]));
805
809
  }
806
- }, Oe = {
810
+ }, De = {
807
811
  __name: "InputGroupComponent",
808
812
  props: {
809
813
  modelValue: String,
@@ -882,11 +886,11 @@ const ae = {
882
886
  },
883
887
  emits: ["update:modelValue", "tag"],
884
888
  setup(e, { emit: a }) {
885
- const l = e, t = a, s = I(null);
886
- T(() => {
889
+ const l = e, t = a, s = A(null);
890
+ M(() => {
887
891
  s.value = H("input_group_");
888
892
  });
889
- const u = y(() => l.type === "tel" ? "(###) ###-####" : null);
893
+ const u = v(() => l.type === "tel" ? "(###) ###-####" : null);
890
894
  return (i, o) => (b(), S("div", {
891
895
  class: V(["w-full", { error: e.errors !== null && e.errors !== "" }])
892
896
  }, [
@@ -897,7 +901,7 @@ const ae = {
897
901
  class: "w-full mb-2"
898
902
  }, {
899
903
  default: h(() => [
900
- A(M(e.label), 1)
904
+ E(B(e.label), 1)
901
905
  ]),
902
906
  _: 1
903
907
  }, 8, ["for", "value", "required"]),
@@ -928,14 +932,14 @@ const ae = {
928
932
  i.$slots.prefix ? {
929
933
  name: "prefix",
930
934
  fn: h(() => [
931
- v(i.$slots, "prefix")
935
+ y(i.$slots, "prefix")
932
936
  ]),
933
937
  key: "0"
934
938
  } : void 0,
935
939
  i.$slots.suffix ? {
936
940
  name: "suffix",
937
941
  fn: h(() => [
938
- v(i.$slots, "suffix")
942
+ y(i.$slots, "suffix")
939
943
  ]),
940
944
  key: "1"
941
945
  } : void 0
@@ -947,12 +951,12 @@ const ae = {
947
951
  }, null, 8, ["message"])) : N("", !0)
948
952
  ], 2));
949
953
  }
950
- }, Je = {
954
+ }, Ke = {
951
955
  CheckboxComponent: Y,
952
956
  DateComponent: ee,
953
957
  ErrorComponent: Q,
954
958
  InputComponent: ne,
955
- InputGroupComponent: Oe,
959
+ InputGroupComponent: De,
956
960
  LabelComponent: K,
957
961
  SelectComponent: ae,
958
962
  TextareaComponent: le,
@@ -964,11 +968,11 @@ export {
964
968
  ee as DateComponent,
965
969
  Q as ErrorComponent,
966
970
  ne as InputComponent,
967
- Oe as InputGroupComponent,
971
+ De as InputGroupComponent,
968
972
  K as LabelComponent,
969
973
  ae as SelectComponent,
970
974
  W as TextInputComponent,
971
975
  le as TextareaComponent,
972
976
  te as ToggleComponent,
973
- Je as default
977
+ Ke as default
974
978
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilio-xyz/webilio-vue",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host 0.0.0.0",