@dolusoft/vue3-datatable 1.2.8 → 1.2.9

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,4 +1,4 @@
1
- import { defineComponent as ie, onBeforeUnmount as kn, onMounted as Xe, openBlock as p, createElementBlock as m, createElementVNode as v, withModifiers as le, normalizeClass as C, toDisplayString as A, Fragment as D, createCommentVNode as $, h as wt, toRef as Cn, ref as j, watch as W, createBlock as te, unref as U, createVNode as G, renderList as Y, normalizeStyle as ve, createTextVNode as He, withDirectives as J, vModelText as Ae, vModelSelect as Bt, vShow as Ne, useCssVars as xn, computed as Q, shallowRef as Z, onUnmounted as Be, setBlockTracking as kt, mergeProps as Sn, renderSlot as de, reactive as _n, watchEffect as Ln, useSlots as Fn, withCtx as In, vModelCheckbox as Tn } from "vue";
1
+ import { defineComponent as ie, onBeforeUnmount as kn, onMounted as Xe, openBlock as p, createElementBlock as m, createElementVNode as v, withModifiers as le, normalizeClass as x, toDisplayString as A, Fragment as D, createCommentVNode as $, h as wt, toRef as xn, ref as j, watch as W, createBlock as te, unref as U, createVNode as G, renderList as Y, normalizeStyle as ve, createTextVNode as He, withDirectives as J, vModelText as Ae, vModelSelect as Nt, vShow as Be, useCssVars as Cn, computed as Q, shallowRef as Z, onUnmounted as Ne, setBlockTracking as kt, mergeProps as Sn, renderSlot as de, reactive as _n, watchEffect as Ln, useSlots as Fn, withCtx as In, vModelCheckbox as Tn } from "vue";
2
2
  const En = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1" }, Mn = {
3
3
  name: "columnFilter"
4
4
  }, $n = /* @__PURE__ */ ie({
@@ -24,101 +24,101 @@ const En = { class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-m
24
24
  }, [
25
25
  v("button", {
26
26
  type: "button",
27
- class: C({ active: t.column.condition === "" }),
27
+ class: x({ active: t.column.condition === "" }),
28
28
  onClick: i[0] || (i[0] = (u) => r(""))
29
29
  }, A((t.columnFilterLang && t.columnFilterLang.no_filter) ?? "No filter"), 3),
30
30
  t.column.type === "string" ? (p(), m(D, { key: 0 }, [
31
31
  v("button", {
32
32
  type: "button",
33
- class: C({ active: t.column.condition === "contain" }),
33
+ class: x({ active: t.column.condition === "contain" }),
34
34
  onClick: i[1] || (i[1] = (u) => r("contain"))
35
35
  }, A((t.columnFilterLang && t.columnFilterLang.contain) ?? "Contain"), 3),
36
36
  v("button", {
37
37
  type: "button",
38
- class: C({ active: t.column.condition === "not_contain" }),
38
+ class: x({ active: t.column.condition === "not_contain" }),
39
39
  onClick: i[2] || (i[2] = (u) => r("not_contain"))
40
40
  }, A((t.columnFilterLang && t.columnFilterLang.not_contain) ?? "Not contain"), 3),
41
41
  v("button", {
42
42
  type: "button",
43
- class: C({ active: t.column.condition === "equal" }),
43
+ class: x({ active: t.column.condition === "equal" }),
44
44
  onClick: i[3] || (i[3] = (u) => r("equal"))
45
45
  }, A((t.columnFilterLang && t.columnFilterLang.equal) ?? "Equal"), 3),
46
46
  v("button", {
47
47
  type: "button",
48
- class: C({ active: t.column.condition === "not_equal" }),
48
+ class: x({ active: t.column.condition === "not_equal" }),
49
49
  onClick: i[4] || (i[4] = (u) => r("not_equal"))
50
50
  }, A((t.columnFilterLang && t.columnFilterLang.not_equal) ?? "Not equal"), 3),
51
51
  v("button", {
52
52
  type: "button",
53
- class: C({ active: t.column.condition === "start_with" }),
53
+ class: x({ active: t.column.condition === "start_with" }),
54
54
  onClick: i[5] || (i[5] = (u) => r("start_with"))
55
55
  }, A((t.columnFilterLang && t.columnFilterLang.start_with) ?? "Starts with"), 3),
56
56
  v("button", {
57
57
  type: "button",
58
- class: C({ active: t.column.condition === "end_with" }),
58
+ class: x({ active: t.column.condition === "end_with" }),
59
59
  onClick: i[6] || (i[6] = (u) => r("end_with"))
60
60
  }, A((t.columnFilterLang && t.columnFilterLang.end_with) ?? "Ends with"), 3)
61
61
  ], 64)) : t.column.type === "number" ? (p(), m(D, { key: 1 }, [
62
62
  v("button", {
63
63
  type: "button",
64
- class: C({ active: t.column.condition === "equal" }),
64
+ class: x({ active: t.column.condition === "equal" }),
65
65
  onClick: i[7] || (i[7] = (u) => r("equal"))
66
66
  }, A((t.columnFilterLang && t.columnFilterLang.equal) ?? "Equal"), 3),
67
67
  v("button", {
68
68
  type: "button",
69
- class: C({ active: t.column.condition === "not_equal" }),
69
+ class: x({ active: t.column.condition === "not_equal" }),
70
70
  onClick: i[8] || (i[8] = (u) => r("not_equal"))
71
71
  }, A((t.columnFilterLang && t.columnFilterLang.not_equal) ?? "Not equal"), 3),
72
72
  v("button", {
73
73
  type: "button",
74
- class: C({ active: t.column.condition === "greater_than" }),
74
+ class: x({ active: t.column.condition === "greater_than" }),
75
75
  onClick: i[9] || (i[9] = (u) => r("greater_than"))
76
76
  }, A((t.columnFilterLang && t.columnFilterLang.greater_than) ?? "Greater than"), 3),
77
77
  v("button", {
78
78
  type: "button",
79
- class: C({ active: t.column.condition === "greater_than_equal" }),
79
+ class: x({ active: t.column.condition === "greater_than_equal" }),
80
80
  onClick: i[10] || (i[10] = (u) => r("greater_than_equal"))
81
81
  }, A((t.columnFilterLang && t.columnFilterLang.greater_than_equal) ?? "Greater than or equal"), 3),
82
82
  v("button", {
83
83
  type: "button",
84
- class: C({ active: t.column.condition === "less_than" }),
84
+ class: x({ active: t.column.condition === "less_than" }),
85
85
  onClick: i[11] || (i[11] = (u) => r("less_than"))
86
86
  }, A((t.columnFilterLang && t.columnFilterLang.less_than) ?? "Less than"), 3),
87
87
  v("button", {
88
88
  type: "button",
89
- class: C({ active: t.column.condition === "less_than_equal" }),
89
+ class: x({ active: t.column.condition === "less_than_equal" }),
90
90
  onClick: i[12] || (i[12] = (u) => r("less_than_equal"))
91
91
  }, A((t.columnFilterLang && t.columnFilterLang.less_than_equal) ?? "Less than or equal"), 3)
92
92
  ], 64)) : t.column.type === "date" ? (p(), m(D, { key: 2 }, [
93
93
  v("button", {
94
94
  type: "button",
95
- class: C({ active: t.column.condition === "equal" }),
95
+ class: x({ active: t.column.condition === "equal" }),
96
96
  onClick: i[13] || (i[13] = (u) => r("equal"))
97
97
  }, A((t.columnFilterLang && t.columnFilterLang.equal) ?? "Equal"), 3),
98
98
  v("button", {
99
99
  type: "button",
100
- class: C({ active: t.column.condition === "not_equal" }),
100
+ class: x({ active: t.column.condition === "not_equal" }),
101
101
  onClick: i[14] || (i[14] = (u) => r("not_equal"))
102
102
  }, A((t.columnFilterLang && t.columnFilterLang.not_equal) ?? "Not equal"), 3),
103
103
  v("button", {
104
104
  type: "button",
105
- class: C({ active: t.column.condition === "greater_than" }),
105
+ class: x({ active: t.column.condition === "greater_than" }),
106
106
  onClick: i[15] || (i[15] = (u) => r("greater_than"))
107
107
  }, A((t.columnFilterLang && t.columnFilterLang.greater_than) ?? "Greater than"), 3),
108
108
  v("button", {
109
109
  type: "button",
110
- class: C({ active: t.column.condition === "less_than" }),
110
+ class: x({ active: t.column.condition === "less_than" }),
111
111
  onClick: i[16] || (i[16] = (u) => r("less_than"))
112
112
  }, A((t.columnFilterLang && t.columnFilterLang.less_than) ?? "Less than"), 3)
113
113
  ], 64)) : $("", !0),
114
114
  v("button", {
115
115
  type: "button",
116
- class: C({ active: t.column.condition === "is_null" }),
116
+ class: x({ active: t.column.condition === "is_null" }),
117
117
  onClick: i[17] || (i[17] = (u) => r("is_null"))
118
118
  }, A((t.columnFilterLang && t.columnFilterLang.is_null) ?? "Is null"), 3),
119
119
  v("button", {
120
120
  type: "button",
121
- class: C({ active: t.column.condition === "is_not_null" }),
121
+ class: x({ active: t.column.condition === "is_not_null" }),
122
122
  onClick: i[18] || (i[18] = (u) => r("is_not_null"))
123
123
  }, A((t.columnFilterLang && t.columnFilterLang.is_not_null) ?? "Not null"), 3)
124
124
  ])
@@ -165,13 +165,13 @@ const jt = /* @__PURE__ */ Te(Pn, [["render", Rn]]), qn = {}, Dn = {
165
165
  y1: "12",
166
166
  x2: "19",
167
167
  y2: "12"
168
- }, null, -1), Nn = [
168
+ }, null, -1), Bn = [
169
169
  Hn
170
170
  ];
