@hitachivantara/uikit-react-viz 4.1.10 → 5.1.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 (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 +234 -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,42 +0,0 @@
1
- var styles = function styles(theme) {
2
- return {
3
- root: {
4
- backgroundColor: theme.hv.palette.atmosphere.atmo1,
5
- width: "fit-content",
6
- boxShadow: theme.hv.shadows[1],
7
- zIndex: 100
8
- },
9
- title: {
10
- padding: theme.hvSpacing("15px", "sm"),
11
- borderBottom: "3px solid ".concat(theme.hv.palette.atmosphere.atmo2)
12
- },
13
- valuesContainer: {
14
- padding: theme.hv.spacing.sm
15
- },
16
- values: {
17
- display: "flex",
18
- justifyContent: "space-between",
19
- alignItems: "center",
20
- paddingBottom: theme.hv.spacing.sm,
21
- "&:last-child": {
22
- paddingBottom: 0
23
- }
24
- },
25
- valueNameWrapper: {
26
- display: "flex",
27
- alignItems: "center"
28
- },
29
- color: {
30
- width: theme.hv.spacing.xs,
31
- height: theme.hv.spacing.xs
32
- },
33
- separator: {
34
- width: theme.hv.spacing.xs
35
- },
36
- separatorColor: {
37
- width: "5px"
38
- }
39
- };
40
- };
41
- export default styles;
42
- //# 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,IAAMA,MAAM,GAAG,SAATA,MAAM,CAAIC,KAAK;EAAA,OAAM;IACzBC,IAAI,EAAE;MACJC,eAAe,EAAEF,KAAK,CAACG,EAAE,CAACC,OAAO,CAACC,UAAU,CAACC,KAAK;MAClDC,KAAK,EAAE,aAAa;MACpBC,SAAS,EAAER,KAAK,CAACG,EAAE,CAACM,OAAO,CAAC,CAAC,CAAC;MAC9BC,MAAM,EAAE;IACV,CAAC;IACDC,KAAK,EAAE;MACLC,OAAO,EAAEZ,KAAK,CAACa,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC;MACtCC,YAAY,sBAAed,KAAK,CAACG,EAAE,CAACC,OAAO,CAACC,UAAU,CAACU,KAAK;IAC9D,CAAC;IACDC,eAAe,EAAE;MACfJ,OAAO,EAAEZ,KAAK,CAACG,EAAE,CAACc,OAAO,CAACC;IAC5B,CAAC;IACDC,MAAM,EAAE;MACNC,OAAO,EAAE,MAAM;MACfC,cAAc,EAAE,eAAe;MAC/BC,UAAU,EAAE,QAAQ;MACpBC,aAAa,EAAEvB,KAAK,CAACG,EAAE,CAACc,OAAO,CAACC,EAAE;MAClC,cAAc,EAAE;QACdK,aAAa,EAAE;MACjB;IACF,CAAC;IACDC,gBAAgB,EAAE;MAChBJ,OAAO,EAAE,MAAM;MACfE,UAAU,EAAE;IACd,CAAC;IACDG,KAAK,EAAE;MACLlB,KAAK,EAAEP,KAAK,CAACG,EAAE,CAACc,OAAO,CAACS,EAAE;MAC1BC,MAAM,EAAE3B,KAAK,CAACG,EAAE,CAACc,OAAO,CAACS;IAC3B,CAAC;IACDE,SAAS,EAAE;MACTrB,KAAK,EAAEP,KAAK,CAACG,EAAE,CAACc,OAAO,CAACS;IAC1B,CAAC;IACDG,cAAc,EAAE;MACdtB,KAAK,EAAE;IACT;EACF,CAAC;AAAA,CAAC;AAEF,eAAeR,MAAM"}
@@ -1,57 +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
- var SingleTooltip = function SingleTooltip(_ref) {
9
- var classes = _ref.classes,
10
- title = _ref.title,
11
- value = _ref.value;
12
- return /*#__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
- };
28
- process.env.NODE_ENV !== "production" ? SingleTooltip.propTypes = {
29
- /**
30
- * A Jss Object used to override or extend the styles applied.
31
- */
32
- classes: PropTypes.shape({
33
- /**
34
- * Styles applied to the root class.
35
- */
36
- root: PropTypes.string,
37
- /**
38
- * Styles applied to the separator between title and value.
39
- */
40
- separator: PropTypes.string
41
- }).isRequired,
42
- /**
43
- * Title of the chart.
44
- */
45
- title: PropTypes.string.isRequired,
46
- /**
47
- * Value of the chart.
48
- */
49
- value: PropTypes.number.isRequired
50
- } : void 0;
51
- var arePropsEqual = function arePropsEqual(prevProps, nextProps) {
52
- return prevProps.title === nextProps.title && prevProps.value === nextProps.value;
53
- };
54
- export default withStyles(styles, {
55
- name: "HvChartSingleTooltip"
56
- })( /*#__PURE__*/memo(SingleTooltip, arePropsEqual));
57
- //# 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\" })(\n memo(SingleTooltip, 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,IAAMC,aAAa,GAAG,SAAhBA,aAAa;EAAA,IAAMC,OAAO,QAAPA,OAAO;IAAEC,KAAK,QAALA,KAAK;IAAEC,KAAK,QAALA,KAAK;EAAA,oBAC5C;IAAK,SAAS,EAAEF,OAAO,CAACG,IAAK;IAAA,wBAC3B;MAAA,uBACE,KAAC,YAAY;QAAC,OAAO,EAAC,eAAe;QAAA,UAAEF;MAAK;IAAgB,EACxD,eACN;MAAK,SAAS,EAAED,OAAO,CAACI;IAAU,EAAG,eACrC;MAAA,uBACE,KAAC,YAAY;QAAA,UAAEF;MAAK;IAAgB,EAChC;EAAA,EACF;AAAA,CACP;AAED,wCAAAH,aAAa,CAACM,SAAS,GAAG;EACxB;AACF;AACA;EACEL,OAAO,EAAEL,SAAS,CAACW,KAAK,CAAC;IACvB;AACJ;AACA;IACIH,IAAI,EAAER,SAAS,CAACY,MAAM;IACtB;AACJ;AACA;IACIH,SAAS,EAAET,SAAS,CAACY;EACvB,CAAC,CAAC,CAACC,UAAU;EACb;AACF;AACA;EACEP,KAAK,EAAEN,SAAS,CAACY,MAAM,CAACC,UAAU;EAClC;AACF;AACA;EACEN,KAAK,EAAEP,SAAS,CAACc,MAAM,CAACD;AAC1B,CAAC;AAED,IAAME,aAAa,GAAG,SAAhBA,aAAa,CAAIC,SAAS,EAAEC,SAAS;EAAA,OACzCD,SAAS,CAACV,KAAK,KAAKW,SAAS,CAACX,KAAK,IAAIU,SAAS,CAACT,KAAK,KAAKU,SAAS,CAACV,KAAK;AAAA;AAE5E,eAAeN,UAAU,CAACE,MAAM,EAAE;EAAEe,IAAI,EAAE;AAAuB,CAAC,CAAC,eACjEnB,IAAI,CAACK,aAAa,EAAEW,aAAa,CAAC,CACnC"}
@@ -1,2 +0,0 @@
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,17 +0,0 @@
1
- var styles = function styles(theme) {
2
- return {
3
- root: {
4
- padding: theme.hv.spacing.sm,
5
- display: "flex",
6
- backgroundColor: theme.hv.palette.atmosphere.atmo1,
7
- boxShadow: theme.hv.shadows[1],
8
- width: "fit-content",
9
- zIndex: 100
10
- },
11
- separator: {
12
- width: theme.hv.spacing.xs
13
- }
14
- };
15
- };
16
- export default styles;
17
- //# 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,IAAMA,MAAM,GAAG,SAATA,MAAM,CAAIC,KAAK;EAAA,OAAM;IACzBC,IAAI,EAAE;MACJC,OAAO,EAAEF,KAAK,CAACG,EAAE,CAACC,OAAO,CAACC,EAAE;MAC5BC,OAAO,EAAE,MAAM;MACfC,eAAe,EAAEP,KAAK,CAACG,EAAE,CAACK,OAAO,CAACC,UAAU,CAACC,KAAK;MAClDC,SAAS,EAAEX,KAAK,CAACG,EAAE,CAACS,OAAO,CAAC,CAAC,CAAC;MAC9BC,KAAK,EAAE,aAAa;MACpBC,MAAM,EAAE;IACV,CAAC;IACDC,SAAS,EAAE;MACTF,KAAK,EAAEb,KAAK,CAACG,EAAE,CAACC,OAAO,CAACY;IAC1B;EACF,CAAC;AAAA,CAAC;AAEF,eAAejB,MAAM"}
@@ -1,129 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import React, { useEffect, useRef, useState, useCallback } from "react";
3
- import PropTypes from "prop-types";
4
- import { withStyles } from "@mui/styles";
5
- import SingleTooltip from "./SingleTooltip";
6
- import MultipleTooltip from "./MultiTooltip";
7
- import styles from "./styles";
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
- var offset = 20;
10
-
11
- /**
12
- * Component responsible for deciding which tooltip should be use and to calculate
13
- * the exact position where it should be render.
14
- */
15
- var MainToolTip = function MainToolTip(_ref) {
16
- var _MultipleTooltip;
17
- var classes = _ref.classes,
18
- coordinates = _ref.coordinates,
19
- data = _ref.data,
20
- useSingle = _ref.useSingle,
21
- tooltip = _ref.tooltip;
22
- var x = coordinates.x,
23
- y = coordinates.y;
24
- var _useState = useState({
25
- left: x,
26
- top: y,
27
- visibility: "hidden"
28
- }),
29
- _useState2 = _slicedToArray(_useState, 2),
30
- style = _useState2[0],
31
- setStyle = _useState2[1];
32
- var ref = useRef(null);
33
-
34
- /**
35
- * Calculate the position where the tooltip has to render, having in account
36
- * the dimensions.
37
- */
38
- useEffect(function () {
39
- if (!ref.current || !ref.current.getBoundingClientRect().width) return;
40
- var _ref$current$getBound = ref.current.getBoundingClientRect(),
41
- width = _ref$current$getBound.width,
42
- height = _ref$current$getBound.height;
43
- setStyle({
44
- left: x - width / 2,
45
- top: y - height - offset
46
- });
47
- }, [x, y]);
48
- var renderTooltip = useCallback(function (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","left","top","visibility","style","setStyle","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: \"HvChartTooltip\" })(MainToolTip);\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,WAAW,QAAQ,OAAO;AACvE,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,UAAU,QAAQ,aAAa;AACxC,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,eAAe,MAAM,gBAAgB;AAC5C,OAAOC,MAAM,MAAM,UAAU;AAAC;AAE9B,IAAMC,MAAM,GAAG,EAAE;;AAEjB;AACA;AACA;AACA;AACA,IAAMC,WAAW,GAAG,SAAdA,WAAW,OAA2D;EAAA;EAAA,IAArDC,OAAO,QAAPA,OAAO;IAAEC,WAAW,QAAXA,WAAW;IAAEC,IAAI,QAAJA,IAAI;IAAEC,SAAS,QAATA,SAAS;IAAEC,OAAO,QAAPA,OAAO;EACnE,IAAQC,CAAC,GAAQJ,WAAW,CAApBI,CAAC;IAAEC,CAAC,GAAKL,WAAW,CAAjBK,CAAC;EACZ,gBAA0Bf,QAAQ,CAAC;MAAEgB,IAAI,EAAEF,CAAC;MAAEG,GAAG,EAAEF,CAAC;MAAEG,UAAU,EAAE;IAAS,CAAC,CAAC;IAAA;IAAtEC,KAAK;IAAEC,QAAQ;EACtB,IAAMC,GAAG,GAAGtB,MAAM,CAAC,IAAI,CAAC;;EAExB;AACF;AACA;AACA;EACED,SAAS,CAAC,YAAM;IACd,IAAI,CAACuB,GAAG,CAACC,OAAO,IAAI,CAACD,GAAG,CAACC,OAAO,CAACC,qBAAqB,EAAE,CAACC,KAAK,EAAE;IAEhE,4BAA0BH,GAAG,CAACC,OAAO,CAACC,qBAAqB,EAAE;MAArDC,KAAK,yBAALA,KAAK;MAAEC,MAAM,yBAANA,MAAM;IAErBL,QAAQ,CAAC;M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AACA;MACQJ,KAAK,EAAE5B,SAAS,CAACqC;IACnB,CAAC,CAAC;EAEN,CAAC,CAAC,CAACJ,UAAU;EACb;AACF;AACA;EACEzB,WAAW,EAAER,SAAS,CAAC+B,KAAK,CAAC;IAC3B;AACJ;AACA;IACInB,CAAC,EAAEZ,SAAS,CAACqC,MAAM,CAACJ,UAAU;IAC9B;AACJ;AACA;IACIpB,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
- var 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,IAAMA,MAAM,GAAG;EACbC,IAAI,EAAE;IACJC,QAAQ,EAAE,OAAO;IACjBC,MAAM,EAAE,GAAG;IACXC,aAAa,EAAE;EACjB;AACF,CAAC;AAED,eAAeJ,MAAM"}
@@ -1,136 +0,0 @@
1
- import "core-js/modules/es.object.keys.js";
2
- import "core-js/modules/es.symbol.js";
3
- import "core-js/modules/es.array.filter.js";
4
- import "core-js/modules/es.object.to-string.js";
5
- import "core-js/modules/es.object.get-own-property-descriptor.js";
6
- import "core-js/modules/web.dom-collections.for-each.js";
7
- import "core-js/modules/es.object.get-own-property-descriptors.js";
8
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
- 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; }
10
- 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; }
11
- import "core-js/modules/es.object.values.js";
12
- import styles from "./styles";
13
- var setterIfNil = function setterIfNil(object, property, value) {
14
- var _object$property;
15
- // eslint-disable-next-line no-param-reassign
16
- object[property] = (_object$property = object[property]) !== null && _object$property !== void 0 ? _object$property : value;
17
- };
18
-
19
- /**
20
- * Auxiliary functions to set the layout in order to follow the DS guideline.
21
- *
22
- */
23
-
24
- var applyLayoutYaxisDefaults = function applyLayoutYaxisDefaults(inputLayout, layoutStyles, yAxisTitle, isHorizontal) {
25
- var layout = inputLayout;
26
- setterIfNil(layout, "yaxis", {});
27
- setterIfNil(layout.yaxis, "automargin", true);
28
- setterIfNil(layout.yaxis, "title", {});
29
- setterIfNil(layout.yaxis.title, "font", {
30
- family: layoutStyles.vizText.fontFamily,
31
- size: layoutStyles.vizText.fontSize,
32
- color: layoutStyles.vizText.color
33
- });
34
- setterIfNil(layout.yaxis, "fixedrange", true);
35
- setterIfNil(layout.yaxis, "ticks", "");
36
- setterIfNil(layout.yaxis, "tickfont", {
37
- family: layoutStyles.vizText.fontFamily,
38
- size: layoutStyles.vizText.fontSize,
39
- color: layoutStyles.vizText.color
40
- });
41
- setterIfNil(layout.yaxis, "gridcolor", layoutStyles.gridColor);
42
- setterIfNil(layout.yaxis, "showgrid", !isHorizontal);
43
- setterIfNil(layout.yaxis, "showline", isHorizontal);
44
- setterIfNil(layout.yaxis, "linecolor", layoutStyles.lineColor);
45
- setterIfNil(layout.yaxis, "linewidth", 1);
46
- setterIfNil(layout.yaxis, "zeroline", false);
47
- if (yAxisTitle) {
48
- setterIfNil(layout, "yaxis", {});
49
- setterIfNil(layout.yaxis, "title", {});
50
- setterIfNil(layout.yaxis.title, "text", yAxisTitle);
51
- }
52
- return layout;
53
- };
54
- var applyLayoutXaxisDefaults = function applyLayoutXaxisDefaults(inputLayout, layoutStyles, xAxisTitle, isHorizontal) {
55
- var layout = inputLayout;
56
- setterIfNil(layout, "xaxis", {});
57
- setterIfNil(layout.xaxis, "automargin", true);
58
- setterIfNil(layout.xaxis, "title", {});
59
- setterIfNil(layout.xaxis.title, "font", {
60
- family: layoutStyles.vizText.fontFamily,
61
- size: layoutStyles.vizText.fontSize,
62
- color: layoutStyles.vizText.color
63
- });
64
- setterIfNil(layout.xaxis, "fixedrange", true);
65
- setterIfNil(layout.xaxis, "ticks", "");
66
- setterIfNil(layout.xaxis, "tickfont", {
67
- family: layoutStyles.vizText.fontFamily,
68
- size: layoutStyles.vizText.fontSize,
69
- color: layoutStyles.vizText.color
70
- });
71
- setterIfNil(layout.xaxis, "gridcolor", layoutStyles.gridColor);
72
- setterIfNil(layout.xaxis, "showgrid", isHorizontal);
73
- setterIfNil(layout.xaxis, "showline", !isHorizontal);
74
- setterIfNil(layout.xaxis, "linewidth", 1);
75
- setterIfNil(layout.xaxis, "linecolor", layoutStyles.lineColor);
76
- setterIfNil(layout.xaxis, "zeroline", false);
77
- if (xAxisTitle) {
78
- setterIfNil(layout, "xaxis", {});
79
- setterIfNil(layout.xaxis, "title", {});
80
- setterIfNil(layout.xaxis.title, "text", xAxisTitle);
81
- }
82
- return layout;
83
- };
84
- var applyLayoutLegendDefaults = function applyLayoutLegendDefaults(inputLayout, layoutStyles) {
85
- var layout = inputLayout;
86
- setterIfNil(layout, "legend", {
87
- x: 0.5,
88
- y: 1.15,
89
- xanchor: "center",
90
- yanchor: "middle",
91
- orientation: "h"
92
- });
93
- setterIfNil(layout.legend, "font", {
94
- family: layoutStyles.legendText.fontFamily,
95
- size: layoutStyles.legendText.fontSize,
96
- color: layoutStyles.legendText.color
97
- });
98
- return layout;
99
- };
100
- var applyLayoutRootDefaults = function applyLayoutRootDefaults(inputLayout, layoutStyles) {
101
- var layout = inputLayout;
102
- setterIfNil(layout, "colorway", Object.values(layoutStyles.defaultColors));
103
- setterIfNil(layout, "autosize", true);
104
- setterIfNil(layout, "margin", {
105
- l: 50,
106
- b: 50,
107
- t: 50,
108
- pad: 0
109
- });
110
- setterIfNil(layout, "plot_bgcolor", layoutStyles.plotColor);
111
- setterIfNil(layout, "paper_bgcolor", layoutStyles.plotColor);
112
- };
113
- export var applyLayoutDefaults = function applyLayoutDefaults(inputLayout, theme, isHorizontal, xAxisTitle, yAxisTitle) {
114
- var layoutStyles = styles(theme);
115
- var layout = _objectSpread({}, inputLayout);
116
-
117
- // Layout
118
- applyLayoutRootDefaults(layout, layoutStyles);
119
-
120
- // Legend
121
- applyLayoutLegendDefaults(layout, layoutStyles);
122
-
123
- // Xaxis
124
- applyLayoutXaxisDefaults(layout, layoutStyles, xAxisTitle, isHorizontal);
125
-
126
- // Yaxis
127
- applyLayoutYaxisDefaults(layout, layoutStyles, yAxisTitle, isHorizontal);
128
- return layout;
129
- };
130
- export var applyConfigDefaults = function applyConfigDefaults(config) {
131
- return _objectSpread({
132
- responsive: true,
133
- displayModeBar: false
134
- }, config);
135
- };
136
- //# sourceMappingURL=chartPlotlyOverrides.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chartPlotlyOverrides.js","names":["styles","setterIfNil","object","property","value","applyLayoutYaxisDefaults","inputLayout","layoutStyles","yAxisTitle","isHorizontal","layout","yaxis","title","family","vizText","fontFamily","size","fontSize","color","gridColor","lineColor","applyLayoutXaxisDefaults","xAxisTitle","xaxis","applyLayoutLegendDefaults","x","y","xanchor","yanchor","orientation","legend","legendText","applyLayoutRootDefaults","Object","values","defaultColors","l","b","t","pad","plotColor","applyLayoutDefaults","theme","applyConfigDefaults","config","responsive","displayModeBar"],"sources":["../../../src/Chart/chartPlotlyOverrides.js"],"sourcesContent":["import styles from \"./styles\";\n\nconst setterIfNil = (object, property, value) => {\n // eslint-disable-next-line no-param-reassign\n object[property] = object[property] ?? value;\n};\n\n/**\n * Auxiliary functions to set the layout in order to follow the DS guideline.\n *\n */\n\nconst applyLayoutYaxisDefaults = (inputLayout, layoutStyles, yAxisTitle, isHorizontal) => {\n const layout = inputLayout;\n\n setterIfNil(layout, \"yaxis\", {});\n\n setterIfNil(layout.yaxis, \"automargin\", true);\n\n setterIfNil(layout.yaxis, \"title\", {});\n\n setterIfNil(layout.yaxis.title, \"font\", {\n family: layoutStyles.vizText.fontFamily,\n size: layoutStyles.vizText.fontSize,\n color: layoutStyles.vizText.color,\n });\n\n setterIfNil(layout.yaxis, \"fixedrange\", true);\n\n setterIfNil(layout.yaxis, \"ticks\", \"\");\n setterIfNil(layout.yaxis, \"tickfont\", {\n family: layoutStyles.vizText.fontFamily,\n size: layoutStyles.vizText.fontSize,\n color: layoutStyles.vizText.color,\n });\n\n setterIfNil(layout.yaxis, \"gridcolor\", layoutStyles.gridColor);\n setterIfNil(layout.yaxis, \"showgrid\", !isHorizontal);\n setterIfNil(layout.yaxis, \"showline\", isHorizontal);\n\n setterIfNil(layout.yaxis, \"linecolor\", layoutStyles.lineColor);\n setterIfNil(layout.yaxis, \"linewidth\", 1);\n setterIfNil(layout.yaxis, \"zeroline\", false);\n\n if (yAxisTitle) {\n setterIfNil(layout, \"yaxis\", {});\n setterIfNil(layout.yaxis, \"title\", {});\n setterIfNil(layout.yaxis.title, \"text\", yAxisTitle);\n }\n\n return layout;\n};\n\nconst applyLayoutXaxisDefaults = (inputLayout, layoutStyles, xAxisTitle, isHorizontal) => {\n const layout = inputLayout;\n setterIfNil(layout, \"xaxis\", {});\n\n setterIfNil(layout.xaxis, \"automargin\", true);\n\n setterIfNil(layout.xaxis, \"title\", {});\n setterIfNil(layout.xaxis.title, \"font\", {\n family: layoutStyles.vizText.fontFamily,\n size: layoutStyles.vizText.fontSize,\n color: layoutStyles.vizText.color,\n });\n\n setterIfNil(layout.xaxis, \"fixedrange\", true);\n\n setterIfNil(layout.xaxis, \"ticks\", \"\");\n setterIfNil(layout.xaxis, \"tickfont\", {\n family: layoutStyles.vizText.fontFamily,\n size: layoutStyles.vizText.fontSize,\n color: layoutStyles.vizText.color,\n });\n\n setterIfNil(layout.xaxis, \"gridcolor\", layoutStyles.gridColor);\n setterIfNil(layout.xaxis, \"showgrid\", isHorizontal);\n setterIfNil(layout.xaxis, \"showline\", !isHorizontal);\n\n setterIfNil(layout.xaxis, \"linewidth\", 1);\n setterIfNil(layout.xaxis, \"linecolor\", layoutStyles.lineColor);\n setterIfNil(layout.xaxis, \"zeroline\", false);\n\n if (xAxisTitle) {\n setterIfNil(layout, \"xaxis\", {});\n setterIfNil(layout.xaxis, \"title\", {});\n setterIfNil(layout.xaxis.title, \"text\", xAxisTitle);\n }\n return layout;\n};\n\nconst applyLayoutLegendDefaults = (inputLayout, layoutStyles) => {\n const layout = inputLayout;\n\n setterIfNil(layout, \"legend\", {\n x: 0.5,\n y: 1.15,\n xanchor: \"center\",\n yanchor: \"middle\",\n orientation: \"h\",\n });\n\n setterIfNil(layout.legend, \"font\", {\n family: layoutStyles.legendText.fontFamily,\n size: layoutStyles.legendText.fontSize,\n color: layoutStyles.legendText.color,\n });\n return layout;\n};\n\nconst applyLayoutRootDefaults = (inputLayout, layoutStyles) => {\n const layout = inputLayout;\n\n setterIfNil(layout, \"colorway\", Object.values(layoutStyles.defaultColors));\n\n setterIfNil(layout, \"autosize\", true);\n\n setterIfNil(layout, \"margin\", {\n l: 50,\n b: 50,\n t: 50,\n pad: 0,\n });\n\n setterIfNil(layout, \"plot_bgcolor\", layoutStyles.plotColor);\n setterIfNil(layout, \"paper_bgcolor\", layoutStyles.plotColor);\n};\n\nexport const applyLayoutDefaults = (inputLayout, theme, isHorizontal, xAxisTitle, yAxisTitle) => {\n const layoutStyles = styles(theme);\n const layout = { ...inputLayout };\n\n // Layout\n applyLayoutRootDefaults(layout, layoutStyles);\n\n // Legend\n applyLayoutLegendDefaults(layout, layoutStyles);\n\n // Xaxis\n applyLayoutXaxisDefaults(layout, layoutStyles, xAxisTitle, isHorizontal);\n\n // Yaxis\n applyLayoutYaxisDefaults(layout, layoutStyles, yAxisTitle, isHorizontal);\n\n return layout;\n};\n\nexport const applyConfigDefaults = (config) => ({\n responsive: true,\n displayModeBar: false,\n ...config,\n});\n"],"mappings":";;;;;;;;;;;AAAA,OAAOA,MAAM,MAAM,UAAU;AAE7B,IAAMC,WAAW,GAAG,SAAdA,WAAW,CAAIC,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAK;EAAA;EAC/C;EACAF,MAAM,CAACC,QAAQ,CAAC,uBAAGD,MAAM,CAACC,QAAQ,CAAC,+DAAIC,KAAK;AAC9C,CAAC;;AAED;AACA;AACA;AACA;;AAEA,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwB,CAAIC,WAAW,EAAEC,YAAY,EAAEC,UAAU,EAAEC,YAAY,EAAK;EACxF,IAAMC,MAAM,GAAGJ,WAAW;EAE1BL,WAAW,CAACS,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;EAEhCT,WAAW,CAACS,MAAM,CAACC,KAAK,EAAE,YAA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* from "./Chart";
3
-
4
- export { default as Plot } from "./Plot";
5
- export * from "./Plot";
@@ -1,2 +0,0 @@
1
- export { default } from "./Chart";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["default"],"sources":["../../../src/Chart/index.js"],"sourcesContent":["export { default } from \"./Chart\";\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,SAAS"}
@@ -1,28 +0,0 @@
1
- import "core-js/modules/es.object.keys.js";
2
- import "core-js/modules/es.symbol.js";
3
- import "core-js/modules/es.array.filter.js";
4
- import "core-js/modules/es.object.to-string.js";
5
- import "core-js/modules/es.object.get-own-property-descriptor.js";
6
- import "core-js/modules/web.dom-collections.for-each.js";
7
- import "core-js/modules/es.object.get-own-property-descriptors.js";
8
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
- 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; }
10
- 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; }
11
- var styles = function styles(theme) {
12
- return {
13
- root: {
14
- padding: 0
15
- },
16
- defaultColors: _objectSpread({}, theme.hv.viz.palette.categorical),
17
- vizText: _objectSpread(_objectSpread({}, theme.hv.typography.vizText), {}, {
18
- fontFamily: theme.hv.typography.fontFamily,
19
- fontSize: 10
20
- }),
21
- legendText: _objectSpread({}, theme.hv.typography.normalText),
22
- lineColor: theme.hv.palette.atmosphere.atmo4,
23
- gridColor: theme.hv.palette.atmosphere.atmo4,
24
- plotColor: "transparent"
25
- };
26
- };
27
- export default styles;
28
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","names":["styles","theme","root","padding","defaultColors","hv","viz","palette","categorical","vizText","typography","fontFamily","fontSize","legendText","normalText","lineColor","atmosphere","atmo4","gridColor","plotColor"],"sources":["../../../src/Chart/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n padding: 0,\n },\n defaultColors: {\n ...theme.hv.viz.palette.categorical,\n },\n vizText: {\n ...theme.hv.typography.vizText,\n fontFamily: theme.hv.typography.fontFamily,\n fontSize: 10,\n },\n legendText: {\n ...theme.hv.typography.normalText,\n },\n lineColor: theme.hv.palette.atmosphere.atmo4,\n gridColor: theme.hv.palette.atmosphere.atmo4,\n plotColor: \"transparent\",\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAM,CAAIC,KAAK;EAAA,OAAM;IACzBC,IAAI,EAAE;MACJC,OAAO,EAAE;IACX,CAAC;IACDC,aAAa,oBACRH,KAAK,CAACI,EAAE,CAACC,GAAG,CAACC,OAAO,CAACC,WAAW,CACpC;IACDC,OAAO,kCACFR,KAAK,CAACI,EAAE,CAACK,UAAU,CAACD,OAAO;MAC9BE,UAAU,EAAEV,KAAK,CAACI,EAAE,CAACK,UAAU,CAACC,UAAU;MAC1CC,QAAQ,EAAE;IAAE,EACb;IACDC,UAAU,oBACLZ,KAAK,CAACI,EAAE,CAACK,UAAU,CAACI,UAAU,CAClC;IACDC,SAAS,EAAEd,KAAK,CAACI,EAAE,CAACE,OAAO,CAACS,UAAU,CAACC,KAAK;IAC5CC,SAAS,EAAEjB,KAAK,CAACI,EAAE,CAACE,OAAO,CAACS,UAAU,CAACC,KAAK;IAC5CE,SAAS,EAAE;EACb,CAAC;AAAA,CAAC;AAEF,eAAenB,MAAM"}
@@ -1,10 +0,0 @@
1
- import { HvChartProps } from "../Chart";
2
-
3
- export interface HvConfusionMatrixProps extends HvChartProps {
4
- /**
5
- *
6
- */
7
- deltaMatrix?: number[][];
8
- }
9
-
10
- export default function HvConfusionMatrixProps(props: HvConfusionMatrixProps): JSX.Element | null;
@@ -1,87 +0,0 @@
1
- import "core-js/modules/es.object.keys.js";
2
- import "core-js/modules/es.symbol.js";
3
- import "core-js/modules/es.array.filter.js";
4
- import "core-js/modules/es.object.to-string.js";
5
- import "core-js/modules/es.object.get-own-property-descriptor.js";
6
- import "core-js/modules/web.dom-collections.for-each.js";
7
- import "core-js/modules/es.object.get-own-property-descriptors.js";
8
- import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
10
- var _excluded = ["id", "classes", "data", "layout", "config", "tooltip", "deltaMatrix"];
11
- 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; }
12
- 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; }
13
- import React, { useMemo } from "react";
14
- import PropTypes from "prop-types";
15
- import { withStyles } from "@mui/styles";
16
- import { useTheme } from "@mui/material/styles";
17
- import Chart from "../Chart";
18
- import CustomTooltip from "./CustomTooltip";
19
- import { applyDataDefaults, applyLayoutDefaults } from "./confusionMatrixPlotlyOverrides";
20
- import styles from "./styles";
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- var ConfusionMatrix = function ConfusionMatrix(_ref) {
23
- var id = _ref.id,
24
- classes = _ref.classes,
25
- data = _ref.data,
26
- layout = _ref.layout,
27
- config = _ref.config,
28
- tooltip = _ref.tooltip,
29
- deltaMatrix = _ref.deltaMatrix,
30
- others = _objectWithoutProperties(_ref, _excluded);
31
- var theme = useTheme();
32
- var dataWithDefaults = useMemo(function () {
33
- return applyDataDefaults(data, theme, deltaMatrix);
34
- }, [data, theme, deltaMatrix]);
35
- var layoutWithDefaults = useMemo(function () {
36
- return applyLayoutDefaults(layout, theme, dataWithDefaults, deltaMatrix);
37
- }, [layout, theme, dataWithDefaults, deltaMatrix]);
38
- return /*#__PURE__*/_jsx(Chart, _objectSpread({
39
- id: id,
40
- classes: classes,
41
- data: dataWithDefaults,
42
- layout: layoutWithDefaults,
43
- config: config,
44
- tooltip: tooltip !== null && tooltip !== void 0 ? tooltip : function (tooltipData) {
45
- return /*#__PURE__*/_jsx(CustomTooltip, {
46
- data: tooltipData,
47
- deltaMatrix: !!deltaMatrix
48
- });
49
- }
50
- }, others));
51
- };
52
- process.env.NODE_ENV !== "production" ? ConfusionMatrix.propTypes = {
53
- /**
54
- *
55
- */
56
- id: PropTypes.string,
57
- /**
58
- *
59
- */
60
- classes: PropTypes.shape({
61
- root: PropTypes.string
62
- }),
63
- /**
64
- *
65
- */
66
- data: PropTypes.arrayOf(PropTypes.instanceOf(Object)).isRequired,
67
- /**
68
- *
69
- */
70
- layout: PropTypes.instanceOf(Object),
71
- /**
72
- *
73
- */
74
- config: PropTypes.instanceOf(Object),
75
- /**
76
- *
77
- */
78
- tooltip: PropTypes.func,
79
- /**
80
- *
81
- */
82
- deltaMatrix: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.number))
83
- } : void 0;
84
- export default withStyles(styles, {
85
- name: "HvConfusionMatrix"
86
- })(ConfusionMatrix);
87
- //# sourceMappingURL=ConfusionMatrix.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConfusionMatrix.js","names":["React","useMemo","PropTypes","withStyles","useTheme","Chart","CustomTooltip","applyDataDefaults","applyLayoutDefaults","styles","ConfusionMatrix","id","classes","data","layout","config","tooltip","deltaMatrix","others","theme","dataWithDefaults","layoutWithDefaults","tooltipData","propTypes","string","shape","root","arrayOf","instanceOf","Object","isRequired","func","number","name"],"sources":["../../../src/ConfusionMatrix/ConfusionMatrix.js"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@mui/styles\";\nimport { useTheme } from \"@mui/material/styles\";\nimport Chart from \"../Chart\";\nimport CustomTooltip from \"./CustomTooltip\";\nimport { applyDataDefaults, applyLayoutDefaults } from \"./confusionMatrixPlotlyOverrides\";\nimport styles from \"./styles\";\n\nconst ConfusionMatrix = ({\n id,\n classes,\n data,\n layout,\n config,\n tooltip,\n deltaMatrix,\n ...others\n}) => {\n const theme = useTheme();\n const dataWithDefaults = useMemo(\n () => applyDataDefaults(data, theme, deltaMatrix),\n [data, theme, deltaMatrix]\n );\n const layoutWithDefaults = useMemo(\n () => applyLayoutDefaults(layout, theme, dataWithDefaults, deltaMatrix),\n [layout, theme, dataWithDefaults, deltaMatrix]\n );\n\n return (\n <Chart\n id={id}\n classes={classes}\n data={dataWithDefaults}\n layout={layoutWithDefaults}\n config={config}\n tooltip={\n tooltip ??\n ((tooltipData) => <CustomTooltip data={tooltipData} deltaMatrix={!!deltaMatrix} />)\n }\n {...others}\n />\n );\n};\n\nConfusionMatrix.propTypes = {\n /**\n *\n */\n id: PropTypes.string,\n /**\n *\n */\n classes: PropTypes.shape({\n root: PropTypes.string,\n }),\n /**\n *\n */\n data: PropTypes.arrayOf(PropTypes.instanceOf(Object)).isRequired,\n /**\n *\n */\n layout: PropTypes.instanceOf(Object),\n /**\n *\n */\n config: PropTypes.instanceOf(Object),\n /**\n *\n */\n tooltip: PropTypes.func,\n /**\n *\n */\n deltaMatrix: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.number)),\n};\n\nexport default withStyles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