@undp/data-viz 2.5.3 → 2.6.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 (444) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +17 -16
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/Axis-DY7jsk1Y.cjs +2 -0
  6. package/dist/{Axis-BTaS9oPQ.cjs.map → Axis-DY7jsk1Y.cjs.map} +1 -1
  7. package/dist/{Axis-CNZYWzH0.js → Axis-RRx-0Rlw.js} +9 -8
  8. package/dist/{Axis-CNZYWzH0.js.map → Axis-RRx-0Rlw.js.map} +1 -1
  9. package/dist/AxisTitle-B9F80_Z0.js +30 -0
  10. package/dist/AxisTitle-B9F80_Z0.js.map +1 -0
  11. package/dist/AxisTitle-CyFFbdNU.cjs +2 -0
  12. package/dist/{AxisTitle-DP_evhbe.cjs.map → AxisTitle-CyFFbdNU.cjs.map} +1 -1
  13. package/dist/BarGraph.cjs +1 -1
  14. package/dist/BarGraph.cjs.map +1 -1
  15. package/dist/BarGraph.js +203 -201
  16. package/dist/BarGraph.js.map +1 -1
  17. package/dist/BasicStatCard.cjs +1 -1
  18. package/dist/BasicStatCard.cjs.map +1 -1
  19. package/dist/BasicStatCard.js +15 -14
  20. package/dist/BasicStatCard.js.map +1 -1
  21. package/dist/BeeSwarmChart.cjs +1 -1
  22. package/dist/BeeSwarmChart.cjs.map +1 -1
  23. package/dist/BeeSwarmChart.js +60 -59
  24. package/dist/BeeSwarmChart.js.map +1 -1
  25. package/dist/BiVariateChoroplethMap.cjs +1 -1
  26. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  27. package/dist/BiVariateChoroplethMap.js +88 -86
  28. package/dist/BiVariateChoroplethMap.js.map +1 -1
  29. package/dist/BulletChart.cjs +1 -1
  30. package/dist/BulletChart.cjs.map +1 -1
  31. package/dist/BulletChart.js +88 -86
  32. package/dist/BulletChart.js.map +1 -1
  33. package/dist/ButterflyChart.cjs +1 -1
  34. package/dist/ButterflyChart.cjs.map +1 -1
  35. package/dist/ButterflyChart.js +100 -98
  36. package/dist/ButterflyChart.js.map +1 -1
  37. package/dist/ChoroplethMap.cjs +1 -1
  38. package/dist/ChoroplethMap.cjs.map +1 -1
  39. package/dist/ChoroplethMap.js +266 -243
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.js +4 -4
  43. package/dist/ColorLegend.cjs +1 -1
  44. package/dist/ColorLegend.cjs.map +1 -1
  45. package/dist/ColorLegend.js +17 -16
  46. package/dist/ColorLegend.js.map +1 -1
  47. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  48. package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
  49. package/dist/ColorLegendWithMouseOver.js +13 -12
  50. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  51. package/dist/Colors.cjs +1 -1
  52. package/dist/Colors.cjs.map +1 -1
  53. package/dist/Colors.d.ts +16 -0
  54. package/dist/Colors.js +16 -0
  55. package/dist/Colors.js.map +1 -1
  56. package/dist/CopyTextButton.cjs +1 -1
  57. package/dist/CopyTextButton.cjs.map +1 -1
  58. package/dist/CopyTextButton.js +37 -754
  59. package/dist/CopyTextButton.js.map +1 -1
  60. package/dist/CsvDownloadButton.cjs +4 -4
  61. package/dist/CsvDownloadButton.cjs.map +1 -1
  62. package/dist/CsvDownloadButton.js +47 -45
  63. package/dist/CsvDownloadButton.js.map +1 -1
  64. package/dist/DataCards.cjs +1 -1
  65. package/dist/DataCards.cjs.map +1 -1
  66. package/dist/DataCards.js +213 -467
  67. package/dist/DataCards.js.map +1 -1
  68. package/dist/DataTable.cjs +1 -1
  69. package/dist/DataTable.cjs.map +1 -1
  70. package/dist/DataTable.js +19 -19
  71. package/dist/DetailsModal-BmjtLqrZ.cjs +2 -0
  72. package/dist/{DetailsModal-Du8Fr1QD.cjs.map → DetailsModal-BmjtLqrZ.cjs.map} +1 -1
  73. package/dist/{DetailsModal-GqEbGHY2.js → DetailsModal-k-Me_U_T.js} +3 -3
  74. package/dist/{DetailsModal-GqEbGHY2.js.map → DetailsModal-k-Me_U_T.js.map} +1 -1
  75. package/dist/DifferenceLineChart.cjs +1 -1
  76. package/dist/DifferenceLineChart.cjs.map +1 -1
  77. package/dist/DifferenceLineChart.js +61 -60
  78. package/dist/DifferenceLineChart.js.map +1 -1
  79. package/dist/DonutChart.cjs +1 -1
  80. package/dist/DonutChart.cjs.map +1 -1
  81. package/dist/DonutChart.js +47 -46
  82. package/dist/DonutChart.js.map +1 -1
  83. package/dist/DotDensityMap.cjs +1 -1
  84. package/dist/DotDensityMap.cjs.map +1 -1
  85. package/dist/DotDensityMap.js +112 -110
  86. package/dist/DotDensityMap.js.map +1 -1
  87. package/dist/DualAxisLineChart.cjs +1 -1
  88. package/dist/DualAxisLineChart.cjs.map +1 -1
  89. package/dist/DualAxisLineChart.js +13 -12
  90. package/dist/DualAxisLineChart.js.map +1 -1
  91. package/dist/DumbbellChart.cjs +1 -1
  92. package/dist/DumbbellChart.cjs.map +1 -1
  93. package/dist/DumbbellChart.js +104 -102
  94. package/dist/DumbbellChart.js.map +1 -1
  95. package/dist/EmptyState-BoaUUuo6.cjs +2 -0
  96. package/dist/{EmptyState-CFmiFPHz.cjs.map → EmptyState-BoaUUuo6.cjs.map} +1 -1
  97. package/dist/{EmptyState-CaxXCkiN.js → EmptyState-prZ8OnEs.js} +4 -4
  98. package/dist/{EmptyState-CaxXCkiN.js.map → EmptyState-prZ8OnEs.js.map} +1 -1
  99. package/dist/ExcelDownloadButton.cjs +1 -1
  100. package/dist/ExcelDownloadButton.cjs.map +1 -1
  101. package/dist/ExcelDownloadButton.js +15 -13
  102. package/dist/ExcelDownloadButton.js.map +1 -1
  103. package/dist/FootNote.cjs +1 -1
  104. package/dist/FootNote.cjs.map +1 -1
  105. package/dist/FootNote.js +10 -9
  106. package/dist/FootNote.js.map +1 -1
  107. package/dist/GeoHubCompareMaps.cjs +1 -1
  108. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  109. package/dist/GeoHubCompareMaps.js +14 -14
  110. package/dist/GeoHubMap.cjs +1 -1
  111. package/dist/GeoHubMap.cjs.map +1 -1
  112. package/dist/GeoHubMap.js +59 -59
  113. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  114. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  115. package/dist/GeoHubMapWithLayerSelection.js +50 -50
  116. package/dist/{GraphContainer-B8ZqOzKI.js → GraphContainer-DcOM2CI6.js} +28 -27
  117. package/dist/GraphContainer-DcOM2CI6.js.map +1 -0
  118. package/dist/GraphContainer-gaG9TSy4.cjs +2 -0
  119. package/dist/{GraphContainer-Cul9b74X.cjs.map → GraphContainer-gaG9TSy4.cjs.map} +1 -1
  120. package/dist/GraphDescription.cjs +1 -1
  121. package/dist/GraphDescription.cjs.map +1 -1
  122. package/dist/GraphDescription.js +14 -13
  123. package/dist/GraphDescription.js.map +1 -1
  124. package/dist/{GraphEl-Ch0uAeZw.js → GraphEl-C7KBBHvB.js} +9 -9
  125. package/dist/{GraphEl-Ch0uAeZw.js.map → GraphEl-C7KBBHvB.js.map} +1 -1
  126. package/dist/GraphEl-CGALp07K.cjs +2 -0
  127. package/dist/{GraphEl-BgkDbq50.cjs.map → GraphEl-CGALp07K.cjs.map} +1 -1
  128. package/dist/GraphFooter.cjs +1 -1
  129. package/dist/GraphFooter.cjs.map +1 -1
  130. package/dist/GraphFooter.js +2 -2
  131. package/dist/GraphHeader.cjs +1 -1
  132. package/dist/GraphHeader.cjs.map +1 -1
  133. package/dist/GraphHeader.js +1 -1
  134. package/dist/GraphTitle.cjs +1 -1
  135. package/dist/GraphTitle.cjs.map +1 -1
  136. package/dist/GraphTitle.js +14 -13
  137. package/dist/GraphTitle.js.map +1 -1
  138. package/dist/GriddedGraphs.cjs +1 -1
  139. package/dist/GriddedGraphs.cjs.map +1 -1
  140. package/dist/GriddedGraphs.js +58 -55
  141. package/dist/GriddedGraphs.js.map +1 -1
  142. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  143. package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
  144. package/dist/GriddedGraphsFromConfig.js +15 -15
  145. package/dist/HeatMap.cjs +1 -1
  146. package/dist/HeatMap.cjs.map +1 -1
  147. package/dist/HeatMap.js +17 -16
  148. package/dist/HeatMap.js.map +1 -1
  149. package/dist/Histogram.cjs +1 -1
  150. package/dist/Histogram.cjs.map +1 -1
  151. package/dist/Histogram.js +3 -3
  152. package/dist/HybridMap.cjs +1 -1
  153. package/dist/HybridMap.cjs.map +1 -1
  154. package/dist/HybridMap.js +409 -420
  155. package/dist/HybridMap.js.map +1 -1
  156. package/dist/ImageDownloadButton.cjs +1 -1
  157. package/dist/ImageDownloadButton.cjs.map +1 -1
  158. package/dist/ImageDownloadButton.js +16 -14
  159. package/dist/ImageDownloadButton.js.map +1 -1
  160. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  161. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  162. package/dist/LineChartWithConfidenceInterval.js +16 -15
  163. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  164. package/dist/LinearColorLegend.cjs +1 -1
  165. package/dist/LinearColorLegend.cjs.map +1 -1
  166. package/dist/LinearColorLegend.js +5 -4
  167. package/dist/LinearColorLegend.js.map +1 -1
  168. package/dist/MultiGraphDashboard.cjs +1 -1
  169. package/dist/MultiGraphDashboard.cjs.map +1 -1
  170. package/dist/MultiGraphDashboard.js +62 -60
  171. package/dist/MultiGraphDashboard.js.map +1 -1
  172. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  173. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
  174. package/dist/MultiGraphDashboardFromConfig.js +7 -7
  175. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  176. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  177. package/dist/MultiGraphDashboardWideToLongFormat.js +21 -21
  178. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  179. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  180. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
  181. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +3 -3
  182. package/dist/MultiLineAltChart.cjs +1 -1
  183. package/dist/MultiLineAltChart.cjs.map +1 -1
  184. package/dist/MultiLineAltChart.js +16 -15
  185. package/dist/MultiLineAltChart.js.map +1 -1
  186. package/dist/MultiLineChart.cjs +1 -1
  187. package/dist/MultiLineChart.cjs.map +1 -1
  188. package/dist/MultiLineChart.js +16 -15
  189. package/dist/MultiLineChart.js.map +1 -1
  190. package/dist/ParetoChart.cjs +1 -1
  191. package/dist/ParetoChart.cjs.map +1 -1
  192. package/dist/ParetoChart.js +14 -13
  193. package/dist/ParetoChart.js.map +1 -1
  194. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  195. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  196. package/dist/PerformanceIntensiveMultiGraphDashboard.js +67 -65
  197. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  198. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  199. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
  200. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +8 -8
  201. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  202. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
  203. package/dist/PerformanceIntensiveScrollStory.js +3 -3
  204. package/dist/RadarChart.cjs +1 -1
  205. package/dist/RadarChart.cjs.map +1 -1
  206. package/dist/RadarChart.js +11 -10
  207. package/dist/RadarChart.js.map +1 -1
  208. package/dist/ReferenceLine-CxITVT1K.cjs +2 -0
  209. package/dist/{ReferenceLine-CpU4G01Y.cjs.map → ReferenceLine-CxITVT1K.cjs.map} +1 -1
  210. package/dist/{ReferenceLine-D41VuUhE.js → ReferenceLine-NF4g3Reh.js} +26 -25
  211. package/dist/ReferenceLine-NF4g3Reh.js.map +1 -0
  212. package/dist/RegressionLine-BQ6h-NZP.js +88 -0
  213. package/dist/RegressionLine-BQ6h-NZP.js.map +1 -0
  214. package/dist/RegressionLine-BpcVBjL0.cjs +2 -0
  215. package/dist/{RegressionLine-BFoBiVJk.cjs.map → RegressionLine-BpcVBjL0.cjs.map} +1 -1
  216. package/dist/SVGDownloadButton.cjs +1 -1
  217. package/dist/SVGDownloadButton.cjs.map +1 -1
  218. package/dist/SVGDownloadButton.js +11 -9
  219. package/dist/SVGDownloadButton.js.map +1 -1
  220. package/dist/SankeyChart.cjs +1 -1
  221. package/dist/SankeyChart.cjs.map +1 -1
  222. package/dist/SankeyChart.js +63 -62
  223. package/dist/SankeyChart.js.map +1 -1
  224. package/dist/ScatterPlot.cjs +1 -1
  225. package/dist/ScatterPlot.cjs.map +1 -1
  226. package/dist/ScatterPlot.js +109 -107
  227. package/dist/ScatterPlot.js.map +1 -1
  228. package/dist/ScrollStory.cjs +1 -1
  229. package/dist/ScrollStory.cjs.map +1 -1
  230. package/dist/ScrollStory.js +3 -3
  231. package/dist/SimpleLineChart.cjs +1 -1
  232. package/dist/SimpleLineChart.cjs.map +1 -1
  233. package/dist/SimpleLineChart.js +17 -16
  234. package/dist/SimpleLineChart.js.map +1 -1
  235. package/dist/SingleGraphDashboard.cjs +1 -1
  236. package/dist/SingleGraphDashboard.cjs.map +1 -1
  237. package/dist/SingleGraphDashboard.js +59 -56
  238. package/dist/SingleGraphDashboard.js.map +1 -1
  239. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  240. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
  241. package/dist/SingleGraphDashboardFromConfig.js +6 -6
  242. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  243. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  244. package/dist/SingleGraphDashboardGeoHubMaps.js +12 -12
  245. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  246. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
  247. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +8 -8
  248. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  249. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  250. package/dist/SingleGraphDashboardThreeDGraphs.js +59 -56
  251. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  252. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  253. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
  254. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +7 -7
  255. package/dist/SlopeChart.cjs +1 -1
  256. package/dist/SlopeChart.cjs.map +1 -1
  257. package/dist/SlopeChart.js +60 -59
  258. package/dist/SlopeChart.js.map +1 -1
  259. package/dist/Source.cjs +1 -1
  260. package/dist/Source.cjs.map +1 -1
  261. package/dist/Source.js +38 -4
  262. package/dist/Source.js.map +1 -1
  263. package/dist/SparkLine.cjs +1 -1
  264. package/dist/SparkLine.cjs.map +1 -1
  265. package/dist/SparkLine.js +11 -10
  266. package/dist/SparkLine.js.map +1 -1
  267. package/dist/StatCardFromData.cjs +1 -1
  268. package/dist/StatCardFromData.cjs.map +1 -1
  269. package/dist/StatCardFromData.js +15 -14
  270. package/dist/StatCardFromData.js.map +1 -1
  271. package/dist/StripChart.cjs +1 -1
  272. package/dist/StripChart.cjs.map +1 -1
  273. package/dist/StripChart.js +11 -10
  274. package/dist/StripChart.js.map +1 -1
  275. package/dist/ThreeDGlobe.cjs +1 -1
  276. package/dist/ThreeDGlobe.cjs.map +1 -1
  277. package/dist/ThreeDGlobe.js +52 -51
  278. package/dist/ThreeDGlobe.js.map +1 -1
  279. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  280. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  281. package/dist/ThresholdColorLegendWithMouseOver.js +17 -16
  282. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  283. package/dist/{Tooltip-3EYDVa3w.js → Tooltip-DO56mY4b.js} +11 -10
  284. package/dist/{Tooltip-3EYDVa3w.js.map → Tooltip-DO56mY4b.js.map} +1 -1
  285. package/dist/Tooltip-DwUFLDrj.cjs +2 -0
  286. package/dist/{Tooltip-C9F3uYG0.cjs.map → Tooltip-DwUFLDrj.cjs.map} +1 -1
  287. package/dist/TreeMapGraph.cjs +1 -1
  288. package/dist/TreeMapGraph.cjs.map +1 -1
  289. package/dist/TreeMapGraph.js +34 -33
  290. package/dist/TreeMapGraph.js.map +1 -1
  291. package/dist/UnitChart.cjs +1 -1
  292. package/dist/UnitChart.cjs.map +1 -1
  293. package/dist/UnitChart.js +27 -27
  294. package/dist/WaterfallChart.cjs +1 -1
  295. package/dist/WaterfallChart.cjs.map +1 -1
  296. package/dist/WaterfallChart.js +21 -20
  297. package/dist/WaterfallChart.js.map +1 -1
  298. package/dist/XAxesLabels-0ROJnigy.cjs +2 -0
  299. package/dist/{XAxesLabels-C03jHniq.cjs.map → XAxesLabels-0ROJnigy.cjs.map} +1 -1
  300. package/dist/{XAxesLabels-B9gkjUiC.js → XAxesLabels-CPZX3OJN.js} +12 -11
  301. package/dist/XAxesLabels-CPZX3OJN.js.map +1 -0
  302. package/dist/XTicksAndGridLines-BO6KJc8d.cjs +2 -0
  303. package/dist/{XTicksAndGridLines-B4UhDVyU.cjs.map → XTicksAndGridLines-BO6KJc8d.cjs.map} +1 -1
  304. package/dist/{XTicksAndGridLines-CkYwVshF.js → XTicksAndGridLines-obTK2e7G.js} +10 -9
  305. package/dist/{XTicksAndGridLines-CkYwVshF.js.map → XTicksAndGridLines-obTK2e7G.js.map} +1 -1
  306. package/dist/{YAxesLabels-hWEUCTvs.js → YAxesLabels-CwVnFG2a.js} +13 -12
  307. package/dist/YAxesLabels-CwVnFG2a.js.map +1 -0
  308. package/dist/YAxesLabels-DIa2cEXL.cjs +2 -0
  309. package/dist/{YAxesLabels-DeENFC2M.cjs.map → YAxesLabels-DIa2cEXL.cjs.map} +1 -1
  310. package/dist/YTicksAndGridLines-C7glLI5b.cjs +2 -0
  311. package/dist/{YTicksAndGridLines-sT3zdCs6.cjs.map → YTicksAndGridLines-C7glLI5b.cjs.map} +1 -1
  312. package/dist/{YTicksAndGridLines-BbujwxOB.js → YTicksAndGridLines-wtuAKNeT.js} +10 -9
  313. package/dist/{YTicksAndGridLines-BbujwxOB.js.map → YTicksAndGridLines-wtuAKNeT.js.map} +1 -1
  314. package/dist/checkIfMultiple-BIEQDuA3.cjs +2 -0
  315. package/dist/checkIfMultiple-BIEQDuA3.cjs.map +1 -0
  316. package/dist/checkIfMultiple-D2tgEnYM.js +11 -0
  317. package/dist/checkIfMultiple-D2tgEnYM.js.map +1 -0
  318. package/dist/compiler-runtime-oPPev21o.cjs +11 -0
  319. package/dist/compiler-runtime-oPPev21o.cjs.map +1 -0
  320. package/dist/compiler-runtime-qHgugrLy.js +297 -0
  321. package/dist/compiler-runtime-qHgugrLy.js.map +1 -0
  322. package/dist/customArea-BCGIYDQa.cjs +2 -0
  323. package/dist/{customArea-BAcQ3pBM.cjs.map → customArea-BCGIYDQa.cjs.map} +1 -1
  324. package/dist/{customArea-D89lETG0.js → customArea-Dixg0NtQ.js} +10 -9
  325. package/dist/{customArea-D89lETG0.js.map → customArea-Dixg0NtQ.js.map} +1 -1
  326. package/dist/{fetchAndParseData-BAXhgTDM.js → fetchAndParseData-CDjQZ1fL.js} +5 -5
  327. package/dist/{fetchAndParseData-BAXhgTDM.js.map → fetchAndParseData-CDjQZ1fL.js.map} +1 -1
  328. package/dist/fetchAndParseData.js +1 -1
  329. package/dist/getSliderMarks-Bj_JJTtX.cjs +2 -0
  330. package/dist/getSliderMarks-Bj_JJTtX.cjs.map +1 -0
  331. package/dist/getSliderMarks-DSxFGb1f.js +21 -0
  332. package/dist/getSliderMarks-DSxFGb1f.js.map +1 -0
  333. package/dist/index-5BQWR1Z8.cjs +10 -0
  334. package/dist/{index-FXfr51ZM.cjs.map → index-5BQWR1Z8.cjs.map} +1 -1
  335. package/dist/index-BaXzoD4r.cjs +2 -0
  336. package/dist/{index-BuhBhuCq.cjs.map → index-BaXzoD4r.cjs.map} +1 -1
  337. package/dist/{index-Cv_5q6Rb.js → index-CNUlPiEL.js} +3 -3
  338. package/dist/{index-Cv_5q6Rb.js.map → index-CNUlPiEL.js.map} +1 -1
  339. package/dist/{index-DHVGV8Df.js → index-CmkqqFRG.js} +3 -3
  340. package/dist/{index-DHVGV8Df.js.map → index-CmkqqFRG.js.map} +1 -1
  341. package/dist/index-D_ls5oK8.js +142 -0
  342. package/dist/index-D_ls5oK8.js.map +1 -0
  343. package/dist/index-DbSnila_.cjs +2 -0
  344. package/dist/index-DbSnila_.cjs.map +1 -0
  345. package/dist/{index-BPyj_6hG.js → index-_w-CQAbR.js} +113 -112
  346. package/dist/{index-BPyj_6hG.js.map → index-_w-CQAbR.js.map} +1 -1
  347. package/dist/index-dN3wiQgD.cjs +2 -0
  348. package/dist/{index-DuLvdHo2.cjs.map → index-dN3wiQgD.cjs.map} +1 -1
  349. package/dist/index.cjs +1 -1
  350. package/dist/index.d.ts +16 -0
  351. package/dist/index.js +181 -180
  352. package/dist/index.js.map +1 -1
  353. package/dist/{proxy-BsxtcZKa.js → proxy-D31SA_aE.js} +2 -2
  354. package/dist/{proxy-BsxtcZKa.js.map → proxy-D31SA_aE.js.map} +1 -1
  355. package/dist/proxy-QMeVVqam.cjs +2 -0
  356. package/dist/{proxy-CqH8m8IQ.cjs.map → proxy-QMeVVqam.cjs.map} +1 -1
  357. package/dist/style.css +1 -1
  358. package/dist/transformData.js +2 -2
  359. package/dist/{transformDataForGraphFromFile-dt9sHTVy.js → transformDataForGraphFromFile-COZC6A0_.js} +4 -4
  360. package/dist/{transformDataForGraphFromFile-dt9sHTVy.js.map → transformDataForGraphFromFile-COZC6A0_.js.map} +1 -1
  361. package/dist/{use-in-view-KOXq5Kmc.js → use-in-view-Co5SmzfT.js} +2 -2
  362. package/dist/{use-in-view-KOXq5Kmc.js.map → use-in-view-Co5SmzfT.js.map} +1 -1
  363. package/dist/use-in-view-DjR_gqJP.cjs +2 -0
  364. package/dist/{use-in-view-dnRv_qqF.cjs.map → use-in-view-DjR_gqJP.cjs.map} +1 -1
  365. package/package.json +1 -1
  366. package/dist/Axis-BTaS9oPQ.cjs +0 -2
  367. package/dist/AxisTitle-CyLCqpW6.js +0 -29
  368. package/dist/AxisTitle-CyLCqpW6.js.map +0 -1
  369. package/dist/AxisTitle-DP_evhbe.cjs +0 -2
  370. package/dist/DetailsModal-Du8Fr1QD.cjs +0 -2
  371. package/dist/DropdownSelect-CX1yMemd.cjs +0 -5
  372. package/dist/DropdownSelect-CX1yMemd.cjs.map +0 -1
  373. package/dist/DropdownSelect-Dz7imdTB.js +0 -4191
  374. package/dist/DropdownSelect-Dz7imdTB.js.map +0 -1
  375. package/dist/EmptyState-CFmiFPHz.cjs +0 -2
  376. package/dist/GraphContainer-B8ZqOzKI.js.map +0 -1
  377. package/dist/GraphContainer-Cul9b74X.cjs +0 -2
  378. package/dist/GraphEl-BgkDbq50.cjs +0 -2
  379. package/dist/Modal-BIErPPKT.cjs +0 -46
  380. package/dist/Modal-BIErPPKT.cjs.map +0 -1
  381. package/dist/Modal-CrUYln5V.js +0 -1047
  382. package/dist/Modal-CrUYln5V.js.map +0 -1
  383. package/dist/ReferenceLine-CpU4G01Y.cjs +0 -2
  384. package/dist/ReferenceLine-D41VuUhE.js.map +0 -1
  385. package/dist/RegressionLine-BFoBiVJk.cjs +0 -2
  386. package/dist/RegressionLine-CuwB42I6.js +0 -87
  387. package/dist/RegressionLine-CuwB42I6.js.map +0 -1
  388. package/dist/Source-PKuwZOn3.cjs +0 -2
  389. package/dist/Source-PKuwZOn3.cjs.map +0 -1
  390. package/dist/Source-QGk8vhkS.js +0 -78
  391. package/dist/Source-QGk8vhkS.js.map +0 -1
  392. package/dist/Spinner-B2IIKg9r.js +0 -47
  393. package/dist/Spinner-B2IIKg9r.js.map +0 -1
  394. package/dist/Spinner-WHzzloYQ.cjs +0 -2
  395. package/dist/Spinner-WHzzloYQ.cjs.map +0 -1
  396. package/dist/Tooltip-C9F3uYG0.cjs +0 -2
  397. package/dist/Typography-BO0gQDIT.js +0 -270
  398. package/dist/Typography-BO0gQDIT.js.map +0 -1
  399. package/dist/Typography-BqmyF1gP.cjs +0 -2
  400. package/dist/Typography-BqmyF1gP.cjs.map +0 -1
  401. package/dist/XAxesLabels-B9gkjUiC.js.map +0 -1
  402. package/dist/XAxesLabels-C03jHniq.cjs +0 -2
  403. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +0 -2
  404. package/dist/YAxesLabels-DeENFC2M.cjs +0 -2
  405. package/dist/YAxesLabels-hWEUCTvs.js.map +0 -1
  406. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +0 -2
  407. package/dist/checkIfMultiple-CH5tqj4q.cjs +0 -2
  408. package/dist/checkIfMultiple-CH5tqj4q.cjs.map +0 -1
  409. package/dist/checkIfMultiple-Dpyy6BUP.js +0 -938
  410. package/dist/checkIfMultiple-Dpyy6BUP.js.map +0 -1
  411. package/dist/customArea-BAcQ3pBM.cjs +0 -2
  412. package/dist/getSliderMarks-BzrpHrHS.cjs +0 -2
  413. package/dist/getSliderMarks-BzrpHrHS.cjs.map +0 -1
  414. package/dist/getSliderMarks-X-_goqH9.js +0 -1027
  415. package/dist/getSliderMarks-X-_goqH9.js.map +0 -1
  416. package/dist/index-ApTBN0kp.js +0 -196
  417. package/dist/index-ApTBN0kp.js.map +0 -1
  418. package/dist/index-BhI7mBJx.cjs +0 -2
  419. package/dist/index-BhI7mBJx.cjs.map +0 -1
  420. package/dist/index-BuhBhuCq.cjs +0 -2
  421. package/dist/index-CHPV5EwG-BzibaIRc.js +0 -3360
  422. package/dist/index-CHPV5EwG-BzibaIRc.js.map +0 -1
  423. package/dist/index-CHPV5EwG-D4pAp7u0.cjs +0 -20
  424. package/dist/index-CHPV5EwG-D4pAp7u0.cjs.map +0 -1
  425. package/dist/index-DuLvdHo2.cjs +0 -2
  426. package/dist/index-FXfr51ZM.cjs +0 -10
  427. package/dist/index-Scxs_wcm-BAjU0Cob.js +0 -49
  428. package/dist/index-Scxs_wcm-BAjU0Cob.js.map +0 -1
  429. package/dist/index-Scxs_wcm-DUDU-Gll.cjs +0 -2
  430. package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +0 -1
  431. package/dist/index-w64Zl8io-DrMm5QSb.cjs +0 -2
  432. package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +0 -1
  433. package/dist/index-w64Zl8io-ihagHOdP.js +0 -459
  434. package/dist/index-w64Zl8io-ihagHOdP.js.map +0 -1
  435. package/dist/proxy-CqH8m8IQ.cjs +0 -2
  436. package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs +0 -4
  437. package/dist/toConsumableArray-DiWOvh_d-DcLaZvDq.cjs.map +0 -1
  438. package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js +0 -145
  439. package/dist/toConsumableArray-DiWOvh_d-DlpOlgap.js.map +0 -1
  440. package/dist/use-in-view-dnRv_qqF.cjs +0 -2
  441. package/dist/x-BXShoIAM-BC2sxios.cjs +0 -2
  442. package/dist/x-BXShoIAM-BC2sxios.cjs.map +0 -1
  443. package/dist/x-BXShoIAM-D6VWO6z5.js +0 -74
  444. package/dist/x-BXShoIAM-D6VWO6z5.js.map +0 -1
