@undp/data-viz 2.3.17 → 2.4.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.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.cjs.map +1 -1
- package/dist/AreaChart.d.ts +2 -0
- package/dist/AreaChart.js +356 -354
- package/dist/AreaChart.js.map +1 -1
- package/dist/{Axis-Jt_tmhxS.cjs → Axis-BTaS9oPQ.cjs} +2 -2
- package/dist/{Axis-Jt_tmhxS.cjs.map → Axis-BTaS9oPQ.cjs.map} +1 -1
- package/dist/{Axis-RyGdzLrG.js → Axis-CNZYWzH0.js} +2 -2
- package/dist/{Axis-RyGdzLrG.js.map → Axis-CNZYWzH0.js.map} +1 -1
- package/dist/{AxisTitle-DGjX1_2v.js → AxisTitle-CyLCqpW6.js} +2 -2
- package/dist/{AxisTitle-DGjX1_2v.js.map → AxisTitle-CyLCqpW6.js.map} +1 -1
- package/dist/{AxisTitle-DV4n0RxE.cjs → AxisTitle-DP_evhbe.cjs} +2 -2
- package/dist/{AxisTitle-DV4n0RxE.cjs.map → AxisTitle-DP_evhbe.cjs.map} +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +6 -0
- package/dist/BarGraph.js +1735 -1726
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.cjs.map +1 -1
- package/dist/BasicStatCard.d.ts +2 -0
- package/dist/BasicStatCard.js +46 -45
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +2 -0
- package/dist/BeeSwarmChart.js +266 -266
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +2 -0
- package/dist/BiVariateChoroplethMap.js +300 -298
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +2 -0
- package/dist/BulletChart.js +469 -469
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +2 -0
- package/dist/ButterflyChart.js +330 -328
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +2 -0
- package/dist/ChoroplethMap.js +303 -301
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +2 -0
- package/dist/CirclePackingGraph.js +4 -4
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.js +2 -2
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +2 -2
- package/dist/CopyTextButton.cjs +1 -1
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +7 -9
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +1 -1
- package/dist/CsvDownloadButton.js +2 -2
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.js +10 -12
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.cjs.map +1 -1
- package/dist/DataTable.d.ts +2 -0
- package/dist/DataTable.js +103 -102
- package/dist/DataTable.js.map +1 -1
- package/dist/{DetailsModal-C3qlUyFK.js → DetailsModal-B2XBWR7w.js} +4 -4
- package/dist/{DetailsModal-C3qlUyFK.js.map → DetailsModal-B2XBWR7w.js.map} +1 -1
- package/dist/{DetailsModal-DIRTulvr.cjs → DetailsModal-jmmKRMRM.cjs} +2 -2
- package/dist/{DetailsModal-DIRTulvr.cjs.map → DetailsModal-jmmKRMRM.cjs.map} +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.d.ts +4 -0
- package/dist/DifferenceLineChart.js +441 -437
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +4 -0
- package/dist/DonutChart.js +146 -142
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +265 -268
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{DropdownSelect-NNpOs7DX.cjs → DropdownSelect-CX1yMemd.cjs} +2 -2
- package/dist/DropdownSelect-CX1yMemd.cjs.map +1 -0
- package/dist/{DropdownSelect-B2WTeedJ.js → DropdownSelect-Dz7imdTB.js} +6 -9
- package/dist/DropdownSelect-Dz7imdTB.js.map +1 -0
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.d.ts +4 -0
- package/dist/DualAxisLineChart.js +336 -332
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +2 -0
- package/dist/DumbbellChart.js +484 -484
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-B4c-CrXs.cjs → EmptyState-CFmiFPHz.cjs} +2 -2
- package/dist/{EmptyState-B4c-CrXs.cjs.map → EmptyState-CFmiFPHz.cjs.map} +1 -1
- package/dist/{EmptyState-B3fPoH6L.js → EmptyState-CaxXCkiN.js} +4 -4
- package/dist/{EmptyState-B3fPoH6L.js.map → EmptyState-CaxXCkiN.js.map} +1 -1
- package/dist/ExcelDownloadButton.cjs +1 -1
- package/dist/ExcelDownloadButton.js +2 -2
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +2 -2
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.cjs.map +1 -1
- package/dist/GeoHubCompareMaps.js +111 -111
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.cjs.map +1 -1
- package/dist/GeoHubMap.js +71 -71
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +83 -83
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/{GraphContainer-DwMxWRCi.js → GraphContainer-B8ZqOzKI.js} +2 -2
- package/dist/{GraphContainer-DwMxWRCi.js.map → GraphContainer-B8ZqOzKI.js.map} +1 -1
- package/dist/{GraphContainer-B1EDxJ0S.cjs → GraphContainer-Cul9b74X.cjs} +2 -2
- package/dist/{GraphContainer-B1EDxJ0S.cjs.map → GraphContainer-Cul9b74X.cjs.map} +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +2 -2
- package/dist/{GraphEl-CnJf8b50.js → GraphEl-B73N4RIA.js} +48 -10
- package/dist/GraphEl-B73N4RIA.js.map +1 -0
- package/dist/GraphEl-Lt1og0C-.cjs +2 -0
- package/dist/GraphEl-Lt1og0C-.cjs.map +1 -0
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +2 -2
- package/dist/GraphHeader.cjs +1 -1
- package/dist/GraphHeader.js +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.js +2 -2
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +6 -6
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/GriddedGraphsFromConfig.js +2 -2
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +4 -0
- package/dist/HeatMap.js +158 -155
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.cjs.map +1 -1
- package/dist/Histogram.d.ts +2 -0
- package/dist/Histogram.js +81 -80
- package/dist/Histogram.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +2 -0
- package/dist/HybridMap.js +314 -315
- package/dist/HybridMap.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +2 -2
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
- package/dist/LineChartWithConfidenceInterval.js +367 -365
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.cjs.map +1 -1
- package/dist/LinearColorLegend.d.ts +1 -0
- package/dist/LinearColorLegend.js +38 -37
- package/dist/LinearColorLegend.js.map +1 -1
- package/dist/{Modal-ZX55hLH-.cjs → Modal-BIErPPKT.cjs} +5 -5
- package/dist/{Modal-ZX55hLH-.cjs.map → Modal-BIErPPKT.cjs.map} +1 -1
- package/dist/{Modal-BV4rkoLM.js → Modal-CrUYln5V.js} +4 -4
- package/dist/{Modal-BV4rkoLM.js.map → Modal-CrUYln5V.js.map} +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboard.js +4 -4
- package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.js +2 -2
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +2 -0
- package/dist/MultiLineAltChart.js +419 -420
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.d.ts +4 -0
- package/dist/MultiLineChart.js +410 -409
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +2 -0
- package/dist/ParetoChart.js +273 -271
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +4 -4
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
- package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.js +3 -3
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +2 -0
- package/dist/RadarChart.js +221 -219
- package/dist/RadarChart.js.map +1 -1
- package/dist/{ReferenceLine-M9aP3dj-.cjs → ReferenceLine-CpU4G01Y.cjs} +2 -2
- package/dist/{ReferenceLine-M9aP3dj-.cjs.map → ReferenceLine-CpU4G01Y.cjs.map} +1 -1
- package/dist/{ReferenceLine-CNEjAYvv.js → ReferenceLine-D41VuUhE.js} +3 -3
- package/dist/{ReferenceLine-CNEjAYvv.js.map → ReferenceLine-D41VuUhE.js.map} +1 -1
- package/dist/{RegressionLine-Ci-Dh0w0.cjs → RegressionLine-BFoBiVJk.cjs} +2 -2
- package/dist/{RegressionLine-Ci-Dh0w0.cjs.map → RegressionLine-BFoBiVJk.cjs.map} +1 -1
- package/dist/{RegressionLine-BDrndQxo.js → RegressionLine-CuwB42I6.js} +4 -4
- package/dist/{RegressionLine-BDrndQxo.js.map → RegressionLine-CuwB42I6.js.map} +1 -1
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.js +2 -2
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.d.ts +2 -0
- package/dist/SankeyChart.js +404 -408
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +2 -0
- package/dist/ScatterPlot.js +444 -445
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.cjs +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/ScrollStory.js +3 -3
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.d.ts +2 -0
- package/dist/SimpleLineChart.js +360 -358
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +6 -6
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardFromConfig.js +2 -2
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.js +3 -3
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +6 -6
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +259 -262
- package/dist/SlopeChart.js.map +1 -1
- package/dist/{Source-BOSAl3UX.cjs → Source-PKuwZOn3.cjs} +2 -2
- package/dist/{Source-BOSAl3UX.cjs.map → Source-PKuwZOn3.cjs.map} +1 -1
- package/dist/{Source-Djkz-7jX.js → Source-QGk8vhkS.js} +3 -3
- package/dist/{Source-Djkz-7jX.js.map → Source-QGk8vhkS.js.map} +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +3 -3
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +3 -3
- package/dist/{Spinner-CtJETd5V.js → Spinner-B2IIKg9r.js} +2 -2
- package/dist/{Spinner-CtJETd5V.js.map → Spinner-B2IIKg9r.js.map} +1 -1
- package/dist/{Spinner-jTMOLuw_.cjs → Spinner-WHzzloYQ.cjs} +2 -2
- package/dist/{Spinner-jTMOLuw_.cjs.map → Spinner-WHzzloYQ.cjs.map} +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.d.ts +4 -0
- package/dist/StatCardFromData.js +97 -95
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +2 -0
- package/dist/StripChart.js +343 -343
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +2 -0
- package/dist/ThreeDGlobe.js +198 -196
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.d.ts +2 -0
- package/dist/ThresholdColorLegendWithMouseOver.js +50 -48
- package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
- package/dist/{Tooltip-CohiIbLZ.js → Tooltip-Bj-s__cI.js} +3 -3
- package/dist/{Tooltip-CohiIbLZ.js.map → Tooltip-Bj-s__cI.js.map} +1 -1
- package/dist/{Tooltip-BLa2EfMs.cjs → Tooltip-Hr46paWP.cjs} +2 -2
- package/dist/{Tooltip-BLa2EfMs.cjs.map → Tooltip-Hr46paWP.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +2 -0
- package/dist/TreeMapGraph.js +139 -140
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +1 -0
- package/dist/{Typography-DMVW6JnV.js → Typography-BO0gQDIT.js} +2 -2
- package/dist/{Typography-DMVW6JnV.js.map → Typography-BO0gQDIT.js.map} +1 -1
- package/dist/{Typography-CZZxlj1W.cjs → Typography-BqmyF1gP.cjs} +2 -2
- package/dist/{Typography-CZZxlj1W.cjs.map → Typography-BqmyF1gP.cjs.map} +1 -1
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.d.ts +4 -0
- package/dist/UnitChart.js +88 -86
- package/dist/UnitChart.js.map +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.d.ts +2 -0
- package/dist/WaterfallChart.js +257 -258
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/{XAxesLabels-IwjMJkYS.js → XAxesLabels-B9gkjUiC.js} +3 -3
- package/dist/{XAxesLabels-IwjMJkYS.js.map → XAxesLabels-B9gkjUiC.js.map} +1 -1
- package/dist/{XAxesLabels-C6o9jJal.cjs → XAxesLabels-C03jHniq.cjs} +2 -2
- package/dist/{XAxesLabels-C6o9jJal.cjs.map → XAxesLabels-C03jHniq.cjs.map} +1 -1
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs +2 -0
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +1 -0
- package/dist/XTicksAndGridLines-gdbGX2rm.js +39 -0
- package/dist/XTicksAndGridLines-gdbGX2rm.js.map +1 -0
- package/dist/{YAxesLabels-BQ2aCazV.cjs → YAxesLabels-DeENFC2M.cjs} +2 -2
- package/dist/{YAxesLabels-BQ2aCazV.cjs.map → YAxesLabels-DeENFC2M.cjs.map} +1 -1
- package/dist/{YAxesLabels-DoGvgHdw.js → YAxesLabels-hWEUCTvs.js} +3 -3
- package/dist/{YAxesLabels-DoGvgHdw.js.map → YAxesLabels-hWEUCTvs.js.map} +1 -1
- package/dist/YTicksAndGridLines-CsNSq9W9.js +39 -0
- package/dist/YTicksAndGridLines-CsNSq9W9.js.map +1 -0
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs +2 -0
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +1 -0
- package/dist/{checkIfMultiple-TOaaUwS7.cjs → checkIfMultiple-CH5tqj4q.cjs} +2 -2
- package/dist/checkIfMultiple-CH5tqj4q.cjs.map +1 -0
- package/dist/{checkIfMultiple-B97uOUVq.js → checkIfMultiple-Dpyy6BUP.js} +6 -6
- package/dist/checkIfMultiple-Dpyy6BUP.js.map +1 -0
- package/dist/{customArea-B1LWQBmM.cjs → customArea-BAcQ3pBM.cjs} +2 -2
- package/dist/{customArea-B1LWQBmM.cjs.map → customArea-BAcQ3pBM.cjs.map} +1 -1
- package/dist/{customArea-Cc2whe6P.js → customArea-D89lETG0.js} +3 -3
- package/dist/{customArea-Cc2whe6P.js.map → customArea-D89lETG0.js.map} +1 -1
- package/dist/getSliderMarks-BzrpHrHS.cjs +2 -0
- package/dist/getSliderMarks-BzrpHrHS.cjs.map +1 -0
- package/dist/{getSliderMarks-vXsR8RrR.js → getSliderMarks-X-_goqH9.js} +3 -4
- package/dist/getSliderMarks-X-_goqH9.js.map +1 -0
- package/dist/{index-CZ0elhKR.js → index-ApTBN0kp.js} +20 -10
- package/dist/{index-CZ0elhKR.js.map → index-ApTBN0kp.js.map} +1 -1
- package/dist/index-B0Awa_de.js +377 -0
- package/dist/index-B0Awa_de.js.map +1 -0
- package/dist/{index-sbKVyHS2.cjs → index-BhI7mBJx.cjs} +2 -2
- package/dist/{index-sbKVyHS2.cjs.map → index-BhI7mBJx.cjs.map} +1 -1
- package/dist/{index-D69M6klB.cjs → index-BuhBhuCq.cjs} +2 -2
- package/dist/{index-D69M6klB.cjs.map → index-BuhBhuCq.cjs.map} +1 -1
- package/dist/{index-CHPV5EwG-BCLAYDCV.js → index-CHPV5EwG-BzibaIRc.js} +5 -9
- package/dist/index-CHPV5EwG-BzibaIRc.js.map +1 -0
- package/dist/{index-CHPV5EwG-6v2a2njQ.cjs → index-CHPV5EwG-D4pAp7u0.cjs} +3 -3
- package/dist/index-CHPV5EwG-D4pAp7u0.cjs.map +1 -0
- package/dist/index-CP8cmNzt.cjs +2 -0
- package/dist/index-CP8cmNzt.cjs.map +1 -0
- package/dist/{index-Co3YGYe1.js → index-Cv_5q6Rb.js} +3 -3
- package/dist/{index-Co3YGYe1.js.map → index-Cv_5q6Rb.js.map} +1 -1
- package/dist/{index-D_dtv_T9.js → index-DHVGV8Df.js} +3 -3
- package/dist/{index-D_dtv_T9.js.map → index-DHVGV8Df.js.map} +1 -1
- package/dist/{index-CoobIWNj.cjs → index-FXfr51ZM.cjs} +2 -2
- package/dist/{index-CoobIWNj.cjs.map → index-FXfr51ZM.cjs.map} +1 -1
- package/dist/{index-D6CYcVc7-BOa7Dpvf.js → index-Scxs_wcm-BAjU0Cob.js} +16 -16
- package/dist/index-Scxs_wcm-BAjU0Cob.js.map +1 -0
- package/dist/index-Scxs_wcm-DUDU-Gll.cjs +2 -0
- package/dist/index-Scxs_wcm-DUDU-Gll.cjs.map +1 -0
- package/dist/{index-DoS4bGNa-C3DbPpy3.cjs → index-w64Zl8io-DrMm5QSb.cjs} +2 -2
- package/dist/index-w64Zl8io-DrMm5QSb.cjs.map +1 -0
- package/dist/{index-DoS4bGNa-Bgab95kx.js → index-w64Zl8io-ihagHOdP.js} +2 -2
- package/dist/index-w64Zl8io-ihagHOdP.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +92 -17
- package/dist/index.js +3 -3
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs +2 -0
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +1 -0
- package/dist/numberFormattingFunction-DqMf_v1m.js +28 -0
- package/dist/numberFormattingFunction-DqMf_v1m.js.map +1 -0
- package/dist/{proxy--_f6k3NR.js → proxy-BsxtcZKa.js} +2 -2
- package/dist/{proxy--_f6k3NR.js.map → proxy-BsxtcZKa.js.map} +1 -1
- package/dist/{proxy-C4-uo6nS.cjs → proxy-CqH8m8IQ.cjs} +2 -2
- package/dist/{proxy-C4-uo6nS.cjs.map → proxy-CqH8m8IQ.cjs.map} +1 -1
- package/dist/{string2HTML-DUYZT1L9.js → string2HTML-BrFperRM.js} +2 -2
- package/dist/{string2HTML-DUYZT1L9.js.map → string2HTML-BrFperRM.js.map} +1 -1
- package/dist/{string2HTML-xx9MzTtY.cjs → string2HTML-ZoGd08P_.cjs} +2 -2
- package/dist/{string2HTML-xx9MzTtY.cjs.map → string2HTML-ZoGd08P_.cjs.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{use-in-view-DqvKAveg.js → use-in-view-KOXq5Kmc.js} +2 -2
- package/dist/{use-in-view-DqvKAveg.js.map → use-in-view-KOXq5Kmc.js.map} +1 -1
- package/dist/{use-in-view-C3o_ntMv.cjs → use-in-view-dnRv_qqF.cjs} +2 -2
- package/dist/{use-in-view-C3o_ntMv.cjs.map → use-in-view-dnRv_qqF.cjs.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +9 -18
- package/dist/utils.js +1 -1
- package/dist/x-BXShoIAM-BC2sxios.cjs +2 -0
- package/dist/x-BXShoIAM-BC2sxios.cjs.map +1 -0
- package/dist/{x-BBpi7a_7-BsvWCzYM.js → x-BXShoIAM-D6VWO6z5.js} +3 -5
- package/dist/x-BXShoIAM-D6VWO6z5.js.map +1 -0
- package/package.json +2 -2
- package/dist/DropdownSelect-B2WTeedJ.js.map +0 -1
- package/dist/DropdownSelect-NNpOs7DX.cjs.map +0 -1
- package/dist/GraphEl-CnJf8b50.js.map +0 -1
- package/dist/GraphEl-D_w0Qak4.cjs +0 -2
- package/dist/GraphEl-D_w0Qak4.cjs.map +0 -1
- package/dist/XTicksAndGridLines-BDmF9etl.js +0 -38
- package/dist/XTicksAndGridLines-BDmF9etl.js.map +0 -1
- package/dist/XTicksAndGridLines-CekrPykD.cjs +0 -2
- package/dist/XTicksAndGridLines-CekrPykD.cjs.map +0 -1
- package/dist/YTicksAndGridLines-C3GW1xFG.js +0 -38
- package/dist/YTicksAndGridLines-C3GW1xFG.js.map +0 -1
- package/dist/YTicksAndGridLines-UzVC5eBM.cjs +0 -2
- package/dist/YTicksAndGridLines-UzVC5eBM.cjs.map +0 -1
- package/dist/checkIfMultiple-B97uOUVq.js.map +0 -1
- package/dist/checkIfMultiple-TOaaUwS7.cjs.map +0 -1
- package/dist/getSliderMarks-CIuSoedo.cjs +0 -2
- package/dist/getSliderMarks-CIuSoedo.cjs.map +0 -1
- package/dist/getSliderMarks-vXsR8RrR.js.map +0 -1
- package/dist/index-C6VwVS8W.js +0 -378
- package/dist/index-C6VwVS8W.js.map +0 -1
- package/dist/index-CHPV5EwG-6v2a2njQ.cjs.map +0 -1
- package/dist/index-CHPV5EwG-BCLAYDCV.js.map +0 -1
- package/dist/index-D6CYcVc7-BOa7Dpvf.js.map +0 -1
- package/dist/index-D6CYcVc7-CTEcAtiQ.cjs +0 -2
- package/dist/index-D6CYcVc7-CTEcAtiQ.cjs.map +0 -1
- package/dist/index-DoS4bGNa-Bgab95kx.js.map +0 -1
- package/dist/index-DoS4bGNa-C3DbPpy3.cjs.map +0 -1
- package/dist/index-_TlgeI_i.cjs +0 -2
- package/dist/index-_TlgeI_i.cjs.map +0 -1
- package/dist/numberFormattingFunction-02t-wJta.cjs +0 -2
- package/dist/numberFormattingFunction-02t-wJta.cjs.map +0 -1
- package/dist/numberFormattingFunction-14YCbkN2.js +0 -13
- package/dist/numberFormattingFunction-14YCbkN2.js.map +0 -1
- package/dist/x-BBpi7a_7-BsvWCzYM.js.map +0 -1
- package/dist/x-BBpi7a_7-DXYIEFwN.cjs +0 -2
- package/dist/x-BBpi7a_7-DXYIEFwN.cjs.map +0 -1
|
@@ -1,156 +1,157 @@
|
|
|
1
|
-
import { j as o, m as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { g as
|
|
4
|
-
import { w as
|
|
5
|
-
import { f as
|
|
6
|
-
import { i as
|
|
7
|
-
import { i as
|
|
8
|
-
import { i as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { n as
|
|
11
|
-
import { T as
|
|
12
|
-
import { c as
|
|
13
|
-
import { X as
|
|
14
|
-
import { D as
|
|
15
|
-
import { s as
|
|
16
|
-
import { t as
|
|
17
|
-
import { m as
|
|
18
|
-
import { u as
|
|
19
|
-
import { A as
|
|
20
|
-
import { GraphHeader as
|
|
21
|
-
import { GraphFooter as
|
|
22
|
-
import { Colors as
|
|
23
|
-
import { f as
|
|
24
|
-
import { g as
|
|
25
|
-
import { a as
|
|
26
|
-
function
|
|
1
|
+
import { j as o, m as Ht, c as Rt } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
|
+
import { useMemo as Nt, useState as k, useRef as Le, useEffect as Ae, useEffectEvent as Ot } from "react";
|
|
3
|
+
import { g as Gt, N as Vt } from "./getSliderMarks-X-_goqH9.js";
|
|
4
|
+
import { w as Ut } from "./Spinner-B2IIKg9r.js";
|
|
5
|
+
import { f as Xt, p as Yt } from "./parse-Dv4of-PN.js";
|
|
6
|
+
import { i as qt } from "./index-Bwrro8-q.js";
|
|
7
|
+
import { i as Et, z as Jt, a as Kt, g as Zt, b as Qt, c as eo, d as to, e as oo, f as ro } from "./index-CKpKc9DR.js";
|
|
8
|
+
import { i as ao } from "./index-DCsFBfJ_.js";
|
|
9
|
+
import { _ as Bt } from "./Typography-BO0gQDIT.js";
|
|
10
|
+
import { n as It } from "./numberFormattingFunction-DqMf_v1m.js";
|
|
11
|
+
import { T as no } from "./Tooltip-Bj-s__cI.js";
|
|
12
|
+
import { c as zt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
13
|
+
import { X as io, E as so, P as lo, e as co } from "./index-ApTBN0kp.js";
|
|
14
|
+
import { D as mo } from "./DetailsModal-B2XBWR7w.js";
|
|
15
|
+
import { s as wt } from "./select-DKy99ogv.js";
|
|
16
|
+
import { t as Wt } from "./threshold-DFfqcDMa.js";
|
|
17
|
+
import { m as ct } from "./proxy-BsxtcZKa.js";
|
|
18
|
+
import { u as po } from "./use-in-view-KOXq5Kmc.js";
|
|
19
|
+
import { A as ho } from "./index-Cv_5q6Rb.js";
|
|
20
|
+
import { GraphHeader as uo } from "./GraphHeader.js";
|
|
21
|
+
import { GraphFooter as fo } from "./GraphFooter.js";
|
|
22
|
+
import { Colors as St } from "./Colors.js";
|
|
23
|
+
import { f as _t } from "./fetchAndParseData-BAXhgTDM.js";
|
|
24
|
+
import { g as Pt } from "./getJenks-DTCcQSDi.js";
|
|
25
|
+
import { a as go, G as yo } from "./GraphContainer-B8ZqOzKI.js";
|
|
26
|
+
function vo(n) {
|
|
27
27
|
const {
|
|
28
28
|
data: e,
|
|
29
29
|
xDomain: m,
|
|
30
|
-
mapData:
|
|
31
|
-
xColorLegendTitle:
|
|
32
|
-
yDomain:
|
|
33
|
-
yColorLegendTitle:
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
36
|
-
colors:
|
|
37
|
-
scale:
|
|
30
|
+
mapData: T,
|
|
31
|
+
xColorLegendTitle: Fe,
|
|
32
|
+
yDomain: J,
|
|
33
|
+
yColorLegendTitle: K,
|
|
34
|
+
width: g,
|
|
35
|
+
height: h,
|
|
36
|
+
colors: u,
|
|
37
|
+
scale: Te,
|
|
38
38
|
centerPoint: C,
|
|
39
|
-
mapBorderWidth:
|
|
40
|
-
mapNoDataColor:
|
|
41
|
-
mapBorderColor:
|
|
42
|
-
tooltip:
|
|
43
|
-
onSeriesMouseOver:
|
|
44
|
-
zoomScaleExtend:
|
|
45
|
-
zoomTranslateExtend:
|
|
46
|
-
highlightedIds:
|
|
47
|
-
onSeriesMouseClick:
|
|
39
|
+
mapBorderWidth: N,
|
|
40
|
+
mapNoDataColor: Z,
|
|
41
|
+
mapBorderColor: Q,
|
|
42
|
+
tooltip: ee,
|
|
43
|
+
onSeriesMouseOver: ye,
|
|
44
|
+
zoomScaleExtend: ve,
|
|
45
|
+
zoomTranslateExtend: xe,
|
|
46
|
+
highlightedIds: j,
|
|
47
|
+
onSeriesMouseClick: te,
|
|
48
48
|
mapProperty: O,
|
|
49
|
-
resetSelectionOnDoubleClick:
|
|
50
|
-
detailsOnClick:
|
|
51
|
-
showColorScale:
|
|
52
|
-
styles:
|
|
53
|
-
classNames:
|
|
54
|
-
mapProjection:
|
|
55
|
-
zoomInteraction:
|
|
56
|
-
animate:
|
|
49
|
+
resetSelectionOnDoubleClick: $e,
|
|
50
|
+
detailsOnClick: v,
|
|
51
|
+
showColorScale: be,
|
|
52
|
+
styles: He,
|
|
53
|
+
classNames: $,
|
|
54
|
+
mapProjection: H,
|
|
55
|
+
zoomInteraction: E,
|
|
56
|
+
animate: B,
|
|
57
57
|
dimmedOpacity: I,
|
|
58
|
-
customLayers:
|
|
59
|
-
collapseColorScaleByDefault:
|
|
60
|
-
zoomAndCenterByHighlightedIds:
|
|
61
|
-
projectionRotate:
|
|
62
|
-
rewindCoordinatesInMapData:
|
|
63
|
-
overlayMapData:
|
|
64
|
-
overlayMapBorderColor:
|
|
65
|
-
overlayMapBorderWidth:
|
|
66
|
-
|
|
58
|
+
customLayers: oe,
|
|
59
|
+
collapseColorScaleByDefault: De,
|
|
60
|
+
zoomAndCenterByHighlightedIds: ke,
|
|
61
|
+
projectionRotate: R,
|
|
62
|
+
rewindCoordinatesInMapData: V,
|
|
63
|
+
overlayMapData: U,
|
|
64
|
+
overlayMapBorderColor: Re,
|
|
65
|
+
overlayMapBorderWidth: Ge,
|
|
66
|
+
locale: re
|
|
67
|
+
} = n, x = Nt(() => V ? Et(T, {
|
|
67
68
|
reverse: !0
|
|
68
|
-
}) :
|
|
69
|
+
}) : T, [T, V]), Ce = Nt(() => !V || !U ? U : Et(U, {
|
|
69
70
|
reverse: !0
|
|
70
|
-
}), [
|
|
71
|
-
once:
|
|
72
|
-
amount:
|
|
73
|
-
}),
|
|
74
|
-
|
|
75
|
-
const t =
|
|
76
|
-
if (
|
|
77
|
-
if (
|
|
78
|
-
const y = f.type === "wheel", b = f.type.startsWith("touch"),
|
|
79
|
-
return b ? !0 : y ?
|
|
80
|
-
},
|
|
71
|
+
}), [U, V]), [p, l] = k(De === void 0 ? !(g < 680) : !De), [X, je] = k(void 0), [ae, ne] = k(void 0), [z, G] = k(void 0), [ie, se] = k(void 0), [Y, le] = k(void 0), c = Le(null), we = po(c, {
|
|
72
|
+
once: B.once,
|
|
73
|
+
amount: B.amount
|
|
74
|
+
}), w = Le(null), S = Le(null);
|
|
75
|
+
Ae(() => {
|
|
76
|
+
const t = wt(w.current), r = wt(c.current), d = (f) => {
|
|
77
|
+
if (E === "noZoom") return !1;
|
|
78
|
+
if (E === "button") return !f.type.includes("wheel");
|
|
79
|
+
const y = f.type === "wheel", b = f.type.startsWith("touch"), ze = f.type === "mousedown" || f.type === "mousemove";
|
|
80
|
+
return b ? !0 : y ? E === "scroll" ? !0 : f.ctrlKey : ze && !f.button && !f.ctrlKey;
|
|
81
|
+
}, D = Jt().scaleExtent(ve).translateExtent(xe || [[-20, -20], [g + 20, h + 20]]).filter(d).on("zoom", ({
|
|
81
82
|
transform: f
|
|
82
83
|
}) => {
|
|
83
84
|
t.attr("transform", f);
|
|
84
85
|
});
|
|
85
|
-
r.call(
|
|
86
|
-
}, [
|
|
87
|
-
const
|
|
88
|
-
...
|
|
89
|
-
features:
|
|
86
|
+
r.call(D), S.current = D;
|
|
87
|
+
}, [h, g, E]);
|
|
88
|
+
const W = Kt({
|
|
89
|
+
...x,
|
|
90
|
+
features: ke ? x.features.filter(
|
|
90
91
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
91
|
-
(t) => (
|
|
92
|
-
) :
|
|
93
|
-
}),
|
|
94
|
-
...
|
|
95
|
-
features:
|
|
92
|
+
(t) => (j || []).length === 0 || j?.indexOf(t.properties[O]) !== -1
|
|
93
|
+
) : x.features
|
|
94
|
+
}), _ = ao({
|
|
95
|
+
...x,
|
|
96
|
+
features: ke ? x.features.filter(
|
|
96
97
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
97
|
-
(t) => (
|
|
98
|
-
) :
|
|
99
|
-
}),
|
|
98
|
+
(t) => (j || []).length === 0 || j?.indexOf(t.properties[O]) !== -1
|
|
99
|
+
) : x.features
|
|
100
|
+
}), Se = (W[2] - W[0]) * 1.15, Me = (W[3] - W[1]) * 1.15, Ne = g * 190 / 960 * 360 / Se, Oe = h * 190 / 678 * 180 / Me, P = Te * Math.min(Ne, Oe), Ee = H === "mercator" ? Zt().rotate(R).center(C || _.geometry.coordinates).translate([g / 2, h / 2]).scale(P) : H === "equalEarth" ? Qt().rotate(R).center(C || _.geometry.coordinates).translate([g / 2, h / 2]).scale(P) : H === "naturalEarth" ? eo().rotate(R).center(C || _.geometry.coordinates).translate([g / 2, h / 2]).scale(P) : H === "orthographic" ? to().rotate(R).center(C || _.geometry.coordinates).translate([g / 2, h / 2]).scale(P) : oo().rotate(R).center(C || _.geometry.coordinates).translate([g / 2, h / 2]).scale(P), A = ro().projection(Ee), ce = Array.from({
|
|
100
101
|
length: m.length
|
|
101
|
-
}, (t, r) => r),
|
|
102
|
-
length:
|
|
103
|
-
}, (t, r) => r),
|
|
104
|
-
if (!
|
|
105
|
-
|
|
102
|
+
}, (t, r) => r), Be = Array.from({
|
|
103
|
+
length: J.length
|
|
104
|
+
}, (t, r) => r), Ie = Wt().domain(m).range(ce), de = Wt().domain(J).range(Be), me = (t) => {
|
|
105
|
+
if (!c.current || !S.current) return;
|
|
106
|
+
wt(c.current).call(S.current.scaleBy, t === "in" ? 1.2 : 1 / 1.2);
|
|
106
107
|
};
|
|
107
108
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
108
109
|
/* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
|
|
109
|
-
/* @__PURE__ */ o.jsx(
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
/* @__PURE__ */ o.jsx(ct.svg, { viewBox: `0 0 ${g} ${h}`, width: `${g}px`, height: `${h}px`, ref: c, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: w, children: [
|
|
111
|
+
oe.filter((t) => t.position === "before").map((t) => t.layer),
|
|
112
|
+
x.features.map((t, r) => {
|
|
112
113
|
if (!t.properties?.[O]) return null;
|
|
113
114
|
const d = A(t);
|
|
114
|
-
return d ? /* @__PURE__ */ o.jsx(
|
|
115
|
-
stroke:
|
|
116
|
-
strokeWidth:
|
|
117
|
-
fill:
|
|
115
|
+
return d ? /* @__PURE__ */ o.jsx(ct.g, { opacity: X ? I : j ? j.indexOf(t.properties[O]) !== -1 ? 1 : I : 1, children: /* @__PURE__ */ o.jsx("path", { d, style: {
|
|
116
|
+
stroke: Q,
|
|
117
|
+
strokeWidth: N,
|
|
118
|
+
fill: Z,
|
|
118
119
|
vectorEffect: "non-scaling-stroke"
|
|
119
120
|
} }) }, r) : null;
|
|
120
121
|
}),
|
|
121
|
-
/* @__PURE__ */ o.jsx(
|
|
122
|
-
const r =
|
|
122
|
+
/* @__PURE__ */ o.jsx(ho, { children: e.map((t) => {
|
|
123
|
+
const r = x.features.findIndex(
|
|
123
124
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
124
125
|
(b) => t.id === b.properties[O]
|
|
125
126
|
);
|
|
126
127
|
if (r === -1) return null;
|
|
127
|
-
const d = A(
|
|
128
|
+
const d = A(x.features[r]);
|
|
128
129
|
if (!d) return null;
|
|
129
|
-
const
|
|
130
|
-
return /* @__PURE__ */ o.jsx(
|
|
130
|
+
const D = zt(t.x) ? void 0 : Ie(t.x), f = zt(t.y) ? void 0 : de(t.y), y = D !== void 0 && f !== void 0 ? u[f][D] : Z;
|
|
131
|
+
return /* @__PURE__ */ o.jsx(ct.g, { className: "undp-map-shapes", variants: {
|
|
131
132
|
initial: {
|
|
132
133
|
opacity: 0
|
|
133
134
|
},
|
|
134
135
|
whileInView: {
|
|
135
|
-
opacity:
|
|
136
|
+
opacity: X ? X === y ? 1 : I : j ? j.indexOf(t.id) !== -1 ? 1 : I : 1,
|
|
136
137
|
transition: {
|
|
137
|
-
duration:
|
|
138
|
+
duration: B.duration
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
|
-
}, initial: "initial", animate:
|
|
141
|
+
}, initial: "initial", animate: we ? "whileInView" : "initial", exit: {
|
|
141
142
|
opacity: 0,
|
|
142
143
|
transition: {
|
|
143
|
-
duration:
|
|
144
|
+
duration: B.duration
|
|
144
145
|
}
|
|
145
146
|
}, onMouseEnter: (b) => {
|
|
146
|
-
|
|
147
|
+
G(t), le(b.clientY), se(b.clientX), ye?.(t);
|
|
147
148
|
}, onClick: () => {
|
|
148
|
-
(
|
|
149
|
+
(te || v) && (qt(ae, t) && $e ? (ne(void 0), te?.(void 0)) : (ne(t), te?.(t)));
|
|
149
150
|
}, onMouseMove: (b) => {
|
|
150
|
-
|
|
151
|
+
G(t), le(b.clientY), se(b.clientX);
|
|
151
152
|
}, onMouseLeave: () => {
|
|
152
|
-
|
|
153
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
153
|
+
G(void 0), se(void 0), le(void 0), ye?.(void 0);
|
|
154
|
+
}, children: /* @__PURE__ */ o.jsx(ct.path, { d, variants: {
|
|
154
155
|
initial: {
|
|
155
156
|
fill: y,
|
|
156
157
|
opacity: 0
|
|
@@ -159,61 +160,61 @@ function uo(n) {
|
|
|
159
160
|
fill: y,
|
|
160
161
|
opacity: 1,
|
|
161
162
|
transition: {
|
|
162
|
-
duration:
|
|
163
|
+
duration: B.duration
|
|
163
164
|
}
|
|
164
165
|
}
|
|
165
|
-
}, initial: "initial", animate:
|
|
166
|
+
}, initial: "initial", animate: we ? "whileInView" : "initial", exit: {
|
|
166
167
|
opacity: 0,
|
|
167
168
|
transition: {
|
|
168
|
-
duration:
|
|
169
|
+
duration: B.duration
|
|
169
170
|
}
|
|
170
|
-
}, className: `${y ===
|
|
171
|
-
stroke:
|
|
172
|
-
strokeWidth:
|
|
171
|
+
}, className: `${y === Z ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
|
|
172
|
+
stroke: Q,
|
|
173
|
+
strokeWidth: N,
|
|
173
174
|
vectorEffect: "non-scaling-stroke"
|
|
174
175
|
} }, `${t.id}`) }, t.id);
|
|
175
176
|
}) }),
|
|
176
|
-
|
|
177
|
+
z ? x.features.filter(
|
|
177
178
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
178
|
-
(t) => t.properties[O] ===
|
|
179
|
+
(t) => t.properties[O] === z.id
|
|
179
180
|
).map((t, r) => /* @__PURE__ */ o.jsx("path", { d: A(t) || "", className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
|
|
180
181
|
fill: "none",
|
|
181
182
|
fillOpacity: 0,
|
|
182
183
|
strokeWidth: "0.5",
|
|
183
184
|
vectorEffect: "non-scaling-stroke"
|
|
184
185
|
} }, r)) : null,
|
|
185
|
-
|
|
186
|
+
Ce?.features.map((t, r) => {
|
|
186
187
|
const d = A(t);
|
|
187
188
|
return d ? /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("path", { d, style: {
|
|
188
|
-
stroke:
|
|
189
|
-
strokeWidth:
|
|
189
|
+
stroke: Re || Q,
|
|
190
|
+
strokeWidth: Ge || N + 1,
|
|
190
191
|
fill: "none",
|
|
191
192
|
pointerEvents: "none",
|
|
192
193
|
vectorEffect: "non-scaling-stroke"
|
|
193
194
|
} }) }, r) : null;
|
|
194
195
|
}),
|
|
195
|
-
|
|
196
|
+
oe.filter((t) => t.position === "after").map((t) => t.layer)
|
|
196
197
|
] }) }),
|
|
197
|
-
|
|
198
|
+
be === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: Ht("absolute left-4 bottom-4 map-color-legend", $?.colorLegend), children: p ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
198
199
|
/* @__PURE__ */ o.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
|
|
199
|
-
|
|
200
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
200
|
+
l(!1);
|
|
201
|
+
}, children: /* @__PURE__ */ o.jsx(io, {}) }),
|
|
201
202
|
/* @__PURE__ */ o.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
|
|
202
203
|
width: "175px"
|
|
203
204
|
}, children: [
|
|
204
205
|
/* @__PURE__ */ o.jsxs("div", { className: "flex gap-1 items-center", children: [
|
|
205
206
|
/* @__PURE__ */ o.jsx("svg", { width: "136px", viewBox: "0 0 136 136", className: "shrink-0", children: /* @__PURE__ */ o.jsxs("g", { children: [
|
|
206
|
-
|
|
207
|
+
u.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - r * 25})`, children: t.map((d, D) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: D * 25 + 1, fill: d, width: 23, height: 23, strokeWidth: X === d ? 2 : 0.25, style: {
|
|
207
208
|
cursor: "pointer"
|
|
208
209
|
}, onMouseOver: () => {
|
|
209
|
-
|
|
210
|
+
je(d);
|
|
210
211
|
}, onMouseLeave: () => {
|
|
211
|
-
|
|
212
|
-
} },
|
|
213
|
-
/* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: m.map((t, r) => /* @__PURE__ */ o.jsx("text", { y: 10, x: (r + 1) * 25, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t :
|
|
214
|
-
|
|
212
|
+
je(void 0);
|
|
213
|
+
} }, D)) }, r)),
|
|
214
|
+
/* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: m.map((t, r) => /* @__PURE__ */ o.jsx("text", { y: 10, x: (r + 1) * 25, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t : It(t, void 0, void 0, void 0, void 0, re) }, r)) }),
|
|
215
|
+
J.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(m.length + 1, 5), 4) * 25 + 10},${100 - r * 25})`, children: /* @__PURE__ */ o.jsx("text", { x: 0, transform: "rotate(-90)", y: 0, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t : It(t, void 0, void 0, void 0, void 0, re) }) }, r))
|
|
215
216
|
] }) }),
|
|
216
|
-
/* @__PURE__ */ o.jsx(
|
|
217
|
+
/* @__PURE__ */ o.jsx(Bt, { marginBottom: "none", size: "xs", className: "leading-normal text-center shrink-0", style: {
|
|
217
218
|
display: "-webkit-box",
|
|
218
219
|
WebkitLineClamp: "1",
|
|
219
220
|
WebkitBoxOrient: "vertical",
|
|
@@ -221,239 +222,240 @@ function uo(n) {
|
|
|
221
222
|
writingMode: "vertical-rl",
|
|
222
223
|
height: "8.5rem",
|
|
223
224
|
transform: "rotate(180deg)"
|
|
224
|
-
}, children:
|
|
225
|
+
}, children: K })
|
|
225
226
|
] }),
|
|
226
|
-
/* @__PURE__ */ o.jsx(
|
|
227
|
+
/* @__PURE__ */ o.jsx(Bt, { marginBottom: "none", size: "xs", className: "mt-1 leading-normal text-center", style: {
|
|
227
228
|
display: "-webkit-box",
|
|
228
229
|
WebkitLineClamp: "1",
|
|
229
230
|
width: "8.5rem",
|
|
230
231
|
WebkitBoxOrient: "vertical",
|
|
231
232
|
overflow: "hidden"
|
|
232
|
-
}, children:
|
|
233
|
+
}, children: Fe })
|
|
233
234
|
] })
|
|
234
|
-
] }) : /* @__PURE__ */ o.jsx("button", { type: "button", className: "
|
|
235
|
-
|
|
236
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
237
|
-
|
|
238
|
-
/* @__PURE__ */ o.jsx("button", { onClick: () =>
|
|
239
|
-
/* @__PURE__ */ o.jsx("button", { onClick: () =>
|
|
235
|
+
] }) : /* @__PURE__ */ o.jsx("button", { type: "button", className: "p-1 border-0 rounded-[2px] text-primary-gray-700 bg-primary-gray-300 dark:bg-primary-gray-500 map-legend-button", onClick: () => {
|
|
236
|
+
l(!0);
|
|
237
|
+
}, children: /* @__PURE__ */ o.jsx(so, {}) }) }),
|
|
238
|
+
E === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
|
|
239
|
+
/* @__PURE__ */ o.jsx("button", { onClick: () => me("in"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
|
|
240
|
+
/* @__PURE__ */ o.jsx("button", { onClick: () => me("out"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
|
|
240
241
|
] })
|
|
241
242
|
] }),
|
|
242
|
-
|
|
243
|
-
|
|
243
|
+
z && ee && ie && Y ? /* @__PURE__ */ o.jsx(no, { data: z, body: ee, xPos: ie, yPos: Y, backgroundStyle: He?.tooltip, className: $?.tooltip }) : null,
|
|
244
|
+
v && ae !== void 0 ? /* @__PURE__ */ o.jsx(mo, { body: v, data: ae, setData: ne, className: $?.modal }) : null
|
|
244
245
|
] });
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
-
const e =
|
|
247
|
+
function er(n) {
|
|
248
|
+
const e = Rt.c(131), {
|
|
248
249
|
data: m,
|
|
249
|
-
graphTitle:
|
|
250
|
-
mapData:
|
|
251
|
-
colors:
|
|
252
|
-
sources:
|
|
253
|
-
graphDescription:
|
|
254
|
-
height:
|
|
255
|
-
width:
|
|
256
|
-
footNote:
|
|
250
|
+
graphTitle: T,
|
|
251
|
+
mapData: Fe,
|
|
252
|
+
colors: J,
|
|
253
|
+
sources: K,
|
|
254
|
+
graphDescription: g,
|
|
255
|
+
height: h,
|
|
256
|
+
width: u,
|
|
257
|
+
footNote: Te,
|
|
257
258
|
xDomain: C,
|
|
258
|
-
yDomain:
|
|
259
|
-
xColorLegendTitle:
|
|
260
|
-
yColorLegendTitle:
|
|
261
|
-
tooltip:
|
|
262
|
-
scale:
|
|
263
|
-
centerPoint:
|
|
264
|
-
padding:
|
|
265
|
-
mapBorderWidth:
|
|
266
|
-
mapNoDataColor:
|
|
259
|
+
yDomain: N,
|
|
260
|
+
xColorLegendTitle: Z,
|
|
261
|
+
yColorLegendTitle: Q,
|
|
262
|
+
tooltip: ee,
|
|
263
|
+
scale: ye,
|
|
264
|
+
centerPoint: ve,
|
|
265
|
+
padding: xe,
|
|
266
|
+
mapBorderWidth: j,
|
|
267
|
+
mapNoDataColor: te,
|
|
267
268
|
backgroundColor: O,
|
|
268
|
-
mapBorderColor:
|
|
269
|
-
relativeHeight:
|
|
270
|
-
onSeriesMouseOver:
|
|
271
|
-
isWorldMap:
|
|
272
|
-
zoomScaleExtend:
|
|
273
|
-
zoomTranslateExtend:
|
|
274
|
-
graphID:
|
|
275
|
-
showColorScale:
|
|
269
|
+
mapBorderColor: $e,
|
|
270
|
+
relativeHeight: v,
|
|
271
|
+
onSeriesMouseOver: be,
|
|
272
|
+
isWorldMap: He,
|
|
273
|
+
zoomScaleExtend: $,
|
|
274
|
+
zoomTranslateExtend: H,
|
|
275
|
+
graphID: E,
|
|
276
|
+
showColorScale: B,
|
|
276
277
|
highlightedIds: I,
|
|
277
|
-
onSeriesMouseClick:
|
|
278
|
-
mapProperty:
|
|
279
|
-
graphDownload:
|
|
280
|
-
dataDownload:
|
|
281
|
-
showAntarctica:
|
|
282
|
-
language:
|
|
283
|
-
minHeight:
|
|
284
|
-
theme:
|
|
285
|
-
ariaLabel:
|
|
286
|
-
resetSelectionOnDoubleClick:
|
|
287
|
-
detailsOnClick:
|
|
288
|
-
styles:
|
|
278
|
+
onSeriesMouseClick: oe,
|
|
279
|
+
mapProperty: De,
|
|
280
|
+
graphDownload: ke,
|
|
281
|
+
dataDownload: R,
|
|
282
|
+
showAntarctica: V,
|
|
283
|
+
language: U,
|
|
284
|
+
minHeight: Re,
|
|
285
|
+
theme: Ge,
|
|
286
|
+
ariaLabel: re,
|
|
287
|
+
resetSelectionOnDoubleClick: x,
|
|
288
|
+
detailsOnClick: Ce,
|
|
289
|
+
styles: p,
|
|
289
290
|
classNames: l,
|
|
290
|
-
mapProjection:
|
|
291
|
-
zoomInteraction:
|
|
292
|
-
animate:
|
|
293
|
-
dimmedOpacity:
|
|
294
|
-
customLayers:
|
|
295
|
-
timeline:
|
|
296
|
-
collapseColorScaleByDefault:
|
|
297
|
-
zoomAndCenterByHighlightedIds:
|
|
298
|
-
projectionRotate:
|
|
299
|
-
rewindCoordinatesInMapData:
|
|
300
|
-
mapOverlay:
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
e[4] !== R ? (Ve = R === void 0 ? [] : R, e[4] = R, e[5] = Ve) : Ve = e[5];
|
|
310
|
-
const pt = Ve;
|
|
291
|
+
mapProjection: X,
|
|
292
|
+
zoomInteraction: je,
|
|
293
|
+
animate: ae,
|
|
294
|
+
dimmedOpacity: ne,
|
|
295
|
+
customLayers: z,
|
|
296
|
+
timeline: G,
|
|
297
|
+
collapseColorScaleByDefault: ie,
|
|
298
|
+
zoomAndCenterByHighlightedIds: se,
|
|
299
|
+
projectionRotate: Y,
|
|
300
|
+
rewindCoordinatesInMapData: le,
|
|
301
|
+
mapOverlay: c,
|
|
302
|
+
locale: we
|
|
303
|
+
} = n, w = Fe === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : Fe, S = J === void 0 ? St.light.bivariateColors.colors05x05 : J, W = Te === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : Te, _ = Z === void 0 ? "X Color key" : Z, Se = Q === void 0 ? "Y Color key" : Q, Me = ye === void 0 ? 0.95 : ye, Ne = j === void 0 ? 0.5 : j, Oe = te === void 0 ? St.light.graphNoData : te, P = O === void 0 ? !1 : O, Ee = $e === void 0 ? St.light.grays["gray-500"] : $e, A = He === void 0 ? !0 : He;
|
|
304
|
+
let ce;
|
|
305
|
+
e[0] !== $ ? (ce = $ === void 0 ? [0.8, 6] : $, e[0] = $, e[1] = ce) : ce = e[1];
|
|
306
|
+
const Be = ce, Ie = B === void 0 ? !0 : B;
|
|
307
|
+
let de;
|
|
308
|
+
e[2] !== I ? (de = I === void 0 ? [] : I, e[2] = I, e[3] = de) : de = e[3];
|
|
309
|
+
const me = de, t = De === void 0 ? "ISO3" : De, r = ke === void 0 ? !1 : ke, d = R === void 0 ? !1 : R, D = V === void 0 ? !1 : V, f = U === void 0 ? "en" : U, y = Re === void 0 ? 0 : Re, b = Ge === void 0 ? "light" : Ge, ze = x === void 0 ? !0 : x, dt = X === void 0 ? "naturalEarth" : X, mt = je === void 0 ? "button" : je, Ve = ae === void 0 ? !1 : ae, pt = ne === void 0 ? 0.3 : ne;
|
|
311
310
|
let Ue;
|
|
312
|
-
e[
|
|
311
|
+
e[4] !== z ? (Ue = z === void 0 ? [] : z, e[4] = z, e[5] = Ue) : Ue = e[5];
|
|
312
|
+
const ht = Ue;
|
|
313
|
+
let Xe;
|
|
314
|
+
e[6] !== G ? (Xe = G === void 0 ? {
|
|
313
315
|
enabled: !1,
|
|
314
316
|
autoplay: !1,
|
|
315
317
|
showOnlyActiveDate: !0
|
|
316
|
-
} :
|
|
317
|
-
const a =
|
|
318
|
-
let
|
|
319
|
-
e[8] !==
|
|
320
|
-
const ft =
|
|
321
|
-
let
|
|
318
|
+
} : G, e[6] = G, e[7] = Xe) : Xe = e[7];
|
|
319
|
+
const a = Xe, ut = se === void 0 ? !1 : se;
|
|
320
|
+
let Ye;
|
|
321
|
+
e[8] !== Y ? (Ye = Y === void 0 ? [0, 0] : Y, e[8] = Y, e[9] = Ye) : Ye = e[9];
|
|
322
|
+
const ft = Ye, gt = le === void 0 ? !0 : le, yt = we === void 0 ? "en" : we, [q, At] = k(0), [We, Lt] = k(0), [L, Ft] = k(a.autoplay);
|
|
323
|
+
let _e;
|
|
322
324
|
if (e[10] !== m || e[11] !== a.dateFormat) {
|
|
323
325
|
let i;
|
|
324
|
-
e[13] !== a.dateFormat ? (i = (
|
|
326
|
+
e[13] !== a.dateFormat ? (i = (M) => Yt(`${M.date}`, a.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[13] = a.dateFormat, e[14] = i) : i = e[14], _e = [...new Set(m.filter(No).map(i))], _e.sort(Mo), e[10] = m, e[11] = a.dateFormat, e[12] = _e;
|
|
325
327
|
} else
|
|
326
|
-
|
|
327
|
-
const s =
|
|
328
|
-
let
|
|
329
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
330
|
-
const i = new ResizeObserver((
|
|
331
|
-
|
|
328
|
+
_e = e[12];
|
|
329
|
+
const s = _e, [F, vt] = k(a.autoplay ? 0 : s.length - 1), [pe, Tt] = k(void 0), [xt, $t] = k(void 0), bt = Le(null), Mt = Le(null);
|
|
330
|
+
let qe, Je;
|
|
331
|
+
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qe = () => {
|
|
332
|
+
const i = new ResizeObserver((M) => {
|
|
333
|
+
At(M[0].target.clientWidth || 620), Lt(M[0].target.clientHeight || 480);
|
|
332
334
|
});
|
|
333
|
-
return
|
|
334
|
-
},
|
|
335
|
-
let
|
|
336
|
-
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
337
|
-
|
|
338
|
-
}, e[17] =
|
|
339
|
-
const
|
|
340
|
-
let Ze;
|
|
341
|
-
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ze = (i) => {
|
|
342
|
-
Ft(i);
|
|
343
|
-
}, e[18] = Ze) : Ze = e[18];
|
|
344
|
-
const We = Nt(Ze);
|
|
335
|
+
return bt.current && i.observe(bt.current), () => i.disconnect();
|
|
336
|
+
}, Je = [], e[15] = qe, e[16] = Je) : (qe = e[15], Je = e[16]), Ae(qe, Je);
|
|
337
|
+
let Ke;
|
|
338
|
+
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ke = (i) => {
|
|
339
|
+
Tt(i);
|
|
340
|
+
}, e[17] = Ke) : Ke = e[17];
|
|
341
|
+
const Ze = Ot(Ke);
|
|
345
342
|
let Qe;
|
|
346
|
-
e[
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
}, e[19] = j, e[20] = Ke, e[21] = Qe) : Qe = e[21];
|
|
343
|
+
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Qe = (i) => {
|
|
344
|
+
$t(i);
|
|
345
|
+
}, e[18] = Qe) : Qe = e[18];
|
|
346
|
+
const Pe = Ot(Qe);
|
|
351
347
|
let et;
|
|
352
|
-
e[
|
|
348
|
+
e[19] !== w || e[20] !== Ze ? (et = () => {
|
|
349
|
+
typeof w == "string" ? _t(w).then((M) => {
|
|
350
|
+
Ze(M);
|
|
351
|
+
}) : Ze(w);
|
|
352
|
+
}, e[19] = w, e[20] = Ze, e[21] = et) : et = e[21];
|
|
353
353
|
let tt;
|
|
354
|
-
e[
|
|
355
|
-
g?.mapData || We(void 0), typeof g?.mapData == "string" ? zt(g?.mapData).then((N) => {
|
|
356
|
-
We(N);
|
|
357
|
-
}) : We(g?.mapData);
|
|
358
|
-
}, e[24] = g?.mapData, e[25] = We, e[26] = tt) : tt = e[26];
|
|
359
|
-
const xt = g?.mapData;
|
|
354
|
+
e[22] !== w ? (tt = [w], e[22] = w, e[23] = tt) : tt = e[23], Ae(et, tt);
|
|
360
355
|
let ot;
|
|
361
|
-
e[
|
|
362
|
-
|
|
363
|
-
|
|
356
|
+
e[24] !== c?.mapData || e[25] !== Pe ? (ot = () => {
|
|
357
|
+
c?.mapData || Pe(void 0), typeof c?.mapData == "string" ? _t(c?.mapData).then((M) => {
|
|
358
|
+
Pe(M);
|
|
359
|
+
}) : Pe(c?.mapData);
|
|
360
|
+
}, e[24] = c?.mapData, e[25] = Pe, e[26] = ot) : ot = e[26];
|
|
361
|
+
const Dt = c?.mapData;
|
|
362
|
+
let rt;
|
|
363
|
+
e[27] !== Dt ? (rt = [Dt], e[27] = Dt, e[28] = rt) : rt = e[28], Ae(ot, rt);
|
|
364
|
+
let at, nt;
|
|
365
|
+
e[29] !== L || e[30] !== a.speed || e[31] !== s ? (at = () => {
|
|
364
366
|
const i = setInterval(() => {
|
|
365
|
-
|
|
367
|
+
vt((M) => M < s.length - 1 ? M + 1 : 0);
|
|
366
368
|
}, (a.speed || 2) * 1e3);
|
|
367
|
-
return
|
|
368
|
-
},
|
|
369
|
-
const
|
|
370
|
-
let
|
|
371
|
-
e[34] !==
|
|
372
|
-
const
|
|
373
|
-
if (C &&
|
|
369
|
+
return L || clearInterval(i), () => clearInterval(i);
|
|
370
|
+
}, nt = [s, L, a.speed], e[29] = L, e[30] = a.speed, e[31] = s, e[32] = at, e[33] = nt) : (at = e[32], nt = e[33]), Ae(at, nt);
|
|
371
|
+
const kt = a.dateFormat || "yyyy";
|
|
372
|
+
let it;
|
|
373
|
+
e[34] !== F || e[35] !== kt || e[36] !== a.showOnlyActiveDate || e[37] !== s ? (it = Gt(s, F, a.showOnlyActiveDate, kt), e[34] = F, e[35] = kt, e[36] = a.showOnlyActiveDate, e[37] = s, e[38] = it) : it = e[38];
|
|
374
|
+
const st = it;
|
|
375
|
+
if (C && N && (C.length !== S[0].length - 1 || N.length !== S.length - 1))
|
|
374
376
|
return console.error("the xDomain and yDomain array length don't match to the color array length"), null;
|
|
375
|
-
const
|
|
376
|
-
let
|
|
377
|
-
e[39] !== l?.description || e[40] !== l?.title || e[41] !== m || e[42] !== d || e[43] !==
|
|
378
|
-
title:
|
|
379
|
-
description:
|
|
377
|
+
const Ct = l?.graphContainer, jt = p?.graphContainer;
|
|
378
|
+
let he;
|
|
379
|
+
e[39] !== l?.description || e[40] !== l?.title || e[41] !== m || e[42] !== d || e[43] !== g || e[44] !== r || e[45] !== T || e[46] !== p?.description || e[47] !== p?.title || e[48] !== u ? (he = T || g || r || d ? /* @__PURE__ */ o.jsx(uo, { styles: {
|
|
380
|
+
title: p?.title,
|
|
381
|
+
description: p?.description
|
|
380
382
|
}, classNames: {
|
|
381
383
|
title: l?.title,
|
|
382
384
|
description: l?.description
|
|
383
|
-
}, graphTitle:
|
|
384
|
-
let
|
|
385
|
-
e[50] !==
|
|
385
|
+
}, graphTitle: T, graphDescription: g, width: u, graphDownload: r ? Mt : void 0, dataDownload: d ? m.map(So).filter(wo).length > 0 ? m.map(jo).filter(Co) : m.filter(ko) : null }) : null, e[39] = l?.description, e[40] = l?.title, e[41] = m, e[42] = d, e[43] = g, e[44] = r, e[45] = T, e[46] = p?.description, e[47] = p?.title, e[48] = u, e[49] = he) : he = e[49];
|
|
386
|
+
let ue;
|
|
387
|
+
e[50] !== F || e[51] !== st || e[52] !== L || e[53] !== a.enabled || e[54] !== s ? (ue = a.enabled && s.length > 0 && st ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
386
388
|
/* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
|
|
387
|
-
|
|
388
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
389
|
-
/* @__PURE__ */ o.jsx(
|
|
390
|
-
|
|
389
|
+
Ft(!L);
|
|
390
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": L ? "Click to pause animation" : "Click to play animation", children: L ? /* @__PURE__ */ o.jsx(lo, {}) : /* @__PURE__ */ o.jsx(co, {}) }),
|
|
391
|
+
/* @__PURE__ */ o.jsx(Vt, { min: s[0], max: s[s.length - 1], marks: st, step: null, defaultValue: s[s.length - 1], value: s[F], onChangeComplete: (i) => {
|
|
392
|
+
vt(s.indexOf(i));
|
|
391
393
|
}, onChange: (i) => {
|
|
392
|
-
|
|
394
|
+
vt(s.indexOf(i));
|
|
393
395
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
394
|
-
] }) : null, e[50] =
|
|
395
|
-
let
|
|
396
|
-
e[56] !==
|
|
397
|
-
...
|
|
398
|
-
features:
|
|
399
|
-
}, xDomain: C ||
|
|
396
|
+
] }) : null, e[50] = F, e[51] = st, e[52] = L, e[53] = a.enabled, e[54] = s, e[55] = ue) : ue = e[55];
|
|
397
|
+
let fe;
|
|
398
|
+
e[56] !== Ve || e[57] !== ve || e[58] !== l || e[59] !== ie || e[60] !== S || e[61] !== ht || e[62] !== m || e[63] !== Ce || e[64] !== pt || e[65] !== h || e[66] !== me || e[67] !== F || e[68] !== A || e[69] !== yt || e[70] !== Ee || e[71] !== Ne || e[72] !== Oe || e[73] !== c?.mapBorderColor || e[74] !== c?.mapBorderWidth || e[75] !== dt || e[76] !== t || e[77] !== pe || e[78] !== y || e[79] !== oe || e[80] !== be || e[81] !== xt || e[82] !== ft || e[83] !== v || e[84] !== ze || e[85] !== gt || e[86] !== Me || e[87] !== D || e[88] !== Ie || e[89] !== p || e[90] !== We || e[91] !== q || e[92] !== a.dateFormat || e[93] !== a.enabled || e[94] !== ee || e[95] !== s || e[96] !== u || e[97] !== _ || e[98] !== C || e[99] !== Se || e[100] !== N || e[101] !== ut || e[102] !== mt || e[103] !== Be || e[104] !== H ? (fe = /* @__PURE__ */ o.jsx(go, { ref: bt, children: q && We && pe ? /* @__PURE__ */ o.jsx(vo, { data: m.filter((i) => a.enabled ? `${i.date}` === Xt(new Date(s[F]), a.dateFormat || "yyyy") : i), mapData: D ? pe : {
|
|
399
|
+
...pe,
|
|
400
|
+
features: pe.features.filter(Do)
|
|
401
|
+
}, xDomain: C || Pt(m.map(bo), S[0].length), yDomain: N || Pt(m.map(xo), S.length), width: q, height: We, scale: Me, centerPoint: ve, colors: S, xColorLegendTitle: _, yColorLegendTitle: Se, mapBorderWidth: Ne, mapNoDataColor: Oe, mapBorderColor: Ee, tooltip: ee, onSeriesMouseOver: be, isWorldMap: A, zoomScaleExtend: Be, zoomTranslateExtend: H, onSeriesMouseClick: oe, mapProperty: t, highlightedIds: me, resetSelectionOnDoubleClick: ze, styles: p, showColorScale: Ie, classNames: l, mapProjection: dt || (A ? "naturalEarth" : "mercator"), detailsOnClick: Ce, zoomInteraction: mt, overlayMapData: xt, overlayMapBorderColor: c?.mapBorderColor, overlayMapBorderWidth: c?.mapBorderWidth, animate: Ve === !0 ? {
|
|
400
402
|
duration: 0.5,
|
|
401
403
|
once: !0,
|
|
402
404
|
amount: 0.5
|
|
403
|
-
} :
|
|
405
|
+
} : Ve || {
|
|
404
406
|
duration: 0,
|
|
405
407
|
once: !0,
|
|
406
408
|
amount: 0
|
|
407
|
-
}, dimmedOpacity:
|
|
408
|
-
height: `${Math.max(y,
|
|
409
|
-
}, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(
|
|
410
|
-
let
|
|
411
|
-
e[
|
|
412
|
-
footnote:
|
|
413
|
-
source:
|
|
409
|
+
}, dimmedOpacity: pt, customLayers: ht, collapseColorScaleByDefault: ie, zoomAndCenterByHighlightedIds: ut, projectionRotate: ft, rewindCoordinatesInMapData: gt, locale: yt }) : /* @__PURE__ */ o.jsx("div", { style: {
|
|
410
|
+
height: `${Math.max(y, h || (v ? y ? (u || q) * v > y ? (u || q) * v : y : (u || q) * v : We))}px`
|
|
411
|
+
}, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(Ut, { "aria-label": "Loading graph" }) }) }), e[56] = Ve, e[57] = ve, e[58] = l, e[59] = ie, e[60] = S, e[61] = ht, e[62] = m, e[63] = Ce, e[64] = pt, e[65] = h, e[66] = me, e[67] = F, e[68] = A, e[69] = yt, e[70] = Ee, e[71] = Ne, e[72] = Oe, e[73] = c?.mapBorderColor, e[74] = c?.mapBorderWidth, e[75] = dt, e[76] = t, e[77] = pe, e[78] = y, e[79] = oe, e[80] = be, e[81] = xt, e[82] = ft, e[83] = v, e[84] = ze, e[85] = gt, e[86] = Me, e[87] = D, e[88] = Ie, e[89] = p, e[90] = We, e[91] = q, e[92] = a.dateFormat, e[93] = a.enabled, e[94] = ee, e[95] = s, e[96] = u, e[97] = _, e[98] = C, e[99] = Se, e[100] = N, e[101] = ut, e[102] = mt, e[103] = Be, e[104] = H, e[105] = fe) : fe = e[105];
|
|
412
|
+
let ge;
|
|
413
|
+
e[106] !== l?.footnote || e[107] !== l?.source || e[108] !== W || e[109] !== K || e[110] !== p?.footnote || e[111] !== p?.source || e[112] !== u ? (ge = K || W ? /* @__PURE__ */ o.jsx(fo, { styles: {
|
|
414
|
+
footnote: p?.footnote,
|
|
415
|
+
source: p?.source
|
|
414
416
|
}, classNames: {
|
|
415
417
|
footnote: l?.footnote,
|
|
416
418
|
source: l?.source
|
|
417
|
-
}, sources:
|
|
418
|
-
let
|
|
419
|
-
return e[
|
|
420
|
-
me,
|
|
421
|
-
pe,
|
|
419
|
+
}, sources: K, footNote: W, width: u }) : null, e[106] = l?.footnote, e[107] = l?.source, e[108] = W, e[109] = K, e[110] = p?.footnote, e[111] = p?.source, e[112] = u, e[113] = ge) : ge = e[113];
|
|
420
|
+
let lt;
|
|
421
|
+
return e[114] !== re || e[115] !== P || e[116] !== E || e[117] !== h || e[118] !== f || e[119] !== y || e[120] !== xe || e[121] !== v || e[122] !== Ct || e[123] !== jt || e[124] !== he || e[125] !== ue || e[126] !== fe || e[127] !== ge || e[128] !== b || e[129] !== u ? (lt = /* @__PURE__ */ o.jsxs(yo, { className: Ct, style: jt, id: E, ref: Mt, "aria-label": re, backgroundColor: P, theme: b, language: f, minHeight: y, width: u, height: h, relativeHeight: v, padding: xe, children: [
|
|
422
422
|
he,
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
ue,
|
|
424
|
+
fe,
|
|
425
|
+
ge
|
|
426
|
+
] }), e[114] = re, e[115] = P, e[116] = E, e[117] = h, e[118] = f, e[119] = y, e[120] = xe, e[121] = v, e[122] = Ct, e[123] = jt, e[124] = he, e[125] = ue, e[126] = fe, e[127] = ge, e[128] = b, e[129] = u, e[130] = lt) : lt = e[130], lt;
|
|
425
427
|
}
|
|
426
|
-
function
|
|
428
|
+
function xo(n) {
|
|
427
429
|
return n.y;
|
|
428
430
|
}
|
|
429
|
-
function
|
|
431
|
+
function bo(n) {
|
|
430
432
|
return n.x;
|
|
431
433
|
}
|
|
432
|
-
function
|
|
434
|
+
function Do(n) {
|
|
433
435
|
return n.properties?.NAME !== "Antarctica";
|
|
434
436
|
}
|
|
435
|
-
function
|
|
437
|
+
function ko(n) {
|
|
436
438
|
return n !== void 0;
|
|
437
439
|
}
|
|
438
|
-
function
|
|
440
|
+
function Co(n) {
|
|
439
441
|
return n !== void 0;
|
|
440
442
|
}
|
|
441
|
-
function
|
|
443
|
+
function jo(n) {
|
|
442
444
|
return n.data;
|
|
443
445
|
}
|
|
444
|
-
function
|
|
446
|
+
function wo(n) {
|
|
445
447
|
return n !== void 0;
|
|
446
448
|
}
|
|
447
|
-
function
|
|
449
|
+
function So(n) {
|
|
448
450
|
return n.data;
|
|
449
451
|
}
|
|
450
|
-
function
|
|
452
|
+
function Mo(n, e) {
|
|
451
453
|
return n - e;
|
|
452
454
|
}
|
|
453
|
-
function
|
|
455
|
+
function No(n) {
|
|
454
456
|
return n.date;
|
|
455
457
|
}
|
|
456
458
|
export {
|
|
457
|
-
|
|
459
|
+
er as BiVariateChoroplethMap
|
|
458
460
|
};
|
|
459
461
|
//# sourceMappingURL=BiVariateChoroplethMap.js.map
|