evui 3.8.1 → 3.9.0

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.
package/dist/index.js CHANGED
@@ -2655,7 +2655,13 @@ function si(e, { min: t, max: n, step: i }) {
2655
2655
  return c;
2656
2656
  }
2657
2657
  function Th() {
2658
- const { props: e, emit: t } = Ie(), n = se(e.modelValue), i = se(e.modelValue), s = (c) => e.precision && (c || c === 0) ? Number(c).toFixed(e.precision) : c, o = (c) => {
2658
+ const { props: e, emit: t } = Ie(), n = se(e.modelValue), i = se(e.modelValue), s = (c) => {
2659
+ if (e.precision && (c || c === 0)) {
2660
+ const d = Number(c).toFixed(e.precision);
2661
+ return e.trimTrailingZero ? String(parseFloat(d)) : d;
2662
+ }
2663
+ return c;
2664
+ }, o = (c) => {
2659
2665
  let d = c;
2660
2666
  !c && c !== 0 ? d = e.stepStrictly ? i.value : null : isNaN(c) ? d = i.value : e.stepStrictly ? (e.min === -1 / 0 && (e.min = 0), d = si(c, {
2661
2667
  min: e.min,
@@ -2752,6 +2758,10 @@ const Oh = {
2752
2758
  type: Number,
2753
2759
  default: 0,
2754
2760
  validator: (e) => e >= 0 && e <= 100 && e === parseInt(e, 10)
2761
+ },
2762
+ trimTrailingZero: {
2763
+ type: Boolean,
2764
+ default: !1
2755
2765
  }
2756
2766
  },
2757
2767
  emits: ["update:modelValue", "focus", "blur", "input", "change"],
@@ -3578,7 +3588,7 @@ function os(e, t, n, i, s, o) {
3578
3588
  }), l;
3579
3589
  }
3580
3590
  var Wp = 1, zp = 4;
3581
- function Xe(e) {
3591
+ function Ue(e) {
3582
3592
  return os(e, Wp | zp);
3583
3593
  }
3584
3594
  var $p = "__lodash_hash_undefined__";
@@ -4536,7 +4546,7 @@ const vo = 6, bo = 7, xo = 4, So = 3, Co = 5, wo = 4, yt = 12, yv = 24, vv = 60,
4536
4546
  return l === "ss" ? i : +l;
4537
4547
  }
4538
4548
  return i;
4539
- }, $e = (e, t) => {
4549
+ }, Xe = (e, t) => {
4540
4550
  if (!t)
4541
4551
  return "";
4542
4552
  const n = qe(fi(e, t, "hour")), i = qe(fi(e, t, "min")), s = qe(fi(e, t, "sec"));
@@ -4568,7 +4578,7 @@ const vo = 6, bo = 7, xo = 4, So = 3, Co = 5, wo = 4, yt = 12, yv = 24, vv = 60,
4568
4578
  if (e.mode !== "dateMulti" && e.mode !== "dateRange" && e.mode !== "dateTimeRange")
4569
4579
  if (e.modelValue && (e.modelValue.length === 10 && Ga.exec((y = e.modelValue) == null ? void 0 : y.toString()) || e.modelValue.length === 19 && Za.exec((v = e.modelValue) == null ? void 0 : v.toString())))
4570
4580
  if (e.mode === "dateTime" && t) {
4571
- const p = $e(t, e.modelValue);
4581
+ const p = Xe(t, e.modelValue);
4572
4582
  i = se(p);
4573
4583
  } else
4574
4584
  i = se(e.modelValue);
@@ -4579,7 +4589,7 @@ const vo = 6, bo = 7, xo = 4, So = 3, Co = 5, wo = 4, yt = 12, yv = 24, vv = 60,
4579
4589
  ))
4580
4590
  if (e.mode === "dateTimeRange" && e.modelValue.length === 2 && t) {
4581
4591
  const p = [];
4582
- p.push($e(t[0], e.modelValue[0])), p.push($e(t[1], e.modelValue[1])), i = se([...p]);
4592
+ p.push(Xe(t[0], e.modelValue[0])), p.push(Xe(t[1], e.modelValue[1])), i = se([...p]);
4583
4593
  } else
4584
4594
  i = se([...e.modelValue]);
4585
4595
  else
@@ -4854,7 +4864,7 @@ const vo = 6, bo = 7, xo = 4, So = 3, Co = 5, wo = 4, yt = 12, yv = 24, vv = 60,
4854
4864
  n("update:modelValue", W);
4855
4865
  break;
4856
4866
  case "dateTime": {
4857
- const pe = !!((ce = s.value) != null && ce.split(" ")[1]) ? (J = s.value) == null ? void 0 : J.split(" ")[1] : "00:00:00", Te = $e(
4867
+ const pe = !!((ce = s.value) != null && ce.split(" ")[1]) ? (J = s.value) == null ? void 0 : J.split(" ")[1] : "00:00:00", Te = Xe(
4858
4868
  i,
4859
4869
  `${W} ${pe}`
4860
4870
  );
@@ -4867,7 +4877,7 @@ const vo = 6, bo = 7, xo = 4, So = 3, Co = 5, wo = 4, yt = 12, yv = 24, vv = 60,
4867
4877
  const Te = s.value.indexOf(W);
4868
4878
  Te > -1 ? (s.value.splice(Te, 1), n("update:modelValue", [...s.value])) : s.value.length < pe && (s.value.push(W), le(), n("update:modelValue", [...s.value]));
4869
4879
  } else if (ie === "week" || ie === "weekday") {
4870
- const Te = ie === "week" ? 7 : 5, xe = ie === "week" ? 6 : 5, De = /* @__PURE__ */ new Date(`${W} 00:00:00`), Ue = De.getDay(), Tt = xe - Ue, Et = De.getTime() + Xi * Tt;
4880
+ const Te = ie === "week" ? 7 : 5, xe = ie === "week" ? 6 : 5, De = /* @__PURE__ */ new Date(`${W} 00:00:00`), Ye = De.getDay(), Tt = xe - Ye, Et = De.getTime() + Xi * Tt;
4871
4881
  for (let Nt = 0; Nt < Te; Nt++) {
4872
4882
  const jn = new Date(Et - Nt * Xi).getFullYear(), Gn = new Date(Et - Nt * Xi).getMonth() + 1, Zn = new Date(Et - Nt * Xi).getDate(), fn = `${jn}-${qe(Gn)}-${qe(Zn)}`;
4873
4883
  if (Nt === 0)
@@ -4899,10 +4909,10 @@ const vo = 6, bo = 7, xo = 4, So = 3, Co = 5, wo = 4, yt = 12, yv = 24, vv = 60,
4899
4909
  if (ie.length) {
4900
4910
  const pe = +(k === "expanded"), Te = ((oe = ie[pe]) == null ? void 0 : oe.split(" ")[1]) || "00:00:00";
4901
4911
  let xe = `${W} ${Te}`;
4902
- i && i.length && (xe = $e(i[pe], xe)), ie[pe] = xe;
4912
+ i && i.length && (xe = Xe(i[pe], xe)), ie[pe] = xe;
4903
4913
  } else {
4904
4914
  let pe = `${W} 00:00:00`, Te = `${W} 00:00:00`;
4905
- i && i.length && (pe = $e(i[0], pe), Te = $e(i[1], Te)), ie = [pe, Te];
4915
+ i && i.length && (pe = Xe(i[0], pe), Te = Xe(i[1], Te)), ie = [pe, Te];
4906
4916
  }
4907
4917
  n("update:modelValue", ie);
4908
4918
  break;
@@ -4935,17 +4945,17 @@ const vo = 6, bo = 7, xo = 4, So = 3, Co = 5, wo = 4, yt = 12, yv = 24, vv = 60,
4935
4945
  };
4936
4946
  if (t.mode === "dateTime") {
4937
4947
  let J;
4938
- t.modelValue ? J = $e(i, ne(t.modelValue)) : (te = !1, J = $e(i, le())), n("update:modelValue", J), Q.push(J);
4948
+ t.modelValue ? J = Xe(i, ne(t.modelValue)) : (te = !1, J = Xe(i, le())), n("update:modelValue", J), Q.push(J);
4939
4949
  } else {
4940
4950
  const J = k !== "main" | 0;
4941
4951
  let oe = [...s.value];
4942
4952
  if (t.modelValue.length) {
4943
4953
  let ie = ne(t.modelValue[J]);
4944
- i && i.length && (ie = $e(i[J], ie)), oe[J] = ie;
4954
+ i && i.length && (ie = Xe(i[J], ie)), oe[J] = ie;
4945
4955
  } else {
4946
4956
  const ie = le();
4947
4957
  oe = [ie, ie], i && i.length && (oe = [
4948
- ...oe.map((pe, Te) => $e(i[Te], pe))
4958
+ ...oe.map((pe, Te) => Xe(i[Te], pe))
4949
4959
  ]), te = !1, Q = oe;
4950
4960
  }
4951
4961
  n("update:modelValue", oe);
@@ -5327,12 +5337,12 @@ const Kv = new RegExp(/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/), Jv
5327
5337
  const { props: e, emit: t } = Ie(), n = (h = e.options) == null ? void 0 : h.timeFormat, i = ["dateTimeRange", "dateRange", "dateMulti"].includes(e.mode), s = (g) => {
5328
5338
  let m;
5329
5339
  if (e.mode === "dateTime")
5330
- m = $e(n, g);
5340
+ m = Xe(n, g);
5331
5341
  else if (e.modelValue.length) {
5332
5342
  const [f, y] = n;
5333
5343
  m = [
5334
- $e(f, g[0]),
5335
- $e(y, g[1])
5344
+ Xe(f, g[0]),
5345
+ Xe(y, g[1])
5336
5346
  ];
5337
5347
  }
5338
5348
  return m;
@@ -5351,10 +5361,10 @@ const Kv = new RegExp(/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/), Jv
5351
5361
  if (e.mode === "dateTimeRange" && Array.isArray(e.modelValue) && e.modelValue.length === 2) {
5352
5362
  const [g, m] = e.modelValue, [f, y] = n;
5353
5363
  e.modelValue = [
5354
- $e(f, g),
5355
- $e(y, m)
5364
+ Xe(f, g),
5365
+ Xe(y, m)
5356
5366
  ], l = se([...e.modelValue]);
5357
- } else e.mode === "dateTime" && e.modelValue ? l = se($e(n, e.modelValue)) : l = se(e.modelValue);
5367
+ } else e.mode === "dateTime" && e.modelValue ? l = se(Xe(n, e.modelValue)) : l = se(e.modelValue);
5358
5368
  else
5359
5369
  l = se(i ? [...e.modelValue] : e.modelValue);
5360
5370
  const a = (g) => {
@@ -5443,10 +5453,10 @@ const Kv = new RegExp(/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/), Jv
5443
5453
  const p = (v = t.options) == null ? void 0 : v.timeFormat, [w, I] = n.value;
5444
5454
  let M;
5445
5455
  t.mode === "dateTimeRange" && (p != null && p.length) ? M = o.find(({ shortcutDate: T }) => {
5446
- const [_, b] = T(), [x, C] = p, S = $e(
5456
+ const [_, b] = T(), [x, C] = p, S = Xe(
5447
5457
  x,
5448
5458
  d(_)
5449
- ), E = $e(C, d(b)), L = S === d(w), O = E === d(I);
5459
+ ), E = Xe(C, d(b)), L = S === d(w), O = E === d(I);
5450
5460
  return L && O;
5451
5461
  }) : M = o.find(({ shortcutDate: T }) => {
5452
5462
  const [_, b] = T(), x = t.mode === "dateTimeRange" ? d : c, C = x(_) === x(w), S = x(b) === x(I);
@@ -5469,8 +5479,8 @@ const Kv = new RegExp(/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/), Jv
5469
5479
  if (p != null && p.length) {
5470
5480
  const [T, _] = p;
5471
5481
  n.value = [
5472
- $e(T, d(I)),
5473
- $e(_, d(M))
5482
+ Xe(T, d(I)),
5483
+ Xe(_, d(M))
5474
5484
  ];
5475
5485
  } else
5476
5486
  n.value = [d(I), d(M)];
@@ -5478,7 +5488,7 @@ const Kv = new RegExp(/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/), Jv
5478
5488
  n.value = [c(I), c(M)];
5479
5489
  } else {
5480
5490
  const I = v();
5481
- n.value = t.mode === "dateTime" ? $e(p, d(I)) : c(I);
5491
+ n.value = t.mode === "dateTime" ? Xe(p, d(I)) : c(I);
5482
5492
  }
5483
5493
  l(), a(m);
5484
5494
  };
@@ -9151,7 +9161,7 @@ const Ec = /* @__PURE__ */ we(c0, [["render", f0], ["__scopeId", "data-v-4b9bef3
9151
9161
  const S = c.value.map((E) => E.text);
9152
9162
  t("apply-column", S), n.value = !1, f.value = !1;
9153
9163
  }, M = se(), T = se(), _ = () => {
9154
- T.value = Xe(l.value), a.value = e.columns.filter((S) => !S.hide && S.caption).map((S) => {
9164
+ T.value = Ue(l.value), a.value = e.columns.filter((S) => !S.hide && S.caption).map((S) => {
9155
9165
  var O, R;
9156
9166
  const E = (O = M.value) == null ? void 0 : O.find((k) => k.field === S.field);
9157
9167
  let L = !1;
@@ -9162,7 +9172,7 @@ const Ec = /* @__PURE__ */ we(c0, [["render", f0], ["__scopeId", "data-v-4b9bef3
9162
9172
  checked: L,
9163
9173
  fixed: S.fixed
9164
9174
  };
9165
- }), l.value = a.value.filter((S) => S.checked).map((S) => S.text), c.value.length = 0, M.value = Xe(e.columns);
9175
+ }), l.value = a.value.filter((S) => S.checked).map((S) => S.text), c.value.length = 0, M.value = Ue(e.columns);
9166
9176
  }, b = () => {
9167
9177
  n.value = !1, f.value = !1;
9168
9178
  }, x = () => {
@@ -9363,7 +9373,7 @@ const Lc = /* @__PURE__ */ we(g0, [["render", x0]]), S0 = {
9363
9373
  () => e.isShow,
9364
9374
  (I) => {
9365
9375
  var _;
9366
- const M = [], T = Xe(e.items);
9376
+ const M = [], T = Ue(e.items);
9367
9377
  I && i.value.field && ((_ = T[i.value.field]) != null && _.length ? T[i.value.field].forEach((b) => {
9368
9378
  M.push(b);
9369
9379
  }) : M.push({
@@ -10601,7 +10611,7 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10601
10611
  setSortInfo: J,
10602
10612
  updateVScroll: X,
10603
10613
  setFilter: pe
10604
- }), { calculatedColumn: De, onResize: Ue, onShow: Tt, onColumnResize: Et } = F0({
10614
+ }), { calculatedColumn: De, onResize: Ye, onShow: Tt, onColumnResize: Et } = F0({
10605
10615
  resizeInfo: k,
10606
10616
  elementInfo: M,
10607
10617
  checkInfo: C,
@@ -10616,7 +10626,7 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10616
10626
  columnSettingInfo: _,
10617
10627
  contextInfo: R,
10618
10628
  onSearch: ie,
10619
- onResize: Ue
10629
+ onResize: Ye
10620
10630
  }), { setContextMenu: fn, onContextMenu: to, onColumnContextMenu: no, onGridSettingContextMenu: Mi } = U0({
10621
10631
  contextInfo: R,
10622
10632
  stores: b,
@@ -10637,7 +10647,7 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10637
10647
  }), nl(() => {
10638
10648
  document.removeEventListener("wheel", gn, { capture: !1 }), document.removeEventListener("scroll", gn, { capture: !0 });
10639
10649
  }), Ws(() => {
10640
- Ue();
10650
+ Ye();
10641
10651
  }), ol(() => {
10642
10652
  var U;
10643
10653
  I.value = ((U = M["grid-wrapper"]) == null ? void 0 : U.offsetWidth) / 1.5 || 0;
@@ -10665,7 +10675,7 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10665
10675
  ), ae(
10666
10676
  () => e.rows,
10667
10677
  (U) => {
10668
- xe({ rows: U }), T.isSearch && ie(T.searchWord), Ue();
10678
+ xe({ rows: U }), T.isSearch && ie(T.searchWord), Ye();
10669
10679
  },
10670
10680
  { deep: !0 }
10671
10681
  ), ae(
@@ -10753,7 +10763,7 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10753
10763
  var Vt;
10754
10764
  const He = ue;
10755
10765
  return !((Vt = e.columns[ue.index]) != null && Vt.width) && !He.resized && (He.width = 0), He;
10756
- }), Ue();
10766
+ }), Ye();
10757
10767
  }
10758
10768
  ), ae(
10759
10769
  () => e.option.searchValue,
@@ -10783,7 +10793,7 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10783
10793
  const Dn = ge({
10784
10794
  boxTop: 0,
10785
10795
  boxLeft: 0
10786
- }), Z = se(null), fe = se(!1), Le = se(!1), Ne = se(null), Ye = se({}), it = ge({
10796
+ }), Z = se(null), fe = se(!1), Le = se(!1), Ne = se(null), je = se({}), it = ge({
10787
10797
  caption: "",
10788
10798
  field: ""
10789
10799
  }), pt = se([]), zc = [
@@ -10807,12 +10817,12 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10807
10817
  const bt = ue[jt];
10808
10818
  bt.classList.remove("non-display");
10809
10819
  const Di = (qn = Z.value.getBoundingClientRect()) == null ? void 0 : qn.width, { width: Ri } = bt.getBoundingClientRect();
10810
- Vt += Ri + 10, Di - 150 <= Vt && !bt.classList.contains("filtering-items__item--count") ? (io.value++, He.push(bt), Ye.value = {
10811
- ...Ye.value,
10812
- [bt.dataset.field]: Xe(
10820
+ Vt += Ri + 10, Di - 150 <= Vt && !bt.classList.contains("filtering-items__item--count") ? (io.value++, He.push(bt), je.value = {
10821
+ ...je.value,
10822
+ [bt.dataset.field]: Ue(
10813
10823
  T.filteringItemsByColumn[bt.dataset.field]
10814
10824
  )
10815
- }) : delete Ye.value[bt.dataset.field];
10825
+ }) : delete je.value[bt.dataset.field];
10816
10826
  }
10817
10827
  ue.forEach((jt) => {
10818
10828
  const bt = He.includes(jt);
@@ -10820,7 +10830,7 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10820
10830
  });
10821
10831
  }
10822
10832
  }, Uc = async (U, ue) => {
10823
- ue != null && ue.length ? (T.filteringItemsByColumn[U] = ue, Le.value = !0) : (delete Ye.value[U], delete T.filteringItemsByColumn[U]), await Re(), so(!0), T.isShowFilterSetting = !1, b.filterStore = [], xe({ rows: [], isMakeIndex: !1 }), Te(b.filterStore);
10833
+ ue != null && ue.length ? (T.filteringItemsByColumn[U] = ue, Le.value = !0) : (delete je.value[U], delete T.filteringItemsByColumn[U]), await Re(), so(!0), T.isShowFilterSetting = !1, b.filterStore = [], xe({ rows: [], isMakeIndex: !1 }), Te(b.filterStore);
10824
10834
  };
10825
10835
  let oo = null;
10826
10836
  const Yc = () => {
@@ -10828,7 +10838,7 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10828
10838
  Le.value = !Le.value, so(Le.value);
10829
10839
  }, 150);
10830
10840
  }, jc = () => {
10831
- T.filteringColumn = null, T.filteringItemsByColumn = {}, Ye.value = {}, b.filterStore = [], xe({ rows: [], isMakeIndex: !1 });
10841
+ T.filteringColumn = null, T.filteringItemsByColumn = {}, je.value = {}, b.filterStore = [], xe({ rows: [], isMakeIndex: !1 });
10832
10842
  }, Gc = $(() => {
10833
10843
  var U;
10834
10844
  return {
@@ -10878,7 +10888,7 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10878
10888
  updateHScroll: z,
10879
10889
  onScroll: j,
10880
10890
  calculatedColumn: De,
10881
- onResize: Ue,
10891
+ onResize: Ye,
10882
10892
  onShow: Tt,
10883
10893
  onColumnResize: Et,
10884
10894
  onRowClick: Ii,
@@ -10907,7 +10917,7 @@ const Dl = /* @__PURE__ */ we(_0, [["render", B0]]), Jt = 0, _n = 1, Ee = 2, ti
10907
10917
  hiddenFilteringItemsCount: io,
10908
10918
  ...Pe(Dn),
10909
10919
  hiddenFilteringItemsRef: Ne,
10910
- hiddenFilteringItemsByColumn: Ye,
10920
+ hiddenFilteringItemsByColumn: je,
10911
10921
  removeAllFiltering: jc,
10912
10922
  onExpandFilteringItems: Yc,
10913
10923
  setColumnFilteringItems: so,
@@ -13666,7 +13676,7 @@ class Ac {
13666
13676
  const P = this.calculateBarSize(a, O);
13667
13677
  R = c ? null : P, k = c ? P : null;
13668
13678
  const D = c ? (O - k) / 2 : (O - R) / 2, B = this.isExistGrp ? 1 : l + 1;
13669
- this.size.bar = S, this.size.bar = O, this.size.cPad = E, this.size.bPad = D, this.size.w = R, this.size.h = k, this.size.ix = B, this.chartRect = i, this.labelOffset = s, this.borderRadius = t.borderRadius, this.filteredCount = f;
13679
+ this.size.cat = S, this.size.bar = O, this.size.cPad = E, this.size.bPad = D, this.size.w = R, this.size.h = k, this.size.ix = B, this.chartRect = i, this.labelOffset = s, this.borderRadius = t.borderRadius, this.filteredCount = f;
13670
13680
  const V = Ke(y) ? y : 0, F = Ke(v) ? v : this.data.length - 1;
13671
13681
  this.visibleStartIndex = V;
13672
13682
  for (let K = V; K <= F; K++) {
@@ -13674,12 +13684,12 @@ class Ac {
13674
13684
  if (Q) {
13675
13685
  const le = c ? x - S * te - E : b + S * te + E;
13676
13686
  if (c ? (u = b, h = Math.round(le - (O * B - (k + D)))) : (u = Math.round(le + (O * B - (R + D))), h = x), c) {
13677
- const De = Q.b ? Q.o : Q.x, Ue = Math.min(
13687
+ const De = Q.b ? Q.o : Q.x, Ye = Math.min(
13678
13688
  Math.max(De, g.graphMin),
13679
13689
  g.graphMax
13680
13690
  );
13681
13691
  if (R = me.calculateX(
13682
- Ue,
13692
+ Ye,
13683
13693
  g.graphMin,
13684
13694
  g.graphMax,
13685
13695
  p,
@@ -13700,12 +13710,12 @@ class Ac {
13700
13710
  const Tt = De > 0 ? -1 : 1;
13701
13711
  R = De && Math.abs(R) === 0 ? Tt : R;
13702
13712
  } else {
13703
- const De = Q.b ? Q.o : Q.y, Ue = Math.min(
13713
+ const De = Q.b ? Q.o : Q.y, Ye = Math.min(
13704
13714
  Math.max(De, m.graphMin),
13705
13715
  m.graphMax
13706
13716
  );
13707
13717
  if (k = me.calculateY(
13708
- Ue,
13718
+ Ye,
13709
13719
  m.graphMin,
13710
13720
  m.graphMax,
13711
13721
  w,
@@ -13738,8 +13748,8 @@ class Ac {
13738
13748
  t.unSelectedOpacity
13739
13749
  );
13740
13750
  else {
13741
- const De = ne.includes("rgba") ? G.getOpacity(ne) : 1, Ue = xe ? t.unSelectedOpacity : De;
13742
- n.fillStyle = G.colorStringToRgba(ne, Ue);
13751
+ const De = ne.includes("rgba") ? G.getOpacity(ne) : 1, Ye = xe ? t.unSelectedOpacity : De;
13752
+ n.fillStyle = G.colorStringToRgba(ne, Ye);
13743
13753
  }
13744
13754
  this.drawBar({
13745
13755
  ctx: n,
@@ -14749,13 +14759,13 @@ class wi {
14749
14759
  Math.min(h, s.label + 0 * g)
14750
14760
  );
14751
14761
  if (De === ce) {
14752
- const Ue = Math.round(a.measureText((O = this.labelStyle) == null ? void 0 : O.fontSize).width);
14762
+ const Ye = Math.round(a.measureText((O = this.labelStyle) == null ? void 0 : O.fontSize).width);
14753
14763
  G.showLabelTip({
14754
14764
  ctx: this.ctx,
14755
14765
  width: Math.round(a.measureText(De).width) + 10,
14756
- height: Ue,
14766
+ height: Ye,
14757
14767
  x: te,
14758
- y: xe + (Ue - 2),
14768
+ y: xe + (Ye - 2),
14759
14769
  borderRadius: 2,
14760
14770
  arrowSize: 3,
14761
14771
  text: ce,
@@ -14785,8 +14795,8 @@ class wi {
14785
14795
  this.drawYPlotBand(xe, De, K, te, Q, le);
14786
14796
  }
14787
14797
  if (ie.show) {
14788
- const Ue = this.getNormalizedLabelOptions(t, ie), Tt = this.getPlotBandLabelPosition(xe, De, Ue, te, Q);
14789
- this.drawPlotLabel(Ue, Tt);
14798
+ const Ye = this.getNormalizedLabelOptions(t, ie), Tt = this.getPlotBandLabelPosition(xe, De, Ye, te, Q);
14799
+ this.drawPlotLabel(Ye, Tt);
14790
14800
  }
14791
14801
  a.restore();
14792
14802
  }), (Y = this.plotLines) == null || Y.forEach((ne) => {
@@ -17732,7 +17742,7 @@ const oC = {
17732
17742
  );
17733
17743
  this.defaultSelectInfo = this.getSelectedLabelInfoWithLabelData(I, p), p && (this.defaultSelectInfo.targetAxis = I != null && I.length ? p : null), o.selected = {
17734
17744
  eventTarget: "label",
17735
- ...Xe(this.defaultSelectInfo)
17745
+ ...Ue(this.defaultSelectInfo)
17736
17746
  }, o.label = (T = (M = this.defaultSelectInfo) == null ? void 0 : M.label) == null ? void 0 : T.at(0), o.dataIndex = (b = (_ = this.defaultSelectInfo) == null ? void 0 : _.dataIndex) == null ? void 0 : b.at(0);
17737
17747
  }, y = () => {
17738
17748
  const p = this.findHitItem(l, !0), w = p.hitId ?? Object.keys(p.items)[0], I = p.items[w];
@@ -17740,7 +17750,7 @@ const oC = {
17740
17750
  const M = this.updateSelectedSeriesInfo(w, !1);
17741
17751
  this.defaultSelectInfo.seriesId = M.seriesId, o.selected = {
17742
17752
  eventTarget: "series",
17743
- ...Xe(this.defaultSelectInfo)
17753
+ ...Ue(this.defaultSelectInfo)
17744
17754
  }, o.label = I.label, o.dataIndex = I.index;
17745
17755
  }
17746
17756
  };
@@ -18241,7 +18251,7 @@ const oC = {
18241
18251
  * @returns {object[]}
18242
18252
  */
18243
18253
  getSelectedLabelInfoWithLabelData(e, t) {
18244
- const { selectLabel: n, type: i, horizontal: s } = this.options, o = Xe(this.defaultSelectInfo);
18254
+ const { selectLabel: n, type: i, horizontal: s } = this.options, o = Ue(this.defaultSelectInfo);
18245
18255
  switch (o.dataIndex = e, i) {
18246
18256
  default:
18247
18257
  case "bar":
@@ -18275,7 +18285,7 @@ const oC = {
18275
18285
  */
18276
18286
  regulateSelectedLabelInfo(e, t) {
18277
18287
  var o, l;
18278
- const n = ((o = this.options) == null ? void 0 : o.selectLabel) ?? {}, i = t === null || ((l = this.defaultSelectInfo) == null ? void 0 : l.targetAxis) === t ? { ...this.defaultSelectInfo, targetAxis: t } : { dataIndex: [], targetAxis: t }, s = Xe(i);
18288
+ const n = ((o = this.options) == null ? void 0 : o.selectLabel) ?? {}, i = t === null || ((l = this.defaultSelectInfo) == null ? void 0 : l.targetAxis) === t ? { ...this.defaultSelectInfo, targetAxis: t } : { dataIndex: [], targetAxis: t }, s = Ue(i);
18279
18289
  if (i.dataIndex.includes(e)) {
18280
18290
  const a = i.dataIndex.indexOf(e);
18281
18291
  s.dataIndex.splice(a, 1);
@@ -18292,7 +18302,7 @@ const oC = {
18292
18302
  var o;
18293
18303
  const n = ((o = this.options) == null ? void 0 : o.selectSeries) ?? {}, i = this.defaultSelectInfo ?? { seriesId: [] };
18294
18304
  typeof i.seriesId == "string" && (i.seriesId = [i.seriesId]);
18295
- const s = Xe(i);
18305
+ const s = Ue(i);
18296
18306
  if (i.seriesId.includes(e)) {
18297
18307
  if (!t) {
18298
18308
  const l = i.seriesId.indexOf(e);
@@ -20582,7 +20592,7 @@ const mC = {
20582
20592
  left: 2,
20583
20593
  bottom: 4
20584
20594
  }), g;
20585
- }, o = (h) => tt(h, pC), l = Xe(n.selectedItem), a = Xe(n.selectedLabel ?? (e == null ? void 0 : e.value)), r = Xe(n.selectedSeries), { clickEventCallback: c, dblClickEventCallback: d } = yC();
20595
+ }, o = (h) => tt(h, pC), l = Ue(n.selectedItem), a = Ue(n.selectedLabel ?? (e == null ? void 0 : e.value)), r = Ue(n.selectedSeries), { clickEventCallback: c, dblClickEventCallback: d } = yC();
20586
20596
  return {
20587
20597
  eventListeners: {
20588
20598
  click: async (h) => {
@@ -20703,7 +20713,7 @@ const mC = {
20703
20713
  if (n != null && n.value ? (m.dom = n.value.querySelectorAll(".ev-chart-container"), m.dom.length && s.value.forEach(({ data: x, options: C }, S) => {
20704
20714
  x.chartIdx = S, m.props.data.push(x), m.props.options.push(C), y.value.push(S);
20705
20715
  })) : (m.dom = [t.value.querySelector(".ev-chart-container")], m.props.data.push(o.data), m.props.options.push(o.options)), m.props.data.length) {
20706
- f.data = Xe(m.props.data), f.options = Xe(m.props.options);
20716
+ f.data = Ue(m.props.data), f.options = Ue(m.props.options);
20707
20717
  const x = {
20708
20718
  updateZoomStartIdx: (C) => l("update:zoomStartIdx", C),
20709
20719
  updateZoomEndIdx: (C) => l("update:zoomEndIdx", C)
@@ -20741,7 +20751,7 @@ const mC = {
20741
20751
  const T = (x) => {
20742
20752
  !Mt(x.zoom, u.zoom) && (u.zoom = x.zoom, g ? (!u.zoom.toolbar.show && r.value && I(), g.setEvChartZoomOptions(u.zoom)) : u.zoom.toolbar.show && !n && w());
20743
20753
  }, _ = (x) => {
20744
- c.value ? (a.value || (f.data = n ? Xe(x) : [Xe(x)], u.zoom.keepZoomStatus ? c.value = !1 : (r.value = !1, p()), g && g.updateEvChartCloneData(
20754
+ c.value ? (a.value || (f.data = n ? Ue(x) : [Ue(x)], u.zoom.keepZoomStatus ? c.value = !1 : (r.value = !1, p()), g && g.updateEvChartCloneData(
20745
20755
  f,
20746
20756
  y,
20747
20757
  r.value,
@@ -20891,7 +20901,7 @@ const mC = {
20891
20901
  (V) => {
20892
20902
  var z, j;
20893
20903
  const F = f(V), W = ((j = (z = n.options) == null ? void 0 : z.legend) == null ? void 0 : j.show) ?? !1, Y = !Mt(F.legend.table, n.options.legend.table), X = F.tooltip.use && !Mt(F.tooltip, n.options.tooltip);
20894
- n.options = Xe(F), n.update({
20904
+ n.options = Ue(F), n.update({
20895
20905
  updateSeries: !1,
20896
20906
  updateSelTip: { update: !1, keepDomain: !1 },
20897
20907
  updateLegend: Y,
@@ -20904,7 +20914,7 @@ const mC = {
20904
20914
  (V) => {
20905
20915
  var X, z;
20906
20916
  const F = (X = e.options.realTimeScatter) != null && X.use ? { ...V, groups: [], labels: [] } : m(V), W = !Mt(F.series, n.data.series) || !Mt(F.groups, n.data.groups) || e.options.type === "heatMap", Y = !Mt(F, n.data);
20907
- n.data = (z = e.options.realTimeScatter) != null && z.use ? F : Xe(F), n.update({
20917
+ n.data = (z = e.options.realTimeScatter) != null && z.use ? F : Ue(F), n.update({
20908
20918
  updateSeries: W,
20909
20919
  updateSelTip: { update: !0, keepDomain: !1 },
20910
20920
  updateData: Y
@@ -21198,7 +21208,7 @@ const xs = /* @__PURE__ */ we(wC, [["render", kC], ["__scopeId", "data-v-b1c0c32
21198
21208
  xs.install = (e) => {
21199
21209
  e.component(xs.name, xs);
21200
21210
  };
21201
- const je = {
21211
+ const $e = {
21202
21212
  WHEEL: {
21203
21213
  UP: "MOVEUP_WHEEL",
21204
21214
  DOWN: "MOVEDOWN_WHEEL"
@@ -21271,20 +21281,20 @@ let TC = class {
21271
21281
  !i && this.debounceBrushIdx && (this.debounceBrushIdx.start = this.brushIdx.start, this.debounceBrushIdx.end = this.brushIdx.end);
21272
21282
  const c = this.debounceBrushIdx ?? this.brushIdx;
21273
21283
  switch (s) {
21274
- case je.BUTTON.INCREASE:
21275
- case je.BUTTON.DECREASE:
21284
+ case $e.BUTTON.INCREASE:
21285
+ case $e.BUTTON.DECREASE:
21276
21286
  this.brushRectWidth = l * r, this.curBrushButtonType === et.LEFT ? (this.brushRectWidth = this.beforeBrushRectWidth ? this.beforeBrushRectWidth - n : this.brushRectWidth - n, this.brushRectWidth <= o ? this.brushRectWidth = o : (this.brushRectX = n * r, this.beforeBrushRectX = this.brushRectX)) : this.curBrushButtonType === et.RIGHT && (this.brushRectWidth = n - this.beforeBrushRectX, this.brushRectWidth <= o ? this.brushRectWidth = o : (this.brushRectX = this.beforeBrushRectX, this.beforeBrushRectWidth = this.brushRectWidth + this.brushRectX));
21277
21287
  break;
21278
- case je.GRAB.UP:
21279
- case je.GRAB.DOWN:
21280
- this.brushRectX <= 0 && s === je.GRAB.DOWN || this.brushRectX + this.brushRectWidth >= l && s === je.GRAB.UP ? this.offsetXAndRectXInterval = null : (this.offsetXAndRectXInterval || (this.offsetXAndRectXInterval = n - this.brushRectX), this.brushRectX = n - this.offsetXAndRectXInterval);
21288
+ case $e.GRAB.UP:
21289
+ case $e.GRAB.DOWN:
21290
+ this.brushRectX <= 0 && s === $e.GRAB.DOWN || this.brushRectX + this.brushRectWidth >= l && s === $e.GRAB.UP ? this.offsetXAndRectXInterval = null : (this.offsetXAndRectXInterval || (this.offsetXAndRectXInterval = n - this.brushRectX), this.brushRectX = n - this.offsetXAndRectXInterval);
21281
21291
  break;
21282
21292
  default:
21283
21293
  n || (this.brushRectX = c.start * a * r, this.brushRectWidth = (l - (this.labelEndIdx - (c.end - c.start)) * a) * r, this.beforeBrushRectX = this.brushRectX, this.beforeBrushRectWidth = this.brushRectWidth + this.brushRectX);
21284
21294
  break;
21285
21295
  }
21286
21296
  const d = l * r;
21287
- return this.brushRectX < 0 ? this.brushRectX = 0 : this.brushRectX + this.brushRectWidth > d && (this.brushRectX = d - this.brushRectWidth), this.brushRectWidth > d && (this.brushRectWidth = d), {
21297
+ return s === $e.BUTTON.INCREASE || s === $e.BUTTON.DECREASE ? (this.brushRectX < 0 && (this.brushRectWidth += this.brushRectX, this.brushRectX = 0), this.brushRectX + this.brushRectWidth > d && (this.brushRectWidth = d - this.brushRectX)) : this.brushRectX < 0 ? this.brushRectX = 0 : this.brushRectX + this.brushRectWidth > d && (this.brushRectX = d - this.brushRectWidth), this.brushRectWidth > d && (this.brushRectWidth = d), {
21288
21298
  brushRectX: this.brushRectX,
21289
21299
  brushRectWidth: this.brushRectWidth
21290
21300
  };
@@ -21327,7 +21337,7 @@ let TC = class {
21327
21337
  };
21328
21338
  this.onMouseMove = Ps(i, 5), this.onWheel = (o) => {
21329
21339
  o.preventDefault();
21330
- const l = o.deltaY > 0 ? je.WHEEL.DOWN : je.WHEEL.UP;
21340
+ const l = o.deltaY > 0 ? $e.WHEEL.DOWN : $e.WHEEL.UP;
21331
21341
  this.updateBrushIdx(l), this.debounceBrushIdx && this.drawBrushRect({
21332
21342
  brushCanvas: this.brushCanvas,
21333
21343
  isDebounce: !0,
@@ -21387,7 +21397,7 @@ let TC = class {
21387
21397
  mouseDownAndMove(t) {
21388
21398
  const n = this.debounceBrushIdx ? 0 : this.brushPosInfo.axesXInterval / 3;
21389
21399
  let i;
21390
- t.offsetX > this.beforeMouseXPos ? this.isDragMode === "grab" ? this.clickBrushInsideX < t.offsetX - n && (i = je.GRAB.UP, this.isUseBrushGrab = !0, this.brushIdx.isUseScroll = !0, this.clickBrushInsideX = t.offsetX + n) : t.offsetX - this.brushPosInfo[this.curBrushButtonType] > n && (i = this.curBrushButtonType === et.LEFT ? je.BUTTON.DECREASE : je.BUTTON.INCREASE, this.brushIdx.isUseButton = !0) : t.offsetX < this.beforeMouseXPos && (this.isDragMode === "grab" ? this.clickBrushInsideX > t.offsetX + n && (i = je.GRAB.DOWN, this.isUseBrushGrab = !0, this.brushIdx.isUseScroll = !0, this.clickBrushInsideX = t.offsetX - n) : this.brushPosInfo[this.curBrushButtonType] - t.offsetX > n && (i = this.curBrushButtonType === et.LEFT ? je.BUTTON.INCREASE : je.BUTTON.DECREASE, this.brushIdx.isUseButton = !0)), this.debounceBrushIdx ? this.drawBrushRect({
21400
+ t.offsetX > this.beforeMouseXPos ? this.isDragMode === "grab" ? this.clickBrushInsideX < t.offsetX - n && (i = $e.GRAB.UP, this.isUseBrushGrab = !0, this.brushIdx.isUseScroll = !0, this.clickBrushInsideX = t.offsetX + n) : t.offsetX - this.brushPosInfo[this.curBrushButtonType] > n && (i = this.curBrushButtonType === et.LEFT ? $e.BUTTON.DECREASE : $e.BUTTON.INCREASE, this.brushIdx.isUseButton = !0) : t.offsetX < this.beforeMouseXPos && (this.isDragMode === "grab" ? this.clickBrushInsideX > t.offsetX + n && (i = $e.GRAB.DOWN, this.isUseBrushGrab = !0, this.brushIdx.isUseScroll = !0, this.clickBrushInsideX = t.offsetX - n) : this.brushPosInfo[this.curBrushButtonType] - t.offsetX > n && (i = this.curBrushButtonType === et.LEFT ? $e.BUTTON.INCREASE : $e.BUTTON.DECREASE, this.brushIdx.isUseButton = !0)), this.debounceBrushIdx ? this.drawBrushRect({
21391
21401
  brushCanvas: this.brushCanvas,
21392
21402
  isDebounce: !0,
21393
21403
  mode: i,
@@ -21402,19 +21412,19 @@ let TC = class {
21402
21412
  updateBrushIdx(t) {
21403
21413
  const n = this.debounceBrushIdx ?? this.brushIdx;
21404
21414
  switch (t) {
21405
- case je.WHEEL.UP:
21406
- case je.GRAB.UP:
21415
+ case $e.WHEEL.UP:
21416
+ case $e.GRAB.UP:
21407
21417
  if (n.end >= this.labelEndIdx)
21408
21418
  return;
21409
21419
  n.start += 1, n.end += 1;
21410
21420
  break;
21411
- case je.WHEEL.DOWN:
21412
- case je.GRAB.DOWN:
21421
+ case $e.WHEEL.DOWN:
21422
+ case $e.GRAB.DOWN:
21413
21423
  if (n.start <= 0)
21414
21424
  return;
21415
21425
  n.start -= 1, n.end -= 1;
21416
21426
  break;
21417
- case je.BUTTON.INCREASE:
21427
+ case $e.BUTTON.INCREASE:
21418
21428
  if (this.curBrushButtonType === et.LEFT) {
21419
21429
  if (!n.start)
21420
21430
  return;
@@ -21425,7 +21435,7 @@ let TC = class {
21425
21435
  n.end += 1;
21426
21436
  }
21427
21437
  break;
21428
- case je.BUTTON.DECREASE:
21438
+ case $e.BUTTON.DECREASE:
21429
21439
  if (n.start === n.end - 1)
21430
21440
  return;
21431
21441
  this.curBrushButtonType === et.LEFT ? n.start += 1 : n.end -= 1;
@@ -21573,10 +21583,10 @@ const EC = {
21573
21583
  }
21574
21584
  ), ae(v, (x, C) => {
21575
21585
  var S;
21576
- x.brush.chartIdx <= ((S = s.data) == null ? void 0 : S.length) - 1 ? n && !Mt(C.brush, x.brush) ? n.removeBrushWrapper() : t && !Mt(x, C) && (t.options = Xe(x), t.update({
21586
+ x.brush.chartIdx <= ((S = s.data) == null ? void 0 : S.length) - 1 ? n && !Mt(C.brush, x.brush) ? n.removeBrushWrapper() : t && !Mt(x, C) && (t.options = Ue(x), t.update({
21577
21587
  updateSeries: !1,
21578
21588
  updateSelTip: { update: !1, keepDomain: !1 }
21579
- })) : (t.data = Xe(y.value), t.update({
21589
+ })) : (t.data = Ue(y.value), t.update({
21580
21590
  updateSeries: !0,
21581
21591
  updateSelTip: { update: !1, keepDomain: !1 },
21582
21592
  updateData: !1
@@ -21591,7 +21601,7 @@ const EC = {
21591
21601
  typeof E == "object" && Object.keys(E).length && Object.keys(C.series).forEach((L) => {
21592
21602
  var O;
21593
21603
  "show" in C.series[L] || (C.series[L].show = ((O = E[L]) == null ? void 0 : O.show) ?? !0);
21594
- }), t.data = Xe(C), t.update({
21604
+ }), t.data = Ue(C), t.update({
21595
21605
  updateSeries: S,
21596
21606
  updateSelTip: { update: !1, keepDomain: !1 },
21597
21607
  updateData: !1
@@ -22762,12 +22772,12 @@ const $C = /* @__PURE__ */ we(HC, [["render", zC]]), XC = (e) => {
22762
22772
  }), xe = (Z) => {
22763
22773
  I.gridSettingContextMenuItems.length = 0, I.customGridSettingContextMenu.length ? Te(Z) : a.isShowColumnSetting = !0;
22764
22774
  }, De = (Z) => {
22765
- var fe, Le, Ne, Ye, it, pt;
22766
- Z.type === "wheel" && ((fe = I.menu) == null || fe.hide(Z)), Z.type === "scroll" && !((Le = Z.target.classList) != null && Le.contains("table-body")) && !((Ye = (Ne = Z.target.offsetParent) == null ? void 0 : Ne.classList) != null && Ye.contains("ev-grid-column-setting")) && (a.isShowColumnSetting = !1, I.isShowMenuOnClick = !1, (it = I.columnMenu) == null || it.hide(Z), (pt = I.gridSettingMenu) == null || pt.hide());
22775
+ var fe, Le, Ne, je, it, pt;
22776
+ Z.type === "wheel" && ((fe = I.menu) == null || fe.hide(Z)), Z.type === "scroll" && !((Le = Z.target.classList) != null && Le.contains("table-body")) && !((je = (Ne = Z.target.offsetParent) == null ? void 0 : Ne.classList) != null && je.contains("ev-grid-column-setting")) && (a.isShowColumnSetting = !1, I.isShowMenuOnClick = !1, (it = I.columnMenu) == null || it.hide(Z), (pt = I.gridSettingMenu) == null || pt.hide());
22767
22777
  };
22768
22778
  mt(() => {
22769
22779
  var Z;
22770
- if (r.treeStore = X(), r.originStore = Xe(r.treeStore), (Z = e.option) != null && Z.useSort)
22780
+ if (r.treeStore = X(), r.originStore = Ue(r.treeStore), (Z = e.option) != null && Z.useSort)
22771
22781
  te(e.columns, !1);
22772
22782
  else {
22773
22783
  const fe = I.hiddenColumnMenuItem;
@@ -22837,8 +22847,8 @@ const $C = /* @__PURE__ */ we(HC, [["render", zC]]), XC = (e) => {
22837
22847
  const fe = (Ne) => {
22838
22848
  if (!(Ne != null && Ne.children))
22839
22849
  return;
22840
- const { children: Ye } = Ne;
22841
- Ye.forEach((it) => {
22850
+ const { children: je } = Ne;
22851
+ je.forEach((it) => {
22842
22852
  const pt = it;
22843
22853
  pt.parent.show && pt.parent.expand ? pt.show = !0 : pt.show = !1, pt.isFilter = !0, pt.hasChild && fe(pt);
22844
22854
  });
@@ -22847,23 +22857,23 @@ const $C = /* @__PURE__ */ we(HC, [["render", zC]]), XC = (e) => {
22847
22857
  fe(Ne);
22848
22858
  return;
22849
22859
  }
22850
- const { parent: Ye } = Ne;
22851
- Ye.show = !0, Ye.isFilter = !0, Ye.expand = !0, fe(Ye), Le(Ye);
22860
+ const { parent: je } = Ne;
22861
+ je.show = !0, je.isFilter = !0, je.expand = !0, fe(je), Le(je);
22852
22862
  };
22853
22863
  if (Z >= 0) {
22854
22864
  const Ne = r.store.find((it) => it.index === Z);
22855
22865
  if (!Ne)
22856
22866
  return;
22857
22867
  Ne.show = !0, Ne.isFilter = !0, Le(Ne);
22858
- const Ye = r.showTreeStore.map((it) => it.index).indexOf(Ne.index);
22868
+ const je = r.showTreeStore.map((it) => it.index).indexOf(Ne.index);
22859
22869
  if (c.usePage && !c.isInfinite) {
22860
- const it = Math.ceil(Ye / c.perPage);
22861
- if (c.highlightPage = Ye === c.perPage ? it + 1 : it || 1, c.highlightPage !== c.currentPage) {
22870
+ const it = Math.ceil(je / c.perPage);
22871
+ if (c.highlightPage = je === c.perPage ? it + 1 : it || 1, c.highlightPage !== c.currentPage) {
22862
22872
  c.currentPage = c.highlightPage, c.isHighlight = !0;
22863
22873
  return;
22864
22874
  }
22865
22875
  }
22866
- o.body.scrollTop = M.rowHeight * Ye;
22876
+ o.body.scrollTop = M.rowHeight * je;
22867
22877
  }
22868
22878
  }
22869
22879
  ), ae(
@@ -22931,7 +22941,7 @@ const $C = /* @__PURE__ */ we(HC, [["render", zC]]), XC = (e) => {
22931
22941
  });
22932
22942
  }
22933
22943
  );
22934
- const Ue = () => ({
22944
+ const Ye = () => ({
22935
22945
  "column-sort__icon": !0,
22936
22946
  "column-sort__icon--asc": w.sortOrder === "asc",
22937
22947
  "column-sort__icon--desc": w.sortOrder === "desc"
@@ -23025,7 +23035,7 @@ const $C = /* @__PURE__ */ we(HC, [["render", zC]]), XC = (e) => {
23025
23035
  onApplyColumn: ce,
23026
23036
  onColumnContextMenu: pe,
23027
23037
  onSort: j,
23028
- sortIconClass: Ue
23038
+ sortIconClass: Ye
23029
23039
  };
23030
23040
  }
23031
23041
  }, t1 = { class: "column-list" }, n1 = ["data-index"], i1 = ["title", "onClick"], s1 = ["onClick"], o1 = ["onMousedown"], l1 = { ref: "table" }, a1 = ["title"], r1 = { key: 0 }, c1 = { class: "is-empty" }, d1 = {
@@ -23552,7 +23562,7 @@ const ws = /* @__PURE__ */ we(p1, [["render", S1]]);
23552
23562
  ws.install = (e) => {
23553
23563
  e.component(ws.name, ws);
23554
23564
  };
23555
- const C1 = "3.8.0", w1 = [
23565
+ const C1 = "3.8.2", w1 = [
23556
23566
  qi,
23557
23567
  Ki,
23558
23568
  ai,