@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.
Files changed (325) hide show
  1. package/dist/{AccordionDetails-DhriPVPP.js → AccordionSummary-CMg08YSA.js} +91 -95
  2. package/dist/{Add-CMz4N2zT.js → Add-DuVVJeQU.js} +35 -36
  3. package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
  4. package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
  5. package/dist/AxisRendererY-C_ItLPNV.js +445 -0
  6. package/dist/Bullet-DVczI2TD.js +41 -0
  7. package/dist/Button-CcsPEIDh.js +35 -0
  8. package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-sObABYY2.js} +62 -58
  9. package/dist/CategoryAxis-CwnfaGc8.js +458 -0
  10. package/dist/Circle-Cy5s-pVc.js +27 -0
  11. package/dist/ColorSet-C7vpNXhM.js +2957 -0
  12. package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
  13. package/dist/DataProcessor-CHDO51q4.js +83 -0
  14. package/dist/DateAxis-YX3QNIB-.js +569 -0
  15. package/dist/{Delete-86TO0fMo.js → Delete-fBLhTHbF.js} +1 -1
  16. package/dist/{DialogContent-CqTojymQ.js → DialogContent-CGJ7alb8.js} +10 -13
  17. package/dist/FormControl-BCurCxRj.js +1294 -0
  18. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  19. package/dist/Hierarchy-Bihj0S61.js +925 -0
  20. package/dist/{IconButton-DJ-31-Fd.js → IconButton-_opV1iNK.js} +18 -19
  21. package/dist/IconPlus-yPkff_Vj.js +19 -0
  22. package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-C7PEvvYr.js} +17 -19
  23. package/dist/InputLabel-rEwwnD4_.js +354 -0
  24. package/dist/Legend-Dp_MKfS4.js +178 -0
  25. package/dist/LineSeries-Uiv5o56b.js +472 -0
  26. package/dist/{MenuItem-C6qlUyV3.js → MenuItem-DrE50M_p.js} +92 -69
  27. package/dist/Modal-DlB6GH-f.js +1659 -0
  28. package/dist/Paper-q9kKjAKx.js +527 -0
  29. package/dist/PieSeries-B2fW3z0s.js +693 -0
  30. package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
  31. package/dist/Scrollbar-D86MJyr2.js +171 -0
  32. package/dist/Slice-B19rbYDZ.js +261 -0
  33. package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
  34. package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
  35. package/dist/TextField-DSDIEEKu.js +3161 -0
  36. package/dist/Tick-2bcLyHpF.js +162 -0
  37. package/dist/{Typography-D1t7XuLN.js → Typography-B-Z5Y0Xq.js} +48 -50
  38. package/dist/Vector-BmuhQO4p.js +3606 -0
  39. package/dist/Vector-DfTqQEln.js +1735 -0
  40. package/dist/WKT-2wsDT-nq.js +2310 -0
  41. package/dist/XYCursor-C8WktvKM.js +362 -0
  42. package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
  43. package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
  44. package/dist/capitalize-quqpGCFu.js +9 -0
  45. package/dist/components/access/helpers.js +1 -1
  46. package/dist/components/access/index.js +8 -15
  47. package/dist/components/access/logic.js +25 -0
  48. package/dist/components/card/index.js +158 -498
  49. package/dist/components/card/logic.js +24 -0
  50. package/dist/components/card/styled.js +226 -51
  51. package/dist/components/card-alternate/index.js +111 -139
  52. package/dist/components/card-alternate/logic.js +17 -0
  53. package/dist/components/card-alternate/styled.js +113 -19
  54. package/dist/components/charts/_common/utils.js +20 -0
  55. package/dist/components/charts/candlestick/logic.js +170 -140
  56. package/dist/components/charts/chart-wrapper/helpers.js +27 -0
  57. package/dist/components/charts/chart-wrapper/index.js +44 -0
  58. package/dist/components/charts/chart-wrapper/logic.js +47 -0
  59. package/dist/components/charts/chart-wrapper/styled.js +44 -0
  60. package/dist/components/charts/column-line-mix/index.js +10 -0
  61. package/dist/components/charts/column-line-mix/logic.js +162 -0
  62. package/dist/components/charts/column-line-mix/styled.js +12 -0
  63. package/dist/components/charts/drill-down-treemap/index.js +10 -0
  64. package/dist/components/charts/drill-down-treemap/logic.js +391 -0
  65. package/dist/components/charts/drill-down-treemap/styled.js +12 -0
  66. package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
  67. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
  68. package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
  69. package/dist/components/charts/heatmap/index.js +10 -0
  70. package/dist/components/charts/heatmap/logic.js +361 -0
  71. package/dist/components/charts/heatmap/styled.js +12 -0
  72. package/dist/components/charts/highlighting-line-data/logic.js +89 -256
  73. package/dist/components/charts/line/index.js +10 -0
  74. package/dist/components/charts/line/logic.js +148 -0
  75. package/dist/components/charts/line/styled.js +12 -0
  76. package/dist/components/charts/logaritmic-scale/index.js +10 -0
  77. package/dist/components/charts/logaritmic-scale/logic.js +119 -0
  78. package/dist/components/charts/logaritmic-scale/styled.js +12 -0
  79. package/dist/components/charts/multiple-value-axes/index.js +10 -0
  80. package/dist/components/charts/multiple-value-axes/logic.js +191 -0
  81. package/dist/components/charts/multiple-value-axes/styled.js +12 -0
  82. package/dist/components/charts/nested-pie/index.js +10 -0
  83. package/dist/components/charts/nested-pie/logic.js +110 -0
  84. package/dist/components/charts/nested-pie/styled.js +12 -0
  85. package/dist/components/charts/packed-circles/index.js +10 -0
  86. package/dist/components/charts/packed-circles/logic.js +423 -0
  87. package/dist/components/charts/packed-circles/styled.js +12 -0
  88. package/dist/components/charts/pie-chart/index.js +10 -0
  89. package/dist/components/charts/pie-chart/logic.js +70 -0
  90. package/dist/components/charts/pie-chart/styled.js +12 -0
  91. package/dist/components/charts/stacked-area-radar/index.js +10 -0
  92. package/dist/components/charts/stacked-area-radar/logic.js +868 -0
  93. package/dist/components/charts/stacked-area-radar/styled.js +12 -0
  94. package/dist/components/charts/stacked-column-chart/index.js +10 -0
  95. package/dist/components/charts/stacked-column-chart/logic.js +148 -0
  96. package/dist/components/charts/stacked-column-chart/styled.js +12 -0
  97. package/dist/components/charts/xy-chart/index.js +10 -0
  98. package/dist/components/charts/xy-chart/logic.js +170 -0
  99. package/dist/components/charts/xy-chart/styled.js +12 -0
  100. package/dist/components/collapsible-card/index.js +58 -32
  101. package/dist/components/collapsible-card/logic.js +20 -0
  102. package/dist/components/collapsible-card/styled.js +52 -0
  103. package/dist/components/confirm/dialog.js +3 -3
  104. package/dist/components/confirm/index.js +1 -1
  105. package/dist/components/container/index.js +28 -269
  106. package/dist/components/container/logic.js +12 -0
  107. package/dist/components/container/styled.js +29 -0
  108. package/dist/components/context-menu/index.js +25 -557
  109. package/dist/components/context-menu/logic.js +14 -0
  110. package/dist/components/context-menu/styled.js +40 -0
  111. package/dist/components/data-map/components/controls/index.js +12 -0
  112. package/dist/components/data-map/components/controls/styled.js +34 -0
  113. package/dist/components/data-map/index.js +51 -0
  114. package/dist/components/data-map/logic.js +108 -0
  115. package/dist/components/data-map/styled.js +32 -0
  116. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  117. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  118. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  119. package/dist/components/date-picker-with-custom-range/index.js +9 -0
  120. package/dist/components/date-picker-with-custom-range/logic.js +66 -0
  121. package/dist/components/date-picker-with-custom-range/styled.js +43 -0
  122. package/dist/components/divider/index.js +18 -0
  123. package/dist/components/divider/logic.js +13 -0
  124. package/dist/components/divider/styled.js +14 -0
  125. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  126. package/dist/components/geometry-picker/edit/index.js +1 -1
  127. package/dist/components/geometry-picker/geometry/index.js +1 -1
  128. package/dist/components/geometry-picker/index.js +8 -8
  129. package/dist/components/geometry-picker/kml/index.js +1 -1
  130. package/dist/components/geometry-picker/map/index.js +1 -1
  131. package/dist/components/geometry-picker/map/logic.js +65 -62
  132. package/dist/components/geometry-picker/map/style.js +1 -1
  133. package/dist/components/heat-map/components/controls/index.js +12 -0
  134. package/dist/components/heat-map/components/controls/styled.js +34 -0
  135. package/dist/components/heat-map/components/legend/index.js +26 -0
  136. package/dist/components/heat-map/components/legend/styled.js +14 -0
  137. package/dist/components/heat-map/index.js +37 -0
  138. package/dist/components/heat-map/logic.js +1945 -0
  139. package/dist/components/heat-map/styled.js +32 -0
  140. package/dist/components/icon-button/index.js +22 -15
  141. package/dist/components/icon-button/logic.js +15 -0
  142. package/dist/components/icon-button/styled.js +22 -10
  143. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  144. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
  145. package/dist/components/instance-form/components/variable/index.js +7 -9
  146. package/dist/components/instance-form/components/variables/index.js +1 -1
  147. package/dist/components/instance-form/index.js +1 -1
  148. package/dist/components/instance-hierarchy-table/index.js +32 -37
  149. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  150. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  151. package/dist/components/instance-table/index.js +30 -135
  152. package/dist/components/instance-table/logic.js +122 -0
  153. package/dist/components/instance-table/styled.js +53 -11
  154. package/dist/components/instance-variable-list/index.js +34 -29
  155. package/dist/components/instance-variable-list/styled.js +21 -21
  156. package/dist/components/instance-variable-list/variable.js +44 -74
  157. package/dist/components/key-protection/index.js +45 -2
  158. package/dist/components/key-protection/logic.js +40 -0
  159. package/dist/components/key-protection/styled.js +45 -0
  160. package/dist/components/key-protection/utils.js +1 -1
  161. package/dist/components/linear-indicator/index.js +10 -67
  162. package/dist/components/linear-indicator/logic.js +47 -0
  163. package/dist/components/linear-indicator/styled.js +39 -40
  164. package/dist/components/loading/index.js +15 -9
  165. package/dist/components/loading/logic.js +15 -0
  166. package/dist/components/loading/styled.js +26 -19
  167. package/dist/components/map/helpers/kml.js +1 -1
  168. package/dist/components/map/helpers/mapbox.js +14 -14
  169. package/dist/components/map/helpers/ol.js +23 -19
  170. package/dist/components/map/helpers/wkt.js +26 -1314
  171. package/dist/components/map/index.js +1 -1
  172. package/dist/components/map/logic.js +113 -101
  173. package/dist/components/map/styled.js +39 -31
  174. package/dist/components/metric-card/MetricChart.js +50 -498
  175. package/dist/components/metric-card/index.js +94 -115
  176. package/dist/components/metric-card/logic.js +70 -131
  177. package/dist/components/object-profile-card/components/avatar/index.js +44 -0
  178. package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
  179. package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
  180. package/dist/components/object-profile-card/index.js +90 -0
  181. package/dist/components/object-profile-card/logic.js +33 -0
  182. package/dist/components/object-profile-card/styled.js +48 -0
  183. package/dist/components/paginated-list/index.js +93 -89
  184. package/dist/components/paginated-list/logic.js +51 -40
  185. package/dist/components/paginated-list/styled.js +25 -21
  186. package/dist/components/phone-input/index.js +18 -22
  187. package/dist/components/phone-input/logic.js +14 -0
  188. package/dist/components/phone-input/styled.js +12 -4
  189. package/dist/components/property-mapping/index.js +2 -2
  190. package/dist/components/prr-map/components/controls/index.js +12 -0
  191. package/dist/components/prr-map/components/controls/styled.js +34 -0
  192. package/dist/components/prr-map/components/legend/index.js +36 -0
  193. package/dist/components/prr-map/components/legend/styled.js +21 -0
  194. package/dist/components/prr-map/index.js +38 -0
  195. package/dist/components/prr-map/logic.js +104 -0
  196. package/dist/components/prr-map/styled.js +32 -0
  197. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  198. package/dist/components/range-selector/components/date-range/index.js +148 -7
  199. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  200. package/dist/components/range-selector/components/number-range/index.js +48 -53
  201. package/dist/components/range-selector/components/string-range/index.js +15 -17
  202. package/dist/components/range-selector/index.js +63 -57
  203. package/dist/components/range-selector/logic.js +12 -0
  204. package/dist/components/range-selector/styled.js +4222 -0
  205. package/dist/components/raster-grid-map/components/controls/index.js +12 -0
  206. package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
  207. package/dist/components/raster-grid-map/components/legend/index.js +14 -0
  208. package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
  209. package/dist/components/raster-grid-map/helpers.js +190 -0
  210. package/dist/components/raster-grid-map/index.js +38 -0
  211. package/dist/components/raster-grid-map/logic.js +172 -0
  212. package/dist/components/raster-grid-map/styled.js +32 -0
  213. package/dist/components/search-input/index.js +62 -140
  214. package/dist/components/search-input/logic.js +43 -0
  215. package/dist/components/search-input/styled.js +33 -0
  216. package/dist/components/simple-pivot-table/index.js +66 -0
  217. package/dist/components/simple-pivot-table/logic.js +51 -0
  218. package/dist/components/simple-pivot-table/styled.js +45 -0
  219. package/dist/components/static-text/index.js +18 -0
  220. package/dist/components/static-text/logic.js +13 -0
  221. package/dist/components/static-text/styled.js +45 -0
  222. package/dist/components/tabs/index.js +56 -2160
  223. package/dist/components/tabs/logic.js +36 -0
  224. package/dist/components/tabs/styled.js +94 -16
  225. package/dist/components/tabs/tab-panel.js +11 -10
  226. package/dist/components/template-filters/components/filter/index.js +13 -18
  227. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  228. package/dist/components/template-filters/index.js +21 -29
  229. package/dist/components/template-filters/logic.js +18 -0
  230. package/dist/components/template-filters/styled.js +44 -1
  231. package/dist/components/template-form/components/property-list/index.js +8 -8
  232. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  233. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  234. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  235. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  236. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  237. package/dist/components/template-form/index.js +32 -33
  238. package/dist/components/template-property-filters/index.js +45 -95
  239. package/dist/components/template-property-filters/logic.js +27 -0
  240. package/dist/components/template-property-filters/property.js +105 -165
  241. package/dist/components/template-property-filters/styled.js +121 -20
  242. package/dist/components/timeline/index.js +61 -0
  243. package/dist/components/timeline/logic.js +40 -0
  244. package/dist/components/timeline/styled.js +48 -0
  245. package/dist/components/tree-select/index.js +52 -67
  246. package/dist/components/tree-select/logic.js +59 -0
  247. package/dist/components/tree-select/styled.js +45 -62
  248. package/dist/components/treeview-filter/index.js +43 -65
  249. package/dist/components/treeview-filter/item/index.js +43 -42
  250. package/dist/components/treeview-filter/item-label/index.js +17 -37
  251. package/dist/components/treeview-filter/logic.js +28 -0
  252. package/dist/components/treeview-filter/styled.js +86 -0
  253. package/dist/components/uploader/index.js +532 -567
  254. package/dist/components/uploader/logic.js +74 -0
  255. package/dist/components/uploader/styled.js +93 -46
  256. package/dist/constant-BiOGvlZc.js +21 -0
  257. package/dist/createReactComponent-C7L-DMHj.js +60 -0
  258. package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BM3-TsGy.js} +33 -36
  259. package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DX-SqL8M.js} +24 -26
  260. package/dist/{dialog-BE4D6swf.js → dialog-cf4HUXXl.js} +27 -28
  261. package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
  262. package/dist/index-BMS1Otro.js +183 -0
  263. package/dist/index-C8C3YXle.js +1932 -0
  264. package/dist/index-C__OZmYy.js +663 -0
  265. package/dist/{index-CGNxsLVm.js → index-DPKUmQnz.js} +11 -13
  266. package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
  267. package/dist/index.es-CHNMhaMi.js +2067 -0
  268. package/dist/index.esm-BLLrbTzY.js +318 -0
  269. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  270. package/dist/main.d.ts +1869 -565
  271. package/dist/main.js +141 -443
  272. package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
  273. package/dist/ol-yOE-NV0X.js +7465 -0
  274. package/dist/path-CNVruS--.js +84 -0
  275. package/dist/{property-list-form-C5hcK2y2.js → property-list-form-DL_dEoNn.js} +57 -62
  276. package/dist/{createTheme-CNnKNxwL.js → styled-Bsjp3kFh.js} +275 -278
  277. package/dist/useId-B4-oF9Mq.js +34 -0
  278. package/dist/useMobilePicker-B-M3dnTn.js +7993 -0
  279. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  280. package/package.json +11 -2
  281. package/dist/AxisRendererY-kADUad00.js +0 -18370
  282. package/dist/Box-B1AVyJ_s.js +0 -71
  283. package/dist/Button-eqWvpDuh.js +0 -356
  284. package/dist/CardContent-DsYqqPeJ.js +0 -74
  285. package/dist/Checkbox-CrU2hpWB.js +0 -420
  286. package/dist/DateAxis-CMum47iz.js +0 -924
  287. package/dist/FormControlLabel-BrdX4R71.js +0 -195
  288. package/dist/Input-CoIrGZAh.js +0 -326
  289. package/dist/InputLabel-CBuAYyuT.js +0 -1367
  290. package/dist/LineSeries-CfcpoYla.js +0 -549
  291. package/dist/List-DOD5kSk3.js +0 -121
  292. package/dist/ListItem-r8PbsvCz.js +0 -429
  293. package/dist/Modal-CkcFEpHa.js +0 -1284
  294. package/dist/OutlinedInput-B-iZoc9l.js +0 -450
  295. package/dist/Paper-CjqLScHA.js +0 -163
  296. package/dist/Select-t3ewnSdf.js +0 -2180
  297. package/dist/Tabs-Cn42Z5QI.js +0 -789
  298. package/dist/TextField-BQ8a50fA.js +0 -459
  299. package/dist/components/collapsible-card/style.js +0 -49
  300. package/dist/components/key-protection/menu.js +0 -85
  301. package/dist/components/profile-card/index.js +0 -80
  302. package/dist/components/profile-card/logic.js +0 -33
  303. package/dist/components/profile-card/styled.js +0 -43
  304. package/dist/components/tabs/appleTabs.style.js +0 -55
  305. package/dist/components/treeview-filter/item/styled.js +0 -39
  306. package/dist/createStyled-BGx1I94c.js +0 -352
  307. package/dist/createTheme-CyC5HawC.js +0 -879
  308. package/dist/debounce-46wSf_lW.js +0 -15
  309. package/dist/exactProp-cjT0t_Pt.js +0 -36
  310. package/dist/extendSxProp-FEpqY5_S.js +0 -30
  311. package/dist/index-DMSHuq6l.js +0 -688
  312. package/dist/index-SpeaLUQD.js +0 -10963
  313. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  314. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  315. package/dist/listItemTextClasses-CNjn41Of.js +0 -16
  316. package/dist/ol-lGwSyEIV.js +0 -15050
  317. package/dist/ownerDocument-CUrv0DIK.js +0 -6
  318. package/dist/ownerWindow-niciwP7I.js +0 -7
  319. package/dist/styled-B8ugzvji.js +0 -12
  320. package/dist/useFormControl-CatNKXAi.js +0 -10
  321. package/dist/useId-BHG98T5I.js +0 -26
  322. package/dist/useTheme-C15Eq8KG.js +0 -18
  323. package/dist/useTheme-D-uii9iX.js +0 -10
  324. package/dist/useThemeProps-DRP1dikX.js +0 -95
  325. package/dist/utils-CsOZUsQj.js +0 -365
