@dolusoft/vue3-datatable 1.4.5 → 1.4.7

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,6 +1,6 @@
1
- import { onMounted as we, nextTick as En, getCurrentScope as In, onScopeDispose as Tn, unref as D, getCurrentInstance as Kt, computed as Q, ref as A, watch as G, defineComponent as ue, useCssVars as $n, shallowRef as oe, onUnmounted as Ge, openBlock as m, createElementBlock as b, Fragment as B, withDirectives as ne, createElementVNode as v, normalizeClass as C, normalizeStyle as K, withModifiers as re, setBlockTracking as Mt, vShow as Qe, createCommentVNode as E, mergeProps as On, renderSlot as ee, renderList as te, createVNode as W, reactive as Rn, watchEffect as An, h as Ke, toRef as Nn, createBlock as X, onBeforeUnmount as Dn, toDisplayString as R, createTextVNode as Xe, vModelText as He, vModelSelect as Xt, useSlots as Bn, withCtx as Z, vModelCheckbox as qn } from "vue";
1
+ import { onMounted as we, nextTick as En, getCurrentScope as Tn, onScopeDispose as In, unref as D, getCurrentInstance as Kt, computed as Q, ref as A, watch as G, defineComponent as ue, useCssVars as $n, shallowRef as oe, onUnmounted as Ge, openBlock as m, createElementBlock as b, Fragment as B, withDirectives as ne, createElementVNode as v, normalizeClass as C, normalizeStyle as K, withModifiers as re, setBlockTracking as Mt, vShow as Qe, createCommentVNode as F, mergeProps as On, renderSlot as X, renderList as te, createVNode as W, reactive as Rn, watchEffect as An, h as Ke, toRef as Nn, createBlock as Y, onBeforeUnmount as Dn, toDisplayString as R, createTextVNode as Xe, vModelText as He, vModelSelect as Xt, useSlots as Bn, withCtx as ee, vModelCheckbox as qn } from "vue";
2
2
  function Hn(e) {
3
- return In() ? (Tn(e), !0) : !1;
3
+ return Tn() ? (In(e), !0) : !1;
4
4
  }
