@hybridcore/ui 1.6.29 → 1.6.31

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 (31) hide show
  1. package/dist/components/charts/_common/utils.js +53 -31
  2. package/dist/components/charts/candlestick/logic.js +83 -86
  3. package/dist/components/charts/column-line-mix/logic.js +66 -70
  4. package/dist/components/charts/donut-chart/logic.js +65 -64
  5. package/dist/components/charts/drill-down-treemap/logic.js +69 -69
  6. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +75 -75
  7. package/dist/components/charts/forecast-cone/logic.js +110 -114
  8. package/dist/components/charts/heatmap/logic.js +117 -119
  9. package/dist/components/charts/highlighting-line-data/logic.js +65 -64
  10. package/dist/components/charts/histogram/logic.js +66 -70
  11. package/dist/components/charts/line/logic.js +132 -113
  12. package/dist/components/charts/logaritmic-scale/logic.js +79 -83
  13. package/dist/components/charts/multiple-value-axes/logic.js +65 -69
  14. package/dist/components/charts/nested-pie/logic.js +49 -53
  15. package/dist/components/charts/packed-circles/logic.js +139 -139
  16. package/dist/components/charts/pie-chart/logic.js +59 -59
  17. package/dist/components/charts/stacked-area-radar/logic.js +95 -97
  18. package/dist/components/charts/stacked-column-chart/logic.js +69 -69
  19. package/dist/components/charts/xy-chart/logic.js +82 -86
  20. package/dist/components/data-list/logic.js +131 -137
  21. package/dist/components/metric-card/MetricChart.js +62 -58
  22. package/dist/components/metric-card/index.js +53 -40
  23. package/dist/components/metric-card/logic.js +66 -57
  24. package/dist/components/metric-card/styled.js +13 -9
  25. package/dist/components/paginated-list/helpers.js +8 -0
  26. package/dist/components/paginated-list/index.js +144 -61
  27. package/dist/components/paginated-list/logic.js +84 -47
  28. package/dist/components/paginated-list/styled.js +154 -17
  29. package/dist/hooks/useInfinitePaging.js +51 -0
  30. package/dist/main.d.ts +115 -3
  31. package/package.json +1 -1
@@ -3,39 +3,35 @@ import { useThemeProps as P, useTheme as W } from "@mui/material";
3
3
  import z from "lodash";
4
4
  import { useId as Z, useRef as $, useEffect as j } from "react";
5
5
  import { humanizeLabel as q } from "../_common/format.js";
6
- import { colorSetFromPalette as J, applyValueFormat as K } from "../_common/utils.js";
7
- import { c as i, a as F, p as Q } from "../../../Entity-BJCuhdq_.js";
8
- import { X as U, V as Y } from "../../../AxisRenderer-BCQoUJw6.js";
6
+ import { applyInterfaceColors as J, colorSetFromPalette as K, applyValueFormat as Q } from "../_common/utils.js";
7
+ import { X as U, V as F } from "../../../AxisRenderer-BCQoUJw6.js";
9
8
  import { L as ee } from "../../../Legend-CFvQiIfn.js";
