@hybridcore/ui 1.6.10 → 1.6.11
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/{AnimatedTheme-ktdO3Bel.js → AnimatedTheme-D3VZKKNV.js} +6 -6
- package/dist/{AxisRenderer-BCQoUJw6.js → AxisRenderer-Doyw-FTI.js} +6 -6
- package/dist/{AxisRendererY-AXWvGU6r.js → AxisRendererY-BylCU67e.js} +3 -3
- package/dist/{Bullet-Djj7Vs9T.js → Bullet-C6357hTv.js} +1 -1
- package/dist/{Button-BLY4PVJC.js → Button-DGOT8RcT.js} +3 -3
- package/dist/{CategoryAxis-B6NqW8qd.js → CategoryAxis-B5uTZjhL.js} +3 -3
- package/dist/{Circle-BnfBNKBD.js → Circle-DhzVdFBd.js} +1 -1
- package/dist/{ColorSet-cyPmWGwh.js → ColorSet-DGLMpbL3.js} +1 -1
- package/dist/{ColumnSeries-CtRTsn-E.js → ColumnSeries-CqJ-563p.js} +28 -28
- package/dist/DataProcessor-WXzhvIg6.js +83 -0
- package/dist/{DateAxis-DEXKps1S.js → DateAxis-lJZjbAS-.js} +4 -4
- package/dist/{Entity-BJCuhdq_.js → Entity-4Lr2piVN.js} +14 -14
- package/dist/GaplessDateAxis-DowssQ6y.js +296 -0
- package/dist/{Hierarchy-CEOK8Gzh.js → Hierarchy-DPEcTr0v.js} +4 -4
- package/dist/{Legend-CFvQiIfn.js → Legend-CTb6rZz_.js} +4 -4
- package/dist/{LineSeries-D_IL2qGF.js → LineSeries-Dg1aytHA.js} +4 -4
- package/dist/{LinearGradient-CxQyCSEB.js → LinearGradient-D1hzMjaW.js} +2 -2
- package/dist/{PieSeries-CMH0Z7pz.js → PieSeries-C9YUWMnA.js} +8 -8
- package/dist/{RoundedRectangle-BKLX1LKM.js → RoundedRectangle-B23Oh_r6.js} +2 -2
- package/dist/{Scrollbar-CTI7_8Qw.js → Scrollbar-CSoXoZSe.js} +4 -4
- package/dist/{Slice-BUncQh1B.js → Slice-CIP7Vmzu.js} +11 -11
- package/dist/{Tick--VhF0xlz.js → Tick-CRu6rQQy.js} +2 -2
- package/dist/{Tooltip-vyZRZWih.js → Tooltip-RhAldW7s.js} +1 -1
- package/dist/{XYCursor-CVUSpqb9.js → XYCursor-Z-Ral42q.js} +3 -3
- package/dist/{ZoomableContainer-Ca_pDVYQ.js → ZoomableContainer-D1laxHnA.js} +2 -2
- package/dist/components/charts/_common/tooltip.js +2 -2
- package/dist/components/charts/_common/utils.js +2 -2
- package/dist/components/charts/candlestick/logic.js +35 -34
- package/dist/components/charts/chart-wrapper/index.js +36 -34
- package/dist/components/charts/column-line-mix/logic.js +41 -40
- package/dist/components/charts/donut-chart/logic.js +4 -4
- package/dist/components/charts/drill-down-treemap/logic.js +5 -5
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +5 -5
- package/dist/components/charts/forecast-cone/index.js +52 -0
- package/dist/components/charts/forecast-cone/logic.js +331 -0
- package/dist/components/charts/forecast-cone/styled.js +12 -0
- package/dist/components/charts/heatmap/logic.js +9 -9
- package/dist/components/charts/highlighting-line-data/logic.js +10 -10
- package/dist/components/charts/line/logic.js +20 -19
- package/dist/components/charts/logaritmic-scale/logic.js +31 -30
- package/dist/components/charts/multiple-value-axes/logic.js +19 -18
- package/dist/components/charts/nested-pie/logic.js +3 -3
- package/dist/components/charts/packed-circles/logic.js +7 -7
- package/dist/components/charts/pie-chart/logic.js +4 -4
- package/dist/components/charts/stacked-area-radar/logic.js +9 -9
- package/dist/components/charts/stacked-column-chart/logic.js +10 -10
- package/dist/components/charts/xy-chart/logic.js +29 -28
- package/dist/components/metric-card/MetricChart.js +9 -9
- package/dist/main.d.ts +69 -1
- package/dist/main.js +167 -165
- package/package.json +1 -1
- package/dist/GaplessDateAxis-B2g2jgSG.js +0 -376
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as x, I as L, a as u, p as v, J as N, m as R, e as p, K as C, f, _ as A } from "./Entity-
|
|
2
|
-
import { T as S, s as d, S as P, D as B } from "./AnimatedTheme-
|
|
3
|
-
import { C as H } from "./ColorSet-
|
|
4
|
-
import { C as _, a as T, b as O, L as j } from "./Tooltip-
|
|
1
|
+
import { b as x, I as L, a as u, p as v, J as N, m as R, e as p, K as C, f, _ as A } from "./Entity-4Lr2piVN.js";
|
|
2
|
+
import { T as S, s as d, S as P, D as B } from "./AnimatedTheme-D3VZKKNV.js";
|
|
3
|
+
import { C as H } from "./ColorSet-DGLMpbL3.js";
|
|
4
|
+
import { C as _, a as T, b as O, L as j } from "./Tooltip-RhAldW7s.js";
|
|
5
5
|
class I extends S {
|
|
6
6
|
setupDefaultRules() {
|
|
7
7
|
super.setupDefaultRules();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as C } from "./AnimatedTheme-
|
|
2
|
-
import { a as b, b as f, C as _, L as w } from "./Tooltip-
|
|
3
|
-
import { R as T } from "./RoundedRectangle-
|
|
4
|
-
import { m as i } from "./Entity-
|
|
1
|
+
import { S as C } from "./AnimatedTheme-D3VZKKNV.js";
|
|
2
|
+
import { a as b, b as f, C as _, L as w } from "./Tooltip-RhAldW7s.js";
|
|
3
|
+
import { R as T } from "./RoundedRectangle-B23Oh_r6.js";
|
|
4
|
+
import { m as i } from "./Entity-4Lr2piVN.js";
|
|
5
5
|
class k extends C {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments), Object.defineProperty(this, "itemContainers", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as U } from "./AxisRenderer-
|
|
2
|
-
import { a as S, b as D, G as A, R as fe } from "./Tooltip-
|
|
3
|
-
import { m as G, e as j,
|
|
4
|
-
import { D as he } from "./AnimatedTheme-
|
|
1
|
+
import { b as U } from "./AxisRenderer-Doyw-FTI.js";
|
|
2
|
+
import { a as S, b as D, G as A, R as fe } from "./Tooltip-RhAldW7s.js";
|
|
3
|
+
import { m as G, e as j, v as K, c as ce, f as Q } from "./Entity-4Lr2piVN.js";
|
|
4
|
+
import { D as he } from "./AnimatedTheme-D3VZKKNV.js";
|
|
5
5
|
import { w as W, c as g } from "./path-CNVruS--.js";
|
|
6
6
|
function Z(o) {
|
|
7
7
|
return typeof o == "object" && "length" in o ? o : Array.from(o);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as M, e as v, f as w, C as G } from "./Entity-
|
|
2
|
-
import { c as B, s as C } from "./Tooltip-
|
|
1
|
+
import { E as M, e as v, f as w, C as G } from "./Entity-4Lr2piVN.js";
|
|
2
|
+
import { c as B, s as C } from "./Tooltip-RhAldW7s.js";
|
|
3
3
|
class c extends M {
|
|
4
4
|
_afterNew() {
|
|
5
5
|
super._afterNewApplyThemes();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as T, p as H, a as f, e as d, _ as k, f as j, P as
|
|
2
|
-
import { S as B, T as
|
|
3
|
-
import { T as V, s as X, S as F } from "./AnimatedTheme-
|
|
4
|
-
import { C as W } from "./ColorSet-
|
|
5
|
-
import { C as A, v as U, g as M, m as K, a as x, b as D, c as P, s as m, n as q } from "./Tooltip-
|
|
6
|
-
import { S as E, R as $ } from "./Slice-
|
|
1
|
+
import { b as T, p as H, a as f, e as d, _ as k, f as j, P as z, z as b, m as w } from "./Entity-4Lr2piVN.js";
|
|
2
|
+
import { S as B, T as Y } from "./Tick-CRu6rQQy.js";
|
|
3
|
+
import { T as V, s as X, S as F } from "./AnimatedTheme-D3VZKKNV.js";
|
|
4
|
+
import { C as W } from "./ColorSet-DGLMpbL3.js";
|
|
5
|
+
import { C as A, v as U, g as M, m as K, a as x, b as D, c as P, s as m, n as q } from "./Tooltip-RhAldW7s.js";
|
|
6
|
+
import { S as E, R as $ } from "./Slice-CIP7Vmzu.js";
|
|
7
7
|
class G extends V {
|
|
8
8
|
setupDefaultRules() {
|
|
9
9
|
super.setupDefaultRules();
|
|
@@ -497,7 +497,7 @@ class R extends y {
|
|
|
497
497
|
let r = M(0, 0, s, a, 1);
|
|
498
498
|
const u = e / (r.right - r.left), h = i / (r.bottom - r.top);
|
|
499
499
|
let o = { left: 0, right: 0, top: 0, bottom: 0 };
|
|
500
|
-
if (l instanceof
|
|
500
|
+
if (l instanceof z) {
|
|
501
501
|
let c = l.value, g = Math.min(u, h);
|
|
502
502
|
c = Math.max(g * c, g - Math.min(i, e)) / g, o = M(0, 0, s, a, c), this.setPrivateRaw("irModifyer", c / l.value);
|
|
503
503
|
}
|
|
@@ -577,7 +577,7 @@ class L extends _ {
|
|
|
577
577
|
}, [this.labels.template]));
|
|
578
578
|
}
|
|
579
579
|
_makeTicks() {
|
|
580
|
-
return new x(D.new({}), () =>
|
|
580
|
+
return new x(D.new({}), () => Y._new(this._root, {
|
|
581
581
|
themeTags: w(this.ticks.template.get("themeTags", []), ["pie", "series"])
|
|
582
582
|
}, [this.ticks.template]));
|
|
583
583
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as y,
|
|
2
|
-
import { R as p, f as m } from "./Tooltip-
|
|
1
|
+
import { f as y, z as b } from "./Entity-4Lr2piVN.js";
|
|
2
|
+
import { R as p, f as m } from "./Tooltip-RhAldW7s.js";
|
|
3
3
|
class T extends p {
|
|
4
4
|
_beforeChanged() {
|
|
5
5
|
super._beforeChanged(), (this.isDirty("cornerRadiusTL") || this.isDirty("cornerRadiusTR") || this.isDirty("cornerRadiusBR") || this.isDirty("cornerRadiusBL")) && (this._clear = !0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as b } from "./RoundedRectangle-
|
|
2
|
-
import { C as w, G as v } from "./Tooltip-
|
|
3
|
-
import { B as x } from "./Button-
|
|
4
|
-
import { m as f,
|
|
1
|
+
import { R as b } from "./RoundedRectangle-B23Oh_r6.js";
|
|
2
|
+
import { C as w, G as v } from "./Tooltip-RhAldW7s.js";
|
|
3
|
+
import { B as x } from "./Button-DGOT8RcT.js";
|
|
4
|
+
import { m as f, y as D, f as g } from "./Entity-4Lr2piVN.js";
|
|
5
5
|
class _ extends w {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments), Object.defineProperty(this, "thumb", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as ye, h as re, L as pe, n as be, c as H, s as J, G as me } from "./Tooltip-
|
|
1
|
+
import { z as Re, a as he, P as ne, f as ce } from "./Entity-4Lr2piVN.js";
|
|
2
|
+
import { e as ye, h as re, L as pe, n as be, c as H, s as J, G as me } from "./Tooltip-RhAldW7s.js";
|
|
3
3
|
import { w as xe, c as I } from "./path-CNVruS--.js";
|
|
4
4
|
class Q extends ye {
|
|
5
5
|
constructor() {
|
|
@@ -114,9 +114,9 @@ Object.defineProperty(ue, "classNames", {
|
|
|
114
114
|
writable: !0,
|
|
115
115
|
value: pe.classNames.concat([ue.className])
|
|
116
116
|
});
|
|
117
|
-
const fe = Math.abs, p = Math.atan2, L = Math.cos, ve = Math.max, ae = Math.min, j = Math.sin, q = Math.sqrt, b = 1e-12,
|
|
117
|
+
const fe = Math.abs, p = Math.atan2, L = Math.cos, ve = Math.max, ae = Math.min, j = Math.sin, q = Math.sqrt, b = 1e-12, z = Math.PI, U = z / 2, we = 2 * z;
|
|
118
118
|
function De(n) {
|
|
119
|
-
return n > 1 ? 0 : n < -1 ?
|
|
119
|
+
return n > 1 ? 0 : n < -1 ? z : Math.acos(n);
|
|
120
120
|
}
|
|
121
121
|
function ge(n) {
|
|
122
122
|
return n >= 1 ? U : n <= -1 ? -U : Math.asin(n);
|
|
@@ -162,25 +162,25 @@ function ke() {
|
|
|
162
162
|
else {
|
|
163
163
|
var w = m, x = R, _ = m, P = R, T = C, O = C, M = c.apply(this, arguments) / 2, B = M > b && (h ? +h.apply(this, arguments) : q(u * u + f * f)), N = ae(fe(f - u) / 2, +d.apply(this, arguments)), D = N, A = N, i, o;
|
|
164
164
|
if (B > b) {
|
|
165
|
-
var S = ge(B / u * j(M)),
|
|
166
|
-
(T -= S * 2) > b ? (S *= g ? 1 : -1, _ += S, P -= S) : (T = 0, _ = P = (m + R) / 2), (O -=
|
|
165
|
+
var S = ge(B / u * j(M)), G = ge(B / f * j(M));
|
|
166
|
+
(T -= S * 2) > b ? (S *= g ? 1 : -1, _ += S, P -= S) : (T = 0, _ = P = (m + R) / 2), (O -= G * 2) > b ? (G *= g ? 1 : -1, w += G, x -= G) : (O = 0, w = x = (m + R) / 2);
|
|
167
167
|
}
|
|
168
|
-
var X = f * L(w), Y = f * j(w),
|
|
168
|
+
var X = f * L(w), Y = f * j(w), $ = u * L(P), E = u * j(P);
|
|
169
169
|
if (N > b) {
|
|
170
170
|
var K = f * L(x), V = f * j(x), W = u * L(_), Z = u * j(_), k;
|
|
171
|
-
if (C <
|
|
172
|
-
if (k = je(X, Y, W, Z, K, V,
|
|
171
|
+
if (C < z)
|
|
172
|
+
if (k = je(X, Y, W, Z, K, V, $, E)) {
|
|
173
173
|
var ee = X - k[0], te = Y - k[1], ie = K - k[0], se = V - k[1], oe = 1 / j(De((ee * ie + te * se) / (q(ee * ee + te * te) * q(ie * ie + se * se))) / 2), de = q(k[0] * k[0] + k[1] * k[1]);
|
|
174
174
|
D = ae(N, (u - de) / (oe - 1)), A = ae(N, (f - de) / (oe + 1));
|
|
175
175
|
} else
|
|
176
176
|
D = A = 0;
|
|
177
177
|
}
|
|
178
|
-
O > b ? A > b ? (i = F(W, Z, X, Y, f, A, g), o = F(K, V,
|
|
178
|
+
O > b ? A > b ? (i = F(W, Z, X, Y, f, A, g), o = F(K, V, $, E, f, A, g), t.moveTo(i.cx + i.x01, i.cy + i.y01), A < N ? t.arc(i.cx, i.cy, A, p(i.y01, i.x01), p(o.y01, o.x01), !g) : (t.arc(i.cx, i.cy, A, p(i.y01, i.x01), p(i.y11, i.x11), !g), t.arc(0, 0, f, p(i.cy + i.y11, i.cx + i.x11), p(o.cy + o.y11, o.cx + o.x11), !g), t.arc(o.cx, o.cy, A, p(o.y11, o.x11), p(o.y01, o.x01), !g))) : (t.moveTo(X, Y), t.arc(0, 0, f, w, x, !g)) : t.moveTo(X, Y), !(u > b) || !(T > b) ? t.lineTo($, E) : D > b ? (i = F($, E, K, V, u, -D, g), o = F(X, Y, W, Z, u, -D, g), t.lineTo(i.cx + i.x01, i.cy + i.y01), D < N ? t.arc(i.cx, i.cy, D, p(i.y01, i.x01), p(o.y01, o.x01), !g) : (t.arc(i.cx, i.cy, D, p(i.y01, i.x01), p(i.y11, i.x11), !g), t.arc(0, 0, u, p(i.cy + i.y11, i.cx + i.x11), p(o.cy + o.y11, o.cx + o.x11), g), t.arc(o.cx, o.cy, D, p(o.y11, o.x11), p(o.y01, o.x01), !g))) : t.arc(0, 0, u, P, _, g);
|
|
179
179
|
}
|
|
180
180
|
if (t.closePath(), e) return t = null, e + "" || null;
|
|
181
181
|
}
|
|
182
182
|
return s.centroid = function() {
|
|
183
|
-
var e = (+n.apply(this, arguments) + +a.apply(this, arguments)) / 2, v = (+r.apply(this, arguments) + +l.apply(this, arguments)) / 2 -
|
|
183
|
+
var e = (+n.apply(this, arguments) + +a.apply(this, arguments)) / 2, v = (+r.apply(this, arguments) + +l.apply(this, arguments)) / 2 - z / 2;
|
|
184
184
|
return [L(v) * e, j(v) * e];
|
|
185
185
|
}, s.innerRadius = function(e) {
|
|
186
186
|
return arguments.length ? (n = typeof e == "function" ? e : I(+e), s) : n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as b, C as o, d as w } from "./Tooltip-
|
|
2
|
-
import { b as n, e as v } from "./Entity-
|
|
1
|
+
import { G as b, C as o, d as w } from "./Tooltip-RhAldW7s.js";
|
|
2
|
+
import { b as n, e as v } from "./Entity-4Lr2piVN.js";
|
|
3
3
|
function p(i, t) {
|
|
4
4
|
for (let e = 0, r = t.length; e < r; e++) {
|
|
5
5
|
const s = t[e];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as w, aj as mt, a8 as St,
|
|
1
|
+
import { e as w, aj as mt, a8 as St, q as rt, av as yt, aw as Ot, f as m, j as H, a7 as Z, F as B, M as C, D as Ct, l as bt, k as lt, E as F, P as D, ad as vt, z as L, d as q, i as Dt, ax as at, _ as nt, ay as Lt, aa as It, az as wt, R as xt, C as ht, ae as Mt, t as Pt, aA as Bt, aB as kt, v as Wt, y as Nt, aC as Rt, b as Ft, a as At, m as Gt } from "./Entity-4Lr2piVN.js";
|
|
2
2
|
function z(n, t) {
|
|
3
3
|
if (!(n >= 0 && n < t))
|
|
4
4
|
throw new Error("Index out of bounds: " + n);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as m, G as X, r as v } from "./Tooltip-
|
|
2
|
-
import { m as Y, b, s as y, d as T, e as C, i as L, k as w, g as A, f as P } from "./Entity-
|
|
3
|
-
import { G as x } from "./AxisRenderer-
|
|
1
|
+
import { C as m, G as X, r as v } from "./Tooltip-RhAldW7s.js";
|
|
2
|
+
import { m as Y, b, s as y, d as T, e as C, i as L, k as w, g as A, f as P } from "./Entity-4Lr2piVN.js";
|
|
3
|
+
import { G as x } from "./AxisRenderer-Doyw-FTI.js";
|
|
4
4
|
class c extends m {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments), Object.defineProperty(this, "_alwaysShow", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as c, R as x, f as v } from "./Tooltip-
|
|
2
|
-
import { b as g, c as D, f,
|
|
1
|
+
import { C as c, R as x, f as v } from "./Tooltip-RhAldW7s.js";
|
|
2
|
+
import { b as g, c as D, f, y as O, k as b, j as z } from "./Entity-4Lr2piVN.js";
|
|
3
3
|
class d extends c {
|
|
4
4
|
constructor() {
|
|
5
5
|
super(...arguments), Object.defineProperty(this, "_za", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as x } from "../../../Tooltip-
|
|
2
|
-
import { c as p, p as v } from "../../../Entity-
|
|
1
|
+
import { T as x } from "../../../Tooltip-RhAldW7s.js";
|
|
2
|
+
import { c as p, p as v } from "../../../Entity-4Lr2piVN.js";
|
|
3
3
|
const F = {
|
|
4
4
|
millisecond: "d MMM, yyyy HH:mm:ss.SSS",
|
|
5
5
|
second: "d MMM, yyyy HH:mm:ss",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { buildAmNumberFormat as e } from "./format.js";
|
|
2
|
-
import { C as m } from "../../../ColorSet-
|
|
3
|
-
import { c as F } from "../../../Entity-
|
|
2
|
+
import { C as m } from "../../../ColorSet-DGLMpbL3.js";
|
|
3
|
+
import { c as F } from "../../../Entity-4Lr2piVN.js";
|
|
4
4
|
const a = [
|
|
5
5
|
"#294D94",
|
|
6
6
|
"#375F97",
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { R as le, A as ne } from "../../../AnimatedTheme-
|
|
1
|
+
import { R as le, A as ne } from "../../../AnimatedTheme-D3VZKKNV.js";
|
|
2
2
|
import { useTheme as he, useThemeProps as ce } from "@mui/material";
|
|
3
3
|
import ue from "lodash";
|
|
4
4
|
import { useRef as N, useLayoutEffect as ge, useEffect as B } from "react";
|
|
5
5
|
import { getTooltipDateFormat as pe, attachCursorTooltip as me } from "../_common/tooltip.js";
|
|
6
|
-
import { m as U, e as Z, c as p, p as de } from "../../../Entity-
|
|
7
|
-
import { X as
|
|
8
|
-
import { X as
|
|
9
|
-
import { A as xe, a as J } from "../../../AxisRendererY-
|
|
10
|
-
import { C as G } from "../../../ColumnSeries-
|
|
11
|
-
import { R as te } from "../../../RoundedRectangle-
|
|
12
|
-
import { a as K, b as Q } from "../../../Tooltip-
|
|
13
|
-
import { D as ee
|
|
14
|
-
import {
|
|
6
|
+
import { m as U, e as Z, c as p, p as de } from "../../../Entity-4Lr2piVN.js";
|
|
7
|
+
import { X as fe, V as q } from "../../../AxisRenderer-Doyw-FTI.js";
|
|
8
|
+
import { X as we } from "../../../XYCursor-Z-Ral42q.js";
|
|
9
|
+
import { A as xe, a as J } from "../../../AxisRendererY-BylCU67e.js";
|
|
10
|
+
import { C as G } from "../../../ColumnSeries-CqJ-563p.js";
|
|
11
|
+
import { R as te } from "../../../RoundedRectangle-B23Oh_r6.js";
|
|
12
|
+
import { a as K, b as Q } from "../../../Tooltip-RhAldW7s.js";
|
|
13
|
+
import { D as ee } from "../../../DataProcessor-WXzhvIg6.js";
|
|
14
|
+
import { G as Ye } from "../../../GaplessDateAxis-DowssQ6y.js";
|
|
15
|
+
import { D as ye } from "../../../DateAxis-lJZjbAS-.js";
|
|
15
16
|
class T extends te {
|
|
16
17
|
_beforeChanged() {
|
|
17
18
|
super._beforeChanged(), (this.isDirty("lowX0") || this.isDirty("lowY0") || this.isDirty("lowX1") || this.isDirty("lowY1") || this.isDirty("highX0") || this.isDirty("highX1") || this.isDirty("highY0") || this.isDirty("highY1")) && (this._clear = !0);
|
|
@@ -56,34 +57,34 @@ class V extends G {
|
|
|
56
57
|
}
|
|
57
58
|
_updateGraphics(e, s, m) {
|
|
58
59
|
super._updateGraphics(e, s, m);
|
|
59
|
-
const
|
|
60
|
-
let Y = this.get("vcy", 1), y = this.get("vcx", 1), h, c, r, i, d, u, g,
|
|
60
|
+
const w = this.getRaw("xAxis"), x = this.getRaw("yAxis");
|
|
61
|
+
let Y = this.get("vcy", 1), y = this.get("vcx", 1), h, c, r, i, d, u, g, f, o = this.get("locationX", e.get("locationX", 0.5)), l = this.get("locationY", e.get("locationY", 0.5)), D = this.get("openLocationX", e.get("openLocationX", o)), a = this.get("openLocationY", e.get("openLocationY", l)), _;
|
|
61
62
|
if (m == 0) {
|
|
62
63
|
let v = x.getDataItemPositionY(e, this._yOpenField, 1, Y), t = x.getDataItemPositionY(e, this._yField, 1, Y);
|
|
63
|
-
i = x.getDataItemPositionY(e, this._yLowField, 1, Y),
|
|
64
|
+
i = x.getDataItemPositionY(e, this._yLowField, 1, Y), f = x.getDataItemPositionY(e, this._yHighField, 1, Y), g = Math.max(v, t), r = Math.min(v, t);
|
|
64
65
|
let n = this._aLocationX0 + D - 0.5, C = this._aLocationX1 + o - 0.5;
|
|
65
|
-
h =
|
|
66
|
+
h = w.getDataItemPositionX(e, this._xField, n + (C - n) / 2, y), c = h, d = h, u = h, _ = "vertical";
|
|
66
67
|
} else {
|
|
67
|
-
let v =
|
|
68
|
-
c =
|
|
68
|
+
let v = w.getDataItemPositionX(e, this._xOpenField, 1, y), t = w.getDataItemPositionX(e, this._xField, 1, y);
|
|
69
|
+
c = w.getDataItemPositionX(e, this._xLowField, 1, y), u = w.getDataItemPositionX(e, this._xHighField, 1, y), d = Math.max(v, t), h = Math.min(v, t);
|
|
69
70
|
let n = this._aLocationY0 + a - 0.5, C = this._aLocationY1 + l - 0.5;
|
|
70
|
-
r = x.getDataItemPositionY(e, this._yField, n + (C - n) / 2, Y), i = r, g = r,
|
|
71
|
+
r = x.getDataItemPositionY(e, this._yField, n + (C - n) / 2, Y), i = r, g = r, f = r, _ = "horizontal";
|
|
71
72
|
}
|
|
72
|
-
this._updateCandleGraphics(e, h, c, r, i, d, u, g,
|
|
73
|
+
this._updateCandleGraphics(e, h, c, r, i, d, u, g, f, _);
|
|
73
74
|
}
|
|
74
|
-
_updateCandleGraphics(e, s, m,
|
|
75
|
+
_updateCandleGraphics(e, s, m, w, x, Y, y, h, c, r) {
|
|
75
76
|
let i = e.get("graphics");
|
|
76
77
|
if (i) {
|
|
77
|
-
let d = this.getPoint(s,
|
|
78
|
+
let d = this.getPoint(s, w), u = this.getPoint(m, x), g = this.getPoint(Y, h), f = this.getPoint(y, c);
|
|
78
79
|
if (this.get("turboMode")) {
|
|
79
80
|
const o = this.allColumnsData[this.allColumnsData.length - 1];
|
|
80
|
-
o.lowX0 = d.x, o.lowY0 = d.y, o.lowX1 = u.x, o.lowY1 = u.y, o.highX0 = g.x, o.highY0 = g.y, o.highX1 =
|
|
81
|
+
o.lowX0 = d.x, o.lowY0 = d.y, o.lowX1 = u.x, o.lowY1 = u.y, o.highX0 = g.x, o.highY0 = g.y, o.highX1 = f.x, o.highY1 = f.y;
|
|
81
82
|
} else {
|
|
82
83
|
let o = i.x(), l = i.y();
|
|
83
|
-
i.set("lowX0", d.x - o), i.set("lowY0", d.y - l), i.set("lowX1", u.x - o), i.set("lowY1", u.y - l), i.set("highX0", g.x - o), i.set("highY0", g.y - l), i.set("highX1",
|
|
84
|
+
i.set("lowX0", d.x - o), i.set("lowY0", d.y - l), i.set("lowX1", u.x - o), i.set("lowY1", u.y - l), i.set("highX0", g.x - o), i.set("highY0", g.y - l), i.set("highX1", f.x - o), i.set("highY1", f.y - l), i.set("orientation", r);
|
|
84
85
|
let D = e.get("rangeGraphics");
|
|
85
86
|
D && Z(D, (a) => {
|
|
86
|
-
a.set("lowX0", d.x - o), a.set("lowY0", d.y - l), a.set("lowX1", u.x - o), a.set("lowY1", u.y - l), a.set("highX0", g.x - o), a.set("highY0", g.y - l), a.set("highX1",
|
|
87
|
+
a.set("lowX0", d.x - o), a.set("lowY0", d.y - l), a.set("lowX1", u.x - o), a.set("lowY1", u.y - l), a.set("highX0", g.x - o), a.set("highY0", g.y - l), a.set("highX1", f.x - o), a.set("highY1", f.y - l), a.set("orientation", r);
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
90
|
}
|
|
@@ -92,8 +93,8 @@ class V extends G {
|
|
|
92
93
|
this.get("turboMode") && this.allColumns.set("draw", (e) => {
|
|
93
94
|
e.clear(), Z(this.allColumnsData, (s) => {
|
|
94
95
|
e.beginPath();
|
|
95
|
-
const m = s.width,
|
|
96
|
-
e.beginFill(h, i), e.beginPath(), e.lineStyle(c, y, r), e.drawRect(x, Y, m,
|
|
96
|
+
const m = s.width, w = s.height, x = s.x, Y = s.y, y = s.stroke, h = s.fill, c = s.strokeWidth, r = s.strokeOpacity, i = s.fillOpacity, d = s.lowX0, u = s.lowY0, g = s.lowX1, f = s.lowY1, o = s.highX0, l = s.highY0, D = s.highX1, a = s.highY1;
|
|
97
|
+
e.beginFill(h, i), e.beginPath(), e.lineStyle(c, y, r), e.drawRect(x, Y, m, w), e.moveTo(d, u), e.lineTo(g, f), e.moveTo(o, l), e.lineTo(D, a), e.endStroke(), e.endFill();
|
|
97
98
|
});
|
|
98
99
|
});
|
|
99
100
|
}
|
|
@@ -115,13 +116,13 @@ Object.defineProperty(V, "classNames", {
|
|
|
115
116
|
writable: !0,
|
|
116
117
|
value: G.classNames.concat([V.className])
|
|
117
118
|
});
|
|
118
|
-
const
|
|
119
|
+
const $e = ($) => {
|
|
119
120
|
const e = he(), s = ce({
|
|
120
121
|
props: $,
|
|
121
122
|
name: "HCCandlestickChart"
|
|
122
123
|
}), {
|
|
123
124
|
data: m,
|
|
124
|
-
seriesName:
|
|
125
|
+
seriesName: w,
|
|
125
126
|
height: x = "100%",
|
|
126
127
|
width: Y = "100%",
|
|
127
128
|
chartId: y = "candlestick-chart",
|
|
@@ -132,7 +133,7 @@ const Ve = ($) => {
|
|
|
132
133
|
emptyMessage: d = "No data available",
|
|
133
134
|
baseInterval: u,
|
|
134
135
|
skipEmptyDates: g = !1,
|
|
135
|
-
sx:
|
|
136
|
+
sx: f,
|
|
136
137
|
...o
|
|
137
138
|
} = s, l = ue.orderBy(m, ["date"]), D = {
|
|
138
139
|
...s,
|
|
@@ -157,7 +158,7 @@ const Ve = ($) => {
|
|
|
157
158
|
stroke: p(e.palette.divider)
|
|
158
159
|
});
|
|
159
160
|
const n = t.container.children.push(
|
|
160
|
-
|
|
161
|
+
fe.new(t, {
|
|
161
162
|
panX: !0,
|
|
162
163
|
panY: !0,
|
|
163
164
|
wheelX: "none",
|
|
@@ -169,7 +170,7 @@ const Ve = ($) => {
|
|
|
169
170
|
);
|
|
170
171
|
a.current = n, n.set(
|
|
171
172
|
"cursor",
|
|
172
|
-
|
|
173
|
+
we.new(t, {
|
|
173
174
|
behavior: "zoomX"
|
|
174
175
|
})
|
|
175
176
|
).lineY.set("visible", !1);
|
|
@@ -198,7 +199,7 @@ const Ve = ($) => {
|
|
|
198
199
|
});
|
|
199
200
|
const A = n.series.push(
|
|
200
201
|
V.new(t, {
|
|
201
|
-
name:
|
|
202
|
+
name: w || "Price",
|
|
202
203
|
xAxis: L,
|
|
203
204
|
yAxis: S,
|
|
204
205
|
valueXField: "date",
|
|
@@ -297,7 +298,7 @@ ${R.join(`
|
|
|
297
298
|
}, [c, r]), {
|
|
298
299
|
chartDivRef: v,
|
|
299
300
|
data: m,
|
|
300
|
-
seriesName:
|
|
301
|
+
seriesName: w,
|
|
301
302
|
height: x,
|
|
302
303
|
width: Y,
|
|
303
304
|
chartId: y,
|
|
@@ -306,11 +307,11 @@ ${R.join(`
|
|
|
306
307
|
fallingColor: r,
|
|
307
308
|
loading: i,
|
|
308
309
|
emptyMessage: d,
|
|
309
|
-
sx:
|
|
310
|
+
sx: f,
|
|
310
311
|
other: o,
|
|
311
312
|
ownerState: D
|
|
312
313
|
};
|
|
313
314
|
};
|
|
314
315
|
export {
|
|
315
|
-
|
|
316
|
+
$e as useCandlestickChartLogic
|
|
316
317
|
};
|
|
@@ -1,47 +1,49 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { Loading as
|
|
4
|
-
import { CandlestickChart as
|
|
1
|
+
import { jsxs as a, jsx as r, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as C, Divider as h } from "@mui/material";
|
|
3
|
+
import { Loading as c } from "../../loading/index.js";
|
|
4
|
+
import { CandlestickChart as d } from "../candlestick/index.js";
|
|
5
5
|
import { ColumnLineMix as f } from "../column-line-mix/index.js";
|
|
6
6
|
import { DonutChart as s } from "../donut-chart/index.js";
|
|
7
7
|
import { DrillDownTreemap as u } from "../drill-down-treemap/index.js";
|
|
8
8
|
import { DrillDownVoronoiTreemap as D } from "../drill-down-voronoi-treemap/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ r(C, {}),
|
|
26
|
-
/* @__PURE__ */ r(
|
|
27
|
-
|
|
28
|
-
o === "
|
|
29
|
-
o === "
|
|
30
|
-
o === "
|
|
9
|
+
import { ForecastConeChart as L } from "../forecast-cone/index.js";
|
|
10
|
+
import { Heatmap as g } from "../heatmap/index.js";
|
|
11
|
+
import { LineChart as x } from "../line/index.js";
|
|
12
|
+
import { LogaritmicScale as k } from "../logaritmic-scale/index.js";
|
|
13
|
+
import { MultipleValueAxes as S } from "../multiple-value-axes/index.js";
|
|
14
|
+
import { NestedPie as P } from "../nested-pie/index.js";
|
|
15
|
+
import { PackedCircles as w } from "../packed-circles/index.js";
|
|
16
|
+
import { PieChart as A } from "../pie-chart/index.js";
|
|
17
|
+
import { StackedAreaRadar as T } from "../stacked-area-radar/index.js";
|
|
18
|
+
import { StackedColumnChart as W } from "../stacked-column-chart/index.js";
|
|
19
|
+
import { XYChart as M } from "../xy-chart/index.js";
|
|
20
|
+
import { useChartWrapperLogic as V } from "./logic.js";
|
|
21
|
+
import { ChartWrapperRoot as v, ChartWrapperHeader as y, ChartWrapperContent as F } from "./styled.js";
|
|
22
|
+
const rr = (i) => {
|
|
23
|
+
const { title: m, type: o, chartProps: e, loading: p, ownerState: t, sx: n } = V(i);
|
|
24
|
+
return /* @__PURE__ */ a(v, { ownerState: t, sx: n, children: [
|
|
25
|
+
/* @__PURE__ */ r(y, { ownerState: t, children: /* @__PURE__ */ r(C, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: m }) }),
|
|
26
|
+
/* @__PURE__ */ r(h, {}),
|
|
27
|
+
/* @__PURE__ */ r(F, { ownerState: t, children: p ? /* @__PURE__ */ r(c, { show: !0, position: "absolute" }) : /* @__PURE__ */ a(l, { children: [
|
|
28
|
+
o === "MultipleValueAxes" && /* @__PURE__ */ r(S, { ...e }),
|
|
29
|
+
o === "XYChart" && /* @__PURE__ */ r(M, { ...e }),
|
|
30
|
+
o === "HeatLegend" && /* @__PURE__ */ r(g, { ...e }),
|
|
31
|
+
o === "PieChart" && /* @__PURE__ */ r(A, { ...e }),
|
|
31
32
|
o === "DonutChart" && /* @__PURE__ */ r(s, { ...e }),
|
|
32
|
-
o === "StackedColumnChart" && /* @__PURE__ */ r(
|
|
33
|
-
o === "StackedAreaRadar" && /* @__PURE__ */ r(
|
|
34
|
-
o === "LineChart" && /* @__PURE__ */ r(
|
|
35
|
-
o === "NestedPie" && /* @__PURE__ */ r(
|
|
36
|
-
o === "SingleLevelPackedCircles" && /* @__PURE__ */ r(
|
|
37
|
-
o === "LogarithmicScale" && /* @__PURE__ */ r(
|
|
33
|
+
o === "StackedColumnChart" && /* @__PURE__ */ r(W, { ...e }),
|
|
34
|
+
o === "StackedAreaRadar" && /* @__PURE__ */ r(T, { ...e }),
|
|
35
|
+
o === "LineChart" && /* @__PURE__ */ r(x, { ...e }),
|
|
36
|
+
o === "NestedPie" && /* @__PURE__ */ r(P, { ...e }),
|
|
37
|
+
o === "SingleLevelPackedCircles" && /* @__PURE__ */ r(w, { ...e }),
|
|
38
|
+
o === "LogarithmicScale" && /* @__PURE__ */ r(k, { ...e }),
|
|
38
39
|
o === "ColumnAndLineMix" && /* @__PURE__ */ r(f, { ...e }),
|
|
39
40
|
o === "DrillDownTreemap" && /* @__PURE__ */ r(u, { ...e }),
|
|
40
41
|
o === "DrillDownVoronoiTreemap" && /* @__PURE__ */ r(D, { ...e }),
|
|
41
|
-
o === "CandlestickChart" && /* @__PURE__ */ r(
|
|
42
|
+
o === "CandlestickChart" && /* @__PURE__ */ r(d, { ...e }),
|
|
43
|
+
o === "ForecastCone" && /* @__PURE__ */ r(L, { ...e })
|
|
42
44
|
] }) })
|
|
43
45
|
] });
|
|
44
46
|
};
|
|
45
47
|
export {
|
|
46
|
-
|
|
48
|
+
rr as ChartWrapper
|
|
47
49
|
};
|