@hybridcore/ui 1.5.90 → 1.6.0
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/{AccordionDetails-DhriPVPP.js → AccordionSummary-DgAwVTk8.js} +81 -82
- package/dist/{Add-CMz4N2zT.js → Add-DJLrrVHm.js} +52 -51
- package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
- package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
- package/dist/AxisRendererY-C_ItLPNV.js +445 -0
- package/dist/Box-p6OtTUEo.js +30 -0
- package/dist/Bullet-DVczI2TD.js +41 -0
- package/dist/Button-CcsPEIDh.js +35 -0
- package/dist/{Button-eqWvpDuh.js → Button-CvE2gnly.js} +138 -124
- package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-2bPw77UP.js} +5 -5
- package/dist/{CardContent-DsYqqPeJ.js → CardContent-CSHh-ZlM.js} +4 -4
- package/dist/CategoryAxis-CwnfaGc8.js +458 -0
- package/dist/{Checkbox-CrU2hpWB.js → Checkbox-CWRMFTBp.js} +12 -11
- package/dist/Circle-Cy5s-pVc.js +27 -0
- package/dist/ColorSet-C7vpNXhM.js +2957 -0
- package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
- package/dist/DataProcessor-CHDO51q4.js +83 -0
- package/dist/DateAxis-YX3QNIB-.js +569 -0
- package/dist/{Delete-86TO0fMo.js → Delete-CW0UZv1m.js} +1 -1
- package/dist/{DialogContent-CqTojymQ.js → DialogContent-B3nbEbuv.js} +10 -11
- package/dist/FormControl-BLbrq4C7.js +1636 -0
- package/dist/{FormControlLabel-BrdX4R71.js → FormControlLabel-C8SPv14J.js} +8 -8
- package/dist/Hierarchy-Bihj0S61.js +925 -0
- package/dist/{IconButton-DJ-31-Fd.js → IconButton-CHwRQF-g.js} +20 -19
- package/dist/IconPlus-yPkff_Vj.js +19 -0
- package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-DLxWUE6H.js} +6 -6
- package/dist/Legend-Dp_MKfS4.js +178 -0
- package/dist/LineSeries-Uiv5o56b.js +472 -0
- package/dist/{List-DOD5kSk3.js → List-tqElle9C.js} +4 -4
- package/dist/{ListItem-r8PbsvCz.js → ListItem-CfjsIg4B.js} +9 -8
- package/dist/{MenuItem-C6qlUyV3.js → MenuItem-xZx_w7zA.js} +14 -13
- package/dist/{Modal-CkcFEpHa.js → Modal-DhPpOoGB.js} +292 -277
- package/dist/{Paper-CjqLScHA.js → Paper-2B03OBmZ.js} +47 -41
- package/dist/PieSeries-B2fW3z0s.js +693 -0
- package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
- package/dist/Scrollbar-D86MJyr2.js +171 -0
- package/dist/{Select-t3ewnSdf.js → Select-BgYwkZgI.js} +2066 -1633
- package/dist/Slice-B19rbYDZ.js +261 -0
- package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
- package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
- package/dist/{TextField-BQ8a50fA.js → TextField-1yCesIbH.js} +23 -25
- package/dist/Tick-2bcLyHpF.js +162 -0
- package/dist/{Typography-D1t7XuLN.js → Typography-CxbneZy_.js} +11 -11
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/XYCursor-C8WktvKM.js +362 -0
- package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
- package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
- package/dist/capitalize-ciszXJ7R.js +9 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/charts/_common/utils.js +20 -0
- package/dist/components/charts/candlestick/logic.js +170 -140
- package/dist/components/charts/chart-wrapper/helpers.js +27 -0
- package/dist/components/charts/chart-wrapper/index.js +44 -0
- package/dist/components/charts/chart-wrapper/logic.js +47 -0
- package/dist/components/charts/chart-wrapper/styled.js +44 -0
- package/dist/components/charts/column-line-mix/index.js +10 -0
- package/dist/components/charts/column-line-mix/logic.js +162 -0
- package/dist/components/charts/column-line-mix/styled.js +12 -0
- package/dist/components/charts/drill-down-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-treemap/logic.js +391 -0
- package/dist/components/charts/drill-down-treemap/styled.js +12 -0
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
- package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
- package/dist/components/charts/heatmap/index.js +10 -0
- package/dist/components/charts/heatmap/logic.js +361 -0
- package/dist/components/charts/heatmap/styled.js +12 -0
- package/dist/components/charts/highlighting-line-data/logic.js +89 -256
- package/dist/components/charts/line/index.js +10 -0
- package/dist/components/charts/line/logic.js +148 -0
- package/dist/components/charts/line/styled.js +12 -0
- package/dist/components/charts/logaritmic-scale/index.js +10 -0
- package/dist/components/charts/logaritmic-scale/logic.js +119 -0
- package/dist/components/charts/logaritmic-scale/styled.js +12 -0
- package/dist/components/charts/multiple-value-axes/index.js +10 -0
- package/dist/components/charts/multiple-value-axes/logic.js +191 -0
- package/dist/components/charts/multiple-value-axes/styled.js +12 -0
- package/dist/components/charts/nested-pie/index.js +10 -0
- package/dist/components/charts/nested-pie/logic.js +110 -0
- package/dist/components/charts/nested-pie/styled.js +12 -0
- package/dist/components/charts/packed-circles/index.js +10 -0
- package/dist/components/charts/packed-circles/logic.js +423 -0
- package/dist/components/charts/packed-circles/styled.js +12 -0
- package/dist/components/charts/pie-chart/index.js +10 -0
- package/dist/components/charts/pie-chart/logic.js +70 -0
- package/dist/components/charts/pie-chart/styled.js +12 -0
- package/dist/components/charts/stacked-area-radar/index.js +10 -0
- package/dist/components/charts/stacked-area-radar/logic.js +868 -0
- package/dist/components/charts/stacked-area-radar/styled.js +12 -0
- package/dist/components/charts/stacked-column-chart/index.js +10 -0
- package/dist/components/charts/stacked-column-chart/logic.js +148 -0
- package/dist/components/charts/stacked-column-chart/styled.js +12 -0
- package/dist/components/charts/xy-chart/index.js +10 -0
- package/dist/components/charts/xy-chart/logic.js +170 -0
- package/dist/components/charts/xy-chart/styled.js +12 -0
- package/dist/components/collapsible-card/index.js +58 -32
- package/dist/components/collapsible-card/logic.js +20 -0
- package/dist/components/collapsible-card/styled.js +52 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +153 -253
- package/dist/components/data-map/components/controls/index.js +12 -0
- package/dist/components/data-map/components/controls/styled.js +34 -0
- package/dist/components/data-map/index.js +51 -0
- package/dist/components/data-map/logic.js +108 -0
- package/dist/components/data-map/styled.js +32 -0
- package/dist/components/data-security-selectors/security-level/index.js +5 -5
- package/dist/components/date-picker-with-custom-range/index.js +9 -0
- package/dist/components/date-picker-with-custom-range/logic.js +66 -0
- package/dist/components/date-picker-with-custom-range/styled.js +43 -0
- package/dist/components/divider/index.js +18 -0
- package/dist/components/divider/logic.js +13 -0
- package/dist/components/divider/styled.js +14 -0
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- 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/index.js +7 -8
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +65 -62
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/heat-map/components/controls/index.js +12 -0
- package/dist/components/heat-map/components/controls/styled.js +34 -0
- package/dist/components/heat-map/components/legend/index.js +26 -0
- package/dist/components/heat-map/components/legend/styled.js +14 -0
- package/dist/components/heat-map/index.js +37 -0
- package/dist/components/heat-map/logic.js +1945 -0
- package/dist/components/heat-map/styled.js +32 -0
- package/dist/components/icon-button/index.js +22 -15
- package/dist/components/icon-button/logic.js +15 -0
- package/dist/components/icon-button/styled.js +22 -10
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
- package/dist/components/instance-form/components/variable/index.js +8 -8
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +34 -29
- package/dist/components/instance-variable-list/styled.js +21 -21
- package/dist/components/instance-variable-list/variable.js +44 -74
- package/dist/components/linear-indicator/index.js +10 -67
- package/dist/components/linear-indicator/logic.js +47 -0
- package/dist/components/linear-indicator/styled.js +39 -40
- package/dist/components/map/helpers/kml.js +1 -1
- package/dist/components/map/helpers/mapbox.js +14 -14
- package/dist/components/map/helpers/ol.js +23 -19
- package/dist/components/map/helpers/wkt.js +26 -1314
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +113 -101
- package/dist/components/map/styled.js +39 -31
- package/dist/components/metric-card/MetricChart.js +50 -498
- package/dist/components/metric-card/index.js +94 -115
- package/dist/components/metric-card/logic.js +70 -131
- package/dist/components/object-profile-card/components/avatar/index.js +44 -0
- package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
- package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
- package/dist/components/object-profile-card/index.js +90 -0
- package/dist/components/object-profile-card/logic.js +33 -0
- package/dist/components/object-profile-card/styled.js +48 -0
- package/dist/components/paginated-list/index.js +93 -89
- package/dist/components/paginated-list/logic.js +51 -40
- package/dist/components/paginated-list/styled.js +25 -21
- package/dist/components/property-mapping/index.js +2 -2
- package/dist/components/prr-map/components/controls/index.js +12 -0
- package/dist/components/prr-map/components/controls/styled.js +34 -0
- package/dist/components/prr-map/components/legend/index.js +36 -0
- package/dist/components/prr-map/components/legend/styled.js +21 -0
- package/dist/components/prr-map/index.js +38 -0
- package/dist/components/prr-map/logic.js +104 -0
- package/dist/components/prr-map/styled.js +32 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +4282 -7
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/raster-grid-map/components/controls/index.js +12 -0
- package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
- package/dist/components/raster-grid-map/components/legend/index.js +14 -0
- package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
- package/dist/components/raster-grid-map/helpers.js +190 -0
- package/dist/components/raster-grid-map/index.js +38 -0
- package/dist/components/raster-grid-map/logic.js +172 -0
- package/dist/components/raster-grid-map/styled.js +32 -0
- package/dist/components/search-input/index.js +62 -140
- package/dist/components/search-input/logic.js +43 -0
- package/dist/components/search-input/styled.js +33 -0
- package/dist/components/simple-pivot-table/index.js +66 -0
- package/dist/components/simple-pivot-table/logic.js +51 -0
- package/dist/components/simple-pivot-table/styled.js +45 -0
- package/dist/components/static-text/index.js +18 -0
- package/dist/components/static-text/logic.js +13 -0
- package/dist/components/static-text/styled.js +45 -0
- package/dist/components/tabs/index.js +56 -2160
- package/dist/components/tabs/logic.js +36 -0
- package/dist/components/tabs/styled.js +94 -16
- package/dist/components/tabs/tab-panel.js +11 -10
- package/dist/components/template-filters/components/tab-panel/index.js +1 -1
- package/dist/components/template-form/components/property-list/index.js +7 -7
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/template-form/index.js +5 -5
- package/dist/components/template-property-filters/property.js +5 -5
- package/dist/components/timeline/index.js +61 -0
- package/dist/components/timeline/logic.js +40 -0
- package/dist/components/timeline/styled.js +48 -0
- package/dist/components/tree-select/index.js +5 -5
- package/dist/components/treeview-filter/item-label/index.js +3 -3
- package/dist/constant-BiOGvlZc.js +21 -0
- package/dist/createReactComponent-C7L-DMHj.js +60 -0
- package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BjpIhJ30.js} +30 -32
- package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DrtgaibK.js} +5 -5
- package/dist/{createTheme-CNnKNxwL.js → createTheme-DYxDnE9u.js} +226 -285
- package/dist/{dialog-BE4D6swf.js → dialog-DcwXug9J.js} +6 -6
- package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
- package/dist/index-BMS1Otro.js +183 -0
- package/dist/index-C__OZmYy.js +663 -0
- package/dist/{index-CGNxsLVm.js → index-CcdvNlgr.js} +7 -7
- package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
- package/dist/index-syTc6m_V.js +1934 -0
- package/dist/index.es-CHNMhaMi.js +2067 -0
- package/dist/index.esm-BLLrbTzY.js +318 -0
- package/dist/{listItemTextClasses-CNjn41Of.js → listItemTextClasses-C3lndiXO.js} +2 -2
- package/dist/main.d.ts +1226 -358
- package/dist/main.js +141 -443
- package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/path-CNVruS--.js +84 -0
- package/dist/{property-list-form-C5hcK2y2.js → property-list-form-zZQfpR0X.js} +13 -13
- package/dist/styled-eZwjUruw.js +12 -0
- package/dist/useId-B4-oF9Mq.js +34 -0
- package/dist/useMobilePicker-BLg3Blg8.js +7589 -0
- package/dist/useThemeProps-BzzHcQyd.js +58 -0
- package/dist/{utils-CsOZUsQj.js → utils-BDNynJcd.js} +2 -2
- package/package.json +11 -2
- package/dist/AxisRendererY-kADUad00.js +0 -18370
- package/dist/Box-B1AVyJ_s.js +0 -71
- package/dist/DateAxis-CMum47iz.js +0 -924
- package/dist/Input-CoIrGZAh.js +0 -326
- package/dist/InputLabel-CBuAYyuT.js +0 -1367
- package/dist/LineSeries-CfcpoYla.js +0 -549
- package/dist/OutlinedInput-B-iZoc9l.js +0 -450
- package/dist/Tabs-Cn42Z5QI.js +0 -789
- package/dist/components/collapsible-card/style.js +0 -49
- package/dist/components/profile-card/index.js +0 -80
- package/dist/components/profile-card/logic.js +0 -33
- package/dist/components/profile-card/styled.js +0 -43
- package/dist/components/tabs/appleTabs.style.js +0 -55
- package/dist/createStyled-BGx1I94c.js +0 -352
- package/dist/createTheme-CyC5HawC.js +0 -879
- package/dist/exactProp-cjT0t_Pt.js +0 -36
- package/dist/extendSxProp-FEpqY5_S.js +0 -30
- package/dist/index-DMSHuq6l.js +0 -688
- package/dist/index-SpeaLUQD.js +0 -10963
- package/dist/ol-lGwSyEIV.js +0 -15050
- package/dist/ownerDocument-CUrv0DIK.js +0 -6
- package/dist/ownerWindow-niciwP7I.js +0 -7
- package/dist/styled-B8ugzvji.js +0 -12
- package/dist/useId-BHG98T5I.js +0 -26
- package/dist/useTheme-C15Eq8KG.js +0 -18
- package/dist/useTheme-D-uii9iX.js +0 -10
- package/dist/useThemeProps-DRP1dikX.js +0 -95
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { R as Y, A as L, T as d } from "../../../AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { useThemeProps as C, useTheme as R } from "@mui/material";
|
|
3
|
+
import x from "lodash";
|
|
4
|
+
import { useId as I, useRef as E, useEffect as O } from "react";
|
|
5
|
+
import { colorSetFromPalette as P } from "../_common/utils.js";
|
|
6
|
+
import { c as s } from "../../../ColorSet-C7vpNXhM.js";
|
|
7
|
+
import { X as q, V as B } from "../../../AxisRenderer-DTyLLA6c.js";
|
|
8
|
+
import { X as V } from "../../../XYCursor-C8WktvKM.js";
|
|
9
|
+
import { D as z } from "../../../DateAxis-YX3QNIB-.js";
|
|
10
|
+
import { A as y, a as G } from "../../../AxisRendererY-C_ItLPNV.js";
|
|
11
|
+
import { C as H } from "../../../CategoryAxis-CwnfaGc8.js";
|
|
12
|
+
import { L as N } from "../../../LineSeries-Uiv5o56b.js";
|
|
13
|
+
import { D as U } from "../../../DataProcessor-CHDO51q4.js";
|
|
14
|
+
import { S as W } from "../../../Scrollbar-D86MJyr2.js";
|
|
15
|
+
const ne = (X) => {
|
|
16
|
+
const u = C({ props: X, name: "HCLogaritmicScale" }), {
|
|
17
|
+
dimensions: t,
|
|
18
|
+
values: m,
|
|
19
|
+
data: i,
|
|
20
|
+
initDelay: F = 0,
|
|
21
|
+
baseInterval: b,
|
|
22
|
+
colors: f,
|
|
23
|
+
sx: k,
|
|
24
|
+
...S
|
|
25
|
+
} = u, o = R(), h = `hc-logaritmic-scale-${I().replace(/:/g, "")}`, c = E(null);
|
|
26
|
+
O(() => {
|
|
27
|
+
let p;
|
|
28
|
+
return p = setTimeout(() => {
|
|
29
|
+
var g, A, w;
|
|
30
|
+
if (t.length < 1) {
|
|
31
|
+
console.error("LogaritmicScale requires at least 1 dimension");
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (m.length < 1) {
|
|
35
|
+
console.error("LogaritmicScale requires at least 1 value");
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const e = Y.new(h);
|
|
39
|
+
c.current = e, e.setThemes([L.new(e)]), e.interfaceColors.setAll({
|
|
40
|
+
text: s(o.palette.text.primary),
|
|
41
|
+
grid: s(o.palette.divider),
|
|
42
|
+
stroke: s(o.palette.divider)
|
|
43
|
+
});
|
|
44
|
+
const r = e.container.children.push(
|
|
45
|
+
q.new(e, {
|
|
46
|
+
panX: !0,
|
|
47
|
+
panY: !0,
|
|
48
|
+
wheelX: "none",
|
|
49
|
+
wheelY: "none",
|
|
50
|
+
pinchZoomX: !0
|
|
51
|
+
})
|
|
52
|
+
);
|
|
53
|
+
r.set("colors", P(e, f)), r.set(
|
|
54
|
+
"cursor",
|
|
55
|
+
V.new(e, { behavior: "none" })
|
|
56
|
+
).lineY.set("visible", !1);
|
|
57
|
+
let a, l = i;
|
|
58
|
+
t[0].type === "date" ? (l = x.orderBy(i, [t[0].value]), a = r.xAxes.push(
|
|
59
|
+
z.new(e, {
|
|
60
|
+
maxDeviation: 0.1,
|
|
61
|
+
groupData: !1,
|
|
62
|
+
baseInterval: b || { timeUnit: "day", count: 1 },
|
|
63
|
+
renderer: y.new(e, {}),
|
|
64
|
+
tooltip: d.new(e, {})
|
|
65
|
+
})
|
|
66
|
+
), (g = a.get("renderer")) == null || g.grid.template.setAll({
|
|
67
|
+
stroke: s(o.palette.divider),
|
|
68
|
+
strokeOpacity: 1
|
|
69
|
+
})) : (a = r.xAxes.push(
|
|
70
|
+
H.new(e, {
|
|
71
|
+
categoryField: t[0].value,
|
|
72
|
+
renderer: y.new(e, {}),
|
|
73
|
+
tooltip: d.new(e, {})
|
|
74
|
+
})
|
|
75
|
+
), e.numberFormatter.setAll({
|
|
76
|
+
numberFormat: "#",
|
|
77
|
+
numericFields: ["valueX"]
|
|
78
|
+
}), l = x.orderBy(i, [t[0].value]), a.data.setAll(l), (A = a.get("renderer")) == null || A.grid.template.setAll({
|
|
79
|
+
stroke: s(o.palette.divider),
|
|
80
|
+
strokeOpacity: 1
|
|
81
|
+
}));
|
|
82
|
+
const v = r.yAxes.push(
|
|
83
|
+
B.new(e, {
|
|
84
|
+
logarithmic: !0,
|
|
85
|
+
renderer: G.new(e, { minorGridEnabled: !0 })
|
|
86
|
+
})
|
|
87
|
+
);
|
|
88
|
+
(w = v.get("renderer")) == null || w.grid.template.setAll({
|
|
89
|
+
stroke: s(o.palette.divider),
|
|
90
|
+
strokeOpacity: 1
|
|
91
|
+
}), m.forEach((D) => {
|
|
92
|
+
const n = r.series.push(
|
|
93
|
+
N.new(e, {
|
|
94
|
+
xAxis: a,
|
|
95
|
+
yAxis: v,
|
|
96
|
+
valueYField: D.dataFieldName,
|
|
97
|
+
...t[0].type === "date" ? { valueXField: t[0].value } : { categoryXField: t[0].value },
|
|
98
|
+
tooltip: d.new(e, { labelText: "{valueY}" })
|
|
99
|
+
})
|
|
100
|
+
);
|
|
101
|
+
n.strokes.template.setAll({ strokeWidth: 3 }), t[0].type === "date" && (n.data.processor = U.new(e, {
|
|
102
|
+
dateFormat: "i",
|
|
103
|
+
dateFields: [t[0].value]
|
|
104
|
+
})), n.data.setAll(l), n.appear(1e3);
|
|
105
|
+
}), r.set(
|
|
106
|
+
"scrollbarX",
|
|
107
|
+
W.new(e, { orientation: "horizontal" })
|
|
108
|
+
), r.appear(1e3, 100);
|
|
109
|
+
}, F), () => {
|
|
110
|
+
var e;
|
|
111
|
+
p && clearTimeout(p), (e = c.current) == null || e.dispose(), c.current = null;
|
|
112
|
+
};
|
|
113
|
+
}, [i, t, m, o.palette.mode, f]);
|
|
114
|
+
const T = { ...u };
|
|
115
|
+
return { chartId: h, ownerState: T, sx: k, other: S };
|
|
116
|
+
};
|
|
117
|
+
export {
|
|
118
|
+
ne as useLogaritmicScaleLogic
|
|
119
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { styled as t, Box as r } from "@mui/material";
|
|
2
|
+
const a = t(r, {
|
|
3
|
+
name: "HCLogaritmicScale",
|
|
4
|
+
slot: "Root",
|
|
5
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
6
|
+
})(() => ({
|
|
7
|
+
width: "100%",
|
|
8
|
+
height: "100%"
|
|
9
|
+
}));
|
|
10
|
+
export {
|
|
11
|
+
a as LogaritmicScaleRoot
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useMultipleValueAxesLogic as u } from "./logic.js";
|
|
3
|
+
import { MultipleValueAxesRoot as s } from "./styled.js";
|
|
4
|
+
function n(t) {
|
|
5
|
+
const { chartId: o, ownerState: i, sx: r, other: l } = u(t);
|
|
6
|
+
return /* @__PURE__ */ e(s, { ownerState: i, sx: r, ...l, children: /* @__PURE__ */ e("div", { id: o, style: { width: "100%", height: "100%" } }) });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
n as MultipleValueAxes
|
|
10
|
+
};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { G as N, R as V, A as W, T as k, b as M } from "../../../AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { useThemeProps as j, useTheme as q } from "@mui/material";
|
|
3
|
+
import T from "lodash";
|
|
4
|
+
import { useId as z, useRef as U, useEffect as $ } from "react";
|
|
5
|
+
import { colorSetFromPalette as H } from "../_common/utils.js";
|
|
6
|
+
import { c as C, a as g } from "../../../ColorSet-C7vpNXhM.js";
|
|
7
|
+
import { X as J, V as K } from "../../../AxisRenderer-DTyLLA6c.js";
|
|
8
|
+
import { L as Q } from "../../../Legend-Dp_MKfS4.js";
|
|
9
|
+
import { D as Z } from "../../../DateAxis-YX3QNIB-.js";
|
|
10
|
+
import { A as E, a as ee } from "../../../AxisRendererY-C_ItLPNV.js";
|
|
11
|
+
import { C as te } from "../../../CategoryAxis-CwnfaGc8.js";
|
|
12
|
+
import { X as re } from "../../../XYCursor-C8WktvKM.js";
|
|
13
|
+
import { L as se } from "../../../LineSeries-Uiv5o56b.js";
|
|
14
|
+
import { D as oe } from "../../../DataProcessor-CHDO51q4.js";
|
|
15
|
+
import { C as ae } from "../../../Circle-Cy5s-pVc.js";
|
|
16
|
+
import { B as ie } from "../../../Bullet-DVczI2TD.js";
|
|
17
|
+
class A extends N {
|
|
18
|
+
_beforeChanged() {
|
|
19
|
+
super._beforeChanged(), (this.isDirty("width") || this.isDirty("height") || this.isPrivateDirty("width") || this.isPrivateDirty("height")) && (this._clear = !0);
|
|
20
|
+
}
|
|
21
|
+
_changed() {
|
|
22
|
+
super._changed(), this._clear && !this.get("draw") && this._draw();
|
|
23
|
+
}
|
|
24
|
+
_draw() {
|
|
25
|
+
const n = this.width(), r = this.height(), s = this._display;
|
|
26
|
+
s.moveTo(-n / 2, r / 2), s.lineTo(0, -r / 2), s.lineTo(n / 2, r / 2), s.lineTo(-n / 2, r / 2), s.closePath();
|
|
27
|
+
}
|
|
28
|
+
_updateSize() {
|
|
29
|
+
this.markDirty(), this._clear = !0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
Object.defineProperty(A, "className", {
|
|
33
|
+
enumerable: !0,
|
|
34
|
+
configurable: !0,
|
|
35
|
+
writable: !0,
|
|
36
|
+
value: "Triangle"
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(A, "classNames", {
|
|
39
|
+
enumerable: !0,
|
|
40
|
+
configurable: !0,
|
|
41
|
+
writable: !0,
|
|
42
|
+
value: N.classNames.concat([A.className])
|
|
43
|
+
});
|
|
44
|
+
const w = ["CIRCLE", "RECTANGLE", "TRIANGLE"], Ce = (D) => {
|
|
45
|
+
const n = j({ props: D, name: "HCMultipleValueAxes" }), {
|
|
46
|
+
dimensions: r,
|
|
47
|
+
values: s,
|
|
48
|
+
data: p,
|
|
49
|
+
initDelay: P = 0,
|
|
50
|
+
baseInterval: X,
|
|
51
|
+
colors: L,
|
|
52
|
+
sx: Y,
|
|
53
|
+
...F
|
|
54
|
+
} = n, h = q(), R = `hc-multiple-value-axes-${z().replace(/:/g, "")}`, x = U(null);
|
|
55
|
+
$(() => {
|
|
56
|
+
let y;
|
|
57
|
+
return y = setTimeout(() => {
|
|
58
|
+
if (r.length < 1) {
|
|
59
|
+
console.error("MultipleValueAxes requires at least 1 dimension");
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (s.length < 1) {
|
|
63
|
+
console.error("MultipleValueAxes requires at least 1 value");
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const e = V.new(R);
|
|
67
|
+
x.current = e, e.setThemes([W.new(e)]), e.interfaceColors.setAll({
|
|
68
|
+
text: C(h.palette.text.primary),
|
|
69
|
+
grid: C(h.palette.divider),
|
|
70
|
+
stroke: C(h.palette.divider)
|
|
71
|
+
});
|
|
72
|
+
const t = e.container.children.push(
|
|
73
|
+
J.new(e, {
|
|
74
|
+
panX: !1,
|
|
75
|
+
panY: !1,
|
|
76
|
+
wheelX: "none",
|
|
77
|
+
wheelY: "none",
|
|
78
|
+
layout: e.verticalLayout
|
|
79
|
+
})
|
|
80
|
+
);
|
|
81
|
+
t.set("colors", H(e, L)), t.get("colors", {}).set("step", 3);
|
|
82
|
+
const O = t.children.push(
|
|
83
|
+
Q.new(e, { centerX: g, x: g })
|
|
84
|
+
), i = r[0];
|
|
85
|
+
let u, d = p;
|
|
86
|
+
i.type === "date" ? (u = t.xAxes.push(
|
|
87
|
+
Z.new(e, {
|
|
88
|
+
maxDeviation: 0.1,
|
|
89
|
+
groupData: !1,
|
|
90
|
+
baseInterval: X || { timeUnit: "day", count: 1 },
|
|
91
|
+
renderer: E.new(e, {}),
|
|
92
|
+
tooltip: k.new(e, {})
|
|
93
|
+
})
|
|
94
|
+
), d = T.orderBy(p, [i.value])) : (u = t.xAxes.push(
|
|
95
|
+
te.new(e, {
|
|
96
|
+
categoryField: i.value,
|
|
97
|
+
renderer: E.new(e, {}),
|
|
98
|
+
tooltip: k.new(e, {})
|
|
99
|
+
})
|
|
100
|
+
), e.numberFormatter.setAll({
|
|
101
|
+
numberFormat: "#",
|
|
102
|
+
numericFields: ["valueX"]
|
|
103
|
+
}), d = T.orderBy(p, [i.value]), u.data.setAll(d));
|
|
104
|
+
function _(l, a, c, B, G, v, S) {
|
|
105
|
+
const m = ee.new(e, { opposite: G }), b = t.yAxes.push(
|
|
106
|
+
K.new(e, { maxDeviation: 1, renderer: m })
|
|
107
|
+
);
|
|
108
|
+
t.yAxes.indexOf(b) > 0 && b.set("syncWithAxis", t.yAxes.getIndex(0));
|
|
109
|
+
const o = t.series.push(
|
|
110
|
+
se.new(e, {
|
|
111
|
+
name: a,
|
|
112
|
+
xAxis: u,
|
|
113
|
+
yAxis: b,
|
|
114
|
+
valueYField: B,
|
|
115
|
+
...i.type === "date" ? { valueXField: c } : { categoryXField: c },
|
|
116
|
+
tooltip: k.new(e, {
|
|
117
|
+
pointerOrientation: "horizontal",
|
|
118
|
+
labelText: `${a}: {valueY}`
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
);
|
|
122
|
+
o.strokes.template.setAll({ strokeWidth: 2 }), m.grid.template.set("strokeOpacity", 0.05), m.labels.template.set("fill", o.get("fill")), m.setAll({
|
|
123
|
+
stroke: o.get("fill"),
|
|
124
|
+
strokeOpacity: 1,
|
|
125
|
+
opacity: 1
|
|
126
|
+
}), S === "date" && (o.data.processor = oe.new(e, {
|
|
127
|
+
dateFormat: "i",
|
|
128
|
+
dateFields: [c]
|
|
129
|
+
})), v !== void 0 && o.bullets.push(function() {
|
|
130
|
+
let f;
|
|
131
|
+
return v === "RECTANGLE" ? f = M.new(e, {
|
|
132
|
+
width: 10,
|
|
133
|
+
height: 10,
|
|
134
|
+
centerX: g,
|
|
135
|
+
centerY: g,
|
|
136
|
+
strokeWidth: 2,
|
|
137
|
+
stroke: o.get("stroke"),
|
|
138
|
+
fill: e.interfaceColors.get("background")
|
|
139
|
+
}) : v === "TRIANGLE" ? f = A.new(e, {
|
|
140
|
+
width: 10,
|
|
141
|
+
height: 10,
|
|
142
|
+
strokeWidth: 2,
|
|
143
|
+
stroke: o.get("stroke"),
|
|
144
|
+
fill: e.interfaceColors.get("background")
|
|
145
|
+
}) : f = ae.new(e, {
|
|
146
|
+
strokeWidth: 2,
|
|
147
|
+
radius: 4,
|
|
148
|
+
stroke: o.get("stroke"),
|
|
149
|
+
fill: e.interfaceColors.get("background")
|
|
150
|
+
}), ie.new(e, { sprite: f });
|
|
151
|
+
}), o.data.setAll(l);
|
|
152
|
+
}
|
|
153
|
+
if (t.set(
|
|
154
|
+
"cursor",
|
|
155
|
+
re.new(e, { xAxis: u, behavior: "none" })
|
|
156
|
+
).lineY.set("visible", !1), r.length > 1) {
|
|
157
|
+
const l = T.groupBy(d, r[1].value);
|
|
158
|
+
Object.keys(l).forEach((a, c) => {
|
|
159
|
+
_(
|
|
160
|
+
l[a],
|
|
161
|
+
a,
|
|
162
|
+
r[0].value,
|
|
163
|
+
s[0].dataFieldName,
|
|
164
|
+
c !== 0,
|
|
165
|
+
w[c % w.length]
|
|
166
|
+
);
|
|
167
|
+
});
|
|
168
|
+
} else
|
|
169
|
+
s.forEach((l, a) => {
|
|
170
|
+
_(
|
|
171
|
+
d,
|
|
172
|
+
l.name,
|
|
173
|
+
i.value,
|
|
174
|
+
l.dataFieldName,
|
|
175
|
+
a !== 0,
|
|
176
|
+
w[a % w.length],
|
|
177
|
+
i.type
|
|
178
|
+
);
|
|
179
|
+
});
|
|
180
|
+
O.data.setAll(t.series.values), t.appear(1e3, 100);
|
|
181
|
+
}, P), () => {
|
|
182
|
+
var e;
|
|
183
|
+
y && clearTimeout(y), (e = x.current) == null || e.dispose(), x.current = null;
|
|
184
|
+
};
|
|
185
|
+
}, [p, r, s, h.palette.mode, L]);
|
|
186
|
+
const I = { ...n };
|
|
187
|
+
return { chartId: R, ownerState: I, sx: Y, other: F };
|
|
188
|
+
};
|
|
189
|
+
export {
|
|
190
|
+
Ce as useMultipleValueAxesLogic
|
|
191
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { styled as t, Box as e } from "@mui/material";
|
|
2
|
+
const r = t(e, {
|
|
3
|
+
name: "HCMultipleValueAxes",
|
|
4
|
+
slot: "Root",
|
|
5
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
6
|
+
})(() => ({
|
|
7
|
+
width: "100%",
|
|
8
|
+
height: "100%"
|
|
9
|
+
}));
|
|
10
|
+
export {
|
|
11
|
+
r as MultipleValueAxesRoot
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useNestedPieLogic as s } from "./logic.js";
|
|
3
|
+
import { NestedPieRoot as h } from "./styled.js";
|
|
4
|
+
function f(t) {
|
|
5
|
+
const { chartId: o, ownerState: i, sx: r, other: d } = s(t);
|
|
6
|
+
return /* @__PURE__ */ e(h, { ownerState: i, sx: r, ...d, children: /* @__PURE__ */ e("div", { id: o, style: { width: "100%", height: "100%" } }) });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
f as NestedPie
|
|
10
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { R, A as C } from "../../../AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { useThemeProps as S, useTheme as E } from "@mui/material";
|
|
3
|
+
import L from "dayjs";
|
|
4
|
+
import P from "lodash";
|
|
5
|
+
import { useId as j, useRef as q, useEffect as B } from "react";
|
|
6
|
+
import { colorSetFromPalette as H } from "../_common/utils.js";
|
|
7
|
+
import { c as u, p as o } from "../../../ColorSet-C7vpNXhM.js";
|
|
8
|
+
import { P as I, a as T } from "../../../PieSeries-B2fW3z0s.js";
|
|
9
|
+
const Q = (F) => {
|
|
10
|
+
const h = S({ props: F, name: "HCNestedPie" }), {
|
|
11
|
+
dimensions: r,
|
|
12
|
+
values: s,
|
|
13
|
+
data: n,
|
|
14
|
+
initDelay: N = 0,
|
|
15
|
+
colors: v,
|
|
16
|
+
sx: b,
|
|
17
|
+
...x
|
|
18
|
+
} = h, i = E(), g = `hc-nested-pie-${j().replace(/:/g, "")}`, d = q(null);
|
|
19
|
+
B(() => {
|
|
20
|
+
let m;
|
|
21
|
+
return m = setTimeout(() => {
|
|
22
|
+
if (r.length < 2) {
|
|
23
|
+
console.error("NestedPie requires at least 2 dimensions");
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (s.length < 1) {
|
|
27
|
+
console.error("NestedPie requires at least 1 value");
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const e = R.new(g);
|
|
31
|
+
d.current = e, e.setThemes([C.new(e)]), e.interfaceColors.setAll({
|
|
32
|
+
text: u(i.palette.text.primary),
|
|
33
|
+
grid: u(i.palette.divider),
|
|
34
|
+
stroke: u(i.palette.divider)
|
|
35
|
+
});
|
|
36
|
+
const p = e.container.children.push(
|
|
37
|
+
I.new(e, {
|
|
38
|
+
layout: e.verticalLayout,
|
|
39
|
+
radius: o(100)
|
|
40
|
+
})
|
|
41
|
+
);
|
|
42
|
+
r[0].type === "date" && n.forEach((a) => {
|
|
43
|
+
let l = "YYYY";
|
|
44
|
+
r[0].value.includes("month") ? l = "MMM YYYY" : r[0].value.includes("day") && (l = "DD MMM YYYY"), a[r[0].value] = L(a[r[0].value]).format(
|
|
45
|
+
l
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
const f = P.orderBy(n, (a) => a[r[0].value]);
|
|
49
|
+
r.forEach((a, l) => {
|
|
50
|
+
const y = e.interfaceColors.get("background");
|
|
51
|
+
if (l === 0) {
|
|
52
|
+
const t = p.series.push(
|
|
53
|
+
T.new(e, {
|
|
54
|
+
valueField: s[0].dataFieldName,
|
|
55
|
+
categoryField: a.value,
|
|
56
|
+
alignLabels: !1,
|
|
57
|
+
radius: o(80),
|
|
58
|
+
innerRadius: o(25)
|
|
59
|
+
})
|
|
60
|
+
);
|
|
61
|
+
if (t.ticks.template.setAll({ forceHidden: !0 }), t.labels.template.setAll({
|
|
62
|
+
radius: -10,
|
|
63
|
+
text: "{category}",
|
|
64
|
+
textType: "radial",
|
|
65
|
+
centerX: o(100)
|
|
66
|
+
}), t.slices.template.setAll({
|
|
67
|
+
stroke: y,
|
|
68
|
+
strokeWidth: 2,
|
|
69
|
+
fill: u(11184810),
|
|
70
|
+
tooltipText: "{category}: {valuePercentTotal.formatNumber('0.00')}% ({value})"
|
|
71
|
+
}), t.slices.template.states.create("hover", { scale: 0.95 }), r.length > 1) {
|
|
72
|
+
const c = [], Y = P.groupBy(f, a.value);
|
|
73
|
+
Object.keys(Y).forEach((A) => {
|
|
74
|
+
const w = Y[A].reduce((D, M) => D + M[s[0].dataFieldName], 0);
|
|
75
|
+
c.push({
|
|
76
|
+
[a.value]: A,
|
|
77
|
+
[s[0].dataFieldName]: w
|
|
78
|
+
});
|
|
79
|
+
}), t.data.setAll(c);
|
|
80
|
+
} else
|
|
81
|
+
t.data.setAll(f);
|
|
82
|
+
} else if (l === 1) {
|
|
83
|
+
const t = p.series.push(
|
|
84
|
+
T.new(e, {
|
|
85
|
+
valueField: s[0].dataFieldName,
|
|
86
|
+
categoryField: a.value,
|
|
87
|
+
alignLabels: !0,
|
|
88
|
+
innerRadius: o(80),
|
|
89
|
+
radius: o(100)
|
|
90
|
+
})
|
|
91
|
+
), c = H(e, v);
|
|
92
|
+
t.set("colors", c), t.slices.template.setAll({
|
|
93
|
+
stroke: y,
|
|
94
|
+
strokeWidth: 2,
|
|
95
|
+
templateField: "settings",
|
|
96
|
+
tooltipText: "{category}: {valuePercentTotal.formatNumber('0.00')}% ({value})"
|
|
97
|
+
}), t.labels.template.setAll({ text: "{category}" }), t.data.setAll(f);
|
|
98
|
+
}
|
|
99
|
+
}), p.appear(1e3, 100);
|
|
100
|
+
}, N), () => {
|
|
101
|
+
var e;
|
|
102
|
+
m && clearTimeout(m), (e = d.current) == null || e.dispose(), d.current = null;
|
|
103
|
+
};
|
|
104
|
+
}, [n, r, s, i.palette.mode, v]);
|
|
105
|
+
const k = { ...h };
|
|
106
|
+
return { chartId: g, ownerState: k, sx: b, other: x };
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
Q as useNestedPieLogic
|
|
110
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { usePackedCirclesLogic as d } from "./logic.js";
|
|
3
|
+
import { PackedCirclesRoot as s } from "./styled.js";
|
|
4
|
+
function a(e) {
|
|
5
|
+
const { chartId: t, ownerState: o, sx: i, other: c } = d(e);
|
|
6
|
+
return /* @__PURE__ */ r(s, { ownerState: o, sx: i, ...c, children: /* @__PURE__ */ r("div", { id: t, style: { width: "100%", height: "100%" } }) });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
a as PackedCircles
|
|
10
|
+
};
|