@@ -1,22 +1,21 @@
1
- import { styled as i, Card as t, Box as n } from "@mui/material";
2
- const r = i(t, {
3
- name: "SNAlternateCard",
4
- // The component name
5
- slot: "root"
6
- // The slot name
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: a.spacing(3),
11
- paddingTop: a.spacing(6),
12
- gap: a.spacing(2),
9
+ padding: e.spacing(3),
10
+ paddingTop: e.spacing(6),
11
+ gap: e.spacing(2),
13
12
  "& .MuiCardMedia-root": {
14
- borderRadius: a.shape.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: a.spacing(3),
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
- })), e = i(n, {
28
- name: "SNAlternateCard",
29
- slot: "menuContainer"
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
- e as AlternateCardMenuContainer,
44
- r as AlternateCardRoot
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 { R as M, L, T as k, m as T, i as V, b as G, A as S, X as j, c as H, g as O, V as R, d as N, f as _, p as z } from "../../../AxisRendererY-kADUad00.js";
2
- import { useThemeProps as E } from "@mui/material";
3
- import { useRef as A, useLayoutEffect as W, useEffect as U } from "react";
4
- import { X as Z, D as q } from "../../../DateAxis-CMum47iz.js";
5
- import { C as F } from "../../../ColumnSeries-BTcqshjB.js";
6
- class D extends M {
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(D, "className", {
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(D, "classNames", {
29
+ Object.defineProperty(C, "classNames", {
23
30
  enumerable: !0,
24
31
  configurable: !0,
25
32
  writable: !0,
26
- value: M.classNames.concat([D.className])
33
+ value: W.classNames.concat([C.className])
27
34
  });
28
- class C extends F {
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 L(k.new({
41
+ value: this.addDisposer(new N(M.new({
35
42
  themeTags: ["autocolor"]
36
- }), () => D._new(this._root, {
37
- themeTags: T(this.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
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, t) {
45
- const h = t.make();
46
- return this.get("turboMode") ? h.virtualParent = this.chart : this.mainContainer.children.push(h), h._setDataItem(e), t.push(h), h;
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, t, h) {
49
- super._updateGraphics(e, t, h);
50
- const m = this.getRaw("xAxis"), d = this.getRaw("yAxis");
51
- let Y = this.get("vcy", 1), n = this.get("vcx", 1), c, x, u, l, g, p, w, a, o = this.get("locationX", e.get("locationX", 0.5)), r = this.get("locationY", e.get("locationY", 0.5)), s = this.get("openLocationX", e.get("openLocationX", o)), i = this.get("openLocationY", e.get("openLocationY", r)), b;
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 y = d.getDataItemPositionY(e, this._yOpenField, 1, Y), f = d.getDataItemPositionY(e, this._yField, 1, Y);
54
- l = d.getDataItemPositionY(e, this._yLowField, 1, Y), a = d.getDataItemPositionY(e, this._yHighField, 1, Y), w = Math.max(y, f), u = Math.min(y, f);
55
- let X = this._aLocationX0 + s - 0.5, v = this._aLocationX1 + o - 0.5;
56
- c = m.getDataItemPositionX(e, this._xField, X + (v - X) / 2, n), x = c, g = c, p = c, b = "vertical";
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 y = m.getDataItemPositionX(e, this._xOpenField, 1, n), f = m.getDataItemPositionX(e, this._xField, 1, n);
59
- x = m.getDataItemPositionX(e, this._xLowField, 1, n), p = m.getDataItemPositionX(e, this._xHighField, 1, n), g = Math.max(y, f), c = Math.min(y, f);
60
- let X = this._aLocationY0 + i - 0.5, v = this._aLocationY1 + r - 0.5;
61
- u = d.getDataItemPositionY(e, this._yField, X + (v - X) / 2, Y), l = u, w = u, a = u, b = "horizontal";
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, c, x, u, l, g, p, w, a, b);
70
+ this._updateCandleGraphics(e, l, x, r, o, c, u, p, d, b);
64
71
  }
65
- _updateCandleGraphics(e, t, h, m, d, Y, n, c, x, u) {
66
- let l = e.get("graphics");
67
- if (l) {
68
- let g = this.getPoint(t, m), p = this.getPoint(h, d), w = this.getPoint(Y, c), a = this.getPoint(n, x);
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 o = this.allColumnsData[this.allColumnsData.length - 1];
71
- o.lowX0 = g.x, o.lowY0 = g.y, o.lowX1 = p.x, o.lowY1 = p.y, o.highX0 = w.x, o.highY0 = w.y, o.highX1 = a.x, o.highY1 = a.y;
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 o = l.x(), r = l.y();
74
- l.set("lowX0", g.x - o), l.set("lowY0", g.y - r), l.set("lowX1", p.x - o), l.set("lowY1", p.y - r), l.set("highX0", w.x - o), l.set("highY0", w.y - r), l.set("highX1", a.x - o), l.set("highY1", a.y - r), l.set("orientation", u);
75
- let s = e.get("rangeGraphics");
76
- s && V(s, (i) => {
77
- i.set("lowX0", g.x - o), i.set("lowY0", g.y - r), i.set("lowX1", p.x - o), i.set("lowY1", p.y - r), i.set("highX0", w.x - o), i.set("highY0", w.y - r), i.set("highX1", a.x - o), i.set("highY1", a.y - r), i.set("orientation", u);
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(), V(this.allColumnsData, (t) => {
91
+ e.clear(), j(this.allColumnsData, (i) => {
85
92
  e.beginPath();
86
- const h = t.width, m = t.height, d = t.x, Y = t.y, n = t.stroke, c = t.fill, x = t.strokeWidth, u = t.strokeOpacity, l = t.fillOpacity, g = t.lowX0, p = t.lowY0, w = t.lowX1, a = t.lowY1, o = t.highX0, r = t.highY0, s = t.highX1, i = t.highY1;
87
- e.beginFill(c, l), e.beginPath(), e.lineStyle(x, n, u), e.drawRect(d, Y, h, m), e.moveTo(g, p), e.lineTo(w, a), e.moveTo(o, r), e.lineTo(s, i), e.endStroke(), e.endFill();
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 L(k.new({}), () => D._new(this._root, {
93
- themeTags: T(e.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
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(C, "className", {
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(C, "classNames", {
110
+ Object.defineProperty(k, "classNames", {
104
111
  enumerable: !0,
105
112
  configurable: !0,
106
113
  writable: !0,
107
- value: F.classNames.concat([C.className])
114
+ value: T.classNames.concat([k.className])
108
115
  });
109
- const $ = (P) => {
110
- const e = E({
111
- props: P,
116
+ const me = (F) => {
117
+ const e = U(), i = Z({
118
+ props: F,
112
119
  name: "HCCandlestickChart"
113
120
  }), {
114
- data: t,
115
- seriesName: h,
116
- height: m = "500px",
117
- width: d = "100%",
118
- chartId: Y = "candlestick-chart",
119
- showVolume: n = !1,
120
- risingColor: c = "#00b050",
121
- fallingColor: x = "#ff3b30",
122
- loading: u = !1,
123
- emptyMessage: l = "No data available",
124
- sx: g,
125
- ...p
126
- } = e, w = {
127
- ...e,
128
- height: m,
129
- width: d,
130
- chartId: Y,
131
- showVolume: n,
132
- risingColor: c,
133
- fallingColor: x,
134
- loading: u,
135
- emptyMessage: l
136
- }, a = A(null), o = A(null), r = A(null);
137
- return W(() => {
138
- if (!r.current) return;
139
- const s = G.new(r.current);
140
- o.current = s, s.setThemes([S.new(s)]);
141
- const i = s.container.children.push(
142
- j.new(s, {
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: "panX",
146
- wheelY: "zoomX",
159
+ wheelX: "none",
160
+ wheelY: "none",
147
161
  pinchZoomX: !0,
148
- layout: s.verticalLayout
162
+ layout: t.verticalLayout
149
163
  })
150
164
  );
151
- a.current = i, i.set(
165
+ y.current = a, a.set(
152
166
  "cursor",
153
- Z.new(s, {
167
+ ee.new(t, {
154
168
  behavior: "zoomX"
155
169
  })
156
170
  ).lineY.set("visible", !1);
157
- const b = i.xAxes.push(
158
- q.new(s, {
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: H.new(s, {
175
+ baseInterval: u || { timeUnit: "day", count: 1 },
176
+ renderer: se.new(t, {
163
177
  minorGridEnabled: !0
164
178
  }),
165
- tooltip: O.new(s, {})
179
+ tooltip: G.new(t, {})
166
180
  })
167
- ), y = i.yAxes.push(
168
- R.new(s, {
169
- renderer: N.new(s, {})
181
+ ), D = a.yAxes.push(
182
+ H.new(t, {
183
+ renderer: E.new(t, {})
170
184
  })
171
- ), f = i.series.push(
172
- C.new(s, {
173
- name: h || "Price",
174
- xAxis: b,
175
- yAxis: y,
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: O.new(s, {
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
- f.columns.template.states.create("riseFromPrevious", {
193
- fill: _(c),
194
- stroke: _(c)
195
- }), f.columns.template.states.create("dropFromPrevious", {
196
- fill: _(x),
197
- stroke: _(x)
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 X = null, v = null;
200
- return n && (v = i.yAxes.push(
201
- R.new(s, {
202
- renderer: N.new(s, {
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
- ), X = i.series.push(
208
- F.new(s, {
234
+ ), A = a.series.push(
235
+ T.new(t, {
209
236
  name: "Volume",
210
- xAxis: b,
211
- yAxis: v,
237
+ xAxis: v,
238
+ yAxis: L,
212
239
  valueYField: "volume",
213
240
  valueXField: "date",
214
- fill: _("#2962ff"),
215
- stroke: _("#2962ff"),
241
+ fill: X("#2962ff"),
242
+ stroke: X("#2962ff"),
216
243
  opacity: 0.6
217
244
  })
218
- ), X.columns.template.setAll({
219
- width: z(80)
220
- })), f.data.setAll(t), n && X && X.data.setAll(t), i.appear(1e3), f.appear(1e3), () => {
221
- s.dispose();
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
- }, []), U(() => {
224
- if (a.current && o.current) {
225
- const s = a.current.series.getIndex(
253
+ }, [e.palette.mode]), K(() => {
254
+ if (y.current && n.current) {
255
+ const t = y.current.series.getIndex(
226
256
  0
227
- ), i = n ? a.current.series.getIndex(1) : null;
228
- s == null || s.data.setAll(t), i == null || i.data.setAll(t);
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
- }, [t, n]), {
231
- chartDivRef: r,
232
- data: t,
233
- seriesName: h,
234
- height: m,
235
- width: d,
236
- chartId: Y,
237
- showVolume: n,
238
- risingColor: c,
239
- fallingColor: x,
240
- loading: u,
241
- emptyMessage: l,
242
- sx: g,
243
- other: p,
244
- ownerState: w
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
- $ as useCandlestickChartLogic
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
+ };