@hybridcore/ui 1.6.8 → 1.6.9

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.
Files changed (45) hide show
  1. package/dist/AnimatedTheme-BOKdw2Oy.js +7708 -0
  2. package/dist/{AxisRenderer-DTyLLA6c.js → AxisRenderer-lUbezuh7.js} +51 -49
  3. package/dist/{AxisRendererY-C_ItLPNV.js → AxisRendererY-DbSiyb45.js} +3 -3
  4. package/dist/{Bullet-DVczI2TD.js → Bullet-PgoNb3Jv.js} +1 -1
  5. package/dist/{Button-CcsPEIDh.js → Button-XBf4Mwz-.js} +3 -3
  6. package/dist/{CategoryAxis-CwnfaGc8.js → CategoryAxis-B8KQp1pE.js} +3 -3
  7. package/dist/{Circle-Cy5s-pVc.js → Circle-BWRdiMpG.js} +1 -1
  8. package/dist/ColorSet-DDmFoKtZ.js +77 -0
  9. package/dist/{ColumnSeries-CjgdJ2QL.js → ColumnSeries-rgnGm-Bg.js} +4 -4
  10. package/dist/{DataProcessor-CHDO51q4.js → DataProcessor-CvIe9BVn.js} +1 -1
  11. package/dist/{DateAxis-YX3QNIB-.js → DateAxis-zNtbSVjW.js} +8 -7
  12. package/dist/{ColorSet-C7vpNXhM.js → Entity-CCUIdRAr.js} +638 -712
  13. package/dist/{Hierarchy-Bihj0S61.js → Hierarchy-CCvGsF1A.js} +25 -23
  14. package/dist/{Legend-Dp_MKfS4.js → Legend-kbCFjJAW.js} +11 -10
  15. package/dist/{LineSeries-Uiv5o56b.js → LineSeries-BLFvwrLT.js} +13 -12
  16. package/dist/{LinearGradient-DiRq5YcI.js → LinearGradient-C7rnipF7.js} +11 -11
  17. package/dist/{PieSeries-B2fW3z0s.js → PieSeries-3iLRbqFv.js} +34 -32
  18. package/dist/{RoundedRectangle-CWLi2PXn.js → RoundedRectangle-CqMMmPM0.js} +4 -4
  19. package/dist/{Scrollbar-D86MJyr2.js → Scrollbar-BzSBcIUt.js} +4 -4
  20. package/dist/{Slice-B19rbYDZ.js → Slice-CS23iLiS.js} +2 -2
  21. package/dist/{Tick-2bcLyHpF.js → Tick-BADQ8QeT.js} +15 -15
  22. package/dist/Tooltip-A_HlttXp.js +3606 -0
  23. package/dist/{XYCursor-C8WktvKM.js → XYCursor-gHAo40xC.js} +3 -3
  24. package/dist/{ZoomableContainer-DYyqwaMb.js → ZoomableContainer-Brs1wHM1.js} +9 -9
  25. package/dist/components/charts/_common/tooltip.js +73 -0
  26. package/dist/components/charts/_common/utils.js +10 -9
  27. package/dist/components/charts/candlestick/logic.js +181 -156
  28. package/dist/components/charts/column-line-mix/logic.js +80 -77
  29. package/dist/components/charts/donut-chart/logic.js +36 -34
  30. package/dist/components/charts/drill-down-treemap/logic.js +49 -48
  31. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +102 -101
  32. package/dist/components/charts/heatmap/logic.js +33 -32
  33. package/dist/components/charts/highlighting-line-data/logic.js +26 -24
  34. package/dist/components/charts/line/logic.js +123 -174
  35. package/dist/components/charts/logaritmic-scale/logic.js +69 -60
  36. package/dist/components/charts/multiple-value-axes/logic.js +93 -88
  37. package/dist/components/charts/nested-pie/logic.js +3 -3
  38. package/dist/components/charts/packed-circles/logic.js +28 -27
  39. package/dist/components/charts/pie-chart/logic.js +43 -41
  40. package/dist/components/charts/stacked-area-radar/logic.js +124 -121
  41. package/dist/components/charts/stacked-column-chart/logic.js +107 -95
  42. package/dist/components/charts/xy-chart/logic.js +103 -91
  43. package/dist/components/metric-card/MetricChart.js +29 -28
  44. package/package.json +1 -1
  45. package/dist/AnimatedTheme-jnasw6rT.js +0 -11305