171
- function Bn(e, o) {
172
- return p(), m("svg", Dn, Nn);
171
+ function Nn(e, o) {
172
+ return p(), m("svg", Dn, Bn);
173
173
  }
174
- const jn = /* @__PURE__ */ Te(qn, [["render", Bn]]), Vn = {}, Un = {
174
+ const jn = /* @__PURE__ */ Te(qn, [["render", Nn]]), Vn = {}, Un = {
175
175
  viewBox: "0 0 24 24",
176
176
  width: "24",
177
177
  height: "24",
@@ -203,7 +203,7 @@ const Kn = /* @__PURE__ */ Te(Vn, [["render", Gn]]), he = /^[a-z0-9]+(-[a-z0-9]+
203
203
  prefix: u,
204
204
  name: i
205
205
  };
206
- return o && !Ce(c) ? null : c;
206
+ return o && !xe(c) ? null : c;
207
207
  }
208
208
  const r = n[0], s = r.split("-");
209
209
  if (s.length > 1) {
@@ -212,7 +212,7 @@ const Kn = /* @__PURE__ */ Te(Vn, [["render", Gn]]), he = /^[a-z0-9]+(-[a-z0-9]+
212
212
  prefix: s.shift(),
213
213
  name: s.join("-")
214
214
  };
215
- return o && !Ce(i) ? null : i;
215
+ return o && !xe(i) ? null : i;
216
216
  }
217
217
  if (t && l === "") {
218
218
  const i = {
@@ -220,10 +220,10 @@ const Kn = /* @__PURE__ */ Te(Vn, [["render", Gn]]), he = /^[a-z0-9]+(-[a-z0-9]+
220
220
  prefix: "",
221
221
  name: r
222
222
  };
223
- return o && !Ce(i, t) ? null : i;
223
+ return o && !xe(i, t) ? null : i;
224
224
  }
225
225
  return null;
226
- }, Ce = (e, o) => e ? !!((e.provider === "" || e.provider.match(he)) && (o && e.prefix === "" || e.prefix.match(he)) && e.name.match(he)) : !1, Vt = Object.freeze(
226
+ }, xe = (e, o) => e ? !!((e.provider === "" || e.provider.match(he)) && (o && e.prefix === "" || e.prefix.match(he)) && e.name.match(he)) : !1, Vt = Object.freeze(
227
227
  {
228
228
  left: 0,
229
229
  top: 0,
@@ -248,7 +248,7 @@ function Xn(e, o) {
248
248
  const l = ((e.rotate || 0) + (o.rotate || 0)) % 4;
249
249
  return l && (t.rotate = l), t;
250
250
  }
251
- function Ct(e, o) {
251
+ function xt(e, o) {
252
252
  const t = Xn(e, o);
253
253
  for (const l in je)
254
254
  l in _e ? l in e && !(l in t) && (t[l] = _e[l]) : l in o ? t[l] = o[l] : l in e && (t[l] = e[l]);
@@ -272,12 +272,12 @@ function Jn(e, o, t) {
272
272
  const l = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null);
273
273
  let r = {};
274
274
  function s(i) {
275
- r = Ct(
275
+ r = xt(
276
276
  l[i] || n[i],
277
277
  r
278
278
  );
279
279
  }
280
- return s(o), t.forEach(s), Ct(e, r);
280
+ return s(o), t.forEach(s), xt(e, r);
281
281
  }
282
282
  function Ut(e, o) {
283
283
  const t = [];
@@ -331,7 +331,7 @@ function Wt(e) {
331
331
  }
332
332
  return o;
333
333
  }
334
- const xt = /* @__PURE__ */ Object.create(null);
334
+ const Ct = /* @__PURE__ */ Object.create(null);
335
335
  function eo(e, o) {
336
336
  return {
337
337
  provider: e,
@@ -341,7 +341,7 @@ function eo(e, o) {
341
341
  };
342
342
  }
343
343
  function re(e, o) {
344
- const t = xt[e] || (xt[e] = /* @__PURE__ */ Object.create(null));
344
+ const t = Ct[e] || (Ct[e] = /* @__PURE__ */ Object.create(null));
345
345
  return t[o] || (t[o] = eo(e, o));
346
346
  }
347
347
  function Ye(e, o) {
@@ -385,7 +385,7 @@ function lo(e, o) {
385
385
  })), n;
386
386
  }
387
387
  const t = e.prefix;
388
- if (!Ce({
388
+ if (!xe({
389
389
  provider: o,
390
390
  prefix: t,
391
391
  name: "a"
@@ -442,9 +442,9 @@ function ao(e, o) {
442
442
  };
443
443
  let r = t.body;
444
444
  [t, l].forEach((F) => {
445
- const _ = [], x = F.hFlip, P = F.vFlip;
445
+ const _ = [], C = F.hFlip, P = F.vFlip;
446
446
  let O = F.rotate;
447
- x ? P ? O += 2 : (_.push(
447
+ C ? P ? O += 2 : (_.push(
448
448
  "translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
449
449
  ), _.push("scale(-1 1)"), n.top = n.left = 0) : P && (_.push(
450
450
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
@@ -535,11 +535,11 @@ function Je(e) {
535
535
  const Ze = /* @__PURE__ */ Object.create(null), ce = [
536
536
  "https://api.simplesvg.com",
537
537
  "https://api.unisvg.com"
538
- ], xe = [];
538
+ ], Ce = [];
539
539
  for (; ce.length > 0; )
540
- ce.length === 1 || Math.random() > 0.5 ? xe.push(ce.shift()) : xe.push(ce.pop());
540
+ ce.length === 1 || Math.random() > 0.5 ? Ce.push(ce.shift()) : Ce.push(ce.pop());
541
541
  Ze[""] = Je({
542
- resources: ["https://api.iconify.design"].concat(xe)
542
+ resources: ["https://api.iconify.design"].concat(Ce)
543
543
  });
544
544
  function vo(e, o) {
545
545
  const t = Je(o);
@@ -648,11 +648,11 @@ const ko = (e, o, t) => {
648
648
  }).catch(() => {
649
649
  t("next", n);
650
650
  });
651
- }, Co = {
651
+ }, xo = {
652
652
  prepare: yo,
653
653
  send: ko
654
654
  };
655
- function xo(e) {
655
+ function Co(e) {
656
656
  const o = {
657
657
  loaded: [],
658
658
  missing: [],
@@ -776,7 +776,7 @@ function To(e, o, t, l) {
776
776
  y.status === "pending" && (y.status = "aborted");
777
777
  }), S = [];
778
778
  }
779
- function x(y, b) {
779
+ function C(y, b) {
780
780
  b && (L = []), typeof y == "function" && L.push(y);
781
781
  }
782
782
  function P() {
@@ -786,7 +786,7 @@ function To(e, o, t, l) {
786
786
  status: u,
787
787
  queriesSent: c,
788
788
  queriesPending: S.length,
789
- subscribe: x,
789
+ subscribe: C,
790
790
  abort: _
791
791
  };
792
792
  }
@@ -802,7 +802,7 @@ function To(e, o, t, l) {
802
802
  }
803
803
  function R(y, b, E) {
804
804
  const I = b !== "success";
805
- switch (S = S.filter((N) => N !== y), u) {
805
+ switch (S = S.filter((B) => B !== y), u) {
806
806
  case "pending":
807
807
  break;
808
808
  case "failed":
@@ -821,11 +821,11 @@ function To(e, o, t, l) {
821
821
  return;
822
822
  }
823
823
  if (F(), z(), !e.random) {
824
- const N = e.resources.indexOf(y.resource);
825
- N !== -1 && N !== e.index && (e.index = N);
824
+ const B = e.resources.indexOf(y.resource);
825
+ B !== -1 && B !== e.index && (e.index = B);
826
826
  }
827
- u = "completed", L.forEach((N) => {
828
- N(E);
827
+ u = "completed", L.forEach((B) => {
828
+ B(E);
829
829
  });
830
830
  }
831
831
  function H() {
@@ -1097,7 +1097,7 @@ function Ro(e, o) {
1097
1097
  }));
1098
1098
  }
1099
1099
  const qo = (e, o) => {
1100
- const t = Fo(e, !0, Qt()), l = xo(t);
1100
+ const t = Fo(e, !0, Qt()), l = Co(t);
1101
1101
  if (!l.pending.length) {
1102
1102
  let u = !0;
1103
1103
  return o && setTimeout(() => {
@@ -1139,7 +1139,7 @@ function Do(e, o) {
1139
1139
  return t;
1140
1140
  }
1141
1141
  const Ho = /[\s,]+/;
1142
- function No(e, o) {
1142
+ function Bo(e, o) {
1143
1143
  o.split(Ho).forEach((t) => {
1144
1144
  switch (t.trim()) {
1145
1145
  case "horizontal":
@@ -1151,7 +1151,7 @@ function No(e, o) {
1151
1151
  }
1152
1152
  });
1153
1153
  }
1154
- function Bo(e, o = 0) {
1154
+ function No(e, o = 0) {
1155
1155
  const t = e.replace(/^-?[0-9.]*/, "");
1156
1156
  function l(n) {
1157
1157
  for (; n < 0; )
@@ -1231,8 +1231,8 @@ function zt(e) {
1231
1231
  const Ot = (e, o) => {
1232
1232
  const t = Do(Mt, o), l = { ...Qo }, n = o.mode || "svg", r = {}, s = o.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
1233
1233
  for (let _ in o) {
1234
- const x = o[_];
1235
- if (x !== void 0)
1234
+ const C = o[_];
1235
+ if (C !== void 0)
1236
1236
  switch (_) {
1237
1237
  case "icon":
1238
1238
  case "style":
@@ -1242,24 +1242,24 @@ const Ot = (e, o) => {
1242
1242
  case "inline":
1243
1243
  case "hFlip":
1244
1244
  case "vFlip":
1245
- t[_] = x === !0 || x === "true" || x === 1;
1245
+ t[_] = C === !0 || C === "true" || C === 1;
1246
1246
  break;
1247
1247
  case "flip":
1248
- typeof x == "string" && No(t, x);
1248
+ typeof C == "string" && Bo(t, C);
1249
1249
  break;
1250
1250
  case "color":
1251
- r.color = x;
1251
+ r.color = C;
1252
1252
  break;
1253
1253
  case "rotate":
1254
- typeof x == "string" ? t[_] = Bo(x) : typeof x == "number" && (t[_] = x);
1254
+ typeof C == "string" ? t[_] = No(C) : typeof C == "number" && (t[_] = C);
1255
1255
  break;
1256
1256
  case "ariaHidden":
1257
1257
  case "aria-hidden":
1258
- x !== !0 && x !== "true" && delete l["aria-hidden"];
1258
+ C !== !0 && C !== "true" && delete l["aria-hidden"];
1259
1259
  break;
1260
1260
  default: {
1261
1261
  const P = Se[_];
1262
- P ? (x === !0 || x === "true" || x === 1) && (t[P] = !0) : Mt[_] === void 0 && (l[_] = x);
1262
+ P ? (C === !0 || C === "true" || C === 1) && (t[P] = !0) : Mt[_] === void 0 && (l[_] = C);
1263
1263
  }
1264
1264
  }
1265
1265
  }
@@ -1269,8 +1269,8 @@ const Ot = (e, o) => {
1269
1269
  ...r,
1270
1270
  ...i
1271
1271
  }, Object.assign(l, c);
1272
- let _ = 0, x = o.id;
1273
- return typeof x == "string" && (x = x.replace(/-/g, "_")), l.innerHTML = ho(u.body, x ? () => x + "ID" + _++ : "iconifyVue"), wt("svg", l);
1272
+ let _ = 0, C = o.id;
1273
+ return typeof C == "string" && (C = C.replace(/-/g, "_")), l.innerHTML = ho(u.body, C ? () => C + "ID" + _++ : "iconifyVue"), wt("svg", l);
1274
1274
  }
1275
1275
  const { body: d, width: w, height: S } = e, L = n === "mask" || (n === "bg" ? !1 : d.indexOf("currentColor") !== -1), F = jo(d, {
1276
1276
  ...c,
@@ -1288,7 +1288,7 @@ const Ot = (e, o) => {
1288
1288
  }, wt("span", l);
1289
1289
  };
1290
1290
  Qt(!0);
1291
- po("", Co);
1291
+ po("", xo);
1292
1292
  if (typeof document < "u" && typeof window < "u") {
1293
1293
  on();
1294
1294
  const e = window;
@@ -1393,7 +1393,7 @@ const Ko = {
1393
1393
  expandall: { type: Boolean, default: !1 }
1394
1394
  },
1395
1395
  setup(e) {
1396
- const o = e, t = Cn(o, "expandedrows"), l = j(!1);
1396
+ const o = e, t = xn(o, "expandedrows"), l = j(!1);
1397
1397
  function n(s) {
1398
1398
  if (console.log(t.value), o.expandall)
1399
1399
  l.value = !l.value, t.value.forEach((i) => {
@@ -1479,7 +1479,7 @@ const Ko = {
1479
1479
  }), (s, i) => (p(), m("tr", Jo, [
1480
1480
  l.all.hasCheckbox ? (p(), m("th", {
1481
1481
  key: "chkall",
1482
- class: C(["bh-w-px", {
1482
+ class: x(["bh-w-px", {
1483
1483
  "bh-sticky bh-bg-blue-light bh-z-[1]": l.all.stickyHeader || l.all.stickyFirstColumn,
1484
1484
  "bh-top-0": l.all.stickyHeader,
1485
1485
  "bh-left-0": l.all.stickyFirstColumn
@@ -1508,7 +1508,7 @@ const Ko = {
1508
1508
  (p(!0), m(D, null, Y(l.all.columns, (u, c) => (p(), m(D, null, [
1509
1509
  u.hide ? $("", !0) : (p(), m("th", {
1510
1510
  key: u.field,
1511
- class: C(["bh-select-none bh-z-[1]", [
1511
+ class: x(["bh-select-none bh-z-[1]", [
1512
1512
  l.all.sortable && u.sort ? "bh-cursor-pointer" : "",
1513
1513
  c === 0 && l.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
1514
1514
  l.all.hasCheckbox && c === 0 && l.all.stickyFirstColumn ? "bh-left-[52px]" : ""
@@ -1520,24 +1520,24 @@ const Ko = {
1520
1520
  })
1521
1521
  }, [
1522
1522
  v("div", {
1523
- class: C(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
1523
+ class: x(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
1524
1524
  onClick: (d) => l.all.sortable && u.sort && n("sortChange", u.field)
1525
1525
  }, [
1526
1526
  He(A(u.title) + " ", 1),
1527
1527
  l.all.sortable && u.sort ? (p(), m("span", {
1528
1528
  key: 0,
1529
- class: C(["bh-ml-3 bh-sort bh-flex bh-items-center", [l.currentSortColumn, l.currentSortDirection]])
1529
+ class: x(["bh-ml-3 bh-sort bh-flex bh-items-center", [l.currentSortColumn, l.currentSortDirection]])
1530
1530
  }, [
1531
1531
  (p(), m("svg", nl, [
1532
1532
  v("polygon", {
1533
1533
  points: "3.11,6.25 10.89,6.25 7,1.75 ",
1534
1534
  fill: "currentColor",
1535
- class: C(["bh-text-black/20", [e.currentSortColumn === u.field && e.currentSortDirection === "asc" ? "!bh-text-primary" : ""]])
1535
+ class: x(["bh-text-black/20", [e.currentSortColumn === u.field && e.currentSortDirection === "asc" ? "!bh-text-primary" : ""]])
1536
1536
  }, null, 2),
1537
1537
  v("polygon", {
1538
1538
  points: "7,12.25 10.89,7.75 3.11,7.75 ",
1539
1539
  fill: "currentColor",
1540
- class: C(["bh-text-black/20", [e.currentSortColumn === u.field && e.currentSortDirection === "desc" ? "!bh-text-primary" : ""]])
1540
+ class: x(["bh-text-black/20", [e.currentSortColumn === u.field && e.currentSortDirection === "desc" ? "!bh-text-primary" : ""]])
1541
1541
  }, null, 2)
1542
1542
  ]))
1543
1543
  ], 2)) : $("", !0)
@@ -1590,7 +1590,7 @@ const Ko = {
1590
1590
  onClick: i[5] || (i[5] = //@ts-ignore
1591
1591
  (...d) => l.isOpenFilter && l.isOpenFilter(...d))
1592
1592
  }, fl, 40, sl)), [
1593
- [Bt, u.value]
1593
+ [Nt, u.value]
1594
1594
  ]) : $("", !0),
1595
1595
  u.type !== "bool" ? (p(), m("button", {
1596
1596
  key: 4,
@@ -1606,7 +1606,7 @@ const Ko = {
1606
1606
  onClose: i[6] || (i[6] = (d) => n("toggleFilterMenu", null)),
1607
1607
  onFilterChange: i[7] || (i[7] = (d) => n("filterChange"))
1608
1608
  }, null, 8, ["column", "type", "columnFilterLang"]), [
1609
- [Ne, l.isOpenFilter === u.field]
1609
+ [Be, l.isOpenFilter === u.field]
1610
1610
  ])
1611
1611
  ])) : $("", !0)
1612
1612
  ], 64)) : $("", !0)
@@ -1630,9 +1630,9 @@ var yl = Object.prototype, wl = yl.toString;
1630
1630
  function kl(e) {
1631
1631
  return wl.call(e);
1632
1632
  }
1633
- var Cl = "[object Null]", xl = "[object Undefined]", Rt = Le ? Le.toStringTag : void 0;
1633
+ var xl = "[object Null]", Cl = "[object Undefined]", Rt = Le ? Le.toStringTag : void 0;
1634
1634
  function Sl(e) {
1635
- return e == null ? e === void 0 ? xl : Cl : Rt && Rt in Object(e) ? bl(e) : kl(e);
1635
+ return e == null ? e === void 0 ? Cl : xl : Rt && Rt in Object(e) ? bl(e) : kl(e);
1636
1636
  }
1637
1637
  function _l(e) {
1638
1638
  return e != null && typeof e == "object";
@@ -1696,13 +1696,13 @@ function un(e, o, t) {
1696
1696
  var b = y - u, E = y - c, I = o - b;
1697
1697
  return w ? Dl(I, r - E) : I;
1698
1698
  }
1699
- function x(y) {
1699
+ function C(y) {
1700
1700
  var b = y - u, E = y - c;
1701
1701
  return u === void 0 || b >= o || b < 0 || w && E >= r;
1702
1702
  }
1703
1703
  function P() {
1704
1704
  var y = De();
1705
- if (x(y))
1705
+ if (C(y))
1706
1706
  return O(y);
1707
1707
  i = setTimeout(P, _(y));
1708
1708
  }
@@ -1716,7 +1716,7 @@ function un(e, o, t) {
1716
1716
  return i === void 0 ? s : O(De());
1717
1717
  }
1718
1718
  function H() {
1719
- var y = De(), b = x(y);
1719
+ var y = De(), b = C(y);
1720
1720
  if (l = arguments, n = this, u = y, b) {
1721
1721
  if (i === void 0)
1722
1722
  return F(u);
@@ -1738,20 +1738,20 @@ function cn(e, o, t) {
1738
1738
  trailing: n
1739
1739
  });
1740
1740
  }
1741
- var Nl = Object.defineProperty, Bl = Object.defineProperties, jl = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, Vl = Object.prototype.hasOwnProperty, Ul = Object.prototype.propertyIsEnumerable, Ht = (e, o, t) => o in e ? Nl(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, Ie = (e, o) => {
1741
+ var Bl = Object.defineProperty, Nl = Object.defineProperties, jl = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, Vl = Object.prototype.hasOwnProperty, Ul = Object.prototype.propertyIsEnumerable, Ht = (e, o, t) => o in e ? Bl(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, Ie = (e, o) => {
1742
1742
  for (var t in o || (o = {}))
1743
1743
  Vl.call(o, t) && Ht(e, t, o[t]);
1744
1744
  if (Dt)
1745
1745
  for (var t of Dt(o))
1746
1746
  Ul.call(o, t) && Ht(e, t, o[t]);
1747
1747
  return e;
1748
- }, fn = (e, o) => Bl(e, jl(o));
1748
+ }, fn = (e, o) => Nl(e, jl(o));
1749
1749
  const Wl = ["onPointerdown"], Ql = {
1750
1750
  name: "ScrollbarThumb"
1751
1751
  };
1752
1752
  function Gl(e, { expose: o }) {
1753
1753
  const t = e;
1754
- xn((b) => ({
1754
+ Cn((b) => ({
1755
1755
  "1fb98f78": U(l)
1756
1756
  }));
1757
1757
  const l = Q(() => {
@@ -1768,7 +1768,7 @@ function Gl(e, { expose: o }) {
1768
1768
  }, c = () => {
1769
1769
  n !== null && clearTimeout(n);
1770
1770
  };
1771
- Be(c);
1771
+ Ne(c);
1772
1772
  const d = cn((b) => {
1773
1773
  b.stopPropagation(), b.preventDefault();
1774
1774
  const E = t.type === "horizontal" ? "pageX" : "pageY", I = (b[E] - s[E]) / t.scrollInfo.wrapperMainSize * t.scrollInfo.contentMainSize;
@@ -1783,17 +1783,17 @@ function Gl(e, { expose: o }) {
1783
1783
  c(), r.value && r.value.classList.add("scrollbar__thumbPlaceholder--scrolling"), u();
1784
1784
  }
1785
1785
  });
1786
- let F = Z(!1), _ = Z(!1), x = Z(null), P = null, O = null, z = Q(() => t.fixedThumb && !_.value);
1786
+ let F = Z(!1), _ = Z(!1), C = Z(null), P = null, O = null, z = Q(() => t.fixedThumb && !_.value);
1787
1787
  const R = ([b]) => _.value = b.isIntersecting, H = ([b]) => F.value = b.isIntersecting, y = () => {
1788
1788
  P && (P.disconnect(), P = null), O && (O.disconnect(), O = null);
1789
1789
  };
1790
1790
  return W(() => [t.fixedThumb, t.wrapperEl], () => {
1791
1791
  if (!t.fixedThumb || !t.wrapperEl)
1792
1792
  return y();
1793
- y(), O = new IntersectionObserver(H, { threshold: [0, 0.5] }), O.observe(t.wrapperEl), P = new IntersectionObserver(R), P.observe(x.value);
1794
- }), Be(y), (b, E) => (p(), m(D, null, [
1793
+ y(), O = new IntersectionObserver(H, { threshold: [0, 0.5] }), O.observe(t.wrapperEl), P = new IntersectionObserver(R), P.observe(C.value);
1794
+ }), Ne(y), (b, E) => (p(), m(D, null, [
1795
1795
  J(v("div", {
1796
- class: C([
1796
+ class: x([
1797
1797
  "scrollbar__thumbPlaceholder",
1798
1798
  `scrollbar__thumbPlaceholder--${e.type}`,
1799
1799
  {
@@ -1807,25 +1807,25 @@ function Gl(e, { expose: o }) {
1807
1807
  position: z.value ? "fixed" : "absolute",
1808
1808
  [e.type === "vertical" ? "top" : "left"]: z.value ? `${e.scrollInfo.boundaryDistance + 3}px` : "3px"
1809
1809
  }),
1810
- ref: (I, N) => {
1811
- N.thumbEl = I, r.value = I;
1810
+ ref: (I, B) => {
1811
+ B.thumbEl = I, r.value = I;
1812
1812
  },
1813
1813
  onPointerdown: le(S, ["stop"])
1814
1814
  }, [
1815
1815
  E[0] || (kt(-1), E[0] = v("div", {
1816
- class: C(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
1816
+ class: x(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
1817
1817
  }, null, 2), kt(1), E[0])
1818
1818
  ], 46, Wl), [
1819
- [Ne, !!e.scrollInfo.thumbSize && (e.fixedThumb ? F.value : !0)]
1819
+ [Be, !!e.scrollInfo.thumbSize && (e.fixedThumb ? F.value : !0)]
1820
1820
  ]),
1821
1821
  t.fixedThumb ? J((p(), m("div", {
1822
1822
  key: 0,
1823
- ref: (I, N) => {
1824
- N.shepherdEl = I, x.value = I;
1823
+ ref: (I, B) => {
1824
+ B.shepherdEl = I, C.value = I;
1825
1825
  },
1826
- class: C(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
1826
+ class: x(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
1827
1827
  }, null, 2)), [
1828
- [Ne, !!e.scrollInfo.thumbSize]
1828
+ [Be, !!e.scrollInfo.thumbSize]
1829
1829
  ]) : $("", !0)
1830
1830
  ], 64));
1831
1831
  }
@@ -1845,7 +1845,7 @@ const Kl = /* @__PURE__ */ ie(fn(Ie({}, Ql), {
1845
1845
  wait: 333,
1846
1846
  type: "debounce"
1847
1847
  };
1848
- function Nt(...e) {
1848
+ function Bt(...e) {
1849
1849
  const o = "value" in (e == null ? void 0 : e[0]);
1850
1850
  let t;
1851
1851
  o ? t = e == null ? void 0 : e[1] : t = e == null ? void 0 : e[0];
@@ -1859,7 +1859,7 @@ function Nt(...e) {
1859
1859
  };
1860
1860
  return Ln(() => {
1861
1861
  s.value && (w(), c = u, n === "throttle" && l >= 4 ? c = cn(c, l) : n === "debounce" && l >= 4 && (c = un(c, l)), window.addEventListener("resize", c), d = new ResizeObserver(c), d.observe(s.value));
1862
- }), Be(w), o ? i : [s, i];
1862
+ }), Ne(w), o ? i : [s, i];
1863
1863
  }
1864
1864
  const Yl = {
1865
1865
  name: "CustomScrollbar",
@@ -1882,7 +1882,7 @@ function Jl(e, { expose: o, emit: t }) {
1882
1882
  return (E = b == null ? void 0 : b.classList) == null ? void 0 : E.contains(`scrollbar__thumbPlaceholder--${y}`);
1883
1883
  });
1884
1884
  });
1885
- const u = Nt(s, { wait: l.throttleWait, type: l.throttleType, callback: S }), c = Nt(i, { wait: l.throttleWait, type: l.throttleType, callback: S });
1885
+ const u = Bt(s, { wait: l.throttleWait, type: l.throttleType, callback: S }), c = Bt(i, { wait: l.throttleWait, type: l.throttleType, callback: S });
1886
1886
  let d = Z(0), w = Z(0);
1887
1887
  function S() {
1888
1888
  d.value = Math.max(s.value.scrollHeight - u.height | 0, 0), w.value = Math.max(s.value.scrollWidth - u.width | 0, 0);
@@ -1897,22 +1897,22 @@ function Jl(e, { expose: o, emit: t }) {
1897
1897
  contentMainSize: c.height,
1898
1898
  wrapperMainSize: u.height,
1899
1899
  boundaryDistance: Math.abs(u.top)
1900
- })), _ = Q(() => u.height - F.value.thumbSize - 5), x = Q(() => u.width - L.value.thumbSize - 5);
1900
+ })), _ = Q(() => u.height - F.value.thumbSize - 5), C = Q(() => u.width - L.value.thumbSize - 5);
1901
1901
  const P = () => {
1902
- w.value && (n.horizontal.el.style.transform = `translate3d(${s.value.scrollLeft / w.value * x.value}px, 0, 0)`, n.horizontal.instance.autoHideAfterScroll()), d.value && (n.vertical.el.style.transform = `translate3d(0, ${s.value.scrollTop / d.value * _.value}px, 0)`, n.vertical.instance.autoHideAfterScroll());
1902
+ w.value && (n.horizontal.el.style.transform = `translate3d(${s.value.scrollLeft / w.value * C.value}px, 0, 0)`, n.horizontal.instance.autoHideAfterScroll()), d.value && (n.vertical.el.style.transform = `translate3d(0, ${s.value.scrollTop / d.value * _.value}px, 0)`, n.vertical.instance.autoHideAfterScroll());
1903
1903
  };
1904
1904
  W(() => [w.value, d.value], P);
1905
1905
  const O = (R) => {
1906
1906
  R.stopPropagation();
1907
1907
  const H = s.value.scrollLeft, y = s.value.scrollTop, b = ke(H + ((R == null ? void 0 : R.deltaX) || 0), 0, w.value) | 0, E = ke(y + ((R == null ? void 0 : R.deltaY) || 0), 0, d.value) | 0;
1908
- s.value.scrollLeft = b, s.value.scrollTop = E, w.value && (n.horizontal.el.style.transform = `translate3d(${b / w.value * x.value}px, 0, 0)`, n.horizontal.instance.autoHideAfterScroll()), d.value && (n.vertical.el.style.transform = `translate3d(0, ${E / d.value * _.value}px, 0)`, n.vertical.instance.autoHideAfterScroll()), t("scroll", { target: s.value, scrollLeft: b, scrollTop: E });
1908
+ s.value.scrollLeft = b, s.value.scrollTop = E, w.value && (n.horizontal.el.style.transform = `translate3d(${b / w.value * C.value}px, 0, 0)`, n.horizontal.instance.autoHideAfterScroll()), d.value && (n.vertical.el.style.transform = `translate3d(0, ${E / d.value * _.value}px, 0)`, n.vertical.instance.autoHideAfterScroll()), t("scroll", { target: s.value, scrollLeft: b, scrollTop: E });
1909
1909
  }, z = (R) => {
1910
1910
  l.simulateScroll ? O(R) : P();
1911
1911
  };
1912
1912
  return W(u, () => t("wrapperResize", u)), W(c, () => t("contentResize", c)), o({
1913
1913
  scrollEl: s
1914
1914
  }), (R, H) => (p(), m("div", {
1915
- class: C(["scrollbar__wrapper", e.wrapperClass]),
1915
+ class: x(["scrollbar__wrapper", e.wrapperClass]),
1916
1916
  style: ve(e.wrapperStyle)
1917
1917
  }, [
1918
1918
  v("div", Sn({
@@ -1928,7 +1928,7 @@ function Jl(e, { expose: o, emit: t }) {
1928
1928
  ref: (y, b) => {
1929
1929
  b.contentEl = y, i.value = y;
1930
1930
  },
1931
- class: C(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
1931
+ class: x(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
1932
1932
  style: ve(e.contentStyle)
1933
1933
  }, [
1934
1934
  de(R.$slots, "default")
@@ -2043,20 +2043,20 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2043
2043
  ])
2044
2044
  ], -1), vr = [
2045
2045
  pr
2046
- ], gr = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, mr = { class: "bh-pagination-info bh-flex bh-items-center" }, br = { class: "bh-mr-2" }, yr = ["value"], wr = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, kr = ["innerHTML"], Cr = {
2046
+ ], gr = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, mr = { class: "bh-pagination-info bh-flex bh-items-center" }, br = { class: "bh-mr-2" }, yr = ["value"], wr = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, kr = ["innerHTML"], xr = {
2047
2047
  key: 1,
2048
2048
  "aria-hidden": "true",
2049
2049
  width: "14",
2050
2050
  height: "14",
2051
2051
  viewBox: "0 0 16 16"
2052
- }, xr = /* @__PURE__ */ v("g", {
2052
+ }, Cr = /* @__PURE__ */ v("g", {
2053
2053
  fill: "currentColor",
2054
2054
  "fill-rule": "evenodd"
2055
2055
  }, [
2056
2056
  /* @__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" }),
2057
2057
  /* @__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" })
2058
2058
  ], -1), Sr = [
2059
- xr
2059
+ Cr
2060
2060
  ], _r = ["innerHTML"], Lr = {
2061
2061
  key: 1,
2062
2062
  "aria-hidden": "true",
@@ -2140,7 +2140,11 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2140
2140
  stickyFirstColumn: { type: Boolean, default: !1 },
2141
2141
  cloneHeaderInFooter: { type: Boolean, default: !1 },
2142
2142
  selectRowOnClick: { type: Boolean, default: !1 },
2143
- scrollbarstyle: {}
2143
+ scrollbarstyle: {},
2144
+ scrollbarautohide: { type: Boolean, default: !0 },
2145
+ scrollbarfixedthumb: { type: Boolean, default: !1 },
2146
+ scrollbarautoexpand: { type: Boolean, default: !1 },
2147
+ scrollbardirection: { default: "horizontal" }
2144
2148
  },
2145
2149
  emits: ["change", "sortChange", "searchChange", "pageChange", "pageSizeChange", "rowSelect", "filterChange", "rowClick", "rowDBClick"],
2146
2150
  setup(e, { expose: o, emit: t }) {
@@ -2150,7 +2154,7 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2150
2154
  const h = ((gt = a.type) == null ? void 0 : gt.toLowerCase()) || "string";
2151
2155
  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";
2152
2156
  }
2153
- const r = j([]), s = j(n.page), i = j(n.pagination ? n.pageSize : (mt = n.rows) == null ? void 0 : mt.length), u = n.pageSize, c = j(n.sortColumn), d = n.sortColumn, w = j(n.sortDirection), S = n.sortDirection, L = j(n.totalRows), F = j([]), _ = j(null), x = j(n.loading), P = j(n.search), O = JSON.parse(JSON.stringify(n.columns)), z = j(null), R = j(null);
2157
+ const r = j([]), s = j(n.page), i = j(n.pagination ? n.pageSize : (mt = n.rows) == null ? void 0 : mt.length), u = n.pageSize, c = j(n.sortColumn), d = n.sortColumn, w = j(n.sortDirection), S = n.sortDirection, L = j(n.totalRows), F = j([]), _ = j(null), C = j(n.loading), P = j(n.search), O = JSON.parse(JSON.stringify(n.columns)), z = j(null), R = j(null);
2154
2158
  let H = j(0);
2155
2159
  const y = j(230);
2156
2160
  Xe(() => {
@@ -2186,7 +2190,7 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2186
2190
  const E = (a, ...h) => a.replace(/{(\d+)}/g, (g, M) => typeof h[M] < "u" ? h[M] : g), I = Q(() => {
2187
2191
  const a = n.columns.find((h) => h.isUnique);
2188
2192
  return (a == null ? void 0 : a.field) || null;
2189
- }), N = Q(() => {
2193
+ }), B = Q(() => {
2190
2194
  const a = i.value < 1 ? 1 : Math.ceil(L.value / i.value);
2191
2195
  return Math.max(a || 0, 1);
2192
2196
  }), Pe = Q(() => (s.value - 1) * i.value + 1), ze = Q(() => {
@@ -2194,9 +2198,9 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2194
2198
  return L.value >= a ? a : L.value;
2195
2199
  }), ot = Q(() => {
2196
2200
  let a, h;
2197
- return typeof n.showNumbersCount < "u" && n.showNumbersCount < N.value ? (a = Math.max(s.value - Math.floor(n.showNumbersCount / 2), 1), h = a + n.showNumbersCount - 1, h > N.value && (h = N.value, a = h - n.showNumbersCount + 1)) : (a = 1, h = N.value), Array.from(Array(h + 1 - a).keys()).map((V) => a + V);
2201
+ return typeof n.showNumbersCount < "u" && n.showNumbersCount < B.value ? (a = Math.max(s.value - Math.floor(n.showNumbersCount / 2), 1), h = a + n.showNumbersCount - 1, h > B.value && (h = B.value, a = h - n.showNumbersCount + 1)) : (a = 1, h = B.value), Array.from(Array(h + 1 - a).keys()).map((V) => a + V);
2198
2202
  }), lt = () => {
2199
- var V, B, X;
2203
+ var V, N, X;
2200
2204
  let a = n.rows || [];
2201
2205
  if (!n.isServerMode) {
2202
2206
  if ((V = n.columns) == null || V.forEach((f) => {
@@ -2224,7 +2228,7 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2224
2228
  const k = (n.columns || []).filter((q) => q.search && !q.hide).map((q) => q.field);
2225
2229
  for (var h = 0; h < (a == null ? void 0 : a.length); h++)
2226
2230
  for (var g = 0; g < k.length; g++)
2227
- if ((B = T(a[h], k[g])) != null && B.toString().toLowerCase().includes(P.value.toLowerCase())) {
2231
+ if ((N = T(a[h], k[g])) != null && N.toString().toLowerCase().includes(P.value.toLowerCase())) {
2228
2232
  f.push(a[h]);
2229
2233
  break;
2230
2234
  }
@@ -2251,7 +2255,7 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2251
2255
  W(
2252
2256
  () => n.loading,
2253
2257
  () => {
2254
- x.value = n.loading;
2258
+ C.value = n.loading;
2255
2259
  }
2256
2260
  );
2257
2261
  const rt = (a) => {
@@ -2263,7 +2267,7 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2263
2267
  }, st = (a) => {
2264
2268
  s.value = a;
2265
2269
  }, at = () => {
2266
- if (s.value >= N.value)
2270
+ if (s.value >= B.value)
2267
2271
  return !1;
2268
2272
  s.value++;
2269
2273
  };
@@ -2363,24 +2367,24 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2363
2367
  vt.value++;
2364
2368
  }, 2200), (a, h) => (p(), m("div", er, [
2365
2369
  v("div", {
2366
- class: C(n.scrollbarstyle)
2370
+ class: x(n.scrollbarstyle)
2367
2371
  }, [
2368
2372
  G(U(Zl), {
2369
- autoHide: !0,
2370
- fixedThumb: !0,
2371
- autoExpand: !1,
2372
- throttleType: "none"
2373
+ autoHide: n.scrollbarautohide,
2374
+ fixedThumb: n.scrollbarfixedthumb,
2375
+ autoExpand: n.scrollbarautoexpand,
2376
+ direction: n.scrollbardirection
2373
2377
  }, {
2374
2378
  default: In(() => [
2375
2379
  v("div", {
2376
- class: C(["bh-table-responsive", { "bh-min-h-[100px]": x.value }]),
2380
+ class: x(["bh-table-responsive", { "bh-min-h-[100px]": C.value }]),
2377
2381
  style: ve([{ overflow: "inherit" }, { height: n.stickyHeader && n.height }])
2378
2382
  }, [
2379
2383
  v("table", {
2380
- class: C([n.skin])
2384
+ class: x([n.skin])
2381
2385
  }, [
2382
2386
  v("thead", {
2383
- class: C({ "bh-sticky bh-top-0 bh-z-10": n.stickyHeader })
2387
+ class: x({ "bh-sticky bh-top-0 bh-z-10": n.stickyHeader })
2384
2388
  }, [
2385
2389
  G(At, {
2386
2390
  all: n,
@@ -2404,18 +2408,18 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2404
2408
  }, [
2405
2409
  L.value ? (p(), m("tr", {
2406
2410
  key: 0,
2407
- class: C([typeof n.rowClass == "function" ? a.rowClass(g) : n.rowClass, n.selectRowOnClick ? "bh-cursor-pointer" : ""]),
2408
- onClick: le((B) => dt(g, M), ["prevent"])
2411
+ class: x([typeof n.rowClass == "function" ? a.rowClass(g) : n.rowClass, n.selectRowOnClick ? "bh-cursor-pointer" : ""]),
2412
+ onClick: le((N) => dt(g, M), ["prevent"])
2409
2413
  }, [
2410
2414
  n.hasCheckbox ? (p(), m("td", {
2411
2415
  key: 0,
2412
- class: C({
2416
+ class: x({
2413
2417
  "bh-sticky bh-left-0 bh-bg-blue-light": n.stickyFirstColumn
2414
2418
  })
2415
2419
  }, [
2416
2420
  v("div", nr, [
2417
2421
  J(v("input", {
2418
- "onUpdate:modelValue": h[0] || (h[0] = (B) => F.value = B),
2422
+ "onUpdate:modelValue": h[0] || (h[0] = (N) => F.value = N),
2419
2423
  type: "checkbox",
2420
2424
  value: g[I.value] ? g[I.value] : M,
2421
2425
  onClick: h[1] || (h[1] = le(() => {
@@ -2430,7 +2434,7 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2430
2434
  ], 2)) : $("", !0),
2431
2435
  n.hasSubtable ? (p(), m("td", {
2432
2436
  key: 1,
2433
- class: C({
2437
+ class: x({
2434
2438
  "bh-sticky bh-left-0 bh-bg-blue-light": n.stickyFirstColumn
2435
2439
  })
2436
2440
  }, [
@@ -2439,32 +2443,32 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2439
2443
  expandedrows: ue.value
2440
2444
  }, null, 8, ["item", "expandedrows"])
2441
2445
  ], 2)) : $("", !0),
2442
- (p(!0), m(D, null, Y(n.columns, (B, X) => (p(), m(D, null, [
2443
- B.hide ? $("", !0) : (p(), m("td", {
2444
- key: B.field,
2445
- class: C([
2446
+ (p(!0), m(D, null, Y(n.columns, (N, X) => (p(), m(D, null, [
2447
+ N.hide ? $("", !0) : (p(), m("td", {
2448
+ key: N.field,
2449
+ class: x([
2446
2450
  typeof n.cellClass == "function" ? a.cellClass(g) : n.cellClass,
2447
2451
  X === 0 && n.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2448
2452
  n.hasCheckbox && X === 0 && n.stickyFirstColumn ? "bh-left-[52px]" : "",
2449
- B.cellClass ? B.cellClass : ""
2453
+ N.cellClass ? N.cellClass : ""
2450
2454
  ])
2451
2455
  }, [
2452
- U(l)[B.field] ? de(a.$slots, B.field, {
2456
+ U(l)[N.field] ? de(a.$slots, N.field, {
2453
2457
  key: 0,
2454
2458
  value: g
2455
- }) : B.cellRenderer ? (p(), m("div", {
2459
+ }) : N.cellRenderer ? (p(), m("div", {
2456
2460
  key: 1,
2457
- innerHTML: B.cellRenderer(g)
2461
+ innerHTML: N.cellRenderer(g)
2458
2462
  }, null, 8, lr)) : (p(), m(D, { key: 2 }, [
2459
- He(A(T(g, B.field)), 1)
2463
+ He(A(T(g, N.field)), 1)
2460
2464
  ], 64))
2461
2465
  ], 2))
2462
2466
  ], 64))), 256))
2463
2467
  ], 10, tr)) : $("", !0),
2464
- (V = ue.value.find((B) => B.id == g.id)) != null && V.isExpanded && n.hasSubtable ? (p(), m("tr", {
2468
+ (V = ue.value.find((N) => N.id == g.id)) != null && V.isExpanded && n.hasSubtable ? (p(), m("tr", {
2465
2469
  key: 1,
2466
- class: C([typeof n.rowClass == "function" ? a.rowClass(g) : n.rowClass, n.selectRowOnClick ? "bh-cursor-pointer" : ""]),
2467
- onClick: le((B) => dt(g, M), ["prevent"])
2470
+ class: x([typeof n.rowClass == "function" ? a.rowClass(g) : n.rowClass, n.selectRowOnClick ? "bh-cursor-pointer" : ""]),
2471
+ onClick: le((N) => dt(g, M), ["prevent"])
2468
2472
  }, [
2469
2473
  v("td", {
2470
2474
  colspan: n.columns.length + U(ae)
@@ -2474,12 +2478,12 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2474
2478
  ], 10, rr)) : $("", !0)
2475
2479
  ], 64);
2476
2480
  }), 128)),
2477
- !L.value && !x.value ? (p(), m("tr", sr, [
2481
+ !L.value && !C.value ? (p(), m("tr", sr, [
2478
2482
  v("td", {
2479
2483
  colspan: n.columns.length + U(ae)
2480
2484
  }, A(n.noDataContent), 9, ar)
2481
2485
  ])) : $("", !0),
2482
- !L.value && x.value ? (p(!0), m(D, { key: 1 }, Y(n.pageSize, (g) => (p(), m("tr", {
2486
+ !L.value && C.value ? (p(!0), m(D, { key: 1 }, Y(n.pageSize, (g) => (p(), m("tr", {
2483
2487
  key: g,
2484
2488
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
2485
2489
  }, [
@@ -2492,13 +2496,13 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2492
2496
  key: g[I.value] ? g[I.value] : M
2493
2497
  }, [
2494
2498
  v("td", { colspan: U(ae) }, null, 8, dr),
2495
- (p(!0), m(D, null, Y(n.columns, (V, B) => (p(), m(D, null, [
2499
+ (p(!0), m(D, null, Y(n.columns, (V, N) => (p(), m(D, null, [
2496
2500
  V.hide ? $("", !0) : (p(), m("td", {
2497
2501
  key: V.field,
2498
- class: C([
2502
+ class: x([
2499
2503
  typeof n.cellClass == "function" ? a.cellClass(g) : n.cellClass,
2500
- B === 0 && n.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2501
- n.hasCheckbox && B === 0 && n.stickyFirstColumn ? "bh-left-[52px]" : "",
2504
+ N === 0 && n.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2505
+ n.hasCheckbox && N === 0 && n.stickyFirstColumn ? "bh-left-[52px]" : "",
2502
2506
  V.cellClass ? V.cellClass : ""
2503
2507
  ])
2504
2508
  }, [
@@ -2511,7 +2515,7 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2511
2515
  ]),
2512
2516
  n.cloneHeaderInFooter ? (p(), m("tfoot", {
2513
2517
  key: 0,
2514
- class: C({ "bh-sticky bh-bottom-0": n.stickyHeader })
2518
+ class: x({ "bh-sticky bh-bottom-0": n.stickyHeader })
2515
2519
  }, [
2516
2520
  G(At, {
2517
2521
  all: n,
@@ -2527,7 +2531,7 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2527
2531
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
2528
2532
  ], 2)) : $("", !0)
2529
2533
  ], 2),
2530
- L.value && x.value ? (p(), m("div", hr, [
2534
+ L.value && C.value ? (p(), m("div", hr, [
2531
2535
  (p(), m("svg", {
2532
2536
  key: vt.value,
2533
2537
  xmlns: "http://www.w3.org/2000/svg",
@@ -2539,11 +2543,11 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2539
2543
  ], 6)
2540
2544
  ]),
2541
2545
  _: 3
2542
- })
2546
+ }, 8, ["autoHide", "fixedThumb", "autoExpand", "direction"])
2543
2547
  ], 2),
2544
2548
  n.pagination && L.value ? (p(), m("div", {
2545
2549
  key: 0,
2546
- class: C(["bh-pagination", { "bh-pointer-events-none": x.value, "sticky-footer": n.stickyFooter }])
2550
+ class: x(["bh-pagination", { "bh-pointer-events-none": C.value, "sticky-footer": n.stickyFooter }])
2547
2551
  }, [
2548
2552
  v("div", gr, [
2549
2553
  de(a.$slots, "footerpageinfo", {
@@ -2569,13 +2573,13 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2569
2573
  key: g
2570
2574
  }, A(g), 9, yr))), 128))
2571
2575
  ], 512)), [
2572
- [Bt, i.value]
2576
+ [Nt, i.value]
2573
2577
  ]) : $("", !0)
2574
2578
  ])
2575
2579
  ]),
2576
2580
  de(a.$slots, "footerpagination", {
2577
2581
  currentPage: s.value,
2578
- maxPage: N.value,
2582
+ maxPage: B.value,
2579
2583
  paging: ot.value,
2580
2584
  movePage: st,
2581
2585
  nextPage: at,
@@ -2585,17 +2589,17 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2585
2589
  n.showFirstPage ? (p(), m("button", {
2586
2590
  key: 0,
2587
2591
  type: "button",
2588
- class: C(["bh-page-item first-page", { disabled: s.value <= 1 }]),
2592
+ class: x(["bh-page-item first-page", { disabled: s.value <= 1 }]),
2589
2593
  onClick: h[3] || (h[3] = (g) => s.value = 1)
2590
2594
  }, [
2591
2595
  n.firstArrow ? (p(), m("span", {
2592
2596
  key: 0,
2593
2597
  innerHTML: n.firstArrow
2594
- }, null, 8, kr)) : (p(), m("svg", Cr, Sr))
2598
+ }, null, 8, kr)) : (p(), m("svg", xr, Sr))
2595
2599
  ], 2)) : $("", !0),
2596
2600
  v("button", {
2597
2601
  type: "button",
2598
- class: C(["bh-page-item previous-page", { disabled: s.value <= 1 }]),
2602
+ class: x(["bh-page-item previous-page", { disabled: s.value <= 1 }]),
2599
2603
  onClick: it
2600
2604
  }, [
2601
2605
  n.previousArrow ? (p(), m("span", {
@@ -2606,7 +2610,7 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2606
2610
  n.showNumbers ? (p(!0), m(D, { key: 1 }, Y(ot.value, (g) => (p(), m("button", {
2607
2611
  key: g,
2608
2612
  type: "button",
2609
- class: C(["bh-page-item", {
2613
+ class: x(["bh-page-item", {
2610
2614
  disabled: s.value === g,
2611
2615
  "bh-active": g === s.value
2612
2616
  }]),
@@ -2614,7 +2618,7 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2614
2618
  }, A(g), 11, Tr))), 128)) : $("", !0),
2615
2619
  v("button", {
2616
2620
  type: "button",
2617
- class: C(["bh-page-item next-page", { disabled: s.value >= N.value }]),
2621
+ class: x(["bh-page-item next-page", { disabled: s.value >= B.value }]),
2618
2622
  onClick: at
2619
2623
  }, [
2620
2624
  n.nextArrow ? (p(), m("span", {
@@ -2625,8 +2629,8 @@ const Zl = /* @__PURE__ */ ie(fn(Ie({}, Yl), {
2625
2629
  n.showLastPage ? (p(), m("button", {
2626
2630
  key: 2,
2627
2631
  type: "button",
2628
- class: C(["bh-page-item last-page", { disabled: s.value >= N.value }]),
2629
- onClick: h[4] || (h[4] = (g) => s.value = N.value)
2632
+ class: x(["bh-page-item last-page", { disabled: s.value >= B.value }]),
2633
+ onClick: h[4] || (h[4] = (g) => s.value = B.value)
2630
2634
  }, [
2631
2635
  n.lastArrow ? (p(), m("span", {
2632
2636
  key: 0,