@hybridcore/ui 1.5.90 → 1.6.1
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-CMg08YSA.js} +91 -95
- package/dist/{Add-CMz4N2zT.js → Add-DuVVJeQU.js} +35 -36
- package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
- package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
- package/dist/AxisRendererY-C_ItLPNV.js +445 -0
- package/dist/Bullet-DVczI2TD.js +41 -0
- package/dist/Button-CcsPEIDh.js +35 -0
- package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-sObABYY2.js} +62 -58
- package/dist/CategoryAxis-CwnfaGc8.js +458 -0
- 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-fBLhTHbF.js} +1 -1
- package/dist/{DialogContent-CqTojymQ.js → DialogContent-CGJ7alb8.js} +10 -13
- package/dist/FormControl-BCurCxRj.js +1294 -0
- package/dist/FormControlLabel-BkRfrhNy.js +601 -0
- package/dist/Hierarchy-Bihj0S61.js +925 -0
- package/dist/{IconButton-DJ-31-Fd.js → IconButton-_opV1iNK.js} +18 -19
- package/dist/IconPlus-yPkff_Vj.js +19 -0
- package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-C7PEvvYr.js} +17 -19
- package/dist/InputLabel-rEwwnD4_.js +354 -0
- package/dist/Legend-Dp_MKfS4.js +178 -0
- package/dist/LineSeries-Uiv5o56b.js +472 -0
- package/dist/{MenuItem-C6qlUyV3.js → MenuItem-DrE50M_p.js} +92 -69
- package/dist/Modal-DlB6GH-f.js +1659 -0
- package/dist/Paper-q9kKjAKx.js +527 -0
- package/dist/PieSeries-B2fW3z0s.js +693 -0
- package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
- package/dist/Scrollbar-D86MJyr2.js +171 -0
- 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-DSDIEEKu.js +3161 -0
- package/dist/Tick-2bcLyHpF.js +162 -0
- package/dist/{Typography-D1t7XuLN.js → Typography-B-Z5Y0Xq.js} +48 -50
- 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-quqpGCFu.js +9 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- 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 +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -557
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- 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 +36 -91
- package/dist/components/data-security-selectors/security-level/logic.js +73 -0
- package/dist/components/data-security-selectors/security-level/styled.js +47 -0
- 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 +8 -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 +7 -9
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-form/index.js +1 -1
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- 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/key-protection/index.js +45 -2
- package/dist/components/key-protection/logic.js +40 -0
- package/dist/components/key-protection/styled.js +45 -0
- package/dist/components/key-protection/utils.js +1 -1
- 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/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- 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/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- 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 +42 -50
- package/dist/components/range-selector/components/date-range/index.js +148 -7
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4222 -0
- 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/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +8 -8
- 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 +8 -10
- 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 +8 -9
- package/dist/components/template-form/index.js +32 -33
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- 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 +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/constant-BiOGvlZc.js +21 -0
- package/dist/createReactComponent-C7L-DMHj.js +60 -0
- package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BM3-TsGy.js} +33 -36
- package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DX-SqL8M.js} +24 -26
- package/dist/{dialog-BE4D6swf.js → dialog-cf4HUXXl.js} +27 -28
- package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
- package/dist/index-BMS1Otro.js +183 -0
- package/dist/index-C8C3YXle.js +1932 -0
- package/dist/index-C__OZmYy.js +663 -0
- package/dist/{index-CGNxsLVm.js → index-DPKUmQnz.js} +11 -13
- package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
- package/dist/index.es-CHNMhaMi.js +2067 -0
- package/dist/index.esm-BLLrbTzY.js +318 -0
- package/dist/isMuiElement-BkJ72LB3.js +26 -0
- package/dist/main.d.ts +1869 -565
- 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-DL_dEoNn.js} +57 -62
- package/dist/{createTheme-CNnKNxwL.js → styled-Bsjp3kFh.js} +275 -278
- package/dist/useId-B4-oF9Mq.js +34 -0
- package/dist/useMobilePicker-B-M3dnTn.js +7993 -0
- package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
- package/package.json +11 -2
- package/dist/AxisRendererY-kADUad00.js +0 -18370
- package/dist/Box-B1AVyJ_s.js +0 -71
- package/dist/Button-eqWvpDuh.js +0 -356
- package/dist/CardContent-DsYqqPeJ.js +0 -74
- package/dist/Checkbox-CrU2hpWB.js +0 -420
- package/dist/DateAxis-CMum47iz.js +0 -924
- package/dist/FormControlLabel-BrdX4R71.js +0 -195
- package/dist/Input-CoIrGZAh.js +0 -326
- package/dist/InputLabel-CBuAYyuT.js +0 -1367
- package/dist/LineSeries-CfcpoYla.js +0 -549
- package/dist/List-DOD5kSk3.js +0 -121
- package/dist/ListItem-r8PbsvCz.js +0 -429
- package/dist/Modal-CkcFEpHa.js +0 -1284
- package/dist/OutlinedInput-B-iZoc9l.js +0 -450
- package/dist/Paper-CjqLScHA.js +0 -163
- package/dist/Select-t3ewnSdf.js +0 -2180
- package/dist/Tabs-Cn42Z5QI.js +0 -789
- package/dist/TextField-BQ8a50fA.js +0 -459
- package/dist/components/collapsible-card/style.js +0 -49
- package/dist/components/key-protection/menu.js +0 -85
- 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/components/treeview-filter/item/styled.js +0 -39
- package/dist/createStyled-BGx1I94c.js +0 -352
- package/dist/createTheme-CyC5HawC.js +0 -879
- package/dist/debounce-46wSf_lW.js +0 -15
- 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/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-CNjn41Of.js +0 -16
- 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/useFormControl-CatNKXAi.js +0 -10
- 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
- package/dist/utils-CsOZUsQj.js +0 -365
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
name: "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
})(({ theme: a }) => ({
|
|
1
|
+
import { styled as t, Card as i, Box as r, Typography as n, Skeleton as l } from "@mui/material";
|
|
2
|
+
const a = (e) => e !== "ownerState", s = t(i, {
|
|
3
|
+
name: "HCCardAlternate",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: a
|
|
6
|
+
})(({ theme: e }) => ({
|
|
8
7
|
position: "relative",
|
|
9
8
|
display: "flex",
|
|
10
|
-
padding:
|
|
11
|
-
paddingTop:
|
|
12
|
-
gap:
|
|
9
|
+
padding: e.spacing(3),
|
|
10
|
+
paddingTop: e.spacing(6),
|
|
11
|
+
gap: e.spacing(2),
|
|
13
12
|
"& .MuiCardMedia-root": {
|
|
14
|
-
borderRadius:
|
|
13
|
+
borderRadius: e.shape.borderRadius
|
|
15
14
|
},
|
|
16
15
|
"& .MuiCardContent-root, & .MuiCardContent-root:last-child": {
|
|
17
16
|
display: "flex",
|
|
18
17
|
flex: 1,
|
|
19
|
-
gap:
|
|
18
|
+
gap: e.spacing(3),
|
|
20
19
|
padding: 0,
|
|
21
20
|
margin: 0
|
|
22
21
|
},
|
|
@@ -24,10 +23,17 @@ const r = i(t, {
|
|
|
24
23
|
visibility: "visible",
|
|
25
24
|
opacity: 1
|
|
26
25
|
}
|
|
27
|
-
})),
|
|
28
|
-
name: "
|
|
29
|
-
slot: "
|
|
30
|
-
|
|
26
|
+
})), p = t(r, {
|
|
27
|
+
name: "HCCardAlternate",
|
|
28
|
+
slot: "body",
|
|
29
|
+
shouldForwardProp: a
|
|
30
|
+
})({
|
|
31
|
+
flex: 1
|
|
32
|
+
}), C = t(r, {
|
|
33
|
+
name: "HCCardAlternate",
|
|
34
|
+
slot: "menuContainer",
|
|
35
|
+
shouldForwardProp: a
|
|
36
|
+
})({
|
|
31
37
|
position: "absolute",
|
|
32
38
|
top: 8,
|
|
33
39
|
right: 8,
|
|
@@ -38,8 +44,96 @@ const r = i(t, {
|
|
|
38
44
|
visibility: "hidden",
|
|
39
45
|
opacity: 0,
|
|
40
46
|
transition: "0.3s all"
|
|
41
|
-
})
|
|
47
|
+
}), c = t(r, {
|
|
48
|
+
name: "HCCardAlternate",
|
|
49
|
+
slot: "headerRow",
|
|
50
|
+
shouldForwardProp: a
|
|
51
|
+
})({
|
|
52
|
+
display: "flex",
|
|
53
|
+
alignItems: "center"
|
|
54
|
+
}), b = t(r, {
|
|
55
|
+
name: "HCCardAlternate",
|
|
56
|
+
slot: "avatarContainer",
|
|
57
|
+
shouldForwardProp: a
|
|
58
|
+
})(({ theme: e }) => ({
|
|
59
|
+
marginRight: e.spacing(2)
|
|
60
|
+
})), g = t(r, {
|
|
61
|
+
name: "HCCardAlternate",
|
|
62
|
+
slot: "titleColumn",
|
|
63
|
+
shouldForwardProp: a
|
|
64
|
+
})({
|
|
65
|
+
width: "100%",
|
|
66
|
+
minWidth: 0
|
|
67
|
+
}), w = t(n, {
|
|
68
|
+
name: "HCCardAlternate",
|
|
69
|
+
slot: "title",
|
|
70
|
+
shouldForwardProp: a
|
|
71
|
+
})(({ ownerState: e }) => ({
|
|
72
|
+
marginBottom: 0,
|
|
73
|
+
overflow: "hidden",
|
|
74
|
+
textOverflow: "ellipsis",
|
|
75
|
+
display: "-webkit-box",
|
|
76
|
+
WebkitLineClamp: 3,
|
|
77
|
+
WebkitBoxOrient: "vertical",
|
|
78
|
+
cursor: e.clickable ? "pointer" : "default",
|
|
79
|
+
lineHeight: "22px",
|
|
80
|
+
overflowWrap: "break-word",
|
|
81
|
+
wordBreak: "break-word"
|
|
82
|
+
})), A = t(n, {
|
|
83
|
+
name: "HCCardAlternate",
|
|
84
|
+
slot: "subTitle",
|
|
85
|
+
shouldForwardProp: a
|
|
86
|
+
})(({ theme: e }) => ({
|
|
87
|
+
color: e.palette.text.secondary,
|
|
88
|
+
overflow: "hidden",
|
|
89
|
+
textOverflow: "ellipsis",
|
|
90
|
+
display: "-webkit-box",
|
|
91
|
+
WebkitLineClamp: 4,
|
|
92
|
+
WebkitBoxOrient: "vertical",
|
|
93
|
+
lineHeight: "16px",
|
|
94
|
+
overflowWrap: "break-word",
|
|
95
|
+
wordBreak: "break-word"
|
|
96
|
+
})), k = t(n, {
|
|
97
|
+
name: "HCCardAlternate",
|
|
98
|
+
slot: "text",
|
|
99
|
+
shouldForwardProp: a
|
|
100
|
+
})(({ ownerState: e, theme: o }) => ({
|
|
101
|
+
color: o.palette.text.secondary,
|
|
102
|
+
overflow: "hidden",
|
|
103
|
+
textOverflow: "ellipsis",
|
|
104
|
+
display: "-webkit-box",
|
|
105
|
+
WebkitLineClamp: 4,
|
|
106
|
+
WebkitBoxOrient: "vertical",
|
|
107
|
+
lineHeight: "16px",
|
|
108
|
+
cursor: e.clickable ? "pointer" : "default",
|
|
109
|
+
marginTop: o.spacing(2),
|
|
110
|
+
marginBottom: o.spacing(2),
|
|
111
|
+
overflowWrap: "break-word",
|
|
112
|
+
wordBreak: "break-word"
|
|
113
|
+
})), m = t(r, {
|
|
114
|
+
name: "HCCardAlternate",
|
|
115
|
+
slot: "rightMenu",
|
|
116
|
+
shouldForwardProp: a
|
|
117
|
+
})({}), x = t(l, {
|
|
118
|
+
name: "HCCardAlternate",
|
|
119
|
+
slot: "avatarSkeleton",
|
|
120
|
+
shouldForwardProp: a
|
|
121
|
+
})({}), v = t(l, {
|
|
122
|
+
name: "HCCardAlternate",
|
|
123
|
+
slot: "lineSkeleton",
|
|
124
|
+
shouldForwardProp: a
|
|
125
|
+
})({});
|
|
42
126
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
127
|
+
b as AlternateCardAvatarContainer,
|
|
128
|
+
x as AlternateCardAvatarSkeleton,
|
|
129
|
+
p as AlternateCardBody,
|
|
130
|
+
c as AlternateCardHeaderRow,
|
|
131
|
+
v as AlternateCardLineSkeleton,
|
|
132
|
+
C as AlternateCardMenuContainer,
|
|
133
|
+
m as AlternateCardRightMenu,
|
|
134
|
+
s as AlternateCardRoot,
|
|
135
|
+
A as AlternateCardSubTitle,
|
|
136
|
+
k as AlternateCardText,
|
|
137
|
+
w as AlternateCardTitle,
|
|
138
|
+
g as AlternateCardTitleColumn
|
|
45
139
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { C as t, c as F } from "../../../ColorSet-C7vpNXhM.js";
|
|
2
|
+
const c = [
|
|
3
|
+
"#294D94",
|
|
4
|
+
"#375F97",
|
|
5
|
+
"#44729C",
|
|
6
|
+
"#5286A1",
|
|
7
|
+
"#6199A7",
|
|
8
|
+
"#74ABAE",
|
|
9
|
+
"#88BDB6",
|
|
10
|
+
"#9FCFBF",
|
|
11
|
+
"#B9E1C9",
|
|
12
|
+
"#D6F1D5"
|
|
13
|
+
], C = (o, r = c) => t.new(o, {
|
|
14
|
+
colors: r.map((e) => F(e)),
|
|
15
|
+
reuse: !0
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
c as DEFAULT_VIRIDIS_COOL,
|
|
19
|
+
C as colorSetFromPalette
|
|
20
|
+
};
|
|
@@ -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
|
+
};
|