@dolusoft/vue3-datatable 1.7.74 → 1.7.76

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,13 +1,13 @@
1
- import { isRef as Kn, watch as X, onMounted as Le, nextTick as Se, getCurrentScope as Jn, onScopeDispose as Yn, unref as U, getCurrentInstance as It, computed as K, ref as A, useSlots as pn, onBeforeUnmount as vn, provide as xe, openBlock as u, createBlock as re, resolveDynamicComponent as Xn, inject as Ie, createElementBlock as p, normalizeStyle as G, renderSlot as te, h as kt, defineComponent as _e, toRef as Zn, Fragment as D, withModifiers as V, createVNode as ne, createElementVNode as k, normalizeClass as P, toDisplayString as B, createCommentVNode as I, onUnmounted as mn, withDirectives as ie, renderList as oe, vModelSelect as it, createTextVNode as We, vModelText as Pe, vShow as Gt, withCtx as Ae, vModelCheckbox as Qt } from "vue";
1
+ import { isRef as Kn, watch as Z, onMounted as Le, nextTick as Se, getCurrentScope as Jn, onScopeDispose as Yn, unref as K, getCurrentInstance as It, computed as X, ref as W, useSlots as pn, onBeforeUnmount as vn, provide as xe, openBlock as c, createBlock as ue, resolveDynamicComponent as Xn, inject as Ie, createElementBlock as h, normalizeStyle as J, renderSlot as le, h as kt, defineComponent as _e, toRef as Zn, Fragment as H, withModifiers as G, createVNode as oe, createElementVNode as w, normalizeClass as I, toDisplayString as V, createCommentVNode as P, onUnmounted as mn, withDirectives as ae, renderList as re, vModelSelect as it, createTextVNode as We, vModelText as Pe, vShow as Gt, withCtx as Ae, vModelCheckbox as Qt } from "vue";
2
2
  function bn(t) {
3
3
  return Jn() ? (Yn(t), !0) : !1;
4
4
  }
5
5
  function Be(t) {
6
- return typeof t == "function" ? t() : U(t);
6
+ return typeof t == "function" ? t() : K(t);
7
7
  }
8
8
  const gn = typeof window < "u" && typeof document < "u";
