@oneb/ui-vue 0.3.17 → 0.3.19

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