@@ -1,13 +1,13 @@
1
- import { c as f, j as s } from "./index-CHPV5EwG-BzibaIRc.js";
1
+ import { c as f, j as s } from "./compiler-runtime-qHgugrLy.js";
2
2
  import { useState as p, useEffect as h } from "react";
3
- import { w as c } from "./Spinner-B2IIKg9r.js";
3
+ import { Spinner as c } from "@undp/design-system-react/Spinner";
4
4
  import { SingleGraphDashboardThreeDGraphs as S } from "./SingleGraphDashboardThreeDGraphs.js";
5
- import { f as m } from "./fetchAndParseData-BAXhgTDM.js";
5
+ import { b as m } from "./fetchAndParseData-CDjQZ1fL.js";
6
6
  function F(g) {
7
7
  const e = f.c(19), {
8
8
  config: a
9
9
  } = g, [t, d] = p(void 0);
10
- let r, o;
10
+ let r, n;
11
11
  if (e[0] !== a ? (r = () => {
12
12
  (async () => {
13
13
  if (typeof a == "string") {
@@ -16,12 +16,12 @@ function F(g) {
16
16
  } else
17
17
  d(a);
18
18
  })();
19
- }, o = [a], e[0] = a, e[1] = r, e[2] = o) : (r = e[1], o = e[2]), h(r, o), !t) {
19
+ }, n = [a], e[0] = a, e[1] = r, e[2] = n) : (r = e[1], n = e[2]), h(r, n), !t) {
20
20
  let i;
21
21
  return e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ s.jsx("div", { className: "w-full flex justify-center p-4", children: /* @__PURE__ */ s.jsx(c, {}) }), e[3] = i) : i = e[3], i;
