adverich-kun-ui 0.1.497 → 0.1.499

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.
@@ -41,7 +41,6 @@ function U(t, y, c, v) {
41
41
  return S(e) ? t.returnObject ? e.map((r) => r[n]).join(" - ") : e.map((r) => r).join(" - ") : u && typeof e != "number" ? e.includes(",") ? e.split(",") : e : ((f = e == null ? void 0 : e.toString) == null ? void 0 : f.call(e)) ?? "";
42
42
  }
43
43
  function C(e) {
44
- console.log(e);
45
44
  try {
46
45
  let n = null;
47
46
  if (l.value = L(e), !t.multiple)
@@ -1,7 +1,7 @@
1
- import { ref as a, inject as V, computed as E, watch as g, onUnmounted as T } from "vue";
1
+ import { ref as a, inject as V, computed as E, watch as F, onUnmounted as T } from "vue";
2
2
  import { debounce as j } from "../../../../utils/utils.js";
3
3
  function R(u, r) {
4
- const l = a(u.modelValue ?? ""), o = a(!1), t = a(""), n = a(!1), F = a(null), h = a(null), s = a(!1), d = V("registerField", null), v = V("unregisterField", null), y = E(() => u.error || !!t.value && n.value), c = async () => {
4
+ const l = a(u.modelValue ?? ""), o = a(!1), t = a(""), n = a(!1), g = a(null), h = a(null), s = a(!1), d = V("registerField", null), v = V("unregisterField", null), y = E(() => u.error || !!t.value && n.value), c = async () => {
5
5
  for (const e of u.rules) {
6
6
  const m = await Promise.resolve(e(l.value));
7
7
  if (m !== !0) return m;
@@ -11,9 +11,9 @@ function R(u, r) {
11
11
  const e = await c();
12
12
  t.value = e === !0 ? "" : e;
13
13
  }, u.debounce ?? 300);
14
- g(() => u.modelValue, (e) => {
14
+ F(() => u.modelValue, (e) => {
15
15
  e !== l.value && (s.value = !0, l.value = e ?? "");
16
- }), g(l, () => {
16
+ }), F(l, () => {
17
17
  if (s.value) {
18
18
  s.value = !1;
19
19
  return;
@@ -29,7 +29,7 @@ function R(u, r) {
29
29
  }
30
30
  r("blur");
31
31
  }, B = () => {
32
- console.log("aaa"), o.value = !0, r("focus");
32
+ o.value = !0, r("focus");
33
33
  }, I = () => {
34
34
  l.value = "", r("update:modelValue", ""), n.value = !0, u.validateOnBlur || f();
35
35
  }, i = async () => {
@@ -44,7 +44,7 @@ function R(u, r) {
44
44
  return d && d({ validate: i }), T(() => {
45
45
  v && v({ validate: i });
46
46
  }), {
47
- inputField: F,
47
+ inputField: g,
48
48
  inputValue: l,
49
49
  rootRef: h,
50
50
  inputFocused: o,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.497",
3
+ "version": "0.1.499",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",