@hitachivantara/uikit-react-viz 4.1.10 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/components/LineChart/LineChart.cjs +398 -0
  3. package/dist/cjs/components/LineChart/LineChart.cjs.map +1 -0
  4. package/dist/cjs/components/LineChart/LineChart.styles.cjs +85 -0
  5. package/dist/cjs/components/LineChart/LineChart.styles.cjs.map +1 -0
  6. package/dist/cjs/hooks/useVizTheme.cjs +9 -0
  7. package/dist/cjs/hooks/useVizTheme.cjs.map +1 -0
  8. package/dist/cjs/index.cjs +8 -0
  9. package/dist/cjs/index.cjs.map +1 -0
  10. package/dist/cjs/providers/Provider.cjs +137 -0
  11. package/dist/cjs/providers/Provider.cjs.map +1 -0
  12. package/dist/cjs/utils/getAgFunc.cjs +5 -0
  13. package/dist/cjs/utils/getAgFunc.cjs.map +1 -0
  14. package/dist/cjs/utils/getAxisType.cjs +16 -0
  15. package/dist/cjs/utils/getAxisType.cjs.map +1 -0
  16. package/dist/cjs/utils/getLegendIcon.cjs +10 -0
  17. package/dist/cjs/utils/getLegendIcon.cjs.map +1 -0
  18. package/dist/esm/components/LineChart/LineChart.js +377 -0
  19. package/dist/esm/components/LineChart/LineChart.js.map +1 -0
  20. package/dist/esm/components/LineChart/LineChart.styles.js +85 -0
  21. package/dist/esm/components/LineChart/LineChart.styles.js.map +1 -0
  22. package/dist/esm/hooks/useVizTheme.js +9 -0
  23. package/dist/esm/hooks/useVizTheme.js.map +1 -0
  24. package/dist/esm/index.js +8 -0
  25. package/dist/esm/index.js.map +1 -0
  26. package/dist/esm/providers/Provider.js +118 -0
  27. package/dist/esm/providers/Provider.js.map +1 -0
  28. package/dist/esm/utils/getAgFunc.js +5 -0
  29. package/dist/esm/utils/getAgFunc.js.map +1 -0
  30. package/dist/esm/utils/getAxisType.js +16 -0
  31. package/dist/esm/utils/getAxisType.js.map +1 -0
  32. package/dist/esm/utils/getLegendIcon.js +10 -0
  33. package/dist/esm/utils/getLegendIcon.js.map +1 -0
  34. package/dist/types/index.d.ts +229 -0
  35. package/package.json +36 -48
  36. package/LICENSE.txt +0 -201
  37. package/dist/Barchart/Barchart.d.ts +0 -14
  38. package/dist/Barchart/Barchart.js +0 -214
  39. package/dist/Barchart/Barchart.js.map +0 -1
  40. package/dist/Barchart/barchartPlotlyOverrides.js +0 -47
  41. package/dist/Barchart/barchartPlotlyOverrides.js.map +0 -1
  42. package/dist/Barchart/index.d.ts +0 -2
  43. package/dist/Barchart/index.js +0 -14
  44. package/dist/Barchart/index.js.map +0 -1
  45. package/dist/Barchart/styles.js +0 -10
  46. package/dist/Barchart/styles.js.map +0 -1
  47. package/dist/Chart/Chart.d.ts +0 -44
  48. package/dist/Chart/Chart.js +0 -194
  49. package/dist/Chart/Chart.js.map +0 -1
  50. package/dist/Chart/Plot/Plot.d.ts +0 -43
  51. package/dist/Chart/Plot/Plot.js +0 -110
  52. package/dist/Chart/Plot/Plot.js.map +0 -1
  53. package/dist/Chart/Plot/index.d.ts +0 -2
  54. package/dist/Chart/Plot/index.js +0 -14
  55. package/dist/Chart/Plot/index.js.map +0 -1
  56. package/dist/Chart/Plot/styles.js +0 -10
  57. package/dist/Chart/Plot/styles.js.map +0 -1
  58. package/dist/Chart/Tooltip/MultiTooltip/MultiTooltip.js +0 -143
  59. package/dist/Chart/Tooltip/MultiTooltip/MultiTooltip.js.map +0 -1
  60. package/dist/Chart/Tooltip/MultiTooltip/index.js +0 -14
  61. package/dist/Chart/Tooltip/MultiTooltip/index.js.map +0 -1
  62. package/dist/Chart/Tooltip/MultiTooltip/styles.js +0 -49
  63. package/dist/Chart/Tooltip/MultiTooltip/styles.js.map +0 -1
  64. package/dist/Chart/Tooltip/SingleTooltip/SingleTooltip.js +0 -73
  65. package/dist/Chart/Tooltip/SingleTooltip/SingleTooltip.js.map +0 -1
  66. package/dist/Chart/Tooltip/SingleTooltip/index.js +0 -14
  67. package/dist/Chart/Tooltip/SingleTooltip/index.js.map +0 -1
  68. package/dist/Chart/Tooltip/SingleTooltip/styles.js +0 -24
  69. package/dist/Chart/Tooltip/SingleTooltip/styles.js.map +0 -1
  70. package/dist/Chart/Tooltip/Tooltip.js +0 -146
  71. package/dist/Chart/Tooltip/Tooltip.js.map +0 -1
  72. package/dist/Chart/Tooltip/index.js +0 -14
  73. package/dist/Chart/Tooltip/index.js.map +0 -1
  74. package/dist/Chart/Tooltip/styles.js +0 -16
  75. package/dist/Chart/Tooltip/styles.js.map +0 -1
  76. package/dist/Chart/chartPlotlyOverrides.js +0 -145
  77. package/dist/Chart/chartPlotlyOverrides.js.map +0 -1
  78. package/dist/Chart/index.d.ts +0 -5
  79. package/dist/Chart/index.js +0 -14
  80. package/dist/Chart/index.js.map +0 -1
  81. package/dist/Chart/styles.js +0 -36
  82. package/dist/Chart/styles.js.map +0 -1
  83. package/dist/ConfusionMatrix/ConfusionMatrix.d.ts +0 -10
  84. package/dist/ConfusionMatrix/ConfusionMatrix.js +0 -102
  85. package/dist/ConfusionMatrix/ConfusionMatrix.js.map +0 -1
  86. package/dist/ConfusionMatrix/CustomTooltip/CustomTooltip.js +0 -47
  87. package/dist/ConfusionMatrix/CustomTooltip/CustomTooltip.js.map +0 -1
  88. package/dist/ConfusionMatrix/CustomTooltip/index.js +0 -14
  89. package/dist/ConfusionMatrix/CustomTooltip/index.js.map +0 -1
  90. package/dist/ConfusionMatrix/CustomTooltip/styles.js +0 -26
  91. package/dist/ConfusionMatrix/CustomTooltip/styles.js.map +0 -1
  92. package/dist/ConfusionMatrix/confusionMatrixPlotlyOverrides.js +0 -189
  93. package/dist/ConfusionMatrix/confusionMatrixPlotlyOverrides.js.map +0 -1
  94. package/dist/ConfusionMatrix/index.d.ts +0 -2
  95. package/dist/ConfusionMatrix/index.js +0 -14
  96. package/dist/ConfusionMatrix/index.js.map +0 -1
  97. package/dist/ConfusionMatrix/styles.js +0 -10
  98. package/dist/ConfusionMatrix/styles.js.map +0 -1
  99. package/dist/Donutchart/Donutchart.d.ts +0 -10
  100. package/dist/Donutchart/Donutchart.js +0 -103
  101. package/dist/Donutchart/Donutchart.js.map +0 -1
  102. package/dist/Donutchart/donutchartPlotlyOverrides.js +0 -44
  103. package/dist/Donutchart/donutchartPlotlyOverrides.js.map +0 -1
  104. package/dist/Donutchart/index.d.ts +0 -2
  105. package/dist/Donutchart/index.js +0 -14
  106. package/dist/Donutchart/index.js.map +0 -1
  107. package/dist/Donutchart/styles.js +0 -10
  108. package/dist/Donutchart/styles.js.map +0 -1
  109. package/dist/Linechart/Linechart.d.ts +0 -14
  110. package/dist/Linechart/Linechart.js +0 -108
  111. package/dist/Linechart/Linechart.js.map +0 -1
  112. package/dist/Linechart/index.d.ts +0 -2
  113. package/dist/Linechart/index.js +0 -14
  114. package/dist/Linechart/index.js.map +0 -1
  115. package/dist/Linechart/lineChartPlotlyOverrides.js +0 -63
  116. package/dist/Linechart/lineChartPlotlyOverrides.js.map +0 -1
  117. package/dist/Linechart/styles.js +0 -10
  118. package/dist/Linechart/styles.js.map +0 -1
  119. package/dist/index.d.ts +0 -11
  120. package/dist/index.js +0 -35
  121. package/dist/index.js.map +0 -1
  122. package/dist/legacy/Barchart/Barchart.d.ts +0 -14
  123. package/dist/legacy/Barchart/Barchart.js +0 -199
  124. package/dist/legacy/Barchart/Barchart.js.map +0 -1
  125. package/dist/legacy/Barchart/barchartPlotlyOverrides.js +0 -38
  126. package/dist/legacy/Barchart/barchartPlotlyOverrides.js.map +0 -1
  127. package/dist/legacy/Barchart/index.d.ts +0 -2
  128. package/dist/legacy/Barchart/index.js +0 -2
  129. package/dist/legacy/Barchart/index.js.map +0 -1
  130. package/dist/legacy/Barchart/styles.js +0 -3
  131. package/dist/legacy/Barchart/styles.js.map +0 -1
  132. package/dist/legacy/Chart/Chart.d.ts +0 -44
  133. package/dist/legacy/Chart/Chart.js +0 -181
  134. package/dist/legacy/Chart/Chart.js.map +0 -1
  135. package/dist/legacy/Chart/Plot/Plot.d.ts +0 -43
  136. package/dist/legacy/Chart/Plot/Plot.js +0 -95
  137. package/dist/legacy/Chart/Plot/Plot.js.map +0 -1
  138. package/dist/legacy/Chart/Plot/index.d.ts +0 -2
  139. package/dist/legacy/Chart/Plot/index.js +0 -2
  140. package/dist/legacy/Chart/Plot/index.js.map +0 -1
  141. package/dist/legacy/Chart/Plot/styles.js +0 -3
  142. package/dist/legacy/Chart/Plot/styles.js.map +0 -1
  143. package/dist/legacy/Chart/Tooltip/MultiTooltip/MultiTooltip.js +0 -130
  144. package/dist/legacy/Chart/Tooltip/MultiTooltip/MultiTooltip.js.map +0 -1
  145. package/dist/legacy/Chart/Tooltip/MultiTooltip/index.js +0 -2
  146. package/dist/legacy/Chart/Tooltip/MultiTooltip/index.js.map +0 -1
  147. package/dist/legacy/Chart/Tooltip/MultiTooltip/styles.js +0 -42
  148. package/dist/legacy/Chart/Tooltip/MultiTooltip/styles.js.map +0 -1
  149. package/dist/legacy/Chart/Tooltip/SingleTooltip/SingleTooltip.js +0 -57
  150. package/dist/legacy/Chart/Tooltip/SingleTooltip/SingleTooltip.js.map +0 -1
  151. package/dist/legacy/Chart/Tooltip/SingleTooltip/index.js +0 -2
  152. package/dist/legacy/Chart/Tooltip/SingleTooltip/index.js.map +0 -1
  153. package/dist/legacy/Chart/Tooltip/SingleTooltip/styles.js +0 -17
  154. package/dist/legacy/Chart/Tooltip/SingleTooltip/styles.js.map +0 -1
  155. package/dist/legacy/Chart/Tooltip/Tooltip.js +0 -129
  156. package/dist/legacy/Chart/Tooltip/Tooltip.js.map +0 -1
  157. package/dist/legacy/Chart/Tooltip/index.js +0 -2
  158. package/dist/legacy/Chart/Tooltip/index.js.map +0 -1
  159. package/dist/legacy/Chart/Tooltip/styles.js +0 -9
  160. package/dist/legacy/Chart/Tooltip/styles.js.map +0 -1
  161. package/dist/legacy/Chart/chartPlotlyOverrides.js +0 -136
  162. package/dist/legacy/Chart/chartPlotlyOverrides.js.map +0 -1
  163. package/dist/legacy/Chart/index.d.ts +0 -5
  164. package/dist/legacy/Chart/index.js +0 -2
  165. package/dist/legacy/Chart/index.js.map +0 -1
  166. package/dist/legacy/Chart/styles.js +0 -28
  167. package/dist/legacy/Chart/styles.js.map +0 -1
  168. package/dist/legacy/ConfusionMatrix/ConfusionMatrix.d.ts +0 -10
  169. package/dist/legacy/ConfusionMatrix/ConfusionMatrix.js +0 -87
  170. package/dist/legacy/ConfusionMatrix/ConfusionMatrix.js.map +0 -1
  171. package/dist/legacy/ConfusionMatrix/CustomTooltip/CustomTooltip.js +0 -39
  172. package/dist/legacy/ConfusionMatrix/CustomTooltip/CustomTooltip.js.map +0 -1
  173. package/dist/legacy/ConfusionMatrix/CustomTooltip/index.js +0 -2
  174. package/dist/legacy/ConfusionMatrix/CustomTooltip/index.js.map +0 -1
  175. package/dist/legacy/ConfusionMatrix/CustomTooltip/styles.js +0 -19
  176. package/dist/legacy/ConfusionMatrix/CustomTooltip/styles.js.map +0 -1
  177. package/dist/legacy/ConfusionMatrix/confusionMatrixPlotlyOverrides.js +0 -181
  178. package/dist/legacy/ConfusionMatrix/confusionMatrixPlotlyOverrides.js.map +0 -1
  179. package/dist/legacy/ConfusionMatrix/index.d.ts +0 -2
  180. package/dist/legacy/ConfusionMatrix/index.js +0 -2
  181. package/dist/legacy/ConfusionMatrix/index.js.map +0 -1
  182. package/dist/legacy/ConfusionMatrix/styles.js +0 -3
  183. package/dist/legacy/ConfusionMatrix/styles.js.map +0 -1
  184. package/dist/legacy/Donutchart/Donutchart.d.ts +0 -10
  185. package/dist/legacy/Donutchart/Donutchart.js +0 -89
  186. package/dist/legacy/Donutchart/Donutchart.js.map +0 -1
  187. package/dist/legacy/Donutchart/donutchartPlotlyOverrides.js +0 -35
  188. package/dist/legacy/Donutchart/donutchartPlotlyOverrides.js.map +0 -1
  189. package/dist/legacy/Donutchart/index.d.ts +0 -2
  190. package/dist/legacy/Donutchart/index.js +0 -2
  191. package/dist/legacy/Donutchart/index.js.map +0 -1
  192. package/dist/legacy/Donutchart/styles.js +0 -3
  193. package/dist/legacy/Donutchart/styles.js.map +0 -1
  194. package/dist/legacy/Linechart/Linechart.d.ts +0 -14
  195. package/dist/legacy/Linechart/Linechart.js +0 -94
  196. package/dist/legacy/Linechart/Linechart.js.map +0 -1
  197. package/dist/legacy/Linechart/index.d.ts +0 -2
  198. package/dist/legacy/Linechart/index.js +0 -2
  199. package/dist/legacy/Linechart/index.js.map +0 -1
  200. package/dist/legacy/Linechart/lineChartPlotlyOverrides.js +0 -54
  201. package/dist/legacy/Linechart/lineChartPlotlyOverrides.js.map +0 -1
  202. package/dist/legacy/Linechart/styles.js +0 -3
  203. package/dist/legacy/Linechart/styles.js.map +0 -1
  204. package/dist/legacy/index.d.ts +0 -11
  205. package/dist/legacy/index.js +0 -6
  206. package/dist/legacy/index.js.map +0 -1
  207. package/dist/modern/Barchart/Barchart.d.ts +0 -14
  208. package/dist/modern/Barchart/Barchart.js +0 -185
  209. package/dist/modern/Barchart/Barchart.js.map +0 -1
  210. package/dist/modern/Barchart/barchartPlotlyOverrides.js +0 -36
  211. package/dist/modern/Barchart/barchartPlotlyOverrides.js.map +0 -1
  212. package/dist/modern/Barchart/index.d.ts +0 -2
  213. package/dist/modern/Barchart/index.js +0 -2
  214. package/dist/modern/Barchart/index.js.map +0 -1
  215. package/dist/modern/Barchart/styles.js +0 -3
  216. package/dist/modern/Barchart/styles.js.map +0 -1
  217. package/dist/modern/Chart/Chart.d.ts +0 -44
  218. package/dist/modern/Chart/Chart.js +0 -162
  219. package/dist/modern/Chart/Chart.js.map +0 -1
  220. package/dist/modern/Chart/Plot/Plot.d.ts +0 -43
  221. package/dist/modern/Chart/Plot/Plot.js +0 -89
  222. package/dist/modern/Chart/Plot/Plot.js.map +0 -1
  223. package/dist/modern/Chart/Plot/index.d.ts +0 -2
  224. package/dist/modern/Chart/Plot/index.js +0 -2
  225. package/dist/modern/Chart/Plot/index.js.map +0 -1
  226. package/dist/modern/Chart/Plot/styles.js +0 -3
  227. package/dist/modern/Chart/Plot/styles.js.map +0 -1
  228. package/dist/modern/Chart/Tooltip/MultiTooltip/MultiTooltip.js +0 -122
  229. package/dist/modern/Chart/Tooltip/MultiTooltip/MultiTooltip.js.map +0 -1
  230. package/dist/modern/Chart/Tooltip/MultiTooltip/index.js +0 -2
  231. package/dist/modern/Chart/Tooltip/MultiTooltip/index.js.map +0 -1
  232. package/dist/modern/Chart/Tooltip/MultiTooltip/styles.js +0 -40
  233. package/dist/modern/Chart/Tooltip/MultiTooltip/styles.js.map +0 -1
  234. package/dist/modern/Chart/Tooltip/SingleTooltip/SingleTooltip.js +0 -54
  235. package/dist/modern/Chart/Tooltip/SingleTooltip/SingleTooltip.js.map +0 -1
  236. package/dist/modern/Chart/Tooltip/SingleTooltip/index.js +0 -2
  237. package/dist/modern/Chart/Tooltip/SingleTooltip/index.js.map +0 -1
  238. package/dist/modern/Chart/Tooltip/SingleTooltip/styles.js +0 -15
  239. package/dist/modern/Chart/Tooltip/SingleTooltip/styles.js.map +0 -1
  240. package/dist/modern/Chart/Tooltip/Tooltip.js +0 -129
  241. package/dist/modern/Chart/Tooltip/Tooltip.js.map +0 -1
  242. package/dist/modern/Chart/Tooltip/index.js +0 -2
  243. package/dist/modern/Chart/Tooltip/index.js.map +0 -1
  244. package/dist/modern/Chart/Tooltip/styles.js +0 -9
  245. package/dist/modern/Chart/Tooltip/styles.js.map +0 -1
  246. package/dist/modern/Chart/chartPlotlyOverrides.js +0 -126
  247. package/dist/modern/Chart/chartPlotlyOverrides.js.map +0 -1
  248. package/dist/modern/Chart/index.d.ts +0 -5
  249. package/dist/modern/Chart/index.js +0 -2
  250. package/dist/modern/Chart/index.js.map +0 -1
  251. package/dist/modern/Chart/styles.js +0 -19
  252. package/dist/modern/Chart/styles.js.map +0 -1
  253. package/dist/modern/ConfusionMatrix/ConfusionMatrix.d.ts +0 -10
  254. package/dist/modern/ConfusionMatrix/ConfusionMatrix.js +0 -76
  255. package/dist/modern/ConfusionMatrix/ConfusionMatrix.js.map +0 -1
  256. package/dist/modern/ConfusionMatrix/CustomTooltip/CustomTooltip.js +0 -37
  257. package/dist/modern/ConfusionMatrix/CustomTooltip/CustomTooltip.js.map +0 -1
  258. package/dist/modern/ConfusionMatrix/CustomTooltip/index.js +0 -2
  259. package/dist/modern/ConfusionMatrix/CustomTooltip/index.js.map +0 -1
  260. package/dist/modern/ConfusionMatrix/CustomTooltip/styles.js +0 -17
  261. package/dist/modern/ConfusionMatrix/CustomTooltip/styles.js.map +0 -1
  262. package/dist/modern/ConfusionMatrix/confusionMatrixPlotlyOverrides.js +0 -154
  263. package/dist/modern/ConfusionMatrix/confusionMatrixPlotlyOverrides.js.map +0 -1
  264. package/dist/modern/ConfusionMatrix/index.d.ts +0 -2
  265. package/dist/modern/ConfusionMatrix/index.js +0 -2
  266. package/dist/modern/ConfusionMatrix/index.js.map +0 -1
  267. package/dist/modern/ConfusionMatrix/styles.js +0 -3
  268. package/dist/modern/ConfusionMatrix/styles.js.map +0 -1
  269. package/dist/modern/Donutchart/Donutchart.d.ts +0 -10
  270. package/dist/modern/Donutchart/Donutchart.js +0 -78
  271. package/dist/modern/Donutchart/Donutchart.js.map +0 -1
  272. package/dist/modern/Donutchart/donutchartPlotlyOverrides.js +0 -33
  273. package/dist/modern/Donutchart/donutchartPlotlyOverrides.js.map +0 -1
  274. package/dist/modern/Donutchart/index.d.ts +0 -2
  275. package/dist/modern/Donutchart/index.js +0 -2
  276. package/dist/modern/Donutchart/index.js.map +0 -1
  277. package/dist/modern/Donutchart/styles.js +0 -3
  278. package/dist/modern/Donutchart/styles.js.map +0 -1
  279. package/dist/modern/Linechart/Linechart.d.ts +0 -14
  280. package/dist/modern/Linechart/Linechart.js +0 -82
  281. package/dist/modern/Linechart/Linechart.js.map +0 -1
  282. package/dist/modern/Linechart/index.d.ts +0 -2
  283. package/dist/modern/Linechart/index.js +0 -2
  284. package/dist/modern/Linechart/index.js.map +0 -1
  285. package/dist/modern/Linechart/lineChartPlotlyOverrides.js +0 -50
  286. package/dist/modern/Linechart/lineChartPlotlyOverrides.js.map +0 -1
  287. package/dist/modern/Linechart/styles.js +0 -3
  288. package/dist/modern/Linechart/styles.js.map +0 -1
  289. package/dist/modern/index.d.ts +0 -11
  290. package/dist/modern/index.js +0 -6
  291. package/dist/modern/index.js.map +0 -1
