@oneb/ui-vue 0.3.17 → 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/button/index.cjs +1 -1
- package/dist/button/index.js +41 -41
- package/dist/dataTable/dataTable.d.ts +10 -0
- package/dist/dataTable/index.cjs +1 -1
- package/dist/dataTable/index.d.ts +1 -1
- package/dist/dataTable/index.js +535 -489
- 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
|
|
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",
|
|
@@ -15,14 +15,14 @@ function st(d, n) {
|
|
|
15
15
|
stroke: "currentColor",
|
|
16
16
|
"aria-hidden": "true"
|
|
17
17
|
}, [
|
|
18
|
-
|
|
18
|
+
f("path", {
|
|
19
19
|
"stroke-linecap": "round",
|
|
20
20
|
"stroke-linejoin": "round",
|
|
21
21
|
d: "M15.75 19.5L8.25 12l7.5-7.5"
|
|
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",
|
|
@@ -31,14 +31,14 @@ function Re(d, n) {
|
|
|
31
31
|
stroke: "currentColor",
|
|
32
32
|
"aria-hidden": "true"
|
|
33
33
|
}, [
|
|
34
|
-
|
|
34
|
+
f("path", {
|
|
35
35
|
"stroke-linecap": "round",
|
|
36
36
|
"stroke-linejoin": "round",
|
|
37
37
|
d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"
|
|
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 rt = {
|
|
|
91
91
|
type: String,
|
|
92
92
|
required: !1
|
|
93
93
|
}
|
|
94
|
-
},
|
|
94
|
+
}, nt = {
|
|
95
95
|
value: {
|
|
96
96
|
type: Array,
|
|
97
97
|
default: () => []
|
|
@@ -223,62 +223,66 @@ const rt = {
|
|
|
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: (
|
|
229
|
-
startsWith: (
|
|
230
|
-
endsWith: (
|
|
231
|
-
equals: (
|
|
232
|
-
notEquals: (
|
|
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
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
},
|
|
244
|
+
function dt(u) {
|
|
245
|
+
const i = E(!1);
|
|
246
|
+
let c = null, s = null;
|
|
247
|
+
const d = () => {
|
|
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
|
-
}),
|
|
258
|
-
|
|
259
|
-
}),
|
|
261
|
+
}), Oe(() => {
|
|
262
|
+
d();
|
|
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
|
|
267
|
-
},
|
|
268
|
-
const
|
|
269
|
-
return
|
|
270
|
-
},
|
|
271
|
-
const
|
|
272
|
-
return
|
|
273
|
-
|
|
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(
|
|
277
|
+
d || "bg-gray-50",
|
|
274
278
|
"text-gray-700",
|
|
275
279
|
"font-medium",
|
|
276
280
|
"text-sm",
|
|
277
281
|
"normal-case",
|
|
278
282
|
"border-b",
|
|
279
283
|
"border-gray-200"
|
|
280
|
-
) :
|
|
281
|
-
|
|
284
|
+
) : h.push(
|
|
285
|
+
d || "bg-gray-100",
|
|
282
286
|
"text-gray-600",
|
|
283
287
|
"font-semibold",
|
|
284
288
|
"text-xs",
|
|
@@ -287,20 +291,20 @@ const nt = (d = !0) => {
|
|
|
287
291
|
"border-b",
|
|
288
292
|
"border-gray-200",
|
|
289
293
|
"whitespace-nowrap"
|
|
290
|
-
),
|
|
291
|
-
},
|
|
292
|
-
const
|
|
293
|
-
return
|
|
294
|
-
},
|
|
295
|
-
const
|
|
296
|
-
return
|
|
297
|
-
},
|
|
298
|
-
const
|
|
299
|
-
return
|
|
300
|
-
},
|
|
301
|
-
const
|
|
302
|
-
return
|
|
303
|
-
},
|
|
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) => {
|
|
296
|
+
const d = ["border-b", "border-gray-100", "text-gray-900"];
|
|
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 nt = (d = !0) => {
|
|
|
310
314
|
"border-gray-100",
|
|
311
315
|
"bg-white",
|
|
312
316
|
"text-sm"
|
|
313
|
-
],
|
|
314
|
-
const
|
|
315
|
-
return
|
|
316
|
-
},
|
|
317
|
-
const
|
|
318
|
-
return
|
|
319
|
-
},
|
|
320
|
-
const
|
|
321
|
-
return
|
|
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,130 +344,131 @@ const nt = (d = !0) => {
|
|
|
340
344
|
}
|
|
341
345
|
},
|
|
342
346
|
emits: ["update:first", "update:rows", "page"],
|
|
343
|
-
setup(
|
|
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
|
-
|
|
353
|
-
},
|
|
354
|
-
|
|
355
|
-
},
|
|
356
|
-
const
|
|
357
|
-
|
|
355
|
+
}, Q = () => {
|
|
356
|
+
N(Math.max(0, c.first - c.rows));
|
|
357
|
+
}, x = () => {
|
|
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
|
-
|
|
368
|
-
|
|
369
|
-
|
|
371
|
+
f("div", ht, [
|
|
372
|
+
f("span", bt, w(P.value) + "–" + w(ge.value) + " of " + w(u.totalRecords), 1),
|
|
373
|
+
u.rowsPerPageOptions.length > 1 ? (l(), o("select", {
|
|
370
374
|
key: 0,
|
|
371
|
-
value:
|
|
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,
|
|
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
|
-
|
|
382
|
-
|
|
383
|
-
disabled:
|
|
385
|
+
f("div", kt, [
|
|
386
|
+
f("button", {
|
|
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
|
-
|
|
390
|
-
|
|
391
|
-
disabled:
|
|
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),
|
|
394
|
+
f("button", {
|
|
395
|
+
disabled: L.value,
|
|
392
396
|
class: "p-1.5 rounded hover:bg-gray-100 disabled:opacity-30 disabled:cursor-default transition-colors",
|
|
393
|
-
onClick:
|
|
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
|
-
},
|
|
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: [
|
|
471
|
+
"update:value",
|
|
467
472
|
"update:selection",
|
|
468
473
|
"update:expandedRows",
|
|
469
474
|
"update:first",
|
|
@@ -481,568 +486,609 @@ const nt = (d = !0) => {
|
|
|
481
486
|
"row-collapse",
|
|
482
487
|
"load:next"
|
|
483
488
|
],
|
|
484
|
-
setup(
|
|
485
|
-
const
|
|
486
|
-
|
|
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) => {
|
|
492
|
+
P.value.push(e);
|
|
488
493
|
}, unregisterColumn: (e) => {
|
|
489
|
-
const r =
|
|
490
|
-
r > -1 &&
|
|
494
|
+
const r = P.value.indexOf(e);
|
|
495
|
+
r > -1 && P.value.splice(r, 1);
|
|
491
496
|
} });
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
() =>
|
|
497
|
+
const L = E(s.first), U = E(s.rows), N = E(s.sortField), Q = E(s.sortOrder);
|
|
498
|
+
W(
|
|
499
|
+
() => s.first,
|
|
495
500
|
(e) => {
|
|
496
|
-
|
|
501
|
+
L.value = e;
|
|
497
502
|
}
|
|
498
|
-
),
|
|
499
|
-
() =>
|
|
503
|
+
), W(
|
|
504
|
+
() => s.rows,
|
|
500
505
|
(e) => {
|
|
501
|
-
|
|
506
|
+
U.value = e;
|
|
502
507
|
}
|
|
503
|
-
),
|
|
504
|
-
() =>
|
|
508
|
+
), W(
|
|
509
|
+
() => s.sortField,
|
|
505
510
|
(e) => {
|
|
506
|
-
|
|
511
|
+
N.value = e;
|
|
507
512
|
}
|
|
508
|
-
),
|
|
509
|
-
() =>
|
|
513
|
+
), W(
|
|
514
|
+
() => s.sortOrder,
|
|
510
515
|
(e) => {
|
|
511
|
-
|
|
516
|
+
Q.value = e;
|
|
512
517
|
}
|
|
513
518
|
);
|
|
514
|
-
const
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
519
|
+
const x = E([...s.value]);
|
|
520
|
+
W(
|
|
521
|
+
() => s.value,
|
|
522
|
+
(e) => {
|
|
523
|
+
x.value = [...e];
|
|
524
|
+
}
|
|
525
|
+
);
|
|
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) => {
|
|
531
|
+
if (!s.dataKey)
|
|
532
|
+
return console.warn("[OneDataTable] updateRow requires dataKey to be set"), !1;
|
|
533
|
+
const r = _(e, s.dataKey), t = x.value.findIndex(
|
|
534
|
+
(a) => _(a, s.dataKey) === r
|
|
535
|
+
);
|
|
536
|
+
if (t === -1)
|
|
537
|
+
return !1;
|
|
538
|
+
const n = [...x.value];
|
|
539
|
+
return n[t] = e, x.value = n, d("update:value", n), !0;
|
|
540
|
+
}, addItems: (e, r = "append") => {
|
|
541
|
+
const t = r === "prepend" ? [...e, ...x.value] : [...x.value, ...e];
|
|
542
|
+
x.value = t, d("update:value", t);
|
|
543
|
+
}, removeRow: (e) => {
|
|
544
|
+
if (!s.dataKey)
|
|
545
|
+
return console.warn("[OneDataTable] removeRow requires dataKey to be set"), !1;
|
|
546
|
+
const r = x.value.findIndex(
|
|
547
|
+
(n) => _(n, s.dataKey) === e
|
|
548
|
+
);
|
|
549
|
+
if (r === -1)
|
|
550
|
+
return !1;
|
|
551
|
+
const t = [...x.value];
|
|
552
|
+
return t.splice(r, 1), x.value = t, d("update:value", t), !0;
|
|
553
|
+
} });
|
|
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;
|
|
558
|
+
if (s.lazy || !s.filters)
|
|
559
|
+
return x.value;
|
|
560
|
+
let e = [...x.value];
|
|
561
|
+
const r = s.filters;
|
|
562
|
+
if ((t = r.global) != null && t.value && ((n = s.globalFilterFields) != null && n.length)) {
|
|
523
563
|
const a = r.global.value;
|
|
524
564
|
e = e.filter(
|
|
525
|
-
(
|
|
526
|
-
(
|
|
565
|
+
(v) => s.globalFilterFields.some(
|
|
566
|
+
(ae) => $e.contains(_(v, ae), a)
|
|
527
567
|
)
|
|
528
568
|
);
|
|
529
569
|
}
|
|
530
|
-
for (const [a,
|
|
531
|
-
if (a === "global" || !
|
|
570
|
+
for (const [a, v] of Object.entries(r)) {
|
|
571
|
+
if (a === "global" || !v.value)
|
|
532
572
|
continue;
|
|
533
|
-
const
|
|
534
|
-
|
|
573
|
+
const ae = v.matchMode || "contains", Re = $e[ae];
|
|
574
|
+
Re && (e = e.filter((Ye) => Re(_(Ye, a), v.value)));
|
|
535
575
|
}
|
|
536
576
|
return e;
|
|
537
|
-
}),
|
|
538
|
-
const e =
|
|
539
|
-
return
|
|
540
|
-
const
|
|
541
|
-
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)
|
|
542
582
|
return 0;
|
|
543
|
-
if (
|
|
583
|
+
if (n == null)
|
|
544
584
|
return 1;
|
|
545
585
|
if (a == null)
|
|
546
586
|
return -1;
|
|
547
|
-
let
|
|
548
|
-
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;
|
|
549
589
|
});
|
|
550
|
-
}),
|
|
551
|
-
const e =
|
|
552
|
-
if (
|
|
553
|
-
const r =
|
|
554
|
-
return e.slice(r,
|
|
590
|
+
}), ke = y(() => s.totalRecords ?? me.value.length), z = y(() => {
|
|
591
|
+
const e = Ee.value;
|
|
592
|
+
if (s.paginator && !s.lazy) {
|
|
593
|
+
const r = J.value, t = r + B.value;
|
|
594
|
+
return e.slice(r, t);
|
|
555
595
|
}
|
|
556
596
|
return e;
|
|
557
|
-
}),
|
|
597
|
+
}), je = (e) => {
|
|
558
598
|
let r;
|
|
559
|
-
|
|
560
|
-
},
|
|
561
|
-
if (
|
|
562
|
-
const
|
|
563
|
-
|
|
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 });
|
|
564
604
|
}
|
|
565
|
-
},
|
|
566
|
-
if (e.stopPropagation(),
|
|
567
|
-
const
|
|
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));
|
|
568
608
|
let a;
|
|
569
|
-
|
|
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);
|
|
570
610
|
}
|
|
571
|
-
},
|
|
572
|
-
if (
|
|
611
|
+
}, le = y(() => {
|
|
612
|
+
if (s.selectionMode !== "multiple" || !s.selection)
|
|
573
613
|
return !1;
|
|
574
|
-
const e =
|
|
575
|
-
return
|
|
576
|
-
}),
|
|
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) => {
|
|
577
617
|
e.stopPropagation();
|
|
578
|
-
const r =
|
|
579
|
-
if (
|
|
580
|
-
const
|
|
581
|
-
(
|
|
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))
|
|
582
622
|
);
|
|
583
|
-
|
|
623
|
+
d("update:selection", n);
|
|
584
624
|
} else {
|
|
585
|
-
const
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
}),
|
|
625
|
+
const n = [...r];
|
|
626
|
+
t.forEach((a) => {
|
|
627
|
+
n.some((v) => O(v, a)) || n.push(a);
|
|
628
|
+
}), d("update:selection", n);
|
|
589
629
|
}
|
|
590
|
-
},
|
|
591
|
-
if (!
|
|
630
|
+
}, V = (e) => {
|
|
631
|
+
if (!s.expandedRows)
|
|
592
632
|
return !1;
|
|
593
|
-
if (Array.isArray(
|
|
594
|
-
return
|
|
595
|
-
if (
|
|
596
|
-
const r = String(
|
|
597
|
-
return !!
|
|
633
|
+
if (Array.isArray(s.expandedRows))
|
|
634
|
+
return s.expandedRows.some((r) => O(r, e));
|
|
635
|
+
if (s.dataKey) {
|
|
636
|
+
const r = String(be(e));
|
|
637
|
+
return !!s.expandedRows[r];
|
|
598
638
|
}
|
|
599
639
|
return !1;
|
|
600
|
-
},
|
|
601
|
-
e.stopPropagation()
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
640
|
+
}, oe = (e, r) => {
|
|
641
|
+
if (e.stopPropagation(), S(r))
|
|
642
|
+
return;
|
|
643
|
+
const t = V(r);
|
|
644
|
+
if (Array.isArray(s.expandedRows)) {
|
|
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);
|
|
647
|
+
} else if (s.dataKey) {
|
|
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);
|
|
609
650
|
}
|
|
610
|
-
},
|
|
651
|
+
}, Ne = (e, r, t) => {
|
|
611
652
|
var a;
|
|
612
|
-
if (!
|
|
653
|
+
if (!s.filters)
|
|
613
654
|
return;
|
|
614
|
-
const
|
|
615
|
-
...
|
|
616
|
-
[e]: { value: r, matchMode:
|
|
655
|
+
const n = {
|
|
656
|
+
...s.filters,
|
|
657
|
+
[e]: { value: r, matchMode: t || ((a = s.filters[e]) == null ? void 0 : a.matchMode) || "contains" }
|
|
617
658
|
};
|
|
618
|
-
|
|
619
|
-
},
|
|
659
|
+
d("update:filters", n), s.lazy && d("filter", { filters: n }), s.paginator && (L.value = 0, d("update:first", 0));
|
|
660
|
+
}, xe = (e) => {
|
|
620
661
|
var r;
|
|
621
|
-
return ((r =
|
|
622
|
-
},
|
|
623
|
-
|
|
624
|
-
},
|
|
625
|
-
|
|
626
|
-
},
|
|
627
|
-
|
|
628
|
-
},
|
|
662
|
+
return ((r = s.filters) == null ? void 0 : r[e]) || { value: null };
|
|
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)));
|
|
665
|
+
}, Ve = (e) => {
|
|
666
|
+
L.value = e, d("update:first", e);
|
|
667
|
+
}, Ae = (e) => {
|
|
668
|
+
U.value = e, d("update:rows", e);
|
|
669
|
+
}, _e = y(() => {
|
|
629
670
|
const e = [];
|
|
630
|
-
if (
|
|
631
|
-
if (typeof
|
|
632
|
-
const r =
|
|
633
|
-
return
|
|
671
|
+
if (s.colWidths) {
|
|
672
|
+
if (typeof s.colWidths == "function") {
|
|
673
|
+
const r = s.colWidths(se.value), t = [];
|
|
674
|
+
return T.value && t.push(""), M.value && t.push(""), [...t, ...r];
|
|
634
675
|
}
|
|
635
|
-
return
|
|
676
|
+
return s.colWidths;
|
|
636
677
|
}
|
|
637
|
-
return
|
|
678
|
+
return T.value && e.push(""), M.value && e.push(""), se.value.forEach((r) => {
|
|
638
679
|
e.push(r.props.width || "");
|
|
639
680
|
}), e;
|
|
640
|
-
}),
|
|
641
|
-
const e =
|
|
642
|
-
return
|
|
643
|
-
}),
|
|
644
|
-
sm:
|
|
645
|
-
md:
|
|
646
|
-
lg:
|
|
647
|
-
xl:
|
|
648
|
-
"2xl":
|
|
649
|
-
},
|
|
650
|
-
var
|
|
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);
|
|
683
|
+
return s.tableClass && e.push(s.tableClass), s.bordered && e.push("border", "border-gray-100"), e;
|
|
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) => {
|
|
691
|
+
var t;
|
|
651
692
|
if (!e.props.visibleFrom)
|
|
652
693
|
return !0;
|
|
653
694
|
const r = e.props.visibleFrom;
|
|
654
|
-
return ((
|
|
655
|
-
},
|
|
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);
|
|
656
697
|
return (e, r) => (l(), o("div", null, [
|
|
657
|
-
|
|
658
|
-
|
|
698
|
+
et(f("div", null, [
|
|
699
|
+
F(e.$slots, "default", {}, void 0, !0)
|
|
659
700
|
], 512), [
|
|
660
|
-
[
|
|
701
|
+
[tt, !1]
|
|
661
702
|
]),
|
|
662
|
-
p(h).header ? (l(), o("div",
|
|
663
|
-
|
|
703
|
+
p(h).header ? (l(), o("div", St, [
|
|
704
|
+
F(e.$slots, "header", {}, void 0, !0)
|
|
664
705
|
])) : g("", !0),
|
|
665
|
-
|
|
666
|
-
e.loading ? (l(), o("div",
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
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)
|
|
671
712
|
])
|
|
672
713
|
], !0)
|
|
673
|
-
])) :
|
|
674
|
-
|
|
675
|
-
|
|
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)
|
|
676
717
|
], !0)
|
|
677
|
-
])) : (l(), o("div",
|
|
678
|
-
X.value ? (l(), o("div",
|
|
679
|
-
|
|
718
|
+
])) : (l(), o("div", ls, [
|
|
719
|
+
X.value ? (l(), o("div", os, [
|
|
720
|
+
f("div", {
|
|
680
721
|
class: "cursor-pointer",
|
|
681
|
-
onClick: r[2] || (r[2] = (
|
|
722
|
+
onClick: r[2] || (r[2] = (t) => Ce(t))
|
|
682
723
|
}, [
|
|
683
|
-
|
|
684
|
-
(l(),
|
|
685
|
-
])) : (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))
|
|
686
727
|
]),
|
|
687
|
-
|
|
728
|
+
f("span", is, w(p(b)("ui.dataTable.selectAll")), 1)
|
|
688
729
|
])) : g("", !0),
|
|
689
|
-
(l(!0), o(
|
|
690
|
-
key:
|
|
691
|
-
class:
|
|
692
|
-
...p(
|
|
693
|
-
e.selectionMode ? "cursor-pointer" : ""
|
|
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" : ""
|
|
694
735
|
]),
|
|
695
|
-
onClick: (a) => Z(a,
|
|
736
|
+
onClick: (a) => Z(a, t, n)
|
|
696
737
|
}, [
|
|
697
|
-
p(h).card ?
|
|
738
|
+
p(h).card ? F(e.$slots, "card", {
|
|
698
739
|
key: 0,
|
|
699
|
-
data:
|
|
700
|
-
index:
|
|
701
|
-
selected:
|
|
702
|
-
expanded:
|
|
703
|
-
toggleExpansion:
|
|
704
|
-
toggleSelection:
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
740
|
+
data: t,
|
|
741
|
+
index: n,
|
|
742
|
+
selected: K(t),
|
|
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, [
|
|
708
750
|
X.value ? (l(), o("div", {
|
|
709
751
|
key: 0,
|
|
710
752
|
class: "cursor-pointer",
|
|
711
|
-
onClick:
|
|
753
|
+
onClick: G((a) => re(a, t), ["stop"])
|
|
712
754
|
}, [
|
|
713
|
-
|
|
714
|
-
(l(),
|
|
715
|
-
])) : (l(), o("div",
|
|
716
|
-
], 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", {
|
|
717
759
|
key: 1,
|
|
718
760
|
class: "cursor-pointer",
|
|
719
|
-
onClick:
|
|
761
|
+
onClick: G((a) => Z(a, t, n), ["stop"])
|
|
720
762
|
}, [
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
])])) : (l(), o("div",
|
|
724
|
-
], 8,
|
|
725
|
-
])) : (l(), o("div",
|
|
726
|
-
|
|
763
|
+
K(t) ? (l(), o("div", hs, [...r[6] || (r[6] = [
|
|
764
|
+
f("div", { class: "w-2 h-2 rounded-full bg-white" }, null, -1)
|
|
765
|
+
])])) : (l(), o("div", bs))
|
|
766
|
+
], 8, gs))
|
|
767
|
+
])) : (l(), o("div", vs)),
|
|
768
|
+
M.value ? (l(), o("button", {
|
|
727
769
|
key: 2,
|
|
728
|
-
class: "p-1 rounded hover:bg-gray-100 transition-colors",
|
|
729
|
-
|
|
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"])
|
|
730
773
|
}, [
|
|
731
|
-
(l(),
|
|
732
|
-
], 8,
|
|
774
|
+
(l(), k(C(V(t) ? p(ie) : p(ce)), { class: "w-4 h-4 text-gray-500" }))
|
|
775
|
+
], 8, ms)) : g("", !0)
|
|
733
776
|
])) : g("", !0),
|
|
734
|
-
(l(!0), o(
|
|
735
|
-
key:
|
|
736
|
-
class:
|
|
777
|
+
(l(!0), o(R, null, j(H.value, (a, v) => (l(), o("div", {
|
|
778
|
+
key: v,
|
|
779
|
+
class: m(p(gt)(e.size))
|
|
737
780
|
}, [
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
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), {
|
|
741
784
|
key: 0,
|
|
742
|
-
data:
|
|
785
|
+
data: t,
|
|
743
786
|
field: a.props.field,
|
|
744
|
-
index:
|
|
745
|
-
}, null, 8, ["data", "field", "index"])) : a.props.field ? (l(), o(
|
|
746
|
-
|
|
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)
|
|
747
790
|
], 64)) : g("", !0)
|
|
748
791
|
])
|
|
749
792
|
], 2))), 128)),
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
data:
|
|
753
|
-
index:
|
|
793
|
+
M.value && V(t) ? (l(), o("div", Cs, [
|
|
794
|
+
F(e.$slots, "expansion", {
|
|
795
|
+
data: t,
|
|
796
|
+
index: n
|
|
754
797
|
}, void 0, !0)
|
|
755
798
|
])) : g("", !0)
|
|
756
799
|
], 64))
|
|
757
|
-
], 10,
|
|
800
|
+
], 10, ds))), 128)),
|
|
758
801
|
e.hasNextPage && !e.loading ? (l(), o("button", {
|
|
759
802
|
key: 1,
|
|
760
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",
|
|
761
804
|
disabled: e.loadingNext,
|
|
762
|
-
onClick: r[3] || (r[3] = (
|
|
805
|
+
onClick: r[3] || (r[3] = (t) => d("load:next"))
|
|
763
806
|
}, [
|
|
764
|
-
e.loadingNext ? (l(),
|
|
807
|
+
e.loadingNext ? (l(), k(D, {
|
|
765
808
|
key: 0,
|
|
766
809
|
class: "w-4 h-4"
|
|
767
810
|
})) : g("", !0),
|
|
768
|
-
|
|
769
|
-
], 8,
|
|
811
|
+
I(" " + w(e.loadMoreLabel || p(b)("ui.dataTable.showMore")), 1)
|
|
812
|
+
], 8, xs)) : g("", !0)
|
|
770
813
|
]))
|
|
771
814
|
])) : (l(), o("div", {
|
|
772
815
|
key: 1,
|
|
773
|
-
class:
|
|
816
|
+
class: m([...We.value, e.verticalBorders === "hover-table" ? "vb-hover" : ""])
|
|
774
817
|
}, [
|
|
775
|
-
|
|
776
|
-
class:
|
|
777
|
-
...
|
|
818
|
+
f("table", {
|
|
819
|
+
class: m([
|
|
820
|
+
...Ue.value,
|
|
778
821
|
e.verticalBorders !== "none" ? "border-separate border-spacing-0" : "border-collapse",
|
|
779
822
|
e.verticalBorders === "hover" ? "vb-hover" : "",
|
|
780
|
-
|
|
823
|
+
Se.value ? "table-fixed" : ""
|
|
781
824
|
])
|
|
782
825
|
}, [
|
|
783
|
-
|
|
784
|
-
(l(!0), o(
|
|
785
|
-
key: `col-${
|
|
786
|
-
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 } : {})
|
|
787
830
|
}, null, 4))), 128))
|
|
788
831
|
])) : g("", !0),
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
832
|
+
f("thead", null, [
|
|
833
|
+
f("tr", null, [
|
|
834
|
+
T.value ? (l(), o("th", {
|
|
792
835
|
key: 0,
|
|
793
|
-
class:
|
|
794
|
-
...p(
|
|
795
|
-
...p(
|
|
836
|
+
class: m([
|
|
837
|
+
...p(de)(e.size, !1, e.verticalBorders, e.headerVariant, e.headerBgClass),
|
|
838
|
+
...p(fe)(e.size)
|
|
796
839
|
])
|
|
797
840
|
}, [
|
|
798
841
|
X.value ? (l(), o("div", {
|
|
799
842
|
key: 0,
|
|
800
843
|
class: "flex items-center justify-center cursor-pointer",
|
|
801
|
-
onClick: r[0] || (r[0] = (
|
|
844
|
+
onClick: r[0] || (r[0] = (t) => Ce(t))
|
|
802
845
|
}, [
|
|
803
|
-
|
|
804
|
-
(l(),
|
|
805
|
-
])) : (l(), o("div",
|
|
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))
|
|
806
849
|
])) : g("", !0)
|
|
807
850
|
], 2)) : g("", !0),
|
|
808
|
-
|
|
851
|
+
M.value ? (l(), o("th", {
|
|
809
852
|
key: 1,
|
|
810
|
-
class:
|
|
811
|
-
...p(
|
|
812
|
-
...p(
|
|
853
|
+
class: m([
|
|
854
|
+
...p(de)(e.size, !1, e.verticalBorders, e.headerVariant, e.headerBgClass),
|
|
855
|
+
...p(qe)(e.size)
|
|
813
856
|
])
|
|
814
857
|
}, null, 2)) : g("", !0),
|
|
815
|
-
(l(!0), o(
|
|
816
|
-
key:
|
|
817
|
-
class:
|
|
818
|
-
...p(
|
|
819
|
-
|
|
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),
|
|
862
|
+
t.props.headerClass
|
|
820
863
|
]),
|
|
821
|
-
style:
|
|
822
|
-
onClick: (a) =>
|
|
864
|
+
style: ne([t.props.headerStyle, t.props.width ? { width: t.props.width } : {}]),
|
|
865
|
+
onClick: (a) => t.props.sortable ? je(we(t)) : void 0
|
|
823
866
|
}, [
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
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)), {
|
|
828
871
|
key: 1,
|
|
829
|
-
class:
|
|
830
|
-
}, null, 8, ["class"])) :
|
|
872
|
+
class: m(p(te)(!0))
|
|
873
|
+
}, null, 8, ["class"])) : q.value === -1 ? (l(), k(C(p(ie)), {
|
|
831
874
|
key: 2,
|
|
832
|
-
class:
|
|
833
|
-
}, null, 8, ["class"])) : (l(),
|
|
875
|
+
class: m(p(te)(!0))
|
|
876
|
+
}, null, 8, ["class"])) : (l(), k(C(p(Fe)), {
|
|
834
877
|
key: 3,
|
|
835
|
-
class:
|
|
836
|
-
}, null, 8, ["class"])) : (l(),
|
|
878
|
+
class: m(p(te)(!1))
|
|
879
|
+
}, null, 8, ["class"])) : (l(), k(C(p(Fe)), {
|
|
837
880
|
key: 0,
|
|
838
|
-
class:
|
|
881
|
+
class: m(p(te)(!1))
|
|
839
882
|
}, null, 8, ["class"]))
|
|
840
883
|
], 64)) : g("", !0)
|
|
841
884
|
]))
|
|
842
|
-
], 14,
|
|
885
|
+
], 14, Ft))), 128))
|
|
843
886
|
]),
|
|
844
|
-
e.filterDisplay === "row" ? (l(), o("tr",
|
|
845
|
-
|
|
887
|
+
e.filterDisplay === "row" ? (l(), o("tr", qt, [
|
|
888
|
+
T.value ? (l(), o("th", {
|
|
846
889
|
key: 0,
|
|
847
|
-
class:
|
|
890
|
+
class: m(p(pe)(e.size))
|
|
848
891
|
}, null, 2)) : g("", !0),
|
|
849
|
-
|
|
892
|
+
M.value ? (l(), o("th", {
|
|
850
893
|
key: 1,
|
|
851
|
-
class:
|
|
894
|
+
class: m(p(pe)(e.size))
|
|
852
895
|
}, null, 2)) : g("", !0),
|
|
853
|
-
(l(!0), o(
|
|
854
|
-
key: `filter-${
|
|
855
|
-
class:
|
|
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))
|
|
856
899
|
}, [
|
|
857
|
-
|
|
900
|
+
t.props.filterable && t.slots.filter ? (l(), k(C(t.slots.filter), {
|
|
858
901
|
key: 0,
|
|
859
|
-
filterModel:
|
|
860
|
-
|
|
902
|
+
filterModel: xe(
|
|
903
|
+
t.props.filterField || t.props.field
|
|
861
904
|
),
|
|
862
|
-
filterCallback:
|
|
863
|
-
|
|
905
|
+
filterCallback: ze(
|
|
906
|
+
t.props.filterField || t.props.field
|
|
864
907
|
)
|
|
865
|
-
}, null, 8, ["filterModel", "filterCallback"])) :
|
|
908
|
+
}, null, 8, ["filterModel", "filterCallback"])) : t.props.filterable && t.props.field ? (l(), o("input", {
|
|
866
909
|
key: 1,
|
|
867
910
|
type: "text",
|
|
868
|
-
value:
|
|
869
|
-
|
|
911
|
+
value: xe(
|
|
912
|
+
t.props.filterField || t.props.field
|
|
870
913
|
).value || "",
|
|
871
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",
|
|
872
|
-
placeholder: `Filter ${
|
|
873
|
-
onInput: (a) =>
|
|
874
|
-
|
|
915
|
+
placeholder: `Filter ${t.props.header || t.props.field}`,
|
|
916
|
+
onInput: (a) => Ne(
|
|
917
|
+
t.props.filterField || t.props.field,
|
|
875
918
|
a.target.value
|
|
876
919
|
)
|
|
877
|
-
}, null, 40,
|
|
920
|
+
}, null, 40, Ot)) : g("", !0)
|
|
878
921
|
], 2))), 128))
|
|
879
922
|
])) : g("", !0)
|
|
880
923
|
]),
|
|
881
|
-
!e.loading &&
|
|
882
|
-
(l(!0), o(
|
|
883
|
-
key:
|
|
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)
|
|
884
927
|
}, [
|
|
885
|
-
|
|
886
|
-
class:
|
|
887
|
-
...p(
|
|
928
|
+
f("tr", {
|
|
929
|
+
class: m([
|
|
930
|
+
...p(ct)(
|
|
888
931
|
e.striped,
|
|
889
932
|
e.hoverable,
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
!1
|
|
933
|
+
n % 2 === 1,
|
|
934
|
+
K(t),
|
|
935
|
+
!1,
|
|
936
|
+
S(t)
|
|
893
937
|
),
|
|
894
|
-
e.selectionMode ? "cursor-pointer" : ""
|
|
938
|
+
e.selectionMode && !S(t) ? "cursor-pointer" : ""
|
|
895
939
|
]),
|
|
896
|
-
onClick: (a) => Z(a,
|
|
940
|
+
onClick: (a) => Z(a, t, n)
|
|
897
941
|
}, [
|
|
898
|
-
|
|
942
|
+
T.value ? (l(), o("td", {
|
|
899
943
|
key: 0,
|
|
900
|
-
class:
|
|
901
|
-
...p(
|
|
902
|
-
...p(
|
|
944
|
+
class: m([
|
|
945
|
+
...p(ue)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
|
|
946
|
+
...p(fe)(e.size)
|
|
903
947
|
])
|
|
904
948
|
}, [
|
|
905
949
|
X.value ? (l(), o("div", {
|
|
906
950
|
key: 0,
|
|
907
951
|
class: "flex items-center justify-center cursor-pointer",
|
|
908
|
-
onClick:
|
|
952
|
+
onClick: G((a) => re(a, t), ["stop"])
|
|
909
953
|
}, [
|
|
910
|
-
|
|
911
|
-
(l(),
|
|
912
|
-
])) : (l(), o("div",
|
|
913
|
-
], 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", {
|
|
914
958
|
key: 1,
|
|
915
959
|
class: "flex items-center justify-center cursor-pointer",
|
|
916
|
-
onClick:
|
|
960
|
+
onClick: G((a) => Z(a, t, n), ["stop"])
|
|
917
961
|
}, [
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
])])) : (l(), o("div",
|
|
921
|
-
], 8,
|
|
962
|
+
K(t) ? (l(), o("div", Nt, [...r[5] || (r[5] = [
|
|
963
|
+
f("div", { class: "w-2 h-2 rounded-full bg-white" }, null, -1)
|
|
964
|
+
])])) : (l(), o("div", zt))
|
|
965
|
+
], 8, Kt))
|
|
922
966
|
], 2)) : g("", !0),
|
|
923
|
-
|
|
967
|
+
M.value ? (l(), o("td", {
|
|
924
968
|
key: 1,
|
|
925
|
-
class:
|
|
926
|
-
...p(
|
|
927
|
-
...p(
|
|
969
|
+
class: m([
|
|
970
|
+
...p(ue)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
|
|
971
|
+
...p(qe)(e.size)
|
|
928
972
|
])
|
|
929
973
|
}, [
|
|
930
|
-
|
|
931
|
-
class: "p-1 rounded hover:bg-gray-100 transition-colors",
|
|
932
|
-
|
|
974
|
+
f("button", {
|
|
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)
|
|
933
978
|
}, [
|
|
934
|
-
(l(),
|
|
935
|
-
], 8,
|
|
979
|
+
(l(), k(C(V(t) ? p(ie) : p(ce)), { class: "w-4 h-4 text-gray-500" }))
|
|
980
|
+
], 8, Vt)
|
|
936
981
|
], 2)) : g("", !0),
|
|
937
|
-
(l(!0), o(
|
|
938
|
-
key:
|
|
939
|
-
class:
|
|
940
|
-
...p(
|
|
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),
|
|
941
986
|
a.props.bodyClass
|
|
942
987
|
]),
|
|
943
|
-
style:
|
|
988
|
+
style: ne(a.props.bodyStyle)
|
|
944
989
|
}, [
|
|
945
|
-
a.slots.body ? (l(),
|
|
990
|
+
a.slots.body ? (l(), k(C(a.slots.body), {
|
|
946
991
|
key: 0,
|
|
947
|
-
data:
|
|
992
|
+
data: t,
|
|
948
993
|
field: a.props.field,
|
|
949
|
-
index:
|
|
950
|
-
|
|
951
|
-
|
|
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)
|
|
952
998
|
], 64)) : g("", !0)
|
|
953
999
|
], 6))), 128))
|
|
954
|
-
], 10,
|
|
955
|
-
|
|
956
|
-
|
|
1000
|
+
], 10, Lt),
|
|
1001
|
+
M.value && V(t) ? (l(), o("tr", At, [
|
|
1002
|
+
f("td", {
|
|
957
1003
|
colspan: Y.value,
|
|
958
1004
|
class: "p-0"
|
|
959
1005
|
}, [
|
|
960
|
-
|
|
961
|
-
data:
|
|
962
|
-
index:
|
|
1006
|
+
F(e.$slots, "expansion", {
|
|
1007
|
+
data: t,
|
|
1008
|
+
index: n
|
|
963
1009
|
}, void 0, !0)
|
|
964
|
-
], 8,
|
|
1010
|
+
], 8, Wt)
|
|
965
1011
|
])) : g("", !0)
|
|
966
1012
|
], 64))), 128))
|
|
967
|
-
])) : e.loading ? (l(), o("tbody",
|
|
968
|
-
|
|
969
|
-
|
|
1013
|
+
])) : e.loading ? (l(), o("tbody", Ut, [
|
|
1014
|
+
f("tr", null, [
|
|
1015
|
+
f("td", {
|
|
970
1016
|
colspan: Y.value,
|
|
971
1017
|
class: "text-center py-12"
|
|
972
1018
|
}, [
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
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)
|
|
977
1023
|
])
|
|
978
1024
|
], !0)
|
|
979
|
-
], 8,
|
|
1025
|
+
], 8, Qt)
|
|
980
1026
|
])
|
|
981
|
-
])) : (l(), o("tbody",
|
|
982
|
-
|
|
983
|
-
|
|
1027
|
+
])) : (l(), o("tbody", It, [
|
|
1028
|
+
f("tr", null, [
|
|
1029
|
+
f("td", {
|
|
984
1030
|
colspan: Y.value,
|
|
985
1031
|
class: "text-center py-12"
|
|
986
1032
|
}, [
|
|
987
|
-
|
|
988
|
-
|
|
1033
|
+
F(e.$slots, "empty", {}, () => [
|
|
1034
|
+
f("span", Jt, w(p(b)("ui.dataTable.noRecords")), 1)
|
|
989
1035
|
], !0)
|
|
990
|
-
], 8,
|
|
1036
|
+
], 8, Gt)
|
|
991
1037
|
])
|
|
992
1038
|
])),
|
|
993
|
-
e.hasNextPage && !e.loading ? (l(), o("tfoot",
|
|
994
|
-
|
|
995
|
-
|
|
1039
|
+
e.hasNextPage && !e.loading ? (l(), o("tfoot", Xt, [
|
|
1040
|
+
f("tr", null, [
|
|
1041
|
+
f("td", {
|
|
996
1042
|
colspan: Y.value,
|
|
997
1043
|
class: "px-3 pb-3 pt-2"
|
|
998
1044
|
}, [
|
|
999
|
-
|
|
1045
|
+
f("button", {
|
|
1000
1046
|
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",
|
|
1001
1047
|
disabled: e.loadingNext,
|
|
1002
|
-
onClick: r[1] || (r[1] = (
|
|
1048
|
+
onClick: r[1] || (r[1] = (t) => d("load:next"))
|
|
1003
1049
|
}, [
|
|
1004
|
-
e.loadingNext ? (l(),
|
|
1050
|
+
e.loadingNext ? (l(), k(D, {
|
|
1005
1051
|
key: 0,
|
|
1006
1052
|
class: "w-4 h-4"
|
|
1007
1053
|
})) : g("", !0),
|
|
1008
|
-
|
|
1009
|
-
], 8,
|
|
1010
|
-
], 8,
|
|
1054
|
+
I(" " + w(e.loadMoreLabel || p(b)("ui.dataTable.showMore")), 1)
|
|
1055
|
+
], 8, Zt)
|
|
1056
|
+
], 8, Yt)
|
|
1011
1057
|
])
|
|
1012
1058
|
])) : g("", !0)
|
|
1013
1059
|
], 2)
|
|
1014
1060
|
], 2)),
|
|
1015
|
-
e.paginator &&
|
|
1061
|
+
e.paginator && ke.value > 0 ? (l(), k(_t, {
|
|
1016
1062
|
key: 3,
|
|
1017
|
-
first:
|
|
1018
|
-
rows:
|
|
1019
|
-
"total-records":
|
|
1063
|
+
first: J.value,
|
|
1064
|
+
rows: B.value,
|
|
1065
|
+
"total-records": ke.value,
|
|
1020
1066
|
"rows-per-page-options": e.rowsPerPageOptions,
|
|
1021
|
-
"onUpdate:first":
|
|
1022
|
-
"onUpdate:rows":
|
|
1023
|
-
onPage: r[4] || (r[4] = (
|
|
1067
|
+
"onUpdate:first": Ve,
|
|
1068
|
+
"onUpdate:rows": Ae,
|
|
1069
|
+
onPage: r[4] || (r[4] = (t) => d("page", t))
|
|
1024
1070
|
}, null, 8, ["first", "rows", "total-records", "rows-per-page-options"])) : g("", !0),
|
|
1025
|
-
p(h).footer ? (l(), o("div",
|
|
1026
|
-
|
|
1071
|
+
p(h).footer ? (l(), o("div", _s, [
|
|
1072
|
+
F(e.$slots, "footer", {}, void 0, !0)
|
|
1027
1073
|
])) : g("", !0)
|
|
1028
1074
|
]));
|
|
1029
1075
|
}
|
|
1030
1076
|
});
|
|
1031
|
-
const
|
|
1077
|
+
const js = /* @__PURE__ */ lt(Ss, [["__scopeId", "data-v-9359fb0b"]]), Ks = /* @__PURE__ */ ye({
|
|
1032
1078
|
__name: "OneColumn",
|
|
1033
|
-
props:
|
|
1034
|
-
setup(
|
|
1035
|
-
const
|
|
1036
|
-
props:
|
|
1037
|
-
slots:
|
|
1079
|
+
props: at,
|
|
1080
|
+
setup(u) {
|
|
1081
|
+
const i = u, c = Pe(), s = st(Te), d = {
|
|
1082
|
+
props: i,
|
|
1083
|
+
slots: c
|
|
1038
1084
|
};
|
|
1039
|
-
return
|
|
1040
|
-
|
|
1041
|
-
}), (
|
|
1085
|
+
return s && s.registerColumn(d), Oe(() => {
|
|
1086
|
+
s && s.unregisterColumn(d);
|
|
1087
|
+
}), (h, b) => F(h.$slots, "default");
|
|
1042
1088
|
}
|
|
1043
1089
|
});
|
|
1044
1090
|
export {
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1091
|
+
Ks as OneColumn,
|
|
1092
|
+
js as OneDataTable,
|
|
1093
|
+
_t as OneDataTablePaginator
|
|
1048
1094
|
};
|