@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
package/dist/HybridMap.js
CHANGED
|
@@ -1,171 +1,172 @@
|
|
|
1
|
-
import { _ as oo, m as Vt, a as Ht, j as a, c as ao } from "./index-CHPV5EwG-
|
|
1
|
+
import { _ as oo, m as Vt, a as Ht, j as a, c as ao } from "./index-CHPV5EwG-BzibaIRc.js";
|
|
2
2
|
import * as ro from "react";
|
|
3
|
-
import io, { useMemo as
|
|
3
|
+
import io, { useMemo as Ft, useState as S, useRef as qe, useEffect as Ue, useEffectEvent as Tt } from "react";
|
|
4
4
|
import { f as no, p as lo } from "./parse-Dv4of-PN.js";
|
|
5
|
-
import { g as so, N as co } from "./getSliderMarks-
|
|
6
|
-
import { w as mo } from "./Spinner-
|
|
7
|
-
import { i as
|
|
5
|
+
import { g as so, N as co } from "./getSliderMarks-X-_goqH9.js";
|
|
6
|
+
import { w as mo } from "./Spinner-B2IIKg9r.js";
|
|
7
|
+
import { i as At } from "./index-Bwrro8-q.js";
|
|
8
8
|
import { i as Rt, z as po, a as uo, g as ho, b as fo, c as go, d as yo, e as vo, f as xo } from "./index-CKpKc9DR.js";
|
|
9
|
-
import { _ as Lt } from "./Typography-
|
|
9
|
+
import { _ as Lt } from "./Typography-BO0gQDIT.js";
|
|
10
10
|
import { i as bo } from "./index-DCsFBfJ_.js";
|
|
11
|
-
import { n as Gt } from "./Source-
|
|
12
|
-
import { w as wo } from "./index-
|
|
13
|
-
import { T as jo } from "./Tooltip-
|
|
14
|
-
import { X as ko,
|
|
15
|
-
import { D as
|
|
16
|
-
import { s as
|
|
17
|
-
import { o as
|
|
18
|
-
import { t as
|
|
11
|
+
import { n as Gt } from "./Source-QGk8vhkS.js";
|
|
12
|
+
import { w as wo } from "./index-w64Zl8io-ihagHOdP.js";
|
|
13
|
+
import { T as jo } from "./Tooltip-Bj-s__cI.js";
|
|
14
|
+
import { X as ko, E as Co, P as Do, e as No } from "./index-ApTBN0kp.js";
|
|
15
|
+
import { D as Mo } from "./DetailsModal-B2XBWR7w.js";
|
|
16
|
+
import { s as So } from "./pow-BXYLJHCq.js";
|
|
17
|
+
import { o as Oo } from "./ordinal-CHaxGJ_l.js";
|
|
18
|
+
import { t as Eo } from "./threshold-DFfqcDMa.js";
|
|
19
19
|
import { s as Wt } from "./select-DKy99ogv.js";
|
|
20
|
-
import { m as
|
|
21
|
-
import { c as
|
|
22
|
-
import { n as
|
|
23
|
-
import { u as Bo } from "./use-in-view-
|
|
24
|
-
import { A as
|
|
25
|
-
import { GraphFooter as
|
|
26
|
-
import { GraphHeader as
|
|
27
|
-
import { Colors as
|
|
20
|
+
import { m as le } from "./proxy-BsxtcZKa.js";
|
|
21
|
+
import { c as vt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
22
|
+
import { n as Io } from "./numberFormattingFunction-DqMf_v1m.js";
|
|
23
|
+
import { u as Bo } from "./use-in-view-KOXq5Kmc.js";
|
|
24
|
+
import { A as zo } from "./index-Cv_5q6Rb.js";
|
|
25
|
+
import { GraphFooter as Po } from "./GraphFooter.js";
|
|
26
|
+
import { GraphHeader as _o } from "./GraphHeader.js";
|
|
27
|
+
import { Colors as ke } from "./Colors.js";
|
|
28
28
|
import { f as Ut } from "./fetchAndParseData-BAXhgTDM.js";
|
|
29
|
-
import { a as
|
|
30
|
-
import { g as
|
|
31
|
-
import { g as
|
|
32
|
-
var
|
|
33
|
-
const { decorative: t, orientation: w = qt, ...y } = r,
|
|
29
|
+
import { a as Lo, G as Wo } from "./GraphContainer-B8ZqOzKI.js";
|
|
30
|
+
import { g as Vo } from "./getUniqValue-DsqSii6M.js";
|
|
31
|
+
import { g as $o } from "./getJenks-DTCcQSDi.js";
|
|
32
|
+
var Fo = "Separator", qt = "horizontal", To = ["horizontal", "vertical"], Xt = ro.forwardRef((r, e) => {
|
|
33
|
+
const { decorative: t, orientation: w = qt, ...y } = r, l = Ao(w) ? w : qt, v = t ? { role: "none" } : { "aria-orientation": l === "vertical" ? l : void 0, role: "separator" };
|
|
34
34
|
return /* @__PURE__ */ Ht.jsx(
|
|
35
35
|
wo.div,
|
|
36
36
|
{
|
|
37
|
-
"data-orientation":
|
|
37
|
+
"data-orientation": l,
|
|
38
38
|
...v,
|
|
39
39
|
...y,
|
|
40
40
|
ref: e
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
});
|
|
44
|
-
Xt.displayName =
|
|
45
|
-
function
|
|
46
|
-
return
|
|
44
|
+
Xt.displayName = Fo;
|
|
45
|
+
function Ao(r) {
|
|
46
|
+
return To.includes(r);
|
|
47
47
|
}
|
|
48
48
|
var Yt = Xt;
|
|
49
49
|
const Jt = io.forwardRef((r, e) => {
|
|
50
50
|
const t = oo.c(14);
|
|
51
|
-
let w, y,
|
|
51
|
+
let w, y, l, v;
|
|
52
52
|
t[0] !== r ? ({
|
|
53
53
|
className: w,
|
|
54
|
-
variant:
|
|
54
|
+
variant: l,
|
|
55
55
|
orientation: v,
|
|
56
56
|
...y
|
|
57
|
-
} = r, t[0] = r, t[1] = w, t[2] = y, t[3] =
|
|
58
|
-
const x =
|
|
57
|
+
} = r, t[0] = r, t[1] = w, t[2] = y, t[3] = l, t[4] = v) : (w = t[1], y = t[2], l = t[3], v = t[4]);
|
|
58
|
+
const x = l === void 0 ? "dark" : l, s = v === void 0 ? "horizontal" : v, u = s === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", D = x === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
|
|
59
59
|
let C;
|
|
60
|
-
t[5] !== w || t[6] !==
|
|
61
|
-
let
|
|
62
|
-
return t[9] !==
|
|
60
|
+
t[5] !== w || t[6] !== u || t[7] !== D ? (C = Vt(u, D, w), t[5] = w, t[6] = u, t[7] = D, t[8] = C) : C = t[8];
|
|
61
|
+
let B;
|
|
62
|
+
return t[9] !== s || t[10] !== y || t[11] !== e || t[12] !== C ? (B = /* @__PURE__ */ Ht.jsx(Yt, { ...y, ref: e, orientation: s, className: C }), t[9] = s, t[10] = y, t[11] = e, t[12] = C, t[13] = B) : B = t[13], B;
|
|
63
63
|
});
|
|
64
64
|
Jt.displayName = Yt.displayName;
|
|
65
|
-
function
|
|
65
|
+
function Ro(r) {
|
|
66
66
|
const {
|
|
67
67
|
data: e,
|
|
68
68
|
colors: t,
|
|
69
69
|
mapData: w,
|
|
70
70
|
mapColorLegendTitle: y,
|
|
71
|
-
colorDomain:
|
|
71
|
+
colorDomain: l,
|
|
72
72
|
radius: v,
|
|
73
73
|
height: x,
|
|
74
|
-
width:
|
|
75
|
-
scale:
|
|
74
|
+
width: s,
|
|
75
|
+
scale: u,
|
|
76
76
|
centerPoint: D,
|
|
77
77
|
tooltip: C,
|
|
78
|
-
showLabels:
|
|
79
|
-
mapBorderWidth:
|
|
80
|
-
mapBorderColor:
|
|
81
|
-
mapNoDataColor:
|
|
82
|
-
onSeriesMouseOver:
|
|
83
|
-
showColorScale:
|
|
78
|
+
showLabels: B,
|
|
79
|
+
mapBorderWidth: se,
|
|
80
|
+
mapBorderColor: ce,
|
|
81
|
+
mapNoDataColor: Ce,
|
|
82
|
+
onSeriesMouseOver: G,
|
|
83
|
+
showColorScale: De,
|
|
84
84
|
zoomScaleExtend: He,
|
|
85
85
|
zoomTranslateExtend: Xe,
|
|
86
|
-
highlightedDataPoints:
|
|
87
|
-
onSeriesMouseClick:
|
|
88
|
-
resetSelectionOnDoubleClick:
|
|
89
|
-
detailsOnClick:
|
|
86
|
+
highlightedDataPoints: Ne,
|
|
87
|
+
onSeriesMouseClick: L,
|
|
88
|
+
resetSelectionOnDoubleClick: Me,
|
|
89
|
+
detailsOnClick: U,
|
|
90
90
|
styles: N,
|
|
91
|
-
classNames:
|
|
91
|
+
classNames: q,
|
|
92
92
|
mapProjection: oe,
|
|
93
|
-
zoomInteraction:
|
|
93
|
+
zoomInteraction: H,
|
|
94
94
|
animate: b,
|
|
95
|
-
dimmedOpacity:
|
|
96
|
-
customLayers:
|
|
97
|
-
maxRadiusValue:
|
|
95
|
+
dimmedOpacity: W,
|
|
96
|
+
customLayers: de,
|
|
97
|
+
maxRadiusValue: Se,
|
|
98
98
|
categorical: ae,
|
|
99
|
-
dotColor:
|
|
100
|
-
collapseColorScaleByDefault:
|
|
99
|
+
dotColor: X,
|
|
100
|
+
collapseColorScaleByDefault: Oe,
|
|
101
101
|
highlightedIds: re,
|
|
102
|
-
mapProperty:
|
|
103
|
-
dotLegendTitle:
|
|
104
|
-
dotBorderColor:
|
|
105
|
-
labelColor:
|
|
106
|
-
projectionRotate:
|
|
107
|
-
rewindCoordinatesInMapData:
|
|
102
|
+
mapProperty: me,
|
|
103
|
+
dotLegendTitle: pe,
|
|
104
|
+
dotBorderColor: Ee,
|
|
105
|
+
labelColor: Ie,
|
|
106
|
+
projectionRotate: Y,
|
|
107
|
+
rewindCoordinatesInMapData: J,
|
|
108
108
|
overlayMapData: p,
|
|
109
109
|
overlayMapBorderColor: g,
|
|
110
|
-
overlayMapBorderWidth: Ye
|
|
111
|
-
|
|
110
|
+
overlayMapBorderWidth: Ye,
|
|
111
|
+
locale: Je
|
|
112
|
+
} = r, K = Ft(() => J ? Rt(w, {
|
|
112
113
|
reverse: !0
|
|
113
|
-
}) : w, [w,
|
|
114
|
+
}) : w, [w, J]), Ke = Ft(() => !J || !p ? p : Rt(p, {
|
|
114
115
|
reverse: !0
|
|
115
|
-
}), [p,
|
|
116
|
+
}), [p, J]), [M, O] = S(void 0), [ue, he] = S(Oe === void 0 ? !(s < 680) : !Oe), fe = qe(null), [V, Z] = S(void 0), [ge, z] = S(void 0), [Be, E] = S(void 0), [ze, $] = S(void 0), f = qe(null), j = Bo(f, {
|
|
116
117
|
once: b.once,
|
|
117
118
|
amount: b.amount
|
|
118
|
-
}),
|
|
119
|
+
}), ie = qe(null), k = e.filter((o) => o.radius === void 0 || o.radius === null).length !== e.length ? So().domain([0, Se]).range([0.25, v]).nice() : void 0, Pe = ae ? Oo().domain(l).range(t) : Eo().domain(l).range(t);
|
|
119
120
|
Ue(() => {
|
|
120
|
-
const o = Wt(
|
|
121
|
-
if (
|
|
122
|
-
if (
|
|
123
|
-
const
|
|
124
|
-
return
|
|
125
|
-
},
|
|
126
|
-
transform:
|
|
121
|
+
const o = Wt(ie.current), i = Wt(f.current), h = (n) => {
|
|
122
|
+
if (H === "noZoom") return !1;
|
|
123
|
+
if (H === "button") return !n.type.includes("wheel");
|
|
124
|
+
const T = n.type === "wheel", $e = n.type.startsWith("touch"), Fe = n.type === "mousedown" || n.type === "mousemove";
|
|
125
|
+
return $e ? !0 : T ? H === "scroll" ? !0 : n.ctrlKey : Fe && !n.button && !n.ctrlKey;
|
|
126
|
+
}, _ = po().scaleExtent(He).translateExtent(Xe || [[-20, -20], [s + 20, x + 20]]).filter(h).on("zoom", ({
|
|
127
|
+
transform: n
|
|
127
128
|
}) => {
|
|
128
|
-
o.attr("transform",
|
|
129
|
+
o.attr("transform", n);
|
|
129
130
|
});
|
|
130
|
-
i.call(
|
|
131
|
-
}, [x,
|
|
132
|
-
const Q = uo(
|
|
133
|
-
if (!f.current || !
|
|
134
|
-
Wt(f.current).call(
|
|
131
|
+
i.call(_), fe.current = _;
|
|
132
|
+
}, [x, s, H]);
|
|
133
|
+
const Q = uo(K), F = bo(K), _e = (Q[2] - Q[0]) * 1.15, Le = (Q[3] - Q[1]) * 1.15, We = s * 190 / 960 * 360 / _e, Ve = x * 190 / 678 * 180 / Le, P = u * Math.min(We, Ve), ee = oe === "mercator" ? ho().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "equalEarth" ? fo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "naturalEarth" ? go().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "orthographic" ? yo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : vo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P), te = xo().projection(ee), ye = (o) => {
|
|
134
|
+
if (!f.current || !fe.current) return;
|
|
135
|
+
Wt(f.current).call(fe.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
|
|
135
136
|
};
|
|
136
137
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
137
138
|
/* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
|
|
138
|
-
/* @__PURE__ */ a.jsx(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
if (!o.properties?.[
|
|
142
|
-
const
|
|
143
|
-
return
|
|
144
|
-
stroke:
|
|
145
|
-
strokeWidth:
|
|
146
|
-
fill:
|
|
139
|
+
/* @__PURE__ */ a.jsx(le.svg, { width: `${s}px`, height: `${x}px`, viewBox: `0 0 ${s} ${x}`, ref: f, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: ie, children: [
|
|
140
|
+
de.filter((o) => o.position === "before").map((o) => o.layer),
|
|
141
|
+
K.features.map((o, i) => {
|
|
142
|
+
if (!o.properties?.[me]) return null;
|
|
143
|
+
const h = te(o);
|
|
144
|
+
return h ? /* @__PURE__ */ a.jsx(le.g, { opacity: M ? W : re ? re.indexOf(o.properties[me]) !== -1 ? 1 : W : 1, children: /* @__PURE__ */ a.jsx("path", { d: h, style: {
|
|
145
|
+
stroke: ce,
|
|
146
|
+
strokeWidth: se,
|
|
147
|
+
fill: Ce,
|
|
147
148
|
vectorEffect: "non-scaling-stroke"
|
|
148
149
|
} }) }, i) : null;
|
|
149
150
|
}),
|
|
150
|
-
/* @__PURE__ */ a.jsxs(
|
|
151
|
+
/* @__PURE__ */ a.jsxs(zo, { children: [
|
|
151
152
|
e.filter((o) => o.id).map((o) => {
|
|
152
|
-
const i =
|
|
153
|
+
const i = K.features.findIndex(
|
|
153
154
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
154
|
-
(
|
|
155
|
+
(n) => o.id === n.properties[me]
|
|
155
156
|
);
|
|
156
157
|
if (i === -1) return null;
|
|
157
|
-
const
|
|
158
|
-
if (!
|
|
159
|
-
const
|
|
158
|
+
const h = te(K.features[i]);
|
|
159
|
+
if (!h) return null;
|
|
160
|
+
const _ = vt(o.x) ? Ce : (
|
|
160
161
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
161
|
-
|
|
162
|
+
Pe(o.x)
|
|
162
163
|
);
|
|
163
|
-
return /* @__PURE__ */ a.jsx(
|
|
164
|
+
return /* @__PURE__ */ a.jsx(le.g, { className: "undp-map-shapes", variants: {
|
|
164
165
|
initial: {
|
|
165
166
|
opacity: 0
|
|
166
167
|
},
|
|
167
168
|
whileInView: {
|
|
168
|
-
opacity:
|
|
169
|
+
opacity: M ? M === _ ? 1 : W : re ? re.indexOf(o.id) !== -1 ? 1 : W : 1,
|
|
169
170
|
transition: {
|
|
170
171
|
duration: b.duration
|
|
171
172
|
}
|
|
@@ -175,21 +176,21 @@ function To(r) {
|
|
|
175
176
|
transition: {
|
|
176
177
|
duration: b.duration
|
|
177
178
|
}
|
|
178
|
-
}, onMouseEnter: (
|
|
179
|
-
|
|
180
|
-
}, onMouseMove: (
|
|
181
|
-
|
|
179
|
+
}, onMouseEnter: (n) => {
|
|
180
|
+
z(o), $(n.clientY), E(n.clientX), G?.(o);
|
|
181
|
+
}, onMouseMove: (n) => {
|
|
182
|
+
z(o), $(n.clientY), E(n.clientX);
|
|
182
183
|
}, onMouseLeave: () => {
|
|
183
|
-
|
|
184
|
+
z(void 0), E(void 0), $(void 0), G?.(void 0);
|
|
184
185
|
}, onClick: () => {
|
|
185
|
-
(
|
|
186
|
-
}, children: /* @__PURE__ */ a.jsx(
|
|
186
|
+
(L || U) && (At(V, o) && Me ? (Z(void 0), L?.(void 0)) : (Z(o), L?.(o)));
|
|
187
|
+
}, children: /* @__PURE__ */ a.jsx(le.path, { d: h, variants: {
|
|
187
188
|
initial: {
|
|
188
|
-
fill:
|
|
189
|
+
fill: _,
|
|
189
190
|
opacity: 0
|
|
190
191
|
},
|
|
191
192
|
whileInView: {
|
|
192
|
-
fill:
|
|
193
|
+
fill: _,
|
|
193
194
|
opacity: 1,
|
|
194
195
|
transition: {
|
|
195
196
|
duration: b.duration
|
|
@@ -201,29 +202,29 @@ function To(r) {
|
|
|
201
202
|
duration: b.duration
|
|
202
203
|
}
|
|
203
204
|
}, style: {
|
|
204
|
-
stroke:
|
|
205
|
-
strokeWidth:
|
|
205
|
+
stroke: ce,
|
|
206
|
+
strokeWidth: se,
|
|
206
207
|
vectorEffect: "non-scaling-stroke"
|
|
207
208
|
} }, `${o.id}`) }, o.id);
|
|
208
209
|
}),
|
|
209
|
-
|
|
210
|
-
const
|
|
211
|
-
return
|
|
212
|
-
stroke: g ||
|
|
213
|
-
strokeWidth: Ye ||
|
|
210
|
+
Ke?.features.map((o, i) => {
|
|
211
|
+
const h = te(o);
|
|
212
|
+
return h ? /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("path", { d: h, style: {
|
|
213
|
+
stroke: g || ce,
|
|
214
|
+
strokeWidth: Ye || se + 1,
|
|
214
215
|
fill: "none",
|
|
215
216
|
pointerEvents: "none",
|
|
216
217
|
vectorEffect: "non-scaling-stroke"
|
|
217
218
|
} }) }, i) : null;
|
|
218
219
|
}),
|
|
219
|
-
e.filter((o) => !
|
|
220
|
-
const i = ee([o.long, o.lat])[0] > 0.8 *
|
|
221
|
-
return /* @__PURE__ */ a.jsxs(
|
|
220
|
+
e.filter((o) => !vt(o.lat) && !vt(o.long)).map((o) => {
|
|
221
|
+
const i = ee([o.long, o.lat])[0] > 0.8 * s ? -1 : 1;
|
|
222
|
+
return /* @__PURE__ */ a.jsxs(le.g, { className: "undp-map-dots", variants: {
|
|
222
223
|
initial: {
|
|
223
224
|
opacity: 0
|
|
224
225
|
},
|
|
225
226
|
whileInView: {
|
|
226
|
-
opacity:
|
|
227
|
+
opacity: Ne ? Ne.indexOf(o.label || "") !== -1 ? 1 : W : 1,
|
|
227
228
|
transition: {
|
|
228
229
|
duration: b.duration
|
|
229
230
|
}
|
|
@@ -233,25 +234,25 @@ function To(r) {
|
|
|
233
234
|
transition: {
|
|
234
235
|
duration: b.duration
|
|
235
236
|
}
|
|
236
|
-
}, onMouseEnter: (
|
|
237
|
-
|
|
238
|
-
}, onMouseMove: (
|
|
239
|
-
|
|
237
|
+
}, onMouseEnter: (h) => {
|
|
238
|
+
z(o), $(h.clientY), E(h.clientX), G?.(o);
|
|
239
|
+
}, onMouseMove: (h) => {
|
|
240
|
+
z(o), $(h.clientY), E(h.clientX);
|
|
240
241
|
}, onMouseLeave: () => {
|
|
241
|
-
|
|
242
|
+
z(void 0), E(void 0), $(void 0), G?.(void 0);
|
|
242
243
|
}, onClick: () => {
|
|
243
|
-
(
|
|
244
|
+
(L || U) && (At(V, o) && Me ? (Z(void 0), L?.(void 0)) : (Z(o), L?.(o)));
|
|
244
245
|
}, transform: `translate(${ee([o.long, o.lat])[0]},${ee([o.long, o.lat])[1]})`, children: [
|
|
245
|
-
/* @__PURE__ */ a.jsx(
|
|
246
|
+
/* @__PURE__ */ a.jsx(le.circle, { cx: 0, cy: 0, variants: {
|
|
246
247
|
initial: {
|
|
247
248
|
r: 0,
|
|
248
|
-
fill:
|
|
249
|
-
stroke:
|
|
249
|
+
fill: X,
|
|
250
|
+
stroke: Ee || X
|
|
250
251
|
},
|
|
251
252
|
whileInView: {
|
|
252
253
|
r: k ? k(o.radius || 0) : v,
|
|
253
|
-
fill:
|
|
254
|
-
stroke:
|
|
254
|
+
fill: X,
|
|
255
|
+
stroke: Ee || X,
|
|
255
256
|
transition: {
|
|
256
257
|
duration: b.duration
|
|
257
258
|
}
|
|
@@ -265,7 +266,7 @@ function To(r) {
|
|
|
265
266
|
fillOpacity: 0.8,
|
|
266
267
|
vectorEffect: "non-scaling-stroke"
|
|
267
268
|
} }),
|
|
268
|
-
|
|
269
|
+
B && o.label ? /* @__PURE__ */ a.jsx(le.text, { variants: {
|
|
269
270
|
initial: {
|
|
270
271
|
opacity: 0,
|
|
271
272
|
x: i * (k ? k(o.radius || 0) : v)
|
|
@@ -282,34 +283,34 @@ function To(r) {
|
|
|
282
283
|
transition: {
|
|
283
284
|
duration: b.duration
|
|
284
285
|
}
|
|
285
|
-
}, y: 0, className: Vt("text-sm",
|
|
286
|
+
}, y: 0, className: Vt("text-sm", q?.graphObjectValues), style: {
|
|
286
287
|
textAnchor: i === -1 ? "end" : "start",
|
|
287
|
-
fill:
|
|
288
|
+
fill: Ie || "#000",
|
|
288
289
|
vectorEffect: "non-scaling-stroke",
|
|
289
290
|
...N?.graphObjectValues || {}
|
|
290
291
|
}, dx: i * 4, dy: 5, children: o.label }) : null
|
|
291
292
|
] }, o.label || `${o.lat}-${o.long}`);
|
|
292
293
|
})
|
|
293
294
|
] }),
|
|
294
|
-
|
|
295
|
+
de.filter((o) => o.position === "after").map((o) => o.layer)
|
|
295
296
|
] }) }),
|
|
296
|
-
|
|
297
|
+
De === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: Vt("absolute left-4 bottom-4 map-color-legend", q?.colorLegend), children: ue ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
297
298
|
/* @__PURE__ */ a.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: () => {
|
|
298
|
-
|
|
299
|
+
he(!1);
|
|
299
300
|
}, children: /* @__PURE__ */ a.jsx(ko, {}) }),
|
|
300
301
|
/* @__PURE__ */ a.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
|
|
301
302
|
width: ae ? void 0 : "340px"
|
|
302
303
|
}, children: [
|
|
303
|
-
|
|
304
|
+
pe && pe !== "" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
304
305
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
305
306
|
/* @__PURE__ */ a.jsx("div", { className: "w-3 h-3 rounded-full", style: {
|
|
306
|
-
backgroundColor:
|
|
307
|
+
backgroundColor: X
|
|
307
308
|
} }),
|
|
308
309
|
/* @__PURE__ */ a.jsx(Lt, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
|
|
309
310
|
display: "-webkit-box",
|
|
310
311
|
WebkitLineClamp: "1",
|
|
311
312
|
WebkitBoxOrient: "vertical"
|
|
312
|
-
}, children:
|
|
313
|
+
}, children: pe })
|
|
313
314
|
] }),
|
|
314
315
|
/* @__PURE__ */ a.jsx(Gt, { size: "xl" }),
|
|
315
316
|
/* @__PURE__ */ a.jsx(Jt, {}),
|
|
@@ -320,278 +321,276 @@ function To(r) {
|
|
|
320
321
|
WebkitLineClamp: "1",
|
|
321
322
|
WebkitBoxOrient: "vertical"
|
|
322
323
|
}, children: y }) : null,
|
|
323
|
-
ae ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children:
|
|
324
|
-
|
|
324
|
+
ae ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: l.map((o, i) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
|
|
325
|
+
O(t[i % t.length]);
|
|
325
326
|
}, onMouseLeave: () => {
|
|
326
|
-
|
|
327
|
+
O(void 0);
|
|
327
328
|
}, children: [
|
|
328
329
|
/* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
|
|
329
330
|
backgroundColor: t[i % t.length]
|
|
330
331
|
} }),
|
|
331
332
|
/* @__PURE__ */ a.jsx(Lt, { size: "sm", marginBottom: "none", leading: "none", children: o })
|
|
332
333
|
] }, i)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
|
|
333
|
-
|
|
334
|
-
|
|
334
|
+
l.map((o, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
|
|
335
|
+
O(t[i]);
|
|
335
336
|
}, onMouseLeave: () => {
|
|
336
|
-
|
|
337
|
+
O(void 0);
|
|
337
338
|
}, className: "cursor-pointer", children: [
|
|
338
|
-
/* @__PURE__ */ a.jsx("rect", { x: i * 320 / t.length + 1, y: 1, width: 320 / t.length - 2, height: 8, className:
|
|
339
|
+
/* @__PURE__ */ a.jsx("rect", { x: i * 320 / t.length + 1, y: 1, width: 320 / t.length - 2, height: 8, className: M === t[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
|
|
339
340
|
fill: t[i],
|
|
340
|
-
...
|
|
341
|
+
...M === t[i] ? {} : {
|
|
341
342
|
stroke: t[i]
|
|
342
343
|
}
|
|
343
344
|
} }),
|
|
344
345
|
/* @__PURE__ */ a.jsx("text", { x: (i + 1) * 320 / t.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
|
|
345
346
|
textAnchor: "middle"
|
|
346
|
-
}, children:
|
|
347
|
+
}, children: Io(o, void 0, void 0, void 0, void 0, Je) })
|
|
347
348
|
] }, i)),
|
|
348
349
|
/* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
|
|
349
|
-
|
|
350
|
+
O(t[l.length]);
|
|
350
351
|
}, onMouseLeave: () => {
|
|
351
|
-
|
|
352
|
-
}, x:
|
|
353
|
-
fill: t[
|
|
354
|
-
...
|
|
355
|
-
stroke: t[
|
|
352
|
+
O(void 0);
|
|
353
|
+
}, x: l.length * 320 / t.length + 1, y: 1, width: 320 / t.length - 2, height: 8, className: `cursor-pointer ${M === t[l.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
|
|
354
|
+
fill: t[l.length],
|
|
355
|
+
...M === t[l.length] ? {} : {
|
|
356
|
+
stroke: t[l.length]
|
|
356
357
|
}
|
|
357
358
|
} }) })
|
|
358
359
|
] }) })
|
|
359
360
|
] })
|
|
360
|
-
] }) : /* @__PURE__ */ a.jsx("button", { type: "button", className: "
|
|
361
|
-
|
|
362
|
-
}, children: /* @__PURE__ */ a.jsx(
|
|
363
|
-
|
|
364
|
-
/* @__PURE__ */ a.jsx("button", { onClick: () =>
|
|
365
|
-
/* @__PURE__ */ a.jsx("button", { onClick: () =>
|
|
361
|
+
] }) : /* @__PURE__ */ a.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: () => {
|
|
362
|
+
he(!0);
|
|
363
|
+
}, children: /* @__PURE__ */ a.jsx(Co, {}) }) }),
|
|
364
|
+
H === "button" && /* @__PURE__ */ a.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
|
|
365
|
+
/* @__PURE__ */ a.jsx("button", { onClick: () => ye("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
|
|
366
|
+
/* @__PURE__ */ a.jsx("button", { onClick: () => ye("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border 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: "–" })
|
|
366
367
|
] })
|
|
367
368
|
] }),
|
|
368
|
-
|
|
369
|
-
|
|
369
|
+
U && V !== void 0 ? /* @__PURE__ */ a.jsx(Mo, { body: U, data: V, setData: Z, className: q?.modal }) : null,
|
|
370
|
+
ge && C && Be && ze ? /* @__PURE__ */ a.jsx(jo, { data: ge, body: C, xPos: Be, yPos: ze, backgroundStyle: N?.tooltip, className: q?.tooltip }) : null
|
|
370
371
|
] });
|
|
371
372
|
}
|
|
372
|
-
function
|
|
373
|
-
const e = ao.c(
|
|
373
|
+
function Ia(r) {
|
|
374
|
+
const e = ao.c(143), {
|
|
374
375
|
data: t,
|
|
375
376
|
mapData: w,
|
|
376
377
|
graphTitle: y,
|
|
377
|
-
colors:
|
|
378
|
+
colors: l,
|
|
378
379
|
sources: v,
|
|
379
380
|
graphDescription: x,
|
|
380
|
-
height:
|
|
381
|
-
width:
|
|
381
|
+
height: s,
|
|
382
|
+
width: u,
|
|
382
383
|
footNote: D,
|
|
383
384
|
mapColorLegendTitle: C,
|
|
384
|
-
colorDomain:
|
|
385
|
-
choroplethScaleType:
|
|
386
|
-
radius:
|
|
387
|
-
scale:
|
|
388
|
-
centerPoint:
|
|
389
|
-
padding:
|
|
385
|
+
colorDomain: B,
|
|
386
|
+
choroplethScaleType: se,
|
|
387
|
+
radius: ce,
|
|
388
|
+
scale: Ce,
|
|
389
|
+
centerPoint: G,
|
|
390
|
+
padding: De,
|
|
390
391
|
mapBorderWidth: He,
|
|
391
392
|
mapNoDataColor: Xe,
|
|
392
|
-
backgroundColor:
|
|
393
|
-
showLabels:
|
|
394
|
-
mapBorderColor:
|
|
395
|
-
tooltip:
|
|
393
|
+
backgroundColor: Ne,
|
|
394
|
+
showLabels: L,
|
|
395
|
+
mapBorderColor: Me,
|
|
396
|
+
tooltip: U,
|
|
396
397
|
relativeHeight: N,
|
|
397
|
-
onSeriesMouseOver:
|
|
398
|
+
onSeriesMouseOver: q,
|
|
398
399
|
isWorldMap: oe,
|
|
399
|
-
showColorScale:
|
|
400
|
+
showColorScale: H,
|
|
400
401
|
zoomScaleExtend: b,
|
|
401
|
-
zoomTranslateExtend:
|
|
402
|
-
graphID:
|
|
403
|
-
highlightedDataPoints:
|
|
402
|
+
zoomTranslateExtend: W,
|
|
403
|
+
graphID: de,
|
|
404
|
+
highlightedDataPoints: Se,
|
|
404
405
|
onSeriesMouseClick: ae,
|
|
405
|
-
graphDownload:
|
|
406
|
-
dataDownload:
|
|
406
|
+
graphDownload: X,
|
|
407
|
+
dataDownload: Oe,
|
|
407
408
|
showAntarctica: re,
|
|
408
|
-
language:
|
|
409
|
-
minHeight:
|
|
410
|
-
theme:
|
|
411
|
-
ariaLabel:
|
|
412
|
-
resetSelectionOnDoubleClick:
|
|
413
|
-
detailsOnClick:
|
|
409
|
+
language: me,
|
|
410
|
+
minHeight: pe,
|
|
411
|
+
theme: Ee,
|
|
412
|
+
ariaLabel: Ie,
|
|
413
|
+
resetSelectionOnDoubleClick: Y,
|
|
414
|
+
detailsOnClick: J,
|
|
414
415
|
styles: p,
|
|
415
416
|
classNames: g,
|
|
416
417
|
mapProjection: Ye,
|
|
417
|
-
zoomInteraction:
|
|
418
|
-
animate:
|
|
419
|
-
dimmedOpacity:
|
|
420
|
-
customLayers:
|
|
421
|
-
maxRadiusValue:
|
|
422
|
-
timeline:
|
|
423
|
-
collapseColorScaleByDefault:
|
|
424
|
-
dotColor:
|
|
425
|
-
highlightedIds:
|
|
426
|
-
mapProperty:
|
|
427
|
-
dotLegendTitle:
|
|
428
|
-
dotBorderColor:
|
|
429
|
-
labelColor:
|
|
430
|
-
projectionRotate:
|
|
431
|
-
rewindCoordinatesInMapData:
|
|
418
|
+
zoomInteraction: Je,
|
|
419
|
+
animate: K,
|
|
420
|
+
dimmedOpacity: Ke,
|
|
421
|
+
customLayers: M,
|
|
422
|
+
maxRadiusValue: O,
|
|
423
|
+
timeline: ue,
|
|
424
|
+
collapseColorScaleByDefault: he,
|
|
425
|
+
dotColor: fe,
|
|
426
|
+
highlightedIds: V,
|
|
427
|
+
mapProperty: Z,
|
|
428
|
+
dotLegendTitle: ge,
|
|
429
|
+
dotBorderColor: z,
|
|
430
|
+
labelColor: Be,
|
|
431
|
+
projectionRotate: E,
|
|
432
|
+
rewindCoordinatesInMapData: ze,
|
|
433
|
+
locale: $,
|
|
432
434
|
mapOverlay: f
|
|
433
|
-
} = r, j = w === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : w,
|
|
435
|
+
} = r, j = w === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : w, ie = D === 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." : D, k = se === void 0 ? "threshold" : se, Pe = ce === void 0 ? 5 : ce, Q = Ce === void 0 ? 0.95 : Ce, F = He === void 0 ? 0.5 : He, _e = Xe === void 0 ? ke.light.graphNoData : Xe, Le = Ne === void 0 ? !1 : Ne, We = L === void 0 ? !1 : L, Ve = Me === void 0 ? ke.light.grays["gray-500"] : Me, P = oe === void 0 ? !0 : oe, ee = H === void 0 ? !0 : H;
|
|
434
436
|
let te;
|
|
435
437
|
e[0] !== b ? (te = b === void 0 ? [0.8, 6] : b, e[0] = b, e[1] = te) : te = e[1];
|
|
436
|
-
const
|
|
437
|
-
let o;
|
|
438
|
-
e[2] !== fe ? (o = fe === void 0 ? [] : fe, e[2] = fe, e[3] = o) : o = e[3];
|
|
439
|
-
const i = o, u = Y === void 0 ? !1 : Y, O = Be === void 0 ? !1 : Be, d = re === void 0 ? !1 : re, Ae = ge === void 0 ? "en" : ge, E = ye === void 0 ? 0 : ye, T = Ie === void 0 ? "light" : Ie, vt = J === void 0 ? !0 : J, xt = Ye === void 0 ? "naturalEarth" : Ye, bt = Z === void 0 ? "button" : Z, Ke = Je === void 0 ? !1 : Je, wt = z === void 0 ? 0.3 : z;
|
|
440
|
-
let Ze;
|
|
441
|
-
e[4] !== S ? (Ze = S === void 0 ? [] : S, e[4] = S, e[5] = Ze) : Ze = e[5];
|
|
442
|
-
const jt = Ze;
|
|
438
|
+
const ye = te, o = X === void 0 ? !1 : X, i = Oe === void 0 ? !1 : Oe, h = re === void 0 ? !1 : re, _ = me === void 0 ? "en" : me, n = pe === void 0 ? 0 : pe, T = Ee === void 0 ? "light" : Ee, $e = Y === void 0 ? !0 : Y, Fe = Ye === void 0 ? "naturalEarth" : Ye, xt = Je === void 0 ? "button" : Je, Ze = K === void 0 ? !1 : K, bt = Ke === void 0 ? 0.3 : Ke;
|
|
443
439
|
let Qe;
|
|
444
|
-
e[
|
|
440
|
+
e[2] !== M ? (Qe = M === void 0 ? [] : M, e[2] = M, e[3] = Qe) : Qe = e[3];
|
|
441
|
+
const wt = Qe;
|
|
442
|
+
let et;
|
|
443
|
+
e[4] !== ue ? (et = ue === void 0 ? {
|
|
445
444
|
enabled: !1,
|
|
446
445
|
autoplay: !1,
|
|
447
446
|
showOnlyActiveDate: !0
|
|
448
|
-
} :
|
|
449
|
-
const
|
|
450
|
-
let et;
|
|
451
|
-
e[8] !== P ? (et = P === void 0 ? [] : P, e[8] = P, e[9] = et) : et = e[9];
|
|
452
|
-
const Ct = et, Dt = Pe === void 0 ? "ISO3" : Pe, Nt = $ === void 0 ? Ne.primaryColors["blue-600"] : $;
|
|
447
|
+
} : ue, e[4] = ue, e[5] = et) : et = e[5];
|
|
448
|
+
const c = et, jt = fe === void 0 ? ke.primaryColors["blue-600"] : fe;
|
|
453
449
|
let tt;
|
|
454
|
-
e[
|
|
455
|
-
const
|
|
456
|
-
let Te;
|
|
457
|
-
if (e[12] !== t || e[13] !== s.dateFormat) {
|
|
458
|
-
let c;
|
|
459
|
-
e[15] !== s.dateFormat ? (c = (B) => lo(`${B.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[15] = s.dateFormat, e[16] = c) : c = e[16], Te = [...new Set(t.filter(Qo).map(c))], Te.sort(Zo), e[12] = t, e[13] = s.dateFormat, e[14] = Te;
|
|
460
|
-
} else
|
|
461
|
-
Te = e[14];
|
|
462
|
-
const m = Te, [G, Ot] = M(s.autoplay ? 0 : m.length - 1), [we, eo] = M(void 0), [Et, to] = M(void 0), Bt = qe(null), $t = qe(null);
|
|
450
|
+
e[6] !== V ? (tt = V === void 0 ? [] : V, e[6] = V, e[7] = tt) : tt = e[7];
|
|
451
|
+
const kt = tt, Ct = Z === void 0 ? "ISO3" : Z, Dt = Be === void 0 ? ke.primaryColors["blue-600"] : Be;
|
|
463
452
|
let ot;
|
|
464
|
-
e[
|
|
465
|
-
const
|
|
466
|
-
let
|
|
467
|
-
e[
|
|
468
|
-
|
|
469
|
-
|
|
453
|
+
e[8] !== E ? (ot = E === void 0 ? [0, 0] : E, e[8] = E, e[9] = ot) : ot = e[9];
|
|
454
|
+
const Nt = ot, Mt = ze === void 0 ? !0 : ze, St = $ === void 0 ? "en" : $, [ne, Kt] = S(0), [Te, Zt] = S(0), [A, Qt] = S(c.autoplay);
|
|
455
|
+
let Ae;
|
|
456
|
+
if (e[10] !== t || e[11] !== c.dateFormat) {
|
|
457
|
+
let d;
|
|
458
|
+
e[13] !== c.dateFormat ? (d = (I) => lo(`${I.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[13] = c.dateFormat, e[14] = d) : d = e[14], Ae = [...new Set(t.filter(ea).map(d))], Ae.sort(Qo), e[10] = t, e[11] = c.dateFormat, e[12] = Ae;
|
|
459
|
+
} else
|
|
460
|
+
Ae = e[12];
|
|
461
|
+
const m = Ae, [R, Ot] = S(c.autoplay ? 0 : m.length - 1), [ve, eo] = S(void 0), [Et, to] = S(void 0), It = qe(null), $t = qe(null);
|
|
462
|
+
let at;
|
|
463
|
+
e[15] !== k || e[16] !== B || e[17] !== l?.length || e[18] !== t ? (at = B || (k === "categorical" ? Vo(t, "x") : $o(t.map(Zo), l?.length || 4)), e[15] = k, e[16] = B, e[17] = l?.length, e[18] = t, e[19] = at) : at = e[19];
|
|
464
|
+
const Re = at;
|
|
465
|
+
let rt, it;
|
|
466
|
+
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rt = () => {
|
|
467
|
+
const d = new ResizeObserver((I) => {
|
|
468
|
+
Kt(I[0].target.clientWidth || 620), Zt(I[0].target.clientHeight || 480);
|
|
470
469
|
});
|
|
471
|
-
return
|
|
472
|
-
},
|
|
473
|
-
let
|
|
474
|
-
e[
|
|
475
|
-
eo(
|
|
476
|
-
}, e[
|
|
477
|
-
const
|
|
478
|
-
let lt;
|
|
479
|
-
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lt = (c) => {
|
|
480
|
-
to(c);
|
|
481
|
-
}, e[25] = lt) : lt = e[25];
|
|
482
|
-
const Ge = Ft(lt);
|
|
470
|
+
return It.current && d.observe(It.current), () => d.disconnect();
|
|
471
|
+
}, it = [], e[20] = rt, e[21] = it) : (rt = e[20], it = e[21]), Ue(rt, it);
|
|
472
|
+
let nt;
|
|
473
|
+
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (nt = (d) => {
|
|
474
|
+
eo(d);
|
|
475
|
+
}, e[22] = nt) : nt = e[22];
|
|
476
|
+
const lt = Tt(nt);
|
|
483
477
|
let st;
|
|
484
|
-
e[
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
}, e[26] = j, e[27] = nt, e[28] = st) : st = e[28];
|
|
478
|
+
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (st = (d) => {
|
|
479
|
+
to(d);
|
|
480
|
+
}, e[23] = st) : st = e[23];
|
|
481
|
+
const Ge = Tt(st);
|
|
489
482
|
let ct;
|
|
490
|
-
e[
|
|
483
|
+
e[24] !== j || e[25] !== lt ? (ct = () => {
|
|
484
|
+
typeof j == "string" ? Ut(j).then((I) => {
|
|
485
|
+
lt(I);
|
|
486
|
+
}) : lt(j);
|
|
487
|
+
}, e[24] = j, e[25] = lt, e[26] = ct) : ct = e[26];
|
|
491
488
|
let dt;
|
|
492
|
-
e[
|
|
493
|
-
f?.mapData || Ge(void 0), typeof f?.mapData == "string" ? Ut(f?.mapData).then((B) => {
|
|
494
|
-
Ge(B);
|
|
495
|
-
}) : Ge(f?.mapData);
|
|
496
|
-
}, e[31] = f?.mapData, e[32] = Ge, e[33] = dt) : dt = e[33];
|
|
497
|
-
const It = f?.mapData;
|
|
489
|
+
e[27] !== j ? (dt = [j], e[27] = j, e[28] = dt) : dt = e[28], Ue(ct, dt);
|
|
498
490
|
let mt;
|
|
499
|
-
e[
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
491
|
+
e[29] !== f?.mapData || e[30] !== Ge ? (mt = () => {
|
|
492
|
+
f?.mapData || Ge(void 0), typeof f?.mapData == "string" ? Ut(f?.mapData).then((I) => {
|
|
493
|
+
Ge(I);
|
|
494
|
+
}) : Ge(f?.mapData);
|
|
495
|
+
}, e[29] = f?.mapData, e[30] = Ge, e[31] = mt) : mt = e[31];
|
|
496
|
+
const Bt = f?.mapData;
|
|
497
|
+
let pt;
|
|
498
|
+
e[32] !== Bt ? (pt = [Bt], e[32] = Bt, e[33] = pt) : pt = e[33], Ue(mt, pt);
|
|
499
|
+
let ut, ht;
|
|
500
|
+
e[34] !== A || e[35] !== c.speed || e[36] !== m ? (ut = () => {
|
|
501
|
+
const d = setInterval(() => {
|
|
502
|
+
Ot((I) => I < m.length - 1 ? I + 1 : 0);
|
|
503
|
+
}, (c.speed || 2) * 1e3);
|
|
504
|
+
return A || clearInterval(d), () => clearInterval(d);
|
|
505
|
+
}, ht = [m, A, c.speed], e[34] = A, e[35] = c.speed, e[36] = m, e[37] = ut, e[38] = ht) : (ut = e[37], ht = e[38]), Ue(ut, ht);
|
|
506
|
+
const zt = c.dateFormat || "yyyy";
|
|
507
|
+
let ft;
|
|
508
|
+
e[39] !== R || e[40] !== zt || e[41] !== c.showOnlyActiveDate || e[42] !== m ? (ft = so(m, R, c.showOnlyActiveDate, zt), e[39] = R, e[40] = zt, e[41] = c.showOnlyActiveDate, e[42] = m, e[43] = ft) : ft = e[43];
|
|
509
|
+
const gt = ft, Pt = g?.graphContainer, _t = p?.graphContainer;
|
|
510
|
+
let xe;
|
|
511
|
+
e[44] !== g?.description || e[45] !== g?.title || e[46] !== t || e[47] !== i || e[48] !== x || e[49] !== o || e[50] !== y || e[51] !== p?.description || e[52] !== p?.title || e[53] !== u ? (xe = y || x || o || i ? /* @__PURE__ */ a.jsx(_o, { styles: {
|
|
513
512
|
title: p?.title,
|
|
514
513
|
description: p?.description
|
|
515
514
|
}, classNames: {
|
|
516
515
|
title: g?.title,
|
|
517
516
|
description: g?.description
|
|
518
|
-
}, graphTitle: y, graphDescription: x, width:
|
|
519
|
-
let
|
|
520
|
-
e[
|
|
517
|
+
}, graphTitle: y, graphDescription: x, width: u, graphDownload: o ? $t : void 0, dataDownload: i ? t.map(Ko).filter(Jo).length > 0 ? t.map(Yo).filter(Xo) : t.filter(Ho) : null }) : null, e[44] = g?.description, e[45] = g?.title, e[46] = t, e[47] = i, e[48] = x, e[49] = o, e[50] = y, e[51] = p?.description, e[52] = p?.title, e[53] = u, e[54] = xe) : xe = e[54];
|
|
518
|
+
let be;
|
|
519
|
+
e[55] !== R || e[56] !== gt || e[57] !== A || e[58] !== c.enabled || e[59] !== m ? (be = c.enabled && m.length > 0 && gt ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
521
520
|
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
|
|
522
|
-
Qt(!
|
|
523
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
524
|
-
/* @__PURE__ */ a.jsx(co, { min: m[0], max: m[m.length - 1], marks:
|
|
525
|
-
Ot(m.indexOf(
|
|
526
|
-
}, onChange: (
|
|
527
|
-
Ot(m.indexOf(
|
|
521
|
+
Qt(!A);
|
|
522
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ a.jsx(Do, {}) : /* @__PURE__ */ a.jsx(No, {}) }),
|
|
523
|
+
/* @__PURE__ */ a.jsx(co, { min: m[0], max: m[m.length - 1], marks: gt, step: null, defaultValue: m[m.length - 1], value: m[R], onChangeComplete: (d) => {
|
|
524
|
+
Ot(m.indexOf(d));
|
|
525
|
+
}, onChange: (d) => {
|
|
526
|
+
Ot(m.indexOf(d));
|
|
528
527
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
529
|
-
] }) : null, e[
|
|
530
|
-
let
|
|
531
|
-
e[63] !==
|
|
532
|
-
...
|
|
533
|
-
features:
|
|
534
|
-
}, overlayMapData: Et, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, colorDomain: Re, width:
|
|
528
|
+
] }) : null, e[55] = R, e[56] = gt, e[57] = A, e[58] = c.enabled, e[59] = m, e[60] = be) : be = e[60];
|
|
529
|
+
let we;
|
|
530
|
+
e[61] !== Ze || e[62] !== G || e[63] !== k || e[64] !== g || e[65] !== he || e[66] !== l || e[67] !== wt || e[68] !== t || e[69] !== J || e[70] !== bt || e[71] !== Re || e[72] !== z || e[73] !== jt || e[74] !== ge || e[75] !== s || e[76] !== Se || e[77] !== kt || e[78] !== R || e[79] !== P || e[80] !== Dt || e[81] !== St || e[82] !== Ve || e[83] !== F || e[84] !== C || e[85] !== _e || e[86] !== f?.mapBorderColor || e[87] !== f?.mapBorderWidth || e[88] !== Fe || e[89] !== Ct || e[90] !== ve || e[91] !== O || e[92] !== n || e[93] !== ae || e[94] !== q || e[95] !== Et || e[96] !== Nt || e[97] !== Pe || e[98] !== N || e[99] !== $e || e[100] !== Mt || e[101] !== Q || e[102] !== h || e[103] !== ee || e[104] !== We || e[105] !== p || e[106] !== Te || e[107] !== ne || e[108] !== T || e[109] !== c.dateFormat || e[110] !== c.enabled || e[111] !== U || e[112] !== m || e[113] !== u || e[114] !== xt || e[115] !== ye || e[116] !== W ? (we = /* @__PURE__ */ a.jsx(Lo, { ref: It, children: ne && Te && ve ? /* @__PURE__ */ a.jsx(Ro, { dotColor: jt, data: t.filter((d) => c.enabled ? `${d.date}` === no(new Date(m[R]), c.dateFormat || "yyyy") : d), mapData: h ? ve : {
|
|
531
|
+
...ve,
|
|
532
|
+
features: ve.features.filter(qo)
|
|
533
|
+
}, overlayMapData: Et, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, colorDomain: Re, width: ne, height: Te, scale: Q, centerPoint: G, colors: l || (k === "categorical" ? ke[T].sequentialColors[`neutralColorsx0${Re.length}`] : ke[T].sequentialColors[`neutralColorsx0${Re.length + 1}`]), mapColorLegendTitle: C, radius: Pe, categorical: k === "categorical", mapBorderWidth: F, mapNoDataColor: _e, mapBorderColor: Ve, tooltip: U, onSeriesMouseOver: q, showLabels: We, isWorldMap: P, showColorScale: ee, zoomScaleExtend: ye, zoomTranslateExtend: W, onSeriesMouseClick: ae, highlightedDataPoints: Se, resetSelectionOnDoubleClick: $e, styles: p, classNames: g, zoomInteraction: xt, detailsOnClick: J, mapProjection: Fe || (P ? "naturalEarth" : "mercator"), animate: Ze === !0 ? {
|
|
535
534
|
duration: 0.5,
|
|
536
535
|
once: !0,
|
|
537
536
|
amount: 0.5
|
|
538
|
-
} :
|
|
537
|
+
} : Ze || {
|
|
539
538
|
duration: 0,
|
|
540
539
|
once: !0,
|
|
541
540
|
amount: 0
|
|
542
|
-
}, dimmedOpacity:
|
|
543
|
-
height: `${Math.max(
|
|
544
|
-
}, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(mo, { "aria-label": "Loading graph" }) }) }), e[63] =
|
|
545
|
-
let
|
|
546
|
-
e[
|
|
541
|
+
}, dimmedOpacity: bt, customLayers: wt, maxRadiusValue: vt(O) ? Math.max(...t.map(Uo).filter(Go)) : O, collapseColorScaleByDefault: he, highlightedIds: kt, mapProperty: Ct, dotLegendTitle: ge, dotBorderColor: z, labelColor: Dt, projectionRotate: Nt, rewindCoordinatesInMapData: Mt, locale: St }) : /* @__PURE__ */ a.jsx("div", { style: {
|
|
542
|
+
height: `${Math.max(n, s || (N ? n ? (u || ne) * N > n ? (u || ne) * N : n : (u || ne) * N : Te))}px`
|
|
543
|
+
}, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(mo, { "aria-label": "Loading graph" }) }) }), e[61] = Ze, e[62] = G, e[63] = k, e[64] = g, e[65] = he, e[66] = l, e[67] = wt, e[68] = t, e[69] = J, e[70] = bt, e[71] = Re, e[72] = z, e[73] = jt, e[74] = ge, e[75] = s, e[76] = Se, e[77] = kt, e[78] = R, e[79] = P, e[80] = Dt, e[81] = St, e[82] = Ve, e[83] = F, e[84] = C, e[85] = _e, e[86] = f?.mapBorderColor, e[87] = f?.mapBorderWidth, e[88] = Fe, e[89] = Ct, e[90] = ve, e[91] = O, e[92] = n, e[93] = ae, e[94] = q, e[95] = Et, e[96] = Nt, e[97] = Pe, e[98] = N, e[99] = $e, e[100] = Mt, e[101] = Q, e[102] = h, e[103] = ee, e[104] = We, e[105] = p, e[106] = Te, e[107] = ne, e[108] = T, e[109] = c.dateFormat, e[110] = c.enabled, e[111] = U, e[112] = m, e[113] = u, e[114] = xt, e[115] = ye, e[116] = W, e[117] = we) : we = e[117];
|
|
544
|
+
let je;
|
|
545
|
+
e[118] !== g?.footnote || e[119] !== g?.source || e[120] !== ie || e[121] !== v || e[122] !== p?.footnote || e[123] !== p?.source || e[124] !== u ? (je = v || ie ? /* @__PURE__ */ a.jsx(Po, { styles: {
|
|
547
546
|
footnote: p?.footnote,
|
|
548
547
|
source: p?.source
|
|
549
548
|
}, classNames: {
|
|
550
549
|
footnote: g?.footnote,
|
|
551
550
|
source: g?.source
|
|
552
|
-
}, sources: v, footNote:
|
|
553
|
-
let
|
|
554
|
-
return e[127] !==
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
] }), e[127] =
|
|
560
|
-
}
|
|
561
|
-
function Ro(r) {
|
|
562
|
-
return r != null;
|
|
551
|
+
}, sources: v, footNote: ie, width: u }) : null, e[118] = g?.footnote, e[119] = g?.source, e[120] = ie, e[121] = v, e[122] = p?.footnote, e[123] = p?.source, e[124] = u, e[125] = je) : je = e[125];
|
|
552
|
+
let yt;
|
|
553
|
+
return e[126] !== Ie || e[127] !== Le || e[128] !== de || e[129] !== s || e[130] !== _ || e[131] !== n || e[132] !== De || e[133] !== N || e[134] !== Pt || e[135] !== _t || e[136] !== xe || e[137] !== be || e[138] !== we || e[139] !== je || e[140] !== T || e[141] !== u ? (yt = /* @__PURE__ */ a.jsxs(Wo, { className: Pt, style: _t, id: de, ref: $t, "aria-label": Ie, backgroundColor: Le, theme: T, language: _, minHeight: n, width: u, height: s, relativeHeight: N, padding: De, children: [
|
|
554
|
+
xe,
|
|
555
|
+
be,
|
|
556
|
+
we,
|
|
557
|
+
je
|
|
558
|
+
] }), e[126] = Ie, e[127] = Le, e[128] = de, e[129] = s, e[130] = _, e[131] = n, e[132] = De, e[133] = N, e[134] = Pt, e[135] = _t, e[136] = xe, e[137] = be, e[138] = we, e[139] = je, e[140] = T, e[141] = u, e[142] = yt) : yt = e[142], yt;
|
|
563
559
|
}
|
|
564
560
|
function Go(r) {
|
|
565
|
-
return r
|
|
561
|
+
return r != null;
|
|
566
562
|
}
|
|
567
563
|
function Uo(r) {
|
|
568
|
-
return r.
|
|
564
|
+
return r.radius;
|
|
569
565
|
}
|
|
570
566
|
function qo(r) {
|
|
571
|
-
return r !==
|
|
567
|
+
return r.properties?.NAME !== "Antarctica";
|
|
572
568
|
}
|
|
573
569
|
function Ho(r) {
|
|
574
570
|
return r !== void 0;
|
|
575
571
|
}
|
|
576
572
|
function Xo(r) {
|
|
577
|
-
return r
|
|
573
|
+
return r !== void 0;
|
|
578
574
|
}
|
|
579
575
|
function Yo(r) {
|
|
580
|
-
return r
|
|
576
|
+
return r.data;
|
|
581
577
|
}
|
|
582
578
|
function Jo(r) {
|
|
583
|
-
return r
|
|
579
|
+
return r !== void 0;
|
|
584
580
|
}
|
|
585
581
|
function Ko(r) {
|
|
582
|
+
return r.data;
|
|
583
|
+
}
|
|
584
|
+
function Zo(r) {
|
|
586
585
|
return r.x;
|
|
587
586
|
}
|
|
588
|
-
function
|
|
587
|
+
function Qo(r, e) {
|
|
589
588
|
return r - e;
|
|
590
589
|
}
|
|
591
|
-
function
|
|
590
|
+
function ea(r) {
|
|
592
591
|
return r.date;
|
|
593
592
|
}
|
|
594
593
|
export {
|
|
595
|
-
|
|
594
|
+
Ia as HybridMap
|
|
596
595
|
};
|
|
597
596
|
//# sourceMappingURL=HybridMap.js.map
|