10
- import { A as te, a as re } from "../../../AxisRendererY-AXWvGU6r.js";
11
- import { C as oe } from "../../../ColumnSeries-CtRTsn-E.js";
12
- import { T as se } from "../../../Tooltip-vyZRZWih.js";
13
- import { X as ne } from "../../../XYCursor-CVUSpqb9.js";
14
- const R = "__hcBinStart", _ = "__hcBinEnd", Ne = (C) => {
15
- const x = P({ props: C, name: "HCHistogram" }), {
16
- dimensions: p,
17
- values: u,
9
+ import { a as Y, c as g, p as te } from "../../../Entity-BJCuhdq_.js";
10
+ import { A as re, a as oe } from "../../../AxisRendererY-AXWvGU6r.js";
11
+ import { C as se } from "../../../ColumnSeries-CtRTsn-E.js";
12
+ import { T as ne } from "../../../Tooltip-vyZRZWih.js";
13
+ import { X as ae } from "../../../XYCursor-CVUSpqb9.js";
14
+ const R = "__hcBinStart", _ = "__hcBinEnd", Xe = (C) => {
15
+ const b = P({ props: C, name: "HCHistogram" }), {
16
+ dimensions: c,
17
+ values: p,
18
18
  data: A,
19
- initDelay: B = 0,
20
- colors: b,
19
+ initDelay: I = 0,
20
+ colors: x,
21
21
  binWidth: v,
22
22
  barGap: y = 0,
23
- logarithmic: d = !1,
24
- sx: D,
25
- ...I
26
- } = x, r = W(), N = `hc-histogram-${Z().replace(/:/g, "")}`, h = $(null), X = p.length < 1 ? "Missing dimensions config!" : u.length < 1 ? "Missing values config!" : null;
23
+ logarithmic: u = !1,
24
+ sx: B,
25
+ ...D
26
+ } = b, n = W(), N = `hc-histogram-${Z().replace(/:/g, "")}`, d = $(null), X = c.length < 1 ? "Missing dimensions config!" : p.length < 1 ? "Missing values config!" : null;
27
27
  j(() => {
28
28
  if (X) return;
29
- let f;
30
- return f = setTimeout(() => {
31
- var k, w;
29
+ let h;
30
+ return h = setTimeout(() => {
31
+ var w, k;
32
32
  const e = O.new(N);
33
- h.current = e, e.setThemes([H.new(e)]), e.interfaceColors.setAll({
34
- text: i(r.palette.text.primary),
35
- grid: i(r.palette.divider),
36
- stroke: i(r.palette.divider)
37
- });
38
- const o = e.container.children.push(
33
+ d.current = e, e.setThemes([H.new(e)]), J(e, n);
34
+ const r = e.container.children.push(
39
35
  U.new(e, {
40
36
  panX: !1,
41
37
  panY: !1,
@@ -44,55 +40,55 @@ const R = "__hcBinStart", _ = "__hcBinEnd", Ne = (C) => {
44
40
  layout: e.verticalLayout
45
41
  })
46
42
  );
47
- o.set("colors", J(e, b));
48
- const S = o.children.push(
43
+ r.set("colors", K(e, x));
44
+ const S = r.children.push(
49
45
  ee.new(e, {
50
- centerX: F,
51
- x: F
46
+ centerX: Y,
47
+ x: Y
52
48
  })
53
- ), s = p[0].value, l = u[0], V = l.dataFieldName, m = z.orderBy(
49
+ ), o = c[0].value, i = p[0], V = i.dataFieldName, l = z.orderBy(
54
50
  A.filter(
55
- (t) => (t == null ? void 0 : t[s]) != null && !Number.isNaN(Number(t[s]))
51
+ (t) => (t == null ? void 0 : t[o]) != null && !Number.isNaN(Number(t[o]))
56
52
  ),
57
- [(t) => Number(t[s])]
53
+ [(t) => Number(t[o])]
58
54
  );
59
- let c = 1 / 0;
60
- for (let t = 1; t < m.length; t++) {
61
- const n = Number(m[t][s]) - Number(m[t - 1][s]);
62
- n > 0 && n < c && (c = n);
55
+ let m = 1 / 0;
56
+ for (let t = 1; t < l.length; t++) {
57
+ const s = Number(l[t][o]) - Number(l[t - 1][o]);
58
+ s > 0 && s < m && (m = s);
63
59
  }
64
- const E = v ?? (Number.isFinite(c) ? c : 1), G = m.map((t) => {
65
- const n = Number(t[s]);
66
- return { ...t, [R]: n, [_]: n + E };
67
- }), g = o.xAxes.push(
68
- Y.new(e, {
60
+ const E = v ?? (Number.isFinite(m) ? m : 1), G = l.map((t) => {
61
+ const s = Number(t[o]);
62
+ return { ...t, [R]: s, [_]: s + E };
63
+ }), f = r.xAxes.push(
64
+ F.new(e, {
69
65
  maxDeviation: 0,
70
- renderer: te.new(e, { minGridDistance: 40 })
66
+ renderer: re.new(e, { minGridDistance: 40 })
71
67
  })
72
- ), T = o.yAxes.push(
73
- Y.new(e, {
68
+ ), T = r.yAxes.push(
69
+ F.new(e, {
74
70
  // Linear: frequency bars must grow from a zero baseline, else the auto
75
71
  // min crops the axis and distorts relative bar heights. Log: `min: 0`
76
72
  // is invalid (log 0 is undefined), so drop it and map zero-count bins
77
73
  // to `1` (the axis floor) — those bins then render as no bar.
78
- ...d ? { logarithmic: !0, treatZeroAs: 1 } : { min: 0 },
79
- renderer: re.new(e, {
74
+ ...u ? { logarithmic: !0, treatZeroAs: 1 } : { min: 0 },
75
+ renderer: oe.new(e, {
80
76
  strokeOpacity: 0.1,
81
- ...d ? { minorGridEnabled: !0 } : {}
77
+ ...u ? { minorGridEnabled: !0 } : {}
82
78
  })
83
79
  })
84
80
  );
85
- (k = g.get("renderer")) == null || k.grid.template.setAll({
86
- stroke: i(r.palette.divider),
81
+ (w = f.get("renderer")) == null || w.grid.template.setAll({
82
+ stroke: g(n.palette.divider),
87
83
  strokeOpacity: 1
88
- }), (w = T.get("renderer")) == null || w.grid.template.setAll({
89
- stroke: i(r.palette.divider),
84
+ }), (k = T.get("renderer")) == null || k.grid.template.setAll({
85
+ stroke: g(n.palette.divider),
90
86
  strokeOpacity: 1
91
87
  });
92
- const a = o.series.push(
93
- oe.new(e, {
94
- name: l.label ?? q(l.name),
95
- xAxis: g,
88
+ const a = r.series.push(
89
+ se.new(e, {
90
+ name: i.label ?? q(i.name),
91
+ xAxis: f,
96
92
  yAxis: T,
97
93
  valueYField: V,
98
94
  // Explicit [open, value] edges give each bar its exact bin span, so
@@ -102,32 +98,32 @@ const R = "__hcBinStart", _ = "__hcBinEnd", Ne = (C) => {
102
98
  })
103
99
  ), M = Math.min(Math.max(y, 0), 1);
104
100
  a.columns.template.setAll({
105
- width: Q((1 - M) * 100),
101
+ width: te((1 - M) * 100),
106
102
  strokeOpacity: 1,
107
103
  strokeWidth: 1,
108
- stroke: i(r.palette.background.paper),
104
+ stroke: g(n.palette.background.paper),
109
105
  tooltipText: "{openValueX} – {valueX}: {valueY}"
110
- }), a.set("tooltip", se.new(e, {})), a.data.setAll(G), a.appear(), S.data.push(a), o.set(
106
+ }), a.set("tooltip", ne.new(e, {})), a.data.setAll(G), a.appear(), S.data.push(a), r.set(
111
107
  "cursor",
112
- ne.new(e, { xAxis: g, behavior: "none" })
113
- ).lineY.set("visible", !1), K(e, l.format), o.appear(1e3, 100);
114
- }, B), () => {
108
+ ae.new(e, { xAxis: f, behavior: "none" })
109
+ ).lineY.set("visible", !1), Q(e, i.format), r.appear(1e3, 100);
110
+ }, I), () => {
115
111
  var e;
116
- f && clearTimeout(f), (e = h.current) == null || e.dispose(), h.current = null;
112
+ h && clearTimeout(h), (e = d.current) == null || e.dispose(), d.current = null;
117
113
  };
118
114
  }, [
119
115
  A,
116
+ c,
120
117
  p,
121
- u,
122
- r.palette.mode,
123
- b,
118
+ n.palette.mode,
119
+ x,
124
120
  v,
125
121
  y,
126
- d
122
+ u
127
123
  ]);
128
- const L = { ...x };
129
- return { chartId: N, ownerState: L, sx: D, error: X, other: I };
124
+ const L = { ...b };
125
+ return { chartId: N, ownerState: L, sx: B, error: X, other: D };
130
126
  };
131
127
  export {
132
- Ne as useHistogramLogic
128
+ Xe as useHistogramLogic
133
129
  };
@@ -1,22 +1,23 @@
1
- import { R as z, T as H, A as Z } from "../../../AnimatedTheme-ktdO3Bel.js";
2
- import { useThemeProps as $, useTheme as j } from "@mui/material";
3
- import q from "lodash";
4
- import { useId as J, useRef as K, useEffect as Q } from "react";
5
- import { humanizeLabel as ee } from "../_common/format.js";
6
- import { attachCombinedAxisTooltip as te } from "../_common/tooltip.js";
7
- import { colorSetFromPalette as re, applyDateAxisLabelFormat as se, applyValueFormat as oe } from "../_common/utils.js";
8
- import { c as d, p as X, b as U } from "../../../Entity-BJCuhdq_.js";
9
- import { X as ae, V as ie } from "../../../AxisRenderer-BCQoUJw6.js";
10
- import { A as V, a as ne } from "../../../AxisRendererY-AXWvGU6r.js";
11
- import { C as le } from "../../../CategoryAxis-B6NqW8qd.js";
12
- import { L as me } from "../../../LineSeries-D_IL2qGF.js";
13
- import { D as pe, G as de } from "../../../GaplessDateAxis-B2g2jgSG.js";
14
- import { B as ce } from "../../../Bullet-Djj7Vs9T.js";
15
- import { C as ue } from "../../../Circle-BnfBNKBD.js";
16
- import { X as fe } from "../../../XYCursor-CVUSpqb9.js";
17
- import { L as he } from "../../../Legend-CFvQiIfn.js";
18
- import { D as Ae } from "../../../DateAxis-DEXKps1S.js";
19
- const _ = 1.1, ge = {
1
+ import { R as q, T as J, A as K } from "../../../AnimatedTheme-ktdO3Bel.js";
2
+ import { useThemeProps as Q, useTheme as ee } from "@mui/material";
3
+ import te from "lodash";
4
+ import { useId as se, useRef as re, useEffect as oe } from "react";
5
+ import { humanizeLabel as ae } from "../_common/format.js";
6
+ import { attachCombinedAxisTooltip as ie } from "../_common/tooltip.js";
7
+ import { applyInterfaceColors as ne, colorSetFromPalette as le, applyDateAxisLabelFormat as me, applyValueFormat as pe } from "../_common/utils.js";
8
+ import { X as ce, V as de } from "../../../AxisRenderer-BCQoUJw6.js";
9
+ import { A as P, a as ue } from "../../../AxisRendererY-AXWvGU6r.js";
10
+ import { C as fe } from "../../../CategoryAxis-B6NqW8qd.js";
11
+ import { c as L, p as b, b as R } from "../../../Entity-BJCuhdq_.js";
12
+ import { L as he } from "../../../LineSeries-D_IL2qGF.js";
13
+ import { D as ge, G as Ae } from "../../../GaplessDateAxis-B2g2jgSG.js";
14
+ import { B as ye } from "../../../Bullet-Djj7Vs9T.js";
15
+ import { C as xe } from "../../../Circle-BnfBNKBD.js";
16
+ import { L as we } from "../../../LinearGradient-CxQyCSEB.js";
17
+ import { X as ke } from "../../../XYCursor-CVUSpqb9.js";
18
+ import { L as Ce } from "../../../Legend-CFvQiIfn.js";
19
+ import { D as ve } from "../../../DateAxis-DEXKps1S.js";
20
+ const S = 1.1, De = {
20
21
  millisecond: 1,
21
22
  second: 1e3,
22
23
  minute: 6e4,
@@ -25,35 +26,33 @@ const _ = 1.1, ge = {
25
26
  week: 6048e5,
26
27
  month: 2592e6,
27
28
  year: 31536e6
28
- }, _e = (E) => {
29
- const b = $({ props: E, name: "HCLineChart" }), {
29
+ }, He = (W) => {
30
+ const X = Q({ props: W, name: "HCLineChart" }), {
30
31
  dimensions: t,
31
32
  values: m,
32
- data: w,
33
- initDelay: P = 0,
34
- baseInterval: n,
35
- colors: L,
36
- connectMissingData: k = !0,
37
- skipEmptyDates: C = !1,
38
- sx: R,
39
- ...W
40
- } = b, l = j(), N = `hc-line-chart-${J().replace(/:/g, "")}`, v = K(null);
33
+ data: x,
34
+ initDelay: B = 0,
35
+ baseInterval: l,
36
+ colors: G,
37
+ connectMissingData: w = !0,
38
+ skipEmptyDates: k = !1,
39
+ areaFill: N = !1,
40
+ strokeDasharray: C,
41
+ sx: z,
42
+ ...H
43
+ } = X, p = ee(), I = `hc-line-chart-${se().replace(/:/g, "")}`, v = re(null);
41
44
  let h = null;
42
- t.length < 1 ? h = "Missing dimensions config!" : m.length < 1 && (h = "Missing values config!"), Q(() => {
45
+ t.length < 1 ? h = "Missing dimensions config!" : m.length < 1 && (h = "Missing values config!"), oe(() => {
43
46
  if (h) return;
44
- let T;
45
- return T = setTimeout(() => {
46
- var G, O, I, M;
47
- const e = z.new(N);
47
+ let D;
48
+ return D = setTimeout(() => {
49
+ var M, U, V, _;
50
+ const e = q.new(I);
48
51
  v.current = e;
49
- const S = H.new(e);
50
- e.setThemes([Z.new(e), S]), e.interfaceColors.setAll({
51
- text: d(l.palette.text.primary),
52
- grid: d(l.palette.divider),
53
- stroke: d(l.palette.divider)
54
- });
55
- const s = e.container.children.push(
56
- ae.new(e, {
52
+ const $ = J.new(e);
53
+ e.setThemes([K.new(e), $]), ne(e, p);
54
+ const r = e.container.children.push(
55
+ ce.new(e, {
57
56
  panX: !0,
58
57
  panY: !0,
59
58
  wheelX: "none",
@@ -63,46 +62,46 @@ const _ = 1.1, ge = {
63
62
  maxTooltipDistance: -1,
64
63
  pinchZoomX: !0
65
64
  })
66
- );
67
- s.set("colors", re(e, L));
68
- let i, A = w;
65
+ ), O = le(e, G);
66
+ r.set("colors", O);
67
+ let i, g = x;
69
68
  if (t[0].type === "date") {
70
- const o = C ? de : Ae;
71
- i = s.xAxes.push(
69
+ const o = k ? Ae : ve;
70
+ i = r.xAxes.push(
72
71
  o.new(e, {
73
72
  maxDeviation: 0.1,
74
73
  groupData: !1,
75
- baseInterval: n || { timeUnit: "day", count: 1 },
76
- renderer: V.new(e, {})
74
+ baseInterval: l || { timeUnit: "day", count: 1 },
75
+ renderer: P.new(e, {})
77
76
  })
78
- ), se(i, t[0]), A = q.orderBy(w, [t[0].value]);
77
+ ), me(i, t[0]), g = te.orderBy(x, [t[0].value]);
79
78
  } else
80
- i = s.xAxes.push(
81
- le.new(e, {
79
+ i = r.xAxes.push(
80
+ fe.new(e, {
82
81
  categoryField: t[0].value,
83
- renderer: V.new(e, {})
82
+ renderer: P.new(e, {})
84
83
  })
85
84
  ), e.numberFormatter.setAll({
86
85
  numberFormat: "#",
87
86
  numericFields: ["valueX"]
88
- }), i.data.setAll(A);
89
- const Y = s.yAxes.push(
90
- ie.new(e, {
91
- renderer: ne.new(e, {})
87
+ }), i.data.setAll(g);
88
+ const Y = r.yAxes.push(
89
+ de.new(e, {
90
+ renderer: ue.new(e, {})
92
91
  })
93
92
  );
94
- (G = i.get("renderer")) == null || G.grid.template.setAll({
95
- stroke: d(l.palette.divider),
93
+ (M = i.get("renderer")) == null || M.grid.template.setAll({
94
+ stroke: L(p.palette.divider),
96
95
  strokeOpacity: 1
97
- }), (O = i.get("renderer")) == null || O.labels.template.setAll({ paddingTop: 12 }), (I = Y.get("renderer")) == null || I.grid.template.setAll({
98
- stroke: d(l.palette.divider),
96
+ }), (U = i.get("renderer")) == null || U.labels.template.setAll({ paddingTop: 12 }), (V = Y.get("renderer")) == null || V.grid.template.setAll({
97
+ stroke: L(p.palette.divider),
99
98
  strokeOpacity: 1
100
- }), m.forEach((o) => {
101
- const a = s.series.push(
102
- me.new(e, {
99
+ }), m.forEach((o, d) => {
100
+ const a = r.series.push(
101
+ he.new(e, {
103
102
  // Legend/tooltip label: explicit override, else humanize the raw
104
103
  // backend field (snake_case / lowercase → Title Case).
105
- name: o.label ?? ee(o.name),
104
+ name: o.label ?? ae(o.name),
106
105
  xAxis: i,
107
106
  yAxis: Y,
108
107
  valueYField: o.dataFieldName,
@@ -110,94 +109,114 @@ const _ = 1.1, ge = {
110
109
  // break is auto-detected when adjacent points are spaced more than
111
110
  // `autoGapCount` (default 1.1) base intervals apart, so absent dates
112
111
  // surface as gaps instead of being bridged by a straight segment.
113
- connect: k,
114
- autoGapCount: _,
112
+ connect: w,
113
+ autoGapCount: S,
115
114
  ...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value }
116
115
  })
117
116
  );
118
- if (t[0].type === "date" && (a.data.processor = pe.new(e, {
117
+ if (t[0].type === "date" && (a.data.processor = ge.new(e, {
119
118
  dateFormat: "i",
120
119
  dateFields: [t[0].value]
121
- })), t[0].type === "date" && !C) {
122
- const g = t[0].value, y = ge[(n == null ? void 0 : n.timeUnit) ?? "day"] * ((n == null ? void 0 : n.count) ?? 1), p = k ? 1 / 0 : y * _, x = A.map((r) => ({
123
- t: new Date(r[g]).getTime(),
124
- hasValue: r[o.dataFieldName] !== null && r[o.dataFieldName] !== void 0
125
- })).filter((r) => r.hasValue && !Number.isNaN(r.t)), D = /* @__PURE__ */ new Set();
126
- x.forEach((r, u) => {
127
- const F = u > 0 ? r.t - x[u - 1].t : 1 / 0, f = u < x.length - 1 ? x[u + 1].t - r.t : 1 / 0;
128
- F > p && f > p && D.add(r.t);
129
- }), D.size > 0 && a.bullets.push((r, u, F) => {
130
- const f = F.dataContext;
131
- if (D.has(new Date(f == null ? void 0 : f[g]).getTime()))
132
- return ce.new(r, {
133
- sprite: ue.new(r, {
120
+ })), t[0].type === "date" && !k) {
121
+ const n = t[0].value, j = De[(l == null ? void 0 : l.timeUnit) ?? "day"] * ((l == null ? void 0 : l.count) ?? 1), E = w ? 1 / 0 : j * S, y = g.map((s) => ({
122
+ t: new Date(s[n]).getTime(),
123
+ hasValue: s[o.dataFieldName] !== null && s[o.dataFieldName] !== void 0
124
+ })).filter((s) => s.hasValue && !Number.isNaN(s.t)), F = /* @__PURE__ */ new Set();
125
+ y.forEach((s, u) => {
126
+ const T = u > 0 ? s.t - y[u - 1].t : 1 / 0, f = u < y.length - 1 ? y[u + 1].t - s.t : 1 / 0;
127
+ T > E && f > E && F.add(s.t);
128
+ }), F.size > 0 && a.bullets.push((s, u, T) => {
129
+ const f = T.dataContext;
130
+ if (F.has(new Date(f == null ? void 0 : f[n]).getTime()))
131
+ return ye.new(s, {
132
+ sprite: xe.new(s, {
134
133
  radius: 3,
135
134
  fill: a.get("fill"),
136
- stroke: r.interfaceColors.get("background"),
135
+ stroke: s.interfaceColors.get("background"),
137
136
  strokeWidth: 1
138
137
  })
139
138
  });
140
139
  });
141
140
  }
142
- a.data.setAll(A), a.strokes.template.setAll({ strokeWidth: 2 }), a.appear();
143
- }), s.set(
141
+ const A = N && m.length === 1;
142
+ if (a.data.setAll(g), a.strokes.template.setAll({
143
+ strokeWidth: 2,
144
+ ...C && { strokeDasharray: C }
145
+ }), A) {
146
+ const n = a.get("fill") ?? O.getIndex(d);
147
+ a.fills.template.setAll({
148
+ visible: !0,
149
+ fillOpacity: 1,
150
+ fillGradient: we.new(e, {
151
+ rotation: 90,
152
+ stops: [
153
+ { color: n, opacity: 0.6 },
154
+ { color: n, opacity: 0 }
155
+ ]
156
+ })
157
+ });
158
+ }
159
+ a.appear();
160
+ }), r.set(
144
161
  "cursor",
145
- fe.new(e, { xAxis: i, behavior: "none" })
146
- ).lineY.set("visible", !1), te({
162
+ ke.new(e, { xAxis: i, behavior: "none" })
163
+ ).lineY.set("visible", !1), ie({
147
164
  root: e,
148
- chart: s,
165
+ chart: r,
149
166
  xAxis: i,
150
- theme: l,
167
+ theme: p,
151
168
  isDateAxis: t[0].type === "date",
152
- baseInterval: n,
169
+ baseInterval: l,
153
170
  follow: !0
154
171
  });
155
- const c = s.bottomAxesContainer.children.push(
156
- he.new(e, {
157
- width: X(100),
172
+ const c = r.bottomAxesContainer.children.push(
173
+ Ce.new(e, {
174
+ width: b(100),
158
175
  paddingTop: 10,
159
- centerX: X(50),
160
- x: X(50),
176
+ centerX: b(50),
177
+ x: b(50),
161
178
  layout: e.gridLayout
162
179
  })
163
180
  );
164
181
  c.itemContainers.template.events.on("pointerover", function(o) {
165
- var y;
166
- const a = o.target, g = (y = a == null ? void 0 : a.dataItem) == null ? void 0 : y.dataContext;
167
- s.series.each(function(p) {
168
- p !== g ? p.strokes.template.setAll({
182
+ var A;
183
+ const d = o.target, a = (A = d == null ? void 0 : d.dataItem) == null ? void 0 : A.dataContext;
184
+ r.series.each(function(n) {
185
+ n !== a ? n.strokes.template.setAll({
169
186
  strokeOpacity: 0.15,
170
- stroke: d(0)
171
- }) : p.strokes.template.setAll({ strokeWidth: 3 });
187
+ stroke: L(0)
188
+ }) : n.strokes.template.setAll({ strokeWidth: 3 });
172
189
  });
173
190
  }), c.itemContainers.template.events.on("pointerout", function() {
174
- s.series.each(function(o) {
191
+ r.series.each(function(o) {
175
192
  o.strokes.template.setAll({
176
193
  strokeOpacity: 1,
177
194
  strokeWidth: 2,
178
195
  stroke: o.get("fill")
179
196
  });
180
197
  });
181
- }), c.itemContainers.template.set("width", U), c.valueLabels.template.setAll({
182
- width: U,
198
+ }), c.itemContainers.template.set("width", R), c.valueLabels.template.setAll({
199
+ width: R,
183
200
  textAlign: "right"
184
- }), c.data.setAll(s.series.values), oe(e, (M = m == null ? void 0 : m[0]) == null ? void 0 : M.format), s.appear(1e3, 100);
185
- }, P), () => {
201
+ }), c.data.setAll(r.series.values), pe(e, (_ = m == null ? void 0 : m[0]) == null ? void 0 : _.format), r.appear(1e3, 100);
202
+ }, B), () => {
186
203
  var e;
187
- T && clearTimeout(T), (e = v.current) == null || e.dispose(), v.current = null;
204
+ D && clearTimeout(D), (e = v.current) == null || e.dispose(), v.current = null;
188
205
  };
189
206
  }, [
190
- w,
207
+ x,
191
208
  t,
192
209
  m,
193
- l.palette.mode,
194
- L,
210
+ p.palette.mode,
211
+ G,
212
+ w,
195
213
  k,
214
+ N,
196
215
  C
197
216
  ]);
198
- const B = { ...b };
199
- return { chartId: N, ownerState: B, sx: R, error: h, other: W };
217
+ const Z = { ...X };
218
+ return { chartId: I, ownerState: Z, sx: z, error: h, other: H };
200
219
  };
201
220
  export {
202
- _e as useLineChartLogic
221
+ He as useLineChartLogic
203
222
  };