22
22
  }
23
- let n;
24
- return e[4] !== t.advancedDataSelectionOptions || e[5] !== t.dataFilters || e[6] !== t.dataSelectionOptions || e[7] !== t.dataSettings || e[8] !== t.dataTransform || e[9] !== t.debugMode || e[10] !== t.filters || e[11] !== t.graphDataConfiguration || e[12] !== t.graphSettings || e[13] !== t.graphType || e[14] !== t.highlightDataPointSettings || e[15] !== t.noOfFiltersPerRow || e[16] !== t.readableHeader || e[17] !== t.uiMode ? (n = /* @__PURE__ */ s.jsx(S, { graphSettings: t.graphSettings, dataSettings: t.dataSettings, filters: t.filters, graphType: t.graphType, dataTransform: t.dataTransform, graphDataConfiguration: t.graphDataConfiguration, dataFilters: t.dataFilters, debugMode: t.debugMode, dataSelectionOptions: t.dataSelectionOptions, advancedDataSelectionOptions: t.advancedDataSelectionOptions, readableHeader: t.readableHeader, noOfFiltersPerRow: t.noOfFiltersPerRow, uiMode: t.uiMode, highlightDataPointSettings: t.highlightDataPointSettings }), e[4] = t.advancedDataSelectionOptions, e[5] = t.dataFilters, e[6] = t.dataSelectionOptions, e[7] = t.dataSettings, e[8] = t.dataTransform, e[9] = t.debugMode, e[10] = t.filters, e[11] = t.graphDataConfiguration, e[12] = t.graphSettings, e[13] = t.graphType, e[14] = t.highlightDataPointSettings, e[15] = t.noOfFiltersPerRow, e[16] = t.readableHeader, e[17] = t.uiMode, e[18] = n) : n = e[18], n;
23
+ let o;
24
+ return e[4] !== t.advancedDataSelectionOptions || e[5] !== t.dataFilters || e[6] !== t.dataSelectionOptions || e[7] !== t.dataSettings || e[8] !== t.dataTransform || e[9] !== t.debugMode || e[10] !== t.filters || e[11] !== t.graphDataConfiguration || e[12] !== t.graphSettings || e[13] !== t.graphType || e[14] !== t.highlightDataPointSettings || e[15] !== t.noOfFiltersPerRow || e[16] !== t.readableHeader || e[17] !== t.uiMode ? (o = /* @__PURE__ */ s.jsx(S, { graphSettings: t.graphSettings, dataSettings: t.dataSettings, filters: t.filters, graphType: t.graphType, dataTransform: t.dataTransform, graphDataConfiguration: t.graphDataConfiguration, dataFilters: t.dataFilters, debugMode: t.debugMode, dataSelectionOptions: t.dataSelectionOptions, advancedDataSelectionOptions: t.advancedDataSelectionOptions, readableHeader: t.readableHeader, noOfFiltersPerRow: t.noOfFiltersPerRow, uiMode: t.uiMode, highlightDataPointSettings: t.highlightDataPointSettings }), e[4] = t.advancedDataSelectionOptions, e[5] = t.dataFilters, e[6] = t.dataSelectionOptions, e[7] = t.dataSettings, e[8] = t.dataTransform, e[9] = t.debugMode, e[10] = t.filters, e[11] = t.graphDataConfiguration, e[12] = t.graphSettings, e[13] = t.graphType, e[14] = t.highlightDataPointSettings, e[15] = t.noOfFiltersPerRow, e[16] = t.readableHeader, e[17] = t.uiMode, e[18] = o) : o = e[18], o;
25
25
  }
