@dolusoft/vue3-datatable 1.7.30 → 1.7.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { onMounted as Le, nextTick as _e, getCurrentScope as Vn, onScopeDispose as Un, unref as K, getCurrentInstance as zt, computed as X, ref as B, watch as ne, 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 T, normalizeStyle as Z, withModifiers as ye, setBlockTracking as Bt, vShow as vt, createCommentVNode as R, mergeProps as Qn, renderSlot as ae, renderList as pe, createVNode as ie, reactive as Kn, watchEffect as Xn, useSlots as un, onBeforeUnmount as Lt, provide as Ce, createBlock as ue, resolveDynamicComponent as Yn, inject as Me, h as mt, toRef as Jn, toDisplayString as q, createTextVNode as gt, vModelText as ct, vModelSelect as cn, withCtx as Pe, vModelCheckbox as Zn } from "vue";
1
+ import { onMounted as Le, nextTick as Te, getCurrentScope as Un, onScopeDispose as Vn, unref as K, getCurrentInstance as zt, computed as X, ref as D, watch as ne, 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 Z, withModifiers as ye, setBlockTracking as Bt, vShow as vt, createCommentVNode as R, mergeProps as Qn, renderSlot as ae, renderList as pe, createVNode as ie, reactive as Kn, watchEffect as Xn, useSlots as un, onBeforeUnmount as Lt, provide as Ce, createBlock as ue, resolveDynamicComponent as Yn, inject as Me, h as mt, toRef as Jn, toDisplayString as q, createTextVNode as gt, vModelText as ct, vModelSelect as cn, withCtx as Pe, vModelCheckbox as Zn } from "vue";
2
2
  function el(e) {
3
- return Vn() ? (Un(e), !0) : !1;
3
+ return Un() ? (Vn(e), !0) : !1;
4
4
  }
