@hybridcore/ui 1.5.89 → 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 +42 -9
- 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
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useThemeProps as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { k as N, l as M, R as B, A as I, T as G } from "../../../AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { useTheme as U, useThemeProps as Z } from "@mui/material";
|
|
3
|
+
import q from "lodash";
|
|
4
|
+
import { useRef as P, useLayoutEffect as J, useEffect as K } from "react";
|
|
5
|
+
import { m as S, e as j, c as X, p as Q } from "../../../ColorSet-C7vpNXhM.js";
|
|
6
|
+
import { X as $, V as H } from "../../../AxisRenderer-DTyLLA6c.js";
|
|
7
|
+
import { X as ee } from "../../../XYCursor-C8WktvKM.js";
|
|
8
|
+
import { D as te } from "../../../DateAxis-YX3QNIB-.js";
|
|
9
|
+
import { A as se, a as E } from "../../../AxisRendererY-C_ItLPNV.js";
|
|
10
|
+
import { C as T } from "../../../ColumnSeries-CjgdJ2QL.js";
|
|
11
|
+
import { R as W } from "../../../RoundedRectangle-CWLi2PXn.js";
|
|
12
|
+
import { D as z } from "../../../DataProcessor-CHDO51q4.js";
|
|
13
|
+
class C extends W {
|
|
7
14
|
_beforeChanged() {
|
|
8
15
|
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);
|
|
9
16
|
}
|
|
@@ -13,172 +20,189 @@ class D extends M {
|
|
|
13
20
|
e.moveTo(this.get("lowX0", 0), this.get("lowY0", 0)), e.lineTo(this.get("lowX1", 0), this.get("lowY1", 0)), e.moveTo(this.get("highX0", 0), this.get("highY0", 0)), e.lineTo(this.get("highX1", 0), this.get("highY1", 0));
|
|
14
21
|
}
|
|
15
22
|
}
|
|
16
|
-
Object.defineProperty(
|
|
23
|
+
Object.defineProperty(C, "className", {
|
|
17
24
|
enumerable: !0,
|
|
18
25
|
configurable: !0,
|
|
19
26
|
writable: !0,
|
|
20
27
|
value: "Candlestick"
|
|
21
28
|
});
|
|
22
|
-
Object.defineProperty(
|
|
29
|
+
Object.defineProperty(C, "classNames", {
|
|
23
30
|
enumerable: !0,
|
|
24
31
|
configurable: !0,
|
|
25
32
|
writable: !0,
|
|
26
|
-
value:
|
|
33
|
+
value: W.classNames.concat([C.className])
|
|
27
34
|
});
|
|
28
|
-
class
|
|
35
|
+
class k extends T {
|
|
29
36
|
constructor() {
|
|
30
37
|
super(...arguments), Object.defineProperty(this, "columns", {
|
|
31
38
|
enumerable: !0,
|
|
32
39
|
configurable: !0,
|
|
33
40
|
writable: !0,
|
|
34
|
-
value: this.addDisposer(new
|
|
41
|
+
value: this.addDisposer(new N(M.new({
|
|
35
42
|
themeTags: ["autocolor"]
|
|
36
|
-
}), () =>
|
|
37
|
-
themeTags:
|
|
43
|
+
}), () => C._new(this._root, {
|
|
44
|
+
themeTags: S(this.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
|
|
38
45
|
}, [this.columns.template])))
|
|
39
46
|
});
|
|
40
47
|
}
|
|
41
48
|
/**
|
|
42
49
|
* @ignore
|
|
43
50
|
*/
|
|
44
|
-
makeColumn(e,
|
|
45
|
-
const h =
|
|
46
|
-
return this.get("turboMode") ? h.virtualParent = this.chart : this.mainContainer.children.push(h), h._setDataItem(e),
|
|
51
|
+
makeColumn(e, i) {
|
|
52
|
+
const h = i.make();
|
|
53
|
+
return this.get("turboMode") ? h.virtualParent = this.chart : this.mainContainer.children.push(h), h._setDataItem(e), i.push(h), h;
|
|
47
54
|
}
|
|
48
|
-
_updateGraphics(e,
|
|
49
|
-
super._updateGraphics(e,
|
|
50
|
-
const m = this.getRaw("xAxis"),
|
|
51
|
-
let Y = this.get("vcy", 1),
|
|
55
|
+
_updateGraphics(e, i, h) {
|
|
56
|
+
super._updateGraphics(e, i, h);
|
|
57
|
+
const m = this.getRaw("xAxis"), w = this.getRaw("yAxis");
|
|
58
|
+
let Y = this.get("vcy", 1), f = this.get("vcx", 1), l, x, r, o, c, u, p, d, s = this.get("locationX", e.get("locationX", 0.5)), g = this.get("locationY", e.get("locationY", 0.5)), y = this.get("openLocationX", e.get("openLocationX", s)), n = this.get("openLocationY", e.get("openLocationY", g)), b;
|
|
52
59
|
if (h == 0) {
|
|
53
|
-
let
|
|
54
|
-
|
|
55
|
-
let
|
|
56
|
-
|
|
60
|
+
let t = w.getDataItemPositionY(e, this._yOpenField, 1, Y), a = w.getDataItemPositionY(e, this._yField, 1, Y);
|
|
61
|
+
o = w.getDataItemPositionY(e, this._yLowField, 1, Y), d = w.getDataItemPositionY(e, this._yHighField, 1, Y), p = Math.max(t, a), r = Math.min(t, a);
|
|
62
|
+
let v = this._aLocationX0 + y - 0.5, D = this._aLocationX1 + s - 0.5;
|
|
63
|
+
l = m.getDataItemPositionX(e, this._xField, v + (D - v) / 2, f), x = l, c = l, u = l, b = "vertical";
|
|
57
64
|
} else {
|
|
58
|
-
let
|
|
59
|
-
x = m.getDataItemPositionX(e, this._xLowField, 1,
|
|
60
|
-
let
|
|
61
|
-
|
|
65
|
+
let t = m.getDataItemPositionX(e, this._xOpenField, 1, f), a = m.getDataItemPositionX(e, this._xField, 1, f);
|
|
66
|
+
x = m.getDataItemPositionX(e, this._xLowField, 1, f), u = m.getDataItemPositionX(e, this._xHighField, 1, f), c = Math.max(t, a), l = Math.min(t, a);
|
|
67
|
+
let v = this._aLocationY0 + n - 0.5, D = this._aLocationY1 + g - 0.5;
|
|
68
|
+
r = w.getDataItemPositionY(e, this._yField, v + (D - v) / 2, Y), o = r, p = r, d = r, b = "horizontal";
|
|
62
69
|
}
|
|
63
|
-
this._updateCandleGraphics(e,
|
|
70
|
+
this._updateCandleGraphics(e, l, x, r, o, c, u, p, d, b);
|
|
64
71
|
}
|
|
65
|
-
_updateCandleGraphics(e,
|
|
66
|
-
let
|
|
67
|
-
if (
|
|
68
|
-
let
|
|
72
|
+
_updateCandleGraphics(e, i, h, m, w, Y, f, l, x, r) {
|
|
73
|
+
let o = e.get("graphics");
|
|
74
|
+
if (o) {
|
|
75
|
+
let c = this.getPoint(i, m), u = this.getPoint(h, w), p = this.getPoint(Y, l), d = this.getPoint(f, x);
|
|
69
76
|
if (this.get("turboMode")) {
|
|
70
|
-
const
|
|
71
|
-
|
|
77
|
+
const s = this.allColumnsData[this.allColumnsData.length - 1];
|
|
78
|
+
s.lowX0 = c.x, s.lowY0 = c.y, s.lowX1 = u.x, s.lowY1 = u.y, s.highX0 = p.x, s.highY0 = p.y, s.highX1 = d.x, s.highY1 = d.y;
|
|
72
79
|
} else {
|
|
73
|
-
let
|
|
74
|
-
|
|
75
|
-
let
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
let s = o.x(), g = o.y();
|
|
81
|
+
o.set("lowX0", c.x - s), o.set("lowY0", c.y - g), o.set("lowX1", u.x - s), o.set("lowY1", u.y - g), o.set("highX0", p.x - s), o.set("highY0", p.y - g), o.set("highX1", d.x - s), o.set("highY1", d.y - g), o.set("orientation", r);
|
|
82
|
+
let y = e.get("rangeGraphics");
|
|
83
|
+
y && j(y, (n) => {
|
|
84
|
+
n.set("lowX0", c.x - s), n.set("lowY0", c.y - g), n.set("lowX1", u.x - s), n.set("lowY1", u.y - g), n.set("highX0", p.x - s), n.set("highY0", p.y - g), n.set("highX1", d.x - s), n.set("highY1", d.y - g), n.set("orientation", r);
|
|
78
85
|
});
|
|
79
86
|
}
|
|
80
87
|
}
|
|
81
88
|
}
|
|
82
89
|
_afterColumnsDraw() {
|
|
83
90
|
this.get("turboMode") && this.allColumns.set("draw", (e) => {
|
|
84
|
-
e.clear(),
|
|
91
|
+
e.clear(), j(this.allColumnsData, (i) => {
|
|
85
92
|
e.beginPath();
|
|
86
|
-
const h =
|
|
87
|
-
e.beginFill(
|
|
93
|
+
const h = i.width, m = i.height, w = i.x, Y = i.y, f = i.stroke, l = i.fill, x = i.strokeWidth, r = i.strokeOpacity, o = i.fillOpacity, c = i.lowX0, u = i.lowY0, p = i.lowX1, d = i.lowY1, s = i.highX0, g = i.highY0, y = i.highX1, n = i.highY1;
|
|
94
|
+
e.beginFill(l, o), e.beginPath(), e.lineStyle(x, f, r), e.drawRect(w, Y, h, m), e.moveTo(c, u), e.lineTo(p, d), e.moveTo(s, g), e.lineTo(y, n), e.endStroke(), e.endFill();
|
|
88
95
|
});
|
|
89
96
|
});
|
|
90
97
|
}
|
|
91
98
|
_processAxisRange(e) {
|
|
92
|
-
super._processAxisRange(e), e.columns = new
|
|
93
|
-
themeTags:
|
|
99
|
+
super._processAxisRange(e), e.columns = new N(M.new({}), () => C._new(this._root, {
|
|
100
|
+
themeTags: S(e.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
|
|
94
101
|
}, [this.columns.template, e.columns.template]));
|
|
95
102
|
}
|
|
96
103
|
}
|
|
97
|
-
Object.defineProperty(
|
|
104
|
+
Object.defineProperty(k, "className", {
|
|
98
105
|
enumerable: !0,
|
|
99
106
|
configurable: !0,
|
|
100
107
|
writable: !0,
|
|
101
108
|
value: "CandlestickSeries"
|
|
102
109
|
});
|
|
103
|
-
Object.defineProperty(
|
|
110
|
+
Object.defineProperty(k, "classNames", {
|
|
104
111
|
enumerable: !0,
|
|
105
112
|
configurable: !0,
|
|
106
113
|
writable: !0,
|
|
107
|
-
value:
|
|
114
|
+
value: T.classNames.concat([k.className])
|
|
108
115
|
});
|
|
109
|
-
const
|
|
110
|
-
const e =
|
|
111
|
-
props:
|
|
116
|
+
const me = (F) => {
|
|
117
|
+
const e = U(), i = Z({
|
|
118
|
+
props: F,
|
|
112
119
|
name: "HCCandlestickChart"
|
|
113
120
|
}), {
|
|
114
|
-
data:
|
|
115
|
-
seriesName:
|
|
116
|
-
height:
|
|
117
|
-
width:
|
|
118
|
-
chartId:
|
|
119
|
-
showVolume:
|
|
120
|
-
risingColor:
|
|
121
|
-
fallingColor:
|
|
122
|
-
loading:
|
|
123
|
-
emptyMessage:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
121
|
+
data: h,
|
|
122
|
+
seriesName: m,
|
|
123
|
+
height: w = "100%",
|
|
124
|
+
width: Y = "100%",
|
|
125
|
+
chartId: f = "candlestick-chart",
|
|
126
|
+
showVolume: l = !1,
|
|
127
|
+
risingColor: x = e.palette.success.main,
|
|
128
|
+
fallingColor: r = e.palette.error.main,
|
|
129
|
+
loading: o = !1,
|
|
130
|
+
emptyMessage: c = "No data available",
|
|
131
|
+
baseInterval: u,
|
|
132
|
+
sx: p,
|
|
133
|
+
...d
|
|
134
|
+
} = i, s = q.orderBy(h, ["date"]), g = {
|
|
135
|
+
...i,
|
|
136
|
+
height: w,
|
|
137
|
+
width: Y,
|
|
138
|
+
chartId: f,
|
|
139
|
+
showVolume: l,
|
|
140
|
+
risingColor: x,
|
|
141
|
+
fallingColor: r,
|
|
142
|
+
loading: o,
|
|
143
|
+
emptyMessage: c,
|
|
144
|
+
baseInterval: u
|
|
145
|
+
}, y = P(null), n = P(null), b = P(null);
|
|
146
|
+
return J(() => {
|
|
147
|
+
var O, R, V;
|
|
148
|
+
if (!b.current) return;
|
|
149
|
+
const t = B.new(b.current);
|
|
150
|
+
n.current = t, t.setThemes([I.new(t)]), t.interfaceColors.setAll({
|
|
151
|
+
text: X(e.palette.text.primary),
|
|
152
|
+
grid: X(e.palette.divider),
|
|
153
|
+
stroke: X(e.palette.divider)
|
|
154
|
+
});
|
|
155
|
+
const a = t.container.children.push(
|
|
156
|
+
$.new(t, {
|
|
143
157
|
panX: !0,
|
|
144
158
|
panY: !0,
|
|
145
|
-
wheelX: "
|
|
146
|
-
wheelY: "
|
|
159
|
+
wheelX: "none",
|
|
160
|
+
wheelY: "none",
|
|
147
161
|
pinchZoomX: !0,
|
|
148
|
-
layout:
|
|
162
|
+
layout: t.verticalLayout
|
|
149
163
|
})
|
|
150
164
|
);
|
|
151
|
-
|
|
165
|
+
y.current = a, a.set(
|
|
152
166
|
"cursor",
|
|
153
|
-
|
|
167
|
+
ee.new(t, {
|
|
154
168
|
behavior: "zoomX"
|
|
155
169
|
})
|
|
156
170
|
).lineY.set("visible", !1);
|
|
157
|
-
const
|
|
158
|
-
|
|
171
|
+
const v = a.xAxes.push(
|
|
172
|
+
te.new(t, {
|
|
159
173
|
maxDeviation: 0.3,
|
|
160
174
|
groupData: !0,
|
|
161
|
-
baseInterval: { timeUnit: "day", count: 1 },
|
|
162
|
-
renderer:
|
|
175
|
+
baseInterval: u || { timeUnit: "day", count: 1 },
|
|
176
|
+
renderer: se.new(t, {
|
|
163
177
|
minorGridEnabled: !0
|
|
164
178
|
}),
|
|
165
|
-
tooltip:
|
|
179
|
+
tooltip: G.new(t, {})
|
|
166
180
|
})
|
|
167
|
-
),
|
|
168
|
-
|
|
169
|
-
renderer:
|
|
181
|
+
), D = a.yAxes.push(
|
|
182
|
+
H.new(t, {
|
|
183
|
+
renderer: E.new(t, {})
|
|
170
184
|
})
|
|
171
|
-
)
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
185
|
+
);
|
|
186
|
+
(O = v.get("renderer")) == null || O.grid.template.setAll({
|
|
187
|
+
stroke: X(e.palette.divider),
|
|
188
|
+
strokeOpacity: 1
|
|
189
|
+
}), (R = v.get("renderer")) == null || R.labels.template.setAll({
|
|
190
|
+
paddingTop: 12
|
|
191
|
+
}), (V = D.get("renderer")) == null || V.grid.template.setAll({
|
|
192
|
+
stroke: X(e.palette.divider),
|
|
193
|
+
strokeOpacity: 1
|
|
194
|
+
});
|
|
195
|
+
const _ = a.series.push(
|
|
196
|
+
k.new(t, {
|
|
197
|
+
name: m || "Price",
|
|
198
|
+
xAxis: v,
|
|
199
|
+
yAxis: D,
|
|
176
200
|
valueXField: "date",
|
|
177
201
|
openValueYField: "open",
|
|
178
202
|
highValueYField: "high",
|
|
179
203
|
lowValueYField: "low",
|
|
180
204
|
valueYField: "close",
|
|
181
|
-
tooltip:
|
|
205
|
+
tooltip: G.new(t, {
|
|
182
206
|
labelText: `
|
|
183
207
|
Open: {openValueY}
|
|
184
208
|
High: {highValueY}
|
|
@@ -189,61 +213,67 @@ const $ = (P) => {
|
|
|
189
213
|
})
|
|
190
214
|
})
|
|
191
215
|
);
|
|
192
|
-
|
|
193
|
-
fill:
|
|
194
|
-
stroke:
|
|
195
|
-
}),
|
|
196
|
-
fill:
|
|
197
|
-
stroke:
|
|
216
|
+
_.columns.template.states.create("riseFromPrevious", {
|
|
217
|
+
fill: X(x),
|
|
218
|
+
stroke: X(x)
|
|
219
|
+
}), _.columns.template.states.create("dropFromPrevious", {
|
|
220
|
+
fill: X(r),
|
|
221
|
+
stroke: X(r)
|
|
222
|
+
}), _.data.processor = z.new(t, {
|
|
223
|
+
dateFormat: "i",
|
|
224
|
+
dateFields: ["date"]
|
|
198
225
|
});
|
|
199
|
-
let
|
|
200
|
-
return
|
|
201
|
-
|
|
202
|
-
renderer:
|
|
226
|
+
let A = null, L = null;
|
|
227
|
+
return l && (L = a.yAxes.push(
|
|
228
|
+
H.new(t, {
|
|
229
|
+
renderer: E.new(t, {
|
|
203
230
|
opposite: !0
|
|
204
231
|
}),
|
|
205
232
|
numberFormat: "#a"
|
|
206
233
|
})
|
|
207
|
-
),
|
|
208
|
-
|
|
234
|
+
), A = a.series.push(
|
|
235
|
+
T.new(t, {
|
|
209
236
|
name: "Volume",
|
|
210
|
-
xAxis:
|
|
211
|
-
yAxis:
|
|
237
|
+
xAxis: v,
|
|
238
|
+
yAxis: L,
|
|
212
239
|
valueYField: "volume",
|
|
213
240
|
valueXField: "date",
|
|
214
|
-
fill:
|
|
215
|
-
stroke:
|
|
241
|
+
fill: X("#2962ff"),
|
|
242
|
+
stroke: X("#2962ff"),
|
|
216
243
|
opacity: 0.6
|
|
217
244
|
})
|
|
218
|
-
),
|
|
219
|
-
width:
|
|
220
|
-
})
|
|
221
|
-
|
|
245
|
+
), A.columns.template.setAll({
|
|
246
|
+
width: Q(80)
|
|
247
|
+
}), A.data.processor = z.new(t, {
|
|
248
|
+
dateFormat: "i",
|
|
249
|
+
dateFields: ["date"]
|
|
250
|
+
})), _.data.setAll(s), l && A && A.data.setAll(s), a.appear(1e3), _.appear(1e3), () => {
|
|
251
|
+
t.dispose();
|
|
222
252
|
};
|
|
223
|
-
}, []),
|
|
224
|
-
if (
|
|
225
|
-
const
|
|
253
|
+
}, [e.palette.mode]), K(() => {
|
|
254
|
+
if (y.current && n.current) {
|
|
255
|
+
const t = y.current.series.getIndex(
|
|
226
256
|
0
|
|
227
|
-
),
|
|
228
|
-
|
|
257
|
+
), a = l ? y.current.series.getIndex(1) : null;
|
|
258
|
+
t == null || t.data.setAll(s), a == null || a.data.setAll(s);
|
|
229
259
|
}
|
|
230
|
-
}, [
|
|
231
|
-
chartDivRef:
|
|
232
|
-
data:
|
|
233
|
-
seriesName:
|
|
234
|
-
height:
|
|
235
|
-
width:
|
|
236
|
-
chartId:
|
|
237
|
-
showVolume:
|
|
238
|
-
risingColor:
|
|
239
|
-
fallingColor:
|
|
240
|
-
loading:
|
|
241
|
-
emptyMessage:
|
|
242
|
-
sx:
|
|
243
|
-
other:
|
|
244
|
-
ownerState:
|
|
260
|
+
}, [s, l]), {
|
|
261
|
+
chartDivRef: b,
|
|
262
|
+
data: h,
|
|
263
|
+
seriesName: m,
|
|
264
|
+
height: w,
|
|
265
|
+
width: Y,
|
|
266
|
+
chartId: f,
|
|
267
|
+
showVolume: l,
|
|
268
|
+
risingColor: x,
|
|
269
|
+
fallingColor: r,
|
|
270
|
+
loading: o,
|
|
271
|
+
emptyMessage: c,
|
|
272
|
+
sx: p,
|
|
273
|
+
other: d,
|
|
274
|
+
ownerState: g
|
|
245
275
|
};
|
|
246
276
|
};
|
|
247
277
|
export {
|
|
248
|
-
|
|
278
|
+
me as useCandlestickChartLogic
|
|
249
279
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { camelCase as d, uniqBy as f } from "lodash";
|
|
2
|
+
const D = (i) => {
|
|
3
|
+
const t = /* @__PURE__ */ new Map(), s = [], r = [];
|
|
4
|
+
return i.forEach((a, n) => {
|
|
5
|
+
const m = a.label, o = (a.propertyId ?? d(a.label)) + n, c = [{ type: "date", value: "t" }];
|
|
6
|
+
s.push({
|
|
7
|
+
dataFieldName: o,
|
|
8
|
+
fieldName: o,
|
|
9
|
+
name: m,
|
|
10
|
+
operator: "count"
|
|
11
|
+
}), r.push(...c), a.type === "TIMESERIES" && Array.isArray(a.points) && a.points.forEach((l) => {
|
|
12
|
+
const e = l.t;
|
|
13
|
+
t.has(e) || t.set(e, { t: e });
|
|
14
|
+
const p = t.get(e);
|
|
15
|
+
p[o] = l.v;
|
|
16
|
+
});
|
|
17
|
+
}), {
|
|
18
|
+
data: Array.from(t.values()).sort(
|
|
19
|
+
(a, n) => new Date(a.t).getTime() - new Date(n.t).getTime()
|
|
20
|
+
),
|
|
21
|
+
values: s,
|
|
22
|
+
dimensions: f(r, "value")
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
D as adaptTemporalData
|
|
27
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as n, Divider as l } from "@mui/material";
|
|
3
|
+
import { CandlestickChart as C } from "../candlestick/index.js";
|
|
4
|
+
import { ColumnLineMix as h } from "../column-line-mix/index.js";
|
|
5
|
+
import { DrillDownTreemap as c } from "../drill-down-treemap/index.js";
|
|
6
|
+
import { DrillDownVoronoiTreemap as d } from "../drill-down-voronoi-treemap/index.js";
|
|
7
|
+
import { Heatmap as f } from "../heatmap/index.js";
|
|
8
|
+
import { LineChart as s } from "../line/index.js";
|
|
9
|
+
import { LogaritmicScale as u } from "../logaritmic-scale/index.js";
|
|
10
|
+
import { MultipleValueAxes as L } from "../multiple-value-axes/index.js";
|
|
11
|
+
import { NestedPie as x } from "../nested-pie/index.js";
|
|
12
|
+
import { PackedCircles as D } from "../packed-circles/index.js";
|
|
13
|
+
import { PieChart as k } from "../pie-chart/index.js";
|
|
14
|
+
import { StackedAreaRadar as S } from "../stacked-area-radar/index.js";
|
|
15
|
+
import { StackedColumnChart as g } from "../stacked-column-chart/index.js";
|
|
16
|
+
import { XYChart as P } from "../xy-chart/index.js";
|
|
17
|
+
import { useChartWrapperLogic as w } from "./logic.js";
|
|
18
|
+
import { ChartWrapperRoot as A, ChartWrapperHeader as T, ChartWrapperContent as W } from "./styled.js";
|
|
19
|
+
function J(a) {
|
|
20
|
+
const { title: m, type: e, chartProps: o, ownerState: t, sx: p } = w(a);
|
|
21
|
+
return /* @__PURE__ */ i(A, { ownerState: t, sx: p, children: [
|
|
22
|
+
/* @__PURE__ */ r(T, { ownerState: t, children: /* @__PURE__ */ r(n, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: m }) }),
|
|
23
|
+
/* @__PURE__ */ r(l, {}),
|
|
24
|
+
/* @__PURE__ */ i(W, { ownerState: t, children: [
|
|
25
|
+
e === "MultipleValueAxes" && /* @__PURE__ */ r(L, { ...o }),
|
|
26
|
+
e === "XYChart" && /* @__PURE__ */ r(P, { ...o }),
|
|
27
|
+
e === "HeatLegend" && /* @__PURE__ */ r(f, { ...o }),
|
|
28
|
+
e === "PieChart" && /* @__PURE__ */ r(k, { ...o }),
|
|
29
|
+
e === "StackedColumnChart" && /* @__PURE__ */ r(g, { ...o }),
|
|
30
|
+
e === "StackedAreaRadar" && /* @__PURE__ */ r(S, { ...o }),
|
|
31
|
+
e === "LineChart" && /* @__PURE__ */ r(s, { ...o }),
|
|
32
|
+
e === "NestedPie" && /* @__PURE__ */ r(x, { ...o }),
|
|
33
|
+
e === "SingleLevelPackedCircles" && /* @__PURE__ */ r(D, { ...o }),
|
|
34
|
+
e === "LogarithmicScale" && /* @__PURE__ */ r(u, { ...o }),
|
|
35
|
+
e === "ColumnAndLineMix" && /* @__PURE__ */ r(h, { ...o }),
|
|
36
|
+
e === "DrillDownTreemap" && /* @__PURE__ */ r(c, { ...o }),
|
|
37
|
+
e === "DrillDownVoronoiTreemap" && /* @__PURE__ */ r(d, { ...o }),
|
|
38
|
+
e === "CandlestickChart" && /* @__PURE__ */ r(C, { ...o })
|
|
39
|
+
] })
|
|
40
|
+
] });
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
J as ChartWrapper
|
|
44
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { useThemeProps as v } from "@mui/material";
|
|
2
|
+
import { useMemo as P } from "react";
|
|
3
|
+
import { adaptTemporalData as g } from "./helpers.js";
|
|
4
|
+
const x = (l) => {
|
|
5
|
+
const n = v({ props: l, name: "HCChartWrapper" }), {
|
|
6
|
+
title: m,
|
|
7
|
+
description: d,
|
|
8
|
+
type: c,
|
|
9
|
+
interval: i,
|
|
10
|
+
data: a = [],
|
|
11
|
+
dimensions: s = [],
|
|
12
|
+
values: p = [],
|
|
13
|
+
series: r = [],
|
|
14
|
+
sx: f,
|
|
15
|
+
...u
|
|
16
|
+
} = n, h = {
|
|
17
|
+
...P(() => {
|
|
18
|
+
let t = { data: a, dimensions: s, values: p };
|
|
19
|
+
if (s.length > 0) {
|
|
20
|
+
const o = s.find((e) => e.type === "date");
|
|
21
|
+
if (o) {
|
|
22
|
+
let e = o.value.split("/")[1] || i || "day";
|
|
23
|
+
e === "1M" ? e = "month" : e === "1W" ? e = "week" : e === "1D" ? e = "day" : e === "1Y" && (e = "year"), t = {
|
|
24
|
+
...t,
|
|
25
|
+
baseInterval: { timeUnit: e, count: 1 }
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
} else if (r.length > 0) {
|
|
29
|
+
const o = g(r);
|
|
30
|
+
t = { ...t, ...o };
|
|
31
|
+
}
|
|
32
|
+
return t;
|
|
33
|
+
}, [i, a, s, p, r]),
|
|
34
|
+
...u
|
|
35
|
+
}, y = { ...n };
|
|
36
|
+
return {
|
|
37
|
+
title: m,
|
|
38
|
+
description: d,
|
|
39
|
+
type: c,
|
|
40
|
+
chartProps: h,
|
|
41
|
+
ownerState: y,
|
|
42
|
+
sx: f
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
x as useChartWrapperLogic
|
|
47
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { styled as t, Paper as e, Box as r } from "@mui/material";
|
|
2
|
+
const p = t(e, {
|
|
3
|
+
name: "HCChartWrapper",
|
|
4
|
+
slot: "Root",
|
|
5
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
6
|
+
})(() => ({
|
|
7
|
+
height: "100%",
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: "column"
|
|
10
|
+
})), n = t(r, {
|
|
11
|
+
name: "HCChartWrapper",
|
|
12
|
+
slot: "Header",
|
|
13
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
14
|
+
})(({ theme: o }) => ({
|
|
15
|
+
flex: "0 0 auto",
|
|
16
|
+
padding: o.spacing(1.25, 2)
|
|
17
|
+
})), d = t(r, {
|
|
18
|
+
name: "HCChartWrapper",
|
|
19
|
+
slot: "Content",
|
|
20
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
21
|
+
})(({ theme: o }) => ({
|
|
22
|
+
position: "relative",
|
|
23
|
+
display: "flex",
|
|
24
|
+
flexDirection: "column",
|
|
25
|
+
flex: "1 1 auto",
|
|
26
|
+
minHeight: 0,
|
|
27
|
+
paddingBottom: 0,
|
|
28
|
+
// hide amcharts logo
|
|
29
|
+
"&:after": {
|
|
30
|
+
content: '""',
|
|
31
|
+
position: "absolute",
|
|
32
|
+
bottom: 0,
|
|
33
|
+
left: 0,
|
|
34
|
+
width: 70,
|
|
35
|
+
height: 20,
|
|
36
|
+
background: o.palette.background.paper,
|
|
37
|
+
borderRadius: o.shape.borderRadius
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
export {
|
|
41
|
+
d as ChartWrapperContent,
|
|
42
|
+
n as ChartWrapperHeader,
|
|
43
|
+
p as ChartWrapperRoot
|
|
44
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useColumnLineMixLogic as m } from "./logic.js";
|
|
3
|
+
import { ColumnLineMixRoot as h } from "./styled.js";
|
|
4
|
+
function d(i) {
|
|
5
|
+
const { chartId: t, ownerState: r, sx: e, other: n } = m(i);
|
|
6
|
+
return /* @__PURE__ */ o(h, { ownerState: r, sx: e, ...n, children: /* @__PURE__ */ o("div", { id: t, style: { width: "100%", height: "100%" } }) });
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
d as ColumnLineMix
|
|
10
|
+
};
|