9
9
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
- const el = Object.prototype.toString, tl = (t) => el.call(t) === "[object Object]", ye = () => {
10
+ const el = Object.prototype.toString, tl = (t) => el.call(t) === "[object Object]", we = () => {
11
11
  }, nl = /* @__PURE__ */ ll();
12
12
  function ll() {
13
13
  var t, o;
@@ -23,34 +23,34 @@ function Pt(t, o) {
23
23
  }
24
24
  const ol = (t) => t();
25
25
  function yn(t, o = {}) {
26
- let n, l, e = ye;
26
+ let n, l, e = we;
27
27
  const i = (a) => {
28
- clearTimeout(a), e(), e = ye;
28
+ clearTimeout(a), e(), e = we;
29
29
  };
30
30
  return (a) => {
31
- const d = Be(t), y = Be(o.maxWait);
32
- return n && i(n), d <= 0 || y !== void 0 && y <= 0 ? (l && (i(l), l = null), Promise.resolve(a())) : new Promise((g, F) => {
33
- e = o.rejectOnCancel ? F : g, y && !l && (l = setTimeout(() => {
31
+ const u = Be(t), b = Be(o.maxWait);
32
+ return n && i(n), u <= 0 || b !== void 0 && b <= 0 ? (l && (i(l), l = null), Promise.resolve(a())) : new Promise((g, C) => {
33
+ e = o.rejectOnCancel ? C : g, b && !l && (l = setTimeout(() => {
34
34
  n && i(n), l = null, g(a());
35
- }, y)), n = setTimeout(() => {
35
+ }, b)), n = setTimeout(() => {
36
36
  l && i(l), l = null, g(a());
37
- }, d);
37
+ }, u);
38
38
  });
39
39
  };
40
40
  }
41
41
  function il(...t) {
42
- let o = 0, n, l = !0, e = ye, i, r, a, d, y;
43
- !Kn(t[0]) && typeof t[0] == "object" ? { delay: r, trailing: a = !0, leading: d = !0, rejectOnCancel: y = !1 } = t[0] : [r, a = !0, d = !0, y = !1] = t;
42
+ let o = 0, n, l = !0, e = we, i, r, a, u, b;
43
+ !Kn(t[0]) && typeof t[0] == "object" ? { delay: r, trailing: a = !0, leading: u = !0, rejectOnCancel: b = !1 } = t[0] : [r, a = !0, u = !0, b = !1] = t;
44
44
  const g = () => {
45
- n && (clearTimeout(n), n = void 0, e(), e = ye);
45
+ n && (clearTimeout(n), n = void 0, e(), e = we);
46
46
  };
47
- return (E) => {
48
- const C = Be(r), b = Date.now() - o, f = () => i = E();
49
- return g(), C <= 0 ? (o = Date.now(), f()) : (b > C && (d || !l) ? (o = Date.now(), f()) : a && (i = new Promise((h, x) => {
50
- e = y ? x : h, n = setTimeout(() => {
51
- o = Date.now(), l = !0, h(f()), g();
52
- }, Math.max(0, C - b));
53
- })), !d && !n && (n = setTimeout(() => l = !0, C)), l = !1, i);
47
+ return (z) => {
48
+ const E = Be(r), T = Date.now() - o, _ = () => i = z();
49
+ return g(), E <= 0 ? (o = Date.now(), _()) : (T > E && (u || !l) ? (o = Date.now(), _()) : a && (i = new Promise((d, v) => {
50
+ e = b ? v : d, n = setTimeout(() => {
51
+ o = Date.now(), l = !0, d(_()), g();
52
+ }, Math.max(0, E - T));
53
+ })), !u && !n && (n = setTimeout(() => l = !0, E)), l = !1, i);
54
54
  };
55
55
  }
56
56
  function sl(t) {
@@ -73,7 +73,7 @@ function al(t, o, n = {}) {
73
73
  eventFilter: l = ol,
74
74
  ...e
75
75
  } = n;
76
- return X(
76
+ return Z(
77
77
  t,
78
78
  Pt(
79
79
  l,
@@ -100,7 +100,7 @@ function cl(t, o, n = {}) {
100
100
  }
101
101
  );
102
102
  }
103
- function he(t) {
103
+ function ve(t) {
104
104
  var o;
105
105
  const n = Be(t);
106
106
  return (o = n == null ? void 0 : n.$el) != null ? o : n;
@@ -109,92 +109,92 @@ const at = gn ? window : void 0;
109
109
  function bt(...t) {
110
110
  let o, n, l, e;
111
111
  if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, l, e] = t, o = at) : [o, n, l, e] = t, !o)
112
- return ye;
112
+ return we;
113
113
  Array.isArray(n) || (n = [n]), Array.isArray(l) || (l = [l]);
114
114
  const i = [], r = () => {
115
115
  i.forEach((g) => g()), i.length = 0;
116
- }, a = (g, F, E, C) => (g.addEventListener(F, E, C), () => g.removeEventListener(F, E, C)), d = X(
117
- () => [he(o), Be(e)],
118
- ([g, F]) => {
116
+ }, a = (g, C, z, E) => (g.addEventListener(C, z, E), () => g.removeEventListener(C, z, E)), u = Z(
117
+ () => [ve(o), Be(e)],
118
+ ([g, C]) => {
119
119
  if (r(), !g)
120
120
  return;
121
- const E = tl(F) ? { ...F } : F;
121
+ const z = tl(C) ? { ...C } : C;
122
122
  i.push(
123
- ...n.flatMap((C) => l.map((b) => a(g, C, b, E)))
123
+ ...n.flatMap((E) => l.map((T) => a(g, E, T, z)))
124
124
  );
125
125
  },
126
126
  { immediate: !0, flush: "post" }
127
- ), y = () => {
128
- d(), r();
127
+ ), b = () => {
128
+ u(), r();
129
129
  };
130
- return bn(y), y;
130
+ return bn(b), b;
131
131
  }
132
132
  let Jt = !1;
133
133
  function dl(t, o, n = {}) {
134
134
  const { window: l = at, ignore: e = [], capture: i = !0, detectIframe: r = !1 } = n;
135
135
  if (!l)
136
- return ye;
137
- nl && !Jt && (Jt = !0, Array.from(l.document.body.children).forEach((E) => E.addEventListener("click", ye)), l.document.documentElement.addEventListener("click", ye));
136
+ return we;
137
+ nl && !Jt && (Jt = !0, Array.from(l.document.body.children).forEach((z) => z.addEventListener("click", we)), l.document.documentElement.addEventListener("click", we));
138
138
  let a = !0;
139
- const d = (E) => e.some((C) => {
140
- if (typeof C == "string")
141
- return Array.from(l.document.querySelectorAll(C)).some((b) => b === E.target || E.composedPath().includes(b));
139
+ const u = (z) => e.some((E) => {
140
+ if (typeof E == "string")
141
+ return Array.from(l.document.querySelectorAll(E)).some((T) => T === z.target || z.composedPath().includes(T));
142
142
  {
143
- const b = he(C);
144
- return b && (E.target === b || E.composedPath().includes(b));
143
+ const T = ve(E);
144
+ return T && (z.target === T || z.composedPath().includes(T));
145
145
  }
146
146
  }), g = [
147
- bt(l, "click", (E) => {
148
- const C = he(t);
149
- if (!(!C || C === E.target || E.composedPath().includes(C))) {
150
- if (E.detail === 0 && (a = !d(E)), !a) {
147
+ bt(l, "click", (z) => {
148
+ const E = ve(t);
149
+ if (!(!E || E === z.target || z.composedPath().includes(E))) {
150
+ if (z.detail === 0 && (a = !u(z)), !a) {
151
151
  a = !0;
152
152
  return;
153
153
  }
154
- o(E);
154
+ o(z);
155
155
  }
156
156
  }, { passive: !0, capture: i }),
157
- bt(l, "pointerdown", (E) => {
158
- const C = he(t);
159
- a = !d(E) && !!(C && !E.composedPath().includes(C));
157
+ bt(l, "pointerdown", (z) => {
158
+ const E = ve(t);
159
+ a = !u(z) && !!(E && !z.composedPath().includes(E));
160
160
  }, { passive: !0 }),
161
- r && bt(l, "blur", (E) => {
161
+ r && bt(l, "blur", (z) => {
162
162
  setTimeout(() => {
163
- var C;
164
- const b = he(t);
165
- ((C = l.document.activeElement) == null ? void 0 : C.tagName) === "IFRAME" && !(b != null && b.contains(l.document.activeElement)) && o(E);
163
+ var E;
164
+ const T = ve(t);
165
+ ((E = l.document.activeElement) == null ? void 0 : E.tagName) === "IFRAME" && !(T != null && T.contains(l.document.activeElement)) && o(z);
166
166
  }, 0);
167
167
  })
168
168
  ].filter(Boolean);
169
- return () => g.forEach((E) => E());
169
+ return () => g.forEach((z) => z());
170
170
  }
171
171
  function fl() {
172
- const t = A(!1), o = It();
172
+ const t = W(!1), o = It();
173
173
  return o && Le(() => {
174
174
  t.value = !0;
175
175
  }, o), t;
176
176
  }
177
177
  function hl(t) {
178
178
  const o = fl();
179
- return K(() => (o.value, !!t()));
179
+ return X(() => (o.value, !!t()));
180
180
  }
181
181
  function pl(t, o, n = {}) {
182
182
  const { window: l = at, ...e } = n;
183
183
  let i;
184
184
  const r = hl(() => l && "ResizeObserver" in l), a = () => {
185
185
  i && (i.disconnect(), i = void 0);
186
- }, d = K(() => Array.isArray(t) ? t.map((F) => he(F)) : [he(t)]), y = X(
187
- d,
188
- (F) => {
186
+ }, u = X(() => Array.isArray(t) ? t.map((C) => ve(C)) : [ve(t)]), b = Z(
187
+ u,
188
+ (C) => {
189
189
  if (a(), r.value && l) {
190
190
  i = new ResizeObserver(o);
191
- for (const E of F)
192
- E && i.observe(E, e);
191
+ for (const z of C)
192
+ z && i.observe(z, e);
193
193
  }
194
194
  },
195
195
  { immediate: !0, flush: "post" }
196
196
  ), g = () => {
197
- a(), y();
197
+ a(), b();
198
198
  };
199
199
  return bn(g), {
200
200
  isSupported: r,
@@ -202,39 +202,39 @@ function pl(t, o, n = {}) {
202
202
  };
203
203
  }
204
204
  function vl(t, o = { width: 0, height: 0 }, n = {}) {
205
- const { window: l = at, box: e = "content-box" } = n, i = K(() => {
206
- var F, E;
207
- return (E = (F = he(t)) == null ? void 0 : F.namespaceURI) == null ? void 0 : E.includes("svg");
208
- }), r = A(o.width), a = A(o.height), { stop: d } = pl(
205
+ const { window: l = at, box: e = "content-box" } = n, i = X(() => {
206
+ var C, z;
207
+ return (z = (C = ve(t)) == null ? void 0 : C.namespaceURI) == null ? void 0 : z.includes("svg");
208
+ }), r = W(o.width), a = W(o.height), { stop: u } = pl(
209
209
  t,
210
- ([F]) => {
211
- const E = e === "border-box" ? F.borderBoxSize : e === "content-box" ? F.contentBoxSize : F.devicePixelContentBoxSize;
210
+ ([C]) => {
211
+ const z = e === "border-box" ? C.borderBoxSize : e === "content-box" ? C.contentBoxSize : C.devicePixelContentBoxSize;
212
212
  if (l && i.value) {
213
- const C = he(t);
214
- if (C) {
215
- const b = C.getBoundingClientRect();
216
- r.value = b.width, a.value = b.height;
213
+ const E = ve(t);
214
+ if (E) {
215
+ const T = E.getBoundingClientRect();
216
+ r.value = T.width, a.value = T.height;
217
217
  }
218
- } else if (E) {
219
- const C = Array.isArray(E) ? E : [E];
220
- r.value = C.reduce((b, { inlineSize: f }) => b + f, 0), a.value = C.reduce((b, { blockSize: f }) => b + f, 0);
218
+ } else if (z) {
219
+ const E = Array.isArray(z) ? z : [z];
220
+ r.value = E.reduce((T, { inlineSize: _ }) => T + _, 0), a.value = E.reduce((T, { blockSize: _ }) => T + _, 0);
221
221
  } else
222
- r.value = F.contentRect.width, a.value = F.contentRect.height;
222
+ r.value = C.contentRect.width, a.value = C.contentRect.height;
223
223
  },
224
224
  n
225
225
  );
226
226
  ul(() => {
227
- const F = he(t);
228
- F && (r.value = "offsetWidth" in F ? F.offsetWidth : o.width, a.value = "offsetHeight" in F ? F.offsetHeight : o.height);
227
+ const C = ve(t);
228
+ C && (r.value = "offsetWidth" in C ? C.offsetWidth : o.width, a.value = "offsetHeight" in C ? C.offsetHeight : o.height);
229
229
  });
230
- const y = X(
231
- () => he(t),
232
- (F) => {
233
- r.value = F ? o.width : 0, a.value = F ? o.height : 0;
230
+ const b = Z(
231
+ () => ve(t),
232
+ (C) => {
233
+ r.value = C ? o.width : 0, a.value = C ? o.height : 0;
234
234
  }
235
235
  );
236
236
  function g() {
237
- d(), y();
237
+ u(), b();
238
238
  }
239
239
  return {
240
240
  width: r,
@@ -265,198 +265,198 @@ const Yt = {
265
265
  "splitter-dblclick"
266
266
  ],
267
267
  setup(t, { emit: o }) {
268
- const n = o, l = t, e = pn(), i = A([]), r = K(() => i.value.reduce((c, S) => (c[~~S.id] = S) && c, {})), a = K(() => i.value.length), d = A(null), y = A(!1), g = A({
268
+ const n = o, l = t, e = pn(), i = W([]), r = X(() => i.value.reduce((f, k) => (f[~~k.id] = k) && f, {})), a = X(() => i.value.length), u = W(null), b = W(!1), g = W({
269
269
  mouseDown: !1,
270
270
  dragging: !1,
271
271
  activeSplitter: null,
272
272
  cursorOffset: 0
273
273
  // Cursor offset within the splitter.
274
- }), F = A({
274
+ }), C = W({
275
275
  // Used to detect double click on touch devices.
276
276
  splitter: null,
277
277
  timeoutId: null
278
- }), E = K(() => ({
278
+ }), z = X(() => ({
279
279
  [`splitpanes splitpanes--${l.horizontal ? "horizontal" : "vertical"}`]: !0,
280
280
  "splitpanes--dragging": g.value.dragging
281
- })), C = () => {
282
- document.addEventListener("mousemove", h, { passive: !1 }), document.addEventListener("mouseup", x), "ontouchstart" in window && (document.addEventListener("touchmove", h, { passive: !1 }), document.addEventListener("touchend", x));
283
- }, b = () => {
284
- document.removeEventListener("mousemove", h, { passive: !1 }), document.removeEventListener("mouseup", x), "ontouchstart" in window && (document.removeEventListener("touchmove", h, { passive: !1 }), document.removeEventListener("touchend", x));
285
- }, f = (c, S) => {
286
- const z = c.target.closest(".splitpanes__splitter");
287
- if (z) {
288
- const { left: L, top: _ } = z.getBoundingClientRect(), { clientX: N, clientY: W } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
289
- g.value.cursorOffset = l.horizontal ? W - _ : N - L;
281
+ })), E = () => {
282
+ document.addEventListener("mousemove", d, { passive: !1 }), document.addEventListener("mouseup", v), "ontouchstart" in window && (document.addEventListener("touchmove", d, { passive: !1 }), document.addEventListener("touchend", v));
283
+ }, T = () => {
284
+ document.removeEventListener("mousemove", d, { passive: !1 }), document.removeEventListener("mouseup", v), "ontouchstart" in window && (document.removeEventListener("touchmove", d, { passive: !1 }), document.removeEventListener("touchend", v));
285
+ }, _ = (f, k) => {
286
+ const F = f.target.closest(".splitpanes__splitter");
287
+ if (F) {
288
+ const { left: x, top: S } = F.getBoundingClientRect(), { clientX: O, clientY: B } = "ontouchstart" in window && f.touches ? f.touches[0] : f;
289
+ g.value.cursorOffset = l.horizontal ? B - S : O - x;
290
290
  }
291
- C(), g.value.mouseDown = !0, g.value.activeSplitter = S;
292
- }, h = (c) => {
293
- g.value.mouseDown && (c.preventDefault(), g.value.dragging = !0, requestAnimationFrame(() => {
294
- H(we(c)), j("resize", { event: c }, !0);
291
+ E(), g.value.mouseDown = !0, g.value.activeSplitter = k;
292
+ }, d = (f) => {
293
+ g.value.mouseDown && (f.preventDefault(), g.value.dragging = !0, requestAnimationFrame(() => {
294
+ j(U(f)), Q("resize", { event: f }, !0);
295
295
  }));
296
- }, x = (c) => {
297
- g.value.dragging && j("resized", { event: c }, !0), g.value.mouseDown = !1, g.value.activeSplitter = null, setTimeout(() => {
298
- g.value.dragging = !1, b();
296
+ }, v = (f) => {
297
+ g.value.dragging && Q("resized", { event: f }, !0), g.value.mouseDown = !1, g.value.activeSplitter = null, setTimeout(() => {
298
+ g.value.dragging = !1, T();
299
299
  }, 100);
300
- }, R = (c, S) => {
301
- "ontouchstart" in window && (c.preventDefault(), F.value.splitter === S ? (clearTimeout(F.value.timeoutId), F.value.timeoutId = null, J(c, S), F.value.splitter = null) : (F.value.splitter = S, F.value.timeoutId = setTimeout(() => F.value.splitter = null, 500))), g.value.dragging || j("splitter-click", { event: c, index: S }, !0);
302
- }, J = (c, S) => {
303
- if (j("splitter-dblclick", { event: c, index: S }, !0), l.maximizePanes) {
304
- let z = 0;
305
- i.value = i.value.map((L, _) => (L.size = _ === S ? L.max : L.min, _ !== S && (z += L.min), L)), i.value[S].size -= z, j("pane-maximize", { event: c, index: S, pane: i.value[S] }), j("resized", { event: c, index: S }, !0);
300
+ }, D = (f, k) => {
301
+ "ontouchstart" in window && (f.preventDefault(), C.value.splitter === k ? (clearTimeout(C.value.timeoutId), C.value.timeoutId = null, L(f, k), C.value.splitter = null) : (C.value.splitter = k, C.value.timeoutId = setTimeout(() => C.value.splitter = null, 500))), g.value.dragging || Q("splitter-click", { event: f, index: k }, !0);
302
+ }, L = (f, k) => {
303
+ if (Q("splitter-dblclick", { event: f, index: k }, !0), l.maximizePanes) {
304
+ let F = 0;
305
+ i.value = i.value.map((x, S) => (x.size = S === k ? x.max : x.min, S !== k && (F += x.min), x)), i.value[k].size -= F, Q("pane-maximize", { event: f, index: k, pane: i.value[k] }), Q("resized", { event: f, index: k }, !0);
306
306
  }
307
- }, Y = (c, S) => {
308
- j("pane-click", {
309
- event: c,
310
- index: r.value[S].index,
311
- pane: r.value[S]
307
+ }, N = (f, k) => {
308
+ Q("pane-click", {
309
+ event: f,
310
+ index: r.value[k].index,
311
+ pane: r.value[k]
312
312
  });
313
- }, we = (c) => {
314
- const S = d.value.getBoundingClientRect(), { clientX: z, clientY: L } = "ontouchstart" in window && c.touches ? c.touches[0] : c;
313
+ }, U = (f) => {
314
+ const k = u.value.getBoundingClientRect(), { clientX: F, clientY: x } = "ontouchstart" in window && f.touches ? f.touches[0] : f;
315
315
  return {
316
- x: z - (l.horizontal ? 0 : g.value.cursorOffset) - S.left,
317
- y: L - (l.horizontal ? g.value.cursorOffset : 0) - S.top
316
+ x: F - (l.horizontal ? 0 : g.value.cursorOffset) - k.left,
317
+ y: x - (l.horizontal ? g.value.cursorOffset : 0) - k.top
318
318
  };
319
- }, q = (c) => {
320
- c = c[l.horizontal ? "y" : "x"];
321
- const S = d.value[l.horizontal ? "clientHeight" : "clientWidth"];
322
- return l.rtl && !l.horizontal && (c = S - c), c * 100 / S;
323
- }, H = (c) => {
324
- const S = g.value.activeSplitter;
325
- let z = {
326
- prevPanesSize: se(S),
327
- nextPanesSize: O(S),
319
+ }, q = (f) => {
320
+ f = f[l.horizontal ? "y" : "x"];
321
+ const k = u.value[l.horizontal ? "clientHeight" : "clientWidth"];
322
+ return l.rtl && !l.horizontal && (f = k - f), f * 100 / k;
323
+ }, j = (f) => {
324
+ const k = g.value.activeSplitter;
325
+ let F = {
326
+ prevPanesSize: se(k),
327
+ nextPanesSize: A(k),
328
328
  prevReachedMinPanes: 0,
329
329
  nextReachedMinPanes: 0
330
330
  };
331
- const L = 0 + (l.pushOtherPanes ? 0 : z.prevPanesSize), _ = 100 - (l.pushOtherPanes ? 0 : z.nextPanesSize), N = Math.max(Math.min(q(c), _), L);
332
- let W = [S, S + 1], ee = i.value[W[0]] || null, ue = i.value[W[1]] || null;
333
- const ht = ee.max < 100 && N >= ee.max + z.prevPanesSize, pt = ue.max < 100 && N <= 100 - (ue.max + O(S + 1));
331
+ const x = 0 + (l.pushOtherPanes ? 0 : F.prevPanesSize), S = 100 - (l.pushOtherPanes ? 0 : F.nextPanesSize), O = Math.max(Math.min(q(f), S), x);
332
+ let B = [k, k + 1], te = i.value[B[0]] || null, fe = i.value[B[1]] || null;
333
+ const ht = te.max < 100 && O >= te.max + F.prevPanesSize, pt = fe.max < 100 && O <= 100 - (fe.max + A(k + 1));
334
334
  if (ht || pt) {
335
- ht ? (ee.size = ee.max, ue.size = Math.max(100 - ee.max - z.prevPanesSize - z.nextPanesSize, 0)) : (ee.size = Math.max(100 - ue.max - z.prevPanesSize - O(S + 1), 0), ue.size = ue.max);
335
+ ht ? (te.size = te.max, fe.size = Math.max(100 - te.max - F.prevPanesSize - F.nextPanesSize, 0)) : (te.size = Math.max(100 - fe.max - F.prevPanesSize - A(k + 1), 0), fe.size = fe.max);
336
336
  return;
337
337
  }
338
338
  if (l.pushOtherPanes) {
339
- const vt = ce(z, N);
339
+ const vt = ie(F, O);
340
340
  if (!vt) return;
341
- ({ sums: z, panesToResize: W } = vt), ee = i.value[W[0]] || null, ue = i.value[W[1]] || null;
341
+ ({ sums: F, panesToResize: B } = vt), te = i.value[B[0]] || null, fe = i.value[B[1]] || null;
342
342
  }
343
- ee !== null && (ee.size = Math.min(Math.max(N - z.prevPanesSize - z.prevReachedMinPanes, ee.min), ee.max)), ue !== null && (ue.size = Math.min(Math.max(100 - N - z.nextPanesSize - z.nextReachedMinPanes, ue.min), ue.max));
344
- }, ce = (c, S) => {
345
- const z = g.value.activeSplitter, L = [z, z + 1];
346
- return S < c.prevPanesSize + i.value[L[0]].min && (L[0] = le(z).index, c.prevReachedMinPanes = 0, L[0] < z && i.value.forEach((_, N) => {
347
- N > L[0] && N <= z && (_.size = _.min, c.prevReachedMinPanes += _.min);
348
- }), c.prevPanesSize = se(L[0]), L[0] === void 0) ? (c.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((_, N) => {
349
- N > 0 && N <= z && (_.size = _.min, c.prevReachedMinPanes += _.min);
350
- }), i.value[L[1]].size = 100 - c.prevReachedMinPanes - i.value[0].min - c.prevPanesSize - c.nextPanesSize, null) : S > 100 - c.nextPanesSize - i.value[L[1]].min && (L[1] = ve(z).index, c.nextReachedMinPanes = 0, L[1] > z + 1 && i.value.forEach((_, N) => {
351
- N > z && N < L[1] && (_.size = _.min, c.nextReachedMinPanes += _.min);
352
- }), c.nextPanesSize = O(L[1] - 1), L[1] === void 0) ? (c.nextReachedMinPanes = 0, i.value.forEach((_, N) => {
353
- N < a.value - 1 && N >= z + 1 && (_.size = _.min, c.nextReachedMinPanes += _.min);
354
- }), i.value[L[0]].size = 100 - c.prevPanesSize - O(L[0] - 1), null) : { sums: c, panesToResize: L };
355
- }, se = (c) => i.value.reduce((S, z, L) => S + (L < c ? z.size : 0), 0), O = (c) => i.value.reduce((S, z, L) => S + (L > c + 1 ? z.size : 0), 0), le = (c) => [...i.value].reverse().find((S) => S.index < c && S.size > S.min) || {}, ve = (c) => i.value.find((S) => S.index > c + 1 && S.size > S.min) || {}, ze = () => {
356
- var c;
357
- const S = Array.from(((c = d.value) == null ? void 0 : c.children) || []);
358
- for (const z of S) {
359
- const L = z.classList.contains("splitpanes__pane"), _ = z.classList.contains("splitpanes__splitter");
360
- !L && !_ && (z.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
343
+ te !== null && (te.size = Math.min(Math.max(O - F.prevPanesSize - F.prevReachedMinPanes, te.min), te.max)), fe !== null && (fe.size = Math.min(Math.max(100 - O - F.nextPanesSize - F.nextReachedMinPanes, fe.min), fe.max));
344
+ }, ie = (f, k) => {
345
+ const F = g.value.activeSplitter, x = [F, F + 1];
346
+ return k < f.prevPanesSize + i.value[x[0]].min && (x[0] = ne(F).index, f.prevReachedMinPanes = 0, x[0] < F && i.value.forEach((S, O) => {
347
+ O > x[0] && O <= F && (S.size = S.min, f.prevReachedMinPanes += S.min);
348
+ }), f.prevPanesSize = se(x[0]), x[0] === void 0) ? (f.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((S, O) => {
349
+ O > 0 && O <= F && (S.size = S.min, f.prevReachedMinPanes += S.min);
350
+ }), i.value[x[1]].size = 100 - f.prevReachedMinPanes - i.value[0].min - f.prevPanesSize - f.nextPanesSize, null) : k > 100 - f.nextPanesSize - i.value[x[1]].min && (x[1] = ce(F).index, f.nextReachedMinPanes = 0, x[1] > F + 1 && i.value.forEach((S, O) => {
351
+ O > F && O < x[1] && (S.size = S.min, f.nextReachedMinPanes += S.min);
352
+ }), f.nextPanesSize = A(x[1] - 1), x[1] === void 0) ? (f.nextReachedMinPanes = 0, i.value.forEach((S, O) => {
353
+ O < a.value - 1 && O >= F + 1 && (S.size = S.min, f.nextReachedMinPanes += S.min);
354
+ }), i.value[x[0]].size = 100 - f.prevPanesSize - A(x[0] - 1), null) : { sums: f, panesToResize: x };
355
+ }, se = (f) => i.value.reduce((k, F, x) => k + (x < f ? F.size : 0), 0), A = (f) => i.value.reduce((k, F, x) => k + (x > f + 1 ? F.size : 0), 0), ne = (f) => [...i.value].reverse().find((k) => k.index < f && k.size > k.min) || {}, ce = (f) => i.value.find((k) => k.index > f + 1 && k.size > k.min) || {}, ze = () => {
356
+ var f;
357
+ const k = Array.from(((f = u.value) == null ? void 0 : f.children) || []);
358
+ for (const F of k) {
359
+ const x = F.classList.contains("splitpanes__pane"), S = F.classList.contains("splitpanes__splitter");
360
+ !x && !S && (F.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
361
361
  }
362
- }, Te = (c, S, z = !1) => {
363
- const L = c - 1, _ = document.createElement("div");
364
- _.classList.add("splitpanes__splitter"), z || (_.onmousedown = (N) => f(N, L), typeof window < "u" && "ontouchstart" in window && (_.ontouchstart = (N) => f(N, L)), _.onclick = (N) => R(N, L + 1)), _.ondblclick = (N) => J(N, L + 1), S.parentNode.insertBefore(_, S);
365
- }, Ee = (c) => {
366
- c.onmousedown = void 0, c.onclick = void 0, c.ondblclick = void 0, c.remove();
367
- }, me = () => {
368
- var c;
369
- const S = Array.from(((c = d.value) == null ? void 0 : c.children) || []);
370
- for (const L of S)
371
- L.className.includes("splitpanes__splitter") && Ee(L);
372
- let z = 0;
373
- for (const L of S)
374
- L.className.includes("splitpanes__pane") && (!z && l.firstSplitter ? Te(z, L, !0) : z && Te(z, L), z++);
375
- }, Ne = ({ uid: c, ...S }) => {
376
- const z = r.value[c];
377
- for (const [L, _] of Object.entries(S)) z[L] = _;
378
- }, ft = (c) => {
379
- var S;
380
- let z = -1;
381
- Array.from(((S = d.value) == null ? void 0 : S.children) || []).some((L) => (L.className.includes("splitpanes__pane") && z++, L.isSameNode(c.el))), i.value.splice(z, 0, { ...c, index: z }), i.value.forEach((L, _) => L.index = _), y.value && Se(() => {
382
- me(), ae({ addedPane: i.value[z] }), j("pane-add", { pane: i.value[z] });
362
+ }, Te = (f, k, F = !1) => {
363
+ const x = f - 1, S = document.createElement("div");
364
+ S.classList.add("splitpanes__splitter"), F || (S.onmousedown = (O) => _(O, x), typeof window < "u" && "ontouchstart" in window && (S.ontouchstart = (O) => _(O, x)), S.onclick = (O) => D(O, x + 1)), S.ondblclick = (O) => L(O, x + 1), k.parentNode.insertBefore(S, k);
365
+ }, Ee = (f) => {
366
+ f.onmousedown = void 0, f.onclick = void 0, f.ondblclick = void 0, f.remove();
367
+ }, be = () => {
368
+ var f;
369
+ const k = Array.from(((f = u.value) == null ? void 0 : f.children) || []);
370
+ for (const x of k)
371
+ x.className.includes("splitpanes__splitter") && Ee(x);
372
+ let F = 0;
373
+ for (const x of k)
374
+ x.className.includes("splitpanes__pane") && (!F && l.firstSplitter ? Te(F, x, !0) : F && Te(F, x), F++);
375
+ }, Ne = ({ uid: f, ...k }) => {
376
+ const F = r.value[f];
377
+ for (const [x, S] of Object.entries(k)) F[x] = S;
378
+ }, ft = (f) => {
379
+ var k;
380
+ let F = -1;
381
+ Array.from(((k = u.value) == null ? void 0 : k.children) || []).some((x) => (x.className.includes("splitpanes__pane") && F++, x.isSameNode(f.el))), i.value.splice(F, 0, { ...f, index: F }), i.value.forEach((x, S) => x.index = S), b.value && Se(() => {
382
+ be(), de({ addedPane: i.value[F] }), Q("pane-add", { pane: i.value[F] });
383
383
  });
384
- }, Ue = (c) => {
385
- const S = i.value.findIndex((L) => L.id === c);
386
- i.value[S].el = null;
387
- const z = i.value.splice(S, 1)[0];
388
- i.value.forEach((L, _) => L.index = _), Se(() => {
389
- me(), j("pane-remove", { pane: z }), ae({ removedPane: { ...z } });
384
+ }, Ue = (f) => {
385
+ const k = i.value.findIndex((x) => x.id === f);
386
+ i.value[k].el = null;
387
+ const F = i.value.splice(k, 1)[0];
388
+ i.value.forEach((x, S) => x.index = S), Se(() => {
389
+ be(), Q("pane-remove", { pane: F }), de({ removedPane: { ...F } });
390
390
  });
391
- }, ae = (c = {}) => {
392
- !c.addedPane && !c.removedPane ? ke() : i.value.some((S) => S.givenSize !== null || S.min || S.max < 100) ? Ge(c) : pe(), y.value && j("resized");
393
- }, pe = () => {
394
- const c = 100 / a.value;
395
- let S = 0;
396
- const z = [], L = [];
397
- for (const _ of i.value)
398
- _.size = Math.max(Math.min(c, _.max), _.min), S -= _.size, _.size >= _.max && z.push(_.id), _.size <= _.min && L.push(_.id);
399
- S > 0.1 && $e(S, z, L);
391
+ }, de = (f = {}) => {
392
+ !f.addedPane && !f.removedPane ? ke() : i.value.some((k) => k.givenSize !== null || k.min || k.max < 100) ? Ge(f) : me(), b.value && Q("resized");
393
+ }, me = () => {
394
+ const f = 100 / a.value;
395
+ let k = 0;
396
+ const F = [], x = [];
397
+ for (const S of i.value)
398
+ S.size = Math.max(Math.min(f, S.max), S.min), k -= S.size, S.size >= S.max && F.push(S.id), S.size <= S.min && x.push(S.id);
399
+ k > 0.1 && $e(k, F, x);
400
400
  }, ke = () => {
401
- let c = 100;
402
- const S = [], z = [];
403
- let L = 0;
404
- for (const N of i.value)
405
- c -= N.size, N.givenSize !== null && L++, N.size >= N.max && S.push(N.id), N.size <= N.min && z.push(N.id);
406
- let _ = 100;
407
- if (c > 0.1) {
408
- for (const N of i.value)
409
- N.givenSize === null && (N.size = Math.max(Math.min(c / (a.value - L), N.max), N.min)), _ -= N.size;
410
- _ > 0.1 && $e(_, S, z);
401
+ let f = 100;
402
+ const k = [], F = [];
403
+ let x = 0;
404
+ for (const O of i.value)
405
+ f -= O.size, O.givenSize !== null && x++, O.size >= O.max && k.push(O.id), O.size <= O.min && F.push(O.id);
406
+ let S = 100;
407
+ if (f > 0.1) {
408
+ for (const O of i.value)
409
+ O.givenSize === null && (O.size = Math.max(Math.min(f / (a.value - x), O.max), O.min)), S -= O.size;
410
+ S > 0.1 && $e(S, k, F);
411
411
  }
412
- }, Ge = ({ addedPane: c, removedPane: S } = {}) => {
413
- let z = 100 / a.value, L = 0;
414
- const _ = [], N = [];
415
- ((c == null ? void 0 : c.givenSize) ?? null) !== null && (z = (100 - c.givenSize) / (a.value - 1));
416
- for (const W of i.value)
417
- L -= W.size, W.size >= W.max && _.push(W.id), W.size <= W.min && N.push(W.id);
418
- if (!(Math.abs(L) < 0.1)) {
419
- for (const W of i.value)
420
- (c == null ? void 0 : c.givenSize) !== null && (c == null ? void 0 : c.id) === W.id || (W.size = Math.max(Math.min(z, W.max), W.min)), L -= W.size, W.size >= W.max && _.push(W.id), W.size <= W.min && N.push(W.id);
421
- L > 0.1 && $e(L, _, N);
412
+ }, Ge = ({ addedPane: f, removedPane: k } = {}) => {
413
+ let F = 100 / a.value, x = 0;
414
+ const S = [], O = [];
415
+ ((f == null ? void 0 : f.givenSize) ?? null) !== null && (F = (100 - f.givenSize) / (a.value - 1));
416
+ for (const B of i.value)
417
+ x -= B.size, B.size >= B.max && S.push(B.id), B.size <= B.min && O.push(B.id);
418
+ if (!(Math.abs(x) < 0.1)) {
419
+ for (const B of i.value)
420
+ (f == null ? void 0 : f.givenSize) !== null && (f == null ? void 0 : f.id) === B.id || (B.size = Math.max(Math.min(F, B.max), B.min)), x -= B.size, B.size >= B.max && S.push(B.id), B.size <= B.min && O.push(B.id);
421
+ x > 0.1 && $e(x, S, O);
422
422
  }
423
- }, $e = (c, S, z) => {
424
- let L;
425
- c > 0 ? L = c / (a.value - S.length) : L = c / (a.value - z.length), i.value.forEach((_, N) => {
426
- if (c > 0 && !S.includes(_.id)) {
427
- const W = Math.max(Math.min(_.size + L, _.max), _.min), ee = W - _.size;
428
- c -= ee, _.size = W;
429
- } else if (!z.includes(_.id)) {
430
- const W = Math.max(Math.min(_.size + L, _.max), _.min), ee = W - _.size;
431
- c -= ee, _.size = W;
423
+ }, $e = (f, k, F) => {
424
+ let x;
425
+ f > 0 ? x = f / (a.value - k.length) : x = f / (a.value - F.length), i.value.forEach((S, O) => {
426
+ if (f > 0 && !k.includes(S.id)) {
427
+ const B = Math.max(Math.min(S.size + x, S.max), S.min), te = B - S.size;
428
+ f -= te, S.size = B;
429
+ } else if (!F.includes(S.id)) {
430
+ const B = Math.max(Math.min(S.size + x, S.max), S.min), te = B - S.size;
431
+ f -= te, S.size = B;
432
432
  }
433
- }), Math.abs(c) > 0.1 && Se(() => {
434
- y.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
433
+ }), Math.abs(f) > 0.1 && Se(() => {
434
+ b.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
435
435
  });
436
- }, j = (c, S = void 0, z = !1) => {
437
- const L = (S == null ? void 0 : S.index) ?? g.value.activeSplitter ?? null;
438
- n(c, {
439
- ...S,
440
- ...L !== null && { index: L },
441
- ...z && L !== null && {
442
- prevPane: i.value[L - (l.firstSplitter ? 1 : 0)],
443
- nextPane: i.value[L + (l.firstSplitter ? 0 : 1)]
436
+ }, Q = (f, k = void 0, F = !1) => {
437
+ const x = (k == null ? void 0 : k.index) ?? g.value.activeSplitter ?? null;
438
+ n(f, {
439
+ ...k,
440
+ ...x !== null && { index: x },
441
+ ...F && x !== null && {
442
+ prevPane: i.value[x - (l.firstSplitter ? 1 : 0)],
443
+ nextPane: i.value[x + (l.firstSplitter ? 0 : 1)]
444
444
  },
445
- panes: i.value.map((_) => ({ min: _.min, max: _.max, size: _.size }))
445
+ panes: i.value.map((S) => ({ min: S.min, max: S.max, size: S.size }))
446
446
  });
447
447
  };
448
- X(() => l.firstSplitter, () => me()), Le(() => {
449
- ze(), me(), ae(), j("ready"), y.value = !0;
450
- }), vn(() => y.value = !1);
448
+ Z(() => l.firstSplitter, () => be()), Le(() => {
449
+ ze(), be(), de(), Q("ready"), b.value = !0;
450
+ }), vn(() => b.value = !1);
451
451
  const Qe = () => {
452
- var c;
452
+ var f;
453
453
  return kt(
454
454
  "div",
455
- { ref: d, class: E.value },
456
- (c = e.default) == null ? void 0 : c.call(e)
455
+ { ref: u, class: z.value },
456
+ (f = e.default) == null ? void 0 : f.call(e)
457
457
  );
458
458
  };
459
- return xe("panes", i), xe("indexedPanes", r), xe("horizontal", K(() => l.horizontal)), xe("requestUpdate", Ne), xe("onPaneAdd", ft), xe("onPaneRemove", Ue), xe("onPaneClick", Y), (c, S) => (u(), re(Xn(Qe)));
459
+ return xe("panes", i), xe("indexedPanes", r), xe("horizontal", X(() => l.horizontal)), xe("requestUpdate", Ne), xe("onPaneAdd", ft), xe("onPaneRemove", Ue), xe("onPaneClick", N), (f, k) => (c(), ue(Xn(Qe)));
460
460
  }
461
461
  }, gt = {
462
462
  __name: "pane",
@@ -467,38 +467,38 @@ const Yt = {
467
467
  },
468
468
  setup(t) {
469
469
  var o;
470
- const n = t, l = Ie("requestUpdate"), e = Ie("onPaneAdd"), i = Ie("horizontal"), r = Ie("onPaneRemove"), a = Ie("onPaneClick"), d = (o = It()) == null ? void 0 : o.uid, y = Ie("indexedPanes"), g = K(() => y.value[d]), F = A(null), E = K(() => {
471
- const h = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
472
- return Math.max(Math.min(h, b.value), C.value);
473
- }), C = K(() => {
474
- const h = parseFloat(n.minSize);
475
- return isNaN(h) ? 0 : h;
476
- }), b = K(() => {
477
- const h = parseFloat(n.maxSize);
478
- return isNaN(h) ? 100 : h;
479
- }), f = K(() => {
480
- var h;
481
- return `${i.value ? "height" : "width"}: ${(h = g.value) == null ? void 0 : h.size}%`;
470
+ const n = t, l = Ie("requestUpdate"), e = Ie("onPaneAdd"), i = Ie("horizontal"), r = Ie("onPaneRemove"), a = Ie("onPaneClick"), u = (o = It()) == null ? void 0 : o.uid, b = Ie("indexedPanes"), g = X(() => b.value[u]), C = W(null), z = X(() => {
471
+ const d = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
472
+ return Math.max(Math.min(d, T.value), E.value);
473
+ }), E = X(() => {
474
+ const d = parseFloat(n.minSize);
475
+ return isNaN(d) ? 0 : d;
476
+ }), T = X(() => {
477
+ const d = parseFloat(n.maxSize);
478
+ return isNaN(d) ? 100 : d;
479
+ }), _ = X(() => {
480
+ var d;
481
+ return `${i.value ? "height" : "width"}: ${(d = g.value) == null ? void 0 : d.size}%`;
482
482
  });
483
- return X(() => E.value, (h) => l({ uid: d, size: h })), X(() => C.value, (h) => l({ uid: d, min: h })), X(() => b.value, (h) => l({ uid: d, max: h })), Le(() => {
483
+ return Z(() => z.value, (d) => l({ uid: u, size: d })), Z(() => E.value, (d) => l({ uid: u, min: d })), Z(() => T.value, (d) => l({ uid: u, max: d })), Le(() => {
484
484
  e({
485
- id: d,
486
- el: F.value,
487
- min: C.value,
488
- max: b.value,
485
+ id: u,
486
+ el: C.value,
487
+ min: E.value,
488
+ max: T.value,
489
489
  // The given size (useful to know the user intention).
490
- givenSize: n.size === void 0 ? null : E.value,
491
- size: E.value
490
+ givenSize: n.size === void 0 ? null : z.value,
491
+ size: z.value
492
492
  // The computed current size at any time.
493
493
  });
494
- }), vn(() => r(d)), (h, x) => (u(), p("div", {
494
+ }), vn(() => r(u)), (d, v) => (c(), h("div", {
495
495
  ref_key: "paneEl",
496
- ref: F,
496
+ ref: C,
497
497
  class: "splitpanes__pane",
498
- onClick: x[0] || (x[0] = (R) => U(a)(R, h._.uid)),
499
- style: G(f.value)
498
+ onClick: v[0] || (v[0] = (D) => K(a)(D, d._.uid)),
499
+ style: J(_.value)
500
500
  }, [
501
- te(h.$slots, "default")
501
+ le(d.$slots, "default")
502
502
  ], 4));
503
503
  }
504
504
  }, De = /^[a-z0-9]+(-[a-z0-9]+)*$/, ut = (t, o, n, l = "") => {
@@ -511,13 +511,13 @@ const Yt = {
511
511
  if (e.length > 3 || !e.length)
512
512
  return null;
513
513
  if (e.length > 1) {
514
- const a = e.pop(), d = e.pop(), y = {
514
+ const a = e.pop(), u = e.pop(), b = {
515
515
  // Allow provider without '@': "provider:prefix:name"
516
516
  provider: e.length > 0 ? e[0] : l,
517
- prefix: d,
517
+ prefix: u,
518
518
  name: a
519
519
  };
520
- return o && !nt(y) ? null : y;
520
+ return o && !nt(b) ? null : b;
521
521
  }
522
522
  const i = e[0], r = i.split("-");
523
523
  if (r.length > 1) {
@@ -575,8 +575,8 @@ function bl(t, o) {
575
575
  return e[r] = [];
576
576
  if (!(r in e)) {
577
577
  e[r] = null;
578
- const a = l[r] && l[r].parent, d = a && i(a);
579
- d && (e[r] = [a].concat(d));
578
+ const a = l[r] && l[r].parent, u = a && i(a);
579
+ u && (e[r] = [a].concat(u));
580
580
  }
581
581
  return e[r];
582
582
  }
@@ -779,49 +779,49 @@ function Il(t, o) {
779
779
  height: n.height
780
780
  };
781
781
  let i = n.body;
782
- [n, l].forEach((f) => {
783
- const h = [], x = f.hFlip, R = f.vFlip;
784
- let J = f.rotate;
785
- x ? R ? J += 2 : (h.push(
782
+ [n, l].forEach((_) => {
783
+ const d = [], v = _.hFlip, D = _.vFlip;
784
+ let L = _.rotate;
785
+ v ? D ? L += 2 : (d.push(
786
786
  "translate(" + (e.width + e.left).toString() + " " + (0 - e.top).toString() + ")"
787
- ), h.push("scale(-1 1)"), e.top = e.left = 0) : R && (h.push(
787
+ ), d.push("scale(-1 1)"), e.top = e.left = 0) : D && (d.push(
788
788
  "translate(" + (0 - e.left).toString() + " " + (e.height + e.top).toString() + ")"
789
- ), h.push("scale(1 -1)"), e.top = e.left = 0);
790
- let Y;
791
- switch (J < 0 && (J -= Math.floor(J / 4) * 4), J = J % 4, J) {
789
+ ), d.push("scale(1 -1)"), e.top = e.left = 0);
790
+ let N;
791
+ switch (L < 0 && (L -= Math.floor(L / 4) * 4), L = L % 4, L) {
792
792
  case 1:
793
- Y = e.height / 2 + e.top, h.unshift(
794
- "rotate(90 " + Y.toString() + " " + Y.toString() + ")"
793
+ N = e.height / 2 + e.top, d.unshift(
794
+ "rotate(90 " + N.toString() + " " + N.toString() + ")"
795
795
  );
796
796
  break;
797
797
  case 2:
798
- h.unshift(
798
+ d.unshift(
799
799
  "rotate(180 " + (e.width / 2 + e.left).toString() + " " + (e.height / 2 + e.top).toString() + ")"
800
800
  );
801
801
  break;
802
802
  case 3:
803
- Y = e.width / 2 + e.left, h.unshift(
804
- "rotate(-90 " + Y.toString() + " " + Y.toString() + ")"
803
+ N = e.width / 2 + e.left, d.unshift(
804
+ "rotate(-90 " + N.toString() + " " + N.toString() + ")"
805
805
  );
806
806
  break;
807
807
  }
808
- J % 2 === 1 && (e.left !== e.top && (Y = e.left, e.left = e.top, e.top = Y), e.width !== e.height && (Y = e.width, e.width = e.height, e.height = Y)), h.length && (i = El(
808
+ L % 2 === 1 && (e.left !== e.top && (N = e.left, e.left = e.top, e.top = N), e.width !== e.height && (N = e.width, e.width = e.height, e.height = N)), d.length && (i = El(
809
809
  i,
810
- '<g transform="' + h.join(" ") + '">',
810
+ '<g transform="' + d.join(" ") + '">',
811
811
  "</g>"
812
812
  ));
813
813
  });
814
- const r = l.width, a = l.height, d = e.width, y = e.height;
815
- let g, F;
816
- r === null ? (F = a === null ? "1em" : a === "auto" ? y : a, g = en(F, d / y)) : (g = r === "auto" ? d : r, F = a === null ? en(g, y / d) : a === "auto" ? y : a);
817
- const E = {}, C = (f, h) => {
818
- Ml(h) || (E[f] = h.toString());
814
+ const r = l.width, a = l.height, u = e.width, b = e.height;
815
+ let g, C;
816
+ r === null ? (C = a === null ? "1em" : a === "auto" ? b : a, g = en(C, u / b)) : (g = r === "auto" ? u : r, C = a === null ? en(g, b / u) : a === "auto" ? b : a);
817
+ const z = {}, E = (_, d) => {
818
+ Ml(d) || (z[_] = d.toString());
819
819
  };
820
- C("width", g), C("height", F);
821
- const b = [e.left, e.top, d, y];
822
- return E.viewBox = b.join(" "), {
823
- attributes: E,
824
- viewBox: b,
820
+ E("width", g), E("height", C);
821
+ const T = [e.left, e.top, u, b];
822
+ return z.viewBox = T.join(" "), {
823
+ attributes: z,
824
+ viewBox: T,
825
825
  body: i
826
826
  };
827
827
  }
@@ -930,13 +930,13 @@ const Dl = (t, o, n) => {
930
930
  prefix: o,
931
931
  icons: []
932
932
  }, a = 0;
933
- return n.forEach((d, y) => {
934
- a += d.length + 1, a >= e && y > 0 && (l.push(r), r = {
933
+ return n.forEach((u, b) => {
934
+ a += u.length + 1, a >= e && b > 0 && (l.push(r), r = {
935
935
  type: i,
936
936
  provider: t,
937
937
  prefix: o,
938
938
  icons: []
939
- }, a = d.length), r.icons.push(d);
939
+ }, a = u.length), r.icons.push(u);
940
940
  }), l.push(r), l;
941
941
  };
942
942
  function Bl(t) {
@@ -955,10 +955,10 @@ const Hl = (t, o, n) => {
955
955
  let l = Bl(o.provider);
956
956
  switch (o.type) {
957
957
  case "icons": {
958
- const i = o.prefix, a = o.icons.join(","), d = new URLSearchParams({
958
+ const i = o.prefix, a = o.icons.join(","), u = new URLSearchParams({
959
959
  icons: a
960
960
  });
961
- l += i + ".json?" + d.toString();
961
+ l += i + ".json?" + u.toString();
962
962
  break;
963
963
  }
964
964
  case "custom": {
@@ -1013,15 +1013,15 @@ function jl(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, r = e.prefix, a = e.name, d = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), y = d[r] || (d[r] = Fe(i, r));
1016
+ const i = e.provider, r = e.prefix, a = e.name, u = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), b = u[r] || (u[r] = Fe(i, r));
1017
1017
  let g;
1018
- a in y.icons ? g = o.loaded : r === "" || y.missing.has(a) ? g = o.missing : g = o.pending;
1019
- const F = {
1018
+ a in b.icons ? g = o.loaded : r === "" || b.missing.has(a) ? g = o.missing : g = o.pending;
1019
+ const C = {
1020
1020
  provider: i,
1021
1021
  prefix: r,
1022
1022
  name: a
1023
1023
  };
1024
- g.push(F);
1024
+ g.push(C);
1025
1025
  }), o;
1026
1026
  }
1027
1027
  function Ln(t, o) {
@@ -1040,21 +1040,21 @@ function Ul(t) {
1040
1040
  const l = t.provider, e = t.prefix;
1041
1041
  o.forEach((i) => {
1042
1042
  const r = i.icons, a = r.pending.length;
1043
- r.pending = r.pending.filter((d) => {
1044
- if (d.prefix !== e)
1043
+ r.pending = r.pending.filter((u) => {
1044
+ if (u.prefix !== e)
1045
1045
  return !0;
1046
- const y = d.name;
1047
- if (t.icons[y])
1046
+ const b = u.name;
1047
+ if (t.icons[b])
1048
1048
  r.loaded.push({
1049
1049
  provider: l,
1050
1050
  prefix: e,
1051
- name: y
1051
+ name: b
1052
1052
  });
1053
- else if (t.missing.has(y))
1053
+ else if (t.missing.has(b))
1054
1054
  r.missing.push({
1055
1055
  provider: l,
1056
1056
  prefix: e,
1057
- name: y
1057
+ name: b
1058
1058
  });
1059
1059
  else
1060
1060
  return n = !0, !0;
@@ -1104,50 +1104,50 @@ function Yl(t, o, n, l) {
1104
1104
  if (t.random) {
1105
1105
  let q = t.resources.slice(0);
1106
1106
  for (r = []; q.length > 1; ) {
1107
- const H = Math.floor(Math.random() * q.length);
1108
- r.push(q[H]), q = q.slice(0, H).concat(q.slice(H + 1));
1107
+ const j = Math.floor(Math.random() * q.length);
1108
+ r.push(q[j]), q = q.slice(0, j).concat(q.slice(j + 1));
1109
1109
  }
1110
1110
  r = r.concat(q);
1111
1111
  } else
1112
1112
  r = t.resources.slice(i).concat(t.resources.slice(0, i));
1113
1113
  const a = Date.now();
1114
- let d = "pending", y = 0, g, F = null, E = [], C = [];
1115
- typeof l == "function" && C.push(l);
1116
- function b() {
1117
- F && (clearTimeout(F), F = null);
1114
+ let u = "pending", b = 0, g, C = null, z = [], E = [];
1115
+ typeof l == "function" && E.push(l);
1116
+ function T() {
1117
+ C && (clearTimeout(C), C = null);
1118
1118
  }
1119
- function f() {
1120
- d === "pending" && (d = "aborted"), b(), E.forEach((q) => {
1119
+ function _() {
1120
+ u === "pending" && (u = "aborted"), T(), z.forEach((q) => {
1121
1121
  q.status === "pending" && (q.status = "aborted");
1122
- }), E = [];
1122
+ }), z = [];
1123
1123
  }
1124
- function h(q, H) {
1125
- H && (C = []), typeof q == "function" && C.push(q);
1124
+ function d(q, j) {
1125
+ j && (E = []), typeof q == "function" && E.push(q);
1126
1126
  }
1127
- function x() {
1127
+ function v() {
1128
1128
  return {
1129
1129
  startTime: a,
1130
1130
  payload: o,
1131
- status: d,
1132
- queriesSent: y,
1133
- queriesPending: E.length,
1134
- subscribe: h,
1135
- abort: f
1131
+ status: u,
1132
+ queriesSent: b,
1133
+ queriesPending: z.length,
1134
+ subscribe: d,
1135
+ abort: _
1136
1136
  };
1137
1137
  }
1138
- function R() {
1139
- d = "failed", C.forEach((q) => {
1138
+ function D() {
1139
+ u = "failed", E.forEach((q) => {
1140
1140
  q(void 0, g);
1141
1141
  });
1142
1142
  }
1143
- function J() {
1144
- E.forEach((q) => {
1143
+ function L() {
1144
+ z.forEach((q) => {
1145
1145
  q.status === "pending" && (q.status = "aborted");
1146
- }), E = [];
1146
+ }), z = [];
1147
1147
  }
1148
- function Y(q, H, ce) {
1149
- const se = H !== "success";
1150
- switch (E = E.filter((O) => O !== q), d) {
1148
+ function N(q, j, ie) {
1149
+ const se = j !== "success";
1150
+ switch (z = z.filter((A) => A !== q), u) {
1151
1151
  case "pending":
1152
1152
  break;
1153
1153
  case "failed":
@@ -1157,47 +1157,47 @@ function Yl(t, o, n, l) {
1157
1157
  default:
1158
1158
  return;
1159
1159
  }
1160
- if (H === "abort") {
1161
- g = ce, R();
1160
+ if (j === "abort") {
1161
+ g = ie, D();
1162
1162
  return;
1163
1163
  }
1164
1164
  if (se) {
1165
- g = ce, E.length || (r.length ? we() : R());
1165
+ g = ie, z.length || (r.length ? U() : D());
1166
1166
  return;
1167
1167
  }
1168
- if (b(), J(), !t.random) {
1169
- const O = t.resources.indexOf(q.resource);
1170
- O !== -1 && O !== t.index && (t.index = O);
1168
+ if (T(), L(), !t.random) {
1169
+ const A = t.resources.indexOf(q.resource);
1170
+ A !== -1 && A !== t.index && (t.index = A);
1171
1171
  }
1172
- d = "completed", C.forEach((O) => {
1173
- O(ce);
1172
+ u = "completed", E.forEach((A) => {
1173
+ A(ie);
1174
1174
  });
1175
1175
  }
1176
- function we() {
1177
- if (d !== "pending")
1176
+ function U() {
1177
+ if (u !== "pending")
1178
1178
  return;
1179
- b();
1179
+ T();
1180
1180
  const q = r.shift();
1181
1181
  if (q === void 0) {
1182
- if (E.length) {
1183
- F = setTimeout(() => {
1184
- b(), d === "pending" && (J(), R());
1182
+ if (z.length) {
1183
+ C = setTimeout(() => {
1184
+ T(), u === "pending" && (L(), D());
1185
1185
  }, t.timeout);
1186
1186
  return;
1187
1187
  }
1188
- R();
1188
+ D();
1189
1189
  return;
1190
1190
  }
1191
- const H = {
1191
+ const j = {
1192
1192
  status: "pending",
1193
1193
  resource: q,
1194
- callback: (ce, se) => {
1195
- Y(H, ce, se);
1194
+ callback: (ie, se) => {
1195
+ N(j, ie, se);
1196
1196
  }
1197
1197
  };
1198
- E.push(H), y++, F = setTimeout(we, t.rotate), n(q, o, H.callback);
1198
+ z.push(j), b++, C = setTimeout(U, t.rotate), n(q, o, j.callback);
1199
1199
  }
1200
- return setTimeout(we), x;
1200
+ return setTimeout(U), v;
1201
1201
  }
1202
1202
  function _n(t) {
1203
1203
  const o = {
@@ -1208,19 +1208,19 @@ function _n(t) {
1208
1208
  function l() {
1209
1209
  n = n.filter((a) => a().status === "pending");
1210
1210
  }
1211
- function e(a, d, y) {
1211
+ function e(a, u, b) {
1212
1212
  const g = Yl(
1213
1213
  o,
1214
1214
  a,
1215
- d,
1216
- (F, E) => {
1217
- l(), y && y(F, E);
1215
+ u,
1216
+ (C, z) => {
1217
+ l(), b && b(C, z);
1218
1218
  }
1219
1219
  );
1220
1220
  return n.push(g), g;
1221
1221
  }
1222
1222
  function i(a) {
1223
- return n.find((d) => a(d)) || null;
1223
+ return n.find((u) => a(u)) || null;
1224
1224
  }
1225
1225
  return {
1226
1226
  query: e,
@@ -1321,23 +1321,23 @@ function Pn(t, o) {
1321
1321
  if (l !== ln) {
1322
1322
  if (l) {
1323
1323
  const a = _t(n);
1324
- for (let d = 0; d < a; d++)
1325
- sn(n, Ve + d.toString());
1324
+ for (let u = 0; u < a; u++)
1325
+ sn(n, Ve + u.toString());
1326
1326
  }
1327
1327
  Rt(n, on, ln), Lt(n, 0);
1328
1328
  return;
1329
1329
  }
1330
1330
  const e = Math.floor(Date.now() / En) - eo, i = (a) => {
1331
- const d = Ve + a.toString(), y = Ft(n, d);
1332
- if (typeof y == "string") {
1331
+ const u = Ve + a.toString(), b = Ft(n, u);
1332
+ if (typeof b == "string") {
1333
1333
  try {
1334
- const g = JSON.parse(y);
1334
+ const g = JSON.parse(b);
1335
1335
  if (typeof g == "object" && typeof g.cached == "number" && g.cached > e && typeof g.provider == "string" && typeof g.data == "object" && typeof g.data.prefix == "string" && // Valid item: run callback
1336
1336
  o(g, a))
1337
1337
  return !0;
1338
1338
  } catch {
1339
1339
  }
1340
- sn(n, d);
1340
+ sn(n, u);
1341
1341
  }
1342
1342
  };
1343
1343
  let r = _t(n);
@@ -1416,25 +1416,25 @@ function so(t, o) {
1416
1416
  if (!e || !(i = St(n)))
1417
1417
  return;
1418
1418
  i.prepare(n, l, e).forEach((a) => {
1419
- Zl(n, a, (d) => {
1420
- if (typeof d != "object")
1421
- a.icons.forEach((y) => {
1422
- t.missing.add(y);
1419
+ Zl(n, a, (u) => {
1420
+ if (typeof u != "object")
1421
+ a.icons.forEach((b) => {
1422
+ t.missing.add(b);
1423
1423
  });
1424
1424
  else
1425
1425
  try {
1426
- const y = Tt(
1426
+ const b = Tt(
1427
1427
  t,
1428
- d
1428
+ u
1429
1429
  );
1430
- if (!y.length)
1430
+ if (!b.length)
1431
1431
  return;
1432
1432
  const g = t.pendingIcons;
1433
- g && y.forEach((F) => {
1434
- g.delete(F);
1435
- }), oo(t, d);
1436
- } catch (y) {
1437
- console.error(y);
1433
+ g && b.forEach((C) => {
1434
+ g.delete(C);
1435
+ }), oo(t, u);
1436
+ } catch (b) {
1437
+ console.error(b);
1438
1438
  }
1439
1439
  io(t);
1440
1440
  });
@@ -1444,33 +1444,33 @@ function so(t, o) {
1444
1444
  const ro = (t, o) => {
1445
1445
  const n = Kl(t, !0, xn()), l = jl(n);
1446
1446
  if (!l.pending.length) {
1447
- let d = !0;
1447
+ let u = !0;
1448
1448
  return o && setTimeout(() => {
1449
- d && o(
1449
+ u && o(
1450
1450
  l.loaded,
1451
1451
  l.missing,
1452
1452
  l.pending,
1453
1453
  rn
1454
1454
  );
1455
1455
  }), () => {
1456
- d = !1;
1456
+ u = !1;
1457
1457
  };
1458
1458
  }
1459
1459
  const e = /* @__PURE__ */ Object.create(null), i = [];
1460
1460
  let r, a;
1461
- return l.pending.forEach((d) => {
1462
- const { provider: y, prefix: g } = d;
1463
- if (g === a && y === r)
1461
+ return l.pending.forEach((u) => {
1462
+ const { provider: b, prefix: g } = u;
1463
+ if (g === a && b === r)
1464
1464
  return;
1465
- r = y, a = g, i.push(Fe(y, g));
1466
- const F = e[y] || (e[y] = /* @__PURE__ */ Object.create(null));
1467
- F[g] || (F[g] = []);
1468
- }), l.pending.forEach((d) => {
1469
- const { provider: y, prefix: g, name: F } = d, E = Fe(y, g), C = E.pendingIcons || (E.pendingIcons = /* @__PURE__ */ new Set());
1470
- C.has(F) || (C.add(F), e[y][g].push(F));
1471
- }), i.forEach((d) => {
1472
- const { provider: y, prefix: g } = d;
1473
- e[y][g].length && so(d, e[y][g]);
1465
+ r = b, a = g, i.push(Fe(b, g));
1466
+ const C = e[b] || (e[b] = /* @__PURE__ */ Object.create(null));
1467
+ C[g] || (C[g] = []);
1468
+ }), l.pending.forEach((u) => {
1469
+ const { provider: b, prefix: g, name: C } = u, z = Fe(b, g), E = z.pendingIcons || (z.pendingIcons = /* @__PURE__ */ new Set());
1470
+ E.has(C) || (E.add(C), e[b][g].push(C));
1471
+ }), i.forEach((u) => {
1472
+ const { provider: b, prefix: g } = u;
1473
+ e[b][g].length && so(u, e[b][g]);
1474
1474
  }), o ? Ql(o, l, i) : rn;
1475
1475
  };
1476
1476
  function ao(t, o) {
@@ -1575,10 +1575,10 @@ function dn(t) {
1575
1575
  }
1576
1576
  const fn = (t, o) => {
1577
1577
  const n = ao(an, o), l = { ...bo }, e = o.mode || "svg", i = {}, r = o.style, a = typeof r == "object" && !(r instanceof Array) ? r : {};
1578
- for (let f in o) {
1579
- const h = o[f];
1580
- if (h !== void 0)
1581
- switch (f) {
1578
+ for (let _ in o) {
1579
+ const d = o[_];
1580
+ if (d !== void 0)
1581
+ switch (_) {
1582
1582
  case "icon":
1583
1583
  case "style":
1584
1584
  case "onLoad":
@@ -1587,48 +1587,48 @@ const fn = (t, o) => {
1587
1587
  case "inline":
1588
1588
  case "hFlip":
1589
1589
  case "vFlip":
1590
- n[f] = h === !0 || h === "true" || h === 1;
1590
+ n[_] = d === !0 || d === "true" || d === 1;
1591
1591
  break;
1592
1592
  case "flip":
1593
- typeof h == "string" && co(n, h);
1593
+ typeof d == "string" && co(n, d);
1594
1594
  break;
1595
1595
  case "color":
1596
- i.color = h;
1596
+ i.color = d;
1597
1597
  break;
1598
1598
  case "rotate":
1599
- typeof h == "string" ? n[f] = fo(h) : typeof h == "number" && (n[f] = h);
1599
+ typeof d == "string" ? n[_] = fo(d) : typeof d == "number" && (n[_] = d);
1600
1600
  break;
1601
1601
  case "ariaHidden":
1602
1602
  case "aria-hidden":
1603
- h !== !0 && h !== "true" && delete l["aria-hidden"];
1603
+ d !== !0 && d !== "true" && delete l["aria-hidden"];
1604
1604
  break;
1605
1605
  default: {
1606
- const x = ot[f];
1607
- x ? (h === !0 || h === "true" || h === 1) && (n[x] = !0) : an[f] === void 0 && (l[f] = h);
1606
+ const v = ot[_];
1607
+ v ? (d === !0 || d === "true" || d === 1) && (n[v] = !0) : an[_] === void 0 && (l[_] = d);
1608
1608
  }
1609
1609
  }
1610
1610
  }
1611
- const d = Il(t, n), y = d.attributes;
1611
+ const u = Il(t, n), b = u.attributes;
1612
1612
  if (n.inline && (i.verticalAlign = "-0.125em"), e === "svg") {
1613
1613
  l.style = {
1614
1614
  ...i,
1615
1615
  ...a
1616
- }, Object.assign(l, y);
1617
- let f = 0, h = o.id;
1618
- return typeof h == "string" && (h = h.replace(/-/g, "_")), l.innerHTML = $l(d.body, h ? () => h + "ID" + f++ : "iconifyVue"), kt("svg", l);
1616
+ }, Object.assign(l, b);
1617
+ let _ = 0, d = o.id;
1618
+ return typeof d == "string" && (d = d.replace(/-/g, "_")), l.innerHTML = $l(u.body, d ? () => d + "ID" + _++ : "iconifyVue"), kt("svg", l);
1619
1619
  }
1620
- const { body: g, width: F, height: E } = t, C = e === "mask" || (e === "bg" ? !1 : g.indexOf("currentColor") !== -1), b = ho(g, {
1621
- ...y,
1622
- width: F + "",
1623
- height: E + ""
1620
+ const { body: g, width: C, height: z } = t, E = e === "mask" || (e === "bg" ? !1 : g.indexOf("currentColor") !== -1), T = ho(g, {
1621
+ ...b,
1622
+ width: C + "",
1623
+ height: z + ""
1624
1624
  });
1625
1625
  return l.style = {
1626
1626
  ...i,
1627
- "--svg": mo(b),
1628
- width: dn(y.width),
1629
- height: dn(y.height),
1627
+ "--svg": mo(T),
1628
+ width: dn(b.width),
1629
+ height: dn(b.height),
1630
1630
  ...go,
1631
- ...C ? zt : Nn,
1631
+ ...E ? zt : Nn,
1632
1632
  ...a
1633
1633
  }, kt("span", l);
1634
1634
  };
@@ -1669,7 +1669,7 @@ if (typeof document < "u" && typeof window < "u") {
1669
1669
  const yo = {
1670
1670
  ...ct,
1671
1671
  body: ""
1672
- }, ge = _e({
1672
+ }, ye = _e({
1673
1673
  // Do not inherit other attributes: it is handled by render()
1674
1674
  inheritAttrs: !1,
1675
1675
  // Set initial data
@@ -1742,52 +1742,52 @@ const yo = {
1742
1742
  expandall: { type: Boolean, default: !1 }
1743
1743
  },
1744
1744
  setup(t) {
1745
- const o = t, n = Zn(o, "expandedrows"), l = A(!1);
1745
+ const o = t, n = Zn(o, "expandedrows"), l = W(!1);
1746
1746
  function e(a) {
1747
1747
  if (o.expandall)
1748
- l.value = !l.value, n.value.forEach((d, y) => {
1749
- n.value.set(y, l.value);
1748
+ l.value = !l.value, n.value.forEach((u, b) => {
1749
+ n.value.set(b, l.value);
1750
1750
  });
1751
1751
  else {
1752
- const d = n.value.get(a);
1753
- n.value.set(a, !d);
1752
+ const u = n.value.get(a);
1753
+ n.value.set(a, !u);
1754
1754
  }
1755
1755
  }
1756
- const i = (a) => a._rowIndex !== void 0 ? a._rowIndex : a.id || 0, r = A(-1);
1757
- return X(() => n.value, () => {
1756
+ const i = (a) => a._rowIndex !== void 0 ? a._rowIndex : a.id || 0, r = W(-1);
1757
+ return Z(() => n.value, () => {
1758
1758
  if (!o.expandall) return;
1759
1759
  const a = Array.from(n.value.values());
1760
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, d) => (u(), p("button", {
1761
+ }, { deep: !0 }), (a, u) => (c(), h("button", {
1762
1762
  class: "expandbtn",
1763
- onClick: d[0] || (d[0] = (y) => e(i(a.item)))
1763
+ onClick: u[0] || (u[0] = (b) => e(i(a.item)))
1764
1764
  }, [
1765
- n.value.get(i(a.item)) === !0 ? (u(), p(D, { key: 0 }, [
1766
- o.expandall ? (u(), p(D, { key: 0 }, [
1767
- r.value ? (u(), re(U(ge), {
1765
+ n.value.get(i(a.item)) === !0 ? (c(), h(H, { key: 0 }, [
1766
+ o.expandall ? (c(), h(H, { key: 0 }, [
1767
+ r.value ? (c(), ue(K(ye), {
1768
1768
  key: 0,
1769
1769
  icon: "fluent:chevron-down-up-16-filled"
1770
- })) : (u(), re(U(ge), {
1770
+ })) : (c(), ue(K(ye), {
1771
1771
  key: 1,
1772
1772
  icon: "mdi:chevron-down"
1773
1773
  }))
1774
- ], 64)) : (u(), re(U(ge), {
1774
+ ], 64)) : (c(), ue(K(ye), {
1775
1775
  key: 1,
1776
1776
  icon: "mdi:chevron-down"
1777
1777
  }))
1778
- ], 64)) : (u(), p(D, { key: 1 }, [
1779
- o.expandall ? (u(), p(D, { key: 0 }, [
1780
- r.value == -1 ? (u(), re(U(ge), {
1778
+ ], 64)) : (c(), h(H, { key: 1 }, [
1779
+ o.expandall ? (c(), h(H, { key: 0 }, [
1780
+ r.value == -1 ? (c(), ue(K(ye), {
1781
1781
  key: 0,
1782
1782
  icon: "ion:chevron-expand"
1783
- })) : r.value == 0 ? (u(), re(U(ge), {
1783
+ })) : r.value == 0 ? (c(), ue(K(ye), {
1784
1784
  key: 1,
1785
1785
  icon: "mdi:chevron-down"
1786
- })) : (u(), re(U(ge), {
1786
+ })) : (c(), ue(K(ye), {
1787
1787
  key: 2,
1788
1788
  icon: "mdi:chevron-right"
1789
1789
  }))
1790
- ], 64)) : (u(), re(U(ge), {
1790
+ ], 64)) : (c(), ue(K(ye), {
1791
1791
  key: 1,
1792
1792
  icon: "mdi:chevron-right"
1793
1793
  }))
@@ -1812,11 +1812,11 @@ const yo = {
1812
1812
  function e() {
1813
1813
  l("rightPanelClick", n.item);
1814
1814
  }
1815
- return (i, r) => (u(), p("button", {
1815
+ return (i, r) => (c(), h("button", {
1816
1816
  class: "rightpanelbtn",
1817
- onClick: V(e, ["stop"])
1817
+ onClick: G(e, ["stop"])
1818
1818
  }, [
1819
- ne(U(ge), { icon: "lucide:plus" })
1819
+ oe(K(ye), { icon: "lucide:plus" })
1820
1820
  ]));
1821
1821
  }
1822
1822
  }), hn = /* @__PURE__ */ je(xo, [["__scopeId", "data-v-b373d5f7"]]), So = { class: "bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden" }, Fo = {
@@ -1826,118 +1826,118 @@ const yo = {
1826
1826
  props: ["column", "columnFilterLang"],
1827
1827
  emits: ["close", "filterChange"],
1828
1828
  setup(t, { emit: o }) {
1829
- const n = t, l = o, e = A(null);
1829
+ const n = t, l = o, e = W(null);
1830
1830
  dl(e, () => {
1831
1831
  l("close");
1832
1832
  });
1833
1833
  const i = (r) => {
1834
1834
  n.column.condition = r, r === "" && (n.column.value = ""), l("filterChange", n.column), l("close");
1835
1835
  };
1836
- return (r, a) => (u(), p("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"
1840
1840
  }, [
1841
- k("div", So, [
1842
- k("button", {
1841
+ w("div", So, [
1842
+ w("button", {
1843
1843
  type: "button",
1844
- class: P({ active: n.column.condition === "" }),
1845
- onClick: a[0] || (a[0] = V((d) => i(""), ["stop"]))
1846
- }, B((n.columnFilterLang && n.columnFilterLang.NoFilter) ?? "No filter"), 3),
1847
- n.column.type === "string" ? (u(), p(D, { key: 0 }, [
1848
- k("button", {
1844
+ class: I({ active: n.column.condition === "" }),
1845
+ onClick: a[0] || (a[0] = G((u) => i(""), ["stop"]))
1846
+ }, V((n.columnFilterLang && n.columnFilterLang.NoFilter) ?? "No filter"), 3),
1847
+ n.column.type === "string" ? (c(), h(H, { key: 0 }, [
1848
+ w("button", {
1849
1849
  type: "button",
1850
- class: P({ active: n.column.condition === "Contains" }),
1851
- onClick: a[1] || (a[1] = V((d) => i("Contains"), ["stop"]))
1852
- }, B((n.columnFilterLang && n.columnFilterLang.Contains) ?? "Contains"), 3),
1853
- k("button", {
1850
+ class: I({ active: n.column.condition === "Contains" }),
1851
+ onClick: a[1] || (a[1] = G((u) => i("Contains"), ["stop"]))
1852
+ }, V((n.columnFilterLang && n.columnFilterLang.Contains) ?? "Contains"), 3),
1853
+ w("button", {
1854
1854
  type: "button",
1855
- class: P({ active: n.column.condition === "NotContains" }),
1856
- onClick: a[2] || (a[2] = V((d) => i("NotContains"), ["stop"]))
1857
- }, B((n.columnFilterLang && n.columnFilterLang.NotContains) ?? "NotContains"), 3),
1858
- k("button", {
1855
+ class: I({ active: n.column.condition === "NotContains" }),
1856
+ onClick: a[2] || (a[2] = G((u) => i("NotContains"), ["stop"]))
1857
+ }, V((n.columnFilterLang && n.columnFilterLang.NotContains) ?? "NotContains"), 3),
1858
+ w("button", {
1859
1859
  type: "button",
1860
- class: P({ active: n.column.condition === "Equal" }),
1861
- onClick: a[3] || (a[3] = V((d) => i("Equal"), ["stop"]))
1862
- }, B((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1863
- k("button", {
1860
+ class: I({ active: n.column.condition === "Equal" }),
1861
+ onClick: a[3] || (a[3] = G((u) => i("Equal"), ["stop"]))
1862
+ }, V((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1863
+ w("button", {
1864
1864
  type: "button",
1865
- class: P({ active: n.column.condition === "NotEqual" }),
1866
- onClick: a[4] || (a[4] = V((d) => i("NotEqual"), ["stop"]))
1867
- }, B((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual (!=)"), 3),
1868
- k("button", {
1865
+ class: I({ active: n.column.condition === "NotEqual" }),
1866
+ onClick: a[4] || (a[4] = G((u) => i("NotEqual"), ["stop"]))
1867
+ }, V((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual (!=)"), 3),
1868
+ w("button", {
1869
1869
  type: "button",
1870
- class: P({ active: n.column.condition === "StartsWith" }),
1871
- onClick: a[5] || (a[5] = V((d) => i("StartsWith"), ["stop"]))
1872
- }, B((n.columnFilterLang && n.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
1873
- k("button", {
1870
+ class: I({ active: n.column.condition === "StartsWith" }),
1871
+ onClick: a[5] || (a[5] = G((u) => i("StartsWith"), ["stop"]))
1872
+ }, V((n.columnFilterLang && n.columnFilterLang.StartsWith) ?? "StartsWith"), 3),
1873
+ w("button", {
1874
1874
  type: "button",
1875
- class: P({ active: n.column.condition === "EndsWith" }),
1876
- onClick: a[6] || (a[6] = V((d) => i("EndsWith"), ["stop"]))
1877
- }, B((n.columnFilterLang && n.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
1878
- ], 64)) : n.column.type === "number" ? (u(), p(D, { key: 1 }, [
1879
- k("button", {
1875
+ class: I({ active: n.column.condition === "EndsWith" }),
1876
+ onClick: a[6] || (a[6] = G((u) => i("EndsWith"), ["stop"]))
1877
+ }, V((n.columnFilterLang && n.columnFilterLang.EndsWith) ?? "EndsWith"), 3)
1878
+ ], 64)) : n.column.type === "number" ? (c(), h(H, { key: 1 }, [
1879
+ w("button", {
1880
1880
  type: "button",
1881
- class: P({ active: n.column.condition === "Equal" }),
1882
- onClick: a[7] || (a[7] = V((d) => i("Equal"), ["stop"]))
1883
- }, B((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1884
- k("button", {
1881
+ class: I({ active: n.column.condition === "Equal" }),
1882
+ onClick: a[7] || (a[7] = G((u) => i("Equal"), ["stop"]))
1883
+ }, V((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1884
+ w("button", {
1885
1885
  type: "button",
1886
- class: P({ active: n.column.condition === "NotEqual" }),
1887
- onClick: a[8] || (a[8] = V((d) => i("NotEqual"), ["stop"]))
1888
- }, B((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual (!=)"), 3),
1889
- k("button", {
1886
+ class: I({ active: n.column.condition === "NotEqual" }),
1887
+ onClick: a[8] || (a[8] = G((u) => i("NotEqual"), ["stop"]))
1888
+ }, V((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "NotEqual (!=)"), 3),
1889
+ w("button", {
1890
1890
  type: "button",
1891
- class: P({ active: n.column.condition === "GreaterThan" }),
1892
- onClick: a[9] || (a[9] = V((d) => i("GreaterThan"), ["stop"]))
1893
- }, B((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan (>)"), 3),
1894
- k("button", {
1891
+ class: I({ active: n.column.condition === "GreaterThan" }),
1892
+ onClick: a[9] || (a[9] = G((u) => i("GreaterThan"), ["stop"]))
1893
+ }, V((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan (>)"), 3),
1894
+ w("button", {
1895
1895
  type: "button",
1896
- class: P({ active: n.column.condition === "GreaterThanOrEqual" }),
1897
- onClick: a[10] || (a[10] = V((d) => i("GreaterThanOrEqual"), ["stop"]))
1898
- }, B((n.columnFilterLang && n.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual (>=)"), 3),
1899
- k("button", {
1896
+ class: I({ active: n.column.condition === "GreaterThanOrEqual" }),
1897
+ onClick: a[10] || (a[10] = G((u) => i("GreaterThanOrEqual"), ["stop"]))
1898
+ }, V((n.columnFilterLang && n.columnFilterLang.GreaterThanOrEqual) ?? "GreaterThanOrEqual (>=)"), 3),
1899
+ w("button", {
1900
1900
  type: "button",
1901
- class: P({ active: n.column.condition === "LessThan" }),
1902
- onClick: a[11] || (a[11] = V((d) => i("LessThan"), ["stop"]))
1903
- }, B((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3),
1904
- k("button", {
1901
+ class: I({ active: n.column.condition === "LessThan" }),
1902
+ onClick: a[11] || (a[11] = G((u) => i("LessThan"), ["stop"]))
1903
+ }, V((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3),
1904
+ w("button", {
1905
1905
  type: "button",
1906
- class: P({ active: n.column.condition === "LessThanOrEqual" }),
1907
- onClick: a[12] || (a[12] = V((d) => i("LessThanOrEqual"), ["stop"]))
1908
- }, B((n.columnFilterLang && n.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual (<=)"), 3)
1909
- ], 64)) : n.column.type === "date" ? (u(), p(D, { key: 2 }, [
1910
- k("button", {
1906
+ class: I({ active: n.column.condition === "LessThanOrEqual" }),
1907
+ onClick: a[12] || (a[12] = G((u) => i("LessThanOrEqual"), ["stop"]))
1908
+ }, V((n.columnFilterLang && n.columnFilterLang.LessThanOrEqual) ?? "LessThanOrEqual (<=)"), 3)
1909
+ ], 64)) : n.column.type === "date" ? (c(), h(H, { key: 2 }, [
1910
+ w("button", {
1911
1911
  type: "button",
1912
- class: P({ active: n.column.condition === "Equal" }),
1913
- onClick: a[13] || (a[13] = V((d) => i("Equal"), ["stop"]))
1914
- }, B((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1915
- k("button", {
1912
+ class: I({ active: n.column.condition === "Equal" }),
1913
+ onClick: a[13] || (a[13] = G((u) => i("Equal"), ["stop"]))
1914
+ }, V((n.columnFilterLang && n.columnFilterLang.Equal) ?? "Equal (=)"), 3),
1915
+ w("button", {
1916
1916
  type: "button",
1917
- class: P({ active: n.column.condition === "NotEqual" }),
1918
- onClick: a[14] || (a[14] = V((d) => i("NotEqual"), ["stop"]))
1919
- }, B((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "Not equal (!=)"), 3),
1920
- k("button", {
1917
+ class: I({ active: n.column.condition === "NotEqual" }),
1918
+ onClick: a[14] || (a[14] = G((u) => i("NotEqual"), ["stop"]))
1919
+ }, V((n.columnFilterLang && n.columnFilterLang.NotEqual) ?? "Not equal (!=)"), 3),
1920
+ w("button", {
1921
1921
  type: "button",
1922
- class: P({ active: n.column.condition === "GreaterThan" }),
1923
- onClick: a[15] || (a[15] = V((d) => i("GreaterThan"), ["stop"]))
1924
- }, B((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan (>)"), 3),
1925
- k("button", {
1922
+ class: I({ active: n.column.condition === "GreaterThan" }),
1923
+ onClick: a[15] || (a[15] = G((u) => i("GreaterThan"), ["stop"]))
1924
+ }, V((n.columnFilterLang && n.columnFilterLang.GreaterThan) ?? "GreaterThan (>)"), 3),
1925
+ w("button", {
1926
1926
  type: "button",
1927
- class: P({ active: n.column.condition === "LessThan" }),
1928
- onClick: a[16] || (a[16] = V((d) => i("LessThan"), ["stop"]))
1929
- }, B((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3)
1930
- ], 64)) : I("", !0),
1931
- k("button", {
1927
+ class: I({ active: n.column.condition === "LessThan" }),
1928
+ onClick: a[16] || (a[16] = G((u) => i("LessThan"), ["stop"]))
1929
+ }, V((n.columnFilterLang && n.columnFilterLang.LessThan) ?? "LessThan (<)"), 3)
1930
+ ], 64)) : P("", !0),
1931
+ w("button", {
1932
1932
  type: "button",
1933
- class: P({ active: n.column.condition === "IsNull" }),
1934
- onClick: a[17] || (a[17] = V((d) => i("IsNull"), ["stop"]))
1935
- }, B((n.columnFilterLang && n.columnFilterLang.IsNull) ?? "IsNull"), 3),
1936
- k("button", {
1933
+ class: I({ active: n.column.condition === "IsNull" }),
1934
+ onClick: a[17] || (a[17] = G((u) => i("IsNull"), ["stop"]))
1935
+ }, V((n.columnFilterLang && n.columnFilterLang.IsNull) ?? "IsNull"), 3),
1936
+ w("button", {
1937
1937
  type: "button",
1938
- class: P({ active: n.column.condition === "IsNotNull" }),
1939
- onClick: a[18] || (a[18] = V((d) => i("IsNotNull"), ["stop"]))
1940
- }, B((n.columnFilterLang && n.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
1938
+ class: I({ active: n.column.condition === "IsNotNull" }),
1939
+ onClick: a[18] || (a[18] = G((u) => i("IsNotNull"), ["stop"]))
1940
+ }, V((n.columnFilterLang && n.columnFilterLang.IsNotNull) ?? "IsNotNull"), 3)
1941
1941
  ])
1942
1942
  ], 512));
1943
1943
  }
@@ -1989,10 +1989,10 @@ const yo = {
1989
1989
  { value: "Equal", label: "Equal", icon: "=" },
1990
1990
  { value: "NotEqual", label: "Not Equal", icon: "≠" }
1991
1991
  ]
1992
- }, _o = { class: "bh-p-2 bh-min-w-[200px]" }, zo = { class: "bh-mb-2" }, Eo = /* @__PURE__ */ k("label", { class: "bh-text-xs bh-font-medium bh-text-gray-600 dark:bh-text-gray-400 bh-block bh-mb-1" }, " Filter Condition ", -1), Mo = ["value"], Io = {
1992
+ }, _o = { class: "bh-p-2 bh-min-w-[200px]" }, zo = { class: "bh-mb-2" }, Eo = /* @__PURE__ */ w("label", { class: "bh-text-xs bh-font-medium bh-text-gray-600 dark:bh-text-gray-400 bh-block bh-mb-1" }, " Filter Condition ", -1), Mo = ["value"], Io = {
1993
1993
  key: 0,
1994
1994
  class: "bh-border-t bh-border-gray-200 dark:bh-border-gray-600 bh-pt-2 bh-mt-2"
1995
- }, Po = /* @__PURE__ */ k("label", { class: "bh-text-xs bh-font-medium bh-text-gray-600 dark:bh-text-gray-400 bh-block bh-mb-1" }, " Sort ", -1), To = { class: "bh-flex bh-flex-col bh-gap-1" }, No = {
1995
+ }, Po = /* @__PURE__ */ w("label", { class: "bh-text-xs bh-font-medium bh-text-gray-600 dark:bh-text-gray-400 bh-block bh-mb-1" }, " Sort ", -1), To = { class: "bh-flex bh-flex-col bh-gap-1" }, No = {
1996
1996
  name: "columnFilterNew"
1997
1997
  }, $o = /* @__PURE__ */ _e({
1998
1998
  ...No,
@@ -2004,112 +2004,128 @@ const yo = {
2004
2004
  ],
2005
2005
  emits: ["close", "filterChange", "sortChange", "clearFilter", "conditionChange"],
2006
2006
  setup(t, { emit: o }) {
2007
- const n = t, l = o, e = A(null), i = A(null), r = A(n.column.condition || ""), a = A(!1), d = K(() => {
2008
- var x;
2009
- const h = ((x = n.column.type) == null ? void 0 : x.toLowerCase()) || "string";
2010
- return rt[h] || rt.string;
2011
- }), y = (h) => {
2012
- if (!n.columnFilterLang) return h.label;
2013
- const x = h.value === "" ? "NoFilter" : h.value;
2014
- return n.columnFilterLang[x] || h.label;
2015
- }, g = (h) => {
2016
- const R = h.target.value;
2017
- a.value = !1, r.value = R, l("conditionChange", n.column.field, R), R === "" && (n.column.value = ""), l("filterChange", n.column);
2018
- }, F = (h) => n.currentSortColumn === n.column.field && n.currentSortDirection === h, E = (h) => {
2019
- l("sortChange", n.column.field, h), l("close");
2020
- }, C = () => {
2021
- var x;
2022
- const h = ((x = n.column.type) == null ? void 0 : x.toLowerCase()) || "string";
2023
- n.column.condition = h === "string" ? "Contains" : "Equal", n.column.value = "", r.value = n.column.condition, l("clearFilter", n.column), l("close");
2024
- }, b = (h) => {
2025
- const x = h.target;
2026
- a.value || x.tagName === "SELECT" || x.tagName === "OPTION" || e.value && e.value.contains(x) || x.closest(".bh-filter-button") || l("close");
2027
- }, f = (h) => {
2028
- h.key === "Escape" && l("close");
2007
+ const n = t, l = o, e = W(null), i = W(null), r = W(n.column.condition || ""), a = W(!1), u = W("right"), b = W("bottom"), g = () => {
2008
+ var ce;
2009
+ const L = e.value;
2010
+ if (!L) return;
2011
+ const N = (ce = L.parentElement) == null ? void 0 : ce.querySelector(".bh-filter-button");
2012
+ if (!N) return;
2013
+ const U = N.getBoundingClientRect(), q = 200, j = 280, ie = 10, se = window.innerWidth - U.right;
2014
+ U.left >= q + ie ? u.value = "right" : se >= q + ie ? u.value = "left" : u.value = "center";
2015
+ const ne = window.innerHeight - U.bottom;
2016
+ b.value = ne >= j + ie ? "bottom" : "top";
2017
+ }, C = X(() => {
2018
+ var N;
2019
+ const L = ((N = n.column.type) == null ? void 0 : N.toLowerCase()) || "string";
2020
+ return rt[L] || rt.string;
2021
+ }), z = (L) => {
2022
+ if (!n.columnFilterLang) return L.label;
2023
+ const N = L.value === "" ? "NoFilter" : L.value;
2024
+ return n.columnFilterLang[N] || L.label;
2025
+ }, E = (L) => {
2026
+ const U = L.target.value;
2027
+ a.value = !1, r.value = U, l("conditionChange", n.column.field, U), U === "" && (n.column.value = ""), l("filterChange", n.column);
2028
+ }, T = (L) => n.currentSortColumn === n.column.field && n.currentSortDirection === L, _ = (L) => {
2029
+ l("sortChange", n.column.field, L), l("close");
2030
+ }, d = () => {
2031
+ var N;
2032
+ const L = ((N = n.column.type) == null ? void 0 : N.toLowerCase()) || "string";
2033
+ n.column.condition = L === "string" ? "Contains" : "Equal", n.column.value = "", r.value = n.column.condition, l("clearFilter", n.column), l("close");
2034
+ }, v = (L) => {
2035
+ const N = L.target;
2036
+ a.value || N.tagName === "SELECT" || N.tagName === "OPTION" || e.value && e.value.contains(N) || N.closest(".bh-filter-button") || l("close");
2037
+ }, D = (L) => {
2038
+ L.key === "Escape" && l("close");
2029
2039
  };
2030
2040
  return Le(() => {
2031
2041
  Se(() => {
2032
- var h;
2033
- (h = i.value) == null || h.focus(), document.addEventListener("click", b, !0), document.addEventListener("keydown", f);
2042
+ var L;
2043
+ g(), (L = i.value) == null || L.focus(), document.addEventListener("click", v, !0), document.addEventListener("keydown", D);
2034
2044
  });
2035
2045
  }), mn(() => {
2036
- document.removeEventListener("click", b, !0), document.removeEventListener("keydown", f);
2037
- }), (h, x) => (u(), p("div", {
2046
+ document.removeEventListener("click", v, !0), document.removeEventListener("keydown", D);
2047
+ }), (L, N) => (c(), h("div", {
2038
2048
  ref_key: "dropdownRef",
2039
2049
  ref: e,
2040
- class: "bh-filter-dropdown-container bh-absolute bh-z-[100] bh-bg-white dark:bh-bg-gray-800 bh-shadow-lg bh-rounded bh-top-full bh-right-0 bh-mt-1 bh-border bh-border-solid bh-border-gray-300 dark:bh-border-gray-600"
2050
+ class: I(["bh-filter-dropdown-container bh-absolute bh-z-[100] bh-bg-white dark:bh-bg-gray-800 bh-shadow-lg bh-rounded bh-border bh-border-solid bh-border-gray-300 dark:bh-border-gray-600", {
2051
+ "bh-right-0": u.value === "right",
2052
+ "bh-left-0": u.value === "left",
2053
+ "bh-left-1/2 -bh-translate-x-1/2": u.value === "center",
2054
+ "bh-top-full bh-mt-1": b.value === "bottom",
2055
+ "bh-bottom-full bh-mb-1": b.value === "top"
2056
+ }])
2041
2057
  }, [
2042
- k("div", _o, [
2043
- k("div", zo, [
2058
+ w("div", _o, [
2059
+ w("div", zo, [
2044
2060
  Eo,
2045
- ie(k("select", {
2061
+ ae(w("select", {
2046
2062
  ref_key: "selectRef",
2047
2063
  ref: i,
2048
- "onUpdate:modelValue": x[0] || (x[0] = (R) => r.value = R),
2064
+ "onUpdate:modelValue": N[0] || (N[0] = (U) => r.value = U),
2049
2065
  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",
2050
- onFocus: x[1] || (x[1] = (R) => a.value = !0),
2051
- onBlur: x[2] || (x[2] = (R) => a.value = !1),
2052
- onChange: g
2066
+ onFocus: N[1] || (N[1] = (U) => a.value = !0),
2067
+ onBlur: N[2] || (N[2] = (U) => a.value = !1),
2068
+ onChange: E
2053
2069
  }, [
2054
- (u(!0), p(D, null, oe(d.value, (R) => (u(), p("option", {
2055
- key: R.value,
2056
- value: R.value
2057
- }, B(R.icon ? R.icon + " " : "") + B(y(R)), 9, Mo))), 128))
2070
+ (c(!0), h(H, null, re(C.value, (U) => (c(), h("option", {
2071
+ key: U.value,
2072
+ value: U.value
2073
+ }, V(U.icon ? U.icon + " " : "") + V(z(U)), 9, Mo))), 128))
2058
2074
  ], 544), [
2059
2075
  [it, r.value]
2060
2076
  ])
2061
2077
  ]),
2062
- n.column.sort !== !1 ? (u(), p("div", Io, [
2078
+ n.column.sort !== !1 ? (c(), h("div", Io, [
2063
2079
  Po,
2064
- k("div", To, [
2065
- k("button", {
2080
+ w("div", To, [
2081
+ w("button", {
2066
2082
  type: "button",
2067
- class: P(["bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors", {
2068
- "bh-bg-primary/10 bh-text-primary": F("asc"),
2069
- "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !F("asc")
2083
+ class: I(["bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors", {
2084
+ "bh-bg-primary/10 bh-text-primary": T("asc"),
2085
+ "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !T("asc")
2070
2086
  }]),
2071
- onClick: x[3] || (x[3] = (R) => E("asc"))
2087
+ onClick: N[3] || (N[3] = (U) => _("asc"))
2072
2088
  }, " ↑ Sort Ascending ", 2),
2073
- k("button", {
2089
+ w("button", {
2074
2090
  type: "button",
2075
- class: P(["bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors", {
2076
- "bh-bg-primary/10 bh-text-primary": F("desc"),
2077
- "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !F("desc")
2091
+ class: I(["bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors", {
2092
+ "bh-bg-primary/10 bh-text-primary": T("desc"),
2093
+ "bh-bg-gray-50 dark:bh-bg-gray-700 hover:bh-bg-gray-100 dark:hover:bh-bg-gray-600": !T("desc")
2078
2094
  }]),
2079
- onClick: x[4] || (x[4] = (R) => E("desc"))
2095
+ onClick: N[4] || (N[4] = (U) => _("desc"))
2080
2096
  }, " ↓ Sort Descending ", 2)
2081
2097
  ])
2082
- ])) : I("", !0),
2083
- k("div", { class: "bh-border-t bh-border-gray-200 dark:bh-border-gray-600 bh-pt-2 bh-mt-2" }, [
2084
- k("button", {
2098
+ ])) : P("", !0),
2099
+ w("div", { class: "bh-border-t bh-border-gray-200 dark:bh-border-gray-600 bh-pt-2 bh-mt-2" }, [
2100
+ w("button", {
2085
2101
  type: "button",
2086
2102
  class: "bh-w-full bh-px-2.5 bh-py-1.5 bh-text-sm bh-text-left bh-rounded bh-transition-colors bh-text-red-600 hover:bh-bg-red-50 dark:hover:bh-bg-red-900/20",
2087
- onClick: C
2103
+ onClick: d
2088
2104
  }, " ✕ Clear Filter ")
2089
2105
  ])
2090
2106
  ])
2091
- ], 512));
2107
+ ], 2));
2092
2108
  }
2093
2109
  }), Oo = {}, Ro = {
2094
2110
  version: "1.1",
2095
2111
  viewBox: "0 0 17 12",
2096
2112
  xmlns: "http://www.w3.org/2000/svg"
2097
- }, Ao = /* @__PURE__ */ k("g", {
2113
+ }, Ao = /* @__PURE__ */ w("g", {
2098
2114
  fill: "none",
2099
2115
  "fill-rule": "evenodd"
2100
2116
  }, [
2101
- /* @__PURE__ */ k("g", {
2117
+ /* @__PURE__ */ w("g", {
2102
2118
  transform: "translate(-9 -11)",
2103
2119
  fill: "currentColor",
2104
2120
  "fill-rule": "nonzero"
2105
2121
  }, [
2106
- /* @__PURE__ */ k("path", { d: "m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z" })
2122
+ /* @__PURE__ */ w("path", { d: "m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z" })
2107
2123
  ])
2108
2124
  ], -1), qo = [
2109
2125
  Ao
2110
2126
  ];
2111
2127
  function Wo(t, o) {
2112
- return u(), p("svg", Ro, qo);
2128
+ return c(), h("svg", Ro, qo);
2113
2129
  }
2114
2130
  const Mt = /* @__PURE__ */ je(Oo, [["render", Wo]]), Do = {}, Bo = {
2115
2131
  viewBox: "0 0 24 24",
@@ -2121,7 +2137,7 @@ const Mt = /* @__PURE__ */ je(Oo, [["render", Wo]]), Do = {}, Bo = {
2121
2137
  "stroke-linecap": "round",
2122
2138
  "stroke-linejoin": "round",
2123
2139
  class: "css-i6dzq1"
2124
- }, Ho = /* @__PURE__ */ k("line", {
2140
+ }, Ho = /* @__PURE__ */ w("line", {
2125
2141
  x1: "5",
2126
2142
  y1: "12",
2127
2143
  x2: "19",
@@ -2130,7 +2146,7 @@ const Mt = /* @__PURE__ */ je(Oo, [["render", Wo]]), Do = {}, Bo = {
2130
2146
  Ho
2131
2147
  ];
2132
2148
  function jo(t, o) {
2133
- return u(), p("svg", Bo, Vo);
2149
+ return c(), h("svg", Bo, Vo);
2134
2150
  }
2135
2151
  const Uo = /* @__PURE__ */ je(Do, [["render", jo]]), Go = {}, Qo = {
2136
2152
  viewBox: "0 0 24 24",
@@ -2142,11 +2158,11 @@ const Uo = /* @__PURE__ */ je(Do, [["render", jo]]), Go = {}, Qo = {
2142
2158
  "stroke-linecap": "round",
2143
2159
  "stroke-linejoin": "round",
2144
2160
  class: "css-i6dzq1"
2145
- }, Ko = /* @__PURE__ */ k("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), Jo = [
2161
+ }, Ko = /* @__PURE__ */ w("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1), Jo = [
2146
2162
  Ko
2147
2163
  ];
2148
2164
  function Yo(t, o) {
2149
- return u(), p("svg", Qo, Jo);
2165
+ return c(), h("svg", Qo, Jo);
2150
2166
  }
2151
2167
  const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei = { class: "bh-checkbox" }, ti = ["onClick"], ni = {
2152
2168
  width: "16",
@@ -2156,14 +2172,14 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2156
2172
  }, li = {
2157
2173
  key: 0,
2158
2174
  class: "bh-filter bh-relative"
2159
- }, oi = ["onUpdate:modelValue"], ii = ["onUpdate:modelValue"], si = ["onUpdate:modelValue"], ri = ["onUpdate:modelValue"], ai = /* @__PURE__ */ k("option", { value: void 0 }, "All", -1), ui = /* @__PURE__ */ k("option", { value: !0 }, "True", -1), ci = /* @__PURE__ */ k("option", { value: !1 }, "False", -1), di = [
2175
+ }, oi = ["onUpdate:modelValue"], ii = ["onUpdate:modelValue"], si = ["onUpdate:modelValue"], ri = ["onUpdate:modelValue"], ai = /* @__PURE__ */ w("option", { value: void 0 }, "All", -1), ui = /* @__PURE__ */ w("option", { value: !0 }, "True", -1), ci = /* @__PURE__ */ w("option", { value: !1 }, "False", -1), di = [
2160
2176
  ai,
2161
2177
  ui,
2162
2178
  ci
2163
2179
  ], fi = {
2164
2180
  key: 1,
2165
2181
  class: "bh-filter-input-wrapper"
2166
- }, hi = ["onUpdate:modelValue"], pi = ["onUpdate:modelValue"], vi = ["onUpdate:modelValue"], mi = ["onUpdate:modelValue"], bi = /* @__PURE__ */ k("option", { value: void 0 }, "All", -1), gi = /* @__PURE__ */ k("option", { value: !0 }, "True", -1), yi = /* @__PURE__ */ k("option", { value: !1 }, "False", -1), wi = [
2182
+ }, hi = ["onUpdate:modelValue"], pi = ["onUpdate:modelValue"], vi = ["onUpdate:modelValue"], mi = ["onUpdate:modelValue"], bi = /* @__PURE__ */ w("option", { value: void 0 }, "All", -1), gi = /* @__PURE__ */ w("option", { value: !0 }, "True", -1), yi = /* @__PURE__ */ w("option", { value: !1 }, "False", -1), wi = [
2167
2183
  bi,
2168
2184
  gi,
2169
2185
  yi
@@ -2189,291 +2205,291 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2189
2205
  "clearColumnFilter"
2190
2206
  ],
2191
2207
  setup(t, { emit: o }) {
2192
- const n = A(null), l = t, e = o, i = A({}), r = A({}), a = K(() => {
2193
- var b;
2194
- const C = /* @__PURE__ */ new Map();
2195
- return (b = l.all) != null && b.columns && l.all.columns.forEach((f) => {
2196
- f.field && C.set(f.field, f);
2197
- }), C;
2208
+ const n = W(null), l = t, e = o, i = W({}), r = W({}), a = X(() => {
2209
+ var d;
2210
+ const _ = /* @__PURE__ */ new Map();
2211
+ return (d = l.all) != null && d.columns && l.all.columns.forEach((v) => {
2212
+ v.field && _.set(v.field, v);
2213
+ }), _;
2198
2214
  });
2199
- X(
2215
+ Z(
2200
2216
  () => {
2201
- var C;
2202
- return (C = l.all) == null ? void 0 : C.columns;
2217
+ var _;
2218
+ return (_ = l.all) == null ? void 0 : _.columns;
2203
2219
  },
2204
2220
  () => {
2205
2221
  },
2206
2222
  { immediate: !0, deep: !0 }
2207
2223
  ), Le(() => {
2208
- var C;
2209
- (C = l.all) != null && C.columns && l.all.columns.forEach((b) => {
2210
- b.filter && b.field && (i.value[b.field] = b.value || "", cl(
2211
- () => i.value[b.field],
2212
- (f) => {
2213
- const h = a.value.get(b.field);
2214
- h && (h.type === "string" || h.type === "String" ? h.value = typeof f == "string" ? f.trim() : f : h.value = f, e("filterChange"));
2224
+ var _;
2225
+ (_ = l.all) != null && _.columns && l.all.columns.forEach((d) => {
2226
+ d.filter && d.field && (i.value[d.field] = d.value || "", cl(
2227
+ () => i.value[d.field],
2228
+ (v) => {
2229
+ const D = a.value.get(d.field);
2230
+ D && (D.type === "string" || D.type === "String" ? D.value = typeof v == "string" ? v.trim() : v : D.value = v, e("filterChange"));
2215
2231
  },
2216
2232
  { debounce: 300 }
2217
2233
  ));
2218
2234
  });
2219
- }), X(() => l.checkAll, () => {
2235
+ }), Z(() => l.checkAll, () => {
2220
2236
  n.value && (n.value.indeterminate = l.checkAll !== 0 ? !l.checkAll : !1, n.value.checked = l.checkAll);
2221
2237
  });
2222
- const y = (C) => {
2223
- if (!C.field) return !1;
2224
- const b = i.value[C.field];
2225
- return b !== "" && b !== null && b !== void 0;
2226
- }, g = (C) => {
2227
- const b = r.value[C.field] ?? C.condition;
2228
- return b && b !== "";
2229
- }, F = (C) => r.value[C.field] ?? C.condition ?? "", E = (C) => {
2230
- var R;
2231
- const b = F(C);
2232
- if (!b || b === "") return "";
2233
- const f = ((R = C.type) == null ? void 0 : R.toLowerCase()) || "string", x = (rt[f] || rt.string).find((J) => J.value === b);
2234
- return x ? l.columnFilterLang && l.columnFilterLang[b] ? l.columnFilterLang[b] : x.label : b;
2238
+ const b = (_) => {
2239
+ if (!_.field) return !1;
2240
+ const d = i.value[_.field];
2241
+ return d !== "" && d !== null && d !== void 0;
2242
+ }, g = (_) => {
2243
+ const d = r.value[_.field] ?? _.condition;
2244
+ return d && d !== "";
2245
+ }, C = (_) => r.value[_.field] ?? _.condition ?? "", z = (_) => {
2246
+ var N;
2247
+ const d = C(_);
2248
+ if (!d || d === "") return "";
2249
+ const v = ((N = _.type) == null ? void 0 : N.toLowerCase()) || "string", L = (rt[v] || rt.string).find((U) => U.value === d);
2250
+ return L ? l.columnFilterLang && l.columnFilterLang[d] ? l.columnFilterLang[d] : L.label : d;
2251
+ }, E = (_, d) => {
2252
+ const v = a.value.get(_);
2253
+ v && (v.condition = d, r.value[_] = d);
2254
+ }, T = (_) => {
2255
+ i.value[_.field] = "", _.value = "", _.condition = "", r.value[_.field] = "", l.currentSortColumn === _.field && e("sortChange", l.all.sortColumn || _.field, "asc"), e("filterChange");
2235
2256
  };
2236
- return (C, b) => (u(), p("tr", Zo, [
2237
- l.all.hasCheckbox ? (u(), p("th", {
2257
+ return (_, d) => (c(), h("tr", Zo, [
2258
+ l.all.hasCheckbox ? (c(), h("th", {
2238
2259
  key: "chkall",
2239
- style: G({
2260
+ style: J({
2240
2261
  width: l.all.checkboxColumnWidth + " !important",
2241
2262
  minWidth: l.all.checkboxColumnWidth + " !important"
2242
2263
  }),
2243
- class: P({
2264
+ class: I({
2244
2265
  "bh-sticky bh-bg-blue-light bh-z-[1]": l.all.stickyHeader || l.all.stickyFirstColumn,
2245
2266
  "bh-top-0": l.all.stickyHeader,
2246
2267
  "bh-left-0": l.all.stickyFirstColumn
2247
2268
  })
2248
2269
  }, [
2249
- k("div", ei, [
2250
- k("input", {
2270
+ w("div", ei, [
2271
+ w("input", {
2251
2272
  ref_key: "selectedAll",
2252
2273
  ref: n,
2253
2274
  type: "checkbox",
2254
- onClick: b[0] || (b[0] = V((f) => {
2255
- var h;
2256
- return e("selectAll", (h = f == null ? void 0 : f.target) == null ? void 0 : h.checked);
2275
+ onClick: d[0] || (d[0] = G((v) => {
2276
+ var D;
2277
+ return e("selectAll", (D = v == null ? void 0 : v.target) == null ? void 0 : D.checked);
2257
2278
  }, ["stop"]))
2258
2279
  }, null, 512),
2259
- k("div", null, [
2260
- ne(Mt, { class: "check" }),
2261
- ne(Uo, { class: "intermediate" })
2280
+ w("div", null, [
2281
+ oe(Mt, { class: "check" }),
2282
+ oe(Uo, { class: "intermediate" })
2262
2283
  ])
2263
2284
  ])
2264
- ], 6)) : I("", !0),
2265
- l.all.hasRightPanel ? (u(), p("th", {
2285
+ ], 6)) : P("", !0),
2286
+ l.all.hasRightPanel ? (c(), h("th", {
2266
2287
  key: 1,
2267
- style: G({
2288
+ style: J({
2268
2289
  width: l.all.rightPanelColumnWidth + " !important",
2269
2290
  minWidth: l.all.rightPanelColumnWidth + " !important"
2270
2291
  }),
2271
- class: P({
2292
+ class: I({
2272
2293
  "bh-sticky bh-bg-blue-light bh-z-[1]": l.all.stickyHeader || l.all.stickyFirstColumn,
2273
2294
  "bh-top-0": l.all.stickyHeader,
2274
2295
  "bh-left-0": l.all.stickyFirstColumn
2275
2296
  })
2276
- }, null, 6)) : I("", !0),
2277
- l.all.hasSubtable ? (u(), p("th", {
2297
+ }, null, 6)) : P("", !0),
2298
+ l.all.hasSubtable ? (c(), h("th", {
2278
2299
  key: 2,
2279
- style: G({
2300
+ style: J({
2280
2301
  width: l.all.subtableColumnWidth + " !important",
2281
2302
  minWidth: l.all.subtableColumnWidth + " !important"
2282
2303
  })
2283
2304
  }, [
2284
- l.all.expandall ? (u(), re(Et, {
2305
+ l.all.expandall ? (c(), ue(Et, {
2285
2306
  key: 0,
2286
2307
  expandedrows: l.expandedrows,
2287
2308
  expandall: l.all.expandall
2288
- }, null, 8, ["expandedrows", "expandall"])) : I("", !0)
2289
- ], 4)) : I("", !0),
2290
- (u(!0), p(D, null, oe(l.all.columns, (f, h) => (u(), p(D, null, [
2291
- f.hide ? I("", !0) : (u(), p("th", {
2292
- key: f.field,
2293
- class: P(["bh-select-none bh-z-[1]", [
2294
- l.all.sortable && f.sort ? "bh-cursor-pointer" : "",
2295
- h === 0 && l.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2296
- l.all.hasCheckbox && h === 0 && l.all.stickyFirstColumn ? "bh-left-[52px]" : ""
2309
+ }, null, 8, ["expandedrows", "expandall"])) : P("", !0)
2310
+ ], 4)) : P("", !0),
2311
+ (c(!0), h(H, null, re(l.all.columns, (v, D) => (c(), h(H, null, [
2312
+ v.hide ? P("", !0) : (c(), h("th", {
2313
+ key: v.field,
2314
+ class: I(["bh-select-none bh-z-[1]", [
2315
+ l.all.sortable && v.sort ? "bh-cursor-pointer" : "",
2316
+ D === 0 && l.all.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
2317
+ l.all.hasCheckbox && D === 0 && l.all.stickyFirstColumn ? "bh-left-[52px]" : ""
2297
2318
  ]]),
2298
- style: G({
2299
- width: f.width,
2300
- "min-width": f.minWidth,
2301
- "max-width": f.maxWidth
2319
+ style: J({
2320
+ width: v.width,
2321
+ "min-width": v.minWidth,
2322
+ "max-width": v.maxWidth
2302
2323
  })
2303
2324
  }, [
2304
- k("div", {
2305
- class: P(["bh-flex bh-items-center", [f.headerClass ? f.headerClass : ""]]),
2306
- onClick: (x) => l.all.sortable && f.sort && e("sortChange", f.field)
2325
+ w("div", {
2326
+ class: I(["bh-flex bh-items-center", [v.headerClass ? v.headerClass : ""]]),
2327
+ onClick: (L) => l.all.sortable && v.sort && e("sortChange", v.field)
2307
2328
  }, [
2308
- We(B(f.title) + " ", 1),
2309
- l.all.sortable && f.sort ? (u(), p("span", {
2329
+ We(V(v.title) + " ", 1),
2330
+ l.all.sortable && v.sort ? (c(), h("span", {
2310
2331
  key: 0,
2311
- class: P(["bh-ml-3 bh-sort bh-flex bh-items-center", [l.currentSortColumn, l.currentSortDirection]])
2332
+ class: I(["bh-ml-3 bh-sort bh-flex bh-items-center", [l.currentSortColumn, l.currentSortDirection]])
2312
2333
  }, [
2313
- (u(), p("svg", ni, [
2314
- k("polygon", {
2334
+ (c(), h("svg", ni, [
2335
+ w("polygon", {
2315
2336
  points: "3.11,6.25 10.89,6.25 7,1.75 ",
2316
2337
  fill: "currentColor",
2317
- class: P(["bh-text-black/20", [
2318
- t.currentSortColumn === f.field && t.currentSortDirection === "asc" ? "!bh-text-primary" : ""
2338
+ class: I(["bh-text-black/20", [
2339
+ t.currentSortColumn === v.field && t.currentSortDirection === "asc" ? "!bh-text-primary" : ""
2319
2340
  ]])
2320
2341
  }, null, 2),
2321
- k("polygon", {
2342
+ w("polygon", {
2322
2343
  points: "7,12.25 10.89,7.75 3.11,7.75 ",
2323
2344
  fill: "currentColor",
2324
- class: P(["bh-text-black/20", [
2325
- t.currentSortColumn === f.field && t.currentSortDirection === "desc" ? "!bh-text-primary" : ""
2345
+ class: I(["bh-text-black/20", [
2346
+ t.currentSortColumn === v.field && t.currentSortDirection === "desc" ? "!bh-text-primary" : ""
2326
2347
  ]])
2327
2348
  }, null, 2)
2328
2349
  ]))
2329
- ], 2)) : I("", !0)
2350
+ ], 2)) : P("", !0)
2330
2351
  ], 10, ti),
2331
- l.all.columnFilter && !l.isFooter ? (u(), p(D, { key: 0 }, [
2332
- f.filter ? (u(), p("div", li, [
2333
- l.all.showFloatingFilterLabel ? I("", !0) : (u(), p(D, { key: 0 }, [
2334
- f.type === "string" || f.type === "String" ? ie((u(), p("input", {
2352
+ l.all.columnFilter && !l.isFooter ? (c(), h(H, { key: 0 }, [
2353
+ v.filter ? (c(), h("div", li, [
2354
+ l.all.showFloatingFilterLabel ? P("", !0) : (c(), h(H, { key: 0 }, [
2355
+ v.type === "string" || v.type === "String" ? ae((c(), h("input", {
2335
2356
  key: 0,
2336
- "onUpdate:modelValue": (x) => i.value[f.field] = x,
2357
+ "onUpdate:modelValue": (L) => i.value[v.field] = L,
2337
2358
  type: "text",
2338
2359
  class: "bh-form-control"
2339
2360
  }, null, 8, oi)), [
2340
- [Pe, i.value[f.field]]
2341
- ]) : I("", !0),
2342
- f.type === "number" || f.type === "integer" || f.type === "Integer" ? ie((u(), p("input", {
2361
+ [Pe, i.value[v.field]]
2362
+ ]) : P("", !0),
2363
+ v.type === "number" || v.type === "integer" || v.type === "Integer" ? ae((c(), h("input", {
2343
2364
  key: 1,
2344
- "onUpdate:modelValue": (x) => i.value[f.field] = x,
2365
+ "onUpdate:modelValue": (L) => i.value[v.field] = L,
2345
2366
  type: "number",
2346
2367
  class: "bh-form-control"
2347
2368
  }, null, 8, ii)), [
2348
2369
  [
2349
2370
  Pe,
2350
- i.value[f.field],
2371
+ i.value[v.field],
2351
2372
  void 0,
2352
2373
  { number: !0 }
2353
2374
  ]
2354
- ]) : f.type === "date" || f.type === "DateTime" ? ie((u(), p("input", {
2375
+ ]) : v.type === "date" || v.type === "DateTime" ? ae((c(), h("input", {
2355
2376
  key: 2,
2356
- "onUpdate:modelValue": (x) => i.value[f.field] = x,
2377
+ "onUpdate:modelValue": (L) => i.value[v.field] = L,
2357
2378
  type: "date",
2358
2379
  class: "bh-form-control"
2359
2380
  }, null, 8, si)), [
2360
- [Pe, i.value[f.field]]
2361
- ]) : f.type === "bool" ? ie((u(), p("select", {
2381
+ [Pe, i.value[v.field]]
2382
+ ]) : v.type === "bool" ? ae((c(), h("select", {
2362
2383
  key: 3,
2363
- "onUpdate:modelValue": (x) => i.value[f.field] = x,
2384
+ "onUpdate:modelValue": (L) => i.value[v.field] = L,
2364
2385
  class: "bh-form-control",
2365
- onClick: b[1] || (b[1] = //@ts-ignore
2366
- (...x) => l.isOpenFilter && l.isOpenFilter(...x))
2386
+ onClick: d[1] || (d[1] = //@ts-ignore
2387
+ (...L) => l.isOpenFilter && l.isOpenFilter(...L))
2367
2388
  }, di, 8, ri)), [
2368
- [it, i.value[f.field]]
2369
- ]) : I("", !0)
2389
+ [it, i.value[v.field]]
2390
+ ]) : P("", !0)
2370
2391
  ], 64)),
2371
- l.all.showFloatingFilterLabel ? (u(), p("div", fi, [
2372
- g(f) && l.all.useNewColumnFilter ? (u(), p("label", {
2392
+ l.all.showFloatingFilterLabel ? (c(), h("div", fi, [
2393
+ g(v) && l.all.useNewColumnFilter ? (c(), h("label", {
2373
2394
  key: 0,
2374
- class: P(["bh-floating-label", {
2375
- "bh-floating-label--active": y(f)
2395
+ class: I(["bh-floating-label", {
2396
+ "bh-floating-label--active": b(v)
2376
2397
  }])
2377
- }, B(E(f)), 3)) : I("", !0),
2378
- f.type === "string" || f.type === "String" ? ie((u(), p("input", {
2398
+ }, V(z(v)), 3)) : P("", !0),
2399
+ v.type === "string" || v.type === "String" ? ae((c(), h("input", {
2379
2400
  key: 1,
2380
- "onUpdate:modelValue": (x) => i.value[f.field] = x,
2401
+ "onUpdate:modelValue": (L) => i.value[v.field] = L,
2381
2402
  type: "text",
2382
- class: P(["bh-form-control", {
2383
- "bh-form-control--with-label": g(f) && l.all.useNewColumnFilter
2403
+ class: I(["bh-form-control", {
2404
+ "bh-form-control--with-label": g(v) && l.all.useNewColumnFilter
2384
2405
  }])
2385
2406
  }, null, 10, hi)), [
2386
- [Pe, i.value[f.field]]
2387
- ]) : I("", !0),
2388
- f.type === "number" || f.type === "integer" || f.type === "Integer" ? ie((u(), p("input", {
2407
+ [Pe, i.value[v.field]]
2408
+ ]) : P("", !0),
2409
+ v.type === "number" || v.type === "integer" || v.type === "Integer" ? ae((c(), h("input", {
2389
2410
  key: 2,
2390
- "onUpdate:modelValue": (x) => i.value[f.field] = x,
2411
+ "onUpdate:modelValue": (L) => i.value[v.field] = L,
2391
2412
  type: "number",
2392
- class: P(["bh-form-control", {
2393
- "bh-form-control--with-label": g(f) && l.all.useNewColumnFilter
2413
+ class: I(["bh-form-control", {
2414
+ "bh-form-control--with-label": g(v) && l.all.useNewColumnFilter
2394
2415
  }])
2395
2416
  }, null, 10, pi)), [
2396
2417
  [
2397
2418
  Pe,
2398
- i.value[f.field],
2419
+ i.value[v.field],
2399
2420
  void 0,
2400
2421
  { number: !0 }
2401
2422
  ]
2402
- ]) : f.type === "date" || f.type === "DateTime" ? ie((u(), p("input", {
2423
+ ]) : v.type === "date" || v.type === "DateTime" ? ae((c(), h("input", {
2403
2424
  key: 3,
2404
- "onUpdate:modelValue": (x) => i.value[f.field] = x,
2425
+ "onUpdate:modelValue": (L) => i.value[v.field] = L,
2405
2426
  type: "date",
2406
- class: P(["bh-form-control", {
2407
- "bh-form-control--with-label": g(f) && l.all.useNewColumnFilter
2427
+ class: I(["bh-form-control", {
2428
+ "bh-form-control--with-label": g(v) && l.all.useNewColumnFilter
2408
2429
  }])
2409
2430
  }, null, 10, vi)), [
2410
- [Pe, i.value[f.field]]
2411
- ]) : f.type === "bool" ? ie((u(), p("select", {
2431
+ [Pe, i.value[v.field]]
2432
+ ]) : v.type === "bool" ? ae((c(), h("select", {
2412
2433
  key: 4,
2413
- "onUpdate:modelValue": (x) => i.value[f.field] = x,
2434
+ "onUpdate:modelValue": (L) => i.value[v.field] = L,
2414
2435
  class: "bh-form-control",
2415
- onClick: b[2] || (b[2] = //@ts-ignore
2416
- (...x) => l.isOpenFilter && l.isOpenFilter(...x))
2436
+ onClick: d[2] || (d[2] = //@ts-ignore
2437
+ (...L) => l.isOpenFilter && l.isOpenFilter(...L))
2417
2438
  }, wi, 8, mi)), [
2418
- [it, i.value[f.field]]
2419
- ]) : I("", !0)
2420
- ])) : I("", !0),
2421
- f.type !== "bool" ? (u(), p("button", {
2439
+ [it, i.value[v.field]]
2440
+ ]) : P("", !0)
2441
+ ])) : P("", !0),
2442
+ v.type !== "bool" ? (c(), h("button", {
2422
2443
  key: 2,
2423
2444
  type: "button",
2424
- class: P(["bh-filter-button", {
2425
- "!bh-bg-primary/10 !bh-border-primary": g(f),
2426
- "bh-bg-[#e0e6ed] dark:bh-bg-gray-700": !g(f),
2445
+ class: I(["bh-filter-button", {
2446
+ "!bh-bg-primary/10 !bh-border-primary": g(v),
2447
+ "bh-bg-[#e0e6ed] dark:bh-bg-gray-700": !g(v),
2427
2448
  "bh-filter-button--with-label": l.all.showFloatingFilterLabel
2428
2449
  }]),
2429
- onClick: V((x) => e("toggleFilterMenu", f), ["stop"])
2450
+ onClick: G((L) => e("toggleFilterMenu", v), ["stop"])
2430
2451
  }, [
2431
- ne(Xo, {
2432
- class: P(["bh-w-4", {
2433
- "bh-text-primary": g(f),
2434
- "bh-text-black/70 dark:bh-text-gray-300": !g(f)
2452
+ oe(Xo, {
2453
+ class: I(["bh-w-4", {
2454
+ "bh-text-primary": g(v),
2455
+ "bh-text-black/70 dark:bh-text-gray-300": !g(v)
2435
2456
  }])
2436
2457
  }, null, 8, ["class"])
2437
- ], 10, ki)) : I("", !0),
2438
- l.all.useNewColumnFilter ? I("", !0) : ie((u(), re(Lo, {
2458
+ ], 10, ki)) : P("", !0),
2459
+ l.all.useNewColumnFilter ? P("", !0) : ae((c(), ue(Lo, {
2439
2460
  key: 3,
2440
- column: f,
2441
- type: f.type,
2461
+ column: v,
2462
+ type: v.type,
2442
2463
  columnFilterLang: l.columnFilterLang,
2443
- onClose: b[3] || (b[3] = (x) => e("toggleFilterMenu", null)),
2444
- onFilterChange: b[4] || (b[4] = (x) => e("filterChange"))
2464
+ onClose: d[3] || (d[3] = (L) => e("toggleFilterMenu", null)),
2465
+ onFilterChange: d[4] || (d[4] = (L) => e("filterChange"))
2445
2466
  }, null, 8, ["column", "type", "columnFilterLang"])), [
2446
- [Gt, l.isOpenFilter === f.field]
2467
+ [Gt, l.isOpenFilter === v.field]
2447
2468
  ]),
2448
- l.all.useNewColumnFilter ? ie((u(), re($o, {
2469
+ l.all.useNewColumnFilter ? ae((c(), ue($o, {
2449
2470
  key: 4,
2450
- column: f,
2471
+ column: v,
2451
2472
  columnFilterLang: l.columnFilterLang,
2452
2473
  currentSortColumn: l.currentSortColumn,
2453
2474
  currentSortDirection: l.currentSortDirection,
2454
- onClose: b[5] || (b[5] = (x) => e("toggleFilterMenu", null)),
2455
- onFilterChange: b[6] || (b[6] = (x) => e("filterChange")),
2456
- onSortChange: b[7] || (b[7] = (x, R) => e("sortChange", x, R)),
2457
- onConditionChange: b[8] || (b[8] = (x, R) => {
2458
- const J = a.value.value.get(x);
2459
- J && (J.condition = R, r.value.value[x] = R);
2460
- }),
2461
- onClearFilter: (x) => {
2462
- i.value[x.field] = "", x.value = "", x.condition = "", r.value.value[x.field] = "", l.currentSortColumn === x.field && e("sortChange", l.all.sortColumn || x.field, "asc"), e("filterChange");
2463
- }
2464
- }, null, 8, ["column", "columnFilterLang", "currentSortColumn", "currentSortDirection", "onClearFilter"])), [
2465
- [Gt, l.isOpenFilter === f.field]
2466
- ]) : I("", !0)
2467
- ])) : I("", !0)
2468
- ], 64)) : I("", !0)
2475
+ onClose: d[5] || (d[5] = (L) => e("toggleFilterMenu", null)),
2476
+ onFilterChange: d[6] || (d[6] = (L) => e("filterChange")),
2477
+ onSortChange: d[7] || (d[7] = (L, N) => e("sortChange", L, N)),
2478
+ onConditionChange: E,
2479
+ onClearFilter: T
2480
+ }, null, 8, ["column", "columnFilterLang", "currentSortColumn", "currentSortDirection"])), [
2481
+ [Gt, l.isOpenFilter === v.field]
2482
+ ]) : P("", !0)
2483
+ ])) : P("", !0)
2484
+ ], 64)) : P("", !0)
2469
2485
  ], 6))
2470
2486
  ], 64))), 256))
2471
2487
  ]));
2472
2488
  }
2473
- }), xi = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, Si = { class: "bh-flex bh-h-full" }, Fi = /* @__PURE__ */ k("span", null, "##Left Menu Slot##", -1), Li = {
2489
+ }), xi = { class: "bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal" }, Si = { class: "bh-flex bh-h-full" }, Fi = /* @__PURE__ */ w("span", null, "##Left Menu Slot##", -1), Li = {
2474
2490
  key: 0,
2475
2491
  class: "menu-resize-controls bh-absolute bh-right-0 bh-top-1/2 bh-transform -bh-translate-y-1/2 bh-z-10 bh-bg-gray-100 bh-rounded-l bh-shadow-md bh-select-none"
2476
- }, _i = /* @__PURE__ */ k("path", {
2492
+ }, _i = /* @__PURE__ */ w("path", {
2477
2493
  d: "M7 1L1 6L7 11",
2478
2494
  stroke: "currentColor",
2479
2495
  "stroke-width": "2",
@@ -2484,9 +2500,9 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2484
2500
  ], Ei = {
2485
2501
  class: "bh-flex-1",
2486
2502
  style: { overflow: "auto", "min-width": "0", width: "100%" }
2487
- }, Mi = /* @__PURE__ */ k("span", null, "##Top Menu Slot##", -1), Ii = /* @__PURE__ */ k("span", null, "##Table Header Area Slot##", -1), Pi = /* @__PURE__ */ k("span", null, "##Table Action Header Slot##", -1), Ti = ["onClick"], Ni = { class: "bh-checkbox" }, $i = ["value"], Oi = ["innerHTML"], Ri = ["onClick"], Ai = ["colspan"], qi = ["colspan"], Wi = /* @__PURE__ */ k("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Di = [
2503
+ }, Mi = /* @__PURE__ */ w("span", null, "##Top Menu Slot##", -1), Ii = /* @__PURE__ */ w("span", null, "##Table Header Area Slot##", -1), Pi = /* @__PURE__ */ w("span", null, "##Table Action Header Slot##", -1), Ti = ["onClick"], Ni = { class: "bh-checkbox" }, $i = ["value"], Oi = ["innerHTML"], Ri = ["onClick"], Ai = ["colspan"], qi = ["colspan"], Wi = /* @__PURE__ */ w("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Di = [
2488
2504
  Wi
2489
- ], Bi = ["colspan"], Hi = /* @__PURE__ */ k("span", null, "##Table Header Area Slot##", -1), Vi = ["onClick"], ji = { class: "bh-checkbox" }, Ui = ["value"], Gi = ["innerHTML"], Qi = ["onClick"], Ki = ["colspan"], Ji = ["colspan"], Yi = /* @__PURE__ */ k("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Xi = [
2505
+ ], Bi = ["colspan"], Hi = /* @__PURE__ */ w("span", null, "##Table Header Area Slot##", -1), Vi = ["onClick"], ji = { class: "bh-checkbox" }, Ui = ["value"], Gi = ["innerHTML"], Qi = ["onClick"], Ki = ["colspan"], Ji = ["colspan"], Yi = /* @__PURE__ */ w("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), Xi = [
2490
2506
  Yi
2491
2507
  ], Zi = ["colspan"], es = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, ts = { class: "bh-pagination-info bh-flex bh-items-center" }, ns = { class: "bh-mr-2" }, ls = ["value"], os = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, is = ["innerHTML"], ss = {
2492
2508
  key: 1,
@@ -2494,12 +2510,12 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2494
2510
  width: "14",
2495
2511
  height: "14",
2496
2512
  viewBox: "0 0 16 16"
2497
- }, rs = /* @__PURE__ */ k("g", {
2513
+ }, rs = /* @__PURE__ */ w("g", {
2498
2514
  fill: "currentColor",
2499
2515
  "fill-rule": "evenodd"
2500
2516
  }, [
2501
- /* @__PURE__ */ k("path", { d: "M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" }),
2502
- /* @__PURE__ */ k("path", { d: "M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" })
2517
+ /* @__PURE__ */ w("path", { d: "M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" }),
2518
+ /* @__PURE__ */ w("path", { d: "M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z" })
2503
2519
  ], -1), as = [
2504
2520
  rs
2505
2521
  ], us = ["innerHTML"], cs = {
@@ -2508,7 +2524,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2508
2524
  width: "14",
2509
2525
  height: "14",
2510
2526
  viewBox: "0 0 16 16"
2511
- }, ds = /* @__PURE__ */ k("path", {
2527
+ }, ds = /* @__PURE__ */ w("path", {
2512
2528
  fill: "currentColor",
2513
2529
  "fill-rule": "evenodd",
2514
2530
  d: "M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"
@@ -2520,7 +2536,7 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2520
2536
  width: "14",
2521
2537
  height: "14",
2522
2538
  viewBox: "0 0 16 16"
2523
- }, ms = /* @__PURE__ */ k("path", {
2539
+ }, ms = /* @__PURE__ */ w("path", {
2524
2540
  fill: "currentColor",
2525
2541
  "fill-rule": "evenodd",
2526
2542
  d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8L4.646 2.354a.5.5 0 0 1 0-.708z"
@@ -2532,12 +2548,12 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2532
2548
  width: "14",
2533
2549
  height: "14",
2534
2550
  viewBox: "0 0 16 16"
2535
- }, ws = /* @__PURE__ */ k("g", {
2551
+ }, ws = /* @__PURE__ */ w("g", {
2536
2552
  fill: "currentColor",
2537
2553
  "fill-rule": "evenodd"
2538
2554
  }, [
2539
- /* @__PURE__ */ k("path", { d: "M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8L3.646 2.354a.5.5 0 0 1 0-.708z" }),
2540
- /* @__PURE__ */ k("path", { d: "M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8L7.646 2.354a.5.5 0 0 1 0-.708z" })
2555
+ /* @__PURE__ */ w("path", { d: "M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8L3.646 2.354a.5.5 0 0 1 0-.708z" }),
2556
+ /* @__PURE__ */ w("path", { d: "M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8L7.646 2.354a.5.5 0 0 1 0-.708z" })
2541
2557
  ], -1), ks = [
2542
2558
  ws
2543
2559
  ], Cs = {
@@ -2630,112 +2646,112 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2630
2646
  var Ht, Vt;
2631
2647
  const l = pn(), e = t;
2632
2648
  for (const s of e.columns || []) {
2633
- const v = ((Ht = s.type) == null ? void 0 : Ht.toLowerCase()) || "string";
2634
- 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";
2649
+ const p = ((Ht = s.type) == null ? void 0 : Ht.toLowerCase()) || "string";
2650
+ 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";
2635
2651
  }
2636
- const i = A([]), r = A(e.page), a = A(
2652
+ const i = W([]), r = W(e.page), a = W(
2637
2653
  e.pagination ? e.pageSize : (Vt = e.rows) == null ? void 0 : Vt.length
2638
- ), d = e.pageSize, y = A(e.sortColumn), g = e.sortColumn, F = A(e.sortDirection), E = e.sortDirection, C = A(e.totalRows), b = A([]), f = A(null), h = A(e.loading), x = A(e.search);
2654
+ ), u = e.pageSize, b = W(e.sortColumn), g = e.sortColumn, C = W(e.sortDirection), z = e.sortDirection, E = W(e.totalRows), T = W([]), _ = W(null), d = W(e.loading), v = W(e.search);
2639
2655
  JSON.parse(JSON.stringify(e.columns));
2640
- const R = A(null), J = A(null);
2641
- let Y = A(0);
2642
- const we = A(230), q = A(e.leftmenuDefaultWidth), H = A(!1), ce = A(null), se = /* @__PURE__ */ new Map(), O = (s, v) => {
2643
- if (!v) return;
2644
- const m = `${s.id || JSON.stringify(s)}-${v}`;
2656
+ const D = W(null), L = W(null);
2657
+ let N = W(0);
2658
+ const U = W(230), q = W(e.leftmenuDefaultWidth), j = W(!1), ie = W(null), se = /* @__PURE__ */ new Map(), A = (s, p) => {
2659
+ if (!p) return;
2660
+ const m = `${s.id || JSON.stringify(s)}-${p}`;
2645
2661
  if (se.has(m))
2646
2662
  return se.get(m);
2647
- const $ = v.split(".").reduce((M, Z) => M == null ? void 0 : M[Z], s);
2648
- return se.set(m, $), $;
2663
+ const R = p.split(".").reduce((M, ee) => M == null ? void 0 : M[ee], s);
2664
+ return se.set(m, R), R;
2649
2665
  };
2650
- X(() => e.rows, () => {
2666
+ Z(() => e.rows, () => {
2651
2667
  se.clear();
2652
2668
  }, { deep: !1 });
2653
- const le = K(() => {
2654
- const s = e.columns.find((v) => v.isUnique);
2669
+ const ne = X(() => {
2670
+ const s = e.columns.find((p) => p.isUnique);
2655
2671
  return (s == null ? void 0 : s.field) || null;
2656
- }), ve = K(() => le.value ? new Map(i.value.map((s, v) => [v, s[le.value]])) : null), ze = (s) => {
2657
- var v;
2658
- return le.value ? ((v = ve.value) == null ? void 0 : v.get(s)) ?? s : s;
2659
- }, Te = (s, v) => {
2660
- const m = s._rowIndex !== void 0 ? s._rowIndex : s.id || v;
2661
- return ae.value.get(m) === !0;
2662
- }, Ee = K(() => typeof e.rowClass == "function"), me = K(() => typeof e.cellClass == "function"), Ne = /* @__PURE__ */ new Map(), ft = (s) => {
2663
- const v = s ? "numeric" : "string";
2664
- return Ne.has(v) || Ne.set(v, new Intl.Collator(void 0, {
2672
+ }), ce = X(() => ne.value ? new Map(i.value.map((s, p) => [p, s[ne.value]])) : null), ze = (s) => {
2673
+ var p;
2674
+ return ne.value ? ((p = ce.value) == null ? void 0 : p.get(s)) ?? s : s;
2675
+ }, Te = (s, p) => {
2676
+ const m = s._rowIndex !== void 0 ? s._rowIndex : s.id || p;
2677
+ return de.value.get(m) === !0;
2678
+ }, Ee = X(() => typeof e.rowClass == "function"), be = X(() => typeof e.cellClass == "function"), Ne = /* @__PURE__ */ new Map(), ft = (s) => {
2679
+ const p = s ? "numeric" : "string";
2680
+ return Ne.has(p) || Ne.set(p, new Intl.Collator(void 0, {
2665
2681
  numeric: s,
2666
2682
  sensitivity: "base"
2667
- })), Ne.get(v);
2668
- }, Ue = K(() => {
2669
- var $, M, Z;
2683
+ })), Ne.get(p);
2684
+ }, Ue = X(() => {
2685
+ var R, M, ee;
2670
2686
  let s = e.rows || [];
2671
2687
  if (!e.isServerMode) {
2672
- if (($ = e.columns) == null || $.forEach((w) => {
2673
- w.filter && (w.value !== void 0 && w.value !== null && w.value !== "" || w.condition === "IsNull" || w.condition == "IsNotNull") && (w.type === "string" ? (w.value && !w.condition && (w.condition = "Contains"), w.condition === "Contains" ? s = s.filter((T) => {
2674
- var Q;
2675
- return (Q = O(T, w.field)) == null ? void 0 : Q.toString().toLowerCase().includes(w.value.toLowerCase());
2676
- }) : w.condition === "NotContains" ? s = s.filter((T) => {
2677
- var Q;
2678
- return !((Q = O(T, w.field)) != null && Q.toString().toLowerCase().includes(w.value.toLowerCase()));
2679
- }) : w.condition === "Equal" ? s = s.filter((T) => {
2680
- var Q;
2681
- return ((Q = O(T, w.field)) == null ? void 0 : Q.toString().toLowerCase()) === w.value.toLowerCase();
2682
- }) : w.condition === "NotEqual" ? s = s.filter((T) => {
2683
- var Q;
2684
- return ((Q = O(T, w.field)) == null ? void 0 : Q.toString().toLowerCase()) !== w.value.toLowerCase();
2685
- }) : w.condition == "StartsWith" ? s = s.filter((T) => {
2686
- var Q;
2687
- return ((Q = O(T, w.field)) == null ? void 0 : Q.toString().toLowerCase().indexOf(w.value.toLowerCase())) === 0;
2688
- }) : w.condition == "EndsWith" && (s = s.filter((T) => {
2689
- var Q;
2690
- return ((Q = O(T, w.field)) == null ? void 0 : Q.toString().toLowerCase().substr(w.value.length * -1)) === w.value.toLowerCase();
2691
- }))) : w.type === "number" ? (w.value && !w.condition && (w.condition = "Equal"), w.condition === "Equal" ? s = s.filter((T) => O(T, w.field) && parseFloat(O(T, w.field)) === parseFloat(w.value)) : w.condition === "NotEqual" ? s = s.filter((T) => O(T, w.field) && parseFloat(O(T, w.field)) !== parseFloat(w.value)) : w.condition === "GreaterThan" ? s = s.filter((T) => O(T, w.field) && parseFloat(O(T, w.field)) > parseFloat(w.value)) : w.condition === "GreaterThanOrEqual" ? s = s.filter((T) => O(T, w.field) && parseFloat(O(T, w.field)) >= parseFloat(w.value)) : w.condition === "LessThan" ? s = s.filter((T) => O(T, w.field) && parseFloat(O(T, w.field)) < parseFloat(w.value)) : w.condition === "LessThanOrEqual" && (s = s.filter((T) => O(T, w.field) && parseFloat(O(T, w.field)) <= parseFloat(w.value)))) : w.type === "date" ? (w.value && !w.condition && (w.condition = "Equal"), w.condition === "Equal" ? s = s.filter((T) => O(T, w.field) && Je(O(T, w.field)) === w.value) : w.condition === "NotEqual" ? s = s.filter((T) => O(T, w.field) && Je(O(T, w.field)) !== w.value) : w.condition === "GreaterThan" ? s = s.filter((T) => O(T, w.field) && Je(O(T, w.field)) > w.value) : w.condition === "LessThan" && (s = s.filter((T) => O(T, w.field) && Je(O(T, w.field)) < w.value))) : w.type === "bool" && (s = s.filter((T) => O(T, w.field) === w.value)), w.condition === "IsNull" ? (s = s.filter((T) => O(T, w.field) == null || O(T, w.field) == ""), w.value = "") : w.condition === "IsNotNull" && (w.value = "", s = s.filter((T) => O(T, w.field))));
2692
- }), x.value && (s != null && s.length)) {
2693
- let w = [];
2694
- const T = (e.columns || []).filter((Q) => Q.search && !Q.hide).map((Q) => Q.field);
2695
- for (var v = 0; v < (s == null ? void 0 : s.length); v++)
2696
- for (var m = 0; m < T.length; m++)
2697
- if ((M = O(s[v], T[m])) != null && M.toString().toLowerCase().includes(x.value.toLowerCase())) {
2698
- w.push(s[v]);
2688
+ if ((R = e.columns) == null || R.forEach((y) => {
2689
+ y.filter && (y.value !== void 0 && y.value !== null && y.value !== "" || y.condition === "IsNull" || y.condition == "IsNotNull") && (y.type === "string" ? (y.value && !y.condition && (y.condition = "Contains"), y.condition === "Contains" ? s = s.filter(($) => {
2690
+ var Y;
2691
+ return (Y = A($, y.field)) == null ? void 0 : Y.toString().toLowerCase().includes(y.value.toLowerCase());
2692
+ }) : y.condition === "NotContains" ? s = s.filter(($) => {
2693
+ var Y;
2694
+ return !((Y = A($, y.field)) != null && Y.toString().toLowerCase().includes(y.value.toLowerCase()));
2695
+ }) : y.condition === "Equal" ? s = s.filter(($) => {
2696
+ var Y;
2697
+ return ((Y = A($, y.field)) == null ? void 0 : Y.toString().toLowerCase()) === y.value.toLowerCase();
2698
+ }) : y.condition === "NotEqual" ? s = s.filter(($) => {
2699
+ var Y;
2700
+ return ((Y = A($, y.field)) == null ? void 0 : Y.toString().toLowerCase()) !== y.value.toLowerCase();
2701
+ }) : y.condition == "StartsWith" ? s = s.filter(($) => {
2702
+ var Y;
2703
+ return ((Y = A($, y.field)) == null ? void 0 : Y.toString().toLowerCase().indexOf(y.value.toLowerCase())) === 0;
2704
+ }) : y.condition == "EndsWith" && (s = s.filter(($) => {
2705
+ var Y;
2706
+ return ((Y = A($, y.field)) == null ? void 0 : Y.toString().toLowerCase().substr(y.value.length * -1)) === y.value.toLowerCase();
2707
+ }))) : y.type === "number" ? (y.value && !y.condition && (y.condition = "Equal"), y.condition === "Equal" ? s = s.filter(($) => A($, y.field) && parseFloat(A($, y.field)) === parseFloat(y.value)) : y.condition === "NotEqual" ? s = s.filter(($) => A($, y.field) && parseFloat(A($, y.field)) !== parseFloat(y.value)) : y.condition === "GreaterThan" ? s = s.filter(($) => A($, y.field) && parseFloat(A($, y.field)) > parseFloat(y.value)) : y.condition === "GreaterThanOrEqual" ? s = s.filter(($) => A($, y.field) && parseFloat(A($, y.field)) >= parseFloat(y.value)) : y.condition === "LessThan" ? s = s.filter(($) => A($, y.field) && parseFloat(A($, y.field)) < parseFloat(y.value)) : y.condition === "LessThanOrEqual" && (s = s.filter(($) => A($, y.field) && parseFloat(A($, y.field)) <= parseFloat(y.value)))) : y.type === "date" ? (y.value && !y.condition && (y.condition = "Equal"), y.condition === "Equal" ? s = s.filter(($) => A($, y.field) && Je(A($, y.field)) === y.value) : y.condition === "NotEqual" ? s = s.filter(($) => A($, y.field) && Je(A($, y.field)) !== y.value) : y.condition === "GreaterThan" ? s = s.filter(($) => A($, y.field) && Je(A($, y.field)) > y.value) : y.condition === "LessThan" && (s = s.filter(($) => A($, y.field) && Je(A($, y.field)) < y.value))) : y.type === "bool" && (s = s.filter(($) => A($, y.field) === y.value)), y.condition === "IsNull" ? (s = s.filter(($) => A($, y.field) == null || A($, y.field) == ""), y.value = "") : y.condition === "IsNotNull" && (y.value = "", s = s.filter(($) => A($, y.field))));
2708
+ }), v.value && (s != null && s.length)) {
2709
+ let y = [];
2710
+ const $ = (e.columns || []).filter((Y) => Y.search && !Y.hide).map((Y) => Y.field);
2711
+ for (var p = 0; p < (s == null ? void 0 : s.length); p++)
2712
+ for (var m = 0; m < $.length; m++)
2713
+ if ((M = A(s[p], $[m])) != null && M.toString().toLowerCase().includes(v.value.toLowerCase())) {
2714
+ y.push(s[p]);
2699
2715
  break;
2700
2716
  }
2701
- s = w;
2717
+ s = y;
2702
2718
  }
2703
- const be = ((Z = e.columns.find((w) => w.field == y.value)) == null ? void 0 : Z.type) === "number", Un = ft(be || !1), Gn = F.value === "desc" ? -1 : 1;
2704
- s.sort((w, T) => {
2719
+ const ge = ((ee = e.columns.find((y) => y.field == b.value)) == null ? void 0 : ee.type) === "number", Un = ft(ge || !1), Gn = C.value === "desc" ? -1 : 1;
2720
+ s.sort((y, $) => {
2705
2721
  var jt, Ut;
2706
- const Q = (jt = y.value) == null ? void 0 : jt.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], w), Qn = (Ut = y.value) == null ? void 0 : Ut.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], T);
2707
- return Un.compare(Q, Qn) * Gn;
2722
+ const Y = (jt = b.value) == null ? void 0 : jt.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], y), Qn = (Ut = b.value) == null ? void 0 : Ut.split(".").reduce((Ce, mt) => Ce == null ? void 0 : Ce[mt], $);
2723
+ return Un.compare(Y, Qn) * Gn;
2708
2724
  });
2709
2725
  }
2710
2726
  return s;
2711
- }), ae = A(/* @__PURE__ */ new Map()), pe = () => {
2712
- let s = [], v = Ue.value;
2713
- e.isServerMode ? (C.value = e.totalRows || 0, s = v) : (C.value = (v == null ? void 0 : v.length) || 0, s = v.slice(S.value - 1, z.value)), e.hasSubtable && s.forEach(function(m, $) {
2727
+ }), de = W(/* @__PURE__ */ new Map()), me = () => {
2728
+ let s = [], p = Ue.value;
2729
+ e.isServerMode ? (E.value = e.totalRows || 0, s = p) : (E.value = (p == null ? void 0 : p.length) || 0, s = p.slice(k.value - 1, F.value)), e.hasSubtable && s.forEach(function(m, R) {
2714
2730
  if (m.isExpanded !== void 0) {
2715
- const M = m._rowIndex !== void 0 ? m._rowIndex : m.id || $;
2716
- ae.value.set(M, m.isExpanded);
2731
+ const M = m._rowIndex !== void 0 ? m._rowIndex : m.id || R;
2732
+ de.value.set(M, m.isExpanded);
2717
2733
  }
2718
2734
  }), i.value = s || [];
2719
2735
  }, ke = () => {
2720
- if (ce.value) {
2721
- const s = H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth;
2722
- ce.value.style.cssText = `
2736
+ if (ie.value) {
2737
+ const s = j.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth;
2738
+ ie.value.style.cssText = `
2723
2739
  width: ${q.value}px !important;
2724
2740
  min-width: ${s}px !important;
2725
2741
  max-width: ${s}px !important;
2726
2742
  `;
2727
2743
  }
2728
2744
  }, Ge = () => {
2729
- H.value ? q.value = e.leftmenuMinWidth : q.value = e.leftmenuDefaultWidth, ke();
2745
+ j.value ? q.value = e.leftmenuMinWidth : q.value = e.leftmenuDefaultWidth, ke();
2730
2746
  }, $e = () => {
2731
- H.value = !H.value, q.value = H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth, ke(), j("currentLeftMenuSize", q.value);
2747
+ j.value = !j.value, q.value = j.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth, ke(), Q("currentLeftMenuSize", q.value);
2732
2748
  };
2733
2749
  Le(() => {
2734
- pe(), Se(() => {
2735
- Re.value <= 0 && (Re.value = 10), j("currentTopMenuSize", e.topmenumin || 20), e.initialLeftMenuState !== void 0 ? (H.value = e.initialLeftMenuState, q.value = H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth) : q.value = e.leftmenuDefaultWidth, ke(), window.addEventListener("resize", Ge);
2750
+ me(), Se(() => {
2751
+ Re.value <= 0 && (Re.value = 10), Q("currentTopMenuSize", e.topmenumin || 20), e.initialLeftMenuState !== void 0 ? (j.value = e.initialLeftMenuState, q.value = j.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth) : q.value = e.leftmenuDefaultWidth, ke(), window.addEventListener("resize", Ge);
2736
2752
  });
2737
2753
  });
2738
- const j = n;
2754
+ const Q = n;
2739
2755
  o({
2740
2756
  reset() {
2741
2757
  Rn();
@@ -2765,599 +2781,599 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
2765
2781
  Dn();
2766
2782
  },
2767
2783
  setLeftMenuState(s) {
2768
- H.value = s, q.value = s ? e.leftmenuMinWidth : e.leftmenuDefaultWidth, ke();
2784
+ j.value = s, q.value = s ? e.leftmenuMinWidth : e.leftmenuDefaultWidth, ke();
2769
2785
  }
2770
- }), X(() => e.initialLeftMenuState, (s) => {
2771
- s !== void 0 && (H.value = s, q.value = H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth, ke());
2786
+ }), Z(() => e.initialLeftMenuState, (s) => {
2787
+ s !== void 0 && (j.value = s, q.value = j.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth, ke());
2772
2788
  }, { immediate: !0 });
2773
- const Qe = (s, ...v) => s.replace(/{(\d+)}/g, (m, $) => typeof v[$] < "u" ? v[$] : m), c = K(() => {
2774
- const s = a.value < 1 ? 1 : Math.ceil(C.value / a.value);
2789
+ const Qe = (s, ...p) => s.replace(/{(\d+)}/g, (m, R) => typeof p[R] < "u" ? p[R] : m), f = X(() => {
2790
+ const s = a.value < 1 ? 1 : Math.ceil(E.value / a.value);
2775
2791
  return Math.max(s || 0, 1);
2776
- }), S = K(() => (r.value - 1) * a.value + 1), z = K(() => {
2792
+ }), k = X(() => (r.value - 1) * a.value + 1), F = X(() => {
2777
2793
  const s = r.value * a.value;
2778
- return C.value >= s ? s : C.value;
2779
- }), L = K(() => {
2780
- let s, v;
2781
- return typeof e.showNumbersCount < "u" && e.showNumbersCount < c.value ? (s = Math.max(
2794
+ return E.value >= s ? s : E.value;
2795
+ }), x = X(() => {
2796
+ let s, p;
2797
+ return typeof e.showNumbersCount < "u" && e.showNumbersCount < f.value ? (s = Math.max(
2782
2798
  r.value - Math.floor(e.showNumbersCount / 2),
2783
2799
  1
2784
- ), v = s + e.showNumbersCount - 1, v > c.value && (v = c.value, s = v - e.showNumbersCount + 1)) : (s = 1, v = c.value), Array.from(Array(v + 1 - s).keys()).map(
2800
+ ), p = s + e.showNumbersCount - 1, p > f.value && (p = f.value, s = p - e.showNumbersCount + 1)) : (s = 1, p = f.value), Array.from(Array(p + 1 - s).keys()).map(
2785
2801
  (M) => s + M
2786
2802
  );
2787
2803
  });
2788
- X(
2804
+ Z(
2789
2805
  () => e.loading,
2790
2806
  () => {
2791
- h.value = e.loading;
2807
+ d.value = e.loading;
2792
2808
  }
2793
2809
  );
2794
- const _ = (s) => {
2795
- s ? R.value === s.field ? R.value = null : R.value = s.field : R.value = null;
2796
- }, N = () => {
2810
+ const S = (s) => {
2811
+ s ? D.value === s.field ? D.value = null : D.value = s.field : D.value = null;
2812
+ }, O = () => {
2797
2813
  if (r.value == 1)
2798
2814
  return !1;
2799
2815
  r.value--;
2800
- }, W = (s) => {
2816
+ }, B = (s) => {
2801
2817
  r.value = s;
2802
- }, ee = () => {
2803
- if (r.value >= c.value)
2818
+ }, te = () => {
2819
+ if (r.value >= f.value)
2804
2820
  return !1;
2805
2821
  r.value++;
2806
2822
  };
2807
- X(() => r.value, () => {
2808
- de(!1), e.isServerMode ? Me("page") : (pe(), j("pageChange", r.value));
2809
- }), X(() => e.rows, () => {
2810
- e.isServerMode || (r.value = 1), de(!1), pe();
2823
+ Z(() => r.value, () => {
2824
+ he(!1), e.isServerMode ? Me("page") : (me(), Q("pageChange", r.value));
2825
+ }), Z(() => e.rows, () => {
2826
+ e.isServerMode || (r.value = 1), he(!1), me();
2811
2827
  });
2812
2828
  const pt = (s) => {
2813
2829
  a.value = s;
2814
2830
  };
2815
- X(() => a.value, () => {
2816
- de(!1), e.isServerMode ? r.value === 1 ? Me("pagesize", !0) : r.value = 1 : (r.value = 1, pe(), j("pageSizeChange", a.value));
2831
+ Z(() => a.value, () => {
2832
+ he(!1), e.isServerMode ? r.value === 1 ? Me("pagesize", !0) : r.value = 1 : (r.value = 1, me(), Q("pageSizeChange", a.value));
2817
2833
  });
2818
- const Ke = (s, v) => {
2819
- let m = v || "asc";
2820
- v || s == y.value && F.value === "asc" && (m = "desc");
2821
- let $ = (r.value - 1) * a.value, M = a.value;
2822
- y.value = s, F.value = m, de(!1), pe(), e.isServerMode ? Me("sort") : j("sortChange", { offset: $, limit: M, field: s, direction: m });
2834
+ const Ke = (s, p) => {
2835
+ let m = p || "asc";
2836
+ p || s == b.value && C.value === "asc" && (m = "desc");
2837
+ let R = (r.value - 1) * a.value, M = a.value;
2838
+ b.value = s, C.value = m, he(!1), me(), e.isServerMode ? Me("sort") : Q("sortChange", { offset: R, limit: M, field: s, direction: m });
2823
2839
  }, qt = (s) => {
2824
- f.value = s.length && i.value.length && s.length === i.value.length;
2825
- const v = i.value.filter((m, $) => {
2826
- var Z;
2827
- const M = le.value ? ((Z = ve.value) == null ? void 0 : Z.get($)) ?? $ : $;
2828
- return b.value.includes(M);
2840
+ _.value = s.length && i.value.length && s.length === i.value.length;
2841
+ const p = i.value.filter((m, R) => {
2842
+ var ee;
2843
+ const M = ne.value ? ((ee = ce.value) == null ? void 0 : ee.get(R)) ?? R : R;
2844
+ return T.value.includes(M);
2829
2845
  });
2830
- j("rowSelect", v);
2846
+ Q("rowSelect", p);
2831
2847
  };
2832
- X(() => b.value, qt);
2833
- const de = (s) => {
2834
- s ? b.value = i.value.map(
2835
- (v, m) => {
2836
- var $;
2837
- return le.value ? (($ = ve.value) == null ? void 0 : $.get(m)) ?? m : m;
2848
+ Z(() => T.value, qt);
2849
+ const he = (s) => {
2850
+ s ? T.value = i.value.map(
2851
+ (p, m) => {
2852
+ var R;
2853
+ return ne.value ? ((R = ce.value) == null ? void 0 : R.get(m)) ?? m : m;
2838
2854
  }
2839
- ) : b.value = [];
2855
+ ) : T.value = [];
2840
2856
  }, Oe = () => {
2841
- de(!1), e.isServerMode ? r.value === 1 ? Me("filter", !0) : r.value = 1 : (r.value = 1, pe(), j("filterChange", e.columns));
2857
+ he(!1), e.isServerMode ? r.value === 1 ? Me("filter", !0) : r.value = 1 : (r.value = 1, me(), Q("filterChange", e.columns));
2842
2858
  }, Wt = (s) => {
2843
2859
  Oe();
2844
2860
  }, $n = () => {
2845
- de(!1), e.isServerMode ? r.value === 1 ? Me("search", !0) : r.value = 1 : (r.value = 1, pe(), j("searchChange", x.value));
2861
+ he(!1), e.isServerMode ? r.value === 1 ? Me("search", !0) : r.value = 1 : (r.value = 1, me(), Q("searchChange", v.value));
2846
2862
  };
2847
- X(
2863
+ Z(
2848
2864
  () => e.search,
2849
2865
  () => {
2850
- x.value = e.search, $n();
2866
+ v.value = e.search, $n();
2851
2867
  }
2852
2868
  );
2853
2869
  const Je = (s) => {
2854
2870
  try {
2855
2871
  if (!s)
2856
2872
  return "";
2857
- const v = new Date(s), m = v.getDate(), $ = v.getMonth() + 1;
2858
- return v.getFullYear() + "-" + ($ > 9 ? $ : "0" + $) + "-" + (m > 9 ? m : "0" + m);
2873
+ const p = new Date(s), m = p.getDate(), R = p.getMonth() + 1;
2874
+ return p.getFullYear() + "-" + (R > 9 ? R : "0" + R) + "-" + (m > 9 ? m : "0" + m);
2859
2875
  } catch {
2860
2876
  }
2861
2877
  return "";
2862
- }, Ye = (s, v) => {
2863
- Y.value++, Y.value === 1 ? J.value = setTimeout(() => {
2864
- Y.value = 0, e.selectRowOnClick && (Xe(v) ? Bt(v) : Dt(v), qt(b.value)), j("rowClick", s);
2865
- }, we.value) : Y.value === 2 && (clearTimeout(J.value), Y.value = 0, j("rowDBClick", s));
2866
- }, Me = (s, v = !1) => {
2878
+ }, Ye = (s, p) => {
2879
+ N.value++, N.value === 1 ? L.value = setTimeout(() => {
2880
+ N.value = 0, e.selectRowOnClick && (Xe(p) ? Bt(p) : Dt(p), qt(T.value)), Q("rowClick", s);
2881
+ }, U.value) : N.value === 2 && (clearTimeout(L.value), N.value = 0, Q("rowDBClick", s));
2882
+ }, Me = (s, p = !1) => {
2867
2883
  if (e.isServerMode) {
2868
2884
  On();
2869
2885
  const m = {
2870
- current_page: v ? 1 : r.value,
2886
+ current_page: p ? 1 : r.value,
2871
2887
  pagesize: a.value,
2872
2888
  offset: (r.value - 1) * a.value,
2873
- sort_column: y.value,
2874
- sort_direction: F.value,
2875
- search: x.value,
2889
+ sort_column: b.value,
2890
+ sort_direction: C.value,
2891
+ search: v.value,
2876
2892
  column_filters: e.columns,
2877
2893
  change_type: s
2878
2894
  };
2879
- j("change", m);
2895
+ Q("change", m);
2880
2896
  }
2881
2897
  }, On = () => {
2882
2898
  for (let s = 0; s < e.columns.length; s++) {
2883
- let v = e.columns[s];
2884
- v.filter && (v.value !== void 0 && v.value !== null && v.value !== "" || v.condition === "IsNull" || v.condition === "IsNotNull") && (v.type === "string" && v.value && !v.condition && (v.condition = "Contains"), v.type === "number" && v.value && !v.condition && (v.condition = "Equal"), v.type === "date" && v.value && !v.condition && (v.condition = "Equal"));
2899
+ let p = e.columns[s];
2900
+ p.filter && (p.value !== void 0 && p.value !== null && p.value !== "" || p.condition === "IsNull" || p.condition === "IsNotNull") && (p.type === "string" && p.value && !p.condition && (p.condition = "Contains"), p.type === "number" && p.value && !p.condition && (p.condition = "Equal"), p.type === "date" && p.value && !p.condition && (p.condition = "Equal"));
2885
2901
  }
2886
2902
  }, Rn = () => {
2887
- de(!1);
2903
+ he(!1);
2888
2904
  for (let s = 0; s < e.columns.length; s++)
2889
2905
  e.columns[s].value = "";
2890
- x.value = "", a.value = d, y.value = g, F.value = E, e.isServerMode ? r.value === 1 ? Me("reset", !0) : r.value = 1 : (r.value = 1, pe());
2891
- }, An = () => i.value.filter((v, m) => {
2906
+ v.value = "", a.value = u, b.value = g, C.value = z, e.isServerMode ? r.value === 1 ? Me("reset", !0) : r.value = 1 : (r.value = 1, me());
2907
+ }, An = () => i.value.filter((p, m) => {
2892
2908
  var M;
2893
- const $ = le.value ? ((M = ve.value) == null ? void 0 : M.get(m)) ?? m : m;
2894
- return b.value.includes($);
2909
+ const R = ne.value ? ((M = ce.value) == null ? void 0 : M.get(m)) ?? m : m;
2910
+ return T.value.includes(R);
2895
2911
  }), qn = () => e.columns, Wn = () => {
2896
- b.value = [];
2912
+ T.value = [];
2897
2913
  }, Dt = (s) => {
2898
- var v;
2914
+ var p;
2899
2915
  if (!Xe(s)) {
2900
- const m = le.value ? ((v = ve.value) == null ? void 0 : v.get(s)) ?? s : s;
2901
- b.value.push(m);
2916
+ const m = ne.value ? ((p = ce.value) == null ? void 0 : p.get(s)) ?? s : s;
2917
+ T.value.push(m);
2902
2918
  }
2903
2919
  }, Bt = (s) => {
2904
- var v;
2920
+ var p;
2905
2921
  if (Xe(s)) {
2906
- const m = le.value ? ((v = ve.value) == null ? void 0 : v.get(s)) ?? s : s;
2907
- b.value = b.value.filter(($) => $ !== m);
2922
+ const m = ne.value ? ((p = ce.value) == null ? void 0 : p.get(s)) ?? s : s;
2923
+ T.value = T.value.filter((R) => R !== m);
2908
2924
  }
2909
2925
  }, Xe = (s) => {
2910
2926
  var m;
2911
2927
  if (s >= i.value.length) return !1;
2912
- const v = le.value ? ((m = ve.value) == null ? void 0 : m.get(s)) ?? s : s;
2913
- return b.value.includes(v);
2928
+ const p = ne.value ? ((m = ce.value) == null ? void 0 : m.get(s)) ?? s : s;
2929
+ return T.value.includes(p);
2914
2930
  }, Dn = () => {
2915
- ae.value.forEach((s, v) => {
2916
- ae.value.set(v, !1);
2931
+ de.value.forEach((s, p) => {
2932
+ de.value.set(p, !1);
2917
2933
  });
2918
2934
  };
2919
- let fe = 0;
2920
- e.hasCheckbox && fe++, e.hasSubtable && fe++, e.hasRightPanel && fe++;
2921
- const Re = A(e.topmenusize), Ze = A(null), { height: Bn } = vl(Ze, { box: "border-box" }, { throttle: 100 }), Hn = Kt(() => {
2935
+ let pe = 0;
2936
+ e.hasCheckbox && pe++, e.hasSubtable && pe++, e.hasRightPanel && pe++;
2937
+ const Re = W(e.topmenusize), Ze = W(null), { height: Bn } = vl(Ze, { box: "border-box" }, { throttle: 100 }), Hn = Kt(() => {
2922
2938
  Se(() => {
2923
2939
  let s = Ze.value;
2924
2940
  if (s && typeof s == "object" && (s = s.$el || s), s instanceof HTMLElement) {
2925
- const v = s.offsetHeight || 0;
2926
- j("currentTopMenuSize", v);
2941
+ const p = s.offsetHeight || 0;
2942
+ Q("currentTopMenuSize", p);
2927
2943
  }
2928
2944
  });
2929
2945
  }, 50), Vn = rl((s) => {
2930
2946
  if (!s || !s.panes || !s.panes.length) return;
2931
- const v = s.panes[0].size;
2932
- Re.value = v, Hn();
2947
+ const p = s.panes[0].size;
2948
+ Re.value = p, Hn();
2933
2949
  }, 16), jn = Kt(() => {
2934
2950
  let s = Ze.value;
2935
- s && typeof s == "object" && (s = s.$el || s), s instanceof HTMLElement && j("currentTopMenuSize", s.offsetHeight || 0);
2951
+ s && typeof s == "object" && (s = s.$el || s), s instanceof HTMLElement && Q("currentTopMenuSize", s.offsetHeight || 0);
2936
2952
  }, 50);
2937
- return X(() => Re.value, jn), mn(() => {
2953
+ return Z(() => Re.value, jn), mn(() => {
2938
2954
  window.removeEventListener("resize", Ge), se.clear();
2939
- }), (s, v) => (u(), p("div", xi, [
2940
- ne(U(Yt), {
2955
+ }), (s, p) => (c(), h("div", xi, [
2956
+ oe(K(Yt), {
2941
2957
  class: "default-theme",
2942
- style: G({ height: e.height })
2958
+ style: J({ height: e.height })
2943
2959
  }, {
2944
2960
  default: Ae(() => [
2945
- ne(U(gt), null, {
2961
+ oe(K(gt), null, {
2946
2962
  default: Ae(() => [
2947
- k("div", Si, [
2948
- s.enableleftmenu ? (u(), p("div", {
2963
+ w("div", Si, [
2964
+ s.enableleftmenu ? (c(), h("div", {
2949
2965
  key: 0,
2950
2966
  ref_key: "leftmenuel",
2951
- ref: ce,
2967
+ ref: ie,
2952
2968
  class: "left-menu-container bh-relative",
2953
- style: G({
2969
+ style: J({
2954
2970
  width: q.value + "px",
2955
2971
  transition: "width 0.3s ease",
2956
2972
  overflow: "hidden",
2957
- minWidth: (H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth) + "px",
2958
- maxWidth: (H.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth) + "px"
2973
+ minWidth: (j.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth) + "px",
2974
+ maxWidth: (j.value ? e.leftmenuMinWidth : e.leftmenuDefaultWidth) + "px"
2959
2975
  })
2960
2976
  }, [
2961
- te(s.$slots, "tableleftmenu", {}, () => [
2977
+ le(s.$slots, "tableleftmenu", {}, () => [
2962
2978
  Fi
2963
2979
  ]),
2964
- e.showResizeButton ? (u(), p("div", Li, [
2965
- k("button", {
2980
+ e.showResizeButton ? (c(), h("div", Li, [
2981
+ w("button", {
2966
2982
  onClick: $e,
2967
2983
  class: "bh-w-4 bh-h-10 bh-flex bh-justify-center bh-items-center bh-border-none bh-bg-transparent bh-cursor-pointer bh-outline-none"
2968
2984
  }, [
2969
- (u(), p("svg", {
2985
+ (c(), h("svg", {
2970
2986
  width: "8",
2971
2987
  height: "12",
2972
2988
  viewBox: "0 0 8 12",
2973
2989
  fill: "none",
2974
2990
  xmlns: "http://www.w3.org/2000/svg",
2975
- style: G({ transform: H.value ? "rotate(180deg)" : "none" })
2991
+ style: J({ transform: j.value ? "rotate(180deg)" : "none" })
2976
2992
  }, zi, 4))
2977
2993
  ])
2978
- ])) : I("", !0)
2979
- ], 4)) : I("", !0),
2980
- k("div", Ei, [
2981
- s.enabletopmenu ? (u(), re(U(Yt), {
2994
+ ])) : P("", !0)
2995
+ ], 4)) : P("", !0),
2996
+ w("div", Ei, [
2997
+ s.enabletopmenu ? (c(), ue(K(Yt), {
2982
2998
  key: 0,
2983
2999
  class: "default-theme",
2984
3000
  horizontal: "horizontal",
2985
- onResize: U(Vn),
3001
+ onResize: K(Vn),
2986
3002
  "push-other-panes": ""
2987
3003
  }, {
2988
3004
  default: Ae(() => [
2989
- s.enabletopmenu ? (u(), re(U(gt), {
3005
+ s.enabletopmenu ? (c(), ue(K(gt), {
2990
3006
  key: 0,
2991
3007
  ref_key: "topmenuel",
2992
3008
  ref: Ze,
2993
3009
  size: Re.value || 10,
2994
3010
  "max-size": s.topmenumax || 100,
2995
- style: G({ "min-height": s.topmenumin + "px" })
3011
+ style: J({ "min-height": s.topmenumin + "px" })
2996
3012
  }, {
2997
3013
  default: Ae(() => [
2998
- te(s.$slots, "tabletopmenu", {}, () => [
3014
+ le(s.$slots, "tabletopmenu", {}, () => [
2999
3015
  Mi
3000
3016
  ])
3001
3017
  ]),
3002
3018
  _: 3
3003
- }, 8, ["size", "max-size", "style"])) : I("", !0),
3004
- ne(U(gt), {
3005
- style: G({ "padding-right": s.tableRightOffset + "px", "padding-left": s.tableLeftOffset + "px" })
3019
+ }, 8, ["size", "max-size", "style"])) : P("", !0),
3020
+ oe(K(gt), {
3021
+ style: J({ "padding-right": s.tableRightOffset + "px", "padding-left": s.tableLeftOffset + "px" })
3006
3022
  }, {
3007
3023
  default: Ae(() => [
3008
- s.enableHeaderArea ? (u(), p("div", {
3024
+ s.enableHeaderArea ? (c(), h("div", {
3009
3025
  key: 0,
3010
3026
  class: "bh-w-full bh-overflow-auto",
3011
- style: G({ height: s.headerAreaHeight, "margin-bottom": "10px" })
3027
+ style: J({ height: s.headerAreaHeight, "margin-bottom": "10px" })
3012
3028
  }, [
3013
- te(s.$slots, "tableHeaderArea", {}, () => [
3029
+ le(s.$slots, "tableHeaderArea", {}, () => [
3014
3030
  Ii
3015
3031
  ])
3016
- ], 4)) : I("", !0),
3017
- te(s.$slots, "tableactionheader", {}, () => [
3032
+ ], 4)) : P("", !0),
3033
+ le(s.$slots, "tableactionheader", {}, () => [
3018
3034
  Pi
3019
3035
  ]),
3020
- k("div", {
3021
- class: P(["bh-table-responsive", { "bh-min-h-[100px]": h.value }]),
3022
- style: G({
3036
+ w("div", {
3037
+ class: I(["bh-table-responsive", { "bh-min-h-[100px]": d.value }]),
3038
+ style: J({
3023
3039
  overflow: "auto",
3024
- height: e.stickyHeader ? Number(e.height.replace("px", "")) - (e.footerOffset + (U(Bn) || 0)) + "px" : "auto"
3040
+ height: e.stickyHeader ? Number(e.height.replace("px", "")) - (e.footerOffset + (K(Bn) || 0)) + "px" : "auto"
3025
3041
  })
3026
3042
  }, [
3027
- k("table", {
3028
- class: P([e.skin])
3043
+ w("table", {
3044
+ class: I([e.skin])
3029
3045
  }, [
3030
- k("thead", {
3031
- class: P({
3046
+ w("thead", {
3047
+ class: I({
3032
3048
  "bh-sticky bh-top-0 bh-z-10": e.stickyHeader
3033
3049
  })
3034
3050
  }, [
3035
- ne(tt, {
3051
+ oe(tt, {
3036
3052
  all: e,
3037
- expandedrows: ae.value,
3038
- currentSortColumn: y.value,
3039
- currentSortDirection: F.value,
3040
- isOpenFilter: R.value,
3041
- checkAll: f.value,
3053
+ expandedrows: de.value,
3054
+ currentSortColumn: b.value,
3055
+ currentSortDirection: C.value,
3056
+ isOpenFilter: D.value,
3057
+ checkAll: _.value,
3042
3058
  columnFilterLang: e.columnFilterLang,
3043
- onSelectAll: de,
3059
+ onSelectAll: he,
3044
3060
  onSortChange: Ke,
3045
3061
  onFilterChange: Oe,
3046
- onToggleFilterMenu: _,
3062
+ onToggleFilterMenu: S,
3047
3063
  onClearColumnFilter: Wt
3048
3064
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3049
3065
  ], 2),
3050
- k("tbody", null, [
3051
- (u(!0), p(D, null, oe(i.value, (m, $) => (u(), p(D, {
3052
- key: ze($)
3066
+ w("tbody", null, [
3067
+ (c(!0), h(H, null, re(i.value, (m, R) => (c(), h(H, {
3068
+ key: ze(R)
3053
3069
  }, [
3054
- C.value ? (u(), p("tr", {
3070
+ E.value ? (c(), h("tr", {
3055
3071
  key: 0,
3056
- class: P([
3072
+ class: I([
3057
3073
  Ee.value ? s.rowClass(m) : e.rowClass,
3058
3074
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3059
3075
  ]),
3060
- onClick: V((M) => Ye(m, $), ["prevent"])
3076
+ onClick: G((M) => Ye(m, R), ["prevent"])
3061
3077
  }, [
3062
- e.hasCheckbox ? (u(), p("td", {
3078
+ e.hasCheckbox ? (c(), h("td", {
3063
3079
  key: 0,
3064
- style: G({ width: e.checkboxColumnWidth + " !important", minWidth: e.checkboxColumnWidth + " !important" }),
3065
- class: P({
3080
+ style: J({ width: e.checkboxColumnWidth + " !important", minWidth: e.checkboxColumnWidth + " !important" }),
3081
+ class: I({
3066
3082
  "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn
3067
3083
  })
3068
3084
  }, [
3069
- k("div", Ni, [
3070
- ie(k("input", {
3071
- "onUpdate:modelValue": v[0] || (v[0] = (M) => b.value = M),
3085
+ w("div", Ni, [
3086
+ ae(w("input", {
3087
+ "onUpdate:modelValue": p[0] || (p[0] = (M) => T.value = M),
3072
3088
  type: "checkbox",
3073
- value: ze($),
3074
- onClick: v[1] || (v[1] = V(() => {
3089
+ value: ze(R),
3090
+ onClick: p[1] || (p[1] = G(() => {
3075
3091
  }, ["stop"]))
3076
3092
  }, null, 8, $i), [
3077
- [Qt, b.value]
3093
+ [Qt, T.value]
3078
3094
  ]),
3079
- k("div", null, [
3080
- ne(Mt, { class: "check" })
3095
+ w("div", null, [
3096
+ oe(Mt, { class: "check" })
3081
3097
  ])
3082
3098
  ])
3083
- ], 6)) : I("", !0),
3084
- e.hasRightPanel ? (u(), p("td", {
3099
+ ], 6)) : P("", !0),
3100
+ e.hasRightPanel ? (c(), h("td", {
3085
3101
  key: 1,
3086
- style: G({ width: e.rightPanelColumnWidth + " !important", minWidth: e.rightPanelColumnWidth + " !important", padding: "0px !important" }),
3087
- class: P({
3102
+ style: J({ width: e.rightPanelColumnWidth + " !important", minWidth: e.rightPanelColumnWidth + " !important", padding: "0px !important" }),
3103
+ class: I({
3088
3104
  "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn
3089
3105
  })
3090
3106
  }, [
3091
- ne(hn, {
3107
+ oe(hn, {
3092
3108
  item: m,
3093
- onRightPanelClick: v[2] || (v[2] = (M) => j("rowRightPanelClick", M))
3109
+ onRightPanelClick: p[2] || (p[2] = (M) => Q("rowRightPanelClick", M))
3094
3110
  }, null, 8, ["item"])
3095
- ], 6)) : I("", !0),
3096
- e.hasSubtable ? (u(), p("td", {
3111
+ ], 6)) : P("", !0),
3112
+ e.hasSubtable ? (c(), h("td", {
3097
3113
  key: 2,
3098
- style: G({ width: e.subtableColumnWidth + " !important", minWidth: e.subtableColumnWidth + " !important" }),
3099
- class: P({
3114
+ style: J({ width: e.subtableColumnWidth + " !important", minWidth: e.subtableColumnWidth + " !important" }),
3115
+ class: I({
3100
3116
  "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn
3101
3117
  })
3102
3118
  }, [
3103
- ne(Et, {
3104
- item: { ...m, _rowIndex: $ },
3105
- expandedrows: ae.value
3119
+ oe(Et, {
3120
+ item: { ...m, _rowIndex: R },
3121
+ expandedrows: de.value
3106
3122
  }, null, 8, ["item", "expandedrows"])
3107
- ], 6)) : I("", !0),
3108
- (u(!0), p(D, null, oe(e.columns, (M, Z) => (u(), p(D, null, [
3109
- M.hide ? I("", !0) : (u(), p("td", {
3123
+ ], 6)) : P("", !0),
3124
+ (c(!0), h(H, null, re(e.columns, (M, ee) => (c(), h(H, null, [
3125
+ M.hide ? P("", !0) : (c(), h("td", {
3110
3126
  key: M.field,
3111
- class: P([
3112
- me.value ? s.cellClass(m) : e.cellClass,
3113
- Z === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3114
- e.hasCheckbox && Z === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3127
+ class: I([
3128
+ be.value ? s.cellClass(m) : e.cellClass,
3129
+ ee === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3130
+ e.hasCheckbox && ee === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3115
3131
  M.cellClass ? M.cellClass : ""
3116
3132
  ])
3117
3133
  }, [
3118
- U(l)[M.field] ? te(s.$slots, M.field, {
3134
+ K(l)[M.field] ? le(s.$slots, M.field, {
3119
3135
  key: 0,
3120
3136
  value: m
3121
- }) : M.cellRenderer ? (u(), p("div", {
3137
+ }) : M.cellRenderer ? (c(), h("div", {
3122
3138
  key: 1,
3123
3139
  innerHTML: M.cellRenderer(m)
3124
- }, null, 8, Oi)) : (u(), p(D, { key: 2 }, [
3125
- We(B(O(m, M.field)), 1)
3140
+ }, null, 8, Oi)) : (c(), h(H, { key: 2 }, [
3141
+ We(V(A(m, M.field)), 1)
3126
3142
  ], 64))
3127
3143
  ], 2))
3128
3144
  ], 64))), 256))
3129
- ], 10, Ti)) : I("", !0),
3130
- Te(m, $) && e.hasSubtable ? (u(), p("tr", {
3145
+ ], 10, Ti)) : P("", !0),
3146
+ Te(m, R) && e.hasSubtable ? (c(), h("tr", {
3131
3147
  key: 1,
3132
- class: P([
3148
+ class: I([
3133
3149
  Ee.value ? s.rowClass(m) : e.rowClass,
3134
3150
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3135
3151
  ]),
3136
- onClick: V((M) => Ye(m, $), ["prevent"])
3152
+ onClick: G((M) => Ye(m, R), ["prevent"])
3137
3153
  }, [
3138
- k("td", {
3139
- colspan: e.columns.length + U(fe)
3154
+ w("td", {
3155
+ colspan: e.columns.length + K(pe)
3140
3156
  }, [
3141
- te(s.$slots, "tsub", {
3157
+ le(s.$slots, "tsub", {
3142
3158
  rowData: m,
3143
- rowIndex: $,
3159
+ rowIndex: R,
3144
3160
  filterItems: i.value
3145
3161
  })
3146
3162
  ], 8, Ai)
3147
- ], 10, Ri)) : I("", !0)
3163
+ ], 10, Ri)) : P("", !0)
3148
3164
  ], 64))), 128)),
3149
- !C.value && h.value && s.skeletonloader ? (u(!0), p(D, { key: 0 }, oe(e.pageSize, (m) => (u(), p("tr", {
3165
+ !E.value && d.value && s.skeletonloader ? (c(!0), h(H, { key: 0 }, re(e.pageSize, (m) => (c(), h("tr", {
3150
3166
  key: m,
3151
3167
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3152
3168
  }, [
3153
- k("td", {
3154
- colspan: e.columns.length + U(fe),
3169
+ w("td", {
3170
+ colspan: e.columns.length + K(pe),
3155
3171
  class: "!bh-p-0 !bh-border-transparent"
3156
3172
  }, Di, 8, qi)
3157
- ]))), 128)) : I("", !0),
3158
- C.value ? (u(!0), p(D, { key: 1 }, oe(e.footerRows, (m, $) => (u(), p("tr", {
3159
- key: m[le.value] ? m[le.value] : $,
3173
+ ]))), 128)) : P("", !0),
3174
+ E.value ? (c(!0), h(H, { key: 1 }, re(e.footerRows, (m, R) => (c(), h("tr", {
3175
+ key: m[ne.value] ? m[ne.value] : R,
3160
3176
  class: "sticky-table-footer"
3161
3177
  }, [
3162
- U(fe) > 0 ? (u(), p("td", {
3178
+ K(pe) > 0 ? (c(), h("td", {
3163
3179
  key: 0,
3164
- colspan: U(fe)
3165
- }, null, 8, Bi)) : I("", !0),
3166
- (u(!0), p(D, null, oe(e.columns, (M, Z) => (u(), p(D, null, [
3167
- M.hide ? I("", !0) : (u(), p("td", {
3180
+ colspan: K(pe)
3181
+ }, null, 8, Bi)) : P("", !0),
3182
+ (c(!0), h(H, null, re(e.columns, (M, ee) => (c(), h(H, null, [
3183
+ M.hide ? P("", !0) : (c(), h("td", {
3168
3184
  key: M.field,
3169
- class: P([
3170
- me.value ? s.cellClass(m) : e.cellClass,
3171
- Z === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3172
- e.hasCheckbox && Z === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3185
+ class: I([
3186
+ be.value ? s.cellClass(m) : e.cellClass,
3187
+ ee === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3188
+ e.hasCheckbox && ee === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3173
3189
  M.cellClass ? M.cellClass : ""
3174
3190
  ])
3175
3191
  }, [
3176
- m.cells.find((be) => be.field == M.field) ? (u(), p(D, { key: 0 }, [
3177
- We(B(m.cells.find((be) => be.field == M.field).text), 1)
3178
- ], 64)) : I("", !0)
3192
+ m.cells.find((ge) => ge.field == M.field) ? (c(), h(H, { key: 0 }, [
3193
+ We(V(m.cells.find((ge) => ge.field == M.field).text), 1)
3194
+ ], 64)) : P("", !0)
3179
3195
  ], 2))
3180
3196
  ], 64))), 256))
3181
- ]))), 128)) : I("", !0)
3197
+ ]))), 128)) : P("", !0)
3182
3198
  ]),
3183
- e.cloneHeaderInFooter ? (u(), p("tfoot", {
3199
+ e.cloneHeaderInFooter ? (c(), h("tfoot", {
3184
3200
  key: 0,
3185
- class: P({
3201
+ class: I({
3186
3202
  "bh-sticky bh-bottom-0": e.stickyHeader
3187
3203
  })
3188
3204
  }, [
3189
- ne(tt, {
3205
+ oe(tt, {
3190
3206
  all: e,
3191
- currentSortColumn: y.value,
3192
- currentSortDirection: F.value,
3193
- isOpenFilter: R.value,
3207
+ currentSortColumn: b.value,
3208
+ currentSortDirection: C.value,
3209
+ isOpenFilter: D.value,
3194
3210
  isFooter: !0,
3195
- checkAll: f.value,
3196
- onSelectAll: de,
3211
+ checkAll: _.value,
3212
+ onSelectAll: he,
3197
3213
  onSortChange: Ke,
3198
3214
  onFilterChange: Oe,
3199
- onToggleFilterMenu: _
3215
+ onToggleFilterMenu: S
3200
3216
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3201
- ], 2)) : I("", !0)
3217
+ ], 2)) : P("", !0)
3202
3218
  ], 2),
3203
- h.value && s.enableloadinganimation ? (u(), p("div", {
3219
+ d.value && s.enableloadinganimation ? (c(), h("div", {
3204
3220
  key: 0,
3205
3221
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3206
- style: G({
3222
+ style: J({
3207
3223
  height: Number(e.height.replace("px", "")) - 175 + "px"
3208
3224
  })
3209
3225
  }, [
3210
- te(s.$slots, "loadercontent")
3211
- ], 4)) : I("", !0),
3212
- !C.value && !h.value ? (u(), p("div", {
3226
+ le(s.$slots, "loadercontent")
3227
+ ], 4)) : P("", !0),
3228
+ !E.value && !d.value ? (c(), h("div", {
3213
3229
  key: 1,
3214
3230
  class: "nodatacontent",
3215
- style: G({
3231
+ style: J({
3216
3232
  height: Number(e.height.replace("px", "")) - 175 + "px"
3217
3233
  })
3218
3234
  }, [
3219
- te(s.$slots, "nodatacontent", {}, () => [
3220
- k("span", null, B(e.noDataContent), 1)
3235
+ le(s.$slots, "nodatacontent", {}, () => [
3236
+ w("span", null, V(e.noDataContent), 1)
3221
3237
  ])
3222
- ], 4)) : I("", !0)
3238
+ ], 4)) : P("", !0)
3223
3239
  ], 6)
3224
3240
  ]),
3225
3241
  _: 3
3226
3242
  }, 8, ["style"])
3227
3243
  ]),
3228
3244
  _: 3
3229
- }, 8, ["onResize"])) : I("", !0),
3230
- s.enabletopmenu ? I("", !0) : (u(), p("div", {
3245
+ }, 8, ["onResize"])) : P("", !0),
3246
+ s.enabletopmenu ? P("", !0) : (c(), h("div", {
3231
3247
  key: 1,
3232
3248
  class: "bh-w-full bh-h-full",
3233
- style: G({ "padding-right": s.tableRightOffset + "px", "padding-left": s.tableLeftOffset + "px" })
3249
+ style: J({ "padding-right": s.tableRightOffset + "px", "padding-left": s.tableLeftOffset + "px" })
3234
3250
  }, [
3235
- s.enableHeaderArea ? (u(), p("div", {
3251
+ s.enableHeaderArea ? (c(), h("div", {
3236
3252
  key: 0,
3237
3253
  class: "bh-w-full bh-overflow-auto",
3238
- style: G({ height: s.headerAreaHeight, "margin-bottom": "10px" })
3254
+ style: J({ height: s.headerAreaHeight, "margin-bottom": "10px" })
3239
3255
  }, [
3240
- te(s.$slots, "tableHeaderArea", {}, () => [
3256
+ le(s.$slots, "tableHeaderArea", {}, () => [
3241
3257
  Hi
3242
3258
  ])
3243
- ], 4)) : I("", !0),
3244
- te(s.$slots, "tableactionheader"),
3245
- k("div", {
3246
- class: P(["bh-table-responsive", { "bh-min-h-[100px]": h.value }]),
3247
- style: G({
3259
+ ], 4)) : P("", !0),
3260
+ le(s.$slots, "tableactionheader"),
3261
+ w("div", {
3262
+ class: I(["bh-table-responsive", { "bh-min-h-[100px]": d.value }]),
3263
+ style: J({
3248
3264
  overflow: "auto",
3249
3265
  height: e.stickyHeader ? Number(e.height.replace("px", "")) - e.footerOffset + "px" : "auto"
3250
3266
  })
3251
3267
  }, [
3252
- k("table", {
3253
- class: P([e.skin])
3268
+ w("table", {
3269
+ class: I([e.skin])
3254
3270
  }, [
3255
- k("thead", {
3256
- class: P({ "bh-sticky bh-top-0 bh-z-10": e.stickyHeader })
3271
+ w("thead", {
3272
+ class: I({ "bh-sticky bh-top-0 bh-z-10": e.stickyHeader })
3257
3273
  }, [
3258
- ne(tt, {
3274
+ oe(tt, {
3259
3275
  all: e,
3260
- expandedrows: ae.value,
3261
- currentSortColumn: y.value,
3262
- currentSortDirection: F.value,
3263
- isOpenFilter: R.value,
3264
- checkAll: f.value,
3276
+ expandedrows: de.value,
3277
+ currentSortColumn: b.value,
3278
+ currentSortDirection: C.value,
3279
+ isOpenFilter: D.value,
3280
+ checkAll: _.value,
3265
3281
  columnFilterLang: e.columnFilterLang,
3266
- onSelectAll: de,
3282
+ onSelectAll: he,
3267
3283
  onSortChange: Ke,
3268
3284
  onFilterChange: Oe,
3269
- onToggleFilterMenu: _,
3285
+ onToggleFilterMenu: S,
3270
3286
  onClearColumnFilter: Wt
3271
3287
  }, null, 8, ["expandedrows", "currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll", "columnFilterLang"])
3272
3288
  ], 2),
3273
- k("tbody", null, [
3274
- (u(!0), p(D, null, oe(i.value, (m, $) => (u(), p(D, {
3275
- key: ze($)
3289
+ w("tbody", null, [
3290
+ (c(!0), h(H, null, re(i.value, (m, R) => (c(), h(H, {
3291
+ key: ze(R)
3276
3292
  }, [
3277
- C.value ? (u(), p("tr", {
3293
+ E.value ? (c(), h("tr", {
3278
3294
  key: 0,
3279
- class: P([
3295
+ class: I([
3280
3296
  Ee.value ? s.rowClass(m) : e.rowClass,
3281
3297
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3282
3298
  ]),
3283
- onClick: V((M) => Ye(m, $), ["prevent"])
3299
+ onClick: G((M) => Ye(m, R), ["prevent"])
3284
3300
  }, [
3285
- e.hasCheckbox ? (u(), p("td", {
3301
+ e.hasCheckbox ? (c(), h("td", {
3286
3302
  key: 0,
3287
- style: G({ width: e.checkboxColumnWidth + " !important", minWidth: e.checkboxColumnWidth + " !important" }),
3288
- class: P({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3303
+ style: J({ width: e.checkboxColumnWidth + " !important", minWidth: e.checkboxColumnWidth + " !important" }),
3304
+ class: I({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3289
3305
  }, [
3290
- k("div", ji, [
3291
- ie(k("input", {
3292
- "onUpdate:modelValue": v[3] || (v[3] = (M) => b.value = M),
3306
+ w("div", ji, [
3307
+ ae(w("input", {
3308
+ "onUpdate:modelValue": p[3] || (p[3] = (M) => T.value = M),
3293
3309
  type: "checkbox",
3294
- value: ze($),
3295
- onClick: v[4] || (v[4] = V(() => {
3310
+ value: ze(R),
3311
+ onClick: p[4] || (p[4] = G(() => {
3296
3312
  }, ["stop"]))
3297
3313
  }, null, 8, Ui), [
3298
- [Qt, b.value]
3314
+ [Qt, T.value]
3299
3315
  ]),
3300
- k("div", null, [
3301
- ne(Mt, { class: "check" })
3316
+ w("div", null, [
3317
+ oe(Mt, { class: "check" })
3302
3318
  ])
3303
3319
  ])
3304
- ], 6)) : I("", !0),
3305
- e.hasRightPanel ? (u(), p("td", {
3320
+ ], 6)) : P("", !0),
3321
+ e.hasRightPanel ? (c(), h("td", {
3306
3322
  key: 1,
3307
- style: G({ width: e.rightPanelColumnWidth + " !important", minWidth: e.rightPanelColumnWidth + " !important", padding: "0px !important" }),
3308
- class: P({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3323
+ style: J({ width: e.rightPanelColumnWidth + " !important", minWidth: e.rightPanelColumnWidth + " !important", padding: "0px !important" }),
3324
+ class: I({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3309
3325
  }, [
3310
- ne(hn, {
3326
+ oe(hn, {
3311
3327
  item: m,
3312
- onRightPanelClick: v[5] || (v[5] = (M) => j("rowRightPanelClick", M))
3328
+ onRightPanelClick: p[5] || (p[5] = (M) => Q("rowRightPanelClick", M))
3313
3329
  }, null, 8, ["item"])
3314
- ], 6)) : I("", !0),
3315
- e.hasSubtable ? (u(), p("td", {
3330
+ ], 6)) : P("", !0),
3331
+ e.hasSubtable ? (c(), h("td", {
3316
3332
  key: 2,
3317
- style: G({ width: e.subtableColumnWidth + " !important", minWidth: e.subtableColumnWidth + " !important" }),
3318
- class: P({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3333
+ style: J({ width: e.subtableColumnWidth + " !important", minWidth: e.subtableColumnWidth + " !important" }),
3334
+ class: I({ "bh-sticky bh-left-0 bh-bg-blue-light": e.stickyFirstColumn })
3319
3335
  }, [
3320
- ne(Et, {
3321
- item: { ...m, _rowIndex: $ },
3322
- expandedrows: ae.value
3336
+ oe(Et, {
3337
+ item: { ...m, _rowIndex: R },
3338
+ expandedrows: de.value
3323
3339
  }, null, 8, ["item", "expandedrows"])
3324
- ], 6)) : I("", !0),
3325
- (u(!0), p(D, null, oe(e.columns, (M, Z) => (u(), p(D, null, [
3326
- M.hide ? I("", !0) : (u(), p("td", {
3340
+ ], 6)) : P("", !0),
3341
+ (c(!0), h(H, null, re(e.columns, (M, ee) => (c(), h(H, null, [
3342
+ M.hide ? P("", !0) : (c(), h("td", {
3327
3343
  key: M.field,
3328
- class: P([
3329
- me.value ? s.cellClass(m) : e.cellClass,
3330
- Z === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3331
- e.hasCheckbox && Z === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3344
+ class: I([
3345
+ be.value ? s.cellClass(m) : e.cellClass,
3346
+ ee === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3347
+ e.hasCheckbox && ee === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3332
3348
  M.cellClass ? M.cellClass : ""
3333
3349
  ])
3334
3350
  }, [
3335
- U(l)[M.field] ? te(s.$slots, M.field, {
3351
+ K(l)[M.field] ? le(s.$slots, M.field, {
3336
3352
  key: 0,
3337
3353
  value: m
3338
- }) : M.cellRenderer ? (u(), p("div", {
3354
+ }) : M.cellRenderer ? (c(), h("div", {
3339
3355
  key: 1,
3340
3356
  innerHTML: M.cellRenderer(m)
3341
- }, null, 8, Gi)) : (u(), p(D, { key: 2 }, [
3342
- We(B(O(m, M.field)), 1)
3357
+ }, null, 8, Gi)) : (c(), h(H, { key: 2 }, [
3358
+ We(V(A(m, M.field)), 1)
3343
3359
  ], 64))
3344
3360
  ], 2))
3345
3361
  ], 64))), 256))
3346
- ], 10, Vi)) : I("", !0),
3347
- Te(m, $) && e.hasSubtable ? (u(), p("tr", {
3362
+ ], 10, Vi)) : P("", !0),
3363
+ Te(m, R) && e.hasSubtable ? (c(), h("tr", {
3348
3364
  key: 1,
3349
- class: P([
3365
+ class: I([
3350
3366
  Ee.value ? s.rowClass(m) : e.rowClass,
3351
3367
  e.selectRowOnClick ? "bh-cursor-pointer" : ""
3352
3368
  ]),
3353
- onClick: V((M) => Ye(m, $), ["prevent"])
3369
+ onClick: G((M) => Ye(m, R), ["prevent"])
3354
3370
  }, [
3355
- k("td", {
3356
- colspan: e.columns.length + U(fe)
3371
+ w("td", {
3372
+ colspan: e.columns.length + K(pe)
3357
3373
  }, [
3358
- k("div", {
3374
+ w("div", {
3359
3375
  class: "subtable-container",
3360
- style: G({
3376
+ style: J({
3361
3377
  maxHeight: e.subtableMaxHeight,
3362
3378
  overflow: "auto",
3363
3379
  padding: "10px",
@@ -3365,83 +3381,83 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3365
3381
  border: "1px solid var(--fade-grey)"
3366
3382
  })
3367
3383
  }, [
3368
- te(s.$slots, "tsub", {
3384
+ le(s.$slots, "tsub", {
3369
3385
  rowData: m,
3370
- rowIndex: $,
3386
+ rowIndex: R,
3371
3387
  filterItems: i.value
3372
3388
  })
3373
3389
  ], 4)
3374
3390
  ], 8, Ki)
3375
- ], 10, Qi)) : I("", !0)
3391
+ ], 10, Qi)) : P("", !0)
3376
3392
  ], 64))), 128)),
3377
- !C.value && h.value && s.skeletonloader ? (u(!0), p(D, { key: 0 }, oe(e.pageSize, (m) => (u(), p("tr", {
3393
+ !E.value && d.value && s.skeletonloader ? (c(!0), h(H, { key: 0 }, re(e.pageSize, (m) => (c(), h("tr", {
3378
3394
  key: m,
3379
3395
  class: "!bh-bg-white bh-h-11 !bh-border-transparent"
3380
3396
  }, [
3381
- k("td", {
3382
- colspan: e.columns.length + U(fe),
3397
+ w("td", {
3398
+ colspan: e.columns.length + K(pe),
3383
3399
  class: "!bh-p-0 !bh-border-transparent"
3384
3400
  }, Xi, 8, Ji)
3385
- ]))), 128)) : I("", !0),
3386
- C.value ? (u(!0), p(D, { key: 1 }, oe(e.footerRows, (m, $) => (u(), p("tr", {
3387
- key: m[le.value] ? m[le.value] : $,
3401
+ ]))), 128)) : P("", !0),
3402
+ E.value ? (c(!0), h(H, { key: 1 }, re(e.footerRows, (m, R) => (c(), h("tr", {
3403
+ key: m[ne.value] ? m[ne.value] : R,
3388
3404
  class: "sticky-table-footer"
3389
3405
  }, [
3390
- U(fe) > 0 ? (u(), p("td", {
3406
+ K(pe) > 0 ? (c(), h("td", {
3391
3407
  key: 0,
3392
- colspan: U(fe)
3393
- }, null, 8, Zi)) : I("", !0),
3394
- (u(!0), p(D, null, oe(e.columns, (M, Z) => (u(), p(D, null, [
3395
- M.hide ? I("", !0) : (u(), p("td", {
3408
+ colspan: K(pe)
3409
+ }, null, 8, Zi)) : P("", !0),
3410
+ (c(!0), h(H, null, re(e.columns, (M, ee) => (c(), h(H, null, [
3411
+ M.hide ? P("", !0) : (c(), h("td", {
3396
3412
  key: M.field,
3397
- class: P([
3398
- me.value ? s.cellClass(m) : e.cellClass,
3399
- Z === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3400
- e.hasCheckbox && Z === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3413
+ class: I([
3414
+ be.value ? s.cellClass(m) : e.cellClass,
3415
+ ee === 0 && e.stickyFirstColumn ? "bh-sticky bh-left-0 bh-bg-blue-light" : "",
3416
+ e.hasCheckbox && ee === 0 && e.stickyFirstColumn ? "bh-left-[52px]" : "",
3401
3417
  M.cellClass ? M.cellClass : ""
3402
3418
  ])
3403
3419
  }, [
3404
- m.cells.find((be) => be.field == M.field) ? (u(), p(D, { key: 0 }, [
3405
- We(B(m.cells.find((be) => be.field == M.field).text), 1)
3406
- ], 64)) : I("", !0)
3420
+ m.cells.find((ge) => ge.field == M.field) ? (c(), h(H, { key: 0 }, [
3421
+ We(V(m.cells.find((ge) => ge.field == M.field).text), 1)
3422
+ ], 64)) : P("", !0)
3407
3423
  ], 2))
3408
3424
  ], 64))), 256))
3409
- ]))), 128)) : I("", !0)
3425
+ ]))), 128)) : P("", !0)
3410
3426
  ]),
3411
- e.cloneHeaderInFooter ? (u(), p("tfoot", {
3427
+ e.cloneHeaderInFooter ? (c(), h("tfoot", {
3412
3428
  key: 0,
3413
- class: P({ "bh-sticky bh-bottom-0": e.stickyHeader })
3429
+ class: I({ "bh-sticky bh-bottom-0": e.stickyHeader })
3414
3430
  }, [
3415
- ne(tt, {
3431
+ oe(tt, {
3416
3432
  all: e,
3417
- currentSortColumn: y.value,
3418
- currentSortDirection: F.value,
3419
- isOpenFilter: R.value,
3433
+ currentSortColumn: b.value,
3434
+ currentSortDirection: C.value,
3435
+ isOpenFilter: D.value,
3420
3436
  isFooter: !0,
3421
- checkAll: f.value,
3422
- onSelectAll: de,
3437
+ checkAll: _.value,
3438
+ onSelectAll: he,
3423
3439
  onSortChange: Ke,
3424
3440
  onFilterChange: Oe,
3425
- onToggleFilterMenu: _
3441
+ onToggleFilterMenu: S
3426
3442
  }, null, 8, ["currentSortColumn", "currentSortDirection", "isOpenFilter", "checkAll"])
3427
- ], 2)) : I("", !0)
3443
+ ], 2)) : P("", !0)
3428
3444
  ], 2),
3429
- h.value && s.enableloadinganimation ? (u(), p("div", {
3445
+ d.value && s.enableloadinganimation ? (c(), h("div", {
3430
3446
  key: 0,
3431
3447
  class: "bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",
3432
- style: G({ height: Number(e.height.replace("px", "")) - 175 + "px" })
3448
+ style: J({ height: Number(e.height.replace("px", "")) - 175 + "px" })
3433
3449
  }, [
3434
- te(s.$slots, "loadercontent")
3435
- ], 4)) : I("", !0),
3436
- !C.value && !h.value ? (u(), p("div", {
3450
+ le(s.$slots, "loadercontent")
3451
+ ], 4)) : P("", !0),
3452
+ !E.value && !d.value ? (c(), h("div", {
3437
3453
  key: 1,
3438
3454
  class: "nodatacontent",
3439
- style: G({ height: Number(e.height.replace("px", "")) - 175 + "px" })
3455
+ style: J({ height: Number(e.height.replace("px", "")) - 175 + "px" })
3440
3456
  }, [
3441
- te(s.$slots, "nodatacontent", {}, () => [
3442
- k("span", null, B(e.noDataContent), 1)
3457
+ le(s.$slots, "nodatacontent", {}, () => [
3458
+ w("span", null, V(e.noDataContent), 1)
3443
3459
  ])
3444
- ], 4)) : I("", !0)
3460
+ ], 4)) : P("", !0)
3445
3461
  ], 6)
3446
3462
  ], 4))
3447
3463
  ])
@@ -3452,101 +3468,101 @@ const Xo = /* @__PURE__ */ je(Go, [["render", Yo]]), Zo = { key: "hdrrow" }, ei
3452
3468
  ]),
3453
3469
  _: 3
3454
3470
  }, 8, ["style"]),
3455
- e.pagination && (C.value || e.alwaysShowPagination) ? (u(), p("div", {
3471
+ e.pagination && (E.value || e.alwaysShowPagination) ? (c(), h("div", {
3456
3472
  key: 0,
3457
- class: P(["bh-pagination", { "bh-pointer-events-none": h.value, "sticky-footer": e.stickyFooter }])
3473
+ class: I(["bh-pagination", { "bh-pointer-events-none": d.value, "sticky-footer": e.stickyFooter }])
3458
3474
  }, [
3459
- k("div", es, [
3460
- s.enablefooterpagination ? te(s.$slots, "footerpageinfo", {
3475
+ w("div", es, [
3476
+ s.enablefooterpagination ? le(s.$slots, "footerpageinfo", {
3461
3477
  key: 0,
3462
3478
  paginationInfo: s.paginationInfo,
3463
- filterRowCount: C.value,
3464
- offset: S.value,
3465
- limit: z.value,
3479
+ filterRowCount: E.value,
3480
+ offset: k.value,
3481
+ limit: F.value,
3466
3482
  showPageSize: s.showPageSize,
3467
3483
  pageSizeOptions: s.pageSizeOptions,
3468
3484
  currentPageSize: a.value,
3469
3485
  stringFormat: Qe,
3470
3486
  setPageSize: pt
3471
3487
  }, () => [
3472
- k("div", ts, [
3473
- k("span", ns, B(Qe(e.paginationInfo, C.value ? S.value : 0, z.value, C.value)), 1),
3474
- e.showPageSize ? ie((u(), p("select", {
3488
+ w("div", ts, [
3489
+ w("span", ns, V(Qe(e.paginationInfo, E.value ? k.value : 0, F.value, E.value)), 1),
3490
+ e.showPageSize ? ae((c(), h("select", {
3475
3491
  key: 0,
3476
- "onUpdate:modelValue": v[6] || (v[6] = (m) => a.value = m),
3492
+ "onUpdate:modelValue": p[6] || (p[6] = (m) => a.value = m),
3477
3493
  class: "bh-pagesize"
3478
3494
  }, [
3479
- (u(!0), p(D, null, oe(e.pageSizeOptions, (m) => (u(), p("option", {
3495
+ (c(!0), h(H, null, re(e.pageSizeOptions, (m) => (c(), h("option", {
3480
3496
  value: m,
3481
3497
  key: m
3482
- }, B(m), 9, ls))), 128))
3498
+ }, V(m), 9, ls))), 128))
3483
3499
  ], 512)), [
3484
3500
  [it, a.value]
3485
- ]) : I("", !0)
3501
+ ]) : P("", !0)
3486
3502
  ])
3487
- ]) : I("", !0),
3488
- s.enablefooterpagination ? te(s.$slots, "footerpagination", {
3503
+ ]) : P("", !0),
3504
+ s.enablefooterpagination ? le(s.$slots, "footerpagination", {
3489
3505
  key: 1,
3490
3506
  currentPage: r.value,
3491
- maxPage: c.value,
3492
- paging: L.value,
3493
- movePage: W,
3494
- nextPage: ee,
3495
- previousPage: N
3507
+ maxPage: f.value,
3508
+ paging: x.value,
3509
+ movePage: B,
3510
+ nextPage: te,
3511
+ previousPage: O
3496
3512
  }, () => [
3497
- k("div", os, [
3498
- e.showFirstPage ? (u(), p("button", {
3513
+ w("div", os, [
3514
+ e.showFirstPage ? (c(), h("button", {
3499
3515
  key: 0,
3500
3516
  type: "button",
3501
- class: P(["bh-page-item first-page", { disabled: r.value <= 1 }]),
3502
- onClick: v[7] || (v[7] = (m) => r.value = 1)
3517
+ class: I(["bh-page-item first-page", { disabled: r.value <= 1 }]),
3518
+ onClick: p[7] || (p[7] = (m) => r.value = 1)
3503
3519
  }, [
3504
- e.firstArrow ? (u(), p("span", {
3520
+ e.firstArrow ? (c(), h("span", {
3505
3521
  key: 0,
3506
3522
  innerHTML: e.firstArrow
3507
- }, null, 8, is)) : (u(), p("svg", ss, as))
3508
- ], 2)) : I("", !0),
3509
- k("button", {
3523
+ }, null, 8, is)) : (c(), h("svg", ss, as))
3524
+ ], 2)) : P("", !0),
3525
+ w("button", {
3510
3526
  type: "button",
3511
- class: P(["bh-page-item previous-page", { disabled: r.value <= 1 }]),
3512
- onClick: N
3527
+ class: I(["bh-page-item previous-page", { disabled: r.value <= 1 }]),
3528
+ onClick: O
3513
3529
  }, [
3514
- e.previousArrow ? (u(), p("span", {
3530
+ e.previousArrow ? (c(), h("span", {
3515
3531
  key: 0,
3516
3532
  innerHTML: e.previousArrow
3517
- }, null, 8, us)) : (u(), p("svg", cs, fs))
3533
+ }, null, 8, us)) : (c(), h("svg", cs, fs))
3518
3534
  ], 2),
3519
- e.showNumbers ? (u(!0), p(D, { key: 1 }, oe(L.value, (m) => (u(), p("button", {
3535
+ e.showNumbers ? (c(!0), h(H, { key: 1 }, re(x.value, (m) => (c(), h("button", {
3520
3536
  key: m,
3521
3537
  type: "button",
3522
- class: P(["bh-page-item", { disabled: r.value === m, "bh-active": m === r.value }]),
3523
- onClick: ($) => W(m)
3524
- }, B(m), 11, hs))), 128)) : I("", !0),
3525
- k("button", {
3538
+ class: I(["bh-page-item", { disabled: r.value === m, "bh-active": m === r.value }]),
3539
+ onClick: (R) => B(m)
3540
+ }, V(m), 11, hs))), 128)) : P("", !0),
3541
+ w("button", {
3526
3542
  type: "button",
3527
- class: P(["bh-page-item next-page", { disabled: r.value >= c.value }]),
3528
- onClick: ee
3543
+ class: I(["bh-page-item next-page", { disabled: r.value >= f.value }]),
3544
+ onClick: te
3529
3545
  }, [
3530
- e.nextArrow ? (u(), p("span", {
3546
+ e.nextArrow ? (c(), h("span", {
3531
3547
  key: 0,
3532
3548
  innerHTML: e.nextArrow
3533
- }, null, 8, ps)) : (u(), p("svg", vs, bs))
3549
+ }, null, 8, ps)) : (c(), h("svg", vs, bs))
3534
3550
  ], 2),
3535
- e.showLastPage ? (u(), p("button", {
3551
+ e.showLastPage ? (c(), h("button", {
3536
3552
  key: 2,
3537
3553
  type: "button",
3538
- class: P(["bh-page-item last-page", { disabled: r.value >= c.value }]),
3539
- onClick: v[8] || (v[8] = (m) => r.value = c.value)
3554
+ class: I(["bh-page-item last-page", { disabled: r.value >= f.value }]),
3555
+ onClick: p[8] || (p[8] = (m) => r.value = f.value)
3540
3556
  }, [
3541
- e.lastArrow ? (u(), p("span", {
3557
+ e.lastArrow ? (c(), h("span", {
3542
3558
  key: 0,
3543
3559
  innerHTML: e.lastArrow
3544
- }, null, 8, gs)) : (u(), p("svg", ys, ks))
3545
- ], 2)) : I("", !0)
3560
+ }, null, 8, gs)) : (c(), h("svg", ys, ks))
3561
+ ], 2)) : P("", !0)
3546
3562
  ])
3547
- ]) : I("", !0)
3563
+ ]) : P("", !0)
3548
3564
  ])
3549
- ], 2)) : I("", !0)
3565
+ ], 2)) : P("", !0)
3550
3566
  ]));
3551
3567
  }
3552
3568
  });