@dolusoft/vue3-datatable 1.7.81 → 1.7.82

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 { isRef as Kn, watch as Z, onMounted as Pe, nextTick as Te, getCurrentScope as Qn, onScopeDispose as Jn, unref as Q, getCurrentInstance as It, computed as X, ref as q, useSlots as pn, onBeforeUnmount as vn, provide as xe, openBlock as c, createBlock as ce, resolveDynamicComponent as Yn, inject as Me, createElementBlock as h, normalizeStyle as J, renderSlot as oe, h as Ct, defineComponent as Le, toRef as Xn, Fragment as H, withModifiers as G, createVNode as te, createElementVNode as w, normalizeClass as I, toDisplayString as V, createCommentVNode as T, withDirectives as ue, renderList as re, vModelSelect as it, resolveComponent as Zn, createTextVNode as De, vModelText as Ie, vShow as el, withCtx as Se, onUnmounted as tl, vModelCheckbox as Gt } from "vue";
1
+ import { isRef as Kn, watch as Z, onMounted as Pe, nextTick as Te, getCurrentScope as Qn, onScopeDispose as Jn, unref as Q, getCurrentInstance as It, computed as X, ref as q, useSlots as pn, onBeforeUnmount as vn, provide as xe, openBlock as c, createBlock as ce, resolveDynamicComponent as Yn, inject as Me, createElementBlock as h, normalizeStyle as J, renderSlot as oe, h as Ct, defineComponent as Le, toRef as Xn, Fragment as H, withModifiers as G, createVNode as te, createElementVNode as w, normalizeClass as I, toDisplayString as V, createCommentVNode as T, withDirectives as ue, renderList as ae, vModelSelect as it, resolveComponent as Zn, createTextVNode as De, vModelText as Ie, vShow as el, withCtx as Se, onUnmounted as tl, vModelCheckbox as Gt } from "vue";
2
2
  function mn(t) {
3
3
  return Qn() ? (Jn(t), !0) : !1;
4
4
  }
