@dolusoft/vue3-datatable 1.3.6 → 1.3.8

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,9 +1,9 @@
1
- import { onMounted as we, nextTick as En, getCurrentScope as In, onScopeDispose as Tn, unref as q, getCurrentInstance as Kt, computed as Q, ref as A, watch as G, defineComponent as ue, onBeforeUnmount as $n, openBlock as m, createElementBlock as b, createElementVNode as v, withModifiers as re, normalizeClass as k, toDisplayString as R, Fragment as B, createCommentVNode as F, h as Ge, toRef as On, createBlock as K, createVNode as W, renderList as ee, normalizeStyle as X, createTextVNode as Qe, withDirectives as te, vModelText as He, vModelSelect as Xt, vShow as Ke, useCssVars as Rn, shallowRef as ne, onUnmounted as Xe, setBlockTracking as Mt, mergeProps as An, renderSlot as ie, reactive as Nn, watchEffect as Dn, useSlots as qn, withCtx as Z, vModelCheckbox as Bn } from "vue";
1
+ import { onMounted as we, nextTick as En, getCurrentScope as In, onScopeDispose as Tn, unref as H, getCurrentInstance as Kt, computed as Q, ref as A, watch as G, defineComponent as ue, onBeforeUnmount as $n, openBlock as m, createElementBlock as b, createElementVNode as v, withModifiers as re, normalizeClass as k, toDisplayString as R, Fragment as q, createCommentVNode as F, h as Ge, toRef as On, createBlock as X, createVNode as W, renderList as ee, normalizeStyle as K, createTextVNode as Qe, withDirectives as ne, vModelText as He, vModelSelect as Xt, vShow as Ke, useCssVars as Rn, shallowRef as oe, onUnmounted as Xe, setBlockTracking as Mt, mergeProps as An, renderSlot as te, reactive as Nn, watchEffect as Dn, useSlots as qn, withCtx as Z, vModelCheckbox as Bn } from "vue";
2
2
  function Hn(e) {
3
3
  return In() ? (Tn(e), !0) : !1;
4
4
  }
5
5
  function jn(e) {
6
- return typeof e == "function" ? e() : q(e);
6
+ return typeof e == "function" ? e() : H(e);
7
7
  }
8
8
  const Un = typeof window < "u" && typeof document < "u";
