@hybridcore/ui 1.6.13 → 1.6.16
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/AccordionSummary-DUtr16g6.js +781 -0
- package/dist/Add-Bk8R160M.js +403 -0
- package/dist/Button-Cem3nbwc.js +357 -0
- package/dist/ButtonBase-DObmf4Q_.js +886 -0
- package/dist/Delete-CVJ6FeDn.js +203 -0
- package/dist/FormGroup-BRj1o7-E.js +89 -0
- package/dist/InputLabel-CjD30ZHz.js +341 -0
- package/dist/MenuItem-BKvRGLvM.js +233 -0
- package/dist/Modal-BVYydOr5.js +1156 -0
- package/dist/Paper-B1HV8GyO.js +582 -0
- package/dist/Select-Bfhvigsx.js +3914 -0
- package/dist/Source-BSZST_GH.js +4410 -0
- package/dist/SwitchBase-BEK49kdS.js +235 -0
- package/dist/Text-ChJRuaD8.js +2197 -0
- package/dist/TextField-Ca9ykixI.js +696 -0
- package/dist/TransitionGroupContext-Ja2CgIob.js +96 -0
- package/dist/Typography-D3X-Y5fh.js +178 -0
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +126 -82
- package/dist/components/charts/_common/tooltip.js +44 -35
- package/dist/components/charts/chart-wrapper/index.js +44 -43
- package/dist/components/charts/donut-chart/logic.js +53 -40
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
- package/dist/components/charts/xy-chart/logic.js +135 -134
- package/dist/components/collapsible-card/index.js +30 -21
- package/dist/components/collapsible-card/styled.js +14 -16
- package/dist/components/color-picker/index.js +3358 -2228
- package/dist/components/color-picker/styled.js +7 -87
- package/dist/components/confirm/dialog.js +7 -89
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-map/logic.js +20 -20
- package/dist/components/data-security-selectors/dissemination-list/index.js +3117 -32
- package/dist/components/date-range-picker/index.js +454 -466
- package/dist/components/document-viewer/components/viewer/index.js +1 -1
- package/dist/components/duration-select/index.js +10 -10
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +14 -14
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/kml/index.js +11 -11
- package/dist/components/geometry-picker/map/logic.js +3656 -145
- package/dist/components/geometry-picker/map/style.js +17 -18
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1255 -43
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/heat-map/logic.js +1924 -77
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8737 -8722
- package/dist/components/instance-hierarchy-table/styled.js +16 -18
- package/dist/components/map/helpers/mapbox.js +15 -17
- package/dist/components/map/helpers/ol.js +27 -386
- package/dist/components/map/index.js +10 -11
- package/dist/components/map/logic.js +22 -22
- package/dist/components/map/styled.js +27 -31
- package/dist/components/phone-input/index.js +9 -10
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/prr-map/logic.js +26 -27
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/raster-grid-map/logic.js +57 -60
- package/dist/components/sortable-list/index.js +1264 -1091
- package/dist/components/template-form/components/property-list/index.js +32 -36
- package/dist/components/template-form/components/property-list/property-list-columns.js +17 -19
- package/dist/components/template-form/components/property-list/property-list-form.js +600 -137
- package/dist/components/template-form/components/recognition-property-list/index.js +36 -40
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +9 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +64 -57
- package/dist/components/tree-select/index.js +16 -16
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createSvgIcon-BghzB2Y9.js +93 -0
- package/dist/createSvgIcon-D7U1nd99.js +185 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/dialog-BtJhjyF5.js +664 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-Cc-owZ4J.js +2971 -0
- package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/index.esm-DAf19hyR.js +318 -0
- package/dist/main.d.ts +9 -1
- package/dist/math-Bvt2Ubuz.js +704 -0
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-DD4BkuVf.js +350 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useSlot-u4t0X96G.js +42 -0
- package/package.json +1 -1
- package/dist/index.esm-UfGMjYOL.js +0 -197
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import { jsxs as a, jsx as r, Fragment as
|
|
2
|
-
import { Typography as C, Divider as
|
|
3
|
-
import { Loading as
|
|
4
|
-
import { CandlestickChart as
|
|
5
|
-
import { ColumnLineMix as
|
|
6
|
-
import { DonutChart as
|
|
7
|
-
import { DrillDownTreemap as
|
|
8
|
-
import { DrillDownVoronoiTreemap as
|
|
9
|
-
import { ForecastConeChart as
|
|
10
|
-
import { Heatmap as
|
|
11
|
-
import { LineChart as
|
|
12
|
-
import { LogaritmicScale as
|
|
13
|
-
import { MultipleValueAxes as
|
|
14
|
-
import { NestedPie as
|
|
15
|
-
import { PackedCircles as
|
|
16
|
-
import { PieChart as
|
|
17
|
-
import { StackedAreaRadar as
|
|
18
|
-
import { StackedColumnChart as
|
|
19
|
-
import { XYChart as
|
|
20
|
-
import { useChartWrapperLogic as
|
|
21
|
-
import { ChartWrapperRoot as
|
|
22
|
-
const rr = (
|
|
23
|
-
const { title:
|
|
24
|
-
return /* @__PURE__ */ a(
|
|
25
|
-
/* @__PURE__ */ r(
|
|
26
|
-
/* @__PURE__ */ r(
|
|
27
|
-
/* @__PURE__ */ r(
|
|
28
|
-
o === "MultipleValueAxes" && /* @__PURE__ */ r(
|
|
29
|
-
o === "XYChart" && /* @__PURE__ */ r(
|
|
30
|
-
o === "
|
|
31
|
-
o === "
|
|
32
|
-
o === "
|
|
33
|
-
o === "
|
|
34
|
-
o === "
|
|
35
|
-
o === "
|
|
36
|
-
o === "
|
|
37
|
-
o === "
|
|
38
|
-
o === "
|
|
39
|
-
o === "
|
|
40
|
-
o === "
|
|
41
|
-
o === "
|
|
42
|
-
o === "
|
|
43
|
-
o === "
|
|
1
|
+
import { jsxs as a, jsx as r, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as C, Divider as c } from "@mui/material";
|
|
3
|
+
import { Loading as d } from "../../loading/index.js";
|
|
4
|
+
import { CandlestickChart as f } from "../candlestick/index.js";
|
|
5
|
+
import { ColumnLineMix as s } from "../column-line-mix/index.js";
|
|
6
|
+
import { DonutChart as u } from "../donut-chart/index.js";
|
|
7
|
+
import { DrillDownTreemap as D } from "../drill-down-treemap/index.js";
|
|
8
|
+
import { DrillDownVoronoiTreemap as L } from "../drill-down-voronoi-treemap/index.js";
|
|
9
|
+
import { ForecastConeChart as g } from "../forecast-cone/index.js";
|
|
10
|
+
import { Heatmap as x } from "../heatmap/index.js";
|
|
11
|
+
import { LineChart as k } from "../line/index.js";
|
|
12
|
+
import { LogaritmicScale as S } from "../logaritmic-scale/index.js";
|
|
13
|
+
import { MultipleValueAxes as P } from "../multiple-value-axes/index.js";
|
|
14
|
+
import { NestedPie as w } from "../nested-pie/index.js";
|
|
15
|
+
import { PackedCircles as A } from "../packed-circles/index.js";
|
|
16
|
+
import { PieChart as T } from "../pie-chart/index.js";
|
|
17
|
+
import { StackedAreaRadar as W } from "../stacked-area-radar/index.js";
|
|
18
|
+
import { StackedColumnChart as H } from "../stacked-column-chart/index.js";
|
|
19
|
+
import { XYChart as i } from "../xy-chart/index.js";
|
|
20
|
+
import { useChartWrapperLogic as M } from "./logic.js";
|
|
21
|
+
import { ChartWrapperRoot as V, ChartWrapperHeader as v, ChartWrapperContent as y } from "./styled.js";
|
|
22
|
+
const rr = (m) => {
|
|
23
|
+
const { title: p, type: o, chartProps: t, loading: n, ownerState: e, sx: l } = M(m);
|
|
24
|
+
return /* @__PURE__ */ a(V, { ownerState: e, sx: l, children: [
|
|
25
|
+
/* @__PURE__ */ r(v, { ownerState: e, children: /* @__PURE__ */ r(C, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: p }) }),
|
|
26
|
+
/* @__PURE__ */ r(c, {}),
|
|
27
|
+
/* @__PURE__ */ r(y, { ownerState: e, children: n ? /* @__PURE__ */ r(d, { show: !0, position: "absolute" }) : /* @__PURE__ */ a(h, { children: [
|
|
28
|
+
o === "MultipleValueAxes" && /* @__PURE__ */ r(P, { ...t }),
|
|
29
|
+
o === "XYChart" && /* @__PURE__ */ r(i, { ...t }),
|
|
30
|
+
o === "XYChartHorizontal" && /* @__PURE__ */ r(i, { ...t, orientation: "horizontal" }),
|
|
31
|
+
o === "HeatLegend" && /* @__PURE__ */ r(x, { ...t }),
|
|
32
|
+
o === "PieChart" && /* @__PURE__ */ r(T, { ...t }),
|
|
33
|
+
o === "DonutChart" && /* @__PURE__ */ r(u, { ...t }),
|
|
34
|
+
o === "StackedColumnChart" && /* @__PURE__ */ r(H, { ...t }),
|
|
35
|
+
o === "StackedAreaRadar" && /* @__PURE__ */ r(W, { ...t }),
|
|
36
|
+
o === "LineChart" && /* @__PURE__ */ r(k, { ...t }),
|
|
37
|
+
o === "NestedPie" && /* @__PURE__ */ r(w, { ...t }),
|
|
38
|
+
o === "SingleLevelPackedCircles" && /* @__PURE__ */ r(A, { ...t }),
|
|
39
|
+
o === "LogarithmicScale" && /* @__PURE__ */ r(S, { ...t }),
|
|
40
|
+
o === "ColumnAndLineMix" && /* @__PURE__ */ r(s, { ...t }),
|
|
41
|
+
o === "DrillDownTreemap" && /* @__PURE__ */ r(D, { ...t }),
|
|
42
|
+
o === "DrillDownVoronoiTreemap" && /* @__PURE__ */ r(L, { ...t }),
|
|
43
|
+
o === "CandlestickChart" && /* @__PURE__ */ r(f, { ...t }),
|
|
44
|
+
o === "ForecastCone" && /* @__PURE__ */ r(g, { ...t })
|
|
44
45
|
] }) })
|
|
45
46
|
] });
|
|
46
47
|
};
|
|
@@ -1,69 +1,82 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import { useId as
|
|
5
|
-
import { applyValueFormat as
|
|
6
|
-
import { P as
|
|
7
|
-
import { p as
|
|
8
|
-
import { L as
|
|
9
|
-
const
|
|
10
|
-
const
|
|
1
|
+
import { R as w, A } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useThemeProps as P, useTheme as R } from "@mui/material";
|
|
3
|
+
import b from "dayjs";
|
|
4
|
+
import { useId as C, useRef as D, useEffect as F } from "react";
|
|
5
|
+
import { applyValueFormat as L, colorSetFromPalette as I } from "../_common/utils.js";
|
|
6
|
+
import { P as S, a as B } from "../../../PieSeries-CMH0Z7pz.js";
|
|
7
|
+
import { p as l, c as s } from "../../../Entity-BJCuhdq_.js";
|
|
8
|
+
import { L as E } from "../../../Legend-CFvQiIfn.js";
|
|
9
|
+
const G = (y) => {
|
|
10
|
+
const u = P({ props: y, name: "HCDonutChart" }), {
|
|
11
11
|
dimensions: t,
|
|
12
12
|
values: o,
|
|
13
|
-
data:
|
|
13
|
+
data: n,
|
|
14
14
|
initDelay: T = 0,
|
|
15
15
|
colors: d,
|
|
16
16
|
sx: x,
|
|
17
17
|
...M
|
|
18
|
-
} =
|
|
19
|
-
let
|
|
20
|
-
t.length < 1 ?
|
|
21
|
-
if (
|
|
22
|
-
let
|
|
23
|
-
return
|
|
24
|
-
var
|
|
25
|
-
const e =
|
|
26
|
-
|
|
18
|
+
} = u, a = R(), f = `hc-donut-chart-${C().replace(/:/g, "")}`, c = D(null);
|
|
19
|
+
let i = null;
|
|
20
|
+
t.length < 1 ? i = "Missing dimensions config!" : o.length < 1 && (i = "Missing values config!"), F(() => {
|
|
21
|
+
if (i) return;
|
|
22
|
+
let m;
|
|
23
|
+
return m = setTimeout(() => {
|
|
24
|
+
var v;
|
|
25
|
+
const e = w.new(f);
|
|
26
|
+
c.current = e, L(e, (v = o == null ? void 0 : o[0]) == null ? void 0 : v.format), e.setThemes([A.new(e)]);
|
|
27
27
|
const h = e.container.children.push(
|
|
28
|
-
|
|
28
|
+
S.new(e, {
|
|
29
29
|
layout: e.verticalLayout,
|
|
30
|
-
innerRadius:
|
|
30
|
+
innerRadius: l(50)
|
|
31
31
|
})
|
|
32
32
|
);
|
|
33
33
|
e.interfaceColors.setAll({
|
|
34
|
-
text:
|
|
35
|
-
grid:
|
|
36
|
-
stroke:
|
|
34
|
+
text: s(a.palette.text.primary),
|
|
35
|
+
grid: s(a.palette.divider),
|
|
36
|
+
stroke: s(a.palette.divider),
|
|
37
|
+
// Drives the gap color between slices; tie it to the surface so the
|
|
38
|
+
// beveled edges read correctly in both light and dark mode.
|
|
39
|
+
background: s(a.palette.background.paper)
|
|
37
40
|
});
|
|
38
41
|
const r = h.series.push(
|
|
39
|
-
|
|
42
|
+
B.new(e, {
|
|
40
43
|
valueField: o[0].dataFieldName,
|
|
41
44
|
categoryField: t[0].value
|
|
42
45
|
})
|
|
43
46
|
);
|
|
44
|
-
r.set("colors",
|
|
47
|
+
r.set("colors", I(e, d));
|
|
45
48
|
const g = "{category}: {valuePercentTotal.formatNumber('0.00')}% ({value})";
|
|
46
|
-
r.slices.template.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
r.slices.template.setAll({
|
|
50
|
+
tooltipText: g,
|
|
51
|
+
stroke: s(a.palette.background.paper),
|
|
52
|
+
strokeWidth: 2,
|
|
53
|
+
strokeOpacity: 1,
|
|
54
|
+
cornerRadius: 4
|
|
55
|
+
}), r.slices.template.states.create("hover", { scale: 1.04 }), r.set("radius", l(80)), r.labels.template.setAll({
|
|
56
|
+
text: g,
|
|
57
|
+
maxWidth: 140,
|
|
58
|
+
oversizedBehavior: "wrap"
|
|
59
|
+
}), t[0].type === "date" && n.forEach((Y) => {
|
|
60
|
+
let p = "YYYY";
|
|
61
|
+
t[0].value.includes("month") ? p = "MMM YYYY" : t[0].value.includes("day") && (p = "DD MMM YYYY"), Y[t[0].value] = b(Y[t[0].value]).format(
|
|
62
|
+
p
|
|
50
63
|
);
|
|
51
|
-
}), r.data.setAll(
|
|
52
|
-
|
|
53
|
-
centerX:
|
|
54
|
-
x:
|
|
64
|
+
}), r.data.setAll(n), h.children.push(
|
|
65
|
+
E.new(e, {
|
|
66
|
+
centerX: l(50),
|
|
67
|
+
x: l(50),
|
|
55
68
|
marginTop: 15,
|
|
56
69
|
marginBottom: 15
|
|
57
70
|
})
|
|
58
71
|
).data.setAll(r.dataItems), r.appear(1e3, 100);
|
|
59
72
|
}, T), () => {
|
|
60
73
|
var e;
|
|
61
|
-
|
|
74
|
+
m && clearTimeout(m), (e = c.current) == null || e.dispose(), c.current = null;
|
|
62
75
|
};
|
|
63
|
-
}, [
|
|
64
|
-
const
|
|
65
|
-
return { chartId: f, ownerState:
|
|
76
|
+
}, [n, t, o, a.palette.mode, d]);
|
|
77
|
+
const k = { ...u };
|
|
78
|
+
return { chartId: f, ownerState: k, sx: x, error: i, other: M };
|
|
66
79
|
};
|
|
67
80
|
export {
|
|
68
|
-
|
|
81
|
+
G as useDonutChartLogic
|
|
69
82
|
};
|
|
@@ -8,7 +8,7 @@ import { e as Zt, B as ht, m as De, a as lt, c as Ht, b as Vt } from "../../../E
|
|
|
8
8
|
import { Z as Ee } from "../../../ZoomableContainer-Ca_pDVYQ.js";
|
|
9
9
|
import { H as Kt } from "../../../Hierarchy-CEOK8Gzh.js";
|
|
10
10
|
import { G as Jt, a as Te, b as Ne } from "../../../Tooltip-vyZRZWih.js";
|
|
11
|
-
import { c as K,
|
|
11
|
+
import { c as K, a as ke, g as Ie } from "../../../_commonjsHelpers-BkfeUUK-.js";
|
|
12
12
|
class pt extends Jt {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments), Object.defineProperty(this, "morphAnimation", {
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import { useId as
|
|
5
|
-
import { humanizeLabel as
|
|
6
|
-
import { attachCombinedAxisTooltip as
|
|
7
|
-
import { colorSetFromPalette as
|
|
8
|
-
import { c, a as
|
|
9
|
-
import { X as
|
|
10
|
-
import { L as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { G as
|
|
16
|
-
import { D as
|
|
17
|
-
import { C as
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
sx:
|
|
29
|
-
...
|
|
30
|
-
} =
|
|
31
|
-
|
|
32
|
-
if (
|
|
33
|
-
let
|
|
34
|
-
return
|
|
35
|
-
var
|
|
36
|
-
const e =
|
|
37
|
-
|
|
38
|
-
text:
|
|
39
|
-
grid:
|
|
40
|
-
stroke:
|
|
1
|
+
import { R as K, A as Q } from "../../../AnimatedTheme-ktdO3Bel.js";
|
|
2
|
+
import { useThemeProps as Z, useTheme as ee } from "@mui/material";
|
|
3
|
+
import y from "lodash";
|
|
4
|
+
import { useId as te, useRef as re, useEffect as oe } from "react";
|
|
5
|
+
import { humanizeLabel as E } from "../_common/format.js";
|
|
6
|
+
import { attachCombinedAxisTooltip as ae } from "../_common/tooltip.js";
|
|
7
|
+
import { colorSetFromPalette as se, applyValueFormat as ie } from "../_common/utils.js";
|
|
8
|
+
import { c as p, a as S, p as z } from "../../../Entity-BJCuhdq_.js";
|
|
9
|
+
import { X as ne, V as le } from "../../../AxisRenderer-BCQoUJw6.js";
|
|
10
|
+
import { L as ce } from "../../../Legend-CFvQiIfn.js";
|
|
11
|
+
import { C as me } from "../../../CategoryAxis-B6NqW8qd.js";
|
|
12
|
+
import { T as pe, R as de } from "../../../Tooltip-vyZRZWih.js";
|
|
13
|
+
import { X as ue } from "../../../XYCursor-CVUSpqb9.js";
|
|
14
|
+
import { a as B, A as G } from "../../../AxisRendererY-AXWvGU6r.js";
|
|
15
|
+
import { G as fe, D as he } from "../../../GaplessDateAxis-B2g2jgSG.js";
|
|
16
|
+
import { D as xe } from "../../../DateAxis-DEXKps1S.js";
|
|
17
|
+
import { C as Ae } from "../../../ColumnSeries-CtRTsn-E.js";
|
|
18
|
+
const ze = (I) => {
|
|
19
|
+
const g = Z({ props: I, name: "HCXYChart" }), {
|
|
20
|
+
dimensions: l,
|
|
21
|
+
values: c,
|
|
22
|
+
data: f,
|
|
23
|
+
initDelay: V = 0,
|
|
24
|
+
baseInterval: v,
|
|
25
|
+
colors: w,
|
|
26
|
+
skipEmptyDates: b = !1,
|
|
27
|
+
orientation: D = "vertical",
|
|
28
|
+
sx: W,
|
|
29
|
+
...N
|
|
30
|
+
} = g, n = ee(), X = `hc-xy-chart-${te().replace(/:/g, "")}`, h = re(null), C = l.length < 1 ? "Missing dimensions config!" : null;
|
|
31
|
+
oe(() => {
|
|
32
|
+
if (C) return;
|
|
33
|
+
let x;
|
|
34
|
+
return x = setTimeout(() => {
|
|
35
|
+
var k, L, O;
|
|
36
|
+
const t = D === "horizontal", e = K.new(X);
|
|
37
|
+
h.current = e, e.setThemes([Q.new(e)]), e.interfaceColors.setAll({
|
|
38
|
+
text: p(n.palette.text.primary),
|
|
39
|
+
grid: p(n.palette.divider),
|
|
40
|
+
stroke: p(n.palette.divider)
|
|
41
41
|
});
|
|
42
|
-
const
|
|
43
|
-
|
|
42
|
+
const a = e.container.children.push(
|
|
43
|
+
ne.new(e, {
|
|
44
44
|
panX: !1,
|
|
45
45
|
panY: !1,
|
|
46
46
|
wheelX: "none",
|
|
@@ -50,137 +50,138 @@ const Fe = (R) => {
|
|
|
50
50
|
layout: e.verticalLayout
|
|
51
51
|
})
|
|
52
52
|
);
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
centerX:
|
|
57
|
-
x
|
|
53
|
+
a.set("colors", se(e, w));
|
|
54
|
+
const q = a.children.push(
|
|
55
|
+
ce.new(e, {
|
|
56
|
+
centerX: S,
|
|
57
|
+
x: S
|
|
58
58
|
})
|
|
59
|
-
),
|
|
60
|
-
let o,
|
|
61
|
-
if (
|
|
62
|
-
const
|
|
63
|
-
o =
|
|
64
|
-
|
|
59
|
+
), s = l[0], R = t ? B : G, H = t ? G : B, Y = t ? a.yAxes : a.xAxes, M = t ? a.xAxes : a.yAxes;
|
|
60
|
+
let o, d = f;
|
|
61
|
+
if (s.type === "date") {
|
|
62
|
+
const r = b ? fe : xe;
|
|
63
|
+
o = Y.push(
|
|
64
|
+
r.new(e, {
|
|
65
65
|
maxDeviation: 0,
|
|
66
|
-
baseInterval:
|
|
67
|
-
renderer:
|
|
66
|
+
baseInterval: v || { timeUnit: "day", count: 1 },
|
|
67
|
+
renderer: R.new(e, { minGridDistance: 60 })
|
|
68
68
|
})
|
|
69
|
-
),
|
|
69
|
+
), d = y.orderBy(f, [s.value]);
|
|
70
70
|
} else {
|
|
71
|
-
const
|
|
71
|
+
const r = R.new(e, {
|
|
72
72
|
cellStartLocation: 0.1,
|
|
73
73
|
cellEndLocation: 0.9,
|
|
74
74
|
minGridDistance: 30
|
|
75
75
|
});
|
|
76
|
-
o =
|
|
77
|
-
|
|
78
|
-
categoryField:
|
|
79
|
-
renderer:
|
|
76
|
+
o = Y.push(
|
|
77
|
+
me.new(e, {
|
|
78
|
+
categoryField: s.value,
|
|
79
|
+
renderer: r
|
|
80
80
|
})
|
|
81
|
-
),
|
|
81
|
+
), r.grid.template.setAll({ location: 1 }), o.labelsContainer.set(
|
|
82
82
|
"tooltip",
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
pe.new(e, {
|
|
84
|
+
pointerOrientation: t ? "right" : "down"
|
|
85
|
+
})
|
|
86
|
+
), r.labels.template.setAll({
|
|
85
87
|
oversizedBehavior: "truncate",
|
|
86
88
|
maxWidth: 150,
|
|
87
89
|
tooltipText: "{category}"
|
|
88
|
-
}),
|
|
89
|
-
|
|
90
|
+
}), r.labels.template.setup = function(i) {
|
|
91
|
+
i.set(
|
|
90
92
|
"background",
|
|
91
|
-
|
|
92
|
-
fill:
|
|
93
|
+
de.new(e, {
|
|
94
|
+
fill: p(0),
|
|
93
95
|
fillOpacity: 0
|
|
94
96
|
})
|
|
95
97
|
);
|
|
96
|
-
}, o.onPrivate("cellWidth", function(
|
|
97
|
-
|
|
98
|
+
}, t || o.onPrivate("cellWidth", function(i) {
|
|
99
|
+
r.labels.template.set("maxWidth", i);
|
|
98
100
|
}), e.numberFormatter.setAll({
|
|
99
101
|
numberFormat: "#",
|
|
100
|
-
numericFields: ["valueX"]
|
|
101
|
-
})
|
|
102
|
+
numericFields: [t ? "valueY" : "valueX"]
|
|
103
|
+
});
|
|
104
|
+
const m = l.length > 1 ? y.uniqBy(d, s.value) : d;
|
|
105
|
+
o.data.setAll(m);
|
|
102
106
|
}
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
renderer:
|
|
107
|
+
const A = M.push(
|
|
108
|
+
le.new(e, {
|
|
109
|
+
renderer: H.new(e, { strokeOpacity: 0.1 }),
|
|
110
|
+
// Horizontal bars must grow from a zero baseline; otherwise the auto
|
|
111
|
+
// min crops the axis (e.g. starting at 100) and distorts bar lengths.
|
|
112
|
+
...t ? { min: 0 } : {}
|
|
106
113
|
})
|
|
107
|
-
);
|
|
108
|
-
(
|
|
109
|
-
stroke:
|
|
114
|
+
), U = t ? A : o, _ = t ? o : A;
|
|
115
|
+
(k = o.get("renderer")) == null || k.grid.template.setAll({
|
|
116
|
+
stroke: p(n.palette.divider),
|
|
110
117
|
strokeOpacity: 1
|
|
111
|
-
}), (
|
|
112
|
-
stroke:
|
|
118
|
+
}), (L = A.get("renderer")) == null || L.grid.template.setAll({
|
|
119
|
+
stroke: p(n.palette.divider),
|
|
113
120
|
strokeOpacity: 1
|
|
114
121
|
});
|
|
115
|
-
function
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
name:
|
|
119
|
-
xAxis:
|
|
120
|
-
yAxis:
|
|
121
|
-
|
|
122
|
-
...
|
|
122
|
+
function F(r, m, i, P) {
|
|
123
|
+
const $ = t ? { valueXField: P } : { valueYField: P }, J = s.type === "date" ? t ? { valueYField: i } : { valueXField: i } : t ? { categoryYField: i } : { categoryXField: i }, u = a.series.push(
|
|
124
|
+
Ae.new(e, {
|
|
125
|
+
name: r,
|
|
126
|
+
xAxis: U,
|
|
127
|
+
yAxis: _,
|
|
128
|
+
...$,
|
|
129
|
+
...J
|
|
123
130
|
})
|
|
124
131
|
);
|
|
125
|
-
|
|
126
|
-
width:
|
|
132
|
+
u.columns.template.setAll({
|
|
133
|
+
...t ? { height: z(90) } : { width: z(90) },
|
|
127
134
|
strokeOpacity: 0
|
|
128
|
-
}),
|
|
135
|
+
}), s.type === "date" && (u.data.processor = he.new(e, {
|
|
129
136
|
dateFormat: "i",
|
|
130
|
-
dateFields: [
|
|
131
|
-
})),
|
|
132
|
-
return le.new(e, {
|
|
133
|
-
locationY: 0,
|
|
134
|
-
sprite: re.new(e, {
|
|
135
|
-
text: "{valueY}",
|
|
136
|
-
fill: e.interfaceColors.get("alternativeText"),
|
|
137
|
-
centerY: 0,
|
|
138
|
-
centerX: x,
|
|
139
|
-
populateText: !0
|
|
140
|
-
})
|
|
141
|
-
});
|
|
142
|
-
}), G.data.push(l);
|
|
137
|
+
dateFields: [i]
|
|
138
|
+
})), u.data.setAll(m), u.appear(), q.data.push(u);
|
|
143
139
|
}
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
140
|
+
if (l.length === 1)
|
|
141
|
+
c.forEach((r) => {
|
|
142
|
+
F(
|
|
143
|
+
r.label ?? E(r.name),
|
|
144
|
+
d,
|
|
145
|
+
s.value,
|
|
146
|
+
r.dataFieldName
|
|
151
147
|
);
|
|
152
148
|
});
|
|
153
149
|
else {
|
|
154
|
-
const
|
|
155
|
-
Object.keys(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
150
|
+
const r = y.groupBy(d, l[1].value);
|
|
151
|
+
Object.keys(r).forEach((m) => {
|
|
152
|
+
F(
|
|
153
|
+
E(m),
|
|
154
|
+
r[m],
|
|
155
|
+
s.value,
|
|
156
|
+
c[0].dataFieldName
|
|
161
157
|
);
|
|
162
158
|
});
|
|
163
159
|
}
|
|
164
|
-
|
|
160
|
+
const T = a.set(
|
|
165
161
|
"cursor",
|
|
166
|
-
|
|
167
|
-
|
|
162
|
+
ue.new(
|
|
163
|
+
e,
|
|
164
|
+
t ? { yAxis: o, behavior: "none" } : { xAxis: o, behavior: "none" }
|
|
165
|
+
)
|
|
166
|
+
);
|
|
167
|
+
t ? T.lineX.set("visible", !1) : T.lineY.set("visible", !1), ae({
|
|
168
168
|
root: e,
|
|
169
|
-
chart:
|
|
169
|
+
chart: a,
|
|
170
170
|
xAxis: o,
|
|
171
|
-
theme:
|
|
172
|
-
isDateAxis:
|
|
173
|
-
baseInterval:
|
|
174
|
-
follow: !0
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
171
|
+
theme: n,
|
|
172
|
+
isDateAxis: s.type === "date",
|
|
173
|
+
baseInterval: v,
|
|
174
|
+
follow: !0,
|
|
175
|
+
horizontal: t
|
|
176
|
+
}), ie(e, (O = c == null ? void 0 : c[0]) == null ? void 0 : O.format), a.appear(1e3, 100);
|
|
177
|
+
}, V), () => {
|
|
178
|
+
var t;
|
|
179
|
+
x && clearTimeout(x), (t = h.current) == null || t.dispose(), h.current = null;
|
|
179
180
|
};
|
|
180
|
-
}, [
|
|
181
|
-
const
|
|
182
|
-
return { chartId:
|
|
181
|
+
}, [f, l, c, n.palette.mode, w, b, D]);
|
|
182
|
+
const j = { ...g };
|
|
183
|
+
return { chartId: X, ownerState: j, sx: W, error: C, other: N };
|
|
183
184
|
};
|
|
184
185
|
export {
|
|
185
|
-
|
|
186
|
+
ze as useXYChartLogic
|
|
186
187
|
};
|
|
@@ -1,25 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import d, { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { i as c } from "../../generateUtilityClasses-Cc-owZ4J.js";
|
|
3
|
+
import { r as l } from "../../createSvgIcon-BghzB2Y9.js";
|
|
4
|
+
import { Container as u } from "../container/index.js";
|
|
5
|
+
import { useCollapsibleCardLogic as s } from "./logic.js";
|
|
6
|
+
import { Accordion as m, AccordionSummary as x, SummaryHeader as f, SummaryActions as h, AccordionDetails as S } from "./styled.js";
|
|
7
|
+
var a = {}, p = c;
|
|
8
|
+
Object.defineProperty(a, "__esModule", {
|
|
9
|
+
value: !0
|
|
10
|
+
});
|
|
11
|
+
var o = a.default = void 0, v = p(l()), C = d;
|
|
12
|
+
o = a.default = (0, v.default)(/* @__PURE__ */ (0, C.jsx)("path", {
|
|
13
|
+
d: "M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"
|
|
14
|
+
}), "ArrowForwardIosSharp");
|
|
15
|
+
const A = { marginTop: 1, borderRadius: "13px" }, b = {
|
|
7
16
|
p: "0 !important",
|
|
8
17
|
m: 0,
|
|
9
18
|
"& .MuiPaper-root": { borderRadius: "13px" }
|
|
10
|
-
},
|
|
11
|
-
const { state:
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
|
|
19
|
+
}, I = (e) => {
|
|
20
|
+
const { state: i } = s(e), { ownerState: t } = i;
|
|
21
|
+
return /* @__PURE__ */ r(
|
|
22
|
+
u,
|
|
14
23
|
{
|
|
15
24
|
disableHeader: !0,
|
|
16
25
|
sx: [
|
|
17
|
-
|
|
26
|
+
A,
|
|
18
27
|
...Array.isArray(e.sx) ? e.sx : [e.sx]
|
|
19
28
|
],
|
|
20
|
-
contentSx:
|
|
21
|
-
children: /* @__PURE__ */
|
|
22
|
-
|
|
29
|
+
contentSx: b,
|
|
30
|
+
children: /* @__PURE__ */ n(
|
|
31
|
+
m,
|
|
23
32
|
{
|
|
24
33
|
disableGutters: !0,
|
|
25
34
|
elevation: 0,
|
|
@@ -28,19 +37,19 @@ const u = { marginTop: 1, borderRadius: "13px" }, h = {
|
|
|
28
37
|
expanded: e.expanded,
|
|
29
38
|
onChange: e.onChange,
|
|
30
39
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
40
|
+
/* @__PURE__ */ n(
|
|
41
|
+
x,
|
|
33
42
|
{
|
|
34
|
-
expandIcon: /* @__PURE__ */
|
|
43
|
+
expandIcon: /* @__PURE__ */ r(o, { sx: { fontSize: 12 } }),
|
|
35
44
|
"aria-controls": "panel1d-content",
|
|
36
45
|
id: "panel1d-header",
|
|
37
46
|
children: [
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ r(f, { ownerState: t, children: e.header }),
|
|
48
|
+
/* @__PURE__ */ r(h, { ownerState: t, children: e.actions })
|
|
40
49
|
]
|
|
41
50
|
}
|
|
42
51
|
),
|
|
43
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ r(S, { children: e.content })
|
|
44
53
|
]
|
|
45
54
|
}
|
|
46
55
|
)
|
|
@@ -48,5 +57,5 @@ const u = { marginTop: 1, borderRadius: "13px" }, h = {
|
|
|
48
57
|
);
|
|
49
58
|
};
|
|
50
59
|
export {
|
|
51
|
-
|
|
60
|
+
I as CollapsibleCard
|
|
52
61
|
};
|