5
5
  function jn(e) {
6
6
  return typeof e == "function" ? e() : D(e);
@@ -164,19 +164,19 @@ function en(e, o, n) {
164
164
  throw new TypeError(wo);
165
165
  o = ge(o) || 0, Ee(n) && (d = !!n.leading, p = "maxWait" in n, s = p ? So(ge(n.maxWait) || 0, o) : s, k = "trailing" in n ? !!n.trailing : k);
166
166
  function z(x) {
167
- var y = i, I = t;
168
- return i = t = void 0, c = x, l = e.apply(I, y), l;
167
+ var y = i, T = t;
168
+ return i = t = void 0, c = x, l = e.apply(T, y), l;
169
169
  }
170
170
  function _(x) {
171
171
  return c = x, r = setTimeout($, o), d ? z(x) : l;
172
172
  }
173
173
  function M(x) {
174
- var y = x - u, I = x - c, L = o - y;
175
- return p ? ko(L, s - I) : L;
174
+ var y = x - u, T = x - c, L = o - y;
175
+ return p ? ko(L, s - T) : L;
176
176
  }
177
177
  function w(x) {
178
- var y = x - u, I = x - c;
179
- return u === void 0 || y >= o || y < 0 || p && I >= s;
178
+ var y = x - u, T = x - c;
179
+ return u === void 0 || y >= o || y < 0 || p && T >= s;
180
180
  }
181
181
  function $() {
182
182
  var x = je();
@@ -216,18 +216,18 @@ function tn(e, o, n) {
216
216
  trailing: t
217
217
  });
218
218
  }
219
- var zo = Object.defineProperty, _o = Object.defineProperties, Po = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Mo = Object.prototype.hasOwnProperty, Lo = Object.prototype.propertyIsEnumerable, It = (e, o, n) => o in e ? zo(e, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[o] = n, Ie = (e, o) => {
219
+ var zo = Object.defineProperty, _o = Object.defineProperties, Po = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Mo = Object.prototype.hasOwnProperty, Lo = Object.prototype.propertyIsEnumerable, Tt = (e, o, n) => o in e ? zo(e, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[o] = n, Te = (e, o) => {
220
220
  for (var n in o || (o = {}))
221
- Mo.call(o, n) && It(e, n, o[n]);
221
+ Mo.call(o, n) && Tt(e, n, o[n]);
222
222
  if (Et)
223
223
  for (var n of Et(o))
224
- Lo.call(o, n) && It(e, n, o[n]);
224
+ Lo.call(o, n) && Tt(e, n, o[n]);
225
225
  return e;
226
226
  }, nn = (e, o) => _o(e, Po(o));
227
227
  const Fo = ["onPointerdown"], Eo = {
228
228
  name: "ScrollbarThumb"
229
229
  };
230
- function Io(e, { expose: o }) {
230
+ function To(e, { expose: o }) {
231
231
  const n = e;
232
232
  $n((y) => ({
233
233
  "1fb98f78": D(i)
@@ -249,7 +249,7 @@ function Io(e, { expose: o }) {
249
249
  Ge(c);
250
250
  const d = tn((y) => {
251
251
  y.stopPropagation(), y.preventDefault();
252
- const I = n.type === "horizontal" ? "pageX" : "pageY", L = (y[I] - l[I]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
252
+ const T = n.type === "horizontal" ? "pageX" : "pageY", L = (y[T] - l[T]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
253
253
  n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: l.scrollPos + L, behavior: "auto" });
254
254
  }, 16), p = () => {
255
255
  u(), s.value.removeEventListener("pointermove", d), s.value.removeEventListener("pointerup", p), s.value.removeEventListener("pointercancel", p), s.value.removeEventListener("mousewheel", p), document.removeEventListener("mousewheel", p), typeof r == "number" && s.value.releasePointerCapture(r), r = null;
@@ -269,7 +269,7 @@ function Io(e, { expose: o }) {
269
269
  if (!n.fixedThumb || !n.wrapperEl)
270
270
  return x();
271
271
  x(), U = new IntersectionObserver(q, { threshold: [0, 0.5] }), U.observe(n.wrapperEl), $ = new IntersectionObserver(P), $.observe(w.value);
272
- }), Ge(x), (y, I) => (m(), b(B, null, [
272
+ }), Ge(x), (y, T) => (m(), b(B, null, [
273
273
  ne(v("div", {
274
274
  class: C([
275
275
  "scrollbar__thumbPlaceholder",
@@ -290,9 +290,9 @@ function Io(e, { expose: o }) {
290
290
  },
291
291
  onPointerdown: re(k, ["stop"])
292
292
  }, [
293
- I[0] || (Mt(-1), I[0] = v("div", {
293
+ T[0] || (Mt(-1), T[0] = v("div", {
294
294
  class: C(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
295
- }, null, 2), Mt(1), I[0])
295
+ }, null, 2), Mt(1), T[0])
296
296
  ], 46, Fo), [
297
297
  [Qe, !!e.scrollInfo.thumbSize && (e.fixedThumb ? _.value : !0)]
298
298
  ]),
@@ -304,10 +304,10 @@ function Io(e, { expose: o }) {
304
304
  class: C(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
305
305
  }, null, 2)), [
306
306
  [Qe, !!e.scrollInfo.thumbSize]
307
- ]) : E("", !0)
307
+ ]) : F("", !0)
308
308
  ], 64));
309
309
  }
310
- const To = /* @__PURE__ */ ue(nn(Ie({}, Eo), {
310
+ const Io = /* @__PURE__ */ ue(nn(Te({}, Eo), {
311
311
  props: {
312
312
  type: null,
313
313
  autoExpand: null,
@@ -318,16 +318,16 @@ const To = /* @__PURE__ */ ue(nn(Ie({}, Eo), {
318
318
  thumbWidth: null,
319
319
  wrapperEl: null
320
320
  },
321
- setup: Io
321
+ setup: To
322
322
  })), $o = {
323
323
  wait: 333,
324
324
  type: "debounce"
325
325
  };
326
- function Tt(...e) {
326
+ function It(...e) {
327
327
  const o = "value" in (e == null ? void 0 : e[0]);
328
328
  let n;
329
329
  o ? n = e == null ? void 0 : e[1] : n = e == null ? void 0 : e[0];
330
- const { wait: i, type: t, callback: s } = Ie(Ie({}, $o), n), l = o ? e[0] : oe(null), r = Rn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
330
+ const { wait: i, type: t, callback: s } = Te(Te({}, $o), n), l = o ? e[0] : oe(null), r = Rn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
331
331
  const k = l.value.getBoundingClientRect();
332
332
  r.left = k.left, r.top = k.top, r.right = k.right, r.bottom = k.bottom, r.width = k.width, r.height = k.height, r.x = k.x, r.y = k.y, s == null || s();
333
333
  };
@@ -356,11 +356,11 @@ function Ro(e, { expose: o, emit: n }) {
356
356
  const q = Array.from((P = l.value.parentElement) == null ? void 0 : P.childNodes);
357
357
  for (const x in t)
358
358
  t[x].el = q.find((y) => {
359
- var I;
360
- return (I = y == null ? void 0 : y.classList) == null ? void 0 : I.contains(`scrollbar__thumbPlaceholder--${x}`);
359
+ var T;
360
+ return (T = y == null ? void 0 : y.classList) == null ? void 0 : T.contains(`scrollbar__thumbPlaceholder--${x}`);
361
361
  });
362
362
  });
363
- const u = Tt(l, { wait: i.throttleWait, type: i.throttleType, callback: k }), c = Tt(r, { wait: i.throttleWait, type: i.throttleType, callback: k });
363
+ const u = It(l, { wait: i.throttleWait, type: i.throttleType, callback: k }), c = It(r, { wait: i.throttleWait, type: i.throttleType, callback: k });
364
364
  let d = oe(0), p = oe(0);
365
365
  function k() {
366
366
  d.value = Math.max(l.value.scrollHeight - u.height | 0, 0), p.value = Math.max(l.value.scrollWidth - u.width | 0, 0);
@@ -382,8 +382,8 @@ function Ro(e, { expose: o, emit: n }) {
382
382
  G(() => [p.value, d.value], $);
383
383
  const U = (P) => {
384
384
  P.stopPropagation();
385
- const q = l.value.scrollLeft, x = l.value.scrollTop, y = ze(q + ((P == null ? void 0 : P.deltaX) || 0), 0, p.value) | 0, I = ze(x + ((P == null ? void 0 : P.deltaY) || 0), 0, d.value) | 0;
386
- l.value.scrollLeft = y, l.value.scrollTop = I, p.value && (t.horizontal.el.style.transform = `translate3d(${y / p.value * w.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${I / d.value * M.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: l.value, scrollLeft: y, scrollTop: I });
385
+ const q = l.value.scrollLeft, x = l.value.scrollTop, y = ze(q + ((P == null ? void 0 : P.deltaX) || 0), 0, p.value) | 0, T = ze(x + ((P == null ? void 0 : P.deltaY) || 0), 0, d.value) | 0;
386
+ l.value.scrollLeft = y, l.value.scrollTop = T, p.value && (t.horizontal.el.style.transform = `translate3d(${y / p.value * w.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${T / d.value * M.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: l.value, scrollLeft: y, scrollTop: T });
387
387
  }, O = (P) => {
388
388
  i.simulateScroll ? U(P) : $();
389
389
  };
@@ -409,11 +409,11 @@ function Ro(e, { expose: o, emit: n }) {
409
409
  class: C(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
410
410
  style: K(e.contentStyle)
411
411
  }, [
412
- ee(P.$slots, "default")
412
+ X(P.$slots, "default")
413
413
  ], 6)
414
414
  ], 16),
415
- (m(), b(B, null, te(t, (x, y) => W(To, {
416
- ref: (I) => s(I, y),
415
+ (m(), b(B, null, te(t, (x, y) => W(Io, {
416
+ ref: (T) => s(T, y),
417
417
  key: y,
418
418
  autoExpand: e.autoExpand,
419
419
  autoHide: e.autoHide,
@@ -426,7 +426,7 @@ function Ro(e, { expose: o, emit: n }) {
426
426
  }, null, 8, ["autoExpand", "autoHide", "autoHideDelay", "fixedThumb", "type", "scrollInfo", "thumbWidth", "wrapperEl"])), 64))
427
427
  ], 6));
428
428
  }
429
- const Ao = /* @__PURE__ */ ue(nn(Ie({}, Oo), {
429
+ const Ao = /* @__PURE__ */ ue(nn(Te({}, Oo), {
430
430
  props: {
431
431
  wrapperClass: null,
432
432
  wrapperStyle: null,
@@ -779,7 +779,7 @@ function Bo(e, o, n, i, t, s) {
779
779
  onClick: o[0] || (o[0] = (l) => s.onPaneClick(l, e._.uid)),
780
780
  style: K(e.style)
781
781
  }, [
782
- ee(e.$slots, "default")
782
+ X(e.$slots, "default")
783
783
  ], 4);
784
784
  }
785
785
  const me = /* @__PURE__ */ No(Do, [["render", Bo]]), be = /^[a-z0-9]+(-[a-z0-9]+)*$/, $e = (e, o, n, i = "") => {
@@ -825,13 +825,13 @@ const me = /* @__PURE__ */ No(Do, [["render", Bo]]), be = /^[a-z0-9]+(-[a-z0-9]+
825
825
  width: 16,
826
826
  height: 16
827
827
  }
828
- ), Te = Object.freeze({
828
+ ), Ie = Object.freeze({
829
829
  rotate: 0,
830
830
  vFlip: !1,
831
831
  hFlip: !1
832
832
  }), Oe = Object.freeze({
833
833
  ...on,
834
- ...Te
834
+ ...Ie
835
835
  }), Ye = Object.freeze({
836
836
  ...Oe,
837
837
  body: "",
@@ -846,7 +846,7 @@ function qo(e, o) {
846
846
  function $t(e, o) {
847
847
  const n = qo(e, o);
848
848
  for (const i in Ye)
849
- i in Te ? i in e && !(i in n) && (n[i] = Te[i]) : i in o ? n[i] = o[i] : i in e && (n[i] = e[i]);
849
+ i in Ie ? i in e && !(i in n) && (n[i] = Ie[i]) : i in o ? n[i] = o[i] : i in e && (n[i] = e[i]);
850
850
  return n;
851
851
  }
852
852
  function Ho(e, o) {
@@ -996,7 +996,7 @@ const an = Object.freeze({
996
996
  // Dimensions
997
997
  ...an,
998
998
  // Transformations
999
- ...Te
999
+ ...Ie
1000
1000
  }), Xo = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Yo = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1001
1001
  function Rt(e, o, n) {
1002
1002
  if (o === 1)
@@ -1426,7 +1426,7 @@ function Si(e, o, n, i) {
1426
1426
  x.status === "pending" && (x.status = "aborted");
1427
1427
  }), k = [];
1428
1428
  }
1429
- function P(x, y, I) {
1429
+ function P(x, y, T) {
1430
1430
  const L = y !== "success";
1431
1431
  switch (k = k.filter((H) => H !== x), u) {
1432
1432
  case "pending":
@@ -1439,11 +1439,11 @@ function Si(e, o, n, i) {
1439
1439
  return;
1440
1440
  }
1441
1441
  if (y === "abort") {
1442
- d = I, U();
1442
+ d = T, U();
1443
1443
  return;
1444
1444
  }
1445
1445
  if (L) {
1446
- d = I, k.length || (l.length ? q() : U());
1446
+ d = T, k.length || (l.length ? q() : U());
1447
1447
  return;
1448
1448
  }
1449
1449
  if (_(), O(), !e.random) {
@@ -1451,7 +1451,7 @@ function Si(e, o, n, i) {
1451
1451
  H !== -1 && H !== e.index && (e.index = H);
1452
1452
  }
1453
1453
  u = "completed", z.forEach((H) => {
1454
- H(I);
1454
+ H(T);
1455
1455
  });
1456
1456
  }
1457
1457
  function q() {
@@ -1472,8 +1472,8 @@ function Si(e, o, n, i) {
1472
1472
  const y = {
1473
1473
  status: "pending",
1474
1474
  resource: x,
1475
- callback: (I, L) => {
1476
- P(y, I, L);
1475
+ callback: (T, L) => {
1476
+ P(y, T, L);
1477
1477
  }
1478
1478
  };
1479
1479
  k.push(y), c++, p = setTimeout(q, e.rotate), n(x, o, y.callback);
@@ -1722,7 +1722,7 @@ function Ei(e, o) {
1722
1722
  });
1723
1723
  }));
1724
1724
  }
1725
- const Ii = (e, o) => {
1725
+ const Ti = (e, o) => {
1726
1726
  const n = xi(e, !0, rn()), i = vi(n);
1727
1727
  if (!i.pending.length) {
1728
1728
  let u = !0;
@@ -1754,7 +1754,7 @@ const Ii = (e, o) => {
1754
1754
  t[c][d].length && Ei(u, t[c][d]);
1755
1755
  }), o ? yi(o, i, s) : Ht;
1756
1756
  };
1757
- function Ti(e, o) {
1757
+ function Ii(e, o) {
1758
1758
  const n = {
1759
1759
  ...e
1760
1760
  };
@@ -1855,7 +1855,7 @@ function Wt(e) {
1855
1855
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1856
1856
  }
1857
1857
  const Gt = (e, o) => {
1858
- const n = Ti(jt, o), i = { ...qi }, t = o.mode || "svg", s = {}, l = o.style, r = typeof l == "object" && !(l instanceof Array) ? l : {};
1858
+ const n = Ii(jt, o), i = { ...qi }, t = o.mode || "svg", s = {}, l = o.style, r = typeof l == "object" && !(l instanceof Array) ? l : {};
1859
1859
  for (let M in o) {
1860
1860
  const w = o[M];
1861
1861
  if (w !== void 0)
@@ -1989,7 +1989,7 @@ const ji = {
1989
1989
  if (!i)
1990
1990
  return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", i !== null && (this._loadingIcon = {
1991
1991
  name: e,
1992
- abort: Ii([n], () => {
1992
+ abort: Ti([n], () => {
1993
1993
  this.counter++;
1994
1994
  })
1995
1995
  })), null;
@@ -2050,30 +2050,30 @@ const ji = {
2050
2050
  }, [
2051
2051
  (((u = n.value.find((d) => d.id == l.item.id)) == null ? void 0 : u.isExpanded) == null ? i.value : (c = n.value.find((d) => d.id == l.item.id)) != null && c.isExpanded) ? (m(), b(B, { key: 0 }, [
2052
2052
  o.expandall ? (m(), b(B, { key: 0 }, [
2053
- s.value ? (m(), X(D(le), {
2053
+ s.value ? (m(), Y(D(le), {
2054
2054
  key: 0,
2055
2055
  icon: "fluent:chevron-down-up-16-filled"
2056
- })) : (m(), X(D(le), {
2056
+ })) : (m(), Y(D(le), {
2057
2057
  key: 1,
2058
2058
  icon: "mdi:chevron-down"
2059
2059
  }))
2060
- ], 64)) : (m(), X(D(le), {
2060
+ ], 64)) : (m(), Y(D(le), {
2061
2061
  key: 1,
2062
2062
  icon: "mdi:chevron-down"
2063
2063
  }))
2064
2064
  ], 64)) : (m(), b(B, { key: 1 }, [
2065
2065
  o.expandall ? (m(), b(B, { key: 0 }, [
2066
- s.value == -1 ? (m(), X(D(le), {
2066
+ s.value == -1 ? (m(), Y(D(le), {
2067
2067
  key: 0,
2068
2068
  icon: "ion:chevron-expand"
2069
- })) : s.value == 0 ? (m(), X(D(le), {
2069
+ })) : s.value == 0 ? (m(), Y(D(le), {
2070
2070
  key: 1,
2071
2071
  icon: "mdi:chevron-down"
2072
- })) : (m(), X(D(le), {
2072
+ })) : (m(), Y(D(le), {
2073
2073
  key: 2,
2074
2074
  icon: "mdi:chevron-right"
2075
2075
  }))
2076
- ], 64)) : (m(), X(D(le), {
2076
+ ], 64)) : (m(), Y(D(le), {
2077
2077
  key: 1,
2078
2078
  icon: "mdi:chevron-right"
2079
2079
  }))
@@ -2197,7 +2197,7 @@ const ji = {
2197
2197
  class: C({ active: n.column.condition === "less_than" }),
2198
2198
  onClick: r[16] || (r[16] = (u) => s("less_than"))
2199
2199
  }, R((n.columnFilterLang && n.columnFilterLang.less_than) ?? "Less than"), 3)
2200
- ], 64)) : E("", !0),
2200
+ ], 64)) : F("", !0),
2201
2201
  v("button", {
2202
2202
  type: "button",
2203
2203
  class: C({ active: n.column.condition === "is_null" }),
@@ -2332,16 +2332,16 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2332
2332
  W(ss, { class: "intermediate" })
2333
2333
  ])
2334
2334
  ])
2335
- ], 2)) : E("", !0),
2335
+ ], 2)) : F("", !0),
2336
2336
  i.all.hasSubtable ? (m(), b("th", ps, [
2337
- i.all.expandall ? (m(), X(yn, {
2337
+ i.all.expandall ? (m(), Y(yn, {
2338
2338
  key: 0,
2339
2339
  expandedrows: i.expandedrows,
2340
2340
  expandall: i.all.expandall
2341
- }, null, 8, ["expandedrows", "expandall"])) : E("", !0)
2342
- ])) : E("", !0),
2341
+ }, null, 8, ["expandedrows", "expandall"])) : F("", !0)
2342
+ ])) : F("", !0),
2343
2343
  (m(!0), b(B, null, te(i.all.columns, (u, c) => (m(), b(B, null, [
2344
- u.hide ? E("", !0) : (m(), b("th", {
2344
+ u.hide ? F("", !0) : (m(), b("th", {
2345
2345
  key: u.field,
2346
2346
  class: C(["bh-select-none bh-z-[1]", [
2347
2347
  i.all.sortable && u.sort ? "bh-cursor-pointer" : "",
@@ -2379,7 +2379,7 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2379
2379
  ]])
2380
2380
  }, null, 2)
2381
2381
  ]))
2382
- ], 2)) : E("", !0)
2382
+ ], 2)) : F("", !0)
2383
2383
  ], 10, ms),
2384
2384
  i.all.columnFilter && !i.isFooter ? (m(), b(B, { key: 0 }, [
2385
2385
  u.filter ? (m(), b("div", gs, [
@@ -2396,7 +2396,7 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2396
2396
  void 0,
2397
2397
  { trim: !0 }
2398
2398
  ]
2399
- ]) : E("", !0),
2399
+ ]) : F("", !0),
2400
2400
  u.type === "number" ? ne((m(), b("input", {
2401
2401
  key: 1,
2402
2402
  "onUpdate:modelValue": (d) => u.value = d,
@@ -2430,14 +2430,14 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2430
2430
  (...d) => i.isOpenFilter && i.isOpenFilter(...d))
2431
2431
  }, zs, 40, ws)), [
2432
2432
  [Xt, u.value]
2433
- ]) : E("", !0),
2433
+ ]) : F("", !0),
2434
2434
  u.type !== "bool" ? (m(), b("button", {
2435
2435
  key: 4,
2436
2436
  type: "button",
2437
2437
  onClick: re((d) => t("toggleFilterMenu", u), ["stop"])
2438
2438
  }, [
2439
2439
  W(ds, { class: "bh-w-4" })
2440
- ], 8, _s)) : E("", !0),
2440
+ ], 8, _s)) : F("", !0),
2441
2441
  ne(W(Qi, {
2442
2442
  column: u,
2443
2443
  type: u.type,
@@ -2447,18 +2447,18 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2447
2447
  }, null, 8, ["column", "type", "columnFilterLang"]), [
2448
2448
  [Qe, i.isOpenFilter === u.field]
2449
2449
  ])
2450
- ])) : E("", !0)
2451
- ], 64)) : E("", !0)
2450
+ ])) : F("", !0)
2451
+ ], 64)) : F("", !0)
2452
2452
  ], 6))
2453
2453
  ], 64))), 256))