9
9
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -13,7 +13,7 @@ function Vn(e) {
13
13
  function Wn(e, o = !0, n) {
14
14
  Vn() ? we(e, n) : o ? e() : En(e);
15
15
  }
16
- function fe(e) {
16
+ function de(e) {
17
17
  var o;
18
18
  const n = jn(e);
19
19
  return (o = n == null ? void 0 : n.$el) != null ? o : n;
@@ -34,7 +34,7 @@ function Kn(e, o, n = {}) {
34
34
  let s;
35
35
  const l = Qn(() => i && "ResizeObserver" in i), r = () => {
36
36
  s && (s.disconnect(), s = void 0);
37
- }, u = Q(() => Array.isArray(e) ? e.map((p) => fe(p)) : [fe(e)]), c = G(
37
+ }, u = Q(() => Array.isArray(e) ? e.map((p) => de(p)) : [de(e)]), c = G(
38
38
  u,
39
39
  (p) => {
40
40
  if (r(), l.value && i) {
@@ -55,13 +55,13 @@ function Kn(e, o, n = {}) {
55
55
  function Xn(e, o = { width: 0, height: 0 }, n = {}) {
56
56
  const { window: i = Yt, box: t = "content-box" } = n, s = Q(() => {
57
57
  var p, S;
58
- return (S = (p = fe(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : S.includes("svg");
58
+ return (S = (p = de(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : S.includes("svg");
59
59
  }), l = A(o.width), r = A(o.height), { stop: u } = Kn(
60
60
  e,
61
61
  ([p]) => {
62
62
  const S = t === "border-box" ? p.borderBoxSize : t === "content-box" ? p.contentBoxSize : p.devicePixelContentBoxSize;
63
63
  if (i && s.value) {
64
- const z = fe(e);
64
+ const z = de(e);
65
65
  if (z) {
66
66
  const _ = i.getComputedStyle(z);
67
67
  l.value = Number.parseFloat(_.width), r.value = Number.parseFloat(_.height);
@@ -75,11 +75,11 @@ function Xn(e, o = { width: 0, height: 0 }, n = {}) {
75
75
  n
76
76
  );
77
77
  Wn(() => {
78
- const p = fe(e);
78
+ const p = de(e);
79
79
  p && (l.value = "offsetWidth" in p ? p.offsetWidth : o.width, r.value = "offsetHeight" in p ? p.offsetHeight : o.height);
80
80
  });
81
81
  const c = G(
82
- () => fe(e),
82
+ () => de(e),
83
83
  (p) => {
84
84
  l.value = p ? o.width : 0, r.value = p ? o.height : 0;
85
85
  }
@@ -121,7 +121,7 @@ const Yn = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-m
121
121
  class: k({ active: n.column.condition === "" }),
122
122
  onClick: r[0] || (r[0] = (u) => s(""))
123
123
  }, R((n.columnFilterLang && n.columnFilterLang.no_filter) ?? "No filter"), 3),
124
- n.column.type === "string" ? (m(), b(B, { key: 0 }, [
124
+ n.column.type === "string" ? (m(), b(q, { key: 0 }, [
125
125
  v("button", {
126
126
  type: "button",
127
127
  class: k({ active: n.column.condition === "contain" }),
@@ -152,7 +152,7 @@ const Yn = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-m
152
152
  class: k({ active: n.column.condition === "end_with" }),
153
153
  onClick: r[6] || (r[6] = (u) => s("end_with"))
154
154
  }, R((n.columnFilterLang && n.columnFilterLang.end_with) ?? "Ends with"), 3)
155
- ], 64)) : n.column.type === "number" ? (m(), b(B, { key: 1 }, [
155
+ ], 64)) : n.column.type === "number" ? (m(), b(q, { key: 1 }, [
156
156
  v("button", {
157
157
  type: "button",
158
158
  class: k({ active: n.column.condition === "equal" }),
@@ -183,7 +183,7 @@ const Yn = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-m
183
183
  class: k({ active: n.column.condition === "less_than_equal" }),
184
184
  onClick: r[12] || (r[12] = (u) => s("less_than_equal"))
185
185
  }, R((n.columnFilterLang && n.columnFilterLang.less_than_equal) ?? "Less than or equal"), 3)
186
- ], 64)) : n.column.type === "date" ? (m(), b(B, { key: 2 }, [
186
+ ], 64)) : n.column.type === "date" ? (m(), b(q, { key: 2 }, [
187
187
  v("button", {
188
188
  type: "button",
189
189
  class: k({ active: n.column.condition === "equal" }),
@@ -911,7 +911,7 @@ function Xo(e, o, n, i) {
911
911
  return;
912
912
  }
913
913
  if (M) {
914
- d = E, S.length || (l.length ? H() : O());
914
+ d = E, S.length || (l.length ? B() : O());
915
915
  return;
916
916
  }
917
917
  if (_(), $(), !e.random) {
@@ -922,7 +922,7 @@ function Xo(e, o, n, i) {
922
922
  j(E);
923
923
  });
924
924
  }
925
- function H() {
925
+ function B() {
926
926
  if (u !== "pending")
927
927
  return;
928
928
  _();
@@ -944,9 +944,9 @@ function Xo(e, o, n, i) {
944
944
  N(y, E, M);
945
945
  }
946
946
  };
947
- S.push(y), c++, p = setTimeout(H, e.rotate), n(x, o, y.callback);
947
+ S.push(y), c++, p = setTimeout(B, e.rotate), n(x, o, y.callback);
948
948
  }
949
- return setTimeout(H), T;
949
+ return setTimeout(B), T;
950
950
  }
951
951
  function rn(e) {
952
952
  const o = {
@@ -1512,32 +1512,32 @@ const vi = {
1512
1512
  class: "expandbtn",
1513
1513
  onClick: r[0] || (r[0] = (d) => t(l.item.id))
1514
1514
  }, [
1515
- (((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 }, [
1516
- o.expandall ? (m(), b(B, { key: 0 }, [
1517
- s.value ? (m(), K(q(le), {
1515
+ (((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(q, { key: 0 }, [
1516
+ o.expandall ? (m(), b(q, { key: 0 }, [
1517
+ s.value ? (m(), X(H(le), {
1518
1518
  key: 0,
1519
1519
  icon: "fluent:chevron-down-up-16-filled"
1520
- })) : (m(), K(q(le), {
1520
+ })) : (m(), X(H(le), {
1521
1521
  key: 1,
1522
1522
  icon: "mdi:chevron-down"
1523
1523
  }))
1524
- ], 64)) : (m(), K(q(le), {
1524
+ ], 64)) : (m(), X(H(le), {
1525
1525
  key: 1,
1526
1526
  icon: "mdi:chevron-down"
1527
1527
  }))
1528
- ], 64)) : (m(), b(B, { key: 1 }, [
1529
- o.expandall ? (m(), b(B, { key: 0 }, [
1530
- s.value == -1 ? (m(), K(q(le), {
1528
+ ], 64)) : (m(), b(q, { key: 1 }, [
1529
+ o.expandall ? (m(), b(q, { key: 0 }, [
1530
+ s.value == -1 ? (m(), X(H(le), {
1531
1531
  key: 0,
1532
1532
  icon: "ion:chevron-expand"
1533
- })) : s.value == 0 ? (m(), K(q(le), {
1533
+ })) : s.value == 0 ? (m(), X(H(le), {
1534
1534
  key: 1,
1535
1535
  icon: "mdi:chevron-down"
1536
- })) : (m(), K(q(le), {
1536
+ })) : (m(), X(H(le), {
1537
1537
  key: 2,
1538
1538
  icon: "mdi:chevron-right"
1539
1539
  }))
1540
- ], 64)) : (m(), K(q(le), {
1540
+ ], 64)) : (m(), X(H(le), {
1541
1541
  key: 1,
1542
1542
  icon: "mdi:chevron-right"
1543
1543
  }))
@@ -1593,13 +1593,13 @@ const vi = {
1593
1593
  ])
1594
1594
  ], 2)) : F("", !0),
1595
1595
  i.all.hasSubtable ? (m(), b("th", wi, [
1596
- i.all.expandall ? (m(), K(mn, {
1596
+ i.all.expandall ? (m(), X(mn, {
1597
1597
  key: 0,
1598
1598
  expandedrows: i.expandedrows,
1599
1599
  expandall: i.all.expandall
1600
1600
  }, null, 8, ["expandedrows", "expandall"])) : F("", !0)
1601
1601
  ])) : F("", !0),
1602
- (m(!0), b(B, null, ee(i.all.columns, (u, c) => (m(), b(B, null, [
1602
+ (m(!0), b(q, null, ee(i.all.columns, (u, c) => (m(), b(q, null, [
1603
1603
  u.hide ? F("", !0) : (m(), b("th", {
1604
1604
  key: u.field,
1605
1605
  class: k(["bh-select-none bh-z-[1]", [
@@ -1607,7 +1607,7 @@ const vi = {
1607
1607
  c === 0 && i.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
1608
1608
  i.all.hasCheckbox && c === 0 && i.all.stickyFirstColumn ? "bh-left-[52px]" : ""
1609
1609
  ]]),
1610
- style: X({
1610
+ style: K({
1611
1611
  width: u.width,
1612
1612
  "min-width": u.minWidth,
1613
1613
  "max-width": u.maxWidth
@@ -1636,9 +1636,9 @@ const vi = {
1636
1636
  ]))
1637
1637
  ], 2)) : F("", !0)
1638
1638
  ], 10, Si),
1639
- i.all.columnFilter && !i.isFooter ? (m(), b(B, { key: 0 }, [
1639
+ i.all.columnFilter && !i.isFooter ? (m(), b(q, { key: 0 }, [
1640
1640
  u.filter ? (m(), b("div", Ci, [
1641
- u.type === "string" ? te((m(), b("input", {
1641
+ u.type === "string" ? ne((m(), b("input", {
1642
1642
  key: 0,
1643
1643
  "onUpdate:modelValue": (d) => u.value = d,
1644
1644
  type: "text",
@@ -1652,7 +1652,7 @@ const vi = {
1652
1652
  { trim: !0 }
1653
1653
  ]
1654
1654
  ]) : F("", !0),
1655
- u.type === "number" ? te((m(), b("input", {
1655
+ u.type === "number" ? ne((m(), b("input", {
1656
1656
  key: 1,
1657
1657
  "onUpdate:modelValue": (d) => u.value = d,
1658
1658
  type: "number",
@@ -1668,7 +1668,7 @@ const vi = {
1668
1668
  trim: !0
1669
1669
  }
1670
1670
  ]
1671
- ]) : u.type === "date" ? te((m(), b("input", {
1671
+ ]) : u.type === "date" ? ne((m(), b("input", {
1672
1672
  key: 2,
1673
1673
  "onUpdate:modelValue": (d) => u.value = d,
1674
1674
  type: "date",
@@ -1676,7 +1676,7 @@ const vi = {
1676
1676
  onChange: r[3] || (r[3] = (d) => t("filterChange"))
1677
1677
  }, null, 40, Pi)), [
1678
1678
  [He, u.value]
1679
- ]) : u.type === "bool" ? te((m(), b("select", {
1679
+ ]) : u.type === "bool" ? ne((m(), b("select", {
1680
1680
  key: 3,
1681
1681
  "onUpdate:modelValue": (d) => u.value = d,
1682
1682
  class: "bh-form-control",
@@ -1693,7 +1693,7 @@ const vi = {
1693
1693
  }, [
1694
1694
  W(go, { class: "bh-w-4" })
1695
1695
  ], 8, Ti)) : F("", !0),
1696
- te(W(Zn, {
1696
+ ne(W(Zn, {
1697
1697
  column: u,
1698
1698
  type: u.type,
1699
1699
  columnFilterLang: i.columnFilterLang,
@@ -1809,7 +1809,7 @@ function bn(e, o, n) {
1809
1809
  function N() {
1810
1810
  return r === void 0 ? l : O(Ve());
1811
1811
  }
1812
- function H() {
1812
+ function B() {
1813
1813
  var x = Ve(), y = C(x);
1814
1814
  if (i = arguments, t = this, u = x, y) {
1815
1815
  if (r === void 0)
@@ -1819,7 +1819,7 @@ function bn(e, o, n) {
1819
1819
  }
1820
1820
  return r === void 0 && (r = setTimeout(T, o)), l;
1821
1821
  }
1822
- return H.cancel = $, H.flush = N, H;
1822
+ return B.cancel = $, B.flush = N, B;
1823
1823
  }
1824
1824
  var rs = "Expected a function";
1825
1825
  function yn(e, o, n) {
@@ -1846,13 +1846,13 @@ const hs = ["onPointerdown"], ps = {
1846
1846
  function ms(e, { expose: o }) {
1847
1847
  const n = e;
1848
1848
  Rn((y) => ({
1849
- "1fb98f78": q(i)
1849
+ "1fb98f78": H(i)
1850
1850
  }));
1851
1851
  const i = Q(() => {
1852
1852
  var y;
1853
1853
  return `${(y = n.thumbWidth) != null ? y : 12}px`;
1854
1854
  });
1855
- let t = null, s = ne(null);
1855
+ let t = null, s = oe(null);
1856
1856
  const l = { pageX: 0, pageY: 0, scrollPos: 0 };
1857
1857
  let r = null;
1858
1858
  const u = () => {
@@ -1877,16 +1877,16 @@ function ms(e, { expose: o }) {
1877
1877
  c(), s.value && s.value.classList.add("scrollbar__thumbPlaceholder--scrolling"), u();
1878
1878
  }
1879
1879
  });
1880
- let _ = ne(!1), P = ne(!1), C = ne(null), T = null, O = null, $ = Q(() => n.fixedThumb && !P.value);
1881
- const N = ([y]) => P.value = y.isIntersecting, H = ([y]) => _.value = y.isIntersecting, x = () => {
1880
+ let _ = oe(!1), P = oe(!1), C = oe(null), T = null, O = null, $ = Q(() => n.fixedThumb && !P.value);
1881
+ const N = ([y]) => P.value = y.isIntersecting, B = ([y]) => _.value = y.isIntersecting, x = () => {
1882
1882
  T && (T.disconnect(), T = null), O && (O.disconnect(), O = null);
1883
1883
  };
1884
1884
  return G(() => [n.fixedThumb, n.wrapperEl], () => {
1885
1885
  if (!n.fixedThumb || !n.wrapperEl)
1886
1886
  return x();
1887
- x(), O = new IntersectionObserver(H, { threshold: [0, 0.5] }), O.observe(n.wrapperEl), T = new IntersectionObserver(N), T.observe(C.value);
1888
- }), Xe(x), (y, E) => (m(), b(B, null, [
1889
- te(v("div", {
1887
+ x(), O = new IntersectionObserver(B, { threshold: [0, 0.5] }), O.observe(n.wrapperEl), T = new IntersectionObserver(N), T.observe(C.value);
1888
+ }), Xe(x), (y, E) => (m(), b(q, null, [
1889
+ ne(v("div", {
1890
1890
  class: k([
1891
1891
  "scrollbar__thumbPlaceholder",
1892
1892
  `scrollbar__thumbPlaceholder--${e.type}`,
@@ -1895,7 +1895,7 @@ function ms(e, { expose: o }) {
1895
1895
  "scrollbar__thumbPlaceholder--autoExpand": e.autoExpand
1896
1896
  }
1897
1897
  ]),
1898
- style: X({
1898
+ style: K({
1899
1899
  width: e.type === "horizontal" ? `${e.scrollInfo.thumbSize}px` : "",
1900
1900
  height: e.type === "vertical" ? `${e.scrollInfo.thumbSize}px` : "",
1901
1901
  position: $.value ? "fixed" : "absolute",
@@ -1912,7 +1912,7 @@ function ms(e, { expose: o }) {
1912
1912
  ], 46, hs), [
1913
1913
  [Ke, !!e.scrollInfo.thumbSize && (e.fixedThumb ? _.value : !0)]
1914
1914
  ]),
1915
- n.fixedThumb ? te((m(), b("div", {
1915
+ n.fixedThumb ? ne((m(), b("div", {
1916
1916
  key: 0,
1917
1917
  ref: (M, j) => {
1918
1918
  j.shepherdEl = M, C.value = M;
@@ -1943,7 +1943,7 @@ function Qt(...e) {
1943
1943
  const o = "value" in (e == null ? void 0 : e[0]);
1944
1944
  let n;
1945
1945
  o ? n = e == null ? void 0 : e[1] : n = e == null ? void 0 : e[0];
1946
- const { wait: i, type: t, callback: s } = Te(Te({}, gs), n), l = o ? e[0] : ne(null), r = Nn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
1946
+ const { wait: i, type: t, callback: s } = Te(Te({}, gs), n), l = o ? e[0] : oe(null), r = Nn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
1947
1947
  const S = l.value.getBoundingClientRect();
1948
1948
  r.left = S.left, r.top = S.top, r.right = S.right, r.bottom = S.bottom, r.width = S.width, r.height = S.height, r.x = S.x, r.y = S.y, s == null || s();
1949
1949
  };
@@ -1963,21 +1963,21 @@ function ys(e, { expose: o, emit: n }) {
1963
1963
  const i = e, t = {
1964
1964
  horizontal: { el: null, instance: null },
1965
1965
  vertical: { el: null, instance: null }
1966
- }, s = (N, H) => {
1967
- t[H].instance || (t[H].instance = N);
1966
+ }, s = (N, B) => {
1967
+ t[B].instance || (t[B].instance = N);
1968
1968
  };
1969
- let l = ne(null), r = ne(null);
1969
+ let l = oe(null), r = oe(null);
1970
1970
  we(() => {
1971
1971
  var N;
1972
- const H = Array.from((N = l.value.parentElement) == null ? void 0 : N.childNodes);
1972
+ const B = Array.from((N = l.value.parentElement) == null ? void 0 : N.childNodes);
1973
1973
  for (const x in t)
1974
- t[x].el = H.find((y) => {
1974
+ t[x].el = B.find((y) => {
1975
1975
  var E;
1976
1976
  return (E = y == null ? void 0 : y.classList) == null ? void 0 : E.contains(`scrollbar__thumbPlaceholder--${x}`);
1977
1977
  });
1978
1978
  });
1979
1979
  const u = Qt(l, { wait: i.throttleWait, type: i.throttleType, callback: S }), c = Qt(r, { wait: i.throttleWait, type: i.throttleType, callback: S });
1980
- let d = ne(0), p = ne(0);
1980
+ let d = oe(0), p = oe(0);
1981
1981
  function S() {
1982
1982
  d.value = Math.max(l.value.scrollHeight - u.height | 0, 0), p.value = Math.max(l.value.scrollWidth - u.width | 0, 0);
1983
1983
  }
@@ -1998,16 +1998,16 @@ function ys(e, { expose: o, emit: n }) {
1998
1998
  G(() => [p.value, d.value], T);
1999
1999
  const O = (N) => {
2000
2000
  N.stopPropagation();
2001
- const H = l.value.scrollLeft, x = l.value.scrollTop, y = _e(H + ((N == null ? void 0 : N.deltaX) || 0), 0, p.value) | 0, E = _e(x + ((N == null ? void 0 : N.deltaY) || 0), 0, d.value) | 0;
2001
+ const B = l.value.scrollLeft, x = l.value.scrollTop, y = _e(B + ((N == null ? void 0 : N.deltaX) || 0), 0, p.value) | 0, E = _e(x + ((N == null ? void 0 : N.deltaY) || 0), 0, d.value) | 0;
2002
2002
  l.value.scrollLeft = y, l.value.scrollTop = E, p.value && (t.horizontal.el.style.transform = `translate3d(${y / p.value * C.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${E / d.value * P.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: l.value, scrollLeft: y, scrollTop: E });
2003
2003
  }, $ = (N) => {
2004
2004
  i.simulateScroll ? O(N) : T();
2005
2005
  };
2006
2006
  return G(u, () => n("wrapperResize", u)), G(c, () => n("contentResize", c)), o({
2007
2007
  scrollEl: l
2008
- }), (N, H) => (m(), b("div", {
2008
+ }), (N, B) => (m(), b("div", {
2009
2009
  class: k(["scrollbar__wrapper", e.wrapperClass]),
2010
- style: X(e.wrapperStyle)
2010
+ style: K(e.wrapperStyle)
2011
2011
  }, [
2012
2012
  v("div", An({
2013
2013
  ref: (x, y) => {
@@ -2023,12 +2023,12 @@ function ys(e, { expose: o, emit: n }) {
2023
2023
  y.contentEl = x, r.value = x;
2024
2024
  },
2025
2025
  class: k(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
2026
- style: X(e.contentStyle)
2026
+ style: K(e.contentStyle)
2027
2027
  }, [
2028
- ie(N.$slots, "default")
2028
+ te(N.$slots, "default")
2029
2029
  ], 6)
2030
2030
  ], 16),
2031
- (m(), b(B, null, ee(t, (x, y) => W(vs, {
2031
+ (m(), b(q, null, ee(t, (x, y) => W(vs, {
2032
2032
  ref: (E) => s(E, y),
2033
2033
  key: y,
2034
2034
  autoExpand: e.autoExpand,
@@ -2393,17 +2393,17 @@ function ks(e, o, n, i, t, s) {
2393
2393
  return m(), b("div", {
2394
2394
  class: "splitpanes__pane",
2395
2395
  onClick: o[0] || (o[0] = (l) => s.onPaneClick(l, e._.uid)),
2396
- style: X(e.style)
2396
+ style: K(e.style)
2397
2397
  }, [
2398
- ie(e.$slots, "default")
2398
+ te(e.$slots, "default")
2399
2399
  ], 4);
2400
2400
  }
2401
- const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, zs = /* @__PURE__ */ v("span", null, "##Top Menu Slot##", -1), _s = ["onClick"], Ps = { class: "bh-checkbox" }, Ms = ["value"], Ls = ["innerHTML"], Fs = ["onClick"], Es = ["colspan"], Is = { key: 0 }, Ts = ["colspan"], $s = ["colspan"], Os = /* @__PURE__ */ v("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Rs = [
2402
- Os
2403
- ], As = ["colspan"], Ns = {
2401
+ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, zs = /* @__PURE__ */ v("span", null, "##Top Menu Slot##", -1), _s = ["onClick"], Ps = { class: "bh-checkbox" }, Ms = ["value"], Ls = ["innerHTML"], Fs = ["onClick"], Es = ["colspan"], Is = ["colspan"], Ts = /* @__PURE__ */ v("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), $s = [
2402
+ Ts
2403
+ ], Os = ["colspan"], Rs = {
2404
2404
  key: 0,
2405
2405
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading"
2406
- }, Ds = /* @__PURE__ */ v("g", {
2406
+ }, As = /* @__PURE__ */ v("g", {
2407
2407
  fill: "none",
2408
2408
  stroke: "currentColor",
2409
2409
  "stroke-linecap": "round",
@@ -2471,64 +2471,64 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2471
2471
  values: "34;68"
2472
2472
  })
2473
2473
  ])
2474
- ], -1), qs = [
2475
- Ds
2476
- ], Bs = /* @__PURE__ */ v("span", null, "##Right Menu Slot##", -1), Hs = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, js = { class: "bh-pagination-info bh-flex bh-items-center" }, Us = { class: "bh-mr-2" }, Vs = ["value"], Ws = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, Gs = ["innerHTML"], Qs = {
2474
+ ], -1), Ns = [
2475
+ As
2476
+ ], Ds = /* @__PURE__ */ v("span", null, "##Right Menu Slot##", -1), qs = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, Bs = { class: "bh-pagination-info bh-flex bh-items-center" }, Hs = { class: "bh-mr-2" }, js = ["value"], Us = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, Vs = ["innerHTML"], Ws = {
2477
2477
  key: 1,
2478
2478
  "aria-hidden": "true",
2479
2479
  width: "14",
2480
2480
  height: "14",
2481
2481
  viewBox: "0 0 16 16"
2482
- }, Ks = /* @__PURE__ */ v("g", {
2482
+ }, Gs = /* @__PURE__ */ v("g", {
2483
2483
  fill: "currentColor",
2484
2484
  "fill-rule": "evenodd"
2485
2485
  }, [
2486
2486
  /* @__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" }),
2487
2487
  /* @__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" })
2488
- ], -1), Xs = [
2489
- Ks
2490
- ], Ys = ["innerHTML"], Js = {
2488
+ ], -1), Qs = [
2489
+ Gs
2490
+ ], Ks = ["innerHTML"], Xs = {
2491
2491
  key: 1,
2492
2492
  "aria-hidden": "true",
2493
2493
  width: "14",
2494
2494
  height: "14",
2495
2495
  viewBox: "0 0 16 16"
2496
- }, Zs = /* @__PURE__ */ v("path", {
2496
+ }, Ys = /* @__PURE__ */ v("path", {
2497
2497
  fill: "currentColor",
2498
2498
  "fill-rule": "evenodd",
2499
2499
  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"
2500
- }, null, -1), el = [
2501
- Zs
2502
- ], tl = ["onClick"], nl = ["innerHTML"], ol = {
2500
+ }, null, -1), Js = [
2501
+ Ys
2502
+ ], Zs = ["onClick"], el = ["innerHTML"], tl = {
2503
2503
  key: 1,
2504
2504
  "aria-hidden": "true",
2505
2505
  width: "14",
2506
2506
  height: "14",
2507
2507
  viewBox: "0 0 16 16"
2508
- }, il = /* @__PURE__ */ v("path", {
2508
+ }, nl = /* @__PURE__ */ v("path", {
2509
2509
  fill: "currentColor",
2510
2510
  "fill-rule": "evenodd",
2511
2511
  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"
2512
- }, null, -1), sl = [
2513
- il
2514
- ], ll = ["innerHTML"], rl = {
2512
+ }, null, -1), ol = [
2513
+ nl
2514
+ ], il = ["innerHTML"], sl = {
2515
2515
  key: 1,
2516
2516
  "aria-hidden": "true",
2517
2517
  width: "14",
2518
2518
  height: "14",
2519
2519
  viewBox: "0 0 16 16"
2520
- }, al = /* @__PURE__ */ v("g", {
2520
+ }, ll = /* @__PURE__ */ v("g", {
2521
2521
  fill: "currentColor",
2522
2522
  "fill-rule": "evenodd"
2523
2523
  }, [
2524
2524
  /* @__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" }),
2525
2525
  /* @__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" })
2526
- ], -1), ul = [
2527
- al
2528
- ], cl = {
2526
+ ], -1), rl = [
2527
+ ll
2528
+ ], al = {
2529
2529
  name: "Vue3Datatable"
2530
- }, ml = /* @__PURE__ */ ue({
2531
- ...cl,
2530
+ }, hl = /* @__PURE__ */ ue({
2531
+ ...al,
2532
2532
  props: {
2533
2533
  loading: { type: Boolean, default: !1 },
2534
2534
  isServerMode: { type: Boolean, default: !1 },
@@ -2563,7 +2563,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2563
2563
  nextArrow: { default: "" },
2564
2564
  previousArrow: { default: "" },
2565
2565
  paginationInfo: { default: "Showing {0} to {1} of {2} entries" },
2566
- noDataContent: { default: "No data available" },
2566
+ noDataContent: { default: "There is no data that match your query." },
2567
2567
  stickyHeader: { type: Boolean, default: !1 },
2568
2568
  stickyFooter: { type: Boolean, default: !1 },
2569
2569
  height: { default: "500px" },
@@ -2582,7 +2582,9 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2582
2582
  rightmenumin: {},
2583
2583
  topmenusize: {},
2584
2584
  topmenumax: {},
2585
- topmenumin: {}
2585
+ topmenumin: {},
2586
+ skeletonloader: { type: Boolean },
2587
+ enableloadinganimation: { type: Boolean }
2586
2588
  },
2587
2589
  emits: ["change", "sortChange", "searchChange", "pageChange", "pageSizeChange", "rowSelect", "filterChange", "rowClick", "rowDBClick"],
2588
2590
  setup(e, { expose: o, emit: n }) {
@@ -2593,10 +2595,10 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2593
2595
  a.type = h, a.isUnique = a.isUnique !== void 0 ? a.isUnique : !1, a.hide = a.hide !== void 0 ? a.hide : !1, a.filter = a.filter !== void 0 ? a.filter : !0, a.search = a.search !== void 0 ? a.search : !0, a.sort = a.sort !== void 0 ? a.sort : !0, a.html = a.html !== void 0 ? a.html : !1, a.condition = !h || h === "string" ? "contain" : "equal";
2594
2596
  }
2595
2597
  const s = A([]), l = A(t.page), r = A(t.pagination ? t.pageSize : (zt = t.rows) == null ? void 0 : zt.length), u = t.pageSize, c = A(t.sortColumn), d = t.sortColumn, p = A(t.sortDirection), S = t.sortDirection, z = A(t.totalRows), _ = A([]), P = A(null), C = A(t.loading), T = A(t.search), O = JSON.parse(JSON.stringify(t.columns)), $ = A(null), N = A(null);
2596
- let H = A(0);
2598
+ let B = A(0);
2597
2599
  const x = A(230);
2598
2600
  we(() => {
2599
- oe();
2601
+ ie();
2600
2602
  });
2601
2603
  const y = n;
2602
2604
  o({
@@ -2684,10 +2686,10 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2684
2686
  });
2685
2687
  }
2686
2688
  return a;
2687
- }, he = A([]), oe = () => {
2689
+ }, fe = A([]), ie = () => {
2688
2690
  let a = [], h = dt();
2689
2691
  t.isServerMode ? (z.value = t.totalRows || 0, a = h) : (z.value = (h == null ? void 0 : h.length) || 0, a = h.slice(Ne.value - 1, De.value)), t.hasSubtable && a.forEach(function(g) {
2690
- g.isExpanded != null && (he.value.find((V) => V.id == g.id) || he.value.push({ id: g.id, isExpanded: g.isExpanded }));
2692
+ g.isExpanded != null && (fe.value.find((V) => V.id == g.id) || fe.value.push({ id: g.id, isExpanded: g.isExpanded }));
2691
2693
  }), s.value = a || [];
2692
2694
  };
2693
2695
  G(
@@ -2710,21 +2712,21 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2710
2712
  l.value++;
2711
2713
  };
2712
2714
  G(() => l.value, () => {
2713
- Y(!1), t.isServerMode ? ce("page") : (oe(), y("pageChange", l.value));
2715
+ Y(!1), t.isServerMode ? ce("page") : (ie(), y("pageChange", l.value));
2714
2716
  }), G(() => t.rows, () => {
2715
- t.isServerMode || (l.value = 1), Y(!1), oe();
2717
+ t.isServerMode || (l.value = 1), Y(!1), ie();
2716
2718
  });
2717
2719
  const wn = (a) => {
2718
2720
  r.value = a;
2719
2721
  };
2720
2722
  G(() => r.value, () => {
2721
- Y(!1), t.isServerMode ? l.value === 1 ? ce("pagesize", !0) : l.value = 1 : (l.value = 1, oe(), y("pageSizeChange", r.value));
2723
+ Y(!1), t.isServerMode ? l.value === 1 ? ce("pagesize", !0) : l.value = 1 : (l.value = 1, ie(), y("pageSizeChange", r.value));
2722
2724
  });
2723
2725
  const vt = (a) => {
2724
2726
  let h = "asc";
2725
2727
  a == c.value && p.value === "asc" && (h = "desc");
2726
2728
  let g = (l.value - 1) * r.value, I = r.value;
2727
- c.value = a, p.value = h, Y(!1), oe(), t.isServerMode ? ce("sort") : y("sortChange", { offset: g, limit: I, field: a, direction: h });
2729
+ c.value = a, p.value = h, Y(!1), ie(), t.isServerMode ? ce("sort") : y("sortChange", { offset: g, limit: I, field: a, direction: h });
2728
2730
  }, gt = (a) => {
2729
2731
  P.value = a.length && s.value.length && a.length === s.value.length;
2730
2732
  const h = s.value.filter((g, I) => _.value.includes(M.value ? g[M.value] : I));
@@ -2734,9 +2736,9 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2734
2736
  const Y = (a) => {
2735
2737
  a ? _.value = s.value.map((h, g) => M.value ? h[M.value] : g) : _.value = [];
2736
2738
  }, bt = () => {
2737
- Y(!1), t.isServerMode ? l.value === 1 ? ce("filter", !0) : l.value = 1 : (l.value = 1, oe(), y("filterChange", t.columns));
2739
+ Y(!1), t.isServerMode ? l.value === 1 ? ce("filter", !0) : l.value = 1 : (l.value = 1, ie(), y("filterChange", t.columns));
2738
2740
  }, Sn = () => {
2739
- Y(!1), t.isServerMode ? l.value === 1 ? ce("search", !0) : l.value = 1 : (l.value = 1, oe(), y("searchChange", T.value));
2741
+ Y(!1), t.isServerMode ? l.value === 1 ? ce("search", !0) : l.value = 1 : (l.value = 1, ie(), y("searchChange", T.value));
2740
2742
  };
2741
2743
  G(
2742
2744
  () => t.search,
@@ -2754,9 +2756,9 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2754
2756
  }
2755
2757
  return "";
2756
2758
  }, yt = (a, h) => {
2757
- H.value++, H.value === 1 ? N.value = setTimeout(() => {
2758
- H.value = 0, t.selectRowOnClick && (ke(h) ? wt(h) : xt(h), gt(_.value)), y("rowClick", a);
2759
- }, x.value) : H.value === 2 && (clearTimeout(N.value), H.value = 0, y("rowDBClick", a));
2759
+ B.value++, B.value === 1 ? N.value = setTimeout(() => {
2760
+ B.value = 0, t.selectRowOnClick && (ke(h) ? wt(h) : xt(h), gt(_.value)), y("rowClick", a);
2761
+ }, x.value) : B.value === 2 && (clearTimeout(N.value), B.value = 0, y("rowDBClick", a));
2760
2762
  }, ce = (a, h = !1) => {
2761
2763
  if (t.isServerMode) {
2762
2764
  kn();
@@ -2781,7 +2783,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2781
2783
  Y(!1);
2782
2784
  for (let a = 0; a < t.columns.length; a++)
2783
2785
  t.columns[a] = O[a];
2784
- T.value = "", r.value = u, c.value = d, p.value = S, t.isServerMode ? l.value === 1 ? ce("reset", !0) : l.value = 1 : (l.value = 1, oe());
2786
+ T.value = "", r.value = u, c.value = d, p.value = S, t.isServerMode ? l.value === 1 ? ce("reset", !0) : l.value = 1 : (l.value = 1, ie());
2785
2787
  }, zn = () => s.value.filter((h, g) => _.value.includes(M.value ? h[M.value] : g)), _n = () => t.columns, Pn = () => {
2786
2788
  _.value = [];
2787
2789
  }, xt = (a) => {
@@ -2798,8 +2800,8 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2798
2800
  const h = s.value.find((g, I) => I === a);
2799
2801
  return h ? _.value.includes(M.value ? h[M.value] : a) : !1;
2800
2802
  };
2801
- let de = 0;
2802
- t.hasCheckbox && de++, t.hasSubtable && de++;
2803
+ let he = 0;
2804
+ t.hasCheckbox && he++, t.hasSubtable && he++;
2803
2805
  const St = A(0);
2804
2806
  setInterval(function() {
2805
2807
  St.value++;
@@ -2820,48 +2822,48 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2820
2822
  );
2821
2823
  const kt = A(null), Mn = Xn(kt).height;
2822
2824
  return (a, h) => (m(), b("div", Cs, [
2823
- W(q(We), {
2825
+ W(H(We), {
2824
2826
  class: "default-theme",
2825
- style: X({ height: t.height })
2827
+ style: K({ height: t.height })
2826
2828
  }, {
2827
2829
  default: Z(() => [
2828
- W(q(ve), null, {
2830
+ W(H(ve), null, {
2829
2831
  default: Z(() => [
2830
- W(q(We), {
2832
+ W(H(We), {
2831
2833
  vertical: "vertical",
2832
2834
  class: "default-theme",
2833
2835
  onResize: h[2] || (h[2] = (g) => Ce.value = g[0].size)
2834
2836
  }, {
2835
2837
  default: Z(() => [
2836
- W(q(ve), { size: Ce.value }, {
2838
+ W(H(ve), { size: Ce.value }, {
2837
2839
  default: Z(() => [
2838
- W(q(We), {
2840
+ W(H(We), {
2839
2841
  class: "default-theme",
2840
2842
  horizontal: "horizontal"
2841
2843
  }, {
2842
2844
  default: Z(() => [
2843
- a.enabletopmenu ? (m(), K(q(ve), {
2845
+ a.enabletopmenu ? (m(), X(H(ve), {
2844
2846
  key: 0,
2845
2847
  ref_key: "topmenuel",
2846
2848
  ref: kt,
2847
2849
  size: 100 - qe.value,
2848
2850
  "max-size": a.topmenumax,
2849
- style: X({ "min-height": a.topmenumin + "px" })
2851
+ style: K({ "min-height": a.topmenumin + "px" })
2850
2852
  }, {
2851
2853
  default: Z(() => [
2852
- ie(a.$slots, "tabletopmenu", {}, () => [
2854
+ te(a.$slots, "tabletopmenu", {}, () => [
2853
2855
  zs
2854
2856
  ])
2855
2857
  ]),
2856
2858
  _: 3
2857
2859
  }, 8, ["size", "max-size", "style"])) : F("", !0),
2858
- W(q(ve), { size: qe.value }, {
2860
+ W(H(ve), { size: qe.value }, {
2859
2861
  default: Z(() => [
2860
2862
  v("div", {
2861
2863
  class: k(t.scrollbarstyle)
2862
2864
  }, [
2863
- W(q(xs), {
2864
- style: X({ height: t.stickyHeader && Number(t.height.replace("px", "")) - q(Mn) + "px" }),
2865
+ W(H(xs), {
2866
+ style: K({ height: t.stickyHeader && Number(t.height.replace("px", "")) - H(Mn) + "px" }),
2865
2867
  autoHide: t.scrollbarautohide,
2866
2868
  fixedThumb: t.scrollbarfixedthumb,
2867
2869
  autoExpand: t.scrollbarautoexpand,
@@ -2871,7 +2873,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2871
2873
  default: Z(() => [
2872
2874
  v("div", {
2873
2875
  class: k(["bh-table-responsive", { "bh-min-h-[100px]": C.value }]),
2874
- style: X({ overflow: t.stickyHeader && "inherit" })
2876
+ style: K({ overflow: t.stickyHeader && "inherit" })
2875
2877
  }, [
2876
2878
  v("table", {
2877
2879
  class: k([t.skin])
@@ -2881,7 +2883,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2881
2883
  }, [
2882
2884
  W(jt, {
2883
2885
  all: t,
2884
- expandedrows: he.value,
2886
+ expandedrows: fe.value,
2885
2887
  currentSortColumn: c.value,
2886
2888
  currentSortDirection: p.value,
2887
2889
  isOpenFilter: $.value,
@@ -2894,9 +2896,9 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2894
2896
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
2895
2897
  ], 2),
2896
2898
  v("tbody", null, [
2897
- (m(!0), b(B, null, ee(s.value, (g, I) => {
2899
+ (m(!0), b(q, null, ee(s.value, (g, I) => {
2898
2900
  var V;
2899
- return m(), b(B, {
2901
+ return m(), b(q, {
2900
2902
  key: g[M.value] ? g[M.value] : I
2901
2903
  }, [
2902
2904
  z.value ? (m(), b("tr", {
@@ -2914,7 +2916,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2914
2916
  })
2915
2917
  }, [
2916
2918
  v("div", Ps, [
2917
- te(v("input", {
2919
+ ne(v("input", {
2918
2920
  "onUpdate:modelValue": h[0] || (h[0] = (U) => _.value = U),
2919
2921
  type: "checkbox",
2920
2922
  value: g[M.value] ? g[M.value] : I,
@@ -2936,10 +2938,10 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2936
2938
  }, [
2937
2939
  W(mn, {
2938
2940
  item: g,
2939
- expandedrows: he.value
2941
+ expandedrows: fe.value
2940
2942
  }, null, 8, ["item", "expandedrows"])
2941
2943
  ], 2)) : F("", !0),
2942
- (m(!0), b(B, null, ee(t.columns, (U, J) => (m(), b(B, null, [
2944
+ (m(!0), b(q, null, ee(t.columns, (U, J) => (m(), b(q, null, [
2943
2945
  U.hide ? F("", !0) : (m(), b("td", {
2944
2946
  key: U.field,
2945
2947
  class: k([
@@ -2949,19 +2951,19 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2949
2951
  U.cellClass ? U.cellClass : ""
2950
2952
  ])
2951
2953
  }, [
2952
- q(i)[U.field] ? ie(a.$slots, U.field, {
2954
+ H(i)[U.field] ? te(a.$slots, U.field, {
2953
2955
  key: 0,
2954
2956
  value: g
2955
2957
  }) : U.cellRenderer ? (m(), b("div", {
2956
2958
  key: 1,
2957
2959
  innerHTML: U.cellRenderer(g)
2958
- }, null, 8, Ls)) : (m(), b(B, { key: 2 }, [
2960
+ }, null, 8, Ls)) : (m(), b(q, { key: 2 }, [
2959
2961
  Qe(R(L(g, U.field)), 1)
2960
2962
  ], 64))
2961
2963
  ], 2))
2962
2964
  ], 64))), 256))
2963
2965
  ], 10, _s)) : F("", !0),
2964
- (V = he.value.find((U) => U.id == g.id)) != null && V.isExpanded && t.hasSubtable ? (m(), b("tr", {
2966
+ (V = fe.value.find((U) => U.id == g.id)) != null && V.isExpanded && t.hasSubtable ? (m(), b("tr", {
2965
2967
  key: 1,
2966
2968
  class: k([
2967
2969
  typeof t.rowClass == "function" ? a.rowClass(g) : t.rowClass,
@@ -2970,32 +2972,27 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2970
2972
  onClick: re((U) => yt(g, I), ["prevent"])
2971
2973
  }, [
2972
2974
  v("td", {
2973
- colspan: t.columns.length + q(de)
2975
+ colspan: t.columns.length + H(he)
2974
2976
  }, [
2975
- ie(a.$slots, "tsub", { value: s.value })
2977
+ te(a.$slots, "tsub", { value: s.value })
2976
2978
  ], 8, Es)
2977
2979
  ], 10, Fs)) : F("", !0)
2978
2980
  ], 64);
2979
2981
  }), 128)),
2980
- !z.value && !C.value ? (m(), b("tr", Is, [
2981
- v("td", {
2982
- colspan: t.columns.length + q(de)
2983
- }, R(t.noDataContent), 9, Ts)
2984
- ])) : F("", !0),
2985
- !z.value && C.value ? (m(!0), b(B, { key: 1 }, ee(t.pageSize, (g) => (m(), b("tr", {
2982
+ !z.value && C.value && a.skeletonloader ? (m(!0), b(q, { key: 0 }, ee(t.pageSize, (g) => (m(), b("tr", {
2986
2983
  key: g,
2987
2984
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
2988
2985
  }, [
2989
2986
  v("td", {
2990
- colspan: t.columns.length + q(de),
2987
+ colspan: t.columns.length + H(he),
2991
2988
  class: "!bh-p-0 !bh-border-transparent"
2992
- }, Rs, 8, $s)
2989
+ }, $s, 8, Is)
2993
2990
  ]))), 128)) : F("", !0),
2994
- z.value ? (m(!0), b(B, { key: 2 }, ee(t.footerRows, (g, I) => (m(), b("tr", {
2991
+ z.value ? (m(!0), b(q, { key: 1 }, ee(t.footerRows, (g, I) => (m(), b("tr", {
2995
2992
  key: g[M.value] ? g[M.value] : I
2996
2993
  }, [
2997
- v("td", { colspan: q(de) }, null, 8, As),
2998
- (m(!0), b(B, null, ee(t.columns, (V, U) => (m(), b(B, null, [
2994
+ v("td", { colspan: H(he) }, null, 8, Os),
2995
+ (m(!0), b(q, null, ee(t.columns, (V, U) => (m(), b(q, null, [
2999
2996
  V.hide ? F("", !0) : (m(), b("td", {
3000
2997
  key: V.field,
3001
2998
  class: k([
@@ -3005,7 +3002,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3005
3002
  V.cellClass ? V.cellClass : ""
3006
3003
  ])
3007
3004
  }, [
3008
- g.cells.find((J) => J.field == V.field) ? (m(), b(B, { key: 0 }, [
3005
+ g.cells.find((J) => J.field == V.field) ? (m(), b(q, { key: 0 }, [
3009
3006
  Qe(R(g.cells.find((J) => J.field == V.field).text), 1)
3010
3007
  ], 64)) : F("", !0)
3011
3008
  ], 2))
@@ -3030,16 +3027,25 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3030
3027
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3031
3028
  ], 2)) : F("", !0)
3032
3029
  ], 2),
3033
- z.value && C.value ? (m(), b("div", Ns, [
3030
+ z.value && C.value && a.enableloadinganimation ? (m(), b("div", Rs, [
3034
3031
  (m(), b("svg", {
3035
3032
  key: St.value,
3036
3033
  xmlns: "http://www.w3.org/2000/svg",
3037
3034
  width: "32",
3038
3035
  height: "32",
3039
3036
  viewBox: "0 0 24 24"
3040
- }, qs))
3037
+ }, Ns))
3041
3038
  ])) : F("", !0)
3042
- ], 6)
3039
+ ], 6),
3040
+ !z.value && !C.value ? (m(), b("div", {
3041
+ key: 0,
3042
+ class: "nodatacontent",
3043
+ style: K({ height: Number(t.height.replace("px", "")) - 175 + "px" })
3044
+ }, [
3045
+ te(a.$slots, "nodatacontent", {}, () => [
3046
+ v("span", null, R(t.noDataContent), 1)
3047
+ ])
3048
+ ], 4)) : F("", !0)
3043
3049
  ]),
3044
3050
  _: 3
3045
3051
  }, 8, ["style", "autoHide", "fixedThumb", "autoExpand", "direction"])
@@ -3053,15 +3059,15 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3053
3059
  ]),
3054
3060
  _: 3
3055
3061
  }, 8, ["size"]),
3056
- a.enablerightmenu ? (m(), K(q(ve), {
3062
+ a.enablerightmenu ? (m(), X(H(ve), {
3057
3063
  key: 0,
3058
3064
  size: 100 - Ce.value,
3059
3065
  "max-size": a.rightmenumax,
3060
- style: X({ "min-width": a.rightmenumin + "px" })
3066
+ style: K({ "min-width": a.rightmenumin + "px" })
3061
3067
  }, {
3062
3068
  default: Z(() => [
3063
- ie(a.$slots, "tablerightmenu", {}, () => [
3064
- Bs
3069
+ te(a.$slots, "tablerightmenu", {}, () => [
3070
+ Ds
3065
3071
  ])
3066
3072
  ]),
3067
3073
  _: 3
@@ -3079,8 +3085,8 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3079
3085
  key: 0,
3080
3086
  class: k(["bh-pagination", { "bh-pointer-events-none": C.value, "sticky-footer": t.stickyFooter }])
3081
3087
  }, [
3082
- v("div", Hs, [
3083
- ie(a.$slots, "footerpageinfo", {
3088
+ v("div", qs, [
3089
+ te(a.$slots, "footerpageinfo", {
3084
3090
  paginationInfo: a.paginationInfo,
3085
3091
  filterRowCount: z.value,
3086
3092
  offset: Ne.value,
@@ -3091,23 +3097,23 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3091
3097
  stringFormat: E,
3092
3098
  setPageSize: wn
3093
3099
  }, () => [
3094
- v("div", js, [
3095
- v("span", Us, R(E(t.paginationInfo, z.value ? Ne.value : 0, De.value, z.value)), 1),
3096
- t.showPageSize ? te((m(), b("select", {
3100
+ v("div", Bs, [
3101
+ v("span", Hs, R(E(t.paginationInfo, z.value ? Ne.value : 0, De.value, z.value)), 1),
3102
+ t.showPageSize ? ne((m(), b("select", {
3097
3103
  key: 0,
3098
3104
  "onUpdate:modelValue": h[3] || (h[3] = (g) => r.value = g),
3099
3105
  class: "bh-pagesize"
3100
3106
  }, [
3101
- (m(!0), b(B, null, ee(t.pageSizeOptions, (g) => (m(), b("option", {
3107
+ (m(!0), b(q, null, ee(t.pageSizeOptions, (g) => (m(), b("option", {
3102
3108
  value: g,
3103
3109
  key: g
3104
- }, R(g), 9, Vs))), 128))
3110
+ }, R(g), 9, js))), 128))
3105
3111
  ], 512)), [
3106
3112
  [Xt, r.value]
3107
3113
  ]) : F("", !0)
3108
3114
  ])
3109
3115
  ]),
3110
- ie(a.$slots, "footerpagination", {
3116
+ te(a.$slots, "footerpagination", {
3111
3117
  currentPage: l.value,
3112
3118
  maxPage: j.value,
3113
3119
  paging: ct.value,
@@ -3115,7 +3121,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3115
3121
  nextPage: mt,
3116
3122
  previousPage: ht
3117
3123
  }, () => [
3118
- v("div", Ws, [
3124
+ v("div", Us, [
3119
3125
  t.showFirstPage ? (m(), b("button", {
3120
3126
  key: 0,
3121
3127
  type: "button",
@@ -3125,7 +3131,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3125
3131
  t.firstArrow ? (m(), b("span", {
3126
3132
  key: 0,
3127
3133
  innerHTML: t.firstArrow
3128
- }, null, 8, Gs)) : (m(), b("svg", Qs, Xs))
3134
+ }, null, 8, Vs)) : (m(), b("svg", Ws, Qs))
3129
3135
  ], 2)) : F("", !0),
3130
3136
  v("button", {
3131
3137
  type: "button",
@@ -3135,9 +3141,9 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3135
3141
  t.previousArrow ? (m(), b("span", {
3136
3142
  key: 0,
3137
3143
  innerHTML: t.previousArrow
3138
- }, null, 8, Ys)) : (m(), b("svg", Js, el))
3144
+ }, null, 8, Ks)) : (m(), b("svg", Xs, Js))
3139
3145
  ], 2),
3140
- t.showNumbers ? (m(!0), b(B, { key: 1 }, ee(ct.value, (g) => (m(), b("button", {
3146
+ t.showNumbers ? (m(!0), b(q, { key: 1 }, ee(ct.value, (g) => (m(), b("button", {
3141
3147
  key: g,
3142
3148
  type: "button",
3143
3149
  class: k(["bh-page-item", {
@@ -3145,7 +3151,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3145
3151
  "bh-active": g === l.value
3146
3152
  }]),
3147
3153
  onClick: (I) => pt(g)
3148
- }, R(g), 11, tl))), 128)) : F("", !0),
3154
+ }, R(g), 11, Zs))), 128)) : F("", !0),
3149
3155
  v("button", {
3150
3156
  type: "button",
3151
3157
  class: k(["bh-page-item next-page", { disabled: l.value >= j.value }]),
@@ -3154,7 +3160,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3154
3160
  t.nextArrow ? (m(), b("span", {
3155
3161
  key: 0,
3156
3162
  innerHTML: t.nextArrow
3157
- }, null, 8, nl)) : (m(), b("svg", ol, sl))
3163
+ }, null, 8, el)) : (m(), b("svg", tl, ol))
3158
3164
  ], 2),
3159
3165
  t.showLastPage ? (m(), b("button", {
3160
3166
  key: 2,
@@ -3165,7 +3171,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3165
3171
  t.lastArrow ? (m(), b("span", {
3166
3172
  key: 0,
3167
3173
  innerHTML: t.lastArrow
3168
- }, null, 8, ll)) : (m(), b("svg", rl, ul))
3174
+ }, null, 8, il)) : (m(), b("svg", sl, rl))
3169
3175
  ], 2)) : F("", !0)
3170
3176
  ])
3171
3177
  ])
@@ -3175,5 +3181,5 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3175
3181
  }
3176
3182
  });
3177
3183
  export {
3178
- ml as default
3184
+ hl as default
3179
3185
  };