@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/HeatMap.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CHPV5EwG-6v2a2njQ.cjs"),q=require("react"),Ye=require("./index-DQA8q5sC.cjs"),Pe=require("./numberFormattingFunction-02t-wJta.cjs"),Ue=require("./Tooltip-BLa2EfMs.cjs"),ze=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs"),He=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Je=require("./XAxesLabels-C6o9jJal.cjs"),Ke=require("./YAxesLabels-BQ2aCazV.cjs"),Ge=require("./uniqBy-O05lp2S5.cjs"),Qe=require("./DetailsModal-DIRTulvr.cjs"),Fe=require("./band-VYfcZeJ2.cjs"),Ze=require("./ordinal-CrsysVE-.cjs"),_e=require("./threshold-DNsSUf8Q.cjs"),et=require("./linear-CgUCbw9F.cjs"),Ve=require("./proxy-C4-uo6nS.cjs"),tt=require("./use-in-view-C3o_ntMv.cjs"),ot=require("./GraphHeader.cjs"),st=require("./GraphFooter.cjs"),it=require("./ColorLegendWithMouseOver.cjs"),rt=require("./LinearColorLegend.cjs"),nt=require("./ThresholdColorLegendWithMouseOver.cjs"),p=require("./Colors.cjs"),lt=require("./EmptyState-B4c-CrXs.cjs"),Xe=require("./GraphContainer-B1EDxJ0S.cjs");function at(u){const e=t.compilerRuntimeExports.c(86),{data:l,showColumnLabels:z,leftMargin:f,rightMargin:J,truncateBy:y,width:K,height:Q,topMargin:ge,bottomMargin:pe,tooltip:Z,onSeriesMouseOver:n,suffix:$e,prefix:r,showValues:_,colorDomain:j,colors:B,noDataColor:ie,scaleType:re,showRowLabels:fe,selectedColor:ee,onSeriesMouseClick:W,resetSelectionOnDoubleClick:Ce,detailsOnClick:R,styles:m,classNames:c,animate:h,precision:ne}=u,Me=q.useRef(null);let le;e[0]!==h.amount||e[1]!==h.once?(le={once:h.once,amount:h.amount},e[0]=h.amount,e[1]=h.once,e[2]=le):le=e[2];const E=tt.useInView(Me,le);let ae;e[3]!==pe||e[4]!==f||e[5]!==J||e[6]!==ge?(ae={top:ge,bottom:pe,left:f,right:J},e[3]=pe,e[4]=f,e[5]=J,e[6]=ge,e[7]=ae):ae=e[7];const d=ae,[$,ve]=q.useState(void 0),[C,ye]=q.useState(void 0),[ce,ue]=q.useState(void 0),[de,he]=q.useState(void 0),a=K-d.left-d.right,i=Q-d.top-d.bottom;let G,F,M,O,k,S,D,L,N,A,V,H,g;if(e[8]!==h.duration||e[9]!==c?.graphObjectValues||e[10]!==c?.xAxis?.labels||e[11]!==c?.yAxis?.labels||e[12]!==j||e[13]!==B||e[14]!==l||e[15]!==R||e[16]!==i||e[17]!==a||e[18]!==Q||e[19]!==E||e[20]!==d.left||e[21]!==d.top||e[22]!==$||e[23]!==C||e[24]!==ie||e[25]!==W||e[26]!==n||e[27]!==ne||e[28]!==r||e[29]!==Ce||e[30]!==re||e[31]!==ee||e[32]!==z||e[33]!==fe||e[34]!==_||e[35]!==m?.graphObjectValues||e[36]!==m?.xAxis?.labels||e[37]!==m?.yAxis?.labels||e[38]!==$e||e[39]!==y||e[40]!==K){const oe=Ge.uniqBy(l,"column",!0),xe=Ge.uniqBy(l,"row",!0),s=Fe.band().domain(xe).range([0,i]),X=s.bandwidth(),I=Fe.band().domain(oe).range([0,a]),Y=I.bandwidth(),se=re==="categorical"?Ze.ordinal().domain(j).range(B):re==="threshold"?_e.threshold().domain(j).range(B):et.linear().domain(j).range(B);G=Ve.motion.svg,A=`${K}px`,V=`${Q}px`,H=`0 0 ${K} ${Q}`,e[54]===Symbol.for("react.memo_cache_sentinel")?(g={marginLeft:"auto",marginRight:"auto"},e[54]=g):g=e[54],F="ltr",M=Me,O=t.jsxRuntimeExports.jsx("g",{transform:`translate(${d.left},0)`,children:z?oe.map((o,v)=>t.jsxRuntimeExports.jsx(Je.XAxesLabels,{y:0,x:I(o),width:Y,height:d.top-5,value:`${o}`.length<y?`${o}`:`${`${o}`.substring(0,y)}...`,style:m?.xAxis?.labels,className:c?.xAxis?.labels,alignment:"bottom",animate:{duration:0,once:!0,amount:0},isInView:E},v)):null}),k=t.jsxRuntimeExports.jsx("g",{transform:`translate(0,${d.top})`,children:fe?xe.map((o,v)=>t.jsxRuntimeExports.jsx(Ke.YAxesLabels,{value:`${o}`.length<y?`${o}`:`${`${o}`.substring(0,y)}...`,y:s(o),x:0,width:d.left,height:X,alignment:"right",style:m?.yAxis?.labels,className:c?.yAxis?.labels,animate:{duration:0,once:!0,amount:0},isInView:E},v)):null}),S=`translate(${d.left},${d.top})`,D=xe.map((o,v)=>t.jsxRuntimeExports.jsx("g",{transform:`translate(0,${s(o)})`,children:oe.map(P=>t.jsxRuntimeExports.jsx("rect",{x:I(P),y:0,width:Y,height:X,style:{fill:ie},className:"stroke-1 stroke-primary-white dark:stroke-primary-gray-700"},`${o}-${P}`))},v)),L=l.filter(ct).map((o,v)=>{const P=He.checkIfNullOrUndefined(o.value)?ie:se(o.value);return t.jsxRuntimeExports.jsxs("g",{transform:`translate(${I(o.column)},${s(o.row)})`,onMouseEnter:U=>{ye(o),he(U.clientY),ue(U.clientX),n?.(o)},onClick:()=>{(W||R)&&(Ye.isEqual($,o)&&Ce?(ve(void 0),W?.(void 0)):(ve(o),W?.(o)))},onMouseMove:U=>{ye(o),he(U.clientY),ue(U.clientX)},onMouseLeave:()=>{ye(void 0),ue(void 0),he(void 0),n?.(void 0)},opacity:ee?ee===P?1:.3:1,children:[t.jsxRuntimeExports.jsx(Ve.motion.rect,{x:0,y:0,width:Y,height:X,className:"stroke-1 stroke-primary-white dark:stroke-primary-gray-700",exit:{opacity:0,transition:{duration:h.duration}},variants:{initial:{fill:P,opacity:0},whileInView:{fill:P,opacity:1,transition:{duration:h.duration}}},initial:"initial",animate:E?"whileInView":"initial"}),_&&!He.checkIfNullOrUndefined(o.value)?t.jsxRuntimeExports.jsx(Ve.motion.g,{variants:{initial:{opacity:0},whileInView:{opacity:1,transition:{duration:h.duration}}},initial:"initial",animate:E?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},children:t.jsxRuntimeExports.jsx("foreignObject",{y:0,x:0,width:Y,height:X,children:t.jsxRuntimeExports.jsx("div",{className:"flex flex-col justify-center items-center h-inherit p-1",children:t.jsxRuntimeExports.jsx("p",{className:t.mo("text-xs text-center m-0 leading-[1.25] graph-value",c?.graphObjectValues),style:{color:ze.getTextColorBasedOnBgColor(P),...m?.graphObjectValues||{}},children:Pe.numberFormattingFunction(o.value,"NA",ne,r,$e)})})},v)}):null]},`${o.column}-${o.row}`)}),N=C?t.jsxRuntimeExports.jsx("rect",{x:I(C.column),y:s(C.row),width:Y,height:X,style:{fill:"none",fillOpacity:0,strokeWidth:1.5},className:"stroke-primary-gray-700 dark:stroke-primary-gray-300"}):null,e[8]=h.duration,e[9]=c?.graphObjectValues,e[10]=c?.xAxis?.labels,e[11]=c?.yAxis?.labels,e[12]=j,e[13]=B,e[14]=l,e[15]=R,e[16]=i,e[17]=a,e[18]=Q,e[19]=E,e[20]=d.left,e[21]=d.top,e[22]=$,e[23]=C,e[24]=ie,e[25]=W,e[26]=n,e[27]=ne,e[28]=r,e[29]=Ce,e[30]=re,e[31]=ee,e[32]=z,e[33]=fe,e[34]=_,e[35]=m?.graphObjectValues,e[36]=m?.xAxis?.labels,e[37]=m?.yAxis?.labels,e[38]=$e,e[39]=y,e[40]=K,e[41]=G,e[42]=F,e[43]=M,e[44]=O,e[45]=k,e[46]=S,e[47]=D,e[48]=L,e[49]=N,e[50]=A,e[51]=V,e[52]=H,e[53]=g}else G=e[41],F=e[42],M=e[43],O=e[44],k=e[45],S=e[46],D=e[47],L=e[48],N=e[49],A=e[50],V=e[51],H=e[52],g=e[53];let T;e[55]!==S||e[56]!==D||e[57]!==L||e[58]!==N?(T=t.jsxRuntimeExports.jsxs("g",{transform:S,children:[D,L,N]}),e[55]=S,e[56]=D,e[57]=L,e[58]=N,e[59]=T):T=e[59];let b;e[60]!==G||e[61]!==F||e[62]!==M||e[63]!==O||e[64]!==k||e[65]!==T||e[66]!==A||e[67]!==V||e[68]!==H||e[69]!==g?(b=t.jsxRuntimeExports.jsxs(G,{width:A,height:V,viewBox:H,style:g,direction:F,ref:M,children:[O,k,T]}),e[60]=G,e[61]=F,e[62]=M,e[63]=O,e[64]=k,e[65]=T,e[66]=A,e[67]=V,e[68]=H,e[69]=g,e[70]=b):b=e[70];let w;e[71]!==c?.tooltip||e[72]!==ce||e[73]!==de||e[74]!==C||e[75]!==m?.tooltip||e[76]!==Z?(w=C&&Z&&ce&&de?t.jsxRuntimeExports.jsx(Ue.Tooltip,{data:C,body:Z,xPos:ce,yPos:de,backgroundStyle:m?.tooltip,className:c?.tooltip}):null,e[71]=c?.tooltip,e[72]=ce,e[73]=de,e[74]=C,e[75]=m?.tooltip,e[76]=Z,e[77]=w):w=e[77];let x;e[78]!==c?.modal||e[79]!==R||e[80]!==$?(x=R&&$!==void 0?t.jsxRuntimeExports.jsx(Qe.DetailsModal,{body:R,data:$,setData:ve,className:c?.modal}):null,e[78]=c?.modal,e[79]=R,e[80]=$,e[81]=x):x=e[81];let te;return e[82]!==b||e[83]!==w||e[84]!==x?(te=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[b,w,x]}),e[82]=b,e[83]=w,e[84]=x,e[85]=te):te=e[85],te}function ct(u){return!He.checkIfNullOrUndefined(u.value)}function ut(u){const e=t.compilerRuntimeExports.c(87),{data:l,graphTitle:z,colors:f,sources:J,graphDescription:y,showColumnLabels:K,leftMargin:Q,rightMargin:ge,truncateBy:pe,height:Z,width:n,scaleType:$e,colorDomain:r,footNote:_,colorLegendTitle:j,padding:B,backgroundColor:ie,topMargin:re,bottomMargin:fe,tooltip:ee,onSeriesMouseOver:W,suffix:Ce,prefix:R,showRowLabels:m,relativeHeight:c,showValues:h,graphID:ne,noDataColor:Me,showColorScale:le,onSeriesMouseClick:E,graphDownload:ae,dataDownload:d,fillContainer:$,language:ve,showNAColor:C,minHeight:ye,theme:ce,ariaLabel:ue,resetSelectionOnDoubleClick:de,detailsOnClick:he,styles:a,classNames:i,animate:G,precision:F}=u,M=K===void 0?!0:K,O=Q===void 0?100:Q,k=ge===void 0?10:ge,S=pe===void 0?999:pe,D=ie===void 0?!1:ie,L=re===void 0?30:re,N=fe===void 0?10:fe,A=Ce===void 0?"":Ce,V=R===void 0?"":R,H=m===void 0?!0:m,g=Me===void 0?p.Colors.gray:Me,T=le===void 0?!0:le,b=ae===void 0?!1:ae,w=d===void 0?!1:d,x=$===void 0?!0:$,te=ve===void 0?"en":ve,oe=C===void 0?!0:C,xe=ye===void 0?0:ye,s=ce===void 0?"light":ce,X=de===void 0?!0:de,I=G===void 0?!1:G,Y=F===void 0?2:F,[se,o]=q.useState(0),[v,P]=q.useState(0),[U,Te]=q.useState(void 0),De=q.useRef(null),Ie=q.useRef(null);let Oe,ke;e[0]===Symbol.for("react.memo_cache_sentinel")?(Oe=()=>{const Be=new ResizeObserver(We=>{o(We[0].target.clientWidth||620),P(We[0].target.clientHeight||480)});return De.current&&Be.observe(De.current),()=>Be.disconnect()},ke=[],e[0]=Oe,e[1]=ke):(Oe=e[0],ke=e[1]),q.useEffect(Oe,ke);const me=$e||(typeof r[0]=="string"?"categorical":r.length===2?"linear":"threshold"),Le=i?.graphContainer,Ne=a?.graphContainer,Ae=x?void 0:n;let je;e[2]!==i?.description||e[3]!==i?.title||e[4]!==l||e[5]!==w||e[6]!==y||e[7]!==b||e[8]!==z||e[9]!==a?.description||e[10]!==a?.title||e[11]!==n?(je=z||y||b||w?t.jsxRuntimeExports.jsx(ot.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:i?.title,description:i?.description},graphTitle:z,graphDescription:y,width:n,graphDownload:b?Ie:void 0,dataDownload:w?l.map(pt).filter(gt).length>0?l.map(mt).filter(xt):l.filter(ht):null}):null,e[2]=i?.description,e[3]=i?.title,e[4]=l,e[5]=w,e[6]=y,e[7]=b,e[8]=z,e[9]=a?.description,e[10]=a?.title,e[11]=n,e[12]=je):je=e[12];let be;e[13]!==i?.colorLegend||e[14]!==r||e[15]!==j||e[16]!==f||e[17]!==l.length||e[18]!==x||e[19]!==g||e[20]!==me||e[21]!==T||e[22]!==oe||e[23]!==s||e[24]!==n?(be=T&&l.length>0?me==="categorical"?t.jsxRuntimeExports.jsx(it.ColorLegendWithMouseOver,{width:x?void 0:n,colorLegendTitle:j,colors:f||(typeof r[0]=="string"?p.Colors[s].categoricalColors.colors:r.length===2?[p.Colors[s].sequentialColors.neutralColorsx09[0],p.Colors[s].sequentialColors.neutralColorsx09[8]]:p.Colors[s].sequentialColors[`neutralColorsx0${r.length+1}`]),colorDomain:r.map(dt),setSelectedColor:Te,showNAColor:oe,className:i?.colorLegend}):me==="threshold"?t.jsxRuntimeExports.jsx(nt.ThresholdColorLegendWithMouseOver,{width:x?void 0:n,colorLegendTitle:j,colors:f||(typeof r[0]=="string"?p.Colors[s].categoricalColors.colors:r.length===2?[p.Colors[s].sequentialColors.neutralColorsx09[0],p.Colors[s].sequentialColors.neutralColorsx09[8]]:p.Colors[s].sequentialColors[`neutralColorsx0${r.length+1}`]),colorDomain:r,setSelectedColor:Te,naColor:g,showNAColor:oe}):t.jsxRuntimeExports.jsx(rt.LinearColorLegend,{width:x?void 0:n,colorLegendTitle:j,colors:f||[p.Colors[s].sequentialColors.neutralColorsx09[0],p.Colors[s].sequentialColors.neutralColorsx09[8]],colorDomain:r,className:i?.colorLegend}):null,e[13]=i?.colorLegend,e[14]=r,e[15]=j,e[16]=f,e[17]=l.length,e[18]=x,e[19]=g,e[20]=me,e[21]=T,e[22]=oe,e[23]=s,e[24]=n,e[25]=be):be=e[25];let we;e[26]!==l.length?(we=l.length===0&&t.jsxRuntimeExports.jsx(lt.EmptyState,{}),e[26]=l.length,e[27]=we):we=e[27];let qe;e[28]!==I||e[29]!==N||e[30]!==i||e[31]!==r||e[32]!==f||e[33]!==l||e[34]!==he||e[35]!==x||e[36]!==O||e[37]!==g||e[38]!==E||e[39]!==W||e[40]!==Y||e[41]!==V||e[42]!==X||e[43]!==k||e[44]!==me||e[45]!==U||e[46]!==M||e[47]!==H||e[48]!==h||e[49]!==a||e[50]!==A||e[51]!==v||e[52]!==se||e[53]!==s||e[54]!==ee||e[55]!==L||e[56]!==S||e[57]!==n?(qe=se&&v&&l.length>0?t.jsxRuntimeExports.jsx(at,{data:l,colorDomain:r,width:x||!n||se<n?se:n,height:v,colors:f||(typeof r[0]=="string"?p.Colors[s].categoricalColors.colors:r.length===2?[p.Colors[s].sequentialColors.neutralColorsx09[0],p.Colors[s].sequentialColors.neutralColorsx09[8]]:p.Colors[s].sequentialColors[`neutralColorsx0${r.length+1}`]),noDataColor:g,scaleType:me,showColumnLabels:M,leftMargin:O,rightMargin:k,topMargin:L,bottomMargin:N,selectedColor:U,truncateBy:S,showRowLabels:H,tooltip:ee,onSeriesMouseOver:W,showValues:h,suffix:A,prefix:V,onSeriesMouseClick:E,resetSelectionOnDoubleClick:X,detailsOnClick:he,styles:a,classNames:i,animate:I===!0?{duration:.5,once:!0,amount:.5}:I||{duration:0,once:!0,amount:0},precision:Y}):null,e[28]=I,e[29]=N,e[30]=i,e[31]=r,e[32]=f,e[33]=l,e[34]=he,e[35]=x,e[36]=O,e[37]=g,e[38]=E,e[39]=W,e[40]=Y,e[41]=V,e[42]=X,e[43]=k,e[44]=me,e[45]=U,e[46]=M,e[47]=H,e[48]=h,e[49]=a,e[50]=A,e[51]=v,e[52]=se,e[53]=s,e[54]=ee,e[55]=L,e[56]=S,e[57]=n,e[58]=qe):qe=e[58];let Re;e[59]!==we||e[60]!==qe?(Re=t.jsxRuntimeExports.jsxs(Xe.GraphArea,{ref:De,children:[we,qe]}),e[59]=we,e[60]=qe,e[61]=Re):Re=e[61];let Ee;e[62]!==i?.footnote||e[63]!==i?.source||e[64]!==_||e[65]!==J||e[66]!==a?.footnote||e[67]!==a?.source||e[68]!==n?(Ee=J||_?t.jsxRuntimeExports.jsx(st.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:i?.footnote,source:i?.source},sources:J,footNote:_,width:n}):null,e[62]=i?.footnote,e[63]=i?.source,e[64]=_,e[65]=J,e[66]=a?.footnote,e[67]=a?.source,e[68]=n,e[69]=Ee):Ee=e[69];let Se;return e[70]!==ue||e[71]!==D||e[72]!==ne||e[73]!==Z||e[74]!==te||e[75]!==xe||e[76]!==B||e[77]!==c||e[78]!==Le||e[79]!==Ne||e[80]!==Ae||e[81]!==je||e[82]!==be||e[83]!==Re||e[84]!==Ee||e[85]!==s?(Se=t.jsxRuntimeExports.jsxs(Xe.GraphContainer,{className:Le,style:Ne,id:ne,ref:Ie,"aria-label":ue,backgroundColor:D,theme:s,language:te,minHeight:xe,width:Ae,height:Z,relativeHeight:c,padding:B,children:[je,be,Re,Ee]}),e[70]=ue,e[71]=D,e[72]=ne,e[73]=Z,e[74]=te,e[75]=xe,e[76]=B,e[77]=c,e[78]=Le,e[79]=Ne,e[80]=Ae,e[81]=je,e[82]=be,e[83]=Re,e[84]=Ee,e[85]=s,e[86]=Se):Se=e[86],Se}function dt(u){return`${u}`}function ht(u){return u!==void 0}function xt(u){return u!==void 0}function mt(u){return u.data}function gt(u){return u!==void 0}function pt(u){return u.data}exports.HeatMap=ut;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-D4pAp7u0.cjs"),E=require("react"),Je=require("./index-DQA8q5sC.cjs"),Ke=require("./numberFormattingFunction-Cn9R7CM9.cjs"),Qe=require("./Tooltip-Hr46paWP.cjs"),Ze=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs"),Be=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),_e=require("./XAxesLabels-C03jHniq.cjs"),et=require("./YAxesLabels-DeENFC2M.cjs"),Ye=require("./uniqBy-O05lp2S5.cjs"),tt=require("./DetailsModal-jmmKRMRM.cjs"),Pe=require("./band-VYfcZeJ2.cjs"),ot=require("./ordinal-CrsysVE-.cjs"),st=require("./threshold-DNsSUf8Q.cjs"),it=require("./linear-CgUCbw9F.cjs"),Ie=require("./proxy-CqH8m8IQ.cjs"),rt=require("./use-in-view-dnRv_qqF.cjs"),nt=require("./GraphHeader.cjs"),lt=require("./GraphFooter.cjs"),at=require("./ColorLegendWithMouseOver.cjs"),ct=require("./LinearColorLegend.cjs"),ut=require("./ThresholdColorLegendWithMouseOver.cjs"),m=require("./Colors.cjs"),dt=require("./EmptyState-CFmiFPHz.cjs"),Ue=require("./GraphContainer-Cul9b74X.cjs");function ht(u){const e=o.compilerRuntimeExports.c(87),{data:l,showColumnLabels:z,leftMargin:C,rightMargin:J,truncateBy:b,width:K,height:Q,topMargin:he,bottomMargin:xe,tooltip:Z,onSeriesMouseOver:n,suffix:$e,prefix:r,showValues:_,colorDomain:j,colors:B,noDataColor:re,scaleType:ne,showRowLabels:me,selectedColor:ee,onSeriesMouseClick:W,resetSelectionOnDoubleClick:ge,detailsOnClick:$,styles:x,classNames:c,animate:h,precision:le,locale:pe}=u,Me=E.useRef(null);let te;e[0]!==h.amount||e[1]!==h.once?(te={once:h.once,amount:h.amount},e[0]=h.amount,e[1]=h.once,e[2]=te):te=e[2];const G=rt.useInView(Me,te);let ae;e[3]!==xe||e[4]!==C||e[5]!==J||e[6]!==he?(ae={top:he,bottom:xe,left:C,right:J},e[3]=xe,e[4]=C,e[5]=J,e[6]=he,e[7]=ae):ae=e[7];const d=ae,[M,fe]=E.useState(void 0),[v,Ce]=E.useState(void 0),[oe,ve]=E.useState(void 0),[se,a]=E.useState(void 0),i=K-d.left-d.right,ye=Q-d.top-d.bottom;let F,X,Y,O,k,L,S,D,N,A,V,H,y;if(e[8]!==h.duration||e[9]!==c?.graphObjectValues||e[10]!==c?.xAxis?.labels||e[11]!==c?.yAxis?.labels||e[12]!==j||e[13]!==B||e[14]!==l||e[15]!==$||e[16]!==ye||e[17]!==i||e[18]!==Q||e[19]!==G||e[20]!==pe||e[21]!==d.left||e[22]!==d.top||e[23]!==M||e[24]!==v||e[25]!==re||e[26]!==W||e[27]!==n||e[28]!==le||e[29]!==r||e[30]!==ge||e[31]!==ne||e[32]!==ee||e[33]!==z||e[34]!==me||e[35]!==_||e[36]!==x?.graphObjectValues||e[37]!==x?.xAxis?.labels||e[38]!==x?.yAxis?.labels||e[39]!==$e||e[40]!==b||e[41]!==K){const ce=Ye.uniqBy(l,"column",!0),ie=Ye.uniqBy(l,"row",!0),P=Pe.band().domain(ie).range([0,ye]),s=P.bandwidth(),U=Pe.band().domain(ce).range([0,i]),I=U.bandwidth(),Oe=ne==="categorical"?ot.ordinal().domain(j).range(B):ne==="threshold"?st.threshold().domain(j).range(B):it.linear().domain(j).range(B);F=Ie.motion.svg,A=`${K}px`,V=`${Q}px`,H=`0 0 ${K} ${Q}`,e[55]===Symbol.for("react.memo_cache_sentinel")?(y={marginLeft:"auto",marginRight:"auto"},e[55]=y):y=e[55],X="ltr",Y=Me,O=o.jsxRuntimeExports.jsx("g",{transform:`translate(${d.left},0)`,children:z?ce.map((t,R)=>o.jsxRuntimeExports.jsx(_e.XAxesLabels,{y:0,x:U(t),width:I,height:d.top-5,value:`${t}`.length<b?`${t}`:`${`${t}`.substring(0,b)}...`,style:x?.xAxis?.labels,className:c?.xAxis?.labels,alignment:"bottom",animate:{duration:0,once:!0,amount:0},isInView:G},R)):null}),k=o.jsxRuntimeExports.jsx("g",{transform:`translate(0,${d.top})`,children:me?ie.map((t,R)=>o.jsxRuntimeExports.jsx(et.YAxesLabels,{value:`${t}`.length<b?`${t}`:`${`${t}`.substring(0,b)}...`,y:P(t),x:0,width:d.left,height:s,alignment:"right",style:x?.yAxis?.labels,className:c?.yAxis?.labels,animate:{duration:0,once:!0,amount:0},isInView:G},R)):null}),L=`translate(${d.left},${d.top})`,S=ie.map((t,R)=>o.jsxRuntimeExports.jsx("g",{transform:`translate(0,${P(t)})`,children:ce.map(p=>o.jsxRuntimeExports.jsx("rect",{x:U(p),y:0,width:I,height:s,style:{fill:re},className:"stroke-1 stroke-primary-white dark:stroke-primary-gray-700"},`${t}-${p}`))},R)),D=l.filter(xt).map((t,R)=>{const p=Be.checkIfNullOrUndefined(t.value)?re:Oe(t.value);return o.jsxRuntimeExports.jsxs("g",{transform:`translate(${U(t.column)},${P(t.row)})`,onMouseEnter:ue=>{Ce(t),a(ue.clientY),ve(ue.clientX),n?.(t)},onClick:()=>{(W||$)&&(Je.isEqual(M,t)&&ge?(fe(void 0),W?.(void 0)):(fe(t),W?.(t)))},onMouseMove:ue=>{Ce(t),a(ue.clientY),ve(ue.clientX)},onMouseLeave:()=>{Ce(void 0),ve(void 0),a(void 0),n?.(void 0)},opacity:ee?ee===p?1:.3:1,children:[o.jsxRuntimeExports.jsx(Ie.motion.rect,{x:0,y:0,width:I,height:s,className:"stroke-1 stroke-primary-white dark:stroke-primary-gray-700",exit:{opacity:0,transition:{duration:h.duration}},variants:{initial:{fill:p,opacity:0},whileInView:{fill:p,opacity:1,transition:{duration:h.duration}}},initial:"initial",animate:G?"whileInView":"initial"}),_&&!Be.checkIfNullOrUndefined(t.value)?o.jsxRuntimeExports.jsx(Ie.motion.g,{variants:{initial:{opacity:0},whileInView:{opacity:1,transition:{duration:h.duration}}},initial:"initial",animate:G?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},children:o.jsxRuntimeExports.jsx("foreignObject",{y:0,x:0,width:I,height:s,children:o.jsxRuntimeExports.jsx("div",{className:"flex flex-col justify-center items-center h-inherit p-1",children:o.jsxRuntimeExports.jsx("p",{className:o.mo("text-xs text-center m-0 leading-[1.25] graph-value",c?.graphObjectValues),style:{color:Ze.getTextColorBasedOnBgColor(p),...x?.graphObjectValues||{}},children:Ke.numberFormattingFunction(t.value,void 0,le,r,$e,pe)})})},R)}):null]},`${t.column}-${t.row}`)}),N=v?o.jsxRuntimeExports.jsx("rect",{x:U(v.column),y:P(v.row),width:I,height:s,style:{fill:"none",fillOpacity:0,strokeWidth:1.5},className:"stroke-primary-gray-700 dark:stroke-primary-gray-300"}):null,e[8]=h.duration,e[9]=c?.graphObjectValues,e[10]=c?.xAxis?.labels,e[11]=c?.yAxis?.labels,e[12]=j,e[13]=B,e[14]=l,e[15]=$,e[16]=ye,e[17]=i,e[18]=Q,e[19]=G,e[20]=pe,e[21]=d.left,e[22]=d.top,e[23]=M,e[24]=v,e[25]=re,e[26]=W,e[27]=n,e[28]=le,e[29]=r,e[30]=ge,e[31]=ne,e[32]=ee,e[33]=z,e[34]=me,e[35]=_,e[36]=x?.graphObjectValues,e[37]=x?.xAxis?.labels,e[38]=x?.yAxis?.labels,e[39]=$e,e[40]=b,e[41]=K,e[42]=F,e[43]=X,e[44]=Y,e[45]=O,e[46]=k,e[47]=L,e[48]=S,e[49]=D,e[50]=N,e[51]=A,e[52]=V,e[53]=H,e[54]=y}else F=e[42],X=e[43],Y=e[44],O=e[45],k=e[46],L=e[47],S=e[48],D=e[49],N=e[50],A=e[51],V=e[52],H=e[53],y=e[54];let f;e[56]!==L||e[57]!==S||e[58]!==D||e[59]!==N?(f=o.jsxRuntimeExports.jsxs("g",{transform:L,children:[S,D,N]}),e[56]=L,e[57]=S,e[58]=D,e[59]=N,e[60]=f):f=e[60];let T;e[61]!==F||e[62]!==X||e[63]!==Y||e[64]!==O||e[65]!==k||e[66]!==f||e[67]!==A||e[68]!==V||e[69]!==H||e[70]!==y?(T=o.jsxRuntimeExports.jsxs(F,{width:A,height:V,viewBox:H,style:y,direction:X,ref:Y,children:[O,k,f]}),e[61]=F,e[62]=X,e[63]=Y,e[64]=O,e[65]=k,e[66]=f,e[67]=A,e[68]=V,e[69]=H,e[70]=y,e[71]=T):T=e[71];let w;e[72]!==c?.tooltip||e[73]!==oe||e[74]!==se||e[75]!==v||e[76]!==x?.tooltip||e[77]!==Z?(w=v&&Z&&oe&&se?o.jsxRuntimeExports.jsx(Qe.Tooltip,{data:v,body:Z,xPos:oe,yPos:se,backgroundStyle:x?.tooltip,className:c?.tooltip}):null,e[72]=c?.tooltip,e[73]=oe,e[74]=se,e[75]=v,e[76]=x?.tooltip,e[77]=Z,e[78]=w):w=e[78];let q;e[79]!==c?.modal||e[80]!==$||e[81]!==M?(q=$&&M!==void 0?o.jsxRuntimeExports.jsx(tt.DetailsModal,{body:$,data:M,setData:fe,className:c?.modal}):null,e[79]=c?.modal,e[80]=$,e[81]=M,e[82]=q):q=e[82];let g;return e[83]!==T||e[84]!==w||e[85]!==q?(g=o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[T,w,q]}),e[83]=T,e[84]=w,e[85]=q,e[86]=g):g=e[86],g}function xt(u){return!Be.checkIfNullOrUndefined(u.value)}function mt(u){const e=o.compilerRuntimeExports.c(90),{data:l,graphTitle:z,colors:C,sources:J,graphDescription:b,showColumnLabels:K,leftMargin:Q,rightMargin:he,truncateBy:xe,height:Z,width:n,scaleType:$e,colorDomain:r,footNote:_,colorLegendTitle:j,padding:B,backgroundColor:re,topMargin:ne,bottomMargin:me,tooltip:ee,onSeriesMouseOver:W,suffix:ge,prefix:$,showRowLabels:x,relativeHeight:c,showValues:h,graphID:le,noDataColor:pe,showColorScale:Me,onSeriesMouseClick:te,graphDownload:G,dataDownload:ae,fillContainer:d,language:M,showNAColor:fe,minHeight:v,theme:Ce,ariaLabel:oe,resetSelectionOnDoubleClick:ve,detailsOnClick:se,styles:a,classNames:i,animate:ye,precision:F,locale:X,naLabel:Y}=u,O=K===void 0?!0:K,k=Q===void 0?100:Q,L=he===void 0?10:he,S=xe===void 0?999:xe,D=re===void 0?!1:re,N=ne===void 0?30:ne,A=me===void 0?10:me,V=ge===void 0?"":ge,H=$===void 0?"":$,y=x===void 0?!0:x,f=pe===void 0?m.Colors.gray:pe,T=Me===void 0?!0:Me,w=G===void 0?!1:G,q=ae===void 0?!1:ae,g=d===void 0?!0:d,ce=M===void 0?"en":M,ie=fe===void 0?!0:fe,P=v===void 0?0:v,s=Ce===void 0?"light":Ce,U=ve===void 0?!0:ve,I=ye===void 0?!1:ye,Oe=F===void 0?2:F,t=X===void 0?"en":X,R=Y===void 0?"NA":Y,[p,ue]=E.useState(0),[ke,ze]=E.useState(0),[Ne,We]=E.useState(void 0),Ae=E.useRef(null),Ge=E.useRef(null);let Le,Se;e[0]===Symbol.for("react.memo_cache_sentinel")?(Le=()=>{const Fe=new ResizeObserver(Xe=>{ue(Xe[0].target.clientWidth||620),ze(Xe[0].target.clientHeight||480)});return Ae.current&&Fe.observe(Ae.current),()=>Fe.disconnect()},Se=[],e[0]=Le,e[1]=Se):(Le=e[0],Se=e[1]),E.useEffect(Le,Se);const de=$e||(typeof r[0]=="string"?"categorical":r.length===2?"linear":"threshold"),Ve=i?.graphContainer,He=a?.graphContainer,Te=g?void 0:n;let be;e[2]!==i?.description||e[3]!==i?.title||e[4]!==l||e[5]!==q||e[6]!==b||e[7]!==w||e[8]!==z||e[9]!==a?.description||e[10]!==a?.title||e[11]!==n?(be=z||b||w||q?o.jsxRuntimeExports.jsx(nt.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:i?.title,description:i?.description},graphTitle:z,graphDescription:b,width:n,graphDownload:w?Ge:void 0,dataDownload:q?l.map(yt).filter(vt).length>0?l.map(Ct).filter(ft):l.filter(pt):null}):null,e[2]=i?.description,e[3]=i?.title,e[4]=l,e[5]=q,e[6]=b,e[7]=w,e[8]=z,e[9]=a?.description,e[10]=a?.title,e[11]=n,e[12]=be):be=e[12];let je;e[13]!==i?.colorLegend||e[14]!==r||e[15]!==j||e[16]!==C||e[17]!==l.length||e[18]!==g||e[19]!==t||e[20]!==R||e[21]!==f||e[22]!==de||e[23]!==T||e[24]!==ie||e[25]!==s||e[26]!==n?(je=T&&l.length>0?de==="categorical"?o.jsxRuntimeExports.jsx(at.ColorLegendWithMouseOver,{width:g?void 0:n,colorLegendTitle:j,colors:C||(typeof r[0]=="string"?m.Colors[s].categoricalColors.colors:r.length===2?[m.Colors[s].sequentialColors.neutralColorsx09[0],m.Colors[s].sequentialColors.neutralColorsx09[8]]:m.Colors[s].sequentialColors[`neutralColorsx0${r.length+1}`]),colorDomain:r.map(gt),setSelectedColor:We,showNAColor:ie,className:i?.colorLegend}):de==="threshold"?o.jsxRuntimeExports.jsx(ut.ThresholdColorLegendWithMouseOver,{width:g?void 0:n,colorLegendTitle:j,colors:C||(typeof r[0]=="string"?m.Colors[s].categoricalColors.colors:r.length===2?[m.Colors[s].sequentialColors.neutralColorsx09[0],m.Colors[s].sequentialColors.neutralColorsx09[8]]:m.Colors[s].sequentialColors[`neutralColorsx0${r.length+1}`]),colorDomain:r,setSelectedColor:We,naColor:f,locale:t,showNAColor:ie,naLabel:R}):o.jsxRuntimeExports.jsx(ct.LinearColorLegend,{width:g?void 0:n,colorLegendTitle:j,colors:C||[m.Colors[s].sequentialColors.neutralColorsx09[0],m.Colors[s].sequentialColors.neutralColorsx09[8]],locale:t,colorDomain:r,className:i?.colorLegend}):null,e[13]=i?.colorLegend,e[14]=r,e[15]=j,e[16]=C,e[17]=l.length,e[18]=g,e[19]=t,e[20]=R,e[21]=f,e[22]=de,e[23]=T,e[24]=ie,e[25]=s,e[26]=n,e[27]=je):je=e[27];let we;e[28]!==l.length?(we=l.length===0&&o.jsxRuntimeExports.jsx(dt.EmptyState,{}),e[28]=l.length,e[29]=we):we=e[29];let qe;e[30]!==I||e[31]!==A||e[32]!==i||e[33]!==r||e[34]!==C||e[35]!==l||e[36]!==se||e[37]!==g||e[38]!==k||e[39]!==t||e[40]!==f||e[41]!==te||e[42]!==W||e[43]!==Oe||e[44]!==H||e[45]!==U||e[46]!==L||e[47]!==de||e[48]!==Ne||e[49]!==O||e[50]!==y||e[51]!==h||e[52]!==a||e[53]!==V||e[54]!==ke||e[55]!==p||e[56]!==s||e[57]!==ee||e[58]!==N||e[59]!==S||e[60]!==n?(qe=p&&ke&&l.length>0?o.jsxRuntimeExports.jsx(ht,{data:l,colorDomain:r,width:g||!n||p<n?p:n,height:ke,colors:C||(typeof r[0]=="string"?m.Colors[s].categoricalColors.colors:r.length===2?[m.Colors[s].sequentialColors.neutralColorsx09[0],m.Colors[s].sequentialColors.neutralColorsx09[8]]:m.Colors[s].sequentialColors[`neutralColorsx0${r.length+1}`]),noDataColor:f,scaleType:de,showColumnLabels:O,leftMargin:k,rightMargin:L,topMargin:N,bottomMargin:A,selectedColor:Ne,truncateBy:S,showRowLabels:y,tooltip:ee,onSeriesMouseOver:W,showValues:h,suffix:V,prefix:H,onSeriesMouseClick:te,resetSelectionOnDoubleClick:U,detailsOnClick:se,styles:a,classNames:i,animate:I===!0?{duration:.5,once:!0,amount:.5}:I||{duration:0,once:!0,amount:0},precision:Oe,locale:t}):null,e[30]=I,e[31]=A,e[32]=i,e[33]=r,e[34]=C,e[35]=l,e[36]=se,e[37]=g,e[38]=k,e[39]=t,e[40]=f,e[41]=te,e[42]=W,e[43]=Oe,e[44]=H,e[45]=U,e[46]=L,e[47]=de,e[48]=Ne,e[49]=O,e[50]=y,e[51]=h,e[52]=a,e[53]=V,e[54]=ke,e[55]=p,e[56]=s,e[57]=ee,e[58]=N,e[59]=S,e[60]=n,e[61]=qe):qe=e[61];let Re;e[62]!==we||e[63]!==qe?(Re=o.jsxRuntimeExports.jsxs(Ue.GraphArea,{ref:Ae,children:[we,qe]}),e[62]=we,e[63]=qe,e[64]=Re):Re=e[64];let Ee;e[65]!==i?.footnote||e[66]!==i?.source||e[67]!==_||e[68]!==J||e[69]!==a?.footnote||e[70]!==a?.source||e[71]!==n?(Ee=J||_?o.jsxRuntimeExports.jsx(lt.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:i?.footnote,source:i?.source},sources:J,footNote:_,width:n}):null,e[65]=i?.footnote,e[66]=i?.source,e[67]=_,e[68]=J,e[69]=a?.footnote,e[70]=a?.source,e[71]=n,e[72]=Ee):Ee=e[72];let De;return e[73]!==oe||e[74]!==D||e[75]!==le||e[76]!==Z||e[77]!==ce||e[78]!==P||e[79]!==B||e[80]!==c||e[81]!==Ve||e[82]!==He||e[83]!==Te||e[84]!==be||e[85]!==je||e[86]!==Re||e[87]!==Ee||e[88]!==s?(De=o.jsxRuntimeExports.jsxs(Ue.GraphContainer,{className:Ve,style:He,id:le,ref:Ge,"aria-label":oe,backgroundColor:D,theme:s,language:ce,minHeight:P,width:Te,height:Z,relativeHeight:c,padding:B,children:[be,je,Re,Ee]}),e[73]=oe,e[74]=D,e[75]=le,e[76]=Z,e[77]=ce,e[78]=P,e[79]=B,e[80]=c,e[81]=Ve,e[82]=He,e[83]=Te,e[84]=be,e[85]=je,e[86]=Re,e[87]=Ee,e[88]=s,e[89]=De):De=e[89],De}function gt(u){return`${u}`}function pt(u){return u!==void 0}function ft(u){return u!==void 0}function Ct(u){return u.data}function vt(u){return u!==void 0}function yt(u){return u.data}exports.HeatMap=mt;
|
|
2
2
|
//# sourceMappingURL=HeatMap.cjs.map
|
package/dist/HeatMap.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeatMap.cjs","sources":["../src/Components/Graphs/HeatMap/Graph.tsx","../src/Components/Graphs/HeatMap/index.tsx"],"sourcesContent":["import isEqual from 'fast-deep-equal';\r\nimport { scaleLinear, scaleBand, scaleOrdinal, scaleThreshold } from 'd3-scale';\r\nimport { useRef, useState } from 'react';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n HeatMapDataType,\r\n ScaleDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { getTextColorBasedOnBgColor } from '@/Utils/getTextColorBasedOnBgColor';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { XAxesLabels } from '@/Components/Elements/Axes/XAxesLabels';\r\nimport { YAxesLabels } from '@/Components/Elements/Axes/YAxesLabels';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n data: HeatMapDataType[];\r\n colorDomain: string[] | number[];\r\n colors: string[];\r\n noDataColor: string;\r\n scaleType: ScaleDataType;\r\n showColumnLabels: boolean;\r\n leftMargin: number;\r\n truncateBy: number;\r\n width: number;\r\n height: number;\r\n rightMargin: number;\r\n topMargin: number;\r\n showRowLabels: boolean;\r\n bottomMargin: number;\r\n suffix: string;\r\n prefix: string;\r\n showValues?: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n selectedColor?: string;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n resetSelectionOnDoubleClick: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n animate: AnimateDataType;\r\n precision: number;\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n showColumnLabels,\r\n leftMargin,\r\n rightMargin,\r\n truncateBy,\r\n width,\r\n height,\r\n topMargin,\r\n bottomMargin,\r\n tooltip,\r\n onSeriesMouseOver,\r\n suffix,\r\n prefix,\r\n showValues,\r\n colorDomain,\r\n colors,\r\n noDataColor,\r\n scaleType,\r\n showRowLabels,\r\n selectedColor,\r\n onSeriesMouseClick,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate,\r\n precision,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: leftMargin,\r\n right: rightMargin,\r\n };\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseClickData, setMouseClickData] = useState<any>(undefined);\r\n const [mouseOverData, setMouseOverData] = useState<HeatMapDataType | undefined>(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n const columns = uniqBy(data, 'column', true) as string[];\r\n const rows = uniqBy(data, 'row', true) as string[];\r\n const y = scaleBand().domain(rows).range([0, graphHeight]);\r\n const barHeight = y.bandwidth();\r\n const x = scaleBand().domain(columns).range([0, graphWidth]);\r\n const barWidth = x.bandwidth();\r\n const colorScale =\r\n scaleType === 'categorical'\r\n ? scaleOrdinal<number | string, string>().domain(colorDomain).range(colors)\r\n : scaleType === 'threshold'\r\n ? scaleThreshold<number, string>()\r\n .domain(colorDomain as number[])\r\n .range(colors)\r\n : scaleLinear<string, string>()\r\n .domain(colorDomain as number[])\r\n .range(colors);\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n style={{ marginLeft: 'auto', marginRight: 'auto' }}\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${0})`}>\r\n {showColumnLabels\r\n ? columns.map((d, i) => (\r\n <XAxesLabels\r\n key={i}\r\n y={0}\r\n x={x(d) as number}\r\n width={barWidth}\r\n height={margin.top - 5}\r\n value={\r\n `${d}`.length < truncateBy ? `${d}` : `${`${d}`.substring(0, truncateBy)}...`\r\n }\r\n style={styles?.xAxis?.labels}\r\n className={classNames?.xAxis?.labels}\r\n alignment='bottom'\r\n animate={{ duration: 0, once: true, amount: 0 }}\r\n isInView={isInView}\r\n />\r\n ))\r\n : null}\r\n </g>\r\n <g transform={`translate(${0},${margin.top})`}>\r\n {showRowLabels\r\n ? rows.map((d, i) => (\r\n <YAxesLabels\r\n value={\r\n `${d}`.length < truncateBy ? `${d}` : `${`${d}`.substring(0, truncateBy)}...`\r\n }\r\n key={i}\r\n y={y(d) as number}\r\n x={0}\r\n width={margin.left}\r\n height={barHeight}\r\n alignment='right'\r\n style={styles?.yAxis?.labels}\r\n className={classNames?.yAxis?.labels}\r\n animate={{ duration: 0, once: true, amount: 0 }}\r\n isInView={isInView}\r\n />\r\n ))\r\n : null}\r\n </g>\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {rows.map((d, i) => (\r\n <g key={i} transform={`translate(0,${y(d)})`}>\r\n {columns.map(el => (\r\n <rect\r\n key={`${d}-${el}`}\r\n x={x(el)}\r\n y={0}\r\n width={barWidth}\r\n height={barHeight}\r\n style={{ fill: noDataColor }}\r\n className='stroke-1 stroke-primary-white dark:stroke-primary-gray-700'\r\n />\r\n ))}\r\n </g>\r\n ))}\r\n {data\r\n .filter(d => !checkIfNullOrUndefined(d.value))\r\n .map((d, i) => {\r\n const color = !checkIfNullOrUndefined(d.value)\r\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n colorScale(d.value as any)\r\n : noDataColor;\r\n return (\r\n <g\r\n key={`${d.column}-${d.row}`}\r\n transform={`translate(${x(d.column)},${y(d.row)})`}\r\n onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onClick={() => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (isEqual(mouseClickData, d) && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n opacity={selectedColor ? (selectedColor === color ? 1 : 0.3) : 1}\r\n >\r\n <motion.rect\r\n x={0}\r\n y={0}\r\n width={barWidth}\r\n height={barHeight}\r\n className='stroke-1 stroke-primary-white dark:stroke-primary-gray-700'\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { fill: color, opacity: 0 },\r\n whileInView: {\r\n fill: color,\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n {showValues && !checkIfNullOrUndefined(d.value) ? (\r\n <motion.g\r\n variants={{\r\n initial: { opacity: 0 },\r\n whileInView: { opacity: 1, transition: { duration: animate.duration } },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n >\r\n <foreignObject key={i} y={0} x={0} width={barWidth} height={barHeight}>\r\n <div className='flex flex-col justify-center items-center h-inherit p-1'>\r\n <p\r\n className={cn(\r\n 'text-xs text-center m-0 leading-[1.25] graph-value',\r\n classNames?.graphObjectValues,\r\n )}\r\n style={{\r\n color: getTextColorBasedOnBgColor(color),\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n >\r\n {numberFormattingFunction(d.value, 'NA', precision, prefix, suffix)}\r\n </p>\r\n </div>\r\n </foreignObject>\r\n </motion.g>\r\n ) : null}\r\n </g>\r\n );\r\n })}\r\n {mouseOverData ? (\r\n <rect\r\n x={x(mouseOverData.column)}\r\n y={y(mouseOverData.row)}\r\n width={barWidth}\r\n height={barHeight}\r\n style={{\r\n fill: 'none',\r\n fillOpacity: 0,\r\n strokeWidth: 1.5,\r\n }}\r\n className='stroke-primary-gray-700 dark:stroke-primary-gray-300'\r\n />\r\n ) : null}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport {\r\n HeatMapDataType,\r\n Languages,\r\n ScaleDataType,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { LinearColorLegend } from '@/Components/Elements/LinearColorLegend';\r\nimport { ThresholdColorLegendWithMouseOver } from '@/Components/Elements/ThresholdColorLegendWithMouseOver';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: HeatMapDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Array of colors for cells */\r\n colors?: string[];\r\n /** Color where data is not available */\r\n noDataColor?: string;\r\n /** Title for the color legend */\r\n colorLegendTitle?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n /** Toggles the background to fill the container. This only works if the width of the graph is defined. */\r\n fillContainer?: boolean;\r\n\r\n // Values and Ticks\r\n /** Prefix for values */\r\n prefix?: string;\r\n /** Suffix for values */\r\n suffix?: string;\r\n /** Maximum value for the chart */\r\n truncateBy?: number;\r\n /** Reference values for comparison */\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of labels in the column */\r\n showColumnLabels?: boolean;\r\n /** Toggle visibility of labels in the row */\r\n showRowLabels?: boolean;\r\n /** Scale for the colors in the cell */\r\n scaleType?: ScaleDataType;\r\n /** Toggle visibility of values */\r\n showValues?: boolean;\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Toggles if the graph animates in when loaded. */\r\n animate?: boolean | AnimateDataType;\r\n /** Domain for the colors in the cell. */\r\n colorDomain: number[] | string[];\r\n /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n\r\n // Interactions and Callbacks\r\n /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n /** Details displayed on the modal when user clicks of a data point. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n /** Callback for mouse over event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n /** Callback for mouse click event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n\r\n // Configuration and Options\r\n /** Language setting */\r\n language?: Languages;\r\n /** Color theme */\r\n theme?: 'light' | 'dark';\r\n /** Unique ID for the graph */\r\n graphID?: string;\r\n}\r\n\r\nexport function HeatMap(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n showColumnLabels = true,\r\n leftMargin = 100,\r\n rightMargin = 10,\r\n truncateBy = 999,\r\n height,\r\n width,\r\n scaleType,\r\n colorDomain,\r\n footNote,\r\n colorLegendTitle,\r\n padding,\r\n backgroundColor = false,\r\n topMargin = 30,\r\n bottomMargin = 10,\r\n tooltip,\r\n onSeriesMouseOver,\r\n suffix = '',\r\n prefix = '',\r\n showRowLabels = true,\r\n relativeHeight,\r\n showValues,\r\n graphID,\r\n noDataColor = Colors.gray,\r\n showColorScale = true,\r\n onSeriesMouseClick,\r\n graphDownload = false,\r\n dataDownload = false,\r\n fillContainer = true,\r\n language = 'en',\r\n showNAColor = true,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate = false,\r\n precision = 2,\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n const scale =\r\n scaleType ||\r\n (typeof colorDomain[0] === 'string'\r\n ? 'categorical'\r\n : colorDomain.length === 2\r\n ? 'linear'\r\n : 'threshold');\r\n\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={fillContainer ? undefined : width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale && data.length > 0 ? (\r\n scale === 'categorical' ? (\r\n <ColorLegendWithMouseOver\r\n width={fillContainer ? undefined : width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={\r\n colors ||\r\n (typeof colorDomain[0] === 'string'\r\n ? Colors[theme].categoricalColors.colors\r\n : colorDomain.length === 2\r\n ? [\r\n Colors[theme].sequentialColors.neutralColorsx09[0],\r\n Colors[theme].sequentialColors.neutralColorsx09[8],\r\n ]\r\n : Colors[theme].sequentialColors[\r\n `neutralColorsx0${(colorDomain.length + 1) as 4 | 5 | 6 | 7 | 8 | 9}`\r\n ])\r\n }\r\n colorDomain={colorDomain.map(d => `${d}`)}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : scale === 'threshold' ? (\r\n <ThresholdColorLegendWithMouseOver\r\n width={fillContainer ? undefined : width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={\r\n colors ||\r\n (typeof colorDomain[0] === 'string'\r\n ? Colors[theme].categoricalColors.colors\r\n : colorDomain.length === 2\r\n ? [\r\n Colors[theme].sequentialColors.neutralColorsx09[0],\r\n Colors[theme].sequentialColors.neutralColorsx09[8],\r\n ]\r\n : Colors[theme].sequentialColors[\r\n `neutralColorsx0${(colorDomain.length + 1) as 4 | 5 | 6 | 7 | 8 | 9}`\r\n ])\r\n }\r\n colorDomain={colorDomain as number[]}\r\n setSelectedColor={setSelectedColor}\r\n naColor={noDataColor}\r\n showNAColor={showNAColor}\r\n />\r\n ) : (\r\n <LinearColorLegend\r\n width={fillContainer ? undefined : width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={\r\n colors || [\r\n Colors[theme].sequentialColors.neutralColorsx09[0],\r\n Colors[theme].sequentialColors.neutralColorsx09[8],\r\n ]\r\n }\r\n colorDomain={colorDomain as number[]}\r\n className={classNames?.colorLegend}\r\n />\r\n )\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {svgWidth && svgHeight && data.length > 0 ? (\r\n <Graph\r\n data={data}\r\n colorDomain={colorDomain}\r\n width={fillContainer || !width ? svgWidth : svgWidth < width ? svgWidth : width}\r\n height={svgHeight}\r\n colors={\r\n colors ||\r\n (typeof colorDomain[0] === 'string'\r\n ? Colors[theme].categoricalColors.colors\r\n : colorDomain.length === 2\r\n ? [\r\n Colors[theme].sequentialColors.neutralColorsx09[0],\r\n Colors[theme].sequentialColors.neutralColorsx09[8],\r\n ]\r\n : Colors[theme].sequentialColors[\r\n `neutralColorsx0${(colorDomain.length + 1) as 4 | 5 | 6 | 7 | 8 | 9}`\r\n ])\r\n }\r\n noDataColor={noDataColor}\r\n scaleType={scale}\r\n showColumnLabels={showColumnLabels}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n selectedColor={selectedColor}\r\n truncateBy={truncateBy}\r\n showRowLabels={showRowLabels}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n showValues={showValues}\r\n suffix={suffix}\r\n prefix={prefix}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\r\n animate={\r\n animate === true\r\n ? { duration: 0.5, once: true, amount: 0.5 }\r\n : animate || { duration: 0, once: true, amount: 0 }\r\n }\r\n precision={precision}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["Graph","props","$","_c","data","showColumnLabels","leftMargin","rightMargin","truncateBy","width","height","topMargin","bottomMargin","tooltip","onSeriesMouseOver","suffix","prefix","showValues","colorDomain","colors","noDataColor","scaleType","showRowLabels","selectedColor","onSeriesMouseClick","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","animate","precision","svgRef","useRef","t0","amount","once","isInView","useInView","t1","top","bottom","left","right","margin","mouseClickData","setMouseClickData","useState","undefined","mouseOverData","setMouseOverData","eventX","setEventX","eventY","setEventY","graphWidth","graphHeight","T0","t10","t11","t12","t13","t2","t3","t4","t5","t6","t7","t8","t9","duration","graphObjectValues","xAxis","labels","yAxis","columns","uniqBy","rows","y","scaleBand","domain","range","barHeight","bandwidth","x","barWidth","colorScale","scaleOrdinal","scaleThreshold","scaleLinear","motion","svg","Symbol","for","marginLeft","marginRight","jsx","map","d","i","XAxesLabels","length","substring","d_0","i_0","YAxesLabels","d_1","i_1","el","fill","filter","_temp","d_3","i_2","color","checkIfNullOrUndefined","value","jsxs","column","row","event","clientY","clientX","isEqual","event_0","opacity","transition","initial","whileInView","cn","getTextColorBasedOnBgColor","numberFormattingFunction","fillOpacity","strokeWidth","t14","t15","t16","Tooltip","t17","modal","DetailsModal","t18","Fragment","d_2","HeatMap","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","graphID","showColorScale","graphDownload","dataDownload","fillContainer","language","showNAColor","minHeight","theme","ariaLabel","t19","t20","t21","Colors","gray","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","t22","t23","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","useEffect","scale","t24","graphContainer","t25","t26","t27","description","title","GraphHeader","_temp2","_temp3","_temp4","_temp5","t28","colorLegend","ColorLegendWithMouseOver","categoricalColors","sequentialColors","neutralColorsx09","_temp6","ThresholdColorLegendWithMouseOver","LinearColorLegend","t29","EmptyState","t30","t31","GraphArea","t32","footnote","source","GraphFooter","t33","GraphContainer","d_4"],"mappings":"mjCAwDO,SAAAA,GAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,EAAA,EACL,CAAAC,KAAAA,EAAAC,iBAAAA,EAAAC,WAAAA,EAAAC,YAAAA,EAAAC,WAAAA,EAAAC,MAAAA,EAAAC,OAAAA,EAAAC,UAAAA,GAAAC,aAAAA,GAAAC,QAAAA,EAAAC,kBAAAA,EAAAC,OAAAA,GAAAC,OAAAA,EAAAC,WAAAA,EAAAC,YAAAA,EAAAC,OAAAA,EAAAC,YAAAA,GAAAC,UAAAA,GAAAC,cAAAA,GAAAC,cAAAA,GAAAC,mBAAAA,EAAAC,4BAAAA,GAAAC,eAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,QAAAA,EAAAC,UAAAA,EAAAA,EA4BI7B,EACJ8B,GAAeC,EAAAA,OAAO,IAAI,EAAE,IAAAC,GAAA/B,EAAA,CAAA,IAAA2B,EAAAK,QAAAhC,EAAA,CAAA,IAAA2B,EAAAM,MACOF,GAAA,CAAAE,KAC3BN,EAAOM,KAAKD,OACVL,E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ACVU,MAAAA,EACGH,SAAAA,GACCE,UAAAA,GACJ,MAAA+B,GACCpL,OAAAA,EACQ6I,eAAAA,EACPF,QAAAA,EAER0C,SAAAA,CAAAA,GAuBAQ,GA4DDY,GAkDCE,EAAAA,EAYH,EAAiBnN,MAAA+J,GAAA/J,MAAAoJ,EAAApJ,MAAAsJ,GAAAtJ,MAAAQ,EAAAR,MAAA2J,GAAA3J,MAAA6J,GAAA7J,MAAAmJ,EAAAnJ,MAAAqJ,EAAArJ,MAAAyL,GAAAzL,MAAA2L,GAAA3L,MAAA4L,GAAA5L,MAAA6L,GAAA7L,MAAAqM,GAAArM,MAAAiN,GAAAjN,MAAAmN,GAAAnN,MAAA8J,EAAA9J,MAAAuN,IAAAA,GAAAvN,EAAA,EAAA,EAhKjBuN,EAgKiB,CA1Od,SAAAZ,GAAAc,EAAA,CAAA,MAkIuC,GAAG1H,CAAC,EAAE,CAlI7C,SAAAqG,GAAA7F,EAAA,CAAA,OA2G4BR,IAAMlD,MAAS,CA3G3C,SAAAsJ,GAAA/F,EAAA,CAAA,OA0G6CL,IAAMlD,MAAS,CA1G5D,SAAAqJ,GAAAnG,EAAA,CAAA,OA0GyBA,EAAC7F,IAAK,CA1G/B,SAAA+L,GAAApF,EAAA,CAAA,OAyG2Cd,IAAMlD,MAAS,CAzG1D,SAAA+D,GAAAgC,EAAA,CAAA,OAyGuB7C,EAAC7F,IAAK"}
|
|
1
|
+
{"version":3,"file":"HeatMap.cjs","sources":["../src/Components/Graphs/HeatMap/Graph.tsx","../src/Components/Graphs/HeatMap/index.tsx"],"sourcesContent":["import isEqual from 'fast-deep-equal';\r\nimport { scaleLinear, scaleBand, scaleOrdinal, scaleThreshold } from 'd3-scale';\r\nimport { useRef, useState } from 'react';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n HeatMapDataType,\r\n ScaleDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { getTextColorBasedOnBgColor } from '@/Utils/getTextColorBasedOnBgColor';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { XAxesLabels } from '@/Components/Elements/Axes/XAxesLabels';\r\nimport { YAxesLabels } from '@/Components/Elements/Axes/YAxesLabels';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n data: HeatMapDataType[];\r\n colorDomain: string[] | number[];\r\n colors: string[];\r\n noDataColor: string;\r\n scaleType: ScaleDataType;\r\n showColumnLabels: boolean;\r\n leftMargin: number;\r\n truncateBy: number;\r\n width: number;\r\n height: number;\r\n rightMargin: number;\r\n topMargin: number;\r\n showRowLabels: boolean;\r\n bottomMargin: number;\r\n suffix: string;\r\n prefix: string;\r\n showValues?: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n selectedColor?: string;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n resetSelectionOnDoubleClick: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n animate: AnimateDataType;\r\n precision: number;\r\n locale: string;\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n showColumnLabels,\r\n leftMargin,\r\n rightMargin,\r\n truncateBy,\r\n width,\r\n height,\r\n topMargin,\r\n bottomMargin,\r\n tooltip,\r\n onSeriesMouseOver,\r\n suffix,\r\n prefix,\r\n showValues,\r\n colorDomain,\r\n colors,\r\n noDataColor,\r\n scaleType,\r\n showRowLabels,\r\n selectedColor,\r\n onSeriesMouseClick,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate,\r\n precision,\r\n locale,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: leftMargin,\r\n right: rightMargin,\r\n };\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseClickData, setMouseClickData] = useState<any>(undefined);\r\n const [mouseOverData, setMouseOverData] = useState<HeatMapDataType | undefined>(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n const columns = uniqBy(data, 'column', true) as string[];\r\n const rows = uniqBy(data, 'row', true) as string[];\r\n const y = scaleBand().domain(rows).range([0, graphHeight]);\r\n const barHeight = y.bandwidth();\r\n const x = scaleBand().domain(columns).range([0, graphWidth]);\r\n const barWidth = x.bandwidth();\r\n const colorScale =\r\n scaleType === 'categorical'\r\n ? scaleOrdinal<number | string, string>().domain(colorDomain).range(colors)\r\n : scaleType === 'threshold'\r\n ? scaleThreshold<number, string>()\r\n .domain(colorDomain as number[])\r\n .range(colors)\r\n : scaleLinear<string, string>()\r\n .domain(colorDomain as number[])\r\n .range(colors);\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`0 0 ${width} ${height}`}\r\n style={{ marginLeft: 'auto', marginRight: 'auto' }}\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${0})`}>\r\n {showColumnLabels\r\n ? columns.map((d, i) => (\r\n <XAxesLabels\r\n key={i}\r\n y={0}\r\n x={x(d) as number}\r\n width={barWidth}\r\n height={margin.top - 5}\r\n value={\r\n `${d}`.length < truncateBy ? `${d}` : `${`${d}`.substring(0, truncateBy)}...`\r\n }\r\n style={styles?.xAxis?.labels}\r\n className={classNames?.xAxis?.labels}\r\n alignment='bottom'\r\n animate={{ duration: 0, once: true, amount: 0 }}\r\n isInView={isInView}\r\n />\r\n ))\r\n : null}\r\n </g>\r\n <g transform={`translate(${0},${margin.top})`}>\r\n {showRowLabels\r\n ? rows.map((d, i) => (\r\n <YAxesLabels\r\n value={\r\n `${d}`.length < truncateBy ? `${d}` : `${`${d}`.substring(0, truncateBy)}...`\r\n }\r\n key={i}\r\n y={y(d) as number}\r\n x={0}\r\n width={margin.left}\r\n height={barHeight}\r\n alignment='right'\r\n style={styles?.yAxis?.labels}\r\n className={classNames?.yAxis?.labels}\r\n animate={{ duration: 0, once: true, amount: 0 }}\r\n isInView={isInView}\r\n />\r\n ))\r\n : null}\r\n </g>\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {rows.map((d, i) => (\r\n <g key={i} transform={`translate(0,${y(d)})`}>\r\n {columns.map(el => (\r\n <rect\r\n key={`${d}-${el}`}\r\n x={x(el)}\r\n y={0}\r\n width={barWidth}\r\n height={barHeight}\r\n style={{ fill: noDataColor }}\r\n className='stroke-1 stroke-primary-white dark:stroke-primary-gray-700'\r\n />\r\n ))}\r\n </g>\r\n ))}\r\n {data\r\n .filter(d => !checkIfNullOrUndefined(d.value))\r\n .map((d, i) => {\r\n const color = !checkIfNullOrUndefined(d.value)\r\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n colorScale(d.value as any)\r\n : noDataColor;\r\n return (\r\n <g\r\n key={`${d.column}-${d.row}`}\r\n transform={`translate(${x(d.column)},${y(d.row)})`}\r\n onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onClick={() => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (isEqual(mouseClickData, d) && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n opacity={selectedColor ? (selectedColor === color ? 1 : 0.3) : 1}\r\n >\r\n <motion.rect\r\n x={0}\r\n y={0}\r\n width={barWidth}\r\n height={barHeight}\r\n className='stroke-1 stroke-primary-white dark:stroke-primary-gray-700'\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n variants={{\r\n initial: { fill: color, opacity: 0 },\r\n whileInView: {\r\n fill: color,\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n />\r\n {showValues && !checkIfNullOrUndefined(d.value) ? (\r\n <motion.g\r\n variants={{\r\n initial: { opacity: 0 },\r\n whileInView: { opacity: 1, transition: { duration: animate.duration } },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n >\r\n <foreignObject key={i} y={0} x={0} width={barWidth} height={barHeight}>\r\n <div className='flex flex-col justify-center items-center h-inherit p-1'>\r\n <p\r\n className={cn(\r\n 'text-xs text-center m-0 leading-[1.25] graph-value',\r\n classNames?.graphObjectValues,\r\n )}\r\n style={{\r\n color: getTextColorBasedOnBgColor(color),\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n >\r\n {numberFormattingFunction(\r\n d.value,\r\n undefined,\r\n precision,\r\n prefix,\r\n suffix,\r\n locale,\r\n )}\r\n </p>\r\n </div>\r\n </foreignObject>\r\n </motion.g>\r\n ) : null}\r\n </g>\r\n );\r\n })}\r\n {mouseOverData ? (\r\n <rect\r\n x={x(mouseOverData.column)}\r\n y={y(mouseOverData.row)}\r\n width={barWidth}\r\n height={barHeight}\r\n style={{\r\n fill: 'none',\r\n fillOpacity: 0,\r\n strokeWidth: 1.5,\r\n }}\r\n className='stroke-primary-gray-700 dark:stroke-primary-gray-300'\r\n />\r\n ) : null}\r\n </g>\r\n </motion.svg>\r\n {mouseOverData && tooltip && eventX && eventY ? (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useState, useRef, useEffect } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport {\r\n HeatMapDataType,\r\n Languages,\r\n ScaleDataType,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { LinearColorLegend } from '@/Components/Elements/LinearColorLegend';\r\nimport { ThresholdColorLegendWithMouseOver } from '@/Components/Elements/ThresholdColorLegendWithMouseOver';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: HeatMapDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Array of colors for cells */\r\n colors?: string[];\r\n /** Color where data is not available */\r\n noDataColor?: string;\r\n /** Title for the color legend */\r\n colorLegendTitle?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n /** Toggles the background to fill the container. This only works if the width of the graph is defined. */\r\n fillContainer?: boolean;\r\n\r\n // Values and Ticks\r\n /** Prefix for values */\r\n prefix?: string;\r\n /** Suffix for values */\r\n suffix?: string;\r\n /** Maximum value for the chart */\r\n truncateBy?: number;\r\n /** Reference values for comparison */\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of labels in the column */\r\n showColumnLabels?: boolean;\r\n /** Toggle visibility of labels in the row */\r\n showRowLabels?: boolean;\r\n /** Scale for the colors in the cell */\r\n scaleType?: ScaleDataType;\r\n /** Toggle visibility of values */\r\n showValues?: boolean;\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */\r\n showNAColor?: boolean;\r\n /** Toggles if the graph animates in when loaded. */\r\n animate?: boolean | AnimateDataType;\r\n /** Domain for the colors in the cell. */\r\n colorDomain: number[] | string[];\r\n /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */\r\n locale?: string;\r\n /** Defines how “NA” values should be displayed/labelled in the graph */\r\n naLabel?: string;\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n\r\n // Interactions and Callbacks\r\n /** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n /** Details displayed on the modal when user clicks of a data point. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n /** Callback for mouse over event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n /** Callback for mouse click event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n\r\n // Configuration and Options\r\n /** Language setting */\r\n language?: Languages;\r\n /** Color theme */\r\n theme?: 'light' | 'dark';\r\n /** Unique ID for the graph */\r\n graphID?: string;\r\n}\r\n\r\nexport function HeatMap(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n showColumnLabels = true,\r\n leftMargin = 100,\r\n rightMargin = 10,\r\n truncateBy = 999,\r\n height,\r\n width,\r\n scaleType,\r\n colorDomain,\r\n footNote,\r\n colorLegendTitle,\r\n padding,\r\n backgroundColor = false,\r\n topMargin = 30,\r\n bottomMargin = 10,\r\n tooltip,\r\n onSeriesMouseOver,\r\n suffix = '',\r\n prefix = '',\r\n showRowLabels = true,\r\n relativeHeight,\r\n showValues,\r\n graphID,\r\n noDataColor = Colors.gray,\r\n showColorScale = true,\r\n onSeriesMouseClick,\r\n graphDownload = false,\r\n dataDownload = false,\r\n fillContainer = true,\r\n language = 'en',\r\n showNAColor = true,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n animate = false,\r\n precision = 2,\r\n locale = 'en',\r\n naLabel = 'NA',\r\n } = props;\r\n\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n const scale =\r\n scaleType ||\r\n (typeof colorDomain[0] === 'string'\r\n ? 'categorical'\r\n : colorDomain.length === 2\r\n ? 'linear'\r\n : 'threshold');\r\n\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={fillContainer ? undefined : width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {showColorScale && data.length > 0 ? (\r\n scale === 'categorical' ? (\r\n <ColorLegendWithMouseOver\r\n width={fillContainer ? undefined : width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={\r\n colors ||\r\n (typeof colorDomain[0] === 'string'\r\n ? Colors[theme].categoricalColors.colors\r\n : colorDomain.length === 2\r\n ? [\r\n Colors[theme].sequentialColors.neutralColorsx09[0],\r\n Colors[theme].sequentialColors.neutralColorsx09[8],\r\n ]\r\n : Colors[theme].sequentialColors[\r\n `neutralColorsx0${(colorDomain.length + 1) as 4 | 5 | 6 | 7 | 8 | 9}`\r\n ])\r\n }\r\n colorDomain={colorDomain.map(d => `${d}`)}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor}\r\n className={classNames?.colorLegend}\r\n />\r\n ) : scale === 'threshold' ? (\r\n <ThresholdColorLegendWithMouseOver\r\n width={fillContainer ? undefined : width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={\r\n colors ||\r\n (typeof colorDomain[0] === 'string'\r\n ? Colors[theme].categoricalColors.colors\r\n : colorDomain.length === 2\r\n ? [\r\n Colors[theme].sequentialColors.neutralColorsx09[0],\r\n Colors[theme].sequentialColors.neutralColorsx09[8],\r\n ]\r\n : Colors[theme].sequentialColors[\r\n `neutralColorsx0${(colorDomain.length + 1) as 4 | 5 | 6 | 7 | 8 | 9}`\r\n ])\r\n }\r\n colorDomain={colorDomain as number[]}\r\n setSelectedColor={setSelectedColor}\r\n naColor={noDataColor}\r\n locale={locale}\r\n showNAColor={showNAColor}\r\n naLabel={naLabel}\r\n />\r\n ) : (\r\n <LinearColorLegend\r\n width={fillContainer ? undefined : width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={\r\n colors || [\r\n Colors[theme].sequentialColors.neutralColorsx09[0],\r\n Colors[theme].sequentialColors.neutralColorsx09[8],\r\n ]\r\n }\r\n locale={locale}\r\n colorDomain={colorDomain as number[]}\r\n className={classNames?.colorLegend}\r\n />\r\n )\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {svgWidth && svgHeight && data.length > 0 ? (\r\n <Graph\r\n data={data}\r\n colorDomain={colorDomain}\r\n width={fillContainer || !width ? svgWidth : svgWidth < width ? svgWidth : width}\r\n height={svgHeight}\r\n colors={\r\n colors ||\r\n (typeof colorDomain[0] === 'string'\r\n ? Colors[theme].categoricalColors.colors\r\n : colorDomain.length === 2\r\n ? [\r\n Colors[theme].sequentialColors.neutralColorsx09[0],\r\n Colors[theme].sequentialColors.neutralColorsx09[8],\r\n ]\r\n : Colors[theme].sequentialColors[\r\n `neutralColorsx0${(colorDomain.length + 1) as 4 | 5 | 6 | 7 | 8 | 9}`\r\n ])\r\n }\r\n noDataColor={noDataColor}\r\n scaleType={scale}\r\n showColumnLabels={showColumnLabels}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n selectedColor={selectedColor}\r\n truncateBy={truncateBy}\r\n showRowLabels={showRowLabels}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n showValues={showValues}\r\n suffix={suffix}\r\n prefix={prefix}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\r\n animate={\r\n animate === true\r\n ? { duration: 0.5, once: true, amount: 0.5 }\r\n : animate || { duration: 0, once: true, amount: 0 }\r\n }\r\n precision={precision}\r\n locale={locale}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["Graph","props","$","_c","data","showColumnLabels","leftMargin","rightMargin","truncateBy","width","height","topMargin","bottomMargin","tooltip","onSeriesMouseOver","suffix","prefix","showValues","colorDomain","colors","noDataColor","scaleType","showRowLabels","selectedColor","onSeriesMouseClick","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","animate","precision","locale","svgRef","useRef","t0","amount","once","isInView","useInView","t1","top","bottom","left","right","margin","mouseClickData","setMouseClickData","useState","undefined","mouseOverData","setMouseOverData","eventX","setEventX","eventY","setEventY","graphWidth","graphHeight","T0","t10","t11","t12","t13","t2","t3","t4","t5","t6","t7","t8","t9","duration","graphObjectValues","xAxis","labels","yAxis","columns","uniqBy","rows","y","scaleBand","domain","range","barHeight","bandwidth","x","barWidth","colorScale","scaleOrdinal","scaleThreshold","scaleLinear","motion","svg","Symbol","for","marginLeft","marginRight","jsx","map","d","i","XAxesLabels","length","substring","d_0","i_0","YAxesLabels","d_1","i_1","el","fill","filter","_temp","d_3","i_2","color","checkIfNullOrUndefined","value","jsxs","column","row","event","clientY","clientX","isEqual","event_0","opacity","transition","initial","whileInView","cn","getTextColorBasedOnBgColor","numberFormattingFunction","fillOpacity","strokeWidth","t14","t15","t16","Tooltip","t17","modal","DetailsModal","t18","Fragment","d_2","HeatMap","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","graphID","showColorScale","graphDownload","dataDownload","fillContainer","language","showNAColor","minHeight","theme","ariaLabel","t19","t20","t21","t22","naLabel","t23","Colors","gray","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","t24","t25","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","useEffect","scale","t26","graphContainer","t27","t28","t29","description","title","GraphHeader","_temp2","_temp3","_temp4","_temp5","t30","colorLegend","ColorLegendWithMouseOver","categoricalColors","sequentialColors","neutralColorsx09","_temp6","ThresholdColorLegendWithMouseOver","LinearColorLegend","t31","EmptyState","t32","t33","GraphArea","t34","footnote","source","GraphFooter","t35","GraphContainer","d_4"],"mappings":"mjCAyDO,SAAAA,GAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,EAAA,EACL,CAAAC,KAAAA,EAAAC,iBAAAA,EAAAC,WAAAA,EAAAC,YAAAA,EAAAC,WAAAA,EAAAC,MAAAA,EAAAC,OAAAA,EAAAC,UAAAA,GAAAC,aAAAA,GAAAC,QAAAA,EAAAC,kBAAAA,EAAAC,OAAAA,GAAAC,OAAAA,EAAAC,WAAAA,EAAAC,YAAAA,EAAAC,OAAAA,EAAAC,YAAAA,GAAAC,UAAAA,GAAAC,cAAAA,GAAAC,cAAAA,GAAAC,mBAAAA,EAAAC,4BAAAA,GAAAC,eAAAA,EAAAC,OAAAA,EAAAC,WAAAA,EAAAC,QAAAA,EAAAC,UAAAA,GAAAC,OAAAA,EAAAA,EA6BI9B,EACJ+B,GAAeC,EAAAA,OAAO,IAAI,EAAE,IAAAC,GAAAhC,EAAA,CAAA,IAAA2B,EAAAM,QAAAjC,EAAA,CAAA,IAAA2B,EAAAO,MACOF,GAAA,CAAAE,KAC3BP,EAAOO,KAAKD,OACVN,EAAOM,MAAAA,EAChBjC,EAAA,CAAA,EAAA2B,EAAAM,OAAAjC,EAAA,CAAA,EAAA2B,EAAAO,KAAAlC,KAAAgC,IAAAA,GAAAhC,EAAA,CAAA,EAHD,MAAAmC,EAAiB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number[] | string[];
|
|
121
121
|
/** Specifies the number of decimal places to display in the value. */
|
|
122
122
|
precision?: number;
|
|
123
|
+
/** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
|
|
124
|
+
locale?: string;
|
|
125
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
126
|
+
naLabel?: string;
|
|
123
127
|
/** Enable graph download option as png */
|
|
124
128
|
graphDownload?: boolean;
|
|
125
129
|
/** Enable data download option as a csv */
|