@dolusoft/vue3-datatable 1.7.27 → 1.7.28

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 Le, nextTick as Oe, getCurrentScope as Vn, onScopeDispose as Un, unref as Q, getCurrentInstance as Ct, computed as K, ref as B, watch as te, defineComponent as we, useCssVars as Gn, shallowRef as me, onUnmounted as Ze, openBlock as m, createElementBlock as w, Fragment as U, withDirectives as ve, createElementVNode as C, normalizeClass as M, normalizeStyle as ee, withModifiers as ye, setBlockTracking as Bt, vShow as pt, createCommentVNode as N, mergeProps as Qn, renderSlot as ae, renderList as pe, createVNode as oe, reactive as Kn, watchEffect as Xn, useSlots as un, onBeforeUnmount as zt, provide as Ce, createBlock as ce, resolveDynamicComponent as Yn, inject as Pe, h as vt, toRef as Jn, toDisplayString as H, createTextVNode as mt, vModelText as ut, vModelSelect as cn, withCtx as _e, vModelCheckbox as Zn } from "vue";
1
+ import { onMounted as Le, nextTick as Oe, getCurrentScope as Vn, onScopeDispose as Un, unref as K, getCurrentInstance as Ct, computed as X, ref as D, watch as te, defineComponent as we, useCssVars as Gn, shallowRef as me, onUnmounted as Ze, openBlock as m, createElementBlock as w, Fragment as G, withDirectives as ve, createElementVNode as L, normalizeClass as _, normalizeStyle as ee, withModifiers as ye, setBlockTracking as Dt, vShow as pt, createCommentVNode as N, mergeProps as Qn, renderSlot as ae, renderList as pe, createVNode as oe, reactive as Kn, watchEffect as Xn, useSlots as un, onBeforeUnmount as zt, provide as Ce, createBlock as ce, resolveDynamicComponent as Yn, inject as Me, h as vt, toRef as Jn, toDisplayString as H, createTextVNode as mt, vModelText as ut, vModelSelect as cn, withCtx as Pe, vModelCheckbox as Zn } from "vue";
2
2
  function el(e) {
3
3
  return Vn() ? (Un(e), !0) : !1;
4
4
  }
5
5
  function tl(e) {
6
- return typeof e == "function" ? e() : Q(e);
6
+ return typeof e == "function" ? e() : K(e);
7
7
  }
8
8
  const nl = typeof window < "u" && typeof document < "u";
