adverich-kun-ui 0.1.243 → 0.1.245

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.
@@ -54,7 +54,7 @@ const t = () => ({
54
54
  noDataText: { type: String, default: "No hay elementos disponibles" },
55
55
  loadingText: { type: String, default: "Cargando..." },
56
56
  // Slots control
57
- customSlots: Object,
57
+ customSlots: { type: Object, default: () => ({}) },
58
58
  showTopSlot: { type: Boolean, default: !1 },
59
59
  showBottomSlot: { type: Boolean, default: !1 }
60
60
  });
@@ -1,21 +1,26 @@
1
- function c(n, t) {
2
- var r;
1
+ function a(n, t) {
2
+ var r, i;
3
3
  if (!n || !n.value) return;
4
4
  if (n.columnType === "relation") {
5
- const o = s(t, n.relationPath);
6
- return u(o);
5
+ const e = c(t, n.relationPath);
6
+ return u(e);
7
7
  }
8
8
  if (n.columnType === "function") {
9
- const o = (r = n.columnFunction) == null ? void 0 : r.call(n, t, n);
10
- return u(o);
9
+ const e = (r = n.columnFunction) == null ? void 0 : r.call(n, t, n);
10
+ return u(e);
11
+ }
12
+ if (n.columnFormat === "function") {
13
+ console.log(n.columnRowText);
14
+ const e = (i = n.columnRowText) == null ? void 0 : i.call(n, t, n);
15
+ return console.log(`valor: ${e}`), u(e);
11
16
  }
12
- const e = t == null ? void 0 : t[n.value];
13
- return u(e);
17
+ const o = t == null ? void 0 : t[n.value];
18
+ return u(o);
14
19
  }
15
20
  function m(n, t) {
16
- return t == null ? "Sin datos" : (i[n.columnFormat] || i.default)(t);
21
+ return t == null ? "Sin datos" : (s[n.columnFormat] || s.default)(t);
17
22
  }
18
- const i = {
23
+ const s = {
19
24
  default: (n) => n,
20
25
  // TEXTS
21
26
  text: (n) => String(n),
@@ -56,14 +61,14 @@ const i = {
56
61
  second: "numeric"
57
62
  }).format(t);
58
63
  },
59
- secondsToTime: (n) => a(n ?? 0)
64
+ secondsToTime: (n) => l(n ?? 0)
60
65
  };
61
- function s(n, t) {
62
- return !n || !t ? n : t.split(".").reduce((e, r) => e == null ? void 0 : e[r], n);
66
+ function c(n, t) {
67
+ return !n || !t ? n : t.split(".").reduce((o, r) => o == null ? void 0 : o[r], n);
63
68
  }
64
- function a(n) {
65
- const t = Math.floor(n / 3600), e = Math.floor(n % 3600 / 60), r = n % 60;
66
- return `${t} horas, ${e} minutos y ${r} segundos`;
69
+ function l(n) {
70
+ const t = Math.floor(n / 3600), o = Math.floor(n % 3600 / 60), r = n % 60;
71
+ return `${t} horas, ${o} minutos y ${r} segundos`;
67
72
  }
68
73
  function u(n) {
69
74
  if (n != null && !(n === "null" || n === "undefined"))
@@ -71,7 +76,7 @@ function u(n) {
71
76
  }
72
77
  export {
73
78
  m as formatValue,
74
- i as formatters,
75
- s as getNestedValue,
76
- c as getValue
79
+ s as formatters,
80
+ c as getNestedValue,
81
+ a as getValue
77
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.243",
3
+ "version": "0.1.245",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",