@dolusoft/vue3-datatable 1.3.6 → 1.3.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,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,8 @@ 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 }
2586
2587
  },
2587
2588
  emits: ["change", "sortChange", "searchChange", "pageChange", "pageSizeChange", "rowSelect", "filterChange", "rowClick", "rowDBClick"],
2588
2589
  setup(e, { expose: o, emit: n }) {
@@ -2593,10 +2594,10 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2593
2594
  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
2595
  }
2595
2596
  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);
2597
+ let B = A(0);
2597
2598
  const x = A(230);
2598
2599
  we(() => {
2599
- oe();
2600
+ ie();
2600
2601
  });
2601
2602
  const y = n;
2602
2603
  o({
@@ -2684,10 +2685,10 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2684
2685
  });
2685
2686
  }
2686
2687
  return a;
2687
- }, he = A([]), oe = () => {
2688
+ }, fe = A([]), ie = () => {
2688
2689
  let a = [], h = dt();
2689
2690
  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 }));
2691
+ g.isExpanded != null && (fe.value.find((V) => V.id == g.id) || fe.value.push({ id: g.id, isExpanded: g.isExpanded }));
2691
2692
  }), s.value = a || [];
2692
2693
  };
2693
2694
  G(
@@ -2710,21 +2711,21 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2710
2711
  l.value++;
2711
2712
  };
2712
2713
  G(() => l.value, () => {
2713
- Y(!1), t.isServerMode ? ce("page") : (oe(), y("pageChange", l.value));
2714
+ Y(!1), t.isServerMode ? ce("page") : (ie(), y("pageChange", l.value));
2714
2715
  }), G(() => t.rows, () => {
2715
- t.isServerMode || (l.value = 1), Y(!1), oe();
2716
+ t.isServerMode || (l.value = 1), Y(!1), ie();
2716
2717
  });
2717
2718
  const wn = (a) => {
2718
2719
  r.value = a;
2719
2720
  };
2720
2721
  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));
2722
+ Y(!1), t.isServerMode ? l.value === 1 ? ce("pagesize", !0) : l.value = 1 : (l.value = 1, ie(), y("pageSizeChange", r.value));
2722
2723
  });
2723
2724
  const vt = (a) => {
2724
2725
  let h = "asc";
2725
2726
  a == c.value && p.value === "asc" && (h = "desc");
2726
2727
  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 });
2728
+ c.value = a, p.value = h, Y(!1), ie(), t.isServerMode ? ce("sort") : y("sortChange", { offset: g, limit: I, field: a, direction: h });
2728
2729
  }, gt = (a) => {
2729
2730
  P.value = a.length && s.value.length && a.length === s.value.length;
2730
2731
  const h = s.value.filter((g, I) => _.value.includes(M.value ? g[M.value] : I));
@@ -2734,9 +2735,9 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2734
2735
  const Y = (a) => {
2735
2736
  a ? _.value = s.value.map((h, g) => M.value ? h[M.value] : g) : _.value = [];
2736
2737
  }, bt = () => {
2737
- Y(!1), t.isServerMode ? l.value === 1 ? ce("filter", !0) : l.value = 1 : (l.value = 1, oe(), y("filterChange", t.columns));
2738
+ Y(!1), t.isServerMode ? l.value === 1 ? ce("filter", !0) : l.value = 1 : (l.value = 1, ie(), y("filterChange", t.columns));
2738
2739
  }, Sn = () => {
2739
- Y(!1), t.isServerMode ? l.value === 1 ? ce("search", !0) : l.value = 1 : (l.value = 1, oe(), y("searchChange", T.value));
2740
+ Y(!1), t.isServerMode ? l.value === 1 ? ce("search", !0) : l.value = 1 : (l.value = 1, ie(), y("searchChange", T.value));
2740
2741
  };
2741
2742
  G(
2742
2743
  () => t.search,
@@ -2754,9 +2755,9 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2754
2755
  }
2755
2756
  return "";
2756
2757
  }, 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));
