@oneb/ui-vue 0.3.19 → 0.3.20
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/dataTable/dataTable.d.ts +4 -0
- package/dist/dataTable/index.cjs +1 -1
- package/dist/dataTable/index.js +454 -441
- package/dist/dataTable/util.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dataTable/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { openBlock as l, createElementBlock as o, createElementVNode as f, ref as E, onMounted as
|
|
2
|
-
import { useOnebI18n as
|
|
3
|
-
import { a as
|
|
4
|
-
import { S as
|
|
5
|
-
import { r as
|
|
6
|
-
import { r as
|
|
7
|
-
import { _ as
|
|
1
|
+
import { openBlock as l, createElementBlock as o, createElementVNode as f, ref as E, onMounted as Ze, toValue as Be, watch as W, onBeforeUnmount as Oe, defineComponent as ye, computed as y, normalizeClass as m, toDisplayString as w, Fragment as R, renderList as j, unref as p, createCommentVNode as g, createBlock as k, resolveDynamicComponent as C, useSlots as Pe, provide as De, withDirectives as et, renderSlot as F, vShow as tt, normalizeStyle as ne, createTextVNode as I, withModifiers as G, createVNode as Me, inject as st } from "vue";
|
|
2
|
+
import { useOnebI18n as Le } from "../i18n/index.js";
|
|
3
|
+
import { a as ce, r as rt } from "../ChevronRightIcon-4549a26b.js";
|
|
4
|
+
import { S as D } from "../SpinnerIcon-74648c98.js";
|
|
5
|
+
import { r as ie } from "../ChevronDownIcon-6805ce6c.js";
|
|
6
|
+
import { r as ee } from "../CheckIcon-f1c94824.js";
|
|
7
|
+
import { _ as lt } from "../_plugin-vue_export-helper-dad06003.js";
|
|
8
8
|
import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
|
|
9
|
-
function
|
|
9
|
+
function ot(u, i) {
|
|
10
10
|
return l(), o("svg", {
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12
12
|
fill: "none",
|
|
@@ -22,7 +22,7 @@ function lt(u, n) {
|
|
|
22
22
|
})
|
|
23
23
|
]);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Fe(u, i) {
|
|
26
26
|
return l(), o("svg", {
|
|
27
27
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28
28
|
fill: "none",
|
|
@@ -38,7 +38,7 @@ function Me(u, n) {
|
|
|
38
38
|
})
|
|
39
39
|
]);
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const at = {
|
|
42
42
|
field: {
|
|
43
43
|
type: String,
|
|
44
44
|
required: !1
|
|
@@ -91,7 +91,7 @@ const ot = {
|
|
|
91
91
|
type: String,
|
|
92
92
|
required: !1
|
|
93
93
|
}
|
|
94
|
-
},
|
|
94
|
+
}, nt = {
|
|
95
95
|
value: {
|
|
96
96
|
type: Array,
|
|
97
97
|
default: () => []
|
|
@@ -223,53 +223,57 @@ const ot = {
|
|
|
223
223
|
cardBreakpoint: {
|
|
224
224
|
type: String,
|
|
225
225
|
required: !1
|
|
226
|
+
},
|
|
227
|
+
disabledRows: {
|
|
228
|
+
type: Function,
|
|
229
|
+
required: !1
|
|
226
230
|
}
|
|
227
|
-
},
|
|
228
|
-
contains: (u,
|
|
229
|
-
startsWith: (u,
|
|
230
|
-
endsWith: (u,
|
|
231
|
-
equals: (u,
|
|
232
|
-
notEquals: (u,
|
|
233
|
-
},
|
|
231
|
+
}, Te = Symbol("OneDataTable"), $e = {
|
|
232
|
+
contains: (u, i) => String(u ?? "").toLowerCase().includes(String(i).toLowerCase()),
|
|
233
|
+
startsWith: (u, i) => String(u ?? "").toLowerCase().startsWith(String(i).toLowerCase()),
|
|
234
|
+
endsWith: (u, i) => String(u ?? "").toLowerCase().endsWith(String(i).toLowerCase()),
|
|
235
|
+
equals: (u, i) => String(u ?? "").toLowerCase() === String(i).toLowerCase(),
|
|
236
|
+
notEquals: (u, i) => String(u ?? "").toLowerCase() !== String(i).toLowerCase()
|
|
237
|
+
}, it = {
|
|
234
238
|
sm: 640,
|
|
235
239
|
md: 768,
|
|
236
240
|
lg: 1024,
|
|
237
241
|
xl: 1280,
|
|
238
242
|
"2xl": 1536
|
|
239
243
|
};
|
|
240
|
-
function
|
|
241
|
-
const
|
|
242
|
-
let
|
|
244
|
+
function dt(u) {
|
|
245
|
+
const i = E(!1);
|
|
246
|
+
let c = null, s = null;
|
|
243
247
|
const d = () => {
|
|
244
|
-
|
|
245
|
-
},
|
|
246
|
-
d(), !(typeof window > "u") && (
|
|
247
|
-
|
|
248
|
-
},
|
|
248
|
+
c && s && c.removeEventListener("change", s), c = null, s = null;
|
|
249
|
+
}, h = (b) => {
|
|
250
|
+
d(), !(typeof window > "u") && (c = window.matchMedia(b), i.value = c.matches, s = (P) => {
|
|
251
|
+
i.value = P.matches;
|
|
252
|
+
}, c.addEventListener("change", s));
|
|
249
253
|
};
|
|
250
|
-
return
|
|
251
|
-
|
|
252
|
-
() =>
|
|
253
|
-
(
|
|
254
|
-
|
|
254
|
+
return Ze(() => {
|
|
255
|
+
h(Be(u)), W(
|
|
256
|
+
() => Be(u),
|
|
257
|
+
(b) => {
|
|
258
|
+
h(b);
|
|
255
259
|
}
|
|
256
260
|
);
|
|
257
261
|
}), Oe(() => {
|
|
258
262
|
d();
|
|
259
|
-
}),
|
|
263
|
+
}), i;
|
|
260
264
|
}
|
|
261
|
-
function
|
|
262
|
-
return
|
|
265
|
+
function A(u) {
|
|
266
|
+
return dt(`(min-width: ${it[u]}px)`);
|
|
263
267
|
}
|
|
264
|
-
const
|
|
265
|
-
const
|
|
266
|
-
return u &&
|
|
267
|
-
},
|
|
268
|
-
const
|
|
269
|
-
return u === "sm" ?
|
|
270
|
-
},
|
|
271
|
-
const
|
|
272
|
-
return s === "minimal" ?
|
|
268
|
+
const ut = (u = !0) => {
|
|
269
|
+
const i = ["overflow-x-auto", "w-full"];
|
|
270
|
+
return u && i.push("border", "border-gray-100", "rounded"), i;
|
|
271
|
+
}, pt = (u) => {
|
|
272
|
+
const i = ["min-w-full", "text-left", "relative"];
|
|
273
|
+
return u === "sm" ? i.push("text-xs") : u === "lg" ? i.push("text-base") : i.push("text-sm"), i;
|
|
274
|
+
}, de = (u, i, c = "none", s = "default", d) => {
|
|
275
|
+
const h = [];
|
|
276
|
+
return s === "minimal" ? h.push(
|
|
273
277
|
d || "bg-gray-50",
|
|
274
278
|
"text-gray-700",
|
|
275
279
|
"font-medium",
|
|
@@ -277,7 +281,7 @@ const dt = (u = !0) => {
|
|
|
277
281
|
"normal-case",
|
|
278
282
|
"border-b",
|
|
279
283
|
"border-gray-200"
|
|
280
|
-
) :
|
|
284
|
+
) : h.push(
|
|
281
285
|
d || "bg-gray-100",
|
|
282
286
|
"text-gray-600",
|
|
283
287
|
"font-semibold",
|
|
@@ -287,20 +291,20 @@ const dt = (u = !0) => {
|
|
|
287
291
|
"border-b",
|
|
288
292
|
"border-gray-200",
|
|
289
293
|
"whitespace-nowrap"
|
|
290
|
-
),
|
|
291
|
-
},
|
|
294
|
+
), i && h.push("cursor-pointer", "select-none", "hover:text-primary-base", "transition-colors"), c === "always" ? h.push("border-r", "border-r-gray-200", "last:border-r-0") : (c === "hover" || c === "hover-table") && h.push("border-r", "border-r-transparent", "last:border-r-0"), u === "sm" ? h.push("px-1.5", "py-1") : u === "lg" ? h.push("px-4", "py-3") : h.push("p-2"), h;
|
|
295
|
+
}, ue = (u, i, c = "none", s) => {
|
|
292
296
|
const d = ["border-b", "border-gray-100", "text-gray-900"];
|
|
293
|
-
return s && d.push(s),
|
|
294
|
-
},
|
|
295
|
-
const
|
|
296
|
-
return d &&
|
|
297
|
-
},
|
|
298
|
-
const
|
|
299
|
-
return u ?
|
|
300
|
-
},
|
|
301
|
-
const
|
|
302
|
-
return u === "sm" ?
|
|
303
|
-
},
|
|
297
|
+
return s && d.push(s), i && d.push("border-r"), c === "always" ? d.push("border-r", "border-r-gray-200", "last:border-r-0") : (c === "hover" || c === "hover-table") && d.push("border-r", "border-r-transparent", "last:border-r-0"), u === "sm" ? d.push("px-1.5", "py-1") : u === "lg" ? d.push("px-4", "py-3") : d.push("px-2", "py-1.5"), d;
|
|
298
|
+
}, ct = (u, i, c, s, d = !1, h = !1) => {
|
|
299
|
+
const b = [];
|
|
300
|
+
return d && b.push("group"), h ? (b.push("opacity-50"), b) : (s ? b.push("bg-primary-25") : u && c && b.push("bg-gray-50"), i && (s ? b.push("hover:bg-primary-25-hover", "transition-colors") : b.push("hover:bg-gray-50", "transition-colors")), b);
|
|
301
|
+
}, te = (u) => {
|
|
302
|
+
const i = ["w-3.5", "h-3.5", "inline-block", "ml-1"];
|
|
303
|
+
return u ? i.push("text-primary-base") : i.push("text-gray-400"), i.push("transition-transform", "duration-200"), i;
|
|
304
|
+
}, fe = (u) => {
|
|
305
|
+
const i = ["text-center"];
|
|
306
|
+
return u === "sm" ? i.push("w-8") : u === "lg" ? i.push("w-14") : i.push("w-12"), i;
|
|
307
|
+
}, qe = (u) => fe(u), ft = () => [
|
|
304
308
|
"flex",
|
|
305
309
|
"items-center",
|
|
306
310
|
"justify-between",
|
|
@@ -310,16 +314,16 @@ const dt = (u = !0) => {
|
|
|
310
314
|
"border-gray-100",
|
|
311
315
|
"bg-white",
|
|
312
316
|
"text-sm"
|
|
313
|
-
],
|
|
314
|
-
const
|
|
315
|
-
return
|
|
316
|
-
},
|
|
317
|
-
const
|
|
318
|
-
return u === "sm" ?
|
|
319
|
-
},
|
|
320
|
-
const
|
|
321
|
-
return u === "sm" ?
|
|
322
|
-
},
|
|
317
|
+
], yt = (u, i, c = !1) => {
|
|
318
|
+
const s = ["rounded", "border", "p-3"];
|
|
319
|
+
return c ? (s.push("bg-white", "border-gray-100", "opacity-50"), s) : (i ? s.push("bg-primary-25", "border-primary-base/20") : s.push("bg-white", "border-gray-100"), u && (i ? s.push("hover:bg-primary-25-hover", "transition-colors") : s.push("hover:bg-gray-50", "transition-colors")), s);
|
|
320
|
+
}, gt = (u) => {
|
|
321
|
+
const i = ["flex", "items-start", "justify-between", "gap-2"];
|
|
322
|
+
return u === "sm" ? i.push("py-0.5") : u === "lg" ? i.push("py-2") : i.push("py-1"), i;
|
|
323
|
+
}, pe = (u) => {
|
|
324
|
+
const i = ["bg-gray-100", "border-b", "border-gray-200"];
|
|
325
|
+
return u === "sm" ? i.push("px-1.5", "py-1") : u === "lg" ? i.push("px-4", "py-2") : i.push("px-2", "py-1.5"), i;
|
|
326
|
+
}, ht = { class: "flex items-center gap-4" }, bt = { class: "text-gray-600" }, vt = ["value"], mt = ["value"], kt = { class: "flex items-center gap-1" }, wt = ["disabled"], Ct = { class: "px-2 text-gray-600" }, xt = ["disabled"], _t = /* @__PURE__ */ ye({
|
|
323
327
|
__name: "OneDataTablePaginator",
|
|
324
328
|
props: {
|
|
325
329
|
first: {
|
|
@@ -340,129 +344,129 @@ const dt = (u = !0) => {
|
|
|
340
344
|
}
|
|
341
345
|
},
|
|
342
346
|
emits: ["update:first", "update:rows", "page"],
|
|
343
|
-
setup(u, { emit:
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
first:
|
|
347
|
-
rows:
|
|
348
|
-
page: Math.floor(
|
|
349
|
-
pageCount:
|
|
347
|
+
setup(u, { emit: i }) {
|
|
348
|
+
const c = u, s = i, d = Le(), h = y(() => Math.ceil(c.totalRecords / c.rows)), b = y(() => Math.floor(c.first / c.rows) + 1), P = y(() => c.totalRecords === 0 ? 0 : c.first + 1), ge = y(() => Math.min(c.first + c.rows, c.totalRecords)), he = y(() => c.first === 0), L = y(() => c.first + c.rows >= c.totalRecords), U = y(() => ft()), N = (B) => {
|
|
349
|
+
B < 0 || B >= c.totalRecords || (s("update:first", B), s("page", {
|
|
350
|
+
first: B,
|
|
351
|
+
rows: c.rows,
|
|
352
|
+
page: Math.floor(B / c.rows),
|
|
353
|
+
pageCount: h.value
|
|
350
354
|
}));
|
|
351
|
-
},
|
|
352
|
-
N(Math.max(0,
|
|
355
|
+
}, Q = () => {
|
|
356
|
+
N(Math.max(0, c.first - c.rows));
|
|
353
357
|
}, x = () => {
|
|
354
|
-
N(
|
|
355
|
-
},
|
|
356
|
-
const
|
|
357
|
-
s("update:rows",
|
|
358
|
+
N(c.first + c.rows);
|
|
359
|
+
}, J = (B) => {
|
|
360
|
+
const $ = parseInt(B.target.value);
|
|
361
|
+
s("update:rows", $), s("update:first", 0), s("page", {
|
|
358
362
|
first: 0,
|
|
359
|
-
rows:
|
|
363
|
+
rows: $,
|
|
360
364
|
page: 0,
|
|
361
|
-
pageCount: Math.ceil(
|
|
365
|
+
pageCount: Math.ceil(c.totalRecords / $)
|
|
362
366
|
});
|
|
363
367
|
};
|
|
364
|
-
return (
|
|
365
|
-
class:
|
|
368
|
+
return (B, $) => (l(), o("div", {
|
|
369
|
+
class: m(U.value)
|
|
366
370
|
}, [
|
|
367
|
-
f("div",
|
|
368
|
-
f("span",
|
|
371
|
+
f("div", ht, [
|
|
372
|
+
f("span", bt, w(P.value) + "–" + w(ge.value) + " of " + w(u.totalRecords), 1),
|
|
369
373
|
u.rowsPerPageOptions.length > 1 ? (l(), o("select", {
|
|
370
374
|
key: 0,
|
|
371
375
|
value: u.rows,
|
|
372
376
|
class: "border border-gray-300 rounded px-2 py-1 text-sm bg-white focus:outline-none focus:ring-1 focus:ring-primary-glow",
|
|
373
|
-
onChange:
|
|
377
|
+
onChange: J
|
|
374
378
|
}, [
|
|
375
|
-
(l(!0), o(
|
|
376
|
-
key:
|
|
377
|
-
value:
|
|
378
|
-
},
|
|
379
|
-
], 40, vt)) :
|
|
379
|
+
(l(!0), o(R, null, j(u.rowsPerPageOptions, (q) => (l(), o("option", {
|
|
380
|
+
key: q,
|
|
381
|
+
value: q
|
|
382
|
+
}, w(p(d)("ui.dataTable.perPage", { count: q })), 9, mt))), 128))
|
|
383
|
+
], 40, vt)) : g("", !0)
|
|
380
384
|
]),
|
|
381
|
-
f("div",
|
|
385
|
+
f("div", kt, [
|
|
382
386
|
f("button", {
|
|
383
|
-
disabled:
|
|
387
|
+
disabled: he.value,
|
|
384
388
|
class: "p-1.5 rounded hover:bg-gray-100 disabled:opacity-30 disabled:cursor-default transition-colors",
|
|
385
|
-
onClick:
|
|
389
|
+
onClick: Q
|
|
386
390
|
}, [
|
|
387
|
-
(l(),
|
|
388
|
-
], 8,
|
|
389
|
-
f("span",
|
|
391
|
+
(l(), k(C(p(ot)), { class: "w-4 h-4 text-gray-600" }))
|
|
392
|
+
], 8, wt),
|
|
393
|
+
f("span", Ct, w(b.value) + " / " + w(h.value), 1),
|
|
390
394
|
f("button", {
|
|
391
|
-
disabled:
|
|
395
|
+
disabled: L.value,
|
|
392
396
|
class: "p-1.5 rounded hover:bg-gray-100 disabled:opacity-30 disabled:cursor-default transition-colors",
|
|
393
397
|
onClick: x
|
|
394
398
|
}, [
|
|
395
|
-
(l(),
|
|
396
|
-
], 8,
|
|
399
|
+
(l(), k(C(p(ce)), { class: "w-4 h-4 text-gray-600" }))
|
|
400
|
+
], 8, xt)
|
|
397
401
|
])
|
|
398
402
|
], 2));
|
|
399
403
|
}
|
|
400
|
-
}),
|
|
404
|
+
}), St = {
|
|
401
405
|
key: 0,
|
|
402
406
|
class: "mb-3"
|
|
403
|
-
},
|
|
407
|
+
}, Rt = { key: 0 }, Bt = {
|
|
404
408
|
key: 0,
|
|
405
409
|
class: "w-5 h-5 rounded bg-primary-base flex items-center justify-center text-white"
|
|
406
|
-
},
|
|
410
|
+
}, Mt = {
|
|
407
411
|
key: 1,
|
|
408
412
|
class: "w-5 h-5 rounded border border-gray-300 bg-white"
|
|
409
|
-
},
|
|
413
|
+
}, Ft = ["onClick"], $t = {
|
|
410
414
|
key: 1,
|
|
411
415
|
class: "inline-flex items-center gap-1"
|
|
412
|
-
},
|
|
416
|
+
}, qt = { key: 0 }, Ot = ["value", "placeholder", "onInput"], Pt = { key: 1 }, Lt = ["onClick"], Tt = ["onClick"], Et = {
|
|
413
417
|
key: 0,
|
|
414
418
|
class: "w-5 h-5 rounded bg-primary-base flex items-center justify-center text-white"
|
|
415
|
-
},
|
|
419
|
+
}, jt = {
|
|
416
420
|
key: 1,
|
|
417
421
|
class: "w-5 h-5 rounded border border-gray-300 bg-white"
|
|
418
|
-
},
|
|
422
|
+
}, Kt = ["onClick"], Nt = {
|
|
419
423
|
key: 0,
|
|
420
424
|
class: "w-5 h-5 rounded-full bg-primary-base flex items-center justify-center"
|
|
421
|
-
},
|
|
425
|
+
}, zt = {
|
|
422
426
|
key: 1,
|
|
423
427
|
class: "w-5 h-5 rounded-full border border-gray-300 bg-white"
|
|
424
|
-
},
|
|
428
|
+
}, Vt = ["disabled", "onClick"], At = { key: 0 }, Wt = ["colspan"], Ut = { key: 2 }, Qt = ["colspan"], Ht = { class: "flex items-center justify-center gap-2 text-gray-500" }, It = { key: 3 }, Gt = ["colspan"], Jt = { class: "text-gray-400" }, Xt = { key: 4 }, Yt = ["colspan"], Zt = ["disabled"], Dt = { key: 2 }, es = {
|
|
425
429
|
key: 0,
|
|
426
430
|
class: "text-center py-12"
|
|
427
|
-
},
|
|
431
|
+
}, ts = { class: "flex items-center justify-center gap-2 text-gray-500" }, ss = {
|
|
428
432
|
key: 1,
|
|
429
433
|
class: "text-center py-12"
|
|
430
|
-
},
|
|
434
|
+
}, rs = { class: "text-gray-400" }, ls = {
|
|
431
435
|
key: 2,
|
|
432
436
|
class: "space-y-2"
|
|
433
|
-
},
|
|
437
|
+
}, os = {
|
|
434
438
|
key: 0,
|
|
435
439
|
class: "flex items-center gap-2 px-3 py-2"
|
|
436
|
-
},
|
|
440
|
+
}, as = {
|
|
437
441
|
key: 0,
|
|
438
442
|
class: "w-5 h-5 rounded bg-primary-base flex items-center justify-center text-white"
|
|
439
|
-
},
|
|
443
|
+
}, ns = {
|
|
440
444
|
key: 1,
|
|
441
445
|
class: "w-5 h-5 rounded border border-gray-300 bg-white"
|
|
442
|
-
},
|
|
446
|
+
}, is = { class: "text-sm text-gray-500" }, ds = ["onClick"], us = {
|
|
443
447
|
key: 0,
|
|
444
448
|
class: "flex items-center justify-between mb-2"
|
|
445
|
-
},
|
|
449
|
+
}, ps = { key: 0 }, cs = ["onClick"], fs = {
|
|
446
450
|
key: 0,
|
|
447
451
|
class: "w-5 h-5 rounded bg-primary-base flex items-center justify-center text-white"
|
|
448
|
-
},
|
|
452
|
+
}, ys = {
|
|
449
453
|
key: 1,
|
|
450
454
|
class: "w-5 h-5 rounded border border-gray-300 bg-white"
|
|
451
|
-
},
|
|
455
|
+
}, gs = ["onClick"], hs = {
|
|
452
456
|
key: 0,
|
|
453
457
|
class: "w-5 h-5 rounded-full bg-primary-base flex items-center justify-center"
|
|
454
|
-
},
|
|
458
|
+
}, bs = {
|
|
455
459
|
key: 1,
|
|
456
460
|
class: "w-5 h-5 rounded-full border border-gray-300 bg-white"
|
|
457
|
-
}, vs = { key: 1 },
|
|
461
|
+
}, vs = { key: 1 }, ms = ["disabled", "onClick"], ks = { class: "text-gray-500 text-xs font-medium shrink-0" }, ws = { class: "text-right" }, Cs = {
|
|
458
462
|
key: 1,
|
|
459
463
|
class: "mt-2 pt-2 border-t border-gray-100"
|
|
460
|
-
},
|
|
464
|
+
}, xs = ["disabled"], _s = {
|
|
461
465
|
key: 4,
|
|
462
466
|
class: "mt-3"
|
|
463
|
-
},
|
|
467
|
+
}, Ss = /* @__PURE__ */ ye({
|
|
464
468
|
__name: "OneDataTable",
|
|
465
|
-
props:
|
|
469
|
+
props: nt,
|
|
466
470
|
emits: [
|
|
467
471
|
"update:value",
|
|
468
472
|
"update:selection",
|
|
@@ -482,45 +486,48 @@ const dt = (u = !0) => {
|
|
|
482
486
|
"row-collapse",
|
|
483
487
|
"load:next"
|
|
484
488
|
],
|
|
485
|
-
setup(u, { expose:
|
|
486
|
-
const s = u, d =
|
|
487
|
-
|
|
489
|
+
setup(u, { expose: i, emit: c }) {
|
|
490
|
+
const s = u, d = c, h = Pe(), b = Le(), P = E([]);
|
|
491
|
+
De(Te, { registerColumn: (e) => {
|
|
488
492
|
P.value.push(e);
|
|
489
493
|
}, unregisterColumn: (e) => {
|
|
490
494
|
const r = P.value.indexOf(e);
|
|
491
495
|
r > -1 && P.value.splice(r, 1);
|
|
492
496
|
} });
|
|
493
|
-
const
|
|
494
|
-
|
|
497
|
+
const L = E(s.first), U = E(s.rows), N = E(s.sortField), Q = E(s.sortOrder);
|
|
498
|
+
W(
|
|
495
499
|
() => s.first,
|
|
496
500
|
(e) => {
|
|
497
|
-
|
|
501
|
+
L.value = e;
|
|
498
502
|
}
|
|
499
|
-
),
|
|
503
|
+
), W(
|
|
500
504
|
() => s.rows,
|
|
501
505
|
(e) => {
|
|
502
|
-
|
|
506
|
+
U.value = e;
|
|
503
507
|
}
|
|
504
|
-
),
|
|
508
|
+
), W(
|
|
505
509
|
() => s.sortField,
|
|
506
510
|
(e) => {
|
|
507
511
|
N.value = e;
|
|
508
512
|
}
|
|
509
|
-
),
|
|
513
|
+
), W(
|
|
510
514
|
() => s.sortOrder,
|
|
511
515
|
(e) => {
|
|
512
|
-
|
|
516
|
+
Q.value = e;
|
|
513
517
|
}
|
|
514
518
|
);
|
|
515
519
|
const x = E([...s.value]);
|
|
516
|
-
|
|
520
|
+
W(
|
|
517
521
|
() => s.value,
|
|
518
522
|
(e) => {
|
|
519
523
|
x.value = [...e];
|
|
520
524
|
}
|
|
521
525
|
);
|
|
522
|
-
const
|
|
523
|
-
|
|
526
|
+
const J = y(() => L.value), B = y(() => U.value), $ = y(() => N.value), q = y(() => Q.value), _ = (e, r) => r ? r.split(".").reduce((t, n) => t == null ? void 0 : t[n], e) : e, be = (e) => s.dataKey ? _(e, s.dataKey) : e, O = (e, r) => e == null || r == null ? e === r : s.dataKey ? _(e, s.dataKey) === _(r, s.dataKey) : e === r, ve = (e, r) => s.dataKey ? _(e, s.dataKey) : r, S = (e) => {
|
|
527
|
+
var r;
|
|
528
|
+
return ((r = s.disabledRows) == null ? void 0 : r.call(s, e)) ?? !1;
|
|
529
|
+
};
|
|
530
|
+
i({ updateRow: (e) => {
|
|
524
531
|
if (!s.dataKey)
|
|
525
532
|
return console.warn("[OneDataTable] updateRow requires dataKey to be set"), !1;
|
|
526
533
|
const r = _(e, s.dataKey), t = x.value.findIndex(
|
|
@@ -528,8 +535,8 @@ const dt = (u = !0) => {
|
|
|
528
535
|
);
|
|
529
536
|
if (t === -1)
|
|
530
537
|
return !1;
|
|
531
|
-
const
|
|
532
|
-
return
|
|
538
|
+
const n = [...x.value];
|
|
539
|
+
return n[t] = e, x.value = n, d("update:value", n), !0;
|
|
533
540
|
}, addItems: (e, r = "append") => {
|
|
534
541
|
const t = r === "prepend" ? [...e, ...x.value] : [...x.value, ...e];
|
|
535
542
|
x.value = t, d("update:value", t);
|
|
@@ -537,496 +544,502 @@ const dt = (u = !0) => {
|
|
|
537
544
|
if (!s.dataKey)
|
|
538
545
|
return console.warn("[OneDataTable] removeRow requires dataKey to be set"), !1;
|
|
539
546
|
const r = x.value.findIndex(
|
|
540
|
-
(
|
|
547
|
+
(n) => _(n, s.dataKey) === e
|
|
541
548
|
);
|
|
542
549
|
if (r === -1)
|
|
543
550
|
return !1;
|
|
544
551
|
const t = [...x.value];
|
|
545
552
|
return t.splice(r, 1), x.value = t, d("update:value", t), !0;
|
|
546
553
|
} });
|
|
547
|
-
const
|
|
548
|
-
() =>
|
|
549
|
-
),
|
|
550
|
-
var t,
|
|
554
|
+
const M = y(() => P.value.some((e) => e.props.expander)), T = y(() => !!s.selectionMode), X = y(() => s.selectionMode === "multiple"), se = y(() => P.value.filter((e) => !e.props.expander)), Y = y(
|
|
555
|
+
() => H.value.length + (T.value ? 1 : 0) + (M.value ? 1 : 0)
|
|
556
|
+
), me = y(() => {
|
|
557
|
+
var t, n;
|
|
551
558
|
if (s.lazy || !s.filters)
|
|
552
559
|
return x.value;
|
|
553
560
|
let e = [...x.value];
|
|
554
561
|
const r = s.filters;
|
|
555
|
-
if ((t = r.global) != null && t.value && ((
|
|
562
|
+
if ((t = r.global) != null && t.value && ((n = s.globalFilterFields) != null && n.length)) {
|
|
556
563
|
const a = r.global.value;
|
|
557
564
|
e = e.filter(
|
|
558
|
-
(
|
|
559
|
-
(
|
|
565
|
+
(v) => s.globalFilterFields.some(
|
|
566
|
+
(ae) => $e.contains(_(v, ae), a)
|
|
560
567
|
)
|
|
561
568
|
);
|
|
562
569
|
}
|
|
563
|
-
for (const [a,
|
|
564
|
-
if (a === "global" || !
|
|
570
|
+
for (const [a, v] of Object.entries(r)) {
|
|
571
|
+
if (a === "global" || !v.value)
|
|
565
572
|
continue;
|
|
566
|
-
const
|
|
567
|
-
|
|
573
|
+
const ae = v.matchMode || "contains", Re = $e[ae];
|
|
574
|
+
Re && (e = e.filter((Ye) => Re(_(Ye, a), v.value)));
|
|
568
575
|
}
|
|
569
576
|
return e;
|
|
570
|
-
}),
|
|
571
|
-
const e =
|
|
572
|
-
return s.lazy ||
|
|
573
|
-
const
|
|
574
|
-
if (
|
|
577
|
+
}), Ee = y(() => {
|
|
578
|
+
const e = me.value;
|
|
579
|
+
return s.lazy || !$.value || !q.value ? e : [...e].sort((r, t) => {
|
|
580
|
+
const n = _(r, $.value), a = _(t, $.value);
|
|
581
|
+
if (n == null && a == null)
|
|
575
582
|
return 0;
|
|
576
|
-
if (
|
|
583
|
+
if (n == null)
|
|
577
584
|
return 1;
|
|
578
585
|
if (a == null)
|
|
579
586
|
return -1;
|
|
580
|
-
let
|
|
581
|
-
return typeof
|
|
587
|
+
let v;
|
|
588
|
+
return typeof n == "number" && typeof a == "number" ? v = n - a : v = String(n).localeCompare(String(a)), q.value === 1 ? v : -v;
|
|
582
589
|
});
|
|
583
|
-
}),
|
|
584
|
-
const e =
|
|
590
|
+
}), ke = y(() => s.totalRecords ?? me.value.length), z = y(() => {
|
|
591
|
+
const e = Ee.value;
|
|
585
592
|
if (s.paginator && !s.lazy) {
|
|
586
|
-
const r =
|
|
593
|
+
const r = J.value, t = r + B.value;
|
|
587
594
|
return e.slice(r, t);
|
|
588
595
|
}
|
|
589
596
|
return e;
|
|
590
|
-
}),
|
|
597
|
+
}), je = (e) => {
|
|
591
598
|
let r;
|
|
592
|
-
|
|
593
|
-
},
|
|
594
|
-
if (d("row-click", { originalEvent: e, data: r, index: t }), s.selectionMode === "single") {
|
|
595
|
-
const
|
|
596
|
-
d("update:selection",
|
|
599
|
+
$.value === e ? q.value === 1 ? r = -1 : q.value === -1 ? r = null : r = 1 : r = 1, N.value = e, Q.value = r, d("update:sortField", e), d("update:sortOrder", r), d("sort", { field: e, order: r }), !s.lazy && s.paginator && (L.value = 0, d("update:first", 0));
|
|
600
|
+
}, we = (e) => e.props.sortField || e.props.field, Ke = (e) => $.value === we(e), K = (e) => s.selection ? s.selectionMode === "single" ? O(s.selection, e) : s.selectionMode === "multiple" ? s.selection.some((r) => O(r, e)) : !1 : !1, Z = (e, r, t) => {
|
|
601
|
+
if (d("row-click", { originalEvent: e, data: r, index: t }), !S(r) && s.selectionMode === "single") {
|
|
602
|
+
const n = O(s.selection, r) ? null : r;
|
|
603
|
+
d("update:selection", n), n ? d("row-select", { originalEvent: e, data: r }) : d("row-unselect", { originalEvent: e, data: r });
|
|
597
604
|
}
|
|
598
|
-
},
|
|
599
|
-
if (e.stopPropagation(), s.selectionMode === "multiple") {
|
|
600
|
-
const t = s.selection || [],
|
|
605
|
+
}, re = (e, r) => {
|
|
606
|
+
if (e.stopPropagation(), !S(r) && s.selectionMode === "multiple") {
|
|
607
|
+
const t = s.selection || [], n = t.some((v) => O(v, r));
|
|
601
608
|
let a;
|
|
602
|
-
|
|
609
|
+
n ? (a = t.filter((v) => !O(v, r)), d("row-unselect", { originalEvent: e, data: r })) : (a = [...t, r], d("row-select", { originalEvent: e, data: r })), d("update:selection", a);
|
|
603
610
|
}
|
|
604
|
-
},
|
|
611
|
+
}, le = y(() => {
|
|
605
612
|
if (s.selectionMode !== "multiple" || !s.selection)
|
|
606
613
|
return !1;
|
|
607
|
-
const e = s.selection;
|
|
608
|
-
return
|
|
609
|
-
}),
|
|
614
|
+
const e = s.selection, r = z.value.filter((t) => !S(t));
|
|
615
|
+
return r.length > 0 && r.every((t) => e.some((n) => O(n, t)));
|
|
616
|
+
}), Ce = (e) => {
|
|
610
617
|
e.stopPropagation();
|
|
611
|
-
const r = s.selection || [];
|
|
612
|
-
if (
|
|
613
|
-
const
|
|
614
|
-
(
|
|
618
|
+
const r = s.selection || [], t = z.value.filter((n) => !S(n));
|
|
619
|
+
if (le.value) {
|
|
620
|
+
const n = r.filter(
|
|
621
|
+
(a) => !t.some((v) => O(a, v))
|
|
615
622
|
);
|
|
616
|
-
d("update:selection",
|
|
623
|
+
d("update:selection", n);
|
|
617
624
|
} else {
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
}), d("update:selection",
|
|
625
|
+
const n = [...r];
|
|
626
|
+
t.forEach((a) => {
|
|
627
|
+
n.some((v) => O(v, a)) || n.push(a);
|
|
628
|
+
}), d("update:selection", n);
|
|
622
629
|
}
|
|
623
|
-
},
|
|
630
|
+
}, V = (e) => {
|
|
624
631
|
if (!s.expandedRows)
|
|
625
632
|
return !1;
|
|
626
633
|
if (Array.isArray(s.expandedRows))
|
|
627
634
|
return s.expandedRows.some((r) => O(r, e));
|
|
628
635
|
if (s.dataKey) {
|
|
629
|
-
const r = String(
|
|
636
|
+
const r = String(be(e));
|
|
630
637
|
return !!s.expandedRows[r];
|
|
631
638
|
}
|
|
632
639
|
return !1;
|
|
633
|
-
},
|
|
634
|
-
e.stopPropagation()
|
|
635
|
-
|
|
640
|
+
}, oe = (e, r) => {
|
|
641
|
+
if (e.stopPropagation(), S(r))
|
|
642
|
+
return;
|
|
643
|
+
const t = V(r);
|
|
636
644
|
if (Array.isArray(s.expandedRows)) {
|
|
637
|
-
let
|
|
638
|
-
t ? (
|
|
645
|
+
let n;
|
|
646
|
+
t ? (n = s.expandedRows.filter((a) => !O(a, r)), d("row-collapse", { originalEvent: e, data: r })) : (n = [...s.expandedRows, r], d("row-expand", { originalEvent: e, data: r })), d("update:expandedRows", n);
|
|
639
647
|
} else if (s.dataKey) {
|
|
640
|
-
const
|
|
641
|
-
t ? (delete a[
|
|
648
|
+
const n = String(be(r)), a = { ...s.expandedRows };
|
|
649
|
+
t ? (delete a[n], d("row-collapse", { originalEvent: e, data: r })) : (a[n] = !0, d("row-expand", { originalEvent: e, data: r })), d("update:expandedRows", a);
|
|
642
650
|
}
|
|
643
|
-
},
|
|
651
|
+
}, Ne = (e, r, t) => {
|
|
644
652
|
var a;
|
|
645
653
|
if (!s.filters)
|
|
646
654
|
return;
|
|
647
|
-
const
|
|
655
|
+
const n = {
|
|
648
656
|
...s.filters,
|
|
649
657
|
[e]: { value: r, matchMode: t || ((a = s.filters[e]) == null ? void 0 : a.matchMode) || "contains" }
|
|
650
658
|
};
|
|
651
|
-
d("update:filters",
|
|
652
|
-
},
|
|
659
|
+
d("update:filters", n), s.lazy && d("filter", { filters: n }), s.paginator && (L.value = 0, d("update:first", 0));
|
|
660
|
+
}, xe = (e) => {
|
|
653
661
|
var r;
|
|
654
662
|
return ((r = s.filters) == null ? void 0 : r[e]) || { value: null };
|
|
655
|
-
},
|
|
656
|
-
s.filters && (d("update:filters", { ...s.filters }), s.lazy && d("filter", { filters: s.filters }), s.paginator && (
|
|
657
|
-
}, ze = (e) => {
|
|
658
|
-
q.value = e, d("update:first", e);
|
|
663
|
+
}, ze = (e) => () => {
|
|
664
|
+
s.filters && (d("update:filters", { ...s.filters }), s.lazy && d("filter", { filters: s.filters }), s.paginator && (L.value = 0, d("update:first", 0)));
|
|
659
665
|
}, Ve = (e) => {
|
|
660
|
-
|
|
661
|
-
},
|
|
666
|
+
L.value = e, d("update:first", e);
|
|
667
|
+
}, Ae = (e) => {
|
|
668
|
+
U.value = e, d("update:rows", e);
|
|
669
|
+
}, _e = y(() => {
|
|
662
670
|
const e = [];
|
|
663
671
|
if (s.colWidths) {
|
|
664
672
|
if (typeof s.colWidths == "function") {
|
|
665
|
-
const r = s.colWidths(
|
|
666
|
-
return
|
|
673
|
+
const r = s.colWidths(se.value), t = [];
|
|
674
|
+
return T.value && t.push(""), M.value && t.push(""), [...t, ...r];
|
|
667
675
|
}
|
|
668
676
|
return s.colWidths;
|
|
669
677
|
}
|
|
670
|
-
return
|
|
678
|
+
return T.value && e.push(""), M.value && e.push(""), se.value.forEach((r) => {
|
|
671
679
|
e.push(r.props.width || "");
|
|
672
680
|
}), e;
|
|
673
|
-
}),
|
|
674
|
-
const e =
|
|
681
|
+
}), Se = y(() => _e.value.some((e) => e !== "" && e != null)), We = y(() => s.wrapperClass ? ["overflow-x-auto", "w-full", s.wrapperClass] : s.verticalBorders === "hover-table" ? ["overflow-x-auto", "w-full", "border", "border-transparent", "rounded"] : ut(s.wrapperBordered)), Ue = y(() => {
|
|
682
|
+
const e = pt(s.size);
|
|
675
683
|
return s.tableClass && e.push(s.tableClass), s.bordered && e.push("border", "border-gray-100"), e;
|
|
676
|
-
}),
|
|
677
|
-
sm:
|
|
678
|
-
md:
|
|
679
|
-
lg:
|
|
680
|
-
xl:
|
|
681
|
-
"2xl":
|
|
682
|
-
},
|
|
684
|
+
}), Qe = s.cardBreakpoint ? A(s.cardBreakpoint) : E(!0), He = y(() => !!s.cardBreakpoint && !Qe.value), Ie = {
|
|
685
|
+
sm: A("sm"),
|
|
686
|
+
md: A("md"),
|
|
687
|
+
lg: A("lg"),
|
|
688
|
+
xl: A("xl"),
|
|
689
|
+
"2xl": A("2xl")
|
|
690
|
+
}, Ge = (e) => {
|
|
683
691
|
var t;
|
|
684
692
|
if (!e.props.visibleFrom)
|
|
685
693
|
return !0;
|
|
686
694
|
const r = e.props.visibleFrom;
|
|
687
|
-
return ((t =
|
|
688
|
-
},
|
|
695
|
+
return ((t = Ie[r]) == null ? void 0 : t.value) ?? !0;
|
|
696
|
+
}, H = y(() => se.value.filter(Ge)), Je = (e) => (r) => oe(r, e), Xe = (e) => (r) => re(r, e);
|
|
689
697
|
return (e, r) => (l(), o("div", null, [
|
|
690
|
-
|
|
691
|
-
|
|
698
|
+
et(f("div", null, [
|
|
699
|
+
F(e.$slots, "default", {}, void 0, !0)
|
|
692
700
|
], 512), [
|
|
693
|
-
[
|
|
701
|
+
[tt, !1]
|
|
694
702
|
]),
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
])) :
|
|
698
|
-
|
|
699
|
-
e.loading ? (l(), o("div",
|
|
700
|
-
|
|
701
|
-
f("div",
|
|
702
|
-
|
|
703
|
-
f("span", null,
|
|
703
|
+
p(h).header ? (l(), o("div", St, [
|
|
704
|
+
F(e.$slots, "header", {}, void 0, !0)
|
|
705
|
+
])) : g("", !0),
|
|
706
|
+
He.value ? (l(), o("div", Dt, [
|
|
707
|
+
e.loading ? (l(), o("div", es, [
|
|
708
|
+
F(e.$slots, "loading", {}, () => [
|
|
709
|
+
f("div", ts, [
|
|
710
|
+
Me(D, { class: "w-5 h-5" }),
|
|
711
|
+
f("span", null, w(p(b)("ui.dataTable.loading")), 1)
|
|
704
712
|
])
|
|
705
713
|
], !0)
|
|
706
|
-
])) :
|
|
707
|
-
|
|
708
|
-
f("span",
|
|
714
|
+
])) : z.value.length === 0 ? (l(), o("div", ss, [
|
|
715
|
+
F(e.$slots, "empty", {}, () => [
|
|
716
|
+
f("span", rs, w(p(b)("ui.dataTable.noRecords")), 1)
|
|
709
717
|
], !0)
|
|
710
|
-
])) : (l(), o("div",
|
|
711
|
-
|
|
718
|
+
])) : (l(), o("div", ls, [
|
|
719
|
+
X.value ? (l(), o("div", os, [
|
|
712
720
|
f("div", {
|
|
713
721
|
class: "cursor-pointer",
|
|
714
|
-
onClick: r[2] || (r[2] = (t) =>
|
|
722
|
+
onClick: r[2] || (r[2] = (t) => Ce(t))
|
|
715
723
|
}, [
|
|
716
|
-
|
|
717
|
-
(l(),
|
|
718
|
-
])) : (l(), o("div",
|
|
724
|
+
le.value ? (l(), o("div", as, [
|
|
725
|
+
(l(), k(C(p(ee)), { class: "w-3.5 h-3.5" }))
|
|
726
|
+
])) : (l(), o("div", ns))
|
|
719
727
|
]),
|
|
720
|
-
f("span",
|
|
721
|
-
])) :
|
|
722
|
-
(l(!0), o(
|
|
723
|
-
key: ve(t,
|
|
724
|
-
class:
|
|
725
|
-
...
|
|
726
|
-
e.selectionMode ? "cursor-pointer" : ""
|
|
728
|
+
f("span", is, w(p(b)("ui.dataTable.selectAll")), 1)
|
|
729
|
+
])) : g("", !0),
|
|
730
|
+
(l(!0), o(R, null, j(z.value, (t, n) => (l(), o("div", {
|
|
731
|
+
key: ve(t, n),
|
|
732
|
+
class: m([
|
|
733
|
+
...p(yt)(e.hoverable, K(t), S(t)),
|
|
734
|
+
e.selectionMode && !S(t) ? "cursor-pointer" : ""
|
|
727
735
|
]),
|
|
728
|
-
onClick: (a) =>
|
|
736
|
+
onClick: (a) => Z(a, t, n)
|
|
729
737
|
}, [
|
|
730
|
-
|
|
738
|
+
p(h).card ? F(e.$slots, "card", {
|
|
731
739
|
key: 0,
|
|
732
740
|
data: t,
|
|
733
|
-
index:
|
|
741
|
+
index: n,
|
|
734
742
|
selected: K(t),
|
|
735
|
-
expanded:
|
|
736
|
-
toggleExpansion:
|
|
737
|
-
toggleSelection:
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
743
|
+
expanded: M.value && V(t),
|
|
744
|
+
toggleExpansion: Je(t),
|
|
745
|
+
toggleSelection: Xe(t),
|
|
746
|
+
disabled: S(t)
|
|
747
|
+
}, void 0, !0) : (l(), o(R, { key: 1 }, [
|
|
748
|
+
T.value || M.value ? (l(), o("div", us, [
|
|
749
|
+
T.value ? (l(), o("div", ps, [
|
|
750
|
+
X.value ? (l(), o("div", {
|
|
742
751
|
key: 0,
|
|
743
752
|
class: "cursor-pointer",
|
|
744
|
-
onClick:
|
|
753
|
+
onClick: G((a) => re(a, t), ["stop"])
|
|
745
754
|
}, [
|
|
746
|
-
K(t) ? (l(), o("div",
|
|
747
|
-
(l(),
|
|
748
|
-
])) : (l(), o("div",
|
|
749
|
-
], 8,
|
|
755
|
+
K(t) ? (l(), o("div", fs, [
|
|
756
|
+
(l(), k(C(p(ee)), { class: "w-3.5 h-3.5" }))
|
|
757
|
+
])) : (l(), o("div", ys))
|
|
758
|
+
], 8, cs)) : (l(), o("div", {
|
|
750
759
|
key: 1,
|
|
751
760
|
class: "cursor-pointer",
|
|
752
|
-
onClick:
|
|
761
|
+
onClick: G((a) => Z(a, t, n), ["stop"])
|
|
753
762
|
}, [
|
|
754
|
-
K(t) ? (l(), o("div",
|
|
763
|
+
K(t) ? (l(), o("div", hs, [...r[6] || (r[6] = [
|
|
755
764
|
f("div", { class: "w-2 h-2 rounded-full bg-white" }, null, -1)
|
|
756
|
-
])])) : (l(), o("div",
|
|
757
|
-
], 8,
|
|
765
|
+
])])) : (l(), o("div", bs))
|
|
766
|
+
], 8, gs))
|
|
758
767
|
])) : (l(), o("div", vs)),
|
|
759
|
-
|
|
768
|
+
M.value ? (l(), o("button", {
|
|
760
769
|
key: 2,
|
|
761
|
-
class: "p-1 rounded hover:bg-gray-100 transition-colors",
|
|
762
|
-
|
|
770
|
+
class: "p-1 rounded hover:bg-gray-100 transition-colors disabled:opacity-50 disabled:cursor-default disabled:hover:bg-transparent",
|
|
771
|
+
disabled: S(t),
|
|
772
|
+
onClick: G((a) => oe(a, t), ["stop"])
|
|
763
773
|
}, [
|
|
764
|
-
(l(),
|
|
765
|
-
], 8,
|
|
766
|
-
])) :
|
|
767
|
-
(l(!0), o(
|
|
768
|
-
key:
|
|
769
|
-
class:
|
|
774
|
+
(l(), k(C(V(t) ? p(ie) : p(ce)), { class: "w-4 h-4 text-gray-500" }))
|
|
775
|
+
], 8, ms)) : g("", !0)
|
|
776
|
+
])) : g("", !0),
|
|
777
|
+
(l(!0), o(R, null, j(H.value, (a, v) => (l(), o("div", {
|
|
778
|
+
key: v,
|
|
779
|
+
class: m(p(gt)(e.size))
|
|
770
780
|
}, [
|
|
771
|
-
f("span",
|
|
772
|
-
f("div",
|
|
773
|
-
a.slots.body ? (l(),
|
|
781
|
+
f("span", ks, w(a.props.header), 1),
|
|
782
|
+
f("div", ws, [
|
|
783
|
+
a.slots.body ? (l(), k(C(a.slots.body), {
|
|
774
784
|
key: 0,
|
|
775
785
|
data: t,
|
|
776
786
|
field: a.props.field,
|
|
777
|
-
index:
|
|
778
|
-
}, null, 8, ["data", "field", "index"])) : a.props.field ? (l(), o(
|
|
779
|
-
|
|
780
|
-
], 64)) :
|
|
787
|
+
index: n
|
|
788
|
+
}, null, 8, ["data", "field", "index"])) : a.props.field ? (l(), o(R, { key: 1 }, [
|
|
789
|
+
I(w(_(t, a.props.field)), 1)
|
|
790
|
+
], 64)) : g("", !0)
|
|
781
791
|
])
|
|
782
792
|
], 2))), 128)),
|
|
783
|
-
|
|
784
|
-
|
|
793
|
+
M.value && V(t) ? (l(), o("div", Cs, [
|
|
794
|
+
F(e.$slots, "expansion", {
|
|
785
795
|
data: t,
|
|
786
|
-
index:
|
|
796
|
+
index: n
|
|
787
797
|
}, void 0, !0)
|
|
788
|
-
])) :
|
|
798
|
+
])) : g("", !0)
|
|
789
799
|
], 64))
|
|
790
|
-
], 10,
|
|
800
|
+
], 10, ds))), 128)),
|
|
791
801
|
e.hasNextPage && !e.loading ? (l(), o("button", {
|
|
792
802
|
key: 1,
|
|
793
803
|
class: "w-full p-2 rounded bg-primary-base bg-opacity-10 text-primary-base text-sm font-medium hover:bg-opacity-20 transition-colors disabled:opacity-50 disabled:cursor-default flex items-center justify-center gap-2",
|
|
794
804
|
disabled: e.loadingNext,
|
|
795
805
|
onClick: r[3] || (r[3] = (t) => d("load:next"))
|
|
796
806
|
}, [
|
|
797
|
-
e.loadingNext ? (l(),
|
|
807
|
+
e.loadingNext ? (l(), k(D, {
|
|
798
808
|
key: 0,
|
|
799
809
|
class: "w-4 h-4"
|
|
800
|
-
})) :
|
|
801
|
-
|
|
802
|
-
], 8,
|
|
810
|
+
})) : g("", !0),
|
|
811
|
+
I(" " + w(e.loadMoreLabel || p(b)("ui.dataTable.showMore")), 1)
|
|
812
|
+
], 8, xs)) : g("", !0)
|
|
803
813
|
]))
|
|
804
814
|
])) : (l(), o("div", {
|
|
805
815
|
key: 1,
|
|
806
|
-
class:
|
|
816
|
+
class: m([...We.value, e.verticalBorders === "hover-table" ? "vb-hover" : ""])
|
|
807
817
|
}, [
|
|
808
818
|
f("table", {
|
|
809
|
-
class:
|
|
810
|
-
...
|
|
819
|
+
class: m([
|
|
820
|
+
...Ue.value,
|
|
811
821
|
e.verticalBorders !== "none" ? "border-separate border-spacing-0" : "border-collapse",
|
|
812
822
|
e.verticalBorders === "hover" ? "vb-hover" : "",
|
|
813
|
-
|
|
823
|
+
Se.value ? "table-fixed" : ""
|
|
814
824
|
])
|
|
815
825
|
}, [
|
|
816
|
-
|
|
817
|
-
(l(!0), o(
|
|
818
|
-
key: `col-${
|
|
819
|
-
style:
|
|
826
|
+
Se.value ? (l(), o("colgroup", Rt, [
|
|
827
|
+
(l(!0), o(R, null, j(_e.value, (t, n) => (l(), o("col", {
|
|
828
|
+
key: `col-${n}`,
|
|
829
|
+
style: ne(t ? { width: t } : {})
|
|
820
830
|
}, null, 4))), 128))
|
|
821
|
-
])) :
|
|
831
|
+
])) : g("", !0),
|
|
822
832
|
f("thead", null, [
|
|
823
833
|
f("tr", null, [
|
|
824
|
-
|
|
834
|
+
T.value ? (l(), o("th", {
|
|
825
835
|
key: 0,
|
|
826
|
-
class:
|
|
827
|
-
...
|
|
828
|
-
...
|
|
836
|
+
class: m([
|
|
837
|
+
...p(de)(e.size, !1, e.verticalBorders, e.headerVariant, e.headerBgClass),
|
|
838
|
+
...p(fe)(e.size)
|
|
829
839
|
])
|
|
830
840
|
}, [
|
|
831
|
-
|
|
841
|
+
X.value ? (l(), o("div", {
|
|
832
842
|
key: 0,
|
|
833
843
|
class: "flex items-center justify-center cursor-pointer",
|
|
834
|
-
onClick: r[0] || (r[0] = (t) =>
|
|
844
|
+
onClick: r[0] || (r[0] = (t) => Ce(t))
|
|
835
845
|
}, [
|
|
836
|
-
|
|
837
|
-
(l(),
|
|
838
|
-
])) : (l(), o("div",
|
|
839
|
-
])) :
|
|
840
|
-
], 2)) :
|
|
841
|
-
|
|
846
|
+
le.value ? (l(), o("div", Bt, [
|
|
847
|
+
(l(), k(C(p(ee)), { class: "w-3.5 h-3.5" }))
|
|
848
|
+
])) : (l(), o("div", Mt))
|
|
849
|
+
])) : g("", !0)
|
|
850
|
+
], 2)) : g("", !0),
|
|
851
|
+
M.value ? (l(), o("th", {
|
|
842
852
|
key: 1,
|
|
843
|
-
class:
|
|
844
|
-
...
|
|
845
|
-
...
|
|
853
|
+
class: m([
|
|
854
|
+
...p(de)(e.size, !1, e.verticalBorders, e.headerVariant, e.headerBgClass),
|
|
855
|
+
...p(qe)(e.size)
|
|
846
856
|
])
|
|
847
|
-
}, null, 2)) :
|
|
848
|
-
(l(!0), o(
|
|
849
|
-
key:
|
|
850
|
-
class:
|
|
851
|
-
...
|
|
857
|
+
}, null, 2)) : g("", !0),
|
|
858
|
+
(l(!0), o(R, null, j(H.value, (t, n) => (l(), o("th", {
|
|
859
|
+
key: n,
|
|
860
|
+
class: m([
|
|
861
|
+
...p(de)(e.size, t.props.sortable, e.verticalBorders, e.headerVariant, e.headerBgClass),
|
|
852
862
|
t.props.headerClass
|
|
853
863
|
]),
|
|
854
|
-
style:
|
|
855
|
-
onClick: (a) => t.props.sortable ?
|
|
864
|
+
style: ne([t.props.headerStyle, t.props.width ? { width: t.props.width } : {}]),
|
|
865
|
+
onClick: (a) => t.props.sortable ? je(we(t)) : void 0
|
|
856
866
|
}, [
|
|
857
|
-
t.slots.header ? (l(),
|
|
858
|
-
|
|
859
|
-
t.props.sortable ? (l(), o(
|
|
860
|
-
|
|
867
|
+
t.slots.header ? (l(), k(C(t.slots.header), { key: 0 })) : (l(), o("span", $t, [
|
|
868
|
+
I(w(t.props.header) + " ", 1),
|
|
869
|
+
t.props.sortable ? (l(), o(R, { key: 0 }, [
|
|
870
|
+
Ke(t) ? q.value === 1 ? (l(), k(C(p(rt)), {
|
|
861
871
|
key: 1,
|
|
862
|
-
class:
|
|
863
|
-
}, null, 8, ["class"])) :
|
|
872
|
+
class: m(p(te)(!0))
|
|
873
|
+
}, null, 8, ["class"])) : q.value === -1 ? (l(), k(C(p(ie)), {
|
|
864
874
|
key: 2,
|
|
865
|
-
class:
|
|
866
|
-
}, null, 8, ["class"])) : (l(),
|
|
875
|
+
class: m(p(te)(!0))
|
|
876
|
+
}, null, 8, ["class"])) : (l(), k(C(p(Fe)), {
|
|
867
877
|
key: 3,
|
|
868
|
-
class:
|
|
869
|
-
}, null, 8, ["class"])) : (l(),
|
|
878
|
+
class: m(p(te)(!1))
|
|
879
|
+
}, null, 8, ["class"])) : (l(), k(C(p(Fe)), {
|
|
870
880
|
key: 0,
|
|
871
|
-
class:
|
|
881
|
+
class: m(p(te)(!1))
|
|
872
882
|
}, null, 8, ["class"]))
|
|
873
|
-
], 64)) :
|
|
883
|
+
], 64)) : g("", !0)
|
|
874
884
|
]))
|
|
875
|
-
], 14,
|
|
885
|
+
], 14, Ft))), 128))
|
|
876
886
|
]),
|
|
877
|
-
e.filterDisplay === "row" ? (l(), o("tr",
|
|
878
|
-
|
|
887
|
+
e.filterDisplay === "row" ? (l(), o("tr", qt, [
|
|
888
|
+
T.value ? (l(), o("th", {
|
|
879
889
|
key: 0,
|
|
880
|
-
class:
|
|
881
|
-
}, null, 2)) :
|
|
882
|
-
|
|
890
|
+
class: m(p(pe)(e.size))
|
|
891
|
+
}, null, 2)) : g("", !0),
|
|
892
|
+
M.value ? (l(), o("th", {
|
|
883
893
|
key: 1,
|
|
884
|
-
class:
|
|
885
|
-
}, null, 2)) :
|
|
886
|
-
(l(!0), o(
|
|
887
|
-
key: `filter-${
|
|
888
|
-
class:
|
|
894
|
+
class: m(p(pe)(e.size))
|
|
895
|
+
}, null, 2)) : g("", !0),
|
|
896
|
+
(l(!0), o(R, null, j(H.value, (t, n) => (l(), o("th", {
|
|
897
|
+
key: `filter-${n}`,
|
|
898
|
+
class: m(p(pe)(e.size))
|
|
889
899
|
}, [
|
|
890
|
-
t.props.filterable && t.slots.filter ? (l(),
|
|
900
|
+
t.props.filterable && t.slots.filter ? (l(), k(C(t.slots.filter), {
|
|
891
901
|
key: 0,
|
|
892
|
-
filterModel:
|
|
902
|
+
filterModel: xe(
|
|
893
903
|
t.props.filterField || t.props.field
|
|
894
904
|
),
|
|
895
|
-
filterCallback:
|
|
905
|
+
filterCallback: ze(
|
|
896
906
|
t.props.filterField || t.props.field
|
|
897
907
|
)
|
|
898
908
|
}, null, 8, ["filterModel", "filterCallback"])) : t.props.filterable && t.props.field ? (l(), o("input", {
|
|
899
909
|
key: 1,
|
|
900
910
|
type: "text",
|
|
901
|
-
value:
|
|
911
|
+
value: xe(
|
|
902
912
|
t.props.filterField || t.props.field
|
|
903
913
|
).value || "",
|
|
904
914
|
class: "w-full border border-gray-300 rounded px-2 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-primary-glow",
|
|
905
915
|
placeholder: `Filter ${t.props.header || t.props.field}`,
|
|
906
|
-
onInput: (a) =>
|
|
916
|
+
onInput: (a) => Ne(
|
|
907
917
|
t.props.filterField || t.props.field,
|
|
908
918
|
a.target.value
|
|
909
919
|
)
|
|
910
|
-
}, null, 40, Ot)) :
|
|
920
|
+
}, null, 40, Ot)) : g("", !0)
|
|
911
921
|
], 2))), 128))
|
|
912
|
-
])) :
|
|
922
|
+
])) : g("", !0)
|
|
913
923
|
]),
|
|
914
|
-
!e.loading &&
|
|
915
|
-
(l(!0), o(
|
|
916
|
-
key: ve(t,
|
|
924
|
+
!e.loading && z.value.length > 0 ? (l(), o("tbody", Pt, [
|
|
925
|
+
(l(!0), o(R, null, j(z.value, (t, n) => (l(), o(R, {
|
|
926
|
+
key: ve(t, n)
|
|
917
927
|
}, [
|
|
918
928
|
f("tr", {
|
|
919
|
-
class:
|
|
920
|
-
...
|
|
929
|
+
class: m([
|
|
930
|
+
...p(ct)(
|
|
921
931
|
e.striped,
|
|
922
932
|
e.hoverable,
|
|
923
|
-
|
|
933
|
+
n % 2 === 1,
|
|
924
934
|
K(t),
|
|
925
|
-
!1
|
|
935
|
+
!1,
|
|
936
|
+
S(t)
|
|
926
937
|
),
|
|
927
|
-
e.selectionMode ? "cursor-pointer" : ""
|
|
938
|
+
e.selectionMode && !S(t) ? "cursor-pointer" : ""
|
|
928
939
|
]),
|
|
929
|
-
onClick: (a) =>
|
|
940
|
+
onClick: (a) => Z(a, t, n)
|
|
930
941
|
}, [
|
|
931
|
-
|
|
942
|
+
T.value ? (l(), o("td", {
|
|
932
943
|
key: 0,
|
|
933
|
-
class:
|
|
934
|
-
...
|
|
935
|
-
...
|
|
944
|
+
class: m([
|
|
945
|
+
...p(ue)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
|
|
946
|
+
...p(fe)(e.size)
|
|
936
947
|
])
|
|
937
948
|
}, [
|
|
938
|
-
|
|
949
|
+
X.value ? (l(), o("div", {
|
|
939
950
|
key: 0,
|
|
940
951
|
class: "flex items-center justify-center cursor-pointer",
|
|
941
|
-
onClick:
|
|
952
|
+
onClick: G((a) => re(a, t), ["stop"])
|
|
942
953
|
}, [
|
|
943
|
-
K(t) ? (l(), o("div",
|
|
944
|
-
(l(),
|
|
945
|
-
])) : (l(), o("div",
|
|
946
|
-
], 8,
|
|
954
|
+
K(t) ? (l(), o("div", Et, [
|
|
955
|
+
(l(), k(C(p(ee)), { class: "w-3.5 h-3.5" }))
|
|
956
|
+
])) : (l(), o("div", jt))
|
|
957
|
+
], 8, Tt)) : (l(), o("div", {
|
|
947
958
|
key: 1,
|
|
948
959
|
class: "flex items-center justify-center cursor-pointer",
|
|
949
|
-
onClick:
|
|
960
|
+
onClick: G((a) => Z(a, t, n), ["stop"])
|
|
950
961
|
}, [
|
|
951
|
-
K(t) ? (l(), o("div",
|
|
962
|
+
K(t) ? (l(), o("div", Nt, [...r[5] || (r[5] = [
|
|
952
963
|
f("div", { class: "w-2 h-2 rounded-full bg-white" }, null, -1)
|
|
953
|
-
])])) : (l(), o("div",
|
|
954
|
-
], 8,
|
|
955
|
-
], 2)) :
|
|
956
|
-
|
|
964
|
+
])])) : (l(), o("div", zt))
|
|
965
|
+
], 8, Kt))
|
|
966
|
+
], 2)) : g("", !0),
|
|
967
|
+
M.value ? (l(), o("td", {
|
|
957
968
|
key: 1,
|
|
958
|
-
class:
|
|
959
|
-
...
|
|
960
|
-
...
|
|
969
|
+
class: m([
|
|
970
|
+
...p(ue)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
|
|
971
|
+
...p(qe)(e.size)
|
|
961
972
|
])
|
|
962
973
|
}, [
|
|
963
974
|
f("button", {
|
|
964
|
-
class: "p-1 rounded hover:bg-gray-100 transition-colors",
|
|
965
|
-
|
|
975
|
+
class: "p-1 rounded hover:bg-gray-100 transition-colors disabled:opacity-50 disabled:cursor-default disabled:hover:bg-transparent",
|
|
976
|
+
disabled: S(t),
|
|
977
|
+
onClick: (a) => oe(a, t)
|
|
966
978
|
}, [
|
|
967
|
-
(l(),
|
|
968
|
-
], 8,
|
|
969
|
-
], 2)) :
|
|
970
|
-
(l(!0), o(
|
|
971
|
-
key:
|
|
972
|
-
class:
|
|
973
|
-
...
|
|
979
|
+
(l(), k(C(V(t) ? p(ie) : p(ce)), { class: "w-4 h-4 text-gray-500" }))
|
|
980
|
+
], 8, Vt)
|
|
981
|
+
], 2)) : g("", !0),
|
|
982
|
+
(l(!0), o(R, null, j(H.value, (a, v) => (l(), o("td", {
|
|
983
|
+
key: v,
|
|
984
|
+
class: m([
|
|
985
|
+
...p(ue)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
|
|
974
986
|
a.props.bodyClass
|
|
975
987
|
]),
|
|
976
|
-
style:
|
|
988
|
+
style: ne(a.props.bodyStyle)
|
|
977
989
|
}, [
|
|
978
|
-
a.slots.body ? (l(),
|
|
990
|
+
a.slots.body ? (l(), k(C(a.slots.body), {
|
|
979
991
|
key: 0,
|
|
980
992
|
data: t,
|
|
981
993
|
field: a.props.field,
|
|
982
|
-
index:
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
994
|
+
index: n,
|
|
995
|
+
disabled: S(t)
|
|
996
|
+
}, null, 8, ["data", "field", "index", "disabled"])) : a.props.field ? (l(), o(R, { key: 1 }, [
|
|
997
|
+
I(w(_(t, a.props.field)), 1)
|
|
998
|
+
], 64)) : g("", !0)
|
|
986
999
|
], 6))), 128))
|
|
987
|
-
], 10,
|
|
988
|
-
|
|
1000
|
+
], 10, Lt),
|
|
1001
|
+
M.value && V(t) ? (l(), o("tr", At, [
|
|
989
1002
|
f("td", {
|
|
990
|
-
colspan:
|
|
1003
|
+
colspan: Y.value,
|
|
991
1004
|
class: "p-0"
|
|
992
1005
|
}, [
|
|
993
|
-
|
|
1006
|
+
F(e.$slots, "expansion", {
|
|
994
1007
|
data: t,
|
|
995
|
-
index:
|
|
1008
|
+
index: n
|
|
996
1009
|
}, void 0, !0)
|
|
997
|
-
], 8,
|
|
998
|
-
])) :
|
|
1010
|
+
], 8, Wt)
|
|
1011
|
+
])) : g("", !0)
|
|
999
1012
|
], 64))), 128))
|
|
1000
|
-
])) : e.loading ? (l(), o("tbody",
|
|
1013
|
+
])) : e.loading ? (l(), o("tbody", Ut, [
|
|
1001
1014
|
f("tr", null, [
|
|
1002
1015
|
f("td", {
|
|
1003
|
-
colspan:
|
|
1016
|
+
colspan: Y.value,
|
|
1004
1017
|
class: "text-center py-12"
|
|
1005
1018
|
}, [
|
|
1006
|
-
|
|
1007
|
-
f("div",
|
|
1008
|
-
|
|
1009
|
-
f("span", null,
|
|
1019
|
+
F(e.$slots, "loading", {}, () => [
|
|
1020
|
+
f("div", Ht, [
|
|
1021
|
+
Me(D, { class: "w-5 h-5" }),
|
|
1022
|
+
f("span", null, w(p(b)("ui.dataTable.loading")), 1)
|
|
1010
1023
|
])
|
|
1011
1024
|
], !0)
|
|
1012
|
-
], 8,
|
|
1025
|
+
], 8, Qt)
|
|
1013
1026
|
])
|
|
1014
|
-
])) : (l(), o("tbody",
|
|
1027
|
+
])) : (l(), o("tbody", It, [
|
|
1015
1028
|
f("tr", null, [
|
|
1016
1029
|
f("td", {
|
|
1017
|
-
colspan:
|
|
1030
|
+
colspan: Y.value,
|
|
1018
1031
|
class: "text-center py-12"
|
|
1019
1032
|
}, [
|
|
1020
|
-
|
|
1021
|
-
f("span",
|
|
1033
|
+
F(e.$slots, "empty", {}, () => [
|
|
1034
|
+
f("span", Jt, w(p(b)("ui.dataTable.noRecords")), 1)
|
|
1022
1035
|
], !0)
|
|
1023
|
-
], 8,
|
|
1036
|
+
], 8, Gt)
|
|
1024
1037
|
])
|
|
1025
1038
|
])),
|
|
1026
|
-
e.hasNextPage && !e.loading ? (l(), o("tfoot",
|
|
1039
|
+
e.hasNextPage && !e.loading ? (l(), o("tfoot", Xt, [
|
|
1027
1040
|
f("tr", null, [
|
|
1028
1041
|
f("td", {
|
|
1029
|
-
colspan:
|
|
1042
|
+
colspan: Y.value,
|
|
1030
1043
|
class: "px-3 pb-3 pt-2"
|
|
1031
1044
|
}, [
|
|
1032
1045
|
f("button", {
|
|
@@ -1034,48 +1047,48 @@ const dt = (u = !0) => {
|
|
|
1034
1047
|
disabled: e.loadingNext,
|
|
1035
1048
|
onClick: r[1] || (r[1] = (t) => d("load:next"))
|
|
1036
1049
|
}, [
|
|
1037
|
-
e.loadingNext ? (l(),
|
|
1050
|
+
e.loadingNext ? (l(), k(D, {
|
|
1038
1051
|
key: 0,
|
|
1039
1052
|
class: "w-4 h-4"
|
|
1040
|
-
})) :
|
|
1041
|
-
|
|
1042
|
-
], 8,
|
|
1043
|
-
], 8,
|
|
1053
|
+
})) : g("", !0),
|
|
1054
|
+
I(" " + w(e.loadMoreLabel || p(b)("ui.dataTable.showMore")), 1)
|
|
1055
|
+
], 8, Zt)
|
|
1056
|
+
], 8, Yt)
|
|
1044
1057
|
])
|
|
1045
|
-
])) :
|
|
1058
|
+
])) : g("", !0)
|
|
1046
1059
|
], 2)
|
|
1047
1060
|
], 2)),
|
|
1048
|
-
e.paginator &&
|
|
1061
|
+
e.paginator && ke.value > 0 ? (l(), k(_t, {
|
|
1049
1062
|
key: 3,
|
|
1050
|
-
first:
|
|
1051
|
-
rows:
|
|
1052
|
-
"total-records":
|
|
1063
|
+
first: J.value,
|
|
1064
|
+
rows: B.value,
|
|
1065
|
+
"total-records": ke.value,
|
|
1053
1066
|
"rows-per-page-options": e.rowsPerPageOptions,
|
|
1054
|
-
"onUpdate:first":
|
|
1055
|
-
"onUpdate:rows":
|
|
1067
|
+
"onUpdate:first": Ve,
|
|
1068
|
+
"onUpdate:rows": Ae,
|
|
1056
1069
|
onPage: r[4] || (r[4] = (t) => d("page", t))
|
|
1057
|
-
}, null, 8, ["first", "rows", "total-records", "rows-per-page-options"])) :
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
])) :
|
|
1070
|
+
}, null, 8, ["first", "rows", "total-records", "rows-per-page-options"])) : g("", !0),
|
|
1071
|
+
p(h).footer ? (l(), o("div", _s, [
|
|
1072
|
+
F(e.$slots, "footer", {}, void 0, !0)
|
|
1073
|
+
])) : g("", !0)
|
|
1061
1074
|
]));
|
|
1062
1075
|
}
|
|
1063
1076
|
});
|
|
1064
|
-
const
|
|
1077
|
+
const js = /* @__PURE__ */ lt(Ss, [["__scopeId", "data-v-9359fb0b"]]), Ks = /* @__PURE__ */ ye({
|
|
1065
1078
|
__name: "OneColumn",
|
|
1066
|
-
props:
|
|
1079
|
+
props: at,
|
|
1067
1080
|
setup(u) {
|
|
1068
|
-
const
|
|
1069
|
-
props:
|
|
1070
|
-
slots:
|
|
1081
|
+
const i = u, c = Pe(), s = st(Te), d = {
|
|
1082
|
+
props: i,
|
|
1083
|
+
slots: c
|
|
1071
1084
|
};
|
|
1072
1085
|
return s && s.registerColumn(d), Oe(() => {
|
|
1073
1086
|
s && s.unregisterColumn(d);
|
|
1074
|
-
}), (
|
|
1087
|
+
}), (h, b) => F(h.$slots, "default");
|
|
1075
1088
|
}
|
|
1076
1089
|
});
|
|
1077
1090
|
export {
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1091
|
+
Ks as OneColumn,
|
|
1092
|
+
js as OneDataTable,
|
|
1093
|
+
_t as OneDataTablePaginator
|
|
1081
1094
|
};
|