2454
2454
  ]));
2455
2455
  }
2456
- }), Ms = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, Ls = /* @__PURE__ */ v("span", null, "##Top Menu Slot##", -1), Fs = ["onClick"], Es = { class: "bh-checkbox" }, Is = ["value"], Ts = ["innerHTML"], $s = ["onClick"], Os = ["colspan"], Rs = ["colspan"], As = /* @__PURE__ */ v("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Ns = [
2457
- As
2458
- ], Ds = ["colspan"], Bs = {
2456
+ }), Ms = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, Ls = /* @__PURE__ */ v("span", null, "##Top Menu Slot##", -1), Fs = /* @__PURE__ */ v("span", null, "##Table Action Header Slot##", -1), Es = ["onClick"], Ts = { class: "bh-checkbox" }, Is = ["value"], $s = ["innerHTML"], Os = ["onClick"], Rs = ["colspan"], As = ["colspan"], Ns = /* @__PURE__ */ v("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Ds = [
2457
+ Ns
2458
+ ], Bs = ["colspan"], qs = {
2459
2459
  key: 0,
2460
2460
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading"
2461
- }, qs = /* @__PURE__ */ v("g", {
2461
+ }, Hs = /* @__PURE__ */ v("g", {
2462
2462
  fill: "none",
2463
2463
  stroke: "currentColor",
2464
2464
  "stroke-linecap": "round",
@@ -2526,64 +2526,64 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2526
2526
  values: "34;68"
2527
2527
  })
2528
2528
  ])
