adverich-kun-ui 0.1.480 → 0.1.482
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,69 +1,68 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { format as
|
|
3
|
-
function W(i,
|
|
4
|
-
const l =
|
|
1
|
+
import { ref as S, computed as q, watch as G, nextTick as y } from "vue";
|
|
2
|
+
import { format as h, clamp as x, toRawNumberString as D, fromRawString as C } from "./numberFormatUtils.js";
|
|
3
|
+
function W(i, o) {
|
|
4
|
+
const l = S(""), c = S(null), k = S(null), R = S(!1), s = S(0);
|
|
5
5
|
let t = "";
|
|
6
6
|
const F = q(() => {
|
|
7
7
|
const e = Number(i.precision);
|
|
8
8
|
return e > 0 ? e + 1 : 1;
|
|
9
9
|
});
|
|
10
|
-
function
|
|
10
|
+
function v(e) {
|
|
11
11
|
return Number(i.precision) === 0 ? e === "" ? "0" : e.replace(/^0+(\d)/, "$1") : e.padStart(F.value, "0");
|
|
12
12
|
}
|
|
13
13
|
G(
|
|
14
14
|
[() => i.modelValue, () => i.precision],
|
|
15
15
|
([e, n], [r, u]) => {
|
|
16
|
-
const N = Number(n) !== Number(u);
|
|
17
16
|
if (e == null || isNaN(e))
|
|
18
|
-
l.value =
|
|
17
|
+
l.value = h(0, { ...i, precision: n }), t = "0".repeat(Number(n) + 1);
|
|
19
18
|
else {
|
|
20
|
-
const
|
|
21
|
-
|
|
19
|
+
const N = parseFloat(e), g = x(N, i.min, i.max);
|
|
20
|
+
t = D(g, Number(n)), t.length < Number(n) + 1 && (t = t.padStart(Number(n) + 1, "0")), l.value = h(g, { ...i, precision: n });
|
|
22
21
|
}
|
|
23
22
|
},
|
|
24
23
|
{ immediate: !0 }
|
|
25
24
|
);
|
|
26
25
|
function K(e) {
|
|
27
|
-
const { key: n, target: r } = e, u = /^[0-9]$/.test(n), N = n === "Backspace",
|
|
26
|
+
const { key: n, target: r } = e, u = /^[0-9]$/.test(n), N = n === "Backspace", g = n === "Delete", b = ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(n), d = e.ctrlKey || e.metaKey, m = n === "Home", U = n === "End";
|
|
28
27
|
if (n === "Tab")
|
|
29
28
|
return;
|
|
30
|
-
if (
|
|
31
|
-
|
|
29
|
+
if (m) {
|
|
30
|
+
y(() => {
|
|
32
31
|
if (!c.value) return;
|
|
33
|
-
const
|
|
34
|
-
c.value.setSelectionRange(
|
|
32
|
+
const w = l.value.search(/\d/);
|
|
33
|
+
c.value.setSelectionRange(w, w);
|
|
35
34
|
});
|
|
36
35
|
return;
|
|
37
36
|
}
|
|
38
37
|
if (U) {
|
|
39
|
-
|
|
38
|
+
y(() => {
|
|
40
39
|
if (!c.value) return;
|
|
41
40
|
const a = l.value;
|
|
42
41
|
c.value.setSelectionRange(a.length, a.length);
|
|
43
42
|
});
|
|
44
43
|
return;
|
|
45
44
|
}
|
|
46
|
-
if (
|
|
45
|
+
if (b || d) return;
|
|
47
46
|
const V = B(l.value, r.selectionStart);
|
|
48
47
|
e.preventDefault();
|
|
49
48
|
const L = Number(i.precision) + 1;
|
|
50
49
|
for (; t.length < L; )
|
|
51
50
|
t = "0" + t;
|
|
52
|
-
const
|
|
51
|
+
const f = A(l.value, V);
|
|
53
52
|
if (u)
|
|
54
|
-
t = t.substring(0,
|
|
53
|
+
t = t.substring(0, f) + n + t.substring(f), s.value = f + 1;
|
|
55
54
|
else if (N && V > 0) {
|
|
56
|
-
const a = A(l.value, V),
|
|
55
|
+
const a = A(l.value, V), w = a - 1;
|
|
57
56
|
if (t.length <= Number(i.precision) + 1) {
|
|
58
57
|
const j = Math.max(0, a - 1);
|
|
59
|
-
t = t.slice(0, j) + t.slice(a), t =
|
|
58
|
+
t = t.slice(0, j) + t.slice(a), t = v(t), s.value = a, T();
|
|
60
59
|
return;
|
|
61
60
|
}
|
|
62
|
-
a > 0 && (t = t.slice(0,
|
|
63
|
-
} else
|
|
64
|
-
for (t =
|
|
61
|
+
a > 0 && (t = t.slice(0, w) + t.slice(a), t = v(t), s.value = w);
|
|
62
|
+
} else g && V < l.value.length && f < t.length && (t = t.substring(0, f) + t.substring(f + 1), s.value = f);
|
|
63
|
+
for (t = v(t); t.length < L; )
|
|
65
64
|
t = "0" + t;
|
|
66
|
-
|
|
65
|
+
T();
|
|
67
66
|
}
|
|
68
67
|
function A(e, n) {
|
|
69
68
|
let r = 0;
|
|
@@ -93,45 +92,45 @@ function W(i, s) {
|
|
|
93
92
|
const r = e.search(/\d/);
|
|
94
93
|
return n < r && (n = r), n;
|
|
95
94
|
}
|
|
96
|
-
function
|
|
95
|
+
function T() {
|
|
97
96
|
const e = Number(i.precision) + 1;
|
|
98
97
|
t.padStart(e, "0");
|
|
99
|
-
const n = Math.max(1, t.length - Number(i.precision)), r = t.slice(0, n) || "0", u = t.slice(n).padEnd(Number(i.precision), "0").slice(0, Number(i.precision)), N = `${r}.${u}`,
|
|
100
|
-
t = D(
|
|
98
|
+
const n = Math.max(1, t.length - Number(i.precision)), r = t.slice(0, n) || "0", u = t.slice(n).padEnd(Number(i.precision), "0").slice(0, Number(i.precision)), N = `${r}.${u}`, g = parseFloat(N), b = x(g, i.min, i.max);
|
|
99
|
+
t = D(b, Number(i.precision)), l.value = h(b, i), o("update:modelValue", b), o("input", b), y(() => {
|
|
101
100
|
if (c.value)
|
|
102
101
|
try {
|
|
103
|
-
const
|
|
104
|
-
let
|
|
105
|
-
for (;
|
|
106
|
-
|
|
107
|
-
c.value.setSelectionRange(
|
|
102
|
+
const d = l.value;
|
|
103
|
+
let m = $(d, s.value);
|
|
104
|
+
for (; m < d.length && !/\d/.test(d[m]); )
|
|
105
|
+
m++;
|
|
106
|
+
c.value.setSelectionRange(m, m);
|
|
108
107
|
} catch {
|
|
109
108
|
c.value.setSelectionRange(l.value.length, l.value.length);
|
|
110
109
|
}
|
|
111
110
|
});
|
|
112
111
|
}
|
|
113
112
|
function E() {
|
|
114
|
-
R.value = !1, t =
|
|
115
|
-
const e =
|
|
116
|
-
t = D(n, Number(i.precision)), t =
|
|
113
|
+
R.value = !1, t = v(t);
|
|
114
|
+
const e = C(t, Number(i.precision)), n = x(e, i.min, i.max);
|
|
115
|
+
t = D(n, Number(i.precision)), t = v(t), l.value = h(n, i), o("update:modelValue", n), o("blur");
|
|
117
116
|
}
|
|
118
117
|
function M() {
|
|
119
118
|
var n;
|
|
120
119
|
R.value = !0;
|
|
121
120
|
const e = ((n = c.value) == null ? void 0 : n.selectionStart) || 0;
|
|
122
|
-
|
|
121
|
+
s.value = A(l.value, e), o("focus");
|
|
123
122
|
}
|
|
124
123
|
function H() {
|
|
125
|
-
let e =
|
|
126
|
-
e = x(e + Number(i.step), i.min, i.max), t = D(e, Number(i.precision)), l.value =
|
|
124
|
+
let e = C(t, Number(i.precision)) || 0;
|
|
125
|
+
e = x(e + Number(i.step), i.min, i.max), t = D(e, Number(i.precision)), l.value = h(e, i), o("update:modelValue", e);
|
|
127
126
|
}
|
|
128
127
|
function I() {
|
|
129
|
-
let e =
|
|
130
|
-
e = x(e - Number(i.step), i.min, i.max), t = D(e, Number(i.precision)), l.value =
|
|
128
|
+
let e = C(t, Number(i.precision)) || 0;
|
|
129
|
+
e = x(e - Number(i.step), i.min, i.max), t = D(e, Number(i.precision)), l.value = h(e, i), o("update:modelValue", e);
|
|
131
130
|
}
|
|
132
131
|
function z() {
|
|
133
132
|
var e;
|
|
134
|
-
t = "0".repeat(Number(i.precision) + 1),
|
|
133
|
+
t = "0".repeat(Number(i.precision) + 1), s.value = Number(i.precision) + 1, T(), (e = c.value) == null || e.focus();
|
|
135
134
|
}
|
|
136
135
|
return {
|
|
137
136
|
inputValue: l,
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { mergeModels as W, toRefs as
|
|
2
|
-
import { isMobile as
|
|
1
|
+
import { mergeModels as W, toRefs as Se, useModel as be, ref as v, watch as Q, computed as q, onMounted as Ce, createElementBlock as r, openBlock as l, mergeProps as O, createCommentVNode as u, createElementVNode as j, renderSlot as a, createBlock as b, unref as s, normalizeClass as C, withCtx as x, createVNode as T, withDirectives as G, vModelText as Te, vShow as J, normalizeProps as d, guardReactiveProps as g, Fragment as Fe, createSlots as X, renderList as Y, toDisplayString as $e, isRef as ke, nextTick as Pe } from "vue";
|
|
2
|
+
import { isMobile as f } from "../../../../utils/_platform.js";
|
|
3
3
|
import Z from "../../../KunIcon/src/components/KunIcon.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
const
|
|
4
|
+
import Me from "../../../../icons/IconFilter.vue.js";
|
|
5
|
+
import Ae from "../../../../icons/IconSearch.vue.js";
|
|
6
|
+
import Ie from "./KunTableHeaders.vue.js";
|
|
7
|
+
import Re from "./KunTableFooter.vue.js";
|
|
8
|
+
import Ee from "./KunTableRows.vue.js";
|
|
9
|
+
import Be from "./KunTableIterators.vue.js";
|
|
10
|
+
import Ve from "../../../KunBtn/src/components/KunBtn.vue.js";
|
|
11
|
+
import Oe from "./KunTableFilter.vue.js";
|
|
12
|
+
import je from "../composables/useExpand.js";
|
|
13
|
+
import xe from "../composables/useOptions.js";
|
|
14
|
+
import ze from "../composables/useSelect.js";
|
|
15
|
+
import De from "../composables/useFilter.js";
|
|
16
|
+
import He from "../composables/KunTableProps.js";
|
|
17
|
+
const Ne = ["placeholder"], Ke = { class: "flex-1 overflow-auto bg-surface" }, Le = { key: 0 }, Ue = { key: 5 }, We = {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "h-full flex justify-center items-center"
|
|
20
|
-
},
|
|
20
|
+
}, Qe = { class: "text-center text-4xl" }, qe = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "sticky bottom-0 z-10 print:hidden"
|
|
23
|
-
},
|
|
23
|
+
}, Ge = "overflow-hidden h-full w-full flex flex-col border border-slate-200 dark:border-slate-800 rounded", Je = "table-auto w-full h-fit text-sm text-left", ms = {
|
|
24
24
|
__name: "KunTable",
|
|
25
|
-
props: /* @__PURE__ */ W(
|
|
25
|
+
props: /* @__PURE__ */ W(He(), {
|
|
26
26
|
selectedItems: { type: Array, default: () => [] },
|
|
27
27
|
selectedItemsModifiers: {}
|
|
28
28
|
}),
|
|
29
29
|
emits: /* @__PURE__ */ W(["update:page", "update:itemsPerPage", "update:sortBy", "update:search", "focusOnSearch"], ["update:selectedItems"]),
|
|
30
30
|
setup(z, { emit: _ }) {
|
|
31
|
-
const S = _, p = z, F =
|
|
31
|
+
const S = _, p = z, F = Se(p), ee = be(z, "selectedItems"), {
|
|
32
32
|
headers: D,
|
|
33
33
|
showExpand: $,
|
|
34
34
|
showSelect: k,
|
|
@@ -38,9 +38,9 @@ const Ke = ["placeholder"], Le = { class: "flex-1 overflow-auto bg-surface" }, U
|
|
|
38
38
|
tableClass: te,
|
|
39
39
|
wrapperClass: le,
|
|
40
40
|
pageOptions: ae,
|
|
41
|
-
items:
|
|
41
|
+
items: Xe,
|
|
42
42
|
searchable: N,
|
|
43
|
-
debounceTime:
|
|
43
|
+
debounceTime: ne
|
|
44
44
|
} = F, w = v(p.search);
|
|
45
45
|
Q(() => p.search, (e) => {
|
|
46
46
|
e !== w.value && (w.value = e);
|
|
@@ -61,12 +61,12 @@ const Ke = ["placeholder"], Le = { class: "flex-1 overflow-auto bg-surface" }, U
|
|
|
61
61
|
), o.columnRowText = () => "");
|
|
62
62
|
}
|
|
63
63
|
return o;
|
|
64
|
-
})), { filteredItems:
|
|
64
|
+
})), { filteredItems: re, setSearch: ie, modalFilter: y, applyColumnFilters: ce, clearFilters: ue, appliedFilters: de } = De(F, ne, P);
|
|
65
65
|
Q(w, (e) => {
|
|
66
|
-
S("update:search", e),
|
|
66
|
+
S("update:search", e), ie(e);
|
|
67
67
|
});
|
|
68
|
-
const { options: i, paginatedItems:
|
|
69
|
-
items:
|
|
68
|
+
const { options: i, paginatedItems: m, updateSort: pe } = xe(F, S, re), { isSelected: M, toggleSelect: A, toggleSelectAll: me, allSelected: fe, someSelected: he } = ze(m, ee), { isExpanded: I, toggleExpand: R } = je(), h = q(() => ({
|
|
69
|
+
items: m.value,
|
|
70
70
|
headers: D.value,
|
|
71
71
|
page: i.page,
|
|
72
72
|
itemsPerPage: i.itemsPerPage,
|
|
@@ -76,25 +76,25 @@ const Ke = ["placeholder"], Le = { class: "flex-1 overflow-auto bg-surface" }, U
|
|
|
76
76
|
isExpanded: I,
|
|
77
77
|
sortBy: i.sortBy,
|
|
78
78
|
hasActions: p.hasActions
|
|
79
|
-
})),
|
|
80
|
-
|
|
79
|
+
})), ge = [Ge, le.value], we = [Je, te.value];
|
|
80
|
+
Ce(() => L());
|
|
81
81
|
const K = v(null), E = v(!0), B = v(!1);
|
|
82
|
-
function
|
|
83
|
-
|
|
82
|
+
function ye() {
|
|
83
|
+
ve();
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
85
|
+
function ve() {
|
|
86
|
+
f.value && (U(), Pe(() => {
|
|
87
87
|
K.value.focus();
|
|
88
88
|
}));
|
|
89
89
|
}
|
|
90
90
|
function L() {
|
|
91
|
-
|
|
91
|
+
f.value && (V.value = "w-fit", E.value = !1, B.value = !0, S("focusOnSearch", !1));
|
|
92
92
|
}
|
|
93
93
|
function U() {
|
|
94
|
-
|
|
94
|
+
f.value && (V.value = "w-full border", B.value = !1, E.value = !0, S("focusOnSearch", !0));
|
|
95
95
|
}
|
|
96
96
|
const V = v("w-full border max-w-sm");
|
|
97
|
-
return (e, o) => (l(), r("div", O({ class:
|
|
97
|
+
return (e, o) => (l(), r("div", O({ class: ge }, e.$attrs, { style: { "user-select": "text" } }), [
|
|
98
98
|
s(N) || e.filterable || e.$slots.prependSearch || e.$slots.appendSearch ? (l(), r("div", {
|
|
99
99
|
key: 0,
|
|
100
100
|
class: C(["p-2 bg-surface print:hidden", {
|
|
@@ -104,7 +104,7 @@ const Ke = ["placeholder"], Le = { class: "flex-1 overflow-auto bg-surface" }, U
|
|
|
104
104
|
}])
|
|
105
105
|
}, [
|
|
106
106
|
a(e.$slots, "prependSearch"),
|
|
107
|
-
e.filterable && e.filters.length ? (l(), b(
|
|
107
|
+
e.filterable && e.filters.length ? (l(), b(Ve, {
|
|
108
108
|
key: 0,
|
|
109
109
|
class: "h-fit",
|
|
110
110
|
onClick: o[0] || (o[0] = (t) => y.value = !0),
|
|
@@ -115,7 +115,7 @@ const Ke = ["placeholder"], Le = { class: "flex-1 overflow-auto bg-surface" }, U
|
|
|
115
115
|
default: x(() => [
|
|
116
116
|
T(Z, {
|
|
117
117
|
class: "h-fit",
|
|
118
|
-
icon:
|
|
118
|
+
icon: Me,
|
|
119
119
|
size: "text-lg"
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
@@ -129,52 +129,52 @@ const Ke = ["placeholder"], Le = { class: "flex-1 overflow-auto bg-surface" }, U
|
|
|
129
129
|
"onUpdate:modelValue": o[1] || (o[1] = (t) => w.value = t),
|
|
130
130
|
type: "text",
|
|
131
131
|
placeholder: e.searchPlaceholder,
|
|
132
|
-
class: C(["w-full text-sm", s(
|
|
132
|
+
class: C(["w-full text-sm", s(f) ? "px-1" : "px-2 py-1"]),
|
|
133
133
|
ref_key: "searchRef",
|
|
134
134
|
ref: K,
|
|
135
135
|
onFocus: U,
|
|
136
136
|
onBlur: L
|
|
137
|
-
}, null, 42,
|
|
138
|
-
[
|
|
137
|
+
}, null, 42, Ne), [
|
|
138
|
+
[Te, w.value],
|
|
139
139
|
[J, E.value]
|
|
140
140
|
]),
|
|
141
141
|
G(T(Z, {
|
|
142
|
-
icon:
|
|
143
|
-
onClick:
|
|
142
|
+
icon: Ae,
|
|
143
|
+
onClick: ye
|
|
144
144
|
}, null, 512), [
|
|
145
145
|
[J, B.value]
|
|
146
146
|
])
|
|
147
147
|
], 2)) : u("", !0),
|
|
148
148
|
a(e.$slots, "appendSearch")
|
|
149
149
|
], 2)) : u("", !0),
|
|
150
|
-
j("div",
|
|
151
|
-
s(
|
|
150
|
+
j("div", Ke, [
|
|
151
|
+
s(m).length ? (l(), r("table", {
|
|
152
152
|
key: 0,
|
|
153
|
-
class: C(
|
|
153
|
+
class: C(we)
|
|
154
154
|
}, [
|
|
155
|
-
e.$slots.colgroup && !s(
|
|
155
|
+
e.$slots.colgroup && !s(f) ? (l(), r("colgroup", Le, [
|
|
156
156
|
a(e.$slots, "colgroup", d(g(h.value)))
|
|
157
157
|
])) : u("", !0),
|
|
158
|
-
!s(oe) && !s(
|
|
158
|
+
!s(oe) && !s(f) ? (l(), b(Ie, {
|
|
159
159
|
key: 1,
|
|
160
160
|
headers: s(D),
|
|
161
161
|
"sort-by": s(i).sortBy,
|
|
162
162
|
"show-select": s(k),
|
|
163
163
|
"show-expand": s($),
|
|
164
|
-
"all-selected": s(
|
|
165
|
-
"some-selected": s(
|
|
164
|
+
"all-selected": s(fe),
|
|
165
|
+
"some-selected": s(he),
|
|
166
166
|
"thead-class": e.theadClass,
|
|
167
167
|
"tr-class": e.trClass,
|
|
168
168
|
"th-class": e.thClass,
|
|
169
169
|
"has-actions": e.hasActions,
|
|
170
170
|
"action-label": e.actionLabel,
|
|
171
|
-
onSort: s(
|
|
172
|
-
onToggleSelectAll: s(
|
|
171
|
+
onSort: s(pe),
|
|
172
|
+
onToggleSelectAll: s(me),
|
|
173
173
|
customHeaders: e.customSlots
|
|
174
174
|
}, null, 8, ["headers", "sort-by", "show-select", "show-expand", "all-selected", "some-selected", "thead-class", "tr-class", "th-class", "has-actions", "action-label", "onSort", "onToggleSelectAll", "customHeaders"])) : a(e.$slots, "thead", d(O({ key: 2 }, h.value))),
|
|
175
|
-
s(
|
|
175
|
+
s(f) ? (l(), b(Be, {
|
|
176
176
|
key: 4,
|
|
177
|
-
items: s(
|
|
177
|
+
items: s(m),
|
|
178
178
|
headers: P.value,
|
|
179
179
|
"row-class": s(H),
|
|
180
180
|
"row-class-condition": e.rowClassCondition,
|
|
@@ -194,10 +194,10 @@ const Ke = ["placeholder"], Le = { class: "flex-1 overflow-auto bg-surface" }, U
|
|
|
194
194
|
a(e.$slots, c, d(g(n)))
|
|
195
195
|
])
|
|
196
196
|
}))
|
|
197
|
-
]), 1032, ["items", "headers", "row-class", "row-class-condition", "is-selected", "is-expanded", "show-select", "show-expand", "has-actions", "action-loading-map", "onToggleExpand", "onToggleSelect", "customSlots"])) : (l(), r(
|
|
197
|
+
]), 1032, ["items", "headers", "row-class", "row-class-condition", "is-selected", "is-expanded", "show-select", "show-expand", "has-actions", "action-loading-map", "onToggleExpand", "onToggleSelect", "customSlots"])) : (l(), r(Fe, { key: 3 }, [
|
|
198
198
|
a(e.$slots, "body.prepend", d(g(h.value))),
|
|
199
|
-
T(
|
|
200
|
-
items: s(
|
|
199
|
+
T(Ee, {
|
|
200
|
+
items: s(m),
|
|
201
201
|
headers: P.value,
|
|
202
202
|
"tbody-class": e.tbodyClass,
|
|
203
203
|
"row-class": s(H),
|
|
@@ -225,17 +225,17 @@ const Ke = ["placeholder"], Le = { class: "flex-1 overflow-auto bg-surface" }, U
|
|
|
225
225
|
]), 1032, ["items", "headers", "tbody-class", "row-class", "row-class-condition", "tr-class", "td-class", "selected-class", "striped-class", "is-selected", "is-expanded", "show-select", "show-expand", "has-actions", "action-loading-map", "onToggleExpand", "onToggleSelect", "customSlots"]),
|
|
226
226
|
a(e.$slots, "body.append", d(g(h.value)))
|
|
227
227
|
], 64)),
|
|
228
|
-
e.$slots.tfoot ? (l(), r("tfoot",
|
|
228
|
+
e.$slots.tfoot ? (l(), r("tfoot", Ue, [
|
|
229
229
|
a(e.$slots, "tfoot", d(g(h.value)))
|
|
230
230
|
])) : u("", !0)
|
|
231
231
|
])) : u("", !0),
|
|
232
|
-
s(
|
|
233
|
-
j("div",
|
|
232
|
+
s(m).length ? u("", !0) : (l(), r("div", We, [
|
|
233
|
+
j("div", Qe, $e(e.noDataText), 1)
|
|
234
234
|
]))
|
|
235
235
|
]),
|
|
236
|
-
s(se) ? a(e.$slots, "footer", d(O({ key: 2 }, h.value))) : (l(), r("div",
|
|
237
|
-
T(
|
|
238
|
-
"items-length": s(
|
|
236
|
+
s(se) ? a(e.$slots, "footer", d(O({ key: 2 }, h.value))) : (l(), r("div", qe, [
|
|
237
|
+
T(Re, {
|
|
238
|
+
"items-length": s(m).length,
|
|
239
239
|
"items-per-page": s(i).itemsPerPage,
|
|
240
240
|
"current-page": s(i).page,
|
|
241
241
|
"page-options": s(ae),
|
|
@@ -243,14 +243,14 @@ const Ke = ["placeholder"], Le = { class: "flex-1 overflow-auto bg-surface" }, U
|
|
|
243
243
|
"onUpdate:page": o[3] || (o[3] = (t) => s(i).page = t)
|
|
244
244
|
}, null, 8, ["items-length", "items-per-page", "current-page", "page-options"])
|
|
245
245
|
])),
|
|
246
|
-
e.filterable && s(y) ? (l(), b(
|
|
246
|
+
e.filterable && s(y) ? (l(), b(Oe, {
|
|
247
247
|
key: 3,
|
|
248
248
|
filters: e.filters,
|
|
249
249
|
modelValue: s(y),
|
|
250
|
-
"onUpdate:modelValue": o[4] || (o[4] = (t) =>
|
|
251
|
-
onApplyFilters: s(
|
|
252
|
-
onClearFilters: s(
|
|
253
|
-
activeFilters: s(
|
|
250
|
+
"onUpdate:modelValue": o[4] || (o[4] = (t) => ke(y) ? y.value = t : null),
|
|
251
|
+
onApplyFilters: s(ce),
|
|
252
|
+
onClearFilters: s(ue),
|
|
253
|
+
activeFilters: s(de).byColumn
|
|
254
254
|
}, null, 8, ["filters", "modelValue", "onApplyFilters", "onClearFilters", "activeFilters"])) : u("", !0)
|
|
255
255
|
], 16));
|
|
256
256
|
}
|