@hybridcore/ui 1.6.8 → 1.6.10

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 (47) hide show
  1. package/dist/AnimatedTheme-ktdO3Bel.js +7708 -0
  2. package/dist/{AxisRenderer-DTyLLA6c.js → AxisRenderer-BCQoUJw6.js} +51 -49
  3. package/dist/{AxisRendererY-C_ItLPNV.js → AxisRendererY-AXWvGU6r.js} +3 -3
  4. package/dist/{Bullet-DVczI2TD.js → Bullet-Djj7Vs9T.js} +1 -1
  5. package/dist/{Button-CcsPEIDh.js → Button-BLY4PVJC.js} +3 -3
  6. package/dist/{CategoryAxis-CwnfaGc8.js → CategoryAxis-B6NqW8qd.js} +3 -3
  7. package/dist/{Circle-Cy5s-pVc.js → Circle-BnfBNKBD.js} +1 -1
  8. package/dist/ColorSet-cyPmWGwh.js +77 -0
  9. package/dist/{ColumnSeries-CjgdJ2QL.js → ColumnSeries-CtRTsn-E.js} +4 -4
  10. package/dist/{DateAxis-YX3QNIB-.js → DateAxis-DEXKps1S.js} +8 -7
  11. package/dist/{ColorSet-C7vpNXhM.js → Entity-BJCuhdq_.js} +638 -712
  12. package/dist/GaplessDateAxis-B2g2jgSG.js +376 -0
  13. package/dist/{Hierarchy-Bihj0S61.js → Hierarchy-CEOK8Gzh.js} +21 -19
  14. package/dist/{Legend-Dp_MKfS4.js → Legend-CFvQiIfn.js} +11 -10
  15. package/dist/{LineSeries-Uiv5o56b.js → LineSeries-D_IL2qGF.js} +13 -12
  16. package/dist/{LinearGradient-DiRq5YcI.js → LinearGradient-CxQyCSEB.js} +11 -11
  17. package/dist/{PieSeries-B2fW3z0s.js → PieSeries-CMH0Z7pz.js} +34 -32
  18. package/dist/{RoundedRectangle-CWLi2PXn.js → RoundedRectangle-BKLX1LKM.js} +4 -4
  19. package/dist/{Scrollbar-D86MJyr2.js → Scrollbar-CTI7_8Qw.js} +4 -4
  20. package/dist/{Slice-B19rbYDZ.js → Slice-BUncQh1B.js} +2 -2
  21. package/dist/{Tick-2bcLyHpF.js → Tick--VhF0xlz.js} +15 -15
  22. package/dist/Tooltip-vyZRZWih.js +3606 -0
  23. package/dist/{XYCursor-C8WktvKM.js → XYCursor-CVUSpqb9.js} +3 -3
  24. package/dist/{ZoomableContainer-DYyqwaMb.js → ZoomableContainer-Ca_pDVYQ.js} +7 -7
  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 +191 -164
  28. package/dist/components/charts/column-line-mix/logic.js +116 -107
  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 +147 -185
  35. package/dist/components/charts/logaritmic-scale/logic.js +99 -84
  36. package/dist/components/charts/multiple-value-axes/logic.js +117 -107
  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 +112 -98
  43. package/dist/components/metric-card/MetricChart.js +29 -28
  44. package/dist/main.d.ts +13 -0
  45. package/package.json +1 -1
  46. package/dist/AnimatedTheme-jnasw6rT.js +0 -11305
  47. package/dist/DataProcessor-CHDO51q4.js +0 -83
@@ -1,113 +1,128 @@
1
- import { R as C, A as R, T as u } from "../../../AnimatedTheme-jnasw6rT.js";
2
- import { useThemeProps as I, useTheme as E } from "@mui/material";
1
+ import { R as Y, A as R } from "../../../AnimatedTheme-ktdO3Bel.js";
2
+ import { useThemeProps as E, useTheme as I } from "@mui/material";
3
3
  import F from "lodash";