@@ -1,43 +0,0 @@
1
- import * as React from "react";
2
- import { StandardProps } from "@mui/material";
3
- import type { Config, Layout, Data as PlotlyPlotData } from "plotly.js";
4
-
5
- export type PlotData = PlotlyPlotData;
6
- export type PlotLayout = Layout;
7
- export type PlotConfig = Config;
8
-
9
- export type HvPlotClassKey = "";
10
-
11
- export interface HvPlotProps
12
- extends StandardProps<React.HTMLAttributes<HTMLDivElement>, HvPlotClassKey> {
13
- /**
14
- * Plotly data object.
15
- */
16
- data: PlotData[];
17
- /**
18
- * Plotly layout object.
19
- */
20
- layout?: Partial<PlotLayout>;
21
- /**
22
- * Plotly config object.
23
- */
24
- config?: Partial<PlotConfig>;
25
- /**
26
- * OnHover function.
27
- */
28
- onHover?: (data: PlotData) => void;
29
- /**
30
- * OnUnHover function.
31
- */
32
- onUnHover?: (data: PlotData) => void;
33
- /**
34
- * Function to be call after plot render.
35
- */
36
- afterPlot?: (data: PlotData, ref: any) => void;
37
- /**
38
- * Plot revision
39
- */
40
- revision?: number;
41
- }
42
-
43
- export default function HvPlot(props: HvPlotProps): JSX.Element | null;
@@ -1,89 +0,0 @@
1
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- const _excluded = ["data", "layout", "config", "revision", "onHover", "onUnHover", "afterPlot"];
4
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
- import React, { useLayoutEffect, useRef, useCallback } from "react";
7
- import PropTypes from "prop-types";
8
- import Plotly from "plotly.js-dist-min";
9
- import createPlotlyComponent from "react-plotly.js/factory";
10
- import { withStyles } from "@mui/styles";
11
- import styles from "./styles";
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- const PlotGraph = createPlotlyComponent(Plotly);
14
- const plotGraphStyle = {
15
- position: "relative"
16
- };
17
- const Plot = _ref => {
18
- let {
19
- data,
20
- layout,
21
- config,
22
- revision = 0,
23
- onHover,
24
- onUnHover,
25
- afterPlot
26
- } = _ref,
27
- others = _objectWithoutProperties(_ref, _excluded);
28
- const ref = useRef(null);
29
-
30
- /* Callbacks */
31
-
32
- const afterPlotInternal = useCallback(() => {
33
- afterPlot === null || afterPlot === void 0 ? void 0 : afterPlot(ref);
34
- }, [afterPlot]);
35
-
36
- /* Effects */
37
-
38
- /**
39
- * Call in the first render because react-plotly.js won't do so.
40
- * (https://github.com/plotly/react-plotly.js/blob/bd15ca98be12b159633fb57c4ea762cb7a64c3a7/src/factory.js#L88)
41
- */
42
- // eslint-disable-next-line react-hooks/exhaustive-deps
43
- useLayoutEffect(afterPlotInternal, []);
44
- return /*#__PURE__*/_jsx(PlotGraph, _objectSpread({
45
- ref: ref,
46
- data: data,
47
- layout: layout,
48
- config: config,
49
- revision: revision,
50
- onHover: onHover,
51
- onUnhover: onUnHover,
52
- onAfterPlot: afterPlot != null ? afterPlotInternal : null,
53
- style: plotGraphStyle
54
- }, others));
55
- };
56
- process.env.NODE_ENV !== "production" ? Plot.propTypes = {
57
- /**
58
- * Plotly data object.
59
- */
60
- data: PropTypes.arrayOf(PropTypes.instanceOf(Object)).isRequired,
61
- /**
62
- * Plotly layout object.
63
- */
64
- layout: PropTypes.instanceOf(Object).isRequired,
65
- /**
66
- * Plotly config object.
67
- */
68
- config: PropTypes.instanceOf(Object).isRequired,
69
- /**
70
- * OnHover function.
71
- */
72
- onHover: PropTypes.func,
73
- /**
74
- * OnUnHover function.
75
- */
76
- onUnHover: PropTypes.func,
77
- /**
78
- * Function to be call after plot render.
79
- */
80
- afterPlot: PropTypes.func,
81
- /**
82
- * Plot revision.
83
- */
84
- revision: PropTypes.number
85
- } : void 0;
86
- export default withStyles(styles, {
87
- name: "HvChartPlot"
88
- })(Plot);
89
- //# sourceMappingURL=Plot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Plot.js","names":["React","useLayoutEffect","useRef","useCallback","PropTypes","Plotly","createPlotlyComponent","withStyles","styles","PlotGraph","plotGraphStyle","position","Plot","data","layout","config","revision","onHover","onUnHover","afterPlot","others","ref","afterPlotInternal","propTypes","arrayOf","instanceOf","Object","isRequired","func","number","name"],"sources":["../../../../src/Chart/Plot/Plot.js"],"sourcesContent":["import React, { useLayoutEffect, useRef, useCallback } from \"react\";\nimport PropTypes from \"prop-types\";\nimport Plotly from \"plotly.js-dist-min\";\nimport createPlotlyComponent from \"react-plotly.js/factory\";\nimport { withStyles } from \"@mui/styles\";\nimport styles from \"./styles\";\n\nconst PlotGraph = createPlotlyComponent(Plotly);\n\nconst plotGraphStyle = { position: \"relative\" };\n\nconst Plot = ({ data, layout, config, revision = 0, onHover, onUnHover, afterPlot, ...others }) => {\n const ref = useRef(null);\n\n /* Callbacks */\n\n const afterPlotInternal = useCallback(() => {\n afterPlot?.(ref);\n }, [afterPlot]);\n\n /* Effects */\n\n /**\n * Call in the first render because react-plotly.js won't do so.\n * (https://github.com/plotly/react-plotly.js/blob/bd15ca98be12b159633fb57c4ea762cb7a64c3a7/src/factory.js#L88)\n */\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useLayoutEffect(afterPlotInternal, []);\n\n return (\n <PlotGraph\n ref={ref}\n data={data}\n layout={layout}\n config={config}\n revision={revision}\n onHover={onHover}\n onUnhover={onUnHover}\n onAfterPlot={afterPlot != null ? afterPlotInternal : null}\n style={plotGraphStyle}\n {...others}\n />\n );\n};\n\nPlot.propTypes = {\n /**\n * Plotly data object.\n */\n data: PropTypes.arrayOf(PropTypes.instanceOf(Object)).isRequired,\n /**\n * Plotly layout object.\n */\n layout: PropTypes.instanceOf(Object).isRequired,\n /**\n * Plotly config object.\n */\n config: PropTypes.instanceOf(Object).isRequired,\n /**\n * OnHover function.\n */\n onHover: PropTypes.func,\n /**\n * OnUnHover function.\n */\n onUnHover: PropTypes.func,\n /**\n * Function to be call after plot render.\n */\n afterPlot: PropTypes.func,\n /**\n * Plot revision.\n */\n revision: PropTypes.number,\n};\n\nexport default withStyles(styles, { name: \"HvChartPlot\" })(Plot);\n"],"mappings":";;;;;AAAA,OAAOA,KAAK,IAAIC,eAAe,EAAEC,MAAM,EAAEC,WAAW,QAAQ,OAAO;AACnE,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,MAAM,MAAM,oBAAoB;AACvC,OAAOC,qBAAqB,MAAM,yBAAyB;AAC3D,SAASC,UAAU,QAAQ,aAAa;AACxC,OAAOC,MAAM,MAAM,UAAU;AAAC;AAE9B,MAAMC,SAAS,GAAGH,qBAAqB,CAACD,MAAM,CAAC;AAE/C,MAAMK,cAAc,GAAG;EAAEC,QAAQ,EAAE;AAAW,CAAC;AAE/C,MAAMC,IAAI,GAAG,QAAsF;EAAA,IAArF;MAAEC,IAAI;MAAEC,MAAM;MAAEC,MAAM;MAAEC,QAAQ,GAAG,CAAC;MAAEC,OAAO;MAAEC,SAAS;MAAEC;IAAqB,CAAC;IAARC,MAAM;EAC1F,MAAMC,GAAG,GAAGnB,MAAM,CAAC,IAAI,CAAC;;EAExB;;EAEA,MAAMoB,iBAAiB,GAAGnB,WAAW,CAAC,MAAM;IAC1CgB,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAGE,GAAG,CAAC;EAClB,CAAC,EAAE,CAACF,SAAS,CAAC,CAAC;;EAEf;;EAEA;AACF;AACA;AACA;EACE;EACAlB,eAAe,CAACqB,iBAAiB,EAAE,EAAE,CAAC;EAEtC,oBACE,KAAC,SAAS;IACR,GAAG,EAAED,GAAI;IACT,IAAI,EAAER,IAAK;IACX,MAAM,EAAEC,MAAO;IACf,MAAM,EAAEC,MAAO;IACf,QAAQ,EAAEC,QAAS;IACnB,OAAO,EAAEC,OAAQ;IACjB,SAAS,EAAEC,SAAU;IACrB,WAAW,EAAEC,SAAS,IAAI,IAAI,GAAGG,iBAAiB,GAAG,IAAK;IAC1D,KAAK,EAAEZ;EAAe,GAClBU,MAAM,EACV;AAEN,CAAC;AAED,wCAAAR,IAAI,CAACW,SAAS,GAAG;EACf;AACF;AACA;EACEV,IAAI,EAAET,SAAS,CAACoB,OAAO,CAACpB,SAAS,CAACqB,UAAU,CAACC,MAAM,CAAC,CAAC,CAACC,UAAU;EAChE;AACF;AACA;EACEb,MAAM,EAAEV,SAAS,CAACqB,UAAU,CAACC,MAAM,CAAC,CAACC,UAAU;EAC/C;AACF;AACA;EACEZ,MAAM,EAAEX,SAAS,CAACqB,UAAU,CAACC,MAAM,CAAC,CAACC,UAAU;EAC/C;AACF;AACA;EACEV,OAAO,EAAEb,SAAS,CAACwB,IAAI;EACvB;AACF;AACA;EACEV,SAAS,EAAEd,SAAS,CAACwB,IAAI;EACzB;AACF;AACA;EACET,SAAS,EAAEf,SAAS,CAACwB,IAAI;EACzB;AACF;AACA;EACEZ,QAAQ,EAAEZ,SAAS,CAACyB;AACtB,CAAC;AAED,eAAetB,UAAU,CAACC,MAAM,EAAE;EAAEsB,IAAI,EAAE;AAAc,CAAC,CAAC,CAAClB,IAAI,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default } from "./Plot";
2
- export * from "./Plot";
@@ -1,2 +0,0 @@
1
- export { default } from "./Plot";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/Chart/Plot/index.js"],"sourcesContent":["export { default } from \"./Plot\";\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,QAAQ"}
@@ -1,3 +0,0 @@
1
- const styles = {};
2
- export default styles;
3
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","names":["styles"],"sources":["../../../../src/Chart/Plot/styles.js"],"sourcesContent":["const styles = {};\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAG,CAAC,CAAC;AAEjB,eAAeA,MAAM"}
@@ -1,122 +0,0 @@
1
- import React, { memo } from "react";
2
- import PropTypes from "prop-types";
3
- import { withStyles } from "@mui/styles";
4
- import { HvTypography } from "@hitachivantara/uikit-react-core";
5
- import styles from "./styles";
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
- const MultiTooltip = ({
9
- classes,
10
- data
11
- }) => {
12
- var _data$elements;
13
- return /*#__PURE__*/_jsxs("div", {
14
- className: classes.root,
15
- children: [/*#__PURE__*/_jsx("div", {
16
- className: classes.title,
17
- children: /*#__PURE__*/_jsx("div", {
18
- children: /*#__PURE__*/_jsx(HvTypography, {
19
- variant: "highlightText",
20
- children: data.title
21
- })
22
- })
23
- }), /*#__PURE__*/_jsx("div", {
24
- className: classes.valuesContainer,
25
- children: data === null || data === void 0 ? void 0 : (_data$elements = data.elements) === null || _data$elements === void 0 ? void 0 : _data$elements.map(element => /*#__PURE__*/_jsxs("div", {
26
- className: classes.values,
27
- children: [/*#__PURE__*/_jsxs("div", {
28
- className: classes.valueNameWrapper,
29
- children: [/*#__PURE__*/_jsx("div", {
30
- className: classes.color,
31
- style: {
32
- backgroundColor: element.color
33
- }
34
- }), /*#__PURE__*/_jsx("div", {
35
- className: classes.separatorColor
36
- }), /*#__PURE__*/_jsx("div", {
37
- children: /*#__PURE__*/_jsx(HvTypography, {
38
- variant: "highlightText",
39
- children: element.name
40
- })
41
- }), /*#__PURE__*/_jsx("div", {
42
- className: classes.separator
43
- })]
44
- }), /*#__PURE__*/_jsx("div", {
45
- children: /*#__PURE__*/_jsx(HvTypography, {
46
- children: element.value
47
- })
48
- })]
49
- }, element.name))
50
- })]
51
- });
52
- };
53
- process.env.NODE_ENV !== "production" ? MultiTooltip.propTypes = {
54
- /**
55
- * A Jss Object used to override or extend the styles applied.
56
- */
57
- classes: PropTypes.shape({
58
- /**
59
- * Styles applied to the root.
60
- */
61
- root: PropTypes.string,
62
- /**
63
- * Styles applied to the title.
64
- */
65
- title: PropTypes.string,
66
- /**
67
- * Styles applied to the values container.
68
- */
69
- valuesContainer: PropTypes.string,
70
- /**
71
- * Styling applied to the elements describing a data.
72
- */
73
- valueNameWrapper: PropTypes.string,
74
- /**
75
- * Styles applied to the values.
76
- */
77
- values: PropTypes.string,
78
- /**
79
- * Styles applied to the color.
80
- */
81
- color: PropTypes.string,
82
- /**
83
- * Styles applied to the separator between color and title.
84
- */
85
- separatorColor: PropTypes.string,
86
- /**
87
- * Styles applied to the separator.
88
- */
89
- separator: PropTypes.string
90
- }).isRequired,
91
- /**
92
- * Data of the tooltip.
93
- */
94
- data: PropTypes.shape({
95
- /**
96
- * Styles applied to the barchart root class.
97
- */
98
- title: PropTypes.string,
99
- /**
100
- * Values of tooltip
101
- */
102
- elements: PropTypes.arrayOf(PropTypes.shape({
103
- /**
104
- * Color (in hex).
105
- */
106
- color: PropTypes.string,
107
- /**
108
- * Name.
109
- */
110
- name: PropTypes.string,
111
- /**
112
- * Value.
113
- */
114
- value: PropTypes.number
115
- }))
116
- }).isRequired
117
- } : void 0;
118
- const arePropsEqual = (prevProps, nextProps) => prevProps.data === nextProps.data;
119
- export default withStyles(styles, {
120
- name: "HvChartMultiTooltip"
121
- })( /*#__PURE__*/memo(MultiTooltip, arePropsEqual));
122
- //# sourceMappingURL=MultiTooltip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MultiTooltip.js","names":["React","memo","PropTypes","withStyles","HvTypography","styles","MultiTooltip","classes","data","root","title","valuesContainer","elements","map","element","values","valueNameWrapper","color","backgroundColor","separatorColor","name","separator","value","propTypes","shape","string","isRequired","arrayOf","number","arePropsEqual","prevProps","nextProps"],"sources":["../../../../../src/Chart/Tooltip/MultiTooltip/MultiTooltip.js"],"sourcesContent":["import React, { memo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport { HvTypography } from \"@hitachivantara/uikit-react-core\";\nimport styles from \"./styles\";\n\nconst MultiTooltip = ({ classes, data }) => (\n <div className={classes.root}>\n <div className={classes.title}>\n <div>\n <HvTypography variant=\"highlightText\">{data.title}</HvTypography>\n </div>\n </div>\n <div className={classes.valuesContainer}>\n {data?.elements?.map((element) => (\n <div key={element.name} className={classes.values}>\n <div className={classes.valueNameWrapper}>\n <div className={classes.color} style={{ backgroundColor: element.color }} />\n <div className={classes.separatorColor} />\n <div>\n <HvTypography variant=\"highlightText\">{element.name}</HvTypography>\n </div>\n <div className={classes.separator} />\n </div>\n <div>\n <HvTypography>{element.value}</HvTypography>\n </div>\n </div>\n ))}\n </div>\n </div>\n);\n\nMultiTooltip.propTypes = {\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the root.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the title.\n */\n title: PropTypes.string,\n /**\n * Styles applied to the values container.\n */\n valuesContainer: PropTypes.string,\n /**\n * Styling applied to the elements describing a data.\n */\n valueNameWrapper: PropTypes.string,\n /**\n * Styles applied to the values.\n */\n values: PropTypes.string,\n /**\n * Styles applied to the color.\n */\n color: PropTypes.string,\n /**\n * Styles applied to the separator between color and title.\n */\n separatorColor: PropTypes.string,\n /**\n * Styles applied to the separator.\n */\n separator: PropTypes.string,\n }).isRequired,\n /**\n * Data of the tooltip.\n */\n data: PropTypes.shape({\n /**\n * Styles applied to the barchart root class.\n */\n title: PropTypes.string,\n /**\n * Values of tooltip\n */\n elements: PropTypes.arrayOf(\n PropTypes.shape({\n /**\n * Color (in hex).\n */\n color: PropTypes.string,\n /**\n * Name.\n */\n name: PropTypes.string,\n /**\n * Value.\n */\n value: PropTypes.number,\n })\n ),\n }).isRequired,\n};\n\nconst arePropsEqual = (prevProps, nextProps) => prevProps.data === nextProps.data;\n\nexport default withStyles(styles, { name: \"HvChartMultiTooltip\" })(\n memo(MultiTooltip, arePropsEqual)\n);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,UAAU,QAAQ,aAAa;AACxC,SAASC,YAAY,QAAQ,kCAAkC;AAC/D,OAAOC,MAAM,MAAM,UAAU;AAAC;AAAA;AAE9B,MAAMC,YAAY,GAAG,CAAC;EAAEC,OAAO;EAAEC;AAAK,CAAC;EAAA;EAAA,oBACrC;IAAK,SAAS,EAAED,OAAO,CAACE,IAAK;IAAA,wBAC3B;MAAK,SAAS,EAAEF,OAAO,CAACG,KAAM;MAAA,uBAC5B;QAAA,uBACE,KAAC,YAAY;UAAC,OAAO,EAAC,eAAe;UAAA,UAAEF,IAAI,CAACE;QAAK;MAAgB;IAC7D,EACF,eACN;MAAK,SAAS,EAAEH,OAAO,CAACI,eAAgB;MAAA,UACrCH,IAAI,aAAJA,IAAI,yCAAJA,IAAI,CAAEI,QAAQ,mDAAd,eAAgBC,GAAG,CAAEC,OAAO,iBAC3B;QAAwB,SAAS,EAAEP,OAAO,CAACQ,MAAO;QAAA,wBAChD;UAAK,SAAS,EAAER,OAAO,CAACS,gBAAiB;UAAA,wBACvC;YAAK,SAAS,EAAET,OAAO,CAACU,KAAM;YAAC,KAAK,EAAE;cAAEC,eAAe,EAAEJ,OAAO,CAACG;YAAM;UAAE,EAAG,eAC5E;YAAK,SAAS,EAAEV,OAAO,CA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B,SAAS,CAAC0B;IACnB,CAAC,CAAC;EAEN,CAAC,CAAC,CAACF;AACL,CAAC;AAED,MAAMG,aAAa,GAAG,CAACC,SAAS,EAAEC,SAAS,KAAKD,SAAS,CAACtB,IAAI,KAAKuB,SAAS,CAACvB,IAAI;AAEjF,eAAeL,UAAU,CAACE,MAAM,EAAE;EAAEe,IAAI,EAAE;AAAsB,CAAC,CAAC,eAChEnB,IAAI,CAACK,YAAY,EAAEuB,aAAa,CAAC,CAClC"}
@@ -1,2 +0,0 @@
1
- export { default } from "./MultiTooltip";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["default"],"sources":["../../../../../src/Chart/Tooltip/MultiTooltip/index.js"],"sourcesContent":["export { default } from \"./MultiTooltip\";\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,gBAAgB"}
@@ -1,40 +0,0 @@
1
- const styles = theme => ({
2
- root: {
3
- backgroundColor: theme.hv.palette.atmosphere.atmo1,
4
- width: "fit-content",
5
- boxShadow: theme.hv.shadows[1],
6
- zIndex: 100
7
- },
8
- title: {
9
- padding: theme.hvSpacing("15px", "sm"),
10
- borderBottom: `3px solid ${theme.hv.palette.atmosphere.atmo2}`
11
- },
12
- valuesContainer: {
13
- padding: theme.hv.spacing.sm
14
- },
15
- values: {
16
- display: "flex",
17
- justifyContent: "space-between",
18
- alignItems: "center",
19
- paddingBottom: theme.hv.spacing.sm,
20
- "&:last-child": {
21
- paddingBottom: 0
22
- }
23
- },
24
- valueNameWrapper: {
25
- display: "flex",
26
- alignItems: "center"
27
- },
28
- color: {
29
- width: theme.hv.spacing.xs,
30
- height: theme.hv.spacing.xs
31
- },
32
- separator: {
33
- width: theme.hv.spacing.xs
34
- },
35
- separatorColor: {
36
- width: "5px"
37
- }
38
- });
39
- export default styles;
40
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","names":["styles","theme","root","backgroundColor","hv","palette","atmosphere","atmo1","width","boxShadow","shadows","zIndex","title","padding","hvSpacing","borderBottom","atmo2","valuesContainer","spacing","sm","values","display","justifyContent","alignItems","paddingBottom","valueNameWrapper","color","xs","height","separator","separatorColor"],"sources":["../../../../../src/Chart/Tooltip/MultiTooltip/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n width: \"fit-content\",\n boxShadow: theme.hv.shadows[1],\n zIndex: 100,\n },\n title: {\n padding: theme.hvSpacing(\"15px\", \"sm\"),\n borderBottom: `3px solid ${theme.hv.palette.atmosphere.atmo2}`,\n },\n valuesContainer: {\n padding: theme.hv.spacing.sm,\n },\n values: {\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n paddingBottom: theme.hv.spacing.sm,\n \"&:last-child\": {\n paddingBottom: 0,\n },\n },\n valueNameWrapper: {\n display: \"flex\",\n alignItems: \"center\",\n },\n color: {\n width: theme.hv.spacing.xs,\n height: theme.hv.spacing.xs,\n },\n separator: {\n width: theme.hv.spacing.xs,\n },\n separatorColor: {\n width: \"5px\",\n },\n});\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAIC,KAAK,KAAM;EACzBC,IAAI,EAAE;IACJC,eAAe,EAAEF,KAAK,CAACG,EAAE,CAACC,OAAO,CAACC,UAAU,CAACC,KAAK;IAClDC,KAAK,EAAE,aAAa;IACpBC,SAAS,EAAER,KAAK,CAACG,EAAE,CAACM,OAAO,CAAC,CAAC,CAAC;IAC9BC,MAAM,EAAE;EACV,CAAC;EACDC,KAAK,EAAE;IACLC,OAAO,EAAEZ,KAAK,CAACa,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC;IACtCC,YAAY,EAAG,aAAYd,KAAK,CAACG,EAAE,CAACC,OAAO,CAACC,UAAU,CAACU,KAAM;EAC/D,CAAC;EACDC,eAAe,EAAE;IACfJ,OAAO,EAAEZ,KAAK,CAACG,EAAE,CAACc,OAAO,CAACC;EAC5B,CAAC;EACDC,MAAM,EAAE;IACNC,OAAO,EAAE,MAAM;IACfC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE,QAAQ;IACpBC,aAAa,EAAEvB,KAAK,CAACG,EAAE,CAACc,OAAO,CAACC,EAAE;IAClC,cAAc,EAAE;MACdK,aAAa,EAAE;IACjB;EACF,CAAC;EACDC,gBAAgB,EAAE;IAChBJ,OAAO,EAAE,MAAM;IACfE,UAAU,EAAE;EACd,CAAC;EACDG,KAAK,EAAE;IACLlB,KAAK,EAAEP,KAAK,CAACG,EAAE,CAACc,OAAO,CAACS,EAAE;IAC1BC,MAAM,EAAE3B,KAAK,CAACG,EAAE,CAACc,OAAO,CAACS;EAC3B,CAAC;EACDE,SAAS,EAAE;IACTrB,KAAK,EAAEP,KAAK,CAACG,EAAE,CAACc,OAAO,CAACS;EAC1B,CAAC;EACDG,cAAc,EAAE;IACdtB,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,eAAeR,MAAM"}
@@ -1,54 +0,0 @@
1
- import React, { memo } from "react";
2
- import PropTypes from "prop-types";
3
- import { withStyles } from "@mui/styles";
4
- import { HvTypography } from "@hitachivantara/uikit-react-core";
5
- import styles from "./styles";
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
- const SingleTooltip = ({
9
- classes,
10
- title,
11
- value
12
- }) => /*#__PURE__*/_jsxs("div", {
13
- className: classes.root,
14
- children: [/*#__PURE__*/_jsx("div", {
15
- children: /*#__PURE__*/_jsx(HvTypography, {
16
- variant: "highlightText",
17
- children: title
18
- })
19
- }), /*#__PURE__*/_jsx("div", {
20
- className: classes.separator
21
- }), /*#__PURE__*/_jsx("div", {
22
- children: /*#__PURE__*/_jsx(HvTypography, {
23
- children: value
24
- })
25
- })]
26
- });
27
- process.env.NODE_ENV !== "production" ? SingleTooltip.propTypes = {
28
- /**
29
- * A Jss Object used to override or extend the styles applied.
30
- */
31
- classes: PropTypes.shape({
32
- /**
33
- * Styles applied to the root class.
34
- */
35
- root: PropTypes.string,
36
- /**
37
- * Styles applied to the separator between title and value.
38
- */
39
- separator: PropTypes.string
40
- }).isRequired,
41
- /**
42
- * Title of the chart.
43
- */
44
- title: PropTypes.string.isRequired,
45
- /**
46
- * Value of the chart.
47
- */
48
- value: PropTypes.number.isRequired
49
- } : void 0;
50
- const arePropsEqual = (prevProps, nextProps) => prevProps.title === nextProps.title && prevProps.value === nextProps.value;
51
- export default withStyles(styles, {
52
- name: "HvChartSingleTooltip"
53
- })( /*#__PURE__*/memo(SingleTooltip, arePropsEqual));
54
- //# sourceMappingURL=SingleTooltip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SingleTooltip.js","names":["React","memo","PropTypes","withStyles","HvTypography","styles","SingleTooltip","classes","title","value","root","separator","propTypes","shape","string","isRequired","number","arePropsEqual","prevProps","nextProps","name"],"sources":["../../../../../src/Chart/Tooltip/SingleTooltip/SingleTooltip.js"],"sourcesContent":["import React, { memo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport { HvTypography } from \"@hitachivantara/uikit-react-core\";\nimport styles from \"./styles\";\n\nconst SingleTooltip = ({ classes, title, value }) => (\n <div className={classes.root}>\n <div>\n <HvTypography variant=\"highlightText\">{title}</HvTypography>\n </div>\n <div className={classes.separator} />\n <div>\n <HvTypography>{value}</HvTypography>\n </div>\n </div>\n);\n\nSingleTooltip.propTypes = {\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the separator between title and value.\n */\n separator: PropTypes.string,\n }).isRequired,\n /**\n * Title of the chart.\n */\n title: PropTypes.string.isRequired,\n /**\n * Value of the chart.\n */\n value: PropTypes.number.isRequired,\n};\n\nconst arePropsEqual = (prevProps, nextProps) =>\n prevProps.title === nextProps.title && prevProps.value === nextProps.value;\n\nexport default withStyles(styles, { name: \"HvChartSingleTooltip\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1
- export { default } from "./SingleTooltip";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["default"],"sources":["../../../../../src/Chart/Tooltip/SingleTooltip/index.js"],"sourcesContent":["export { default } from \"./SingleTooltip\";\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,iBAAiB"}
@@ -1,15 +0,0 @@
1
- const styles = theme => ({
2
- root: {
3
- padding: theme.hv.spacing.sm,
4
- display: "flex",
5
- backgroundColor: theme.hv.palette.atmosphere.atmo1,
6
- boxShadow: theme.hv.shadows[1],
7
- width: "fit-content",
8
- zIndex: 100
9
- },
10
- separator: {
11
- width: theme.hv.spacing.xs
12
- }
13
- });
14
- export default styles;
15
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","names":["styles","theme","root","padding","hv","spacing","sm","display","backgroundColor","palette","atmosphere","atmo1","boxShadow","shadows","width","zIndex","separator","xs"],"sources":["../../../../../src/Chart/Tooltip/SingleTooltip/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n padding: theme.hv.spacing.sm,\n display: \"flex\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n boxShadow: theme.hv.shadows[1],\n width: \"fit-content\",\n zIndex: 100,\n },\n separator: {\n width: theme.hv.spacing.xs,\n },\n});\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAIC,KAAK,KAAM;EACzBC,IAAI,EAAE;IACJC,OAAO,EAAEF,KAAK,CAACG,EAAE,CAACC,OAAO,CAACC,EAAE;IAC5BC,OAAO,EAAE,MAAM;IACfC,eAAe,EAAEP,KAAK,CAACG,EAAE,CAACK,OAAO,CAACC,UAAU,CAACC,KAAK;IAClDC,SAAS,EAAEX,KAAK,CAACG,EAAE,CAACS,OAAO,CAAC,CAAC,CAAC;IAC9BC,KAAK,EAAE,aAAa;IACpBC,MAAM,EAAE;EACV,CAAC;EACDC,SAAS,EAAE;IACTF,KAAK,EAAEb,KAAK,CAACG,EAAE,CAACC,OAAO,CAACY;EAC1B;AACF,CAAC,CAAC;AAEF,eAAejB,MAAM"}
@@ -1,129 +0,0 @@
1
- import React, { useEffect, useRef, useState, useCallback } from "react";
2
- import PropTypes from "prop-types";
3
- import { withStyles } from "@mui/styles";
4
- import SingleTooltip from "./SingleTooltip";
5
- import MultipleTooltip from "./MultiTooltip";
6
- import styles from "./styles";
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- const offset = 20;
9
-
10
- /**
11
- * Component responsible for deciding which tooltip should be use and to calculate
12
- * the exact position where it should be render.
13
- */
14
- const MainToolTip = ({
15
- classes,
16
- coordinates,
17
- data,
18
- useSingle,
19
- tooltip
20
- }) => {
21
- var _MultipleTooltip;
22
- const {
23
- x,
24
- y
25
- } = coordinates;
26
- const [style, setStyle] = useState({
27
- left: x,
28
- top: y,
29
- visibility: "hidden"
30
- });
31
- const ref = useRef(null);
32
-
33
- /**
34
- * Calculate the position where the tooltip has to render, having in account
35
- * the dimensions.
36
- */
37
- useEffect(() => {
38
- if (!ref.current || !ref.current.getBoundingClientRect().width) return;
39
- const {
40
- width,
41
- height
42
- } = ref.current.getBoundingClientRect();
43
- setStyle({
44
- left: x - width / 2,
45
- top: y - height - offset
46
- });
47
- }, [x, y]);
48
- const renderTooltip = useCallback(CustomTooltip => {
49
- if (CustomTooltip) return CustomTooltip(data);
50
- if (useSingle) return /*#__PURE__*/_jsx(SingleTooltip, {
51
- title: data.title,
52
- value: data.elements[0].value
53
- });
54
- return _MultipleTooltip || (_MultipleTooltip = /*#__PURE__*/_jsx(MultipleTooltip, {
55
- data: data
56
- }));
57
- }, [data, useSingle]);
58
- return /*#__PURE__*/_jsx("div", {
59
- ref: ref,
60
- className: classes.root,
61
- style: style,
62
- children: renderTooltip(tooltip)
63
- });
64
- };
65
- process.env.NODE_ENV !== "production" ? MainToolTip.propTypes = {
66
- /**
67
- * A Jss Object used to override or extend the styles applied.
68
- */
69
- classes: PropTypes.shape({
70
- /**
71
- * Styles applied to the barchart root class.
72
- */
73
- root: PropTypes.string
74
- }).isRequired,
75
- /**
76
- * Data of the tooltip.
77
- */
78
- data: PropTypes.shape({
79
- /**
80
- * Title.
81
- */
82
- title: PropTypes.string,
83
- /**
84
- * Values of the tooltip.
85
- */
86
- elements: PropTypes.arrayOf(PropTypes.shape({
87
- /**
88
- * Color of the bar.
89
- */
90
- color: PropTypes.string,
91
- /**
92
- * Name.
93
- */
94
- name: PropTypes.string,
95
- /**
96
- * Value.
97
- */
98
- value: PropTypes.number
99
- }))
100
- }).isRequired,
101
- /**
102
- * Coordinates.
103
- */
104
- coordinates: PropTypes.shape({
105
- /**
106
- * xx's coordinate.
107
- */
108
- x: PropTypes.number.isRequired,
109
- /**
110
- * yy's coordinate.
111
- */
112
- y: PropTypes.number.isRequired
113
- }).isRequired,
114
- /**
115
- * Defines if should use a single or multiline tooltip.
116
- */
117
- useSingle: PropTypes.bool,
118
- /**
119
- * Custom tooltip element to be displayed
120
- */
121
- tooltip: PropTypes.func
122
- } : void 0;
123
- MainToolTip.defaultProps = {
124
- useSingle: false
125
- };
126
- export default withStyles(styles, {
127
- name: "HvChartTooltip"
128
- })(MainToolTip);
129
- //# sourceMappingURL=Tooltip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tooltip.js","names":["React","useEffect","useRef","useState","useCallback","PropTypes","withStyles","SingleTooltip","MultipleTooltip","styles","offset","MainToolTip","classes","coordinates","data","useSingle","tooltip","x","y","style","setStyle","left","top","visibility","ref","current","getBoundingClientRect","width","height","renderTooltip","CustomTooltip","title","elements","value","root","propTypes","shape","string","isRequired","arrayOf","color","name","number","bool","func","defaultProps"],"sources":["../../../../src/Chart/Tooltip/Tooltip.js"],"sourcesContent":["import React, { useEffect, useRef, useState, useCallback } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport SingleTooltip from \"./SingleTooltip\";\nimport MultipleTooltip from \"./MultiTooltip\";\nimport styles from \"./styles\";\n\nconst offset = 20;\n\n/**\n * Component responsible for deciding which tooltip should be use and to calculate\n * the exact position where it should be render.\n */\nconst MainToolTip = ({ classes, coordinates, data, useSingle, tooltip }) => {\n const { x, y } = coordinates;\n const [style, setStyle] = useState({ left: x, top: y, visibility: \"hidden\" });\n const ref = useRef(null);\n\n /**\n * Calculate the position where the tooltip has to render, having in account\n * the dimensions.\n */\n useEffect(() => {\n if (!ref.current || !ref.current.getBoundingClientRect().width) return;\n\n const { width, height } = ref.current.getBoundingClientRect();\n\n setStyle({ left: x - width / 2, top: y - height - offset });\n }, [x, y]);\n\n const renderTooltip = useCallback(\n (CustomTooltip) => {\n if (CustomTooltip) return CustomTooltip(data);\n if (useSingle) return <SingleTooltip title={data.title} value={data.elements[0].value} />;\n return <MultipleTooltip data={data} />;\n },\n [data, useSingle]\n );\n\n return (\n <div ref={ref} className={classes.root} style={style}>\n {renderTooltip(tooltip)}\n </div>\n );\n};\n\nMainToolTip.propTypes = {\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the barchart root class.\n */\n root: PropTypes.string,\n }).isRequired,\n /**\n * Data of the tooltip.\n */\n data: PropTypes.shape({\n /**\n * Title.\n */\n title: PropTypes.string,\n /**\n * Values of the tooltip.\n */\n elements: PropTypes.arrayOf(\n PropTypes.shape({\n /**\n * Color of the bar.\n */\n color: PropTypes.string,\n /**\n * Name.\n */\n name: PropTypes.string,\n /**\n * Value.\n */\n value: PropTypes.number,\n })\n ),\n }).isRequired,\n /**\n * Coordinates.\n */\n coordinates: PropTypes.shape({\n /**\n * xx's coordinate.\n */\n x: PropTypes.number.isRequired,\n /**\n * yy's coordinate.\n */\n y: PropTypes.number.isRequired,\n }).isRequired,\n /**\n * Defines if should use a single or multiline tooltip.\n */\n useSingle: PropTypes.bool,\n /**\n * Custom tooltip element to be displayed\n */\n tooltip: PropTypes.func,\n};\n\nMainToolTip.defaultProps = {\n useSingle: false,\n};\n\nexport default withStyles(styles, { name: \"H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ACIpB,CAAC,EAAEb,SAAS,CAACqC,MAAM,CAACJ;EACtB,CAAC,CAAC,CAACA,UAAU;EACb;AACF;AACA;EACEvB,SAAS,EAAEV,SAAS,CAACsC,IAAI;EACzB;AACF;AACA;EACE3B,OAAO,EAAEX,SAAS,CAACuC;AACrB,CAAC;AAEDjC,WAAW,CAACkC,YAAY,GAAG;EACzB9B,SAAS,EAAE;AACb,CAAC;AAED,eAAeT,UAAU,CAACG,MAAM,EAAE;EAAEgC,IAAI,EAAE;AAAiB,CAAC,CAAC,CAAC9B,WAAW,CAAC"}
@@ -1,2 +0,0 @@
1
- export { default } from "./Tooltip";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/Chart/Tooltip/index.js"],"sourcesContent":["export { default } from \"./Tooltip\";\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,WAAW"}
@@ -1,9 +0,0 @@
1
- const styles = {
2
- root: {
3
- position: "fixed",
4
- zIndex: 100,
5
- pointerEvents: "none"
6
- }
7
- };
8
- export default styles;
9
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","names":["styles","root","position","zIndex","pointerEvents"],"sources":["../../../../src/Chart/Tooltip/styles.js"],"sourcesContent":["const styles = {\n root: {\n position: \"fixed\",\n zIndex: 100,\n pointerEvents: \"none\",\n },\n};\n\nexport default styles;\n"],"mappings":"AAAA,MAAMA,MAAM,GAAG;EACbC,IAAI,EAAE;IACJC,QAAQ,EAAE,OAAO;IACjBC,MAAM,EAAE,GAAG;IACXC,aAAa,EAAE;EACjB;AACF,CAAC;AAED,eAAeJ,MAAM"}