9
9
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -13,28 +13,28 @@ function ll(e) {
13
13
  function ol(e, l = !0, n) {
14
14
  ll() ? Le(e, n) : l ? e() : Oe(e);
15
15
  }
16
- function Me(e) {
16
+ function _e(e) {
17
17
  var l;
18
18
  const n = tl(e);
19
19
  return (l = n == null ? void 0 : n.$el) != null ? l : n;
20
20
  }
21
21
  const dn = nl ? window : void 0;
22
22
  function il() {
23
- const e = B(!1), l = Ct();
23
+ const e = D(!1), l = Ct();
24
24
  return l && Le(() => {
25
25
  e.value = !0;
26
26
  }, l), e;
27
27
  }
28
28
  function rl(e) {
29
29
  const l = il();
30
- return K(() => (l.value, !!e()));
30
+ return X(() => (l.value, !!e()));
31
31
  }
32
32
  function sl(e, l, n = {}) {
33
33
  const { window: o = dn, ...t } = n;
34
34
  let i;
35
35
  const s = rl(() => o && "ResizeObserver" in o), r = () => {
36
36
  i && (i.disconnect(), i = void 0);
37
- }, u = K(() => Array.isArray(e) ? e.map((p) => Me(p)) : [Me(e)]), f = te(
37
+ }, u = X(() => Array.isArray(e) ? e.map((p) => _e(p)) : [_e(e)]), f = te(
38
38
  u,
39
39
  (p) => {
40
40
  if (r(), s.value && o) {
@@ -53,15 +53,15 @@ function sl(e, l, n = {}) {
53
53
  };
54
54
  }
55
55
  function al(e, l = { width: 0, height: 0 }, n = {}) {
56
- const { window: o = dn, box: t = "content-box" } = n, i = K(() => {
56
+ const { window: o = dn, box: t = "content-box" } = n, i = X(() => {
57
57
  var p, E;
58
- return (E = (p = Me(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : E.includes("svg");
59
- }), s = B(l.width), r = B(l.height), { stop: u } = sl(
58
+ return (E = (p = _e(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : E.includes("svg");
59
+ }), s = D(l.width), r = D(l.height), { stop: u } = sl(
60
60
  e,
61
61
  ([p]) => {
62
62
  const E = t === "border-box" ? p.borderBoxSize : t === "content-box" ? p.contentBoxSize : p.devicePixelContentBoxSize;
63
63
  if (o && i.value) {
64
- const T = Me(e);
64
+ const T = _e(e);
65
65
  if (T) {
66
66
  const I = T.getBoundingClientRect();
67
67
  s.value = I.width, r.value = I.height;
@@ -75,11 +75,11 @@ function al(e, l = { width: 0, height: 0 }, n = {}) {
75
75
  n
76
76
  );
77
77
  ol(() => {
78
- const p = Me(e);
78
+ const p = _e(e);
79
79
  p && (s.value = "offsetWidth" in p ? p.offsetWidth : l.width, r.value = "offsetHeight" in p ? p.offsetHeight : l.height);
80
80
  });
81
81
  const f = te(
82
- () => Me(e),
82
+ () => _e(e),
83
83
  (p) => {
84
84
  s.value = p ? l.width : 0, r.value = p ? l.height : 0;
85
85
  }
@@ -108,9 +108,9 @@ var pl = Object.prototype, vl = pl.toString;
108
108
  function ml(e) {
109
109
  return vl.call(e);
110
110
  }
111
- var gl = "[object Null]", bl = "[object Undefined]", Dt = et ? et.toStringTag : void 0;
111
+ var gl = "[object Null]", bl = "[object Undefined]", Bt = et ? et.toStringTag : void 0;
112
112
  function yl(e) {
113
- return e == null ? e === void 0 ? bl : gl : Dt && Dt in Object(e) ? hl(e) : ml(e);
113
+ return e == null ? e === void 0 ? bl : gl : Bt && Bt in Object(e) ? hl(e) : ml(e);
114
114
  }
115
115
  function wl(e) {
116
116
  return e != null && typeof e == "object";
@@ -133,7 +133,7 @@ function tt(e) {
133
133
  var l = typeof e;
134
134
  return e != null && (l == "object" || l == "function");
135
135
  }
136
- var qt = NaN, El = /^[-+]0x[0-9a-f]+$/i, Pl = /^0b[01]+$/i, _l = /^0o[0-7]+$/i, Ml = parseInt;
136
+ var qt = NaN, El = /^[-+]0x[0-9a-f]+$/i, Ml = /^0b[01]+$/i, Pl = /^0o[0-7]+$/i, _l = parseInt;
137
137
  function $e(e) {
138
138
  if (typeof e == "number")
139
139
  return e;
@@ -146,8 +146,8 @@ function $e(e) {
146
146
  if (typeof e != "string")
147
147
  return e === 0 ? e : +e;
148
148
  e = Ll(e);
149
- var n = Pl.test(e);
150
- return n || _l.test(e) ? Ml(e.slice(2), n ? 2 : 8) : El.test(e) ? qt : +e;
149
+ var n = Ml.test(e);
150
+ return n || Pl.test(e) ? _l(e.slice(2), n ? 2 : 8) : El.test(e) ? qt : +e;
151
151
  }
152
152
  function Tl(e, l, n) {
153
153
  return e === e && (n !== void 0 && (e = e <= n ? e : n), l !== void 0 && (e = e >= l ? e : l)), e;
@@ -163,29 +163,29 @@ function pn(e, l, n) {
163
163
  if (typeof e != "function")
164
164
  throw new TypeError(Il);
165
165
  l = $e(l) || 0, tt(n) && (d = !!n.leading, p = "maxWait" in n, i = p ? Fl($e(n.maxWait) || 0, l) : i, E = "trailing" in n ? !!n.trailing : E);
166
- function T(z) {
167
- var L = o, W = t;
168
- return o = t = void 0, f = z, s = e.apply(W, L), s;
166
+ function T(S) {
167
+ var k = o, A = t;
168
+ return o = t = void 0, f = S, s = e.apply(A, k), s;
169
169
  }
170
- function I(z) {
171
- return f = z, r = setTimeout(A, l), d ? T(z) : s;
170
+ function I(S) {
171
+ return f = S, r = setTimeout(W, l), d ? T(S) : s;
172
172
  }
173
- function $(z) {
174
- var L = z - u, W = z - f, X = l - L;
175
- return p ? Ol(X, i - W) : X;
173
+ function $(S) {
174
+ var k = S - u, A = S - f, V = l - k;
175
+ return p ? Ol(V, i - A) : V;
176
176
  }
177
- function y(z) {
178
- var L = z - u, W = z - f;
179
- return u === void 0 || L >= l || L < 0 || p && W >= i;
177
+ function y(S) {
178
+ var k = S - u, A = S - f;
179
+ return u === void 0 || k >= l || k < 0 || p && A >= i;
180
180
  }
181
- function A() {
182
- var z = ct();
183
- if (y(z))
184
- return q(z);
185
- r = setTimeout(A, $(z));
181
+ function W() {
182
+ var S = ct();
183
+ if (y(S))
184
+ return q(S);
185
+ r = setTimeout(W, $(S));
186
186
  }
187
- function q(z) {
188
- return r = void 0, E && o ? T(z) : (o = t = void 0, s);
187
+ function q(S) {
188
+ return r = void 0, E && o ? T(S) : (o = t = void 0, s);
189
189
  }
190
190
  function j() {
191
191
  r !== void 0 && clearTimeout(r), f = 0, o = u = t = r = void 0;
@@ -194,14 +194,14 @@ function pn(e, l, n) {
194
194
  return r === void 0 ? s : q(ct());
195
195
  }
196
196
  function Y() {
197
- var z = ct(), L = y(z);
198
- if (o = arguments, t = this, u = z, L) {
197
+ var S = ct(), k = y(S);
198
+ if (o = arguments, t = this, u = S, k) {
199
199
  if (r === void 0)
200
200
  return I(u);
201
201
  if (p)
202
- return clearTimeout(r), r = setTimeout(A, l), T(u);
202
+ return clearTimeout(r), r = setTimeout(W, l), T(u);
203
203
  }
204
- return r === void 0 && (r = setTimeout(A, l)), s;
204
+ return r === void 0 && (r = setTimeout(W, l)), s;
205
205
  }
206
206
  return Y.cancel = j, Y.flush = O, Y;
207
207
  }
@@ -216,25 +216,25 @@ function vn(e, l, n) {
216
216
  trailing: t
217
217
  });
218
218
  }
219
- var Rl = Object.defineProperty, Nl = Object.defineProperties, Al = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Wl = Object.prototype.hasOwnProperty, Bl = Object.prototype.propertyIsEnumerable, jt = (e, l, n) => l in e ? Rl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[l] = n, nt = (e, l) => {
219
+ var Rl = Object.defineProperty, Nl = Object.defineProperties, Wl = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Al = Object.prototype.hasOwnProperty, Dl = Object.prototype.propertyIsEnumerable, jt = (e, l, n) => l in e ? Rl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[l] = n, nt = (e, l) => {
220
220
  for (var n in l || (l = {}))
221
- Wl.call(l, n) && jt(e, n, l[n]);
221
+ Al.call(l, n) && jt(e, n, l[n]);
222
222
  if (Ht)
223
223
  for (var n of Ht(l))
224
- Bl.call(l, n) && jt(e, n, l[n]);
224
+ Dl.call(l, n) && jt(e, n, l[n]);
225
225
  return e;
226
- }, mn = (e, l) => Nl(e, Al(l));
227
- const Dl = ["onPointerdown"], ql = {
226
+ }, mn = (e, l) => Nl(e, Wl(l));
227
+ const Bl = ["onPointerdown"], ql = {
228
228
  name: "ScrollbarThumb"
229
229
  };
230
230
  function Hl(e, { expose: l }) {
231
231
  const n = e;
232
- Gn((L) => ({
233
- "1fb98f78": Q(o)
232
+ Gn((k) => ({
233
+ "1fb98f78": K(o)
234
234
  }));
235
- const o = K(() => {
236
- var L;
237
- return `${(L = n.thumbWidth) != null ? L : 12}px`;
235
+ const o = X(() => {
236
+ var k;
237
+ return `${(k = n.thumbWidth) != null ? k : 12}px`;
238
238
  });
239
239
  let t = null, i = me(null);
240
240
  const s = { pageX: 0, pageY: 0, scrollPos: 0 };
@@ -247,31 +247,31 @@ function Hl(e, { expose: l }) {
247
247
  t !== null && clearTimeout(t);
248
248
  };
249
249
  Ze(f);
250
- const d = vn((L) => {
251
- L.stopPropagation(), L.preventDefault();
252
- const W = n.type === "horizontal" ? "pageX" : "pageY", X = (L[W] - s[W]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
253
- n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: s.scrollPos + X, behavior: "auto" });
250
+ const d = vn((k) => {
251
+ k.stopPropagation(), k.preventDefault();
252
+ const A = n.type === "horizontal" ? "pageX" : "pageY", V = (k[A] - s[A]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
253
+ n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: s.scrollPos + V, behavior: "auto" });
254
254
  }, 16), p = () => {
255
255
  u(), i.value.removeEventListener("pointermove", d), i.value.removeEventListener("pointerup", p), i.value.removeEventListener("pointercancel", p), i.value.removeEventListener("mousewheel", p), document.removeEventListener("mousewheel", p), typeof r == "number" && i.value.releasePointerCapture(r), r = null;
256
- }, E = (L) => {
257
- L.ctrlKey || L.button !== 0 || (f(), s.pageX = L.pageX, s.pageY = L.pageY, s.scrollPos = n.wrapperEl[n.type === "horizontal" ? "scrollLeft" : "scrollTop"], r = L == null ? void 0 : L.pointerId, i.value.setPointerCapture(r), i.value.addEventListener("pointermove", d), i.value.addEventListener("pointerup", p), i.value.addEventListener("pointercancel", p), i.value.addEventListener("mousewheel", p, { passive: !1 }), document.addEventListener("mousewheel", p, { passive: !1 }), i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"));
256
+ }, E = (k) => {
257
+ k.ctrlKey || k.button !== 0 || (f(), s.pageX = k.pageX, s.pageY = k.pageY, s.scrollPos = n.wrapperEl[n.type === "horizontal" ? "scrollLeft" : "scrollTop"], r = k == null ? void 0 : k.pointerId, i.value.setPointerCapture(r), i.value.addEventListener("pointermove", d), i.value.addEventListener("pointerup", p), i.value.addEventListener("pointercancel", p), i.value.addEventListener("mousewheel", p, { passive: !1 }), document.addEventListener("mousewheel", p, { passive: !1 }), i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"));
258
258
  };
259
259
  l({
260
260
  autoHideAfterScroll: () => {
261
261
  f(), i.value && i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"), u();
262
262
  }
263
263
  });
264
- let I = me(!1), $ = me(!1), y = me(null), A = null, q = null, j = K(() => n.fixedThumb && !$.value);
265
- const O = ([L]) => $.value = L.isIntersecting, Y = ([L]) => I.value = L.isIntersecting, z = () => {
266
- A && (A.disconnect(), A = null), q && (q.disconnect(), q = null);
264
+ let I = me(!1), $ = me(!1), y = me(null), W = null, q = null, j = X(() => n.fixedThumb && !$.value);
265
+ const O = ([k]) => $.value = k.isIntersecting, Y = ([k]) => I.value = k.isIntersecting, S = () => {
266
+ W && (W.disconnect(), W = null), q && (q.disconnect(), q = null);
267
267
  };
268
268
  return te(() => [n.fixedThumb, n.wrapperEl], () => {
269
269
  if (!n.fixedThumb || !n.wrapperEl)
270
- return z();
271
- z(), q = new IntersectionObserver(Y, { threshold: [0, 0.5] }), q.observe(n.wrapperEl), A = new IntersectionObserver(O), A.observe(y.value);
272
- }), Ze(z), (L, W) => (m(), w(U, null, [
273
- ve(C("div", {
274
- class: M([
270
+ return S();
271
+ S(), q = new IntersectionObserver(Y, { threshold: [0, 0.5] }), q.observe(n.wrapperEl), W = new IntersectionObserver(O), W.observe(y.value);
272
+ }), Ze(S), (k, A) => (m(), w(G, null, [
273
+ ve(L("div", {
274
+ class: _([
275
275
  "scrollbar__thumbPlaceholder",
276
276
  `scrollbar__thumbPlaceholder--${e.type}`,
277
277
  {
@@ -285,23 +285,23 @@ function Hl(e, { expose: l }) {
285
285
  position: j.value ? "fixed" : "absolute",
286
286
  [e.type === "vertical" ? "top" : "left"]: j.value ? `${e.scrollInfo.boundaryDistance + 3}px` : "3px"
287
287
  }),
288
- ref: (X, Z) => {
289
- Z.thumbEl = X, i.value = X;
288
+ ref: (V, Z) => {
289
+ Z.thumbEl = V, i.value = V;
290
290
  },
291
291
  onPointerdown: ye(E, ["stop"])
292
292
  }, [
293
- W[0] || (Bt(-1), W[0] = C("div", {
294
- class: M(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
295
- }, null, 2), Bt(1), W[0])
296
- ], 46, Dl), [
293
+ A[0] || (Dt(-1), A[0] = L("div", {
294
+ class: _(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
295
+ }, null, 2), Dt(1), A[0])
296
+ ], 46, Bl), [
297
297
  [pt, !!e.scrollInfo.thumbSize && (e.fixedThumb ? I.value : !0)]
298
298
  ]),
299
299
  n.fixedThumb ? ve((m(), w("div", {
300
300
  key: 0,
301
- ref: (X, Z) => {
302
- Z.shepherdEl = X, y.value = X;
301
+ ref: (V, Z) => {
302
+ Z.shepherdEl = V, y.value = V;
303
303
  },
304
- class: M(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
304
+ class: _(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
305
305
  }, null, 2)), [
306
306
  [pt, !!e.scrollInfo.thumbSize]
307
307
  ]) : N("", !0)
@@ -354,10 +354,10 @@ function Gl(e, { expose: l, emit: n }) {
354
354
  Le(() => {
355
355
  var O;
356
356
  const Y = Array.from((O = s.value.parentElement) == null ? void 0 : O.childNodes);
357
- for (const z in t)
358
- t[z].el = Y.find((L) => {
359
- var W;
360
- return (W = L == null ? void 0 : L.classList) == null ? void 0 : W.contains(`scrollbar__thumbPlaceholder--${z}`);
357
+ for (const S in t)
358
+ t[S].el = Y.find((k) => {
359
+ var A;
360
+ return (A = k == null ? void 0 : k.classList) == null ? void 0 : A.contains(`scrollbar__thumbPlaceholder--${S}`);
361
361
  });
362
362
  });
363
363
  const u = Vt(s, { wait: o.throttleWait, type: o.throttleType, callback: E }), f = Vt(r, { wait: o.throttleWait, type: o.throttleType, callback: E });
@@ -365,62 +365,62 @@ function Gl(e, { expose: l, emit: n }) {
365
365
  function E() {
366
366
  d.value = Math.max(s.value.scrollHeight - u.height | 0, 0), p.value = Math.max(s.value.scrollWidth - u.width | 0, 0);
367
367
  }
368
- let T = K(() => ({
368
+ let T = X(() => ({
369
369
  thumbSize: p.value ? Qe(u.width / s.value.scrollWidth * u.width, o.thumbMinSize > u.width ? 48 : o.thumbMinSize, o.thumbMaxSize) : 0,
370
370
  contentMainSize: f.width,
371
371
  wrapperMainSize: u.width,
372
372
  boundaryDistance: Math.abs(u.left)
373
- })), I = K(() => ({
373
+ })), I = X(() => ({
374
374
  thumbSize: d.value ? Qe(u.height / s.value.scrollHeight * u.height, o.thumbMinSize > u.height ? 48 : o.thumbMinSize, o.thumbMaxSize) : 0,
375
375
  contentMainSize: f.height,
376
376
  wrapperMainSize: u.height,
377
377
  boundaryDistance: Math.abs(u.top)
378
- })), $ = K(() => u.height - I.value.thumbSize - 5), y = K(() => u.width - T.value.thumbSize - 5);
379
- const A = () => {
378
+ })), $ = X(() => u.height - I.value.thumbSize - 5), y = X(() => u.width - T.value.thumbSize - 5);
379
+ const W = () => {
380
380
  p.value && (t.horizontal.el.style.transform = `translate3d(${s.value.scrollLeft / p.value * y.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${s.value.scrollTop / d.value * $.value}px, 0)`, t.vertical.instance.autoHideAfterScroll());
381
381
  };
382
- te(() => [p.value, d.value], A);
382
+ te(() => [p.value, d.value], W);
383
383
  const q = (O) => {
384
384
  O.stopPropagation();
385
- const Y = s.value.scrollLeft, z = s.value.scrollTop, L = Qe(Y + ((O == null ? void 0 : O.deltaX) || 0), 0, p.value) | 0, W = Qe(z + ((O == null ? void 0 : O.deltaY) || 0), 0, d.value) | 0;
386
- s.value.scrollLeft = L, s.value.scrollTop = W, p.value && (t.horizontal.el.style.transform = `translate3d(${L / p.value * y.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${W / d.value * $.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: s.value, scrollLeft: L, scrollTop: W });
385
+ const Y = s.value.scrollLeft, S = s.value.scrollTop, k = Qe(Y + ((O == null ? void 0 : O.deltaX) || 0), 0, p.value) | 0, A = Qe(S + ((O == null ? void 0 : O.deltaY) || 0), 0, d.value) | 0;
386
+ s.value.scrollLeft = k, s.value.scrollTop = A, p.value && (t.horizontal.el.style.transform = `translate3d(${k / p.value * y.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${A / d.value * $.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: s.value, scrollLeft: k, scrollTop: A });
387
387
  }, j = (O) => {
388
- o.simulateScroll ? q(O) : A();
388
+ o.simulateScroll ? q(O) : W();
389
389
  };
390
390
  return te(u, () => n("wrapperResize", u)), te(f, () => n("contentResize", f)), l({
391
391
  scrollEl: s
392
392
  }), (O, Y) => (m(), w("div", {
393
- class: M(["scrollbar__wrapper", e.wrapperClass]),
393
+ class: _(["scrollbar__wrapper", e.wrapperClass]),
394
394
  style: ee(e.wrapperStyle)
395
395
  }, [
396
- C("div", Qn({
397
- ref: (z, L) => {
398
- L.wrapperEl = z, s.value = z;
396
+ L("div", Qn({
397
+ ref: (S, k) => {
398
+ k.wrapperEl = S, s.value = S;
399
399
  },
400
400
  class: "scrollbar__scroller"
401
401
  }, O.$attrs, {
402
402
  onWheel: j,
403
403
  onScroll: j
404
404
  }), [
405
- C("div", {
406
- ref: (z, L) => {
407
- L.contentEl = z, r.value = z;
405
+ L("div", {
406
+ ref: (S, k) => {
407
+ k.contentEl = S, r.value = S;
408
408
  },
409
- class: M(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
409
+ class: _(["scrollbar__content", e.contentClass, { "scrollbar__content--fixedThumb": e.fixedThumb, [`scrollbar__content--${e.direction}`]: e.direction }]),
410
410
  style: ee(e.contentStyle)
411
411
  }, [
412
412
  ae(O.$slots, "default")
413
413
  ], 6)
414
414
  ], 16),
415
- (m(), w(U, null, pe(t, (z, L) => oe(jl, {
416
- ref: (W) => i(W, L),
417
- key: L,
415
+ (m(), w(G, null, pe(t, (S, k) => oe(jl, {
416
+ ref: (A) => i(A, k),
417
+ key: k,
418
418
  autoExpand: e.autoExpand,
419
419
  autoHide: e.autoHide,
420
420
  autoHideDelay: e.autoHideDelay,
421
- fixedThumb: L === e.direction ? !1 : e.fixedThumb,
422
- type: L,
423
- scrollInfo: L === "vertical" ? I.value : T.value,
421
+ fixedThumb: k === e.direction ? !1 : e.fixedThumb,
422
+ type: k,
423
+ scrollInfo: k === "vertical" ? I.value : T.value,
424
424
  thumbWidth: e.thumbWidth,
425
425
  wrapperEl: s.value
426
426
  }, null, 8, ["autoExpand", "autoHide", "autoHideDelay", "fixedThumb", "type", "scrollInfo", "thumbWidth", "wrapperEl"])), 64))
@@ -469,35 +469,35 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
469
469
  "splitter-dblclick"
470
470
  ],
471
471
  setup(e, { emit: l }) {
472
- const n = l, o = e, t = un(), i = B([]), s = K(() => i.value.reduce((c, g) => (c[~~g.id] = g) && c, {})), r = K(() => i.value.length), u = B(null), f = B(!1), d = B({
472
+ const n = l, o = e, t = un(), i = D([]), s = X(() => i.value.reduce((c, g) => (c[~~g.id] = g) && c, {})), r = X(() => i.value.length), u = D(null), f = D(!1), d = D({
473
473
  mouseDown: !1,
474
474
  dragging: !1,
475
475
  activeSplitter: null,
476
476
  cursorOffset: 0
477
477
  // Cursor offset within the splitter.
478
- }), p = B({
478
+ }), p = D({
479
479
  // Used to detect double click on touch devices.
480
480
  splitter: null,
481
481
  timeoutId: null
482
- }), E = K(() => ({
482
+ }), E = X(() => ({
483
483
  [`splitpanes splitpanes--${o.horizontal ? "horizontal" : "vertical"}`]: !0,
484
484
  "splitpanes--dragging": d.value.dragging
485
485
  })), T = () => {
486
- document.addEventListener("mousemove", y, { passive: !1 }), document.addEventListener("mouseup", A), "ontouchstart" in window && (document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", A));
486
+ document.addEventListener("mousemove", y, { passive: !1 }), document.addEventListener("mouseup", W), "ontouchstart" in window && (document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", W));
487
487
  }, I = () => {
488
- document.removeEventListener("mousemove", y, { passive: !1 }), document.removeEventListener("mouseup", A), "ontouchstart" in window && (document.removeEventListener("touchmove", y, { passive: !1 }), document.removeEventListener("touchend", A));
488
+ document.removeEventListener("mousemove", y, { passive: !1 }), document.removeEventListener("mouseup", W), "ontouchstart" in window && (document.removeEventListener("touchmove", y, { passive: !1 }), document.removeEventListener("touchend", W));
489
489
  }, $ = (c, g) => {
490
- const S = c.target.closest(".splitpanes__splitter");
491
- if (S) {
492
- const { left: b, top: x } = S.getBoundingClientRect(), { clientX: P, clientY: R } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
493
- d.value.cursorOffset = o.horizontal ? R - x : P - b;
490
+ const C = c.target.closest(".splitpanes__splitter");
491
+ if (C) {
492
+ const { left: b, top: x } = C.getBoundingClientRect(), { clientX: M, clientY: R } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
493
+ d.value.cursorOffset = o.horizontal ? R - x : M - b;
494
494
  }
495
495
  T(), d.value.mouseDown = !0, d.value.activeSplitter = g;
496
496
  }, y = (c) => {
497
497
  d.value.mouseDown && (c.preventDefault(), d.value.dragging = !0, requestAnimationFrame(() => {
498
- L(Y(c)), re("resize", { event: c }, !0);
498
+ k(Y(c)), re("resize", { event: c }, !0);
499
499
  }));
500
- }, A = (c) => {
500
+ }, W = (c) => {
501
501
  d.value.dragging && re("resized", { event: c }, !0), d.value.mouseDown = !1, d.value.activeSplitter = null, setTimeout(() => {
502
502
  d.value.dragging = !1, I();
503
503
  }, 100);
@@ -505,8 +505,8 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
505
505
  "ontouchstart" in window && (c.preventDefault(), p.value.splitter === g ? (clearTimeout(p.value.timeoutId), p.value.timeoutId = null, j(c, g), p.value.splitter = null) : (p.value.splitter = g, p.value.timeoutId = setTimeout(() => p.value.splitter = null, 500))), d.value.dragging || re("splitter-click", { event: c, index: g }, !0);
506
506
  }, j = (c, g) => {
507
507
  if (re("splitter-dblclick", { event: c, index: g }, !0), o.maximizePanes) {
508
- let S = 0;
509
- i.value = i.value.map((b, x) => (b.size = x === g ? b.max : b.min, x !== g && (S += b.min), b)), i.value[g].size -= S, re("pane-maximize", { event: c, index: g, pane: i.value[g] }), re("resized", { event: c, index: g }, !0);
508
+ let C = 0;
509
+ i.value = i.value.map((b, x) => (b.size = x === g ? b.max : b.min, x !== g && (C += b.min), b)), i.value[g].size -= C, re("pane-maximize", { event: c, index: g, pane: i.value[g] }), re("resized", { event: c, index: g }, !0);
510
510
  }
511
511
  }, O = (c, g) => {
512
512
  re("pane-click", {
@@ -515,57 +515,57 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
515
515
  pane: s.value[g]
516
516
  });
517
517
  }, Y = (c) => {
518
- const g = u.value.getBoundingClientRect(), { clientX: S, clientY: b } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
518
+ const g = u.value.getBoundingClientRect(), { clientX: C, clientY: b } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
519
519
  return {
520
- x: S - (o.horizontal ? 0 : d.value.cursorOffset) - g.left,
520
+ x: C - (o.horizontal ? 0 : d.value.cursorOffset) - g.left,
521
521
  y: b - (o.horizontal ? d.value.cursorOffset : 0) - g.top
522
522
  };
523
- }, z = (c) => {
523
+ }, S = (c) => {
524
524
  c = c[o.horizontal ? "y" : "x"];
525
525
  const g = u.value[o.horizontal ? "clientHeight" : "clientWidth"];
526
526
  return o.rtl && !o.horizontal && (c = g - c), c * 100 / g;
527
- }, L = (c) => {
527
+ }, k = (c) => {
528
528
  const g = d.value.activeSplitter;
529
- let S = {
530
- prevPanesSize: X(g),
529
+ let C = {
530
+ prevPanesSize: V(g),
531
531
  nextPanesSize: Z(g),
532
532
  prevReachedMinPanes: 0,
533
533
  nextReachedMinPanes: 0
534
534
  };
535
- const b = 0 + (o.pushOtherPanes ? 0 : S.prevPanesSize), x = 100 - (o.pushOtherPanes ? 0 : S.nextPanesSize), P = Math.max(Math.min(z(c), x), b);
535
+ const b = 0 + (o.pushOtherPanes ? 0 : C.prevPanesSize), x = 100 - (o.pushOtherPanes ? 0 : C.nextPanesSize), M = Math.max(Math.min(S(c), x), b);
536
536
  let R = [g, g + 1], ne = i.value[R[0]] || null, F = i.value[R[1]] || null;
537
- const xe = ne.max < 100 && P >= ne.max + S.prevPanesSize, Ve = F.max < 100 && P <= 100 - (F.max + Z(g + 1));
537
+ const xe = ne.max < 100 && M >= ne.max + C.prevPanesSize, Ve = F.max < 100 && M <= 100 - (F.max + Z(g + 1));
538
538
  if (xe || Ve) {
539
- xe ? (ne.size = ne.max, F.size = Math.max(100 - ne.max - S.prevPanesSize - S.nextPanesSize, 0)) : (ne.size = Math.max(100 - F.max - S.prevPanesSize - Z(g + 1), 0), F.size = F.max);
539
+ xe ? (ne.size = ne.max, F.size = Math.max(100 - ne.max - C.prevPanesSize - C.nextPanesSize, 0)) : (ne.size = Math.max(100 - F.max - C.prevPanesSize - Z(g + 1), 0), F.size = F.max);
540
540
  return;
541
541
  }
542
542
  if (o.pushOtherPanes) {
543
- const fe = W(S, P);
543
+ const fe = A(C, M);
544
544
  if (!fe) return;
545
- ({ sums: S, panesToResize: R } = fe), ne = i.value[R[0]] || null, F = i.value[R[1]] || null;
545
+ ({ sums: C, panesToResize: R } = fe), ne = i.value[R[0]] || null, F = i.value[R[1]] || null;
546
546
  }
547
- ne !== null && (ne.size = Math.min(Math.max(P - S.prevPanesSize - S.prevReachedMinPanes, ne.min), ne.max)), F !== null && (F.size = Math.min(Math.max(100 - P - S.nextPanesSize - S.nextReachedMinPanes, F.min), F.max));
548
- }, W = (c, g) => {
549
- const S = d.value.activeSplitter, b = [S, S + 1];
550
- return g < c.prevPanesSize + i.value[b[0]].min && (b[0] = st(S).index, c.prevReachedMinPanes = 0, b[0] < S && i.value.forEach((x, P) => {
551
- P > b[0] && P <= S && (x.size = x.min, c.prevReachedMinPanes += x.min);
552
- }), c.prevPanesSize = X(b[0]), b[0] === void 0) ? (c.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((x, P) => {
553
- P > 0 && P <= S && (x.size = x.min, c.prevReachedMinPanes += x.min);
554
- }), i.value[b[1]].size = 100 - c.prevReachedMinPanes - i.value[0].min - c.prevPanesSize - c.nextPanesSize, null) : g > 100 - c.nextPanesSize - i.value[b[1]].min && (b[1] = ie(S).index, c.nextReachedMinPanes = 0, b[1] > S + 1 && i.value.forEach((x, P) => {
555
- P > S && P < b[1] && (x.size = x.min, c.nextReachedMinPanes += x.min);
556
- }), c.nextPanesSize = Z(b[1] - 1), b[1] === void 0) ? (c.nextReachedMinPanes = 0, i.value.forEach((x, P) => {
557
- P < r.value - 1 && P >= S + 1 && (x.size = x.min, c.nextReachedMinPanes += x.min);
547
+ ne !== null && (ne.size = Math.min(Math.max(M - C.prevPanesSize - C.prevReachedMinPanes, ne.min), ne.max)), F !== null && (F.size = Math.min(Math.max(100 - M - C.nextPanesSize - C.nextReachedMinPanes, F.min), F.max));
548
+ }, A = (c, g) => {
549
+ const C = d.value.activeSplitter, b = [C, C + 1];
550
+ return g < c.prevPanesSize + i.value[b[0]].min && (b[0] = st(C).index, c.prevReachedMinPanes = 0, b[0] < C && i.value.forEach((x, M) => {
551
+ M > b[0] && M <= C && (x.size = x.min, c.prevReachedMinPanes += x.min);
552
+ }), c.prevPanesSize = V(b[0]), b[0] === void 0) ? (c.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((x, M) => {
553
+ M > 0 && M <= C && (x.size = x.min, c.prevReachedMinPanes += x.min);
554
+ }), i.value[b[1]].size = 100 - c.prevReachedMinPanes - i.value[0].min - c.prevPanesSize - c.nextPanesSize, null) : g > 100 - c.nextPanesSize - i.value[b[1]].min && (b[1] = ie(C).index, c.nextReachedMinPanes = 0, b[1] > C + 1 && i.value.forEach((x, M) => {
555
+ M > C && M < b[1] && (x.size = x.min, c.nextReachedMinPanes += x.min);
556
+ }), c.nextPanesSize = Z(b[1] - 1), b[1] === void 0) ? (c.nextReachedMinPanes = 0, i.value.forEach((x, M) => {
557
+ M < r.value - 1 && M >= C + 1 && (x.size = x.min, c.nextReachedMinPanes += x.min);
558
558
  }), i.value[b[0]].size = 100 - c.prevPanesSize - Z(b[0] - 1), null) : { sums: c, panesToResize: b };
559
- }, X = (c) => i.value.reduce((g, S, b) => g + (b < c ? S.size : 0), 0), Z = (c) => i.value.reduce((g, S, b) => g + (b > c + 1 ? S.size : 0), 0), st = (c) => [...i.value].reverse().find((g) => g.index < c && g.size > g.min) || {}, ie = (c) => i.value.find((g) => g.index > c + 1 && g.size > g.min) || {}, Be = () => {
559
+ }, V = (c) => i.value.reduce((g, C, b) => g + (b < c ? C.size : 0), 0), Z = (c) => i.value.reduce((g, C, b) => g + (b > c + 1 ? C.size : 0), 0), st = (c) => [...i.value].reverse().find((g) => g.index < c && g.size > g.min) || {}, ie = (c) => i.value.find((g) => g.index > c + 1 && g.size > g.min) || {}, De = () => {
560
560
  var c;
561
561
  const g = Array.from(((c = u.value) == null ? void 0 : c.children) || []);
562
- for (const S of g) {
563
- const b = S.classList.contains("splitpanes__pane"), x = S.classList.contains("splitpanes__splitter");
564
- !b && !x && (S.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
562
+ for (const C of g) {
563
+ const b = C.classList.contains("splitpanes__pane"), x = C.classList.contains("splitpanes__splitter");
564
+ !b && !x && (C.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
565
565
  }
566
- }, J = (c, g, S = !1) => {
566
+ }, J = (c, g, C = !1) => {
567
567
  const b = c - 1, x = document.createElement("div");
568
- x.classList.add("splitpanes__splitter"), S || (x.onmousedown = (P) => $(P, b), typeof window < "u" && "ontouchstart" in window && (x.ontouchstart = (P) => $(P, b)), x.onclick = (P) => q(P, b + 1)), x.ondblclick = (P) => j(P, b + 1), g.parentNode.insertBefore(x, g);
568
+ x.classList.add("splitpanes__splitter"), C || (x.onmousedown = (M) => $(M, b), typeof window < "u" && "ontouchstart" in window && (x.ontouchstart = (M) => $(M, b)), x.onclick = (M) => q(M, b + 1)), x.ondblclick = (M) => j(M, b + 1), g.parentNode.insertBefore(x, g);
569
569
  }, se = (c) => {
570
570
  c.onmousedown = void 0, c.onclick = void 0, c.ondblclick = void 0, c.remove();
571
571
  }, ge = () => {
@@ -573,76 +573,76 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
573
573
  const g = Array.from(((c = u.value) == null ? void 0 : c.children) || []);
574
574
  for (const b of g)
575
575
  b.className.includes("splitpanes__splitter") && se(b);
576
- let S = 0;
576
+ let C = 0;
577
577
  for (const b of g)
578
- b.className.includes("splitpanes__pane") && (!S && o.firstSplitter ? J(S, b, !0) : S && J(S, b), S++);
578
+ b.className.includes("splitpanes__pane") && (!C && o.firstSplitter ? J(C, b, !0) : C && J(C, b), C++);
579
579
  }, Te = ({ uid: c, ...g }) => {
580
- const S = s.value[c];
581
- for (const [b, x] of Object.entries(g)) S[b] = x;
582
- }, De = (c) => {
580
+ const C = s.value[c];
581
+ for (const [b, x] of Object.entries(g)) C[b] = x;
582
+ }, Be = (c) => {
583
583
  var g;
584
- let S = -1;
585
- Array.from(((g = u.value) == null ? void 0 : g.children) || []).some((b) => (b.className.includes("splitpanes__pane") && S++, b.isSameNode(c.el))), i.value.splice(S, 0, { ...c, index: S }), i.value.forEach((b, x) => b.index = x), f.value && Oe(() => {
586
- ge(), de({ addedPane: i.value[S] }), re("pane-add", { pane: i.value[S] });
584
+ let C = -1;
585
+ Array.from(((g = u.value) == null ? void 0 : g.children) || []).some((b) => (b.className.includes("splitpanes__pane") && C++, b.isSameNode(c.el))), i.value.splice(C, 0, { ...c, index: C }), i.value.forEach((b, x) => b.index = x), f.value && Oe(() => {
586
+ ge(), de({ addedPane: i.value[C] }), re("pane-add", { pane: i.value[C] });
587
587
  });
588
588
  }, qe = (c) => {
589
589
  const g = i.value.findIndex((b) => b.id === c);
590
590
  i.value[g].el = null;
591
- const S = i.value.splice(g, 1)[0];
591
+ const C = i.value.splice(g, 1)[0];
592
592
  i.value.forEach((b, x) => b.index = x), Oe(() => {
593
- ge(), re("pane-remove", { pane: S }), de({ removedPane: { ...S } });
593
+ ge(), re("pane-remove", { pane: C }), de({ removedPane: { ...C } });
594
594
  });
595
595
  }, de = (c = {}) => {
596
596
  !c.addedPane && !c.removedPane ? He() : i.value.some((g) => g.givenSize !== null || g.min || g.max < 100) ? je(c) : ue(), f.value && re("resized");
597
597
  }, ue = () => {
598
598
  const c = 100 / r.value;
599
599
  let g = 0;
600
- const S = [], b = [];
600
+ const C = [], b = [];
601
601
  for (const x of i.value)
602
- x.size = Math.max(Math.min(c, x.max), x.min), g -= x.size, x.size >= x.max && S.push(x.id), x.size <= x.min && b.push(x.id);
603
- g > 0.1 && Ee(g, S, b);
602
+ x.size = Math.max(Math.min(c, x.max), x.min), g -= x.size, x.size >= x.max && C.push(x.id), x.size <= x.min && b.push(x.id);
603
+ g > 0.1 && Ee(g, C, b);
604
604
  }, He = () => {
605
605
  let c = 100;
606
- const g = [], S = [];
606
+ const g = [], C = [];
607
607
  let b = 0;
608
- for (const P of i.value)
609
- c -= P.size, P.givenSize !== null && b++, P.size >= P.max && g.push(P.id), P.size <= P.min && S.push(P.id);
608
+ for (const M of i.value)
609
+ c -= M.size, M.givenSize !== null && b++, M.size >= M.max && g.push(M.id), M.size <= M.min && C.push(M.id);
610
610
  let x = 100;
611
611
  if (c > 0.1) {
612
- for (const P of i.value)
613
- P.givenSize === null && (P.size = Math.max(Math.min(c / (r.value - b), P.max), P.min)), x -= P.size;
614
- x > 0.1 && Ee(x, g, S);
612
+ for (const M of i.value)
613
+ M.givenSize === null && (M.size = Math.max(Math.min(c / (r.value - b), M.max), M.min)), x -= M.size;
614
+ x > 0.1 && Ee(x, g, C);
615
615
  }
616
616
  }, je = ({ addedPane: c, removedPane: g } = {}) => {
617
- let S = 100 / r.value, b = 0;
618
- const x = [], P = [];
619
- ((c == null ? void 0 : c.givenSize) ?? null) !== null && (S = (100 - c.givenSize) / (r.value - 1));
617
+ let C = 100 / r.value, b = 0;
618
+ const x = [], M = [];
619
+ ((c == null ? void 0 : c.givenSize) ?? null) !== null && (C = (100 - c.givenSize) / (r.value - 1));
620
620
  for (const R of i.value)
621
- b -= R.size, R.size >= R.max && x.push(R.id), R.size <= R.min && P.push(R.id);
621
+ b -= R.size, R.size >= R.max && x.push(R.id), R.size <= R.min && M.push(R.id);
622
622
  if (!(Math.abs(b) < 0.1)) {
623
623
  for (const R of i.value)
624
- (c == null ? void 0 : c.givenSize) !== null && (c == null ? void 0 : c.id) === R.id || (R.size = Math.max(Math.min(S, R.max), R.min)), b -= R.size, R.size >= R.max && x.push(R.id), R.size <= R.min && P.push(R.id);
625
- b > 0.1 && Ee(b, x, P);
624
+ (c == null ? void 0 : c.givenSize) !== null && (c == null ? void 0 : c.id) === R.id || (R.size = Math.max(Math.min(C, R.max), R.min)), b -= R.size, R.size >= R.max && x.push(R.id), R.size <= R.min && M.push(R.id);
625
+ b > 0.1 && Ee(b, x, M);
626
626
  }
627
- }, Ee = (c, g, S) => {
627
+ }, Ee = (c, g, C) => {
628
628
  let b;
629
- c > 0 ? b = c / (r.value - g.length) : b = c / (r.value - S.length), i.value.forEach((x, P) => {
629
+ c > 0 ? b = c / (r.value - g.length) : b = c / (r.value - C.length), i.value.forEach((x, M) => {
630
630
  if (c > 0 && !g.includes(x.id)) {
631
631
  const R = Math.max(Math.min(x.size + b, x.max), x.min), ne = R - x.size;
632
632
  c -= ne, x.size = R;
633
- } else if (!S.includes(x.id)) {
633
+ } else if (!C.includes(x.id)) {
634
634
  const R = Math.max(Math.min(x.size + b, x.max), x.min), ne = R - x.size;
635
635
  c -= ne, x.size = R;
636
636
  }
637
637
  }), Math.abs(c) > 0.1 && Oe(() => {
638
638
  f.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
639
639
  });
640
- }, re = (c, g = void 0, S = !1) => {
640
+ }, re = (c, g = void 0, C = !1) => {
641
641
  const b = (g == null ? void 0 : g.index) ?? d.value.activeSplitter ?? null;
642
642
  n(c, {
643
643
  ...g,
644
644
  ...b !== null && { index: b },
645
- ...S && b !== null && {
645
+ ...C && b !== null && {
646
646
  prevPane: i.value[b - (o.firstSplitter ? 1 : 0)],
647
647
  nextPane: i.value[b + (o.firstSplitter ? 0 : 1)]
648
648
  },
@@ -650,7 +650,7 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
650
650
  });
651
651
  };
652
652
  te(() => o.firstSplitter, () => ge()), Le(() => {
653
- Be(), ge(), de(), re("ready"), f.value = !0;
653
+ De(), ge(), de(), re("ready"), f.value = !0;
654
654
  }), zt(() => f.value = !1);
655
655
  const It = () => {
656
656
  var c;
@@ -660,7 +660,7 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
660
660
  (c = t.default) == null ? void 0 : c.call(t)
661
661
  );
662
662
  };
663
- return Ce("panes", i), Ce("indexedPanes", s), Ce("horizontal", K(() => o.horizontal)), Ce("requestUpdate", Te), Ce("onPaneAdd", De), Ce("onPaneRemove", qe), Ce("onPaneClick", O), (c, g) => (m(), ce(Yn(It)));
663
+ return Ce("panes", i), Ce("indexedPanes", s), Ce("horizontal", X(() => o.horizontal)), Ce("requestUpdate", Te), Ce("onPaneAdd", Be), Ce("onPaneRemove", qe), Ce("onPaneClick", O), (c, g) => (m(), ce(Yn(It)));
664
664
  }
665
665
  }, dt = {
666
666
  __name: "pane",
@@ -671,16 +671,16 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
671
671
  },
672
672
  setup(e) {
673
673
  var l;
674
- const n = e, o = Pe("requestUpdate"), t = Pe("onPaneAdd"), i = Pe("horizontal"), s = Pe("onPaneRemove"), r = Pe("onPaneClick"), u = (l = Ct()) == null ? void 0 : l.uid, f = Pe("indexedPanes"), d = K(() => f.value[u]), p = B(null), E = K(() => {
674
+ const n = e, o = Me("requestUpdate"), t = Me("onPaneAdd"), i = Me("horizontal"), s = Me("onPaneRemove"), r = Me("onPaneClick"), u = (l = Ct()) == null ? void 0 : l.uid, f = Me("indexedPanes"), d = X(() => f.value[u]), p = D(null), E = X(() => {
675
675
  const y = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
676
676
  return Math.max(Math.min(y, I.value), T.value);
677
- }), T = K(() => {
677
+ }), T = X(() => {
678
678
  const y = parseFloat(n.minSize);
679
679
  return isNaN(y) ? 0 : y;
680
- }), I = K(() => {
680
+ }), I = X(() => {
681
681
  const y = parseFloat(n.maxSize);
682
682
  return isNaN(y) ? 100 : y;
683
- }), $ = K(() => {
683
+ }), $ = X(() => {
684
684
  var y;
685
685
  return `${i.value ? "height" : "width"}: ${(y = d.value) == null ? void 0 : y.size}%`;
686
686
  });
@@ -695,11 +695,11 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
695
695
  size: E.value
696
696
  // The computed current size at any time.
697
697
  });
698
- }), zt(() => s(u)), (y, A) => (m(), w("div", {
698
+ }), zt(() => s(u)), (y, W) => (m(), w("div", {
699
699
  ref_key: "paneEl",
700
700
  ref: p,
701
701
  class: "splitpanes__pane",
702
- onClick: A[0] || (A[0] = (q) => Q(r)(q, y._.uid)),
702
+ onClick: W[0] || (W[0] = (q) => K(r)(q, y._.uid)),
703
703
  style: ee($.value)
704
704
  }, [
705
705
  ae(y.$slots, "default")
@@ -984,9 +984,9 @@ function co(e, l) {
984
984
  };
985
985
  let i = n.body;
986
986
  [n, o].forEach(($) => {
987
- const y = [], A = $.hFlip, q = $.vFlip;
987
+ const y = [], W = $.hFlip, q = $.vFlip;
988
988
  let j = $.rotate;
989
- A ? q ? j += 2 : (y.push(
989
+ W ? q ? j += 2 : (y.push(
990
990
  "translate(" + (t.width + t.left).toString() + " " + (0 - t.top).toString() + ")"
991
991
  ), y.push("scale(-1 1)"), t.top = t.left = 0) : q && (y.push(
992
992
  "translate(" + (0 - t.left).toString() + " " + (t.height + t.top).toString() + ")"
@@ -1081,21 +1081,21 @@ function Et(e) {
1081
1081
  dataAfterTimeout: e.dataAfterTimeout !== !1
1082
1082
  };
1083
1083
  }
1084
- const Pt = /* @__PURE__ */ Object.create(null), Fe = [
1084
+ const Mt = /* @__PURE__ */ Object.create(null), Fe = [
1085
1085
  "https://api.simplesvg.com",
1086
1086
  "https://api.unisvg.com"
1087
1087
  ], Ye = [];
1088
1088
  for (; Fe.length > 0; )
1089
1089
  Fe.length === 1 || Math.random() > 0.5 ? Ye.push(Fe.shift()) : Ye.push(Fe.pop());
1090
- Pt[""] = Et({
1090
+ Mt[""] = Et({
1091
1091
  resources: ["https://api.iconify.design"].concat(Ye)
1092
1092
  });
1093
1093
  function go(e, l) {
1094
1094
  const n = Et(l);
1095
- return n === null ? !1 : (Pt[e] = n, !0);
1095
+ return n === null ? !1 : (Mt[e] = n, !0);
1096
1096
  }
1097
- function _t(e) {
1098
- return Pt[e];
1097
+ function Pt(e) {
1098
+ return Mt[e];
1099
1099
  }
1100
1100
  const bo = () => {
1101
1101
  let e;
@@ -1107,7 +1107,7 @@ const bo = () => {
1107
1107
  };
1108
1108
  let Xt = bo();
1109
1109
  function yo(e, l) {
1110
- const n = _t(e);
1110
+ const n = Pt(e);
1111
1111
  if (!n)
1112
1112
  return 0;
1113
1113
  let o;
@@ -1145,7 +1145,7 @@ const xo = (e, l, n) => {
1145
1145
  };
1146
1146
  function So(e) {
1147
1147
  if (typeof e == "string") {
1148
- const l = _t(e);
1148
+ const l = Pt(e);
1149
1149
  if (l)
1150
1150
  return l.path;
1151
1151
  }
@@ -1273,7 +1273,7 @@ function Lo(e) {
1273
1273
  }));
1274
1274
  }
1275
1275
  let Eo = 0;
1276
- function Po(e, l, n) {
1276
+ function Mo(e, l, n) {
1277
1277
  const o = Eo++, t = kn.bind(null, n, o);
1278
1278
  if (!l.pending.length)
1279
1279
  return t;
@@ -1287,14 +1287,14 @@ function Po(e, l, n) {
1287
1287
  (s.loaderCallbacks || (s.loaderCallbacks = [])).push(i);
1288
1288
  }), t;
1289
1289
  }
1290
- function _o(e, l = !0, n = !1) {
1290
+ function Po(e, l = !0, n = !1) {
1291
1291
  const o = [];
1292
1292
  return e.forEach((t) => {
1293
1293
  const i = typeof t == "string" ? ot(t, l, n) : t;
1294
1294
  i && o.push(i);
1295
1295
  }), o;
1296
1296
  }
1297
- var Mo = {
1297
+ var _o = {
1298
1298
  resources: [],
1299
1299
  index: 0,
1300
1300
  timeout: 2e3,
@@ -1306,12 +1306,12 @@ function To(e, l, n, o) {
1306
1306
  const t = e.resources.length, i = e.random ? Math.floor(Math.random() * t) : e.index;
1307
1307
  let s;
1308
1308
  if (e.random) {
1309
- let z = e.resources.slice(0);
1310
- for (s = []; z.length > 1; ) {
1311
- const L = Math.floor(Math.random() * z.length);
1312
- s.push(z[L]), z = z.slice(0, L).concat(z.slice(L + 1));
1309
+ let S = e.resources.slice(0);
1310
+ for (s = []; S.length > 1; ) {
1311
+ const k = Math.floor(Math.random() * S.length);
1312
+ s.push(S[k]), S = S.slice(0, k).concat(S.slice(k + 1));
1313
1313
  }
1314
- s = s.concat(z);
1314
+ s = s.concat(S);
1315
1315
  } else
1316
1316
  s = e.resources.slice(i).concat(e.resources.slice(0, i));
1317
1317
  const r = Date.now();
@@ -1321,14 +1321,14 @@ function To(e, l, n, o) {
1321
1321
  p && (clearTimeout(p), p = null);
1322
1322
  }
1323
1323
  function $() {
1324
- u === "pending" && (u = "aborted"), I(), E.forEach((z) => {
1325
- z.status === "pending" && (z.status = "aborted");
1324
+ u === "pending" && (u = "aborted"), I(), E.forEach((S) => {
1325
+ S.status === "pending" && (S.status = "aborted");
1326
1326
  }), E = [];
1327
1327
  }
1328
- function y(z, L) {
1329
- L && (T = []), typeof z == "function" && T.push(z);
1328
+ function y(S, k) {
1329
+ k && (T = []), typeof S == "function" && T.push(S);
1330
1330
  }
1331
- function A() {
1331
+ function W() {
1332
1332
  return {
1333
1333
  startTime: r,
1334
1334
  payload: l,
@@ -1340,49 +1340,49 @@ function To(e, l, n, o) {
1340
1340
  };
1341
1341
  }
1342
1342
  function q() {
1343
- u = "failed", T.forEach((z) => {
1344
- z(void 0, d);
1343
+ u = "failed", T.forEach((S) => {
1344
+ S(void 0, d);
1345
1345
  });
1346
1346
  }
1347
1347
  function j() {
1348
- E.forEach((z) => {
1349
- z.status === "pending" && (z.status = "aborted");
1348
+ E.forEach((S) => {
1349
+ S.status === "pending" && (S.status = "aborted");
1350
1350
  }), E = [];
1351
1351
  }
1352
- function O(z, L, W) {
1353
- const X = L !== "success";
1354
- switch (E = E.filter((Z) => Z !== z), u) {
1352
+ function O(S, k, A) {
1353
+ const V = k !== "success";
1354
+ switch (E = E.filter((Z) => Z !== S), u) {
1355
1355
  case "pending":
1356
1356
  break;
1357
1357
  case "failed":
1358
- if (X || !e.dataAfterTimeout)
1358
+ if (V || !e.dataAfterTimeout)
1359
1359
  return;
1360
1360
  break;
1361
1361
  default:
1362
1362
  return;
1363
1363
  }
1364
- if (L === "abort") {
1365
- d = W, q();
1364
+ if (k === "abort") {
1365
+ d = A, q();
1366
1366
  return;
1367
1367
  }
1368
- if (X) {
1369
- d = W, E.length || (s.length ? Y() : q());
1368
+ if (V) {
1369
+ d = A, E.length || (s.length ? Y() : q());
1370
1370
  return;
1371
1371
  }
1372
1372
  if (I(), j(), !e.random) {
1373
- const Z = e.resources.indexOf(z.resource);
1373
+ const Z = e.resources.indexOf(S.resource);
1374
1374
  Z !== -1 && Z !== e.index && (e.index = Z);
1375
1375
  }
1376
1376
  u = "completed", T.forEach((Z) => {
1377
- Z(W);
1377
+ Z(A);
1378
1378
  });
1379
1379
  }
1380
1380
  function Y() {
1381
1381
  if (u !== "pending")
1382
1382
  return;
1383
1383
  I();
1384
- const z = s.shift();
1385
- if (z === void 0) {
1384
+ const S = s.shift();
1385
+ if (S === void 0) {
1386
1386
  if (E.length) {
1387
1387
  p = setTimeout(() => {
1388
1388
  I(), u === "pending" && (j(), q());
@@ -1392,20 +1392,20 @@ function To(e, l, n, o) {
1392
1392
  q();
1393
1393
  return;
1394
1394
  }
1395
- const L = {
1395
+ const k = {
1396
1396
  status: "pending",
1397
- resource: z,
1398
- callback: (W, X) => {
1399
- O(L, W, X);
1397
+ resource: S,
1398
+ callback: (A, V) => {
1399
+ O(k, A, V);
1400
1400
  }
1401
1401
  };
1402
- E.push(L), f++, p = setTimeout(Y, e.rotate), n(z, l, L.callback);
1402
+ E.push(k), f++, p = setTimeout(Y, e.rotate), n(S, l, k.callback);
1403
1403
  }
1404
- return setTimeout(Y), A;
1404
+ return setTimeout(Y), W;
1405
1405
  }
1406
1406
  function Cn(e) {
1407
1407
  const l = {
1408
- ...Mo,
1408
+ ..._o,
1409
1409
  ...e
1410
1410
  };
1411
1411
  let n = [];
@@ -1441,7 +1441,7 @@ function Yt() {
1441
1441
  const ht = /* @__PURE__ */ Object.create(null);
1442
1442
  function Io(e) {
1443
1443
  if (!ht[e]) {
1444
- const l = _t(e);
1444
+ const l = Pt(e);
1445
1445
  if (!l)
1446
1446
  return;
1447
1447
  const n = Cn(l), o = {
@@ -1471,14 +1471,14 @@ function Fo(e, l, n) {
1471
1471
  }
1472
1472
  return !o || !t ? (n(void 0, 424), Yt) : o.query(l, t, n)().abort;
1473
1473
  }
1474
- const Jt = "iconify2", Ae = "iconify", zn = Ae + "-count", Zt = Ae + "-version", Ln = 36e5, Oo = 168, $o = 50;
1474
+ const Jt = "iconify2", We = "iconify", zn = We + "-count", Zt = We + "-version", Ln = 36e5, Oo = 168, $o = 50;
1475
1475
  function wt(e, l) {
1476
1476
  try {
1477
1477
  return e.getItem(l);
1478
1478
  } catch {
1479
1479
  }
1480
1480
  }
1481
- function Mt(e, l, n) {
1481
+ function _t(e, l, n) {
1482
1482
  try {
1483
1483
  return e.setItem(l, n), !0;
1484
1484
  } catch {
@@ -1491,7 +1491,7 @@ function en(e, l) {
1491
1491
  }
1492
1492
  }
1493
1493
  function xt(e, l) {
1494
- return Mt(e, zn, l.toString());
1494
+ return _t(e, zn, l.toString());
1495
1495
  }
1496
1496
  function St(e) {
1497
1497
  return parseInt(wt(e, zn)) || 0;
@@ -1508,7 +1508,7 @@ function Ro(e) {
1508
1508
  Tt = e;
1509
1509
  }
1510
1510
  let Ke = typeof window > "u" ? {} : window;
1511
- function Pn(e) {
1511
+ function Mn(e) {
1512
1512
  const l = e + "Storage";
1513
1513
  try {
1514
1514
  if (Ke && Ke[l] && typeof Ke[l].length == "number")
@@ -1517,8 +1517,8 @@ function Pn(e) {
1517
1517
  }
1518
1518
  rt[e] = !1;
1519
1519
  }
1520
- function _n(e, l) {
1521
- const n = Pn(e);
1520
+ function Pn(e, l) {
1521
+ const n = Mn(e);
1522
1522
  if (!n)
1523
1523
  return;
1524
1524
  const o = wt(n, Zt);
@@ -1526,13 +1526,13 @@ function _n(e, l) {
1526
1526
  if (o) {
1527
1527
  const r = St(n);
1528
1528
  for (let u = 0; u < r; u++)
1529
- en(n, Ae + u.toString());
1529
+ en(n, We + u.toString());
1530
1530
  }
1531
- Mt(n, Zt, Jt), xt(n, 0);
1531
+ _t(n, Zt, Jt), xt(n, 0);
1532
1532
  return;
1533
1533
  }
1534
1534
  const t = Math.floor(Date.now() / Ln) - Oo, i = (r) => {
1535
- const u = Ae + r.toString(), f = wt(n, u);
1535
+ const u = We + r.toString(), f = wt(n, u);
1536
1536
  if (typeof f == "string") {
1537
1537
  try {
1538
1538
  const d = JSON.parse(f);
@@ -1548,11 +1548,11 @@ function _n(e, l) {
1548
1548
  for (let r = s - 1; r >= 0; r--)
1549
1549
  i(r) || (r === s - 1 ? (s--, xt(n, s)) : En[e].add(r));
1550
1550
  }
1551
- function Mn() {
1551
+ function _n() {
1552
1552
  if (!Tt) {
1553
1553
  Ro(!0);
1554
1554
  for (const e in rt)
1555
- _n(e, (l) => {
1555
+ Pn(e, (l) => {
1556
1556
  const n = l.data, o = l.provider, t = n.prefix, i = ze(
1557
1557
  o,
1558
1558
  t
@@ -1573,17 +1573,17 @@ function No(e, l) {
1573
1573
  return n === l;
1574
1574
  if (e.lastModifiedCached = l, n)
1575
1575
  for (const o in rt)
1576
- _n(o, (t) => {
1576
+ Pn(o, (t) => {
1577
1577
  const i = t.data;
1578
1578
  return t.provider !== e.provider || i.prefix !== e.prefix || i.lastModified === l;
1579
1579
  });
1580
1580
  return !0;
1581
1581
  }
1582
- function Ao(e, l) {
1583
- Tt || Mn();
1582
+ function Wo(e, l) {
1583
+ Tt || _n();
1584
1584
  function n(o) {
1585
1585
  let t;
1586
- if (!rt[o] || !(t = Pn(o)))
1586
+ if (!rt[o] || !(t = Mn(o)))
1587
1587
  return;
1588
1588
  const i = En[o];
1589
1589
  let s;
@@ -1596,9 +1596,9 @@ function Ao(e, l) {
1596
1596
  provider: e.provider,
1597
1597
  data: l
1598
1598
  };
1599
- return Mt(
1599
+ return _t(
1600
1600
  t,
1601
- Ae + s.toString(),
1601
+ We + s.toString(),
1602
1602
  JSON.stringify(r)
1603
1603
  );
1604
1604
  }
@@ -1606,12 +1606,12 @@ function Ao(e, l) {
1606
1606
  }
1607
1607
  function tn() {
1608
1608
  }
1609
- function Wo(e) {
1609
+ function Ao(e) {
1610
1610
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
1611
1611
  e.iconsLoaderFlag = !1, Lo(e);
1612
1612
  }));
1613
1613
  }
1614
- function Bo(e, l) {
1614
+ function Do(e, l) {
1615
1615
  e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(l).sort() : e.iconsToLoad = l, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
1616
1616
  e.iconsQueueFlag = !1;
1617
1617
  const { provider: n, prefix: o } = e, t = e.iconsToLoad;
@@ -1636,17 +1636,17 @@ function Bo(e, l) {
1636
1636
  const d = e.pendingIcons;
1637
1637
  d && f.forEach((p) => {
1638
1638
  d.delete(p);
1639
- }), Ao(e, u);
1639
+ }), Wo(e, u);
1640
1640
  } catch (f) {
1641
1641
  console.error(f);
1642
1642
  }
1643
- Wo(e);
1643
+ Ao(e);
1644
1644
  });
1645
1645
  });
1646
1646
  }));
1647
1647
  }
1648
- const Do = (e, l) => {
1649
- const n = _o(e, !0, wn()), o = zo(n);
1648
+ const Bo = (e, l) => {
1649
+ const n = Po(e, !0, wn()), o = zo(n);
1650
1650
  if (!o.pending.length) {
1651
1651
  let u = !0;
1652
1652
  return l && setTimeout(() => {
@@ -1674,8 +1674,8 @@ const Do = (e, l) => {
1674
1674
  T.has(p) || (T.add(p), t[f][d].push(p));
1675
1675
  }), i.forEach((u) => {
1676
1676
  const { provider: f, prefix: d } = u;
1677
- t[f][d].length && Bo(u, t[f][d]);
1678
- }), l ? Po(l, o, i) : tn;
1677
+ t[f][d].length && Do(u, t[f][d]);
1678
+ }), l ? Mo(l, o, i) : tn;
1679
1679
  };
1680
1680
  function qo(e, l) {
1681
1681
  const n = {
@@ -1807,8 +1807,8 @@ const sn = (e, l) => {
1807
1807
  y !== !0 && y !== "true" && delete o["aria-hidden"];
1808
1808
  break;
1809
1809
  default: {
1810
- const A = Je[$];
1811
- A ? (y === !0 || y === "true" || y === 1) && (n[A] = !0) : nn[$] === void 0 && (o[$] = y);
1810
+ const W = Je[$];
1811
+ W ? (y === !0 || y === "true" || y === 1) && (n[W] = !0) : nn[$] === void 0 && (o[$] = y);
1812
1812
  }
1813
1813
  }
1814
1814
  }
@@ -1839,7 +1839,7 @@ const sn = (e, l) => {
1839
1839
  wn(!0);
1840
1840
  mo("", Co);
1841
1841
  if (typeof document < "u" && typeof window < "u") {
1842
- Mn();
1842
+ _n();
1843
1843
  const e = window;
1844
1844
  if (e.IconifyPreload !== void 0) {
1845
1845
  const l = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
@@ -1912,7 +1912,7 @@ const Jo = {
1912
1912
  if (!o)
1913
1913
  return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", o !== null && (this._loadingIcon = {
1914
1914
  name: e,
1915
- abort: Do([n], () => {
1915
+ abort: Bo([n], () => {
1916
1916
  this.counter++;
1917
1917
  })
1918
1918
  })), null;
@@ -1946,7 +1946,7 @@ const Jo = {
1946
1946
  expandall: { type: Boolean, default: !1 }
1947
1947
  },
1948
1948
  setup(e) {
1949
- const l = e, n = Jn(l, "expandedrows"), o = B(!1);
1949
+ const l = e, n = Jn(l, "expandedrows"), o = D(!1);
1950
1950
  function t(s) {
1951
1951
  if (l.expandall)
1952
1952
  o.value = !o.value, n.value.forEach((r) => {
@@ -1957,7 +1957,7 @@ const Jo = {
1957
1957
  r ? r.isExpanded = !r.isExpanded : n.value.push({ id: s, isExpanded: !0 });
1958
1958
  }
1959
1959
  }
1960
- const i = B(-1);
1960
+ const i = D(-1);
1961
1961
  return te(
1962
1962
  () => n.value,
1963
1963
  (s, r) => {
@@ -1971,32 +1971,32 @@ const Jo = {
1971
1971
  class: "expandbtn",
1972
1972
  onClick: r[0] || (r[0] = (d) => t(s.item.id))
1973
1973
  }, [
1974
- (((u = n.value.find((d) => d.id == s.item.id)) == null ? void 0 : u.isExpanded) == null ? o.value : (f = n.value.find((d) => d.id == s.item.id)) != null && f.isExpanded) ? (m(), w(U, { key: 0 }, [
1975
- l.expandall ? (m(), w(U, { key: 0 }, [
1976
- i.value ? (m(), ce(Q(be), {
1974
+ (((u = n.value.find((d) => d.id == s.item.id)) == null ? void 0 : u.isExpanded) == null ? o.value : (f = n.value.find((d) => d.id == s.item.id)) != null && f.isExpanded) ? (m(), w(G, { key: 0 }, [
1975
+ l.expandall ? (m(), w(G, { key: 0 }, [
1976
+ i.value ? (m(), ce(K(be), {
1977
1977
  key: 0,
1978
1978
  icon: "fluent:chevron-down-up-16-filled"
1979
- })) : (m(), ce(Q(be), {
1979
+ })) : (m(), ce(K(be), {
1980
1980
  key: 1,
1981
1981
  icon: "mdi:chevron-down"
1982
1982
  }))
1983
- ], 64)) : (m(), ce(Q(be), {
1983
+ ], 64)) : (m(), ce(K(be), {
1984
1984
  key: 1,
1985
1985
  icon: "mdi:chevron-down"
1986
1986
  }))
1987
- ], 64)) : (m(), w(U, { key: 1 }, [
1988
- l.expandall ? (m(), w(U, { key: 0 }, [
1989
- i.value == -1 ? (m(), ce(Q(be), {
1987
+ ], 64)) : (m(), w(G, { key: 1 }, [
1988
+ l.expandall ? (m(), w(G, { key: 0 }, [
1989
+ i.value == -1 ? (m(), ce(K(be), {
1990
1990
  key: 0,
1991
1991
  icon: "ion:chevron-expand"
1992
- })) : i.value == 0 ? (m(), ce(Q(be), {
1992
+ })) : i.value == 0 ? (m(), ce(K(be), {
1993
1993
  key: 1,
1994
1994
  icon: "mdi:chevron-down"
1995
- })) : (m(), ce(Q(be), {
1995
+ })) : (m(), ce(K(be), {
1996
1996
  key: 2,
1997
1997
  icon: "mdi:chevron-right"
1998
1998
  }))
1999
- ], 64)) : (m(), ce(Q(be), {
1999
+ ], 64)) : (m(), ce(K(be), {
2000
2000
  key: 1,
2001
2001
  icon: "mdi:chevron-right"
2002
2002
  }))
@@ -2004,12 +2004,12 @@ const Jo = {
2004
2004
  ]);
2005
2005
  };
2006
2006
  }
2007
- }), We = (e, l) => {
2007
+ }), Ae = (e, l) => {
2008
2008
  const n = e.__vccOpts || e;
2009
2009
  for (const [o, t] of l)
2010
2010
  n[o] = t;
2011
2011
  return n;
2012
- }, In = /* @__PURE__ */ We(ei, [["__scopeId", "data-v-8bd9f848"]]), ti = {
2012
+ }, In = /* @__PURE__ */ Ae(ei, [["__scopeId", "data-v-8bd9f848"]]), ti = {
2013
2013
  name: "ButtonRightPanel"
2014
2014
  }, ni = /* @__PURE__ */ we({
2015
2015
  ...ti,
@@ -2026,10 +2026,10 @@ const Jo = {
2026
2026
  class: "rightpanelbtn",
2027
2027
  onClick: ye(t, ["stop"])
2028
2028
  }, [
2029
- oe(Q(be), { icon: "lucide:plus" })
2029
+ oe(K(be), { icon: "lucide:plus" })
2030
2030
  ]));
2031
2031
  }
2032
- }), li = /* @__PURE__ */ We(ni, [["__scopeId", "data-v-d739c6bf"]]), oi = { 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" }, ii = {
2032
+ }), li = /* @__PURE__ */ Ae(ni, [["__scopeId", "data-v-d739c6bf"]]), oi = { 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" }, ii = {
2033
2033
  name: "columnFilter"
2034
2034
  }, ri = /* @__PURE__ */ we({
2035
2035
  ...ii,
@@ -2048,107 +2048,107 @@ const Jo = {
2048
2048
  n.column.condition = s, s === "" && (n.column.value = ""), o("filterChange", n.column);
2049
2049
  };
2050
2050
  return (s, r) => (m(), w("div", oi, [
2051
- C("div", {
2051
+ L("div", {
2052
2052
  class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden",
2053
2053
  onClick: ye(t, ["stop"])
2054
2054
  }, [
2055
- C("button", {
2055
+ L("button", {
2056
2056
  type: "button",
2057
- class: M({ active: n.column.condition === "" }),
2057
+ class: _({ active: n.column.condition === "" }),
2058
2058
  onClick: r[0] || (r[0] = (u) => i(""))
2059
2059
  }, H((n.columnFilterLang && n.columnFilterLang.NoFilter) ?? "No filter"), 3),
2060
- n.column.type === "string" ? (m(), w(U, { key: 0 }, [
2061
- C("button", {
2060
+ n.column.type === "string" ? (m(), w(G, { key: 0 }, [
2061
+ L("button", {
2062
2062
  type: "button",
2063
- class: M({ active: n.column.condition === "Contains" }),
2063
+ class: _({ active: n.column.condition === "Contains" }),
2064
2064
  onClick: r[1] || (r[1] = (u) => i("Contains"))
2065
2065
  }, H((n.columnFilterLang && n.columnFilterLang.Contains) ?? "Contains"), 3),
2066
- C("button", {
2066
+ L("button", {
2067
2067
  type: "button",
2068
- class: M({ active: n.column.condition === "NotContains" }),
2068
+ class: _({ active: n.column.condition === "NotContains" }),
2069
2069
  onClick: r[2] || (r[2] = (u) => i("NotContains"))
2070
2070
  }, H((n.columnFilterLang && n.columnFilterLang.NotContains) ?? "NotContains"), 3),
2071
- C("button", {
2071
+ L("button", {
2072
2072
  type: "button",
2073
- class: M({ active: n.column.condition === "Equal" }),
2073
+ class: _({ active: n.column.condition === "Equal" }),
2074
2074
  onClick: r[3] || (r[3] = (u) => i("Equal"))
2075
2075
  }, H((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2076
- C("button", {
2076
+ L("button", {
2077
2077
  type: "button",
2078
- class: M({ active: n.column.condition === "NotEqual" }),
2078
+ class: _({ active: n.column.condition === "NotEqual" }),
2079
2079
  onClick: r[4] || (r[4] = (u) => i("NotEqual"))
2080
2080
  }, H((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2081
- C("button", {
2081
+ L("button", {
2082
2082
  type: "button",
2083
- class: M({ active: n.column.condition === "StartsWith" }),
2083
+ class: _({ active: n.column.condition === "StartsWith" }),
2084
2084
  onClick: r[5] || (r[5] = (u) => i("StartsWith"))
2085
2085
  }, H((n.columnFilterLang && n.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
2086
- C("button", {
2086
+ L("button", {
2087
2087
  type: "button",
2088
- class: M({ active: n.column.condition === "EndsWith" }),
2088
+ class: _({ active: n.column.condition === "EndsWith" }),
2089
2089
  onClick: r[6] || (r[6] = (u) => i("EndsWith"))
2090
2090
  }, H((n.columnFilterLang && n.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
2091
- ], 64)) : n.column.type === "number" ? (m(), w(U, { key: 1 }, [
2092
- C("button", {
2091
+ ], 64)) : n.column.type === "number" ? (m(), w(G, { key: 1 }, [
2092
+ L("button", {
2093
2093
  type: "button",
2094
- class: M({ active: n.column.condition === "Equal" }),
2094
+ class: _({ active: n.column.condition === "Equal" }),
2095
2095
  onClick: r[7] || (r[7] = (u) => i("Equal"))
2096
2096
  }, H((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2097
- C("button", {
2097
+ L("button", {
2098
2098
  type: "button",
2099
- class: M({ active: n.column.condition === "NotEqual" }),
2099
+ class: _({ active: n.column.condition === "NotEqual" }),
2100
2100
  onClick: r[8] || (r[8] = (u) => i("NotEqual"))
2101
2101
  }, H((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2102
- C("button", {
2102
+ L("button", {
2103
2103
  type: "button",
2104
- class: M({ active: n.column.condition === "GreaterThan" }),
2104
+ class: _({ active: n.column.condition === "GreaterThan" }),
2105
2105
  onClick: r[9] || (r[9] = (u) => i("GreaterThan"))
2106
2106
  }, H((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2107
- C("button", {
2107
+ L("button", {
2108
2108
  type: "button",
2109
- class: M({ active: n.column.condition === "GreaterThanOrEqual" }),
2109
+ class: _({ active: n.column.condition === "GreaterThanOrEqual" }),
2110
2110
  onClick: r[10] || (r[10] = (u) => i("GreaterThanOrEqual"))
2111
2111
  }, H((n.columnFilterLang && n.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual"), 3),
2112
- C("button", {
2112
+ L("button", {
2113
2113
  type: "button",
2114
- class: M({ active: n.column.condition === "LessThan" }),
2114
+ class: _({ active: n.column.condition === "LessThan" }),
2115
2115
  onClick: r[11] || (r[11] = (u) => i("LessThan"))
2116
2116
  }, H((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan"), 3),
2117
- C("button", {
2117
+ L("button", {
2118
2118
  type: "button",
2119
- class: M({ active: n.column.condition === "LessThanOrEqual" }),
2119
+ class: _({ active: n.column.condition === "LessThanOrEqual" }),
2120
2120
  onClick: r[12] || (r[12] = (u) => i("LessThanOrEqual"))
2121
2121
  }, H((n.columnFilterLang && n.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual"), 3)
2122
- ], 64)) : n.column.type === "date" ? (m(), w(U, { key: 2 }, [
2123
- C("button", {
2122
+ ], 64)) : n.column.type === "date" ? (m(), w(G, { key: 2 }, [
2123
+ L("button", {
2124
2124
  type: "button",
2125
- class: M({ active: n.column.condition === "Equal" }),
2125
+ class: _({ active: n.column.condition === "Equal" }),
2126
2126
  onClick: r[13] || (r[13] = (u) => i("Equal"))
2127
2127
  }, H((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2128
- C("button", {
2128
+ L("button", {
2129
2129
  type: "button",
2130
- class: M({ active: n.column.condition === "NotEqual" }),
2130
+ class: _({ active: n.column.condition === "NotEqual" }),
2131
2131
  onClick: r[14] || (r[14] = (u) => i("NotEqual"))
2132
2132
  }, H((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "Not equal"), 3),
2133
- C("button", {
2133
+ L("button", {
2134
2134
  type: "button",
2135
- class: M({ active: n.column.condition === "GreaterThan" }),
2135
+ class: _({ active: n.column.condition === "GreaterThan" }),
2136
2136
  onClick: r[15] || (r[15] = (u) => i("GreaterThan"))
2137
2137
  }, H((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2138
- C("button", {
2138
+ L("button", {
2139
2139
  type: "button",
2140
- class: M({ active: n.column.condition === "LessThan" }),
2140
+ class: _({ active: n.column.condition === "LessThan" }),
2141
2141
  onClick: r[16] || (r[16] = (u) => i("LessThan"))
2142
2142
  }, H((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan"), 3)
2143
2143
  ], 64)) : N("", !0),
2144
- C("button", {
2144
+ L("button", {
2145
2145
  type: "button",
2146
- class: M({ active: n.column.condition === "IsNull" }),
2146
+ class: _({ active: n.column.condition === "IsNull" }),
2147
2147
  onClick: r[17] || (r[17] = (u) => i("IsNull"))
2148
2148
  }, H((n.columnFilterLang && n.columnFilterLang.IsNull) ?? "IsNull"), 3),
2149
- C("button", {
2149
+ L("button", {
2150
2150
  type: "button",
2151
- class: M({ active: n.column.condition === "IsNotNull" }),
2151
+ class: _({ active: n.column.condition === "IsNotNull" }),
2152
2152
  onClick: r[18] || (r[18] = (u) => i("IsNotNull"))
2153
2153
  }, H((n.columnFilterLang && n.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
2154
2154
  ])
@@ -2158,16 +2158,16 @@ const Jo = {
2158
2158
  version: "1.1",
2159
2159
  viewBox: "0 0 17 12",
2160
2160
  xmlns: "http://www.w3.org/2000/svg"
2161
- }, ui = /* @__PURE__ */ C("g", {
2161
+ }, ui = /* @__PURE__ */ L("g", {
2162
2162
  fill: "none",
2163
2163
  "fill-rule": "evenodd"
2164
2164
  }, [
2165
- /* @__PURE__ */ C("g", {
2165
+ /* @__PURE__ */ L("g", {
2166
2166
  transform: "translate(-9 -11)",
2167
2167
  fill: "currentColor",
2168
2168
  "fill-rule": "nonzero"
2169
2169
  }, [
2170
- /* @__PURE__ */ C("path", { d: "m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z" })
2170
+ /* @__PURE__ */ L("path", { d: "m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z" })
2171
2171
  ])
2172
2172
  ], -1), ci = [
2173
2173
  ui
@@ -2175,7 +2175,7 @@ const Jo = {
2175
2175
  function di(e, l) {
2176
2176
  return m(), w("svg", ai, ci);
2177
2177
  }
2178
- const Fn = /* @__PURE__ */ We(si, [["render", di]]), fi = {}, hi = {
2178
+ const Fn = /* @__PURE__ */ Ae(si, [["render", di]]), fi = {}, hi = {
2179
2179
  viewBox: "0 0 24 24",
2180
2180
  width: "24",
2181
2181
  height: "24",
@@ -2185,7 +2185,7 @@ const Fn = /* @__PURE__ */ We(si, [["render", di]]), fi = {}, hi = {
2185
2185
  "stroke-linecap": "round",
2186
2186
  "stroke-linejoin": "round",
2187
2187
  class: "css-i6dzq1"
2188
- }, pi = /* @__PURE__ */ C("line", {
2188
+ }, pi = /* @__PURE__ */ L("line", {
2189
2189
  x1: "5",
2190
2190
  y1: "12",
2191
2191
  x2: "19",
@@ -2196,7 +2196,7 @@ const Fn = /* @__PURE__ */ We(si, [["render", di]]), fi = {}, hi = {
2196
2196
  function mi(e, l) {
2197
2197
  return m(), w("svg", hi, vi);
2198
2198
  }
2199
- const gi = /* @__PURE__ */ We(fi, [["render", mi]]), bi = {}, yi = {
2199
+ const gi = /* @__PURE__ */ Ae(fi, [["render", mi]]), bi = {}, yi = {
2200
2200
  viewBox: "0 0 24 24",
2201
2201
  width: "24",
2202
2202
  height: "24",
@@ -2206,28 +2206,28 @@ const gi = /* @__PURE__ */ We(fi, [["render", mi]]), bi = {}, yi = {
2206
2206
  "stroke-linecap": "round",
2207
2207
  "stroke-linejoin": "round",
2208
2208
  class: "css-i6dzq1"
2209
- }, wi = /* @__PURE__ */ C("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), xi = [
2209
+ }, wi = /* @__PURE__ */ L("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), xi = [
2210
2210
  wi
2211
2211
  ];
2212
2212
  function Si(e, l) {
2213
2213
  return m(), w("svg", yi, xi);
2214
2214
  }
2215
- const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi = { class: "bh-checkbox" }, Li = ["onClick"], Ei = {
2215
+ const ki = /* @__PURE__ */ Ae(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi = { class: "bh-checkbox" }, Li = ["onClick"], Ei = {
2216
2216
  width: "16",
2217
2217
  height: "16",
2218
2218
  viewBox: "0 0 14 14",
2219
2219
  fill: "none"
2220
- }, Pi = {
2220
+ }, Mi = {
2221
2221
  key: 0,
2222
2222
  class: "bh-filter bh-relative"
2223
- }, _i = ["onUpdate:modelValue"], Mi = ["onUpdate:modelValue"], Ti = ["onUpdate:modelValue"], Ii = ["onUpdate:modelValue"], Fi = /* @__PURE__ */ C("option", { value: void 0 }, "All", -1), Oi = /* @__PURE__ */ C("option", { value: !0 }, "True", -1), $i = /* @__PURE__ */ C("option", { value: !1 }, "False", -1), Ri = [
2223
+ }, Pi = ["onUpdate:modelValue"], _i = ["onUpdate:modelValue"], Ti = ["onUpdate:modelValue"], Ii = ["onUpdate:modelValue"], Fi = /* @__PURE__ */ L("option", { value: void 0 }, "All", -1), Oi = /* @__PURE__ */ L("option", { value: !0 }, "True", -1), $i = /* @__PURE__ */ L("option", { value: !1 }, "False", -1), Ri = [
2224
2224
  Fi,
2225
2225
  Oi,
2226
2226
  $i
2227
- ], Ni = ["onClick"], Ai = {
2227
+ ], Ni = ["onClick"], Wi = {
2228
2228
  name: "columnHeader"
2229
2229
  }, an = /* @__PURE__ */ we({
2230
- ...Ai,
2230
+ ...Wi,
2231
2231
  props: [
2232
2232
  "all",
2233
2233
  "expandedrows",
@@ -2245,21 +2245,21 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2245
2245
  "toggleFilterMenu"
2246
2246
  ],
2247
2247
  setup(e, { emit: l }) {
2248
- const n = B(null), o = e, t = l;
2248
+ const n = D(null), o = e, t = l;
2249
2249
  return te(() => o.checkAll, () => {
2250
2250
  n.value && (n.value.indeterminate = o.checkAll !== 0 ? !o.checkAll : !1, n.value.checked = o.checkAll);
2251
2251
  }), (s, r) => (m(), w("tr", Ci, [
2252
2252
  o.all.hasCheckbox ? (m(), w("th", {
2253
2253
  key: "chkall",
2254
2254
  style: ee({ width: o.all.checkboxColumnWidth + " !important", minWidth: o.all.checkboxColumnWidth + " !important" }),
2255
- class: M({
2255
+ class: _({
2256
2256
  "bh-sticky bh-bg-blue-light bh-z-[1]": o.all.stickyHeader || o.all.stickyFirstColumn,
2257
2257
  "bh-top-0": o.all.stickyHeader,
2258
2258
  "bh-left-0": o.all.stickyFirstColumn
2259
2259
  })
2260
2260
  }, [
2261
- C("div", zi, [
2262
- C("input", {
2261
+ L("div", zi, [
2262
+ L("input", {
2263
2263
  ref_key: "selectedAll",
2264
2264
  ref: n,
2265
2265
  type: "checkbox",
@@ -2268,7 +2268,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2268
2268
  return t("selectAll", (f = u == null ? void 0 : u.target) == null ? void 0 : f.checked);
2269
2269
  }, ["stop"]))
2270
2270
  }, null, 512),
2271
- C("div", null, [
2271
+ L("div", null, [
2272
2272
  oe(Fn, { class: "check" }),
2273
2273
  oe(gi, { class: "intermediate" })
2274
2274
  ])
@@ -2277,7 +2277,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2277
2277
  o.all.hasRightPanel ? (m(), w("th", {
2278
2278
  key: 1,
2279
2279
  style: ee({ width: o.all.rightPanelColumnWidth + " !important", minWidth: o.all.rightPanelColumnWidth + " !important" }),
2280
- class: M({
2280
+ class: _({
2281
2281
  "bh-sticky bh-bg-blue-light bh-z-[1]": o.all.stickyHeader || o.all.stickyFirstColumn,
2282
2282
  "bh-top-0": o.all.stickyHeader,
2283
2283
  "bh-left-0": o.all.stickyFirstColumn
@@ -2293,10 +2293,10 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2293
2293
  expandall: o.all.expandall
2294
2294
  }, null, 8, ["expandedrows", "expandall"])) : N("", !0)
2295
2295
  ], 4)) : N("", !0),
2296
- (m(!0), w(U, null, pe(o.all.columns, (u, f) => (m(), w(U, null, [
2296
+ (m(!0), w(G, null, pe(o.all.columns, (u, f) => (m(), w(G, null, [
2297
2297
  u.hide ? N("", !0) : (m(), w("th", {
2298
2298
  key: u.field,
2299
- class: M(["bh-select-none bh-z-[1]", [
2299
+ class: _(["bh-select-none bh-z-[1]", [
2300
2300
  o.all.sortable && u.sort ? "bh-cursor-pointer" : "",
2301
2301
  f === 0 && o.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2302
2302
  o.all.hasCheckbox && f === 0 && o.all.stickyFirstColumn ? "bh-left-[52px]" : ""
@@ -2307,42 +2307,42 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2307
2307
  "max-width": u.maxWidth
2308
2308
  })
2309
2309
  }, [
2310
- C("div", {
2311
- class: M(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2310
+ L("div", {
2311
+ class: _(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2312
2312
  onClick: (d) => o.all.sortable && u.sort && t("sortChange", u.field)
2313
2313
  }, [
2314
2314
  mt(H(u.title) + " ", 1),
2315
2315
  o.all.sortable && u.sort ? (m(), w("span", {
2316
2316
  key: 0,
2317
- class: M(["bh-ml-3 bh-sort bh-flex bh-items-center", [o.currentSortColumn, o.currentSortDirection]])
2317
+ class: _(["bh-ml-3 bh-sort bh-flex bh-items-center", [o.currentSortColumn, o.currentSortDirection]])
2318
2318
  }, [
2319
2319
  (m(), w("svg", Ei, [
2320
- C("polygon", {
2320
+ L("polygon", {
2321
2321
  points: "3.11,6.25 10.89,6.25 7,1.75 ",
2322
2322
  fill: "currentColor",
2323
- class: M(["bh-text-black/20", [
2323
+ class: _(["bh-text-black/20", [
2324
2324
  e.currentSortColumn === u.field && e.currentSortDirection === "asc" ? "!bh-text-primary" : ""
2325
2325
  ]])
2326
2326
  }, null, 2),
2327
- C("polygon", {
2327
+ L("polygon", {
2328
2328
  points: "7,12.25 10.89,7.75 3.11,7.75 ",
2329
2329
  fill: "currentColor",
2330
- class: M(["bh-text-black/20", [
2330
+ class: _(["bh-text-black/20", [
2331
2331
  e.currentSortColumn === u.field && e.currentSortDirection === "desc" ? "!bh-text-primary" : ""
2332
2332
  ]])
2333
2333
  }, null, 2)
2334
2334
  ]))
2335
2335
  ], 2)) : N("", !0)
2336
2336
  ], 10, Li),
2337
- o.all.columnFilter && !o.isFooter ? (m(), w(U, { key: 0 }, [
2338
- u.filter ? (m(), w("div", Pi, [
2337
+ o.all.columnFilter && !o.isFooter ? (m(), w(G, { key: 0 }, [
2338
+ u.filter ? (m(), w("div", Mi, [
2339
2339
  u.type === "string" ? ve((m(), w("input", {
2340
2340
  key: 0,
2341
2341
  "onUpdate:modelValue": (d) => u.value = d,
2342
2342
  type: "text",
2343
2343
  class: "bh-form-control",
2344
2344
  onKeyup: r[1] || (r[1] = (d) => t("filterChange"))
2345
- }, null, 40, _i)), [
2345
+ }, null, 40, Pi)), [
2346
2346
  [
2347
2347
  ut,
2348
2348
  u.value,
@@ -2356,7 +2356,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2356
2356
  type: "number",
2357
2357
  class: "bh-form-control",
2358
2358
  onKeyup: r[2] || (r[2] = (d) => t("filterChange"))
2359
- }, null, 40, Mi)), [
2359
+ }, null, 40, _i)), [
2360
2360
  [
2361
2361
  ut,
2362
2362
  u.value,
@@ -2406,7 +2406,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2406
2406
  ], 64))), 256))
2407
2407
  ]));
2408
2408
  }
2409
- }), Wi = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, Bi = { class: "bh-flex bh-h-full" }, Di = /* @__PURE__ */ C("span", null, "##Left Menu Slot##", -1), qi = { class: "menu-resize-controls bh-absolute bh-right-0 bh-top-1/2 bh-transform -bh-translate-y-1/2 bh-z-10 bh-bg-gray-100 bh-rounded-l bh-shadow-md bh-select-none" }, Hi = /* @__PURE__ */ C("path", {
2409
+ }), Ai = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, Di = { class: "bh-flex bh-h-full" }, Bi = /* @__PURE__ */ L("span", null, "##Left Menu Slot##", -1), qi = { class: "menu-resize-controls bh-absolute bh-right-0 bh-top-1/2 bh-transform -bh-translate-y-1/2 bh-z-10 bh-bg-gray-100 bh-rounded-l bh-shadow-md bh-select-none" }, Hi = /* @__PURE__ */ L("path", {
2410
2410
  d: "M7 1L1 6L7 11",
2411
2411
  stroke: "currentColor",
2412
2412
  "stroke-width": "2",
@@ -2417,7 +2417,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2417
2417
  ], Vi = {
2418
2418
  class: "bh-flex-1",
2419
2419
  style: { overflow: "auto", "min-width": "0", width: "100%" }
2420
- }, Ui = /* @__PURE__ */ C("span", null, "##Top Menu Slot##", -1), Gi = /* @__PURE__ */ C("span", null, "##Table Action Header Slot##", -1), Qi = ["onClick"], Ki = { class: "bh-checkbox" }, Xi = ["value"], Yi = ["innerHTML"], Ji = ["onClick"], Zi = ["colspan"], er = ["colspan"], tr = /* @__PURE__ */ C("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), nr = [
2420
+ }, Ui = /* @__PURE__ */ L("span", null, "##Top Menu Slot##", -1), Gi = /* @__PURE__ */ L("span", null, "##Table Action Header Slot##", -1), Qi = ["onClick"], Ki = { class: "bh-checkbox" }, Xi = ["value"], Yi = ["innerHTML"], Ji = ["onClick"], Zi = ["colspan"], er = ["colspan"], tr = /* @__PURE__ */ L("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), nr = [
2421
2421
  tr
2422
2422
  ], lr = ["colspan"], or = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, ir = { class: "bh-pagination-info bh-flex bh-items-center" }, rr = { class: "bh-mr-2" }, sr = ["value"], ar = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, ur = ["innerHTML"], cr = {
2423
2423
  key: 1,
@@ -2425,12 +2425,12 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2425
2425
  width: "14",
2426
2426
  height: "14",
2427
2427
  viewBox: "0 0 16 16"
2428
- }, dr = /* @__PURE__ */ C("g", {
2428
+ }, dr = /* @__PURE__ */ L("g", {
2429
2429
  fill: "currentColor",
2430
2430
  "fill-rule": "evenodd"
2431
2431
  }, [
2432
- /* @__PURE__ */ C("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" }),
2433
- /* @__PURE__ */ C("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" })
2432
+ /* @__PURE__ */ L("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" }),
2433
+ /* @__PURE__ */ L("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" })
2434
2434
  ], -1), fr = [
2435
2435
  dr
2436
2436
  ], hr = ["innerHTML"], pr = {
@@ -2439,7 +2439,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2439
2439
  width: "14",
2440
2440
  height: "14",
2441
2441
  viewBox: "0 0 16 16"
2442
- }, vr = /* @__PURE__ */ C("path", {
2442
+ }, vr = /* @__PURE__ */ L("path", {
2443
2443
  fill: "currentColor",
2444
2444
  "fill-rule": "evenodd",
2445
2445
  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"
@@ -2451,7 +2451,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2451
2451
  width: "14",
2452
2452
  height: "14",
2453
2453
  viewBox: "0 0 16 16"
2454
- }, wr = /* @__PURE__ */ C("path", {
2454
+ }, wr = /* @__PURE__ */ L("path", {
2455
2455
  fill: "currentColor",
2456
2456
  "fill-rule": "evenodd",
2457
2457
  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"
@@ -2463,17 +2463,17 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2463
2463
  width: "14",
2464
2464
  height: "14",
2465
2465
  viewBox: "0 0 16 16"
2466
- }, Cr = /* @__PURE__ */ C("g", {
2466
+ }, Cr = /* @__PURE__ */ L("g", {
2467
2467
  fill: "currentColor",
2468
2468
  "fill-rule": "evenodd"
2469
2469
  }, [
2470
- /* @__PURE__ */ C("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" }),
2471
- /* @__PURE__ */ C("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" })
2470
+ /* @__PURE__ */ L("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" }),
2471
+ /* @__PURE__ */ L("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" })
2472
2472
  ], -1), zr = [
2473
2473
  Cr
2474
2474
  ], Lr = {
2475
2475
  name: "Vue3Datatable"
2476
- }, Pr = /* @__PURE__ */ we({
2476
+ }, Mr = /* @__PURE__ */ we({
2477
2477
  ...Lr,
2478
2478
  props: {
2479
2479
  loading: { type: Boolean, default: !1 },
@@ -2537,7 +2537,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2537
2537
  enablefooterpagination: { type: Boolean },
2538
2538
  footerOffset: { default: 0 },
2539
2539
  tableRightOffset: { default: 0 },
2540
- tableLeftOffset: { default: 5 }
2540
+ tableLeftOffset: { default: 5 },
2541
+ initialLeftMenuState: { type: Boolean, default: void 0 }
2541
2542
  },
2542
2543
  emits: [
2543
2544
  "change",
@@ -2560,29 +2561,29 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2560
2561
  const v = ((Rt = a.type) == null ? void 0 : Rt.toLowerCase()) || "string";
2561
2562
  a.type = v, 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 = !v || v === "string" ? "Contains" : "Equal";
2562
2563
  }
2563
- const i = B([]), s = B(t.page), r = B(
2564
+ const i = D([]), s = D(t.page), r = D(
2564
2565
  t.pagination ? t.pageSize : (Nt = t.rows) == null ? void 0 : Nt.length
2565
- ), u = t.pageSize, f = B(t.sortColumn), d = t.sortColumn, p = B(t.sortDirection), E = t.sortDirection, T = B(t.totalRows), I = B([]), $ = B(null), y = B(t.loading), A = B(t.search);
2566
+ ), u = t.pageSize, f = D(t.sortColumn), d = t.sortColumn, p = D(t.sortDirection), E = t.sortDirection, T = D(t.totalRows), I = D([]), $ = D(null), y = D(t.loading), W = D(t.search);
2566
2567
  JSON.parse(JSON.stringify(t.columns));
2567
- const q = B(null), j = B(null);
2568
- let O = B(0);
2569
- const Y = B(230), z = B(t.leftmenuDefaultWidth), L = B(!1), W = B(null), X = () => {
2570
- if (W.value) {
2571
- const a = L.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth;
2572
- W.value.style.cssText = `
2573
- width: ${z.value}px !important;
2568
+ const q = D(null), j = D(null);
2569
+ let O = D(0);
2570
+ const Y = D(230), S = D(t.leftmenuDefaultWidth), k = D(!1), A = D(null), V = () => {
2571
+ if (A.value) {
2572
+ const a = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth;
2573
+ A.value.style.cssText = `
2574
+ width: ${S.value}px !important;
2574
2575
  min-width: ${a}px !important;
2575
2576
  max-width: ${a}px !important;
2576
2577
  `;
2577
2578
  }
2578
2579
  }, Z = () => {
2579
- L.value ? z.value = t.leftmenuMinWidth : z.value = t.leftmenuDefaultWidth, X();
2580
+ k.value ? S.value = t.leftmenuMinWidth : S.value = t.leftmenuDefaultWidth, V();
2580
2581
  }, st = () => {
2581
- L.value = !L.value, z.value = L.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, X(), ie("currentLeftMenuSize", z.value);
2582
+ k.value = !k.value, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, V(), ie("currentLeftMenuSize", S.value);
2582
2583
  };
2583
2584
  Le(() => {
2584
2585
  ue(), Oe(() => {
2585
- Ge.value <= 0 && (Ge.value = 10), z.value = t.leftmenuDefaultWidth, X(), window.addEventListener("resize", Z);
2586
+ Ge.value <= 0 && (Ge.value = 10), t.initialLeftMenuState !== void 0 ? (k.value = t.initialLeftMenuState, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, console.log("Setting initial left menu state:", k.value), console.log("Setting initial left menu width:", S.value)) : S.value = t.leftmenuDefaultWidth, V(), window.addEventListener("resize", Z);
2586
2587
  });
2587
2588
  });
2588
2589
  const ie = n;
@@ -2597,7 +2598,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2597
2598
  return Nn();
2598
2599
  },
2599
2600
  clearSelectedRows() {
2600
- return An();
2601
+ return Wn();
2601
2602
  },
2602
2603
  selectRow(a) {
2603
2604
  Ft(a);
@@ -2610,18 +2611,24 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2610
2611
  },
2611
2612
  getFilteredRows() {
2612
2613
  return qe();
2614
+ },
2615
+ // Expose function to set the left menu state
2616
+ setLeftMenuState(a) {
2617
+ k.value = a, S.value = a ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, V();
2613
2618
  }
2614
- });
2615
- const Be = (a, ...v) => a.replace(/{(\d+)}/g, (k, D) => typeof v[D] < "u" ? v[D] : k), J = K(() => {
2619
+ }), te(() => t.initialLeftMenuState, (a) => {
2620
+ a !== void 0 && (k.value = a, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, V());
2621
+ }, { immediate: !0 });
2622
+ const De = (a, ...v) => a.replace(/{(\d+)}/g, (z, B) => typeof v[B] < "u" ? v[B] : z), J = X(() => {
2616
2623
  const a = t.columns.find((v) => v.isUnique);
2617
2624
  return (a == null ? void 0 : a.field) || null;
2618
- }), se = K(() => {
2625
+ }), se = X(() => {
2619
2626
  const a = r.value < 1 ? 1 : Math.ceil(T.value / r.value);
2620
2627
  return Math.max(a || 0, 1);
2621
- }), ge = K(() => (s.value - 1) * r.value + 1), Te = K(() => {
2628
+ }), ge = X(() => (s.value - 1) * r.value + 1), Te = X(() => {
2622
2629
  const a = s.value * r.value;
2623
2630
  return T.value >= a ? a : T.value;
2624
- }), De = K(() => {
2631
+ }), Be = X(() => {
2625
2632
  let a, v;
2626
2633
  return typeof t.showNumbersCount < "u" && t.showNumbersCount < se.value ? (a = Math.max(
2627
2634
  s.value - Math.floor(t.showNumbersCount / 2),
@@ -2630,58 +2637,58 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2630
2637
  (le) => a + le
2631
2638
  );
2632
2639
  }), qe = () => {
2633
- var le, G, he;
2640
+ var le, Q, he;
2634
2641
  let a = t.rows || [];
2635
2642
  if (!t.isServerMode) {
2636
2643
  if ((le = t.columns) == null || le.forEach((h) => {
2637
- h.filter && (h.value !== void 0 && h.value !== null && h.value !== "" || h.condition === "IsNull" || h.condition == "IsNotNull") && (h.type === "string" ? (h.value && !h.condition && (h.condition = "Contains"), h.condition === "Contains" ? a = a.filter((_) => {
2638
- var V;
2639
- return (V = F(_, h.field)) == null ? void 0 : V.toString().toLowerCase().includes(h.value.toLowerCase());
2640
- }) : h.condition === "NotContains" ? a = a.filter((_) => {
2641
- var V;
2642
- return !((V = F(_, h.field)) != null && V.toString().toLowerCase().includes(h.value.toLowerCase()));
2643
- }) : h.condition === "Equal" ? a = a.filter((_) => {
2644
- var V;
2645
- return ((V = F(_, h.field)) == null ? void 0 : V.toString().toLowerCase()) === h.value.toLowerCase();
2646
- }) : h.condition === "NotEqual" ? a = a.filter((_) => {
2647
- var V;
2648
- return ((V = F(_, h.field)) == null ? void 0 : V.toString().toLowerCase()) !== h.value.toLowerCase();
2649
- }) : h.condition == "StartsWith" ? a = a.filter((_) => {
2650
- var V;
2651
- return ((V = F(_, h.field)) == null ? void 0 : V.toString().toLowerCase().indexOf(h.value.toLowerCase())) === 0;
2652
- }) : h.condition == "EndsWith" && (a = a.filter((_) => {
2653
- var V;
2654
- return ((V = F(_, h.field)) == null ? void 0 : V.toString().toLowerCase().substr(h.value.length * -1)) === h.value.toLowerCase();
2655
- }))) : h.type === "number" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? a = a.filter((_) => F(_, h.field) && parseFloat(F(_, h.field)) === parseFloat(h.value)) : h.condition === "NotEqual" ? a = a.filter((_) => F(_, h.field) && parseFloat(F(_, h.field)) !== parseFloat(h.value)) : h.condition === "GreaterThan" ? a = a.filter((_) => F(_, h.field) && parseFloat(F(_, h.field)) > parseFloat(h.value)) : h.condition === "GreaterThanOrEqual" ? a = a.filter((_) => F(_, h.field) && parseFloat(F(_, h.field)) >= parseFloat(h.value)) : h.condition === "LessThan" ? a = a.filter((_) => F(_, h.field) && parseFloat(F(_, h.field)) < parseFloat(h.value)) : h.condition === "LessThanOrEqual" && (a = a.filter((_) => F(_, h.field) && parseFloat(F(_, h.field)) <= parseFloat(h.value)))) : h.type === "date" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? a = a.filter((_) => F(_, h.field) && xe(F(_, h.field)) === h.value) : h.condition === "NotEqual" ? a = a.filter((_) => F(_, h.field) && xe(F(_, h.field)) !== h.value) : h.condition === "GreaterThan" ? a = a.filter((_) => F(_, h.field) && xe(F(_, h.field)) > h.value) : h.condition === "LessThan" && (a = a.filter((_) => F(_, h.field) && xe(F(_, h.field)) < h.value))) : h.type === "bool" && (a = a.filter((_) => F(_, h.field) === h.value)), h.condition === "IsNull" ? (a = a.filter((_) => F(_, h.field) == null || F(_, h.field) == ""), h.value = "") : h.condition === "IsNotNull" && (h.value = "", a = a.filter((_) => F(_, h.field))));
2656
- }), A.value && (a != null && a.length)) {
2644
+ h.filter && (h.value !== void 0 && h.value !== null && h.value !== "" || h.condition === "IsNull" || h.condition == "IsNotNull") && (h.type === "string" ? (h.value && !h.condition && (h.condition = "Contains"), h.condition === "Contains" ? a = a.filter((P) => {
2645
+ var U;
2646
+ return (U = F(P, h.field)) == null ? void 0 : U.toString().toLowerCase().includes(h.value.toLowerCase());
2647
+ }) : h.condition === "NotContains" ? a = a.filter((P) => {
2648
+ var U;
2649
+ return !((U = F(P, h.field)) != null && U.toString().toLowerCase().includes(h.value.toLowerCase()));
2650
+ }) : h.condition === "Equal" ? a = a.filter((P) => {
2651
+ var U;
2652
+ return ((U = F(P, h.field)) == null ? void 0 : U.toString().toLowerCase()) === h.value.toLowerCase();
2653
+ }) : h.condition === "NotEqual" ? a = a.filter((P) => {
2654
+ var U;
2655
+ return ((U = F(P, h.field)) == null ? void 0 : U.toString().toLowerCase()) !== h.value.toLowerCase();
2656
+ }) : h.condition == "StartsWith" ? a = a.filter((P) => {
2657
+ var U;
2658
+ return ((U = F(P, h.field)) == null ? void 0 : U.toString().toLowerCase().indexOf(h.value.toLowerCase())) === 0;
2659
+ }) : h.condition == "EndsWith" && (a = a.filter((P) => {
2660
+ var U;
2661
+ return ((U = F(P, h.field)) == null ? void 0 : U.toString().toLowerCase().substr(h.value.length * -1)) === h.value.toLowerCase();
2662
+ }))) : h.type === "number" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? a = a.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) === parseFloat(h.value)) : h.condition === "NotEqual" ? a = a.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) !== parseFloat(h.value)) : h.condition === "GreaterThan" ? a = a.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) > parseFloat(h.value)) : h.condition === "GreaterThanOrEqual" ? a = a.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) >= parseFloat(h.value)) : h.condition === "LessThan" ? a = a.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) < parseFloat(h.value)) : h.condition === "LessThanOrEqual" && (a = a.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) <= parseFloat(h.value)))) : h.type === "date" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? a = a.filter((P) => F(P, h.field) && xe(F(P, h.field)) === h.value) : h.condition === "NotEqual" ? a = a.filter((P) => F(P, h.field) && xe(F(P, h.field)) !== h.value) : h.condition === "GreaterThan" ? a = a.filter((P) => F(P, h.field) && xe(F(P, h.field)) > h.value) : h.condition === "LessThan" && (a = a.filter((P) => F(P, h.field) && xe(F(P, h.field)) < h.value))) : h.type === "bool" && (a = a.filter((P) => F(P, h.field) === h.value)), h.condition === "IsNull" ? (a = a.filter((P) => F(P, h.field) == null || F(P, h.field) == ""), h.value = "") : h.condition === "IsNotNull" && (h.value = "", a = a.filter((P) => F(P, h.field))));
2663
+ }), W.value && (a != null && a.length)) {
2657
2664
  let h = [];
2658
- const _ = (t.columns || []).filter((V) => V.search && !V.hide).map((V) => V.field);
2665
+ const P = (t.columns || []).filter((U) => U.search && !U.hide).map((U) => U.field);
2659
2666
  for (var v = 0; v < (a == null ? void 0 : a.length); v++)
2660
- for (var k = 0; k < _.length; k++)
2661
- if ((G = F(a[v], _[k])) != null && G.toString().toLowerCase().includes(A.value.toLowerCase())) {
2667
+ for (var z = 0; z < P.length; z++)
2668
+ if ((Q = F(a[v], P[z])) != null && Q.toString().toLowerCase().includes(W.value.toLowerCase())) {
2662
2669
  h.push(a[v]);
2663
2670
  break;
2664
2671
  }
2665
2672
  a = h;
2666
2673
  }
2667
- var D = new Intl.Collator(void 0, {
2674
+ var B = new Intl.Collator(void 0, {
2668
2675
  numeric: ((he = t.columns.find((h) => h.field == f.value)) == null ? void 0 : he.type) === "number",
2669
2676
  sensitivity: "base"
2670
2677
  });
2671
2678
  const Hn = p.value === "desc" ? -1 : 1;
2672
- a.sort((h, _) => {
2673
- var At, Wt;
2674
- const V = (At = f.value) == null ? void 0 : At.split(".").reduce((ke, at) => ke == null ? void 0 : ke[at], h), jn = (Wt = f.value) == null ? void 0 : Wt.split(".").reduce((ke, at) => ke == null ? void 0 : ke[at], _);
2675
- return D.compare(V, jn) * Hn;
2679
+ a.sort((h, P) => {
2680
+ var Wt, At;
2681
+ const U = (Wt = f.value) == null ? void 0 : Wt.split(".").reduce((ke, at) => ke == null ? void 0 : ke[at], h), jn = (At = f.value) == null ? void 0 : At.split(".").reduce((ke, at) => ke == null ? void 0 : ke[at], P);
2682
+ return B.compare(U, jn) * Hn;
2676
2683
  });
2677
2684
  }
2678
2685
  return a;
2679
- }, de = B([]), ue = () => {
2686
+ }, de = D([]), ue = () => {
2680
2687
  let a = [], v = qe();
2681
- t.isServerMode ? (T.value = t.totalRows || 0, a = v) : (T.value = (v == null ? void 0 : v.length) || 0, a = v.slice(ge.value - 1, Te.value)), t.hasSubtable && a.forEach(function(k) {
2682
- k.isExpanded != null && (de.value.find((le) => le.id == k.id) || de.value.push({
2683
- id: k.id,
2684
- isExpanded: k.isExpanded
2688
+ t.isServerMode ? (T.value = t.totalRows || 0, a = v) : (T.value = (v == null ? void 0 : v.length) || 0, a = v.slice(ge.value - 1, Te.value)), t.hasSubtable && a.forEach(function(z) {
2689
+ z.isExpanded != null && (de.value.find((le) => le.id == z.id) || de.value.push({
2690
+ id: z.id,
2691
+ isExpanded: z.isExpanded
2685
2692
  }));
2686
2693
  }), i.value = a || [];
2687
2694
  };
@@ -2705,50 +2712,50 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2705
2712
  s.value++;
2706
2713
  };
2707
2714
  te(() => s.value, () => {
2708
- P(!1), t.isServerMode ? fe("page") : (ue(), ie("pageChange", s.value));
2715
+ M(!1), t.isServerMode ? fe("page") : (ue(), ie("pageChange", s.value));
2709
2716
  }), te(() => t.rows, () => {
2710
- t.isServerMode || (s.value = 1), P(!1), ue();
2717
+ t.isServerMode || (s.value = 1), M(!1), ue();
2711
2718
  });
2712
2719
  const g = (a) => {
2713
2720
  r.value = a;
2714
2721
  };
2715
2722
  te(() => r.value, () => {
2716
- P(!1), t.isServerMode ? s.value === 1 ? fe("pagesize", !0) : s.value = 1 : (s.value = 1, ue(), ie("pageSizeChange", r.value));
2723
+ M(!1), t.isServerMode ? s.value === 1 ? fe("pagesize", !0) : s.value = 1 : (s.value = 1, ue(), ie("pageSizeChange", r.value));
2717
2724
  });
2718
2725
  const b = (a) => {
2719
2726
  let v = "asc";
2720
2727
  a == f.value && p.value === "asc" && (v = "desc");
2721
- let k = (s.value - 1) * r.value, D = r.value;
2722
- f.value = a, p.value = v, P(!1), ue(), t.isServerMode ? fe("sort") : ie("sortChange", { offset: k, limit: D, field: a, direction: v });
2728
+ let z = (s.value - 1) * r.value, B = r.value;
2729
+ f.value = a, p.value = v, M(!1), ue(), t.isServerMode ? fe("sort") : ie("sortChange", { offset: z, limit: B, field: a, direction: v });
2723
2730
  }, x = (a) => {
2724
2731
  $.value = a.length && i.value.length && a.length === i.value.length;
2725
2732
  const v = i.value.filter(
2726
- (k, D) => I.value.includes(J.value ? k[J.value] : D)
2733
+ (z, B) => I.value.includes(J.value ? z[J.value] : B)
2727
2734
  );
2728
2735
  ie("rowSelect", v);
2729
2736
  };
2730
2737
  te(() => I.value, x);
2731
- const P = (a) => {
2738
+ const M = (a) => {
2732
2739
  a ? I.value = i.value.map(
2733
- (v, k) => J.value ? v[J.value] : k
2740
+ (v, z) => J.value ? v[J.value] : z
2734
2741
  ) : I.value = [];
2735
2742
  }, R = () => {
2736
- P(!1), t.isServerMode ? s.value === 1 ? fe("filter", !0) : s.value = 1 : (s.value = 1, ue(), ie("filterChange", t.columns));
2743
+ M(!1), t.isServerMode ? s.value === 1 ? fe("filter", !0) : s.value = 1 : (s.value = 1, ue(), ie("filterChange", t.columns));
2737
2744
  }, ne = () => {
2738
- P(!1), t.isServerMode ? s.value === 1 ? fe("search", !0) : s.value = 1 : (s.value = 1, ue(), ie("searchChange", A.value));
2745
+ M(!1), t.isServerMode ? s.value === 1 ? fe("search", !0) : s.value = 1 : (s.value = 1, ue(), ie("searchChange", W.value));
2739
2746
  };
2740
2747
  te(
2741
2748
  () => t.search,
2742
2749
  () => {
2743
- A.value = t.search, ne();
2750
+ W.value = t.search, ne();
2744
2751
  }
2745
2752
  );
2746
- const F = (a, v) => v == null ? void 0 : v.split(".").reduce((k, D) => k == null ? void 0 : k[D], a), xe = (a) => {
2753
+ const F = (a, v) => v == null ? void 0 : v.split(".").reduce((z, B) => z == null ? void 0 : z[B], a), xe = (a) => {
2747
2754
  try {
2748
2755
  if (!a)
2749
2756
  return "";
2750
- const v = new Date(a), k = v.getDate(), D = v.getMonth() + 1;
2751
- return v.getFullYear() + "-" + (D > 9 ? D : "0" + D) + "-" + (k > 9 ? k : "0" + k);
2757
+ const v = new Date(a), z = v.getDate(), B = v.getMonth() + 1;
2758
+ return v.getFullYear() + "-" + (B > 9 ? B : "0" + B) + "-" + (z > 9 ? z : "0" + z);
2752
2759
  } catch {
2753
2760
  }
2754
2761
  return "";
@@ -2759,17 +2766,17 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2759
2766
  }, fe = (a, v = !1) => {
2760
2767
  if (t.isServerMode) {
2761
2768
  On();
2762
- const k = {
2769
+ const z = {
2763
2770
  current_page: v ? 1 : s.value,
2764
2771
  pagesize: r.value,
2765
2772
  offset: (s.value - 1) * r.value,
2766
2773
  sort_column: f.value,
2767
2774
  sort_direction: p.value,
2768
- search: A.value,
2775
+ search: W.value,
2769
2776
  column_filters: t.columns,
2770
2777
  change_type: a
2771
2778
  };
2772
- ie("change", k);
2779
+ ie("change", z);
2773
2780
  }
2774
2781
  }, On = () => {
2775
2782
  for (let a = 0; a < t.columns.length; a++) {
@@ -2777,72 +2784,72 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2777
2784
  v.filter && (v.value !== void 0 && v.value !== null && v.value !== "" || v.condition === "IsNull" || v.condition === "IsNotNull") && (v.type === "string" && v.value && !v.condition && (v.condition = "Contains"), v.type === "number" && v.value && !v.condition && (v.condition = "Equal"), v.type === "date" && v.value && !v.condition && (v.condition = "Equal"));
2778
2785
  }
2779
2786
  }, $n = () => {
2780
- P(!1);
2787
+ M(!1);
2781
2788
  for (let a = 0; a < t.columns.length; a++)
2782
2789
  t.columns[a].value = "";
2783
- A.value = "", r.value = u, f.value = d, p.value = E, t.isServerMode ? s.value === 1 ? fe("reset", !0) : s.value = 1 : (s.value = 1, ue());
2790
+ W.value = "", r.value = u, f.value = d, p.value = E, t.isServerMode ? s.value === 1 ? fe("reset", !0) : s.value = 1 : (s.value = 1, ue());
2784
2791
  }, Rn = () => i.value.filter(
2785
- (v, k) => I.value.includes(J.value ? v[J.value] : k)
2786
- ), Nn = () => t.columns, An = () => {
2792
+ (v, z) => I.value.includes(J.value ? v[J.value] : z)
2793
+ ), Nn = () => t.columns, Wn = () => {
2787
2794
  I.value = [];
2788
2795
  }, Ft = (a) => {
2789
2796
  if (!Ue(a)) {
2790
- const v = i.value.find((k, D) => D === a);
2797
+ const v = i.value.find((z, B) => B === a);
2791
2798
  I.value.push(
2792
2799
  J.value ? v[J.value] : a
2793
2800
  );
2794
2801
  }
2795
2802
  }, Ot = (a) => {
2796
2803
  if (Ue(a)) {
2797
- const v = i.value.find((k, D) => D === a);
2804
+ const v = i.value.find((z, B) => B === a);
2798
2805
  I.value = I.value.filter(
2799
- (k) => k !== (J.value ? v[J.value] : a)
2806
+ (z) => z !== (J.value ? v[J.value] : a)
2800
2807
  );
2801
2808
  }
2802
2809
  }, Ue = (a) => {
2803
- const v = i.value.find((k, D) => D === a);
2810
+ const v = i.value.find((z, B) => B === a);
2804
2811
  return v ? I.value.includes(
2805
2812
  J.value ? v[J.value] : a
2806
2813
  ) : !1;
2807
2814
  };
2808
2815
  let Se = 0;
2809
2816
  t.hasCheckbox && Se++, t.hasSubtable && Se++, t.hasRightPanel && Se++;
2810
- const Wn = B(0), Bn = setInterval(function() {
2811
- Wn.value++;
2812
- }, 2200), Ge = B(t.topmenusize), $t = B(null), Dn = al($t).height, qn = (a) => {
2817
+ const An = D(0), Dn = setInterval(function() {
2818
+ An.value++;
2819
+ }, 2200), Ge = D(t.topmenusize), $t = D(null), Bn = al($t).height, qn = (a) => {
2813
2820
  if (!a || !a.length) return;
2814
2821
  const v = a[0].size;
2815
2822
  Ge.value = v, ie("currentTopMenuSize", v);
2816
2823
  };
2817
2824
  return Ze(() => {
2818
- clearInterval(Bn), window.removeEventListener("resize", Z);
2819
- }), (a, v) => (m(), w("div", Wi, [
2820
- oe(Q(Ut), {
2825
+ clearInterval(Dn), window.removeEventListener("resize", Z);
2826
+ }), (a, v) => (m(), w("div", Ai, [
2827
+ oe(K(Ut), {
2821
2828
  class: "default-theme",
2822
2829
  style: ee({ height: t.height })
2823
2830
  }, {
2824
- default: _e(() => [
2825
- oe(Q(dt), null, {
2826
- default: _e(() => [
2827
- C("div", Bi, [
2831
+ default: Pe(() => [
2832
+ oe(K(dt), null, {
2833
+ default: Pe(() => [
2834
+ L("div", Di, [
2828
2835
  a.enableleftmenu ? (m(), w("div", {
2829
2836
  key: 0,
2830
2837
  ref_key: "leftmenuel",
2831
- ref: W,
2838
+ ref: A,
2832
2839
  class: "left-menu-container bh-relative",
2833
2840
  style: ee({
2834
- width: z.value + "px",
2841
+ width: S.value + "px",
2835
2842
  transition: "width 0.3s ease",
2836
2843
  overflow: "hidden",
2837
- minWidth: (L.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px",
2838
- maxWidth: (L.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px"
2844
+ minWidth: (k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px",
2845
+ maxWidth: (k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px"
2839
2846
  })
2840
2847
  }, [
2841
2848
  ae(a.$slots, "tableleftmenu", {}, () => [
2842
- Di
2849
+ Bi
2843
2850
  ]),
2844
- C("div", qi, [
2845
- C("button", {
2851
+ L("div", qi, [
2852
+ L("button", {
2846
2853
  onClick: st,
2847
2854
  class: "bh-w-4 bh-h-10 bh-flex bh-justify-center bh-items-center bh-border-none bh-bg-transparent bh-cursor-pointer bh-outline-none"
2848
2855
  }, [
@@ -2852,20 +2859,20 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2852
2859
  viewBox: "0 0 8 12",
2853
2860
  fill: "none",
2854
2861
  xmlns: "http://www.w3.org/2000/svg",
2855
- style: ee({ transform: L.value ? "rotate(180deg)" : "none" })
2862
+ style: ee({ transform: k.value ? "rotate(180deg)" : "none" })
2856
2863
  }, ji, 4))
2857
2864
  ])
2858
2865
  ])
2859
2866
  ], 4)) : N("", !0),
2860
- C("div", Vi, [
2861
- oe(Q(Ut), {
2867
+ L("div", Vi, [
2868
+ oe(K(Ut), {
2862
2869
  class: "default-theme",
2863
2870
  horizontal: "horizontal",
2864
2871
  onResize: qn,
2865
2872
  "push-other-panes": ""
2866
2873
  }, {
2867
- default: _e(() => [
2868
- a.enabletopmenu ? (m(), ce(Q(dt), {
2874
+ default: Pe(() => [
2875
+ a.enabletopmenu ? (m(), ce(K(dt), {
2869
2876
  key: 0,
2870
2877
  ref_key: "topmenuel",
2871
2878
  ref: $t,
@@ -2873,26 +2880,26 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2873
2880
  "max-size": a.topmenumax || 100,
2874
2881
  style: ee({ "min-height": a.topmenumin + "px" })
2875
2882
  }, {
2876
- default: _e(() => [
2883
+ default: Pe(() => [
2877
2884
  ae(a.$slots, "tabletopmenu", {}, () => [
2878
2885
  Ui
2879
2886
  ])
2880
2887
  ]),
2881
2888
  _: 3
2882
2889
  }, 8, ["size", "max-size", "style"])) : N("", !0),
2883
- oe(Q(dt), {
2890
+ oe(K(dt), {
2884
2891
  style: ee({ "padding-right": a.tableRightOffset + "px", "padding-left": a.tableLeftOffset + "px" })
2885
2892
  }, {
2886
- default: _e(() => [
2893
+ default: Pe(() => [
2887
2894
  ae(a.$slots, "tableactionheader", {}, () => [
2888
2895
  Gi
2889
2896
  ]),
2890
- C("div", {
2891
- class: M(t.scrollbarstyle)
2897
+ L("div", {
2898
+ class: _(t.scrollbarstyle)
2892
2899
  }, [
2893
- oe(Q(Ql), {
2900
+ oe(K(Ql), {
2894
2901
  style: ee({
2895
- height: t.stickyHeader && Number(t.height.replace("px", "")) - (a.footerOffset + Q(Dn)) + "px"
2902
+ height: t.stickyHeader && Number(t.height.replace("px", "")) - (a.footerOffset + K(Bn)) + "px"
2896
2903
  }),
2897
2904
  autoHide: t.scrollbarautohide,
2898
2905
  fixedThumb: t.scrollbarfixedthumb,
@@ -2900,16 +2907,16 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2900
2907
  direction: t.scrollbardirection,
2901
2908
  throttleType: "none"
2902
2909
  }, {
2903
- default: _e(() => [
2904
- C("div", {
2905
- class: M(["bh-table-responsive", { "bh-min-h-[100px]": y.value }]),
2910
+ default: Pe(() => [
2911
+ L("div", {
2912
+ class: _(["bh-table-responsive", { "bh-min-h-[100px]": y.value }]),
2906
2913
  style: ee({ overflow: t.stickyHeader && "inherit" })
2907
2914
  }, [
2908
- C("table", {
2909
- class: M([t.skin])
2915
+ L("table", {
2916
+ class: _([t.skin])
2910
2917
  }, [
2911
- C("thead", {
2912
- class: M({
2918
+ L("thead", {
2919
+ class: _({
2913
2920
  "bh-sticky bh-top-0 bh-z-10": t.stickyHeader
2914
2921
  })
2915
2922
  }, [
@@ -2921,44 +2928,44 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2921
2928
  isOpenFilter: q.value,
2922
2929
  checkAll: $.value,
2923
2930
  columnFilterLang: t.columnFilterLang,
2924
- onSelectAll: P,
2931
+ onSelectAll: M,
2925
2932
  onSortChange: b,
2926
2933
  onFilterChange: R,
2927
2934
  onToggleFilterMenu: He
2928
2935
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
2929
2936
  ], 2),
2930
- C("tbody", null, [
2931
- (m(!0), w(U, null, pe(i.value, (k, D) => {
2937
+ L("tbody", null, [
2938
+ (m(!0), w(G, null, pe(i.value, (z, B) => {
2932
2939
  var le;
2933
- return m(), w(U, {
2934
- key: k[J.value] ? k[J.value] : D
2940
+ return m(), w(G, {
2941
+ key: z[J.value] ? z[J.value] : B
2935
2942
  }, [
2936
2943
  T.value ? (m(), w("tr", {
2937
2944
  key: 0,
2938
- class: M([
2939
- typeof t.rowClass == "function" ? a.rowClass(k) : t.rowClass,
2945
+ class: _([
2946
+ typeof t.rowClass == "function" ? a.rowClass(z) : t.rowClass,
2940
2947
  t.selectRowOnClick ? "bh-cursor-pointer" : ""
2941
2948
  ]),
2942
- onClick: ye((G) => Ve(k, D), ["prevent"])
2949
+ onClick: ye((Q) => Ve(z, B), ["prevent"])
2943
2950
  }, [
2944
2951
  t.hasCheckbox ? (m(), w("td", {
2945
2952
  key: 0,
2946
2953
  style: ee({ width: t.checkboxColumnWidth + " !important", minWidth: t.checkboxColumnWidth + " !important" }),
2947
- class: M({
2954
+ class: _({
2948
2955
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2949
2956
  })
2950
2957
  }, [
2951
- C("div", Ki, [
2952
- ve(C("input", {
2953
- "onUpdate:modelValue": v[0] || (v[0] = (G) => I.value = G),
2958
+ L("div", Ki, [
2959
+ ve(L("input", {
2960
+ "onUpdate:modelValue": v[0] || (v[0] = (Q) => I.value = Q),
2954
2961
  type: "checkbox",
2955
- value: k[J.value] ? k[J.value] : D,
2962
+ value: z[J.value] ? z[J.value] : B,
2956
2963
  onClick: v[1] || (v[1] = ye(() => {
2957
2964
  }, ["stop"]))
2958
2965
  }, null, 8, Xi), [
2959
2966
  [Zn, I.value]
2960
2967
  ]),
2961
- C("div", null, [
2968
+ L("div", null, [
2962
2969
  oe(Fn, { class: "check" })
2963
2970
  ])
2964
2971
  ])
@@ -2966,94 +2973,94 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2966
2973
  t.hasRightPanel ? (m(), w("td", {
2967
2974
  key: 1,
2968
2975
  style: ee({ width: t.rightPanelColumnWidth + " !important", minWidth: t.rightPanelColumnWidth + " !important", padding: "0px !important" }),
2969
- class: M({
2976
+ class: _({
2970
2977
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2971
2978
  })
2972
2979
  }, [
2973
2980
  oe(li, {
2974
- item: k,
2975
- onRightPanelClick: v[2] || (v[2] = (G) => ie("rowRightPanelClick", G))
2981
+ item: z,
2982
+ onRightPanelClick: v[2] || (v[2] = (Q) => ie("rowRightPanelClick", Q))
2976
2983
  }, null, 8, ["item"])
2977
2984
  ], 6)) : N("", !0),
2978
2985
  t.hasSubtable ? (m(), w("td", {
2979
2986
  key: 2,
2980
2987
  style: ee({ width: t.subtableColumnWidth + " !important", minWidth: t.subtableColumnWidth + " !important" }),
2981
- class: M({
2988
+ class: _({
2982
2989
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2983
2990
  })
2984
2991
  }, [
2985
2992
  oe(In, {
2986
- item: k,
2993
+ item: z,
2987
2994
  expandedrows: de.value
2988
2995
  }, null, 8, ["item", "expandedrows"])
2989
2996
  ], 6)) : N("", !0),
2990
- (m(!0), w(U, null, pe(t.columns, (G, he) => (m(), w(U, null, [
2991
- G.hide ? N("", !0) : (m(), w("td", {
2992
- key: G.field,
2993
- class: M([
2994
- typeof t.cellClass == "function" ? a.cellClass(k) : t.cellClass,
2997
+ (m(!0), w(G, null, pe(t.columns, (Q, he) => (m(), w(G, null, [
2998
+ Q.hide ? N("", !0) : (m(), w("td", {
2999
+ key: Q.field,
3000
+ class: _([
3001
+ typeof t.cellClass == "function" ? a.cellClass(z) : t.cellClass,
2995
3002
  he === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2996
3003
  t.hasCheckbox && he === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
2997
- G.cellClass ? G.cellClass : ""
3004
+ Q.cellClass ? Q.cellClass : ""
2998
3005
  ])
2999
3006
  }, [
3000
- Q(o)[G.field] ? ae(a.$slots, G.field, {
3007
+ K(o)[Q.field] ? ae(a.$slots, Q.field, {
3001
3008
  key: 0,
3002
- value: k
3003
- }) : G.cellRenderer ? (m(), w("div", {
3009
+ value: z
3010
+ }) : Q.cellRenderer ? (m(), w("div", {
3004
3011
  key: 1,
3005
- innerHTML: G.cellRenderer(k)
3006
- }, null, 8, Yi)) : (m(), w(U, { key: 2 }, [
3007
- mt(H(F(k, G.field)), 1)
3012
+ innerHTML: Q.cellRenderer(z)
3013
+ }, null, 8, Yi)) : (m(), w(G, { key: 2 }, [
3014
+ mt(H(F(z, Q.field)), 1)
3008
3015
  ], 64))
3009
3016
  ], 2))
3010
3017
  ], 64))), 256))
3011
3018
  ], 10, Qi)) : N("", !0),
3012
- (le = de.value.find((G) => G.id == k.id)) != null && le.isExpanded && t.hasSubtable ? (m(), w("tr", {
3019
+ (le = de.value.find((Q) => Q.id == z.id)) != null && le.isExpanded && t.hasSubtable ? (m(), w("tr", {
3013
3020
  key: 1,
3014
- class: M([
3015
- typeof t.rowClass == "function" ? a.rowClass(k) : t.rowClass,
3021
+ class: _([
3022
+ typeof t.rowClass == "function" ? a.rowClass(z) : t.rowClass,
3016
3023
  t.selectRowOnClick ? "bh-cursor-pointer" : ""
3017
3024
  ]),
3018
- onClick: ye((G) => Ve(k, D), ["prevent"])
3025
+ onClick: ye((Q) => Ve(z, B), ["prevent"])
3019
3026
  }, [
3020
- C("td", {
3021
- colspan: t.columns.length + Q(Se)
3027
+ L("td", {
3028
+ colspan: t.columns.length + K(Se)
3022
3029
  }, [
3023
3030
  ae(a.$slots, "tsub", { value: i.value })
3024
3031
  ], 8, Zi)
3025
3032
  ], 10, Ji)) : N("", !0)
3026
3033
  ], 64);
3027
3034
  }), 128)),
3028
- !T.value && y.value && a.skeletonloader ? (m(!0), w(U, { key: 0 }, pe(t.pageSize, (k) => (m(), w("tr", {
3029
- key: k,
3035
+ !T.value && y.value && a.skeletonloader ? (m(!0), w(G, { key: 0 }, pe(t.pageSize, (z) => (m(), w("tr", {
3036
+ key: z,
3030
3037
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3031
3038
  }, [
3032
- C("td", {
3033
- colspan: t.columns.length + Q(Se),
3039
+ L("td", {
3040
+ colspan: t.columns.length + K(Se),
3034
3041
  class: "!bh-p-0 !bh-border-transparent"
3035
3042
  }, nr, 8, er)
3036
3043
  ]))), 128)) : N("", !0),
3037
- T.value ? (m(!0), w(U, { key: 1 }, pe(t.footerRows, (k, D) => (m(), w("tr", {
3038
- key: k[J.value] ? k[J.value] : D,
3044
+ T.value ? (m(!0), w(G, { key: 1 }, pe(t.footerRows, (z, B) => (m(), w("tr", {
3045
+ key: z[J.value] ? z[J.value] : B,
3039
3046
  class: "sticky-table-footer"
3040
3047
  }, [
3041
- Q(Se) > 0 ? (m(), w("td", {
3048
+ K(Se) > 0 ? (m(), w("td", {
3042
3049
  key: 0,
3043
- colspan: Q(Se)
3050
+ colspan: K(Se)
3044
3051
  }, null, 8, lr)) : N("", !0),
3045
- (m(!0), w(U, null, pe(t.columns, (le, G) => (m(), w(U, null, [
3052
+ (m(!0), w(G, null, pe(t.columns, (le, Q) => (m(), w(G, null, [
3046
3053
  le.hide ? N("", !0) : (m(), w("td", {
3047
3054
  key: le.field,
3048
- class: M([
3049
- typeof t.cellClass == "function" ? a.cellClass(k) : t.cellClass,
3050
- G === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3051
- t.hasCheckbox && G === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3055
+ class: _([
3056
+ typeof t.cellClass == "function" ? a.cellClass(z) : t.cellClass,
3057
+ Q === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3058
+ t.hasCheckbox && Q === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3052
3059
  le.cellClass ? le.cellClass : ""
3053
3060
  ])
3054
3061
  }, [
3055
- k.cells.find((he) => he.field == le.field) ? (m(), w(U, { key: 0 }, [
3056
- mt(H(k.cells.find((he) => he.field == le.field).text), 1)
3062
+ z.cells.find((he) => he.field == le.field) ? (m(), w(G, { key: 0 }, [
3063
+ mt(H(z.cells.find((he) => he.field == le.field).text), 1)
3057
3064
  ], 64)) : N("", !0)
3058
3065
  ], 2))
3059
3066
  ], 64))), 256))
@@ -3061,7 +3068,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3061
3068
  ]),
3062
3069
  t.cloneHeaderInFooter ? (m(), w("tfoot", {
3063
3070
  key: 0,
3064
- class: M({
3071
+ class: _({
3065
3072
  "bh-sticky bh-bottom-0": t.stickyHeader
3066
3073
  })
3067
3074
  }, [
@@ -3072,7 +3079,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3072
3079
  isOpenFilter: q.value,
3073
3080
  isFooter: !0,
3074
3081
  checkAll: $.value,
3075
- onSelectAll: P,
3082
+ onSelectAll: M,
3076
3083
  onSortChange: b,
3077
3084
  onFilterChange: R,
3078
3085
  onToggleFilterMenu: He
@@ -3097,7 +3104,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3097
3104
  })
3098
3105
  }, [
3099
3106
  ae(a.$slots, "nodatacontent", {}, () => [
3100
- C("span", null, H(t.noDataContent), 1)
3107
+ L("span", null, H(t.noDataContent), 1)
3101
3108
  ])
3102
3109
  ], 4)) : N("", !0)
3103
3110
  ]),
@@ -3120,12 +3127,12 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3120
3127
  }, 8, ["style"]),
3121
3128
  t.pagination && T.value ? (m(), w("div", {
3122
3129
  key: 0,
3123
- class: M(["bh-pagination", {
3130
+ class: _(["bh-pagination", {
3124
3131
  "bh-pointer-events-none": y.value,
3125
3132
  "sticky-footer": t.stickyFooter
3126
3133
  }])
3127
3134
  }, [
3128
- C("div", or, [
3135
+ L("div", or, [
3129
3136
  a.enablefooterpagination ? ae(a.$slots, "footerpageinfo", {
3130
3137
  key: 0,
3131
3138
  paginationInfo: a.paginationInfo,
@@ -3135,11 +3142,11 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3135
3142
  showPageSize: a.showPageSize,
3136
3143
  pageSizeOptions: a.pageSizeOptions,
3137
3144
  currentPageSize: r.value,
3138
- stringFormat: Be,
3145
+ stringFormat: De,
3139
3146
  setPageSize: g
3140
3147
  }, () => [
3141
- C("div", ir, [
3142
- C("span", rr, H(Be(
3148
+ L("div", ir, [
3149
+ L("span", rr, H(De(
3143
3150
  t.paginationInfo,
3144
3151
  T.value ? ge.value : 0,
3145
3152
  Te.value,
@@ -3147,13 +3154,13 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3147
3154
  )), 1),
3148
3155
  t.showPageSize ? ve((m(), w("select", {
3149
3156
  key: 0,
3150
- "onUpdate:modelValue": v[3] || (v[3] = (k) => r.value = k),
3157
+ "onUpdate:modelValue": v[3] || (v[3] = (z) => r.value = z),
3151
3158
  class: "bh-pagesize"
3152
3159
  }, [
3153
- (m(!0), w(U, null, pe(t.pageSizeOptions, (k) => (m(), w("option", {
3154
- value: k,
3155
- key: k
3156
- }, H(k), 9, sr))), 128))
3160
+ (m(!0), w(G, null, pe(t.pageSizeOptions, (z) => (m(), w("option", {
3161
+ value: z,
3162
+ key: z
3163
+ }, H(z), 9, sr))), 128))
3157
3164
  ], 512)), [
3158
3165
  [cn, r.value]
3159
3166
  ]) : N("", !0)
@@ -3163,26 +3170,26 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3163
3170
  key: 1,
3164
3171
  currentPage: s.value,
3165
3172
  maxPage: se.value,
3166
- paging: De.value,
3173
+ paging: Be.value,
3167
3174
  movePage: Ee,
3168
3175
  nextPage: re,
3169
3176
  previousPage: je
3170
3177
  }, () => [
3171
- C("div", ar, [
3178
+ L("div", ar, [
3172
3179
  t.showFirstPage ? (m(), w("button", {
3173
3180
  key: 0,
3174
3181
  type: "button",
3175
- class: M(["bh-page-item first-page", { disabled: s.value <= 1 }]),
3176
- onClick: v[4] || (v[4] = (k) => s.value = 1)
3182
+ class: _(["bh-page-item first-page", { disabled: s.value <= 1 }]),
3183
+ onClick: v[4] || (v[4] = (z) => s.value = 1)
3177
3184
  }, [
3178
3185
  t.firstArrow ? (m(), w("span", {
3179
3186
  key: 0,
3180
3187
  innerHTML: t.firstArrow
3181
3188
  }, null, 8, ur)) : (m(), w("svg", cr, fr))
3182
3189
  ], 2)) : N("", !0),
3183
- C("button", {
3190
+ L("button", {
3184
3191
  type: "button",
3185
- class: M(["bh-page-item previous-page", { disabled: s.value <= 1 }]),
3192
+ class: _(["bh-page-item previous-page", { disabled: s.value <= 1 }]),
3186
3193
  onClick: je
3187
3194
  }, [
3188
3195
  t.previousArrow ? (m(), w("span", {
@@ -3190,18 +3197,18 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3190
3197
  innerHTML: t.previousArrow
3191
3198
  }, null, 8, hr)) : (m(), w("svg", pr, mr))
3192
3199
  ], 2),
3193
- t.showNumbers ? (m(!0), w(U, { key: 1 }, pe(De.value, (k) => (m(), w("button", {
3194
- key: k,
3200
+ t.showNumbers ? (m(!0), w(G, { key: 1 }, pe(Be.value, (z) => (m(), w("button", {
3201
+ key: z,
3195
3202
  type: "button",
3196
- class: M(["bh-page-item", {
3197
- disabled: s.value === k,
3198
- "bh-active": k === s.value
3203
+ class: _(["bh-page-item", {
3204
+ disabled: s.value === z,
3205
+ "bh-active": z === s.value
3199
3206
  }]),
3200
- onClick: (D) => Ee(k)
3201
- }, H(k), 11, gr))), 128)) : N("", !0),
3202
- C("button", {
3207
+ onClick: (B) => Ee(z)
3208
+ }, H(z), 11, gr))), 128)) : N("", !0),
3209
+ L("button", {
3203
3210
  type: "button",
3204
- class: M(["bh-page-item next-page", { disabled: s.value >= se.value }]),
3211
+ class: _(["bh-page-item next-page", { disabled: s.value >= se.value }]),
3205
3212
  onClick: re
3206
3213
  }, [
3207
3214
  t.nextArrow ? (m(), w("span", {
@@ -3212,8 +3219,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3212
3219
  t.showLastPage ? (m(), w("button", {
3213
3220
  key: 2,
3214
3221
  type: "button",
3215
- class: M(["bh-page-item last-page", { disabled: s.value >= se.value }]),
3216
- onClick: v[5] || (v[5] = (k) => s.value = se.value)
3222
+ class: _(["bh-page-item last-page", { disabled: s.value >= se.value }]),
3223
+ onClick: v[5] || (v[5] = (z) => s.value = se.value)
3217
3224
  }, [
3218
3225
  t.lastArrow ? (m(), w("span", {
3219
3226
  key: 0,
@@ -3228,5 +3235,5 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3228
3235
  }
3229
3236
  });
3230
3237
  export {
3231
- Pr as default
3238
+ Mr as default
3232
3239
  };