@@ -24,29 +24,29 @@ function Tt(t, o) {
24
24
  const sl = (t) => t();
25
25
  function gn(t, o = {}) {
26
26
  let n, l, e = we;
27
- const i = (r) => {
28
- clearTimeout(r), e(), e = we;
27
+ const i = (a) => {
28
+ clearTimeout(a), e(), e = we;
29
29
  };
30
- return (r) => {
30
+ return (a) => {
31
31
  const f = Be(t), g = Be(o.maxWait);
32
- return n && i(n), f <= 0 || g !== void 0 && g <= 0 ? (l && (i(l), l = null), Promise.resolve(r())) : new Promise((v, x) => {
32
+ return n && i(n), f <= 0 || g !== void 0 && g <= 0 ? (l && (i(l), l = null), Promise.resolve(a())) : new Promise((v, x) => {
33
33
  e = o.rejectOnCancel ? x : v, g && !l && (l = setTimeout(() => {
34
- n && i(n), l = null, v(r());
34
+ n && i(n), l = null, v(a());
35
35
  }, g)), n = setTimeout(() => {
36
- l && i(l), l = null, v(r());
36
+ l && i(l), l = null, v(a());
37
37
  }, f);
38
38
  });
39
39
  };
40
40
  }
41
41
  function rl(...t) {
42
- let o = 0, n, l = !0, e = we, i, a, r, f, g;
43
- !Kn(t[0]) && typeof t[0] == "object" ? { delay: a, trailing: r = !0, leading: f = !0, rejectOnCancel: g = !1 } = t[0] : [a, r = !0, f = !0, g = !1] = t;
42
+ let o = 0, n, l = !0, e = we, i, r, a, f, g;
43
+ !Kn(t[0]) && typeof t[0] == "object" ? { delay: r, trailing: a = !0, leading: f = !0, rejectOnCancel: g = !1 } = t[0] : [r, a = !0, f = !0, g = !1] = t;
44
44
  const v = () => {
45
45
  n && (clearTimeout(n), n = void 0, e(), e = we);
46
46
  };
47
47
  return (_) => {
48
- const z = Be(a), E = Date.now() - o, C = () => i = _();
49
- return v(), z <= 0 ? (o = Date.now(), C()) : (E > z && (f || !l) ? (o = Date.now(), C()) : r && (i = new Promise((u, D) => {
48
+ const z = Be(r), E = Date.now() - o, C = () => i = _();
49
+ return v(), z <= 0 ? (o = Date.now(), C()) : (E > z && (f || !l) ? (o = Date.now(), C()) : a && (i = new Promise((u, D) => {
50
50
  e = g ? D : u, n = setTimeout(() => {
51
51
  o = Date.now(), l = !0, u(C()), v();
52
52
  }, Math.max(0, z - E));
@@ -111,31 +111,31 @@ function bt(...t) {
111
111
  if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, l, e] = t, o = at) : [o, n, l, e] = t, !o)
112
112
  return we;
113
113
  Array.isArray(n) || (n = [n]), Array.isArray(l) || (l = [l]);
114
- const i = [], a = () => {
114
+ const i = [], r = () => {
115
115
  i.forEach((v) => v()), i.length = 0;
116
- }, r = (v, x, _, z) => (v.addEventListener(x, _, z), () => v.removeEventListener(x, _, z)), f = Z(
116
+ }, a = (v, x, _, z) => (v.addEventListener(x, _, z), () => v.removeEventListener(x, _, z)), f = Z(
117
117
  () => [ve(o), Be(e)],
118
118
  ([v, x]) => {
119
- if (a(), !v)
119
+ if (r(), !v)
120
120
  return;
121
121
  const _ = ll(x) ? { ...x } : x;
122
122
  i.push(
123
- ...n.flatMap((z) => l.map((E) => r(v, z, E, _)))
123
+ ...n.flatMap((z) => l.map((E) => a(v, z, E, _)))
124
124
  );
125
125
  },
126
126
  { immediate: !0, flush: "post" }
127
127
  ), g = () => {
128
- f(), a();
128
+ f(), r();
129
129
  };
130
130
  return mn(g), g;
131
131
  }
132
132
  let Qt = !1;
133
133
  function hl(t, o, n = {}) {
134
- const { window: l = at, ignore: e = [], capture: i = !0, detectIframe: a = !1 } = n;
134
+ const { window: l = at, ignore: e = [], capture: i = !0, detectIframe: r = !1 } = n;
135
135
  if (!l)
136
136
  return we;
137
137
  ol && !Qt && (Qt = !0, Array.from(l.document.body.children).forEach((_) => _.addEventListener("click", we)), l.document.documentElement.addEventListener("click", we));
138
- let r = !0;
138
+ let a = !0;
139
139
  const f = (_) => e.some((z) => {
140
140
  if (typeof z == "string")
141
141
  return Array.from(l.document.querySelectorAll(z)).some((E) => E === _.target || _.composedPath().includes(E));
@@ -147,8 +147,8 @@ function hl(t, o, n = {}) {
147
147
  bt(l, "click", (_) => {
148
148
  const z = ve(t);
149
149
  if (!(!z || z === _.target || _.composedPath().includes(z))) {
150
- if (_.detail === 0 && (r = !f(_)), !r) {
151
- r = !0;
150
+ if (_.detail === 0 && (a = !f(_)), !a) {
151
+ a = !0;
152
152
  return;
153
153
  }
154
154
  o(_);
@@ -156,9 +156,9 @@ function hl(t, o, n = {}) {
156
156
  }, { passive: !0, capture: i }),
157
157
  bt(l, "pointerdown", (_) => {
158
158
  const z = ve(t);
159
- r = !f(_) && !!(z && !_.composedPath().includes(z));
159
+ a = !f(_) && !!(z && !_.composedPath().includes(z));
160
160
  }, { passive: !0 }),
161
- a && bt(l, "blur", (_) => {
161
+ r && bt(l, "blur", (_) => {
162
162
  setTimeout(() => {
163
163
  var z;
164
164
  const E = ve(t);
@@ -181,12 +181,12 @@ function vl(t) {
181
181
  function ml(t, o, n = {}) {
182
182
  const { window: l = at, ...e } = n;
183
183
  let i;
184
- const a = vl(() => l && "ResizeObserver" in l), r = () => {
184
+ const r = vl(() => l && "ResizeObserver" in l), a = () => {
185
185
  i && (i.disconnect(), i = void 0);
186
186
  }, f = X(() => Array.isArray(t) ? t.map((x) => ve(x)) : [ve(t)]), g = Z(
187
187
  f,
188
188
  (x) => {
189
- if (r(), a.value && l) {
189
+ if (a(), r.value && l) {
190
190
  i = new ResizeObserver(o);
191
191
  for (const _ of x)
192
192
  _ && i.observe(_, e);
@@ -194,10 +194,10 @@ function ml(t, o, n = {}) {
194
194
  },
195
195
  { immediate: !0, flush: "post" }
196
196
  ), v = () => {
197
- r(), g();
197
+ a(), g();
198
198
  };
199
199
  return mn(v), {
200
- isSupported: a,
200
+ isSupported: r,
201
201
  stop: v
202
202
  };
203
203
  }
@@ -205,7 +205,7 @@ function bl(t, o = { width: 0, height: 0 }, n = {}) {
205
205
  const { window: l = at, box: e = "content-box" } = n, i = X(() => {
206
206
  var x, _;
207
207
  return (_ = (x = ve(t)) == null ? void 0 : x.namespaceURI) == null ? void 0 : _.includes("svg");
208
- }), a = q(o.width), r = q(o.height), { stop: f } = ml(
208
+ }), r = q(o.width), a = q(o.height), { stop: f } = ml(
209
209
  t,
210
210
  ([x]) => {
211
211
  const _ = e === "border-box" ? x.borderBoxSize : e === "content-box" ? x.contentBoxSize : x.devicePixelContentBoxSize;
@@ -213,32 +213,32 @@ function bl(t, o = { width: 0, height: 0 }, n = {}) {
213
213
  const z = ve(t);
214
214
  if (z) {
215
215
  const E = z.getBoundingClientRect();
216
- a.value = E.width, r.value = E.height;
216
+ r.value = E.width, a.value = E.height;
217
217
  }
218
218
  } else if (_) {
219
219
  const z = Array.isArray(_) ? _ : [_];
220
- a.value = z.reduce((E, { inlineSize: C }) => E + C, 0), r.value = z.reduce((E, { blockSize: C }) => E + C, 0);
220
+ r.value = z.reduce((E, { inlineSize: C }) => E + C, 0), a.value = z.reduce((E, { blockSize: C }) => E + C, 0);
221
221
  } else
222
- a.value = x.contentRect.width, r.value = x.contentRect.height;
222
+ r.value = x.contentRect.width, a.value = x.contentRect.height;
223
223
  },
224
224
  n
225
225
  );
226
226
  dl(() => {
227
227
  const x = ve(t);
228
- x && (a.value = "offsetWidth" in x ? x.offsetWidth : o.width, r.value = "offsetHeight" in x ? x.offsetHeight : o.height);
228
+ x && (r.value = "offsetWidth" in x ? x.offsetWidth : o.width, a.value = "offsetHeight" in x ? x.offsetHeight : o.height);
229
229
  });
230
230
  const g = Z(
231
231
  () => ve(t),
232
232
  (x) => {
233
- a.value = x ? o.width : 0, r.value = x ? o.height : 0;
233
+ r.value = x ? o.width : 0, a.value = x ? o.height : 0;
234
234
  }
235
235
  );
236
236
  function v() {
237
237
  f(), g();
238
238
  }
239
239
  return {
240
- width: a,
241
- height: r,
240
+ width: r,
241
+ height: a,
242
242
  stop: v
243
243
  };
244
244
  }
@@ -265,7 +265,7 @@ const Jt = {
265
265
  "splitter-dblclick"
266
266
  ],
267
267
  setup(t, { emit: o }) {
268
- const n = o, l = t, e = pn(), i = q([]), a = X(() => i.value.reduce((d, k) => (d[~~k.id] = k) && d, {})), r = X(() => i.value.length), f = q(null), g = q(!1), v = q({
268
+ const n = o, l = t, e = pn(), i = q([]), r = X(() => i.value.reduce((d, k) => (d[~~k.id] = k) && d, {})), a = X(() => i.value.length), f = q(null), g = q(!1), v = q({
269
269
  mouseDown: !1,
270
270
  dragging: !1,
271
271
  activeSplitter: null,
@@ -307,8 +307,8 @@ const Jt = {
307
307
  }, P = (d, k) => {
308
308
  K("pane-click", {
309
309
  event: d,
310
- index: a.value[k].index,
311
- pane: a.value[k]
310
+ index: r.value[k].index,
311
+ pane: r.value[k]
312
312
  });
313
313
  }, U = (d) => {
314
314
  const k = f.value.getBoundingClientRect(), { clientX: L, clientY: S } = "ontouchstart" in window && d.touches ? d.touches[0] : d;
@@ -336,23 +336,23 @@ const Jt = {
336
336
  return;
337
337
  }
338
338
  if (l.pushOtherPanes) {
339
- const vt = se(L, O);
339
+ const vt = re(L, O);
340
340
  if (!vt) return;
341
341
  ({ sums: L, panesToResize: B } = vt), le = i.value[B[0]] || null, fe = i.value[B[1]] || null;
342
342
  }
343
343
  le !== null && (le.size = Math.min(Math.max(O - L.prevPanesSize - L.prevReachedMinPanes, le.min), le.max)), fe !== null && (fe.size = Math.min(Math.max(100 - O - L.nextPanesSize - L.nextReachedMinPanes, fe.min), fe.max));
344
- }, se = (d, k) => {
344
+ }, re = (d, k) => {
345
345
  const L = v.value.activeSplitter, S = [L, L + 1];
346
346
  return k < d.prevPanesSize + i.value[S[0]].min && (S[0] = ne(L).index, d.prevReachedMinPanes = 0, S[0] < L && i.value.forEach((F, O) => {
347
347
  O > S[0] && O <= L && (F.size = F.min, d.prevReachedMinPanes += F.min);
348
348
  }), d.prevPanesSize = ie(S[0]), S[0] === void 0) ? (d.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((F, O) => {
349
349
  O > 0 && O <= L && (F.size = F.min, d.prevReachedMinPanes += F.min);
350
- }), i.value[S[1]].size = 100 - d.prevReachedMinPanes - i.value[0].min - d.prevPanesSize - d.nextPanesSize, null) : k > 100 - d.nextPanesSize - i.value[S[1]].min && (S[1] = ae(L).index, d.nextReachedMinPanes = 0, S[1] > L + 1 && i.value.forEach((F, O) => {
350
+ }), i.value[S[1]].size = 100 - d.prevReachedMinPanes - i.value[0].min - d.prevPanesSize - d.nextPanesSize, null) : k > 100 - d.nextPanesSize - i.value[S[1]].min && (S[1] = se(L).index, d.nextReachedMinPanes = 0, S[1] > L + 1 && i.value.forEach((F, O) => {
351
351
  O > L && O < S[1] && (F.size = F.min, d.nextReachedMinPanes += F.min);
352
352
  }), d.nextPanesSize = $(S[1] - 1), S[1] === void 0) ? (d.nextReachedMinPanes = 0, i.value.forEach((F, O) => {
353
- O < r.value - 1 && O >= L + 1 && (F.size = F.min, d.nextReachedMinPanes += F.min);
353
+ O < a.value - 1 && O >= L + 1 && (F.size = F.min, d.nextReachedMinPanes += F.min);
354
354
  }), i.value[S[0]].size = 100 - d.prevPanesSize - $(S[0] - 1), null) : { sums: d, panesToResize: S };
355
- }, ie = (d) => i.value.reduce((k, L, S) => k + (S < d ? L.size : 0), 0), $ = (d) => i.value.reduce((k, L, S) => k + (S > d + 1 ? L.size : 0), 0), ne = (d) => [...i.value].reverse().find((k) => k.index < d && k.size > k.min) || {}, ae = (d) => i.value.find((k) => k.index > d + 1 && k.size > k.min) || {}, _e = () => {
355
+ }, ie = (d) => i.value.reduce((k, L, S) => k + (S < d ? L.size : 0), 0), $ = (d) => i.value.reduce((k, L, S) => k + (S > d + 1 ? L.size : 0), 0), ne = (d) => [...i.value].reverse().find((k) => k.index < d && k.size > k.min) || {}, se = (d) => i.value.find((k) => k.index > d + 1 && k.size > k.min) || {}, _e = () => {
356
356
  var d;
357
357
  const k = Array.from(((d = f.value) == null ? void 0 : d.children) || []);
358
358
  for (const L of k) {
@@ -373,7 +373,7 @@ const Jt = {
373
373
  for (const S of k)
374
374
  S.className.includes("splitpanes__pane") && (!L && l.firstSplitter ? Ne(L, S, !0) : L && Ne(L, S), L++);
375
375
  }, $e = ({ uid: d, ...k }) => {
376
- const L = a.value[d];
376
+ const L = r.value[d];
377
377
  for (const [S, F] of Object.entries(k)) L[S] = F;
378
378
  }, ft = (d) => {
379
379
  var k;
@@ -391,7 +391,7 @@ const Jt = {
391
391
  }, de = (d = {}) => {
392
392
  !d.addedPane && !d.removedPane ? Ce() : i.value.some((k) => k.givenSize !== null || k.min || k.max < 100) ? Ge(d) : me(), g.value && K("resized");
393
393
  }, me = () => {
394
- const d = 100 / r.value;
394
+ const d = 100 / a.value;
395
395
  let k = 0;
396
396
  const L = [], S = [];
397
397
  for (const F of i.value)
@@ -406,13 +406,13 @@ const Jt = {
406
406
  let F = 100;
407
407
  if (d > 0.1) {
408
408
  for (const O of i.value)
409
- O.givenSize === null && (O.size = Math.max(Math.min(d / (r.value - S), O.max), O.min)), F -= O.size;
409
+ O.givenSize === null && (O.size = Math.max(Math.min(d / (a.value - S), O.max), O.min)), F -= O.size;
410
410
  F > 0.1 && Oe(F, k, L);
411
411
  }
412
412
  }, Ge = ({ addedPane: d, removedPane: k } = {}) => {
413
- let L = 100 / r.value, S = 0;
413
+ let L = 100 / a.value, S = 0;
414
414
  const F = [], O = [];
415
- ((d == null ? void 0 : d.givenSize) ?? null) !== null && (L = (100 - d.givenSize) / (r.value - 1));
415
+ ((d == null ? void 0 : d.givenSize) ?? null) !== null && (L = (100 - d.givenSize) / (a.value - 1));
416
416
  for (const B of i.value)
417
417
  S -= B.size, B.size >= B.max && F.push(B.id), B.size <= B.min && O.push(B.id);
418
418
  if (!(Math.abs(S) < 0.1)) {
@@ -422,7 +422,7 @@ const Jt = {
422
422
  }
423
423
  }, Oe = (d, k, L) => {
424
424
  let S;
425
- d > 0 ? S = d / (r.value - k.length) : S = d / (r.value - L.length), i.value.forEach((F, O) => {
425
+ d > 0 ? S = d / (a.value - k.length) : S = d / (a.value - L.length), i.value.forEach((F, O) => {
426
426
  if (d > 0 && !k.includes(F.id)) {
427
427
  const B = Math.max(Math.min(F.size + S, F.max), F.min), le = B - F.size;
428
428
  d -= le, F.size = B;
@@ -456,7 +456,7 @@ const Jt = {
456
456
  (d = e.default) == null ? void 0 : d.call(e)
457
457
  );
458
458
  };
459
- return xe("panes", i), xe("indexedPanes", a), xe("horizontal", X(() => l.horizontal)), xe("requestUpdate", $e), xe("onPaneAdd", ft), xe("onPaneRemove", je), xe("onPaneClick", P), (d, k) => (c(), ce(Yn(Ke)));
459
+ return xe("panes", i), xe("indexedPanes", r), xe("horizontal", X(() => l.horizontal)), xe("requestUpdate", $e), xe("onPaneAdd", ft), xe("onPaneRemove", je), xe("onPaneClick", P), (d, k) => (c(), ce(Yn(Ke)));
460
460
  }
461
461
  }, gt = {
462
462
  __name: "pane",
@@ -467,7 +467,7 @@ const Jt = {
467
467
  },
468
468
  setup(t) {
469
469
  var o;
470
- const n = t, l = Me("requestUpdate"), e = Me("onPaneAdd"), i = Me("horizontal"), a = Me("onPaneRemove"), r = Me("onPaneClick"), f = (o = It()) == null ? void 0 : o.uid, g = Me("indexedPanes"), v = X(() => g.value[f]), x = q(null), _ = X(() => {
470
+ const n = t, l = Me("requestUpdate"), e = Me("onPaneAdd"), i = Me("horizontal"), r = Me("onPaneRemove"), a = Me("onPaneClick"), f = (o = It()) == null ? void 0 : o.uid, g = Me("indexedPanes"), v = X(() => g.value[f]), x = q(null), _ = X(() => {
471
471
  const u = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
472
472
  return Math.max(Math.min(u, E.value), z.value);
473
473
  }), z = X(() => {
@@ -491,11 +491,11 @@ const Jt = {
491
491
  size: _.value
492
492
  // The computed current size at any time.
493
493
  });
494
- }), vn(() => a(f)), (u, D) => (c(), h("div", {
494
+ }), vn(() => r(f)), (u, D) => (c(), h("div", {
495
495
  ref_key: "paneEl",
496
496
  ref: x,
497
497
  class: "splitpanes__pane",
498
- onClick: D[0] || (D[0] = (b) => Q(r)(b, u._.uid)),
498
+ onClick: D[0] || (D[0] = (b) => Q(a)(b, u._.uid)),
499
499
  style: J(C.value)
500
500
  }, [
501
501
  oe(u.$slots, "default")
@@ -511,30 +511,30 @@ const Jt = {
511
511
  if (e.length > 3 || !e.length)
512
512
  return null;
513
513
  if (e.length > 1) {
514
- const r = e.pop(), f = e.pop(), g = {
514
+ const a = e.pop(), f = e.pop(), g = {
515
515
  // Allow provider without '@': "provider:prefix:name"
516
516
  provider: e.length > 0 ? e[0] : l,
517
517
  prefix: f,
518
- name: r
518
+ name: a
519
519
  };
520
520
  return o && !nt(g) ? null : g;
521
521
  }
522
- const i = e[0], a = i.split("-");
523
- if (a.length > 1) {
524
- const r = {
522
+ const i = e[0], r = i.split("-");
523
+ if (r.length > 1) {
524
+ const a = {
525
525
  provider: l,
526
- prefix: a.shift(),
527
- name: a.join("-")
526
+ prefix: r.shift(),
527
+ name: r.join("-")
528
528
  };
529
- return o && !nt(r) ? null : r;
529
+ return o && !nt(a) ? null : a;
530
530
  }
531
531
  if (n && l === "") {
532
- const r = {
532
+ const a = {
533
533
  provider: l,
534
534
  prefix: "",
535
535
  name: i
536
536
  };
537
- return o && !nt(r, n) ? null : r;
537
+ return o && !nt(a, n) ? null : a;
538
538
  }
539
539
  return null;
540
540
  }, nt = (t, o) => t ? !!((t.provider === "" || t.provider.match(We)) && (o && t.prefix === "" || t.prefix.match(We)) && t.name.match(We)) : !1, yn = Object.freeze(
@@ -570,28 +570,28 @@ function Yt(t, o) {
570
570
  }
571
571
  function yl(t, o) {
572
572
  const n = t.icons, l = t.aliases || /* @__PURE__ */ Object.create(null), e = /* @__PURE__ */ Object.create(null);
573
- function i(a) {
574
- if (n[a])
575
- return e[a] = [];
576
- if (!(a in e)) {
577
- e[a] = null;
578
- const r = l[a] && l[a].parent, f = r && i(r);
579
- f && (e[a] = [r].concat(f));
573
+ function i(r) {
574
+ if (n[r])
575
+ return e[r] = [];
576
+ if (!(r in e)) {
577
+ e[r] = null;
578
+ const a = l[r] && l[r].parent, f = a && i(a);
579
+ f && (e[r] = [a].concat(f));
580
580
  }
581
- return e[a];
581
+ return e[r];
582
582
  }
583
583
  return Object.keys(n).concat(Object.keys(l)).forEach(i), e;
584
584
  }
585
585
  function wl(t, o, n) {
586
586
  const l = t.icons, e = t.aliases || /* @__PURE__ */ Object.create(null);
587
587
  let i = {};
588
- function a(r) {
588
+ function r(a) {
589
589
  i = Yt(
590
- l[r] || e[r],
590
+ l[a] || e[a],
591
591
  i
592
592
  );
593
593
  }
594
- return a(o), n.forEach(a), Yt(t, i);
594
+ return r(o), n.forEach(r), Yt(t, i);
595
595
  }
596
596
  function wn(t, o) {
597
597
  const n = [];
@@ -636,8 +636,8 @@ function Cn(t) {
636
636
  }
637
637
  const l = o.aliases || /* @__PURE__ */ Object.create(null);
638
638
  for (const e in l) {
639
- const i = l[e], a = i.parent;
640
- if (!e.match(We) || typeof a != "string" || !n[a] && !l[a] || !yt(
639
+ const i = l[e], r = i.parent;
640
+ if (!e.match(We) || typeof r != "string" || !n[r] && !l[r] || !yt(
641
641
  i,
642
642
  kt
643
643
  ))
@@ -694,8 +694,8 @@ function Ll(t, o) {
694
694
  return !1;
695
695
  if (typeof o != "string" && (o = t.provider || ""), He && !o && !t.prefix) {
696
696
  let e = !1;
697
- return Cn(t) && (t.prefix = "", wn(t, (i, a) => {
698
- a && Fl(i, a) && (e = !0);
697
+ return Cn(t) && (t.prefix = "", wn(t, (i, r) => {
698
+ r && Fl(i, r) && (e = !0);
699
699
  })), e;
700
700
  }
701
701
  const n = t.prefix;
@@ -728,16 +728,16 @@ function Zt(t, o, n) {
728
728
  if (l === null || !l.length)
729
729
  return t;
730
730
  const e = [];
731
- let i = l.shift(), a = zl.test(i);
731
+ let i = l.shift(), r = zl.test(i);
732
732
  for (; ; ) {
733
- if (a) {
734
- const r = parseFloat(i);
735
- isNaN(r) ? e.push(i) : e.push(Math.ceil(r * o * n) / n);
733
+ if (r) {
734
+ const a = parseFloat(i);
735
+ isNaN(a) ? e.push(i) : e.push(Math.ceil(a * o * n) / n);
736
736
  } else
737
737
  e.push(i);
738
738
  if (i = l.shift(), i === void 0)
739
739
  return e.join("");
740
- a = !a;
740
+ r = !r;
741
741
  }
742
742
  }
743
743
  function El(t, o = "defs") {
@@ -747,10 +747,10 @@ function El(t, o = "defs") {
747
747
  const e = t.indexOf(">", l), i = t.indexOf("</" + o);
748
748
  if (e === -1 || i === -1)
749
749
  break;
750
- const a = t.indexOf(">", i);
751
- if (a === -1)
750
+ const r = t.indexOf(">", i);
751
+ if (r === -1)
752
752
  break;
753
- n += t.slice(e + 1, i).trim(), t = t.slice(0, l).trim() + t.slice(a + 1);
753
+ n += t.slice(e + 1, i).trim(), t = t.slice(0, l).trim() + t.slice(r + 1);
754
754
  }
755
755
  return {
756
756
  defs: n,
@@ -811,9 +811,9 @@ function Pl(t, o) {
811
811
  "</g>"
812
812
  ));
813
813
  });
814
- const a = l.width, r = l.height, f = e.width, g = e.height;
814
+ const r = l.width, a = l.height, f = e.width, g = e.height;
815
815
  let v, x;
816
- a === null ? (x = r === null ? "1em" : r === "auto" ? g : r, v = Zt(x, f / g)) : (v = a === "auto" ? f : a, x = r === null ? Zt(v, g / f) : r === "auto" ? g : r);
816
+ r === null ? (x = a === null ? "1em" : a === "auto" ? g : a, v = Zt(x, f / g)) : (v = r === "auto" ? f : r, x = a === null ? Zt(v, g / f) : a === "auto" ? g : a);
817
817
  const _ = {}, z = (C, u) => {
818
818
  Tl(u) || (_[C] = u.toString());
819
819
  };
@@ -836,12 +836,12 @@ function Al(t, o = $l) {
836
836
  return t;
837
837
  const e = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
838
838
  return n.forEach((i) => {
839
- const a = typeof o == "function" ? o(i) : o + (Ol++).toString(), r = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
839
+ const r = typeof o == "function" ? o(i) : o + (Ol++).toString(), a = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
840
840
  t = t.replace(
841
841
  // Allowed characters before id: [#;"]
842
842
  // Allowed characters after id: [)"], .[a-z]
843
- new RegExp('([#;"])(' + r + ')([")]|\\.[a-z])', "g"),
844
- "$1" + a + e + "$3"
843
+ new RegExp('([#;"])(' + a + ')([")]|\\.[a-z])', "g"),
844
+ "$1" + r + e + "$3"
845
845
  );
846
846
  }), t = t.replace(new RegExp(e, "g"), ""), t;
847
847
  }
@@ -911,8 +911,8 @@ function Wl(t, o) {
911
911
  l = 0;
912
912
  else {
913
913
  let e = 0;
914
- n.resources.forEach((a) => {
915
- e = Math.max(e, a.length);
914
+ n.resources.forEach((r) => {
915
+ e = Math.max(e, r.length);
916
916
  });
917
917
  const i = o + ".json?icons=";
918
918
  l = n.maxURL - e - n.path.length - i.length;
@@ -924,20 +924,20 @@ function Bl(t) {
924
924
  }
925
925
  const Hl = (t, o, n) => {
926
926
  const l = [], e = Wl(t, o), i = "icons";
927
- let a = {
927
+ let r = {
928
928
  type: i,
929
929
  provider: t,
930
930
  prefix: o,
931
931
  icons: []
932
- }, r = 0;
932
+ }, a = 0;
933
933
  return n.forEach((f, g) => {
934
- r += f.length + 1, r >= e && g > 0 && (l.push(a), a = {
934
+ a += f.length + 1, a >= e && g > 0 && (l.push(r), r = {
935
935
  type: i,
936
936
  provider: t,
937
937
  prefix: o,
938
938
  icons: []
939
- }, r = f.length), a.icons.push(f);
940
- }), l.push(a), l;
939
+ }, a = f.length), r.icons.push(f);
940
+ }), l.push(r), l;
941
941
  };
942
942
  function Vl(t) {
943
943
  if (typeof t == "string") {
@@ -955,8 +955,8 @@ const Ul = (t, o, n) => {
955
955
  let l = Vl(o.provider);
956
956
  switch (o.type) {
957
957
  case "icons": {
958
- const i = o.prefix, r = o.icons.join(","), f = new URLSearchParams({
959
- icons: r
958
+ const i = o.prefix, a = o.icons.join(","), f = new URLSearchParams({
959
+ icons: a
960
960
  });
961
961
  l += i + ".json?" + f.toString();
962
962
  break;
@@ -972,10 +972,10 @@ const Ul = (t, o, n) => {
972
972
  }
973
973
  let e = 503;
974
974
  en(t + l).then((i) => {
975
- const a = i.status;
976
- if (a !== 200) {
975
+ const r = i.status;
976
+ if (r !== 200) {
977
977
  setTimeout(() => {
978
- n(Bl(a) ? "abort" : "next", a);
978
+ n(Bl(r) ? "abort" : "next", r);
979
979
  });
980
980
  return;
981
981
  }
@@ -1013,13 +1013,13 @@ function Gl(t) {
1013
1013
  if (l.name === e.name && l.prefix === e.prefix && l.provider === e.provider)
1014
1014
  return;
1015
1015
  l = e;
1016
- const i = e.provider, a = e.prefix, r = e.name, f = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), g = f[a] || (f[a] = Fe(i, a));
1016
+ const i = e.provider, r = e.prefix, a = e.name, f = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), g = f[r] || (f[r] = Fe(i, r));
1017
1017
  let v;
1018
- r in g.icons ? v = o.loaded : a === "" || g.missing.has(r) ? v = o.missing : v = o.pending;
1018
+ a in g.icons ? v = o.loaded : r === "" || g.missing.has(a) ? v = o.missing : v = o.pending;
1019
1019
  const x = {
1020
1020
  provider: i,
1021
- prefix: a,
1022
- name: r
1021
+ prefix: r,
1022
+ name: a
1023
1023
  };
1024
1024
  v.push(x);
1025
1025
  }), o;
@@ -1039,19 +1039,19 @@ function Kl(t) {
1039
1039
  let n = !1;
1040
1040
  const l = t.provider, e = t.prefix;
1041
1041
  o.forEach((i) => {
1042
- const a = i.icons, r = a.pending.length;
1043
- a.pending = a.pending.filter((f) => {
1042
+ const r = i.icons, a = r.pending.length;
1043
+ r.pending = r.pending.filter((f) => {
1044
1044
  if (f.prefix !== e)
1045
1045
  return !0;
1046
1046
  const g = f.name;
1047
1047
  if (t.icons[g])
1048
- a.loaded.push({
1048
+ r.loaded.push({
1049
1049
  provider: l,
1050
1050
  prefix: e,
1051
1051
  name: g
1052
1052
  });
1053
1053
  else if (t.missing.has(g))
1054
- a.missing.push({
1054
+ r.missing.push({
1055
1055
  provider: l,
1056
1056
  prefix: e,
1057
1057
  name: g
@@ -1059,10 +1059,10 @@ function Kl(t) {
1059
1059
  else
1060
1060
  return n = !0, !0;
1061
1061
  return !1;
1062
- }), a.pending.length !== r && (n || Fn([t], i.id), i.callback(
1063
- a.loaded.slice(0),
1064
- a.missing.slice(0),
1065
- a.pending.slice(0),
1062
+ }), r.pending.length !== a && (n || Fn([t], i.id), i.callback(
1063
+ r.loaded.slice(0),
1064
+ r.missing.slice(0),
1065
+ r.pending.slice(0),
1066
1066
  i.abort
1067
1067
  ));
1068
1068
  });
@@ -1079,8 +1079,8 @@ function Jl(t, o, n) {
1079
1079
  callback: t,
1080
1080
  abort: e
1081
1081
  };
1082
- return n.forEach((a) => {
1083
- (a.loaderCallbacks || (a.loaderCallbacks = [])).push(i);
1082
+ return n.forEach((r) => {
1083
+ (r.loaderCallbacks || (r.loaderCallbacks = [])).push(i);
1084
1084
  }), e;
1085
1085
  }
1086
1086
  function Yl(t, o = !0, n = !1) {
@@ -1100,17 +1100,17 @@ var Xl = {
1100
1100
  };
1101
1101
  function Zl(t, o, n, l) {
1102
1102
  const e = t.resources.length, i = t.random ? Math.floor(Math.random() * e) : t.index;
1103
- let a;
1103
+ let r;
1104
1104
  if (t.random) {
1105
1105
  let R = t.resources.slice(0);
1106
- for (a = []; R.length > 1; ) {
1106
+ for (r = []; R.length > 1; ) {
1107
1107
  const W = Math.floor(Math.random() * R.length);
1108
- a.push(R[W]), R = R.slice(0, W).concat(R.slice(W + 1));
1108
+ r.push(R[W]), R = R.slice(0, W).concat(R.slice(W + 1));
1109
1109
  }
1110
- a = a.concat(R);
1110
+ r = r.concat(R);
1111
1111
  } else
1112
- a = t.resources.slice(i).concat(t.resources.slice(0, i));
1113
- const r = Date.now();
1112
+ r = t.resources.slice(i).concat(t.resources.slice(0, i));
1113
+ const a = Date.now();
1114
1114
  let f = "pending", g = 0, v, x = null, _ = [], z = [];
1115
1115
  typeof l == "function" && z.push(l);
1116
1116
  function E() {
@@ -1126,7 +1126,7 @@ function Zl(t, o, n, l) {
1126
1126
  }
1127
1127
  function D() {
1128
1128
  return {
1129
- startTime: r,
1129
+ startTime: a,
1130
1130
  payload: o,
1131
1131
  status: f,
1132
1132
  queriesSent: g,
@@ -1145,7 +1145,7 @@ function Zl(t, o, n, l) {
1145
1145
  R.status === "pending" && (R.status = "aborted");
1146
1146
  }), _ = [];
1147
1147
  }
1148
- function P(R, W, se) {
1148
+ function P(R, W, re) {
1149
1149
  const ie = W !== "success";
1150
1150
  switch (_ = _.filter(($) => $ !== R), f) {
1151
1151
  case "pending":
@@ -1158,11 +1158,11 @@ function Zl(t, o, n, l) {
1158
1158
  return;
1159
1159
  }
1160
1160
  if (W === "abort") {
1161
- v = se, b();
1161
+ v = re, b();
1162
1162
  return;
1163
1163
  }
1164
1164
  if (ie) {
1165
- v = se, _.length || (a.length ? U() : b());
1165
+ v = re, _.length || (r.length ? U() : b());
1166
1166
  return;
1167
1167
  }
1168
1168
  if (E(), j(), !t.random) {
@@ -1170,14 +1170,14 @@ function Zl(t, o, n, l) {
1170
1170
  $ !== -1 && $ !== t.index && (t.index = $);
1171
1171
  }
1172
1172
  f = "completed", z.forEach(($) => {
1173
- $(se);
1173
+ $(re);
1174
1174
  });
1175
1175
  }
1176
1176
  function U() {
1177
1177
  if (f !== "pending")
1178
1178
  return;
1179
1179
  E();
1180
- const R = a.shift();
1180
+ const R = r.shift();
1181
1181
  if (R === void 0) {
1182
1182
  if (_.length) {
1183
1183
  x = setTimeout(() => {
@@ -1191,8 +1191,8 @@ function Zl(t, o, n, l) {
1191
1191
  const W = {
1192
1192
  status: "pending",
1193
1193
  resource: R,
1194
- callback: (se, ie) => {
1195
- P(W, se, ie);
1194
+ callback: (re, ie) => {
1195
+ P(W, re, ie);
1196
1196
  }
1197
1197
  };
1198
1198
  _.push(W), g++, x = setTimeout(U, t.rotate), n(R, o, W.callback);
@@ -1206,12 +1206,12 @@ function Ln(t) {
1206
1206
  };
1207
1207
  let n = [];
1208
1208
  function l() {
1209
- n = n.filter((r) => r().status === "pending");
1209
+ n = n.filter((a) => a().status === "pending");
1210
1210
  }
1211
- function e(r, f, g) {
1211
+ function e(a, f, g) {
1212
1212
  const v = Zl(
1213
1213
  o,
1214
- r,
1214
+ a,
1215
1215
  f,
1216
1216
  (x, _) => {
1217
1217
  l(), g && g(x, _);
@@ -1219,14 +1219,14 @@ function Ln(t) {
1219
1219
  );
1220
1220
  return n.push(v), v;
1221
1221
  }
1222
- function i(r) {
1223
- return n.find((f) => r(f)) || null;
1222
+ function i(a) {
1223
+ return n.find((f) => a(f)) || null;
1224
1224
  }
1225
1225
  return {
1226
1226
  query: e,
1227
1227
  find: i,
1228
- setIndex: (r) => {
1229
- o.index = r;
1228
+ setIndex: (a) => {
1229
+ o.index = a;
1230
1230
  },
1231
1231
  getIndex: () => o.index,
1232
1232
  cleanup: l
@@ -1255,14 +1255,14 @@ function to(t, o, n) {
1255
1255
  if (!i)
1256
1256
  return n(void 0, 424), tn;
1257
1257
  e = i.send;
1258
- const a = eo(t);
1259
- a && (l = a.redundancy);
1258
+ const r = eo(t);
1259
+ r && (l = r.redundancy);
1260
1260
  } else {
1261
1261
  const i = Nt(t);
1262
1262
  if (i) {
1263
1263
  l = Ln(i);
1264
- const a = t.resources ? t.resources[0] : "", r = St(a);
1265
- r && (e = r.send);
1264
+ const r = t.resources ? t.resources[0] : "", a = St(r);
1265
+ a && (e = a.send);
1266
1266
  }
1267
1267
  }
1268
1268
  return !l || !e ? (n(void 0, 424), tn) : l.query(o, e, n)().abort;
@@ -1320,29 +1320,29 @@ function In(t, o) {
1320
1320
  const l = Ft(n, ln);
1321
1321
  if (l !== nn) {
1322
1322
  if (l) {
1323
- const r = _t(n);
1324
- for (let f = 0; f < r; f++)
1323
+ const a = _t(n);
1324
+ for (let f = 0; f < a; f++)
1325
1325
  on(n, Ve + f.toString());
1326
1326
  }
1327
1327
  At(n, ln, nn), Lt(n, 0);
1328
1328
  return;
1329
1329
  }
1330
- const e = Math.floor(Date.now() / zn) - no, i = (r) => {
1331
- const f = Ve + r.toString(), g = Ft(n, f);
1330
+ const e = Math.floor(Date.now() / zn) - no, i = (a) => {
1331
+ const f = Ve + a.toString(), g = Ft(n, f);
1332
1332
  if (typeof g == "string") {
1333
1333
  try {
1334
1334
  const v = JSON.parse(g);
1335
1335
  if (typeof v == "object" && typeof v.cached == "number" && v.cached > e && typeof v.provider == "string" && typeof v.data == "object" && typeof v.data.prefix == "string" && // Valid item: run callback
1336
- o(v, r))
1336
+ o(v, a))
1337
1337
  return !0;
1338
1338
  } catch {
1339
1339
  }
1340
1340
  on(n, f);
1341
1341
  }
1342
1342
  };
1343
- let a = _t(n);
1344
- for (let r = a - 1; r >= 0; r--)
1345
- i(r) || (r === a - 1 ? (a--, Lt(n, a)) : En[t].add(r));
1343
+ let r = _t(n);
1344
+ for (let a = r - 1; a >= 0; a--)
1345
+ i(a) || (a === r - 1 ? (r--, Lt(n, r)) : En[t].add(a));
1346
1346
  }
1347
1347
  function Tn() {
1348
1348
  if (!Rt) {
@@ -1355,8 +1355,8 @@ function Tn() {
1355
1355
  );
1356
1356
  if (!Pt(i, n).length)
1357
1357
  return !1;
1358
- const a = n.lastModified || -1;
1359
- return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, a) : a, !0;
1358
+ const r = n.lastModified || -1;
1359
+ return i.lastModifiedCached = i.lastModifiedCached ? Math.min(i.lastModifiedCached, r) : r, !0;
1360
1360
  });
1361
1361
  }
1362
1362
  }
@@ -1382,20 +1382,20 @@ function so(t, o) {
1382
1382
  if (!dt[l] || !(e = Mn(l)))
1383
1383
  return;
1384
1384
  const i = En[l];
1385
- let a;
1385
+ let r;
1386
1386
  if (i.size)
1387
- i.delete(a = Array.from(i).shift());
1388
- else if (a = _t(e), a >= lo || !Lt(e, a + 1))
1387
+ i.delete(r = Array.from(i).shift());
1388
+ else if (r = _t(e), r >= lo || !Lt(e, r + 1))
1389
1389
  return;
1390
- const r = {
1390
+ const a = {
1391
1391
  cached: Math.floor(Date.now() / zn),
1392
1392
  provider: t.provider,
1393
1393
  data: o
1394
1394
  };
1395
1395
  return At(
1396
1396
  e,
1397
- Ve + a.toString(),
1398
- JSON.stringify(r)
1397
+ Ve + r.toString(),
1398
+ JSON.stringify(a)
1399
1399
  );
1400
1400
  }
1401
1401
  o.lastModified && !io(t, o.lastModified) || Object.keys(o.icons).length && (o.not_found && (o = Object.assign({}, o), delete o.not_found), n("local") || n("session"));
@@ -1415,10 +1415,10 @@ function ao(t, o) {
1415
1415
  let i;
1416
1416
  if (!e || !(i = St(n)))
1417
1417
  return;
1418
- i.prepare(n, l, e).forEach((r) => {
1419
- to(n, r, (f) => {
1418
+ i.prepare(n, l, e).forEach((a) => {
1419
+ to(n, a, (f) => {
1420
1420
  if (typeof f != "object")
1421
- r.icons.forEach((g) => {
1421
+ a.icons.forEach((g) => {
1422
1422
  t.missing.add(g);
1423
1423
  });
1424
1424
  else
@@ -1457,12 +1457,12 @@ const uo = (t, o) => {
1457
1457
  };
1458
1458
  }
1459
1459
  const e = /* @__PURE__ */ Object.create(null), i = [];
1460
- let a, r;
1460
+ let r, a;
1461
1461
  return l.pending.forEach((f) => {
1462
1462
  const { provider: g, prefix: v } = f;
1463
- if (v === r && g === a)
1463
+ if (v === a && g === r)
1464
1464
  return;
1465
- a = g, r = v, i.push(Fe(g, v));
1465
+ r = g, a = v, i.push(Fe(g, v));
1466
1466
  const x = e[g] || (e[g] = /* @__PURE__ */ Object.create(null));
1467
1467
  x[v] || (x[v] = []);
1468
1468
  }), l.pending.forEach((f) => {
@@ -1574,7 +1574,7 @@ function cn(t) {
1574
1574
  return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
1575
1575
  }
1576
1576
  const dn = (t, o) => {
1577
- const n = co(rn, o), l = { ...yo }, e = o.mode || "svg", i = {}, a = o.style, r = typeof a == "object" && !(a instanceof Array) ? a : {};
1577
+ const n = co(rn, o), l = { ...yo }, e = o.mode || "svg", i = {}, r = o.style, a = typeof r == "object" && !(r instanceof Array) ? r : {};
1578
1578
  for (let C in o) {
1579
1579
  const u = o[C];
1580
1580
  if (u !== void 0)
@@ -1612,7 +1612,7 @@ const dn = (t, o) => {
1612
1612
  if (n.inline && (i.verticalAlign = "-0.125em"), e === "svg") {
1613
1613
  l.style = {
1614
1614
  ...i,
1615
- ...r
1615
+ ...a
1616
1616
  }, Object.assign(l, g);
1617
1617
  let C = 0, u = o.id;
1618
1618
  return typeof u == "string" && (u = u.replace(/-/g, "_")), l.innerHTML = Al(f.body, u ? () => u + "ID" + C++ : "iconifyVue"), Ct("svg", l);
@@ -1629,7 +1629,7 @@ const dn = (t, o) => {
1629
1629
  height: cn(g.height),
1630
1630
  ...wo,
1631
1631
  ...z ? zt : Pn,
1632
- ...r
1632
+ ...a
1633
1633
  }, Ct("span", l);
1634
1634
  };
1635
1635
  kn(!0);
@@ -1743,28 +1743,28 @@ const Co = {
1743
1743
  },
1744
1744
  setup(t) {
1745
1745
  const o = t, n = Xn(o, "expandedrows"), l = q(!1);
1746
- function e(r) {
1746
+ function e(a) {
1747
1747
  if (o.expandall)
1748
1748
  l.value = !l.value, n.value.forEach((f, g) => {
1749
1749
  n.value.set(g, l.value);
1750
1750
  });
1751
1751
  else {
1752
- const f = n.value.get(r);
1753
- n.value.set(r, !f);
1752
+ const f = n.value.get(a);
1753
+ n.value.set(a, !f);
1754
1754
  }
1755
1755
  }
1756
- const i = (r) => r._rowIndex !== void 0 ? r._rowIndex : r.id || 0, a = q(-1);
1756
+ const i = (a) => a._rowIndex !== void 0 ? a._rowIndex : a.id || 0, r = q(-1);
1757
1757
  return Z(() => n.value, () => {
1758
1758
  if (!o.expandall) return;
1759
- const r = Array.from(n.value.values());
1760
- new Set(r).size > 1 ? (a.value = -1, l.value = !0) : r[0] ? (a.value = 0, l.value = !0) : (a.value = 1, l.value = !1);
1761
- }, { deep: !0 }), (r, f) => (c(), h("button", {
1759
+ const a = Array.from(n.value.values());
1760
+ new Set(a).size > 1 ? (r.value = -1, l.value = !0) : a[0] ? (r.value = 0, l.value = !0) : (r.value = 1, l.value = !1);
1761
+ }, { deep: !0 }), (a, f) => (c(), h("button", {
1762
1762
  class: "expandbtn",
1763
- onClick: f[0] || (f[0] = (g) => e(i(r.item)))
1763
+ onClick: f[0] || (f[0] = (g) => e(i(a.item)))
1764
1764
  }, [
1765
- n.value.get(i(r.item)) === !0 ? (c(), h(H, { key: 0 }, [
1765
+ n.value.get(i(a.item)) === !0 ? (c(), h(H, { key: 0 }, [
1766
1766
  o.expandall ? (c(), h(H, { key: 0 }, [
1767
- a.value ? (c(), ce(Q(ye), {
1767
+ r.value ? (c(), ce(Q(ye), {
1768
1768
  key: 0,
1769
1769
  icon: "fluent:chevron-down-up-16-filled"
1770
1770
  })) : (c(), ce(Q(ye), {
@@ -1777,10 +1777,10 @@ const Co = {
1777
1777
  }))
1778
1778
  ], 64)) : (c(), h(H, { key: 1 }, [
1779
1779
  o.expandall ? (c(), h(H, { key: 0 }, [
1780
- a.value == -1 ? (c(), ce(Q(ye), {
1780
+ r.value == -1 ? (c(), ce(Q(ye), {
1781
1781
  key: 0,
1782
1782
  icon: "ion:chevron-expand"
1783
- })) : a.value == 0 ? (c(), ce(Q(ye), {
1783
+ })) : r.value == 0 ? (c(), ce(Q(ye), {
1784
1784
  key: 1,
1785
1785
  icon: "mdi:chevron-down"
1786
1786
  })) : (c(), ce(Q(ye), {
@@ -1812,7 +1812,7 @@ const Co = {
1812
1812
  function e() {
1813
1813
  l("rightPanelClick", n.item);
1814
1814
  }
1815
- return (i, a) => (c(), h("button", {
1815
+ return (i, r) => (c(), h("button", {
1816
1816
  class: "rightpanelbtn",
1817
1817
  onClick: G(e, ["stop"])
1818
1818
  }, [
@@ -1830,10 +1830,10 @@ const Co = {
1830
1830
  hl(e, () => {
1831
1831
  l("close");
1832
1832
  });
1833
- const i = (a) => {
1834
- n.column.condition = a, a === "" && (n.column.value = ""), l("filterChange", n.column), l("close");
1833
+ const i = (r) => {
1834
+ n.column.condition = r, r === "" && (n.column.value = ""), l("filterChange", n.column), l("close");
1835
1835
  };
1836
- return (a, r) => (c(), h("div", {
1836
+ return (r, a) => (c(), h("div", {
1837
1837
  ref_key: "menuRef",
1838
1838
  ref: e,
1839
1839
  class: "bh-filter-menu bh-absolute bh-z-[1] bh-bg-white dark:bh-bg-gray-800 bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1 bh-border bh-border-solid bh-border-gray-200 dark:bh-border-gray-600"
@@ -1842,101 +1842,101 @@ const Co = {
1842
1842
  w("button", {
1843
1843
  type: "button",
1844
1844
  class: I({ active: n.column.condition === "" }),
1845
- onClick: r[0] || (r[0] = G((f) => i(""), ["stop"]))
1845
+ onClick: a[0] || (a[0] = G((f) => i(""), ["stop"]))
1846
1846
  }, V((n.columnFilterLang && n.columnFilterLang.NoFilter) ?? "No filter"), 3),
1847
1847
  n.column.type === "string" ? (c(), h(H, { key: 0 }, [
1848
1848
  w("button", {
1849
1849
  type: "button",
1850
1850
  class: I({ active: n.column.condition === "Contains" }),
1851
- onClick: r[1] || (r[1] = G((f) => i("Contains"), ["stop"]))
1851
+ onClick: a[1] || (a[1] = G((f) => i("Contains"), ["stop"]))
1852
1852
  }, V((n.columnFilterLang && n.columnFilterLang.Contains) ?? "Contains"), 3),
1853
1853
  w("button", {
1854
1854
  type: "button",
1855
1855
  class: I({ active: n.column.condition === "NotContains" }),
1856
- onClick: r[2] || (r[2] = G((f) => i("NotContains"), ["stop"]))
1856
+ onClick: a[2] || (a[2] = G((f) => i("NotContains"), ["stop"]))
1857
1857
  }, V((n.columnFilterLang && n.columnFilterLang.NotContains) ?? "NotContains"), 3),
1858
1858
  w("button", {
1859
1859
  type: "button",
1860
1860
  class: I({ active: n.column.condition === "Equal" }),
1861
- onClick: r[3] || (r[3] = G((f) => i("Equal"), ["stop"]))
1861
+ onClick: a[3] || (a[3] = G((f) => i("Equal"), ["stop"]))
1862
1862
  }, V((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1863
1863
  w("button", {
1864
1864
  type: "button",
1865
1865
  class: I({ active: n.column.condition === "NotEqual" }),
1866
- onClick: r[4] || (r[4] = G((f) => i("NotEqual"), ["stop"]))
1866
+ onClick: a[4] || (a[4] = G((f) => i("NotEqual"), ["stop"]))
1867
1867
  }, V((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual (!=)"), 3),
1868
1868
  w("button", {
1869
1869
  type: "button",
1870
1870
  class: I({ active: n.column.condition === "StartsWith" }),
1871
- onClick: r[5] || (r[5] = G((f) => i("StartsWith"), ["stop"]))
1871
+ onClick: a[5] || (a[5] = G((f) => i("StartsWith"), ["stop"]))
1872
1872
  }, V((n.columnFilterLang && n.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
1873
1873
  w("button", {
1874
1874
  type: "button",
1875
1875
  class: I({ active: n.column.condition === "EndsWith" }),
1876
- onClick: r[6] || (r[6] = G((f) => i("EndsWith"), ["stop"]))
1876
+ onClick: a[6] || (a[6] = G((f) => i("EndsWith"), ["stop"]))
1877
1877
  }, V((n.columnFilterLang && n.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
1878
1878
  ], 64)) : n.column.type === "number" ? (c(), h(H, { key: 1 }, [
1879
1879
  w("button", {
1880
1880
  type: "button",
1881
1881
  class: I({ active: n.column.condition === "Equal" }),
1882
- onClick: r[7] || (r[7] = G((f) => i("Equal"), ["stop"]))
1882
+ onClick: a[7] || (a[7] = G((f) => i("Equal"), ["stop"]))
1883
1883
  }, V((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1884
1884
  w("button", {
1885
1885
  type: "button",
1886
1886
  class: I({ active: n.column.condition === "NotEqual" }),
1887
- onClick: r[8] || (r[8] = G((f) => i("NotEqual"), ["stop"]))
1887
+ onClick: a[8] || (a[8] = G((f) => i("NotEqual"), ["stop"]))
1888
1888
  }, V((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual (!=)"), 3),
1889
1889
  w("button", {
1890
1890
  type: "button",
1891
1891
  class: I({ active: n.column.condition === "GreaterThan" }),
1892
- onClick: r[9] || (r[9] = G((f) => i("GreaterThan"), ["stop"]))
1892
+ onClick: a[9] || (a[9] = G((f) => i("GreaterThan"), ["stop"]))
1893
1893
  }, V((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan (>)"), 3),
1894
1894
  w("button", {
1895
1895
  type: "button",
1896
1896
  class: I({ active: n.column.condition === "GreaterThanOrEqual" }),
1897
- onClick: r[10] || (r[10] = G((f) => i("GreaterThanOrEqual"), ["stop"]))
1897
+ onClick: a[10] || (a[10] = G((f) => i("GreaterThanOrEqual"), ["stop"]))
1898
1898
  }, V((n.columnFilterLang && n.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual (>=)"), 3),
1899
1899
  w("button", {
1900
1900
  type: "button",
1901
1901
  class: I({ active: n.column.condition === "LessThan" }),
1902
- onClick: r[11] || (r[11] = G((f) => i("LessThan"), ["stop"]))
1902
+ onClick: a[11] || (a[11] = G((f) => i("LessThan"), ["stop"]))
1903
1903
  }, V((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3),
1904
1904
  w("button", {
1905
1905
  type: "button",
1906
1906
  class: I({ active: n.column.condition === "LessThanOrEqual" }),
1907
- onClick: r[12] || (r[12] = G((f) => i("LessThanOrEqual"), ["stop"]))
1907
+ onClick: a[12] || (a[12] = G((f) => i("LessThanOrEqual"), ["stop"]))
1908
1908
  }, V((n.columnFilterLang && n.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual (<=)"), 3)
1909
1909
  ], 64)) : n.column.type === "date" ? (c(), h(H, { key: 2 }, [
1910
1910
  w("button", {
1911
1911
  type: "button",
1912
1912
  class: I({ active: n.column.condition === "Equal" }),
1913
- onClick: r[13] || (r[13] = G((f) => i("Equal"), ["stop"]))
1913
+ onClick: a[13] || (a[13] = G((f) => i("Equal"), ["stop"]))
1914
1914
  }, V((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1915
1915
  w("button", {
1916
1916
  type: "button",
1917
1917
  class: I({ active: n.column.condition === "NotEqual" }),
1918
- onClick: r[14] || (r[14] = G((f) => i("NotEqual"), ["stop"]))
1918
+ onClick: a[14] || (a[14] = G((f) => i("NotEqual"), ["stop"]))
1919
1919
  }, V((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "Not equal (!=)"), 3),
1920
1920
  w("button", {
1921
1921
  type: "button",
1922
1922
  class: I({ active: n.column.condition === "GreaterThan" }),
1923
- onClick: r[15] || (r[15] = G((f) => i("GreaterThan"), ["stop"]))
1923
+ onClick: a[15] || (a[15] = G((f) => i("GreaterThan"), ["stop"]))
1924
1924
  }, V((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan (>)"), 3),
1925
1925
  w("button", {
1926
1926
  type: "button",
1927
1927
  class: I({ active: n.column.condition === "LessThan" }),
1928
- onClick: r[16] || (r[16] = G((f) => i("LessThan"), ["stop"]))
1928
+ onClick: a[16] || (a[16] = G((f) => i("LessThan"), ["stop"]))
1929
1929
  }, V((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3)
1930
1930
  ], 64)) : T("", !0),
1931
1931
  w("button", {
1932
1932
  type: "button",
1933
1933
  class: I({ active: n.column.condition === "IsNull" }),
1934
- onClick: r[17] || (r[17] = G((f) => i("IsNull"), ["stop"]))
1934
+ onClick: a[17] || (a[17] = G((f) => i("IsNull"), ["stop"]))
1935
1935
  }, V((n.columnFilterLang && n.columnFilterLang.IsNull) ?? "IsNull"), 3),
1936
1936
  w("button", {
1937
1937
  type: "button",
1938
1938
  class: I({ active: n.column.condition === "IsNotNull" }),
1939
- onClick: r[18] || (r[18] = G((f) => i("IsNotNull"), ["stop"]))
1939
+ onClick: a[18] || (a[18] = G((f) => i("IsNotNull"), ["stop"]))
1940
1940
  }, V((n.columnFilterLang && n.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
1941
1941
  ])
1942
1942
  ], 512));
@@ -2010,7 +2010,7 @@ const Co = {
2010
2010
  "conditionChange"
2011
2011
  ],
2012
2012
  setup(t, { emit: o }) {
2013
- const n = t, l = o, e = q(null), i = q(null), a = q(n.column.condition || ""), r = q(!1), f = X(() => {
2013
+ const n = t, l = o, e = q(null), i = q(null), r = q(n.column.condition || ""), a = q(!1), f = X(() => {
2014
2014
  var C;
2015
2015
  const E = ((C = n.column.type) == null ? void 0 : C.toLowerCase()) || "string";
2016
2016
  return rt[E] || rt.string;
@@ -2020,13 +2020,13 @@ const Co = {
2020
2020
  return n.columnFilterLang[C] || E.label;
2021
2021
  }, v = (E) => {
2022
2022
  const u = E.target.value;
2023
- r.value = !1, a.value = u, l("conditionChange", n.column.field, u), u === "" && (n.column.value = ""), l("filterChange", n.column);
2023
+ a.value = !1, r.value = u, l("conditionChange", n.column.field, u), u === "" && (n.column.value = ""), l("filterChange", n.column);
2024
2024
  }, x = (E) => n.currentSortColumn === n.column.field && n.currentSortDirection === E, _ = (E) => {
2025
2025
  l("sortChange", n.column.field, E), l("close");
2026
2026
  }, z = () => {
2027
2027
  var C;
2028
2028
  const E = ((C = n.column.type) == null ? void 0 : C.toLowerCase()) || "string";
2029
- n.column.condition = E === "string" ? "Contains" : "Equal", n.column.value = "", a.value = n.column.condition, l("clearFilter", n.column), l("close");
2029
+ n.column.condition = E === "string" ? "Contains" : "Equal", n.column.value = "", r.value = n.column.condition, l("clearFilter", n.column), l("close");
2030
2030
  };
2031
2031
  return (E, C) => (c(), h("div", {
2032
2032
  ref_key: "dropdownRef",
@@ -2039,18 +2039,18 @@ const Co = {
2039
2039
  ue(w("select", {
2040
2040
  ref_key: "selectRef",
2041
2041
  ref: i,
2042
- "onUpdate:modelValue": C[0] || (C[0] = (u) => a.value = u),
2042
+ "onUpdate:modelValue": C[0] || (C[0] = (u) => r.value = u),
2043
2043
  class: "bh-filter-select bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-border bh-border-gray-300 dark:bh-border-gray-600 bh-rounded bh-bg-white dark:bh-bg-gray-700 hover:bh-border-primary focus:bh-border-primary focus:bh-ring-1 focus:bh-ring-primary bh-outline-none bh-cursor-pointer bh-transition-colors",
2044
- onFocus: C[1] || (C[1] = (u) => r.value = !0),
2045
- onBlur: C[2] || (C[2] = (u) => r.value = !1),
2044
+ onFocus: C[1] || (C[1] = (u) => a.value = !0),
2045
+ onBlur: C[2] || (C[2] = (u) => a.value = !1),
2046
2046
  onChange: v
2047
2047
  }, [
2048
- (c(!0), h(H, null, re(f.value, (u) => (c(), h("option", {
2048
+ (c(!0), h(H, null, ae(f.value, (u) => (c(), h("option", {
2049
2049
  key: u.value,
2050
2050
  value: u.value
2051
2051
  }, V(u.icon ? u.icon + " " : "") + V(g(u)), 9, To))), 128))
2052
2052
  ], 544), [
2053
- [it, a.value]
2053
+ [it, r.value]
2054
2054
  ])
2055
2055
  ]),
2056
2056
  n.column.sort !== !1 ? (c(), h("div", Po, [
@@ -2183,7 +2183,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2183
2183
  "clearColumnFilter"
2184
2184
  ],
2185
2185
  setup(t, { emit: o }) {
2186
- const n = q(null), l = t, e = o, i = q({}), a = q({}), r = X(() => {
2186
+ const n = q(null), l = t, e = o, i = q({}), r = q({}), a = X(() => {
2187
2187
  var u;
2188
2188
  const C = /* @__PURE__ */ new Map();
2189
2189
  return (u = l.all) != null && u.columns && l.all.columns.forEach((D) => {
@@ -2212,21 +2212,22 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2212
2212
  U.filter && U.field ? (console.log("🔍 [WATCH-SETUP] Setting up watch for:", U.field), i.value[U.field] = U.value || "", fl(
2213
2213
  () => i.value[U.field],
2214
2214
  (R) => {
2215
- var se, ie, $, ne;
2216
- const W = r.value.get(U.field);
2215
+ var re, ie, $, ne;
2216
+ const W = a.value.get(U.field);
2217
2217
  console.log("🔴 [DEBOUNCE-FIRED]", {
2218
2218
  field: U.field,
2219
2219
  newValue: R,
2220
- columnRef: r.value.get(U.field),
2221
- columnValueBefore: (se = r.value.get(U.field)) == null ? void 0 : se.value
2220
+ propsColumnValue: (re = l.all.columns.find(
2221
+ (se) => se.field === U.field
2222
+ )) == null ? void 0 : re.value
2222
2223
  }), W && (W.type === "string" || W.type === "String" ? (W.value = typeof R == "string" ? R.trim() : R, console.log("🔍 [AFTER-SET]", {
2223
2224
  afterValue: W.value,
2224
- propsValue: (ie = l.all.columns.find((ae) => ae.field === U.field)) == null ? void 0 : ie.value
2225
+ propsValue: (ie = l.all.columns.find((se) => se.field === U.field)) == null ? void 0 : ie.value
2225
2226
  })) : (W.value = R, console.log("🔍 [AFTER-SET]", {
2226
2227
  afterValue: W.value,
2227
- propsValue: ($ = l.all.columns.find((ae) => ae.field === U.field)) == null ? void 0 : $.value
2228
+ propsValue: ($ = l.all.columns.find((se) => se.field === U.field)) == null ? void 0 : $.value
2228
2229
  })), e("filterChange"), console.log("🔴 [AFTER-MUTATION]", {
2229
- columnValueAfter: (ne = r.value.get(U.field)) == null ? void 0 : ne.value
2230
+ columnValueAfter: (ne = a.value.get(U.field)) == null ? void 0 : ne.value
2230
2231
  }));
2231
2232
  },
2232
2233
  { debounce: 300 }
@@ -2242,19 +2243,19 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2242
2243
  const u = i.value[C.field];
2243
2244
  return u !== "" && u !== null && u !== void 0;
2244
2245
  }, v = (C) => {
2245
- const u = a.value[C.field] ?? C.condition;
2246
+ const u = r.value[C.field] ?? C.condition;
2246
2247
  return u && u !== "";
2247
- }, x = (C) => a.value[C.field] ?? C.condition ?? "", _ = (C) => {
2248
+ }, x = (C) => r.value[C.field] ?? C.condition ?? "", _ = (C) => {
2248
2249
  var P;
2249
2250
  const u = x(C);
2250
2251
  if (!u || u === "") return "";
2251
2252
  const D = ((P = C.type) == null ? void 0 : P.toLowerCase()) || "string", j = (rt[D] || rt.string).find((U) => U.value === u);
2252
2253
  return j ? l.columnFilterLang && l.columnFilterLang[u] ? l.columnFilterLang[u] : j.label : u;
2253
2254
  }, z = (C, u) => {
2254
- const D = r.value.get(C);
2255
- D && (D.condition = u, a.value[C] = u, e("filterChange"));
2255
+ const D = a.value.get(C);
2256
+ D && (D.condition = u, r.value[C] = u, e("filterChange"));
2256
2257
  }, E = (C) => {
2257
- i.value[C.field] = "", C.value = "", C.condition = "", a.value[C.field] = "", l.currentSortColumn === C.field && e("sortChange", l.all.sortColumn || C.field, "asc"), e("filterChange");
2258
+ i.value[C.field] = "", C.value = "", C.condition = "", r.value[C.field] = "", l.currentSortColumn === C.field && e("sortChange", l.all.sortColumn || C.field, "asc"), e("filterChange");
2258
2259
  };
2259
2260
  return (C, u) => {
2260
2261
  const D = Zn("VDropdown");
@@ -2312,7 +2313,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2312
2313
  expandall: l.all.expandall
2313
2314
  }, null, 8, ["expandedrows", "expandall"])) : T("", !0)
2314
2315
  ], 4)) : T("", !0),
2315
- (c(!0), h(H, null, re(l.all.columns, (b, j) => (c(), h(H, null, [
2316
+ (c(!0), h(H, null, ae(l.all.columns, (b, j) => (c(), h(H, null, [
2316
2317
  b.hide ? T("", !0) : (c(), h("th", {
2317
2318
  key: b.field,
2318
2319
  class: I(["bh-select-none bh-z-[1]", [
@@ -2683,13 +2684,13 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2683
2684
  const p = ((Ht = s.type) == null ? void 0 : Ht.toLowerCase()) || "string";
2684
2685
  s.type = p, 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 = !p || p === "string" ? "Contains" : "Equal";
2685
2686
  }
2686
- const i = q([]), a = q(e.page), r = q(
2687
+ const i = q([]), r = q(e.page), a = q(
2687
2688
  e.pagination ? e.pageSize : (Vt = e.rows) == null ? void 0 : Vt.length
2688
2689
  ), f = e.pageSize, g = q(e.sortColumn), v = e.sortColumn, x = q(e.sortDirection), _ = e.sortDirection, z = q(e.totalRows), E = q([]), C = q(null), u = q(e.loading), D = q(e.search);
2689
2690
  JSON.parse(JSON.stringify(e.columns));
2690
2691
  const b = q(null), j = q(null);
2691
2692
  let P = q(0);
2692
- const U = q(230), R = q(e.leftmenuDefaultWidth), W = q(!1), se = q(null), ie = /* @__PURE__ */ new Map(), $ = (s, p) => {
2693
+ const U = q(230), R = q(e.leftmenuDefaultWidth), W = q(!1), re = q(null), ie = /* @__PURE__ */ new Map(), $ = (s, p) => {
2693
2694
  if (!p) return;
2694
2695
  const m = `${s.id || JSON.stringify(s)}-${p}`;
2695
2696
  if (ie.has(m))
@@ -2707,14 +2708,14 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2707
2708
  const ne = X(() => {
2708
2709
  const s = e.columns.find((p) => p.isUnique);
2709
2710
  return (s == null ? void 0 : s.field) || null;
2710
- }), ae = X(() => ne.value ? new Map(
2711
+ }), se = X(() => ne.value ? new Map(
2711
2712
  i.value.map((s, p) => [
2712
2713
  p,
2713
2714
  s[ne.value]
2714
2715
  ])
2715
2716
  ) : null), _e = (s) => {
2716
2717
  var p;
2717
- return ne.value ? ((p = ae.value) == null ? void 0 : p.get(s)) ?? s : s;
2718
+ return ne.value ? ((p = se.value) == null ? void 0 : p.get(s)) ?? s : s;
2718
2719
  }, Ne = (s, p) => {
2719
2720
  const m = s._rowIndex !== void 0 ? s._rowIndex : s.id || p;
2720
2721
  return de.value.get(m) === !0;
@@ -2781,9 +2782,9 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2781
2782
  }
2782
2783
  }), i.value = s || [];
2783
2784
  }, Ce = () => {
2784
- if (se.value) {
2785
+ if (re.value) {
2785
2786
  const s = W.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth;
2786
- se.value.style.cssText = `
2787
+ re.value.style.cssText = `
2787
2788
  width: ${R.value}px !important;
2788
2789
  min-width: ${s}px !important;
2789
2790
  max-width: ${s}px !important;
@@ -2839,15 +2840,15 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2839
2840
  { immediate: !0 }
2840
2841
  );
2841
2842
  const Ke = (s, ...p) => s.replace(/{(\d+)}/g, (m, A) => typeof p[A] < "u" ? p[A] : m), d = X(() => {
2842
- const s = r.value < 1 ? 1 : Math.ceil(z.value / r.value);
2843
+ const s = a.value < 1 ? 1 : Math.ceil(z.value / a.value);
2843
2844
  return Math.max(s || 0, 1);
2844
- }), k = X(() => (a.value - 1) * r.value + 1), L = X(() => {
2845
- const s = a.value * r.value;
2845
+ }), k = X(() => (r.value - 1) * a.value + 1), L = X(() => {
2846
+ const s = r.value * a.value;
2846
2847
  return z.value >= s ? s : z.value;
2847
2848
  }), S = X(() => {
2848
2849
  let s, p;
2849
2850
  return typeof e.showNumbersCount < "u" && e.showNumbersCount < d.value ? (s = Math.max(
2850
- a.value - Math.floor(e.showNumbersCount / 2),
2851
+ r.value - Math.floor(e.showNumbersCount / 2),
2851
2852
  1
2852
2853
  ), p = s + e.showNumbersCount - 1, p > d.value && (p = d.value, s = p - e.showNumbersCount + 1)) : (s = 1, p = d.value), Array.from(Array(p + 1 - s).keys()).map(
2853
2854
  (M) => s + M
@@ -2862,37 +2863,37 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2862
2863
  const F = (s) => {
2863
2864
  s ? b.value === s.field ? b.value = null : b.value = s.field : b.value = null;
2864
2865
  }, O = () => {
2865
- if (a.value == 1)
2866
+ if (r.value == 1)
2866
2867
  return !1;
2867
- a.value--;
2868
+ r.value--;
2868
2869
  }, B = (s) => {
2869
- a.value = s;
2870
+ r.value = s;
2870
2871
  }, le = () => {
2871
- if (a.value >= d.value)
2872
+ if (r.value >= d.value)
2872
2873
  return !1;
2873
- a.value++;
2874
+ r.value++;
2874
2875
  };
2875
- Z(() => a.value, () => {
2876
- he(!1), e.isServerMode ? Ee("page") : (me(), K("pageChange", a.value));
2876
+ Z(() => r.value, () => {
2877
+ he(!1), e.isServerMode ? Ee("page") : (me(), K("pageChange", r.value));
2877
2878
  }), Z(() => e.rows, () => {
2878
- e.isServerMode || (a.value = 1), he(!1), me();
2879
+ e.isServerMode || (r.value = 1), he(!1), me();
2879
2880
  });
2880
2881
  const pt = (s) => {
2881
- r.value = s;
2882
+ a.value = s;
2882
2883
  };
2883
- Z(() => r.value, () => {
2884
- he(!1), e.isServerMode ? a.value === 1 ? Ee("pagesize", !0) : a.value = 1 : (a.value = 1, me(), K("pageSizeChange", r.value));
2884
+ Z(() => a.value, () => {
2885
+ he(!1), e.isServerMode ? r.value === 1 ? Ee("pagesize", !0) : r.value = 1 : (r.value = 1, me(), K("pageSizeChange", a.value));
2885
2886
  });
2886
2887
  const Qe = (s, p) => {
2887
2888
  let m = p || "asc";
2888
2889
  p || s == g.value && x.value === "asc" && (m = "desc");
2889
- let A = (a.value - 1) * r.value, M = r.value;
2890
+ let A = (r.value - 1) * a.value, M = a.value;
2890
2891
  g.value = s, x.value = m, he(!1), me(), e.isServerMode ? Ee("sort") : K("sortChange", { offset: A, limit: M, field: s, direction: m });
2891
2892
  }, qt = (s) => {
2892
2893
  C.value = s.length && i.value.length && s.length === i.value.length;
2893
2894
  const p = i.value.filter((m, A) => {
2894
2895
  var ee;
2895
- const M = ne.value ? ((ee = ae.value) == null ? void 0 : ee.get(A)) ?? A : A;
2896
+ const M = ne.value ? ((ee = se.value) == null ? void 0 : ee.get(A)) ?? A : A;
2896
2897
  return E.value.includes(M);
2897
2898
  });
2898
2899
  K("rowSelect", p);
@@ -2902,18 +2903,18 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2902
2903
  s ? E.value = i.value.map(
2903
2904
  (p, m) => {
2904
2905
  var A;
2905
- return ne.value ? ((A = ae.value) == null ? void 0 : A.get(m)) ?? m : m;
2906
+ return ne.value ? ((A = se.value) == null ? void 0 : A.get(m)) ?? m : m;
2906
2907
  }
2907
2908
  ) : E.value = [];
2908
2909
  }, Ae = () => {
2909
2910
  console.log("🔍 [CUSTOM-TABLE] filterChange called", {
2910
2911
  isServerMode: e.isServerMode,
2911
- currentPage: a.value
2912
- }), he(!1), e.isServerMode ? a.value === 1 ? Ee("filter", !0) : a.value = 1 : (a.value = 1, me(), K("filterChange", e.columns));
2912
+ currentPage: r.value
2913
+ }), he(!1), e.isServerMode ? r.value === 1 ? Ee("filter", !0) : r.value = 1 : (r.value = 1, me(), K("filterChange", e.columns));
2913
2914
  }, Dt = (s) => {
2914
2915
  Ae();
2915
2916
  }, Nn = () => {
2916
- he(!1), e.isServerMode ? a.value === 1 ? Ee("search", !0) : a.value = 1 : (a.value = 1, me(), K("searchChange", D.value));
2917
+ he(!1), e.isServerMode ? r.value === 1 ? Ee("search", !0) : r.value = 1 : (r.value = 1, me(), K("searchChange", D.value));
2917
2918
  };
2918
2919
  Z(
2919
2920
  () => e.search,
@@ -2942,9 +2943,9 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2942
2943
  }), e.isServerMode) {
2943
2944
  $n();
2944
2945
  const m = {
2945
- current_page: p ? 1 : a.value,
2946
- pagesize: r.value,
2947
- offset: (a.value - 1) * r.value,
2946
+ current_page: p ? 1 : r.value,
2947
+ pagesize: a.value,
2948
+ offset: (r.value - 1) * a.value,
2948
2949
  sort_column: g.value,
2949
2950
  sort_direction: x.value,
2950
2951
  search: D.value,
@@ -2962,29 +2963,29 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
2962
2963
  he(!1);
2963
2964
  for (let s = 0; s < e.columns.length; s++)
2964
2965
  e.columns[s].value = "";
2965
- D.value = "", r.value = f, g.value = v, x.value = _, e.isServerMode ? a.value === 1 ? Ee("reset", !0) : a.value = 1 : (a.value = 1, me());
2966
+ D.value = "", a.value = f, g.value = v, x.value = _, e.isServerMode ? r.value === 1 ? Ee("reset", !0) : r.value = 1 : (r.value = 1, me());
2966
2967
  }, An = () => i.value.filter((p, m) => {
2967
2968
  var M;
2968
- const A = ne.value ? ((M = ae.value) == null ? void 0 : M.get(m)) ?? m : m;
2969
+ const A = ne.value ? ((M = se.value) == null ? void 0 : M.get(m)) ?? m : m;
2969
2970
  return E.value.includes(A);
2970
2971
  }), Rn = () => e.columns, qn = () => {
2971
2972
  E.value = [];
2972
2973
  }, Wt = (s) => {
2973
2974
  var p;
2974
2975
  if (!Xe(s)) {
2975
- const m = ne.value ? ((p = ae.value) == null ? void 0 : p.get(s)) ?? s : s;
2976
+ const m = ne.value ? ((p = se.value) == null ? void 0 : p.get(s)) ?? s : s;
2976
2977
  E.value.push(m);
2977
2978
  }
2978
2979
  }, Bt = (s) => {
2979
2980
  var p;
2980
2981
  if (Xe(s)) {
2981
- const m = ne.value ? ((p = ae.value) == null ? void 0 : p.get(s)) ?? s : s;
2982
+ const m = ne.value ? ((p = se.value) == null ? void 0 : p.get(s)) ?? s : s;
2982
2983
  E.value = E.value.filter((A) => A !== m);
2983
2984
  }
2984
2985
  }, Xe = (s) => {
2985
2986
  var m;
2986
2987
  if (s >= i.value.length) return !1;
2987
- const p = ne.value ? ((m = ae.value) == null ? void 0 : m.get(s)) ?? s : s;
2988
+ const p = ne.value ? ((m = se.value) == null ? void 0 : m.get(s)) ?? s : s;
2988
2989
  return E.value.includes(p);
2989
2990
  }, Dn = () => {
2990
2991
  de.value.forEach((s, p) => {
@@ -3027,7 +3028,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3027
3028
  s.enableleftmenu ? (c(), h("div", {
3028
3029
  key: 0,
3029
3030
  ref_key: "leftmenuel",
3030
- ref: se,
3031
+ ref: re,
3031
3032
  class: "left-menu-container bh-relative",
3032
3033
  style: J({
3033
3034
  width: R.value + "px",
@@ -3132,7 +3133,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3132
3133
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3133
3134
  ], 2),
3134
3135
  w("tbody", null, [
3135
- (c(!0), h(H, null, re(i.value, (m, A) => (c(), h(H, {
3136
+ (c(!0), h(H, null, ae(i.value, (m, A) => (c(), h(H, {
3136
3137
  key: _e(A)
3137
3138
  }, [
3138
3139
  z.value ? (c(), h("tr", {
@@ -3199,7 +3200,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3199
3200
  expandedrows: de.value
3200
3201
  }, null, 8, ["item", "expandedrows"])
3201
3202
  ], 6)) : T("", !0),
3202
- (c(!0), h(H, null, re(e.columns, (M, ee) => (c(), h(H, null, [
3203
+ (c(!0), h(H, null, ae(e.columns, (M, ee) => (c(), h(H, null, [
3203
3204
  M.hide ? T("", !0) : (c(), h("td", {
3204
3205
  key: M.field,
3205
3206
  class: I([
@@ -3240,7 +3241,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3240
3241
  ], 8, Di)
3241
3242
  ], 10, qi)) : T("", !0)
3242
3243
  ], 64))), 128)),
3243
- !z.value && u.value && s.skeletonloader ? (c(!0), h(H, { key: 0 }, re(e.pageSize, (m) => (c(), h("tr", {
3244
+ !z.value && u.value && s.skeletonloader ? (c(!0), h(H, { key: 0 }, ae(e.pageSize, (m) => (c(), h("tr", {
3244
3245
  key: m,
3245
3246
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3246
3247
  }, [
@@ -3249,7 +3250,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3249
3250
  class: "!bh-p-0 !bh-border-transparent"
3250
3251
  }, Hi, 8, Wi)
3251
3252
  ]))), 128)) : T("", !0),
3252
- z.value ? (c(!0), h(H, { key: 1 }, re(e.footerRows, (m, A) => (c(), h("tr", {
3253
+ z.value ? (c(!0), h(H, { key: 1 }, ae(e.footerRows, (m, A) => (c(), h("tr", {
3253
3254
  key: m[ne.value] ? m[ne.value] : A,
3254
3255
  class: "sticky-table-footer"
3255
3256
  }, [
@@ -3257,7 +3258,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3257
3258
  key: 0,
3258
3259
  colspan: Q(pe)
3259
3260
  }, null, 8, Vi)) : T("", !0),
3260
- (c(!0), h(H, null, re(e.columns, (M, ee) => (c(), h(H, null, [
3261
+ (c(!0), h(H, null, ae(e.columns, (M, ee) => (c(), h(H, null, [
3261
3262
  M.hide ? T("", !0) : (c(), h("td", {
3262
3263
  key: M.field,
3263
3264
  class: I([
@@ -3370,7 +3371,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3370
3371
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3371
3372
  ], 2),
3372
3373
  w("tbody", null, [
3373
- (c(!0), h(H, null, re(i.value, (m, A) => (c(), h(H, {
3374
+ (c(!0), h(H, null, ae(i.value, (m, A) => (c(), h(H, {
3374
3375
  key: _e(A)
3375
3376
  }, [
3376
3377
  z.value ? (c(), h("tr", {
@@ -3437,7 +3438,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3437
3438
  expandedrows: de.value
3438
3439
  }, null, 8, ["item", "expandedrows"])
3439
3440
  ], 6)) : T("", !0),
3440
- (c(!0), h(H, null, re(e.columns, (M, ee) => (c(), h(H, null, [
3441
+ (c(!0), h(H, null, ae(e.columns, (M, ee) => (c(), h(H, null, [
3441
3442
  M.hide ? T("", !0) : (c(), h("td", {
3442
3443
  key: M.field,
3443
3444
  class: I([
@@ -3489,7 +3490,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3489
3490
  ], 8, Yi)
3490
3491
  ], 10, Ji)) : T("", !0)
3491
3492
  ], 64))), 128)),
3492
- !z.value && u.value && s.skeletonloader ? (c(!0), h(H, { key: 0 }, re(e.pageSize, (m) => (c(), h("tr", {
3493
+ !z.value && u.value && s.skeletonloader ? (c(!0), h(H, { key: 0 }, ae(e.pageSize, (m) => (c(), h("tr", {
3493
3494
  key: m,
3494
3495
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3495
3496
  }, [
@@ -3498,7 +3499,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3498
3499
  class: "!bh-p-0 !bh-border-transparent"
3499
3500
  }, es, 8, Xi)
3500
3501
  ]))), 128)) : T("", !0),
3501
- z.value ? (c(!0), h(H, { key: 1 }, re(e.footerRows, (m, A) => (c(), h("tr", {
3502
+ z.value ? (c(!0), h(H, { key: 1 }, ae(e.footerRows, (m, A) => (c(), h("tr", {
3502
3503
  key: m[ne.value] ? m[ne.value] : A,
3503
3504
  class: "sticky-table-footer"
3504
3505
  }, [
@@ -3506,7 +3507,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3506
3507
  key: 0,
3507
3508
  colspan: Q(pe)
3508
3509
  }, null, 8, ts)) : T("", !0),
3509
- (c(!0), h(H, null, re(e.columns, (M, ee) => (c(), h(H, null, [
3510
+ (c(!0), h(H, null, ae(e.columns, (M, ee) => (c(), h(H, null, [
3510
3511
  M.hide ? T("", !0) : (c(), h("td", {
3511
3512
  key: M.field,
3512
3513
  class: I([
@@ -3587,7 +3588,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3587
3588
  limit: L.value,
3588
3589
  showPageSize: s.showPageSize,
3589
3590
  pageSizeOptions: s.pageSizeOptions,
3590
- currentPageSize: r.value,
3591
+ currentPageSize: a.value,
3591
3592
  stringFormat: Ke,
3592
3593
  setPageSize: pt
3593
3594
  }, () => [
@@ -3600,21 +3601,21 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3600
3601
  )), 1),
3601
3602
  e.showPageSize ? ue((c(), h("select", {
3602
3603
  key: 0,
3603
- "onUpdate:modelValue": p[6] || (p[6] = (m) => r.value = m),
3604
+ "onUpdate:modelValue": p[6] || (p[6] = (m) => a.value = m),
3604
3605
  class: "bh-pagesize"
3605
3606
  }, [
3606
- (c(!0), h(H, null, re(e.pageSizeOptions, (m) => (c(), h("option", {
3607
+ (c(!0), h(H, null, ae(e.pageSizeOptions, (m) => (c(), h("option", {
3607
3608
  value: m,
3608
3609
  key: m
3609
3610
  }, V(m), 9, is))), 128))
3610
3611
  ], 512)), [
3611
- [it, r.value]
3612
+ [it, a.value]
3612
3613
  ]) : T("", !0)
3613
3614
  ])
3614
3615
  ]) : T("", !0),
3615
3616
  s.enablefooterpagination ? oe(s.$slots, "footerpagination", {
3616
3617
  key: 1,
3617
- currentPage: a.value,
3618
+ currentPage: r.value,
3618
3619
  maxPage: d.value,
3619
3620
  paging: S.value,
3620
3621
  movePage: B,
@@ -3625,8 +3626,8 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3625
3626
  e.showFirstPage ? (c(), h("button", {
3626
3627
  key: 0,
3627
3628
  type: "button",
3628
- class: I(["bh-page-item first-page", { disabled: a.value <= 1 }]),
3629
- onClick: p[7] || (p[7] = (m) => a.value = 1)
3629
+ class: I(["bh-page-item first-page", { disabled: r.value <= 1 }]),
3630
+ onClick: p[7] || (p[7] = (m) => r.value = 1)
3630
3631
  }, [
3631
3632
  e.firstArrow ? (c(), h("span", {
3632
3633
  key: 0,
@@ -3635,7 +3636,7 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3635
3636
  ], 2)) : T("", !0),
3636
3637
  w("button", {
3637
3638
  type: "button",
3638
- class: I(["bh-page-item previous-page", { disabled: a.value <= 1 }]),
3639
+ class: I(["bh-page-item previous-page", { disabled: r.value <= 1 }]),
3639
3640
  onClick: O
3640
3641
  }, [
3641
3642
  e.previousArrow ? (c(), h("span", {
@@ -3643,18 +3644,18 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3643
3644
  innerHTML: e.previousArrow
3644
3645
  }, null, 8, ds)) : (c(), h("svg", fs, ps))
3645
3646
  ], 2),
3646
- e.showNumbers ? (c(!0), h(H, { key: 1 }, re(S.value, (m) => (c(), h("button", {
3647
+ e.showNumbers ? (c(!0), h(H, { key: 1 }, ae(S.value, (m) => (c(), h("button", {
3647
3648
  key: m,
3648
3649
  type: "button",
3649
3650
  class: I(["bh-page-item", {
3650
- disabled: a.value === m,
3651
- "bh-active": m === a.value
3651
+ disabled: r.value === m,
3652
+ "bh-active": m === r.value
3652
3653
  }]),
3653
3654
  onClick: (A) => B(m)
3654
3655
  }, V(m), 11, vs))), 128)) : T("", !0),
3655
3656
  w("button", {
3656
3657
  type: "button",
3657
- class: I(["bh-page-item next-page", { disabled: a.value >= d.value }]),
3658
+ class: I(["bh-page-item next-page", { disabled: r.value >= d.value }]),
3658
3659
  onClick: le
3659
3660
  }, [
3660
3661
  e.nextArrow ? (c(), h("span", {
@@ -3665,8 +3666,8 @@ const hn = /* @__PURE__ */ Ue(Qo, [["render", Zo]]), ei = { key: "hdrrow" }, ti
3665
3666
  e.showLastPage ? (c(), h("button", {
3666
3667
  key: 2,
3667
3668
  type: "button",
3668
- class: I(["bh-page-item last-page", { disabled: a.value >= d.value }]),
3669
- onClick: p[8] || (p[8] = (m) => a.value = d.value)
3669
+ class: I(["bh-page-item last-page", { disabled: r.value >= d.value }]),
3670
+ onClick: p[8] || (p[8] = (m) => r.value = d.value)
3670
3671
  }, [
3671
3672
  e.lastArrow ? (c(), h("span", {
3672
3673
  key: 0,