4
- import { useId as O, useRef as P, useEffect as V } from "react";
5
- import { colorSetFromPalette as q, applyValueFormat as B } from "../_common/utils.js";
6
- import { c as i } from "../../../ColorSet-C7vpNXhM.js";
7
- import { X as z, V as G } from "../../../AxisRenderer-DTyLLA6c.js";
8
- import { X as H } from "../../../XYCursor-C8WktvKM.js";
9
- import { D as N } from "../../../DateAxis-YX3QNIB-.js";
10
- import { A as X, a as U } from "../../../AxisRendererY-C_ItLPNV.js";
11
- import { C as W } from "../../../CategoryAxis-CwnfaGc8.js";
12
- import { L as Z } from "../../../LineSeries-Uiv5o56b.js";
13
- import { D as _ } from "../../../DataProcessor-CHDO51q4.js";
14
- import { S as $ } from "../../../Scrollbar-D86MJyr2.js";
15
- const ce = (b) => {
16
- const f = I({ props: b, name: "HCLogaritmicScale" }), {
4
+ import { useId as G, useRef as O, useEffect as P } from "react";
5
+ import { humanizeLabel as V } from "../_common/format.js";
6
+ import { attachCombinedAxisTooltip as q } from "../_common/tooltip.js";
7
+ import { colorSetFromPalette as z, applyValueFormat as B } from "../_common/utils.js";
8
+ import { c as i } from "../../../Entity-BJCuhdq_.js";
9
+ import { X as H, V as N } from "../../../AxisRenderer-BCQoUJw6.js";
10
+ import { X as U } from "../../../XYCursor-CVUSpqb9.js";
11
+ import { A as X, a as W } from "../../../AxisRendererY-AXWvGU6r.js";
12
+ import { C as Z } from "../../../CategoryAxis-B6NqW8qd.js";
13
+ import { L as _ } from "../../../LineSeries-D_IL2qGF.js";
14
+ import { D as $, G as j } from "../../../GaplessDateAxis-B2g2jgSG.js";
15
+ import { S as J } from "../../../Scrollbar-CTI7_8Qw.js";
16
+ import { D as K } from "../../../DateAxis-DEXKps1S.js";
17
+ const Ae = (k) => {
18
+ const f = E({ props: k, name: "HCLogaritmicScale" }), {
17
19
  dimensions: t,
18
- values: a,
19
- data: l,
20
- initDelay: k = 0,
21
- baseInterval: S,
22
- colors: h,
23
- sx: T,
24
- ...D
25
- } = f, o = E(), g = `hc-logaritmic-scale-${O().replace(/:/g, "")}`, c = P(null);
26
- let n = null;
27
- t.length < 1 ? n = "LogaritmicScale requires at least 1 dimension" : a.length < 1 && (n = "LogaritmicScale requires at least 1 value"), V(() => {
28
- if (n) return;
29
- let d;
30
- return d = setTimeout(() => {
31
- var v, w, x, y;
32
- const e = C.new(g);
33
- c.current = e, e.setThemes([R.new(e)]), e.interfaceColors.setAll({
34
- text: i(o.palette.text.primary),
35
- grid: i(o.palette.divider),
36
- stroke: i(o.palette.divider)
20
+ values: s,
21
+ data: n,
22
+ initDelay: S = 0,
23
+ baseInterval: h,
24
+ colors: A,
25
+ skipEmptyDates: x = !1,
26
+ sx: C,
27
+ ...L
28
+ } = f, a = I(), g = `hc-logaritmic-scale-${G().replace(/:/g, "")}`, d = O(null);
29
+ let m = null;
30
+ t.length < 1 ? m = "LogaritmicScale requires at least 1 dimension" : s.length < 1 && (m = "LogaritmicScale requires at least 1 value"), P(() => {
31
+ if (m) return;
32
+ let u;
33
+ return u = setTimeout(() => {
34
+ var v, w, D, b;
35
+ const e = Y.new(g);
36
+ d.current = e, e.setThemes([R.new(e)]), e.interfaceColors.setAll({
37
+ text: i(a.palette.text.primary),
38
+ grid: i(a.palette.divider),
39
+ stroke: i(a.palette.divider)
37
40
  });
38
41
  const r = e.container.children.push(
39
- z.new(e, {
42
+ H.new(e, {
40
43
  panX: !0,
41
44
  panY: !0,
42
45
  wheelX: "none",
43
46
  wheelY: "none",
47
+ maxTooltipDistance: -1,
44
48
  pinchZoomX: !0
45
49
  })
46
50
  );
47
- r.set("colors", q(e, h)), r.set(
51
+ r.set("colors", z(e, A)), r.set(
48
52
  "cursor",
49
- H.new(e, { behavior: "none" })
53
+ U.new(e, { behavior: "none" })
50
54
  ).lineY.set("visible", !1);
51
- let s, m = l;
52
- t[0].type === "date" ? (m = F.orderBy(l, [t[0].value]), s = r.xAxes.push(
55
+ let o, p = n;
56
+ if (t[0].type === "date") {
57
+ p = F.orderBy(n, [t[0].value]);
58
+ const l = x ? j : K;
59
+ o = r.xAxes.push(
60
+ l.new(e, {
61
+ maxDeviation: 0.1,
62
+ groupData: !1,
63
+ baseInterval: h || { timeUnit: "day", count: 1 },
64
+ renderer: X.new(e, {})
65
+ })
66
+ ), (v = o.get("renderer")) == null || v.grid.template.setAll({
67
+ stroke: i(a.palette.divider),
68
+ strokeOpacity: 1
69
+ });
70
+ } else
71
+ o = r.xAxes.push(
72
+ Z.new(e, {
73
+ categoryField: t[0].value,
74
+ renderer: X.new(e, {})
75
+ })
76
+ ), e.numberFormatter.setAll({
77
+ numberFormat: "#",
78
+ numericFields: ["valueX"]
79
+ }), p = F.orderBy(n, [t[0].value]), o.data.setAll(p), (w = o.get("renderer")) == null || w.grid.template.setAll({
80
+ stroke: i(a.palette.divider),
81
+ strokeOpacity: 1
82
+ });
83
+ const y = r.yAxes.push(
53
84
  N.new(e, {
54
- maxDeviation: 0.1,
55
- groupData: !1,
56
- baseInterval: S || { timeUnit: "day", count: 1 },
57
- renderer: X.new(e, {}),
58
- tooltip: u.new(e, {})
59
- })
60
- ), (v = s.get("renderer")) == null || v.grid.template.setAll({
61
- stroke: i(o.palette.divider),
62
- strokeOpacity: 1
63
- })) : (s = r.xAxes.push(
64
- W.new(e, {
65
- categoryField: t[0].value,
66
- renderer: X.new(e, {}),
67
- tooltip: u.new(e, {})
68
- })
69
- ), e.numberFormatter.setAll({
70
- numberFormat: "#",
71
- numericFields: ["valueX"]
72
- }), m = F.orderBy(l, [t[0].value]), s.data.setAll(m), (w = s.get("renderer")) == null || w.grid.template.setAll({
73
- stroke: i(o.palette.divider),
74
- strokeOpacity: 1
75
- }));
76
- const A = r.yAxes.push(
77
- G.new(e, {
78
85
  logarithmic: !0,
79
- renderer: U.new(e, { minorGridEnabled: !0 })
86
+ renderer: W.new(e, { minorGridEnabled: !0 })
80
87
  })
81
88
  );
82
- (x = A.get("renderer")) == null || x.grid.template.setAll({
83
- stroke: i(o.palette.divider),
89
+ (D = y.get("renderer")) == null || D.grid.template.setAll({
90
+ stroke: i(a.palette.divider),
84
91
  strokeOpacity: 1
85
- }), a.forEach((L) => {
86
- const p = r.series.push(
87
- Z.new(e, {
88
- xAxis: s,
89
- yAxis: A,
90
- valueYField: L.dataFieldName,
91
- ...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value },
92
- tooltip: u.new(e, { labelText: "{valueY}" })
92
+ }), s.forEach((l) => {
93
+ const c = r.series.push(
94
+ _.new(e, {
95
+ name: l.label ?? V(l.name),
96
+ xAxis: o,
97
+ yAxis: y,
98
+ valueYField: l.dataFieldName,
99
+ ...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
93
100
  })
94
101
  );
95
- p.strokes.template.setAll({ strokeWidth: 3 }), t[0].type === "date" && (p.data.processor = _.new(e, {
102
+ c.strokes.template.setAll({ strokeWidth: 3 }), t[0].type === "date" && (c.data.processor = $.new(e, {
96
103
  dateFormat: "i",
97
104
  dateFields: [t[0].value]
98
- })), p.data.setAll(m), p.appear(1e3);
105
+ })), c.data.setAll(p), c.appear(1e3);
106
+ }), q({
107
+ root: e,
108
+ chart: r,
109
+ xAxis: o,
110
+ theme: a,
111
+ isDateAxis: t[0].type === "date",
112
+ baseInterval: h,
113
+ follow: !0
99
114
  }), r.set(
100
115
  "scrollbarX",
101
- $.new(e, { orientation: "horizontal" })
102
- ), B(e, (y = a == null ? void 0 : a[0]) == null ? void 0 : y.format), r.appear(1e3, 100);
103
- }, k), () => {
116
+ J.new(e, { orientation: "horizontal" })
117
+ ), B(e, (b = s == null ? void 0 : s[0]) == null ? void 0 : b.format), r.appear(1e3, 100);
118
+ }, S), () => {
104
119
  var e;
105
- d && clearTimeout(d), (e = c.current) == null || e.dispose(), c.current = null;
120
+ u && clearTimeout(u), (e = d.current) == null || e.dispose(), d.current = null;
106
121
  };
107
- }, [l, t, a, o.palette.mode, h]);
108
- const Y = { ...f };
109
- return { chartId: g, ownerState: Y, sx: T, error: n, other: D };
122
+ }, [n, t, s, a.palette.mode, A, x]);
123
+ const T = { ...f };
124
+ return { chartId: g, ownerState: T, sx: C, error: m, other: L };
110
125
  };
111
126
  export {
112
- ce as useLogaritmicScaleLogic
127
+ Ae as useLogaritmicScaleLogic
113
128
  };
@@ -1,21 +1,23 @@
1
- import { G as X, R as j, A as z, T, b as q } from "../../../AnimatedTheme-jnasw6rT.js";
2
- import { useThemeProps as U, useTheme as $ } from "@mui/material";
3
- import C from "lodash";
4
- import { useId as H, useRef as J, useEffect as K } from "react";
5
- import { humanizeLabel as F } from "../_common/format.js";
1
+ import { R as j, A as q } from "../../../AnimatedTheme-ktdO3Bel.js";
2
+ import { useThemeProps as z, useTheme as U } from "@mui/material";
3
+ import D from "lodash";
4
+ import { useId as H, useRef as $, useEffect as J } from "react";
5
+ import { humanizeLabel as P } from "../_common/format.js";
6
+ import { attachCombinedAxisTooltip as K } from "../_common/tooltip.js";
6
7
  import { colorSetFromPalette as Q, applyValueFormat as Z } from "../_common/utils.js";
7
- import { c as D, a as w } from "../../../ColorSet-C7vpNXhM.js";
8
- import { X as ee, V as te } from "../../../AxisRenderer-DTyLLA6c.js";
9
- import { L as re } from "../../../Legend-Dp_MKfS4.js";
10
- import { D as se } from "../../../DateAxis-YX3QNIB-.js";
11
- import { A as P, a as ae } from "../../../AxisRendererY-C_ItLPNV.js";
12
- import { C as ie } from "../../../CategoryAxis-CwnfaGc8.js";
13
- import { X as oe } from "../../../XYCursor-C8WktvKM.js";
14
- import { L as le } from "../../../LineSeries-Uiv5o56b.js";
15
- import { D as ne } from "../../../DataProcessor-CHDO51q4.js";
16
- import { C as ce } from "../../../Circle-Cy5s-pVc.js";
17
- import { B as ue } from "../../../Bullet-DVczI2TD.js";
18
- class x extends X {
8
+ import { c as C, a as A } from "../../../Entity-BJCuhdq_.js";
9
+ import { X as ee, V as te } from "../../../AxisRenderer-BCQoUJw6.js";
10
+ import { L as re } from "../../../Legend-CFvQiIfn.js";
11
+ import { A as X, a as se } from "../../../AxisRendererY-AXWvGU6r.js";
12
+ import { C as ae } from "../../../CategoryAxis-B6NqW8qd.js";
13
+ import { X as ie } from "../../../XYCursor-CVUSpqb9.js";
14
+ import { G as oe, D as le } from "../../../GaplessDateAxis-B2g2jgSG.js";
15
+ import { D as ne } from "../../../DateAxis-DEXKps1S.js";
16
+ import { L as ce } from "../../../LineSeries-D_IL2qGF.js";
17
+ import { G, R as me } from "../../../Tooltip-vyZRZWih.js";
18
+ import { C as ue } from "../../../Circle-BnfBNKBD.js";
19
+ import { B as pe } from "../../../Bullet-Djj7Vs9T.js";
20
+ class y extends G {
19
21
  _beforeChanged() {
20
22
  super._beforeChanged(), (this.isDirty("width") || this.isDirty("height") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) && (this._clear = !0);
21
23
  }
@@ -30,40 +32,41 @@ class x extends X {
30
32
  this.markDirty(), this._clear = !0;
31
33
  }
32
34
  }
33
- Object.defineProperty(x, "className", {
35
+ Object.defineProperty(y, "className", {
34
36
  enumerable: !0,
35
37
  configurable: !0,
36
38
  writable: !0,
37
39
  value: "Triangle"
38
40
  });
39
- Object.defineProperty(x, "classNames", {
41
+ Object.defineProperty(y, "classNames", {
40
42
  enumerable: !0,
41
43
  configurable: !0,
42
44
  writable: !0,
43
- value: X.classNames.concat([x.className])
45
+ value: G.classNames.concat([y.className])
44
46
  });
45
- const A = ["CIRCLE", "RECTANGLE", "TRIANGLE"], Ee = (L) => {
46
- const n = U({ props: L, name: "HCMultipleValueAxes" }), {
47
+ const x = ["CIRCLE", "RECTANGLE", "TRIANGLE"], Xe = (T) => {
48
+ const n = z({ props: T, name: "HCMultipleValueAxes" }), {
47
49
  dimensions: s,
48
50
  values: t,
49
- data: p,
50
- initDelay: Y = 0,
51
- baseInterval: I,
51
+ data: d,
52
+ initDelay: I = 0,
53
+ baseInterval: L,
52
54
  colors: R,
53
- sx: O,
55
+ skipEmptyDates: E = !1,
56
+ sx: Y,
54
57
  ...V
55
- } = n, d = $(), _ = `hc-multiple-value-axes-${H().replace(/:/g, "")}`, y = J(null);
58
+ } = n, u = U(), _ = `hc-multiple-value-axes-${H().replace(/:/g, "")}`, w = $(null);
56
59
  let h = null;
57
- s.length < 1 ? h = "MultipleValueAxes requires at least 1 dimension" : t.length < 1 && (h = "MultipleValueAxes requires at least 1 value"), K(() => {
60
+ s.length < 1 ? h = "MultipleValueAxes requires at least 1 dimension" : t.length < 1 && (h = "MultipleValueAxes requires at least 1 value"), J(() => {
58
61
  if (h) return;
59
62
  let b;
60
63
  return b = setTimeout(() => {
61
- var N;
64
+ var F;
62
65
  const e = j.new(_);
63
- y.current = e, e.setThemes([z.new(e)]), e.interfaceColors.setAll({
64
- text: D(d.palette.text.primary),
65
- grid: D(d.palette.divider),
66
- stroke: D(d.palette.divider)
66
+ w.current = e, e.setThemes([q.new(e)]), e.interfaceColors.setAll({
67
+ text: C(u.palette.text.primary),
68
+ grid: C(u.palette.divider),
69
+ stroke: C(u.palette.divider)
67
70
  });
68
71
  const r = e.container.children.push(
69
72
  ee.new(e, {
@@ -71,117 +74,124 @@ const A = ["CIRCLE", "RECTANGLE", "TRIANGLE"], Ee = (L) => {
71
74
  panY: !1,
72
75
  wheelX: "none",
73
76
  wheelY: "none",
77
+ maxTooltipDistance: -1,
74
78
  layout: e.verticalLayout
75
79
  })
76
80
  );
77
81
  r.set("colors", Q(e, R)), r.get("colors", {}).set("step", 3);
78
- const G = r.children.push(
79
- re.new(e, { centerX: w, x: w })
80
- ), l = s[0];
81
- let u, m = p;
82
- l.type === "date" ? (u = r.xAxes.push(
83
- se.new(e, {
84
- maxDeviation: 0.1,
85
- groupData: !1,
86
- baseInterval: I || { timeUnit: "day", count: 1 },
87
- renderer: P.new(e, {}),
88
- tooltip: T.new(e, {})
89
- })
90
- ), m = C.orderBy(p, [l.value])) : (u = r.xAxes.push(
91
- ie.new(e, {
92
- categoryField: l.value,
93
- renderer: P.new(e, {}),
94
- tooltip: T.new(e, {})
95
- })
96
- ), e.numberFormatter.setAll({
97
- numberFormat: "#",
98
- numericFields: ["valueX"]
99
- }), m = C.orderBy(p, [l.value]), u.data.setAll(m));
100
- function E(i, o, c, S, W, v, M) {
101
- const f = ae.new(e, { opposite: W }), k = r.yAxes.push(
82
+ const O = r.children.push(
83
+ re.new(e, { centerX: A, x: A })
84
+ ), o = s[0];
85
+ let c, p = d;
86
+ if (o.type === "date") {
87
+ const a = E ? oe : ne;
88
+ c = r.xAxes.push(
89
+ a.new(e, {
90
+ maxDeviation: 0.1,
91
+ groupData: !1,
92
+ baseInterval: L || { timeUnit: "day", count: 1 },
93
+ renderer: X.new(e, {})
94
+ })
95
+ ), p = D.orderBy(d, [o.value]);
96
+ } else
97
+ c = r.xAxes.push(
98
+ ae.new(e, {
99
+ categoryField: o.value,
100
+ renderer: X.new(e, {})
101
+ })
102
+ ), e.numberFormatter.setAll({
103
+ numberFormat: "#",
104
+ numericFields: ["valueX"]
105
+ }), p = D.orderBy(d, [o.value]), c.data.setAll(p);
106
+ function N(a, l, m, S, W, k, M) {
107
+ const f = se.new(e, { opposite: W }), v = r.yAxes.push(
102
108
  te.new(e, { maxDeviation: 1, renderer: f })
103
109
  );
104
- r.yAxes.indexOf(k) > 0 && k.set("syncWithAxis", r.yAxes.getIndex(0));
105
- const a = r.series.push(
106
- le.new(e, {
107
- name: o,
108
- xAxis: u,
109
- yAxis: k,
110
+ r.yAxes.indexOf(v) > 0 && v.set("syncWithAxis", r.yAxes.getIndex(0));
111
+ const i = r.series.push(
112
+ ce.new(e, {
113
+ name: l,
114
+ xAxis: c,
115
+ yAxis: v,
110
116
  valueYField: S,
111
- ...l.type === "date" ? { valueXField: c } : { categoryXField: c },
112
- tooltip: T.new(e, {
113
- pointerOrientation: "horizontal",
114
- labelText: `${o}: {valueY}`
115
- })
117
+ ...o.type === "date" ? { valueXField: m } : { categoryXField: m }
116
118
  })
117
119
  );
118
- a.strokes.template.setAll({ strokeWidth: 2 }), f.grid.template.set("strokeOpacity", 0.05), f.labels.template.set("fill", a.get("fill")), f.setAll({
119
- stroke: a.get("fill"),
120
+ i.strokes.template.setAll({ strokeWidth: 2 }), f.grid.template.set("strokeOpacity", 0.05), f.labels.template.set("fill", i.get("fill")), f.setAll({
121
+ stroke: i.get("fill"),
120
122
  strokeOpacity: 1,
121
123
  opacity: 1
122
- }), M === "date" && (a.data.processor = ne.new(e, {
124
+ }), M === "date" && (i.data.processor = le.new(e, {
123
125
  dateFormat: "i",
124
- dateFields: [c]
125
- })), v !== void 0 && a.bullets.push(function() {
126
+ dateFields: [m]
127
+ })), k !== void 0 && i.bullets.push(function() {
126
128
  let g;
127
- return v === "RECTANGLE" ? g = q.new(e, {
129
+ return k === "RECTANGLE" ? g = me.new(e, {
128
130
  width: 10,
129
131
  height: 10,
130
- centerX: w,
131
- centerY: w,
132
+ centerX: A,
133
+ centerY: A,
132
134
  strokeWidth: 2,
133
- stroke: a.get("stroke"),
135
+ stroke: i.get("stroke"),
134
136
  fill: e.interfaceColors.get("background")
135
- }) : v === "TRIANGLE" ? g = x.new(e, {
137
+ }) : k === "TRIANGLE" ? g = y.new(e, {
136
138
  width: 10,
137
139
  height: 10,
138
140
  strokeWidth: 2,
139
- stroke: a.get("stroke"),
141
+ stroke: i.get("stroke"),
140
142
  fill: e.interfaceColors.get("background")
141
- }) : g = ce.new(e, {
143
+ }) : g = ue.new(e, {
142
144
  strokeWidth: 2,
143
145
  radius: 4,
144
- stroke: a.get("stroke"),
146
+ stroke: i.get("stroke"),
145
147
  fill: e.interfaceColors.get("background")
146
- }), ue.new(e, { sprite: g });
147
- }), a.data.setAll(i);
148
+ }), pe.new(e, { sprite: g });
149
+ }), i.data.setAll(a);
148
150
  }
149
151
  if (r.set(
150
152
  "cursor",
151
- oe.new(e, { xAxis: u, behavior: "none" })
152
- ).lineY.set("visible", !1), s.length > 1) {
153
- const i = C.groupBy(m, s[1].value);
154
- Object.keys(i).forEach((o, c) => {
155
- E(
156
- i[o],
157
- F(o),
153
+ ie.new(e, { xAxis: c, behavior: "none" })
154
+ ).lineY.set("visible", !1), K({
155
+ root: e,
156
+ chart: r,
157
+ xAxis: c,
158
+ theme: u,
159
+ isDateAxis: o.type === "date",
160
+ baseInterval: L,
161
+ follow: !0
162
+ }), s.length > 1) {
163
+ const a = D.groupBy(p, s[1].value);
164
+ Object.keys(a).forEach((l, m) => {
165
+ N(
166
+ a[l],
167
+ P(l),
158
168
  s[0].value,
159
169
  t[0].dataFieldName,
160
- c !== 0,
161
- A[c % A.length]
170
+ m !== 0,
171
+ x[m % x.length]
162
172
  );
163
173
  });
164
174
  } else
165
- t.forEach((i, o) => {
166
- E(
167
- m,
168
- i.label ?? F(i.name),
169
- l.value,
170
- i.dataFieldName,
171
- o !== 0,
172
- A[o % A.length],
173
- l.type
175
+ t.forEach((a, l) => {
176
+ N(
177
+ p,
178
+ a.label ?? P(a.name),
179
+ o.value,
180
+ a.dataFieldName,
181
+ l !== 0,
182
+ x[l % x.length],
183
+ o.type
174
184
  );
175
185
  });
176
- G.data.setAll(r.series.values), Z(e, (N = t == null ? void 0 : t[0]) == null ? void 0 : N.format), r.appear(1e3, 100);
177
- }, Y), () => {
186
+ O.data.setAll(r.series.values), Z(e, (F = t == null ? void 0 : t[0]) == null ? void 0 : F.format), r.appear(1e3, 100);
187
+ }, I), () => {
178
188
  var e;
179
- b && clearTimeout(b), (e = y.current) == null || e.dispose(), y.current = null;
189
+ b && clearTimeout(b), (e = w.current) == null || e.dispose(), w.current = null;
180
190
  };
181
- }, [p, s, t, d.palette.mode, R]);
191
+ }, [d, s, t, u.palette.mode, R, E]);
182
192
  const B = { ...n };
183
- return { chartId: _, ownerState: B, sx: O, error: h, other: V };
193
+ return { chartId: _, ownerState: B, sx: Y, error: h, other: V };
184
194
  };
185
195
  export {
186
- Ee as useMultipleValueAxesLogic
196
+ Xe as useMultipleValueAxesLogic
187
197
  };
@@ -1,11 +1,11 @@
1
- import { R as S, A as E } from "../../../AnimatedTheme-jnasw6rT.js";
1
+ import { R as S, A as E } from "../../../AnimatedTheme-ktdO3Bel.js";
2
2
  import { useThemeProps as L, useTheme as j } from "@mui/material";
3
3
  import q from "dayjs";
4
4
  import T from "lodash";
5
5
  import { useId as B, useRef as H, useEffect as I } from "react";
6
6
  import { applyValueFormat as W, colorSetFromPalette as O } from "../_common/utils.js";
7
- import { c as n, p as o } from "../../../ColorSet-C7vpNXhM.js";
8
- import { P as V, a as N } from "../../../PieSeries-B2fW3z0s.js";
7
+ import { c as n, p as o } from "../../../Entity-BJCuhdq_.js";
8
+ import { P as V, a as N } from "../../../PieSeries-CMH0Z7pz.js";
9
9
  const Z = (b) => {
10
10
  const g = L({ props: b, name: "HCNestedPie" }), {
11
11
  dimensions: a,