@undp/data-viz 1.5.7 → 1.5.9
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.js +13 -13
- package/dist/{Axis-Ddg-seDi.js → Axis-4gUOL8B7.js} +2 -2
- package/dist/{Axis-Ddg-seDi.js.map → Axis-4gUOL8B7.js.map} +1 -1
- package/dist/{Axis-DE7dSn1_.cjs → Axis-CkNn1wit.cjs} +2 -2
- package/dist/{Axis-DE7dSn1_.cjs.map → Axis-CkNn1wit.cjs.map} +1 -1
- package/dist/{AxisTitle-CK9YeovX.cjs → AxisTitle-Wkz-xeQL.cjs} +2 -2
- package/dist/{AxisTitle-CK9YeovX.cjs.map → AxisTitle-Wkz-xeQL.cjs.map} +1 -1
- package/dist/{AxisTitle-BmHLMRJZ.js → AxisTitle-v6_xcXZ-.js} +2 -2
- package/dist/{AxisTitle-BmHLMRJZ.js.map → AxisTitle-v6_xcXZ-.js.map} +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +666 -664
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +2 -2
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +42 -42
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +2 -0
- package/dist/BiVariateChoroplethMap.js +257 -264
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +223 -221
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +84 -82
- 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 +296 -304
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +3 -3
- 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 +4 -4
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +27 -27
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +1 -1
- package/dist/CsvDownloadButton.js +2 -2
- package/dist/DataCards.cjs +3 -3
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.js +16 -16
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +3 -3
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +133 -131
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +20 -20
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +2 -0
- package/dist/DotDensityMap.js +282 -289
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-6kjXM6oW.js} +2 -2
- package/dist/DropdownSelect-6kjXM6oW.js.map +1 -0
- package/dist/{DropdownSelect-DBDM64B5.cjs → DropdownSelect-vt8yiB-g.cjs} +5 -5
- package/dist/DropdownSelect-vt8yiB-g.cjs.map +1 -0
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +141 -121
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +307 -307
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-DdTp-Mdn.js → EmptyState-36lXXyui.js} +4 -4
- package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-36lXXyui.js.map} +1 -1
- package/dist/{EmptyState-d8_8SxeW.cjs → EmptyState-B8IpKGcL.cjs} +2 -2
- package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-B8IpKGcL.cjs.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 +65 -80
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.cjs.map +1 -1
- package/dist/GeoHubMap.js +95 -125
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +73 -88
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +2 -2
- package/dist/{GraphEl-CqWzvOyr.js → GraphEl-2IiUDxjR.js} +15 -12
- package/dist/GraphEl-2IiUDxjR.js.map +1 -0
- package/dist/GraphEl-qrlfGPe3.cjs +2 -0
- package/dist/GraphEl-qrlfGPe3.cjs.map +1 -0
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +1 -1
- 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 +5 -5
- 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.js +19 -19
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +3 -3
- 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.js +204 -184
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +2 -2
- package/dist/{Modal-DVVwpKhP.js → Modal-Cg8daIlV.js} +198 -187
- package/dist/Modal-Cg8daIlV.js.map +1 -0
- package/dist/Modal-CuuJdWkD.cjs +46 -0
- package/dist/Modal-CuuJdWkD.cjs.map +1 -0
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboard.js +3 -3
- 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.js +172 -173
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +89 -78
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +186 -181
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +3 -3
- 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.js +256 -244
- package/dist/RadarChart.js.map +1 -1
- package/dist/{ReferenceLine-CfAW3vKJ.js → ReferenceLine-CPMaAX0r.js} +3 -3
- package/dist/{ReferenceLine-CfAW3vKJ.js.map → ReferenceLine-CPMaAX0r.js.map} +1 -1
- package/dist/{ReferenceLine-CFVBBN__.cjs → ReferenceLine-D04j-zeV.cjs} +2 -2
- package/dist/{ReferenceLine-CFVBBN__.cjs.map → ReferenceLine-D04j-zeV.cjs.map} +1 -1
- package/dist/{RegressionLine-mH7UKOPi.js → RegressionLine-CW7iViH2.js} +13 -12
- package/dist/RegressionLine-CW7iViH2.js.map +1 -0
- package/dist/RegressionLine-D-49RaHa.cjs +2 -0
- package/dist/RegressionLine-D-49RaHa.cjs.map +1 -0
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.js +2 -2
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +27 -27
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +145 -144
- 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.js +53 -48
- 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 +2 -2
- 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.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +14 -13
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- 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 +137 -133
- package/dist/SlopeChart.js.map +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +2 -2
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/{Spinner-C85UF28E.js → Spinner-Bpz70q_g.js} +2 -2
- package/dist/{Spinner-C85UF28E.js.map → Spinner-Bpz70q_g.js.map} +1 -1
- package/dist/{Spinner-DA6Z5E4n.cjs → Spinner-C6wLp85s.cjs} +2 -2
- package/dist/{Spinner-DA6Z5E4n.cjs.map → Spinner-C6wLp85s.cjs.map} +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +307 -295
- 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 +220 -228
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +2 -2
- package/dist/{Tooltip-CVCGWyzw.js → Tooltip-6LIdPQGC.js} +2 -2
- package/dist/{Tooltip-CVCGWyzw.js.map → Tooltip-6LIdPQGC.js.map} +1 -1
- package/dist/{Tooltip-De16GWhY.cjs → Tooltip-Cpv0QohJ.cjs} +2 -2
- package/dist/{Tooltip-De16GWhY.cjs.map → Tooltip-Cpv0QohJ.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +24 -24
- package/dist/Types.d.ts +1 -0
- package/dist/{Typography-k-kOjICQ.cjs → Typography-BDULiwlF.cjs} +2 -2
- package/dist/{Typography-k-kOjICQ.cjs.map → Typography-BDULiwlF.cjs.map} +1 -1
- package/dist/{Typography-Ctgfl1J5.js → Typography-LmZ9LEpe.js} +2 -2
- package/dist/{Typography-Ctgfl1J5.js.map → Typography-LmZ9LEpe.js.map} +1 -1
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.js +25 -26
- package/dist/UnitChart.js.map +1 -1
- package/dist/{XAxesLabels-Drf7M3YK.cjs → XAxesLabels-CLZnBgSr.cjs} +2 -2
- package/dist/{XAxesLabels-Drf7M3YK.cjs.map → XAxesLabels-CLZnBgSr.cjs.map} +1 -1
- package/dist/{XAxesLabels-loO78vUO.js → XAxesLabels-SOSmso5J.js} +3 -3
- package/dist/{XAxesLabels-loO78vUO.js.map → XAxesLabels-SOSmso5J.js.map} +1 -1
- package/dist/{XTicksAndGridLines-Bn9u5gOM.js → XTicksAndGridLines-DuydSnZ_.js} +2 -2
- package/dist/{XTicksAndGridLines-Bn9u5gOM.js.map → XTicksAndGridLines-DuydSnZ_.js.map} +1 -1
- package/dist/{XTicksAndGridLines-CCzXIV8d.cjs → XTicksAndGridLines-RKy7BVCO.cjs} +2 -2
- package/dist/{XTicksAndGridLines-CCzXIV8d.cjs.map → XTicksAndGridLines-RKy7BVCO.cjs.map} +1 -1
- package/dist/{YAxesLabels-DECkMgq8.js → YAxesLabels-DlDyLvhi.js} +3 -3
- package/dist/{YAxesLabels-DECkMgq8.js.map → YAxesLabels-DlDyLvhi.js.map} +1 -1
- package/dist/{YAxesLabels-yRFFdx1s.cjs → YAxesLabels-Dqd259-t.cjs} +2 -2
- package/dist/{YAxesLabels-yRFFdx1s.cjs.map → YAxesLabels-Dqd259-t.cjs.map} +1 -1
- package/dist/{YTicksAndGridLines-B6ah7CRf.js → YTicksAndGridLines-7t4MKtGw.js} +2 -2
- package/dist/{YTicksAndGridLines-B6ah7CRf.js.map → YTicksAndGridLines-7t4MKtGw.js.map} +1 -1
- package/dist/{YTicksAndGridLines-DBDuz6vb.cjs → YTicksAndGridLines-qGpRo_t1.cjs} +2 -2
- package/dist/{YTicksAndGridLines-DBDuz6vb.cjs.map → YTicksAndGridLines-qGpRo_t1.cjs.map} +1 -1
- package/dist/checkIfMultiple-Dko_cBvE.cjs +12 -0
- package/dist/checkIfMultiple-Dko_cBvE.cjs.map +1 -0
- package/dist/{checkIfMultiple-ChTJk2Tk.js → checkIfMultiple-u2SmbiCf.js} +11 -11
- package/dist/checkIfMultiple-u2SmbiCf.js.map +1 -0
- package/dist/{customArea-CK768gCn.cjs → customArea-1G1S78s_.cjs} +2 -2
- package/dist/{customArea-CK768gCn.cjs.map → customArea-1G1S78s_.cjs.map} +1 -1
- package/dist/{customArea-B-dWU0zZ.js → customArea-x4L4xwLl.js} +3 -3
- package/dist/{customArea-B-dWU0zZ.js.map → customArea-x4L4xwLl.js.map} +1 -1
- package/dist/getCentroidCoordinates-Dfk6IqEG.js.map +1 -1
- package/dist/getCentroidCoordinates-DxTBqzp2.cjs.map +1 -1
- package/dist/getSliderMarks-CUxPy36E.cjs +6 -0
- package/dist/getSliderMarks-CUxPy36E.cjs.map +1 -0
- package/dist/{getSliderMarks-9cNoRkDx.js → getSliderMarks-_pYOWEtO.js} +3 -3
- package/dist/getSliderMarks-_pYOWEtO.js.map +1 -0
- package/dist/{index-BYzIB5V6.cjs → index-BHe3wsWF.cjs} +2 -2
- package/dist/{index-BYzIB5V6.cjs.map → index-BHe3wsWF.cjs.map} +1 -1
- package/dist/{index-DKCxu1Gh.js → index-Bw_eHBVN.js} +3 -3
- package/dist/{index-DKCxu1Gh.js.map → index-Bw_eHBVN.js.map} +1 -1
- package/dist/{index-BW_-wD2k.cjs → index-C0bpbS4F.cjs} +2 -2
- package/dist/{index-BW_-wD2k.cjs.map → index-C0bpbS4F.cjs.map} +1 -1
- package/dist/{index-37q0ULNQ.js → index-CE9pmfxt.js} +17 -17
- package/dist/{index-37q0ULNQ.js.map → index-CE9pmfxt.js.map} +1 -1
- package/dist/{index-CVlCtJbC.cjs → index-CEJwW3lL.cjs} +2 -2
- package/dist/{index-CVlCtJbC.cjs.map → index-CEJwW3lL.cjs.map} +1 -1
- package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-DBWUSD9b.js} +539 -543
- package/dist/index-CHPV5EwG-DBWUSD9b.js.map +1 -0
- package/dist/index-CHPV5EwG-DjM48pIC.cjs +44 -0
- package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +1 -0
- package/dist/{index-BW8iNx7E.cjs → index-Cm8NIdOO.cjs} +2 -2
- package/dist/{index-BW8iNx7E.cjs.map → index-Cm8NIdOO.cjs.map} +1 -1
- package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-BuI_jX5Z.js} +3 -3
- package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-BuI_jX5Z.js.map} +1 -1
- package/dist/index-Cw8sCyo_-gxT8ADyn.cjs +2 -0
- package/dist/index-Cw8sCyo_-gxT8ADyn.cjs.map +1 -0
- package/dist/{index-CNvov0eg.js → index-Cwgh7i7X.js} +3 -3
- package/dist/{index-CNvov0eg.js.map → index-Cwgh7i7X.js.map} +1 -1
- package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-BKklH89r.js} +2 -2
- package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-BKklH89r.js.map} +1 -1
- package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-RIk2GRHD.cjs} +2 -2
- package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-RIk2GRHD.cjs.map} +1 -1
- package/dist/{index-BmCqpO1B.js → index-zZjQEHlm.js} +2 -2
- package/dist/{index-BmCqpO1B.js.map → index-zZjQEHlm.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/{proxy-CkpFesk1.js → proxy-BYIC9BuT.js} +2 -2
- package/dist/{proxy-CkpFesk1.js.map → proxy-BYIC9BuT.js.map} +1 -1
- package/dist/{proxy-BHRoeZgd.cjs → proxy-CKadx4lC.cjs} +2 -2
- package/dist/{proxy-BHRoeZgd.cjs.map → proxy-CKadx4lC.cjs.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{use-in-view-sQJZ_xDO.cjs → use-in-view-CEwlc_dd.cjs} +2 -2
- package/dist/{use-in-view-sQJZ_xDO.cjs.map → use-in-view-CEwlc_dd.cjs.map} +1 -1
- package/dist/{use-in-view-yS6jzJAp.js → use-in-view-DR-UTB96.js} +2 -2
- package/dist/{use-in-view-yS6jzJAp.js.map → use-in-view-DR-UTB96.js.map} +1 -1
- package/package.json +4 -4
- package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
- package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
- package/dist/GraphEl-C6yjl1VM.cjs +0 -2
- package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
- package/dist/GraphEl-CqWzvOyr.js.map +0 -1
- package/dist/Modal-DVVwpKhP.js.map +0 -1
- package/dist/Modal-tXZlLE5s.cjs +0 -46
- package/dist/Modal-tXZlLE5s.cjs.map +0 -1
- package/dist/RegressionLine-mH7UKOPi.js.map +0 -1
- package/dist/RegressionLine-xKdiJ8sw.cjs +0 -2
- package/dist/RegressionLine-xKdiJ8sw.cjs.map +0 -1
- package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
- package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
- package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
- package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
- package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
- package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
- package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
package/dist/ChoroplethMap.js
CHANGED
|
@@ -1,124 +1,127 @@
|
|
|
1
|
-
import { j as e, m as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { g as
|
|
4
|
-
import { y as
|
|
5
|
-
import { p as
|
|
6
|
-
import { i as
|
|
7
|
-
import { z as
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { T as
|
|
13
|
-
import { s as
|
|
14
|
-
import { c as
|
|
15
|
-
import { X as
|
|
16
|
-
import { o as
|
|
17
|
-
import { t as
|
|
18
|
-
import { s as
|
|
19
|
-
import { u as
|
|
20
|
-
import { m as
|
|
21
|
-
import { A as Re } from "./index-
|
|
22
|
-
import { GraphFooter as
|
|
23
|
-
import { GraphHeader as
|
|
24
|
-
import { Colors as
|
|
25
|
-
import { f as
|
|
26
|
-
import { g as
|
|
27
|
-
import { g as
|
|
28
|
-
import { u as
|
|
29
|
-
import { s as
|
|
30
|
-
import { c as
|
|
31
|
-
function
|
|
1
|
+
import { j as e, m as we } from "./index-CHPV5EwG-DBWUSD9b.js";
|
|
2
|
+
import { useState as v, useRef as oe, useEffect as pe } from "react";
|
|
3
|
+
import { g as $e, x as Ne } from "./getSliderMarks-_pYOWEtO.js";
|
|
4
|
+
import { y as Ce } from "./Spinner-Bpz70q_g.js";
|
|
5
|
+
import { p as De, f as Me } from "./parse-DlCRUFh_.js";
|
|
6
|
+
import { i as Se } from "./index-Bwrro8-q.js";
|
|
7
|
+
import { z as Oe, t as Ee, g as Pe, a as Ie, b as Le, c as ze, d as We } from "./zoom-QipiAl5W.js";
|
|
8
|
+
import { G as Te } from "./Modal-Cg8daIlV.js";
|
|
9
|
+
import { u as je } from "./Typography-LmZ9LEpe.js";
|
|
10
|
+
import { t as Be } from "./index-9tDEUqOZ.js";
|
|
11
|
+
import { n as Ae } from "./numberFormattingFunction-14YCbkN2.js";
|
|
12
|
+
import { T as Ve } from "./Tooltip-6LIdPQGC.js";
|
|
13
|
+
import { s as Fe } from "./string2HTML-oFCROsus.js";
|
|
14
|
+
import { c as He } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
15
|
+
import { X as qe, P as _e, f as Ue } from "./index-zZjQEHlm.js";
|
|
16
|
+
import { o as Ge } from "./ordinal-w9Lu4Stb.js";
|
|
17
|
+
import { t as Xe } from "./threshold-DFfqcDMa.js";
|
|
18
|
+
import { s as ke } from "./select-DKy99ogv.js";
|
|
19
|
+
import { u as Ye } from "./use-in-view-DR-UTB96.js";
|
|
20
|
+
import { m as me } from "./proxy-BYIC9BuT.js";
|
|
21
|
+
import { A as Re } from "./index-Cwgh7i7X.js";
|
|
22
|
+
import { GraphFooter as Je } from "./GraphFooter.js";
|
|
23
|
+
import { GraphHeader as Ke } from "./GraphHeader.js";
|
|
24
|
+
import { Colors as de } from "./Colors.js";
|
|
25
|
+
import { f as Ze } from "./fetchAndParseData-sapWbnYk.js";
|
|
26
|
+
import { g as Qe } from "./getUniqValue-DiCh_MOD.js";
|
|
27
|
+
import { g as et } from "./getJenks-BbngDoBQ.js";
|
|
28
|
+
import { u as tt } from "./uniqBy-BHy4I8PK.js";
|
|
29
|
+
import { s as rt } from "./sort-DfK1b0F5.js";
|
|
30
|
+
import { c as at } from "./init-BhZylTFx.js";
|
|
31
|
+
function ot(he) {
|
|
32
32
|
const {
|
|
33
|
-
data:
|
|
33
|
+
data: b,
|
|
34
34
|
colorDomain: g,
|
|
35
35
|
colors: c,
|
|
36
36
|
mapData: x,
|
|
37
|
-
colorLegendTitle:
|
|
38
|
-
categorical:
|
|
37
|
+
colorLegendTitle: F,
|
|
38
|
+
categorical: S,
|
|
39
39
|
height: h,
|
|
40
40
|
width: s,
|
|
41
|
-
scale:
|
|
42
|
-
centerPoint:
|
|
43
|
-
tooltip:
|
|
44
|
-
mapBorderWidth:
|
|
45
|
-
mapBorderColor:
|
|
46
|
-
mapNoDataColor:
|
|
47
|
-
onSeriesMouseOver:
|
|
41
|
+
scale: ie,
|
|
42
|
+
centerPoint: z,
|
|
43
|
+
tooltip: ne,
|
|
44
|
+
mapBorderWidth: O,
|
|
45
|
+
mapBorderColor: H,
|
|
46
|
+
mapNoDataColor: K,
|
|
47
|
+
onSeriesMouseOver: Z,
|
|
48
48
|
showColorScale: ge,
|
|
49
49
|
zoomScaleExtend: ue,
|
|
50
|
-
zoomTranslateExtend:
|
|
51
|
-
highlightedIds:
|
|
52
|
-
onSeriesMouseClick:
|
|
53
|
-
mapProperty:
|
|
50
|
+
zoomTranslateExtend: E,
|
|
51
|
+
highlightedIds: q,
|
|
52
|
+
onSeriesMouseClick: y,
|
|
53
|
+
mapProperty: _,
|
|
54
54
|
resetSelectionOnDoubleClick: fe,
|
|
55
55
|
detailsOnClick: C,
|
|
56
56
|
styles: ye,
|
|
57
57
|
classNames: xe,
|
|
58
|
-
mapProjection:
|
|
59
|
-
zoomInteraction:
|
|
60
|
-
animate:
|
|
61
|
-
dimmedOpacity:
|
|
62
|
-
customLayers:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
mapProjection: U,
|
|
59
|
+
zoomInteraction: W,
|
|
60
|
+
animate: k,
|
|
61
|
+
dimmedOpacity: G,
|
|
62
|
+
customLayers: se,
|
|
63
|
+
collapseColorScaleByDefault: Q
|
|
64
|
+
} = he, [j, P] = v(void 0), T = oe(null), [w, X] = v(
|
|
65
|
+
Q === void 0 ? !(s < 680) : !Q
|
|
66
|
+
), [B, ee] = v(void 0), [Y, $] = v(void 0), [D, te] = v(void 0), [le, R] = v(void 0), A = oe(null), re = Ye(A, {
|
|
67
|
+
once: k.once,
|
|
68
|
+
amount: k.amount
|
|
69
|
+
}), u = oe(null), ve = S ? Ge().domain(g).range(c) : Xe().domain(g).range(c);
|
|
67
70
|
pe(() => {
|
|
68
|
-
const r =
|
|
69
|
-
if (
|
|
70
|
-
if (
|
|
71
|
+
const r = ke(u.current), l = ke(A.current), d = (o) => {
|
|
72
|
+
if (W === "noZoom") return !1;
|
|
73
|
+
if (W === "button") return !o.type.includes("wheel");
|
|
71
74
|
const n = o.type === "wheel", t = o.type.startsWith("touch"), a = o.type === "mousedown" || o.type === "mousemove";
|
|
72
|
-
return t ? !0 : n ?
|
|
73
|
-
}, i =
|
|
74
|
-
|
|
75
|
+
return t ? !0 : n ? W === "scroll" ? !0 : o.ctrlKey : a && !o.button && !o.ctrlKey;
|
|
76
|
+
}, i = Oe().scaleExtent(ue).translateExtent(
|
|
77
|
+
E || [
|
|
75
78
|
[-20, -20],
|
|
76
79
|
[s + 20, h + 20]
|
|
77
80
|
]
|
|
78
|
-
).filter(
|
|
81
|
+
).filter(d).on("zoom", ({ transform: o }) => {
|
|
79
82
|
r.attr("transform", o);
|
|
80
83
|
});
|
|
81
|
-
l.call(i),
|
|
82
|
-
}, [h, s,
|
|
83
|
-
const
|
|
84
|
-
if (!
|
|
85
|
-
|
|
84
|
+
l.call(i), T.current = i;
|
|
85
|
+
}, [h, s, W]);
|
|
86
|
+
const f = Ee(x), I = Be(x), ae = f[2] - f[0], ce = f[3] - f[1], V = s * 190 / 960 * 360 / ae, be = h * 190 / 678 * 180 / ce, m = ie * Math.min(V, be), N = U === "mercator" ? Pe().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "equalEarth" ? Ie().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "naturalEarth" ? Le().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : U === "orthographic" ? ze().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m) : We().rotate([0, 0]).center(z || I.geometry.coordinates).translate([s / 2, h / 2]).scale(m), J = (r) => {
|
|
87
|
+
if (!A.current || !T.current) return;
|
|
88
|
+
ke(A.current).call(T.current.scaleBy, r === "in" ? 1.2 : 1 / 1.2);
|
|
86
89
|
};
|
|
87
90
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
88
91
|
/* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
89
92
|
/* @__PURE__ */ e.jsx(
|
|
90
|
-
|
|
93
|
+
me.svg,
|
|
91
94
|
{
|
|
92
95
|
width: `${s}px`,
|
|
93
96
|
height: `${h}px`,
|
|
94
97
|
viewBox: `0 0 ${s} ${h}`,
|
|
95
|
-
ref:
|
|
98
|
+
ref: A,
|
|
96
99
|
direction: "ltr",
|
|
97
|
-
children: /* @__PURE__ */ e.jsxs("g", { ref:
|
|
98
|
-
|
|
100
|
+
children: /* @__PURE__ */ e.jsxs("g", { ref: u, children: [
|
|
101
|
+
se.filter((r) => r.position === "before").map((r) => r.layer),
|
|
99
102
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
100
|
-
x.features.map((r, l) =>
|
|
103
|
+
x.features.map((r, l) => b.findIndex((i) => i.id === r.properties[_]) !== -1 ? null : /* @__PURE__ */ e.jsx(
|
|
101
104
|
"g",
|
|
102
105
|
{
|
|
103
|
-
opacity:
|
|
106
|
+
opacity: j ? G : q.length !== 0 ? q.indexOf(r.properties[_]) !== -1 ? 1 : G : 1,
|
|
104
107
|
children: r.geometry.type === "MultiPolygon" ? (
|
|
105
108
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
106
109
|
r.geometry.coordinates.map((i, o) => {
|
|
107
110
|
let n = "";
|
|
108
111
|
return i.forEach((t) => {
|
|
109
112
|
let a = " M";
|
|
110
|
-
t.forEach((p,
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
+
t.forEach((p, L) => {
|
|
114
|
+
const M = N([p[0], p[1]]);
|
|
115
|
+
L !== t.length - 1 ? a = `${a}${M[0]} ${M[1]}L` : a = `${a}${M[0]} ${M[1]}`;
|
|
113
116
|
}), n += a;
|
|
114
117
|
}), /* @__PURE__ */ e.jsx(
|
|
115
118
|
"path",
|
|
116
119
|
{
|
|
117
120
|
d: n,
|
|
118
121
|
style: {
|
|
119
|
-
stroke:
|
|
120
|
-
strokeWidth:
|
|
121
|
-
fill:
|
|
122
|
+
stroke: H,
|
|
123
|
+
strokeWidth: O,
|
|
124
|
+
fill: K
|
|
122
125
|
}
|
|
123
126
|
},
|
|
124
127
|
o
|
|
@@ -136,9 +139,9 @@ function at(he) {
|
|
|
136
139
|
{
|
|
137
140
|
d: n,
|
|
138
141
|
style: {
|
|
139
|
-
stroke:
|
|
140
|
-
strokeWidth:
|
|
141
|
-
fill:
|
|
142
|
+
stroke: H,
|
|
143
|
+
strokeWidth: O,
|
|
144
|
+
fill: K
|
|
142
145
|
}
|
|
143
146
|
},
|
|
144
147
|
o
|
|
@@ -148,38 +151,38 @@ function at(he) {
|
|
|
148
151
|
},
|
|
149
152
|
l
|
|
150
153
|
)),
|
|
151
|
-
/* @__PURE__ */ e.jsx(Re, { children:
|
|
154
|
+
/* @__PURE__ */ e.jsx(Re, { children: b.map((r) => {
|
|
152
155
|
const l = x.features.findIndex(
|
|
153
156
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
154
|
-
(i) => r.id === i.properties[
|
|
155
|
-
),
|
|
157
|
+
(i) => r.id === i.properties[_]
|
|
158
|
+
), d = He(r.x) ? K : (
|
|
156
159
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
157
|
-
|
|
160
|
+
ve(r.x)
|
|
158
161
|
);
|
|
159
162
|
return /* @__PURE__ */ e.jsx(
|
|
160
|
-
|
|
163
|
+
me.g,
|
|
161
164
|
{
|
|
162
165
|
variants: {
|
|
163
166
|
initial: { opacity: 0 },
|
|
164
167
|
whileInView: {
|
|
165
|
-
opacity:
|
|
166
|
-
transition: { duration:
|
|
168
|
+
opacity: j ? j === d ? 1 : G : q.length !== 0 ? q.indexOf(r.id) !== -1 ? 1 : G : 1,
|
|
169
|
+
transition: { duration: k.duration }
|
|
167
170
|
}
|
|
168
171
|
},
|
|
169
172
|
initial: "initial",
|
|
170
|
-
animate:
|
|
171
|
-
exit: { opacity: 0, transition: { duration:
|
|
173
|
+
animate: re ? "whileInView" : "initial",
|
|
174
|
+
exit: { opacity: 0, transition: { duration: k.duration } },
|
|
172
175
|
onMouseEnter: (i) => {
|
|
173
|
-
|
|
176
|
+
$(r), R(i.clientY), te(i.clientX), Z?.(r);
|
|
174
177
|
},
|
|
175
178
|
onMouseMove: (i) => {
|
|
176
|
-
|
|
179
|
+
$(r), R(i.clientY), te(i.clientX);
|
|
177
180
|
},
|
|
178
181
|
onMouseLeave: () => {
|
|
179
|
-
|
|
182
|
+
$(void 0), te(void 0), R(void 0), Z?.(void 0);
|
|
180
183
|
},
|
|
181
184
|
onClick: () => {
|
|
182
|
-
(
|
|
185
|
+
(y || C) && (Se(B, r) && fe ? (ee(void 0), y?.(void 0)) : (ee(r), y?.(r)));
|
|
183
186
|
},
|
|
184
187
|
children: l === -1 ? null : x.features[l].geometry.type === "MultiPolygon" ? x.features[l].geometry.coordinates.map(
|
|
185
188
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -187,28 +190,28 @@ function at(he) {
|
|
|
187
190
|
let n = "";
|
|
188
191
|
return i.forEach((t) => {
|
|
189
192
|
let a = " M";
|
|
190
|
-
t.forEach((p,
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
+
t.forEach((p, L) => {
|
|
194
|
+
const M = N([p[0], p[1]]);
|
|
195
|
+
L !== t.length - 1 ? a = `${a}${M[0]} ${M[1]}L` : a = `${a}${M[0]} ${M[1]}`;
|
|
193
196
|
}), n += a;
|
|
194
197
|
}), /* @__PURE__ */ e.jsx(
|
|
195
|
-
|
|
198
|
+
me.path,
|
|
196
199
|
{
|
|
197
200
|
d: n,
|
|
198
201
|
variants: {
|
|
199
|
-
initial: { fill:
|
|
202
|
+
initial: { fill: d, opacity: 0 },
|
|
200
203
|
whileInView: {
|
|
201
|
-
fill:
|
|
204
|
+
fill: d,
|
|
202
205
|
opacity: 1,
|
|
203
|
-
transition: { duration:
|
|
206
|
+
transition: { duration: k.duration }
|
|
204
207
|
}
|
|
205
208
|
},
|
|
206
209
|
initial: "initial",
|
|
207
|
-
animate:
|
|
208
|
-
exit: { opacity: 0, transition: { duration:
|
|
210
|
+
animate: re ? "whileInView" : "initial",
|
|
211
|
+
exit: { opacity: 0, transition: { duration: k.duration } },
|
|
209
212
|
style: {
|
|
210
|
-
stroke:
|
|
211
|
-
strokeWidth:
|
|
213
|
+
stroke: H,
|
|
214
|
+
strokeWidth: O
|
|
212
215
|
}
|
|
213
216
|
},
|
|
214
217
|
`${r.id}-${o}`
|
|
@@ -222,23 +225,23 @@ function at(he) {
|
|
|
222
225
|
const p = N([t[0], t[1]]);
|
|
223
226
|
a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
|
|
224
227
|
}), /* @__PURE__ */ e.jsx(
|
|
225
|
-
|
|
228
|
+
me.path,
|
|
226
229
|
{
|
|
227
230
|
d: n,
|
|
228
231
|
variants: {
|
|
229
|
-
initial: { fill:
|
|
232
|
+
initial: { fill: d, opacity: 0 },
|
|
230
233
|
whileInView: {
|
|
231
|
-
fill:
|
|
234
|
+
fill: d,
|
|
232
235
|
opacity: 1,
|
|
233
|
-
transition: { duration:
|
|
236
|
+
transition: { duration: k.duration }
|
|
234
237
|
}
|
|
235
238
|
},
|
|
236
239
|
initial: "initial",
|
|
237
|
-
animate:
|
|
238
|
-
exit: { opacity: 0, transition: { duration:
|
|
240
|
+
animate: re ? "whileInView" : "initial",
|
|
241
|
+
exit: { opacity: 0, transition: { duration: k.duration } },
|
|
239
242
|
style: {
|
|
240
|
-
stroke:
|
|
241
|
-
strokeWidth:
|
|
243
|
+
stroke: H,
|
|
244
|
+
strokeWidth: O
|
|
242
245
|
}
|
|
243
246
|
},
|
|
244
247
|
`${r.id}-${o}`
|
|
@@ -249,18 +252,18 @@ function at(he) {
|
|
|
249
252
|
r.id
|
|
250
253
|
);
|
|
251
254
|
}) }),
|
|
252
|
-
|
|
255
|
+
Y ? x.features.filter(
|
|
253
256
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
254
|
-
(r) => r.properties[
|
|
257
|
+
(r) => r.properties[_] === Y.id
|
|
255
258
|
).map((r, l) => /* @__PURE__ */ e.jsx("g", { children: r.geometry.type === "MultiPolygon" ? (
|
|
256
259
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
257
|
-
r.geometry.coordinates.map((
|
|
260
|
+
r.geometry.coordinates.map((d, i) => {
|
|
258
261
|
let o = "";
|
|
259
|
-
return
|
|
262
|
+
return d.forEach((n) => {
|
|
260
263
|
let t = " M";
|
|
261
264
|
n.forEach((a, p) => {
|
|
262
|
-
const
|
|
263
|
-
p !== n.length - 1 ? t = `${t}${
|
|
265
|
+
const L = N([a[0], a[1]]);
|
|
266
|
+
p !== n.length - 1 ? t = `${t}${L[0]} ${L[1]}L` : t = `${t}${L[0]} ${L[1]}`;
|
|
264
267
|
}), o += t;
|
|
265
268
|
}), /* @__PURE__ */ e.jsx(
|
|
266
269
|
"path",
|
|
@@ -278,11 +281,11 @@ function at(he) {
|
|
|
278
281
|
})
|
|
279
282
|
) : (
|
|
280
283
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
281
|
-
r.geometry.coordinates.map((
|
|
284
|
+
r.geometry.coordinates.map((d, i) => {
|
|
282
285
|
let o = "M";
|
|
283
|
-
return
|
|
286
|
+
return d.forEach((n, t) => {
|
|
284
287
|
const a = N([n[0], n[1]]);
|
|
285
|
-
t !==
|
|
288
|
+
t !== d.length - 1 ? o = `${o}${a[0]} ${a[1]}L` : o = `${o}${a[0]} ${a[1]}`;
|
|
286
289
|
}), /* @__PURE__ */ e.jsx(
|
|
287
290
|
"path",
|
|
288
291
|
{
|
|
@@ -298,44 +301,31 @@ function at(he) {
|
|
|
298
301
|
);
|
|
299
302
|
})
|
|
300
303
|
) }, l)) : null,
|
|
301
|
-
|
|
304
|
+
se.filter((r) => r.position === "after").map((r) => r.layer)
|
|
302
305
|
] })
|
|
303
306
|
}
|
|
304
307
|
),
|
|
305
|
-
ge === !1 ? null : /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 bottom-4", children:
|
|
308
|
+
ge === !1 ? null : /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 bottom-4 map-color-legend", children: w ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
306
309
|
/* @__PURE__ */ e.jsx(
|
|
307
310
|
"div",
|
|
308
311
|
{
|
|
309
|
-
|
|
310
|
-
backgroundColor: "rgba(240,240,240, 0.7)",
|
|
311
|
-
border: "1px solid var(--gray-400)",
|
|
312
|
-
borderRadius: "999px",
|
|
313
|
-
width: "24px",
|
|
314
|
-
height: "24px",
|
|
315
|
-
padding: "3px",
|
|
316
|
-
cursor: "pointer",
|
|
317
|
-
zIndex: 10,
|
|
318
|
-
position: "absolute",
|
|
319
|
-
right: "-0.75rem",
|
|
320
|
-
top: "-0.75rem"
|
|
321
|
-
},
|
|
312
|
+
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]",
|
|
322
313
|
onClick: () => {
|
|
323
|
-
|
|
314
|
+
X(!1);
|
|
324
315
|
},
|
|
325
|
-
children: /* @__PURE__ */ e.jsx(
|
|
316
|
+
children: /* @__PURE__ */ e.jsx(qe, {})
|
|
326
317
|
}
|
|
327
318
|
),
|
|
328
319
|
/* @__PURE__ */ e.jsxs(
|
|
329
320
|
"div",
|
|
330
321
|
{
|
|
331
|
-
className: "p-2",
|
|
322
|
+
className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]",
|
|
332
323
|
style: {
|
|
333
|
-
|
|
334
|
-
width: E ? void 0 : "340px"
|
|
324
|
+
width: S ? void 0 : "340px"
|
|
335
325
|
},
|
|
336
326
|
children: [
|
|
337
|
-
|
|
338
|
-
|
|
327
|
+
F && F !== "" ? /* @__PURE__ */ e.jsx(
|
|
328
|
+
je,
|
|
339
329
|
{
|
|
340
330
|
size: "xs",
|
|
341
331
|
marginBottom: "xs",
|
|
@@ -345,18 +335,18 @@ function at(he) {
|
|
|
345
335
|
WebkitLineClamp: "1",
|
|
346
336
|
WebkitBoxOrient: "vertical"
|
|
347
337
|
},
|
|
348
|
-
children:
|
|
338
|
+
children: F
|
|
349
339
|
}
|
|
350
340
|
) : null,
|
|
351
|
-
|
|
341
|
+
S ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3", children: g.map((r, l) => /* @__PURE__ */ e.jsxs(
|
|
352
342
|
"div",
|
|
353
343
|
{
|
|
354
344
|
className: "flex gap-2 items-center",
|
|
355
345
|
onMouseOver: () => {
|
|
356
|
-
|
|
346
|
+
P(c[l % c.length]);
|
|
357
347
|
},
|
|
358
348
|
onMouseLeave: () => {
|
|
359
|
-
|
|
349
|
+
P(void 0);
|
|
360
350
|
},
|
|
361
351
|
children: [
|
|
362
352
|
/* @__PURE__ */ e.jsx(
|
|
@@ -366,7 +356,7 @@ function at(he) {
|
|
|
366
356
|
style: { backgroundColor: c[l % c.length] }
|
|
367
357
|
}
|
|
368
358
|
),
|
|
369
|
-
/* @__PURE__ */ e.jsx(
|
|
359
|
+
/* @__PURE__ */ e.jsx(je, { size: "sm", marginBottom: "none", leading: "none", children: r })
|
|
370
360
|
]
|
|
371
361
|
},
|
|
372
362
|
l
|
|
@@ -375,10 +365,10 @@ function at(he) {
|
|
|
375
365
|
"g",
|
|
376
366
|
{
|
|
377
367
|
onMouseOver: () => {
|
|
378
|
-
|
|
368
|
+
P(c[l]);
|
|
379
369
|
},
|
|
380
370
|
onMouseLeave: () => {
|
|
381
|
-
|
|
371
|
+
P(void 0);
|
|
382
372
|
},
|
|
383
373
|
className: "cursor-pointer",
|
|
384
374
|
children: [
|
|
@@ -389,10 +379,10 @@ function at(he) {
|
|
|
389
379
|
y: 1,
|
|
390
380
|
width: 320 / c.length - 2,
|
|
391
381
|
height: 8,
|
|
392
|
-
className:
|
|
382
|
+
className: j === c[l] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "",
|
|
393
383
|
style: {
|
|
394
384
|
fill: c[l],
|
|
395
|
-
...
|
|
385
|
+
...j === c[l] ? {} : { stroke: c[l] }
|
|
396
386
|
}
|
|
397
387
|
}
|
|
398
388
|
),
|
|
@@ -403,7 +393,7 @@ function at(he) {
|
|
|
403
393
|
y: 25,
|
|
404
394
|
className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
|
|
405
395
|
style: { textAnchor: "middle" },
|
|
406
|
-
children:
|
|
396
|
+
children: Ae(r, "NA")
|
|
407
397
|
}
|
|
408
398
|
)
|
|
409
399
|
]
|
|
@@ -414,19 +404,19 @@ function at(he) {
|
|
|
414
404
|
"rect",
|
|
415
405
|
{
|
|
416
406
|
onMouseOver: () => {
|
|
417
|
-
|
|
407
|
+
P(c[g.length]);
|
|
418
408
|
},
|
|
419
409
|
onMouseLeave: () => {
|
|
420
|
-
|
|
410
|
+
P(void 0);
|
|
421
411
|
},
|
|
422
412
|
x: g.length * 320 / c.length + 1,
|
|
423
413
|
y: 1,
|
|
424
414
|
width: 320 / c.length - 2,
|
|
425
415
|
height: 8,
|
|
426
|
-
className: `cursor-pointer ${
|
|
416
|
+
className: `cursor-pointer ${j === c[g.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`,
|
|
427
417
|
style: {
|
|
428
418
|
fill: c[g.length],
|
|
429
|
-
...
|
|
419
|
+
...j === c[g.length] ? {} : { stroke: c[g.length] }
|
|
430
420
|
}
|
|
431
421
|
}
|
|
432
422
|
) })
|
|
@@ -438,217 +428,218 @@ function at(he) {
|
|
|
438
428
|
"button",
|
|
439
429
|
{
|
|
440
430
|
type: "button",
|
|
441
|
-
className: "mb-0 border-0 bg-transparent p-0 self-start",
|
|
431
|
+
className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button",
|
|
442
432
|
onClick: () => {
|
|
443
|
-
|
|
433
|
+
X(!0);
|
|
444
434
|
},
|
|
445
|
-
children: /* @__PURE__ */ e.jsx("div", { className: "items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-
|
|
435
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
|
|
446
436
|
}
|
|
447
437
|
) }),
|
|
448
|
-
|
|
438
|
+
W === "button" && /* @__PURE__ */ e.jsxs("div", { className: "absolute left-4 top-4 flex flex-col", children: [
|
|
449
439
|
/* @__PURE__ */ e.jsx(
|
|
450
440
|
"button",
|
|
451
441
|
{
|
|
452
|
-
onClick: () =>
|
|
453
|
-
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-
|
|
442
|
+
onClick: () => J("in"),
|
|
443
|
+
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",
|
|
454
444
|
children: "+"
|
|
455
445
|
}
|
|
456
446
|
),
|
|
457
447
|
/* @__PURE__ */ e.jsx(
|
|
458
448
|
"button",
|
|
459
449
|
{
|
|
460
|
-
onClick: () =>
|
|
461
|
-
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-
|
|
450
|
+
onClick: () => J("out"),
|
|
451
|
+
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",
|
|
462
452
|
children: "–"
|
|
463
453
|
}
|
|
464
454
|
)
|
|
465
455
|
] })
|
|
466
456
|
] }),
|
|
467
|
-
C &&
|
|
468
|
-
|
|
457
|
+
C && B !== void 0 ? /* @__PURE__ */ e.jsx(
|
|
458
|
+
Te,
|
|
469
459
|
{
|
|
470
|
-
open:
|
|
460
|
+
open: B !== void 0,
|
|
471
461
|
onClose: () => {
|
|
472
|
-
|
|
462
|
+
ee(void 0);
|
|
473
463
|
},
|
|
474
464
|
children: /* @__PURE__ */ e.jsx(
|
|
475
465
|
"div",
|
|
476
466
|
{
|
|
477
467
|
className: "graph-modal-content m-0",
|
|
478
|
-
dangerouslySetInnerHTML: typeof C == "string" ? { __html:
|
|
479
|
-
children: typeof C == "function" ? C(
|
|
468
|
+
dangerouslySetInnerHTML: typeof C == "string" ? { __html: Fe(C, B) } : void 0,
|
|
469
|
+
children: typeof C == "function" ? C(B) : null
|
|
480
470
|
}
|
|
481
471
|
)
|
|
482
472
|
}
|
|
483
473
|
) : null,
|
|
484
|
-
|
|
485
|
-
|
|
474
|
+
Y && ne && D && le ? /* @__PURE__ */ e.jsx(
|
|
475
|
+
Ve,
|
|
486
476
|
{
|
|
487
|
-
data:
|
|
488
|
-
body:
|
|
489
|
-
xPos:
|
|
490
|
-
yPos:
|
|
477
|
+
data: Y,
|
|
478
|
+
body: ne,
|
|
479
|
+
xPos: D,
|
|
480
|
+
yPos: le,
|
|
491
481
|
backgroundStyle: ye?.tooltip,
|
|
492
482
|
className: xe?.tooltip
|
|
493
483
|
}
|
|
494
484
|
) : null
|
|
495
485
|
] });
|
|
496
486
|
}
|
|
497
|
-
function
|
|
487
|
+
function zt(he) {
|
|
498
488
|
const {
|
|
499
|
-
data:
|
|
489
|
+
data: b,
|
|
500
490
|
mapData: g = "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json",
|
|
501
491
|
graphTitle: c,
|
|
502
492
|
colors: x,
|
|
503
|
-
sources:
|
|
504
|
-
graphDescription:
|
|
493
|
+
sources: F,
|
|
494
|
+
graphDescription: S,
|
|
505
495
|
height: h,
|
|
506
496
|
width: s,
|
|
507
|
-
footNote:
|
|
508
|
-
colorDomain:
|
|
509
|
-
colorLegendTitle:
|
|
510
|
-
scaleType:
|
|
511
|
-
scale:
|
|
512
|
-
centerPoint:
|
|
513
|
-
padding:
|
|
497
|
+
footNote: ie = "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.",
|
|
498
|
+
colorDomain: z,
|
|
499
|
+
colorLegendTitle: ne,
|
|
500
|
+
scaleType: O = "threshold",
|
|
501
|
+
scale: H = 0.95,
|
|
502
|
+
centerPoint: K,
|
|
503
|
+
padding: Z,
|
|
514
504
|
mapBorderWidth: ge = 0.5,
|
|
515
|
-
mapNoDataColor: ue =
|
|
516
|
-
backgroundColor:
|
|
517
|
-
mapBorderColor:
|
|
518
|
-
relativeHeight:
|
|
519
|
-
tooltip:
|
|
505
|
+
mapNoDataColor: ue = de.light.graphNoData,
|
|
506
|
+
backgroundColor: E = !1,
|
|
507
|
+
mapBorderColor: q = de.light.grays["gray-500"],
|
|
508
|
+
relativeHeight: y,
|
|
509
|
+
tooltip: _,
|
|
520
510
|
onSeriesMouseOver: fe,
|
|
521
511
|
isWorldMap: C = !0,
|
|
522
512
|
showColorScale: ye = !0,
|
|
523
513
|
zoomScaleExtend: xe = [0.8, 6],
|
|
524
|
-
zoomTranslateExtend:
|
|
525
|
-
graphID:
|
|
526
|
-
highlightedIds:
|
|
527
|
-
onSeriesMouseClick:
|
|
528
|
-
mapProperty:
|
|
529
|
-
graphDownload:
|
|
530
|
-
dataDownload:
|
|
531
|
-
showAntarctica:
|
|
532
|
-
language:
|
|
533
|
-
minHeight:
|
|
534
|
-
theme:
|
|
535
|
-
ariaLabel:
|
|
536
|
-
resetSelectionOnDoubleClick:
|
|
537
|
-
detailsOnClick:
|
|
538
|
-
styles:
|
|
539
|
-
classNames:
|
|
540
|
-
mapProjection:
|
|
541
|
-
zoomInteraction:
|
|
542
|
-
animate:
|
|
543
|
-
dimmedOpacity:
|
|
544
|
-
customLayers:
|
|
545
|
-
timeline:
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
514
|
+
zoomTranslateExtend: U,
|
|
515
|
+
graphID: W,
|
|
516
|
+
highlightedIds: k = [],
|
|
517
|
+
onSeriesMouseClick: G,
|
|
518
|
+
mapProperty: se = "ISO3",
|
|
519
|
+
graphDownload: Q = !1,
|
|
520
|
+
dataDownload: j = !1,
|
|
521
|
+
showAntarctica: P = !1,
|
|
522
|
+
language: T = "en",
|
|
523
|
+
minHeight: w = 0,
|
|
524
|
+
theme: X = "light",
|
|
525
|
+
ariaLabel: B,
|
|
526
|
+
resetSelectionOnDoubleClick: ee = !0,
|
|
527
|
+
detailsOnClick: Y,
|
|
528
|
+
styles: $,
|
|
529
|
+
classNames: D,
|
|
530
|
+
mapProjection: te,
|
|
531
|
+
zoomInteraction: le = "button",
|
|
532
|
+
animate: R = !1,
|
|
533
|
+
dimmedOpacity: A = 0.3,
|
|
534
|
+
customLayers: re = [],
|
|
535
|
+
timeline: u = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
|
|
536
|
+
collapseColorScaleByDefault: ve
|
|
537
|
+
} = he, [f, I] = v(0), [ae, ce] = v(0), [V, be] = v(u.autoplay), m = rt(
|
|
538
|
+
tt(b, "date", !0).map(
|
|
539
|
+
(t) => De(`${t}`, u.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
|
|
549
540
|
),
|
|
550
|
-
(t, a) =>
|
|
551
|
-
), [N,
|
|
541
|
+
(t, a) => at(t, a)
|
|
542
|
+
), [N, J] = v(u.autoplay ? 0 : m.length - 1), [r, l] = v(void 0), d = oe(null), i = oe(null);
|
|
552
543
|
pe(() => {
|
|
553
544
|
const t = new ResizeObserver((a) => {
|
|
554
|
-
|
|
545
|
+
I(s || a[0].target.clientWidth || 760), ce(h || a[0].target.clientHeight || 480);
|
|
555
546
|
});
|
|
556
|
-
return
|
|
547
|
+
return d.current && (ce(d.current.clientHeight || 480), I(d.current.clientWidth || 760), s || t.observe(d.current)), () => t.disconnect();
|
|
557
548
|
}, [s, h]), pe(() => {
|
|
558
|
-
typeof g == "string" ?
|
|
549
|
+
typeof g == "string" ? Ze(g).then((a) => {
|
|
559
550
|
l(a);
|
|
560
551
|
}) : l(g);
|
|
561
552
|
}, [g]);
|
|
562
|
-
const o =
|
|
563
|
-
|
|
553
|
+
const o = z || (O === "categorical" ? Qe(b, "x") : et(
|
|
554
|
+
b.map((t) => t.x),
|
|
564
555
|
x?.length || 4
|
|
565
556
|
));
|
|
566
557
|
pe(() => {
|
|
567
558
|
const t = setInterval(
|
|
568
559
|
() => {
|
|
569
|
-
|
|
560
|
+
J((a) => a < m.length - 1 ? a + 1 : 0);
|
|
570
561
|
},
|
|
571
|
-
(
|
|
562
|
+
(u.speed || 2) * 1e3
|
|
572
563
|
);
|
|
573
|
-
return
|
|
574
|
-
}, [
|
|
575
|
-
const n =
|
|
576
|
-
|
|
564
|
+
return V || clearInterval(t), () => clearInterval(t);
|
|
565
|
+
}, [m, V, u.speed]);
|
|
566
|
+
const n = $e(
|
|
567
|
+
m,
|
|
577
568
|
N,
|
|
578
|
-
|
|
579
|
-
|
|
569
|
+
u.showOnlyActiveDate,
|
|
570
|
+
u.dateFormat || "yyyy"
|
|
580
571
|
);
|
|
581
572
|
return /* @__PURE__ */ e.jsx(
|
|
582
573
|
"div",
|
|
583
574
|
{
|
|
584
|
-
className: `${
|
|
585
|
-
dir:
|
|
575
|
+
className: `${X || "light"} flex ${s ? "w-fit grow-0" : "w-full grow"}`,
|
|
576
|
+
dir: T === "he" || T === "ar" ? "rtl" : void 0,
|
|
586
577
|
children: /* @__PURE__ */ e.jsx(
|
|
587
578
|
"div",
|
|
588
579
|
{
|
|
589
|
-
className:
|
|
590
|
-
`${
|
|
580
|
+
className: we(
|
|
581
|
+
`${E ? E === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${T || "en"}`,
|
|
591
582
|
s ? "w-fit" : "w-full",
|
|
592
|
-
|
|
583
|
+
D?.graphContainer
|
|
593
584
|
),
|
|
594
585
|
style: {
|
|
595
|
-
|
|
596
|
-
...
|
|
586
|
+
...$?.graphContainer || {},
|
|
587
|
+
...E && E !== !0 ? { backgroundColor: E } : {}
|
|
597
588
|
},
|
|
598
|
-
id:
|
|
589
|
+
id: W,
|
|
599
590
|
ref: i,
|
|
600
|
-
"aria-label":
|
|
591
|
+
"aria-label": B || `${c ? `The graph shows ${c}. ` : ""}This is a choropleth map where geographic areas are colored in proportion to a specific variable.${S ? ` ${S}` : ""}`,
|
|
601
592
|
children: /* @__PURE__ */ e.jsx(
|
|
602
593
|
"div",
|
|
603
594
|
{
|
|
604
595
|
className: "flex grow",
|
|
605
|
-
style: { padding:
|
|
596
|
+
style: { padding: E ? Z || "1rem" : Z || 0 },
|
|
606
597
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
607
|
-
c ||
|
|
608
|
-
|
|
598
|
+
c || S || Q || j ? /* @__PURE__ */ e.jsx(
|
|
599
|
+
Ke,
|
|
609
600
|
{
|
|
610
601
|
styles: {
|
|
611
|
-
title: S?.title,
|
|
612
|
-
description: S?.description
|
|
613
|
-
},
|
|
614
|
-
classNames: {
|
|
615
602
|
title: $?.title,
|
|
616
603
|
description: $?.description
|
|
617
604
|
},
|
|
605
|
+
classNames: {
|
|
606
|
+
title: D?.title,
|
|
607
|
+
description: D?.description
|
|
608
|
+
},
|
|
618
609
|
graphTitle: c,
|
|
619
|
-
graphDescription:
|
|
610
|
+
graphDescription: S,
|
|
620
611
|
width: s,
|
|
621
|
-
graphDownload:
|
|
622
|
-
dataDownload:
|
|
612
|
+
graphDownload: Q ? i.current : void 0,
|
|
613
|
+
dataDownload: j ? b.map((t) => t.data).filter((t) => t !== void 0).length > 0 ? b.map((t) => t.data).filter((t) => t !== void 0) : b.filter((t) => t !== void 0) : null
|
|
623
614
|
}
|
|
624
615
|
) : null,
|
|
625
|
-
|
|
616
|
+
u.enabled && m.length > 0 && n ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
626
617
|
/* @__PURE__ */ e.jsx(
|
|
627
618
|
"button",
|
|
628
619
|
{
|
|
629
620
|
type: "button",
|
|
630
621
|
onClick: () => {
|
|
631
|
-
|
|
622
|
+
be(!V);
|
|
632
623
|
},
|
|
633
624
|
className: "p-0 border-0 cursor-pointer bg-transparent",
|
|
634
|
-
"aria-label":
|
|
635
|
-
children:
|
|
625
|
+
"aria-label": V ? "Click to pause animation" : "Click to play animation",
|
|
626
|
+
children: V ? /* @__PURE__ */ e.jsx(_e, {}) : /* @__PURE__ */ e.jsx(Ue, {})
|
|
636
627
|
}
|
|
637
628
|
),
|
|
638
629
|
/* @__PURE__ */ e.jsx(
|
|
639
|
-
|
|
630
|
+
Ne,
|
|
640
631
|
{
|
|
641
|
-
min:
|
|
642
|
-
max:
|
|
632
|
+
min: m[0],
|
|
633
|
+
max: m[m.length - 1],
|
|
643
634
|
marks: n,
|
|
644
635
|
step: null,
|
|
645
|
-
defaultValue:
|
|
646
|
-
value:
|
|
636
|
+
defaultValue: m[m.length - 1],
|
|
637
|
+
value: m[N],
|
|
647
638
|
onChangeComplete: (t) => {
|
|
648
|
-
|
|
639
|
+
J(m.indexOf(t));
|
|
649
640
|
},
|
|
650
641
|
onChange: (t) => {
|
|
651
|
-
|
|
642
|
+
J(m.indexOf(t));
|
|
652
643
|
},
|
|
653
644
|
"aria-label": "Time slider. Use arrow keys to adjust selected time period."
|
|
654
645
|
}
|
|
@@ -658,15 +649,15 @@ function Lt(he) {
|
|
|
658
649
|
"div",
|
|
659
650
|
{
|
|
660
651
|
className: "flex flex-col grow justify-center leading-0",
|
|
661
|
-
ref:
|
|
652
|
+
ref: d,
|
|
662
653
|
"aria-label": "Map area",
|
|
663
|
-
children: (s ||
|
|
664
|
-
|
|
654
|
+
children: (s || f) && (h || ae) && r ? /* @__PURE__ */ e.jsx(
|
|
655
|
+
ot,
|
|
665
656
|
{
|
|
666
|
-
data:
|
|
667
|
-
(t) =>
|
|
657
|
+
data: b.filter(
|
|
658
|
+
(t) => u.enabled ? t.date === Me(new Date(m[N]), u.dateFormat || "yyyy") : t
|
|
668
659
|
),
|
|
669
|
-
mapData:
|
|
660
|
+
mapData: P ? r : {
|
|
670
661
|
...r,
|
|
671
662
|
features: r.features.filter(
|
|
672
663
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -674,63 +665,64 @@ function Lt(he) {
|
|
|
674
665
|
)
|
|
675
666
|
},
|
|
676
667
|
colorDomain: o,
|
|
677
|
-
width: s ||
|
|
668
|
+
width: s || f,
|
|
678
669
|
height: Math.max(
|
|
679
|
-
|
|
680
|
-
h || (
|
|
670
|
+
w,
|
|
671
|
+
h || (y ? w ? (s || f) * y > w ? (s || f) * y : w : (s || f) * y : ae)
|
|
681
672
|
),
|
|
682
|
-
scale:
|
|
683
|
-
centerPoint:
|
|
684
|
-
colors: x || (
|
|
685
|
-
colorLegendTitle:
|
|
673
|
+
scale: H,
|
|
674
|
+
centerPoint: K,
|
|
675
|
+
colors: x || (O === "categorical" ? de[X].sequentialColors[`neutralColorsx0${o.length}`] : de[X].sequentialColors[`neutralColorsx0${o.length + 1}`]),
|
|
676
|
+
colorLegendTitle: ne,
|
|
686
677
|
mapBorderWidth: ge,
|
|
687
678
|
mapNoDataColor: ue,
|
|
688
|
-
categorical:
|
|
689
|
-
mapBorderColor:
|
|
690
|
-
tooltip:
|
|
679
|
+
categorical: O === "categorical",
|
|
680
|
+
mapBorderColor: q,
|
|
681
|
+
tooltip: _,
|
|
691
682
|
onSeriesMouseOver: fe,
|
|
692
683
|
isWorldMap: C,
|
|
693
684
|
showColorScale: ye,
|
|
694
685
|
zoomScaleExtend: xe,
|
|
695
|
-
zoomTranslateExtend:
|
|
696
|
-
onSeriesMouseClick:
|
|
697
|
-
mapProperty:
|
|
698
|
-
highlightedIds:
|
|
699
|
-
resetSelectionOnDoubleClick:
|
|
700
|
-
styles:
|
|
701
|
-
classNames:
|
|
702
|
-
detailsOnClick:
|
|
703
|
-
mapProjection:
|
|
704
|
-
zoomInteraction:
|
|
705
|
-
dimmedOpacity:
|
|
706
|
-
animate:
|
|
707
|
-
customLayers:
|
|
686
|
+
zoomTranslateExtend: U,
|
|
687
|
+
onSeriesMouseClick: G,
|
|
688
|
+
mapProperty: se,
|
|
689
|
+
highlightedIds: k,
|
|
690
|
+
resetSelectionOnDoubleClick: ee,
|
|
691
|
+
styles: $,
|
|
692
|
+
classNames: D,
|
|
693
|
+
detailsOnClick: Y,
|
|
694
|
+
mapProjection: te || (C ? "naturalEarth" : "mercator"),
|
|
695
|
+
zoomInteraction: le,
|
|
696
|
+
dimmedOpacity: A,
|
|
697
|
+
animate: R === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : R || { duration: 0, once: !0, amount: 0 },
|
|
698
|
+
customLayers: re,
|
|
699
|
+
collapseColorScaleByDefault: ve
|
|
708
700
|
}
|
|
709
701
|
) : /* @__PURE__ */ e.jsx(
|
|
710
702
|
"div",
|
|
711
703
|
{
|
|
712
704
|
style: {
|
|
713
705
|
height: `${Math.max(
|
|
714
|
-
|
|
715
|
-
h || (
|
|
706
|
+
w,
|
|
707
|
+
h || (y ? w ? (s || f) * y > w ? (s || f) * y : w : (s || f) * y : ae)
|
|
716
708
|
)}px`
|
|
717
709
|
},
|
|
718
710
|
className: "flex items-center justify-center",
|
|
719
|
-
children: /* @__PURE__ */ e.jsx(
|
|
711
|
+
children: /* @__PURE__ */ e.jsx(Ce, { "aria-label": "Loading graph" })
|
|
720
712
|
}
|
|
721
713
|
)
|
|
722
714
|
}
|
|
723
715
|
),
|
|
724
|
-
|
|
725
|
-
|
|
716
|
+
F || ie ? /* @__PURE__ */ e.jsx(
|
|
717
|
+
Je,
|
|
726
718
|
{
|
|
727
|
-
styles: { footnote:
|
|
719
|
+
styles: { footnote: $?.footnote, source: $?.source },
|
|
728
720
|
classNames: {
|
|
729
|
-
footnote:
|
|
730
|
-
source:
|
|
721
|
+
footnote: D?.footnote,
|
|
722
|
+
source: D?.source
|
|
731
723
|
},
|
|
732
|
-
sources:
|
|
733
|
-
footNote:
|
|
724
|
+
sources: F,
|
|
725
|
+
footNote: ie,
|
|
734
726
|
width: s
|
|
735
727
|
}
|
|
736
728
|
) : null
|
|
@@ -743,6 +735,6 @@ function Lt(he) {
|
|
|
743
735
|
);
|
|
744
736
|
}
|
|
745
737
|
export {
|
|
746
|
-
|
|
738
|
+
zt as ChoroplethMap
|
|
747
739
|
};
|
|
748
740
|
//# sourceMappingURL=ChoroplethMap.js.map
|