adverich-kun-ui 0.1.129 → 0.1.131
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,49 +1,18 @@
|
|
|
1
1
|
const t = () => ({
|
|
2
|
-
items: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
},
|
|
6
|
-
headers: {
|
|
7
|
-
type: Array,
|
|
8
|
-
default: () => []
|
|
9
|
-
},
|
|
10
|
-
hasActions: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
default: !1
|
|
13
|
-
},
|
|
14
|
-
actionLabel: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "Acciones"
|
|
17
|
-
},
|
|
2
|
+
items: { type: Array, default: () => [] },
|
|
3
|
+
headers: { type: Array, default: () => [] },
|
|
4
|
+
hasActions: { type: Boolean, default: !1 },
|
|
5
|
+
actionLabel: { type: String, default: "Acciones" },
|
|
18
6
|
actionsAlign: String,
|
|
19
|
-
actionLoadingMap: {
|
|
20
|
-
type: Object,
|
|
21
|
-
default: () => ({})
|
|
22
|
-
// ej. { 3: true, 5: false }
|
|
23
|
-
},
|
|
7
|
+
actionLoadingMap: { type: Object, default: () => ({}) },
|
|
24
8
|
filterable: Boolean,
|
|
25
|
-
filters: {
|
|
26
|
-
type: Array,
|
|
27
|
-
default: () => []
|
|
28
|
-
},
|
|
9
|
+
filters: { type: Array, default: () => [] },
|
|
29
10
|
customFilter: { type: Function, default: null },
|
|
30
11
|
// Features
|
|
31
|
-
itemsPerPage: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
page: {
|
|
36
|
-
type: Number,
|
|
37
|
-
default: 1
|
|
38
|
-
},
|
|
39
|
-
sortBy: {
|
|
40
|
-
type: Array,
|
|
41
|
-
default: () => []
|
|
42
|
-
},
|
|
43
|
-
pageOptions: {
|
|
44
|
-
type: Array,
|
|
45
|
-
default: () => [5, 10, 25, 50, 100]
|
|
46
|
-
},
|
|
12
|
+
itemsPerPage: { type: Number, default: 10 },
|
|
13
|
+
page: { type: Number, default: 1 },
|
|
14
|
+
sortBy: { type: Array, default: () => [] },
|
|
15
|
+
pageOptions: { type: Array, default: () => [5, 10, 25, 50, 100] },
|
|
47
16
|
searchable: { type: Boolean, default: !1 },
|
|
48
17
|
searchableKeys: { type: Array, default: null },
|
|
49
18
|
searchPosition: {
|
|
@@ -54,12 +23,12 @@ const t = () => ({
|
|
|
54
23
|
},
|
|
55
24
|
searchPlaceholder: { type: String, default: "Search..." },
|
|
56
25
|
debounceTime: { type: Number, default: 300 },
|
|
57
|
-
showSelect: Boolean,
|
|
58
|
-
showExpand: Boolean,
|
|
59
|
-
showGroupBy: Boolean,
|
|
26
|
+
showSelect: { type: Boolean, default: !1 },
|
|
27
|
+
showExpand: { type: Boolean, default: !1 },
|
|
28
|
+
showGroupBy: { type: Boolean, default: !1 },
|
|
60
29
|
// Display
|
|
61
|
-
hideDefaultHeader: Boolean,
|
|
62
|
-
hideDefaultFooter: Boolean,
|
|
30
|
+
hideDefaultHeader: { type: Boolean, default: !1 },
|
|
31
|
+
hideDefaultFooter: { type: Boolean, default: !1 },
|
|
63
32
|
// Custom class props
|
|
64
33
|
wrapperClass: { type: String, default: "" },
|
|
65
34
|
tableClass: { type: String, default: "" },
|
|
@@ -71,13 +40,13 @@ const t = () => ({
|
|
|
71
40
|
selectedClass: { type: String, default: "bg-blue-100" },
|
|
72
41
|
stripedClass: { type: String, default: "" },
|
|
73
42
|
tfootClass: { type: String, default: "" },
|
|
74
|
-
rowClass: String,
|
|
43
|
+
rowClass: { type: String, default: "" },
|
|
75
44
|
// Misc
|
|
76
45
|
noDataText: { type: String, default: "No data available" },
|
|
77
46
|
loadingText: { type: String, default: "Loading..." },
|
|
78
47
|
// Slots control
|
|
79
|
-
showTopSlot: Boolean,
|
|
80
|
-
showBottomSlot: Boolean
|
|
48
|
+
showTopSlot: { type: Boolean, default: !1 },
|
|
49
|
+
showBottomSlot: { type: Boolean, default: !1 }
|
|
81
50
|
});
|
|
82
51
|
export {
|
|
83
52
|
t as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a(t, n) {
|
|
2
2
|
return t.value && t.value in n ? n[t.value] : n;
|
|
3
3
|
}
|
|
4
4
|
function s(t, n) {
|
|
@@ -6,7 +6,7 @@ function s(t, n) {
|
|
|
6
6
|
if (t.columnType === "relation")
|
|
7
7
|
return u(n, t.relationPath) ?? "Sin valor";
|
|
8
8
|
if (t.columnType === "function") {
|
|
9
|
-
const i = (r = t.columnFunction) == null ? void 0 : r.call(t, n);
|
|
9
|
+
const i = (r = t.columnFunction) == null ? void 0 : r.call(t, n, t);
|
|
10
10
|
return t.columnFormat && e[t.columnFormat] ? e[t.columnFormat](i) : i;
|
|
11
11
|
}
|
|
12
12
|
return (e[t.columnFormat] || e.default)(n);
|
|
@@ -52,12 +52,12 @@ const e = {
|
|
|
52
52
|
second: "numeric"
|
|
53
53
|
}).format(n);
|
|
54
54
|
},
|
|
55
|
-
secondsToTime: (t) =>
|
|
55
|
+
secondsToTime: (t) => m(t ?? 0)
|
|
56
56
|
};
|
|
57
57
|
function u(t, n) {
|
|
58
58
|
return !t || !n ? t : n.split(".").reduce((o, r) => o == null ? void 0 : o[r], t);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function m(t) {
|
|
61
61
|
const n = Math.floor(t / 3600), o = Math.floor(t % 3600 / 60), r = t % 60;
|
|
62
62
|
return `${n} horas, ${o} minutos y ${r} segundos`;
|
|
63
63
|
}
|
|
@@ -65,5 +65,5 @@ export {
|
|
|
65
65
|
s as formatValue,
|
|
66
66
|
e as formatters,
|
|
67
67
|
u as getNestedValue,
|
|
68
|
-
|
|
68
|
+
a as getValue
|
|
69
69
|
};
|