@undp/data-viz 1.5.8 → 2.0.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 (672) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +1 -0
  4. package/dist/AreaChart.js +420 -520
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/Axis-CRyfcLjc.js +32 -0
  7. package/dist/Axis-CRyfcLjc.js.map +1 -0
  8. package/dist/Axis-DxRV2yMi.cjs +2 -0
  9. package/dist/Axis-DxRV2yMi.cjs.map +1 -0
  10. package/dist/AxisTitle-jeI7am8o.js +29 -0
  11. package/dist/AxisTitle-jeI7am8o.js.map +1 -0
  12. package/dist/AxisTitle-sS5bLLR7.cjs +2 -0
  13. package/dist/AxisTitle-sS5bLLR7.cjs.map +1 -0
  14. package/dist/BarGraph.cjs +1 -1
  15. package/dist/BarGraph.cjs.map +1 -1
  16. package/dist/BarGraph.d.ts +1 -0
  17. package/dist/BarGraph.js +2188 -4045
  18. package/dist/BarGraph.js.map +1 -1
  19. package/dist/BasicStatCard.cjs +1 -1
  20. package/dist/BasicStatCard.cjs.map +1 -1
  21. package/dist/BasicStatCard.d.ts +1 -0
  22. package/dist/BasicStatCard.js +120 -186
  23. package/dist/BasicStatCard.js.map +1 -1
  24. package/dist/BeeSwarmChart.cjs +1 -1
  25. package/dist/BeeSwarmChart.cjs.map +1 -1
  26. package/dist/BeeSwarmChart.d.ts +5 -0
  27. package/dist/BeeSwarmChart.js +501 -1019
  28. package/dist/BeeSwarmChart.js.map +1 -1
  29. package/dist/BiVariateChoroplethMap.cjs +1 -1
  30. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  31. package/dist/BiVariateChoroplethMap.d.ts +3 -0
  32. package/dist/BiVariateChoroplethMap.js +458 -706
  33. package/dist/BiVariateChoroplethMap.js.map +1 -1
  34. package/dist/BulletChart.cjs +1 -1
  35. package/dist/BulletChart.cjs.map +1 -1
  36. package/dist/BulletChart.d.ts +1 -0
  37. package/dist/BulletChart.js +863 -1414
  38. package/dist/BulletChart.js.map +1 -1
  39. package/dist/ButterflyChart.cjs +1 -1
  40. package/dist/ButterflyChart.cjs.map +1 -1
  41. package/dist/ButterflyChart.d.ts +1 -0
  42. package/dist/ButterflyChart.js +474 -684
  43. package/dist/ButterflyChart.js.map +1 -1
  44. package/dist/ChoroplethMap.cjs +1 -1
  45. package/dist/ChoroplethMap.cjs.map +1 -1
  46. package/dist/ChoroplethMap.d.ts +3 -0
  47. package/dist/ChoroplethMap.js +469 -731
  48. package/dist/ChoroplethMap.js.map +1 -1
  49. package/dist/CirclePackingGraph.cjs +1 -1
  50. package/dist/CirclePackingGraph.d.ts +1 -0
  51. package/dist/CirclePackingGraph.js +5 -4
  52. package/dist/CirclePackingGraph.js.map +1 -1
  53. package/dist/ColorLegend.cjs +1 -1
  54. package/dist/ColorLegend.cjs.map +1 -1
  55. package/dist/ColorLegend.js +57 -44
  56. package/dist/ColorLegend.js.map +1 -1
  57. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  58. package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
  59. package/dist/ColorLegendWithMouseOver.js +60 -65
  60. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  61. package/dist/Colors.cjs.map +1 -1
  62. package/dist/Colors.js +44 -430
  63. package/dist/Colors.js.map +1 -1
  64. package/dist/CopyTextButton.cjs +4 -4
  65. package/dist/CopyTextButton.cjs.map +1 -1
  66. package/dist/CopyTextButton.js +537 -455
  67. package/dist/CopyTextButton.js.map +1 -1
  68. package/dist/CsvDownloadButton.cjs +7 -7
  69. package/dist/CsvDownloadButton.cjs.map +1 -1
  70. package/dist/CsvDownloadButton.js +442 -447
  71. package/dist/CsvDownloadButton.js.map +1 -1
  72. package/dist/DataCards.cjs +5 -5
  73. package/dist/DataCards.cjs.map +1 -1
  74. package/dist/DataCards.d.ts +1 -0
  75. package/dist/DataCards.js +488 -581
  76. package/dist/DataCards.js.map +1 -1
  77. package/dist/DataTable.cjs +1 -1
  78. package/dist/DataTable.cjs.map +1 -1
  79. package/dist/DataTable.d.ts +1 -0
  80. package/dist/DataTable.js +183 -326
  81. package/dist/DataTable.js.map +1 -1
  82. package/dist/DifferenceLineChart.cjs +1 -1
  83. package/dist/DifferenceLineChart.cjs.map +1 -1
  84. package/dist/DifferenceLineChart.d.ts +1 -0
  85. package/dist/DifferenceLineChart.js +729 -794
  86. package/dist/DifferenceLineChart.js.map +1 -1
  87. package/dist/DonutChart.cjs +1 -1
  88. package/dist/DonutChart.cjs.map +1 -1
  89. package/dist/DonutChart.d.ts +1 -4
  90. package/dist/DonutChart.js +260 -444
  91. package/dist/DonutChart.js.map +1 -1
  92. package/dist/DotDensityMap.cjs +1 -1
  93. package/dist/DotDensityMap.cjs.map +1 -1
  94. package/dist/DotDensityMap.d.ts +3 -0
  95. package/dist/DotDensityMap.js +388 -582
  96. package/dist/DotDensityMap.js.map +1 -1
  97. package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-BbdPQa2k.js} +1401 -1374
  98. package/dist/DropdownSelect-BbdPQa2k.js.map +1 -0
  99. package/dist/DropdownSelect-Doz3mCrM.cjs +29 -0
  100. package/dist/DropdownSelect-Doz3mCrM.cjs.map +1 -0
  101. package/dist/DualAxisLineChart.cjs +1 -1
  102. package/dist/DualAxisLineChart.cjs.map +1 -1
  103. package/dist/DualAxisLineChart.d.ts +1 -0
  104. package/dist/DualAxisLineChart.js +617 -712
  105. package/dist/DualAxisLineChart.js.map +1 -1
  106. package/dist/DumbbellChart.cjs +1 -1
  107. package/dist/DumbbellChart.cjs.map +1 -1
  108. package/dist/DumbbellChart.d.ts +1 -0
  109. package/dist/DumbbellChart.js +789 -1499
  110. package/dist/DumbbellChart.js.map +1 -1
  111. package/dist/EmptyState-BZo1BbAn.js +15 -0
  112. package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-BZo1BbAn.js.map} +1 -1
  113. package/dist/EmptyState-sAEZ_5rU.cjs +2 -0
  114. package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-sAEZ_5rU.cjs.map} +1 -1
  115. package/dist/ExcelDownloadButton.cjs +1 -1
  116. package/dist/ExcelDownloadButton.cjs.map +1 -1
  117. package/dist/ExcelDownloadButton.js +20 -24
  118. package/dist/ExcelDownloadButton.js.map +1 -1
  119. package/dist/FootNote.cjs +1 -1
  120. package/dist/FootNote.cjs.map +1 -1
  121. package/dist/FootNote.js +26 -17
  122. package/dist/FootNote.js.map +1 -1
  123. package/dist/GeoHubCompareMaps.cjs +1 -1
  124. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  125. package/dist/GeoHubCompareMaps.d.ts +1 -0
  126. package/dist/GeoHubCompareMaps.js +264 -354
  127. package/dist/GeoHubCompareMaps.js.map +1 -1
  128. package/dist/GeoHubMap.cjs +1 -1
  129. package/dist/GeoHubMap.cjs.map +1 -1
  130. package/dist/GeoHubMap.d.ts +1 -0
  131. package/dist/GeoHubMap.js +214 -409
  132. package/dist/GeoHubMap.js.map +1 -1
  133. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  134. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  135. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -0
  136. package/dist/GeoHubMapWithLayerSelection.js +192 -293
  137. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  138. package/dist/GraphContainer-CRqzdKu2.js +78 -0
  139. package/dist/GraphContainer-CRqzdKu2.js.map +1 -0
  140. package/dist/GraphContainer-d8A46BK2.cjs +2 -0
  141. package/dist/GraphContainer-d8A46BK2.cjs.map +1 -0
  142. package/dist/GraphDescription.cjs +1 -1
  143. package/dist/GraphDescription.cjs.map +1 -1
  144. package/dist/GraphDescription.js +23 -17
  145. package/dist/GraphDescription.js.map +1 -1
  146. package/dist/GraphEl-BkyLYXG5.cjs +2 -0
  147. package/dist/GraphEl-BkyLYXG5.cjs.map +1 -0
  148. package/dist/{GraphEl-CqWzvOyr.js → GraphEl-DzRon4cb.js} +184 -202
  149. package/dist/GraphEl-DzRon4cb.js.map +1 -0
  150. package/dist/GraphFooter.cjs +1 -1
  151. package/dist/GraphFooter.cjs.map +1 -1
  152. package/dist/GraphFooter.js +28 -18
  153. package/dist/GraphFooter.js.map +1 -1
  154. package/dist/GraphHeader.cjs +1 -1
  155. package/dist/GraphHeader.cjs.map +1 -1
  156. package/dist/GraphHeader.d.ts +2 -1
  157. package/dist/GraphHeader.js +45 -59
  158. package/dist/GraphHeader.js.map +1 -1
  159. package/dist/GraphTitle.cjs +1 -1
  160. package/dist/GraphTitle.cjs.map +1 -1
  161. package/dist/GraphTitle.js +29 -24
  162. package/dist/GraphTitle.js.map +1 -1
  163. package/dist/GriddedGraphs.cjs +1 -1
  164. package/dist/GriddedGraphs.cjs.map +1 -1
  165. package/dist/GriddedGraphs.d.ts +2 -0
  166. package/dist/GriddedGraphs.js +216 -450
  167. package/dist/GriddedGraphs.js.map +1 -1
  168. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  169. package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
  170. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  171. package/dist/GriddedGraphsFromConfig.js +22 -36
  172. package/dist/GriddedGraphsFromConfig.js.map +1 -1
  173. package/dist/HeatMap.cjs +1 -1
  174. package/dist/HeatMap.cjs.map +1 -1
  175. package/dist/HeatMap.d.ts +1 -0
  176. package/dist/HeatMap.js +278 -446
  177. package/dist/HeatMap.js.map +1 -1
  178. package/dist/Histogram.cjs +1 -1
  179. package/dist/Histogram.cjs.map +1 -1
  180. package/dist/Histogram.d.ts +1 -0
  181. package/dist/Histogram.js +154 -264
  182. package/dist/Histogram.js.map +1 -1
  183. package/dist/ImageDownloadButton.cjs +1 -1
  184. package/dist/ImageDownloadButton.cjs.map +1 -1
  185. package/dist/ImageDownloadButton.d.ts +2 -1
  186. package/dist/ImageDownloadButton.js +21 -25
  187. package/dist/ImageDownloadButton.js.map +1 -1
  188. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  189. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  190. package/dist/LineChartWithConfidenceInterval.d.ts +1 -0
  191. package/dist/LineChartWithConfidenceInterval.js +674 -825
  192. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  193. package/dist/LinearColorLegend.cjs +1 -1
  194. package/dist/LinearColorLegend.cjs.map +1 -1
  195. package/dist/LinearColorLegend.js +49 -30
  196. package/dist/LinearColorLegend.js.map +1 -1
  197. package/dist/Modal-DGcuAHyK.js +1047 -0
  198. package/dist/Modal-DGcuAHyK.js.map +1 -0
  199. package/dist/Modal-JW_IExO3.cjs +46 -0
  200. package/dist/Modal-JW_IExO3.cjs.map +1 -0
  201. package/dist/MultiGraphDashboard.cjs +1 -1
  202. package/dist/MultiGraphDashboard.cjs.map +1 -1
  203. package/dist/MultiGraphDashboard.d.ts +2 -0
  204. package/dist/MultiGraphDashboard.js +122 -290
  205. package/dist/MultiGraphDashboard.js.map +1 -1
  206. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  207. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
  208. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  209. package/dist/MultiGraphDashboardFromConfig.js +22 -31
  210. package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
  211. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  212. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  213. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -0
  214. package/dist/MultiGraphDashboardWideToLongFormat.js +137 -223
  215. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  216. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  217. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
  218. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -0
  219. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +25 -27
  220. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
  221. package/dist/MultiLineAltChart.cjs +1 -1
  222. package/dist/MultiLineAltChart.cjs.map +1 -1
  223. package/dist/MultiLineAltChart.d.ts +1 -0
  224. package/dist/MultiLineAltChart.js +581 -659
  225. package/dist/MultiLineAltChart.js.map +1 -1
  226. package/dist/MultiLineChart.cjs +1 -1
  227. package/dist/MultiLineChart.cjs.map +1 -1
  228. package/dist/MultiLineChart.d.ts +1 -0
  229. package/dist/MultiLineChart.js +617 -725
  230. package/dist/MultiLineChart.js.map +1 -1
  231. package/dist/ParetoChart.cjs +1 -1
  232. package/dist/ParetoChart.cjs.map +1 -1
  233. package/dist/ParetoChart.d.ts +1 -0
  234. package/dist/ParetoChart.js +531 -635
  235. package/dist/ParetoChart.js.map +1 -1
  236. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  237. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  238. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  239. package/dist/PerformanceIntensiveMultiGraphDashboard.js +147 -338
  240. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  241. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  242. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
  243. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  244. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +22 -31
  245. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
  246. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  247. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
  248. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  249. package/dist/PerformanceIntensiveScrollStory.js +93 -114
  250. package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
  251. package/dist/RadarChart.cjs +1 -1
  252. package/dist/RadarChart.cjs.map +1 -1
  253. package/dist/RadarChart.d.ts +1 -0
  254. package/dist/RadarChart.js +426 -575
  255. package/dist/RadarChart.js.map +1 -1
  256. package/dist/ReferenceLine-2XCwHXQ4.js +162 -0
  257. package/dist/ReferenceLine-2XCwHXQ4.js.map +1 -0
  258. package/dist/ReferenceLine-BH0qdf4R.cjs +2 -0
  259. package/dist/ReferenceLine-BH0qdf4R.cjs.map +1 -0
  260. package/dist/RegressionLine-BOTTNSrr.cjs +2 -0
  261. package/dist/RegressionLine-BOTTNSrr.cjs.map +1 -0
  262. package/dist/RegressionLine-DAcY2DjT.js +87 -0
  263. package/dist/RegressionLine-DAcY2DjT.js.map +1 -0
  264. package/dist/SVGDownloadButton.cjs +1 -1
  265. package/dist/SVGDownloadButton.cjs.map +1 -1
  266. package/dist/SVGDownloadButton.js +21 -25
  267. package/dist/SVGDownloadButton.js.map +1 -1
  268. package/dist/SankeyChart.cjs +1 -1
  269. package/dist/SankeyChart.cjs.map +1 -1
  270. package/dist/SankeyChart.d.ts +1 -0
  271. package/dist/SankeyChart.js +665 -854
  272. package/dist/SankeyChart.js.map +1 -1
  273. package/dist/ScatterPlot.cjs +1 -1
  274. package/dist/ScatterPlot.cjs.map +1 -1
  275. package/dist/ScatterPlot.d.ts +1 -0
  276. package/dist/ScatterPlot.js +675 -815
  277. package/dist/ScatterPlot.js.map +1 -1
  278. package/dist/ScrollStory.cjs +1 -1
  279. package/dist/ScrollStory.cjs.map +1 -1
  280. package/dist/ScrollStory.d.ts +2 -0
  281. package/dist/ScrollStory.js +85 -97
  282. package/dist/ScrollStory.js.map +1 -1
  283. package/dist/SimpleLineChart.cjs +1 -1
  284. package/dist/SimpleLineChart.cjs.map +1 -1
  285. package/dist/SimpleLineChart.d.ts +1 -0
  286. package/dist/SimpleLineChart.js +504 -613
  287. package/dist/SimpleLineChart.js.map +1 -1
  288. package/dist/SingleGraphDashboard.cjs +1 -1
  289. package/dist/SingleGraphDashboard.cjs.map +1 -1
  290. package/dist/SingleGraphDashboard.d.ts +3 -1
  291. package/dist/SingleGraphDashboard.js +279 -507
  292. package/dist/SingleGraphDashboard.js.map +1 -1
  293. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  294. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
  295. package/dist/SingleGraphDashboardFromConfig.d.ts +3 -1
  296. package/dist/SingleGraphDashboardFromConfig.js +25 -31
  297. package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
  298. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  299. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  300. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  301. package/dist/SingleGraphDashboardGeoHubMaps.js +146 -168
  302. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  303. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  304. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
  305. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  306. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +25 -21
  307. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
  308. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  309. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  310. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  311. package/dist/SingleGraphDashboardThreeDGraphs.js +356 -589
  312. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  313. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  314. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
  315. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  316. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +25 -31
  317. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
  318. package/dist/SlopeChart.cjs +1 -1
  319. package/dist/SlopeChart.cjs.map +1 -1
  320. package/dist/SlopeChart.d.ts +1 -0
  321. package/dist/SlopeChart.js +539 -573
  322. package/dist/SlopeChart.js.map +1 -1
  323. package/dist/Source-DYMJRrsq.cjs +2 -0
  324. package/dist/Source-DYMJRrsq.cjs.map +1 -0
  325. package/dist/Source-DwTHB8fn.js +78 -0
  326. package/dist/Source-DwTHB8fn.js.map +1 -0
  327. package/dist/Source.cjs +1 -1
  328. package/dist/Source.cjs.map +1 -1
  329. package/dist/Source.js +4 -38
  330. package/dist/Source.js.map +1 -1
  331. package/dist/SparkLine.cjs +1 -1
  332. package/dist/SparkLine.cjs.map +1 -1
  333. package/dist/SparkLine.d.ts +1 -0
  334. package/dist/SparkLine.js +286 -314
  335. package/dist/SparkLine.js.map +1 -1
  336. package/dist/Spinner-D7rnnwnA.js +47 -0
  337. package/dist/Spinner-D7rnnwnA.js.map +1 -0
  338. package/dist/Spinner-DRMBUsX7.cjs +2 -0
  339. package/dist/Spinner-DRMBUsX7.cjs.map +1 -0
  340. package/dist/StatCardFromData.cjs +1 -1
  341. package/dist/StatCardFromData.cjs.map +1 -1
  342. package/dist/StatCardFromData.d.ts +1 -0
  343. package/dist/StatCardFromData.js +163 -243
  344. package/dist/StatCardFromData.js.map +1 -1
  345. package/dist/StripChart.cjs +1 -1
  346. package/dist/StripChart.cjs.map +1 -1
  347. package/dist/StripChart.d.ts +1 -0
  348. package/dist/StripChart.js +665 -983
  349. package/dist/StripChart.js.map +1 -1
  350. package/dist/ThreeDGlobe.cjs +1 -1
  351. package/dist/ThreeDGlobe.cjs.map +1 -1
  352. package/dist/ThreeDGlobe.d.ts +3 -0
  353. package/dist/ThreeDGlobe.js +355 -526
  354. package/dist/ThreeDGlobe.js.map +1 -1
  355. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  356. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  357. package/dist/ThresholdColorLegendWithMouseOver.js +96 -126
  358. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  359. package/dist/Tooltip-4dJo4_AF.cjs +2 -0
  360. package/dist/Tooltip-4dJo4_AF.cjs.map +1 -0
  361. package/dist/Tooltip-CwWUegPB.js +43 -0
  362. package/dist/Tooltip-CwWUegPB.js.map +1 -0
  363. package/dist/TreeMapGraph.cjs +1 -1
  364. package/dist/TreeMapGraph.cjs.map +1 -1
  365. package/dist/TreeMapGraph.d.ts +1 -0
  366. package/dist/TreeMapGraph.js +479 -617
  367. package/dist/TreeMapGraph.js.map +1 -1
  368. package/dist/Types.d.ts +2 -0
  369. package/dist/Typography-DX7PlgQU.cjs +2 -0
  370. package/dist/Typography-DX7PlgQU.cjs.map +1 -0
  371. package/dist/Typography-PxtFcnJb.js +142 -0
  372. package/dist/Typography-PxtFcnJb.js.map +1 -0
  373. package/dist/UnitChart.cjs +1 -1
  374. package/dist/UnitChart.cjs.map +1 -1
  375. package/dist/UnitChart.d.ts +1 -0
  376. package/dist/UnitChart.js +160 -212
  377. package/dist/UnitChart.js.map +1 -1
  378. package/dist/XAxesLabels-D5X8jngD.cjs +2 -0
  379. package/dist/XAxesLabels-D5X8jngD.cjs.map +1 -0
  380. package/dist/XAxesLabels-DNO0KmjL.js +73 -0
  381. package/dist/XAxesLabels-DNO0KmjL.js.map +1 -0
  382. package/dist/XTicksAndGridLines-B6CELS7q.cjs +2 -0
  383. package/dist/XTicksAndGridLines-B6CELS7q.cjs.map +1 -0
  384. package/dist/XTicksAndGridLines-CObVFSm4.js +38 -0
  385. package/dist/XTicksAndGridLines-CObVFSm4.js.map +1 -0
  386. package/dist/YAxesLabels-DcS85Beo.cjs +2 -0
  387. package/dist/YAxesLabels-DcS85Beo.cjs.map +1 -0
  388. package/dist/YAxesLabels-Dnnng49-.js +70 -0
  389. package/dist/YAxesLabels-Dnnng49-.js.map +1 -0
  390. package/dist/YTicksAndGridLines-4pxTRlRK.cjs +2 -0
  391. package/dist/YTicksAndGridLines-4pxTRlRK.cjs.map +1 -0
  392. package/dist/YTicksAndGridLines-Blepl7XF.js +38 -0
  393. package/dist/YTicksAndGridLines-Blepl7XF.js.map +1 -0
  394. package/dist/{band-BEjh2CHI.js → band-CyHaVft5.js} +3 -3
  395. package/dist/{band-BEjh2CHI.js.map → band-CyHaVft5.js.map} +1 -1
  396. package/dist/{band-CAApY4Pd.cjs → band-VYfcZeJ2.cjs} +2 -2
  397. package/dist/{band-CAApY4Pd.cjs.map → band-VYfcZeJ2.cjs.map} +1 -1
  398. package/dist/checkIfMultiple-Y9iKaV_u.js +950 -0
  399. package/dist/checkIfMultiple-Y9iKaV_u.js.map +1 -0
  400. package/dist/checkIfMultiple-wg6hJLXy.cjs +12 -0
  401. package/dist/checkIfMultiple-wg6hJLXy.cjs.map +1 -0
  402. package/dist/customArea-BUhPiPT6.js +163 -0
  403. package/dist/{customArea-B-dWU0zZ.js.map → customArea-BUhPiPT6.js.map} +1 -1
  404. package/dist/customArea-CMF5g-C3.cjs +2 -0
  405. package/dist/{customArea-CK768gCn.cjs.map → customArea-CMF5g-C3.cjs.map} +1 -1
  406. package/dist/delaunay-C1uAf38t.js.map +1 -1
  407. package/dist/delaunay-rcy0HhZi.cjs.map +1 -1
  408. package/dist/{ensureCompleteData-DlmibgaI.js → ensureCompleteData-DNKEGRiP.js} +12 -32
  409. package/dist/{ensureCompleteData-DlmibgaI.js.map → ensureCompleteData-DNKEGRiP.js.map} +1 -1
  410. package/dist/{ensureCompleteData-DkQYPeDa.cjs → ensureCompleteData-I6nYmT8E.cjs} +2 -2
  411. package/dist/{ensureCompleteData-DkQYPeDa.cjs.map → ensureCompleteData-I6nYmT8E.cjs.map} +1 -1
  412. package/dist/{excelDownload-BOA-lskf.js → excelDownload-BEC1AyQW.js} +12 -2
  413. package/dist/{excelDownload-BOA-lskf.js.map → excelDownload-BEC1AyQW.js.map} +1 -1
  414. package/dist/excelDownload-BQpsCa62.cjs.map +1 -1
  415. package/dist/{fetchAndParseData-sapWbnYk.js → fetchAndParseData-BpqkBPQL.js} +15 -28
  416. package/dist/{fetchAndParseData-sapWbnYk.js.map → fetchAndParseData-BpqkBPQL.js.map} +1 -1
  417. package/dist/fetchAndParseData-l5HGMAEs.cjs +16 -0
  418. package/dist/{fetchAndParseData-Ba-_CgxS.cjs.map → fetchAndParseData-l5HGMAEs.cjs.map} +1 -1
  419. package/dist/fetchAndParseData.cjs +1 -1
  420. package/dist/fetchAndParseData.js +1 -1
  421. package/dist/{filterData-9nEcQ-Jp.js → filterData-DsAiFzKY.js} +3 -5
  422. package/dist/{filterData-9nEcQ-Jp.js.map → filterData-DsAiFzKY.js.map} +1 -1
  423. package/dist/{filterData-BoYadk0l.cjs → filterData-T5DQBE9b.cjs} +2 -2
  424. package/dist/{filterData-BoYadk0l.cjs.map → filterData-T5DQBE9b.cjs.map} +1 -1
  425. package/dist/generateRandomString-B5zBiJzS.cjs.map +1 -1
  426. package/dist/generateRandomString-za3IQGfQ.js.map +1 -1
  427. package/dist/{getCentroidCoordinates-Dfk6IqEG.js → getCentroidCoordinates-D7r34N4w.js} +2 -2
  428. package/dist/{getCentroidCoordinates-Dfk6IqEG.js.map → getCentroidCoordinates-D7r34N4w.js.map} +1 -1
  429. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs → getCentroidCoordinates-Dng1HVjO.cjs} +2 -2
  430. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs.map → getCentroidCoordinates-Dng1HVjO.cjs.map} +1 -1
  431. package/dist/getGraphList-BpEWn1Tk.js +227 -0
  432. package/dist/{getGraphList-DuColTJM.js.map → getGraphList-BpEWn1Tk.js.map} +1 -1
  433. package/dist/getGraphList-gf02xgT2.cjs.map +1 -1
  434. package/dist/getJenks-BbngDoBQ.js.map +1 -1
  435. package/dist/getJenks-GYmdwBqm.cjs.map +1 -1
  436. package/dist/getSchema.cjs.map +1 -1
  437. package/dist/getSchema.js +445 -231
  438. package/dist/getSchema.js.map +1 -1
  439. package/dist/getSliderMarks-BmADcPQt.cjs +6 -0
  440. package/dist/getSliderMarks-BmADcPQt.cjs.map +1 -0
  441. package/dist/getSliderMarks-HIDJ0_Cd.js +1033 -0
  442. package/dist/getSliderMarks-HIDJ0_Cd.js.map +1 -0
  443. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js → getTextColorBasedOnBgColor-CDY808zi.js} +11 -3
  444. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js.map → getTextColorBasedOnBgColor-CDY808zi.js.map} +1 -1
  445. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -1
  446. package/dist/{getUniqValue-DiCh_MOD.js → getUniqValue-BKHCm3zE.js} +2 -4
  447. package/dist/{getUniqValue-DiCh_MOD.js.map → getUniqValue-BKHCm3zE.js.map} +1 -1
  448. package/dist/getUniqValue-RViz8tTw.cjs.map +1 -1
  449. package/dist/{imageDownload-Dcci2LEy.js → imageDownload-BX6SILNZ.js} +4 -2
  450. package/dist/{imageDownload-Dcci2LEy.js.map → imageDownload-BX6SILNZ.js.map} +1 -1
  451. package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -1
  452. package/dist/{index-DvVprvy6.js → index-BZQYSqar.js} +7 -7
  453. package/dist/{index-DvVprvy6.js.map → index-BZQYSqar.js.map} +1 -1
  454. package/dist/index-B_sAFsEV.cjs +2 -0
  455. package/dist/{index-BYzIB5V6.cjs.map → index-B_sAFsEV.cjs.map} +1 -1
  456. package/dist/index-BqfRwk1n.js +146 -0
  457. package/dist/index-BqfRwk1n.js.map +1 -0
  458. package/dist/{index-V_JXij1_.js → index-BuwmuDFJ.js} +3 -3
  459. package/dist/{index-V_JXij1_.js.map → index-BuwmuDFJ.js.map} +1 -1
  460. package/dist/index-CHPV5EwG-CTPQjnHt.cjs +84 -0
  461. package/dist/index-CHPV5EwG-CTPQjnHt.cjs.map +1 -0
  462. package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-Curnpaqc.js} +937 -842
  463. package/dist/index-CHPV5EwG-Curnpaqc.js.map +1 -0
  464. package/dist/index-Cno4Q0YE.cjs +2 -0
  465. package/dist/{index-CQ3e6Ewi.cjs.map → index-Cno4Q0YE.cjs.map} +1 -1
  466. package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-B2hEKjzG.js} +16 -16
  467. package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-B2hEKjzG.js.map} +1 -1
  468. package/dist/index-Cw8sCyo_-BrHiWiRF.cjs +2 -0
  469. package/dist/index-Cw8sCyo_-BrHiWiRF.cjs.map +1 -0
  470. package/dist/index-CyZ1lmi_.cjs +2 -0
  471. package/dist/{index-D72cOtq7.cjs.map → index-CyZ1lmi_.cjs.map} +1 -1
  472. package/dist/index-D491FEn1.js +184 -0
  473. package/dist/index-D491FEn1.js.map +1 -0
  474. package/dist/index-DG2bgAva.cjs +10 -0
  475. package/dist/index-DG2bgAva.cjs.map +1 -0
  476. package/dist/index-DRXx7m-C.cjs +2 -0
  477. package/dist/index-DRXx7m-C.cjs.map +1 -0
  478. package/dist/index-DoY3Ga3W.cjs +2 -0
  479. package/dist/index-DoY3Ga3W.cjs.map +1 -0
  480. package/dist/index-DxXnJ8Ti.cjs +2 -0
  481. package/dist/index-DxXnJ8Ti.cjs.map +1 -0
  482. package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-Bb7gobH_.js} +2 -2
  483. package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-Bb7gobH_.js.map} +1 -1
  484. package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-BmkfPMyc.cjs} +2 -2
  485. package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-BmkfPMyc.cjs.map} +1 -1
  486. package/dist/{index-9tDEUqOZ.js → index-GEsywGxz.js} +9 -9
  487. package/dist/index-GEsywGxz.js.map +1 -0
  488. package/dist/index-SKgJALZg.js +99 -0
  489. package/dist/{index-DKCxu1Gh.js.map → index-SKgJALZg.js.map} +1 -1
  490. package/dist/index-leTnKT2q.js +329 -0
  491. package/dist/index-leTnKT2q.js.map +1 -0
  492. package/dist/index.cjs +1 -1
  493. package/dist/index.d.ts +19 -8
  494. package/dist/index.js +13 -13
  495. package/dist/{init-BhZylTFx.js → init-BJFW6EwE.js} +3 -3
  496. package/dist/{init-BhZylTFx.js.map → init-BJFW6EwE.js.map} +1 -1
  497. package/dist/{linear-BVckp9RD.cjs → linear-BwPAspcq.cjs} +2 -2
  498. package/dist/{linear-BVckp9RD.cjs.map → linear-BwPAspcq.cjs.map} +1 -1
  499. package/dist/{linear-DUdu7l2G.js → linear-BwnDd9KF.js} +3 -3
  500. package/dist/{linear-DUdu7l2G.js.map → linear-BwnDd9KF.js.map} +1 -1
  501. package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -1
  502. package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -1
  503. package/dist/{ordinal-BOeNbyae.cjs → ordinal-CrsysVE-.cjs} +2 -2
  504. package/dist/ordinal-CrsysVE-.cjs.map +1 -0
  505. package/dist/{ordinal-w9Lu4Stb.js → ordinal-P77xw8aL.js} +24 -24
  506. package/dist/ordinal-P77xw8aL.js.map +1 -0
  507. package/dist/{pow-e8zx3AQJ.js → pow-DE4c7dbW.js} +3 -3
  508. package/dist/{pow-e8zx3AQJ.js.map → pow-DE4c7dbW.js.map} +1 -1
  509. package/dist/{pow-B5-jkdHU.cjs → pow-DgrUorRi.cjs} +2 -2
  510. package/dist/{pow-B5-jkdHU.cjs.map → pow-DgrUorRi.cjs.map} +1 -1
  511. package/dist/{proxy-CkpFesk1.js → proxy-BxkFHwUw.js} +144 -134
  512. package/dist/proxy-BxkFHwUw.js.map +1 -0
  513. package/dist/proxy-BxvUI_9l.cjs +2 -0
  514. package/dist/proxy-BxvUI_9l.cjs.map +1 -0
  515. package/dist/{removeOutliers-DR48e-18.js → removeOutliers-BqW0sPqj.js} +2 -5
  516. package/dist/{removeOutliers-DR48e-18.js.map → removeOutliers-BqW0sPqj.js.map} +1 -1
  517. package/dist/removeOutliers-WELHHqiI.cjs.map +1 -1
  518. package/dist/{sort-DfK1b0F5.js → sort-BIvMlUH1.js} +5 -5
  519. package/dist/{sort-DfK1b0F5.js.map → sort-BIvMlUH1.js.map} +1 -1
  520. package/dist/{string-CRoCZCYa.cjs → string-C-kRh1bQ.cjs} +2 -2
  521. package/dist/{string-CRoCZCYa.cjs.map → string-C-kRh1bQ.cjs.map} +1 -1
  522. package/dist/{string-B8KlVSPX.js → string-C_xJ4Wg4.js} +3 -3
  523. package/dist/{string-B8KlVSPX.js.map → string-C_xJ4Wg4.js.map} +1 -1
  524. package/dist/string2HTML-CPGr_I5E.cjs +3 -0
  525. package/dist/{string2HTML-z7CwHXcx.cjs.map → string2HTML-CPGr_I5E.cjs.map} +1 -1
  526. package/dist/{string2HTML-oFCROsus.js → string2HTML-DhG75NqA.js} +15 -9
  527. package/dist/{string2HTML-oFCROsus.js.map → string2HTML-DhG75NqA.js.map} +1 -1
  528. package/dist/style.css +1 -1
  529. package/dist/{svgDownload-C2-E3yf2.js → svgDownload-BAoarWNt.js} +4 -2
  530. package/dist/{svgDownload-C2-E3yf2.js.map → svgDownload-BAoarWNt.js.map} +1 -1
  531. package/dist/svgDownload-D9zEGjTF.cjs.map +1 -1
  532. package/dist/{threshold-DFfqcDMa.js → threshold-Bgr20hik.js} +2 -2
  533. package/dist/{threshold-DFfqcDMa.js.map → threshold-Bgr20hik.js.map} +1 -1
  534. package/dist/{time-Byw_jYQ7.cjs → time-CZd5YLSP.cjs} +2 -2
  535. package/dist/{time-Byw_jYQ7.cjs.map → time-CZd5YLSP.cjs.map} +1 -1
  536. package/dist/{time-BzJP5SPC.js → time-DCCfQk3V.js} +3 -3
  537. package/dist/{time-BzJP5SPC.js.map → time-DCCfQk3V.js.map} +1 -1
  538. package/dist/transformData.cjs +1 -1
  539. package/dist/transformData.js +3 -3
  540. package/dist/transformDataForAggregation-CE3bAlHU.js +585 -0
  541. package/dist/{transformDataForAggregation-sBpdlX8n.js.map → transformDataForAggregation-CE3bAlHU.js.map} +1 -1
  542. package/dist/transformDataForAggregation-KXGm6flX.cjs.map +1 -1
  543. package/dist/transformDataForGraphFromFile-BExxcITV.js +14 -0
  544. package/dist/{transformDataForGraphFromFile-ComYvzuz.js.map → transformDataForGraphFromFile-BExxcITV.js.map} +1 -1
  545. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs → transformDataForGraphFromFile-DaJHQCsL.cjs} +2 -2
  546. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs.map → transformDataForGraphFromFile-DaJHQCsL.cjs.map} +1 -1
  547. package/dist/transformDataForSelect-D8AuvYdf.js.map +1 -1
  548. package/dist/transformDataForSelect-YmStusCI.cjs.map +1 -1
  549. package/dist/uniqBy-BHy4I8PK.js.map +1 -1
  550. package/dist/uniqBy-O05lp2S5.cjs.map +1 -1
  551. package/dist/{use-in-view-yS6jzJAp.js → use-in-view-Cxa7y1TH.js} +2 -2
  552. package/dist/use-in-view-Cxa7y1TH.js.map +1 -0
  553. package/dist/use-in-view-QcfiW0w3.cjs +2 -0
  554. package/dist/use-in-view-QcfiW0w3.cjs.map +1 -0
  555. package/dist/utils.cjs +1 -1
  556. package/dist/utils.js +8 -8
  557. package/dist/validateSchema.cjs.map +1 -1
  558. package/dist/validateSchema.js +33 -29
  559. package/dist/validateSchema.js.map +1 -1
  560. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs → x-BBpi7a_7-mTo40uId.cjs} +2 -2
  561. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs.map → x-BBpi7a_7-mTo40uId.cjs.map} +1 -1
  562. package/dist/{y-D0sAaVii.js → y-BqfogMAB.js} +3 -3
  563. package/dist/{y-D0sAaVii.js.map → y-BqfogMAB.js.map} +1 -1
  564. package/dist/{zoom-QipiAl5W.js → zoom-C9MFjAaV.js} +5 -5
  565. package/dist/{zoom-QipiAl5W.js.map → zoom-C9MFjAaV.js.map} +1 -1
  566. package/dist/zoom-DPw8bba-.cjs +2 -0
  567. package/dist/{zoom-BiMNsz72.cjs.map → zoom-DPw8bba-.cjs.map} +1 -1
  568. package/package.json +9 -8
  569. package/dist/Axis-DE7dSn1_.cjs +0 -2
  570. package/dist/Axis-DE7dSn1_.cjs.map +0 -1
  571. package/dist/Axis-Ddg-seDi.js +0 -43
  572. package/dist/Axis-Ddg-seDi.js.map +0 -1
  573. package/dist/AxisTitle-BmHLMRJZ.js +0 -20
  574. package/dist/AxisTitle-BmHLMRJZ.js.map +0 -1
  575. package/dist/AxisTitle-CK9YeovX.cjs +0 -2
  576. package/dist/AxisTitle-CK9YeovX.cjs.map +0 -1
  577. package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
  578. package/dist/DropdownSelect-DBDM64B5.cjs +0 -29
  579. package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
  580. package/dist/EmptyState-DdTp-Mdn.js +0 -22
  581. package/dist/EmptyState-d8_8SxeW.cjs +0 -2
  582. package/dist/GraphEl-C6yjl1VM.cjs +0 -2
  583. package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
  584. package/dist/GraphEl-CqWzvOyr.js.map +0 -1
  585. package/dist/Modal-DVVwpKhP.js +0 -1019
  586. package/dist/Modal-DVVwpKhP.js.map +0 -1
  587. package/dist/Modal-tXZlLE5s.cjs +0 -46
  588. package/dist/Modal-tXZlLE5s.cjs.map +0 -1
  589. package/dist/ReferenceLine-CFVBBN__.cjs +0 -2
  590. package/dist/ReferenceLine-CFVBBN__.cjs.map +0 -1
  591. package/dist/ReferenceLine-CfAW3vKJ.js +0 -128
  592. package/dist/ReferenceLine-CfAW3vKJ.js.map +0 -1
  593. package/dist/RegressionLine-C2--oMQq.js +0 -49
  594. package/dist/RegressionLine-C2--oMQq.js.map +0 -1
  595. package/dist/RegressionLine-Dj0GSiAp.cjs +0 -2
  596. package/dist/RegressionLine-Dj0GSiAp.cjs.map +0 -1
  597. package/dist/Spinner-C85UF28E.js +0 -30
  598. package/dist/Spinner-C85UF28E.js.map +0 -1
  599. package/dist/Spinner-DA6Z5E4n.cjs +0 -2
  600. package/dist/Spinner-DA6Z5E4n.cjs.map +0 -1
  601. package/dist/Tooltip-CVCGWyzw.js +0 -46
  602. package/dist/Tooltip-CVCGWyzw.js.map +0 -1
  603. package/dist/Tooltip-De16GWhY.cjs +0 -2
  604. package/dist/Tooltip-De16GWhY.cjs.map +0 -1
  605. package/dist/Typography-Ctgfl1J5.js +0 -140
  606. package/dist/Typography-Ctgfl1J5.js.map +0 -1
  607. package/dist/Typography-k-kOjICQ.cjs +0 -2
  608. package/dist/Typography-k-kOjICQ.cjs.map +0 -1
  609. package/dist/XAxesLabels-Drf7M3YK.cjs +0 -2
  610. package/dist/XAxesLabels-Drf7M3YK.cjs.map +0 -1
  611. package/dist/XAxesLabels-loO78vUO.js +0 -57
  612. package/dist/XAxesLabels-loO78vUO.js.map +0 -1
  613. package/dist/XTicksAndGridLines-Bn9u5gOM.js +0 -56
  614. package/dist/XTicksAndGridLines-Bn9u5gOM.js.map +0 -1
  615. package/dist/XTicksAndGridLines-CCzXIV8d.cjs +0 -2
  616. package/dist/XTicksAndGridLines-CCzXIV8d.cjs.map +0 -1
  617. package/dist/YAxesLabels-DECkMgq8.js +0 -52
  618. package/dist/YAxesLabels-DECkMgq8.js.map +0 -1
  619. package/dist/YAxesLabels-yRFFdx1s.cjs +0 -2
  620. package/dist/YAxesLabels-yRFFdx1s.cjs.map +0 -1
  621. package/dist/YTicksAndGridLines-B6ah7CRf.js +0 -56
  622. package/dist/YTicksAndGridLines-B6ah7CRf.js.map +0 -1
  623. package/dist/YTicksAndGridLines-DBDuz6vb.cjs +0 -2
  624. package/dist/YTicksAndGridLines-DBDuz6vb.cjs.map +0 -1
  625. package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
  626. package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
  627. package/dist/checkIfMultiple-ChTJk2Tk.js +0 -912
  628. package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
  629. package/dist/customArea-B-dWU0zZ.js +0 -175
  630. package/dist/customArea-CK768gCn.cjs +0 -2
  631. package/dist/fetchAndParseData-Ba-_CgxS.cjs +0 -16
  632. package/dist/getGraphList-DuColTJM.js +0 -265
  633. package/dist/getSliderMarks-9cNoRkDx.js +0 -1023
  634. package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
  635. package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
  636. package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
  637. package/dist/index-37q0ULNQ.js +0 -430
  638. package/dist/index-37q0ULNQ.js.map +0 -1
  639. package/dist/index-9tDEUqOZ.js.map +0 -1
  640. package/dist/index-BW8iNx7E.cjs +0 -10
  641. package/dist/index-BW8iNx7E.cjs.map +0 -1
  642. package/dist/index-BW_-wD2k.cjs +0 -2
  643. package/dist/index-BW_-wD2k.cjs.map +0 -1
  644. package/dist/index-BYzIB5V6.cjs +0 -2
  645. package/dist/index-BmCqpO1B.js +0 -342
  646. package/dist/index-BmCqpO1B.js.map +0 -1
  647. package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
  648. package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
  649. package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
  650. package/dist/index-CNvov0eg.js +0 -122
  651. package/dist/index-CNvov0eg.js.map +0 -1
  652. package/dist/index-CQ3e6Ewi.cjs +0 -2
  653. package/dist/index-CVlCtJbC.cjs +0 -2
  654. package/dist/index-CVlCtJbC.cjs.map +0 -1
  655. package/dist/index-CoZbeNM9.cjs +0 -2
  656. package/dist/index-CoZbeNM9.cjs.map +0 -1
  657. package/dist/index-D72cOtq7.cjs +0 -2
  658. package/dist/index-DKCxu1Gh.js +0 -77
  659. package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
  660. package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
  661. package/dist/ordinal-BOeNbyae.cjs.map +0 -1
  662. package/dist/ordinal-w9Lu4Stb.js.map +0 -1
  663. package/dist/proxy-BHRoeZgd.cjs +0 -2
  664. package/dist/proxy-BHRoeZgd.cjs.map +0 -1
  665. package/dist/proxy-CkpFesk1.js.map +0 -1
  666. package/dist/string2HTML-z7CwHXcx.cjs +0 -3
  667. package/dist/transformDataForAggregation-sBpdlX8n.js +0 -755
  668. package/dist/transformDataForGraphFromFile-ComYvzuz.js +0 -24
  669. package/dist/use-in-view-sQJZ_xDO.cjs +0 -2
  670. package/dist/use-in-view-sQJZ_xDO.cjs.map +0 -1
  671. package/dist/use-in-view-yS6jzJAp.js.map +0 -1
  672. package/dist/zoom-BiMNsz72.cjs +0 -2