5
5
  function tl(e) {
6
6
  return typeof e == "function" ? e() : K(e);
@@ -11,16 +11,16 @@ function ll(e) {
11
11
  return zt();
12
12
  }
13
13
  function ol(e, l = !0, n) {
14
- ll() ? Le(e, n) : l ? e() : _e(e);
14
+ ll() ? Le(e, n) : l ? e() : Te(e);
15
15
  }
16
- function Te(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 = zt();
23
+ const e = D(!1), l = zt();
24
24
  return l && Le(() => {
25
25
  e.value = !0;
26
26
  }, l), e;
@@ -34,7 +34,7 @@ function al(e, l, n = {}) {
34
34
  let i;
35
35
  const a = rl(() => o && "ResizeObserver" in o), r = () => {
36
36
  i && (i.disconnect(), i = void 0);
37
- }, u = X(() => Array.isArray(e) ? e.map((p) => Te(p)) : [Te(e)]), f = ne(
37
+ }, u = X(() => Array.isArray(e) ? e.map((p) => _e(p)) : [_e(e)]), f = ne(
38
38
  u,
39
39
  (p) => {
40
40
  if (r(), a.value && o) {
@@ -55,31 +55,31 @@ function al(e, l, n = {}) {
55
55
  function sl(e, l = { width: 0, height: 0 }, n = {}) {
56
56
  const { window: o = dn, box: t = "content-box" } = n, i = X(() => {
57
57
  var p, E;
58
- return (E = (p = Te(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : E.includes("svg");
59
- }), a = B(l.width), r = B(l.height), { stop: u } = al(
58
+ return (E = (p = _e(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : E.includes("svg");
59
+ }), a = D(l.width), r = D(l.height), { stop: u } = al(
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 _ = Te(e);
65
- if (_) {
66
- const I = _.getBoundingClientRect();
64
+ const T = _e(e);
65
+ if (T) {
66
+ const I = T.getBoundingClientRect();
67
67
  a.value = I.width, r.value = I.height;
68
68
  }
69
69
  } else if (E) {
70
- const _ = Array.isArray(E) ? E : [E];
71
- a.value = _.reduce((I, { inlineSize: $ }) => I + $, 0), r.value = _.reduce((I, { blockSize: $ }) => I + $, 0);
70
+ const T = Array.isArray(E) ? E : [E];
71
+ a.value = T.reduce((I, { inlineSize: $ }) => I + $, 0), r.value = T.reduce((I, { blockSize: $ }) => I + $, 0);
72
72
  } else
73
73
  a.value = p.contentRect.width, r.value = p.contentRect.height;
74
74
  },
75
75
  n
76
76
  );
77
77
  ol(() => {
78
- const p = Te(e);
78
+ const p = _e(e);
79
79
  p && (a.value = "offsetWidth" in p ? p.offsetWidth : l.width, r.value = "offsetHeight" in p ? p.offsetHeight : l.height);
80
80
  });
81
81
  const f = ne(
82
- () => Te(e),
82
+ () => _e(e),
83
83
  (p) => {
84
84
  a.value = p ? l.width : 0, r.value = p ? l.height : 0;
85
85
  }
@@ -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 Ht = NaN, El = /^[-+]0x[0-9a-f]+$/i, Ml = /^0b[01]+$/i, Pl = /^0o[0-7]+$/i, Tl = parseInt;
136
+ var Ht = 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;
@@ -147,13 +147,13 @@ function $e(e) {
147
147
  return e === 0 ? e : +e;
148
148
  e = Ll(e);
149
149
  var n = Ml.test(e);
150
- return n || Pl.test(e) ? Tl(e.slice(2), n ? 2 : 8) : El.test(e) ? Ht : +e;
150
+ return n || Pl.test(e) ? _l(e.slice(2), n ? 2 : 8) : El.test(e) ? Ht : +e;
151
151
  }
152
- function _l(e, l, n) {
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;
154
154
  }
155
155
  function Qe(e, l, n) {
156
- return n === void 0 && (n = l, l = void 0), n !== void 0 && (n = $e(n), n = n === n ? n : 0), l !== void 0 && (l = $e(l), l = l === l ? l : 0), _l($e(e), l, n);
156
+ return n === void 0 && (n = l, l = void 0), n !== void 0 && (n = $e(n), n = n === n ? n : 0), l !== void 0 && (l = $e(l), l = l === l ? l : 0), Tl($e(e), l, n);
157
157
  }
158
158
  var dt = function() {
159
159
  return fn.Date.now();
@@ -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 _(S) {
167
- var k = o, W = t;
168
- return o = t = void 0, f = S, a = e.apply(W, k), a;
166
+ function T(k) {
167
+ var C = o, B = t;
168
+ return o = t = void 0, f = k, a = e.apply(B, C), a;
169
169
  }
170
- function I(S) {
171
- return f = S, r = setTimeout(A, l), d ? _(S) : a;
170
+ function I(k) {
171
+ return f = k, r = setTimeout(A, l), d ? T(k) : a;
172
172
  }
173
- function $(S) {
174
- var k = S - u, W = S - f, V = l - k;
175
- return p ? Ol(V, i - W) : V;
173
+ function $(k) {
174
+ var C = k - u, B = k - f, U = l - C;
175
+ return p ? Ol(U, i - B) : U;
176
176
  }
177
- function y(S) {
178
- var k = S - u, W = S - f;
179
- return u === void 0 || k >= l || k < 0 || p && W >= i;
177
+ function y(k) {
178
+ var C = k - u, B = k - f;
179
+ return u === void 0 || C >= l || C < 0 || p && B >= i;
180
180
  }
181
181
  function A() {
182
- var S = dt();
183
- if (y(S))
184
- return H(S);
185
- r = setTimeout(A, $(S));
182
+ var k = dt();
183
+ if (y(k))
184
+ return H(k);
185
+ r = setTimeout(A, $(k));
186
186
  }
187
- function H(S) {
188
- return r = void 0, E && o ? _(S) : (o = t = void 0, a);
187
+ function H(k) {
188
+ return r = void 0, E && o ? T(k) : (o = t = void 0, a);
189
189
  }
190
190
  function j() {
191
191
  r !== void 0 && clearTimeout(r), f = 0, o = u = t = r = void 0;
@@ -194,12 +194,12 @@ function pn(e, l, n) {
194
194
  return r === void 0 ? a : H(dt());
195
195
  }
196
196
  function Y() {
197
- var S = dt(), k = y(S);
198
- if (o = arguments, t = this, u = S, k) {
197
+ var k = dt(), C = y(k);
198
+ if (o = arguments, t = this, u = k, C) {
199
199
  if (r === void 0)
200
200
  return I(u);
201
201
  if (p)
202
- return clearTimeout(r), r = setTimeout(A, l), _(u);
202
+ return clearTimeout(r), r = setTimeout(A, l), T(u);
203
203
  }
204
204
  return r === void 0 && (r = setTimeout(A, l)), a;
205
205
  }
@@ -229,12 +229,12 @@ const Dl = ["onPointerdown"], Hl = {
229
229
  };
230
230
  function ql(e, { expose: l }) {
231
231
  const n = e;
232
- Gn((k) => ({
232
+ Gn((C) => ({
233
233
  "1fb98f78": K(o)
234
234
  }));
235
235
  const o = X(() => {
236
- var k;
237
- return `${(k = n.thumbWidth) != null ? k : 12}px`;
236
+ var C;
237
+ return `${(C = n.thumbWidth) != null ? C : 12}px`;
238
238
  });
239
239
  let t = null, i = me(null);
240
240
  const a = { pageX: 0, pageY: 0, scrollPos: 0 };
@@ -247,14 +247,14 @@ function ql(e, { expose: l }) {
247
247
  t !== null && clearTimeout(t);
248
248
  };
249
249
  Ze(f);
250
- const d = vn((k) => {
251
- k.stopPropagation(), k.preventDefault();
252
- const W = n.type === "horizontal" ? "pageX" : "pageY", V = (k[W] - a[W]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
253
- n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: a.scrollPos + V, behavior: "auto" });
250
+ const d = vn((C) => {
251
+ C.stopPropagation(), C.preventDefault();
252
+ const B = n.type === "horizontal" ? "pageX" : "pageY", U = (C[B] - a[B]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
253
+ n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: a.scrollPos + U, 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 = (k) => {
257
- k.ctrlKey || k.button !== 0 || (f(), a.pageX = k.pageX, a.pageY = k.pageY, a.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"));
256
+ }, E = (C) => {
257
+ C.ctrlKey || C.button !== 0 || (f(), a.pageX = C.pageX, a.pageY = C.pageY, a.scrollPos = n.wrapperEl[n.type === "horizontal" ? "scrollLeft" : "scrollTop"], r = C == null ? void 0 : C.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: () => {
@@ -262,16 +262,16 @@ function ql(e, { expose: l }) {
262
262
  }
263
263
  });
264
264
  let I = me(!1), $ = me(!1), y = me(null), A = null, H = null, j = X(() => n.fixedThumb && !$.value);
265
- const O = ([k]) => $.value = k.isIntersecting, Y = ([k]) => I.value = k.isIntersecting, S = () => {
265
+ const O = ([C]) => $.value = C.isIntersecting, Y = ([C]) => I.value = C.isIntersecting, k = () => {
266
266
  A && (A.disconnect(), A = null), H && (H.disconnect(), H = null);
267
267
  };
268
268
  return ne(() => [n.fixedThumb, n.wrapperEl], () => {
269
269
  if (!n.fixedThumb || !n.wrapperEl)
270
- return S();
271
- S(), H = new IntersectionObserver(Y, { threshold: [0, 0.5] }), H.observe(n.wrapperEl), A = new IntersectionObserver(O), A.observe(y.value);
272
- }), Ze(S), (k, W) => (m(), w(G, null, [
270
+ return k();
271
+ k(), H = new IntersectionObserver(Y, { threshold: [0, 0.5] }), H.observe(n.wrapperEl), A = new IntersectionObserver(O), A.observe(y.value);
272
+ }), Ze(k), (C, B) => (m(), w(G, null, [
273
273
  ve(L("div", {
274
- class: T([
274
+ class: _([
275
275
  "scrollbar__thumbPlaceholder",
276
276
  `scrollbar__thumbPlaceholder--${e.type}`,
277
277
  {
@@ -285,23 +285,23 @@ function ql(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: (V, ee) => {
289
- ee.thumbEl = V, i.value = V;
288
+ ref: (U, ee) => {
289
+ ee.thumbEl = U, i.value = U;
290
290
  },
291
291
  onPointerdown: ye(E, ["stop"])
292
292
  }, [
293
- W[0] || (Bt(-1), W[0] = L("div", {
294
- class: T(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
295
- }, null, 2), Bt(1), W[0])
293
+ B[0] || (Bt(-1), B[0] = L("div", {
294
+ class: _(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
295
+ }, null, 2), Bt(1), B[0])
296
296
  ], 46, Dl), [
297
297
  [vt, !!e.scrollInfo.thumbSize && (e.fixedThumb ? I.value : !0)]
298
298
  ]),
299
299
  n.fixedThumb ? ve((m(), w("div", {
300
300
  key: 0,
301
- ref: (V, ee) => {
302
- ee.shepherdEl = V, y.value = V;
301
+ ref: (U, ee) => {
302
+ ee.shepherdEl = U, y.value = U;
303
303
  },
304
- class: T(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
304
+ class: _(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
305
305
  }, null, 2)), [
306
306
  [vt, !!e.scrollInfo.thumbSize]
307
307
  ]) : R("", !0)
@@ -319,15 +319,15 @@ const jl = /* @__PURE__ */ we(mn(nt({}, Hl), {
319
319
  wrapperEl: null
320
320
  },
321
321
  setup: ql
322
- })), Vl = {
322
+ })), Ul = {
323
323
  wait: 333,
324
324
  type: "debounce"
325
325
  };
326
- function Vt(...e) {
326
+ function Ut(...e) {
327
327
  const l = "value" in (e == null ? void 0 : e[0]);
328
328
  let n;
329
329
  l ? n = e == null ? void 0 : e[1] : n = e == null ? void 0 : e[0];
330
- const { wait: o, type: t, callback: i } = nt(nt({}, Vl), n), a = l ? e[0] : me(null), r = Kn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
330
+ const { wait: o, type: t, callback: i } = nt(nt({}, Ul), n), a = l ? e[0] : me(null), r = Kn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
331
331
  const E = a.value.getBoundingClientRect();
332
332
  r.left = E.left, r.top = E.top, r.right = E.right, r.bottom = E.bottom, r.width = E.width, r.height = E.height, r.x = E.x, r.y = E.y, i == null || i();
333
333
  };
@@ -339,7 +339,7 @@ function Vt(...e) {
339
339
  a.value && (p(), f = u, t === "throttle" && o >= 4 ? f = vn(f, o) : t === "debounce" && o >= 4 && (f = pn(f, o)), window.addEventListener("resize", f), d = new ResizeObserver(f), d.observe(a.value));
340
340
  }), Ze(p), l ? r : [a, r];
341
341
  }
342
- const Ul = {
342
+ const Vl = {
343
343
  name: "CustomScrollbar",
344
344
  inheritAttrs: !1
345
345
  };
@@ -354,18 +354,18 @@ function Gl(e, { expose: l, emit: n }) {
354
354
  Le(() => {
355
355
  var O;
356
356
  const Y = Array.from((O = a.value.parentElement) == null ? void 0 : O.childNodes);
357
- for (const S in t)
358
- t[S].el = Y.find((k) => {
359
- var W;
360
- return (W = k == null ? void 0 : k.classList) == null ? void 0 : W.contains(`scrollbar__thumbPlaceholder--${S}`);
357
+ for (const k in t)
358
+ t[k].el = Y.find((C) => {
359
+ var B;
360
+ return (B = C == null ? void 0 : C.classList) == null ? void 0 : B.contains(`scrollbar__thumbPlaceholder--${k}`);
361
361
  });
362
362
  });
363
- const u = Vt(a, { wait: o.throttleWait, type: o.throttleType, callback: E }), f = Vt(r, { wait: o.throttleWait, type: o.throttleType, callback: E });
363
+ const u = Ut(a, { wait: o.throttleWait, type: o.throttleType, callback: E }), f = Ut(r, { wait: o.throttleWait, type: o.throttleType, callback: E });
364
364
  let d = me(0), p = me(0);
365
365
  function E() {
366
366
  d.value = Math.max(a.value.scrollHeight - u.height | 0, 0), p.value = Math.max(a.value.scrollWidth - u.width | 0, 0);
367
367
  }
368
- let _ = X(() => ({
368
+ let T = X(() => ({
369
369
  thumbSize: p.value ? Qe(u.width / a.value.scrollWidth * u.width, o.thumbMinSize > u.width ? 48 : o.thumbMinSize, o.thumbMaxSize) : 0,
370
370
  contentMainSize: f.width,
371
371
  wrapperMainSize: u.width,
@@ -375,27 +375,27 @@ function Gl(e, { expose: l, emit: n }) {
375
375
  contentMainSize: f.height,
376
376
  wrapperMainSize: u.height,
377
377
  boundaryDistance: Math.abs(u.top)
378
- })), $ = X(() => u.height - I.value.thumbSize - 5), y = X(() => u.width - _.value.thumbSize - 5);
378
+ })), $ = X(() => u.height - I.value.thumbSize - 5), y = X(() => u.width - T.value.thumbSize - 5);
379
379
  const A = () => {
380
380
  p.value && (t.horizontal.el.style.transform = `translate3d(${a.value.scrollLeft / p.value * y.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${a.value.scrollTop / d.value * $.value}px, 0)`, t.vertical.instance.autoHideAfterScroll());
381
381
  };
382
382
  ne(() => [p.value, d.value], A);
383
383
  const H = (O) => {
384
384
  O.stopPropagation();
385
- const Y = a.value.scrollLeft, S = a.value.scrollTop, k = Qe(Y + ((O == null ? void 0 : O.deltaX) || 0), 0, p.value) | 0, W = Qe(S + ((O == null ? void 0 : O.deltaY) || 0), 0, d.value) | 0;
386
- a.value.scrollLeft = k, a.value.scrollTop = W, 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, ${W / d.value * $.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: a.value, scrollLeft: k, scrollTop: W });
385
+ const Y = a.value.scrollLeft, k = a.value.scrollTop, C = Qe(Y + ((O == null ? void 0 : O.deltaX) || 0), 0, p.value) | 0, B = Qe(k + ((O == null ? void 0 : O.deltaY) || 0), 0, d.value) | 0;
386
+ a.value.scrollLeft = C, a.value.scrollTop = B, p.value && (t.horizontal.el.style.transform = `translate3d(${C / p.value * y.value}px, 0, 0)`, t.horizontal.instance.autoHideAfterScroll()), d.value && (t.vertical.el.style.transform = `translate3d(0, ${B / d.value * $.value}px, 0)`, t.vertical.instance.autoHideAfterScroll()), n("scroll", { target: a.value, scrollLeft: C, scrollTop: B });
387
387
  }, j = (O) => {
388
388
  o.simulateScroll ? H(O) : A();
389
389
  };
390
390
  return ne(u, () => n("wrapperResize", u)), ne(f, () => n("contentResize", f)), l({
391
391
  scrollEl: a
392
392
  }), (O, Y) => (m(), w("div", {
393
- class: T(["scrollbar__wrapper", e.wrapperClass]),
393
+ class: _(["scrollbar__wrapper", e.wrapperClass]),
394
394
  style: Z(e.wrapperStyle)
395
395
  }, [
396
396
  L("div", Qn({
397
- ref: (S, k) => {
398
- k.wrapperEl = S, a.value = S;
397
+ ref: (k, C) => {
398
+ C.wrapperEl = k, a.value = k;
399
399
  },
400
400
  class: "scrollbar__scroller"
401
401
  }, O.$attrs, {
@@ -403,30 +403,30 @@ function Gl(e, { expose: l, emit: n }) {
403
403
  onScroll: j
404
404
  }), [
405
405
  L("div", {
406
- ref: (S, k) => {
407
- k.contentEl = S, r.value = S;
406
+ ref: (k, C) => {
407
+ C.contentEl = k, r.value = k;
408
408
  },
409
- class: T(["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: Z(e.contentStyle)
411
411
  }, [
412
412
  ae(O.$slots, "default")
413
413
  ], 6)
414
414
  ], 16),
415
- (m(), w(G, null, pe(t, (S, k) => ie(jl, {
416
- ref: (W) => i(W, k),
417
- key: k,
415
+ (m(), w(G, null, pe(t, (k, C) => ie(jl, {
416
+ ref: (B) => i(B, C),
417
+ key: C,
418
418
  autoExpand: e.autoExpand,
419
419
  autoHide: e.autoHide,
420
420
  autoHideDelay: e.autoHideDelay,
421
- fixedThumb: k === e.direction ? !1 : e.fixedThumb,
422
- type: k,
423
- scrollInfo: k === "vertical" ? I.value : _.value,
421
+ fixedThumb: C === e.direction ? !1 : e.fixedThumb,
422
+ type: C,
423
+ scrollInfo: C === "vertical" ? I.value : T.value,
424
424
  thumbWidth: e.thumbWidth,
425
425
  wrapperEl: a.value
426
426
  }, null, 8, ["autoExpand", "autoHide", "autoHideDelay", "fixedThumb", "type", "scrollInfo", "thumbWidth", "wrapperEl"])), 64))
427
427
  ], 6));
428
428
  }
429
- const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
429
+ const Ql = /* @__PURE__ */ we(mn(nt({}, Vl), {
430
430
  props: {
431
431
  wrapperClass: null,
432
432
  wrapperStyle: null,
@@ -446,7 +446,7 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
446
446
  },
447
447
  emits: ["wrapperResize", "contentResize", "scroll"],
448
448
  setup: Gl
449
- })), Ut = {
449
+ })), Vt = {
450
450
  __name: "splitpanes",
451
451
  props: {
452
452
  horizontal: { type: Boolean, default: !1 },
@@ -469,33 +469,33 @@ 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([]), a = X(() => i.value.reduce((c, g) => (c[~~g.id] = g) && c, {})), r = X(() => i.value.length), u = B(null), f = B(!1), d = B({
472
+ const n = l, o = e, t = un(), i = D([]), a = 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
482
  }), E = X(() => ({
483
483
  [`splitpanes splitpanes--${o.horizontal ? "horizontal" : "vertical"}`]: !0,
484
484
  "splitpanes--dragging": d.value.dragging
485
- })), _ = () => {
485
+ })), T = () => {
486
486
  document.addEventListener("mousemove", y, { passive: !1 }), document.addEventListener("mouseup", A), "ontouchstart" in window && (document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", A));
487
487
  }, I = () => {
488
488
  document.removeEventListener("mousemove", y, { passive: !1 }), document.removeEventListener("mouseup", A), "ontouchstart" in window && (document.removeEventListener("touchmove", y, { passive: !1 }), document.removeEventListener("touchend", A));
489
489
  }, $ = (c, g) => {
490
490
  const z = c.target.closest(".splitpanes__splitter");
491
491
  if (z) {
492
- const { left: b, top: x } = z.getBoundingClientRect(), { clientX: M, clientY: N } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
493
- d.value.cursorOffset = o.horizontal ? N - x : M - b;
492
+ const { left: b, top: S } = z.getBoundingClientRect(), { clientX: M, clientY: N } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
493
+ d.value.cursorOffset = o.horizontal ? N - S : M - b;
494
494
  }
495
- _(), d.value.mouseDown = !0, d.value.activeSplitter = g;
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
- k(Y(c)), re("resize", { event: c }, !0);
498
+ C(Y(c)), re("resize", { event: c }, !0);
499
499
  }));
500
500
  }, A = (c) => {
501
501
  d.value.dragging && re("resized", { event: c }, !0), d.value.mouseDown = !1, d.value.activeSplitter = null, setTimeout(() => {
@@ -506,7 +506,7 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
506
506
  }, j = (c, g) => {
507
507
  if (re("splitter-dblclick", { event: c, index: g }, !0), o.maximizePanes) {
508
508
  let z = 0;
509
- i.value = i.value.map((b, x) => (b.size = x === g ? b.max : b.min, x !== g && (z += b.min), b)), i.value[g].size -= z, re("pane-maximize", { event: c, index: g, pane: i.value[g] }), re("resized", { event: c, index: g }, !0);
509
+ i.value = i.value.map((b, S) => (b.size = S === g ? b.max : b.min, S !== g && (z += b.min), b)), i.value[g].size -= z, 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", {
@@ -520,52 +520,52 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
520
520
  x: z - (o.horizontal ? 0 : d.value.cursorOffset) - g.left,
521
521
  y: b - (o.horizontal ? d.value.cursorOffset : 0) - g.top
522
522
  };
523
- }, S = (c) => {
523
+ }, k = (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
- }, k = (c) => {
527
+ }, C = (c) => {
528
528
  const g = d.value.activeSplitter;
529
529
  let z = {
530
- prevPanesSize: V(g),
530
+ prevPanesSize: U(g),
531
531
  nextPanesSize: ee(g),
532
532
  prevReachedMinPanes: 0,
533
533
  nextReachedMinPanes: 0
534
534
  };
535
- const b = 0 + (o.pushOtherPanes ? 0 : z.prevPanesSize), x = 100 - (o.pushOtherPanes ? 0 : z.nextPanesSize), M = Math.max(Math.min(S(c), x), b);
535
+ const b = 0 + (o.pushOtherPanes ? 0 : z.prevPanesSize), S = 100 - (o.pushOtherPanes ? 0 : z.nextPanesSize), M = Math.max(Math.min(k(c), S), b);
536
536
  let N = [g, g + 1], le = i.value[N[0]] || null, F = i.value[N[1]] || null;
537
- const xe = le.max < 100 && M >= le.max + z.prevPanesSize, Ve = F.max < 100 && M <= 100 - (F.max + ee(g + 1));
538
- if (xe || Ve) {
537
+ const xe = le.max < 100 && M >= le.max + z.prevPanesSize, Ue = F.max < 100 && M <= 100 - (F.max + ee(g + 1));
538
+ if (xe || Ue) {
539
539
  xe ? (le.size = le.max, F.size = Math.max(100 - le.max - z.prevPanesSize - z.nextPanesSize, 0)) : (le.size = Math.max(100 - F.max - z.prevPanesSize - ee(g + 1), 0), F.size = F.max);
540
540
  return;
541
541
  }
542
542
  if (o.pushOtherPanes) {
543
- const fe = W(z, M);
543
+ const fe = B(z, M);
544
544
  if (!fe) return;
545
545
  ({ sums: z, panesToResize: N } = fe), le = i.value[N[0]] || null, F = i.value[N[1]] || null;
546
546
  }
547
547
  le !== null && (le.size = Math.min(Math.max(M - z.prevPanesSize - z.prevReachedMinPanes, le.min), le.max)), F !== null && (F.size = Math.min(Math.max(100 - M - z.nextPanesSize - z.nextReachedMinPanes, F.min), F.max));
548
- }, W = (c, g) => {
548
+ }, B = (c, g) => {
549
549
  const z = d.value.activeSplitter, b = [z, z + 1];
550
- return g < c.prevPanesSize + i.value[b[0]].min && (b[0] = at(z).index, c.prevReachedMinPanes = 0, b[0] < z && i.value.forEach((x, M) => {
551
- M > b[0] && M <= z && (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 <= z && (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] = oe(z).index, c.nextReachedMinPanes = 0, b[1] > z + 1 && i.value.forEach((x, M) => {
555
- M > z && M < b[1] && (x.size = x.min, c.nextReachedMinPanes += x.min);
556
- }), c.nextPanesSize = ee(b[1] - 1), b[1] === void 0) ? (c.nextReachedMinPanes = 0, i.value.forEach((x, M) => {
557
- M < r.value - 1 && M >= z + 1 && (x.size = x.min, c.nextReachedMinPanes += x.min);
550
+ return g < c.prevPanesSize + i.value[b[0]].min && (b[0] = at(z).index, c.prevReachedMinPanes = 0, b[0] < z && i.value.forEach((S, M) => {
551
+ M > b[0] && M <= z && (S.size = S.min, c.prevReachedMinPanes += S.min);
552
+ }), c.prevPanesSize = U(b[0]), b[0] === void 0) ? (c.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((S, M) => {
553
+ M > 0 && M <= z && (S.size = S.min, c.prevReachedMinPanes += S.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] = oe(z).index, c.nextReachedMinPanes = 0, b[1] > z + 1 && i.value.forEach((S, M) => {
555
+ M > z && M < b[1] && (S.size = S.min, c.nextReachedMinPanes += S.min);
556
+ }), c.nextPanesSize = ee(b[1] - 1), b[1] === void 0) ? (c.nextReachedMinPanes = 0, i.value.forEach((S, M) => {
557
+ M < r.value - 1 && M >= z + 1 && (S.size = S.min, c.nextReachedMinPanes += S.min);
558
558
  }), i.value[b[0]].size = 100 - c.prevPanesSize - ee(b[0] - 1), null) : { sums: c, panesToResize: b };
559
- }, V = (c) => i.value.reduce((g, z, b) => g + (b < c ? z.size : 0), 0), ee = (c) => i.value.reduce((g, z, b) => g + (b > c + 1 ? z.size : 0), 0), at = (c) => [...i.value].reverse().find((g) => g.index < c && g.size > g.min) || {}, oe = (c) => i.value.find((g) => g.index > c + 1 && g.size > g.min) || {}, Be = () => {
559
+ }, U = (c) => i.value.reduce((g, z, b) => g + (b < c ? z.size : 0), 0), ee = (c) => i.value.reduce((g, z, b) => g + (b > c + 1 ? z.size : 0), 0), at = (c) => [...i.value].reverse().find((g) => g.index < c && g.size > g.min) || {}, oe = (c) => i.value.find((g) => g.index > c + 1 && g.size > g.min) || {}, Be = () => {
560
560
  var c;
561
561
  const g = Array.from(((c = u.value) == null ? void 0 : c.children) || []);
562
562
  for (const z of g) {
563
- const b = z.classList.contains("splitpanes__pane"), x = z.classList.contains("splitpanes__splitter");
564
- !b && !x && (z.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
563
+ const b = z.classList.contains("splitpanes__pane"), S = z.classList.contains("splitpanes__splitter");
564
+ !b && !S && (z.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
565
565
  }
566
566
  }, J = (c, g, z = !1) => {
567
- const b = c - 1, x = document.createElement("div");
568
- x.classList.add("splitpanes__splitter"), z || (x.onmousedown = (M) => $(M, b), typeof window < "u" && "ontouchstart" in window && (x.ontouchstart = (M) => $(M, b)), x.onclick = (M) => H(M, b + 1)), x.ondblclick = (M) => j(M, b + 1), g.parentNode.insertBefore(x, g);
567
+ const b = c - 1, S = document.createElement("div");
568
+ S.classList.add("splitpanes__splitter"), z || (S.onmousedown = (M) => $(M, b), typeof window < "u" && "ontouchstart" in window && (S.ontouchstart = (M) => $(M, b)), S.onclick = (M) => H(M, b + 1)), S.ondblclick = (M) => j(M, b + 1), g.parentNode.insertBefore(S, g);
569
569
  }, se = (c) => {
570
570
  c.onmousedown = void 0, c.onclick = void 0, c.ondblclick = void 0, c.remove();
571
571
  }, ge = () => {
@@ -578,18 +578,18 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
578
578
  b.className.includes("splitpanes__pane") && (!z && o.firstSplitter ? J(z, b, !0) : z && J(z, b), z++);
579
579
  }, Ie = ({ uid: c, ...g }) => {
580
580
  const z = a.value[c];
581
- for (const [b, x] of Object.entries(g)) z[b] = x;
581
+ for (const [b, S] of Object.entries(g)) z[b] = S;
582
582
  }, De = (c) => {
583
583
  var g;
584
584
  let z = -1;
585
- Array.from(((g = u.value) == null ? void 0 : g.children) || []).some((b) => (b.className.includes("splitpanes__pane") && z++, b.isSameNode(c.el))), i.value.splice(z, 0, { ...c, index: z }), i.value.forEach((b, x) => b.index = x), f.value && _e(() => {
585
+ Array.from(((g = u.value) == null ? void 0 : g.children) || []).some((b) => (b.className.includes("splitpanes__pane") && z++, b.isSameNode(c.el))), i.value.splice(z, 0, { ...c, index: z }), i.value.forEach((b, S) => b.index = S), f.value && Te(() => {
586
586
  ge(), de({ addedPane: i.value[z] }), re("pane-add", { pane: i.value[z] });
587
587
  });
588
588
  }, He = (c) => {
589
589
  const g = i.value.findIndex((b) => b.id === c);
590
590
  i.value[g].el = null;
591
591
  const z = i.value.splice(g, 1)[0];
592
- i.value.forEach((b, x) => b.index = x), _e(() => {
592
+ i.value.forEach((b, S) => b.index = S), Te(() => {
593
593
  ge(), re("pane-remove", { pane: z }), de({ removedPane: { ...z } });
594
594
  });
595
595
  }, de = (c = {}) => {
@@ -598,8 +598,8 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
598
598
  const c = 100 / r.value;
599
599
  let g = 0;
600
600
  const z = [], b = [];
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 && z.push(x.id), x.size <= x.min && b.push(x.id);
601
+ for (const S of i.value)
602
+ S.size = Math.max(Math.min(c, S.max), S.min), g -= S.size, S.size >= S.max && z.push(S.id), S.size <= S.min && b.push(S.id);
603
603
  g > 0.1 && Ee(g, z, b);
604
604
  }, qe = () => {
605
605
  let c = 100;
@@ -607,34 +607,34 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
607
607
  let b = 0;
608
608
  for (const M of i.value)
609
609
  c -= M.size, M.givenSize !== null && b++, M.size >= M.max && g.push(M.id), M.size <= M.min && z.push(M.id);
610
- let x = 100;
610
+ let S = 100;
611
611
  if (c > 0.1) {
612
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, z);
613
+ M.givenSize === null && (M.size = Math.max(Math.min(c / (r.value - b), M.max), M.min)), S -= M.size;
614
+ S > 0.1 && Ee(S, g, z);
615
615
  }
616
616
  }, je = ({ addedPane: c, removedPane: g } = {}) => {
617
617
  let z = 100 / r.value, b = 0;
618
- const x = [], M = [];
618
+ const S = [], M = [];
619
619
  ((c == null ? void 0 : c.givenSize) ?? null) !== null && (z = (100 - c.givenSize) / (r.value - 1));
620
620
  for (const N of i.value)
621
- b -= N.size, N.size >= N.max && x.push(N.id), N.size <= N.min && M.push(N.id);
621
+ b -= N.size, N.size >= N.max && S.push(N.id), N.size <= N.min && M.push(N.id);
622
622
  if (!(Math.abs(b) < 0.1)) {
623
623
  for (const N of i.value)
624
- (c == null ? void 0 : c.givenSize) !== null && (c == null ? void 0 : c.id) === N.id || (N.size = Math.max(Math.min(z, N.max), N.min)), b -= N.size, N.size >= N.max && x.push(N.id), N.size <= N.min && M.push(N.id);
625
- b > 0.1 && Ee(b, x, M);
624
+ (c == null ? void 0 : c.givenSize) !== null && (c == null ? void 0 : c.id) === N.id || (N.size = Math.max(Math.min(z, N.max), N.min)), b -= N.size, N.size >= N.max && S.push(N.id), N.size <= N.min && M.push(N.id);
625
+ b > 0.1 && Ee(b, S, M);
626
626
  }
627
627
  }, Ee = (c, g, z) => {
628
628
  let b;
629
- c > 0 ? b = c / (r.value - g.length) : b = c / (r.value - z.length), i.value.forEach((x, M) => {
630
- if (c > 0 && !g.includes(x.id)) {
631
- const N = Math.max(Math.min(x.size + b, x.max), x.min), le = N - x.size;
632
- c -= le, x.size = N;
633
- } else if (!z.includes(x.id)) {
634
- const N = Math.max(Math.min(x.size + b, x.max), x.min), le = N - x.size;
635
- c -= le, x.size = N;
629
+ c > 0 ? b = c / (r.value - g.length) : b = c / (r.value - z.length), i.value.forEach((S, M) => {
630
+ if (c > 0 && !g.includes(S.id)) {
631
+ const N = Math.max(Math.min(S.size + b, S.max), S.min), le = N - S.size;
632
+ c -= le, S.size = N;
633
+ } else if (!z.includes(S.id)) {
634
+ const N = Math.max(Math.min(S.size + b, S.max), S.min), le = N - S.size;
635
+ c -= le, S.size = N;
636
636
  }
637
- }), Math.abs(c) > 0.1 && _e(() => {
637
+ }), Math.abs(c) > 0.1 && Te(() => {
638
638
  f.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
639
639
  });
640
640
  }, re = (c, g = void 0, z = !1) => {
@@ -646,7 +646,7 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
646
646
  prevPane: i.value[b - (o.firstSplitter ? 1 : 0)],
647
647
  nextPane: i.value[b + (o.firstSplitter ? 0 : 1)]
648
648
  },
649
- panes: i.value.map((x) => ({ min: x.min, max: x.max, size: x.size }))
649
+ panes: i.value.map((S) => ({ min: S.min, max: S.max, size: S.size }))
650
650
  });
651
651
  };
652
652
  ne(() => o.firstSplitter, () => ge()), Le(() => {
@@ -671,10 +671,10 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
671
671
  },
672
672
  setup(e) {
673
673
  var l;
674
- const n = e, o = Me("requestUpdate"), t = Me("onPaneAdd"), i = Me("horizontal"), a = Me("onPaneRemove"), r = Me("onPaneClick"), u = (l = zt()) == null ? void 0 : l.uid, f = Me("indexedPanes"), d = X(() => f.value[u]), p = B(null), E = X(() => {
674
+ const n = e, o = Me("requestUpdate"), t = Me("onPaneAdd"), i = Me("horizontal"), a = Me("onPaneRemove"), r = Me("onPaneClick"), u = (l = zt()) == 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
- return Math.max(Math.min(y, I.value), _.value);
677
- }), _ = X(() => {
676
+ return Math.max(Math.min(y, I.value), T.value);
677
+ }), T = X(() => {
678
678
  const y = parseFloat(n.minSize);
679
679
  return isNaN(y) ? 0 : y;
680
680
  }), I = X(() => {
@@ -684,11 +684,11 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
684
684
  var y;
685
685
  return `${i.value ? "height" : "width"}: ${(y = d.value) == null ? void 0 : y.size}%`;
686
686
  });
687
- return ne(() => E.value, (y) => o({ uid: u, size: y })), ne(() => _.value, (y) => o({ uid: u, min: y })), ne(() => I.value, (y) => o({ uid: u, max: y })), Le(() => {
687
+ return ne(() => E.value, (y) => o({ uid: u, size: y })), ne(() => T.value, (y) => o({ uid: u, min: y })), ne(() => I.value, (y) => o({ uid: u, max: y })), Le(() => {
688
688
  t({
689
689
  id: u,
690
690
  el: p.value,
691
- min: _.value,
691
+ min: T.value,
692
692
  max: I.value,
693
693
  // The given size (useful to know the user intention).
694
694
  givenSize: n.size === void 0 ? null : E.value,
@@ -1018,10 +1018,10 @@ function co(e, l) {
1018
1018
  const a = o.width, r = o.height, u = t.width, f = t.height;
1019
1019
  let d, p;
1020
1020
  a === null ? (p = r === null ? "1em" : r === "auto" ? f : r, d = Kt(p, u / f)) : (d = a === "auto" ? u : a, p = r === null ? Kt(d, f / u) : r === "auto" ? f : r);
1021
- const E = {}, _ = ($, y) => {
1021
+ const E = {}, T = ($, y) => {
1022
1022
  uo(y) || (E[$] = y.toString());
1023
1023
  };
1024
- _("width", d), _("height", p);
1024
+ T("width", d), T("height", p);
1025
1025
  const I = [t.left, t.top, u, f];
1026
1026
  return E.viewBox = I.join(" "), {
1027
1027
  attributes: E,
@@ -1094,7 +1094,7 @@ function go(e, l) {
1094
1094
  const n = Mt(l);
1095
1095
  return n === null ? !1 : (Pt[e] = n, !0);
1096
1096
  }
1097
- function Tt(e) {
1097
+ function _t(e) {
1098
1098
  return Pt[e];
1099
1099
  }
1100
1100
  const bo = () => {
@@ -1107,7 +1107,7 @@ const bo = () => {
1107
1107
  };
1108
1108
  let Xt = bo();
1109
1109
  function yo(e, l) {
1110
- const n = Tt(e);
1110
+ const n = _t(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 = Tt(e);
1148
+ const l = _t(e);
1149
1149
  if (l)
1150
1150
  return l.path;
1151
1151
  }
@@ -1294,7 +1294,7 @@ function Po(e, l = !0, n = !1) {
1294
1294
  i && o.push(i);
1295
1295
  }), o;
1296
1296
  }
1297
- var To = {
1297
+ var _o = {
1298
1298
  resources: [],
1299
1299
  index: 0,
1300
1300
  timeout: 2e3,
@@ -1302,31 +1302,31 @@ var To = {
1302
1302
  random: !1,
1303
1303
  dataAfterTimeout: !1
1304
1304
  };
1305
- function _o(e, l, n, o) {
1305
+ 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 a;
1308
1308
  if (e.random) {
1309
- let S = e.resources.slice(0);
1310
- for (a = []; S.length > 1; ) {
1311
- const k = Math.floor(Math.random() * S.length);
1312
- a.push(S[k]), S = S.slice(0, k).concat(S.slice(k + 1));
1309
+ let k = e.resources.slice(0);
1310
+ for (a = []; k.length > 1; ) {
1311
+ const C = Math.floor(Math.random() * k.length);
1312
+ a.push(k[C]), k = k.slice(0, C).concat(k.slice(C + 1));
1313
1313
  }
1314
- a = a.concat(S);
1314
+ a = a.concat(k);
1315
1315
  } else
1316
1316
  a = e.resources.slice(i).concat(e.resources.slice(0, i));
1317
1317
  const r = Date.now();
1318
- let u = "pending", f = 0, d, p = null, E = [], _ = [];
1319
- typeof o == "function" && _.push(o);
1318
+ let u = "pending", f = 0, d, p = null, E = [], T = [];
1319
+ typeof o == "function" && T.push(o);
1320
1320
  function I() {
1321
1321
  p && (clearTimeout(p), p = null);
1322
1322
  }
1323
1323
  function $() {
1324
- u === "pending" && (u = "aborted"), I(), E.forEach((S) => {
1325
- S.status === "pending" && (S.status = "aborted");
1324
+ u === "pending" && (u = "aborted"), I(), E.forEach((k) => {
1325
+ k.status === "pending" && (k.status = "aborted");
1326
1326
  }), E = [];
1327
1327
  }
1328
- function y(S, k) {
1329
- k && (_ = []), typeof S == "function" && _.push(S);
1328
+ function y(k, C) {
1329
+ C && (T = []), typeof k == "function" && T.push(k);
1330
1330
  }
1331
1331
  function A() {
1332
1332
  return {
@@ -1340,49 +1340,49 @@ function _o(e, l, n, o) {
1340
1340
  };
1341
1341
  }
1342
1342
  function H() {
1343
- u = "failed", _.forEach((S) => {
1344
- S(void 0, d);
1343
+ u = "failed", T.forEach((k) => {
1344
+ k(void 0, d);
1345
1345
  });
1346
1346
  }
1347
1347
  function j() {
1348
- E.forEach((S) => {
1349
- S.status === "pending" && (S.status = "aborted");
1348
+ E.forEach((k) => {
1349
+ k.status === "pending" && (k.status = "aborted");
1350
1350
  }), E = [];
1351
1351
  }
1352
- function O(S, k, W) {
1353
- const V = k !== "success";
1354
- switch (E = E.filter((ee) => ee !== S), u) {
1352
+ function O(k, C, B) {
1353
+ const U = C !== "success";
1354
+ switch (E = E.filter((ee) => ee !== k), u) {
1355
1355
  case "pending":
1356
1356
  break;
1357
1357
  case "failed":
1358
- if (V || !e.dataAfterTimeout)
1358
+ if (U || !e.dataAfterTimeout)
1359
1359
  return;
1360
1360
  break;
1361
1361
  default:
1362
1362
  return;
1363
1363
  }
1364
- if (k === "abort") {
1365
- d = W, H();
1364
+ if (C === "abort") {
1365
+ d = B, H();
1366
1366
  return;
1367
1367
  }
1368
- if (V) {
1369
- d = W, E.length || (a.length ? Y() : H());
1368
+ if (U) {
1369
+ d = B, E.length || (a.length ? Y() : H());
1370
1370
  return;
1371
1371
  }
1372
1372
  if (I(), j(), !e.random) {
1373
- const ee = e.resources.indexOf(S.resource);
1373
+ const ee = e.resources.indexOf(k.resource);
1374
1374
  ee !== -1 && ee !== e.index && (e.index = ee);
1375
1375
  }
1376
- u = "completed", _.forEach((ee) => {
1377
- ee(W);
1376
+ u = "completed", T.forEach((ee) => {
1377
+ ee(B);
1378
1378
  });
1379
1379
  }
1380
1380
  function Y() {
1381
1381
  if (u !== "pending")
1382
1382
  return;
1383
1383
  I();
1384
- const S = a.shift();
1385
- if (S === void 0) {
1384
+ const k = a.shift();
1385
+ if (k === void 0) {
1386
1386
  if (E.length) {
1387
1387
  p = setTimeout(() => {
1388
1388
  I(), u === "pending" && (j(), H());
@@ -1392,20 +1392,20 @@ function _o(e, l, n, o) {
1392
1392
  H();
1393
1393
  return;
1394
1394
  }
1395
- const k = {
1395
+ const C = {
1396
1396
  status: "pending",
1397
- resource: S,
1398
- callback: (W, V) => {
1399
- O(k, W, V);
1397
+ resource: k,
1398
+ callback: (B, U) => {
1399
+ O(C, B, U);
1400
1400
  }
1401
1401
  };
1402
- E.push(k), f++, p = setTimeout(Y, e.rotate), n(S, l, k.callback);
1402
+ E.push(C), f++, p = setTimeout(Y, e.rotate), n(k, l, C.callback);
1403
1403
  }
1404
1404
  return setTimeout(Y), A;
1405
1405
  }
1406
1406
  function Cn(e) {
1407
1407
  const l = {
1408
- ...To,
1408
+ ..._o,
1409
1409
  ...e
1410
1410
  };
1411
1411
  let n = [];
@@ -1413,7 +1413,7 @@ function Cn(e) {
1413
1413
  n = n.filter((r) => r().status === "pending");
1414
1414
  }
1415
1415
  function t(r, u, f) {
1416
- const d = _o(
1416
+ const d = To(
1417
1417
  l,
1418
1418
  r,
1419
1419
  u,
@@ -1441,7 +1441,7 @@ function Yt() {
1441
1441
  const pt = /* @__PURE__ */ Object.create(null);
1442
1442
  function Io(e) {
1443
1443
  if (!pt[e]) {
1444
- const l = Tt(e);
1444
+ const l = _t(e);
1445
1445
  if (!l)
1446
1446
  return;
1447
1447
  const n = Cn(l), o = {
@@ -1478,7 +1478,7 @@ function xt(e, l) {
1478
1478
  } catch {
1479
1479
  }
1480
1480
  }
1481
- function _t(e, l, n) {
1481
+ function Tt(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 St(e, l) {
1494
- return _t(e, zn, l.toString());
1494
+ return Tt(e, zn, l.toString());
1495
1495
  }
1496
1496
  function kt(e) {
1497
1497
  return parseInt(xt(e, zn)) || 0;
@@ -1528,7 +1528,7 @@ function Pn(e, l) {
1528
1528
  for (let u = 0; u < r; u++)
1529
1529
  en(n, Ae + u.toString());
1530
1530
  }
1531
- _t(n, Zt, Jt), St(n, 0);
1531
+ Tt(n, Zt, Jt), St(n, 0);
1532
1532
  return;
1533
1533
  }
1534
1534
  const t = Math.floor(Date.now() / Ln) - Oo, i = (r) => {
@@ -1548,7 +1548,7 @@ function Pn(e, l) {
1548
1548
  for (let r = a - 1; r >= 0; r--)
1549
1549
  i(r) || (r === a - 1 ? (a--, St(n, a)) : En[e].add(r));
1550
1550
  }
1551
- function Tn() {
1551
+ function _n() {
1552
1552
  if (!It) {
1553
1553
  Ro(!0);
1554
1554
  for (const e in rt)
@@ -1580,7 +1580,7 @@ function No(e, l) {
1580
1580
  return !0;
1581
1581
  }
1582
1582
  function Ao(e, l) {
1583
- It || Tn();
1583
+ It || _n();
1584
1584
  function n(o) {
1585
1585
  let t;
1586
1586
  if (!rt[o] || !(t = Mn(o)))
@@ -1596,7 +1596,7 @@ function Ao(e, l) {
1596
1596
  provider: e.provider,
1597
1597
  data: l
1598
1598
  };
1599
- return _t(
1599
+ return Tt(
1600
1600
  t,
1601
1601
  Ae + a.toString(),
1602
1602
  JSON.stringify(r)
@@ -1670,8 +1670,8 @@ const Do = (e, l) => {
1670
1670
  const p = t[f] || (t[f] = /* @__PURE__ */ Object.create(null));
1671
1671
  p[d] || (p[d] = []);
1672
1672
  }), o.pending.forEach((u) => {
1673
- const { provider: f, prefix: d, name: p } = u, E = ze(f, d), _ = E.pendingIcons || (E.pendingIcons = /* @__PURE__ */ new Set());
1674
- _.has(p) || (_.add(p), t[f][d].push(p));
1673
+ const { provider: f, prefix: d, name: p } = u, E = ze(f, d), T = E.pendingIcons || (E.pendingIcons = /* @__PURE__ */ new Set());
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
1677
  t[f][d].length && Bo(u, t[f][d]);
@@ -1700,7 +1700,7 @@ function jo(e, l) {
1700
1700
  }
1701
1701
  });
1702
1702
  }
1703
- function Vo(e, l = 0) {
1703
+ function Uo(e, l = 0) {
1704
1704
  const n = e.replace(/^-?[0-9.]*/, "");
1705
1705
  function o(t) {
1706
1706
  for (; t < 0; )
@@ -1726,7 +1726,7 @@ function Vo(e, l = 0) {
1726
1726
  }
1727
1727
  return l;
1728
1728
  }
1729
- function Uo(e, l) {
1729
+ function Vo(e, l) {
1730
1730
  let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1731
1731
  for (const o in l)
1732
1732
  n += " " + o + '="' + l[o] + '"';
@@ -1753,7 +1753,7 @@ const nn = {
1753
1753
  display: "inline-block"
1754
1754
  }, Ct = {
1755
1755
  backgroundColor: "currentColor"
1756
- }, _n = {
1756
+ }, Tn = {
1757
1757
  backgroundColor: "transparent"
1758
1758
  }, ln = {
1759
1759
  Image: "var(--svg)",
@@ -1762,7 +1762,7 @@ const nn = {
1762
1762
  }, on = {
1763
1763
  webkitMask: Ct,
1764
1764
  mask: Ct,
1765
- background: _n
1765
+ background: Tn
1766
1766
  };
1767
1767
  for (const e in on) {
1768
1768
  const l = on[e];
@@ -1800,7 +1800,7 @@ const an = (e, l) => {
1800
1800
  i.color = y;
1801
1801
  break;
1802
1802
  case "rotate":
1803
- typeof y == "string" ? n[$] = Vo(y) : typeof y == "number" && (n[$] = y);
1803
+ typeof y == "string" ? n[$] = Uo(y) : typeof y == "number" && (n[$] = y);
1804
1804
  break;
1805
1805
  case "ariaHidden":
1806
1806
  case "aria-hidden":
@@ -1821,7 +1821,7 @@ const an = (e, l) => {
1821
1821
  let $ = 0, y = l.id;
1822
1822
  return typeof y == "string" && (y = y.replace(/-/g, "_")), o.innerHTML = vo(u.body, y ? () => y + "ID" + $++ : "iconifyVue"), mt("svg", o);
1823
1823
  }
1824
- const { body: d, width: p, height: E } = e, _ = t === "mask" || (t === "bg" ? !1 : d.indexOf("currentColor") !== -1), I = Uo(d, {
1824
+ const { body: d, width: p, height: E } = e, T = t === "mask" || (t === "bg" ? !1 : d.indexOf("currentColor") !== -1), I = Vo(d, {
1825
1825
  ...f,
1826
1826
  width: p + "",
1827
1827
  height: E + ""
@@ -1832,14 +1832,14 @@ const an = (e, l) => {
1832
1832
  width: rn(f.width),
1833
1833
  height: rn(f.height),
1834
1834
  ...Yo,
1835
- ..._ ? Ct : _n,
1835
+ ...T ? Ct : Tn,
1836
1836
  ...r
1837
1837
  }, mt("span", o);
1838
1838
  };
1839
1839
  wn(!0);
1840
1840
  mo("", Co);
1841
1841
  if (typeof document < "u" && typeof window < "u") {
1842
- Tn();
1842
+ _n();
1843
1843
  const e = window;
1844
1844
  if (e.IconifyPreload !== void 0) {
1845
1845
  const l = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
@@ -1946,34 +1946,35 @@ 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);
1950
- function t(a) {
1951
- if (l.expandall)
1952
- o.value = !o.value, n.value.forEach((r) => {
1953
- r.isExpanded = o.value;
1954
- });
1949
+ const l = e, n = Jn(l, "expandedrows"), o = D(!1);
1950
+ function t(r) {
1951
+ if (console.log("🔍 expandRow çağrıldı:", { id: r, expandall: l.expandall }), l.expandall)
1952
+ console.log("📋 expandall=true - tümünü değiştir"), o.value = !o.value, n.value.forEach((u) => {
1953
+ u.isExpanded = o.value;
1954
+ }), console.log("📋 tüm satırlar:", n.value);
1955
1955
  else {
1956
- const r = n.value.find((u) => u.id == a);
1957
- r ? r.isExpanded = !r.isExpanded : n.value.push({ id: a, isExpanded: !0 });
1956
+ console.log("🎯 expandall=false - sadece tek satır");
1957
+ const u = n.value.find((f) => f.id == r);
1958
+ u ? (console.log("✏️ mevcut satır güncellendi:", u), u.isExpanded = !u.isExpanded) : (console.log("➕ yeni satır eklendi:", r), n.value.push({ id: r, isExpanded: !0 })), console.log("🎯 güncel expandedrows:", n.value);
1958
1959
  }
1959
1960
  }
1960
- const i = B(-1);
1961
- return ne(
1962
- () => n.value,
1963
- (a, r) => {
1964
- var u;
1965
- new Set(n.value.map((f) => f.isExpanded)).size > 1 ? (i.value = -1, o.value = !0) : (u = n.value.at(0)) != null && u.isExpanded ? (i.value = 0, o.value = !0) : (i.value = 1, o.value = !1);
1966
- },
1967
- { deep: !0 }
1968
- ), (a, r) => {
1969
- var u, f;
1961
+ const i = (r) => r._rowIndex !== void 0 ? r._rowIndex : r.id || 0, a = D(-1);
1962
+ return ne(() => n.value, () => {
1963
+ var r;
1964
+ if (console.log("👀 watcher tetiklendi:", { expandall: l.expandall, expandedrows: n.value }), !l.expandall) {
1965
+ console.log("⚠️ expandall=false, watcher işlem yapmıyor");
1966
+ return;
1967
+ }
1968
+ console.log("📈 expandall=true, global state yönetimi"), new Set(n.value.map((u) => u.isExpanded)).size > 1 ? (a.value = -1, o.value = !0, console.log("🔄 karışık durum: mixedRows=-1")) : (r = n.value.at(0)) != null && r.isExpanded ? (a.value = 0, o.value = !0, console.log("✅ hepsi açık: mixedRows=0")) : (a.value = 1, o.value = !1, console.log("❌ hepsi kapalı: mixedRows=1"));
1969
+ }, { deep: !0 }), (r, u) => {
1970
+ var f;
1970
1971
  return m(), w("button", {
1971
1972
  class: "expandbtn",
1972
- onClick: r[0] || (r[0] = (d) => t(a.item.id))
1973
+ onClick: u[0] || (u[0] = (d) => t(i(r.item)))
1973
1974
  }, [
1974
- (((u = n.value.find((d) => d.id == a.item.id)) == null ? void 0 : u.isExpanded) == null ? o.value : (f = n.value.find((d) => d.id == a.item.id)) != null && f.isExpanded) ? (m(), w(G, { key: 0 }, [
1975
+ ((f = n.value.find((d) => d.id == i(r.item))) == null ? void 0 : f.isExpanded) === !0 ? (m(), w(G, { key: 0 }, [
1975
1976
  l.expandall ? (m(), w(G, { key: 0 }, [
1976
- i.value ? (m(), ue(K(be), {
1977
+ a.value ? (m(), ue(K(be), {
1977
1978
  key: 0,
1978
1979
  icon: "fluent:chevron-down-up-16-filled"
1979
1980
  })) : (m(), ue(K(be), {
@@ -1986,10 +1987,10 @@ const Jo = {
1986
1987
  }))
1987
1988
  ], 64)) : (m(), w(G, { key: 1 }, [
1988
1989
  l.expandall ? (m(), w(G, { key: 0 }, [
1989
- i.value == -1 ? (m(), ue(K(be), {
1990
+ a.value == -1 ? (m(), ue(K(be), {
1990
1991
  key: 0,
1991
1992
  icon: "ion:chevron-expand"
1992
- })) : i.value == 0 ? (m(), ue(K(be), {
1993
+ })) : a.value == 0 ? (m(), ue(K(be), {
1993
1994
  key: 1,
1994
1995
  icon: "mdi:chevron-down"
1995
1996
  })) : (m(), ue(K(be), {
@@ -2009,7 +2010,7 @@ const Jo = {
2009
2010
  for (const [o, t] of l)
2010
2011
  n[o] = t;
2011
2012
  return n;
2012
- }, In = /* @__PURE__ */ We(ei, [["__scopeId", "data-v-8bd9f848"]]), ti = {
2013
+ }, In = /* @__PURE__ */ We(ei, [["__scopeId", "data-v-d6b9b4eb"]]), ti = {
2013
2014
  name: "ButtonRightPanel"
2014
2015
  }, ni = /* @__PURE__ */ we({
2015
2016
  ...ti,
@@ -2054,101 +2055,101 @@ const Jo = {
2054
2055
  }, [
2055
2056
  L("button", {
2056
2057
  type: "button",
2057
- class: T({ active: n.column.condition === "" }),
2058
+ class: _({ active: n.column.condition === "" }),
2058
2059
  onClick: r[0] || (r[0] = (u) => i(""))
2059
2060
  }, q((n.columnFilterLang && n.columnFilterLang.NoFilter) ?? "No filter"), 3),
2060
2061
  n.column.type === "string" ? (m(), w(G, { key: 0 }, [
2061
2062
  L("button", {
2062
2063
  type: "button",
2063
- class: T({ active: n.column.condition === "Contains" }),
2064
+ class: _({ active: n.column.condition === "Contains" }),
2064
2065
  onClick: r[1] || (r[1] = (u) => i("Contains"))
2065
2066
  }, q((n.columnFilterLang && n.columnFilterLang.Contains) ?? "Contains"), 3),
2066
2067
  L("button", {
2067
2068
  type: "button",
2068
- class: T({ active: n.column.condition === "NotContains" }),
2069
+ class: _({ active: n.column.condition === "NotContains" }),
2069
2070
  onClick: r[2] || (r[2] = (u) => i("NotContains"))
2070
2071
  }, q((n.columnFilterLang && n.columnFilterLang.NotContains) ?? "NotContains"), 3),
2071
2072
  L("button", {
2072
2073
  type: "button",
2073
- class: T({ active: n.column.condition === "Equal" }),
2074
+ class: _({ active: n.column.condition === "Equal" }),
2074
2075
  onClick: r[3] || (r[3] = (u) => i("Equal"))
2075
2076
  }, q((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2076
2077
  L("button", {
2077
2078
  type: "button",
2078
- class: T({ active: n.column.condition === "NotEqual" }),
2079
+ class: _({ active: n.column.condition === "NotEqual" }),
2079
2080
  onClick: r[4] || (r[4] = (u) => i("NotEqual"))
2080
2081
  }, q((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2081
2082
  L("button", {
2082
2083
  type: "button",
2083
- class: T({ active: n.column.condition === "StartsWith" }),
2084
+ class: _({ active: n.column.condition === "StartsWith" }),
2084
2085
  onClick: r[5] || (r[5] = (u) => i("StartsWith"))
2085
2086
  }, q((n.columnFilterLang && n.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
2086
2087
  L("button", {
2087
2088
  type: "button",
2088
- class: T({ active: n.column.condition === "EndsWith" }),
2089
+ class: _({ active: n.column.condition === "EndsWith" }),
2089
2090
  onClick: r[6] || (r[6] = (u) => i("EndsWith"))
2090
2091
  }, q((n.columnFilterLang && n.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
2091
2092
  ], 64)) : n.column.type === "number" ? (m(), w(G, { key: 1 }, [
2092
2093
  L("button", {
2093
2094
  type: "button",
2094
- class: T({ active: n.column.condition === "Equal" }),
2095
+ class: _({ active: n.column.condition === "Equal" }),
2095
2096
  onClick: r[7] || (r[7] = (u) => i("Equal"))
2096
2097
  }, q((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2097
2098
  L("button", {
2098
2099
  type: "button",
2099
- class: T({ active: n.column.condition === "NotEqual" }),
2100
+ class: _({ active: n.column.condition === "NotEqual" }),
2100
2101
  onClick: r[8] || (r[8] = (u) => i("NotEqual"))
2101
2102
  }, q((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2102
2103
  L("button", {
2103
2104
  type: "button",
2104
- class: T({ active: n.column.condition === "GreaterThan" }),
2105
+ class: _({ active: n.column.condition === "GreaterThan" }),
2105
2106
  onClick: r[9] || (r[9] = (u) => i("GreaterThan"))
2106
2107
  }, q((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2107
2108
  L("button", {
2108
2109
  type: "button",
2109
- class: T({ active: n.column.condition === "GreaterThanOrEqual" }),
2110
+ class: _({ active: n.column.condition === "GreaterThanOrEqual" }),
2110
2111
  onClick: r[10] || (r[10] = (u) => i("GreaterThanOrEqual"))
2111
2112
  }, q((n.columnFilterLang && n.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual"), 3),
2112
2113
  L("button", {
2113
2114
  type: "button",
2114
- class: T({ active: n.column.condition === "LessThan" }),
2115
+ class: _({ active: n.column.condition === "LessThan" }),
2115
2116
  onClick: r[11] || (r[11] = (u) => i("LessThan"))
2116
2117
  }, q((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan"), 3),
2117
2118
  L("button", {
2118
2119
  type: "button",
2119
- class: T({ active: n.column.condition === "LessThanOrEqual" }),
2120
+ class: _({ active: n.column.condition === "LessThanOrEqual" }),
2120
2121
  onClick: r[12] || (r[12] = (u) => i("LessThanOrEqual"))
2121
2122
  }, q((n.columnFilterLang && n.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual"), 3)
2122
2123
  ], 64)) : n.column.type === "date" ? (m(), w(G, { key: 2 }, [
2123
2124
  L("button", {
2124
2125
  type: "button",
2125
- class: T({ active: n.column.condition === "Equal" }),
2126
+ class: _({ active: n.column.condition === "Equal" }),
2126
2127
  onClick: r[13] || (r[13] = (u) => i("Equal"))
2127
2128
  }, q((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2128
2129
  L("button", {
2129
2130
  type: "button",
2130
- class: T({ active: n.column.condition === "NotEqual" }),
2131
+ class: _({ active: n.column.condition === "NotEqual" }),
2131
2132
  onClick: r[14] || (r[14] = (u) => i("NotEqual"))
2132
2133
  }, q((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "Not equal"), 3),
2133
2134
  L("button", {
2134
2135
  type: "button",
2135
- class: T({ active: n.column.condition === "GreaterThan" }),
2136
+ class: _({ active: n.column.condition === "GreaterThan" }),
2136
2137
  onClick: r[15] || (r[15] = (u) => i("GreaterThan"))
2137
2138
  }, q((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2138
2139
  L("button", {
2139
2140
  type: "button",
2140
- class: T({ active: n.column.condition === "LessThan" }),
2141
+ class: _({ active: n.column.condition === "LessThan" }),
2141
2142
  onClick: r[16] || (r[16] = (u) => i("LessThan"))
2142
2143
  }, q((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan"), 3)
2143
2144
  ], 64)) : R("", !0),
2144
2145
  L("button", {
2145
2146
  type: "button",
2146
- class: T({ active: n.column.condition === "IsNull" }),
2147
+ class: _({ active: n.column.condition === "IsNull" }),
2147
2148
  onClick: r[17] || (r[17] = (u) => i("IsNull"))
2148
2149
  }, q((n.columnFilterLang && n.columnFilterLang.IsNull) ?? "IsNull"), 3),
2149
2150
  L("button", {
2150
2151
  type: "button",
2151
- class: T({ active: n.column.condition === "IsNotNull" }),
2152
+ class: _({ active: n.column.condition === "IsNotNull" }),
2152
2153
  onClick: r[18] || (r[18] = (u) => i("IsNotNull"))
2153
2154
  }, q((n.columnFilterLang && n.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
2154
2155
  ])
@@ -2220,7 +2221,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2220
2221
  }, Mi = {
2221
2222
  key: 0,
2222
2223
  class: "bh-filter bh-relative"
2223
- }, Pi = ["onUpdate:modelValue"], Ti = ["onUpdate:modelValue"], _i = ["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
+ }, 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
2225
  Fi,
2225
2226
  Oi,
2226
2227
  $i
@@ -2245,14 +2246,14 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2245
2246
  "toggleFilterMenu"
2246
2247
  ],
2247
2248
  setup(e, { emit: l }) {
2248
- const n = B(null), o = e, t = l;
2249
+ const n = D(null), o = e, t = l;
2249
2250
  return ne(() => o.checkAll, () => {
2250
2251
  n.value && (n.value.indeterminate = o.checkAll !== 0 ? !o.checkAll : !1, n.value.checked = o.checkAll);
2251
2252
  }), (a, r) => (m(), w("tr", Ci, [
2252
2253
  o.all.hasCheckbox ? (m(), w("th", {
2253
2254
  key: "chkall",
2254
2255
  style: Z({ width: o.all.checkboxColumnWidth + " !important", minWidth: o.all.checkboxColumnWidth + " !important" }),
2255
- class: T({
2256
+ class: _({
2256
2257
  "bh-sticky bh-bg-blue-light bh-z-[1]": o.all.stickyHeader || o.all.stickyFirstColumn,
2257
2258
  "bh-top-0": o.all.stickyHeader,
2258
2259
  "bh-left-0": o.all.stickyFirstColumn
@@ -2277,7 +2278,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2277
2278
  o.all.hasRightPanel ? (m(), w("th", {
2278
2279
  key: 1,
2279
2280
  style: Z({ width: o.all.rightPanelColumnWidth + " !important", minWidth: o.all.rightPanelColumnWidth + " !important" }),
2280
- class: T({
2281
+ class: _({
2281
2282
  "bh-sticky bh-bg-blue-light bh-z-[1]": o.all.stickyHeader || o.all.stickyFirstColumn,
2282
2283
  "bh-top-0": o.all.stickyHeader,
2283
2284
  "bh-left-0": o.all.stickyFirstColumn
@@ -2296,7 +2297,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2296
2297
  (m(!0), w(G, null, pe(o.all.columns, (u, f) => (m(), w(G, null, [
2297
2298
  u.hide ? R("", !0) : (m(), w("th", {
2298
2299
  key: u.field,
2299
- class: T(["bh-select-none bh-z-[1]", [
2300
+ class: _(["bh-select-none bh-z-[1]", [
2300
2301
  o.all.sortable && u.sort ? "bh-cursor-pointer" : "",
2301
2302
  f === 0 && o.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2302
2303
  o.all.hasCheckbox && f === 0 && o.all.stickyFirstColumn ? "bh-left-[52px]" : ""
@@ -2308,26 +2309,26 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2308
2309
  })
2309
2310
  }, [
2310
2311
  L("div", {
2311
- class: T(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2312
+ class: _(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2312
2313
  onClick: (d) => o.all.sortable && u.sort && t("sortChange", u.field)
2313
2314
  }, [
2314
2315
  gt(q(u.title) + " ", 1),
2315
2316
  o.all.sortable && u.sort ? (m(), w("span", {
2316
2317
  key: 0,
2317
- class: T(["bh-ml-3 bh-sort bh-flex bh-items-center", [o.currentSortColumn, o.currentSortDirection]])
2318
+ class: _(["bh-ml-3 bh-sort bh-flex bh-items-center", [o.currentSortColumn, o.currentSortDirection]])
2318
2319
  }, [
2319
2320
  (m(), w("svg", Ei, [
2320
2321
  L("polygon", {
2321
2322
  points: "3.11,6.25 10.89,6.25 7,1.75 ",
2322
2323
  fill: "currentColor",
2323
- class: T(["bh-text-black/20", [
2324
+ class: _(["bh-text-black/20", [
2324
2325
  e.currentSortColumn === u.field && e.currentSortDirection === "asc" ? "!bh-text-primary" : ""
2325
2326
  ]])
2326
2327
  }, null, 2),
2327
2328
  L("polygon", {
2328
2329
  points: "7,12.25 10.89,7.75 3.11,7.75 ",
2329
2330
  fill: "currentColor",
2330
- class: T(["bh-text-black/20", [
2331
+ class: _(["bh-text-black/20", [
2331
2332
  e.currentSortColumn === u.field && e.currentSortDirection === "desc" ? "!bh-text-primary" : ""
2332
2333
  ]])
2333
2334
  }, null, 2)
@@ -2356,7 +2357,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2356
2357
  type: "number",
2357
2358
  class: "bh-form-control",
2358
2359
  onKeyup: r[2] || (r[2] = (d) => t("filterChange"))
2359
- }, null, 40, Ti)), [
2360
+ }, null, 40, _i)), [
2360
2361
  [
2361
2362
  ct,
2362
2363
  u.value,
@@ -2372,7 +2373,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2372
2373
  type: "date",
2373
2374
  class: "bh-form-control",
2374
2375
  onChange: r[3] || (r[3] = (d) => t("filterChange"))
2375
- }, null, 40, _i)), [
2376
+ }, null, 40, Ti)), [
2376
2377
  [ct, u.value]
2377
2378
  ]) : u.type === "bool" ? ve((m(), w("select", {
2378
2379
  key: 3,
@@ -2414,10 +2415,10 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2414
2415
  "stroke-linejoin": "round"
2415
2416
  }, null, -1), ji = [
2416
2417
  qi
2417
- ], Vi = {
2418
+ ], Ui = {
2418
2419
  class: "bh-flex-1",
2419
2420
  style: { overflow: "auto", "min-width": "0", width: "100%" }
2420
- }, Ui = /* @__PURE__ */ L("span", null, "##Top Menu Slot##", -1), Gi = /* @__PURE__ */ L("span", null, "##Table Header Area Slot##", -1), Qi = /* @__PURE__ */ L("span", null, "##Table Action Header Slot##", -1), Ki = ["onClick"], Xi = { class: "bh-checkbox" }, Yi = ["value"], Ji = ["innerHTML"], Zi = ["onClick"], er = ["colspan"], tr = ["colspan"], nr = /* @__PURE__ */ L("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), lr = [
2421
+ }, Vi = /* @__PURE__ */ L("span", null, "##Top Menu Slot##", -1), Gi = /* @__PURE__ */ L("span", null, "##Table Header Area Slot##", -1), Qi = /* @__PURE__ */ L("span", null, "##Table Action Header Slot##", -1), Ki = ["onClick"], Xi = { class: "bh-checkbox" }, Yi = ["value"], Ji = ["innerHTML"], Zi = ["onClick"], er = ["colspan"], tr = ["colspan"], nr = /* @__PURE__ */ L("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), lr = [
2421
2422
  nr
2422
2423
  ], or = ["colspan"], ir = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, rr = { class: "bh-pagination-info bh-flex bh-items-center" }, ar = { class: "bh-mr-2" }, sr = ["value"], ur = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, cr = ["innerHTML"], dr = {
2423
2424
  key: 1,
@@ -2563,29 +2564,29 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2563
2564
  const v = ((Rt = s.type) == null ? void 0 : Rt.toLowerCase()) || "string";
2564
2565
  s.type = v, s.isUnique = s.isUnique !== void 0 ? s.isUnique : !1, s.hide = s.hide !== void 0 ? s.hide : !1, s.filter = s.filter !== void 0 ? s.filter : !0, s.search = s.search !== void 0 ? s.search : !0, s.sort = s.sort !== void 0 ? s.sort : !0, s.html = s.html !== void 0 ? s.html : !1, s.condition = !v || v === "string" ? "Contains" : "Equal";
2565
2566
  }
2566
- const i = B([]), a = B(t.page), r = B(
2567
+ const i = D([]), a = D(t.page), r = D(
2567
2568
  t.pagination ? t.pageSize : (Nt = t.rows) == null ? void 0 : Nt.length
2568
- ), u = t.pageSize, f = B(t.sortColumn), d = t.sortColumn, p = B(t.sortDirection), E = t.sortDirection, _ = B(t.totalRows), I = B([]), $ = B(null), y = B(t.loading), A = B(t.search);
2569
+ ), 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), A = D(t.search);
2569
2570
  JSON.parse(JSON.stringify(t.columns));
2570
- const H = B(null), j = B(null);
2571
- let O = B(0);
2572
- const Y = B(230), S = B(t.leftmenuDefaultWidth), k = B(!1), W = B(null), V = () => {
2573
- if (W.value) {
2574
- const s = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth;
2575
- W.value.style.cssText = `
2576
- width: ${S.value}px !important;
2571
+ const H = D(null), j = D(null);
2572
+ let O = D(0);
2573
+ const Y = D(230), k = D(t.leftmenuDefaultWidth), C = D(!1), B = D(null), U = () => {
2574
+ if (B.value) {
2575
+ const s = C.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth;
2576
+ B.value.style.cssText = `
2577
+ width: ${k.value}px !important;
2577
2578
  min-width: ${s}px !important;
2578
2579
  max-width: ${s}px !important;
2579
2580
  `;
2580
2581
  }
2581
2582
  }, ee = () => {
2582
- k.value ? S.value = t.leftmenuMinWidth : S.value = t.leftmenuDefaultWidth, V();
2583
+ C.value ? k.value = t.leftmenuMinWidth : k.value = t.leftmenuDefaultWidth, U();
2583
2584
  }, at = () => {
2584
- k.value = !k.value, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, V(), oe("currentLeftMenuSize", S.value);
2585
+ C.value = !C.value, k.value = C.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U(), oe("currentLeftMenuSize", k.value);
2585
2586
  };
2586
2587
  Le(() => {
2587
- ce(), _e(() => {
2588
- Ge.value <= 0 && (Ge.value = 10), oe("currentTopMenuSize", t.topmenumin || 20), 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", ee);
2588
+ ce(), Te(() => {
2589
+ Ge.value <= 0 && (Ge.value = 10), oe("currentTopMenuSize", t.topmenumin || 20), t.initialLeftMenuState !== void 0 ? (C.value = t.initialLeftMenuState, k.value = C.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, console.log("Setting initial left menu state:", C.value), console.log("Setting initial left menu width:", k.value)) : k.value = t.leftmenuDefaultWidth, U(), window.addEventListener("resize", ee);
2589
2590
  });
2590
2591
  });
2591
2592
  const oe = n;
@@ -2609,27 +2610,27 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2609
2610
  $t(s);
2610
2611
  },
2611
2612
  isRowSelected(s) {
2612
- return Ue(s);
2613
+ return Ve(s);
2613
2614
  },
2614
2615
  getFilteredRows() {
2615
2616
  return He();
2616
2617
  },
2617
2618
  // Expose function to set the left menu state
2618
2619
  setLeftMenuState(s) {
2619
- k.value = s, S.value = s ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, V();
2620
+ C.value = s, k.value = s ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U();
2620
2621
  }
2621
2622
  }), ne(() => t.initialLeftMenuState, (s) => {
2622
- s !== void 0 && (k.value = s, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, V());
2623
+ s !== void 0 && (C.value = s, k.value = C.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U());
2623
2624
  }, { immediate: !0 });
2624
- const Be = (s, ...v) => s.replace(/{(\d+)}/g, (C, D) => typeof v[D] < "u" ? v[D] : C), J = X(() => {
2625
+ const Be = (s, ...v) => s.replace(/{(\d+)}/g, (x, W) => typeof v[W] < "u" ? v[W] : x), J = X(() => {
2625
2626
  const s = t.columns.find((v) => v.isUnique);
2626
2627
  return (s == null ? void 0 : s.field) || null;
2627
2628
  }), se = X(() => {
2628
- const s = r.value < 1 ? 1 : Math.ceil(_.value / r.value);
2629
+ const s = r.value < 1 ? 1 : Math.ceil(T.value / r.value);
2629
2630
  return Math.max(s || 0, 1);
2630
2631
  }), ge = X(() => (a.value - 1) * r.value + 1), Ie = X(() => {
2631
2632
  const s = a.value * r.value;
2632
- return _.value >= s ? s : _.value;
2633
+ return T.value >= s ? s : T.value;
2633
2634
  }), De = X(() => {
2634
2635
  let s, v;
2635
2636
  return typeof t.showNumbersCount < "u" && t.showNumbersCount < se.value ? (s = Math.max(
@@ -2644,53 +2645,53 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2644
2645
  if (!t.isServerMode) {
2645
2646
  if ((te = t.columns) == null || te.forEach((h) => {
2646
2647
  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" ? s = s.filter((P) => {
2647
- var U;
2648
- return (U = F(P, h.field)) == null ? void 0 : U.toString().toLowerCase().includes(h.value.toLowerCase());
2648
+ var V;
2649
+ return (V = F(P, h.field)) == null ? void 0 : V.toString().toLowerCase().includes(h.value.toLowerCase());
2649
2650
  }) : h.condition === "NotContains" ? s = s.filter((P) => {
2650
- var U;
2651
- return !((U = F(P, h.field)) != null && U.toString().toLowerCase().includes(h.value.toLowerCase()));
2651
+ var V;
2652
+ return !((V = F(P, h.field)) != null && V.toString().toLowerCase().includes(h.value.toLowerCase()));
2652
2653
  }) : h.condition === "Equal" ? s = s.filter((P) => {
2653
- var U;
2654
- return ((U = F(P, h.field)) == null ? void 0 : U.toString().toLowerCase()) === h.value.toLowerCase();
2654
+ var V;
2655
+ return ((V = F(P, h.field)) == null ? void 0 : V.toString().toLowerCase()) === h.value.toLowerCase();
2655
2656
  }) : h.condition === "NotEqual" ? s = s.filter((P) => {
2656
- var U;
2657
- return ((U = F(P, h.field)) == null ? void 0 : U.toString().toLowerCase()) !== h.value.toLowerCase();
2657
+ var V;
2658
+ return ((V = F(P, h.field)) == null ? void 0 : V.toString().toLowerCase()) !== h.value.toLowerCase();
2658
2659
  }) : h.condition == "StartsWith" ? s = s.filter((P) => {
2659
- var U;
2660
- return ((U = F(P, h.field)) == null ? void 0 : U.toString().toLowerCase().indexOf(h.value.toLowerCase())) === 0;
2660
+ var V;
2661
+ return ((V = F(P, h.field)) == null ? void 0 : V.toString().toLowerCase().indexOf(h.value.toLowerCase())) === 0;
2661
2662
  }) : h.condition == "EndsWith" && (s = s.filter((P) => {
2662
- var U;
2663
- return ((U = F(P, h.field)) == null ? void 0 : U.toString().toLowerCase().substr(h.value.length * -1)) === h.value.toLowerCase();
2663
+ var V;
2664
+ return ((V = F(P, h.field)) == null ? void 0 : V.toString().toLowerCase().substr(h.value.length * -1)) === h.value.toLowerCase();
2664
2665
  }))) : h.type === "number" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) === parseFloat(h.value)) : h.condition === "NotEqual" ? s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) !== parseFloat(h.value)) : h.condition === "GreaterThan" ? s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) > parseFloat(h.value)) : h.condition === "GreaterThanOrEqual" ? s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) >= parseFloat(h.value)) : h.condition === "LessThan" ? s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) < parseFloat(h.value)) : h.condition === "LessThanOrEqual" && (s = s.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" ? s = s.filter((P) => F(P, h.field) && xe(F(P, h.field)) === h.value) : h.condition === "NotEqual" ? s = s.filter((P) => F(P, h.field) && xe(F(P, h.field)) !== h.value) : h.condition === "GreaterThan" ? s = s.filter((P) => F(P, h.field) && xe(F(P, h.field)) > h.value) : h.condition === "LessThan" && (s = s.filter((P) => F(P, h.field) && xe(F(P, h.field)) < h.value))) : h.type === "bool" && (s = s.filter((P) => F(P, h.field) === h.value)), h.condition === "IsNull" ? (s = s.filter((P) => F(P, h.field) == null || F(P, h.field) == ""), h.value = "") : h.condition === "IsNotNull" && (h.value = "", s = s.filter((P) => F(P, h.field))));
2665
2666
  }), A.value && (s != null && s.length)) {
2666
2667
  let h = [];
2667
- const P = (t.columns || []).filter((U) => U.search && !U.hide).map((U) => U.field);
2668
+ const P = (t.columns || []).filter((V) => V.search && !V.hide).map((V) => V.field);
2668
2669
  for (var v = 0; v < (s == null ? void 0 : s.length); v++)
2669
- for (var C = 0; C < P.length; C++)
2670
- if ((Q = F(s[v], P[C])) != null && Q.toString().toLowerCase().includes(A.value.toLowerCase())) {
2670
+ for (var x = 0; x < P.length; x++)
2671
+ if ((Q = F(s[v], P[x])) != null && Q.toString().toLowerCase().includes(A.value.toLowerCase())) {
2671
2672
  h.push(s[v]);
2672
2673
  break;
2673
2674
  }
2674
2675
  s = h;
2675
2676
  }
2676
- var D = new Intl.Collator(void 0, {
2677
+ var W = new Intl.Collator(void 0, {
2677
2678
  numeric: ((he = t.columns.find((h) => h.field == f.value)) == null ? void 0 : he.type) === "number",
2678
2679
  sensitivity: "base"
2679
2680
  });
2680
2681
  const qn = p.value === "desc" ? -1 : 1;
2681
2682
  s.sort((h, P) => {
2682
2683
  var At, Wt;
2683
- const U = (At = f.value) == null ? void 0 : At.split(".").reduce((ke, ut) => ke == null ? void 0 : ke[ut], h), jn = (Wt = f.value) == null ? void 0 : Wt.split(".").reduce((ke, ut) => ke == null ? void 0 : ke[ut], P);
2684
- return D.compare(U, jn) * qn;
2684
+ const V = (At = f.value) == null ? void 0 : At.split(".").reduce((ke, ut) => ke == null ? void 0 : ke[ut], h), jn = (Wt = f.value) == null ? void 0 : Wt.split(".").reduce((ke, ut) => ke == null ? void 0 : ke[ut], P);
2685
+ return W.compare(V, jn) * qn;
2685
2686
  });
2686
2687
  }
2687
2688
  return s;
2688
- }, de = B([]), ce = () => {
2689
+ }, de = D([]), ce = () => {
2689
2690
  let s = [], v = He();
2690
- t.isServerMode ? (_.value = t.totalRows || 0, s = v) : (_.value = (v == null ? void 0 : v.length) || 0, s = v.slice(ge.value - 1, Ie.value)), t.hasSubtable && s.forEach(function(C) {
2691
- C.isExpanded != null && (de.value.find((te) => te.id == C.id) || de.value.push({
2692
- id: C.id,
2693
- isExpanded: C.isExpanded
2691
+ t.isServerMode ? (T.value = t.totalRows || 0, s = v) : (T.value = (v == null ? void 0 : v.length) || 0, s = v.slice(ge.value - 1, Ie.value)), t.hasSubtable && s.forEach(function(x) {
2692
+ x.isExpanded != null && (de.value.find((te) => te.id == x.id) || de.value.push({
2693
+ id: x.id,
2694
+ isExpanded: x.isExpanded
2694
2695
  }));
2695
2696
  }), i.value = s || [];
2696
2697
  };
@@ -2727,19 +2728,19 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2727
2728
  const b = (s) => {
2728
2729
  let v = "asc";
2729
2730
  s == f.value && p.value === "asc" && (v = "desc");
2730
- let C = (a.value - 1) * r.value, D = r.value;
2731
- f.value = s, p.value = v, M(!1), ce(), t.isServerMode ? fe("sort") : oe("sortChange", { offset: C, limit: D, field: s, direction: v });
2732
- }, x = (s) => {
2731
+ let x = (a.value - 1) * r.value, W = r.value;
2732
+ f.value = s, p.value = v, M(!1), ce(), t.isServerMode ? fe("sort") : oe("sortChange", { offset: x, limit: W, field: s, direction: v });
2733
+ }, S = (s) => {
2733
2734
  $.value = s.length && i.value.length && s.length === i.value.length;
2734
2735
  const v = i.value.filter(
2735
- (C, D) => I.value.includes(J.value ? C[J.value] : D)
2736
+ (x, W) => I.value.includes(J.value ? x[J.value] : W)
2736
2737
  );
2737
2738
  oe("rowSelect", v);
2738
2739
  };
2739
- ne(() => I.value, x);
2740
+ ne(() => I.value, S);
2740
2741
  const M = (s) => {
2741
2742
  s ? I.value = i.value.map(
2742
- (v, C) => J.value ? v[J.value] : C
2743
+ (v, x) => J.value ? v[J.value] : x
2743
2744
  ) : I.value = [];
2744
2745
  }, N = () => {
2745
2746
  M(!1), t.isServerMode ? a.value === 1 ? fe("filter", !0) : a.value = 1 : (a.value = 1, ce(), oe("filterChange", t.columns));
@@ -2752,23 +2753,23 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2752
2753
  A.value = t.search, le();
2753
2754
  }
2754
2755
  );
2755
- const F = (s, v) => v == null ? void 0 : v.split(".").reduce((C, D) => C == null ? void 0 : C[D], s), xe = (s) => {
2756
+ const F = (s, v) => v == null ? void 0 : v.split(".").reduce((x, W) => x == null ? void 0 : x[W], s), xe = (s) => {
2756
2757
  try {
2757
2758
  if (!s)
2758
2759
  return "";
2759
- const v = new Date(s), C = v.getDate(), D = v.getMonth() + 1;
2760
- return v.getFullYear() + "-" + (D > 9 ? D : "0" + D) + "-" + (C > 9 ? C : "0" + C);
2760
+ const v = new Date(s), x = v.getDate(), W = v.getMonth() + 1;
2761
+ return v.getFullYear() + "-" + (W > 9 ? W : "0" + W) + "-" + (x > 9 ? x : "0" + x);
2761
2762
  } catch {
2762
2763
  }
2763
2764
  return "";
2764
- }, Ve = (s, v) => {
2765
+ }, Ue = (s, v) => {
2765
2766
  O.value++, O.value === 1 ? j.value = setTimeout(() => {
2766
- O.value = 0, t.selectRowOnClick && (Ue(v) ? $t(v) : Ot(v), x(I.value)), oe("rowClick", s);
2767
+ O.value = 0, t.selectRowOnClick && (Ve(v) ? $t(v) : Ot(v), S(I.value)), oe("rowClick", s);
2767
2768
  }, Y.value) : O.value === 2 && (clearTimeout(j.value), O.value = 0, oe("rowDBClick", s));
2768
2769
  }, fe = (s, v = !1) => {
2769
2770
  if (t.isServerMode) {
2770
2771
  On();
2771
- const C = {
2772
+ const x = {
2772
2773
  current_page: v ? 1 : a.value,
2773
2774
  pagesize: r.value,
2774
2775
  offset: (a.value - 1) * r.value,
@@ -2778,7 +2779,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2778
2779
  column_filters: t.columns,
2779
2780
  change_type: s
2780
2781
  };
2781
- oe("change", C);
2782
+ oe("change", x);
2782
2783
  }
2783
2784
  }, On = () => {
2784
2785
  for (let s = 0; s < t.columns.length; s++) {
@@ -2791,46 +2792,46 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2791
2792
  t.columns[s].value = "";
2792
2793
  A.value = "", r.value = u, f.value = d, p.value = E, t.isServerMode ? a.value === 1 ? fe("reset", !0) : a.value = 1 : (a.value = 1, ce());
2793
2794
  }, Rn = () => i.value.filter(
2794
- (v, C) => I.value.includes(J.value ? v[J.value] : C)
2795
+ (v, x) => I.value.includes(J.value ? v[J.value] : x)
2795
2796
  ), Nn = () => t.columns, An = () => {
2796
2797
  I.value = [];
2797
2798
  }, Ot = (s) => {
2798
- if (!Ue(s)) {
2799
- const v = i.value.find((C, D) => D === s);
2799
+ if (!Ve(s)) {
2800
+ const v = i.value.find((x, W) => W === s);
2800
2801
  I.value.push(
2801
2802
  J.value ? v[J.value] : s
2802
2803
  );
2803
2804
  }
2804
2805
  }, $t = (s) => {
2805
- if (Ue(s)) {
2806
- const v = i.value.find((C, D) => D === s);
2806
+ if (Ve(s)) {
2807
+ const v = i.value.find((x, W) => W === s);
2807
2808
  I.value = I.value.filter(
2808
- (C) => C !== (J.value ? v[J.value] : s)
2809
+ (x) => x !== (J.value ? v[J.value] : s)
2809
2810
  );
2810
2811
  }
2811
- }, Ue = (s) => {
2812
- const v = i.value.find((C, D) => D === s);
2812
+ }, Ve = (s) => {
2813
+ const v = i.value.find((x, W) => W === s);
2813
2814
  return v ? I.value.includes(
2814
2815
  J.value ? v[J.value] : s
2815
2816
  ) : !1;
2816
2817
  };
2817
2818
  let Se = 0;
2818
2819
  t.hasCheckbox && Se++, t.hasSubtable && Se++, t.hasRightPanel && Se++;
2819
- const Wn = B(0), Bn = setInterval(function() {
2820
+ const Wn = D(0), Bn = setInterval(function() {
2820
2821
  Wn.value++;
2821
- }, 2200), Ge = B(t.topmenusize), st = B(null), Dn = sl(st).height, Hn = (s) => {
2822
+ }, 2200), Ge = D(t.topmenusize), st = D(null), Dn = sl(st).height, Hn = (s) => {
2822
2823
  if (!s || !s.panes || !s.panes.length) return;
2823
2824
  const v = s.panes[0].size;
2824
- Ge.value = v, _e(() => {
2825
+ Ge.value = v, Te(() => {
2825
2826
  var te;
2826
- const C = (te = st.value) == null ? void 0 : te.$el, D = C ? C.offsetHeight : 0;
2827
- oe("currentTopMenuSize", D);
2827
+ const x = (te = st.value) == null ? void 0 : te.$el, W = x ? x.offsetHeight : 0;
2828
+ oe("currentTopMenuSize", W);
2828
2829
  });
2829
2830
  };
2830
2831
  return Ze(() => {
2831
2832
  clearInterval(Bn), window.removeEventListener("resize", ee);
2832
2833
  }), (s, v) => (m(), w("div", Wi, [
2833
- ie(K(Ut), {
2834
+ ie(K(Vt), {
2834
2835
  class: "default-theme",
2835
2836
  style: Z({ height: t.height })
2836
2837
  }, {
@@ -2841,14 +2842,14 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2841
2842
  s.enableleftmenu ? (m(), w("div", {
2842
2843
  key: 0,
2843
2844
  ref_key: "leftmenuel",
2844
- ref: W,
2845
+ ref: B,
2845
2846
  class: "left-menu-container bh-relative",
2846
2847
  style: Z({
2847
- width: S.value + "px",
2848
+ width: k.value + "px",
2848
2849
  transition: "width 0.3s ease",
2849
2850
  overflow: "hidden",
2850
- minWidth: (k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px",
2851
- maxWidth: (k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px"
2851
+ minWidth: (C.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px",
2852
+ maxWidth: (C.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px"
2852
2853
  })
2853
2854
  }, [
2854
2855
  ae(s.$slots, "tableleftmenu", {}, () => [
@@ -2865,13 +2866,13 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2865
2866
  viewBox: "0 0 8 12",
2866
2867
  fill: "none",
2867
2868
  xmlns: "http://www.w3.org/2000/svg",
2868
- style: Z({ transform: k.value ? "rotate(180deg)" : "none" })
2869
+ style: Z({ transform: C.value ? "rotate(180deg)" : "none" })
2869
2870
  }, ji, 4))
2870
2871
  ])
2871
2872
  ])
2872
2873
  ], 4)) : R("", !0),
2873
- L("div", Vi, [
2874
- s.enabletopmenu ? (m(), ue(K(Ut), {
2874
+ L("div", Ui, [
2875
+ s.enabletopmenu ? (m(), ue(K(Vt), {
2875
2876
  key: 0,
2876
2877
  class: "default-theme",
2877
2878
  horizontal: "horizontal",
@@ -2889,7 +2890,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2889
2890
  }, {
2890
2891
  default: Pe(() => [
2891
2892
  ae(s.$slots, "tabletopmenu", {}, () => [
2892
- Ui
2893
+ Vi
2893
2894
  ])
2894
2895
  ]),
2895
2896
  _: 3
@@ -2911,7 +2912,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2911
2912
  Qi
2912
2913
  ]),
2913
2914
  L("div", {
2914
- class: T(t.scrollbarstyle)
2915
+ class: _(t.scrollbarstyle)
2915
2916
  }, [
2916
2917
  ie(K(Ql), {
2917
2918
  style: Z({
@@ -2925,14 +2926,14 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2925
2926
  }, {
2926
2927
  default: Pe(() => [
2927
2928
  L("div", {
2928
- class: T(["bh-table-responsive", { "bh-min-h-[100px]": y.value }]),
2929
+ class: _(["bh-table-responsive", { "bh-min-h-[100px]": y.value }]),
2929
2930
  style: Z({ overflow: t.stickyHeader && "inherit" })
2930
2931
  }, [
2931
2932
  L("table", {
2932
- class: T([t.skin])
2933
+ class: _([t.skin])
2933
2934
  }, [
2934
2935
  L("thead", {
2935
- class: T({
2936
+ class: _({
2936
2937
  "bh-sticky bh-top-0 bh-z-10": t.stickyHeader
2937
2938
  })
2938
2939
  }, [
@@ -2951,23 +2952,23 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2951
2952
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
2952
2953
  ], 2),
2953
2954
  L("tbody", null, [
2954
- (m(!0), w(G, null, pe(i.value, (C, D) => {
2955
+ (m(!0), w(G, null, pe(i.value, (x, W) => {
2955
2956
  var te;
2956
2957
  return m(), w(G, {
2957
- key: C[J.value] ? C[J.value] : D
2958
+ key: x[J.value] ? x[J.value] : W
2958
2959
  }, [
2959
- _.value ? (m(), w("tr", {
2960
+ T.value ? (m(), w("tr", {
2960
2961
  key: 0,
2961
- class: T([
2962
- typeof t.rowClass == "function" ? s.rowClass(C) : t.rowClass,
2962
+ class: _([
2963
+ typeof t.rowClass == "function" ? s.rowClass(x) : t.rowClass,
2963
2964
  t.selectRowOnClick ? "bh-cursor-pointer" : ""
2964
2965
  ]),
2965
- onClick: ye((Q) => Ve(C, D), ["prevent"])
2966
+ onClick: ye((Q) => Ue(x, W), ["prevent"])
2966
2967
  }, [
2967
2968
  t.hasCheckbox ? (m(), w("td", {
2968
2969
  key: 0,
2969
2970
  style: Z({ width: t.checkboxColumnWidth + " !important", minWidth: t.checkboxColumnWidth + " !important" }),
2970
- class: T({
2971
+ class: _({
2971
2972
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2972
2973
  })
2973
2974
  }, [
@@ -2975,7 +2976,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2975
2976
  ve(L("input", {
2976
2977
  "onUpdate:modelValue": v[0] || (v[0] = (Q) => I.value = Q),
2977
2978
  type: "checkbox",
2978
- value: C[J.value] ? C[J.value] : D,
2979
+ value: x[J.value] ? x[J.value] : W,
2979
2980
  onClick: v[1] || (v[1] = ye(() => {
2980
2981
  }, ["stop"]))
2981
2982
  }, null, 8, Yi), [
@@ -2989,32 +2990,32 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2989
2990
  t.hasRightPanel ? (m(), w("td", {
2990
2991
  key: 1,
2991
2992
  style: Z({ width: t.rightPanelColumnWidth + " !important", minWidth: t.rightPanelColumnWidth + " !important", padding: "0px !important" }),
2992
- class: T({
2993
+ class: _({
2993
2994
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2994
2995
  })
2995
2996
  }, [
2996
2997
  ie(li, {
2997
- item: C,
2998
+ item: x,
2998
2999
  onRightPanelClick: v[2] || (v[2] = (Q) => oe("rowRightPanelClick", Q))
2999
3000
  }, null, 8, ["item"])
3000
3001
  ], 6)) : R("", !0),
3001
3002
  t.hasSubtable ? (m(), w("td", {
3002
3003
  key: 2,
3003
3004
  style: Z({ width: t.subtableColumnWidth + " !important", minWidth: t.subtableColumnWidth + " !important" }),
3004
- class: T({
3005
+ class: _({
3005
3006
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3006
3007
  })
3007
3008
  }, [
3008
3009
  ie(In, {
3009
- item: C,
3010
+ item: { ...x, _rowIndex: W },
3010
3011
  expandedrows: de.value
3011
3012
  }, null, 8, ["item", "expandedrows"])
3012
3013
  ], 6)) : R("", !0),
3013
3014
  (m(!0), w(G, null, pe(t.columns, (Q, he) => (m(), w(G, null, [
3014
3015
  Q.hide ? R("", !0) : (m(), w("td", {
3015
3016
  key: Q.field,
3016
- class: T([
3017
- typeof t.cellClass == "function" ? s.cellClass(C) : t.cellClass,
3017
+ class: _([
3018
+ typeof t.cellClass == "function" ? s.cellClass(x) : t.cellClass,
3018
3019
  he === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3019
3020
  t.hasCheckbox && he === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3020
3021
  Q.cellClass ? Q.cellClass : ""
@@ -3022,23 +3023,23 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3022
3023
  }, [
3023
3024
  K(o)[Q.field] ? ae(s.$slots, Q.field, {
3024
3025
  key: 0,
3025
- value: C
3026
+ value: x
3026
3027
  }) : Q.cellRenderer ? (m(), w("div", {
3027
3028
  key: 1,
3028
- innerHTML: Q.cellRenderer(C)
3029
+ innerHTML: Q.cellRenderer(x)
3029
3030
  }, null, 8, Ji)) : (m(), w(G, { key: 2 }, [
3030
- gt(q(F(C, Q.field)), 1)
3031
+ gt(q(F(x, Q.field)), 1)
3031
3032
  ], 64))
3032
3033
  ], 2))
3033
3034
  ], 64))), 256))
3034
3035
  ], 10, Ki)) : R("", !0),
3035
- (te = de.value.find((Q) => Q.id == C.id)) != null && te.isExpanded && t.hasSubtable ? (m(), w("tr", {
3036
+ (te = de.value.find((Q) => Q.id == (x._rowIndex !== void 0 ? x._rowIndex : x.id || W))) != null && te.isExpanded && t.hasSubtable ? (m(), w("tr", {
3036
3037
  key: 1,
3037
- class: T([
3038
- typeof t.rowClass == "function" ? s.rowClass(C) : t.rowClass,
3038
+ class: _([
3039
+ typeof t.rowClass == "function" ? s.rowClass(x) : t.rowClass,
3039
3040
  t.selectRowOnClick ? "bh-cursor-pointer" : ""
3040
3041
  ]),
3041
- onClick: ye((Q) => Ve(C, D), ["prevent"])
3042
+ onClick: ye((Q) => Ue(x, W), ["prevent"])
3042
3043
  }, [
3043
3044
  L("td", {
3044
3045
  colspan: t.columns.length + K(Se)
@@ -3048,8 +3049,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3048
3049
  ], 10, Zi)) : R("", !0)
3049
3050
  ], 64);
3050
3051
  }), 128)),
3051
- !_.value && y.value && s.skeletonloader ? (m(!0), w(G, { key: 0 }, pe(t.pageSize, (C) => (m(), w("tr", {
3052
- key: C,
3052
+ !T.value && y.value && s.skeletonloader ? (m(!0), w(G, { key: 0 }, pe(t.pageSize, (x) => (m(), w("tr", {
3053
+ key: x,
3053
3054
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3054
3055
  }, [
3055
3056
  L("td", {
@@ -3057,8 +3058,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3057
3058
  class: "!bh-p-0 !bh-border-transparent"
3058
3059
  }, lr, 8, tr)
3059
3060
  ]))), 128)) : R("", !0),
3060
- _.value ? (m(!0), w(G, { key: 1 }, pe(t.footerRows, (C, D) => (m(), w("tr", {
3061
- key: C[J.value] ? C[J.value] : D,
3061
+ T.value ? (m(!0), w(G, { key: 1 }, pe(t.footerRows, (x, W) => (m(), w("tr", {
3062
+ key: x[J.value] ? x[J.value] : W,
3062
3063
  class: "sticky-table-footer"
3063
3064
  }, [
3064
3065
  K(Se) > 0 ? (m(), w("td", {
@@ -3068,15 +3069,15 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3068
3069
  (m(!0), w(G, null, pe(t.columns, (te, Q) => (m(), w(G, null, [
3069
3070
  te.hide ? R("", !0) : (m(), w("td", {
3070
3071
  key: te.field,
3071
- class: T([
3072
- typeof t.cellClass == "function" ? s.cellClass(C) : t.cellClass,
3072
+ class: _([
3073
+ typeof t.cellClass == "function" ? s.cellClass(x) : t.cellClass,
3073
3074
  Q === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3074
3075
  t.hasCheckbox && Q === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3075
3076
  te.cellClass ? te.cellClass : ""
3076
3077
  ])
3077
3078
  }, [
3078
- C.cells.find((he) => he.field == te.field) ? (m(), w(G, { key: 0 }, [
3079
- gt(q(C.cells.find((he) => he.field == te.field).text), 1)
3079
+ x.cells.find((he) => he.field == te.field) ? (m(), w(G, { key: 0 }, [
3080
+ gt(q(x.cells.find((he) => he.field == te.field).text), 1)
3080
3081
  ], 64)) : R("", !0)
3081
3082
  ], 2))
3082
3083
  ], 64))), 256))
@@ -3084,7 +3085,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3084
3085
  ]),
3085
3086
  t.cloneHeaderInFooter ? (m(), w("tfoot", {
3086
3087
  key: 0,
3087
- class: T({
3088
+ class: _({
3088
3089
  "bh-sticky bh-bottom-0": t.stickyHeader
3089
3090
  })
3090
3091
  }, [
@@ -3112,7 +3113,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3112
3113
  ae(s.$slots, "loadercontent")
3113
3114
  ], 4)) : R("", !0)
3114
3115
  ], 6),
3115
- !_.value && !y.value ? (m(), w("div", {
3116
+ !T.value && !y.value ? (m(), w("div", {
3116
3117
  key: 0,
3117
3118
  class: "nodatacontent",
3118
3119
  style: Z({
@@ -3141,9 +3142,9 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3141
3142
  ]),
3142
3143
  _: 3
3143
3144
  }, 8, ["style"]),
3144
- t.pagination && _.value ? (m(), w("div", {
3145
+ t.pagination && T.value ? (m(), w("div", {
3145
3146
  key: 0,
3146
- class: T(["bh-pagination", {
3147
+ class: _(["bh-pagination", {
3147
3148
  "bh-pointer-events-none": y.value,
3148
3149
  "sticky-footer": t.stickyFooter
3149
3150
  }])
@@ -3152,7 +3153,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3152
3153
  s.enablefooterpagination ? ae(s.$slots, "footerpageinfo", {
3153
3154
  key: 0,
3154
3155
  paginationInfo: s.paginationInfo,
3155
- filterRowCount: _.value,
3156
+ filterRowCount: T.value,
3156
3157
  offset: ge.value,
3157
3158
  limit: Ie.value,
3158
3159
  showPageSize: s.showPageSize,
@@ -3164,19 +3165,19 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3164
3165
  L("div", rr, [
3165
3166
  L("span", ar, q(Be(
3166
3167
  t.paginationInfo,
3167
- _.value ? ge.value : 0,
3168
+ T.value ? ge.value : 0,
3168
3169
  Ie.value,
3169
- _.value
3170
+ T.value
3170
3171
  )), 1),
3171
3172
  t.showPageSize ? ve((m(), w("select", {
3172
3173
  key: 0,
3173
- "onUpdate:modelValue": v[3] || (v[3] = (C) => r.value = C),
3174
+ "onUpdate:modelValue": v[3] || (v[3] = (x) => r.value = x),
3174
3175
  class: "bh-pagesize"
3175
3176
  }, [
3176
- (m(!0), w(G, null, pe(t.pageSizeOptions, (C) => (m(), w("option", {
3177
- value: C,
3178
- key: C
3179
- }, q(C), 9, sr))), 128))
3177
+ (m(!0), w(G, null, pe(t.pageSizeOptions, (x) => (m(), w("option", {
3178
+ value: x,
3179
+ key: x
3180
+ }, q(x), 9, sr))), 128))
3180
3181
  ], 512)), [
3181
3182
  [cn, r.value]
3182
3183
  ]) : R("", !0)
@@ -3195,8 +3196,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3195
3196
  t.showFirstPage ? (m(), w("button", {
3196
3197
  key: 0,
3197
3198
  type: "button",
3198
- class: T(["bh-page-item first-page", { disabled: a.value <= 1 }]),
3199
- onClick: v[4] || (v[4] = (C) => a.value = 1)
3199
+ class: _(["bh-page-item first-page", { disabled: a.value <= 1 }]),
3200
+ onClick: v[4] || (v[4] = (x) => a.value = 1)
3200
3201
  }, [
3201
3202
  t.firstArrow ? (m(), w("span", {
3202
3203
  key: 0,
@@ -3205,7 +3206,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3205
3206
  ], 2)) : R("", !0),
3206
3207
  L("button", {
3207
3208
  type: "button",
3208
- class: T(["bh-page-item previous-page", { disabled: a.value <= 1 }]),
3209
+ class: _(["bh-page-item previous-page", { disabled: a.value <= 1 }]),
3209
3210
  onClick: je
3210
3211
  }, [
3211
3212
  t.previousArrow ? (m(), w("span", {
@@ -3213,18 +3214,18 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3213
3214
  innerHTML: t.previousArrow
3214
3215
  }, null, 8, pr)) : (m(), w("svg", vr, gr))
3215
3216
  ], 2),
3216
- t.showNumbers ? (m(!0), w(G, { key: 1 }, pe(De.value, (C) => (m(), w("button", {
3217
- key: C,
3217
+ t.showNumbers ? (m(!0), w(G, { key: 1 }, pe(De.value, (x) => (m(), w("button", {
3218
+ key: x,
3218
3219
  type: "button",
3219
- class: T(["bh-page-item", {
3220
- disabled: a.value === C,
3221
- "bh-active": C === a.value
3220
+ class: _(["bh-page-item", {
3221
+ disabled: a.value === x,
3222
+ "bh-active": x === a.value
3222
3223
  }]),
3223
- onClick: (D) => Ee(C)
3224
- }, q(C), 11, br))), 128)) : R("", !0),
3224
+ onClick: (W) => Ee(x)
3225
+ }, q(x), 11, br))), 128)) : R("", !0),
3225
3226
  L("button", {
3226
3227
  type: "button",
3227
- class: T(["bh-page-item next-page", { disabled: a.value >= se.value }]),
3228
+ class: _(["bh-page-item next-page", { disabled: a.value >= se.value }]),
3228
3229
  onClick: re
3229
3230
  }, [
3230
3231
  t.nextArrow ? (m(), w("span", {
@@ -3235,8 +3236,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3235
3236
  t.showLastPage ? (m(), w("button", {
3236
3237
  key: 2,
3237
3238
  type: "button",
3238
- class: T(["bh-page-item last-page", { disabled: a.value >= se.value }]),
3239
- onClick: v[5] || (v[5] = (C) => a.value = se.value)
3239
+ class: _(["bh-page-item last-page", { disabled: a.value >= se.value }]),
3240
+ onClick: v[5] || (v[5] = (x) => a.value = se.value)
3240
3241
  }, [
3241
3242
  t.lastArrow ? (m(), w("span", {
3242
3243
  key: 0,