@dolusoft/vue3-datatable 1.7.31 → 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,4 +1,4 @@
1
- import { onMounted as Le, nextTick as _e, getCurrentScope as Un, onScopeDispose as Vn, 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
3
  return Un() ? (Vn(e), !0) : !1;
4
4
  }
@@ -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, U = l - k;
175
- return p ? Ol(U, i - W) : U;
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", U = (k[W] - a[W]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
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
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
  {
@@ -290,9 +290,9 @@ function ql(e, { expose: l }) {
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
  ]),
@@ -301,7 +301,7 @@ function ql(e, { expose: l }) {
301
301
  ref: (U, ee) => {
302
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)
@@ -354,10 +354,10 @@ function Gl(e, { expose: l, emit: n }) {
354
354
  Le(() => {
355
355
  var O;
356
356
  const Y = Array.from((O = 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
363
  const u = Ut(a, { wait: o.throttleWait, type: o.throttleType, callback: E }), f = Ut(r, { wait: o.throttleWait, type: o.throttleType, callback: E });
@@ -365,7 +365,7 @@ function Gl(e, { expose: l, emit: n }) {
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,24 +403,24 @@ 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))
@@ -469,33 +469,33 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Vl), {
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({}, Vl), {
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,11 +520,11 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Vl), {
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
530
  prevPanesSize: U(g),
@@ -532,7 +532,7 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Vl), {
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
537
  const xe = le.max < 100 && M >= le.max + z.prevPanesSize, Ue = F.max < 100 && M <= 100 - (F.max + ee(g + 1));
538
538
  if (xe || Ue) {
@@ -540,32 +540,32 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Vl), {
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 = U(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
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({}, Vl), {
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({}, Vl), {
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({}, Vl), {
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({}, Vl), {
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({}, Vl), {
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({}, Vl), {
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,18 +1340,18 @@ 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 U = 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":
@@ -1361,28 +1361,28 @@ function _o(e, l, n, o) {
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
1368
  if (U) {
1369
- d = W, E.length || (a.length ? Y() : H());
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, U) => {
1399
- O(k, W, U);
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]);
@@ -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];
@@ -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 = Vo(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,29 +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
+ const i = (r) => r._rowIndex !== void 0 ? r._rowIndex : r.id || 0, a = D(-1);
1961
1962
  return ne(() => n.value, () => {
1962
- l.expandall && new Set(n.value.map((a) => a.isExpanded)).size > 1 && (i.value = -1, o.value = !0);
1963
- }, { deep: !0 }), (a, r) => {
1964
- var u, f;
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;
1965
1971
  return m(), w("button", {
1966
1972
  class: "expandbtn",
1967
- onClick: r[0] || (r[0] = (d) => t(a.item.id))
1973
+ onClick: u[0] || (u[0] = (d) => t(i(r.item)))
1968
1974
  }, [
1969
- (((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 }, [
1970
1976
  l.expandall ? (m(), w(G, { key: 0 }, [
1971
- i.value ? (m(), ue(K(be), {
1977
+ a.value ? (m(), ue(K(be), {
1972
1978
  key: 0,
1973
1979
  icon: "fluent:chevron-down-up-16-filled"
1974
1980
  })) : (m(), ue(K(be), {
@@ -1981,10 +1987,10 @@ const Jo = {
1981
1987
  }))
1982
1988
  ], 64)) : (m(), w(G, { key: 1 }, [
1983
1989
  l.expandall ? (m(), w(G, { key: 0 }, [
1984
- i.value == -1 ? (m(), ue(K(be), {
1990
+ a.value == -1 ? (m(), ue(K(be), {
1985
1991
  key: 0,
1986
1992
  icon: "ion:chevron-expand"
1987
- })) : i.value == 0 ? (m(), ue(K(be), {
1993
+ })) : a.value == 0 ? (m(), ue(K(be), {
1988
1994
  key: 1,
1989
1995
  icon: "mdi:chevron-down"
1990
1996
  })) : (m(), ue(K(be), {
@@ -2004,7 +2010,7 @@ const Jo = {
2004
2010
  for (const [o, t] of l)
2005
2011
  n[o] = t;
2006
2012
  return n;
2007
- }, In = /* @__PURE__ */ We(ei, [["__scopeId", "data-v-96f3f821"]]), ti = {
2013
+ }, In = /* @__PURE__ */ We(ei, [["__scopeId", "data-v-d6b9b4eb"]]), ti = {
2008
2014
  name: "ButtonRightPanel"
2009
2015
  }, ni = /* @__PURE__ */ we({
2010
2016
  ...ti,
@@ -2049,101 +2055,101 @@ const Jo = {
2049
2055
  }, [
2050
2056
  L("button", {
2051
2057
  type: "button",
2052
- class: T({ active: n.column.condition === "" }),
2058
+ class: _({ active: n.column.condition === "" }),
2053
2059
  onClick: r[0] || (r[0] = (u) => i(""))
2054
2060
  }, q((n.columnFilterLang && n.columnFilterLang.NoFilter) ?? "No filter"), 3),
2055
2061
  n.column.type === "string" ? (m(), w(G, { key: 0 }, [
2056
2062
  L("button", {
2057
2063
  type: "button",
2058
- class: T({ active: n.column.condition === "Contains" }),
2064
+ class: _({ active: n.column.condition === "Contains" }),
2059
2065
  onClick: r[1] || (r[1] = (u) => i("Contains"))
2060
2066
  }, q((n.columnFilterLang && n.columnFilterLang.Contains) ?? "Contains"), 3),
2061
2067
  L("button", {
2062
2068
  type: "button",
2063
- class: T({ active: n.column.condition === "NotContains" }),
2069
+ class: _({ active: n.column.condition === "NotContains" }),
2064
2070
  onClick: r[2] || (r[2] = (u) => i("NotContains"))
2065
2071
  }, q((n.columnFilterLang && n.columnFilterLang.NotContains) ?? "NotContains"), 3),
2066
2072
  L("button", {
2067
2073
  type: "button",
2068
- class: T({ active: n.column.condition === "Equal" }),
2074
+ class: _({ active: n.column.condition === "Equal" }),
2069
2075
  onClick: r[3] || (r[3] = (u) => i("Equal"))
2070
2076
  }, q((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2071
2077
  L("button", {
2072
2078
  type: "button",
2073
- class: T({ active: n.column.condition === "NotEqual" }),
2079
+ class: _({ active: n.column.condition === "NotEqual" }),
2074
2080
  onClick: r[4] || (r[4] = (u) => i("NotEqual"))
2075
2081
  }, q((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2076
2082
  L("button", {
2077
2083
  type: "button",
2078
- class: T({ active: n.column.condition === "StartsWith" }),
2084
+ class: _({ active: n.column.condition === "StartsWith" }),
2079
2085
  onClick: r[5] || (r[5] = (u) => i("StartsWith"))
2080
2086
  }, q((n.columnFilterLang && n.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
2081
2087
  L("button", {
2082
2088
  type: "button",
2083
- class: T({ active: n.column.condition === "EndsWith" }),
2089
+ class: _({ active: n.column.condition === "EndsWith" }),
2084
2090
  onClick: r[6] || (r[6] = (u) => i("EndsWith"))
2085
2091
  }, q((n.columnFilterLang && n.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
2086
2092
  ], 64)) : n.column.type === "number" ? (m(), w(G, { key: 1 }, [
2087
2093
  L("button", {
2088
2094
  type: "button",
2089
- class: T({ active: n.column.condition === "Equal" }),
2095
+ class: _({ active: n.column.condition === "Equal" }),
2090
2096
  onClick: r[7] || (r[7] = (u) => i("Equal"))
2091
2097
  }, q((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2092
2098
  L("button", {
2093
2099
  type: "button",
2094
- class: T({ active: n.column.condition === "NotEqual" }),
2100
+ class: _({ active: n.column.condition === "NotEqual" }),
2095
2101
  onClick: r[8] || (r[8] = (u) => i("NotEqual"))
2096
2102
  }, q((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual"), 3),
2097
2103
  L("button", {
2098
2104
  type: "button",
2099
- class: T({ active: n.column.condition === "GreaterThan" }),
2105
+ class: _({ active: n.column.condition === "GreaterThan" }),
2100
2106
  onClick: r[9] || (r[9] = (u) => i("GreaterThan"))
2101
2107
  }, q((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2102
2108
  L("button", {
2103
2109
  type: "button",
2104
- class: T({ active: n.column.condition === "GreaterThanOrEqual" }),
2110
+ class: _({ active: n.column.condition === "GreaterThanOrEqual" }),
2105
2111
  onClick: r[10] || (r[10] = (u) => i("GreaterThanOrEqual"))
2106
2112
  }, q((n.columnFilterLang && n.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual"), 3),
2107
2113
  L("button", {
2108
2114
  type: "button",
2109
- class: T({ active: n.column.condition === "LessThan" }),
2115
+ class: _({ active: n.column.condition === "LessThan" }),
2110
2116
  onClick: r[11] || (r[11] = (u) => i("LessThan"))
2111
2117
  }, q((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan"), 3),
2112
2118
  L("button", {
2113
2119
  type: "button",
2114
- class: T({ active: n.column.condition === "LessThanOrEqual" }),
2120
+ class: _({ active: n.column.condition === "LessThanOrEqual" }),
2115
2121
  onClick: r[12] || (r[12] = (u) => i("LessThanOrEqual"))
2116
2122
  }, q((n.columnFilterLang && n.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual"), 3)
2117
2123
  ], 64)) : n.column.type === "date" ? (m(), w(G, { key: 2 }, [
2118
2124
  L("button", {
2119
2125
  type: "button",
2120
- class: T({ active: n.column.condition === "Equal" }),
2126
+ class: _({ active: n.column.condition === "Equal" }),
2121
2127
  onClick: r[13] || (r[13] = (u) => i("Equal"))
2122
2128
  }, q((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal"), 3),
2123
2129
  L("button", {
2124
2130
  type: "button",
2125
- class: T({ active: n.column.condition === "NotEqual" }),
2131
+ class: _({ active: n.column.condition === "NotEqual" }),
2126
2132
  onClick: r[14] || (r[14] = (u) => i("NotEqual"))
2127
2133
  }, q((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "Not equal"), 3),
2128
2134
  L("button", {
2129
2135
  type: "button",
2130
- class: T({ active: n.column.condition === "GreaterThan" }),
2136
+ class: _({ active: n.column.condition === "GreaterThan" }),
2131
2137
  onClick: r[15] || (r[15] = (u) => i("GreaterThan"))
2132
2138
  }, q((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan"), 3),
2133
2139
  L("button", {
2134
2140
  type: "button",
2135
- class: T({ active: n.column.condition === "LessThan" }),
2141
+ class: _({ active: n.column.condition === "LessThan" }),
2136
2142
  onClick: r[16] || (r[16] = (u) => i("LessThan"))
2137
2143
  }, q((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan"), 3)
2138
2144
  ], 64)) : R("", !0),
2139
2145
  L("button", {
2140
2146
  type: "button",
2141
- class: T({ active: n.column.condition === "IsNull" }),
2147
+ class: _({ active: n.column.condition === "IsNull" }),
2142
2148
  onClick: r[17] || (r[17] = (u) => i("IsNull"))
2143
2149
  }, q((n.columnFilterLang && n.columnFilterLang.IsNull) ?? "IsNull"), 3),
2144
2150
  L("button", {
2145
2151
  type: "button",
2146
- class: T({ active: n.column.condition === "IsNotNull" }),
2152
+ class: _({ active: n.column.condition === "IsNotNull" }),
2147
2153
  onClick: r[18] || (r[18] = (u) => i("IsNotNull"))
2148
2154
  }, q((n.columnFilterLang && n.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
2149
2155
  ])
@@ -2215,7 +2221,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2215
2221
  }, Mi = {
2216
2222
  key: 0,
2217
2223
  class: "bh-filter bh-relative"
2218
- }, 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 = [
2219
2225
  Fi,
2220
2226
  Oi,
2221
2227
  $i
@@ -2240,14 +2246,14 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2240
2246
  "toggleFilterMenu"
2241
2247
  ],
2242
2248
  setup(e, { emit: l }) {
2243
- const n = B(null), o = e, t = l;
2249
+ const n = D(null), o = e, t = l;
2244
2250
  return ne(() => o.checkAll, () => {
2245
2251
  n.value && (n.value.indeterminate = o.checkAll !== 0 ? !o.checkAll : !1, n.value.checked = o.checkAll);
2246
2252
  }), (a, r) => (m(), w("tr", Ci, [
2247
2253
  o.all.hasCheckbox ? (m(), w("th", {
2248
2254
  key: "chkall",
2249
2255
  style: Z({ width: o.all.checkboxColumnWidth + " !important", minWidth: o.all.checkboxColumnWidth + " !important" }),
2250
- class: T({
2256
+ class: _({
2251
2257
  "bh-sticky bh-bg-blue-light bh-z-[1]": o.all.stickyHeader || o.all.stickyFirstColumn,
2252
2258
  "bh-top-0": o.all.stickyHeader,
2253
2259
  "bh-left-0": o.all.stickyFirstColumn
@@ -2272,7 +2278,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2272
2278
  o.all.hasRightPanel ? (m(), w("th", {
2273
2279
  key: 1,
2274
2280
  style: Z({ width: o.all.rightPanelColumnWidth + " !important", minWidth: o.all.rightPanelColumnWidth + " !important" }),
2275
- class: T({
2281
+ class: _({
2276
2282
  "bh-sticky bh-bg-blue-light bh-z-[1]": o.all.stickyHeader || o.all.stickyFirstColumn,
2277
2283
  "bh-top-0": o.all.stickyHeader,
2278
2284
  "bh-left-0": o.all.stickyFirstColumn
@@ -2291,7 +2297,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2291
2297
  (m(!0), w(G, null, pe(o.all.columns, (u, f) => (m(), w(G, null, [
2292
2298
  u.hide ? R("", !0) : (m(), w("th", {
2293
2299
  key: u.field,
2294
- class: T(["bh-select-none bh-z-[1]", [
2300
+ class: _(["bh-select-none bh-z-[1]", [
2295
2301
  o.all.sortable && u.sort ? "bh-cursor-pointer" : "",
2296
2302
  f === 0 && o.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2297
2303
  o.all.hasCheckbox && f === 0 && o.all.stickyFirstColumn ? "bh-left-[52px]" : ""
@@ -2303,26 +2309,26 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2303
2309
  })
2304
2310
  }, [
2305
2311
  L("div", {
2306
- class: T(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2312
+ class: _(["bh-flex bh-items-center", [u.headerClass ? u.headerClass : ""]]),
2307
2313
  onClick: (d) => o.all.sortable && u.sort && t("sortChange", u.field)
2308
2314
  }, [
2309
2315
  gt(q(u.title) + " ", 1),
2310
2316
  o.all.sortable && u.sort ? (m(), w("span", {
2311
2317
  key: 0,
2312
- 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]])
2313
2319
  }, [
2314
2320
  (m(), w("svg", Ei, [
2315
2321
  L("polygon", {
2316
2322
  points: "3.11,6.25 10.89,6.25 7,1.75 ",
2317
2323
  fill: "currentColor",
2318
- class: T(["bh-text-black/20", [
2324
+ class: _(["bh-text-black/20", [
2319
2325
  e.currentSortColumn === u.field && e.currentSortDirection === "asc" ? "!bh-text-primary" : ""
2320
2326
  ]])
2321
2327
  }, null, 2),
2322
2328
  L("polygon", {
2323
2329
  points: "7,12.25 10.89,7.75 3.11,7.75 ",
2324
2330
  fill: "currentColor",
2325
- class: T(["bh-text-black/20", [
2331
+ class: _(["bh-text-black/20", [
2326
2332
  e.currentSortColumn === u.field && e.currentSortDirection === "desc" ? "!bh-text-primary" : ""
2327
2333
  ]])
2328
2334
  }, null, 2)
@@ -2351,7 +2357,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2351
2357
  type: "number",
2352
2358
  class: "bh-form-control",
2353
2359
  onKeyup: r[2] || (r[2] = (d) => t("filterChange"))
2354
- }, null, 40, Ti)), [
2360
+ }, null, 40, _i)), [
2355
2361
  [
2356
2362
  ct,
2357
2363
  u.value,
@@ -2367,7 +2373,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2367
2373
  type: "date",
2368
2374
  class: "bh-form-control",
2369
2375
  onChange: r[3] || (r[3] = (d) => t("filterChange"))
2370
- }, null, 40, _i)), [
2376
+ }, null, 40, Ti)), [
2371
2377
  [ct, u.value]
2372
2378
  ]) : u.type === "bool" ? ve((m(), w("select", {
2373
2379
  key: 3,
@@ -2558,29 +2564,29 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2558
2564
  const v = ((Rt = s.type) == null ? void 0 : Rt.toLowerCase()) || "string";
2559
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";
2560
2566
  }
2561
- const i = B([]), a = B(t.page), r = B(
2567
+ const i = D([]), a = D(t.page), r = D(
2562
2568
  t.pagination ? t.pageSize : (Nt = t.rows) == null ? void 0 : Nt.length
2563
- ), 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);
2564
2570
  JSON.parse(JSON.stringify(t.columns));
2565
- const H = B(null), j = B(null);
2566
- let O = B(0);
2567
- const Y = B(230), S = B(t.leftmenuDefaultWidth), k = B(!1), W = B(null), U = () => {
2568
- if (W.value) {
2569
- const s = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth;
2570
- W.value.style.cssText = `
2571
- 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;
2572
2578
  min-width: ${s}px !important;
2573
2579
  max-width: ${s}px !important;
2574
2580
  `;
2575
2581
  }
2576
2582
  }, ee = () => {
2577
- k.value ? S.value = t.leftmenuMinWidth : S.value = t.leftmenuDefaultWidth, U();
2583
+ C.value ? k.value = t.leftmenuMinWidth : k.value = t.leftmenuDefaultWidth, U();
2578
2584
  }, at = () => {
2579
- k.value = !k.value, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U(), oe("currentLeftMenuSize", S.value);
2585
+ C.value = !C.value, k.value = C.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U(), oe("currentLeftMenuSize", k.value);
2580
2586
  };
2581
2587
  Le(() => {
2582
- ce(), _e(() => {
2583
- 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, U(), 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);
2584
2590
  });
2585
2591
  });
2586
2592
  const oe = n;
@@ -2611,20 +2617,20 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2611
2617
  },
2612
2618
  // Expose function to set the left menu state
2613
2619
  setLeftMenuState(s) {
2614
- k.value = s, S.value = s ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U();
2620
+ C.value = s, k.value = s ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U();
2615
2621
  }
2616
2622
  }), ne(() => t.initialLeftMenuState, (s) => {
2617
- s !== void 0 && (k.value = s, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U());
2623
+ s !== void 0 && (C.value = s, k.value = C.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U());
2618
2624
  }, { immediate: !0 });
2619
- 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(() => {
2620
2626
  const s = t.columns.find((v) => v.isUnique);
2621
2627
  return (s == null ? void 0 : s.field) || null;
2622
2628
  }), se = X(() => {
2623
- const s = r.value < 1 ? 1 : Math.ceil(_.value / r.value);
2629
+ const s = r.value < 1 ? 1 : Math.ceil(T.value / r.value);
2624
2630
  return Math.max(s || 0, 1);
2625
2631
  }), ge = X(() => (a.value - 1) * r.value + 1), Ie = X(() => {
2626
2632
  const s = a.value * r.value;
2627
- return _.value >= s ? s : _.value;
2633
+ return T.value >= s ? s : T.value;
2628
2634
  }), De = X(() => {
2629
2635
  let s, v;
2630
2636
  return typeof t.showNumbersCount < "u" && t.showNumbersCount < se.value ? (s = Math.max(
@@ -2661,14 +2667,14 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2661
2667
  let h = [];
2662
2668
  const P = (t.columns || []).filter((V) => V.search && !V.hide).map((V) => V.field);
2663
2669
  for (var v = 0; v < (s == null ? void 0 : s.length); v++)
2664
- for (var C = 0; C < P.length; C++)
2665
- 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())) {
2666
2672
  h.push(s[v]);
2667
2673
  break;
2668
2674
  }
2669
2675
  s = h;
2670
2676
  }
2671
- var D = new Intl.Collator(void 0, {
2677
+ var W = new Intl.Collator(void 0, {
2672
2678
  numeric: ((he = t.columns.find((h) => h.field == f.value)) == null ? void 0 : he.type) === "number",
2673
2679
  sensitivity: "base"
2674
2680
  });
@@ -2676,16 +2682,16 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2676
2682
  s.sort((h, P) => {
2677
2683
  var At, Wt;
2678
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);
2679
- return D.compare(V, jn) * qn;
2685
+ return W.compare(V, jn) * qn;
2680
2686
  });
2681
2687
  }
2682
2688
  return s;
2683
- }, de = B([]), ce = () => {
2689
+ }, de = D([]), ce = () => {
2684
2690
  let s = [], v = He();
2685
- 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) {
2686
- C.isExpanded != null && (de.value.find((te) => te.id == C.id) || de.value.push({
2687
- id: C.id,
2688
- 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
2689
2695
  }));
2690
2696
  }), i.value = s || [];
2691
2697
  };
@@ -2722,19 +2728,19 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2722
2728
  const b = (s) => {
2723
2729
  let v = "asc";
2724
2730
  s == f.value && p.value === "asc" && (v = "desc");
2725
- let C = (a.value - 1) * r.value, D = r.value;
2726
- f.value = s, p.value = v, M(!1), ce(), t.isServerMode ? fe("sort") : oe("sortChange", { offset: C, limit: D, field: s, direction: v });
2727
- }, 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) => {
2728
2734
  $.value = s.length && i.value.length && s.length === i.value.length;
2729
2735
  const v = i.value.filter(
2730
- (C, D) => I.value.includes(J.value ? C[J.value] : D)
2736
+ (x, W) => I.value.includes(J.value ? x[J.value] : W)
2731
2737
  );
2732
2738
  oe("rowSelect", v);
2733
2739
  };
2734
- ne(() => I.value, x);
2740
+ ne(() => I.value, S);
2735
2741
  const M = (s) => {
2736
2742
  s ? I.value = i.value.map(
2737
- (v, C) => J.value ? v[J.value] : C
2743
+ (v, x) => J.value ? v[J.value] : x
2738
2744
  ) : I.value = [];
2739
2745
  }, N = () => {
2740
2746
  M(!1), t.isServerMode ? a.value === 1 ? fe("filter", !0) : a.value = 1 : (a.value = 1, ce(), oe("filterChange", t.columns));
@@ -2747,23 +2753,23 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2747
2753
  A.value = t.search, le();
2748
2754
  }
2749
2755
  );
2750
- 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) => {
2751
2757
  try {
2752
2758
  if (!s)
2753
2759
  return "";
2754
- const v = new Date(s), C = v.getDate(), D = v.getMonth() + 1;
2755
- 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);
2756
2762
  } catch {
2757
2763
  }
2758
2764
  return "";
2759
2765
  }, Ue = (s, v) => {
2760
2766
  O.value++, O.value === 1 ? j.value = setTimeout(() => {
2761
- O.value = 0, t.selectRowOnClick && (Ve(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);
2762
2768
  }, Y.value) : O.value === 2 && (clearTimeout(j.value), O.value = 0, oe("rowDBClick", s));
2763
2769
  }, fe = (s, v = !1) => {
2764
2770
  if (t.isServerMode) {
2765
2771
  On();
2766
- const C = {
2772
+ const x = {
2767
2773
  current_page: v ? 1 : a.value,
2768
2774
  pagesize: r.value,
2769
2775
  offset: (a.value - 1) * r.value,
@@ -2773,7 +2779,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2773
2779
  column_filters: t.columns,
2774
2780
  change_type: s
2775
2781
  };
2776
- oe("change", C);
2782
+ oe("change", x);
2777
2783
  }
2778
2784
  }, On = () => {
2779
2785
  for (let s = 0; s < t.columns.length; s++) {
@@ -2786,40 +2792,40 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2786
2792
  t.columns[s].value = "";
2787
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());
2788
2794
  }, Rn = () => i.value.filter(
2789
- (v, C) => I.value.includes(J.value ? v[J.value] : C)
2795
+ (v, x) => I.value.includes(J.value ? v[J.value] : x)
2790
2796
  ), Nn = () => t.columns, An = () => {
2791
2797
  I.value = [];
2792
2798
  }, Ot = (s) => {
2793
2799
  if (!Ve(s)) {
2794
- const v = i.value.find((C, D) => D === s);
2800
+ const v = i.value.find((x, W) => W === s);
2795
2801
  I.value.push(
2796
2802
  J.value ? v[J.value] : s
2797
2803
  );
2798
2804
  }
2799
2805
  }, $t = (s) => {
2800
2806
  if (Ve(s)) {
2801
- const v = i.value.find((C, D) => D === s);
2807
+ const v = i.value.find((x, W) => W === s);
2802
2808
  I.value = I.value.filter(
2803
- (C) => C !== (J.value ? v[J.value] : s)
2809
+ (x) => x !== (J.value ? v[J.value] : s)
2804
2810
  );
2805
2811
  }
2806
2812
  }, Ve = (s) => {
2807
- const v = i.value.find((C, D) => D === s);
2813
+ const v = i.value.find((x, W) => W === s);
2808
2814
  return v ? I.value.includes(
2809
2815
  J.value ? v[J.value] : s
2810
2816
  ) : !1;
2811
2817
  };
2812
2818
  let Se = 0;
2813
2819
  t.hasCheckbox && Se++, t.hasSubtable && Se++, t.hasRightPanel && Se++;
2814
- const Wn = B(0), Bn = setInterval(function() {
2820
+ const Wn = D(0), Bn = setInterval(function() {
2815
2821
  Wn.value++;
2816
- }, 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) => {
2817
2823
  if (!s || !s.panes || !s.panes.length) return;
2818
2824
  const v = s.panes[0].size;
2819
- Ge.value = v, _e(() => {
2825
+ Ge.value = v, Te(() => {
2820
2826
  var te;
2821
- const C = (te = st.value) == null ? void 0 : te.$el, D = C ? C.offsetHeight : 0;
2822
- oe("currentTopMenuSize", D);
2827
+ const x = (te = st.value) == null ? void 0 : te.$el, W = x ? x.offsetHeight : 0;
2828
+ oe("currentTopMenuSize", W);
2823
2829
  });
2824
2830
  };
2825
2831
  return Ze(() => {
@@ -2836,14 +2842,14 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2836
2842
  s.enableleftmenu ? (m(), w("div", {
2837
2843
  key: 0,
2838
2844
  ref_key: "leftmenuel",
2839
- ref: W,
2845
+ ref: B,
2840
2846
  class: "left-menu-container bh-relative",
2841
2847
  style: Z({
2842
- width: S.value + "px",
2848
+ width: k.value + "px",
2843
2849
  transition: "width 0.3s ease",
2844
2850
  overflow: "hidden",
2845
- minWidth: (k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth) + "px",
2846
- 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"
2847
2853
  })
2848
2854
  }, [
2849
2855
  ae(s.$slots, "tableleftmenu", {}, () => [
@@ -2860,7 +2866,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2860
2866
  viewBox: "0 0 8 12",
2861
2867
  fill: "none",
2862
2868
  xmlns: "http://www.w3.org/2000/svg",
2863
- style: Z({ transform: k.value ? "rotate(180deg)" : "none" })
2869
+ style: Z({ transform: C.value ? "rotate(180deg)" : "none" })
2864
2870
  }, ji, 4))
2865
2871
  ])
2866
2872
  ])
@@ -2906,7 +2912,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2906
2912
  Qi
2907
2913
  ]),
2908
2914
  L("div", {
2909
- class: T(t.scrollbarstyle)
2915
+ class: _(t.scrollbarstyle)
2910
2916
  }, [
2911
2917
  ie(K(Ql), {
2912
2918
  style: Z({
@@ -2920,14 +2926,14 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2920
2926
  }, {
2921
2927
  default: Pe(() => [
2922
2928
  L("div", {
2923
- class: T(["bh-table-responsive", { "bh-min-h-[100px]": y.value }]),
2929
+ class: _(["bh-table-responsive", { "bh-min-h-[100px]": y.value }]),
2924
2930
  style: Z({ overflow: t.stickyHeader && "inherit" })
2925
2931
  }, [
2926
2932
  L("table", {
2927
- class: T([t.skin])
2933
+ class: _([t.skin])
2928
2934
  }, [
2929
2935
  L("thead", {
2930
- class: T({
2936
+ class: _({
2931
2937
  "bh-sticky bh-top-0 bh-z-10": t.stickyHeader
2932
2938
  })
2933
2939
  }, [
@@ -2946,23 +2952,23 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2946
2952
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
2947
2953
  ], 2),
2948
2954
  L("tbody", null, [
2949
- (m(!0), w(G, null, pe(i.value, (C, D) => {
2955
+ (m(!0), w(G, null, pe(i.value, (x, W) => {
2950
2956
  var te;
2951
2957
  return m(), w(G, {
2952
- key: C[J.value] ? C[J.value] : D
2958
+ key: x[J.value] ? x[J.value] : W
2953
2959
  }, [
2954
- _.value ? (m(), w("tr", {
2960
+ T.value ? (m(), w("tr", {
2955
2961
  key: 0,
2956
- class: T([
2957
- typeof t.rowClass == "function" ? s.rowClass(C) : t.rowClass,
2962
+ class: _([
2963
+ typeof t.rowClass == "function" ? s.rowClass(x) : t.rowClass,
2958
2964
  t.selectRowOnClick ? "bh-cursor-pointer" : ""
2959
2965
  ]),
2960
- onClick: ye((Q) => Ue(C, D), ["prevent"])
2966
+ onClick: ye((Q) => Ue(x, W), ["prevent"])
2961
2967
  }, [
2962
2968
  t.hasCheckbox ? (m(), w("td", {
2963
2969
  key: 0,
2964
2970
  style: Z({ width: t.checkboxColumnWidth + " !important", minWidth: t.checkboxColumnWidth + " !important" }),
2965
- class: T({
2971
+ class: _({
2966
2972
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2967
2973
  })
2968
2974
  }, [
@@ -2970,7 +2976,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2970
2976
  ve(L("input", {
2971
2977
  "onUpdate:modelValue": v[0] || (v[0] = (Q) => I.value = Q),
2972
2978
  type: "checkbox",
2973
- value: C[J.value] ? C[J.value] : D,
2979
+ value: x[J.value] ? x[J.value] : W,
2974
2980
  onClick: v[1] || (v[1] = ye(() => {
2975
2981
  }, ["stop"]))
2976
2982
  }, null, 8, Yi), [
@@ -2984,32 +2990,32 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
2984
2990
  t.hasRightPanel ? (m(), w("td", {
2985
2991
  key: 1,
2986
2992
  style: Z({ width: t.rightPanelColumnWidth + " !important", minWidth: t.rightPanelColumnWidth + " !important", padding: "0px !important" }),
2987
- class: T({
2993
+ class: _({
2988
2994
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
2989
2995
  })
2990
2996
  }, [
2991
2997
  ie(li, {
2992
- item: C,
2998
+ item: x,
2993
2999
  onRightPanelClick: v[2] || (v[2] = (Q) => oe("rowRightPanelClick", Q))
2994
3000
  }, null, 8, ["item"])
2995
3001
  ], 6)) : R("", !0),
2996
3002
  t.hasSubtable ? (m(), w("td", {
2997
3003
  key: 2,
2998
3004
  style: Z({ width: t.subtableColumnWidth + " !important", minWidth: t.subtableColumnWidth + " !important" }),
2999
- class: T({
3005
+ class: _({
3000
3006
  "bh-sticky bh-left-0 bh-bg-blue-light": t.stickyFirstColumn
3001
3007
  })
3002
3008
  }, [
3003
3009
  ie(In, {
3004
- item: C,
3010
+ item: { ...x, _rowIndex: W },
3005
3011
  expandedrows: de.value
3006
3012
  }, null, 8, ["item", "expandedrows"])
3007
3013
  ], 6)) : R("", !0),
3008
3014
  (m(!0), w(G, null, pe(t.columns, (Q, he) => (m(), w(G, null, [
3009
3015
  Q.hide ? R("", !0) : (m(), w("td", {
3010
3016
  key: Q.field,
3011
- class: T([
3012
- typeof t.cellClass == "function" ? s.cellClass(C) : t.cellClass,
3017
+ class: _([
3018
+ typeof t.cellClass == "function" ? s.cellClass(x) : t.cellClass,
3013
3019
  he === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3014
3020
  t.hasCheckbox && he === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3015
3021
  Q.cellClass ? Q.cellClass : ""
@@ -3017,23 +3023,23 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3017
3023
  }, [
3018
3024
  K(o)[Q.field] ? ae(s.$slots, Q.field, {
3019
3025
  key: 0,
3020
- value: C
3026
+ value: x
3021
3027
  }) : Q.cellRenderer ? (m(), w("div", {
3022
3028
  key: 1,
3023
- innerHTML: Q.cellRenderer(C)
3029
+ innerHTML: Q.cellRenderer(x)
3024
3030
  }, null, 8, Ji)) : (m(), w(G, { key: 2 }, [
3025
- gt(q(F(C, Q.field)), 1)
3031
+ gt(q(F(x, Q.field)), 1)
3026
3032
  ], 64))
3027
3033
  ], 2))
3028
3034
  ], 64))), 256))
3029
3035
  ], 10, Ki)) : R("", !0),
3030
- (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", {
3031
3037
  key: 1,
3032
- class: T([
3033
- typeof t.rowClass == "function" ? s.rowClass(C) : t.rowClass,
3038
+ class: _([
3039
+ typeof t.rowClass == "function" ? s.rowClass(x) : t.rowClass,
3034
3040
  t.selectRowOnClick ? "bh-cursor-pointer" : ""
3035
3041
  ]),
3036
- onClick: ye((Q) => Ue(C, D), ["prevent"])
3042
+ onClick: ye((Q) => Ue(x, W), ["prevent"])
3037
3043
  }, [
3038
3044
  L("td", {
3039
3045
  colspan: t.columns.length + K(Se)
@@ -3043,8 +3049,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3043
3049
  ], 10, Zi)) : R("", !0)
3044
3050
  ], 64);
3045
3051
  }), 128)),
3046
- !_.value && y.value && s.skeletonloader ? (m(!0), w(G, { key: 0 }, pe(t.pageSize, (C) => (m(), w("tr", {
3047
- 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,
3048
3054
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3049
3055
  }, [
3050
3056
  L("td", {
@@ -3052,8 +3058,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3052
3058
  class: "!bh-p-0 !bh-border-transparent"
3053
3059
  }, lr, 8, tr)
3054
3060
  ]))), 128)) : R("", !0),
3055
- _.value ? (m(!0), w(G, { key: 1 }, pe(t.footerRows, (C, D) => (m(), w("tr", {
3056
- 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,
3057
3063
  class: "sticky-table-footer"
3058
3064
  }, [
3059
3065
  K(Se) > 0 ? (m(), w("td", {
@@ -3063,15 +3069,15 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3063
3069
  (m(!0), w(G, null, pe(t.columns, (te, Q) => (m(), w(G, null, [
3064
3070
  te.hide ? R("", !0) : (m(), w("td", {
3065
3071
  key: te.field,
3066
- class: T([
3067
- typeof t.cellClass == "function" ? s.cellClass(C) : t.cellClass,
3072
+ class: _([
3073
+ typeof t.cellClass == "function" ? s.cellClass(x) : t.cellClass,
3068
3074
  Q === 0 && t.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3069
3075
  t.hasCheckbox && Q === 0 && t.stickyFirstColumn ? "bh-left-[52px]" : "",
3070
3076
  te.cellClass ? te.cellClass : ""
3071
3077
  ])
3072
3078
  }, [
3073
- C.cells.find((he) => he.field == te.field) ? (m(), w(G, { key: 0 }, [
3074
- 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)
3075
3081
  ], 64)) : R("", !0)
3076
3082
  ], 2))
3077
3083
  ], 64))), 256))
@@ -3079,7 +3085,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3079
3085
  ]),
3080
3086
  t.cloneHeaderInFooter ? (m(), w("tfoot", {
3081
3087
  key: 0,
3082
- class: T({
3088
+ class: _({
3083
3089
  "bh-sticky bh-bottom-0": t.stickyHeader
3084
3090
  })
3085
3091
  }, [
@@ -3107,7 +3113,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3107
3113
  ae(s.$slots, "loadercontent")
3108
3114
  ], 4)) : R("", !0)
3109
3115
  ], 6),
3110
- !_.value && !y.value ? (m(), w("div", {
3116
+ !T.value && !y.value ? (m(), w("div", {
3111
3117
  key: 0,
3112
3118
  class: "nodatacontent",
3113
3119
  style: Z({
@@ -3136,9 +3142,9 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3136
3142
  ]),
3137
3143
  _: 3
3138
3144
  }, 8, ["style"]),
3139
- t.pagination && _.value ? (m(), w("div", {
3145
+ t.pagination && T.value ? (m(), w("div", {
3140
3146
  key: 0,
3141
- class: T(["bh-pagination", {
3147
+ class: _(["bh-pagination", {
3142
3148
  "bh-pointer-events-none": y.value,
3143
3149
  "sticky-footer": t.stickyFooter
3144
3150
  }])
@@ -3147,7 +3153,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3147
3153
  s.enablefooterpagination ? ae(s.$slots, "footerpageinfo", {
3148
3154
  key: 0,
3149
3155
  paginationInfo: s.paginationInfo,
3150
- filterRowCount: _.value,
3156
+ filterRowCount: T.value,
3151
3157
  offset: ge.value,
3152
3158
  limit: Ie.value,
3153
3159
  showPageSize: s.showPageSize,
@@ -3159,19 +3165,19 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3159
3165
  L("div", rr, [
3160
3166
  L("span", ar, q(Be(
3161
3167
  t.paginationInfo,
3162
- _.value ? ge.value : 0,
3168
+ T.value ? ge.value : 0,
3163
3169
  Ie.value,
3164
- _.value
3170
+ T.value
3165
3171
  )), 1),
3166
3172
  t.showPageSize ? ve((m(), w("select", {
3167
3173
  key: 0,
3168
- "onUpdate:modelValue": v[3] || (v[3] = (C) => r.value = C),
3174
+ "onUpdate:modelValue": v[3] || (v[3] = (x) => r.value = x),
3169
3175
  class: "bh-pagesize"
3170
3176
  }, [
3171
- (m(!0), w(G, null, pe(t.pageSizeOptions, (C) => (m(), w("option", {
3172
- value: C,
3173
- key: C
3174
- }, 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))
3175
3181
  ], 512)), [
3176
3182
  [cn, r.value]
3177
3183
  ]) : R("", !0)
@@ -3190,8 +3196,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3190
3196
  t.showFirstPage ? (m(), w("button", {
3191
3197
  key: 0,
3192
3198
  type: "button",
3193
- class: T(["bh-page-item first-page", { disabled: a.value <= 1 }]),
3194
- 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)
3195
3201
  }, [
3196
3202
  t.firstArrow ? (m(), w("span", {
3197
3203
  key: 0,
@@ -3200,7 +3206,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3200
3206
  ], 2)) : R("", !0),
3201
3207
  L("button", {
3202
3208
  type: "button",
3203
- class: T(["bh-page-item previous-page", { disabled: a.value <= 1 }]),
3209
+ class: _(["bh-page-item previous-page", { disabled: a.value <= 1 }]),
3204
3210
  onClick: je
3205
3211
  }, [
3206
3212
  t.previousArrow ? (m(), w("span", {
@@ -3208,18 +3214,18 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3208
3214
  innerHTML: t.previousArrow
3209
3215
  }, null, 8, pr)) : (m(), w("svg", vr, gr))
3210
3216
  ], 2),
3211
- t.showNumbers ? (m(!0), w(G, { key: 1 }, pe(De.value, (C) => (m(), w("button", {
3212
- key: C,
3217
+ t.showNumbers ? (m(!0), w(G, { key: 1 }, pe(De.value, (x) => (m(), w("button", {
3218
+ key: x,
3213
3219
  type: "button",
3214
- class: T(["bh-page-item", {
3215
- disabled: a.value === C,
3216
- "bh-active": C === a.value
3220
+ class: _(["bh-page-item", {
3221
+ disabled: a.value === x,
3222
+ "bh-active": x === a.value
3217
3223
  }]),
3218
- onClick: (D) => Ee(C)
3219
- }, q(C), 11, br))), 128)) : R("", !0),
3224
+ onClick: (W) => Ee(x)
3225
+ }, q(x), 11, br))), 128)) : R("", !0),
3220
3226
  L("button", {
3221
3227
  type: "button",
3222
- class: T(["bh-page-item next-page", { disabled: a.value >= se.value }]),
3228
+ class: _(["bh-page-item next-page", { disabled: a.value >= se.value }]),
3223
3229
  onClick: re
3224
3230
  }, [
3225
3231
  t.nextArrow ? (m(), w("span", {
@@ -3230,8 +3236,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
3230
3236
  t.showLastPage ? (m(), w("button", {
3231
3237
  key: 2,
3232
3238
  type: "button",
3233
- class: T(["bh-page-item last-page", { disabled: a.value >= se.value }]),
3234
- 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)
3235
3241
  }, [
3236
3242
  t.lastArrow ? (m(), w("span", {
3237
3243
  key: 0,