@@ -1,627 +1,518 @@
1
- import { j as t, m as P } from "./index-CHPV5EwG-BPSP-7Jg.js";
2
- import { useRef as se, useState as M, useEffect as de } from "react";
3
- import { p as h, f as Oe } from "./parse-DlCRUFh_.js";
4
- import { l as De, a as Le } from "./simple-statistics-flVzqVtt.js";
5
- import { o as $e } from "./index-DvVprvy6.js";
6
- import { n as Ae } from "./numberFormattingFunction-14YCbkN2.js";
7
- import { T as Ne } from "./Tooltip-CVCGWyzw.js";
8
- import { c as k } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
- import { C as ke, g as Te, A as Se } from "./customArea-B-dWU0zZ.js";
10
- import { A as Me } from "./Axis-Ddg-seDi.js";
11
- import { A as Ve } from "./AxisTitle-BmHLMRJZ.js";
12
- import { X as Re } from "./XTicksAndGridLines-Bn9u5gOM.js";
13
- import { R as He } from "./ReferenceLine-CfAW3vKJ.js";
14
- import { R as Ie } from "./RegressionLine-C2--oMQq.js";
15
- import { Y as We } from "./YTicksAndGridLines-B6ah7CRf.js";
16
- import { H as Fe } from "./index-DKCxu1Gh.js";
17
- import { t as Ye } from "./time-BzJP5SPC.js";
18
- import { a as Pe } from "./linear-DUdu7l2G.js";
19
- import { l as Xe, c as Ee } from "./line-CPfhohvF.js";
20
- import { c as Ge, s as Be, a as ze, m as Ue } from "./step-BrDul-H4.js";
21
- import { s as qe } from "./select-DKy99ogv.js";
22
- import { a as Je } from "./init-BhZylTFx.js";
23
- import { p as Ke } from "./pointer-CWRWOsrb.js";
24
- import { u as Qe } from "./use-in-view-yS6jzJAp.js";
25
- import { m as Y } from "./proxy-CkpFesk1.js";
26
- import { GraphFooter as Ze } from "./GraphFooter.js";
27
- import { GraphHeader as _e } from "./GraphHeader.js";
28
- import { Colors as et } from "./Colors.js";
29
- import { E as tt } from "./EmptyState-DdTp-Mdn.js";
30
- function it(re) {
31
- const {
32
- data: D,
33
- width: A,
34
- height: V,
35
- lineColor: R,
36
- suffix: L,
1
+ import { c as Te, m as ge, j as o } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as he, useState as Gt, useEffect as $e } from "react";
3
+ import { p as w, f as Re } from "./parse-DlCRUFh_.js";
4
+ import { l as He, a as Fe } from "./simple-statistics-flVzqVtt.js";
5
+ import { o as Ie } from "./index-BZQYSqar.js";
6
+ import { n as Se } from "./numberFormattingFunction-14YCbkN2.js";
7
+ import { T as We } from "./Tooltip-CwWUegPB.js";
8
+ import { c as bt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
+ import { g as Ye, A as Ge, C as Pe } from "./customArea-BUhPiPT6.js";
10
+ import { A as Xe } from "./Axis-CRyfcLjc.js";
11
+ import { A as Ee } from "./AxisTitle-jeI7am8o.js";
12
+ import { X as Be } from "./XTicksAndGridLines-CObVFSm4.js";
13
+ import { a as ze } from "./ReferenceLine-2XCwHXQ4.js";
14
+ import { R as Ue } from "./RegressionLine-DAcY2DjT.js";
15
+ import { Y as qe } from "./YTicksAndGridLines-Blepl7XF.js";
16
+ import { H as Je } from "./index-SKgJALZg.js";
17
+ import { t as Ke } from "./time-DCCfQk3V.js";
18
+ import { a as Qe } from "./linear-BwnDd9KF.js";
19
+ import { l as Ze, c as _e } from "./line-CPfhohvF.js";
20
+ import { c as ti, s as ei, a as ii, m as oi } from "./step-BrDul-H4.js";
21
+ import { s as ni } from "./select-DKy99ogv.js";
22
+ import { c as si } from "./init-BJFW6EwE.js";
23
+ import { p as ai } from "./pointer-CWRWOsrb.js";
24
+ import { u as ri } from "./use-in-view-Cxa7y1TH.js";
25
+ import { m as _t } from "./proxy-BxkFHwUw.js";
26
+ import { GraphFooter as li } from "./GraphFooter.js";
27
+ import { GraphHeader as ci } from "./GraphHeader.js";
28
+ import { Colors as mi } from "./Colors.js";
29
+ import { E as fi } from "./EmptyState-BZo1BbAn.js";
30
+ import { a as ui, G as pi } from "./GraphContainer-CRqzdKu2.js";
31
+ function xi(i) {
32
+ const t = Te.c(110), {
33
+ data: A,
34
+ width: W,
35
+ height: nt,
36
+ lineColor: Y,
37
+ suffix: b,
37
38
  prefix: T,
38
- dateFormat: s,
39
- highlightAreaSettings: S,
40
- showValues: c,
41
- noOfXTicks: X,
42
- rightMargin: ne,
43
- leftMargin: d,
44
- topMargin: le,
45
- bottomMargin: E,
46
- tooltip: v,
47
- onSeriesMouseOver: H,
48
- refValues: G,
49
- minValue: B,
50
- maxValue: z,
51
- animate: a,
52
- rtl: U,
53
- strokeWidth: ce,
54
- showDots: me,
55
- annotations: xe,
56
- customHighlightAreaSettings: fe,
57
- regressionLine: I,
58
- yAxisTitle: q,
59
- noOfYTicks: he,
60
- maxDate: W,
61
- minDate: F,
62
- curveType: $,
63
- styles: n,
64
- classNames: x,
65
- precision: w,
66
- customLayers: J
67
- } = re, K = se(null), g = Qe(K, {
68
- once: a.once,
69
- amount: a.amount
70
- }), [C, ge] = M(!1);
71
- de(() => {
72
- if (g && !C) {
73
- const e = setTimeout(
74
- () => {
75
- ge(!0);
76
- },
77
- (a.duration + 0.5) * 1e3
78
- );
39
+ dateFormat: n,
40
+ highlightAreaSettings: st,
41
+ showValues: C,
42
+ noOfXTicks: Ct,
43
+ rightMargin: jt,
44
+ leftMargin: O,
45
+ topMargin: Ot,
46
+ bottomMargin: at,
47
+ tooltip: rt,
48
+ onSeriesMouseOver: Dt,
49
+ refValues: Pt,
50
+ minValue: Xt,
51
+ maxValue: lt,
52
+ animate: s,
53
+ rtl: Lt,
54
+ strokeWidth: ct,
55
+ showDots: kt,
56
+ annotations: Et,
57
+ customHighlightAreaSettings: mt,
58
+ regressionLine: ft,
59
+ yAxisTitle: G,
60
+ noOfYTicks: Bt,
61
+ maxDate: zt,
62
+ minDate: Ut,
63
+ curveType: ut,
64
+ styles: d,
65
+ classNames: p,
66
+ precision: M,
67
+ customLayers: N
68
+ } = i, qt = he(null);
69
+ let V;
70
+ t[0] !== s.amount || t[1] !== s.once ? (V = {
71
+ once: s.once,
72
+ amount: s.amount
73
+ }, t[0] = s.amount, t[1] = s.once, t[2] = V) : V = t[2];
74
+ const f = ri(qt, V), [j, Jt] = Gt(!1);
75
+ let pt, P;
76
+ t[3] !== s.duration || t[4] !== j || t[5] !== f ? (pt = () => {
77
+ if (f && !j) {
78
+ const e = setTimeout(() => {
79
+ Jt(!0);
80
+ }, (s.duration + 0.5) * 1e3);
79
81
  return () => clearTimeout(e);
80
82
  }
81
- }, [g, C, a.duration]);
82
- const ue = $ === "linear" ? Ee : $ === "step" ? Ge : $ === "stepAfter" ? Be : $ === "stepBefore" ? ze : Ue, [N, Q] = M(void 0), [Z, _] = M(void 0), [j, b] = M(void 0), u = {
83
- top: le,
84
- bottom: E,
85
- left: q ? d + 30 : d,
86
- right: ne
87
- }, ee = se(null), i = $e(
88
- D.map((e) => ({
89
- ...e,
90
- date: h(`${e.date}`, s, /* @__PURE__ */ new Date())
91
- })),
92
- ["date"],
93
- ["asc"]
94
- ), te = S.map((e) => ({
95
- ...e,
96
- coordinates: [
97
- e.coordinates[0] === null ? null : h(`${e.coordinates[0]}`, s, /* @__PURE__ */ new Date()),
98
- e.coordinates[1] === null ? null : h(`${e.coordinates[1]}`, s, /* @__PURE__ */ new Date())
99
- ]
100
- })), ie = fe.map((e) => ({
83
+ }, P = [f, j, s.duration], t[3] = s.duration, t[4] = j, t[5] = f, t[6] = pt, t[7] = P) : (pt = t[6], P = t[7]), $e(pt, P);
84
+ const te = ut === "linear" ? _e : ut === "step" ? ti : ut === "stepAfter" ? ei : ut === "stepBefore" ? ii : oi, [D, u] = Gt(void 0), [c, Kt] = Gt(void 0), [R, $t] = Gt(void 0), xt = G ? O + 30 : O;
85
+ let X;
86
+ t[8] !== at || t[9] !== jt || t[10] !== xt || t[11] !== Ot ? (X = {
87
+ top: Ot,
88
+ bottom: at,
89
+ left: xt,
90
+ right: jt
91
+ }, t[8] = at, t[9] = jt, t[10] = xt, t[11] = Ot, t[12] = X) : X = t[12];
92
+ const y = X, E = he(null);
93
+ let B;
94
+ t[13] !== n ? (B = (e) => ({
101
95
  ...e,
102
- coordinates: e.coordinates.map(
103
- (y, O) => O % 2 === 0 ? h(`${y}`, s, /* @__PURE__ */ new Date()) : y
104
- )
105
- })), l = A - u.left - u.right, f = V - u.top - u.bottom, ae = F ? h(`${F}`, s, /* @__PURE__ */ new Date()) : i[0].date, m = W ? h(`${W}`, s, /* @__PURE__ */ new Date()) : i[i.length - 1].date, p = k(B) ? Math.min(...i.map((e) => e.y).filter((e) => e != null)) !== 1 / 0 ? Math.min(...i.map((e) => e.y).filter((e) => e != null)) > 0 ? 0 : Math.min(...i.map((e) => e.y).filter((e) => e != null)) : 0 : B, pe = Math.max(...i.map((e) => e.y).filter((e) => e != null)) !== 1 / 0 ? Math.max(...i.map((e) => e.y).filter((e) => e != null)) : 0, o = Ye().domain([ae, m]).range([0, l]), r = Pe().domain([
106
- p,
107
- k(z) ? pe > 0 ? pe : 0 : z
108
- ]).range([f, 0]).nice(), ve = Xe().x((e) => o(e.date)).y((e) => r(e.y)).curve(ue), we = r.ticks(he), je = o.ticks(X);
109
- de(() => {
110
- const e = (O) => {
111
- const oe = i[Je(
112
- i.map((ye) => ye.date),
113
- o.invert(Ke(O)[0]),
114
- 0
115
- )];
116
- Q(oe || i[i.length - 1]), H?.(oe || i[i.length - 1]), b(O.clientY), _(O.clientX);
117
- }, y = () => {
118
- Q(void 0), _(void 0), b(void 0), H?.(void 0);
96
+ date: w(`${e.date}`, n, /* @__PURE__ */ new Date())
97
+ }), t[13] = n, t[14] = B) : B = t[14];
98
+ const r = Ie(A.map(B), ["date"], ["asc"]);
99
+ let z;
100
+ if (t[15] !== n || t[16] !== st) {
101
+ let e;
102
+ t[18] !== n ? (e = (h) => ({
103
+ ...h,
104
+ coordinates: [h.coordinates[0] === null ? null : w(`${h.coordinates[0]}`, n, /* @__PURE__ */ new Date()), h.coordinates[1] === null ? null : w(`${h.coordinates[1]}`, n, /* @__PURE__ */ new Date())]
105
+ }), t[18] = n, t[19] = e) : e = t[19], z = st.map(e), t[15] = n, t[16] = st, t[17] = z;
106
+ } else
107
+ z = t[17];
108
+ const dt = z;
109
+ let U;
110
+ if (t[20] !== mt || t[21] !== n) {
111
+ let e;
112
+ t[23] !== n ? (e = (h) => ({
113
+ ...h,
114
+ coordinates: h.coordinates.map((I, Yt) => Yt % 2 === 0 ? w(`${I}`, n, /* @__PURE__ */ new Date()) : I)
115
+ }), t[23] = n, t[24] = e) : e = t[24], U = mt.map(e), t[20] = mt, t[21] = n, t[22] = U;
116
+ } else
117
+ U = t[22];
118
+ const St = U, m = W - y.left - y.right, g = nt - y.top - y.bottom, Tt = Ut ? w(`${Ut}`, n, /* @__PURE__ */ new Date()) : r[0].date, Mt = zt ? w(`${zt}`, n, /* @__PURE__ */ new Date()) : r[r.length - 1].date, x = bt(Xt) ? Math.min(...r.map(Mi).filter(Ti)) !== 1 / 0 ? Math.min(...r.map(Si).filter($i)) > 0 ? 0 : Math.min(...r.map(ki).filter(Li)) : 0 : Xt, L = Math.max(...r.map(Di).filter(Oi)) !== 1 / 0 ? Math.max(...r.map(ji).filter(Ci)) : 0, a = Ke().domain([Tt, Mt]).range([0, m]);
119
+ let q;
120
+ t[25] !== L || t[26] !== lt ? (q = bt(lt) ? L > 0 ? L : 0 : lt, t[25] = L, t[26] = lt, t[27] = q) : q = t[27];
121
+ const l = Qe().domain([x, q]).range([g, 0]).nice(), Nt = Ze().x((e) => a(e.date)).y((e) => l(e.y)).curve(te), gt = l.ticks(Bt), Vt = a.ticks(Ct);
122
+ $e(() => {
123
+ const e = (I) => {
124
+ const Yt = r[si(r.map(bi), a.invert(ai(I)[0]), 0)];
125
+ u(Yt || r[r.length - 1]), Dt?.(Yt || r[r.length - 1]), $t(I.clientY), Kt(I.clientX);
126
+ }, h = () => {
127
+ u(void 0), Kt(void 0), $t(void 0), Dt?.(void 0);
119
128
  };
120
- qe(ee.current).on("mousemove", e).on("mouseout", y);
121
- }, [o, i, H]);
122
- const Ce = De(
123
- i.filter((e) => !k(e.date) && !k(e.y)).map((e) => [o(e.date), r(e.y)])
124
- ), be = Le(Ce);
125
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
126
- /* @__PURE__ */ t.jsx(
127
- Y.svg,
128
- {
129
- width: `${A}px`,
130
- height: `${V}px`,
131
- viewBox: `0 0 ${A} ${V}`,
132
- direction: "ltr",
133
- ref: K,
134
- children: /* @__PURE__ */ t.jsxs("g", { transform: `translate(${u.left},${u.top})`, children: [
135
- /* @__PURE__ */ t.jsx(
136
- Fe,
137
- {
138
- areaSettings: te,
139
- width: l,
140
- height: f,
141
- scale: o,
142
- animate: a,
143
- isInView: g
144
- }
145
- ),
146
- /* @__PURE__ */ t.jsx(
147
- ke,
148
- {
149
- areaSettings: ie,
150
- scaleX: o,
151
- scaleY: r,
152
- animate: a,
153
- isInView: g
154
- }
155
- ),
156
- /* @__PURE__ */ t.jsxs("g", { children: [
157
- /* @__PURE__ */ t.jsx(
158
- We,
159
- {
160
- values: we.filter((e) => e !== 0),
161
- y: we.filter((e) => e !== 0).map((e) => r(e)),
162
- x1: 0 - d,
163
- x2: l + u.right,
164
- styles: {
165
- gridLines: n?.yAxis?.gridLines,
166
- labels: n?.yAxis?.labels
167
- },
168
- classNames: {
169
- gridLines: x?.yAxis?.gridLines,
170
- labels: x?.yAxis?.labels
171
- },
172
- suffix: L,
173
- prefix: T,
174
- labelType: "secondary",
175
- showGridLines: !0,
176
- labelPos: "vertical",
177
- precision: w
178
- }
179
- ),
180
- /* @__PURE__ */ t.jsx(
181
- Me,
182
- {
183
- y1: r(p < 0 ? 0 : p),
184
- y2: r(p < 0 ? 0 : p),
185
- x1: 0 - d,
186
- x2: l + u.right,
187
- label: Ae(
188
- p < 0 ? 0 : p,
189
- "NA",
190
- w,
191
- T,
192
- L
193
- ),
194
- labelPos: {
195
- x: 0 - d,
196
- y: r(p < 0 ? 0 : p),
197
- dx: 0,
198
- dy: pe < 0 ? "1em" : -5
199
- },
200
- classNames: {
201
- axis: x?.xAxis?.axis,
202
- label: x?.yAxis?.labels
203
- },
204
- styles: {
205
- axis: n?.xAxis?.axis,
206
- label: n?.yAxis?.labels
207
- }
208
- }
209
- ),
210
- /* @__PURE__ */ t.jsx(
211
- Ve,
212
- {
213
- x: 0 - d - 15,
214
- y: f / 2,
215
- style: n?.yAxis?.title,
216
- className: x?.yAxis?.title,
217
- text: q,
218
- rotate90: !0
219
- }
220
- )
221
- ] }),
222
- /* @__PURE__ */ t.jsx(
223
- Re,
224
- {
225
- values: je.map((e) => Oe(e, s)),
226
- x: je.map((e) => o(e)),
227
- y1: 0,
228
- y2: f,
229
- styles: {
230
- gridLines: n?.xAxis?.gridLines,
231
- labels: n?.xAxis?.labels
232
- },
233
- classNames: {
234
- gridLines: P("opacity-0", x?.xAxis?.gridLines),
235
- labels: P(
236
- "fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",
237
- x?.xAxis?.labels
238
- )
239
- },
240
- suffix: L,
241
- prefix: T,
242
- labelType: "primary",
243
- showGridLines: !0,
244
- precision: w
245
- }
246
- ),
247
- J.filter((e) => e.position === "before").map((e) => e.layer),
248
- /* @__PURE__ */ t.jsxs("g", { children: [
249
- /* @__PURE__ */ t.jsx(
250
- Y.path,
251
- {
252
- style: {
253
- stroke: R,
254
- fill: "none",
255
- strokeWidth: ce
256
- },
257
- exit: { opacity: 0, transition: { duration: a.duration } },
258
- variants: {
259
- initial: {
260
- pathLength: 0,
261
- d: ve(i) || "",
262
- opacity: 1
263
- },
264
- whileInView: {
265
- pathLength: 1,
266
- d: ve(i) || "",
267
- opacity: 1,
268
- transition: { duration: a.duration }
269
- }
270
- },
271
- initial: "initial",
272
- animate: g ? "whileInView" : "initial"
273
- }
274
- ),
275
- N ? /* @__PURE__ */ t.jsx(
276
- "line",
277
- {
278
- y1: 0,
279
- y2: f,
280
- x1: o(N.date),
281
- x2: o(N.date),
282
- className: P(
283
- "undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",
284
- x?.mouseOverLine
285
- ),
286
- style: n?.mouseOverLine
287
- }
288
- ) : null
289
- ] }),
290
- /* @__PURE__ */ t.jsx("g", { children: i.map((e, y) => /* @__PURE__ */ t.jsx(Y.g, { children: k(e.y) ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
291
- me ? /* @__PURE__ */ t.jsx(
292
- Y.circle,
293
- {
294
- r: l / i.length < 5 ? 0 : l / i.length < 20 ? 2 : 4,
295
- exit: { opacity: 0, transition: { duration: a.duration } },
296
- variants: {
297
- initial: {
298
- opacity: 0,
299
- cx: o(e.date),
300
- cy: r(e.y),
301
- fill: R
302
- },
303
- whileInView: {
304
- opacity: 1,
305
- fill: R,
306
- transition: {
307
- duration: C ? a.duration : 0.5,
308
- delay: C ? 0 : a.duration
309
- },
310
- cx: o(e.date),
311
- cy: r(e.y)
312
- }
313
- },
314
- initial: "initial",
315
- animate: g ? "whileInView" : "initial"
316
- }
317
- ) : null,
318
- c ? /* @__PURE__ */ t.jsx(
319
- Y.text,
320
- {
321
- dy: -8,
322
- style: {
323
- textAnchor: "middle",
324
- ...n?.graphObjectValues || {}
325
- },
326
- className: P(
327
- "graph-value text-xs font-bold",
328
- x?.graphObjectValues
329
- ),
330
- exit: { opacity: 0, transition: { duration: a.duration } },
331
- variants: {
332
- initial: { opacity: 0, x: o(e.date), y: r(e.y) },
333
- whileInView: {
334
- opacity: 1,
335
- x: o(e.date),
336
- y: r(e.y),
337
- transition: {
338
- duration: C ? a.duration : 0.5,
339
- delay: C ? 0 : a.duration
340
- }
341
- }
342
- },
343
- initial: "initial",
344
- animate: g ? "whileInView" : "initial",
345
- children: Ae(e.y, "NA", w, T, L)
346
- }
347
- ) : null
348
- ] }) }, y)) }),
349
- G ? /* @__PURE__ */ t.jsx(t.Fragment, { children: G.map((e, y) => /* @__PURE__ */ t.jsx(
350
- He,
351
- {
352
- text: e.text,
353
- color: e.color,
354
- y: r(e.value),
355
- x1: 0 - d,
356
- x2: l + u.right,
357
- classNames: e.classNames,
358
- styles: e.styles,
359
- animate: a,
360
- isInView: g
361
- },
362
- y
363
- )) }) : null,
364
- /* @__PURE__ */ t.jsx("g", { children: xe.map((e, y) => {
365
- const O = Te(
366
- {
367
- x: e.xCoordinate ? o(h(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
368
- y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
369
- },
370
- {
371
- x: e.xCoordinate ? o(h(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) : 0,
372
- y: e.yCoordinate ? r(e.yCoordinate) : 0
373
- },
374
- k(e.connectorRadius) ? 3.5 : e.connectorRadius
375
- ), oe = e.showConnector ? {
376
- y1: O.y,
377
- x1: O.x,
378
- y2: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
379
- x2: e.xCoordinate ? o(h(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
380
- cy: e.yCoordinate ? r(e.yCoordinate) : 0,
381
- cx: e.xCoordinate ? o(h(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) : 0,
382
- circleRadius: k(e.connectorRadius) ? 3.5 : e.connectorRadius,
383
- strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
384
- } : void 0, ye = {
385
- y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
386
- x: U ? 0 : e.xCoordinate ? o(h(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
387
- width: U ? e.xCoordinate ? o(h(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : l + u.right - (e.xCoordinate ? o(h(`${e.xCoordinate}`, s, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
388
- maxWidth: e.maxWidth,
389
- fontWeight: e.fontWeight,
390
- align: e.align
391
- };
392
- return /* @__PURE__ */ t.jsx(
393
- Se,
394
- {
395
- color: e.color,
396
- connectorsSettings: oe,
397
- labelSettings: ye,
398
- text: e.text,
399
- classNames: e.classNames,
400
- styles: e.styles,
401
- animate: a,
402
- isInView: g
403
- },
404
- y
405
- );
406
- }) }),
407
- /* @__PURE__ */ t.jsx("g", { children: I ? /* @__PURE__ */ t.jsx(
408
- Ie,
409
- {
410
- x1: 0,
411
- x2: l,
412
- y1: be(0),
413
- y2: be(l),
414
- graphHeight: f,
415
- graphWidth: l,
416
- className: x?.regLine,
417
- style: n?.regLine,
418
- color: typeof I == "string" ? I : void 0,
419
- animate: a,
420
- isInView: g
421
- }
422
- ) : null }),
423
- J.filter((e) => e.position === "after").map((e) => e.layer),
424
- /* @__PURE__ */ t.jsx(
425
- "rect",
426
- {
427
- ref: ee,
428
- style: {
429
- fill: "none",
430
- pointerEvents: "all"
431
- },
432
- width: l,
433
- height: f
434
- }
435
- )
436
- ] })
129
+ ni(E.current).on("mousemove", e).on("mouseout", h);
130
+ }, [a, r, Dt]);
131
+ const Rt = He(r.filter(Ai).map((e) => [a(e.date), l(e.y)])), Ht = Fe(Rt);
132
+ let J;
133
+ t[28] !== s || t[29] !== g || t[30] !== m || t[31] !== dt || t[32] !== f || t[33] !== a ? (J = /* @__PURE__ */ o.jsx(Je, { areaSettings: dt, width: m, height: g, scale: a, animate: s, isInView: f }), t[28] = s, t[29] = g, t[30] = m, t[31] = dt, t[32] = f, t[33] = a, t[34] = J) : J = t[34];
134
+ const ht = d?.yAxis?.gridLines, yt = d?.yAxis?.labels;
135
+ let K;
136
+ t[35] !== ht || t[36] !== yt ? (K = {
137
+ gridLines: ht,
138
+ labels: yt
139
+ }, t[35] = ht, t[36] = yt, t[37] = K) : K = t[37];
140
+ const vt = p?.yAxis?.gridLines, Q = p?.yAxis?.labels;
141
+ let Z;
142
+ t[38] !== vt || t[39] !== Q ? (Z = {
143
+ gridLines: vt,
144
+ labels: Q
145
+ }, t[38] = vt, t[39] = Q, t[40] = Z) : Z = t[40];
146
+ const _ = l(x < 0 ? 0 : x), Qt = l(x < 0 ? 0 : x), tt = 0 - O, Zt = m + y.right, wt = x < 0 ? 0 : x;
147
+ let H;
148
+ t[41] !== M || t[42] !== T || t[43] !== b || t[44] !== wt ? (H = Se(wt, "NA", M, T, b), t[41] = M, t[42] = T, t[43] = b, t[44] = wt, t[45] = H) : H = t[45];
149
+ const et = 0 - O, it = l(x < 0 ? 0 : x), At = L < 0 ? "1em" : -5;
150
+ let k;
151
+ t[46] !== et || t[47] !== it || t[48] !== At ? (k = {
152
+ x: et,
153
+ y: it,
154
+ dx: 0,
155
+ dy: At
156
+ }, t[46] = et, t[47] = it, t[48] = At, t[49] = k) : k = t[49];
157
+ const $ = p?.xAxis?.axis, S = p?.yAxis?.labels;
158
+ let v;
159
+ t[50] !== $ || t[51] !== S ? (v = {
160
+ axis: $,
161
+ label: S
162
+ }, t[50] = $, t[51] = S, t[52] = v) : v = t[52];
163
+ const ot = d?.xAxis?.axis, Ft = d?.yAxis?.labels;
164
+ let F;
165
+ t[53] !== ot || t[54] !== Ft ? (F = {
166
+ axis: ot,
167
+ label: Ft
168
+ }, t[53] = ot, t[54] = Ft, t[55] = F) : F = t[55];
169
+ let ee;
170
+ t[56] !== _ || t[57] !== Qt || t[58] !== tt || t[59] !== Zt || t[60] !== H || t[61] !== k || t[62] !== v || t[63] !== F ? (ee = /* @__PURE__ */ o.jsx(Xe, { y1: _, y2: Qt, x1: tt, x2: Zt, label: H, labelPos: k, classNames: v, styles: F }), t[56] = _, t[57] = Qt, t[58] = tt, t[59] = Zt, t[60] = H, t[61] = k, t[62] = v, t[63] = F, t[64] = ee) : ee = t[64];
171
+ const ye = 0 - O - 15, ve = g / 2, we = d?.yAxis?.title, Ae = p?.yAxis?.title;
172
+ let ie;
173
+ t[65] !== ye || t[66] !== ve || t[67] !== we || t[68] !== Ae || t[69] !== G ? (ie = /* @__PURE__ */ o.jsx(Ee, { x: ye, y: ve, style: we, className: Ae, text: G, rotate90: !0 }), t[65] = ye, t[66] = ve, t[67] = we, t[68] = Ae, t[69] = G, t[70] = ie) : ie = t[70];
174
+ let oe;
175
+ t[71] !== n ? (oe = (e) => Re(e, n), t[71] = n, t[72] = oe) : oe = t[72];
176
+ const Me = Vt.map(oe), Ne = Vt.map((e) => a(e)), be = d?.xAxis?.gridLines, Ce = d?.xAxis?.labels;
177
+ let ne;
178
+ t[73] !== be || t[74] !== Ce ? (ne = {
179
+ gridLines: be,
180
+ labels: Ce
181
+ }, t[73] = be, t[74] = Ce, t[75] = ne) : ne = t[75];
182
+ const je = p?.xAxis?.gridLines;
183
+ let It;
184
+ t[76] !== je ? (It = ge("opacity-0", je), t[76] = je, t[77] = It) : It = t[77];
185
+ const Oe = p?.xAxis?.labels;
186
+ let Wt;
187
+ t[78] !== Oe ? (Wt = ge("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", Oe), t[78] = Oe, t[79] = Wt) : Wt = t[79];
188
+ let se;
189
+ t[80] !== It || t[81] !== Wt ? (se = {
190
+ gridLines: It,
191
+ labels: Wt
192
+ }, t[80] = It, t[81] = Wt, t[82] = se) : se = t[82];
193
+ let ae;
194
+ t[83] !== N ? (ae = N.filter(yi).map(hi), t[83] = N, t[84] = ae) : ae = t[84];
195
+ let re;
196
+ t[85] !== Y || t[86] !== ct ? (re = {
197
+ stroke: Y,
198
+ fill: "none",
199
+ strokeWidth: ct
200
+ }, t[85] = Y, t[86] = ct, t[87] = re) : re = t[87];
201
+ let le;
202
+ t[88] !== s.duration ? (le = {
203
+ opacity: 0,
204
+ transition: {
205
+ duration: s.duration
206
+ }
207
+ }, t[88] = s.duration, t[89] = le) : le = t[89];
208
+ const De = r.map((e, h) => /* @__PURE__ */ o.jsx(_t.g, { children: bt(e.y) ? null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
209
+ kt ? /* @__PURE__ */ o.jsx(_t.circle, { r: m / r.length < 5 ? 0 : m / r.length < 20 ? 2 : 4, exit: {
210
+ opacity: 0,
211
+ transition: {
212
+ duration: s.duration
213
+ }
214
+ }, variants: {
215
+ initial: {
216
+ opacity: 0,
217
+ cx: a(e.date),
218
+ cy: l(e.y),
219
+ fill: Y
220
+ },
221
+ whileInView: {
222
+ opacity: 1,
223
+ fill: Y,
224
+ transition: {
225
+ duration: j ? s.duration : 0.5,
226
+ delay: j ? 0 : s.duration
227
+ },
228
+ cx: a(e.date),
229
+ cy: l(e.y)
230
+ }
231
+ }, initial: "initial", animate: f ? "whileInView" : "initial" }) : null,
232
+ C ? /* @__PURE__ */ o.jsx(_t.text, { dy: -8, style: {
233
+ textAnchor: "middle",
234
+ ...d?.graphObjectValues || {}
235
+ }, className: ge("graph-value text-xs font-bold", p?.graphObjectValues), exit: {
236
+ opacity: 0,
237
+ transition: {
238
+ duration: s.duration
437
239
  }
438
- ),
439
- N && v && Z && j ? /* @__PURE__ */ t.jsx(
440
- Ne,
441
- {
442
- data: N,
443
- body: v,
444
- xPos: Z,
445
- yPos: j,
446
- backgroundStyle: n?.tooltip,
447
- className: x?.tooltip
240
+ }, variants: {
241
+ initial: {
242
+ opacity: 0,
243
+ x: a(e.date),
244
+ y: l(e.y)
245
+ },
246
+ whileInView: {
247
+ opacity: 1,
248
+ x: a(e.date),
249
+ y: l(e.y),
250
+ transition: {
251
+ duration: j ? s.duration : 0.5,
252
+ delay: j ? 0 : s.duration
253
+ }
448
254
  }
449
- ) : null
255
+ }, initial: "initial", animate: f ? "whileInView" : "initial", children: Se(e.y, "NA", M, T, b) }) : null
256
+ ] }) }, h));
257
+ let ce;
258
+ t[90] !== De ? (ce = /* @__PURE__ */ o.jsx("g", { children: De }), t[90] = De, t[91] = ce) : ce = t[91];
259
+ const Le = Et.map((e, h) => {
260
+ const I = Ye({
261
+ x: e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
262
+ y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
263
+ }, {
264
+ x: e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
265
+ y: e.yCoordinate ? l(e.yCoordinate) : 0
266
+ }, bt(e.connectorRadius) ? 3.5 : e.connectorRadius), Yt = e.showConnector ? {
267
+ y1: I.y,
268
+ x1: I.x,
269
+ y2: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
270
+ x2: e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
271
+ cy: e.yCoordinate ? l(e.yCoordinate) : 0,
272
+ cx: e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
273
+ circleRadius: bt(e.connectorRadius) ? 3.5 : e.connectorRadius,
274
+ strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
275
+ } : void 0, Ve = {
276
+ y: e.yCoordinate ? l(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
277
+ x: Lt ? 0 : e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
278
+ width: Lt ? e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : m + y.right - (e.xCoordinate ? a(w(`${e.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
279
+ maxWidth: e.maxWidth,
280
+ fontWeight: e.fontWeight,
281
+ align: e.align
282
+ };
283
+ return /* @__PURE__ */ o.jsx(Ge, { color: e.color, connectorsSettings: Yt, labelSettings: Ve, text: e.text, classNames: e.classNames, styles: e.styles, animate: s, isInView: f }, h);
284
+ });
285
+ let me;
286
+ t[92] !== Le ? (me = /* @__PURE__ */ o.jsx("g", { children: Le }), t[92] = Le, t[93] = me) : me = t[93];
287
+ const ke = ft ? /* @__PURE__ */ o.jsx(Ue, { x1: 0, x2: m, y1: Ht(0), y2: Ht(m), graphHeight: g, graphWidth: m, className: p?.regLine, style: d?.regLine, color: typeof ft == "string" ? ft : void 0, animate: s, isInView: f }) : null;
288
+ let fe;
289
+ t[94] !== ke ? (fe = /* @__PURE__ */ o.jsx("g", { children: ke }), t[94] = ke, t[95] = fe) : fe = t[95];
290
+ let ue;
291
+ t[96] !== N ? (ue = N.filter(gi).map(di), t[96] = N, t[97] = ue) : ue = t[97];
292
+ let pe;
293
+ t[98] === Symbol.for("react.memo_cache_sentinel") ? (pe = {
294
+ fill: "none",
295
+ pointerEvents: "all"
296
+ }, t[98] = pe) : pe = t[98];
297
+ let xe;
298
+ t[99] !== E || t[100] !== g || t[101] !== m ? (xe = /* @__PURE__ */ o.jsx("rect", { ref: E, style: pe, width: m, height: g }), t[99] = E, t[100] = g, t[101] = m, t[102] = xe) : xe = t[102];
299
+ let de;
300
+ return t[103] !== p?.tooltip || t[104] !== c || t[105] !== R || t[106] !== D || t[107] !== d?.tooltip || t[108] !== rt ? (de = D && rt && c && R ? /* @__PURE__ */ o.jsx(We, { data: D, body: rt, xPos: c, yPos: R, backgroundStyle: d?.tooltip, className: p?.tooltip }) : null, t[103] = p?.tooltip, t[104] = c, t[105] = R, t[106] = D, t[107] = d?.tooltip, t[108] = rt, t[109] = de) : de = t[109], /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
301
+ /* @__PURE__ */ o.jsx(_t.svg, { width: `${W}px`, height: `${nt}px`, viewBox: `0 0 ${W} ${nt}`, direction: "ltr", ref: qt, children: /* @__PURE__ */ o.jsxs("g", { transform: `translate(${y.left},${y.top})`, children: [
302
+ J,
303
+ /* @__PURE__ */ o.jsx(Pe, { areaSettings: St, scaleX: a, scaleY: l, animate: s, isInView: f }),
304
+ /* @__PURE__ */ o.jsxs("g", { children: [
305
+ /* @__PURE__ */ o.jsx(qe, { values: gt.filter(wi), y: gt.filter(vi).map((e) => l(e)), x1: 0 - O, x2: m + y.right, styles: K, classNames: Z, suffix: b, prefix: T, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: M }),
306
+ ee,
307
+ ie
308
+ ] }),
309
+ /* @__PURE__ */ o.jsx(Be, { values: Me, x: Ne, y1: 0, y2: g, styles: ne, classNames: se, suffix: b, prefix: T, labelType: "primary", showGridLines: !0, precision: M }),
310
+ ae,
311
+ /* @__PURE__ */ o.jsxs("g", { children: [
312
+ /* @__PURE__ */ o.jsx(_t.path, { style: re, exit: le, variants: {
313
+ initial: {
314
+ pathLength: 0,
315
+ d: Nt(r) || "",
316
+ opacity: 1
317
+ },
318
+ whileInView: {
319
+ pathLength: 1,
320
+ d: Nt(r) || "",
321
+ opacity: 1,
322
+ transition: {
323
+ duration: s.duration
324
+ }
325
+ }
326
+ }, initial: "initial", animate: f ? "whileInView" : "initial" }),
327
+ D ? /* @__PURE__ */ o.jsx("line", { y1: 0, y2: g, x1: a(D.date), x2: a(D.date), className: ge("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", p?.mouseOverLine), style: d?.mouseOverLine }) : null
328
+ ] }),
329
+ ce,
330
+ Pt ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Pt.map((e, h) => /* @__PURE__ */ o.jsx(ze, { text: e.text, color: e.color, y: l(e.value), x1: 0 - O, x2: m + y.right, classNames: e.classNames, styles: e.styles, animate: s, isInView: f }, h)) }) : null,
331
+ me,
332
+ fe,
333
+ ue,
334
+ xe
335
+ ] }) }),
336
+ de
450
337
  ] });
451
338
  }
452
- function St(re) {
453
- const {
454
- data: D,
455
- graphTitle: A,
456
- lineColor: V,
457
- suffix: R = "",
458
- sources: L,
459
- prefix: T = "",
460
- graphDescription: s,
461
- height: S,
462
- width: c,
463
- footNote: X,
464
- noOfXTicks: ne = 10,
465
- dateFormat: d = "yyyy",
466
- showValues: le = !1,
467
- padding: E,
468
- backgroundColor: v = !1,
469
- leftMargin: H = 30,
470
- rightMargin: G = 30,
471
- topMargin: B = 20,
472
- bottomMargin: z = 25,
473
- relativeHeight: a,
474
- tooltip: U,
475
- onSeriesMouseOver: ce,
476
- highlightAreaSettings: me = [],
477
- graphID: xe,
478
- minValue: fe,
479
- maxValue: I,
480
- maxDate: q,
481
- minDate: he,
482
- graphDownload: W = !1,
483
- dataDownload: F = !1,
484
- animate: $ = !1,
485
- language: n = "en",
486
- refValues: x = [],
487
- minHeight: w = 0,
488
- strokeWidth: J = 2,
489
- showDots: K = !0,
490
- annotations: g = [],
491
- customHighlightAreaSettings: C = [],
492
- theme: ge = "light",
493
- ariaLabel: ue,
494
- regressionLine: N = !1,
495
- yAxisTitle: Q,
496
- noOfYTicks: Z = 5,
497
- curveType: _ = "curve",
498
- styles: j,
499
- classNames: b,
500
- precision: u = 2,
501
- customLayers: ee = []
502
- } = re, [i, te] = M(0), [ie, l] = M(0), f = se(null), ae = se(null);
503
- return de(() => {
504
- const m = new ResizeObserver((p) => {
505
- te(c || p[0].target.clientWidth || 620), l(S || p[0].target.clientHeight || 480);
339
+ function di(i) {
340
+ return i.layer;
341
+ }
342
+ function gi(i) {
343
+ return i.position === "after";
344
+ }
345
+ function hi(i) {
346
+ return i.layer;
347
+ }
348
+ function yi(i) {
349
+ return i.position === "before";
350
+ }
351
+ function vi(i) {
352
+ return i !== 0;
353
+ }
354
+ function wi(i) {
355
+ return i !== 0;
356
+ }
357
+ function Ai(i) {
358
+ return !bt(i.date) && !bt(i.y);
359
+ }
360
+ function bi(i) {
361
+ return i.date;
362
+ }
363
+ function Ci(i) {
364
+ return i != null;
365
+ }
366
+ function ji(i) {
367
+ return i.y;
368
+ }
369
+ function Oi(i) {
370
+ return i != null;
371
+ }
372
+ function Di(i) {
373
+ return i.y;
374
+ }
375
+ function Li(i) {
376
+ return i != null;
377
+ }
378
+ function ki(i) {
379
+ return i.y;
380
+ }
381
+ function $i(i) {
382
+ return i != null;
383
+ }
384
+ function Si(i) {
385
+ return i.y;
386
+ }
387
+ function Ti(i) {
388
+ return i != null;
389
+ }
390
+ function Mi(i) {
391
+ return i.y;
392
+ }
393
+ function xo(i) {
394
+ const t = Te.c(83), {
395
+ data: A,
396
+ graphTitle: W,
397
+ lineColor: nt,
398
+ suffix: Y,
399
+ sources: b,
400
+ prefix: T,
401
+ graphDescription: n,
402
+ height: st,
403
+ width: C,
404
+ footNote: Ct,
405
+ noOfXTicks: jt,
406
+ dateFormat: O,
407
+ showValues: Ot,
408
+ padding: at,
409
+ backgroundColor: rt,
410
+ leftMargin: Dt,
411
+ rightMargin: Pt,
412
+ topMargin: Xt,
413
+ bottomMargin: lt,
414
+ relativeHeight: s,
415
+ tooltip: Lt,
416
+ onSeriesMouseOver: ct,
417
+ highlightAreaSettings: kt,
418
+ graphID: Et,
419
+ minValue: mt,
420
+ maxValue: ft,
421
+ maxDate: G,
422
+ minDate: Bt,
423
+ graphDownload: zt,
424
+ dataDownload: Ut,
425
+ animate: ut,
426
+ language: d,
427
+ refValues: p,
428
+ minHeight: M,
429
+ strokeWidth: N,
430
+ showDots: qt,
431
+ annotations: V,
432
+ customHighlightAreaSettings: f,
433
+ theme: j,
434
+ ariaLabel: Jt,
435
+ regressionLine: pt,
436
+ yAxisTitle: P,
437
+ noOfYTicks: te,
438
+ curveType: D,
439
+ styles: u,
440
+ classNames: c,
441
+ precision: Kt,
442
+ customLayers: R
443
+ } = i, $t = Y === void 0 ? "" : Y, xt = T === void 0 ? "" : T, X = jt === void 0 ? 10 : jt, y = O === void 0 ? "yyyy" : O, E = Ot === void 0 ? !1 : Ot, B = rt === void 0 ? !1 : rt, r = Dt === void 0 ? 30 : Dt, z = Pt === void 0 ? 30 : Pt, dt = Xt === void 0 ? 20 : Xt, U = lt === void 0 ? 25 : lt;
444
+ let St;
445
+ t[0] !== kt ? (St = kt === void 0 ? [] : kt, t[0] = kt, t[1] = St) : St = t[1];
446
+ const m = St, g = zt === void 0 ? !1 : zt, Tt = Ut === void 0 ? !1 : Ut, Mt = ut === void 0 ? !1 : ut, x = d === void 0 ? "en" : d;
447
+ let L;
448
+ t[2] !== p ? (L = p === void 0 ? [] : p, t[2] = p, t[3] = L) : L = t[3];
449
+ const a = L, q = M === void 0 ? 0 : M, l = N === void 0 ? 2 : N, Nt = qt === void 0 ? !0 : qt;
450
+ let gt;
451
+ t[4] !== V ? (gt = V === void 0 ? [] : V, t[4] = V, t[5] = gt) : gt = t[5];
452
+ const Vt = gt;
453
+ let Rt;
454
+ t[6] !== f ? (Rt = f === void 0 ? [] : f, t[6] = f, t[7] = Rt) : Rt = t[7];
455
+ const Ht = Rt, J = j === void 0 ? "light" : j, ht = pt === void 0 ? !1 : pt, yt = te === void 0 ? 5 : te, K = D === void 0 ? "curve" : D, vt = Kt === void 0 ? 2 : Kt;
456
+ let Q;
457
+ t[8] !== R ? (Q = R === void 0 ? [] : R, t[8] = R, t[9] = Q) : Q = t[9];
458
+ const Z = Q, [_, Qt] = Gt(0), [tt, Zt] = Gt(0), wt = he(null), H = he(null);
459
+ let et, it;
460
+ t[10] === Symbol.for("react.memo_cache_sentinel") ? (et = () => {
461
+ const Ft = new ResizeObserver((F) => {
462
+ Qt(F[0].target.clientWidth || 620), Zt(F[0].target.clientHeight || 480);
506
463
  });
507
- return f.current && (l(f.current.clientHeight || 480), te(f.current.clientWidth || 620), c || m.observe(f.current)), () => m.disconnect();
508
- }, [c, S]), /* @__PURE__ */ t.jsx(
509
- "div",
510
- {
511
- className: `${ge || "light"} flex ${c ? "w-fit grow-0" : "w-full grow"}`,
512
- dir: n === "he" || n === "ar" ? "rtl" : void 0,
513
- children: /* @__PURE__ */ t.jsx(
514
- "div",
515
- {
516
- className: P(
517
- `${v ? v === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${n || "en"}`,
518
- c ? "w-fit" : "w-full",
519
- b?.graphContainer
520
- ),
521
- style: {
522
- ...j?.graphContainer || {},
523
- ...v && v !== !0 ? { backgroundColor: v } : {}
524
- },
525
- id: xe,
526
- ref: ae,
527
- "aria-label": ue || `${A ? `The graph shows ${A}. ` : ""}This is a line chart that shows trends over time.${s ? ` ${s}` : ""}`,
528
- children: /* @__PURE__ */ t.jsx(
529
- "div",
530
- {
531
- className: "flex grow",
532
- style: { padding: v ? E || "1rem" : E || 0 },
533
- children: /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
534
- A || s || W || F ? /* @__PURE__ */ t.jsx(
535
- _e,
536
- {
537
- styles: {
538
- title: j?.title,
539
- description: j?.description
540
- },
541
- classNames: {
542
- title: b?.title,
543
- description: b?.description
544
- },
545
- graphTitle: A,
546
- graphDescription: s,
547
- width: c,
548
- graphDownload: W ? ae.current : void 0,
549
- dataDownload: F ? D.map((m) => m.data).filter((m) => m !== void 0).length > 0 ? D.map((m) => m.data).filter((m) => m !== void 0) : D.filter((m) => m !== void 0) : null
550
- }
551
- ) : null,
552
- D.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: /* @__PURE__ */ t.jsx(tt, {}) }) : /* @__PURE__ */ t.jsx(
553
- "div",
554
- {
555
- className: "flex flex-col grow justify-center leading-0",
556
- ref: f,
557
- "aria-label": "Graph area",
558
- children: (c || i) && (S || ie) ? /* @__PURE__ */ t.jsx(
559
- it,
560
- {
561
- data: D,
562
- lineColor: V || et.primaryColors["blue-600"],
563
- width: c || i,
564
- height: Math.max(
565
- w,
566
- S || (a ? w ? (c || i) * a > w ? (c || i) * a : w : (c || i) * a : ie)
567
- ),
568
- suffix: R,
569
- prefix: T,
570
- dateFormat: d,
571
- showValues: le,
572
- noOfXTicks: ne,
573
- leftMargin: H,
574
- rightMargin: G,
575
- topMargin: B,
576
- bottomMargin: z,
577
- tooltip: U,
578
- highlightAreaSettings: me,
579
- onSeriesMouseOver: ce,
580
- refValues: x,
581
- minValue: fe,
582
- maxValue: I,
583
- animate: $ === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : $ || { duration: 0, once: !0, amount: 0 },
584
- rtl: n === "he" || n === "ar",
585
- strokeWidth: J,
586
- showDots: K,
587
- annotations: g,
588
- customHighlightAreaSettings: C,
589
- regressionLine: N,
590
- yAxisTitle: Q,
591
- noOfYTicks: Z,
592
- maxDate: q,
593
- minDate: he,
594
- curveType: _,
595
- styles: j,
596
- classNames: b,
597
- precision: u,
598
- customLayers: ee
599
- }
600
- ) : null
601
- }
602
- ),
603
- L || X ? /* @__PURE__ */ t.jsx(
604
- Ze,
605
- {
606
- styles: { footnote: j?.footnote, source: j?.source },
607
- classNames: {
608
- footnote: b?.footnote,
609
- source: b?.source
610
- },
611
- sources: L,
612
- footNote: X,
613
- width: c
614
- }
615
- ) : null
616
- ] })
617
- }
618
- )
619
- }
620
- )
621
- }
622
- );
464
+ return wt.current && Ft.observe(wt.current), () => Ft.disconnect();
465
+ }, it = [], t[10] = et, t[11] = it) : (et = t[10], it = t[11]), $e(et, it);
466
+ const At = c?.graphContainer, k = u?.graphContainer;
467
+ let $;
468
+ t[12] !== c?.description || t[13] !== c?.title || t[14] !== A || t[15] !== Tt || t[16] !== n || t[17] !== g || t[18] !== W || t[19] !== u?.description || t[20] !== u?.title || t[21] !== C ? ($ = W || n || g || Tt ? /* @__PURE__ */ o.jsx(ci, { styles: {
469
+ title: u?.title,
470
+ description: u?.description
471
+ }, classNames: {
472
+ title: c?.title,
473
+ description: c?.description
474
+ }, graphTitle: W, graphDescription: n, width: C, graphDownload: g ? H : void 0, dataDownload: Tt ? A.map(Fi).filter(Hi).length > 0 ? A.map(Ri).filter(Vi) : A.filter(Ni) : null }) : null, t[12] = c?.description, t[13] = c?.title, t[14] = A, t[15] = Tt, t[16] = n, t[17] = g, t[18] = W, t[19] = u?.description, t[20] = u?.title, t[21] = C, t[22] = $) : $ = t[22];
475
+ let S;
476
+ t[23] !== Mt || t[24] !== Vt || t[25] !== U || t[26] !== c || t[27] !== K || t[28] !== Ht || t[29] !== Z || t[30] !== A || t[31] !== y || t[32] !== m || t[33] !== x || t[34] !== r || t[35] !== nt || t[36] !== G || t[37] !== ft || t[38] !== Bt || t[39] !== mt || t[40] !== X || t[41] !== yt || t[42] !== ct || t[43] !== vt || t[44] !== xt || t[45] !== a || t[46] !== ht || t[47] !== z || t[48] !== Nt || t[49] !== E || t[50] !== l || t[51] !== u || t[52] !== $t || t[53] !== tt || t[54] !== _ || t[55] !== Lt || t[56] !== dt || t[57] !== P ? (S = A.length === 0 ? /* @__PURE__ */ o.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: /* @__PURE__ */ o.jsx(fi, {}) }) : /* @__PURE__ */ o.jsx(ui, { ref: wt, children: _ && tt ? /* @__PURE__ */ o.jsx(xi, { data: A, lineColor: nt || mi.primaryColors["blue-600"], width: _, height: tt, suffix: $t, prefix: xt, dateFormat: y, showValues: E, noOfXTicks: X, leftMargin: r, rightMargin: z, topMargin: dt, bottomMargin: U, tooltip: Lt, highlightAreaSettings: m, onSeriesMouseOver: ct, refValues: a, minValue: mt, maxValue: ft, animate: Mt === !0 ? {
477
+ duration: 0.5,
478
+ once: !0,
479
+ amount: 0.5
480
+ } : Mt || {
481
+ duration: 0,
482
+ once: !0,
483
+ amount: 0
484
+ }, rtl: x === "he" || x === "ar", strokeWidth: l, showDots: Nt, annotations: Vt, customHighlightAreaSettings: Ht, regressionLine: ht, yAxisTitle: P, noOfYTicks: yt, maxDate: G, minDate: Bt, curveType: K, styles: u, classNames: c, precision: vt, customLayers: Z }) : null }), t[23] = Mt, t[24] = Vt, t[25] = U, t[26] = c, t[27] = K, t[28] = Ht, t[29] = Z, t[30] = A, t[31] = y, t[32] = m, t[33] = x, t[34] = r, t[35] = nt, t[36] = G, t[37] = ft, t[38] = Bt, t[39] = mt, t[40] = X, t[41] = yt, t[42] = ct, t[43] = vt, t[44] = xt, t[45] = a, t[46] = ht, t[47] = z, t[48] = Nt, t[49] = E, t[50] = l, t[51] = u, t[52] = $t, t[53] = tt, t[54] = _, t[55] = Lt, t[56] = dt, t[57] = P, t[58] = S) : S = t[58];
485
+ let v;
486
+ t[59] !== c?.footnote || t[60] !== c?.source || t[61] !== Ct || t[62] !== b || t[63] !== u?.footnote || t[64] !== u?.source || t[65] !== C ? (v = b || Ct ? /* @__PURE__ */ o.jsx(li, { styles: {
487
+ footnote: u?.footnote,
488
+ source: u?.source
489
+ }, classNames: {
490
+ footnote: c?.footnote,
491
+ source: c?.source
492
+ }, sources: b, footNote: Ct, width: C }) : null, t[59] = c?.footnote, t[60] = c?.source, t[61] = Ct, t[62] = b, t[63] = u?.footnote, t[64] = u?.source, t[65] = C, t[66] = v) : v = t[66];
493
+ let ot;
494
+ return t[67] !== Jt || t[68] !== B || t[69] !== Et || t[70] !== st || t[71] !== x || t[72] !== q || t[73] !== at || t[74] !== s || t[75] !== At || t[76] !== k || t[77] !== $ || t[78] !== S || t[79] !== v || t[80] !== J || t[81] !== C ? (ot = /* @__PURE__ */ o.jsxs(pi, { className: At, style: k, id: Et, ref: H, "aria-label": Jt, backgroundColor: B, theme: J, language: x, minHeight: q, width: C, height: st, relativeHeight: s, padding: at, children: [
495
+ $,
496
+ S,
497
+ v
498
+ ] }), t[67] = Jt, t[68] = B, t[69] = Et, t[70] = st, t[71] = x, t[72] = q, t[73] = at, t[74] = s, t[75] = At, t[76] = k, t[77] = $, t[78] = S, t[79] = v, t[80] = J, t[81] = C, t[82] = ot) : ot = t[82], ot;
499
+ }
500
+ function Ni(i) {
501
+ return i !== void 0;
502
+ }
503
+ function Vi(i) {
504
+ return i !== void 0;
505
+ }
506
+ function Ri(i) {
507
+ return i.data;
508
+ }
509
+ function Hi(i) {
510
+ return i !== void 0;
511
+ }
512
+ function Fi(i) {
513
+ return i.data;
623
514
  }
624
515
  export {
625
- St as SimpleLineChart
516
+ xo as SimpleLineChart
626
517
  };
627
518
  //# sourceMappingURL=SimpleLineChart.js.map