2529
- ], -1), Hs = [
2530
- qs
2531
- ], js = /* @__PURE__ */ v("span", null, "##Right Menu Slot##", -1), Us = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, Vs = { class: "bh-pagination-info bh-flex bh-items-center" }, Ws = { class: "bh-mr-2" }, Gs = ["value"], Qs = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, Ks = ["innerHTML"], Xs = {
2529
+ ], -1), js = [
2530
+ Hs
2531
+ ], Us = /* @__PURE__ */ v("span", null, "##Right Menu Slot##", -1), Vs = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, Ws = { class: "bh-pagination-info bh-flex bh-items-center" }, Gs = { class: "bh-mr-2" }, Qs = ["value"], Ks = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, Xs = ["innerHTML"], Ys = {
2532
2532
  key: 1,
2533
2533
  "aria-hidden": "true",
2534
2534
  width: "14",
2535
2535
  height: "14",
2536
2536
  viewBox: "0 0 16 16"
2537
- }, Ys = /* @__PURE__ */ v("g", {
2537
+ }, Js = /* @__PURE__ */ v("g", {
2538
2538
  fill: "currentColor",
2539
2539
  "fill-rule": "evenodd"
2540
2540
  }, [
2541
2541
  /* @__PURE__ */ v("path", { d: "M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" }),
2542
2542
  /* @__PURE__ */ v("path", { d: "M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" })
2543
- ], -1), Js = [
2544
- Ys
2545
- ], Zs = ["innerHTML"], el = {
2543
+ ], -1), Zs = [
2544
+ Js
2545
+ ], el = ["innerHTML"], tl = {
2546
2546
  key: 1,
2547
2547
  "aria-hidden": "true",
2548
2548
  width: "14",
2549
2549
  height: "14",
2550
2550
  viewBox: "0 0 16 16"
2551
- }, tl = /* @__PURE__ */ v("path", {
2551
+ }, nl = /* @__PURE__ */ v("path", {
2552
2552
  fill: "currentColor",
2553
2553
  "fill-rule": "evenodd",
2554
2554
  d: "M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"
2555
- }, null, -1), nl = [
2556
- tl
2557
- ], ol = ["onClick"], il = ["innerHTML"], sl = {
2555
+ }, null, -1), ol = [
2556
+ nl
2557
+ ], il = ["onClick"], sl = ["innerHTML"], ll = {
2558
2558
  key: 1,
2559
2559
  "aria-hidden": "true",
2560
2560
  width: "14",
2561
2561
  height: "14",
2562
2562
  viewBox: "0 0 16 16"
2563
- }, ll = /* @__PURE__ */ v("path", {
2563
+ }, rl = /* @__PURE__ */ v("path", {
2564
2564
  fill: "currentColor",
2565
2565
  "fill-rule": "evenodd",
2566
2566
  d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8L4.646 2.354a.5.5 0 0 1 0-.708z"
2567
- }, null, -1), rl = [
2568
- ll
2569
- ], al = ["innerHTML"], ul = {
2567
+ }, null, -1), al = [
2568
+ rl
2569
+ ], ul = ["innerHTML"], cl = {
2570
2570
  key: 1,
2571
2571
  "aria-hidden": "true",
2572
2572
  width: "14",
2573
2573
  height: "14",
2574
2574
  viewBox: "0 0 16 16"
2575
- }, cl = /* @__PURE__ */ v("g", {
2575
+ }, dl = /* @__PURE__ */ v("g", {
2576
2576
  fill: "currentColor",
2577
2577
  "fill-rule": "evenodd"
2578
2578
  }, [
2579
2579
  /* @__PURE__ */ v("path", { d: "M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8L3.646 2.354a.5.5 0 0 1 0-.708z" }),
2580
2580
  /* @__PURE__ */ v("path", { d: "M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8L7.646 2.354a.5.5 0 0 1 0-.708z" })
2581
- ], -1), dl = [
2582
- cl
2583
- ], fl = {
2581
+ ], -1), fl = [
2582
+ dl
2583
+ ], hl = {
2584
2584
  name: "Vue3Datatable"
2585
- }, gl = /* @__PURE__ */ ue({
2586
- ...fl,
2585
+ }, bl = /* @__PURE__ */ ue({
2586
+ ...hl,
2587
2587
  props: {
2588
2588
  loading: { type: Boolean, default: !1 },
2589
2589
  isServerMode: { type: Boolean, default: !1 },
@@ -2639,7 +2639,8 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2639
2639
  topmenumax: {},
2640
2640
  topmenumin: {},
2641
2641
  skeletonloader: { type: Boolean },
2642
- enableloadinganimation: { type: Boolean }
2642
+ enableloadinganimation: { type: Boolean },
2643
+ enablefooterpagination: { type: Boolean }
2643
2644
  },
2644
2645
  emits: [
2645
2646
  "change",
@@ -2694,7 +2695,7 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2694
2695
  return dt();
2695
2696
  }
2696
2697
  });
2697
- const I = (a, ...h) => a.replace(/{(\d+)}/g, (g, T) => typeof h[T] < "u" ? h[T] : g), L = Q(() => {
2698
+ const T = (a, ...h) => a.replace(/{(\d+)}/g, (g, I) => typeof h[I] < "u" ? h[I] : g), L = Q(() => {
2698
2699
  const a = t.columns.find((h) => h.isUnique);
2699
2700
  return (a == null ? void 0 : a.field) || null;
2700
2701
  }), H = Q(() => {
@@ -2712,49 +2713,49 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2712
2713
  (V) => a + V
2713
2714
  );
2714
2715
  }), dt = () => {
2715
- var V, j, J;
2716
+ var V, j, Z;
2716
2717
  let a = t.rows || [];
2717
2718
  if (!t.isServerMode) {
2718
2719
  if ((V = t.columns) == null || V.forEach((f) => {
2719
2720
  f.filter && (f.value !== void 0 && f.value !== null && f.value !== "" || f.condition === "is_null" || f.condition == "is_not_null") && (f.type === "string" ? (f.value && !f.condition && (f.condition = "contain"), f.condition === "contain" ? a = a.filter((S) => {
2720
2721
  var N;
2721
- return (N = F(S, f.field)) == null ? void 0 : N.toString().toLowerCase().includes(f.value.toLowerCase());
2722
+ return (N = E(S, f.field)) == null ? void 0 : N.toString().toLowerCase().includes(f.value.toLowerCase());
2722
2723
  }) : f.condition === "not_contain" ? a = a.filter((S) => {
2723
2724
  var N;
2724
- return !((N = F(S, f.field)) != null && N.toString().toLowerCase().includes(f.value.toLowerCase()));
2725
+ return !((N = E(S, f.field)) != null && N.toString().toLowerCase().includes(f.value.toLowerCase()));
2725
2726
  }) : f.condition === "equal" ? a = a.filter((S) => {
2726
2727
  var N;
2727
- return ((N = F(S, f.field)) == null ? void 0 : N.toString().toLowerCase()) === f.value.toLowerCase();
2728
+ return ((N = E(S, f.field)) == null ? void 0 : N.toString().toLowerCase()) === f.value.toLowerCase();
2728
2729
  }) : f.condition === "not_equal" ? a = a.filter((S) => {
2729
2730
  var N;
2730
- return ((N = F(S, f.field)) == null ? void 0 : N.toString().toLowerCase()) !== f.value.toLowerCase();
2731
+ return ((N = E(S, f.field)) == null ? void 0 : N.toString().toLowerCase()) !== f.value.toLowerCase();
2731
2732
  }) : f.condition == "start_with" ? a = a.filter((S) => {
2732
2733
  var N;
2733
- return ((N = F(S, f.field)) == null ? void 0 : N.toString().toLowerCase().indexOf(f.value.toLowerCase())) === 0;
2734
+ return ((N = E(S, f.field)) == null ? void 0 : N.toString().toLowerCase().indexOf(f.value.toLowerCase())) === 0;
2734
2735
  }) : f.condition == "end_with" && (a = a.filter((S) => {
2735
2736
  var N;
2736
- return ((N = F(S, f.field)) == null ? void 0 : N.toString().toLowerCase().substr(f.value.length * -1)) === f.value.toLowerCase();
2737
- }))) : f.type === "number" ? (f.value && !f.condition && (f.condition = "equal"), f.condition === "equal" ? a = a.filter((S) => F(S, f.field) && parseFloat(F(S, f.field)) === parseFloat(f.value)) : f.condition === "not_equal" ? a = a.filter((S) => F(S, f.field) && parseFloat(F(S, f.field)) !== parseFloat(f.value)) : f.condition === "greater_than" ? a = a.filter((S) => F(S, f.field) && parseFloat(F(S, f.field)) > parseFloat(f.value)) : f.condition === "greater_than_equal" ? a = a.filter((S) => F(S, f.field) && parseFloat(F(S, f.field)) >= parseFloat(f.value)) : f.condition === "less_than" ? a = a.filter((S) => F(S, f.field) && parseFloat(F(S, f.field)) < parseFloat(f.value)) : f.condition === "less_than_equal" && (a = a.filter((S) => F(S, f.field) && parseFloat(F(S, f.field)) <= parseFloat(f.value)))) : f.type === "date" ? (f.value && !f.condition && (f.condition = "equal"), f.condition === "equal" ? a = a.filter((S) => F(S, f.field) && Se(F(S, f.field)) === f.value) : f.condition === "not_equal" ? a = a.filter((S) => F(S, f.field) && Se(F(S, f.field)) !== f.value) : f.condition === "greater_than" ? a = a.filter((S) => F(S, f.field) && Se(F(S, f.field)) > f.value) : f.condition === "less_than" && (a = a.filter((S) => F(S, f.field) && Se(F(S, f.field)) < f.value))) : f.type === "bool" && (a = a.filter((S) => F(S, f.field) === f.value)), f.condition === "is_null" ? (a = a.filter((S) => F(S, f.field) == null || F(S, f.field) == ""), f.value = "") : f.condition === "is_not_null" && (f.value = "", a = a.filter((S) => F(S, f.field))));
2737
+ return ((N = E(S, f.field)) == null ? void 0 : N.toString().toLowerCase().substr(f.value.length * -1)) === f.value.toLowerCase();
2738
+ }))) : f.type === "number" ? (f.value && !f.condition && (f.condition = "equal"), f.condition === "equal" ? a = a.filter((S) => E(S, f.field) && parseFloat(E(S, f.field)) === parseFloat(f.value)) : f.condition === "not_equal" ? a = a.filter((S) => E(S, f.field) && parseFloat(E(S, f.field)) !== parseFloat(f.value)) : f.condition === "greater_than" ? a = a.filter((S) => E(S, f.field) && parseFloat(E(S, f.field)) > parseFloat(f.value)) : f.condition === "greater_than_equal" ? a = a.filter((S) => E(S, f.field) && parseFloat(E(S, f.field)) >= parseFloat(f.value)) : f.condition === "less_than" ? a = a.filter((S) => E(S, f.field) && parseFloat(E(S, f.field)) < parseFloat(f.value)) : f.condition === "less_than_equal" && (a = a.filter((S) => E(S, f.field) && parseFloat(E(S, f.field)) <= parseFloat(f.value)))) : f.type === "date" ? (f.value && !f.condition && (f.condition = "equal"), f.condition === "equal" ? a = a.filter((S) => E(S, f.field) && Se(E(S, f.field)) === f.value) : f.condition === "not_equal" ? a = a.filter((S) => E(S, f.field) && Se(E(S, f.field)) !== f.value) : f.condition === "greater_than" ? a = a.filter((S) => E(S, f.field) && Se(E(S, f.field)) > f.value) : f.condition === "less_than" && (a = a.filter((S) => E(S, f.field) && Se(E(S, f.field)) < f.value))) : f.type === "bool" && (a = a.filter((S) => E(S, f.field) === f.value)), f.condition === "is_null" ? (a = a.filter((S) => E(S, f.field) == null || E(S, f.field) == ""), f.value = "") : f.condition === "is_not_null" && (f.value = "", a = a.filter((S) => E(S, f.field))));
2738
2739
  }), $.value && (a != null && a.length)) {
2739
2740
  let f = [];
2740
2741
  const S = (t.columns || []).filter((N) => N.search && !N.hide).map((N) => N.field);
2741
2742
  for (var h = 0; h < (a == null ? void 0 : a.length); h++)
2742
2743
  for (var g = 0; g < S.length; g++)
2743
- if ((j = F(a[h], S[g])) != null && j.toString().toLowerCase().includes($.value.toLowerCase())) {
2744
+ if ((j = E(a[h], S[g])) != null && j.toString().toLowerCase().includes($.value.toLowerCase())) {
2744
2745
  f.push(a[h]);
2745
2746
  break;
2746
2747
  }
2747
2748
  a = f;
2748
2749
  }
2749
- var T = new Intl.Collator(void 0, {
2750
- numeric: ((J = t.columns.find((f) => f.field == c.value)) == null ? void 0 : J.type) === "number",
2750
+ var I = new Intl.Collator(void 0, {
2751
+ numeric: ((Z = t.columns.find((f) => f.field == c.value)) == null ? void 0 : Z.type) === "number",
2751
2752
  sensitivity: "base"
2752
2753
  });
2753
2754
  const Ln = p.value === "desc" ? -1 : 1;
2754
2755
  a.sort((f, S) => {
2755
2756
  var _t, Pt;
2756
2757
  const N = (_t = c.value) == null ? void 0 : _t.split(".").reduce((se, qe) => se == null ? void 0 : se[qe], f), Fn = (Pt = c.value) == null ? void 0 : Pt.split(".").reduce((se, qe) => se == null ? void 0 : se[qe], S);
2757
- return T.compare(N, Fn) * Ln;
2758
+ return I.compare(N, Fn) * Ln;
2758
2759
  });
2759
2760
  }
2760
2761
  return a;
@@ -2787,37 +2788,37 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2787
2788
  l.value++;
2788
2789
  };
2789
2790
  G(() => l.value, () => {
2790
- Y(!1), t.isServerMode ? ce("page") : (ie(), y("pageChange", l.value));
2791
+ J(!1), t.isServerMode ? ce("page") : (ie(), y("pageChange", l.value));
2791
2792
  }), G(() => t.rows, () => {
2792
- t.isServerMode || (l.value = 1), Y(!1), ie();
2793
+ t.isServerMode || (l.value = 1), J(!1), ie();
2793
2794
  });
2794
2795
  const wn = (a) => {
2795
2796
  r.value = a;
2796
2797
  };
2797
2798
  G(() => r.value, () => {
2798
- Y(!1), t.isServerMode ? l.value === 1 ? ce("pagesize", !0) : l.value = 1 : (l.value = 1, ie(), y("pageSizeChange", r.value));
2799
+ J(!1), t.isServerMode ? l.value === 1 ? ce("pagesize", !0) : l.value = 1 : (l.value = 1, ie(), y("pageSizeChange", r.value));
2799
2800
  });
2800
2801
  const vt = (a) => {
2801
2802
  let h = "asc";
2802
2803
  a == c.value && p.value === "asc" && (h = "desc");
2803
- let g = (l.value - 1) * r.value, T = r.value;
2804
- c.value = a, p.value = h, Y(!1), ie(), t.isServerMode ? ce("sort") : y("sortChange", { offset: g, limit: T, field: a, direction: h });
2804
+ let g = (l.value - 1) * r.value, I = r.value;
2805
+ c.value = a, p.value = h, J(!1), ie(), t.isServerMode ? ce("sort") : y("sortChange", { offset: g, limit: I, field: a, direction: h });
2805
2806
  }, gt = (a) => {
2806
2807
  M.value = a.length && s.value.length && a.length === s.value.length;
2807
2808
  const h = s.value.filter(
2808
- (g, T) => _.value.includes(L.value ? g[L.value] : T)
2809
+ (g, I) => _.value.includes(L.value ? g[L.value] : I)
2809
2810
  );
2810
2811
  y("rowSelect", h);
2811
2812
  };
2812
2813
  G(() => _.value, gt);
2813
- const Y = (a) => {
2814
+ const J = (a) => {
2814
2815
  a ? _.value = s.value.map(
2815
2816
  (h, g) => L.value ? h[L.value] : g
2816
2817
  ) : _.value = [];
2817
2818
  }, bt = () => {
2818
- Y(!1), t.isServerMode ? l.value === 1 ? ce("filter", !0) : l.value = 1 : (l.value = 1, ie(), y("filterChange", t.columns));
2819
+ J(!1), t.isServerMode ? l.value === 1 ? ce("filter", !0) : l.value = 1 : (l.value = 1, ie(), y("filterChange", t.columns));
2819
2820
  }, Sn = () => {
2820
- Y(!1), t.isServerMode ? l.value === 1 ? ce("search", !0) : l.value = 1 : (l.value = 1, ie(), y("searchChange", $.value));
2821
+ J(!1), t.isServerMode ? l.value === 1 ? ce("search", !0) : l.value = 1 : (l.value = 1, ie(), y("searchChange", $.value));
2821
2822
  };
2822
2823
  G(
2823
2824
  () => t.search,
@@ -2825,12 +2826,12 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2825
2826
  $.value = t.search, Sn();
2826
2827
  }
2827
2828
  );
2828
- const F = (a, h) => h == null ? void 0 : h.split(".").reduce((g, T) => g == null ? void 0 : g[T], a), Se = (a) => {
2829
+ const E = (a, h) => h == null ? void 0 : h.split(".").reduce((g, I) => g == null ? void 0 : g[I], a), Se = (a) => {
2829
2830
  try {
2830
2831
  if (!a)
2831
2832
  return "";
2832
- const h = new Date(a), g = h.getDate(), T = h.getMonth() + 1;
2833
- return h.getFullYear() + "-" + (T > 9 ? T : "0" + T) + "-" + (g > 9 ? g : "0" + g);
2833
+ const h = new Date(a), g = h.getDate(), I = h.getMonth() + 1;
2834
+ return h.getFullYear() + "-" + (I > 9 ? I : "0" + I) + "-" + (g > 9 ? g : "0" + g);
2834
2835
  } catch {
2835
2836
  }
2836
2837
  return "";
@@ -2859,7 +2860,7 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2859
2860
  h.filter && (h.value !== void 0 && h.value !== null && h.value !== "" || h.condition === "is_null" || h.condition === "is_not_null") && (h.type === "string" && h.value && !h.condition && (h.condition = "contain"), h.type === "number" && h.value && !h.condition && (h.condition = "equal"), h.type === "date" && h.value && !h.condition && (h.condition = "equal"));
2860
2861
  }
2861
2862
  }, Cn = () => {
2862
- Y(!1);
2863
+ J(!1);
2863
2864
  for (let a = 0; a < t.columns.length; a++)
2864
2865
  t.columns[a] = U[a];
2865
2866
  $.value = "", r.value = u, c.value = d, p.value = k, t.isServerMode ? l.value === 1 ? ce("reset", !0) : l.value = 1 : (l.value = 1, ie());
@@ -2869,20 +2870,20 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2869
2870
  _.value = [];
2870
2871
  }, xt = (a) => {
2871
2872
  if (!ke(a)) {
2872
- const h = s.value.find((g, T) => T === a);
2873
+ const h = s.value.find((g, I) => I === a);
2873
2874
  _.value.push(
2874
2875
  L.value ? h[L.value] : a
2875
2876
  );
2876
2877
  }
2877
2878
  }, wt = (a) => {
2878
2879
  if (ke(a)) {
2879
- const h = s.value.find((g, T) => T === a);
2880
+ const h = s.value.find((g, I) => I === a);
2880
2881
  _.value = _.value.filter(
2881
2882
  (g) => g !== (L.value ? h[L.value] : a)
2882
2883
  );
2883
2884
  }
2884
2885
  }, ke = (a) => {
2885
- const h = s.value.find((g, T) => T === a);
2886
+ const h = s.value.find((g, I) => I === a);
2886
2887
  return h ? _.value.includes(
2887
2888
  L.value ? h[L.value] : a
2888
2889
  ) : !1;
@@ -2913,23 +2914,23 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2913
2914
  class: "default-theme",
2914
2915
  style: K({ height: t.height })
2915
2916
  }, {
2916
- default: Z(() => [
2917
+ default: ee(() => [
2917
2918
  W(D(me), null, {
2918
- default: Z(() => [
2919
+ default: ee(() => [
2919
2920
  W(D(Ue), {
2920
2921
  vertical: "vertical",
2921
2922
  class: "default-theme",
2922
2923
  onResize: h[2] || (h[2] = (g) => Ce.value = g[0].size)
2923
2924
  }, {
2924
- default: Z(() => [
2925
+ default: ee(() => [
2925
2926
  W(D(me), { size: Ce.value }, {
2926
- default: Z(() => [
2927
+ default: ee(() => [
2927
2928
  W(D(Ue), {
2928
2929
  class: "default-theme",
2929
2930
  horizontal: "horizontal"
2930
2931
  }, {
2931
- default: Z(() => [
2932
- a.enabletopmenu ? (m(), X(D(me), {
2932
+ default: ee(() => [
2933
+ a.enabletopmenu ? (m(), Y(D(me), {
2933
2934
  key: 0,
2934
2935
  ref_key: "topmenuel",
2935
2936
  ref: kt,
@@ -2937,15 +2938,18 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2937
2938
  "max-size": a.topmenumax,
2938
2939
  style: K({ "min-height": a.topmenumin + "px" })
2939
2940
  }, {
2940
- default: Z(() => [
2941
- ee(a.$slots, "tabletopmenu", {}, () => [
2941
+ default: ee(() => [
2942
+ X(a.$slots, "tabletopmenu", {}, () => [
2942
2943
  Ls
2943
2944
  ])
2944
2945
  ]),
2945
2946
  _: 3
2946
- }, 8, ["size", "max-size", "style"])) : E("", !0),
2947
+ }, 8, ["size", "max-size", "style"])) : F("", !0),
2947
2948
  W(D(me), { size: Be.value }, {
2948
- default: Z(() => [
2949
+ default: ee(() => [
2950
+ X(a.$slots, "tableactionheader", {}, () => [
2951
+ Fs
2952
+ ]),
2949
2953
  v("div", {
2950
2954
  class: C(t.scrollbarstyle)
2951
2955
  }, [
@@ -2959,7 +2963,7 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2959
2963
  direction: t.scrollbardirection,
2960
2964
  throttleType: "none"
2961
2965
  }, {
2962
- default: Z(() => [
2966
+ default: ee(() => [
2963
2967
  v("div", {
2964
2968
  class: C(["bh-table-responsive", { "bh-min-h-[100px]": w.value }]),
2965
2969
  style: K({ overflow: t.stickyHeader && "inherit" })
@@ -2980,17 +2984,17 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2980
2984
  isOpenFilter: O.value,
2981
2985
  checkAll: M.value,
2982
2986
  columnFilterLang: t.columnFilterLang,
2983
- onSelectAll: Y,
2987
+ onSelectAll: J,
2984
2988
  onSortChange: vt,
2985
2989
  onFilterChange: bt,
2986
2990
  onToggleFilterMenu: ft
2987
2991
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
2988
2992
  ], 2),
2989
2993
  v("tbody", null, [
2990
- (m(!0), b(B, null, te(s.value, (g, T) => {
2994
+ (m(!0), b(B, null, te(s.value, (g, I) => {
2991
2995
  var V;
2992
2996
  return m(), b(B, {
2993
- key: g[L.value] ? g[L.value] : T
2997
+ key: g[L.value] ? g[L.value] : I
2994
2998
  }, [
2995
2999
  z.value ? (m(), b("tr", {
2996
3000
  key: 0,
@@ -2998,7 +3002,7 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
2998
3002
  typeof t.rowClass == "function" ? a.rowClass(g) : t.rowClass,
2999
3003
  t.selectRowOnClick ? "bh-cursor-pointer" : ""
3000
3004
  ]),
3001
- onClick: re((j) => yt(g, T), ["prevent"])
3005
+ onClick: re((j) => yt(g, I), ["prevent"])
3002
3006
  }, [
3003
3007
  t.hasCheckbox ? (m(), b("td", {
3004
3008
  key: 0,
@@ -3006,11 +3010,11 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3006
3010
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3007
3011
  })
3008
3012
  }, [
3009
- v("div", Es, [
3013
+ v("div", Ts, [
3010
3014
  ne(v("input", {
3011
3015
  "onUpdate:modelValue": h[0] || (h[0] = (j) => _.value = j),
3012
3016
  type: "checkbox",
3013
- value: g[L.value] ? g[L.value] : T,
3017
+ value: g[L.value] ? g[L.value] : I,
3014
3018
  onClick: h[1] || (h[1] = re(() => {
3015
3019
  }, ["stop"]))
3016
3020
  }, null, 8, Is), [
@@ -3020,7 +3024,7 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3020
3024
  W(xn, { class: "check" })
3021
3025
  ])
3022
3026
  ])
3023
- ], 2)) : E("", !0),
3027
+ ], 2)) : F("", !0),
3024
3028
  t.hasSubtable ? (m(), b("td", {
3025
3029
  key: 1,
3026
3030
  class: C({
@@ -3031,43 +3035,43 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3031
3035
  item: g,
3032
3036
  expandedrows: he.value
3033
3037
  }, null, 8, ["item", "expandedrows"])
3034
- ], 2)) : E("", !0),
3035
- (m(!0), b(B, null, te(t.columns, (j, J) => (m(), b(B, null, [
3036
- j.hide ? E("", !0) : (m(), b("td", {
3038
+ ], 2)) : F("", !0),
3039
+ (m(!0), b(B, null, te(t.columns, (j, Z) => (m(), b(B, null, [
3040
+ j.hide ? F("", !0) : (m(), b("td", {
3037
3041
  key: j.field,
3038
3042
  class: C([
3039
3043
  typeof t.cellClass == "function" ? a.cellClass(g) : t.cellClass,
3040
- J === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3041
- t.hasCheckbox && J === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3044
+ Z === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3045
+ t.hasCheckbox && Z === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3042
3046
  j.cellClass ? j.cellClass : ""
3043
3047
  ])
3044
3048
  }, [
3045
- D(i)[j.field] ? ee(a.$slots, j.field, {
3049
+ D(i)[j.field] ? X(a.$slots, j.field, {
3046
3050
  key: 0,
3047
3051
  value: g
3048
3052
  }) : j.cellRenderer ? (m(), b("div", {
3049
3053
  key: 1,
3050
3054
  innerHTML: j.cellRenderer(g)
3051
- }, null, 8, Ts)) : (m(), b(B, { key: 2 }, [
3052
- Xe(R(F(g, j.field)), 1)
3055
+ }, null, 8, $s)) : (m(), b(B, { key: 2 }, [
3056
+ Xe(R(E(g, j.field)), 1)
3053
3057
  ], 64))
3054
3058
  ], 2))
3055
3059
  ], 64))), 256))
3056
- ], 10, Fs)) : E("", !0),
3060
+ ], 10, Es)) : F("", !0),
3057
3061
  (V = he.value.find((j) => j.id == g.id)) != null && V.isExpanded && t.hasSubtable ? (m(), b("tr", {
3058
3062
  key: 1,
3059
3063
  class: C([
3060
3064
  typeof t.rowClass == "function" ? a.rowClass(g) : t.rowClass,
3061
3065
  t.selectRowOnClick ? "bh-cursor-pointer" : ""
3062
3066
  ]),
3063
- onClick: re((j) => yt(g, T), ["prevent"])
3067
+ onClick: re((j) => yt(g, I), ["prevent"])
3064
3068
  }, [
3065
3069
  v("td", {
3066
3070
  colspan: t.columns.length + D(de)
3067
3071
  }, [
3068
- ee(a.$slots, "tsub", { value: s.value })
3069
- ], 8, Os)
3070
- ], 10, $s)) : E("", !0)
3072
+ X(a.$slots, "tsub", { value: s.value })
3073
+ ], 8, Rs)
3074
+ ], 10, Os)) : F("", !0)
3071
3075
  ], 64);
3072
3076
  }), 128)),
3073
3077
  !z.value && w.value && a.skeletonloader ? (m(!0), b(B, { key: 0 }, te(t.pageSize, (g) => (m(), b("tr", {
@@ -3077,17 +3081,17 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3077
3081
  v("td", {
3078
3082
  colspan: t.columns.length + D(de),
3079
3083
  class: "!bh-p-0 !bh-border-transparent"
3080
- }, Ns, 8, Rs)
3081
- ]))), 128)) : E("", !0),
3082
- z.value ? (m(!0), b(B, { key: 1 }, te(t.footerRows, (g, T) => (m(), b("tr", {
3083
- key: g[L.value] ? g[L.value] : T
3084
+ }, Ds, 8, As)
3085
+ ]))), 128)) : F("", !0),
3086
+ z.value ? (m(!0), b(B, { key: 1 }, te(t.footerRows, (g, I) => (m(), b("tr", {
3087
+ key: g[L.value] ? g[L.value] : I
3084
3088
  }, [
3085
3089
  D(de) > 0 ? (m(), b("td", {
3086
3090
  key: 0,
3087
3091
  colspan: D(de)
3088
- }, null, 8, Ds)) : E("", !0),
3092
+ }, null, 8, Bs)) : F("", !0),
3089
3093
  (m(!0), b(B, null, te(t.columns, (V, j) => (m(), b(B, null, [
3090
- V.hide ? E("", !0) : (m(), b("td", {
3094
+ V.hide ? F("", !0) : (m(), b("td", {
3091
3095
  key: V.field,
3092
3096
  class: C([
3093
3097
  typeof t.cellClass == "function" ? a.cellClass(g) : t.cellClass,
@@ -3096,12 +3100,12 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3096
3100
  V.cellClass ? V.cellClass : ""
3097
3101
  ])
3098
3102
  }, [
3099
- g.cells.find((J) => J.field == V.field) ? (m(), b(B, { key: 0 }, [
3100
- Xe(R(g.cells.find((J) => J.field == V.field).text), 1)
3101
- ], 64)) : E("", !0)
3103
+ g.cells.find((Z) => Z.field == V.field) ? (m(), b(B, { key: 0 }, [
3104
+ Xe(R(g.cells.find((Z) => Z.field == V.field).text), 1)
3105
+ ], 64)) : F("", !0)
3102
3106
  ], 2))
3103
3107
  ], 64))), 256))
3104
- ]))), 128)) : E("", !0)
3108
+ ]))), 128)) : F("", !0)
3105
3109
  ]),
3106
3110
  t.cloneHeaderInFooter ? (m(), b("tfoot", {
3107
3111
  key: 0,
@@ -3116,22 +3120,22 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3116
3120
  isOpenFilter: O.value,
3117
3121
  isFooter: !0,
3118
3122
  checkAll: M.value,
3119
- onSelectAll: Y,
3123
+ onSelectAll: J,
3120
3124
  onSortChange: vt,
3121
3125
  onFilterChange: bt,
3122
3126
  onToggleFilterMenu: ft
3123
3127
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3124
- ], 2)) : E("", !0)
3128
+ ], 2)) : F("", !0)
3125
3129
  ], 2),
3126
- z.value && w.value && a.enableloadinganimation ? (m(), b("div", Bs, [
3130
+ z.value && w.value && a.enableloadinganimation ? (m(), b("div", qs, [
3127
3131
  (m(), b("svg", {
3128
3132
  key: St.value,
3129
3133
  xmlns: "http://www.w3.org/2000/svg",
3130
3134
  width: "32",
3131
3135
  height: "32",
3132
3136
  viewBox: "0 0 24 24"
3133
- }, Hs))
3134
- ])) : E("", !0)
3137
+ }, js))
3138
+ ])) : F("", !0)
3135
3139
  ], 6),
3136
3140
  !z.value && !w.value ? (m(), b("div", {
3137
3141
  key: 0,
@@ -3140,10 +3144,10 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3140
3144
  height: Number(t.height.replace("px", "")) - 175 + "px"
3141
3145
  })
3142
3146
  }, [
3143
- ee(a.$slots, "nodatacontent", {}, () => [
3147
+ X(a.$slots, "nodatacontent", {}, () => [
3144
3148
  v("span", null, R(t.noDataContent), 1)
3145
3149
  ])
3146
- ], 4)) : E("", !0)
3150
+ ], 4)) : F("", !0)
3147
3151
  ]),
3148
3152
  _: 3
3149
3153
  }, 8, ["style", "autoHide", "fixedThumb", "autoExpand", "direction"])
@@ -3157,19 +3161,19 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3157
3161
  ]),
3158
3162
  _: 3
3159
3163
  }, 8, ["size"]),
3160
- a.enablerightmenu ? (m(), X(D(me), {
3164
+ a.enablerightmenu ? (m(), Y(D(me), {
3161
3165
  key: 0,
3162
3166
  size: 100 - Ce.value,
3163
3167
  "max-size": a.rightmenumax,
3164
3168
  style: K({ "min-width": a.rightmenumin + "px" })
3165
3169
  }, {
3166
- default: Z(() => [
3167
- ee(a.$slots, "tablerightmenu", {}, () => [
3168
- js
3170
+ default: ee(() => [
3171
+ X(a.$slots, "tablerightmenu", {}, () => [
3172
+ Us
3169
3173
  ])
3170
3174
  ]),
3171
3175
  _: 3
3172
- }, 8, ["size", "max-size", "style"])) : E("", !0)
3176
+ }, 8, ["size", "max-size", "style"])) : F("", !0)
3173
3177
  ]),
3174
3178
  _: 3
3175
3179
  })
@@ -3186,8 +3190,9 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3186
3190
  "sticky-footer": t.stickyFooter
3187
3191
  }])
3188
3192
  }, [
3189
- v("div", Us, [
3190
- ee(a.$slots, "footerpageinfo", {
3193
+ v("div", Vs, [
3194
+ a.enablefooterpagination ? X(a.$slots, "footerpageinfo", {
3195
+ key: 0,
3191
3196
  paginationInfo: a.paginationInfo,
3192
3197
  filterRowCount: z.value,
3193
3198
  offset: Ne.value,
@@ -3195,11 +3200,11 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3195
3200
  showPageSize: a.showPageSize,
3196
3201
  pageSizeOptions: a.pageSizeOptions,
3197
3202
  currentPageSize: r.value,
3198
- stringFormat: I,
3203
+ stringFormat: T,
3199
3204
  setPageSize: wn
3200
3205
  }, () => [
3201
- v("div", Vs, [
3202
- v("span", Ws, R(I(
3206
+ v("div", Ws, [
3207
+ v("span", Gs, R(T(
3203
3208
  t.paginationInfo,
3204
3209
  z.value ? Ne.value : 0,
3205
3210
  De.value,
@@ -3213,13 +3218,14 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3213
3218
  (m(!0), b(B, null, te(t.pageSizeOptions, (g) => (m(), b("option", {
3214
3219
  value: g,
3215
3220
  key: g
3216
- }, R(g), 9, Gs))), 128))
3221
+ }, R(g), 9, Qs))), 128))
3217
3222
  ], 512)), [
3218
3223
  [Xt, r.value]
3219
- ]) : E("", !0)
3224
+ ]) : F("", !0)
3220
3225
  ])
3221
- ]),
3222
- ee(a.$slots, "footerpagination", {
3226
+ ]) : F("", !0),
3227
+ a.enablefooterpagination ? X(a.$slots, "footerpagination", {
3228
+ key: 1,
3223
3229
  currentPage: l.value,
3224
3230
  maxPage: H.value,
3225
3231
  paging: ct.value,
@@ -3227,7 +3233,7 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3227
3233
  nextPage: mt,
3228
3234
  previousPage: ht
3229
3235
  }, () => [
3230
- v("div", Qs, [
3236
+ v("div", Ks, [
3231
3237
  t.showFirstPage ? (m(), b("button", {
3232
3238
  key: 0,
3233
3239
  type: "button",
@@ -3237,8 +3243,8 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3237
3243
  t.firstArrow ? (m(), b("span", {
3238
3244
  key: 0,
3239
3245
  innerHTML: t.firstArrow
3240
- }, null, 8, Ks)) : (m(), b("svg", Xs, Js))
3241
- ], 2)) : E("", !0),
3246
+ }, null, 8, Xs)) : (m(), b("svg", Ys, Zs))
3247
+ ], 2)) : F("", !0),
3242
3248
  v("button", {
3243
3249
  type: "button",
3244
3250
  class: C(["bh-page-item previous-page", { disabled: l.value <= 1 }]),
@@ -3247,7 +3253,7 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3247
3253
  t.previousArrow ? (m(), b("span", {
3248
3254
  key: 0,
3249
3255
  innerHTML: t.previousArrow
3250
- }, null, 8, Zs)) : (m(), b("svg", el, nl))
3256
+ }, null, 8, el)) : (m(), b("svg", tl, ol))
3251
3257
  ], 2),
3252
3258
  t.showNumbers ? (m(!0), b(B, { key: 1 }, te(ct.value, (g) => (m(), b("button", {
3253
3259
  key: g,
@@ -3256,8 +3262,8 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3256
3262
  disabled: l.value === g,
3257
3263
  "bh-active": g === l.value
3258
3264
  }]),
3259
- onClick: (T) => pt(g)
3260
- }, R(g), 11, ol))), 128)) : E("", !0),
3265
+ onClick: (I) => pt(g)
3266
+ }, R(g), 11, il))), 128)) : F("", !0),
3261
3267
  v("button", {
3262
3268
  type: "button",
3263
3269
  class: C(["bh-page-item next-page", { disabled: l.value >= H.value }]),
@@ -3266,7 +3272,7 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3266
3272
  t.nextArrow ? (m(), b("span", {
3267
3273
  key: 0,
3268
3274
  innerHTML: t.nextArrow
3269
- }, null, 8, il)) : (m(), b("svg", sl, rl))
3275
+ }, null, 8, sl)) : (m(), b("svg", ll, al))
3270
3276
  ], 2),
3271
3277
  t.showLastPage ? (m(), b("button", {
3272
3278
  key: 2,
@@ -3277,15 +3283,15 @@ const ds = /* @__PURE__ */ Ae(ls, [["render", cs]]), fs = { key: "hdrrow" }, hs
3277
3283
  t.lastArrow ? (m(), b("span", {
3278
3284
  key: 0,
3279
3285
  innerHTML: t.lastArrow
3280
- }, null, 8, al)) : (m(), b("svg", ul, dl))
3281
- ], 2)) : E("", !0)
3286
+ }, null, 8, ul)) : (m(), b("svg", cl, fl))
3287
+ ], 2)) : F("", !0)
3282
3288
  ])
3283
- ])
3289
+ ]) : F("", !0)
3284
3290
  ])
3285
- ], 2)) : E("", !0)
3291
+ ], 2)) : F("", !0)
3286
3292
  ]));
3287
3293
  }
3288
3294
  });
3289
3295
  export {
3290
- gl as default
3296
+ bl as default
3291
3297
  };