2758
+ B.value++, B.value === 1 ? N.value = setTimeout(() => {
2759
+ B.value = 0, t.selectRowOnClick && (ke(h) ? wt(h) : xt(h), gt(_.value)), y("rowClick", a);
2760
+ }, x.value) : B.value === 2 && (clearTimeout(N.value), B.value = 0, y("rowDBClick", a));
2760
2761
  }, ce = (a, h = !1) => {
2761
2762
  if (t.isServerMode) {
2762
2763
  kn();
@@ -2781,7 +2782,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2781
2782
  Y(!1);
2782
2783
  for (let a = 0; a < t.columns.length; a++)
2783
2784
  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());
2785
+ 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
2786
  }, zn = () => s.value.filter((h, g) => _.value.includes(M.value ? h[M.value] : g)), _n = () => t.columns, Pn = () => {
2786
2787
  _.value = [];
2787
2788
  }, xt = (a) => {
@@ -2798,8 +2799,8 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2798
2799
  const h = s.value.find((g, I) => I === a);
2799
2800
  return h ? _.value.includes(M.value ? h[M.value] : a) : !1;
2800
2801
  };
2801
- let de = 0;
2802
- t.hasCheckbox && de++, t.hasSubtable && de++;
2802
+ let he = 0;
2803
+ t.hasCheckbox && he++, t.hasSubtable && he++;
2803
2804
  const St = A(0);
