@hybridcore/ui 1.6.0 → 1.6.2
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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -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/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -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/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -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 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -85
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -11
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- 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 +11 -11
- 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/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- 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/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- 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 +4294 -0
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- 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 +27 -26
- 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 +758 -14
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- 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 +24 -23
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- 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/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -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/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.js +0 -115
|
@@ -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,19 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Box as e, Alert as i } from "@mui/material";
|
|
3
|
+
const d = ({ message: t }) => /* @__PURE__ */ r(
|
|
4
|
+
e,
|
|
5
|
+
{
|
|
6
|
+
sx: {
|
|
7
|
+
width: "100%",
|
|
8
|
+
height: "100%",
|
|
9
|
+
display: "flex",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
justifyContent: "center",
|
|
12
|
+
padding: 2
|
|
13
|
+
},
|
|
14
|
+
children: /* @__PURE__ */ r(i, { severity: "error", variant: "outlined", sx: { width: "100%" }, children: t })
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
export {
|
|
18
|
+
d as ChartError
|
|
19
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useCandlestickChartLogic as h } from "./logic.js";
|
|
3
3
|
import { CandlestickChartRoot as f } from "./styled.js";
|
|
4
|
-
|
|
4
|
+
const x = (i) => {
|
|
5
5
|
const {
|
|
6
6
|
chartDivRef: n,
|
|
7
7
|
data: o,
|
|
@@ -55,7 +55,7 @@ function u(i) {
|
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
57
|
] });
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
x as CandlestickChart
|
|
61
61
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { k as N, l as M, R as B, A as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { m as
|
|
6
|
-
import { X as $, V as
|
|
1
|
+
import { k as N, l as M, R as B, A as U, T as G } from "../../../AnimatedTheme-jnasw6rT.js";
|
|
2
|
+
import { useTheme as Z, useThemeProps as q } from "@mui/material";
|
|
3
|
+
import J from "lodash";
|
|
4
|
+
import { useRef as C, useLayoutEffect as K, useEffect as S } from "react";
|
|
5
|
+
import { m as j, e as H, c as m, p as Q } from "../../../ColorSet-C7vpNXhM.js";
|
|
6
|
+
import { X as $, V as E } from "../../../AxisRenderer-DTyLLA6c.js";
|
|
7
7
|
import { X as ee } from "../../../XYCursor-C8WktvKM.js";
|
|
8
8
|
import { D as te } from "../../../DateAxis-YX3QNIB-.js";
|
|
9
|
-
import { A as se, a as
|
|
9
|
+
import { A as se, a as z } from "../../../AxisRendererY-C_ItLPNV.js";
|
|
10
10
|
import { C as T } from "../../../ColumnSeries-CjgdJ2QL.js";
|
|
11
11
|
import { R as W } from "../../../RoundedRectangle-CWLi2PXn.js";
|
|
12
|
-
import { D as
|
|
13
|
-
class
|
|
12
|
+
import { D as I } from "../../../DataProcessor-CHDO51q4.js";
|
|
13
|
+
class A extends W {
|
|
14
14
|
_beforeChanged() {
|
|
15
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);
|
|
16
16
|
}
|
|
@@ -20,19 +20,19 @@ class C extends W {
|
|
|
20
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));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
Object.defineProperty(
|
|
23
|
+
Object.defineProperty(A, "className", {
|
|
24
24
|
enumerable: !0,
|
|
25
25
|
configurable: !0,
|
|
26
26
|
writable: !0,
|
|
27
27
|
value: "Candlestick"
|
|
28
28
|
});
|
|
29
|
-
Object.defineProperty(
|
|
29
|
+
Object.defineProperty(A, "classNames", {
|
|
30
30
|
enumerable: !0,
|
|
31
31
|
configurable: !0,
|
|
32
32
|
writable: !0,
|
|
33
|
-
value: W.classNames.concat([
|
|
33
|
+
value: W.classNames.concat([A.className])
|
|
34
34
|
});
|
|
35
|
-
class
|
|
35
|
+
class F extends T {
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments), Object.defineProperty(this, "columns", {
|
|
38
38
|
enumerable: !0,
|
|
@@ -40,8 +40,8 @@ class k extends T {
|
|
|
40
40
|
writable: !0,
|
|
41
41
|
value: this.addDisposer(new N(M.new({
|
|
42
42
|
themeTags: ["autocolor"]
|
|
43
|
-
}), () =>
|
|
44
|
-
themeTags:
|
|
43
|
+
}), () => A._new(this._root, {
|
|
44
|
+
themeTags: j(this.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
|
|
45
45
|
}, [this.columns.template])))
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -54,105 +54,105 @@ class k extends T {
|
|
|
54
54
|
}
|
|
55
55
|
_updateGraphics(e, i, h) {
|
|
56
56
|
super._updateGraphics(e, i, h);
|
|
57
|
-
const
|
|
58
|
-
let
|
|
57
|
+
const Y = this.getRaw("xAxis"), x = this.getRaw("yAxis");
|
|
58
|
+
let y = this.get("vcy", 1), X = this.get("vcx", 1), a, c, r, o, u, g, d, w, s = this.get("locationX", e.get("locationX", 0.5)), p = this.get("locationY", e.get("locationY", 0.5)), f = this.get("openLocationX", e.get("openLocationX", s)), n = this.get("openLocationY", e.get("openLocationY", p)), b;
|
|
59
59
|
if (h == 0) {
|
|
60
|
-
let t =
|
|
61
|
-
o =
|
|
62
|
-
let v = this._aLocationX0 +
|
|
63
|
-
|
|
60
|
+
let t = x.getDataItemPositionY(e, this._yOpenField, 1, y), l = x.getDataItemPositionY(e, this._yField, 1, y);
|
|
61
|
+
o = x.getDataItemPositionY(e, this._yLowField, 1, y), w = x.getDataItemPositionY(e, this._yHighField, 1, y), d = Math.max(t, l), r = Math.min(t, l);
|
|
62
|
+
let v = this._aLocationX0 + f - 0.5, D = this._aLocationX1 + s - 0.5;
|
|
63
|
+
a = Y.getDataItemPositionX(e, this._xField, v + (D - v) / 2, X), c = a, u = a, g = a, b = "vertical";
|
|
64
64
|
} else {
|
|
65
|
-
let t =
|
|
66
|
-
|
|
67
|
-
let v = this._aLocationY0 + n - 0.5, D = this._aLocationY1 +
|
|
68
|
-
r =
|
|
65
|
+
let t = Y.getDataItemPositionX(e, this._xOpenField, 1, X), l = Y.getDataItemPositionX(e, this._xField, 1, X);
|
|
66
|
+
c = Y.getDataItemPositionX(e, this._xLowField, 1, X), g = Y.getDataItemPositionX(e, this._xHighField, 1, X), u = Math.max(t, l), a = Math.min(t, l);
|
|
67
|
+
let v = this._aLocationY0 + n - 0.5, D = this._aLocationY1 + p - 0.5;
|
|
68
|
+
r = x.getDataItemPositionY(e, this._yField, v + (D - v) / 2, y), o = r, d = r, w = r, b = "horizontal";
|
|
69
69
|
}
|
|
70
|
-
this._updateCandleGraphics(e,
|
|
70
|
+
this._updateCandleGraphics(e, a, c, r, o, u, g, d, w, b);
|
|
71
71
|
}
|
|
72
|
-
_updateCandleGraphics(e, i, h,
|
|
72
|
+
_updateCandleGraphics(e, i, h, Y, x, y, X, a, c, r) {
|
|
73
73
|
let o = e.get("graphics");
|
|
74
74
|
if (o) {
|
|
75
|
-
let
|
|
75
|
+
let u = this.getPoint(i, Y), g = this.getPoint(h, x), d = this.getPoint(y, a), w = this.getPoint(X, c);
|
|
76
76
|
if (this.get("turboMode")) {
|
|
77
77
|
const s = this.allColumnsData[this.allColumnsData.length - 1];
|
|
78
|
-
s.lowX0 =
|
|
78
|
+
s.lowX0 = u.x, s.lowY0 = u.y, s.lowX1 = g.x, s.lowY1 = g.y, s.highX0 = d.x, s.highY0 = d.y, s.highX1 = w.x, s.highY1 = w.y;
|
|
79
79
|
} else {
|
|
80
|
-
let s = o.x(),
|
|
81
|
-
o.set("lowX0",
|
|
82
|
-
let
|
|
83
|
-
|
|
84
|
-
n.set("lowX0",
|
|
80
|
+
let s = o.x(), p = o.y();
|
|
81
|
+
o.set("lowX0", u.x - s), o.set("lowY0", u.y - p), o.set("lowX1", g.x - s), o.set("lowY1", g.y - p), o.set("highX0", d.x - s), o.set("highY0", d.y - p), o.set("highX1", w.x - s), o.set("highY1", w.y - p), o.set("orientation", r);
|
|
82
|
+
let f = e.get("rangeGraphics");
|
|
83
|
+
f && H(f, (n) => {
|
|
84
|
+
n.set("lowX0", u.x - s), n.set("lowY0", u.y - p), n.set("lowX1", g.x - s), n.set("lowY1", g.y - p), n.set("highX0", d.x - s), n.set("highY0", d.y - p), n.set("highX1", w.x - s), n.set("highY1", w.y - p), n.set("orientation", r);
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
_afterColumnsDraw() {
|
|
90
90
|
this.get("turboMode") && this.allColumns.set("draw", (e) => {
|
|
91
|
-
e.clear(),
|
|
91
|
+
e.clear(), H(this.allColumnsData, (i) => {
|
|
92
92
|
e.beginPath();
|
|
93
|
-
const h = i.width,
|
|
94
|
-
e.beginFill(
|
|
93
|
+
const h = i.width, Y = i.height, x = i.x, y = i.y, X = i.stroke, a = i.fill, c = i.strokeWidth, r = i.strokeOpacity, o = i.fillOpacity, u = i.lowX0, g = i.lowY0, d = i.lowX1, w = i.lowY1, s = i.highX0, p = i.highY0, f = i.highX1, n = i.highY1;
|
|
94
|
+
e.beginFill(a, o), e.beginPath(), e.lineStyle(c, X, r), e.drawRect(x, y, h, Y), e.moveTo(u, g), e.lineTo(d, w), e.moveTo(s, p), e.lineTo(f, n), e.endStroke(), e.endFill();
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
_processAxisRange(e) {
|
|
99
|
-
super._processAxisRange(e), e.columns = new N(M.new({}), () =>
|
|
100
|
-
themeTags:
|
|
99
|
+
super._processAxisRange(e), e.columns = new N(M.new({}), () => A._new(this._root, {
|
|
100
|
+
themeTags: j(e.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
|
|
101
101
|
}, [this.columns.template, e.columns.template]));
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
Object.defineProperty(
|
|
104
|
+
Object.defineProperty(F, "className", {
|
|
105
105
|
enumerable: !0,
|
|
106
106
|
configurable: !0,
|
|
107
107
|
writable: !0,
|
|
108
108
|
value: "CandlestickSeries"
|
|
109
109
|
});
|
|
110
|
-
Object.defineProperty(
|
|
110
|
+
Object.defineProperty(F, "classNames", {
|
|
111
111
|
enumerable: !0,
|
|
112
112
|
configurable: !0,
|
|
113
113
|
writable: !0,
|
|
114
|
-
value: T.classNames.concat([
|
|
114
|
+
value: T.classNames.concat([F.className])
|
|
115
115
|
});
|
|
116
|
-
const
|
|
117
|
-
const e =
|
|
118
|
-
props:
|
|
116
|
+
const de = (P) => {
|
|
117
|
+
const e = Z(), i = q({
|
|
118
|
+
props: P,
|
|
119
119
|
name: "HCCandlestickChart"
|
|
120
120
|
}), {
|
|
121
121
|
data: h,
|
|
122
|
-
seriesName:
|
|
123
|
-
height:
|
|
124
|
-
width:
|
|
125
|
-
chartId:
|
|
126
|
-
showVolume:
|
|
127
|
-
risingColor:
|
|
122
|
+
seriesName: Y,
|
|
123
|
+
height: x = "100%",
|
|
124
|
+
width: y = "100%",
|
|
125
|
+
chartId: X = "candlestick-chart",
|
|
126
|
+
showVolume: a = !1,
|
|
127
|
+
risingColor: c = e.palette.success.main,
|
|
128
128
|
fallingColor: r = e.palette.error.main,
|
|
129
129
|
loading: o = !1,
|
|
130
|
-
emptyMessage:
|
|
131
|
-
baseInterval:
|
|
132
|
-
sx:
|
|
133
|
-
...
|
|
134
|
-
} = i, s =
|
|
130
|
+
emptyMessage: u = "No data available",
|
|
131
|
+
baseInterval: g,
|
|
132
|
+
sx: d,
|
|
133
|
+
...w
|
|
134
|
+
} = i, s = J.orderBy(h, ["date"]), p = {
|
|
135
135
|
...i,
|
|
136
|
-
height:
|
|
137
|
-
width:
|
|
138
|
-
chartId:
|
|
139
|
-
showVolume:
|
|
140
|
-
risingColor:
|
|
136
|
+
height: x,
|
|
137
|
+
width: y,
|
|
138
|
+
chartId: X,
|
|
139
|
+
showVolume: a,
|
|
140
|
+
risingColor: c,
|
|
141
141
|
fallingColor: r,
|
|
142
142
|
loading: o,
|
|
143
|
-
emptyMessage:
|
|
144
|
-
baseInterval:
|
|
145
|
-
},
|
|
146
|
-
return
|
|
143
|
+
emptyMessage: u,
|
|
144
|
+
baseInterval: g
|
|
145
|
+
}, f = C(null), n = C(null), b = C(null);
|
|
146
|
+
return K(() => {
|
|
147
147
|
var O, R, V;
|
|
148
148
|
if (!b.current) return;
|
|
149
149
|
const t = B.new(b.current);
|
|
150
|
-
n.current = t, t.setThemes([
|
|
151
|
-
text:
|
|
152
|
-
grid:
|
|
153
|
-
stroke:
|
|
150
|
+
n.current = t, t.setThemes([U.new(t)]), t.interfaceColors.setAll({
|
|
151
|
+
text: m(e.palette.text.primary),
|
|
152
|
+
grid: m(e.palette.divider),
|
|
153
|
+
stroke: m(e.palette.divider)
|
|
154
154
|
});
|
|
155
|
-
const
|
|
155
|
+
const l = t.container.children.push(
|
|
156
156
|
$.new(t, {
|
|
157
157
|
panX: !0,
|
|
158
158
|
panY: !0,
|
|
@@ -162,39 +162,39 @@ const me = (F) => {
|
|
|
162
162
|
layout: t.verticalLayout
|
|
163
163
|
})
|
|
164
164
|
);
|
|
165
|
-
|
|
165
|
+
f.current = l, l.set(
|
|
166
166
|
"cursor",
|
|
167
167
|
ee.new(t, {
|
|
168
168
|
behavior: "zoomX"
|
|
169
169
|
})
|
|
170
170
|
).lineY.set("visible", !1);
|
|
171
|
-
const v =
|
|
171
|
+
const v = l.xAxes.push(
|
|
172
172
|
te.new(t, {
|
|
173
173
|
maxDeviation: 0.3,
|
|
174
174
|
groupData: !0,
|
|
175
|
-
baseInterval:
|
|
175
|
+
baseInterval: g || { timeUnit: "day", count: 1 },
|
|
176
176
|
renderer: se.new(t, {
|
|
177
177
|
minorGridEnabled: !0
|
|
178
178
|
}),
|
|
179
179
|
tooltip: G.new(t, {})
|
|
180
180
|
})
|
|
181
|
-
), D =
|
|
182
|
-
|
|
183
|
-
renderer:
|
|
181
|
+
), D = l.yAxes.push(
|
|
182
|
+
E.new(t, {
|
|
183
|
+
renderer: z.new(t, {})
|
|
184
184
|
})
|
|
185
185
|
);
|
|
186
186
|
(O = v.get("renderer")) == null || O.grid.template.setAll({
|
|
187
|
-
stroke:
|
|
187
|
+
stroke: m(e.palette.divider),
|
|
188
188
|
strokeOpacity: 1
|
|
189
189
|
}), (R = v.get("renderer")) == null || R.labels.template.setAll({
|
|
190
190
|
paddingTop: 12
|
|
191
191
|
}), (V = D.get("renderer")) == null || V.grid.template.setAll({
|
|
192
|
-
stroke:
|
|
192
|
+
stroke: m(e.palette.divider),
|
|
193
193
|
strokeOpacity: 1
|
|
194
194
|
});
|
|
195
|
-
const _ =
|
|
196
|
-
|
|
197
|
-
name:
|
|
195
|
+
const _ = l.series.push(
|
|
196
|
+
F.new(t, {
|
|
197
|
+
name: Y || "Price",
|
|
198
198
|
xAxis: v,
|
|
199
199
|
yAxis: D,
|
|
200
200
|
valueXField: "date",
|
|
@@ -214,66 +214,76 @@ const me = (F) => {
|
|
|
214
214
|
})
|
|
215
215
|
);
|
|
216
216
|
_.columns.template.states.create("riseFromPrevious", {
|
|
217
|
-
fill:
|
|
218
|
-
stroke:
|
|
217
|
+
fill: m(c),
|
|
218
|
+
stroke: m(c)
|
|
219
219
|
}), _.columns.template.states.create("dropFromPrevious", {
|
|
220
|
-
fill:
|
|
221
|
-
stroke:
|
|
222
|
-
}), _.data.processor =
|
|
220
|
+
fill: m(r),
|
|
221
|
+
stroke: m(r)
|
|
222
|
+
}), _.data.processor = I.new(t, {
|
|
223
223
|
dateFormat: "i",
|
|
224
224
|
dateFields: ["date"]
|
|
225
225
|
});
|
|
226
|
-
let
|
|
227
|
-
return
|
|
228
|
-
|
|
229
|
-
renderer:
|
|
226
|
+
let k = null, L = null;
|
|
227
|
+
return a && (L = l.yAxes.push(
|
|
228
|
+
E.new(t, {
|
|
229
|
+
renderer: z.new(t, {
|
|
230
230
|
opposite: !0
|
|
231
231
|
}),
|
|
232
232
|
numberFormat: "#a"
|
|
233
233
|
})
|
|
234
|
-
),
|
|
234
|
+
), k = l.series.push(
|
|
235
235
|
T.new(t, {
|
|
236
236
|
name: "Volume",
|
|
237
237
|
xAxis: v,
|
|
238
238
|
yAxis: L,
|
|
239
239
|
valueYField: "volume",
|
|
240
240
|
valueXField: "date",
|
|
241
|
-
fill:
|
|
242
|
-
stroke:
|
|
241
|
+
fill: m("#2962ff"),
|
|
242
|
+
stroke: m("#2962ff"),
|
|
243
243
|
opacity: 0.6
|
|
244
244
|
})
|
|
245
|
-
),
|
|
245
|
+
), k.columns.template.setAll({
|
|
246
246
|
width: Q(80)
|
|
247
|
-
}),
|
|
247
|
+
}), k.data.processor = I.new(t, {
|
|
248
248
|
dateFormat: "i",
|
|
249
249
|
dateFields: ["date"]
|
|
250
|
-
})), _.data.setAll(s),
|
|
250
|
+
})), _.data.setAll(s), a && k && k.data.setAll(s), l.appear(1e3), _.appear(1e3), () => {
|
|
251
251
|
t.dispose();
|
|
252
252
|
};
|
|
253
|
-
}, [e.palette.mode]),
|
|
254
|
-
if (
|
|
255
|
-
const t =
|
|
253
|
+
}, [e.palette.mode]), S(() => {
|
|
254
|
+
if (f.current && n.current) {
|
|
255
|
+
const t = f.current.series.getIndex(
|
|
256
256
|
0
|
|
257
|
-
),
|
|
258
|
-
t == null || t.data.setAll(s),
|
|
257
|
+
), l = a ? f.current.series.getIndex(1) : null;
|
|
258
|
+
t == null || t.data.setAll(s), l == null || l.data.setAll(s);
|
|
259
259
|
}
|
|
260
|
-
}, [s,
|
|
260
|
+
}, [s, a]), S(() => {
|
|
261
|
+
if (!f.current) return;
|
|
262
|
+
const t = f.current.series.getIndex(0);
|
|
263
|
+
t && (t.columns.template.states.create("riseFromPrevious", {
|
|
264
|
+
fill: m(c),
|
|
265
|
+
stroke: m(c)
|
|
266
|
+
}), t.columns.template.states.create("dropFromPrevious", {
|
|
267
|
+
fill: m(r),
|
|
268
|
+
stroke: m(r)
|
|
269
|
+
}));
|
|
270
|
+
}, [c, r]), {
|
|
261
271
|
chartDivRef: b,
|
|
262
272
|
data: h,
|
|
263
|
-
seriesName:
|
|
264
|
-
height:
|
|
265
|
-
width:
|
|
266
|
-
chartId:
|
|
267
|
-
showVolume:
|
|
268
|
-
risingColor:
|
|
273
|
+
seriesName: Y,
|
|
274
|
+
height: x,
|
|
275
|
+
width: y,
|
|
276
|
+
chartId: X,
|
|
277
|
+
showVolume: a,
|
|
278
|
+
risingColor: c,
|
|
269
279
|
fallingColor: r,
|
|
270
280
|
loading: o,
|
|
271
|
-
emptyMessage:
|
|
272
|
-
sx:
|
|
273
|
-
other:
|
|
274
|
-
ownerState:
|
|
281
|
+
emptyMessage: u,
|
|
282
|
+
sx: d,
|
|
283
|
+
other: w,
|
|
284
|
+
ownerState: p
|
|
275
285
|
};
|
|
276
286
|
};
|
|
277
287
|
export {
|
|
278
|
-
|
|
288
|
+
de as useCandlestickChartLogic
|
|
279
289
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { Typography as
|
|
2
|
+
import { Typography as l, Divider as n } from "@mui/material";
|
|
3
3
|
import { CandlestickChart as C } from "../candlestick/index.js";
|
|
4
4
|
import { ColumnLineMix as h } from "../column-line-mix/index.js";
|
|
5
5
|
import { DrillDownTreemap as c } from "../drill-down-treemap/index.js";
|
|
@@ -16,11 +16,11 @@ import { StackedColumnChart as g } from "../stacked-column-chart/index.js";
|
|
|
16
16
|
import { XYChart as P } from "../xy-chart/index.js";
|
|
17
17
|
import { useChartWrapperLogic as w } from "./logic.js";
|
|
18
18
|
import { ChartWrapperRoot as A, ChartWrapperHeader as T, ChartWrapperContent as W } from "./styled.js";
|
|
19
|
-
|
|
19
|
+
const J = (a) => {
|
|
20
20
|
const { title: m, type: e, chartProps: o, ownerState: t, sx: p } = w(a);
|
|
21
21
|
return /* @__PURE__ */ i(A, { ownerState: t, sx: p, children: [
|
|
22
|
-
/* @__PURE__ */ r(T, { ownerState: t, children: /* @__PURE__ */ r(
|
|
23
|
-
/* @__PURE__ */ r(
|
|
22
|
+
/* @__PURE__ */ r(T, { ownerState: t, children: /* @__PURE__ */ r(l, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: m }) }),
|
|
23
|
+
/* @__PURE__ */ r(n, {}),
|
|
24
24
|
/* @__PURE__ */ i(W, { ownerState: t, children: [
|
|
25
25
|
e === "MultipleValueAxes" && /* @__PURE__ */ r(L, { ...o }),
|
|
26
26
|
e === "XYChart" && /* @__PURE__ */ r(P, { ...o }),
|
|
@@ -38,7 +38,7 @@ function J(a) {
|
|
|
38
38
|
e === "CandlestickChart" && /* @__PURE__ */ r(C, { ...o })
|
|
39
39
|
] })
|
|
40
40
|
] });
|
|
41
|
-
}
|
|
41
|
+
};
|
|
42
42
|
export {
|
|
43
43
|
J as ChartWrapper
|
|
44
44
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { ChartError as s } from "../_common/chart-error.js";
|
|
3
|
+
import { useColumnLineMixLogic as h } from "./logic.js";
|
|
4
|
+
import { ColumnLineMixRoot as x } from "./styled.js";
|
|
5
|
+
const u = (t) => {
|
|
6
|
+
const { chartId: i, ownerState: e, sx: m, error: o, other: n } = h(t);
|
|
7
|
+
return /* @__PURE__ */ r(x, { ownerState: e, sx: m, ...n, children: o ? /* @__PURE__ */ r(s, { message: o }) : /* @__PURE__ */ r("div", { id: i, style: { width: "100%", height: "100%" } }) });
|
|
8
|
+
};
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
u as ColumnLineMix
|
|
10
11
|
};
|