adverich-kun-ui 0.1.191 → 0.1.192

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.
@@ -1,4 +1,4 @@
1
- import { ref as n, provide as s, createElementBlock as h, openBlock as y, mergeProps as x, withModifiers as S, renderSlot as w } from "vue";
1
+ import { ref as l, provide as s, createElementBlock as h, openBlock as y, mergeProps as x, withModifiers as S, renderSlot as w } from "vue";
2
2
  const b = {
3
3
  __name: "KunForm",
4
4
  props: {
@@ -16,15 +16,15 @@ const b = {
16
16
  }
17
17
  },
18
18
  emits: ["submit"],
19
- setup(o, { expose: u, emit: d }) {
20
- const i = o, f = d, a = n([]), r = n(!0);
21
- function c(e) {
19
+ setup(o, { expose: u, emit: f }) {
20
+ const i = o, d = f, a = l([]), r = l(!0);
21
+ function p(e) {
22
22
  a.value.push(e);
23
23
  }
24
- function p(e) {
24
+ function c(e) {
25
25
  a.value = a.value.filter((t) => t !== e);
26
26
  }
27
- async function l() {
27
+ async function n() {
28
28
  const e = await Promise.all(
29
29
  a.value.map(async (t) => await t.validate())
30
30
  );
@@ -41,12 +41,12 @@ const b = {
41
41
  });
42
42
  }
43
43
  function g(e) {
44
- e == null || e.preventDefault(), l().then(({ valid: t }) => {
45
- t && f("submit");
44
+ e && typeof e.preventDefault == "function" && e.preventDefault(), n().then(({ valid: t }) => {
45
+ t && d("submit");
46
46
  });
47
47
  }
48
- return s("registerField", c), s("unregisterField", p), u({
49
- validate: l,
48
+ return s("registerField", p), s("unregisterField", c), u({
49
+ validate: n,
50
50
  reset: m,
51
51
  resetValidation: v
52
52
  }), (e, t) => (y(), h("form", x({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.191",
3
+ "version": "0.1.192",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",