2804
2805
  setInterval(function() {
2805
2806
  St.value++;
@@ -2820,48 +2821,48 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2820
2821
  );
2821
2822
  const kt = A(null), Mn = Xn(kt).height;
2822
2823
  return (a, h) => (m(), b("div", Cs, [
2823
- W(q(We), {
2824
+ W(H(We), {
2824
2825
  class: "default-theme",
2825
- style: X({ height: t.height })
2826
+ style: K({ height: t.height })
2826
2827
  }, {
2827
2828
  default: Z(() => [
2828
- W(q(ve), null, {
2829
+ W(H(ve), null, {
2829
2830
  default: Z(() => [
2830
- W(q(We), {
2831
+ W(H(We), {
2831
2832
  vertical: "vertical",
2832
2833
  class: "default-theme",
2833
2834
  onResize: h[2] || (h[2] = (g) => Ce.value = g[0].size)
2834
2835
  }, {
2835
2836
  default: Z(() => [
2836
- W(q(ve), { size: Ce.value }, {
2837
+ W(H(ve), { size: Ce.value }, {
2837
2838
  default: Z(() => [
2838
- W(q(We), {
2839
+ W(H(We), {
2839
2840
  class: "default-theme",
2840
2841
  horizontal: "horizontal"
2841
2842
  }, {
2842
2843
  default: Z(() => [
2843
- a.enabletopmenu ? (m(), K(q(ve), {
2844
+ a.enabletopmenu ? (m(), X(H(ve), {
2844
2845
  key: 0,
2845
2846
  ref_key: "topmenuel",
2846
2847
  ref: kt,
2847
2848
  size: 100 - qe.value,
2848
2849
  "max-size": a.topmenumax,
2849
- style: X({ "min-height": a.topmenumin + "px" })
2850
+ style: K({ "min-height": a.topmenumin + "px" })
2850
2851
  }, {
2851
2852
  default: Z(() => [
2852
- ie(a.$slots, "tabletopmenu", {}, () => [
2853
+ te(a.$slots, "tabletopmenu", {}, () => [
2853
2854
  zs
2854
2855
  ])
2855
2856
  ]),
2856
2857
  _: 3
2857
2858
  }, 8, ["size", "max-size", "style"])) : F("", !0),
2858
- W(q(ve), { size: qe.value }, {
2859
+ W(H(ve), { size: qe.value }, {
2859
2860
  default: Z(() => [
2860
2861
  v("div", {
2861
2862
  class: k(t.scrollbarstyle)
2862
2863
  }, [
2863
- W(q(xs), {
2864
- style: X({ height: t.stickyHeader && Number(t.height.replace("px", "")) - q(Mn) + "px" }),
2864
+ W(H(xs), {
2865
+ style: K({ height: t.stickyHeader && Number(t.height.replace("px", "")) - H(Mn) + "px" }),
2865
2866
  autoHide: t.scrollbarautohide,
2866
2867
  fixedThumb: t.scrollbarfixedthumb,
2867
2868
  autoExpand: t.scrollbarautoexpand,
@@ -2871,7 +2872,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2871
2872
  default: Z(() => [
2872
2873
  v("div", {
2873
2874
  class: k(["bh-table-responsive", { "bh-min-h-[100px]": C.value }]),
2874
- style: X({ overflow: t.stickyHeader && "inherit" })
2875
+ style: K({ overflow: t.stickyHeader && "inherit" })
2875
2876
  }, [
2876
2877
  v("table", {
2877
2878
  class: k([t.skin])
@@ -2881,7 +2882,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2881
2882
  }, [
2882
2883
  W(jt, {
2883
2884
  all: t,
2884
- expandedrows: he.value,
2885
+ expandedrows: fe.value,
2885
2886
  currentSortColumn: c.value,
2886
2887
  currentSortDirection: p.value,
2887
2888
  isOpenFilter: $.value,
@@ -2894,9 +2895,9 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2894
2895
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
2895
2896
  ], 2),
2896
2897
  v("tbody", null, [
2897
- (m(!0), b(B, null, ee(s.value, (g, I) => {
2898
+ (m(!0), b(q, null, ee(s.value, (g, I) => {
2898
2899
  var V;
2899
- return m(), b(B, {
2900
+ return m(), b(q, {
2900
2901
  key: g[M.value] ? g[M.value] : I
2901
2902
  }, [
2902
2903
  z.value ? (m(), b("tr", {
@@ -2914,7 +2915,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2914
2915
  })
2915
2916
  }, [
2916
2917
  v("div", Ps, [
2917
- te(v("input", {
2918
+ ne(v("input", {
2918
2919
  "onUpdate:modelValue": h[0] || (h[0] = (U) => _.value = U),
2919
2920
  type: "checkbox",
2920
2921
  value: g[M.value] ? g[M.value] : I,
@@ -2936,10 +2937,10 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2936
2937
  }, [
2937
2938
  W(mn, {
2938
2939
  item: g,
2939
- expandedrows: he.value
2940
+ expandedrows: fe.value
2940
2941
  }, null, 8, ["item", "expandedrows"])
2941
2942
  ], 2)) : F("", !0),
2942
- (m(!0), b(B, null, ee(t.columns, (U, J) => (m(), b(B, null, [
2943
+ (m(!0), b(q, null, ee(t.columns, (U, J) => (m(), b(q, null, [
2943
2944
  U.hide ? F("", !0) : (m(), b("td", {
2944
2945
  key: U.field,
2945
2946
  class: k([
@@ -2949,19 +2950,19 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2949
2950
  U.cellClass ? U.cellClass : ""
2950
2951
  ])
2951
2952
  }, [
2952
- q(i)[U.field] ? ie(a.$slots, U.field, {
2953
+ H(i)[U.field] ? te(a.$slots, U.field, {
2953
2954
  key: 0,
2954
2955
  value: g
2955
2956
  }) : U.cellRenderer ? (m(), b("div", {
2956
2957
  key: 1,
2957
2958
  innerHTML: U.cellRenderer(g)
2958
- }, null, 8, Ls)) : (m(), b(B, { key: 2 }, [
2959
+ }, null, 8, Ls)) : (m(), b(q, { key: 2 }, [
2959
2960
  Qe(R(L(g, U.field)), 1)
2960
2961
  ], 64))
2961
2962
  ], 2))
2962
2963
  ], 64))), 256))
2963
2964
  ], 10, _s)) : F("", !0),
2964
- (V = he.value.find((U) => U.id == g.id)) != null && V.isExpanded && t.hasSubtable ? (m(), b("tr", {
2965
+ (V = fe.value.find((U) => U.id == g.id)) != null && V.isExpanded && t.hasSubtable ? (m(), b("tr", {
2965
2966
  key: 1,
2966
2967
  class: k([
2967
2968
  typeof t.rowClass == "function" ? a.rowClass(g) : t.rowClass,
@@ -2970,32 +2971,27 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
2970
2971
  onClick: re((U) => yt(g, I), ["prevent"])
2971
2972
  }, [
2972
2973
  v("td", {
2973
- colspan: t.columns.length + q(de)
2974
+ colspan: t.columns.length + H(he)
2974
2975
  }, [
2975
- ie(a.$slots, "tsub", { value: s.value })
2976
+ te(a.$slots, "tsub", { value: s.value })
2976
2977
  ], 8, Es)
2977
2978
  ], 10, Fs)) : F("", !0)
2978
2979
  ], 64);
2979
2980
  }), 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", {
2981
+ !z.value && C.value && a.skeletonloader ? (m(!0), b(q, { key: 0 }, ee(t.pageSize, (g) => (m(), b("tr", {
2986
2982
  key: g,
2987
2983
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
2988
2984
  }, [
2989
2985
  v("td", {
2990
- colspan: t.columns.length + q(de),
2986
+ colspan: t.columns.length + H(he),
2991
2987
  class: "!bh-p-0 !bh-border-transparent"
2992
- }, Rs, 8, $s)
2988
+ }, $s, 8, Is)
2993
2989
  ]))), 128)) : F("", !0),
2994
- z.value ? (m(!0), b(B, { key: 2 }, ee(t.footerRows, (g, I) => (m(), b("tr", {
2990
+ z.value ? (m(!0), b(q, { key: 1 }, ee(t.footerRows, (g, I) => (m(), b("tr", {
2995
2991
  key: g[M.value] ? g[M.value] : I
2996
2992
  }, [
2997
- v("td", { colspan: q(de) }, null, 8, As),
2998
- (m(!0), b(B, null, ee(t.columns, (V, U) => (m(), b(B, null, [
2993
+ v("td", { colspan: H(he) }, null, 8, Os),
2994
+ (m(!0), b(q, null, ee(t.columns, (V, U) => (m(), b(q, null, [
2999
2995
  V.hide ? F("", !0) : (m(), b("td", {
3000
2996
  key: V.field,
3001
2997
  class: k([
@@ -3005,7 +3001,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3005
3001
  V.cellClass ? V.cellClass : ""
3006
3002
  ])
3007
3003
  }, [
3008
- g.cells.find((J) => J.field == V.field) ? (m(), b(B, { key: 0 }, [
3004
+ g.cells.find((J) => J.field == V.field) ? (m(), b(q, { key: 0 }, [
3009
3005
  Qe(R(g.cells.find((J) => J.field == V.field).text), 1)
3010
3006
  ], 64)) : F("", !0)
3011
3007
  ], 2))
@@ -3030,16 +3026,25 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3030
3026
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3031
3027
  ], 2)) : F("", !0)
3032
3028
  ], 2),
3033
- z.value && C.value ? (m(), b("div", Ns, [
3029
+ z.value && C.value ? (m(), b("div", Rs, [
3034
3030
  (m(), b("svg", {
3035
3031
  key: St.value,
3036
3032
  xmlns: "http://www.w3.org/2000/svg",
3037
3033
  width: "32",
3038
3034
  height: "32",
3039
3035
  viewBox: "0 0 24 24"
3040
- }, qs))
3036
+ }, Ns))
3041
3037
  ])) : F("", !0)
3042
- ], 6)
3038
+ ], 6),
3039
+ !z.value && !C.value ? (m(), b("div", {
3040
+ key: 0,
3041
+ class: "nodatacontent",
3042
+ style: K({ height: Number(t.height.replace("px", "")) - 175 + "px" })
3043
+ }, [
3044
+ te(a.$slots, "nodatacontent", {}, () => [
3045
+ v("span", null, R(t.noDataContent), 1)
3046
+ ])
3047
+ ], 4)) : F("", !0)
3043
3048
  ]),
3044
3049
  _: 3
3045
3050
  }, 8, ["style", "autoHide", "fixedThumb", "autoExpand", "direction"])
@@ -3053,15 +3058,15 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3053
3058
  ]),
3054
3059
  _: 3
3055
3060
  }, 8, ["size"]),
3056
- a.enablerightmenu ? (m(), K(q(ve), {
3061
+ a.enablerightmenu ? (m(), X(H(ve), {
3057
3062
  key: 0,
3058
3063
  size: 100 - Ce.value,
3059
3064
  "max-size": a.rightmenumax,
3060
- style: X({ "min-width": a.rightmenumin + "px" })
3065
+ style: K({ "min-width": a.rightmenumin + "px" })
3061
3066
  }, {
3062
3067
  default: Z(() => [
3063
- ie(a.$slots, "tablerightmenu", {}, () => [
3064
- Bs
3068
+ te(a.$slots, "tablerightmenu", {}, () => [
3069
+ Ds
3065
3070
  ])
3066
3071
  ]),
3067
3072
  _: 3
@@ -3079,8 +3084,8 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3079
3084
  key: 0,
3080
3085
  class: k(["bh-pagination", { "bh-pointer-events-none": C.value, "sticky-footer": t.stickyFooter }])
3081
3086
  }, [
3082
- v("div", Hs, [
3083
- ie(a.$slots, "footerpageinfo", {
3087
+ v("div", qs, [
3088
+ te(a.$slots, "footerpageinfo", {
3084
3089
  paginationInfo: a.paginationInfo,
3085
3090
  filterRowCount: z.value,
3086
3091
  offset: Ne.value,
@@ -3091,23 +3096,23 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3091
3096
  stringFormat: E,
3092
3097
  setPageSize: wn
3093
3098
  }, () => [
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", {
3099
+ v("div", Bs, [
3100
+ v("span", Hs, R(E(t.paginationInfo, z.value ? Ne.value : 0, De.value, z.value)), 1),
3101
+ t.showPageSize ? ne((m(), b("select", {
3097
3102
  key: 0,
3098
3103
  "onUpdate:modelValue": h[3] || (h[3] = (g) => r.value = g),
3099
3104
  class: "bh-pagesize"
3100
3105
  }, [
3101
- (m(!0), b(B, null, ee(t.pageSizeOptions, (g) => (m(), b("option", {
3106
+ (m(!0), b(q, null, ee(t.pageSizeOptions, (g) => (m(), b("option", {
3102
3107
  value: g,
3103
3108
  key: g
3104
- }, R(g), 9, Vs))), 128))
3109
+ }, R(g), 9, js))), 128))
3105
3110
  ], 512)), [
3106
3111
  [Xt, r.value]
3107
3112
  ]) : F("", !0)
3108
3113
  ])
3109
3114
  ]),
3110
- ie(a.$slots, "footerpagination", {
3115
+ te(a.$slots, "footerpagination", {
3111
3116
  currentPage: l.value,
3112
3117
  maxPage: j.value,
3113
3118
  paging: ct.value,
@@ -3115,7 +3120,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3115
3120
  nextPage: mt,
3116
3121
  previousPage: ht
3117
3122
  }, () => [
3118
- v("div", Ws, [
3123
+ v("div", Us, [
3119
3124
  t.showFirstPage ? (m(), b("button", {
3120
3125
  key: 0,
3121
3126
  type: "button",
@@ -3125,7 +3130,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3125
3130
  t.firstArrow ? (m(), b("span", {
3126
3131
  key: 0,
3127
3132
  innerHTML: t.firstArrow
3128
- }, null, 8, Gs)) : (m(), b("svg", Qs, Xs))
3133
+ }, null, 8, Vs)) : (m(), b("svg", Ws, Qs))
3129
3134
  ], 2)) : F("", !0),
3130
3135
  v("button", {
3131
3136
  type: "button",
@@ -3135,9 +3140,9 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3135
3140
  t.previousArrow ? (m(), b("span", {
3136
3141
  key: 0,
3137
3142
  innerHTML: t.previousArrow
3138
- }, null, 8, Ys)) : (m(), b("svg", Js, el))
3143
+ }, null, 8, Ks)) : (m(), b("svg", Xs, Js))
3139
3144
  ], 2),
3140
- t.showNumbers ? (m(!0), b(B, { key: 1 }, ee(ct.value, (g) => (m(), b("button", {
3145
+ t.showNumbers ? (m(!0), b(q, { key: 1 }, ee(ct.value, (g) => (m(), b("button", {
3141
3146
  key: g,
3142
3147
  type: "button",
3143
3148
  class: k(["bh-page-item", {
@@ -3145,7 +3150,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3145
3150
  "bh-active": g === l.value
3146
3151
  }]),
3147
3152
  onClick: (I) => pt(g)
3148
- }, R(g), 11, tl))), 128)) : F("", !0),
3153
+ }, R(g), 11, Zs))), 128)) : F("", !0),
3149
3154
  v("button", {
3150
3155
  type: "button",
3151
3156
  class: k(["bh-page-item next-page", { disabled: l.value >= j.value }]),
@@ -3154,7 +3159,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3154
3159
  t.nextArrow ? (m(), b("span", {
3155
3160
  key: 0,
3156
3161
  innerHTML: t.nextArrow
3157
- }, null, 8, nl)) : (m(), b("svg", ol, sl))
3162
+ }, null, 8, el)) : (m(), b("svg", tl, ol))
3158
3163
  ], 2),
3159
3164
  t.showLastPage ? (m(), b("button", {
3160
3165
  key: 2,
@@ -3165,7 +3170,7 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3165
3170
  t.lastArrow ? (m(), b("span", {
3166
3171
  key: 0,
3167
3172
  innerHTML: t.lastArrow
3168
- }, null, 8, ll)) : (m(), b("svg", rl, ul))
3173
+ }, null, 8, il)) : (m(), b("svg", sl, rl))
3169
3174
  ], 2)) : F("", !0)
3170
3175
  ])
3171
3176
  ])
@@ -3175,5 +3180,5 @@ const ve = /* @__PURE__ */ ws(Ss, [["render", ks]]), Cs = { class: "bh-datatable
3175
3180
  }
3176
3181
  });
3177
3182
  export {
3178
- ml as default
3183
+ hl as default
3179
3184
  };