@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.
@@ -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";
5
- import { r as ne } from "../ChevronDownIcon-6805ce6c.js";
6
- import { r as D } from "../CheckIcon-f1c94824.js";
7
- import { _ as tt } from "../_plugin-vue_export-helper-dad06003.js";
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 st(d, n) {
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
- 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 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
- 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 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
- }, lt = {
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
- }, 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 = {
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 at(d) {
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));
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 Xe(() => {
251
- f(_e(d)), Q(
252
- () => _e(d),
253
- (S) => {
254
- f(S);
254
+ return Ze(() => {
255
+ h(Be(u)), W(
256
+ () => Be(u),
257
+ (b) => {
258
+ h(b);
255
259
  }
256
260
  );
257
- }), Fe(() => {
258
- h();
259
- }), n;
261
+ }), Oe(() => {
262
+ d();
263
+ }), i;
260
264
  }
261
- function z(d) {
262
- return at(`(min-width: ${ot[d]}px)`);
265
+ function A(u) {
266
+ return dt(`(min-width: ${it[u]}px)`);
263
267
  }
264
- const nt = (d = !0) => {
265
- const n = ["overflow-x-auto", "w-full"];
266
- return d && n.push("border", "border-gray-100", "rounded"), n;
267
- }, it = (d) => {
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",
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
- ) : f.push(
281
- h || "bg-gray-100",
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
- ), 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) => {
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) => {
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 = () => [
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
- ], 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) => {
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) => {
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({
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(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
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
- }, 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", {
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: x,
363
+ rows: $,
360
364
  page: 0,
361
- pageCount: Math.ceil(t.totalRecords / x)
365
+ pageCount: Math.ceil(c.totalRecords / $)
362
366
  });
363
367
  };
364
- return (C, x) => (l(), o("div", {
365
- class: b(A.value)
368
+ return (B, $) => (l(), o("div", {
369
+ class: m(U.value)
366
370
  }, [
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", {
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: d.rows,
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: O
377
+ onChange: J
374
378
  }, [
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)
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
- c("div", bt, [
382
- c("button", {
383
- disabled: F.value,
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: G
389
+ onClick: Q
386
390
  }, [
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,
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: J
397
+ onClick: x
394
398
  }, [
395
- (l(), v(w(p(pe)), { class: "w-4 h-4 text-gray-600" }))
396
- ], 8, kt)
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
- }), Ct = {
404
+ }), St = {
401
405
  key: 0,
402
406
  class: "mb-3"
403
- }, xt = { key: 0 }, _t = {
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
- }, St = {
410
+ }, Mt = {
407
411
  key: 1,
408
412
  class: "w-5 h-5 rounded border border-gray-300 bg-white"
409
- }, Rt = ["onClick"], Bt = {
413
+ }, Ft = ["onClick"], $t = {
410
414
  key: 1,
411
415
  class: "inline-flex items-center gap-1"
412
- }, Mt = { key: 0 }, Ft = ["value", "placeholder", "onInput"], $t = { key: 1 }, Pt = ["onClick"], Lt = ["onClick"], Ot = {
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
- }, qt = {
419
+ }, jt = {
416
420
  key: 1,
417
421
  class: "w-5 h-5 rounded border border-gray-300 bg-white"
418
- }, Et = ["onClick"], jt = {
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
- }, Tt = {
425
+ }, zt = {
422
426
  key: 1,
423
427
  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 = {
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
- }, It = { class: "flex items-center justify-center gap-2 text-gray-500" }, Dt = {
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
- }, es = { class: "text-gray-400" }, ts = {
434
+ }, rs = { class: "text-gray-400" }, ls = {
431
435
  key: 2,
432
436
  class: "space-y-2"
433
- }, ss = {
437
+ }, os = {
434
438
  key: 0,
435
439
  class: "flex items-center gap-2 px-3 py-2"
436
- }, rs = {
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
- }, ls = {
443
+ }, ns = {
440
444
  key: 1,
441
445
  class: "w-5 h-5 rounded border border-gray-300 bg-white"
442
- }, os = { class: "text-sm text-gray-500" }, as = ["onClick"], ns = {
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
- }, is = { key: 0 }, ds = ["onClick"], us = {
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
- }, ps = {
452
+ }, ys = {
449
453
  key: 1,
450
454
  class: "w-5 h-5 rounded border border-gray-300 bg-white"
451
- }, cs = ["onClick"], fs = {
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
- }, ys = {
458
+ }, bs = {
455
459
  key: 1,
456
460
  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 = {
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
- }, ks = ["disabled"], ws = {
464
+ }, xs = ["disabled"], _s = {
461
465
  key: 4,
462
466
  class: "mt-3"
463
- }, Cs = /* @__PURE__ */ fe({
467
+ }, Ss = /* @__PURE__ */ ye({
464
468
  __name: "OneDataTable",
465
- props: lt,
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(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);
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 = S.value.indexOf(e);
490
- r > -1 && S.value.splice(r, 1);
494
+ const r = P.value.indexOf(e);
495
+ r > -1 && P.value.splice(r, 1);
491
496
  } });
492
- const F = E(t.first), V = E(t.rows), A = E(t.sortField), j = E(t.sortOrder);
493
- Q(
494
- () => t.first,
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
- F.value = e;
501
+ L.value = e;
497
502
  }
498
- ), Q(
499
- () => t.rows,
503
+ ), W(
504
+ () => s.rows,
500
505
  (e) => {
501
- V.value = e;
506
+ U.value = e;
502
507
  }
503
- ), Q(
504
- () => t.sortField,
508
+ ), W(
509
+ () => s.sortField,
505
510
  (e) => {
506
- A.value = e;
511
+ N.value = e;
507
512
  }
508
- ), Q(
509
- () => t.sortOrder,
513
+ ), W(
514
+ () => s.sortOrder,
510
515
  (e) => {
511
- j.value = e;
516
+ Q.value = e;
512
517
  }
513
518
  );
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)) {
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
- (m) => t.globalFilterFields.some(
526
- (oe) => Be.contains(x(m, oe), a)
565
+ (v) => s.globalFilterFields.some(
566
+ (ae) => $e.contains(_(v, ae), a)
527
567
  )
528
568
  );
529
569
  }
530
- for (const [a, m] of Object.entries(r)) {
531
- if (a === "global" || !m.value)
570
+ for (const [a, v] of Object.entries(r)) {
571
+ if (a === "global" || !v.value)
532
572
  continue;
533
- const oe = m.matchMode || "contains", xe = Be[oe];
534
- xe && (e = e.filter((Je) => xe(x(Je, a), m.value)));
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
- }), 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)
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 (u == null)
583
+ if (n == null)
544
584
  return 1;
545
585
  if (a == null)
546
586
  return -1;
547
- let m;
548
- return typeof u == "number" && typeof a == "number" ? m = u - a : m = String(u).localeCompare(String(a)), C.value === 1 ? m : -m;
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
- }), 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);
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
- }), qe = (e) => {
597
+ }), je = (e) => {
558
598
  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 });
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
- }, se = (e, r) => {
566
- if (e.stopPropagation(), t.selectionMode === "multiple") {
567
- const s = t.selection || [], u = s.some((m) => M(m, r));
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
- 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);
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
- }, re = y(() => {
572
- if (t.selectionMode !== "multiple" || !t.selection)
611
+ }, le = y(() => {
612
+ if (s.selectionMode !== "multiple" || !s.selection)
573
613
  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) => {
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 = t.selection || [];
579
- if (re.value) {
580
- const s = r.filter(
581
- (u) => !P.value.some((a) => M(u, a))
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
- i("update:selection", s);
623
+ d("update:selection", n);
584
624
  } 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);
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
- }, N = (e) => {
591
- if (!t.expandedRows)
630
+ }, V = (e) => {
631
+ if (!s.expandedRows)
592
632
  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];
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
- }, le = (e, r) => {
601
- 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);
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
- }, je = (e, r, s) => {
651
+ }, Ne = (e, r, t) => {
611
652
  var a;
612
- if (!t.filters)
653
+ if (!s.filters)
613
654
  return;
614
- const u = {
615
- ...t.filters,
616
- [e]: { value: r, matchMode: s || ((a = t.filters[e]) == null ? void 0 : a.matchMode) || "contains" }
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
- i("update:filters", u), t.lazy && i("filter", { filters: u }), t.paginator && (F.value = 0, i("update:first", 0));
619
- }, ke = (e) => {
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 = 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);
626
- }, ze = (e) => {
627
- V.value = e, i("update:rows", e);
628
- }, we = y(() => {
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 (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];
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 t.colWidths;
676
+ return s.colWidths;
636
677
  }
637
- return $.value && e.push(""), R.value && e.push(""), te.value.forEach((r) => {
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
- }), 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;
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 ((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);
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
- Ze(c("div", null, [
658
- B(e.$slots, "default", {}, void 0, !0)
698
+ et(f("div", null, [
699
+ F(e.$slots, "default", {}, void 0, !0)
659
700
  ], 512), [
660
- [Ie, !1]
701
+ [tt, !1]
661
702
  ]),
662
- p(h).header ? (l(), o("div", Ct, [
663
- B(e.$slots, "header", {}, void 0, !0)
703
+ p(h).header ? (l(), o("div", St, [
704
+ F(e.$slots, "header", {}, void 0, !0)
664
705
  ])) : 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)
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
- ])) : P.value.length === 0 ? (l(), o("div", Dt, [
674
- B(e.$slots, "empty", {}, () => [
675
- c("span", es, k(p(f)("ui.dataTable.noRecords")), 1)
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", ts, [
678
- X.value ? (l(), o("div", ss, [
679
- c("div", {
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] = (s) => me(s))
722
+ onClick: r[2] || (r[2] = (t) => Ce(t))
682
723
  }, [
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))
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
- c("span", os, k(p(f)("ui.dataTable.selectAll")), 1)
728
+ f("span", is, w(p(b)("ui.dataTable.selectAll")), 1)
688
729
  ])) : 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)),
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, s, u)
736
+ onClick: (a) => Z(a, t, n)
696
737
  }, [
697
- p(h).card ? B(e.$slots, "card", {
738
+ p(h).card ? F(e.$slots, "card", {
698
739
  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, [
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: U((a) => se(a, s), ["stop"])
753
+ onClick: G((a) => re(a, t), ["stop"])
712
754
  }, [
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", {
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: U((a) => Z(a, s, u), ["stop"])
761
+ onClick: G((a) => Z(a, t, n), ["stop"])
720
762
  }, [
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", {
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
- onClick: U((a) => le(a, s), ["stop"])
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(), v(w(N(s) ? p(ne) : p(pe)), { class: "w-4 h-4 text-gray-500" }))
732
- ], 8, hs)) : g("", !0)
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(_, null, L(K.value, (a, m) => (l(), o("div", {
735
- key: m,
736
- class: b(p(ct)(e.size))
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
- c("span", bs, k(a.props.header), 1),
739
- c("div", vs, [
740
- a.slots.body ? (l(), v(w(a.slots.body), {
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: s,
785
+ data: t,
743
786
  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)
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
- R.value && N(s) ? (l(), o("div", ms, [
751
- B(e.$slots, "expansion", {
752
- data: s,
753
- index: u
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, as))), 128)),
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] = (s) => i("load:next"))
805
+ onClick: r[3] || (r[3] = (t) => d("load:next"))
763
806
  }, [
764
- e.loadingNext ? (l(), v(I, {
807
+ e.loadingNext ? (l(), k(D, {
765
808
  key: 0,
766
809
  class: "w-4 h-4"
767
810
  })) : g("", !0),
768
- W(" " + k(e.loadMoreLabel || p(f)("ui.dataTable.showMore")), 1)
769
- ], 8, ks)) : g("", !0)
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: b([...Ve.value, e.verticalBorders === "hover-table" ? "vb-hover" : ""])
816
+ class: m([...We.value, e.verticalBorders === "hover-table" ? "vb-hover" : ""])
774
817
  }, [
775
- c("table", {
776
- class: b([
777
- ...Ae.value,
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
- Ce.value ? "table-fixed" : ""
823
+ Se.value ? "table-fixed" : ""
781
824
  ])
782
825
  }, [
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 } : {})
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
- c("thead", null, [
790
- c("tr", null, [
791
- $.value ? (l(), o("th", {
832
+ f("thead", null, [
833
+ f("tr", null, [
834
+ T.value ? (l(), o("th", {
792
835
  key: 0,
793
- class: b([
794
- ...p(ie)(e.size, !1, e.verticalBorders, e.headerVariant, e.headerBgClass),
795
- ...p(ce)(e.size)
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] = (s) => me(s))
844
+ onClick: r[0] || (r[0] = (t) => Ce(t))
802
845
  }, [
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))
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
- R.value ? (l(), o("th", {
851
+ M.value ? (l(), o("th", {
809
852
  key: 1,
810
- class: b([
811
- ...p(ie)(e.size, !1, e.verticalBorders, e.headerVariant, e.headerBgClass),
812
- ...p(Me)(e.size)
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(_, 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
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: ae([s.props.headerStyle, s.props.width ? { width: s.props.width } : {}]),
822
- onClick: (a) => s.props.sortable ? qe(ve(s)) : void 0
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
- 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)), {
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: b(p(ee)(!0))
830
- }, null, 8, ["class"])) : C.value === -1 ? (l(), v(w(p(ne)), {
872
+ class: m(p(te)(!0))
873
+ }, null, 8, ["class"])) : q.value === -1 ? (l(), k(C(p(ie)), {
831
874
  key: 2,
832
- class: b(p(ee)(!0))
833
- }, null, 8, ["class"])) : (l(), v(w(p(Re)), {
875
+ class: m(p(te)(!0))
876
+ }, null, 8, ["class"])) : (l(), k(C(p(Fe)), {
834
877
  key: 3,
835
- class: b(p(ee)(!1))
836
- }, null, 8, ["class"])) : (l(), v(w(p(Re)), {
878
+ class: m(p(te)(!1))
879
+ }, null, 8, ["class"])) : (l(), k(C(p(Fe)), {
837
880
  key: 0,
838
- class: b(p(ee)(!1))
881
+ class: m(p(te)(!1))
839
882
  }, null, 8, ["class"]))
840
883
  ], 64)) : g("", !0)
841
884
  ]))
842
- ], 14, Rt))), 128))
885
+ ], 14, Ft))), 128))
843
886
  ]),
844
- e.filterDisplay === "row" ? (l(), o("tr", Mt, [
845
- $.value ? (l(), o("th", {
887
+ e.filterDisplay === "row" ? (l(), o("tr", qt, [
888
+ T.value ? (l(), o("th", {
846
889
  key: 0,
847
- class: b(p(ue)(e.size))
890
+ class: m(p(pe)(e.size))
848
891
  }, null, 2)) : g("", !0),
849
- R.value ? (l(), o("th", {
892
+ M.value ? (l(), o("th", {
850
893
  key: 1,
851
- class: b(p(ue)(e.size))
894
+ class: m(p(pe)(e.size))
852
895
  }, 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))
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
- s.props.filterable && s.slots.filter ? (l(), v(w(s.slots.filter), {
900
+ t.props.filterable && t.slots.filter ? (l(), k(C(t.slots.filter), {
858
901
  key: 0,
859
- filterModel: ke(
860
- s.props.filterField || s.props.field
902
+ filterModel: xe(
903
+ t.props.filterField || t.props.field
861
904
  ),
862
- filterCallback: Te(
863
- s.props.filterField || s.props.field
905
+ filterCallback: ze(
906
+ t.props.filterField || t.props.field
864
907
  )
865
- }, null, 8, ["filterModel", "filterCallback"])) : s.props.filterable && s.props.field ? (l(), o("input", {
908
+ }, null, 8, ["filterModel", "filterCallback"])) : t.props.filterable && t.props.field ? (l(), o("input", {
866
909
  key: 1,
867
910
  type: "text",
868
- value: ke(
869
- s.props.filterField || s.props.field
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 ${s.props.header || s.props.field}`,
873
- onInput: (a) => je(
874
- s.props.filterField || s.props.field,
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, Ft)) : g("", !0)
920
+ }, null, 40, Ot)) : g("", !0)
878
921
  ], 2))), 128))
879
922
  ])) : g("", !0)
880
923
  ]),
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)
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
- c("tr", {
886
- class: b([
887
- ...p(dt)(
928
+ f("tr", {
929
+ class: m([
930
+ ...p(ct)(
888
931
  e.striped,
889
932
  e.hoverable,
890
- u % 2 === 1,
891
- q(s),
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, s, u)
940
+ onClick: (a) => Z(a, t, n)
897
941
  }, [
898
- $.value ? (l(), o("td", {
942
+ T.value ? (l(), o("td", {
899
943
  key: 0,
900
- class: b([
901
- ...p(de)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
902
- ...p(ce)(e.size)
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: U((a) => se(a, s), ["stop"])
952
+ onClick: G((a) => re(a, t), ["stop"])
909
953
  }, [
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))
913
- ], 8, Lt)) : (l(), o("div", {
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: U((a) => Z(a, s, u), ["stop"])
960
+ onClick: G((a) => Z(a, t, n), ["stop"])
917
961
  }, [
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))
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
- R.value ? (l(), o("td", {
967
+ M.value ? (l(), o("td", {
924
968
  key: 1,
925
- class: b([
926
- ...p(de)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
927
- ...p(Me)(e.size)
969
+ class: m([
970
+ ...p(ue)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
971
+ ...p(qe)(e.size)
928
972
  ])
929
973
  }, [
930
- c("button", {
931
- class: "p-1 rounded hover:bg-gray-100 transition-colors",
932
- onClick: (a) => le(a, s)
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(), v(w(N(s) ? p(ne) : p(pe)), { class: "w-4 h-4 text-gray-500" }))
935
- ], 8, Nt)
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(_, null, L(K.value, (a, m) => (l(), o("td", {
938
- key: m,
939
- class: b([
940
- ...p(de)(e.size, e.bordered, e.verticalBorders, e.bodyBgClass),
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: ae(a.props.bodyStyle)
988
+ style: ne(a.props.bodyStyle)
944
989
  }, [
945
- a.slots.body ? (l(), v(w(a.slots.body), {
990
+ a.slots.body ? (l(), k(C(a.slots.body), {
946
991
  key: 0,
947
- data: s,
992
+ data: t,
948
993
  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)
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, Pt),
955
- R.value && N(s) ? (l(), o("tr", zt, [
956
- c("td", {
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
- B(e.$slots, "expansion", {
961
- data: s,
962
- index: u
1006
+ F(e.$slots, "expansion", {
1007
+ data: t,
1008
+ index: n
963
1009
  }, void 0, !0)
964
- ], 8, Vt)
1010
+ ], 8, Wt)
965
1011
  ])) : g("", !0)
966
1012
  ], 64))), 128))
967
- ])) : e.loading ? (l(), o("tbody", At, [
968
- c("tr", null, [
969
- c("td", {
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
- 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)
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, Kt)
1025
+ ], 8, Qt)
980
1026
  ])
981
- ])) : (l(), o("tbody", Ut, [
982
- c("tr", null, [
983
- c("td", {
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
- B(e.$slots, "empty", {}, () => [
988
- c("span", Ht, k(p(f)("ui.dataTable.noRecords")), 1)
1033
+ F(e.$slots, "empty", {}, () => [
1034
+ f("span", Jt, w(p(b)("ui.dataTable.noRecords")), 1)
989
1035
  ], !0)
990
- ], 8, Qt)
1036
+ ], 8, Gt)
991
1037
  ])
992
1038
  ])),
993
- e.hasNextPage && !e.loading ? (l(), o("tfoot", Gt, [
994
- c("tr", null, [
995
- c("td", {
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
- c("button", {
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] = (s) => i("load:next"))
1048
+ onClick: r[1] || (r[1] = (t) => d("load:next"))
1003
1049
  }, [
1004
- e.loadingNext ? (l(), v(I, {
1050
+ e.loadingNext ? (l(), k(D, {
1005
1051
  key: 0,
1006
1052
  class: "w-4 h-4"
1007
1053
  })) : g("", !0),
1008
- W(" " + k(e.loadMoreLabel || p(f)("ui.dataTable.showMore")), 1)
1009
- ], 8, Xt)
1010
- ], 8, Jt)
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 && be.value > 0 ? (l(), v(wt, {
1061
+ e.paginator && ke.value > 0 ? (l(), k(_t, {
1016
1062
  key: 3,
1017
- first: G.value,
1018
- rows: J.value,
1019
- "total-records": be.value,
1063
+ first: J.value,
1064
+ rows: B.value,
1065
+ "total-records": ke.value,
1020
1066
  "rows-per-page-options": e.rowsPerPageOptions,
1021
- "onUpdate:first": Ne,
1022
- "onUpdate:rows": ze,
1023
- onPage: r[4] || (r[4] = (s) => i("page", s))
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", ws, [
1026
- B(e.$slots, "footer", {}, void 0, !0)
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 Ps = /* @__PURE__ */ tt(Cs, [["__scopeId", "data-v-f7613b9d"]]), Ls = /* @__PURE__ */ fe({
1077
+ const js = /* @__PURE__ */ lt(Ss, [["__scopeId", "data-v-9359fb0b"]]), Ks = /* @__PURE__ */ ye({
1032
1078
  __name: "OneColumn",
1033
- props: rt,
1034
- setup(d) {
1035
- const n = d, t = $e(), i = De(Le), h = {
1036
- props: n,
1037
- slots: t
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 i && i.registerColumn(h), Fe(() => {
1040
- i && i.unregisterColumn(h);
1041
- }), (f, S) => B(f.$slots, "default");
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
- Ls as OneColumn,
1046
- Ps as OneDataTable,
1047
- wt as OneDataTablePaginator
1091
+ Ks as OneColumn,
1092
+ js as OneDataTable,
1093
+ _t as OneDataTablePaginator
1048
1094
  };