26
26
  export {
27
27
  F as SingleGraphDashboardThreeDGraphsFromConfig
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-CHPV5EwG-D4pAp7u0.cjs"),H=require("react"),Qt=require("./index-DQA8q5sC.cjs"),Zt=require("./Tooltip-C9F3uYG0.cjs"),Yt=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),f=require("./Colors.cjs"),Xt=require("./Axis-BTaS9oPQ.cjs"),Ft=require("./AxisTitle-DP_evhbe.cjs"),_t=require("./DetailsModal-Du8Fr1QD.cjs"),te=require("./linear-CgUCbw9F.cjs"),yt=require("./proxy-CqH8m8IQ.cjs"),ee=require("./use-in-view-dnRv_qqF.cjs"),ie=require("./index-FXfr51ZM.cjs"),oe=require("./GraphFooter.cjs"),ne=require("./GraphHeader.cjs"),le=require("./ColorLegendWithMouseOver.cjs"),re=require("./EmptyState-CFmiFPHz.cjs"),zt=require("./uniqBy-O05lp2S5.cjs"),Jt=require("./GraphContainer-Cul9b74X.cjs");function se(e){const t=l.compilerRuntimeExports.c(148),{data:o,width:G,height:h,showLabels:rt,colors:n,colorDomain:x,radius:s,leftMargin:y,rightMargin:dt,topMargin:P,bottomMargin:bt,tooltip:Ot,onSeriesMouseOver:st,axisTitles:g,highlightedDataPoints:j,selectedColor:at,minValue:ct,maxValue:ut,onSeriesMouseClick:ht,resetSelectionOnDoubleClick:At,detailsOnClick:S,styles:m,classNames:u,animate:a,dimmedOpacity:v,customLayers:k}=e,Mt=H.useRef(null);let gt;t[0]!==a.amount||t[1]!==a.once?(gt={once:a.once,amount:a.amount},t[0]=a.amount,t[1]=a.once,t[2]=gt):gt=t[2];const w=ee.useInView(Mt,gt),[b,St]=H.useState(void 0),[W,Dt]=H.useState(void 0),[Et,Nt]=H.useState(void 0),[vt,It]=H.useState(void 0);let Ct;t[3]!==bt||t[4]!==y||t[5]!==dt||t[6]!==P?(Ct={top:P,bottom:bt,left:y,right:dt},t[3]=bt,t[4]=y,t[5]=dt,t[6]=P,t[7]=Ct):Ct=t[7];const c=Ct,r=G-c.left-c.right,C=h-c.top-c.bottom;let $t;t[8]!==o?($t=Math.min(...o.map(Ne)),t[8]=o,t[9]=$t):$t=t[9];let xt;t[10]!==o?(xt=Math.min(...o.map(De)),t[10]=o,t[11]=xt):xt=t[11];const Y=Math.min($t,xt);let jt;t[12]!==o?(jt=Math.max(...o.map(Se)),t[12]=o,t[13]=jt):jt=t[13];let ft;t[14]!==o?(ft=Math.max(...o.map(Me)),t[14]=o,t[15]=ft):ft=t[15];const U=Math.max(jt,ft);let B,X,R,F,z,J,D,N,I,K,Q,M,d;if(t[16]!==a.duration||t[17]!==g[0]||t[18]!==g[1]||t[19]!==u?.dataConnectors||t[20]!==u?.yAxis?.axis||t[21]!==u?.yAxis?.labels||t[22]!==u?.yAxis?.title||t[23]!==x||t[24]!==n||t[25]!==k||t[26]!==o||t[27]!==S||t[28]!==v||t[29]!==C||t[30]!==r||t[31]!==h||t[32]!==j||t[33]!==w||t[34]!==c.left||t[35]!==c.top||t[36]!==ut||t[37]!==U||t[38]!==ct||t[39]!==Y||t[40]!==W||t[41]!==b||t[42]!==ht||t[43]!==st||t[44]!==s||t[45]!==At||t[46]!==at||t[47]!==rt||t[48]!==m?.dataConnectors||t[49]!==m?.yAxis?.labels||t[50]!==m?.yAxis?.title||t[51]!==G){let mt;t[65]!==ct||t[66]!==Y?(mt=Yt.checkIfNullOrUndefined(ct)?Y>0?0:Y:ct,t[65]=ct,t[66]=Y,t[67]=mt):mt=t[67];let qt;t[68]!==ut||t[69]!==U?(qt=Yt.checkIfNullOrUndefined(ut)?U>0?U:0:ut,t[68]=ut,t[69]=U,t[70]=qt):qt=t[70];const p=te.linear().domain([mt,qt]).range([C,0]).nice();X=yt.motion.svg,F=`${G}px`,z=`${h}px`,J=`0 0 ${G} ${h}`,D="mx-auto",N="ltr",I=Mt,Q=`translate(${c.left},${c.top})`;const Pt=u?.yAxis?.axis;let et;t[71]!==Pt?(et=l.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",Pt),t[71]=Pt,t[72]=et):et=t[72];let pt;t[73]!==et?(pt={axis:et},t[73]=et,t[74]=pt):pt=t[74];let L;t[75]!==C||t[76]!==s||t[77]!==pt?(L=l.jsxRuntimeExports.jsx(Xt.Axis,{y1:0,y2:C,x1:s,x2:s,classNames:pt}),t[75]=C,t[76]=s,t[77]=pt,t[78]=L):L=t[78];const wt=C+15,kt=m?.yAxis?.title,Rt=u?.yAxis?.title;let it;t[79]!==Rt?(it=l.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",Rt),t[79]=Rt,t[80]=it):it=t[80];let A;t[81]!==g[0]||t[82]!==s||t[83]!==wt||t[84]!==kt||t[85]!==it?(A=l.jsxRuntimeExports.jsx(Ft.AxisTitle,{x:s,y:wt,style:kt,className:it,text:g[0]}),t[81]=g[0],t[82]=s,t[83]=wt,t[84]=kt,t[85]=it,t[86]=A):A=t[86],t[87]!==L||t[88]!==A?(M=l.jsxRuntimeExports.jsxs("g",{children:[L,A]}),t[87]=L,t[88]=A,t[89]=M):M=t[89];const ot=r-s,nt=r-s,lt=u?.yAxis?.axis;let E;t[90]!==lt?(E=l.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",lt),t[90]=lt,t[91]=E):E=t[91];let $;t[92]!==E?($={axis:E},t[92]=E,t[93]=$):$=t[93];let T;t[94]!==C||t[95]!==ot||t[96]!==nt||t[97]!==$?(T=l.jsxRuntimeExports.jsx(Xt.Axis,{y1:0,y2:C,x1:ot,x2:nt,classNames:$}),t[94]=C,t[95]=ot,t[96]=nt,t[97]=$,t[98]=T):T=t[98];const Lt=r-s,Tt=C+15,Ut=m?.yAxis?.title,Bt=u?.yAxis?.title;let Ht;t[99]!==Bt?(Ht=l.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",Bt),t[99]=Bt,t[100]=Ht):Ht=t[100];let Gt;t[101]!==g[1]||t[102]!==Lt||t[103]!==Tt||t[104]!==Ut||t[105]!==Ht?(Gt=l.jsxRuntimeExports.jsx(Ft.AxisTitle,{x:Lt,y:Tt,style:Ut,className:Ht,text:g[1]}),t[101]=g[1],t[102]=Lt,t[103]=Tt,t[104]=Ut,t[105]=Ht,t[106]=Gt):Gt=t[106],t[107]!==T||t[108]!==Gt?(d=l.jsxRuntimeExports.jsxs("g",{children:[T,Gt]}),t[107]=T,t[108]=Gt,t[109]=d):d=t[109],t[110]!==k?(R=k.filter(Re).map(ke),t[110]=k,t[111]=R):R=t[111],B=ie.AnimatePresence,K=o.map((i,Kt)=>l.jsxRuntimeExports.jsxs(yt.motion.g,{variants:{initial:{opacity:at?i.color&&n[x.indexOf(`${i.color}`)]===at?1:v:b?b.label===i.label?1:v:j?j.indexOf(i.label)!==-1?1:v:1},whileInView:{opacity:at?i.color&&n[x.indexOf(`${i.color}`)]===at?1:v:b?b.label===i.label?1:v:j?j.indexOf(i.label)!==-1?1:v:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:Wt=>{St(i),It(Wt.clientY),Nt(Wt.clientX),st?.(i)},onMouseMove:Wt=>{St(i),It(Wt.clientY),Nt(Wt.clientX)},onMouseLeave:()=>{St(void 0),Nt(void 0),It(void 0),st?.(void 0)},onClick:()=>{(ht||S)&&(Qt.isEqual(W,i)&&At?(Dt(void 0),ht?.(void 0)):(Dt(i),ht?.(i)))},children:[l.jsxRuntimeExports.jsx(yt.motion.circle,{variants:{initial:{cx:s,cy:p(i.y1),fill:o.filter($e).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(Ee).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{cx:s,cy:p(i.y1),fill:o.filter(Ae).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(Oe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},r:s,style:{fillOpacity:.6}}),rt?l.jsxRuntimeExports.jsx(yt.motion.text,{variants:{initial:{y:p(i.y1),fill:o.filter(be).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:p(i.y1),fill:o.filter(we).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},style:{textAnchor:"end",...m?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:5,dy:"0.33em",textAnchor:"end",dx:0-s-3,children:i.label}):j&&j.indexOf(i.label)!==-1?l.jsxRuntimeExports.jsx(yt.motion.text,{variants:{initial:{y:p(i.y1),fill:o.filter(je).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:p(i.y1),fill:o.filter(Ce).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},style:{textAnchor:"end",...m?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:5,dy:"0.33em",dx:-3,children:i.label}):null,l.jsxRuntimeExports.jsx(yt.motion.circle,{variants:{initial:{cx:r-s,cy:p(i.y2),fill:o.filter(ve).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(ge).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{cx:r-s,cy:p(i.y2),fill:o.filter(he).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(de).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},r:s,style:{fillOpacity:.6}}),rt?l.jsxRuntimeExports.jsx(yt.motion.text,{variants:{initial:{y:p(i.y2),fill:o.filter(ye).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:p(i.y2),fill:o.filter(pe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},style:{textAnchor:"start",...m?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:r-5,dy:"0.33em",dx:s+3,children:i.label}):j&&j.indexOf(i.label)!==-1?l.jsxRuntimeExports.jsx(yt.motion.text,{variants:{initial:{y:p(i.y2),fill:o.filter(me).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:p(i.y2),fill:o.filter(fe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},style:{textAnchor:"start",...m?.yAxis?.labels||{}},className:l.mo("text-xs",u?.yAxis?.labels),x:r-5,dy:"0.33em",dx:3,children:i.label}):null,l.jsxRuntimeExports.jsx(yt.motion.line,{variants:{initial:{x1:s,x2:r-s,y1:p(i.y1),y2:p(i.y1),stroke:o.filter(xe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray},whileInView:{x1:s,x2:r-s,y1:p(i.y1),y2:p(i.y2),stroke:o.filter(ue).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},className:u?.dataConnectors,style:{fill:"none",strokeWidth:1,...m?.dataConnectors}})]},Kt)),t[16]=a.duration,t[17]=g[0],t[18]=g[1],t[19]=u?.dataConnectors,t[20]=u?.yAxis?.axis,t[21]=u?.yAxis?.labels,t[22]=u?.yAxis?.title,t[23]=x,t[24]=n,t[25]=k,t[26]=o,t[27]=S,t[28]=v,t[29]=C,t[30]=r,t[31]=h,t[32]=j,t[33]=w,t[34]=c.left,t[35]=c.top,t[36]=ut,t[37]=U,t[38]=ct,t[39]=Y,t[40]=W,t[41]=b,t[42]=ht,t[43]=st,t[44]=s,t[45]=At,t[46]=at,t[47]=rt,t[48]=m?.dataConnectors,t[49]=m?.yAxis?.labels,t[50]=m?.yAxis?.title,t[51]=G,t[52]=B,t[53]=X,t[54]=R,t[55]=F,t[56]=z,t[57]=J,t[58]=D,t[59]=N,t[60]=I,t[61]=K,t[62]=Q,t[63]=M,t[64]=d}else B=t[52],X=t[53],R=t[54],F=t[55],z=t[56],J=t[57],D=t[58],N=t[59],I=t[60],K=t[61],Q=t[62],M=t[63],d=t[64];let Z;t[112]!==B||t[113]!==K?(Z=l.jsxRuntimeExports.jsx(B,{children:K}),t[112]=B,t[113]=K,t[114]=Z):Z=t[114];let V;t[115]!==k?(V=k.filter(ce).map(ae),t[115]=k,t[116]=V):V=t[116];let _;t[117]!==R||t[118]!==Z||t[119]!==V||t[120]!==Q||t[121]!==M||t[122]!==d?(_=l.jsxRuntimeExports.jsxs("g",{transform:Q,children:[M,d,R,Z,V]}),t[117]=R,t[118]=Z,t[119]=V,t[120]=Q,t[121]=M,t[122]=d,t[123]=_):_=t[123];let q;t[124]!==X||t[125]!==F||t[126]!==z||t[127]!==J||t[128]!==D||t[129]!==N||t[130]!==I||t[131]!==_?(q=l.jsxRuntimeExports.jsx(X,{width:F,height:z,viewBox:J,className:D,direction:N,ref:I,children:_}),t[124]=X,t[125]=F,t[126]=z,t[127]=J,t[128]=D,t[129]=N,t[130]=I,t[131]=_,t[132]=q):q=t[132];let tt;t[133]!==u?.tooltip||t[134]!==Et||t[135]!==vt||t[136]!==b||t[137]!==m?.tooltip||t[138]!==Ot?(tt=b&&Ot&&Et&&vt?l.jsxRuntimeExports.jsx(Zt.Tooltip,{data:b,body:Ot,xPos:Et,yPos:vt,backgroundStyle:m?.tooltip,className:u?.tooltip}):null,t[133]=u?.tooltip,t[134]=Et,t[135]=vt,t[136]=b,t[137]=m?.tooltip,t[138]=Ot,t[139]=tt):tt=t[139];let O;t[140]!==u?.modal||t[141]!==S||t[142]!==W?(O=S&&W!==void 0?l.jsxRuntimeExports.jsx(_t.DetailsModal,{body:S,data:W,setData:Dt,className:u?.modal}):null,t[140]=u?.modal,t[141]=S,t[142]=W,t[143]=O):O=t[143];let Vt;return t[144]!==q||t[145]!==tt||t[146]!==O?(Vt=l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[q,tt,O]}),t[144]=q,t[145]=tt,t[146]=O,t[147]=Vt):Vt=t[147],Vt}function ae(e){return e.layer}function ce(e){return e.position==="after"}function ue(e){return e.color}function xe(e){return e.color}function fe(e){return e.color}function me(e){return e.color}function pe(e){return e.color}function ye(e){return e.color}function de(e){return e.color}function he(e){return e.color}function ge(e){return e.color}function ve(e){return e.color}function Ce(e){return e.color}function je(e){return e.color}function we(e){return e.color}function be(e){return e.color}function Oe(e){return e.color}function Ae(e){return e.color}function Ee(e){return e.color}function $e(e){return e.color}function ke(e){return e.layer}function Re(e){return e.position==="before"}function Me(e){return e.y2}function Se(e){return e.y1}function De(e){return e.y2}function Ne(e){return e.y1}function Ie(e){const t=l.compilerRuntimeExports.c(87),{data:o,graphTitle:G,colors:h,sources:rt,graphDescription:n,showLabels:x,height:s,width:y,footNote:dt,colorDomain:P,colorLegendTitle:bt,radius:Ot,axisTitles:st,padding:g,backgroundColor:j,leftMargin:at,rightMargin:ct,topMargin:ut,bottomMargin:ht,tooltip:At,relativeHeight:S,onSeriesMouseOver:m,showColorScale:u,highlightedDataPoints:a,graphID:v,minValue:k,maxValue:Mt,onSeriesMouseClick:gt,graphDownload:w,dataDownload:b,fillContainer:St,language:W,showNAColor:Dt,minHeight:Et,theme:Nt,ariaLabel:vt,resetSelectionOnDoubleClick:It,detailsOnClick:Ct,styles:c,classNames:r,animate:C,dimmedOpacity:$t,customLayers:xt}=e,Y=x===void 0?!1:x,jt=Ot===void 0?5:Ot;let ft;t[0]!==st?(ft=st===void 0?["",""]:st,t[0]=st,t[1]=ft):ft=t[1];const U=ft,B=j===void 0?!1:j,X=at===void 0?50:at,R=ct===void 0?50:ct,F=ut===void 0?20:ut,z=ht===void 0?20:ht,J=u===void 0?!0:u,D=w===void 0?!1:w,N=b===void 0?!1:b,I=St===void 0?!0:St,K=W===void 0?"en":W,Q=Dt===void 0?!0:Dt,M=Et===void 0?0:Et,d=Nt===void 0?"light":Nt,Z=It===void 0?!0:It,V=C===void 0?!1:C,_=$t===void 0?.3:$t;let q;t[2]!==xt?(q=xt===void 0?[]:xt,t[2]=xt,t[3]=q):q=t[3];const tt=q,[O,Vt]=H.useState(0),[mt,qt]=H.useState(0),[p,Pt]=H.useState(void 0),et=H.useRef(null),pt=H.useRef(null);let L,wt;t[4]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{const Lt=new ResizeObserver(Tt=>{Vt(Tt[0].target.clientWidth||620),qt(Tt[0].target.clientHeight||480)});return et.current&&Lt.observe(et.current),()=>Lt.disconnect()},wt=[],t[4]=L,t[5]=wt):(L=t[4],wt=t[5]),H.useEffect(L,wt);const kt=r?.graphContainer,Rt=c?.graphContainer,it=I?void 0:y;let A;t[6]!==r?.description||t[7]!==r?.title||t[8]!==o||t[9]!==N||t[10]!==n||t[11]!==D||t[12]!==G||t[13]!==c?.description||t[14]!==c?.title||t[15]!==y?(A=G||n||D||N?l.jsxRuntimeExports.jsx(ne.GraphHeader,{styles:{title:c?.title,description:c?.description},classNames:{title:r?.title,description:r?.description},graphTitle:G,graphDescription:n,width:y,graphDownload:D?pt:void 0,dataDownload:N?o.map(Ye).filter(We).length>0?o.map(Pe).filter(Ge):o.filter(He):null}):null,t[6]=r?.description,t[7]=r?.title,t[8]=o,t[9]=N,t[10]=n,t[11]=D,t[12]=G,t[13]=c?.description,t[14]=c?.title,t[15]=y,t[16]=A):A=t[16];let ot;t[17]!==r?.colorLegend||t[18]!==P||t[19]!==bt||t[20]!==h||t[21]!==o||t[22]!==J||t[23]!==Q||t[24]!==d||t[25]!==y?(ot=J&&o.filter(Te).length!==0&&o.length>0?l.jsxRuntimeExports.jsx(le.ColorLegendWithMouseOver,{width:y,colorLegendTitle:bt,colors:h||f.Colors[d].categoricalColors.colors,colorDomain:P||zt.uniqBy(o,"color",!0),setSelectedColor:Pt,showNAColor:Q,className:r?.colorLegend}):null,t[17]=r?.colorLegend,t[18]=P,t[19]=bt,t[20]=h,t[21]=o,t[22]=J,t[23]=Q,t[24]=d,t[25]=y,t[26]=ot):ot=t[26];let nt;t[27]!==o.length?(nt=o.length===0&&l.jsxRuntimeExports.jsx(re.EmptyState,{}),t[27]=o.length,t[28]=nt):nt=t[28];let lt;t[29]!==V||t[30]!==U||t[31]!==z||t[32]!==r||t[33]!==P||t[34]!==h||t[35]!==tt||t[36]!==o||t[37]!==Ct||t[38]!==_||t[39]!==I||t[40]!==a||t[41]!==X||t[42]!==Mt||t[43]!==k||t[44]!==gt||t[45]!==m||t[46]!==jt||t[47]!==Z||t[48]!==R||t[49]!==p||t[50]!==Y||t[51]!==c||t[52]!==mt||t[53]!==O||t[54]!==d||t[55]!==At||t[56]!==F||t[57]!==y?(lt=O&&mt&&o.length>0?l.jsxRuntimeExports.jsx(se,{data:o.filter(Le),width:I||!y||O<y?O:y,height:mt,colorDomain:o.filter(qe).length===0?[]:P||zt.uniqBy(o,"color",!0),colors:o.filter(Ve).length===0?h?[h]:[f.Colors.primaryColors["blue-600"]]:h||f.Colors[d].categoricalColors.colors,selectedColor:p,axisTitles:U,showLabels:Y,radius:jt,leftMargin:X,rightMargin:R,topMargin:F,bottomMargin:z,tooltip:At,onSeriesMouseOver:m,highlightedDataPoints:a,minValue:k,maxValue:Mt,onSeriesMouseClick:gt,resetSelectionOnDoubleClick:Z,detailsOnClick:Ct,styles:c,classNames:r,animate:V===!0?{duration:.5,once:!0,amount:.5}:V||{duration:0,once:!0,amount:0},dimmedOpacity:_,customLayers:tt}):null,t[29]=V,t[30]=U,t[31]=z,t[32]=r,t[33]=P,t[34]=h,t[35]=tt,t[36]=o,t[37]=Ct,t[38]=_,t[39]=I,t[40]=a,t[41]=X,t[42]=Mt,t[43]=k,t[44]=gt,t[45]=m,t[46]=jt,t[47]=Z,t[48]=R,t[49]=p,t[50]=Y,t[51]=c,t[52]=mt,t[53]=O,t[54]=d,t[55]=At,t[56]=F,t[57]=y,t[58]=lt):lt=t[58];let E;t[59]!==nt||t[60]!==lt?(E=l.jsxRuntimeExports.jsxs(Jt.GraphArea,{ref:et,children:[nt,lt]}),t[59]=nt,t[60]=lt,t[61]=E):E=t[61];let $;t[62]!==r?.footnote||t[63]!==r?.source||t[64]!==dt||t[65]!==rt||t[66]!==c?.footnote||t[67]!==c?.source||t[68]!==y?($=rt||dt?l.jsxRuntimeExports.jsx(oe.GraphFooter,{styles:{footnote:c?.footnote,source:c?.source},classNames:{footnote:r?.footnote,source:r?.source},sources:rt,footNote:dt,width:y}):null,t[62]=r?.footnote,t[63]=r?.source,t[64]=dt,t[65]=rt,t[66]=c?.footnote,t[67]=c?.source,t[68]=y,t[69]=$):$=t[69];let T;return t[70]!==vt||t[71]!==B||t[72]!==v||t[73]!==s||t[74]!==K||t[75]!==M||t[76]!==g||t[77]!==S||t[78]!==kt||t[79]!==Rt||t[80]!==it||t[81]!==A||t[82]!==ot||t[83]!==E||t[84]!==$||t[85]!==d?(T=l.jsxRuntimeExports.jsxs(Jt.GraphContainer,{className:kt,style:Rt,id:v,ref:pt,"aria-label":vt,backgroundColor:B,theme:d,language:K,minHeight:M,width:it,height:s,relativeHeight:S,padding:g,children:[A,ot,E,$]}),t[70]=vt,t[71]=B,t[72]=v,t[73]=s,t[74]=K,t[75]=M,t[76]=g,t[77]=S,t[78]=kt,t[79]=Rt,t[80]=it,t[81]=A,t[82]=ot,t[83]=E,t[84]=$,t[85]=d,t[86]=T):T=t[86],T}function Ve(e){return e.color}function qe(e){return e.color}function Le(e){return!Yt.checkIfNullOrUndefined(e.y1)&&!Yt.checkIfNullOrUndefined(e.y2)}function Te(e){return e.color}function He(e){return e!==void 0}function Ge(e){return e!==void 0}function Pe(e){return e.data}function We(e){return e!==void 0}function Ye(e){return e.data}exports.SlopeChart=Ie;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./compiler-runtime-oPPev21o.cjs"),H=require("react"),Zt=require("./index-DQA8q5sC.cjs"),bt=require("@undp/design-system-react/cn"),_t=require("./Tooltip-DwUFLDrj.cjs"),Ut=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),f=require("./Colors.cjs"),Ft=require("./Axis-DY7jsk1Y.cjs"),zt=require("./AxisTitle-CyFFbdNU.cjs"),te=require("./DetailsModal-BmjtLqrZ.cjs"),ee=require("./linear-CgUCbw9F.cjs"),yt=require("./proxy-QMeVVqam.cjs"),ie=require("./use-in-view-DjR_gqJP.cjs"),oe=require("./index-5BQWR1Z8.cjs"),ne=require("./GraphFooter.cjs"),le=require("./GraphHeader.cjs"),re=require("./ColorLegendWithMouseOver.cjs"),se=require("./EmptyState-BoaUUuo6.cjs"),Jt=require("./uniqBy-O05lp2S5.cjs"),Kt=require("./GraphContainer-gaG9TSy4.cjs");function ae(e){const t=r.compilerRuntimeExports.c(148),{data:o,width:G,height:h,showLabels:rt,colors:n,colorDomain:x,radius:s,leftMargin:y,rightMargin:dt,topMargin:P,bottomMargin:Ot,tooltip:At,onSeriesMouseOver:st,axisTitles:g,highlightedDataPoints:j,selectedColor:at,minValue:ct,maxValue:ut,onSeriesMouseClick:ht,resetSelectionOnDoubleClick:$t,detailsOnClick:S,styles:m,classNames:u,animate:a,dimmedOpacity:v,customLayers:R}=e,St=H.useRef(null);let gt;t[0]!==a.amount||t[1]!==a.once?(gt={once:a.once,amount:a.amount},t[0]=a.amount,t[1]=a.once,t[2]=gt):gt=t[2];const w=ie.useInView(St,gt),[b,Dt]=H.useState(void 0),[W,Nt]=H.useState(void 0),[Et,It]=H.useState(void 0),[vt,qt]=H.useState(void 0);let Ct;t[3]!==Ot||t[4]!==y||t[5]!==dt||t[6]!==P?(Ct={top:P,bottom:Ot,left:y,right:dt},t[3]=Ot,t[4]=y,t[5]=dt,t[6]=P,t[7]=Ct):Ct=t[7];const c=Ct,l=G-c.left-c.right,C=h-c.top-c.bottom;let Rt;t[8]!==o?(Rt=Math.min(...o.map(Ie)),t[8]=o,t[9]=Rt):Rt=t[9];let xt;t[10]!==o?(xt=Math.min(...o.map(Ne)),t[10]=o,t[11]=xt):xt=t[11];const Y=Math.min(Rt,xt);let jt;t[12]!==o?(jt=Math.max(...o.map(De)),t[12]=o,t[13]=jt):jt=t[13];let ft;t[14]!==o?(ft=Math.max(...o.map(Se)),t[14]=o,t[15]=ft):ft=t[15];const U=Math.max(jt,ft);let B,X,k,F,z,J,D,N,I,K,Q,M,d;if(t[16]!==a.duration||t[17]!==g[0]||t[18]!==g[1]||t[19]!==u?.dataConnectors||t[20]!==u?.yAxis?.axis||t[21]!==u?.yAxis?.labels||t[22]!==u?.yAxis?.title||t[23]!==x||t[24]!==n||t[25]!==R||t[26]!==o||t[27]!==S||t[28]!==v||t[29]!==C||t[30]!==l||t[31]!==h||t[32]!==j||t[33]!==w||t[34]!==c.left||t[35]!==c.top||t[36]!==ut||t[37]!==U||t[38]!==ct||t[39]!==Y||t[40]!==W||t[41]!==b||t[42]!==ht||t[43]!==st||t[44]!==s||t[45]!==$t||t[46]!==at||t[47]!==rt||t[48]!==m?.dataConnectors||t[49]!==m?.yAxis?.labels||t[50]!==m?.yAxis?.title||t[51]!==G){let mt;t[65]!==ct||t[66]!==Y?(mt=Ut.checkIfNullOrUndefined(ct)?Y>0?0:Y:ct,t[65]=ct,t[66]=Y,t[67]=mt):mt=t[67];let Lt;t[68]!==ut||t[69]!==U?(Lt=Ut.checkIfNullOrUndefined(ut)?U>0?U:0:ut,t[68]=ut,t[69]=U,t[70]=Lt):Lt=t[70];const p=ee.linear().domain([mt,Lt]).range([C,0]).nice();X=yt.motion.svg,F=`${G}px`,z=`${h}px`,J=`0 0 ${G} ${h}`,D="mx-auto",N="ltr",I=St,Q=`translate(${c.left},${c.top})`;const Wt=u?.yAxis?.axis;let et;t[71]!==Wt?(et=bt.cn("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",Wt),t[71]=Wt,t[72]=et):et=t[72];let pt;t[73]!==et?(pt={axis:et},t[73]=et,t[74]=pt):pt=t[74];let L;t[75]!==C||t[76]!==s||t[77]!==pt?(L=r.jsxRuntimeExports.jsx(Ft.Axis,{y1:0,y2:C,x1:s,x2:s,classNames:pt}),t[75]=C,t[76]=s,t[77]=pt,t[78]=L):L=t[78];const wt=C+15,kt=m?.yAxis?.title,Mt=u?.yAxis?.title;let it;t[79]!==Mt?(it=bt.cn("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",Mt),t[79]=Mt,t[80]=it):it=t[80];let A;t[81]!==g[0]||t[82]!==s||t[83]!==wt||t[84]!==kt||t[85]!==it?(A=r.jsxRuntimeExports.jsx(zt.AxisTitle,{x:s,y:wt,style:kt,className:it,text:g[0]}),t[81]=g[0],t[82]=s,t[83]=wt,t[84]=kt,t[85]=it,t[86]=A):A=t[86],t[87]!==L||t[88]!==A?(M=r.jsxRuntimeExports.jsxs("g",{children:[L,A]}),t[87]=L,t[88]=A,t[89]=M):M=t[89];const ot=l-s,nt=l-s,lt=u?.yAxis?.axis;let $;t[90]!==lt?($=bt.cn("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",lt),t[90]=lt,t[91]=$):$=t[91];let E;t[92]!==$?(E={axis:$},t[92]=$,t[93]=E):E=t[93];let T;t[94]!==C||t[95]!==ot||t[96]!==nt||t[97]!==E?(T=r.jsxRuntimeExports.jsx(Ft.Axis,{y1:0,y2:C,x1:ot,x2:nt,classNames:E}),t[94]=C,t[95]=ot,t[96]=nt,t[97]=E,t[98]=T):T=t[98];const Tt=l-s,Ht=C+15,Bt=m?.yAxis?.title,Xt=u?.yAxis?.title;let Gt;t[99]!==Xt?(Gt=bt.cn("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",Xt),t[99]=Xt,t[100]=Gt):Gt=t[100];let Pt;t[101]!==g[1]||t[102]!==Tt||t[103]!==Ht||t[104]!==Bt||t[105]!==Gt?(Pt=r.jsxRuntimeExports.jsx(zt.AxisTitle,{x:Tt,y:Ht,style:Bt,className:Gt,text:g[1]}),t[101]=g[1],t[102]=Tt,t[103]=Ht,t[104]=Bt,t[105]=Gt,t[106]=Pt):Pt=t[106],t[107]!==T||t[108]!==Pt?(d=r.jsxRuntimeExports.jsxs("g",{children:[T,Pt]}),t[107]=T,t[108]=Pt,t[109]=d):d=t[109],t[110]!==R?(k=R.filter(Me).map(ke),t[110]=R,t[111]=k):k=t[111],B=oe.AnimatePresence,K=o.map((i,Qt)=>r.jsxRuntimeExports.jsxs(yt.motion.g,{variants:{initial:{opacity:at?i.color&&n[x.indexOf(`${i.color}`)]===at?1:v:b?b.label===i.label?1:v:j?j.indexOf(i.label)!==-1?1:v:1},whileInView:{opacity:at?i.color&&n[x.indexOf(`${i.color}`)]===at?1:v:b?b.label===i.label?1:v:j?j.indexOf(i.label)!==-1?1:v:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:Yt=>{Dt(i),qt(Yt.clientY),It(Yt.clientX),st?.(i)},onMouseMove:Yt=>{Dt(i),qt(Yt.clientY),It(Yt.clientX)},onMouseLeave:()=>{Dt(void 0),It(void 0),qt(void 0),st?.(void 0)},onClick:()=>{(ht||S)&&(Zt.isEqual(W,i)&&$t?(Nt(void 0),ht?.(void 0)):(Nt(i),ht?.(i)))},children:[r.jsxRuntimeExports.jsx(yt.motion.circle,{variants:{initial:{cx:s,cy:p(i.y1),fill:o.filter(Re).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(Ee).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{cx:s,cy:p(i.y1),fill:o.filter($e).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(Ae).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},r:s,style:{fillOpacity:.6}}),rt?r.jsxRuntimeExports.jsx(yt.motion.text,{variants:{initial:{y:p(i.y1),fill:o.filter(Oe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:p(i.y1),fill:o.filter(be).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},style:{textAnchor:"end",...m?.yAxis?.labels||{}},className:bt.cn("text-xs",u?.yAxis?.labels),x:5,dy:"0.33em",textAnchor:"end",dx:0-s-3,children:i.label}):j&&j.indexOf(i.label)!==-1?r.jsxRuntimeExports.jsx(yt.motion.text,{variants:{initial:{y:p(i.y1),fill:o.filter(we).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:p(i.y1),fill:o.filter(je).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},style:{textAnchor:"end",...m?.yAxis?.labels||{}},className:bt.cn("text-xs",u?.yAxis?.labels),x:5,dy:"0.33em",dx:-3,children:i.label}):null,r.jsxRuntimeExports.jsx(yt.motion.circle,{variants:{initial:{cx:l-s,cy:p(i.y2),fill:o.filter(Ce).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(ve).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{cx:l-s,cy:p(i.y2),fill:o.filter(ge).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,stroke:o.filter(he).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},r:s,style:{fillOpacity:.6}}),rt?r.jsxRuntimeExports.jsx(yt.motion.text,{variants:{initial:{y:p(i.y2),fill:o.filter(de).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:p(i.y2),fill:o.filter(ye).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},style:{textAnchor:"start",...m?.yAxis?.labels||{}},className:bt.cn("text-xs",u?.yAxis?.labels),x:l-5,dy:"0.33em",dx:s+3,children:i.label}):j&&j.indexOf(i.label)!==-1?r.jsxRuntimeExports.jsx(yt.motion.text,{variants:{initial:{y:p(i.y2),fill:o.filter(pe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:0},whileInView:{y:p(i.y2),fill:o.filter(me).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,opacity:1,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},style:{textAnchor:"start",...m?.yAxis?.labels||{}},className:bt.cn("text-xs",u?.yAxis?.labels),x:l-5,dy:"0.33em",dx:3,children:i.label}):null,r.jsxRuntimeExports.jsx(yt.motion.line,{variants:{initial:{x1:s,x2:l-s,y1:p(i.y1),y2:p(i.y1),stroke:o.filter(fe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray},whileInView:{x1:s,x2:l-s,y1:p(i.y1),y2:p(i.y2),stroke:o.filter(xe).length===0?n[0]:i.color?n[x.indexOf(`${i.color}`)]:f.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:w?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},className:u?.dataConnectors,style:{fill:"none",strokeWidth:1,...m?.dataConnectors}})]},Qt)),t[16]=a.duration,t[17]=g[0],t[18]=g[1],t[19]=u?.dataConnectors,t[20]=u?.yAxis?.axis,t[21]=u?.yAxis?.labels,t[22]=u?.yAxis?.title,t[23]=x,t[24]=n,t[25]=R,t[26]=o,t[27]=S,t[28]=v,t[29]=C,t[30]=l,t[31]=h,t[32]=j,t[33]=w,t[34]=c.left,t[35]=c.top,t[36]=ut,t[37]=U,t[38]=ct,t[39]=Y,t[40]=W,t[41]=b,t[42]=ht,t[43]=st,t[44]=s,t[45]=$t,t[46]=at,t[47]=rt,t[48]=m?.dataConnectors,t[49]=m?.yAxis?.labels,t[50]=m?.yAxis?.title,t[51]=G,t[52]=B,t[53]=X,t[54]=k,t[55]=F,t[56]=z,t[57]=J,t[58]=D,t[59]=N,t[60]=I,t[61]=K,t[62]=Q,t[63]=M,t[64]=d}else B=t[52],X=t[53],k=t[54],F=t[55],z=t[56],J=t[57],D=t[58],N=t[59],I=t[60],K=t[61],Q=t[62],M=t[63],d=t[64];let Z;t[112]!==B||t[113]!==K?(Z=r.jsxRuntimeExports.jsx(B,{children:K}),t[112]=B,t[113]=K,t[114]=Z):Z=t[114];let q;t[115]!==R?(q=R.filter(ue).map(ce),t[115]=R,t[116]=q):q=t[116];let _;t[117]!==k||t[118]!==Z||t[119]!==q||t[120]!==Q||t[121]!==M||t[122]!==d?(_=r.jsxRuntimeExports.jsxs("g",{transform:Q,children:[M,d,k,Z,q]}),t[117]=k,t[118]=Z,t[119]=q,t[120]=Q,t[121]=M,t[122]=d,t[123]=_):_=t[123];let V;t[124]!==X||t[125]!==F||t[126]!==z||t[127]!==J||t[128]!==D||t[129]!==N||t[130]!==I||t[131]!==_?(V=r.jsxRuntimeExports.jsx(X,{width:F,height:z,viewBox:J,className:D,direction:N,ref:I,children:_}),t[124]=X,t[125]=F,t[126]=z,t[127]=J,t[128]=D,t[129]=N,t[130]=I,t[131]=_,t[132]=V):V=t[132];let tt;t[133]!==u?.tooltip||t[134]!==Et||t[135]!==vt||t[136]!==b||t[137]!==m?.tooltip||t[138]!==At?(tt=b&&At&&Et&&vt?r.jsxRuntimeExports.jsx(_t.Tooltip,{data:b,body:At,xPos:Et,yPos:vt,backgroundStyle:m?.tooltip,className:u?.tooltip}):null,t[133]=u?.tooltip,t[134]=Et,t[135]=vt,t[136]=b,t[137]=m?.tooltip,t[138]=At,t[139]=tt):tt=t[139];let O;t[140]!==u?.modal||t[141]!==S||t[142]!==W?(O=S&&W!==void 0?r.jsxRuntimeExports.jsx(te.DetailsModal,{body:S,data:W,setData:Nt,className:u?.modal}):null,t[140]=u?.modal,t[141]=S,t[142]=W,t[143]=O):O=t[143];let Vt;return t[144]!==V||t[145]!==tt||t[146]!==O?(Vt=r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[V,tt,O]}),t[144]=V,t[145]=tt,t[146]=O,t[147]=Vt):Vt=t[147],Vt}function ce(e){return e.layer}function ue(e){return e.position==="after"}function xe(e){return e.color}function fe(e){return e.color}function me(e){return e.color}function pe(e){return e.color}function ye(e){return e.color}function de(e){return e.color}function he(e){return e.color}function ge(e){return e.color}function ve(e){return e.color}function Ce(e){return e.color}function je(e){return e.color}function we(e){return e.color}function be(e){return e.color}function Oe(e){return e.color}function Ae(e){return e.color}function $e(e){return e.color}function Ee(e){return e.color}function Re(e){return e.color}function ke(e){return e.layer}function Me(e){return e.position==="before"}function Se(e){return e.y2}function De(e){return e.y1}function Ne(e){return e.y2}function Ie(e){return e.y1}function qe(e){const t=r.compilerRuntimeExports.c(87),{data:o,graphTitle:G,colors:h,sources:rt,graphDescription:n,showLabels:x,height:s,width:y,footNote:dt,colorDomain:P,colorLegendTitle:Ot,radius:At,axisTitles:st,padding:g,backgroundColor:j,leftMargin:at,rightMargin:ct,topMargin:ut,bottomMargin:ht,tooltip:$t,relativeHeight:S,onSeriesMouseOver:m,showColorScale:u,highlightedDataPoints:a,graphID:v,minValue:R,maxValue:St,onSeriesMouseClick:gt,graphDownload:w,dataDownload:b,fillContainer:Dt,language:W,showNAColor:Nt,minHeight:Et,theme:It,ariaLabel:vt,resetSelectionOnDoubleClick:qt,detailsOnClick:Ct,styles:c,classNames:l,animate:C,dimmedOpacity:Rt,customLayers:xt}=e,Y=x===void 0?!1:x,jt=At===void 0?5:At;let ft;t[0]!==st?(ft=st===void 0?["",""]:st,t[0]=st,t[1]=ft):ft=t[1];const U=ft,B=j===void 0?!1:j,X=at===void 0?50:at,k=ct===void 0?50:ct,F=ut===void 0?20:ut,z=ht===void 0?20:ht,J=u===void 0?!0:u,D=w===void 0?!1:w,N=b===void 0?!1:b,I=Dt===void 0?!0:Dt,K=W===void 0?"en":W,Q=Nt===void 0?!0:Nt,M=Et===void 0?0:Et,d=It===void 0?"light":It,Z=qt===void 0?!0:qt,q=C===void 0?!1:C,_=Rt===void 0?.3:Rt;let V;t[2]!==xt?(V=xt===void 0?[]:xt,t[2]=xt,t[3]=V):V=t[3];const tt=V,[O,Vt]=H.useState(0),[mt,Lt]=H.useState(0),[p,Wt]=H.useState(void 0),et=H.useRef(null),pt=H.useRef(null);let L,wt;t[4]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{const Tt=new ResizeObserver(Ht=>{Vt(Ht[0].target.clientWidth||620),Lt(Ht[0].target.clientHeight||480)});return et.current&&Tt.observe(et.current),()=>Tt.disconnect()},wt=[],t[4]=L,t[5]=wt):(L=t[4],wt=t[5]),H.useEffect(L,wt);const kt=l?.graphContainer,Mt=c?.graphContainer,it=I?void 0:y;let A;t[6]!==l?.description||t[7]!==l?.title||t[8]!==o||t[9]!==N||t[10]!==n||t[11]!==D||t[12]!==G||t[13]!==c?.description||t[14]!==c?.title||t[15]!==y?(A=G||n||D||N?r.jsxRuntimeExports.jsx(le.GraphHeader,{styles:{title:c?.title,description:c?.description},classNames:{title:l?.title,description:l?.description},graphTitle:G,graphDescription:n,width:y,graphDownload:D?pt:void 0,dataDownload:N?o.map(Ue).filter(Ye).length>0?o.map(We).filter(Pe):o.filter(Ge):null}):null,t[6]=l?.description,t[7]=l?.title,t[8]=o,t[9]=N,t[10]=n,t[11]=D,t[12]=G,t[13]=c?.description,t[14]=c?.title,t[15]=y,t[16]=A):A=t[16];let ot;t[17]!==l?.colorLegend||t[18]!==P||t[19]!==Ot||t[20]!==h||t[21]!==o||t[22]!==J||t[23]!==Q||t[24]!==d||t[25]!==y?(ot=J&&o.filter(He).length!==0&&o.length>0?r.jsxRuntimeExports.jsx(re.ColorLegendWithMouseOver,{width:y,colorLegendTitle:Ot,colors:h||f.Colors[d].categoricalColors.colors,colorDomain:P||Jt.uniqBy(o,"color",!0),setSelectedColor:Wt,showNAColor:Q,className:l?.colorLegend}):null,t[17]=l?.colorLegend,t[18]=P,t[19]=Ot,t[20]=h,t[21]=o,t[22]=J,t[23]=Q,t[24]=d,t[25]=y,t[26]=ot):ot=t[26];let nt;t[27]!==o.length?(nt=o.length===0&&r.jsxRuntimeExports.jsx(se.EmptyState,{}),t[27]=o.length,t[28]=nt):nt=t[28];let lt;t[29]!==q||t[30]!==U||t[31]!==z||t[32]!==l||t[33]!==P||t[34]!==h||t[35]!==tt||t[36]!==o||t[37]!==Ct||t[38]!==_||t[39]!==I||t[40]!==a||t[41]!==X||t[42]!==St||t[43]!==R||t[44]!==gt||t[45]!==m||t[46]!==jt||t[47]!==Z||t[48]!==k||t[49]!==p||t[50]!==Y||t[51]!==c||t[52]!==mt||t[53]!==O||t[54]!==d||t[55]!==$t||t[56]!==F||t[57]!==y?(lt=O&&mt&&o.length>0?r.jsxRuntimeExports.jsx(ae,{data:o.filter(Te),width:I||!y||O<y?O:y,height:mt,colorDomain:o.filter(Le).length===0?[]:P||Jt.uniqBy(o,"color",!0),colors:o.filter(Ve).length===0?h?[h]:[f.Colors.primaryColors["blue-600"]]:h||f.Colors[d].categoricalColors.colors,selectedColor:p,axisTitles:U,showLabels:Y,radius:jt,leftMargin:X,rightMargin:k,topMargin:F,bottomMargin:z,tooltip:$t,onSeriesMouseOver:m,highlightedDataPoints:a,minValue:R,maxValue:St,onSeriesMouseClick:gt,resetSelectionOnDoubleClick:Z,detailsOnClick:Ct,styles:c,classNames:l,animate:q===!0?{duration:.5,once:!0,amount:.5}:q||{duration:0,once:!0,amount:0},dimmedOpacity:_,customLayers:tt}):null,t[29]=q,t[30]=U,t[31]=z,t[32]=l,t[33]=P,t[34]=h,t[35]=tt,t[36]=o,t[37]=Ct,t[38]=_,t[39]=I,t[40]=a,t[41]=X,t[42]=St,t[43]=R,t[44]=gt,t[45]=m,t[46]=jt,t[47]=Z,t[48]=k,t[49]=p,t[50]=Y,t[51]=c,t[52]=mt,t[53]=O,t[54]=d,t[55]=$t,t[56]=F,t[57]=y,t[58]=lt):lt=t[58];let $;t[59]!==nt||t[60]!==lt?($=r.jsxRuntimeExports.jsxs(Kt.GraphArea,{ref:et,children:[nt,lt]}),t[59]=nt,t[60]=lt,t[61]=$):$=t[61];let E;t[62]!==l?.footnote||t[63]!==l?.source||t[64]!==dt||t[65]!==rt||t[66]!==c?.footnote||t[67]!==c?.source||t[68]!==y?(E=rt||dt?r.jsxRuntimeExports.jsx(ne.GraphFooter,{styles:{footnote:c?.footnote,source:c?.source},classNames:{footnote:l?.footnote,source:l?.source},sources:rt,footNote:dt,width:y}):null,t[62]=l?.footnote,t[63]=l?.source,t[64]=dt,t[65]=rt,t[66]=c?.footnote,t[67]=c?.source,t[68]=y,t[69]=E):E=t[69];let T;return t[70]!==vt||t[71]!==B||t[72]!==v||t[73]!==s||t[74]!==K||t[75]!==M||t[76]!==g||t[77]!==S||t[78]!==kt||t[79]!==Mt||t[80]!==it||t[81]!==A||t[82]!==ot||t[83]!==$||t[84]!==E||t[85]!==d?(T=r.jsxRuntimeExports.jsxs(Kt.GraphContainer,{className:kt,style:Mt,id:v,ref:pt,"aria-label":vt,backgroundColor:B,theme:d,language:K,minHeight:M,width:it,height:s,relativeHeight:S,padding:g,children:[A,ot,$,E]}),t[70]=vt,t[71]=B,t[72]=v,t[73]=s,t[74]=K,t[75]=M,t[76]=g,t[77]=S,t[78]=kt,t[79]=Mt,t[80]=it,t[81]=A,t[82]=ot,t[83]=$,t[84]=E,t[85]=d,t[86]=T):T=t[86],T}function Ve(e){return e.color}function Le(e){return e.color}function Te(e){return!Ut.checkIfNullOrUndefined(e.y1)&&!Ut.checkIfNullOrUndefined(e.y2)}function He(e){return e.color}function Ge(e){return e!==void 0}function Pe(e){return e!==void 0}function We(e){return e.data}function Ye(e){return e!==void 0}function Ue(e){return e.data}exports.SlopeChart=qe;
2
2
  //# sourceMappingURL=SlopeChart.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SlopeChart.cjs","sources":["../src/Components/Graphs/SlopeChart/Graph.tsx","../src/Components/Graphs/SlopeChart/index.tsx"],"sourcesContent":["import isEqual from 'fast-deep-equal';\r\nimport { useRef, useState } from 'react';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { AnimatePresence, motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n SlopeChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { Axis } from '@/Components/Elements/Axes/Axis';\r\nimport { AxisTitle } from '@/Components/Elements/Axes/AxisTitle';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n data: SlopeChartDataType[];\r\n width: number;\r\n height: number;\r\n selectedColor?: string;\r\n showLabels: boolean;\r\n colors: string[];\r\n colorDomain: string[];\r\n radius: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n axisTitles: [string, string];\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n highlightedDataPoints?: (string | number)[];\r\n maxValue?: number;\r\n minValue?: number;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n resetSelectionOnDoubleClick: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n animate: AnimateDataType;\r\n dimmedOpacity: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n showLabels,\r\n colors,\r\n colorDomain,\r\n radius,\r\n leftMargin,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n tooltip,\r\n onSeriesMouseOver,\r\n axisTitles,\r\n highlightedDataPoints,\r\n selectedColor,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate,\r\n dimmedOpacity,\r\n customLayers,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseClickData, setMouseClickData] = useState<any>(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: leftMargin,\r\n right: rightMargin,\r\n };\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n const minY = Math.min(Math.min(...data.map(d => d.y1)), Math.min(...data.map(d => d.y2)));\r\n const maxY = Math.max(Math.max(...data.map(d => d.y1)), Math.max(...data.map(d => d.y2)));\r\n const y = scaleLinear()\r\n .domain([\r\n checkIfNullOrUndefined(minValue) ? (minY > 0 ? 0 : minY) : (minValue as number),\r\n checkIfNullOrUndefined(maxValue) ? (maxY > 0 ? maxY : 0) : (maxValue as number),\r\n ])\r\n .range([graphHeight, 0])\r\n .nice();\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n className='mx-auto'\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={radius}\r\n x2={radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[0]}\r\n />\r\n </g>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={graphWidth - radius}\r\n x2={graphWidth - radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={graphWidth - radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[1]}\r\n />\r\n </g>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <AnimatePresence>\r\n {data.map((d, i) => {\r\n return (\r\n <motion.g\r\n key={i}\r\n variants={{\r\n initial: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n onClick={() => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (isEqual(mouseClickData, d) && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n }}\r\n >\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n textAnchor='end'\r\n dx={0 - radius - 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n dx={-3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={radius + 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.line\r\n variants={{\r\n initial: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y1),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n },\r\n whileInView: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y2),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n className={classNames?.dataConnectors}\r\n style={{\r\n fill: 'none',\r\n strokeWidth: 1,\r\n ...styles?.dataConnectors,\r\n }}\r\n />\r\n </motion.g>\r\n );\r\n })}\r\n </AnimatePresence>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n Languages,\r\n SlopeChartDataType,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: SlopeChartDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Color or array of colors for circles */\r\n colors?: string | string[];\r\n /** Domain of colors for the graph */\r\n colorDomain?: string[];\r\n /** Title for the color legend */\r\n colorLegendTitle?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n /** Toggles the background to fill the container. This only works if the width of the graph is defined. */\r\n fillContainer?: boolean;\r\n\r\n // Values and Ticks\r\n /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of labels */\r\n showLabels?: boolean;\r\n /** Radius of the circles */\r\n radius?: number;\r\n /** Title for the two axis */\r\n axisTitles?: [string, string];\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Data points to highlight. Use the label value from data to highlight the data point */\r\n highlightedDataPoints?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Toggles if the graph animates in when loaded. */\r\n animate?: boolean | AnimateDataType;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n\r\n // Interactions and Callbacks\r\n /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n /** Details displayed on the modal when user clicks of a data point. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n /** Callback for mouse over event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n /** Callback for mouse click event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n\r\n // Configuration and Options\r\n /** Language setting */\r\n language?: Languages;\r\n /** Color theme */\r\n theme?: 'light' | 'dark';\r\n /** Unique ID for the graph */\r\n graphID?: string;\r\n}\r\n\r\nexport function SlopeChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n showLabels = false,\r\n height,\r\n width,\r\n footNote,\r\n colorDomain,\r\n colorLegendTitle,\r\n radius = 5,\r\n axisTitles = ['', ''],\r\n padding,\r\n backgroundColor = false,\r\n leftMargin = 50,\r\n rightMargin = 50,\r\n topMargin = 20,\r\n bottomMargin = 20,\r\n tooltip,\r\n relativeHeight,\r\n onSeriesMouseOver,\r\n showColorScale = true,\r\n highlightedDataPoints,\r\n graphID,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n graphDownload = false,\r\n dataDownload = false,\r\n fillContainer = true,\r\n language = 'en',\r\n showNAColor = true,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n customLayers = [],\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={fillContainer ? undefined : width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale && data.filter(el => el.color).length !== 0 && data.length > 0 ? (\r\n <ColorLegendWithMouseOver\r\n width={width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={(colors as string[] | undefined) || Colors[theme].categoricalColors.colors}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {svgWidth && svgHeight && data.length > 0 ? (\r\n <Graph\r\n data={data.filter(d => !checkIfNullOrUndefined(d.y1) && !checkIfNullOrUndefined(d.y2))}\r\n width={fillContainer || !width ? svgWidth : svgWidth < width ? svgWidth : width}\r\n height={svgHeight}\r\n colorDomain={\r\n data.filter(el => el.color).length === 0\r\n ? []\r\n : colorDomain || (uniqBy(data, 'color', true) as string[])\r\n }\r\n colors={\r\n data.filter(el => el.color).length === 0\r\n ? colors\r\n ? [colors as string]\r\n : [Colors.primaryColors['blue-600']]\r\n : (colors as string[] | undefined) || Colors[theme].categoricalColors.colors\r\n }\r\n selectedColor={selectedColor}\r\n axisTitles={axisTitles}\r\n showLabels={showLabels}\r\n radius={radius}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n highlightedDataPoints={highlightedDataPoints}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\r\n animate={\r\n animate === true\r\n ? { duration: 0.5, once: true, amount: 0.5 }\r\n : animate || { duration: 0, once: true, amount: 0 }\r\n }\r\n dimmedOpacity={dimmedOpacity}\r\n customLayers={customLayers}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["Graph","props","$","_c","data","width","height","showLabels","colors","colorDomain","radius","leftMargin","rightMargin","topMargin","bottomMargin","tooltip","onSeriesMouseOver","axisTitles","highlightedDataPoints","selectedColor","minValue","maxValue","onSeriesMouseClick","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","animate","dimmedOpacity","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","t1","top","bottom","left","right","margin","graphWidth","graphHeight","t2","Math","min","map","_temp","t3","_temp2","minY","t4","max","_temp3","t5","_temp4","maxY","T0","T1","t10","t11","t12","t13","t14","t15","t16","t6","t7","t8","t9","duration","dataConnectors","yAxis","axis","labels","title","t17","checkIfNullOrUndefined","t18","y","scaleLinear","domain","range","nice","motion","svg","t19","t20","cn","t21","t22","jsx","Axis","t23","t24","t25","t26","t27","AxisTitle","t28","t29","t30","t31","t32","t33","t34","t35","t36","t37","t38","t39","filter","_temp5","_temp6","AnimatePresence","d_5","i","jsxs","initial","opacity","d","color","indexOf","label","whileInView","transition","event","clientY","clientX","event_0","isEqual","cx","cy","y1","fill","_temp7","length","Colors","gray","stroke","_temp8","_temp9","_temp0","fillOpacity","_temp1","_temp10","textAnchor","_temp11","_temp12","y2","_temp13","_temp14","_temp15","_temp16","_temp17","_temp18","_temp19","_temp20","x1","x2","_temp21","_temp22","strokeWidth","_temp23","_temp24","Tooltip","modal","DetailsModal","Fragment","d_7","layer","d_6","position","el_16","el","el_15","el_14","el_13","el_12","el_11","el_10","el_9","el_8","el_7","el_6","el_5","el_4","el_3","el_2","el_1","el_0","d_4","d_3","d_2","d_1","d_0","SlopeChart","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","showColorScale","graphID","graphDownload","dataDownload","fillContainer","language","showNAColor","minHeight","theme","ariaLabel","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","Symbol","for","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","useEffect","graphContainer","description","GraphHeader","colorLegend","ColorLegendWithMouseOver","categoricalColors","uniqBy","EmptyState","primaryColors","GraphArea","footnote","source","GraphFooter","GraphContainer"],"mappings":"qxBAqDO,SAAAA,GAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,GAAA,EACL,CAAAC,KAAAA,EAAAC,MAAAA,EAAAC,OAAAA,EAAAC,WAAAA,GAAAC,OAAAA,EAAAC,YAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,YAAAA,GAAAC,UAAAA,EAAAC,aAAAA,GAAAC,QAAAA,GAAAC,kBAAAA,GAAAC,WAAAA,EAAAC,sBAAAA,EAAAC,cAAAA,GAAAC,SAAAA,GAAAC,SAAAA,GAAAC,mBAAAA,GAAAC,4BAAAA,GAAAC,eAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,QAAAA,EAAAC,cAAAA,EAAAC,aAAAA,CAAAA,EA2BI5B,EACJ6B,GAAeC,EAAAA,OAAO,IAAI,EAAE,IAAAC,GAAA9B,EAAA,CAAA,IAAAyB,EAAAM,QAAA/B,EAAA,CAAA,IAAAyB,EAAAO,MACOF,GAAA,CAAAE,KAC3BP,EAAOO,KAAKD,OACVN,EAAOM,MAAAA,EAChB/B,EAAA,CAAA,EAAAyB,EAAAM,OAAA/B,EAAA,CAAA,EAAAyB,EAAAO,KAAAhC,KAAA8B,IAAAA,GAAA9B,EAAA,CAAA,EAHD,MAAAiC,EAAiBC,GAAAA,UAAUN,GAAQE,EAGlC,EAED,CAAAK,EAAAC,EAAA,EAA0CC,EAAAA,SAAcC,MAAS,EAEjE,CAAAC,EAAAC,EAAA,EAA4CH,EAAAA,SAAcC,MAAS,EACnE,CAAAG,GAAAC,EAAA,EAA4BL,EAAAA,SAA6BC,MAAS,EAClE,CAAAK,GAAAC,EAAA,EAA4BP,EAA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file":"SlopeChart.cjs","sources":["../src/Components/Graphs/SlopeChart/Graph.tsx","../src/Components/Graphs/SlopeChart/index.tsx"],"sourcesContent":["import isEqual from 'fast-deep-equal';\r\nimport { useRef, useState } from 'react';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { AnimatePresence, motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n SlopeChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { Axis } from '@/Components/Elements/Axes/Axis';\r\nimport { AxisTitle } from '@/Components/Elements/Axes/AxisTitle';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n data: SlopeChartDataType[];\r\n width: number;\r\n height: number;\r\n selectedColor?: string;\r\n showLabels: boolean;\r\n colors: string[];\r\n colorDomain: string[];\r\n radius: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n axisTitles: [string, string];\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n highlightedDataPoints?: (string | number)[];\r\n maxValue?: number;\r\n minValue?: number;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n resetSelectionOnDoubleClick: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n animate: AnimateDataType;\r\n dimmedOpacity: number;\r\n customLayers: CustomLayerDataType[];\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n width,\r\n height,\r\n showLabels,\r\n colors,\r\n colorDomain,\r\n radius,\r\n leftMargin,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n tooltip,\r\n onSeriesMouseOver,\r\n axisTitles,\r\n highlightedDataPoints,\r\n selectedColor,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate,\r\n dimmedOpacity,\r\n customLayers,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseClickData, setMouseClickData] = useState<any>(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: leftMargin,\r\n right: rightMargin,\r\n };\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n const minY = Math.min(Math.min(...data.map(d => d.y1)), Math.min(...data.map(d => d.y2)));\r\n const maxY = Math.max(Math.max(...data.map(d => d.y1)), Math.max(...data.map(d => d.y2)));\r\n const y = scaleLinear()\r\n .domain([\r\n checkIfNullOrUndefined(minValue) ? (minY > 0 ? 0 : minY) : (minValue as number),\r\n checkIfNullOrUndefined(maxValue) ? (maxY > 0 ? maxY : 0) : (maxValue as number),\r\n ])\r\n .range([graphHeight, 0])\r\n .nice();\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n className='mx-auto'\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={radius}\r\n x2={radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[0]}\r\n />\r\n </g>\r\n <g>\r\n <Axis\r\n y1={0}\r\n y2={graphHeight}\r\n x1={graphWidth - radius}\r\n x2={graphWidth - radius}\r\n classNames={{\r\n axis: cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.yAxis?.axis,\r\n ),\r\n }}\r\n />\r\n <AxisTitle\r\n x={graphWidth - radius}\r\n y={graphHeight + 15}\r\n style={styles?.yAxis?.title}\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.yAxis?.title,\r\n )}\r\n text={axisTitles[1]}\r\n />\r\n </g>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <AnimatePresence>\r\n {data.map((d, i) => {\r\n return (\r\n <motion.g\r\n key={i}\r\n variants={{\r\n initial: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(`${d.color}`)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : mouseOverData\r\n ? mouseOverData.label === d.label\r\n ? 1\r\n : dimmedOpacity\r\n : highlightedDataPoints\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n onClick={() => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (isEqual(mouseClickData, d) && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n }}\r\n >\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: radius,\r\n cy: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n textAnchor='end'\r\n dx={0 - radius - 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y1),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'end',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={5}\r\n dy='0.33em'\r\n dx={-3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.circle\r\n variants={{\r\n initial: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n cx: graphWidth - radius,\r\n cy: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n r={radius}\r\n style={{\r\n fillOpacity: 0.6,\r\n }}\r\n />\r\n {showLabels ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={radius + 3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : highlightedDataPoints ? (\r\n highlightedDataPoints.indexOf(d.label) !== -1 ? (\r\n <motion.text\r\n variants={{\r\n initial: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 0,\r\n },\r\n whileInView: {\r\n y: y(d.y2),\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n style={{\r\n textAnchor: 'start',\r\n ...(styles?.yAxis?.labels || {}),\r\n }}\r\n className={cn('text-xs', classNames?.yAxis?.labels)}\r\n x={graphWidth - 5}\r\n dy='0.33em'\r\n dx={3}\r\n >\r\n {d.label}\r\n </motion.text>\r\n ) : null\r\n ) : null}\r\n <motion.line\r\n variants={{\r\n initial: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y1),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n },\r\n whileInView: {\r\n x1: radius,\r\n x2: graphWidth - radius,\r\n y1: y(d.y1),\r\n y2: y(d.y2),\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(`${d.color}`)],\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n className={classNames?.dataConnectors}\r\n style={{\r\n fill: 'none',\r\n strokeWidth: 1,\r\n ...styles?.dataConnectors,\r\n }}\r\n />\r\n </motion.g>\r\n );\r\n })}\r\n </AnimatePresence>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n Languages,\r\n SlopeChartDataType,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: SlopeChartDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Color or array of colors for circles */\r\n colors?: string | string[];\r\n /** Domain of colors for the graph */\r\n colorDomain?: string[];\r\n /** Title for the color legend */\r\n colorLegendTitle?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n /** Toggles the background to fill the container. This only works if the width of the graph is defined. */\r\n fillContainer?: boolean;\r\n\r\n // Values and Ticks\r\n /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of labels */\r\n showLabels?: boolean;\r\n /** Radius of the circles */\r\n radius?: number;\r\n /** Title for the two axis */\r\n axisTitles?: [string, string];\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Data points to highlight. Use the label value from data to highlight the data point */\r\n highlightedDataPoints?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Toggles if the graph animates in when loaded. */\r\n animate?: boolean | AnimateDataType;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n\r\n // Interactions and Callbacks\r\n /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n /** Details displayed on the modal when user clicks of a data point. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n /** Callback for mouse over event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n /** Callback for mouse click event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n\r\n // Configuration and Options\r\n /** Language setting */\r\n language?: Languages;\r\n /** Color theme */\r\n theme?: 'light' | 'dark';\r\n /** Unique ID for the graph */\r\n graphID?: string;\r\n}\r\n\r\nexport function SlopeChart(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n showLabels = false,\r\n height,\r\n width,\r\n footNote,\r\n colorDomain,\r\n colorLegendTitle,\r\n radius = 5,\r\n axisTitles = ['', ''],\r\n padding,\r\n backgroundColor = false,\r\n leftMargin = 50,\r\n rightMargin = 50,\r\n topMargin = 20,\r\n bottomMargin = 20,\r\n tooltip,\r\n relativeHeight,\r\n onSeriesMouseOver,\r\n showColorScale = true,\r\n highlightedDataPoints,\r\n graphID,\r\n minValue,\r\n maxValue,\r\n onSeriesMouseClick,\r\n graphDownload = false,\r\n dataDownload = false,\r\n fillContainer = true,\r\n language = 'en',\r\n showNAColor = true,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n customLayers = [],\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={fillContainer ? undefined : width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale && data.filter(el => el.color).length !== 0 && data.length > 0 ? (\r\n <ColorLegendWithMouseOver\r\n width={width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={(colors as string[] | undefined) || Colors[theme].categoricalColors.colors}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {svgWidth && svgHeight && data.length > 0 ? (\r\n <Graph\r\n data={data.filter(d => !checkIfNullOrUndefined(d.y1) && !checkIfNullOrUndefined(d.y2))}\r\n width={fillContainer || !width ? svgWidth : svgWidth < width ? svgWidth : width}\r\n height={svgHeight}\r\n colorDomain={\r\n data.filter(el => el.color).length === 0\r\n ? []\r\n : colorDomain || (uniqBy(data, 'color', true) as string[])\r\n }\r\n colors={\r\n data.filter(el => el.color).length === 0\r\n ? colors\r\n ? [colors as string]\r\n : [Colors.primaryColors['blue-600']]\r\n : (colors as string[] | undefined) || Colors[theme].categoricalColors.colors\r\n }\r\n selectedColor={selectedColor}\r\n axisTitles={axisTitles}\r\n showLabels={showLabels}\r\n radius={radius}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n highlightedDataPoints={highlightedDataPoints}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\r\n animate={\r\n animate === true\r\n ? { duration: 0.5, once: true, amount: 0.5 }\r\n : animate || { duration: 0, once: true, amount: 0 }\r\n }\r\n dimmedOpacity={dimmedOpacity}\r\n customLayers={customLayers}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["Graph","props","$","_c","data","width","height","showLabels","colors","colorDomain","radius","leftMargin","rightMargin","topMargin","bottomMargin","tooltip","onSeriesMouseOver","axisTitles","highlightedDataPoints","selectedColor","minValue","maxValue","onSeriesMouseClick","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","animate","dimmedOpacity","customLayers","svgRef","useRef","t0","amount","once","isInView","useInView","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","t1","top","bottom","left","right","margin","graphWidth","graphHeight","t2","Math","min","map","_temp","t3","_temp2","minY","t4","max","_temp3","t5","_temp4","maxY","T0","T1","t10","t11","t12","t13","t14","t15","t16","t6","t7","t8","t9","duration","dataConnectors","yAxis","axis","labels","title","t17","checkIfNullOrUndefined","t18","y","scaleLinear","domain","range","nice","motion","svg","t19","t20","cn","t21","t22","jsx","Axis","t23","t24","t25","t26","t27","AxisTitle","t28","t29","t30","t31","t32","t33","t34","t35","t36","t37","t38","t39","filter","_temp5","_temp6","AnimatePresence","d_5","i","jsxs","initial","opacity","d","color","indexOf","label","whileInView","transition","event","clientY","clientX","event_0","isEqual","cx","cy","y1","fill","_temp7","length","Colors","gray","stroke","_temp8","_temp9","_temp0","fillOpacity","_temp1","_temp10","textAnchor","_temp11","_temp12","y2","_temp13","_temp14","_temp15","_temp16","_temp17","_temp18","_temp19","_temp20","x1","x2","_temp21","_temp22","strokeWidth","_temp23","_temp24","Tooltip","modal","DetailsModal","Fragment","d_7","layer","d_6","position","el_16","el","el_15","el_14","el_13","el_12","el_11","el_10","el_9","el_8","el_7","el_6","el_5","el_4","el_3","el_2","el_1","el_0","d_4","d_3","d_2","d_1","d_0","SlopeChart","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","showColorScale","graphID","graphDownload","dataDownload","fillContainer","language","showNAColor","minHeight","theme","ariaLabel","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","Symbol","for","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","useEffect","graphContainer","description","GraphHeader","colorLegend","ColorLegendWithMouseOver","categoricalColors","uniqBy","EmptyState","primaryColors","GraphArea","footnote","source","GraphFooter","GraphContainer"],"mappings":"k0BAqDO,SAAAA,GAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,GAAA,EACL,CAAAC,KAAAA,EAAAC,MAAAA,EAAAC,OAAAA,EAAAC,WAAAA,GAAAC,OAAAA,EAAAC,YAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,YAAAA,GAAAC,UAAAA,EAAAC,aAAAA,GAAAC,QAAAA,GAAAC,kBAAAA,GAAAC,WAAAA,EAAAC,sBAAAA,EAAAC,cAAAA,GAAAC,SAAAA,GAAAC,SAAAA,GAAAC,mBAAAA,GAAAC,4BAAAA,GAAAC,eAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,QAAAA,EAAAC,cAAAA,EAAAC,aAA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