@@ -1,14 +1,15 @@
1
- import { G as Zt, k as ve, l as de, R as xe, a as we, A as me } from "../../../AnimatedTheme-jnasw6rT.js";
2
- import { useThemeProps as ye, useTheme as be } from "@mui/material";
3
- import Ce from "dayjs";
4
- import Ae from "lodash";
5
- import { useId as Pe, useRef as ze, useEffect as _e } from "react";
6
- import { applyValueFormat as De, colorSetFromPalette as Ee } from "../_common/utils.js";
7
- import { e as Kt, z as ht, m as Te, a as lt, c as Ht, b as Vt } from "../../../ColorSet-C7vpNXhM.js";
8
- import { Z as ke } from "../../../ZoomableContainer-DYyqwaMb.js";
9
- import { H as Jt } from "../../../Hierarchy-Bihj0S61.js";
10
- import { c as K, g as Ne, a as Ie } from "../../../_commonjsHelpers-BVfed4GL.js";
11
- class pt extends Zt {
1
+ import { R as ve, T as de, A as xe } from "../../../AnimatedTheme-BOKdw2Oy.js";
2
+ import { useThemeProps as we, useTheme as me } from "@mui/material";
3
+ import ye from "dayjs";
4
+ import be from "lodash";
5
+ import { useId as Ce, useRef as Ae, useEffect as Pe } from "react";
6
+ import { applyValueFormat as _e, colorSetFromPalette as ze } from "../_common/utils.js";
7
+ import { e as Zt, y as ht, m as De, a as lt, c as Ht, b as Vt } from "../../../Entity-CCUIdRAr.js";
8
+ import { Z as Ee } from "../../../ZoomableContainer-Brs1wHM1.js";
9
+ import { H as Kt } from "../../../Hierarchy-CCvGsF1A.js";
10
+ import { G as Jt, a as Te, b as Ne } from "../../../Tooltip-A_HlttXp.js";
11
+ import { c as K, g as ke, a as Ie } from "../../../_commonjsHelpers-BVfed4GL.js";
12
+ class pt extends Jt {
12
13
  constructor() {
13
14
  super(...arguments), Object.defineProperty(this, "morphAnimation", {
14
15
  enumerable: !0,
@@ -20,7 +21,7 @@ class pt extends Zt {
20
21
  _beforeChanged() {
21
22
  if (super._beforeChanged(), this.isDirty("coordinates")) {
22
23
  const e = [], n = this.get("coordinates");
23
- n && Kt(n, (r) => {
24
+ n && Zt(n, (r) => {
24
25
  e.push({ x: r[0], y: r[1] });
25
26
  }), this.set("points", e);
26
27
  }
@@ -90,7 +91,7 @@ Object.defineProperty(pt, "classNames", {
90
91
  enumerable: !0,
91
92
  configurable: !0,
92
93
  writable: !0,
93
- value: Zt.classNames.concat([pt.className])
94
+ value: Jt.classNames.concat([pt.className])
94
95
  });
95
96
  function ft(t) {
96
97
  for (var e = -1, n = t.length, r, o = t[n - 1], u = 0; ++e < n; )
@@ -359,13 +360,13 @@ Pt.prototype.getDualPointMappedToPlane = function() {
359
360
  function Ue(t, e) {
360
361
  this.x = t, this.y = e;
361
362
  }
362
- function zt(t, e, n) {
363
+ function _t(t, e, n) {
363
364
  this.x = t, this.y = e, this.z = n;
364
365
  }
365
- zt.prototype.negate = function() {
366
+ _t.prototype.negate = function() {
366
367
  this.x *= -1, this.y *= -1, this.z *= -1;
367
368
  };
368
- zt.prototype.normalize = function() {
369
+ _t.prototype.normalize = function() {
369
370
  var t = Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);
370
371
  t > 0 && (this.x /= t, this.y /= t, this.z /= t);
371
372
  };
@@ -394,7 +395,7 @@ B.prototype = new Error();
394
395
  function V(t, e, n, r) {
395
396
  this.conflicts = new $(!0), this.verts = [t, e, n], this.marked = !1;
396
397
  var o = t.subtract(e).crossproduct(e.subtract(n));
397
- this.normal = new zt(-o.x, -o.y, -o.z), this.normal.normalize(), this.createEdges(), this.dualPoint = null, r != null && this.orient(r);
398
+ this.normal = new _t(-o.x, -o.y, -o.z), this.normal.normalize(), this.createEdges(), this.dualPoint = null, r != null && this.orient(r);
398
399
  }
399
400
  V.prototype.getDualPoint = function() {
400
401
  if (this.dualPoint == null) {
@@ -586,8 +587,8 @@ function Ze(t, e, n) {
586
587
  if (f[l.index] = !0, g.isDummy)
587
588
  continue;
588
589
  for (var p = Be(a), v = [], m = null, w = null, A = 1, P = 1, x = 0; x < p.length; x++) {
589
- var C = p[x].getDualPoint(), z = C.x, y = C.y;
590
- m !== null && (A = m - z, P = w - y, A < 0 && (A = -A), P < 0 && (P = -P)), (A > U || P > U) && (v.push([z, y]), m = z, w = y);
590
+ var C = p[x].getDualPoint(), _ = C.x, y = C.y;
591
+ m !== null && (A = m - _, P = w - y, A < 0 && (A = -A), P < 0 && (P = -P)), (A > U || P > U) && (v.push([_, y]), m = _, w = y);
591
592
  }
592
593
  if (g.nonClippedPolygon = v.reverse(), !g.isDummy && Re(g.nonClippedPolygon) > 0) {
593
594
  var b = $e(n, g.nonClippedPolygon);
@@ -669,13 +670,13 @@ function Ke() {
669
670
  return f;
670
671
  }
671
672
  function J() {
672
- this.growthChangesLength = oe, this.totalAvailableArea = NaN, this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangeWeights = _t(this.growthChangesLength), this.growthChangeWeightsSum = Dt(this.growthChangeWeights);
673
+ this.growthChangesLength = oe, this.totalAvailableArea = NaN, this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangeWeights = zt(this.growthChangesLength), this.growthChangeWeightsSum = Dt(this.growthChangeWeights);
673
674
  }
674
675
  var oe = 10;
675
676
  function Je(t, e) {
676
677
  return t >= e ? 1 : -1;
677
678
  }
678
- function _t(t) {
679
+ function zt(t) {
679
680
  for (var e = 3, n = 1, r = 1, o = e, u = [], f = 0; f < t; f++)
680
681
  u.push(o), o -= n, o < r && (o = r);
681
682
  return u;
@@ -686,13 +687,13 @@ function Dt(t) {
686
687
  return e;
687
688
  }
688
689
  J.prototype.reset = function() {
689
- return this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangesLength = oe, this.growthChangeWeights = _t(this.growthChangesLength), this.growthChangeWeightsSum = Dt(this.growthChangeWeights), this.totalAvailableArea = NaN, this;
690
+ return this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangesLength = oe, this.growthChangeWeights = zt(this.growthChangesLength), this.growthChangeWeightsSum = Dt(this.growthChangeWeights), this.totalAvailableArea = NaN, this;
690
691
  };
691
692
  J.prototype.clear = function() {
692
693
  return this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this;
693
694
  };
694
695
  J.prototype.length = function(t) {
695
- return arguments.length ? (parseInt(t) > 0 ? (this.growthChangesLength = Math.floor(parseInt(t)), this.growthChangeWeights = _t(this.growthChangesLength), this.growthChangeWeightsSum = Dt(this.growthChangeWeights)) : console.warn("FlickeringMitigation.length() accepts only positive integers; unable to handle " + t), this) : this.growthChangesLength;
696
+ return arguments.length ? (parseInt(t) > 0 ? (this.growthChangesLength = Math.floor(parseInt(t)), this.growthChangeWeights = zt(this.growthChangesLength), this.growthChangeWeightsSum = Dt(this.growthChangeWeights)) : console.warn("FlickeringMitigation.length() accepts only positive integers; unable to handle " + t), this) : this.growthChangesLength;
696
697
  };
697
698
  J.prototype.totalArea = function(t) {
698
699
  return arguments.length ? (parseFloat(t) > 0 ? this.totalAvailableArea = parseFloat(t) : console.warn("FlickeringMitigation.totalArea() accepts only positive numbers; unable to handle " + t), this) : this.totalAvailableArea;
@@ -741,7 +742,7 @@ tt.prototype = new Error();
741
742
  function $t(t) {
742
743
  var e = 0.01, n = 50, r = 0.01, o = Math.random, u = Qe(), f = tn(), h = 1e-10, i = function(d) {
743
744
  return d.weight;
744
- }, s = e, c = n, a = r, l = o, g = u, p = f, v = Ke(), m = new J(), w = !0, A, P, x, C, z, y, b, T, D, W = ie(Ft), R = re("tick", "end");
745
+ }, s = e, c = n, a = r, l = o, g = u, p = f, v = Ke(), m = new J(), w = !0, A, P, x, C, _, y, b, T, D, W = ie(Ft), R = re("tick", "end");
745
746
  const X = 1, j = 1e3;
746
747
  var S;
747
748
  function Y(d) {
@@ -793,7 +794,7 @@ function $t(t) {
793
794
  ended: T,
794
795
  iterationCount: C,
795
796
  convergenceRatio: y / P,
796
- polygons: z
797
+ polygons: _
797
798
  };
798
799
  },
799
800
  on: function(d, M) {
@@ -804,37 +805,37 @@ function $t(t) {
804
805
  Wt(), R.call("tick", D), T && (W.stop(), R.call("end", D));
805
806
  }
806
807
  function Wt() {
807
- T || (w && Rt(), z = le(z, m.ratio()), C++, y = ge(z), m.add(y), b = y < x, T = b || C >= c);
808
+ T || (w && Rt(), _ = le(_, m.ratio()), C++, y = ge(_), m.add(y), b = y < x, T = b || C >= c);
808
809
  }
809
810
  function Rt() {
810
- pe(), A = t.length, P = Math.abs(ft(v.clip())), x = s * P, m.clear().totalArea(P), C = 0, b = !1, z = ae(t, D), T = !1, w = !1;
811
+ pe(), A = t.length, P = Math.abs(ft(v.clip())), x = s * P, m.clear().totalArea(P), C = 0, b = !1, _ = ae(t, D), T = !1, w = !1;
811
812
  }
812
813
  function ae(d, M) {
813
- var I = d.reduce(function(N, O) {
814
- return Math.max(N, i(O));
815
- }, -1 / 0), E = I * a, _, k;
816
- return _ = d.map(function(N, O, F) {
814
+ var I = d.reduce(function(k, O) {
815
+ return Math.max(k, i(O));
816
+ }, -1 / 0), E = I * a, z, N;
817
+ return z = d.map(function(k, O, F) {
817
818
  return {
818
819
  index: O,
819
- weight: Math.max(i(N), E),
820
- initialPosition: g(N, O, F, M),
821
- initialWeight: p(N, O, F, M),
822
- originalData: N
820
+ weight: Math.max(i(k), E),
821
+ initialPosition: g(k, O, F, M),
822
+ initialWeight: p(k, O, F, M),
823
+ originalData: k
823
824
  };
824
- }), k = he(_, M), S(k), v(k);
825
+ }), N = he(z, M), S(N), v(N);
825
826
  }
826
827
  function he(d, M) {
827
- var I = d.reduce(function(_, k) {
828
- return _ += k.weight;
828
+ var I = d.reduce(function(z, N) {
829
+ return z += N.weight;
829
830
  }, 0), E;
830
- return d.map(function(_, k, N) {
831
- return E = _.initialPosition, Qt(v.clip(), E) || (E = u(_, k, N, M)), {
832
- index: _.index,
833
- targetedArea: P * _.weight / I,
834
- data: _,
831
+ return d.map(function(z, N, k) {
832
+ return E = z.initialPosition, Qt(v.clip(), E) || (E = u(z, N, k, M)), {
833
+ index: z.index,
834
+ targetedArea: P * z.weight / I,
835
+ data: z,
835
836
  x: E[0],
836
837
  y: E[1],
837
- weight: _.initialWeight
838
+ weight: z.initialWeight
838
839
  // ArlindNocaj/Voronoi-Treemap-Library uses an epsilonesque initial weight; using heavier initial weights allows faster weight adjustements, hence faster stabilization
839
840
  };
840
841
  });
@@ -852,21 +853,21 @@ function $t(t) {
852
853
  return d;
853
854
  }
854
855
  function ue(d, M) {
855
- var I = [], E = 0.5, _, k, N, O, F, L, H;
856
- _ = E * M, k = 1 - _;
856
+ var I = [], E = 0.5, z, N, k, O, F, L, H;
857
+ z = E * M, N = 1 - z;
857
858
  for (var mt = 0; mt < A; mt++)
858
- N = d[mt], O = N.site.originalObject, F = Me(N), L = F[0] - O.x, H = F[1] - O.y, L *= k, H *= k, O.x += L, O.y += H, I.push(O);
859
+ k = d[mt], O = k.site.originalObject, F = Me(k), L = F[0] - O.x, H = F[1] - O.y, L *= N, H *= N, O.x += L, O.y += H, I.push(O);
859
860
  S(I);
860
861
  }
861
862
  function fe(d, M) {
862
- var I = [], E = 0.1, _, k, N, O, F, L;
863
- _ = E * M;
863
+ var I = [], E = 0.1, z, N, k, O, F, L;
864
+ z = E * M;
864
865
  for (var H = 0; H < A; H++)
865
- k = d[H], N = k.site.originalObject, O = ft(k), F = N.targetedArea / O, F = Math.max(F, 1 - E + _), F = Math.min(F, 1 + E - _), L = N.weight * F, L = Math.max(L, h), N.weight = L, I.push(N);
866
+ N = d[H], k = N.site.originalObject, O = ft(N), F = k.targetedArea / O, F = Math.max(F, 1 - E + z), F = Math.min(F, 1 + E - z), L = k.weight * F, L = Math.max(L, h), k.weight = L, I.push(k);
866
867
  S(I);
867
868
  }
868
869
  function Lt(d) {
869
- var M = 0, I, E, _, k, N, O, F;
870
+ var M = 0, I, E, z, N, k, O, F;
870
871
  do {
871
872
  if (M > j)
872
873
  throw new tt("handleOverweighted0 is looping too much");
@@ -874,8 +875,8 @@ function $t(t) {
874
875
  for (var L = 0; L < A; L++) {
875
876
  E = d[L];
876
877
  for (var H = L + 1; H < A; H++)
877
- if (_ = d[H], E.weight > _.weight ? (k = E, N = _) : (k = _, N = E), O = Ot(E, _), O < k.weight - N.weight) {
878
- F = O + N.weight / 2, F = Math.max(F, h), k.weight = F, I = !0, M++;
878
+ if (z = d[H], E.weight > z.weight ? (N = E, k = z) : (N = z, k = E), O = Ot(E, z), O < N.weight - k.weight) {
879
+ F = O + k.weight / 2, F = Math.max(F, h), N.weight = F, I = !0, M++;
879
880
  break;
880
881
  }
881
882
  if (I)
@@ -884,7 +885,7 @@ function $t(t) {
884
885
  } while (I);
885
886
  }
886
887
  function ce(d) {
887
- var M = 0, I, E, _, k, N, O, F;
888
+ var M = 0, I, E, z, N, k, O, F;
888
889
  do {
889
890
  if (M > j)
890
891
  throw new tt("handleOverweighted1 is looping too much");
@@ -892,8 +893,8 @@ function $t(t) {
892
893
  for (var L = 0; L < A; L++) {
893
894
  E = d[L];
894
895
  for (var H = L + 1; H < A; H++)
895
- if (_ = d[H], E.weight > _.weight ? (k = E, N = _) : (k = _, N = E), O = Ot(E, _), O < k.weight - N.weight) {
896
- F = k.weight - N.weight - O, N.weight += F + h, I = !0, M++;
896
+ if (z = d[H], E.weight > z.weight ? (N = E, k = z) : (N = z, k = E), O = Ot(E, z), O < N.weight - k.weight) {
897
+ F = N.weight - k.weight - O, k.weight += F + h, I = !0, M++;
897
898
  break;
898
899
  }
899
900
  if (I)
@@ -902,8 +903,8 @@ function $t(t) {
902
903
  } while (I);
903
904
  }
904
905
  function ge(d) {
905
- for (var M = 0, I, E, _, k = 0; k < A; k++)
906
- I = d[k], E = I.site.originalObject, _ = ft(I), M += Math.abs(E.targetedArea - _);
906
+ for (var M = 0, I, E, z, N = 0; N < A; N++)
907
+ I = d[N], E = I.site.originalObject, z = ft(I), M += Math.abs(E.targetedArea - z);
907
908
  return M;
908
909
  }
909
910
  function pe() {
@@ -1047,8 +1048,8 @@ Tt.exports;
1047
1048
  t
1048
1049
  );
1049
1050
  })(Tt);
1050
- var rn = Tt.exports, kt = { exports: {} };
1051
- kt.exports;
1051
+ var rn = Tt.exports, Nt = { exports: {} };
1052
+ Nt.exports;
1052
1053
  (function(t) {
1053
1054
  (function(e, n, r) {
1054
1055
  function o(h) {
@@ -1081,9 +1082,9 @@ kt.exports;
1081
1082
  K,
1082
1083
  t
1083
1084
  );
1084
- })(kt);
1085
- var on = kt.exports, Nt = { exports: {} };
1086
- Nt.exports;
1085
+ })(Nt);
1086
+ var on = Nt.exports, kt = { exports: {} };
1087
+ kt.exports;
1087
1088
  (function(t) {
1088
1089
  (function(e, n, r) {
1089
1090
  function o(h) {
@@ -1128,8 +1129,8 @@ Nt.exports;
1128
1129
  K,
1129
1130
  t
1130
1131
  );
1131
- })(Nt);
1132
- var sn = Nt.exports, It = { exports: {} };
1132
+ })(kt);
1133
+ var sn = kt.exports, It = { exports: {} };
1133
1134
  It.exports;
1134
1135
  (function(t) {
1135
1136
  (function(e, n, r) {
@@ -1212,11 +1213,11 @@ var hn = Mt.exports, se = { exports: {} };
1212
1213
  const ln = {}, un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1213
1214
  __proto__: null,
1214
1215
  default: ln
1215
- }, Symbol.toStringTag, { value: "Module" })), fn = /* @__PURE__ */ Ne(un);
1216
+ }, Symbol.toStringTag, { value: "Module" })), fn = /* @__PURE__ */ ke(un);
1216
1217
  (function(t) {
1217
1218
  (function(e, n, r) {
1218
1219
  var o = 256, u = 6, f = 52, h = "random", i = r.pow(o, u), s = r.pow(2, f), c = s * 2, a = o - 1, l;
1219
- function g(x, C, z) {
1220
+ function g(x, C, _) {
1220
1221
  var y = [];
1221
1222
  C = C == !0 ? { entropy: !0 } : C || {};
1222
1223
  var b = w(m(
@@ -1233,7 +1234,7 @@ const ln = {}, un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1233
1234
  return T.g(4) | 0;
1234
1235
  }, D.quick = function() {
1235
1236
  return T.g(4) / 4294967296;
1236
- }, D.double = D, w(P(T.S), n), (C.pass || z || function(W, R, X, j) {
1237
+ }, D.double = D, w(P(T.S), n), (C.pass || _ || function(W, R, X, j) {
1237
1238
  return j && (j.S && v(j, T), W.state = function() {
1238
1239
  return v(T, {});
1239
1240
  }), X ? (r[h] = W, R) : W;
@@ -1245,11 +1246,11 @@ const ln = {}, un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1245
1246
  );
1246
1247
  }
1247
1248
  function p(x) {
1248
- var C, z = x.length, y = this, b = 0, T = y.i = y.j = 0, D = y.S = [];
1249
- for (z || (x = [z++]); b < o; )
1249
+ var C, _ = x.length, y = this, b = 0, T = y.i = y.j = 0, D = y.S = [];
1250
+ for (_ || (x = [_++]); b < o; )
1250
1251
  D[b] = b++;
1251
1252
  for (b = 0; b < o; b++)
1252
- D[b] = D[T = a & T + x[b % z] + (C = D[b])], D[T] = C;
1253
+ D[b] = D[T = a & T + x[b % _] + (C = D[b])], D[T] = C;
1253
1254
  (y.g = function(W) {
1254
1255
  for (var R, X = 0, j = y.i, S = y.j, Y = y.S; W--; )
1255
1256
  R = Y[j = a & j + 1], X = X * o + Y[a & (Y[j] = Y[S = a & S + R]) + (Y[S] = R)];
@@ -1260,18 +1261,18 @@ const ln = {}, un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1260
1261
  return C.i = x.i, C.j = x.j, C.S = x.S.slice(), C;
1261
1262
  }
1262
1263
  function m(x, C) {
1263
- var z = [], y = typeof x, b;
1264
+ var _ = [], y = typeof x, b;
1264
1265
  if (C && y == "object")
1265
1266
  for (b in x)
1266
1267
  try {
1267
- z.push(m(x[b], C - 1));
1268
+ _.push(m(x[b], C - 1));
1268
1269
  } catch {
1269
1270
  }
1270
- return z.length ? z : y == "string" ? x : x + "\0";
1271
+ return _.length ? _ : y == "string" ? x : x + "\0";
1271
1272
  }
1272
1273
  function w(x, C) {
1273
- for (var z = x + "", y, b = 0; b < z.length; )
1274
- C[a & b] = a & (y ^= C[a & b] * 19) + z.charCodeAt(b++);
1274
+ for (var _ = x + "", y, b = 0; b < _.length; )
1275
+ C[a & b] = a & (y ^= C[a & b] * 19) + _.charCodeAt(b++);
1275
1276
  return P(C);
1276
1277
  }
1277
1278
  function A() {
@@ -1279,8 +1280,8 @@ const ln = {}, un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1279
1280
  var x;
1280
1281
  return l && (x = l.randomBytes) ? x = x(o) : (x = new Uint8Array(o), (e.crypto || e.msCrypto).getRandomValues(x)), P(x);
1281
1282
  } catch {
1282
- var C = e.navigator, z = C && C.plugins;
1283
- return [+/* @__PURE__ */ new Date(), e, z, e.screen, P(n)];
1283
+ var C = e.navigator, _ = C && C.plugins;
1284
+ return [+/* @__PURE__ */ new Date(), e, _, e.screen, P(n)];
1284
1285
  }
1285
1286
  }
1286
1287
  function P(x) {
@@ -1313,7 +1314,7 @@ Q.xor4096 = xn;
1313
1314
  Q.tychei = wn;
1314
1315
  var mn = Q;
1315
1316
  const Bt = /* @__PURE__ */ Ie(mn);
1316
- class xt extends Jt {
1317
+ class xt extends Kt {
1317
1318
  constructor() {
1318
1319
  super(...arguments), Object.defineProperty(this, "_tag", {
1319
1320
  enumerable: !0,
@@ -1324,8 +1325,8 @@ class xt extends Jt {
1324
1325
  enumerable: !0,
1325
1326
  configurable: !0,
1326
1327
  writable: !0,
1327
- value: this.addDisposer(new ve(de.new({}), () => pt._new(this._root, {
1328
- themeTags: Te(this.polygons.template.get("themeTags", []), [this._tag, "shape"])
1328
+ value: this.addDisposer(new Te(Ne.new({}), () => pt._new(this._root, {
1329
+ themeTags: De(this.polygons.template.get("themeTags", []), [this._tag, "shape"])
1329
1330
  }, [this.polygons.template])))
1330
1331
  }), Object.defineProperty(this, "voronoi", {
1331
1332
  enumerable: !0,
@@ -1378,7 +1379,7 @@ class xt extends Jt {
1378
1379
  const n = e.get("parent");
1379
1380
  if (n) {
1380
1381
  const r = n.get("children");
1381
- r && Kt(r, (o) => {
1382
+ r && Zt(r, (o) => {
1382
1383
  o != e && (this.disableDataItem(o), o.get("node").hide());
1383
1384
  }), this._handleSingle(n);
1384
1385
  }
@@ -1413,10 +1414,10 @@ Object.defineProperty(xt, "classNames", {
1413
1414
  enumerable: !0,
1414
1415
  configurable: !0,
1415
1416
  writable: !0,
1416
- value: Jt.classNames.concat([xt.className])
1417
+ value: Kt.classNames.concat([xt.className])
1417
1418
  });
1418
1419
  const kn = (t) => {
1419
- const e = ye({
1420
+ const e = we({
1420
1421
  props: t,
1421
1422
  name: "HCDrillDownVoronoiTreemap"
1422
1423
  }), {
@@ -1427,16 +1428,16 @@ const kn = (t) => {
1427
1428
  colors: f,
1428
1429
  sx: h,
1429
1430
  ...i
1430
- } = e, s = be(), a = `hc-drill-down-voronoi-treemap-${Pe().replace(/:/g, "")}`, l = ze(null);
1431
+ } = e, s = me(), a = `hc-drill-down-voronoi-treemap-${Ce().replace(/:/g, "")}`, l = Ae(null);
1431
1432
  let g = null;
1432
- n.length < 2 ? g = "DrillDownVoronoiTreemap requires at least 2 dimensions" : r.length < 1 && (g = "DrillDownVoronoiTreemap requires at least 1 value"), _e(() => {
1433
+ n.length < 2 ? g = "DrillDownVoronoiTreemap requires at least 2 dimensions" : r.length < 1 && (g = "DrillDownVoronoiTreemap requires at least 1 value"), Pe(() => {
1433
1434
  if (g) return;
1434
1435
  let v;
1435
1436
  return v = setTimeout(() => {
1436
1437
  var C;
1437
- const m = xe.new(a);
1438
- l.current = m, De(m, (C = r == null ? void 0 : r[0]) == null ? void 0 : C.format);
1439
- const w = we.new(m);
1438
+ const m = ve.new(a);
1439
+ l.current = m, _e(m, (C = r == null ? void 0 : r[0]) == null ? void 0 : C.format);
1440
+ const w = de.new(m);
1440
1441
  w.rule("Polygon", ["hierarchy", "node", "shape", "depth0"]).setAll({ strokeOpacity: 0, fillOpacity: 0 }), w.rule("Polygon", ["hierarchy", "node", "shape", "depth1"]).setAll({
1441
1442
  strokeWidth: 5,
1442
1443
  fillOpacity: 1,
@@ -1445,9 +1446,9 @@ const kn = (t) => {
1445
1446
  fillOpacity: 0,
1446
1447
  strokeWidth: 1,
1447
1448
  stroke: Ht(0)
1448
- }), w.rule("HierarchyNode", ["last"]).setAll({ cursorOverStyle: "pointer" }), w.rule("Label", ["node"]).setAll({ fontSize: 11, minScale: 0.7 }), w.rule("Label", ["node", "depth0"]).setAll({ forceHidden: !0 }), w.rule("Label", ["node", "depth1"]).setAll({ forceHidden: !0 }), m.setThemes([me.new(m), w]);
1449
+ }), w.rule("HierarchyNode", ["last"]).setAll({ cursorOverStyle: "pointer" }), w.rule("Label", ["node"]).setAll({ fontSize: 11, minScale: 0.7 }), w.rule("Label", ["node", "depth0"]).setAll({ forceHidden: !0 }), w.rule("Label", ["node", "depth1"]).setAll({ forceHidden: !0 }), m.setThemes([xe.new(m), w]);
1449
1450
  const P = m.container.children.push(
1450
- ke.new(m, {
1451
+ Ee.new(m, {
1451
1452
  width: Vt,
1452
1453
  height: Vt,
1453
1454
  wheelable: !0,
@@ -1471,7 +1472,7 @@ const kn = (t) => {
1471
1472
  cornerCount: 120
1472
1473
  })
1473
1474
  );
1474
- P.set("colors", Ee(m, f)), P.labels.template.adapters.add("x", function(z, y) {
1475
+ P.set("colors", ze(m, f)), P.labels.template.adapters.add("x", function(_, y) {
1475
1476
  const b = y.dataItem;
1476
1477
  if (b) {
1477
1478
  const T = b.get("polygon");
@@ -1480,24 +1481,24 @@ const kn = (t) => {
1480
1481
  R && (W - D < 50 ? y.set("text", R.id) : y.set("text", R.name));
1481
1482
  }
1482
1483
  }
1483
- return z;
1484
- }), P.nodes.template.events.on("click", function(z) {
1485
- const y = z.target.dataItem;
1484
+ return _;
1485
+ }), P.nodes.template.events.on("click", function(_) {
1486
+ const y = _.target.dataItem;
1486
1487
  y && (y.get("children") || P.selectDataItem(y.get("parent")));
1487
1488
  });
1488
- const x = (z, y, b) => {
1489
- if (z === "date") {
1489
+ const x = (_, y, b) => {
1490
+ if (_ === "date") {
1490
1491
  let T = "YYYY";
1491
- return y.includes("month") ? T = "MMM YYYY" : y.includes("day") && (T = "DD MMM YYYY"), Ce(b).format(T);
1492
+ return y.includes("month") ? T = "MMM YYYY" : y.includes("day") && (T = "DD MMM YYYY"), ye(b).format(T);
1492
1493
  }
1493
1494
  return b;
1494
1495
  };
1495
1496
  if (n.length > 1) {
1496
- const z = Ae.groupBy(o, n[0].value), y = [];
1497
- Object.keys(z).forEach((b) => {
1497
+ const _ = be.groupBy(o, n[0].value), y = [];
1498
+ Object.keys(_).forEach((b) => {
1498
1499
  y.push({
1499
1500
  name: x(n[0].type, n[0].value, b),
1500
- children: z[b].map((T) => ({
1501
+ children: _[b].map((T) => ({
1501
1502
  name: x(
1502
1503
  n[1].type,
1503
1504
  n[1].value,
@@ -1,16 +1,17 @@
1
- import { C as L, L as E, k as J, l as K, T as W, R as Q, A as Z } from "../../../AnimatedTheme-jnasw6rT.js";
2
- import { useThemeProps as ee, useTheme as te } from "@mui/material";
3
- import re from "dayjs";
1
+ import { R as J, A as K } from "../../../AnimatedTheme-BOKdw2Oy.js";
2
+ import { useThemeProps as Q, useTheme as Z } from "@mui/material";
3
+ import ee from "dayjs";
4
4
  import T from "lodash";
5
- import { useId as ae, useRef as ie, useEffect as se } from "react";
6
- import { applyValueFormat as oe, colorSetFromPalette as ne } from "../_common/utils.js";
7
- import { m as S, f as le, u as U, b as u, p as P, c as Y } from "../../../ColorSet-C7vpNXhM.js";
8
- import { X as he } from "../../../AxisRenderer-DTyLLA6c.js";
9
- import { A as ce, a as ue } from "../../../AxisRendererY-C_ItLPNV.js";
10
- import { C as R } from "../../../CategoryAxis-CwnfaGc8.js";
11
- import { R as de } from "../../../RoundedRectangle-CWLi2PXn.js";
12
- import { L as me } from "../../../LinearGradient-DiRq5YcI.js";
13
- import { C as pe } from "../../../ColumnSeries-CjgdJ2QL.js";
5
+ import { useId as te, useRef as re, useEffect as ae } from "react";
6
+ import { applyValueFormat as ie, colorSetFromPalette as se } from "../_common/utils.js";
7
+ import { m as E, f as oe, C as S, b as u, p as P, c as Y } from "../../../Entity-CCUIdRAr.js";
8
+ import { X as ne } from "../../../AxisRenderer-lUbezuh7.js";
9
+ import { A as le, a as he } from "../../../AxisRendererY-DbSiyb45.js";
10
+ import { C as R } from "../../../CategoryAxis-B8KQp1pE.js";
11
+ import { C as L, L as U, a as ce, b as ue, T as W } from "../../../Tooltip-A_HlttXp.js";
12
+ import { R as de } from "../../../RoundedRectangle-CqMMmPM0.js";
13
+ import { L as me } from "../../../LinearGradient-C7rnipF7.js";
14
+ import { C as pe } from "../../../ColumnSeries-rgnGm-Bg.js";
14
15
  class _ extends L {
15
16
  constructor() {
16
17
  super(...arguments), Object.defineProperty(this, "labelContainer", {
@@ -27,23 +28,23 @@ class _ extends L {
27
28
  enumerable: !0,
28
29
  configurable: !0,
29
30
  writable: !0,
30
- value: this.labelContainer.children.push(E.new(this._root, { themeTags: ["start"] }))
31
+ value: this.labelContainer.children.push(U.new(this._root, { themeTags: ["start"] }))
31
32
  }), Object.defineProperty(this, "endLabel", {
32
33
  enumerable: !0,
33
34
  configurable: !0,
34
35
  writable: !0,
35
- value: this.labelContainer.children.push(E.new(this._root, { themeTags: ["end"] }))
36
+ value: this.labelContainer.children.push(U.new(this._root, { themeTags: ["end"] }))
36
37
  }), Object.defineProperty(this, "markers", {
37
38
  enumerable: !0,
38
39
  configurable: !0,
39
40
  writable: !0,
40
- value: this.addDisposer(new J(K.new({}), () => de._new(this._root, {
41
- themeTags: S(this.markers.template.get("themeTags", []), [this.get("orientation"), "heatlegend", "marker"])
41
+ value: this.addDisposer(new ce(ue.new({}), () => de._new(this._root, {
42
+ themeTags: E(this.markers.template.get("themeTags", []), [this.get("orientation"), "heatlegend", "marker"])
42
43
  }, [this.markers.template])))
43
44
  });
44
45
  }
45
46
  _afterNew() {
46
- this._settings.themeTags = S(this._settings.themeTags, ["heatlegend", this._settings.orientation]), super._afterNew(), this.set("tooltip", W.new(this._root, {
47
+ this._settings.themeTags = E(this._settings.themeTags, ["heatlegend", this._settings.orientation]), super._afterNew(), this.set("tooltip", W.new(this._root, {
47
48
  themeTags: ["heatlegend"]
48
49
  }));
49
50
  }
@@ -65,12 +66,12 @@ class _ extends L {
65
66
  */
66
67
  showValue(s, a, t) {
67
68
  const i = this.getTooltip();
68
- if (i && le(s)) {
69
+ if (i && oe(s)) {
69
70
  const d = this.get("startValue", 0), o = this.get("endValue", 1);
70
71
  let r = (s - d) / (o - d);
71
72
  (r == 1 / 0 || r == -1 / 0 || isNaN(r)) && (r = 0.5);
72
73
  const f = this.get("startColor"), y = this.get("endColor");
73
- a || (a = this.getNumberFormatter().format(s)), t || (t = U.interpolate(r, f, y)), i.label.set("text", a);
74
+ a || (a = this.getNumberFormatter().format(s)), t || (t = S.interpolate(r, f, y)), i.label.set("text", a);
74
75
  let n;
75
76
  this.get("orientation") == "vertical" ? n = this.markerContainer.toGlobal({ x: 0, y: this.innerHeight() * (1 - r) }) : n = this.markerContainer.toGlobal({ x: this.innerWidth() * r, y: 0 });
76
77
  let l = i.get("background");
@@ -86,7 +87,7 @@ class _ extends L {
86
87
  for (let l = 0; l < o; l++) {
87
88
  const h = this.makeMarker();
88
89
  a == "vertical" ? this.markerContainer.children.moveValue(h, 0) : this.markerContainer.children.push(h), r && f && h.setAll({
89
- fill: U.interpolate(l / o, r, f),
90
+ fill: S.interpolate(l / o, r, f),
90
91
  fillOpacity: P(l / o * 100).interpolate(y, n)
91
92
  });
92
93
  }
@@ -126,8 +127,8 @@ Object.defineProperty(_, "classNames", {
126
127
  writable: !0,
127
128
  value: L.classNames.concat([_.className])
128
129
  });
129
- const _e = (X) => {
130
- const s = ee({ props: X, name: "HCHeatmap" }), {
130
+ const De = (X) => {
131
+ const s = Q({ props: X, name: "HCHeatmap" }), {
131
132
  dimensions: a,
132
133
  values: t,
133
134
  data: i,
@@ -136,21 +137,21 @@ const _e = (X) => {
136
137
  colors: r,
137
138
  sx: f,
138
139
  ...y
139
- } = s, n = te(), h = `hc-heatmap-${ae().replace(/:/g, "")}`, b = ie(null);
140
+ } = s, n = Z(), h = `hc-heatmap-${te().replace(/:/g, "")}`, b = re(null);
140
141
  let x = null;
141
- a.length < 2 ? x = "Heatmap requires at least 2 dimensions" : t.length < 1 && (x = "Heatmap requires at least 1 value"), se(() => {
142
+ a.length < 2 ? x = "Heatmap requires at least 2 dimensions" : t.length < 1 && (x = "Heatmap requires at least 1 value"), ae(() => {
142
143
  if (x) return;
143
144
  let D;
144
145
  return D = setTimeout(() => {
145
146
  var j, M, G;
146
- const e = Q.new(h);
147
- b.current = e, oe(e, (j = t == null ? void 0 : t[0]) == null ? void 0 : j.format), e.setThemes([Z.new(e)]), e.interfaceColors.setAll({
147
+ const e = J.new(h);
148
+ b.current = e, ie(e, (j = t == null ? void 0 : t[0]) == null ? void 0 : j.format), e.setThemes([K.new(e)]), e.interfaceColors.setAll({
148
149
  text: Y(n.palette.text.primary),
149
150
  grid: Y(n.palette.divider),
150
151
  stroke: Y(n.palette.divider)
151
152
  });
152
153
  const m = e.container.children.push(
153
- he.new(e, {
154
+ ne.new(e, {
154
155
  panX: !1,
155
156
  panY: !1,
156
157
  wheelX: "none",
@@ -158,8 +159,8 @@ const _e = (X) => {
158
159
  layout: e.verticalLayout
159
160
  })
160
161
  );
161
- m.set("colors", ne(e, r));
162
- const O = ce.new(e, {
162
+ m.set("colors", se(e, r));
163
+ const O = le.new(e, {
163
164
  visible: !1,
164
165
  minGridDistance: 30
165
166
  });
@@ -176,7 +177,7 @@ const _e = (X) => {
176
177
  })
177
178
  ), v = T.orderBy(i, [c.value]), v = v.map((w) => ({
178
179
  ...w,
179
- [c.value]: re(w[c.value]).format(C)
180
+ [c.value]: ee(w[c.value]).format(C)
180
181
  }));
181
182
  } else
182
183
  k = m.xAxes.push(
@@ -188,7 +189,7 @@ const _e = (X) => {
188
189
  );
189
190
  const H = T.uniqBy(v, c.value);
190
191
  if (k.data.setAll(H), t.length === 1 && a.length > 1) {
191
- const p = a[1].value, C = ue.new(e, {
192
+ const p = a[1].value, C = he.new(e, {
192
193
  visible: !1,
193
194
  minGridDistance: 20,
194
195
  inversed: !0
@@ -264,5 +265,5 @@ const _e = (X) => {
264
265
  return { chartId: h, ownerState: $, sx: f, error: x, other: y };
265
266
  };
266
267
  export {
267
- _e as useHeatmapLogic
268
+ De as useHeatmapLogic
268
269
  };