adverich-kun-ui 0.1.243 → 0.1.244

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,25 @@
1
- function c(n, t) {
2
- var r;
1
+ function m(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
+ const e = (i = n.columnRowText) == null ? void 0 : i.call(n, t, n);
14
+ return u(e);
11
15
  }
12
- const e = t == null ? void 0 : t[n.value];
13
- return u(e);
16
+ const o = t == null ? void 0 : t[n.value];
17
+ return u(o);
14
18
  }
15
- function m(n, t) {
16
- return t == null ? "Sin datos" : (i[n.columnFormat] || i.default)(t);
19
+ function f(n, t) {
20
+ return t == null ? "Sin datos" : (s[n.columnFormat] || s.default)(t);
17
21
  }
18
- const i = {
22
+ const s = {
19
23
  default: (n) => n,
20
24
  // TEXTS
21
25
  text: (n) => String(n),
@@ -58,20 +62,20 @@ const i = {
58
62
  },
59
63
  secondsToTime: (n) => a(n ?? 0)
60
64
  };
61
- function s(n, t) {
62
- return !n || !t ? n : t.split(".").reduce((e, r) => e == null ? void 0 : e[r], n);
65
+ function c(n, t) {
66
+ return !n || !t ? n : t.split(".").reduce((o, r) => o == null ? void 0 : o[r], n);
63
67
  }
64
68
  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
+ const t = Math.floor(n / 3600), o = Math.floor(n % 3600 / 60), r = n % 60;
70
+ return `${t} horas, ${o} minutos y ${r} segundos`;
67
71
  }
68
72
  function u(n) {
69
73
  if (n != null && !(n === "null" || n === "undefined"))
70
74
  return n;
71
75
  }
72
76
  export {
73
- m as formatValue,
74
- i as formatters,
75
- s as getNestedValue,
76
- c as getValue
77
+ f as formatValue,
78
+ s as formatters,
79
+ c as getNestedValue,
80
+ m as getValue
77
81
  };
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.244",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",