@hybridcore/ui 1.6.30 → 1.6.32
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/components/charts/_common/utils.js +50 -31
- package/dist/components/charts/candlestick/logic.js +83 -86
- package/dist/components/charts/column-line-mix/logic.js +66 -70
- package/dist/components/charts/donut-chart/logic.js +61 -64
- package/dist/components/charts/drill-down-treemap/logic.js +69 -69
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +75 -75
- package/dist/components/charts/forecast-cone/logic.js +110 -114
- package/dist/components/charts/heatmap/logic.js +115 -119
- package/dist/components/charts/highlighting-line-data/logic.js +65 -64
- package/dist/components/charts/histogram/logic.js +66 -70
- package/dist/components/charts/line/logic.js +95 -99
- package/dist/components/charts/logaritmic-scale/logic.js +79 -83
- package/dist/components/charts/multiple-value-axes/logic.js +65 -69
- package/dist/components/charts/nested-pie/logic.js +49 -53
- package/dist/components/charts/packed-circles/logic.js +139 -139
- package/dist/components/charts/pie-chart/logic.js +55 -59
- package/dist/components/charts/stacked-area-radar/logic.js +92 -96
- package/dist/components/charts/stacked-column-chart/logic.js +64 -68
- package/dist/components/charts/xy-chart/logic.js +82 -86
- package/dist/components/metric-card/MetricChart.js +6 -4
- package/dist/components/paginated-list/index.js +16 -15
- package/dist/components/paginated-list/styled.js +34 -17
- package/package.json +1 -1
|
@@ -1,46 +1,42 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { useThemeProps as
|
|
1
|
+
import { R as U, A as V } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useThemeProps as q, useTheme as N } from "@mui/material";
|
|
3
3
|
import P from "dayjs";
|
|
4
|
-
import
|
|
4
|
+
import C from "lodash";
|
|
5
5
|
import { useId as z, useRef as H, useEffect as _ } from "react";
|
|
6
6
|
import { humanizeLabel as $ } from "../_common/format.js";
|
|
7
7
|
import { attachCombinedAxisTooltip as G } from "../_common/tooltip.js";
|
|
8
|
-
import { applyValueFormat as J,
|
|
9
|
-
import { c as p, a as h, p as Q } from "../../../Entity-BJCuhdq_.js";
|
|
8
|
+
import { applyValueFormat as J, applyInterfaceColors as K, colorSetFromPalette as Q } from "../_common/utils.js";
|
|
10
9
|
import { X as W, V as Z } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
11
10
|
import { A as ee, a as te } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
12
|
-
import { C as
|
|
11
|
+
import { C as b } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
13
12
|
import { L as re } from "../../../Legend-CFvQiIfn.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
import { a as f, c as D, p as oe } from "../../../Entity-BJCuhdq_.js";
|
|
14
|
+
import { X as ae } from "../../../XYCursor-CVUSpqb9.js";
|
|
15
|
+
import { C as se } from "../../../ColumnSeries-CtRTsn-E.js";
|
|
16
|
+
import { B as ne } from "../../../Bullet-Djj7Vs9T.js";
|
|
17
|
+
import { L as le } from "../../../Tooltip-vyZRZWih.js";
|
|
18
|
+
const Fe = (L) => {
|
|
19
|
+
const g = q({
|
|
20
20
|
props: L,
|
|
21
21
|
name: "HCStackedColumnChart"
|
|
22
22
|
}), {
|
|
23
|
-
dimensions:
|
|
23
|
+
dimensions: p,
|
|
24
24
|
values: n,
|
|
25
25
|
data: w,
|
|
26
26
|
initDelay: R = 0,
|
|
27
|
-
baseInterval:
|
|
28
|
-
colors:
|
|
27
|
+
baseInterval: u,
|
|
28
|
+
colors: v,
|
|
29
29
|
sx: O,
|
|
30
30
|
...B
|
|
31
|
-
} =
|
|
32
|
-
let
|
|
33
|
-
|
|
34
|
-
if (
|
|
35
|
-
let
|
|
36
|
-
return
|
|
37
|
-
var F, S
|
|
38
|
-
const e =
|
|
39
|
-
|
|
40
|
-
text: p(i.palette.text.primary),
|
|
41
|
-
grid: p(i.palette.divider),
|
|
42
|
-
stroke: p(i.palette.divider)
|
|
43
|
-
});
|
|
31
|
+
} = g, c = N(), k = `hc-stacked-column-chart-${z().replace(/:/g, "")}`, h = H(null);
|
|
32
|
+
let d = null;
|
|
33
|
+
p.length < 2 ? d = "StackedColumnChart requires at least 2 dimensions" : n.length < 1 && (d = "StackedColumnChart requires at least 1 value"), _(() => {
|
|
34
|
+
if (d) return;
|
|
35
|
+
let x;
|
|
36
|
+
return x = setTimeout(() => {
|
|
37
|
+
var X, F, S;
|
|
38
|
+
const e = U.new(k);
|
|
39
|
+
h.current = e, J(e, (X = n == null ? void 0 : n[0]) == null ? void 0 : X.format), e.setThemes([V.new(e)]), K(e, c);
|
|
44
40
|
const o = e.container.children.push(
|
|
45
41
|
W.new(e, {
|
|
46
42
|
panX: !1,
|
|
@@ -51,105 +47,105 @@ const Xe = (L) => {
|
|
|
51
47
|
layout: e.verticalLayout
|
|
52
48
|
})
|
|
53
49
|
);
|
|
54
|
-
o.set("colors",
|
|
50
|
+
o.set("colors", Q(e, v)), o.get("colors", {}).set("step", 2);
|
|
55
51
|
const Y = ee.new(e, {});
|
|
56
52
|
Y.grid.template.setAll({ location: 1 });
|
|
57
|
-
const a =
|
|
58
|
-
let l,
|
|
53
|
+
const a = p[0], M = p[1];
|
|
54
|
+
let l, m = w;
|
|
59
55
|
if (a.type === "date") {
|
|
60
|
-
const t = (
|
|
56
|
+
const t = (u == null ? void 0 : u.timeUnit) || "day";
|
|
61
57
|
let s = "DD/MM/YYYY";
|
|
62
58
|
t === "month" ? s = "MM YYYY" : t === "year" && (s = "YYYY"), l = o.xAxes.push(
|
|
63
|
-
|
|
59
|
+
b.new(e, {
|
|
64
60
|
categoryField: a.value,
|
|
65
61
|
renderer: Y
|
|
66
62
|
})
|
|
67
|
-
),
|
|
63
|
+
), m = C.orderBy(m, [a.value]), m = m.map((r) => ({
|
|
68
64
|
...r,
|
|
69
65
|
[a.value]: P(r[a.value]).format(s)
|
|
70
66
|
}));
|
|
71
67
|
} else
|
|
72
68
|
l = o.xAxes.push(
|
|
73
|
-
|
|
69
|
+
b.new(e, {
|
|
74
70
|
categoryField: a.value,
|
|
75
71
|
renderer: Y
|
|
76
72
|
})
|
|
77
73
|
);
|
|
78
|
-
const
|
|
79
|
-
Object.keys(
|
|
80
|
-
|
|
81
|
-
const r = s[a.value],
|
|
82
|
-
|
|
74
|
+
const i = [], A = C.groupBy(m, M.value);
|
|
75
|
+
Object.keys(A).forEach((t) => {
|
|
76
|
+
A[t].forEach((s) => {
|
|
77
|
+
const r = s[a.value], y = C.findIndex(i, { [a.value]: r });
|
|
78
|
+
y === -1 ? i.push({
|
|
83
79
|
[a.value]: r,
|
|
84
80
|
[t]: s[n[0].dataFieldName]
|
|
85
|
-
}) :
|
|
86
|
-
...
|
|
81
|
+
}) : i[y] = {
|
|
82
|
+
...i[y],
|
|
87
83
|
[t]: s[n[0].dataFieldName]
|
|
88
84
|
};
|
|
89
85
|
});
|
|
90
|
-
}), l.data.setAll(
|
|
91
|
-
const
|
|
86
|
+
}), l.data.setAll(i);
|
|
87
|
+
const T = o.yAxes.push(
|
|
92
88
|
Z.new(e, {
|
|
93
89
|
min: 0,
|
|
94
90
|
renderer: te.new(e, { strokeOpacity: 0.1 })
|
|
95
91
|
})
|
|
96
92
|
), j = o.children.push(
|
|
97
93
|
re.new(e, {
|
|
98
|
-
centerX:
|
|
99
|
-
x:
|
|
94
|
+
centerX: f,
|
|
95
|
+
x: f
|
|
100
96
|
})
|
|
101
97
|
);
|
|
102
|
-
(
|
|
103
|
-
stroke:
|
|
98
|
+
(F = l.get("renderer")) == null || F.grid.template.setAll({
|
|
99
|
+
stroke: D(c.palette.divider),
|
|
104
100
|
strokeOpacity: 1
|
|
105
|
-
}), (
|
|
106
|
-
stroke:
|
|
101
|
+
}), (S = T.get("renderer")) == null || S.grid.template.setAll({
|
|
102
|
+
stroke: D(c.palette.divider),
|
|
107
103
|
strokeOpacity: 1
|
|
108
104
|
});
|
|
109
|
-
function
|
|
105
|
+
function I(t, s) {
|
|
110
106
|
const r = o.series.push(
|
|
111
|
-
|
|
107
|
+
se.new(e, {
|
|
112
108
|
name: t,
|
|
113
109
|
stacked: !0,
|
|
114
110
|
xAxis: l,
|
|
115
|
-
yAxis:
|
|
111
|
+
yAxis: T,
|
|
116
112
|
valueYField: s,
|
|
117
113
|
categoryXField: a.value
|
|
118
114
|
})
|
|
119
115
|
);
|
|
120
116
|
r.columns.template.setAll({
|
|
121
|
-
tooltipY:
|
|
122
|
-
}), r.data.setAll(
|
|
123
|
-
return
|
|
124
|
-
sprite:
|
|
117
|
+
tooltipY: oe(10)
|
|
118
|
+
}), r.data.setAll(i), r.appear(), r.bullets.push(function() {
|
|
119
|
+
return ne.new(e, {
|
|
120
|
+
sprite: le.new(e, {
|
|
125
121
|
fill: e.interfaceColors.get("alternativeText"),
|
|
126
|
-
centerY:
|
|
127
|
-
centerX:
|
|
122
|
+
centerY: f,
|
|
123
|
+
centerX: f,
|
|
128
124
|
populateText: !0
|
|
129
125
|
})
|
|
130
126
|
});
|
|
131
127
|
}), j.data.push(r);
|
|
132
128
|
}
|
|
133
|
-
Object.keys(
|
|
129
|
+
Object.keys(A).forEach((t) => I($(t), t)), o.set(
|
|
134
130
|
"cursor",
|
|
135
|
-
|
|
131
|
+
ae.new(e, { xAxis: l, behavior: "none" })
|
|
136
132
|
).lineY.set("visible", !1), G({
|
|
137
133
|
root: e,
|
|
138
134
|
chart: o,
|
|
139
135
|
xAxis: l,
|
|
140
|
-
theme:
|
|
136
|
+
theme: c,
|
|
141
137
|
isDateAxis: !1,
|
|
142
|
-
baseInterval:
|
|
138
|
+
baseInterval: u,
|
|
143
139
|
follow: !0
|
|
144
140
|
}), o.appear(1e3, 100);
|
|
145
141
|
}, R), () => {
|
|
146
142
|
var e;
|
|
147
|
-
|
|
143
|
+
x && clearTimeout(x), (e = h.current) == null || e.dispose(), h.current = null;
|
|
148
144
|
};
|
|
149
|
-
}, [w,
|
|
150
|
-
const E = { ...
|
|
151
|
-
return { chartId:
|
|
145
|
+
}, [w, p, n, c.palette.mode, v]);
|
|
146
|
+
const E = { ...g };
|
|
147
|
+
return { chartId: k, ownerState: E, sx: O, error: d, other: B };
|
|
152
148
|
};
|
|
153
149
|
export {
|
|
154
|
-
|
|
150
|
+
Fe as useStackedColumnChartLogic
|
|
155
151
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { R as K, A as Q } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
2
|
import { useThemeProps as Z, useTheme as ee } from "@mui/material";
|
|
3
|
-
import
|
|
4
|
-
import { useId as te, useRef as
|
|
3
|
+
import A from "lodash";
|
|
4
|
+
import { useId as te, useRef as oe, useEffect as re } from "react";
|
|
5
5
|
import { humanizeLabel as E } from "../_common/format.js";
|
|
6
6
|
import { attachCombinedAxisTooltip as ae } from "../_common/tooltip.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { C as
|
|
12
|
-
import { T as
|
|
13
|
-
import { X as
|
|
14
|
-
import { a as
|
|
15
|
-
import { G as
|
|
16
|
-
import { D as
|
|
17
|
-
import { C as
|
|
18
|
-
const Be = (
|
|
19
|
-
const g = Z({ props:
|
|
20
|
-
dimensions:
|
|
21
|
-
values:
|
|
22
|
-
data:
|
|
7
|
+
import { applyInterfaceColors as se, colorSetFromPalette as ie, applyDateAxisLabelFormat as ne, applyValueFormat as le } from "../_common/utils.js";
|
|
8
|
+
import { X as ce, V as me } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
9
|
+
import { L as pe } from "../../../Legend-CFvQiIfn.js";
|
|
10
|
+
import { a as I, c as y, p as S } from "../../../Entity-BJCuhdq_.js";
|
|
11
|
+
import { C as de } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
12
|
+
import { T as ue, R as fe } from "../../../Tooltip-vyZRZWih.js";
|
|
13
|
+
import { X as he } from "../../../XYCursor-CVUSpqb9.js";
|
|
14
|
+
import { a as z, A as B } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
15
|
+
import { G as xe, D as Ae } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
16
|
+
import { D as ye } from "../../../DateAxis-DEXKps1S.js";
|
|
17
|
+
import { C as ge } from "../../../ColumnSeries-CtRTsn-E.js";
|
|
18
|
+
const Be = (G) => {
|
|
19
|
+
const g = Z({ props: G, name: "HCXYChart" }), {
|
|
20
|
+
dimensions: n,
|
|
21
|
+
values: l,
|
|
22
|
+
data: u,
|
|
23
23
|
initDelay: V = 0,
|
|
24
24
|
baseInterval: v,
|
|
25
25
|
colors: w,
|
|
@@ -27,20 +27,16 @@ const Be = (I) => {
|
|
|
27
27
|
orientation: D = "vertical",
|
|
28
28
|
sx: W,
|
|
29
29
|
...N
|
|
30
|
-
} = g,
|
|
31
|
-
|
|
30
|
+
} = g, m = ee(), X = `hc-xy-chart-${te().replace(/:/g, "")}`, f = oe(null), C = n.length < 1 ? "Missing dimensions config!" : null;
|
|
31
|
+
re(() => {
|
|
32
32
|
if (C) return;
|
|
33
|
-
let
|
|
34
|
-
return
|
|
33
|
+
let h;
|
|
34
|
+
return h = setTimeout(() => {
|
|
35
35
|
var k, L, O;
|
|
36
36
|
const t = D === "horizontal", e = K.new(X);
|
|
37
|
-
|
|
38
|
-
text: p(n.palette.text.primary),
|
|
39
|
-
grid: p(n.palette.divider),
|
|
40
|
-
stroke: p(n.palette.divider)
|
|
41
|
-
});
|
|
37
|
+
f.current = e, e.setThemes([Q.new(e)]), se(e, m);
|
|
42
38
|
const a = e.container.children.push(
|
|
43
|
-
|
|
39
|
+
ce.new(e, {
|
|
44
40
|
panX: !1,
|
|
45
41
|
panY: !1,
|
|
46
42
|
wheelX: "none",
|
|
@@ -50,139 +46,139 @@ const Be = (I) => {
|
|
|
50
46
|
layout: e.verticalLayout
|
|
51
47
|
})
|
|
52
48
|
);
|
|
53
|
-
a.set("colors",
|
|
49
|
+
a.set("colors", ie(e, w));
|
|
54
50
|
const q = a.children.push(
|
|
55
|
-
|
|
56
|
-
centerX:
|
|
57
|
-
x:
|
|
51
|
+
pe.new(e, {
|
|
52
|
+
centerX: I,
|
|
53
|
+
x: I
|
|
58
54
|
})
|
|
59
|
-
), s =
|
|
60
|
-
let
|
|
55
|
+
), s = n[0], F = t ? z : B, H = t ? B : z, R = t ? a.yAxes : a.xAxes, M = t ? a.xAxes : a.yAxes;
|
|
56
|
+
let r, p = u;
|
|
61
57
|
if (s.type === "date") {
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
const o = b ? xe : ye;
|
|
59
|
+
r = R.push(
|
|
60
|
+
o.new(e, {
|
|
65
61
|
maxDeviation: 0,
|
|
66
62
|
baseInterval: v || { timeUnit: "day", count: 1 },
|
|
67
63
|
renderer: F.new(e, { minGridDistance: 60 })
|
|
68
64
|
})
|
|
69
|
-
),
|
|
65
|
+
), ne(r, s), p = A.orderBy(u, [s.value]);
|
|
70
66
|
} else {
|
|
71
|
-
const
|
|
67
|
+
const o = F.new(e, {
|
|
72
68
|
cellStartLocation: 0.1,
|
|
73
69
|
cellEndLocation: 0.9,
|
|
74
70
|
minGridDistance: 30
|
|
75
71
|
});
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
r = R.push(
|
|
73
|
+
de.new(e, {
|
|
78
74
|
categoryField: s.value,
|
|
79
|
-
renderer:
|
|
75
|
+
renderer: o
|
|
80
76
|
})
|
|
81
|
-
),
|
|
77
|
+
), o.grid.template.setAll({ location: 1 }), r.labelsContainer.set(
|
|
82
78
|
"tooltip",
|
|
83
|
-
|
|
79
|
+
ue.new(e, {
|
|
84
80
|
pointerOrientation: t ? "right" : "down"
|
|
85
81
|
})
|
|
86
|
-
),
|
|
82
|
+
), o.labels.template.setAll({
|
|
87
83
|
oversizedBehavior: "truncate",
|
|
88
84
|
maxWidth: 150,
|
|
89
85
|
tooltipText: "{category}"
|
|
90
|
-
}),
|
|
86
|
+
}), o.labels.template.setup = function(i) {
|
|
91
87
|
i.set(
|
|
92
88
|
"background",
|
|
93
|
-
|
|
94
|
-
fill:
|
|
89
|
+
fe.new(e, {
|
|
90
|
+
fill: y(0),
|
|
95
91
|
fillOpacity: 0
|
|
96
92
|
})
|
|
97
93
|
);
|
|
98
|
-
}, t ||
|
|
99
|
-
|
|
94
|
+
}, t || r.onPrivate("cellWidth", function(i) {
|
|
95
|
+
o.labels.template.set("maxWidth", i);
|
|
100
96
|
}), e.numberFormatter.setAll({
|
|
101
97
|
numberFormat: "#",
|
|
102
98
|
numericFields: [t ? "valueY" : "valueX"]
|
|
103
99
|
});
|
|
104
|
-
const
|
|
105
|
-
|
|
100
|
+
const c = n.length > 1 ? A.uniqBy(p, s.value) : p;
|
|
101
|
+
r.data.setAll(c);
|
|
106
102
|
}
|
|
107
|
-
const
|
|
108
|
-
|
|
103
|
+
const x = M.push(
|
|
104
|
+
me.new(e, {
|
|
109
105
|
renderer: H.new(e, { strokeOpacity: 0.1 }),
|
|
110
106
|
// Horizontal bars must grow from a zero baseline; otherwise the auto
|
|
111
107
|
// min crops the axis (e.g. starting at 100) and distorts bar lengths.
|
|
112
108
|
...t ? { min: 0 } : {}
|
|
113
109
|
})
|
|
114
|
-
), U = t ?
|
|
115
|
-
(k =
|
|
116
|
-
stroke:
|
|
110
|
+
), U = t ? x : r, _ = t ? r : x;
|
|
111
|
+
(k = r.get("renderer")) == null || k.grid.template.setAll({
|
|
112
|
+
stroke: y(m.palette.divider),
|
|
117
113
|
strokeOpacity: 1
|
|
118
|
-
}), (L =
|
|
119
|
-
stroke:
|
|
114
|
+
}), (L = x.get("renderer")) == null || L.grid.template.setAll({
|
|
115
|
+
stroke: y(m.palette.divider),
|
|
120
116
|
strokeOpacity: 1
|
|
121
117
|
});
|
|
122
|
-
function Y(
|
|
123
|
-
const $ = t ? { valueXField: P } : { valueYField: P }, J = s.type === "date" ? t ? { valueYField: i } : { valueXField: i } : t ? { categoryYField: i } : { categoryXField: i },
|
|
124
|
-
|
|
125
|
-
name:
|
|
118
|
+
function Y(o, c, i, P) {
|
|
119
|
+
const $ = t ? { valueXField: P } : { valueYField: P }, J = s.type === "date" ? t ? { valueYField: i } : { valueXField: i } : t ? { categoryYField: i } : { categoryXField: i }, d = a.series.push(
|
|
120
|
+
ge.new(e, {
|
|
121
|
+
name: o,
|
|
126
122
|
xAxis: U,
|
|
127
123
|
yAxis: _,
|
|
128
124
|
...$,
|
|
129
125
|
...J
|
|
130
126
|
})
|
|
131
127
|
);
|
|
132
|
-
|
|
133
|
-
...t ? { height:
|
|
128
|
+
d.columns.template.setAll({
|
|
129
|
+
...t ? { height: S(90) } : { width: S(90) },
|
|
134
130
|
strokeOpacity: 0
|
|
135
|
-
}), s.type === "date" && (
|
|
131
|
+
}), s.type === "date" && (d.data.processor = Ae.new(e, {
|
|
136
132
|
dateFormat: "i",
|
|
137
133
|
dateFields: [i]
|
|
138
|
-
})),
|
|
134
|
+
})), d.data.setAll(c), d.appear(), q.data.push(d);
|
|
139
135
|
}
|
|
140
|
-
if (
|
|
141
|
-
|
|
136
|
+
if (n.length === 1)
|
|
137
|
+
l.forEach((o) => {
|
|
142
138
|
Y(
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
o.label ?? E(o.name),
|
|
140
|
+
p,
|
|
145
141
|
s.value,
|
|
146
|
-
|
|
142
|
+
o.dataFieldName
|
|
147
143
|
);
|
|
148
144
|
});
|
|
149
145
|
else {
|
|
150
|
-
const
|
|
151
|
-
Object.keys(
|
|
146
|
+
const o = A.groupBy(p, n[1].value);
|
|
147
|
+
Object.keys(o).forEach((c) => {
|
|
152
148
|
Y(
|
|
153
|
-
E(
|
|
154
|
-
|
|
149
|
+
E(c),
|
|
150
|
+
o[c],
|
|
155
151
|
s.value,
|
|
156
|
-
|
|
152
|
+
l[0].dataFieldName
|
|
157
153
|
);
|
|
158
154
|
});
|
|
159
155
|
}
|
|
160
156
|
const T = a.set(
|
|
161
157
|
"cursor",
|
|
162
|
-
|
|
158
|
+
he.new(
|
|
163
159
|
e,
|
|
164
|
-
t ? { yAxis:
|
|
160
|
+
t ? { yAxis: r, behavior: "none" } : { xAxis: r, behavior: "none" }
|
|
165
161
|
)
|
|
166
162
|
);
|
|
167
163
|
t ? T.lineX.set("visible", !1) : T.lineY.set("visible", !1), ae({
|
|
168
164
|
root: e,
|
|
169
165
|
chart: a,
|
|
170
|
-
xAxis:
|
|
171
|
-
theme:
|
|
166
|
+
xAxis: r,
|
|
167
|
+
theme: m,
|
|
172
168
|
isDateAxis: s.type === "date",
|
|
173
169
|
baseInterval: v,
|
|
174
170
|
follow: !0,
|
|
175
171
|
horizontal: t
|
|
176
|
-
}),
|
|
172
|
+
}), le(e, (O = l == null ? void 0 : l[0]) == null ? void 0 : O.format), a.appear(1e3, 100);
|
|
177
173
|
}, V), () => {
|
|
178
174
|
var t;
|
|
179
|
-
|
|
175
|
+
h && clearTimeout(h), (t = f.current) == null || t.dispose(), f.current = null;
|
|
180
176
|
};
|
|
181
177
|
}, [
|
|
182
|
-
|
|
178
|
+
u,
|
|
179
|
+
n,
|
|
183
180
|
l,
|
|
184
|
-
|
|
185
|
-
n.palette.mode,
|
|
181
|
+
m.palette.mode,
|
|
186
182
|
w,
|
|
187
183
|
b,
|
|
188
184
|
D
|
|
@@ -10,7 +10,7 @@ import { C as S } from "../../ColumnSeries-CtRTsn-E.js";
|
|
|
10
10
|
import { c as i } from "../../Entity-BJCuhdq_.js";
|
|
11
11
|
import { L as Y } from "../../LineSeries-D_IL2qGF.js";
|
|
12
12
|
import { L as G } from "../../LinearGradient-CxQyCSEB.js";
|
|
13
|
-
const u = 10,
|
|
13
|
+
const u = 10, O = 21, W = ({
|
|
14
14
|
data: a,
|
|
15
15
|
type: p,
|
|
16
16
|
fill: n = "solid",
|
|
@@ -32,7 +32,9 @@ const u = 10, k = 21, q = ({
|
|
|
32
32
|
paddingTop: 0,
|
|
33
33
|
paddingBottom: 0
|
|
34
34
|
})
|
|
35
|
-
)
|
|
35
|
+
);
|
|
36
|
+
s.zoomOutButton.set("forceHidden", !0);
|
|
37
|
+
const o = s.xAxes.push(
|
|
36
38
|
X.new(e, {
|
|
37
39
|
categoryField: "t",
|
|
38
40
|
renderer: b.new(e, {
|
|
@@ -103,11 +105,11 @@ const u = 10, k = 21, q = ({
|
|
|
103
105
|
width: `calc(100% + ${u}px)`,
|
|
104
106
|
height: "100%",
|
|
105
107
|
marginLeft: -u,
|
|
106
|
-
marginBottom: -
|
|
108
|
+
marginBottom: -O
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
111
|
);
|
|
110
112
|
};
|
|
111
113
|
export {
|
|
112
|
-
|
|
114
|
+
W as MetricChart
|
|
113
115
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as n, Fragment as
|
|
1
|
+
import { jsxs as n, Fragment as h, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Typography as I, Divider as k, Checkbox as R, CircularProgress as H, TablePagination as T, Box as W, ListItem as B, ListItemIcon as J, ListItemText as q } from "@mui/material";
|
|
3
3
|
import K from "lodash";
|
|
4
4
|
import { joinMeta as Q } from "./helpers.js";
|
|
5
5
|
import { usePaginatedListLogic as X } from "./logic.js";
|
|
6
|
-
import { PaginatedListRoot as Y, PaginatedListHeader as Z, PaginatedListViewAll as $, PaginatedListContent as ee, PaginatedListCardRail as ie, PaginatedListCard as ne, PaginatedListCardHeader as ae, PaginatedListCardIcon as te, PaginatedListCardTitle as re, PaginatedListCardDescription as oe, PaginatedListCardFooter as de, PaginatedListCardMeta as se, PaginatedListCardAction as ce, PaginatedListLoadMore as le, PaginatedListPagination as M, PaginatedListList as
|
|
7
|
-
import { c as
|
|
6
|
+
import { PaginatedListRoot as Y, PaginatedListHeader as Z, PaginatedListViewAll as $, PaginatedListContent as ee, PaginatedListCardRail as ie, PaginatedListCard as ne, PaginatedListCardHeader as ae, PaginatedListCardIcon as te, PaginatedListCardTitle as re, PaginatedListCardDescription as oe, PaginatedListCardFooter as de, PaginatedListCardMeta as se, PaginatedListCardAction as ce, PaginatedListLoadMore as le, PaginatedListPagination as M, PaginatedListList as ge } from "./styled.js";
|
|
7
|
+
import { c as he } from "../../createReactComponent-C7L-DMHj.js";
|
|
8
8
|
/**
|
|
9
9
|
* @license @tabler/icons-react v3.44.0 - MIT
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the MIT license.
|
|
12
12
|
* See the LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
const pe = [["path", { d: "M17 7l-10 10", key: "svg-0" }], ["path", { d: "M8 7l9 0l0 9", key: "svg-1" }]], O =
|
|
14
|
+
const pe = [["path", { d: "M17 7l-10 10", key: "svg-0" }], ["path", { d: "M8 7l9 0l0 9", key: "svg-1" }]], O = he("outline", "arrow-up-right", "ArrowUpRight", pe), A = [5, 10, 25, 50], xe = (_) => {
|
|
15
15
|
const {
|
|
16
16
|
title: c,
|
|
17
17
|
variant: b,
|
|
@@ -38,7 +38,7 @@ const pe = [["path", { d: "M17 7l-10 10", key: "svg-0" }], ["path", { d: "M8 7l9
|
|
|
38
38
|
ownerState: a,
|
|
39
39
|
sx: V,
|
|
40
40
|
other: G
|
|
41
|
-
} = X(_),
|
|
41
|
+
} = X(_), g = S, o = b === "cards", r = o && D === "grid", d = t || !!U;
|
|
42
42
|
return /* @__PURE__ */ n(
|
|
43
43
|
Y,
|
|
44
44
|
{
|
|
@@ -51,10 +51,10 @@ const pe = [["path", { d: "M17 7l-10 10", key: "svg-0" }], ["path", { d: "M8 7l9
|
|
|
51
51
|
}),
|
|
52
52
|
...G,
|
|
53
53
|
children: [
|
|
54
|
-
c && /* @__PURE__ */ n(
|
|
54
|
+
c && /* @__PURE__ */ n(h, { children: [
|
|
55
55
|
/* @__PURE__ */ n(Z, { ownerState: a, children: [
|
|
56
56
|
/* @__PURE__ */ e(I, { variant: "h3", children: c }),
|
|
57
|
-
|
|
57
|
+
o && !r && P && /* @__PURE__ */ e(
|
|
58
58
|
$,
|
|
59
59
|
{
|
|
60
60
|
size: "small",
|
|
@@ -64,19 +64,20 @@ const pe = [["path", { d: "M17 7l-10 10", key: "svg-0" }], ["path", { d: "M8 7l9
|
|
|
64
64
|
}
|
|
65
65
|
)
|
|
66
66
|
] }),
|
|
67
|
-
!
|
|
67
|
+
!o && /* @__PURE__ */ e(k, {})
|
|
68
68
|
] }),
|
|
69
|
-
/* @__PURE__ */ e(ee, { ownerState: a, children:
|
|
70
|
-
/* @__PURE__ */ n(ie, { grid:
|
|
69
|
+
/* @__PURE__ */ e(ee, { ownerState: a, children: o ? /* @__PURE__ */ n(h, { children: [
|
|
70
|
+
/* @__PURE__ */ n(ie, { grid: r, children: [
|
|
71
71
|
l.map((i, s) => {
|
|
72
72
|
const w = Q(i.meta, z);
|
|
73
73
|
return /* @__PURE__ */ n(
|
|
74
74
|
ne,
|
|
75
75
|
{
|
|
76
|
+
grid: r,
|
|
76
77
|
onClick: y(i),
|
|
77
78
|
sx: {
|
|
78
79
|
cursor: d ? "pointer" : "default",
|
|
79
|
-
...
|
|
80
|
+
...r && { flex: "1 1 280px", maxWidth: 360 }
|
|
80
81
|
},
|
|
81
82
|
children: [
|
|
82
83
|
/* @__PURE__ */ n(ae, { children: [
|
|
@@ -87,7 +88,7 @@ const pe = [["path", { d: "M17 7l-10 10", key: "svg-0" }], ["path", { d: "M8 7l9
|
|
|
87
88
|
sx: { p: 0 },
|
|
88
89
|
checked: v.indexOf(i.id) !== -1
|
|
89
90
|
}
|
|
90
|
-
) : (i.icon ||
|
|
91
|
+
) : (i.icon || g) && /* @__PURE__ */ e(te, { children: i.icon ?? (g ? /* @__PURE__ */ e(g, {}) : null) }),
|
|
91
92
|
/* @__PURE__ */ e(re, { variant: "h4", title: i.title, children: i.title })
|
|
92
93
|
] }),
|
|
93
94
|
/* @__PURE__ */ e(
|
|
@@ -109,7 +110,7 @@ const pe = [["path", { d: "M17 7l-10 10", key: "svg-0" }], ["path", { d: "M8 7l9
|
|
|
109
110
|
}),
|
|
110
111
|
p && E && /* @__PURE__ */ e(le, { ref: F.sentinelRef, children: j && /* @__PURE__ */ e(H, { size: 18 }) })
|
|
111
112
|
] }),
|
|
112
|
-
|
|
113
|
+
r && !p && /* @__PURE__ */ e(M, { ownerState: a, children: /* @__PURE__ */ e(
|
|
113
114
|
T,
|
|
114
115
|
{
|
|
115
116
|
component: "div",
|
|
@@ -121,8 +122,8 @@ const pe = [["path", { d: "M17 7l-10 10", key: "svg-0" }], ["path", { d: "M8 7l9
|
|
|
121
122
|
onRowsPerPageChange: x
|
|
122
123
|
}
|
|
123
124
|
) })
|
|
124
|
-
] }) : /* @__PURE__ */ n(
|
|
125
|
-
/* @__PURE__ */ e(
|
|
125
|
+
] }) : /* @__PURE__ */ n(h, { children: [
|
|
126
|
+
/* @__PURE__ */ e(ge, { disablePadding: !0, ownerState: a, children: l.map((i, s) => /* @__PURE__ */ n(W, { children: [
|
|
126
127
|
s !== 0 && /* @__PURE__ */ e(k, { component: "li" }),
|
|
127
128
|
/* @__PURE__ */ n(
|
|
128
129
|
B,
|