vectis-ui 0.11.0 → 0.12.0
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.
- package/dist/components/VDataTable/VDataTable.css +1 -1
- package/dist/components/VDataTable/VDataTable.d.ts +0 -7
- package/dist/components/VDataTable/VDataTable.js.map +1 -1
- package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js +119 -126
- package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VPagination/VPagination.css +1 -1
- package/dist/components/VPagination/VPagination.d.ts +3 -11
- package/dist/components/VPagination/VPagination.js.map +1 -1
- package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js +15 -22
- package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -20,12 +20,11 @@ import { arrow_downward as c } from "../VIcon/icons/arrow_downward.js";
|
|
|
20
20
|
import { arrow_drop_down as fe } from "../VIcon/icons/arrow_drop_down.js";
|
|
21
21
|
import { arrow_upward as l } from "../VIcon/icons/arrow_upward.js";
|
|
22
22
|
import { search as pe } from "../VIcon/icons/search.js";
|
|
23
|
-
import { swap_vert as
|
|
24
|
-
import { Fragment as
|
|
23
|
+
import { swap_vert as u } from "../VIcon/icons/swap_vert.js";
|
|
24
|
+
import { Fragment as d, computed as f, createBlock as me, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, mergeModels as y, mergeProps as b, normalizeClass as he, normalizeStyle as ge, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, unref as E, useId as _e, useModel as D, useSlots as ve, watch as O, watchEffect as ye, withCtx as k } from "vue";
|
|
25
25
|
//#region src/components/VDataTable/VDataTable.vue?vue&type=script&setup=true&lang.ts
|
|
26
26
|
var be = [
|
|
27
27
|
"data-variant",
|
|
28
|
-
"data-responsive",
|
|
29
28
|
"data-striped",
|
|
30
29
|
"data-compact",
|
|
31
30
|
"data-sticky-header",
|
|
@@ -40,29 +39,26 @@ var be = [
|
|
|
40
39
|
key: 0,
|
|
41
40
|
scope: "col",
|
|
42
41
|
class: "v-data-table-select"
|
|
43
|
-
}, De = { class: "v-data-table-
|
|
44
|
-
key: 1,
|
|
45
|
-
class: "v-data-table-stack-label"
|
|
46
|
-
}, je = { key: 0 }, Me = ["colspan"], Ne = { class: "v-data-table-state-loading" }, Pe = { "aria-hidden": "true" }, Fe = { key: 1 }, Ie = ["colspan"], Le = ["data-selected"], Re = {
|
|
42
|
+
}, De = ["data-align", "aria-sort"], Oe = ["data-direction", "onClick"], ke = { key: 0 }, Ae = ["colspan"], je = { class: "v-data-table-state-loading" }, Me = { "aria-hidden": "true" }, Ne = { key: 1 }, Pe = ["colspan"], Fe = ["data-selected"], Ie = {
|
|
47
43
|
key: 0,
|
|
48
44
|
class: "v-data-table-select"
|
|
49
|
-
},
|
|
45
|
+
}, Le = ["data-align"], Re = {
|
|
50
46
|
key: 1,
|
|
51
47
|
class: "v-data-table-footer"
|
|
52
|
-
},
|
|
48
|
+
}, ze = {
|
|
53
49
|
key: 0,
|
|
54
50
|
class: "v-data-table-selection",
|
|
55
51
|
"aria-live": "polite"
|
|
56
|
-
},
|
|
52
|
+
}, Be = {
|
|
57
53
|
key: 1,
|
|
58
54
|
class: "v-data-table-footer-end"
|
|
59
|
-
},
|
|
55
|
+
}, Ve = {
|
|
60
56
|
key: 0,
|
|
61
57
|
class: "v-data-table-per-page"
|
|
62
|
-
},
|
|
58
|
+
}, He = {
|
|
63
59
|
class: "v-data-table-per-page-label",
|
|
64
60
|
"aria-hidden": "true"
|
|
65
|
-
},
|
|
61
|
+
}, Ue = {
|
|
66
62
|
key: 1,
|
|
67
63
|
class: "v-data-table-range",
|
|
68
64
|
"aria-live": "polite"
|
|
@@ -75,7 +71,6 @@ var be = [
|
|
|
75
71
|
rowKey: { default: void 0 },
|
|
76
72
|
caption: { default: void 0 },
|
|
77
73
|
variant: { default: "flat" },
|
|
78
|
-
responsive: { default: "scroll" },
|
|
79
74
|
loading: {
|
|
80
75
|
type: Boolean,
|
|
81
76
|
default: !1
|
|
@@ -103,7 +98,7 @@ var be = [
|
|
|
103
98
|
default: !1
|
|
104
99
|
},
|
|
105
100
|
height: { default: void 0 },
|
|
106
|
-
sortIcon: { default: () =>
|
|
101
|
+
sortIcon: { default: () => u },
|
|
107
102
|
sortAscIcon: { default: () => c },
|
|
108
103
|
sortDescIcon: { default: () => l },
|
|
109
104
|
perPageOptions: { default: void 0 },
|
|
@@ -153,10 +148,10 @@ var be = [
|
|
|
153
148
|
"update:selected",
|
|
154
149
|
"update:search"
|
|
155
150
|
]),
|
|
156
|
-
setup(c, { expose: l, emit:
|
|
157
|
-
let v = c, y = n(), A = t(),
|
|
158
|
-
l({ el:
|
|
159
|
-
let
|
|
151
|
+
setup(c, { expose: l, emit: u }) {
|
|
152
|
+
let v = c, y = n(), A = t(), We = f(() => v.emptyText ?? y.value.dataTable.empty), j = f(() => v.loadingText ?? y.value.dataTable.loading), Ge = f(() => v.searchPlaceholder ?? y.value.dataTable.searchPlaceholder), Ke = f(() => v.searchLabel ?? y.value.dataTable.searchLabel), M = f(() => v.perPageText ?? y.value.dataTable.perPage), qe = f(() => v.selectAllLabel ?? y.value.dataTable.selectAll), N = D(c, "sort"), P = D(c, "page"), F = D(c, "perPage"), I = D(c, "selected"), L = D(c, "search"), Je = u, { attrs: R, rootClass: Ye, rootStyle: Xe, forwardedAttrs: Ze } = ie(), Qe = ve(), z = S(null);
|
|
153
|
+
l({ el: z });
|
|
154
|
+
let B = _e(), $e = f(() => v.caption || !(v.title || Qe.title) || R["aria-label"] !== void 0 || R["aria-labelledby"] !== void 0 ? void 0 : B);
|
|
160
155
|
if (e) {
|
|
161
156
|
v.selectable && !v.rowKey && console.warn("[VDataTable] `selectable` without `rowKey` — index-based identities are corrupted by sorting, filtering and pagination.");
|
|
162
157
|
let e = /* @__PURE__ */ new Set();
|
|
@@ -170,68 +165,68 @@ var be = [
|
|
|
170
165
|
}
|
|
171
166
|
});
|
|
172
167
|
}
|
|
173
|
-
function
|
|
168
|
+
function et(e, t) {
|
|
174
169
|
if (!v.rowKey) return t;
|
|
175
170
|
let n = e[v.rowKey];
|
|
176
171
|
return typeof n == "string" || typeof n == "number" ? n : String(n);
|
|
177
172
|
}
|
|
178
|
-
let
|
|
173
|
+
let tt = ue(), nt = (e, t) => tt(e, String(e[t] ?? ""), t), V = f(() => {
|
|
179
174
|
if (v.serverSide || !v.searchable) return v.rows;
|
|
180
|
-
let e = de((
|
|
181
|
-
return e ? v.rows.filter((t) => v.columns.some((n) =>
|
|
182
|
-
}),
|
|
183
|
-
function
|
|
184
|
-
return e instanceof Date ? e.getTime() : typeof e == "string" &&
|
|
175
|
+
let e = de((L.value ?? "").trim());
|
|
176
|
+
return e ? v.rows.filter((t) => v.columns.some((n) => nt(t, n.key).includes(e))) : v.rows;
|
|
177
|
+
}), rt = f(() => new Intl.Collator(A.value, { numeric: !0 })), it = /^\s*[+-]?(\d+\.?\d*|\.\d+)(e[+-]?\d+)?\s*$/i;
|
|
178
|
+
function H(e) {
|
|
179
|
+
return e instanceof Date ? e.getTime() : typeof e == "string" && it.test(e) ? Number(e) : e;
|
|
185
180
|
}
|
|
186
|
-
let
|
|
187
|
-
let e =
|
|
188
|
-
if (!e || v.serverSide) return
|
|
189
|
-
let t = e.direction === "asc" ? 1 : -1, n =
|
|
190
|
-
return [...
|
|
191
|
-
let a =
|
|
181
|
+
let U = f(() => {
|
|
182
|
+
let e = N.value;
|
|
183
|
+
if (!e || v.serverSide) return V.value;
|
|
184
|
+
let t = e.direction === "asc" ? 1 : -1, n = rt.value.compare;
|
|
185
|
+
return [...V.value].sort((r, i) => {
|
|
186
|
+
let a = H(r[e.key]), o = H(i[e.key]);
|
|
192
187
|
return typeof a == "number" && typeof o == "number" ? (a - o) * t : n(String(a ?? ""), String(o ?? "")) * t;
|
|
193
188
|
});
|
|
194
|
-
}),
|
|
195
|
-
if (v.serverSide || !
|
|
196
|
-
let e = (
|
|
197
|
-
return
|
|
189
|
+
}), W = f(() => (F.value ?? 0) > 0), G = f(() => v.serverSide ? v.total ?? v.rows.length : V.value.length), K = f(() => W.value ? Math.max(1, Math.ceil(G.value / (F.value ?? 1))) : 1), q = f(() => ne(P.value, 1, K.value)), J = f(() => {
|
|
190
|
+
if (v.serverSide || !W.value) return U.value;
|
|
191
|
+
let e = (q.value - 1) * (F.value ?? 0);
|
|
192
|
+
return U.value.slice(e, e + (F.value ?? 0));
|
|
198
193
|
});
|
|
199
|
-
function
|
|
200
|
-
let t =
|
|
201
|
-
!t || t.key !== e ?
|
|
194
|
+
function at(e) {
|
|
195
|
+
let t = N.value;
|
|
196
|
+
!t || t.key !== e ? N.value = {
|
|
202
197
|
key: e,
|
|
203
198
|
direction: "asc"
|
|
204
|
-
} : t.direction === "asc" ?
|
|
199
|
+
} : t.direction === "asc" ? N.value = {
|
|
205
200
|
key: e,
|
|
206
201
|
direction: "desc"
|
|
207
|
-
} :
|
|
202
|
+
} : N.value = null;
|
|
208
203
|
}
|
|
209
|
-
function
|
|
210
|
-
if (
|
|
204
|
+
function ot(e) {
|
|
205
|
+
if (N.value?.key === e.key) return N.value.direction === "asc" ? "ascending" : "descending";
|
|
211
206
|
}
|
|
212
|
-
function
|
|
213
|
-
return
|
|
207
|
+
function st(e) {
|
|
208
|
+
return N.value?.key === e.key ? N.value.direction === "asc" ? v.sortAscIcon : v.sortDescIcon : v.sortIcon;
|
|
214
209
|
}
|
|
215
|
-
let
|
|
216
|
-
function
|
|
217
|
-
|
|
210
|
+
let Y = S(L.value), ct = se();
|
|
211
|
+
function lt() {
|
|
212
|
+
L.value !== Y.value && (Y.value = L.value, P.value = 1);
|
|
218
213
|
}
|
|
219
|
-
O(
|
|
214
|
+
O(L, () => {
|
|
220
215
|
if (!v.serverSide) {
|
|
221
|
-
|
|
216
|
+
P.value = 1;
|
|
222
217
|
return;
|
|
223
218
|
}
|
|
224
|
-
|
|
219
|
+
ct.start(lt, v.searchDebounce);
|
|
225
220
|
});
|
|
226
|
-
let
|
|
221
|
+
let ut = f(() => v.serverSide ? Y.value : L.value);
|
|
227
222
|
O([
|
|
228
|
-
|
|
229
|
-
() =>
|
|
230
|
-
() =>
|
|
231
|
-
() =>
|
|
232
|
-
|
|
223
|
+
P,
|
|
224
|
+
() => F.value ?? null,
|
|
225
|
+
() => N.value?.key ?? null,
|
|
226
|
+
() => N.value?.direction ?? null,
|
|
227
|
+
Y
|
|
233
228
|
], ([e, t, n, r, i]) => {
|
|
234
|
-
v.serverSide &&
|
|
229
|
+
v.serverSide && Je("update:params", {
|
|
235
230
|
page: e,
|
|
236
231
|
perPage: t,
|
|
237
232
|
sortKey: n,
|
|
@@ -239,34 +234,34 @@ var be = [
|
|
|
239
234
|
search: i
|
|
240
235
|
});
|
|
241
236
|
});
|
|
242
|
-
let
|
|
243
|
-
function
|
|
244
|
-
|
|
237
|
+
let X = f(() => new Set(I.value)), Z = f(() => J.value.map((e, t) => et(e, t))), Q = f(() => Z.value.length > 0 && Z.value.every((e) => X.value.has(e))), dt = f(() => !Q.value && Z.value.some((e) => X.value.has(e))), $ = (e) => X.value.has(e);
|
|
238
|
+
function ft(e) {
|
|
239
|
+
I.value = ae(I.value, e);
|
|
245
240
|
}
|
|
246
|
-
let
|
|
247
|
-
function
|
|
248
|
-
if (
|
|
249
|
-
let e =
|
|
250
|
-
if (
|
|
241
|
+
let pt = f(() => Z.value.length === 0 || v.loading);
|
|
242
|
+
function mt() {
|
|
243
|
+
if (pt.value) return;
|
|
244
|
+
let e = Z.value;
|
|
245
|
+
if (Q.value) {
|
|
251
246
|
let t = new Set(e);
|
|
252
|
-
|
|
247
|
+
I.value = I.value.filter((e) => !t.has(e));
|
|
253
248
|
} else {
|
|
254
|
-
let t =
|
|
255
|
-
|
|
249
|
+
let t = X.value;
|
|
250
|
+
I.value = [...I.value, ...e.filter((e) => !t.has(e))];
|
|
256
251
|
}
|
|
257
252
|
}
|
|
258
|
-
function
|
|
259
|
-
let n = (
|
|
253
|
+
function ht(e, t) {
|
|
254
|
+
let n = (W.value ? (q.value - 1) * (F.value ?? 0) : 0) + t;
|
|
260
255
|
return v.selectRowLabel?.(e, n) ?? y.value.dataTable.selectRow(n + 1);
|
|
261
256
|
}
|
|
262
|
-
O(
|
|
263
|
-
|
|
257
|
+
O(F, () => {
|
|
258
|
+
P.value = 1;
|
|
264
259
|
});
|
|
265
|
-
let
|
|
266
|
-
let e =
|
|
260
|
+
let gt = f(() => v.columns.length + +!!v.selectable), _t = f(() => {
|
|
261
|
+
let e = I.value.length;
|
|
267
262
|
return e === 0 ? "" : v.selectionText ? v.selectionText(e) : y.value.dataTable.selection(e);
|
|
268
|
-
}),
|
|
269
|
-
let e =
|
|
263
|
+
}), vt = f(() => {
|
|
264
|
+
let e = F.value ?? 0, t = G.value, n = t === 0 ? 0 : (q.value - 1) * e + 1, r = Math.min(q.value * e, t);
|
|
270
265
|
return v.rangeText?.({
|
|
271
266
|
start: n,
|
|
272
267
|
end: r,
|
|
@@ -276,37 +271,36 @@ var be = [
|
|
|
276
271
|
end: r,
|
|
277
272
|
total: t
|
|
278
273
|
});
|
|
279
|
-
}),
|
|
274
|
+
}), yt = f(() => v.height === void 0 ? void 0 : { blockSize: i(v.height) });
|
|
280
275
|
return (e, t) => (x(), m("div", {
|
|
281
|
-
class: he(["v-data-table", E(
|
|
282
|
-
style: ge([
|
|
276
|
+
class: he(["v-data-table", E(Ye)]),
|
|
277
|
+
style: ge([yt.value, E(Xe)]),
|
|
283
278
|
"data-variant": c.variant,
|
|
284
|
-
"data-responsive": c.responsive,
|
|
285
279
|
"data-striped": c.striped ? "" : void 0,
|
|
286
280
|
"data-compact": c.compact ? "" : void 0,
|
|
287
281
|
"data-sticky-header": c.stickyHeader ? "" : void 0,
|
|
288
282
|
"data-selectable": c.selectable ? "" : void 0
|
|
289
283
|
}, [
|
|
290
284
|
c.title || e.$slots.title || c.searchable ? (x(), m("div", xe, [_(o, {
|
|
291
|
-
id: E(
|
|
285
|
+
id: E(B),
|
|
292
286
|
as: "div",
|
|
293
287
|
variant: "heading-4",
|
|
294
288
|
class: "v-data-table-title"
|
|
295
289
|
}, {
|
|
296
290
|
default: k(() => [w(e.$slots, "title", {}, () => [g(T(c.title), 1)])]),
|
|
297
291
|
_: 3
|
|
298
|
-
}, 8, ["id"]), c.searchable ? (x(),
|
|
292
|
+
}, 8, ["id"]), c.searchable ? (x(), me(oe, {
|
|
299
293
|
key: 0,
|
|
300
|
-
modelValue:
|
|
301
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
294
|
+
modelValue: L.value,
|
|
295
|
+
"onUpdate:modelValue": t[0] ||= (e) => L.value = e,
|
|
302
296
|
class: "v-data-table-search",
|
|
303
297
|
type: "search",
|
|
304
298
|
size: "sm",
|
|
305
299
|
compact: c.compact,
|
|
306
300
|
"icon-start": E(pe),
|
|
307
301
|
clearable: "",
|
|
308
|
-
placeholder:
|
|
309
|
-
"aria-label":
|
|
302
|
+
placeholder: Ge.value,
|
|
303
|
+
"aria-label": Ke.value
|
|
310
304
|
}, null, 8, [
|
|
311
305
|
"modelValue",
|
|
312
306
|
"compact",
|
|
@@ -316,63 +310,62 @@ var be = [
|
|
|
316
310
|
])) : p("", !0)])) : p("", !0),
|
|
317
311
|
h("div", Se, [h("table", b({
|
|
318
312
|
ref_key: "tableEl",
|
|
319
|
-
ref:
|
|
313
|
+
ref: z,
|
|
320
314
|
class: "v-data-table-table",
|
|
321
|
-
"aria-labelledby":
|
|
322
|
-
}, E(
|
|
315
|
+
"aria-labelledby": $e.value
|
|
316
|
+
}, E(Ze)), [
|
|
323
317
|
c.caption ? (x(), m("caption", we, T(c.caption), 1)) : p("", !0),
|
|
324
318
|
h("thead", Te, [h("tr", null, [c.selectable ? (x(), m("th", Ee, [_(s, {
|
|
325
|
-
"model-value":
|
|
326
|
-
indeterminate:
|
|
327
|
-
disabled:
|
|
328
|
-
"aria-label":
|
|
329
|
-
"onUpdate:modelValue":
|
|
319
|
+
"model-value": Q.value,
|
|
320
|
+
indeterminate: dt.value,
|
|
321
|
+
disabled: pt.value,
|
|
322
|
+
"aria-label": qe.value,
|
|
323
|
+
"onUpdate:modelValue": mt
|
|
330
324
|
}, null, 8, [
|
|
331
325
|
"model-value",
|
|
332
326
|
"indeterminate",
|
|
333
327
|
"disabled",
|
|
334
328
|
"aria-label"
|
|
335
|
-
])
|
|
329
|
+
])])) : p("", !0), (x(!0), m(d, null, C(c.columns, (t) => (x(), m("th", {
|
|
336
330
|
key: t.key,
|
|
337
331
|
scope: "col",
|
|
338
332
|
"data-align": t.align,
|
|
339
|
-
"aria-sort":
|
|
333
|
+
"aria-sort": ot(t)
|
|
340
334
|
}, [t.sortable ? (x(), m("button", {
|
|
341
335
|
key: 0,
|
|
342
336
|
type: "button",
|
|
343
337
|
class: "v-data-table-sort",
|
|
344
|
-
"data-direction":
|
|
345
|
-
onClick: (e) =>
|
|
346
|
-
}, [w(e.$slots, `head-${t.key}`, { column: t }, () => [g(T(t.label), 1)]), _(a, b({ class: "v-data-table-sort-icon" }, { ref_for: !0 }, E(r)(
|
|
347
|
-
h("tbody", null, [c.loading ? (x(), m("tr",
|
|
348
|
-
colspan:
|
|
338
|
+
"data-direction": N.value?.key === t.key ? N.value.direction : void 0,
|
|
339
|
+
onClick: (e) => at(t.key)
|
|
340
|
+
}, [w(e.$slots, `head-${t.key}`, { column: t }, () => [g(T(t.label), 1)]), _(a, b({ class: "v-data-table-sort-icon" }, { ref_for: !0 }, E(r)(st(t))), null, 16)], 8, Oe)) : w(e.$slots, `head-${t.key}`, { column: t }, () => [g(T(t.label), 1)], void 0, 1)], 8, De))), 128))])]),
|
|
341
|
+
h("tbody", null, [c.loading ? (x(), m("tr", ke, [h("td", {
|
|
342
|
+
colspan: gt.value,
|
|
349
343
|
class: "v-data-table-state"
|
|
350
|
-
}, [w(e.$slots, "loading", {}, () => [h("span",
|
|
351
|
-
colspan:
|
|
344
|
+
}, [w(e.$slots, "loading", {}, () => [h("span", je, [_(ee, { label: j.value }, null, 8, ["label"]), h("span", Me, T(j.value), 1)])])], 8, Ae)])) : J.value.length === 0 ? (x(), m("tr", Ne, [h("td", {
|
|
345
|
+
colspan: gt.value,
|
|
352
346
|
class: "v-data-table-state"
|
|
353
|
-
}, [w(e.$slots, "empty", { search:
|
|
354
|
-
key:
|
|
355
|
-
"data-selected": c.selectable &&
|
|
356
|
-
}, [c.selectable ? (x(), m("td",
|
|
357
|
-
"model-value":
|
|
358
|
-
"aria-label":
|
|
359
|
-
"onUpdate:modelValue": (e) =>
|
|
347
|
+
}, [w(e.$slots, "empty", { search: ut.value }, () => [g(T(We.value), 1)])], 8, Pe)])) : (x(!0), m(d, { key: 2 }, C(J.value, (t, n) => (x(), m("tr", {
|
|
348
|
+
key: Z.value[n],
|
|
349
|
+
"data-selected": c.selectable && $(Z.value[n]) ? "" : void 0
|
|
350
|
+
}, [c.selectable ? (x(), m("td", Ie, [_(s, {
|
|
351
|
+
"model-value": $(Z.value[n]),
|
|
352
|
+
"aria-label": ht(t, n),
|
|
353
|
+
"onUpdate:modelValue": (e) => ft(Z.value[n])
|
|
360
354
|
}, null, 8, [
|
|
361
355
|
"model-value",
|
|
362
356
|
"aria-label",
|
|
363
357
|
"onUpdate:modelValue"
|
|
364
|
-
])])) : p("", !0), (x(!0), m(
|
|
358
|
+
])])) : p("", !0), (x(!0), m(d, null, C(c.columns, (n) => (x(), m("td", {
|
|
365
359
|
key: n.key,
|
|
366
|
-
"data-label": n.label,
|
|
367
360
|
"data-align": n.align
|
|
368
361
|
}, [w(e.$slots, `cell-${n.key}`, {
|
|
369
362
|
row: t,
|
|
370
363
|
value: t[n.key],
|
|
371
364
|
column: n
|
|
372
|
-
}, () => [g(T(t[n.key]), 1)])], 8,
|
|
365
|
+
}, () => [g(T(t[n.key]), 1)])], 8, Le))), 128))], 8, Fe))), 128))])
|
|
373
366
|
], 16, Ce)]),
|
|
374
|
-
|
|
375
|
-
c.perPageOptions?.length ? (x(), m("div",
|
|
367
|
+
W.value || c.selectable ? (x(), m("div", Re, [c.selectable ? (x(), m("span", ze, T(_t.value), 1)) : p("", !0), W.value ? (x(), m("div", Be, [
|
|
368
|
+
c.perPageOptions?.length ? (x(), m("div", Ve, [h("span", He, T(M.value), 1), _(ce, {
|
|
376
369
|
size: "sm",
|
|
377
370
|
compact: c.compact,
|
|
378
371
|
placement: "top-end",
|
|
@@ -383,15 +376,15 @@ var be = [
|
|
|
383
376
|
tone: "neutral",
|
|
384
377
|
size: "sm",
|
|
385
378
|
compact: c.compact
|
|
386
|
-
}, e, { "aria-label": E(y).dataTable.perPageValue(M.value,
|
|
387
|
-
default: k(() => [g(T(
|
|
379
|
+
}, e, { "aria-label": E(y).dataTable.perPageValue(M.value, F.value ?? 0) }), {
|
|
380
|
+
default: k(() => [g(T(F.value) + " ", 1), _(a, { name: E(fe) }, null, 8, ["name"])]),
|
|
388
381
|
_: 1
|
|
389
382
|
}, 16, ["compact", "aria-label"])]),
|
|
390
|
-
default: k(() => [(x(!0), m(
|
|
383
|
+
default: k(() => [(x(!0), m(d, null, C(c.perPageOptions, (e) => (x(), me(le, {
|
|
391
384
|
key: e,
|
|
392
385
|
label: String(e),
|
|
393
|
-
selected: e ===
|
|
394
|
-
onSelect: (t) =>
|
|
386
|
+
selected: e === F.value,
|
|
387
|
+
onSelect: (t) => F.value = e
|
|
395
388
|
}, null, 8, [
|
|
396
389
|
"label",
|
|
397
390
|
"selected",
|
|
@@ -399,16 +392,16 @@ var be = [
|
|
|
399
392
|
]))), 128))]),
|
|
400
393
|
_: 1
|
|
401
394
|
}, 8, ["compact"])])) : p("", !0),
|
|
402
|
-
c.showRange ? (x(), m("span",
|
|
395
|
+
c.showRange ? (x(), m("span", Ue, T(vt.value), 1)) : p("", !0),
|
|
403
396
|
_(re, {
|
|
404
|
-
modelValue:
|
|
405
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
397
|
+
modelValue: P.value,
|
|
398
|
+
"onUpdate:modelValue": t[1] ||= (e) => P.value = e,
|
|
406
399
|
label: E(y).dataTable.pagination,
|
|
407
|
-
length:
|
|
400
|
+
length: K.value,
|
|
408
401
|
size: "sm",
|
|
409
402
|
compact: c.compact,
|
|
410
403
|
align: "end",
|
|
411
|
-
"total-visible":
|
|
404
|
+
"total-visible": 0,
|
|
412
405
|
"edge-controls": "",
|
|
413
406
|
detached: ""
|
|
414
407
|
}, null, 8, [
|