@undp/data-viz 1.2.7 → 1.3.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.d.ts +224 -0
- package/dist/AreaChart.js +2 -0
- package/dist/AreaChart.js.map +1 -0
- package/dist/Axis-BlyBRMNw.cjs +2 -0
- package/dist/Axis-BlyBRMNw.cjs.map +1 -0
- package/dist/Axis-CvK-w3E2.js +44 -0
- package/dist/Axis-CvK-w3E2.js.map +1 -0
- package/dist/AxisTitle-BY8MI9jC.cjs +2 -0
- package/dist/AxisTitle-BY8MI9jC.cjs.map +1 -0
- package/dist/AxisTitle-BeMxcw5I.js +21 -0
- package/dist/AxisTitle-BeMxcw5I.js.map +1 -0
- package/dist/BarGraph.d.ts +460 -0
- package/dist/BarGraph.js +2 -0
- package/dist/BarGraph.js.map +1 -0
- package/dist/BasicStatCard.d.ts +106 -0
- package/dist/BasicStatCard.js +2 -0
- package/dist/BasicStatCard.js.map +1 -0
- package/dist/BeeSwarmChart.d.ts +189 -0
- package/dist/BeeSwarmChart.js +2 -0
- package/dist/BeeSwarmChart.js.map +1 -0
- package/dist/BiVariateChoroplethMap.d.ts +189 -0
- package/dist/BiVariateChoroplethMap.js +2 -0
- package/dist/BiVariateChoroplethMap.js.map +1 -0
- package/dist/BulletChart.d.ts +219 -0
- package/dist/BulletChart.js +2 -0
- package/dist/BulletChart.js.map +1 -0
- package/dist/ButterflyChart.d.ts +201 -0
- package/dist/ButterflyChart.js +2 -0
- package/dist/ButterflyChart.js.map +1 -0
- package/dist/ChoroplethMap.d.ts +190 -0
- package/dist/ChoroplethMap.js +2 -0
- package/dist/ChoroplethMap.js.map +1 -0
- package/dist/CirclePackingGraph.d.ts +161 -0
- package/dist/CirclePackingGraph.js +2 -0
- package/dist/CirclePackingGraph.js.map +1 -0
- package/dist/ColorLegend.d.ts +17 -0
- package/dist/ColorLegend.js +2 -0
- package/dist/ColorLegend.js.map +1 -0
- package/dist/ColorLegendWithMouseOver.d.ts +16 -0
- package/dist/ColorLegendWithMouseOver.js +2 -0
- package/dist/ColorLegendWithMouseOver.js.map +1 -0
- package/dist/Colors.d.ts +174 -0
- package/dist/Colors.js +2 -0
- package/dist/Colors.js.map +1 -0
- package/dist/CopyTextButton.d.ts +13 -0
- package/dist/CopyTextButton.js +17 -0
- package/dist/CopyTextButton.js.map +1 -0
- package/dist/CsvDownloadButton.d.ts +22 -0
- package/dist/CsvDownloadButton.js +23 -0
- package/dist/CsvDownloadButton.js.map +1 -0
- package/dist/DataCards.d.ts +131 -0
- package/dist/DataCards.js +2 -0
- package/dist/DataCards.js.map +1 -0
- package/dist/DataTable.d.ts +122 -0
- package/dist/DataTable.js +2 -0
- package/dist/DataTable.js.map +1 -0
- package/dist/DifferenceLineChart.d.ts +237 -0
- package/dist/DifferenceLineChart.js +2 -0
- package/dist/DifferenceLineChart.js.map +1 -0
- package/dist/DonutChart.d.ts +148 -0
- package/dist/DonutChart.js +2 -0
- package/dist/DonutChart.js.map +1 -0
- package/dist/DotDensityMap.d.ts +191 -0
- package/dist/DotDensityMap.js +2 -0
- package/dist/DotDensityMap.js.map +1 -0
- package/dist/DropdownSelect-CuzV7gdj.cjs +29 -0
- package/dist/DropdownSelect-CuzV7gdj.cjs.map +1 -0
- package/dist/DropdownSelect-DmZsXrhY.js +2698 -0
- package/dist/DropdownSelect-DmZsXrhY.js.map +1 -0
- package/dist/DualAxisLineChart.d.ts +180 -0
- package/dist/DualAxisLineChart.js +2 -0
- package/dist/DualAxisLineChart.js.map +1 -0
- package/dist/DumbbellChart.d.ts +224 -0
- package/dist/DumbbellChart.js +2 -0
- package/dist/DumbbellChart.js.map +1 -0
- package/dist/EmptyState-BQguKAp5.cjs +2 -0
- package/dist/EmptyState-BQguKAp5.cjs.map +1 -0
- package/dist/EmptyState-b2Ln487i.js +22 -0
- package/dist/EmptyState-b2Ln487i.js.map +1 -0
- package/dist/ExcelDownloadButton.d.ts +22 -0
- package/dist/ExcelDownloadButton.js +2 -0
- package/dist/ExcelDownloadButton.js.map +1 -0
- package/dist/FootNote.d.ts +12 -0
- package/dist/FootNote.js +2 -0
- package/dist/FootNote.js.map +1 -0
- package/dist/GeoHubCompareMaps.d.ts +103 -0
- package/dist/GeoHubCompareMaps.js +2 -0
- package/dist/GeoHubCompareMaps.js.map +1 -0
- package/dist/GeoHubMap.d.ts +118 -0
- package/dist/GeoHubMap.js +2 -0
- package/dist/GeoHubMap.js.map +1 -0
- package/dist/GeoHubMapWithLayerSelection.d.ts +117 -0
- package/dist/GeoHubMapWithLayerSelection.js +2 -0
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -0
- package/dist/GraphDescription.d.ts +12 -0
- package/dist/GraphDescription.js +2 -0
- package/dist/GraphDescription.js.map +1 -0
- package/dist/GraphFooter.d.ts +24 -0
- package/dist/GraphFooter.js +2 -0
- package/dist/GraphFooter.js.map +1 -0
- package/dist/GraphHeader.d.ts +22 -0
- package/dist/GraphHeader.js +2 -0
- package/dist/GraphHeader.js.map +1 -0
- package/dist/GraphTitle.d.ts +13 -0
- package/dist/GraphTitle.js +2 -0
- package/dist/GraphTitle.js.map +1 -0
- package/dist/GriddedGraphs.d.ts +540 -0
- package/dist/GriddedGraphs.js +2 -0
- package/dist/GriddedGraphs.js.map +1 -0
- package/dist/GriddedGraphsFromConfig.d.ts +543 -0
- package/dist/GriddedGraphsFromConfig.js +2 -0
- package/dist/GriddedGraphsFromConfig.js.map +1 -0
- package/dist/HeatMap.d.ts +166 -0
- package/dist/HeatMap.js +2 -0
- package/dist/HeatMap.js.map +1 -0
- package/dist/Histogram.d.ts +165 -0
- package/dist/Histogram.js +2 -0
- package/dist/Histogram.js.map +1 -0
- package/dist/ImageDownloadButton.d.ts +15 -0
- package/dist/ImageDownloadButton.js +2 -0
- package/dist/ImageDownloadButton.js.map +1 -0
- package/dist/LineChartWithConfidenceInterval.d.ts +250 -0
- package/dist/LineChartWithConfidenceInterval.js +2 -0
- package/dist/LineChartWithConfidenceInterval.js.map +1 -0
- package/dist/LinearColorLegend.d.ts +13 -0
- package/dist/LinearColorLegend.js +2 -0
- package/dist/LinearColorLegend.js.map +1 -0
- package/dist/Modal-C9txyGOk.js +723 -0
- package/dist/Modal-C9txyGOk.js.map +1 -0
- package/dist/Modal-cQF2UQIa.cjs +46 -0
- package/dist/Modal-cQF2UQIa.cjs.map +1 -0
- package/dist/MultiGraphDashboard.d.ts +558 -0
- package/dist/MultiGraphDashboard.js +2 -0
- package/dist/MultiGraphDashboard.js.map +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +562 -0
- package/dist/MultiGraphDashboardFromConfig.js +2 -0
- package/dist/MultiGraphDashboardFromConfig.js.map +1 -0
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +128 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js +2 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +133 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -0
- package/dist/MultiLineAltChart.d.ts +244 -0
- package/dist/MultiLineAltChart.js +2 -0
- package/dist/MultiLineAltChart.js.map +1 -0
- package/dist/MultiLineChart.d.ts +246 -0
- package/dist/MultiLineChart.js +2 -0
- package/dist/MultiLineChart.js.map +1 -0
- package/dist/ParetoChart.d.ts +178 -0
- package/dist/ParetoChart.js +2 -0
- package/dist/ParetoChart.js.map +1 -0
- package/dist/RadarChart.d.ts +176 -0
- package/dist/RadarChart.js +2 -0
- package/dist/RadarChart.js.map +1 -0
- package/dist/ReferenceLine-BgDdQbDI.js +129 -0
- package/dist/ReferenceLine-BgDdQbDI.js.map +1 -0
- package/dist/ReferenceLine-Bsb5jeE4.cjs +2 -0
- package/dist/ReferenceLine-Bsb5jeE4.cjs.map +1 -0
- package/dist/RegressionLine-BfpCuD7B.cjs +2 -0
- package/dist/RegressionLine-BfpCuD7B.cjs.map +1 -0
- package/dist/RegressionLine-cSljpHaE.js +49 -0
- package/dist/RegressionLine-cSljpHaE.js.map +1 -0
- package/dist/SVGDownloadButton.d.ts +15 -0
- package/dist/SVGDownloadButton.js +2 -0
- package/dist/SVGDownloadButton.js.map +1 -0
- package/dist/SankeyChart.d.ts +178 -0
- package/dist/SankeyChart.js +2 -0
- package/dist/SankeyChart.js.map +1 -0
- package/dist/ScatterPlot.d.ts +266 -0
- package/dist/ScatterPlot.js +2 -0
- package/dist/ScatterPlot.js.map +1 -0
- package/dist/ScrollStory.d.ts +491 -0
- package/dist/ScrollStory.js +2 -0
- package/dist/ScrollStory.js.map +1 -0
- package/dist/SimpleLineChart.d.ts +230 -0
- package/dist/SimpleLineChart.js +2 -0
- package/dist/SimpleLineChart.js.map +1 -0
- package/dist/SingleGraphDashboard.d.ts +545 -0
- package/dist/SingleGraphDashboard.js +2 -0
- package/dist/SingleGraphDashboard.js.map +1 -0
- package/dist/SingleGraphDashboardFromConfig.d.ts +547 -0
- package/dist/SingleGraphDashboardFromConfig.js +2 -0
- package/dist/SingleGraphDashboardFromConfig.js.map +1 -0
- package/dist/SlopeChart.d.ts +167 -0
- package/dist/SlopeChart.js +2 -0
- package/dist/SlopeChart.js.map +1 -0
- package/dist/Source.d.ts +16 -0
- package/dist/Source.js +2 -0
- package/dist/Source.js.map +1 -0
- package/dist/SparkLine.d.ts +139 -0
- package/dist/SparkLine.js +2 -0
- package/dist/SparkLine.js.map +1 -0
- package/dist/Spinner-DN3s4S0H.js +17 -0
- package/dist/Spinner-DN3s4S0H.js.map +1 -0
- package/dist/Spinner-UmN-KPe9.cjs +2 -0
- package/dist/Spinner-UmN-KPe9.cjs.map +1 -0
- package/dist/StatCardFromData.d.ts +115 -0
- package/dist/StatCardFromData.js +2 -0
- package/dist/StatCardFromData.js.map +1 -0
- package/dist/StripChart.d.ts +178 -0
- package/dist/StripChart.js +2 -0
- package/dist/StripChart.js.map +1 -0
- package/dist/ThreeDGlobe.d.ts +158 -0
- package/dist/ThreeDGlobe.js +2 -0
- package/dist/ThreeDGlobe.js.map +1 -0
- package/dist/ThresholdColorLegendWithMouseOver.d.ts +16 -0
- package/dist/ThresholdColorLegendWithMouseOver.js +2 -0
- package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -0
- package/dist/Tooltip-BM18N_3l.cjs +2 -0
- package/dist/Tooltip-BM18N_3l.cjs.map +1 -0
- package/dist/Tooltip-CzZ1wFyF.js +47 -0
- package/dist/Tooltip-CzZ1wFyF.js.map +1 -0
- package/dist/TreeMapGraph.d.ts +158 -0
- package/dist/TreeMapGraph.js +2 -0
- package/dist/TreeMapGraph.js.map +1 -0
- package/dist/Types.d.ts +883 -0
- package/dist/Types.js +2 -0
- package/dist/Types.js.map +1 -0
- package/dist/Typography-CDR-DAHH.cjs +2 -0
- package/dist/Typography-CDR-DAHH.cjs.map +1 -0
- package/dist/Typography-XJoSE-By.js +58 -0
- package/dist/Typography-XJoSE-By.js.map +1 -0
- package/dist/UnitChart.d.ts +132 -0
- package/dist/UnitChart.js +2 -0
- package/dist/UnitChart.js.map +1 -0
- package/dist/XAxesLabels-C9REbQQs.cjs +2 -0
- package/dist/XAxesLabels-C9REbQQs.cjs.map +1 -0
- package/dist/XAxesLabels-DVw7Lvuz.js +58 -0
- package/dist/XAxesLabels-DVw7Lvuz.js.map +1 -0
- package/dist/XTicksAndGridLines-CUefTINd.js +57 -0
- package/dist/XTicksAndGridLines-CUefTINd.js.map +1 -0
- package/dist/XTicksAndGridLines-DuK35ROS.cjs +2 -0
- package/dist/XTicksAndGridLines-DuK35ROS.cjs.map +1 -0
- package/dist/YAxesLabels-CYVY053X.js +53 -0
- package/dist/YAxesLabels-CYVY053X.js.map +1 -0
- package/dist/YAxesLabels-DhBdLk3Z.cjs +2 -0
- package/dist/YAxesLabels-DhBdLk3Z.cjs.map +1 -0
- package/dist/YTicksAndGridLines-BJRXuBdC.js +57 -0
- package/dist/YTicksAndGridLines-BJRXuBdC.js.map +1 -0
- package/dist/YTicksAndGridLines-CtLvzExe.cjs +2 -0
- package/dist/YTicksAndGridLines-CtLvzExe.cjs.map +1 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +2 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs.map +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/dist/area-BE2wo7fv.js +53 -0
- package/dist/area-BE2wo7fv.js.map +1 -0
- package/dist/area-D3Qx7k7K.cjs +2 -0
- package/dist/area-D3Qx7k7K.cjs.map +1 -0
- package/dist/array-B7TkkRH0.js +89 -0
- package/dist/array-B7TkkRH0.js.map +1 -0
- package/dist/array-DKbXV8lR.cjs +2 -0
- package/dist/array-DKbXV8lR.cjs.map +1 -0
- package/dist/band-BEjh2CHI.js +47 -0
- package/dist/band-BEjh2CHI.js.map +1 -0
- package/dist/band-CAApY4Pd.cjs +2 -0
- package/dist/band-CAApY4Pd.cjs.map +1 -0
- package/dist/checkIfMultiple-CaefP4X2.js +2264 -0
- package/dist/checkIfMultiple-CaefP4X2.js.map +1 -0
- package/dist/checkIfMultiple-D3h8to1T.cjs +12 -0
- package/dist/checkIfMultiple-D3h8to1T.cjs.map +1 -0
- package/dist/checkIfNullOrUndefined.d.ts +15 -0
- package/dist/checkIfNullOrUndefined.js +2 -0
- package/dist/checkIfNullOrUndefined.js.map +1 -0
- package/dist/customArea-B47Ew5cT.cjs +2 -0
- package/dist/customArea-B47Ew5cT.cjs.map +1 -0
- package/dist/customArea-I3MsoqIl.js +176 -0
- package/dist/customArea-I3MsoqIl.js.map +1 -0
- package/dist/defaultLocale-BEa-49Qz.js +172 -0
- package/dist/defaultLocale-BEa-49Qz.js.map +1 -0
- package/dist/defaultLocale-DIVzfLaQ.cjs +2 -0
- package/dist/defaultLocale-DIVzfLaQ.cjs.map +1 -0
- package/dist/delaunay-C1uAf38t.js +684 -0
- package/dist/delaunay-C1uAf38t.js.map +1 -0
- package/dist/delaunay-rcy0HhZi.cjs +2 -0
- package/dist/delaunay-rcy0HhZi.cjs.map +1 -0
- package/dist/ensureCompleteData-BBDZbDCE.js +102 -0
- package/dist/ensureCompleteData-BBDZbDCE.js.map +1 -0
- package/dist/ensureCompleteData-DqWQ2Zbi.cjs +2 -0
- package/dist/ensureCompleteData-DqWQ2Zbi.cjs.map +1 -0
- package/dist/excelDownload.d.ts +31 -0
- package/dist/excelDownload.js +2 -0
- package/dist/excelDownload.js.map +1 -0
- package/dist/fetchAndParseData.d.ts +84 -0
- package/dist/fetchAndParseData.js +16 -0
- package/dist/fetchAndParseData.js.map +1 -0
- package/dist/filterData-B8ocT57s.js +14 -0
- package/dist/filterData-B8ocT57s.js.map +1 -0
- package/dist/filterData-DN6py7y_.cjs +2 -0
- package/dist/filterData-DN6py7y_.cjs.map +1 -0
- package/dist/generateCodes.d.ts +25 -0
- package/dist/generateCodes.js +2 -0
- package/dist/generateCodes.js.map +1 -0
- package/dist/generateRandomString-B5zBiJzS.cjs +2 -0
- package/dist/generateRandomString-B5zBiJzS.cjs.map +1 -0
- package/dist/generateRandomString-za3IQGfQ.js +11 -0
- package/dist/generateRandomString-za3IQGfQ.js.map +1 -0
- package/dist/getJenks.d.ts +17 -0
- package/dist/getJenks.js +2 -0
- package/dist/getJenks.js.map +1 -0
- package/dist/getPercentileValue.d.ts +13 -0
- package/dist/getPercentileValue.js +2 -0
- package/dist/getPercentileValue.js.map +1 -0
- package/dist/getQueryParamsFromLink.d.ts +18 -0
- package/dist/getQueryParamsFromLink.js +2 -0
- package/dist/getQueryParamsFromLink.js.map +1 -0
- package/dist/getSchema.d.ts +3256 -0
- package/dist/getSchema.js +2 -0
- package/dist/getSchema.js.map +1 -0
- package/dist/getSliderMarks-CWajGCGq.js +719 -0
- package/dist/getSliderMarks-CWajGCGq.js.map +1 -0
- package/dist/getSliderMarks-DDJ1CdhL.cjs +6 -0
- package/dist/getSliderMarks-DDJ1CdhL.cjs.map +1 -0
- package/dist/getTextColorBasedOnBgColor.d.ts +13 -0
- package/dist/getTextColorBasedOnBgColor.js +2 -0
- package/dist/getTextColorBasedOnBgColor.js.map +1 -0
- package/dist/getUniqValue.d.ts +18 -0
- package/dist/getUniqValue.js +2 -0
- package/dist/getUniqValue.js.map +1 -0
- package/dist/graphList.d.ts +9 -0
- package/dist/graphList.js +2 -0
- package/dist/graphList.js.map +1 -0
- package/dist/imageDownload.d.ts +16 -0
- package/dist/imageDownload.js +3 -0
- package/dist/imageDownload.js.map +1 -0
- package/dist/index-01r5X3Gr-9jE0ObrK.cjs +2 -0
- package/dist/index-01r5X3Gr-9jE0ObrK.cjs.map +1 -0
- package/dist/index-01r5X3Gr-kH7FxQ7P.js +451 -0
- package/dist/index-01r5X3Gr-kH7FxQ7P.js.map +1 -0
- package/dist/index-27yTRcko.js +35 -0
- package/dist/index-27yTRcko.js.map +1 -0
- package/dist/index-B0rbzOoC.cjs +2 -0
- package/dist/index-B0rbzOoC.cjs.map +1 -0
- package/dist/index-BGMGC-HN.cjs +22 -0
- package/dist/index-BGMGC-HN.cjs.map +1 -0
- package/dist/index-BHm2KTjD-2e-Fu8L-.js +702 -0
- package/dist/index-BHm2KTjD-2e-Fu8L-.js.map +1 -0
- package/dist/index-BHm2KTjD-D8FylaKc.cjs +44 -0
- package/dist/index-BHm2KTjD-D8FylaKc.cjs.map +1 -0
- package/dist/index-BIPNFFja.js +506 -0
- package/dist/index-BIPNFFja.js.map +1 -0
- package/dist/index-BLizQDlg.js +658 -0
- package/dist/index-BLizQDlg.js.map +1 -0
- package/dist/index-BXns0-ng.cjs +2 -0
- package/dist/index-BXns0-ng.cjs.map +1 -0
- package/dist/index-BYroABPm.cjs +2 -0
- package/dist/index-BYroABPm.cjs.map +1 -0
- package/dist/index-BczVvEBZ.cjs +2 -0
- package/dist/index-BczVvEBZ.cjs.map +1 -0
- package/dist/index-BzeLQvXk.cjs +2 -0
- package/dist/index-BzeLQvXk.cjs.map +1 -0
- package/dist/index-C1rRk_50.js +273 -0
- package/dist/index-C1rRk_50.js.map +1 -0
- package/dist/index-C21TvELx.cjs +2 -0
- package/dist/index-C21TvELx.cjs.map +1 -0
- package/dist/index-CEc_9zWy.cjs +2 -0
- package/dist/index-CEc_9zWy.cjs.map +1 -0
- package/dist/index-CZbIGs8q.cjs +2 -0
- package/dist/index-CZbIGs8q.cjs.map +1 -0
- package/dist/index-CaAIPGZo.js +631 -0
- package/dist/index-CaAIPGZo.js.map +1 -0
- package/dist/index-CbVeVrla.cjs +2 -0
- package/dist/index-CbVeVrla.cjs.map +1 -0
- package/dist/index-CqzhBPuO-CfQywbdq.js +41 -0
- package/dist/index-CqzhBPuO-CfQywbdq.js.map +1 -0
- package/dist/index-CqzhBPuO-raKZqS7l.cjs +2 -0
- package/dist/index-CqzhBPuO-raKZqS7l.cjs.map +1 -0
- package/dist/index-D7ltPi18.js +26 -0
- package/dist/index-D7ltPi18.js.map +1 -0
- package/dist/index-DSnvdkHZ.js +495 -0
- package/dist/index-DSnvdkHZ.js.map +1 -0
- package/dist/index-DXmF_0ez.js +308 -0
- package/dist/index-DXmF_0ez.js.map +1 -0
- package/dist/index-Db-Yg_Ud.js +120 -0
- package/dist/index-Db-Yg_Ud.js.map +1 -0
- package/dist/index-Ds0uHjK9.cjs +2 -0
- package/dist/index-Ds0uHjK9.cjs.map +1 -0
- package/dist/index-DxagiOHo.js +707 -0
- package/dist/index-DxagiOHo.js.map +1 -0
- package/dist/index-DzdwZ2OA.js +77 -0
- package/dist/index-DzdwZ2OA.js.map +1 -0
- package/dist/index-UV9hjG_S.js +53 -0
- package/dist/index-UV9hjG_S.js.map +1 -0
- package/dist/index-a2C2Bqn2.cjs +10 -0
- package/dist/index-a2C2Bqn2.cjs.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1 -52484
- package/dist/index.js.map +1 -1
- package/dist/init-BhZylTFx.js +63 -0
- package/dist/init-BhZylTFx.js.map +1 -0
- package/dist/init-DU0ybBc_.cjs +2 -0
- package/dist/init-DU0ybBc_.cjs.map +1 -0
- package/dist/line-CPfhohvF.js +68 -0
- package/dist/line-CPfhohvF.js.map +1 -0
- package/dist/line-DHV4JwCR.cjs +2 -0
- package/dist/line-DHV4JwCR.cjs.map +1 -0
- package/dist/linear-BVckp9RD.cjs +2 -0
- package/dist/linear-BVckp9RD.cjs.map +1 -0
- package/dist/linear-DUdu7l2G.js +221 -0
- package/dist/linear-DUdu7l2G.js.map +1 -0
- package/dist/numberFormattingFunction.d.ts +22 -0
- package/dist/numberFormattingFunction.js +2 -0
- package/dist/numberFormattingFunction.js.map +1 -0
- package/dist/ordinal-BOeNbyae.cjs +2 -0
- package/dist/ordinal-BOeNbyae.cjs.map +1 -0
- package/dist/ordinal-w9Lu4Stb.js +62 -0
- package/dist/ordinal-w9Lu4Stb.js.map +1 -0
- package/dist/parse-DlCRUFh_.js +2768 -0
- package/dist/parse-DlCRUFh_.js.map +1 -0
- package/dist/parse-hMnG_lRV.cjs +2 -0
- package/dist/parse-hMnG_lRV.cjs.map +1 -0
- package/dist/pointer-CWRWOsrb.js +23 -0
- package/dist/pointer-CWRWOsrb.js.map +1 -0
- package/dist/pointer-Dkq5NV1q.cjs +2 -0
- package/dist/pointer-Dkq5NV1q.cjs.map +1 -0
- package/dist/pow-B5-jkdHU.cjs +2 -0
- package/dist/pow-B5-jkdHU.cjs.map +1 -0
- package/dist/pow-e8zx3AQJ.js +35 -0
- package/dist/pow-e8zx3AQJ.js.map +1 -0
- package/dist/removeOutliers.d.ts +16 -0
- package/dist/removeOutliers.js +2 -0
- package/dist/removeOutliers.js.map +1 -0
- package/dist/select-Bnfk0lJx.cjs +2 -0
- package/dist/select-Bnfk0lJx.cjs.map +1 -0
- package/dist/select-DKy99ogv.js +584 -0
- package/dist/select-DKy99ogv.js.map +1 -0
- package/dist/simple-statistics-flVzqVtt.js +65 -0
- package/dist/simple-statistics-flVzqVtt.js.map +1 -0
- package/dist/simple-statistics-xm8c0LQQ.cjs +2 -0
- package/dist/simple-statistics-xm8c0LQQ.cjs.map +1 -0
- package/dist/step-BZ3C8QFW.cjs +2 -0
- package/dist/step-BZ3C8QFW.cjs.map +1 -0
- package/dist/step-BrDul-H4.js +119 -0
- package/dist/step-BrDul-H4.js.map +1 -0
- package/dist/string-B8KlVSPX.js +364 -0
- package/dist/string-B8KlVSPX.js.map +1 -0
- package/dist/string-CRoCZCYa.cjs +2 -0
- package/dist/string-CRoCZCYa.cjs.map +1 -0
- package/dist/string2HTML-BX0oNw83.js +758 -0
- package/dist/string2HTML-BX0oNw83.js.map +1 -0
- package/dist/string2HTML-X4ZYX5jI.cjs +3 -0
- package/dist/string2HTML-X4ZYX5jI.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/svgDownload.d.ts +16 -0
- package/dist/svgDownload.js +2 -0
- package/dist/svgDownload.js.map +1 -0
- package/dist/threshold-DFfqcDMa.js +23 -0
- package/dist/threshold-DFfqcDMa.js.map +1 -0
- package/dist/threshold-DNsSUf8Q.cjs +2 -0
- package/dist/threshold-DNsSUf8Q.cjs.map +1 -0
- package/dist/time-Byw_jYQ7.cjs +2 -0
- package/dist/time-Byw_jYQ7.cjs.map +1 -0
- package/dist/time-BzJP5SPC.js +715 -0
- package/dist/time-BzJP5SPC.js.map +1 -0
- package/dist/timer-B39XOBYL.js +124 -0
- package/dist/timer-B39XOBYL.js.map +1 -0
- package/dist/timer-CKyBCVzT.cjs +2 -0
- package/dist/timer-CKyBCVzT.cjs.map +1 -0
- package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js +139 -0
- package/dist/toConsumableArray-BSMMWi3w-Cu4vcE-m.js.map +1 -0
- package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs +4 -0
- package/dist/toConsumableArray-BSMMWi3w-DJL7-zAp.cjs.map +1 -0
- package/dist/transformColumnsToArray.d.ts +38 -0
- package/dist/transformColumnsToArray.js +2 -0
- package/dist/transformColumnsToArray.js.map +1 -0
- package/dist/transformDataForAggregation.d.ts +38 -0
- package/dist/transformDataForAggregation.js +2 -0
- package/dist/transformDataForAggregation.js.map +1 -0
- package/dist/transformDataForGraph.d.ts +47 -0
- package/dist/transformDataForGraph.js +2 -0
- package/dist/transformDataForGraph.js.map +1 -0
- package/dist/transformDataForGraphFromFile.d.ts +66 -0
- package/dist/transformDataForGraphFromFile.js +2 -0
- package/dist/transformDataForGraphFromFile.js.map +1 -0
- package/dist/use-in-view-CZPXmTZM.js +4645 -0
- package/dist/use-in-view-CZPXmTZM.js.map +1 -0
- package/dist/use-in-view-Dl1CsAIo.cjs +2 -0
- package/dist/use-in-view-Dl1CsAIo.cjs.map +1 -0
- package/dist/validateSchema.d.ts +68 -0
- package/dist/validateSchema.js +2 -0
- package/dist/validateSchema.js.map +1 -0
- package/dist/x-Dft9NVe_-DcB7wtv5.js +61 -0
- package/dist/x-Dft9NVe_-DcB7wtv5.js.map +1 -0
- package/dist/x-Dft9NVe_-LeyJu02C.cjs +27 -0
- package/dist/x-Dft9NVe_-LeyJu02C.cjs.map +1 -0
- package/dist/y-D0sAaVii.js +421 -0
- package/dist/y-D0sAaVii.js.map +1 -0
- package/dist/y-QcCbqrzx.cjs +2 -0
- package/dist/y-QcCbqrzx.cjs.map +1 -0
- package/dist/zoom-Lo7IAUfC.cjs +2 -0
- package/dist/zoom-Lo7IAUfC.cjs.map +1 -0
- package/dist/zoom-_lqdiGoI.js +1983 -0
- package/dist/zoom-_lqdiGoI.js.map +1 -0
- package/package.json +415 -4
- package/dist/index.cjs +0 -68
- package/dist/index.cjs.map +0 -1
|
@@ -0,0 +1,2264 @@
|
|
|
1
|
+
import { r as be, b as xe, a as We, j as me } from "./index-BHm2KTjD-2e-Fu8L-.js";
|
|
2
|
+
import ne from "react";
|
|
3
|
+
import { a as De, r as Ce, d as Fe, e as Xe } from "./index-01r5X3Gr-kH7FxQ7P.js";
|
|
4
|
+
import { r as ze } from "./x-Dft9NVe_-DcB7wtv5.js";
|
|
5
|
+
import { r as Ye } from "./index-CqzhBPuO-CfQywbdq.js";
|
|
6
|
+
import { r as Ke } from "./Modal-C9txyGOk.js";
|
|
7
|
+
import { T as Ne } from "./Typography-XJoSE-By.js";
|
|
8
|
+
import { ButterflyChart as $e } from "./ButterflyChart.js";
|
|
9
|
+
import { C as Ue } from "./index-DSnvdkHZ.js";
|
|
10
|
+
import { DataTable as Qe } from "./DataTable.js";
|
|
11
|
+
import { DonutChart as Ze } from "./DonutChart.js";
|
|
12
|
+
import { HeatMap as Je } from "./HeatMap.js";
|
|
13
|
+
import { Histogram as ea } from "./Histogram.js";
|
|
14
|
+
import { DualAxisLineChart as aa } from "./DualAxisLineChart.js";
|
|
15
|
+
import { SimpleLineChart as ta } from "./SimpleLineChart.js";
|
|
16
|
+
import { MultiLineChart as oa } from "./MultiLineChart.js";
|
|
17
|
+
import { MultiLineAltChart as ra } from "./MultiLineAltChart.js";
|
|
18
|
+
import { SparkLine as ia } from "./SparkLine.js";
|
|
19
|
+
import { BiVariateChoroplethMap as la } from "./BiVariateChoroplethMap.js";
|
|
20
|
+
import { ChoroplethMap as na } from "./ChoroplethMap.js";
|
|
21
|
+
import { DotDensityMap as sa } from "./DotDensityMap.js";
|
|
22
|
+
import { GeoHubCompareMaps as ca } from "./GeoHubCompareMaps.js";
|
|
23
|
+
import { GeoHubMap as da } from "./GeoHubMap.js";
|
|
24
|
+
import { ParetoChart as ga } from "./ParetoChart.js";
|
|
25
|
+
import { ScatterPlot as ha } from "./ScatterPlot.js";
|
|
26
|
+
import { SlopeChart as ua } from "./SlopeChart.js";
|
|
27
|
+
import { AreaChart as pa } from "./AreaChart.js";
|
|
28
|
+
import { StatCardFromData as ma } from "./StatCardFromData.js";
|
|
29
|
+
import { TreeMapGraph as fa } from "./TreeMapGraph.js";
|
|
30
|
+
import { UnitChart as ba } from "./UnitChart.js";
|
|
31
|
+
import { DifferenceLineChart as xa } from "./DifferenceLineChart.js";
|
|
32
|
+
import { GeoHubMapWithLayerSelection as Da } from "./GeoHubMapWithLayerSelection.js";
|
|
33
|
+
import { SankeyChart as Ca } from "./SankeyChart.js";
|
|
34
|
+
import { LineChartWithConfidenceInterval as wa } from "./LineChartWithConfidenceInterval.js";
|
|
35
|
+
import { D as ka } from "./index-BIPNFFja.js";
|
|
36
|
+
import { StackedBarGraph as ya, GroupedBarGraph as va, SimpleBarGraph as Ta } from "./BarGraph.js";
|
|
37
|
+
import { DumbbellChart as La } from "./DumbbellChart.js";
|
|
38
|
+
import { StripChart as Oa } from "./StripChart.js";
|
|
39
|
+
import { BeeSwarmChart as Ma } from "./BeeSwarmChart.js";
|
|
40
|
+
import { RadarChart as Sa } from "./RadarChart.js";
|
|
41
|
+
import { BulletChart as Na } from "./BulletChart.js";
|
|
42
|
+
import { ThreeDGlobe as Ia } from "./ThreeDGlobe.js";
|
|
43
|
+
var we = {}, Ie;
|
|
44
|
+
function Se() {
|
|
45
|
+
return Ie || (Ie = 1, function(u) {
|
|
46
|
+
Object.defineProperty(u, Symbol.toStringTag, { value: "Module" });
|
|
47
|
+
const e = /* @__PURE__ */ be(), i = ne, a = /* @__PURE__ */ De(), s = /* @__PURE__ */ xe();
|
|
48
|
+
function t(k) {
|
|
49
|
+
const f = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
50
|
+
if (k) {
|
|
51
|
+
for (const r in k) if (r !== "default") {
|
|
52
|
+
const V = Object.getOwnPropertyDescriptor(k, r);
|
|
53
|
+
Object.defineProperty(f, r, V.get ? V : { enumerable: !0, get: () => k[r] });
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return f.default = k, Object.freeze(f);
|
|
57
|
+
}
|
|
58
|
+
const o = t(i);
|
|
59
|
+
var c = "Label", L = o.forwardRef((k, f) => e.jsxRuntimeExports.jsx(a.Primitive.label, { ...k, ref: f, onMouseDown: (r) => {
|
|
60
|
+
r.target.closest("button, input, select, textarea") || (k.onMouseDown?.(r), !r.defaultPrevented && r.detail > 1 && r.preventDefault());
|
|
61
|
+
} }));
|
|
62
|
+
L.displayName = c;
|
|
63
|
+
var b = L;
|
|
64
|
+
const D = i.forwardRef(({ className: k, ...f }, r) => e.jsxRuntimeExports.jsx(b, { ...f, ref: r, className: s.cn("text-sm m-0 p-0 block text-primary-gray-700 dark:text-primary-white peer-disabled:cursor-not-allowed peer-disabled:opacity-50", k) }));
|
|
65
|
+
D.displayName = b.displayName, u.Label = D;
|
|
66
|
+
}(we)), we;
|
|
67
|
+
}
|
|
68
|
+
var Tt = /* @__PURE__ */ Se(), ke = {}, ye = {}, ve = {}, He;
|
|
69
|
+
function Ge() {
|
|
70
|
+
if (He) return ve;
|
|
71
|
+
He = 1;
|
|
72
|
+
const u = ne;
|
|
73
|
+
function e(s) {
|
|
74
|
+
const t = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
75
|
+
if (s) {
|
|
76
|
+
for (const o in s) if (o !== "default") {
|
|
77
|
+
const c = Object.getOwnPropertyDescriptor(s, o);
|
|
78
|
+
Object.defineProperty(t, o, c.get ? c : { enumerable: !0, get: () => s[o] });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return t.default = s, Object.freeze(t);
|
|
82
|
+
}
|
|
83
|
+
const i = e(u);
|
|
84
|
+
function a(s) {
|
|
85
|
+
const t = i.useRef({ value: s, previous: s });
|
|
86
|
+
return i.useMemo(() => (t.current.value !== s && (t.current.previous = t.current.value, t.current.value = s), t.current.previous), [s]);
|
|
87
|
+
}
|
|
88
|
+
return ve.usePrevious = a, ve;
|
|
89
|
+
}
|
|
90
|
+
var Te = {}, Ve;
|
|
91
|
+
function qe() {
|
|
92
|
+
if (Ve) return Te;
|
|
93
|
+
Ve = 1;
|
|
94
|
+
const u = ne, e = /* @__PURE__ */ Ce();
|
|
95
|
+
function i(t) {
|
|
96
|
+
const o = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
97
|
+
if (t) {
|
|
98
|
+
for (const c in t) if (c !== "default") {
|
|
99
|
+
const L = Object.getOwnPropertyDescriptor(t, c);
|
|
100
|
+
Object.defineProperty(o, c, L.get ? L : { enumerable: !0, get: () => t[c] });
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return o.default = t, Object.freeze(o);
|
|
104
|
+
}
|
|
105
|
+
const a = i(u);
|
|
106
|
+
function s(t) {
|
|
107
|
+
const [o, c] = a.useState(void 0);
|
|
108
|
+
return e.useLayoutEffect2(() => {
|
|
109
|
+
if (t) {
|
|
110
|
+
c({ width: t.offsetWidth, height: t.offsetHeight });
|
|
111
|
+
const L = new ResizeObserver((b) => {
|
|
112
|
+
if (!Array.isArray(b) || !b.length) return;
|
|
113
|
+
const D = b[0];
|
|
114
|
+
let k, f;
|
|
115
|
+
if ("borderBoxSize" in D) {
|
|
116
|
+
const r = D.borderBoxSize, V = Array.isArray(r) ? r[0] : r;
|
|
117
|
+
k = V.inlineSize, f = V.blockSize;
|
|
118
|
+
} else k = t.offsetWidth, f = t.offsetHeight;
|
|
119
|
+
c({ width: k, height: f });
|
|
120
|
+
});
|
|
121
|
+
return L.observe(t, { box: "border-box" }), () => L.unobserve(t);
|
|
122
|
+
} else c(void 0);
|
|
123
|
+
}, [t]), o;
|
|
124
|
+
}
|
|
125
|
+
return Te.useSize = s, Te;
|
|
126
|
+
}
|
|
127
|
+
var Le = {}, je;
|
|
128
|
+
function Ha() {
|
|
129
|
+
if (je) return Le;
|
|
130
|
+
je = 1;
|
|
131
|
+
const u = /* @__PURE__ */ ze();
|
|
132
|
+
/**
|
|
133
|
+
* @license lucide-react v0.488.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/
|
|
138
|
+
const e = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], i = u.createLucideIcon("check", e);
|
|
139
|
+
return Le.Check = i, Le;
|
|
140
|
+
}
|
|
141
|
+
var Re;
|
|
142
|
+
function Va() {
|
|
143
|
+
return Re || (Re = 1, function(u) {
|
|
144
|
+
Object.defineProperty(u, Symbol.toStringTag, { value: "Module" });
|
|
145
|
+
const e = /* @__PURE__ */ be(), i = ne, a = /* @__PURE__ */ De(), s = /* @__PURE__ */ Ce(), t = /* @__PURE__ */ Ge(), o = /* @__PURE__ */ qe(), c = /* @__PURE__ */ Fe(), L = /* @__PURE__ */ We(), b = /* @__PURE__ */ Se(), D = /* @__PURE__ */ xe(), k = /* @__PURE__ */ Ha();
|
|
146
|
+
function f(n) {
|
|
147
|
+
const d = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
148
|
+
if (n) {
|
|
149
|
+
for (const O in n) if (O !== "default") {
|
|
150
|
+
const I = Object.getOwnPropertyDescriptor(n, O);
|
|
151
|
+
Object.defineProperty(d, O, I.get ? I : { enumerable: !0, get: () => n[O] });
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return d.default = n, Object.freeze(d);
|
|
155
|
+
}
|
|
156
|
+
const r = f(i);
|
|
157
|
+
var V = "Checkbox", [N, de] = s.createContextScope(V), [se, K] = N(V);
|
|
158
|
+
function $(n) {
|
|
159
|
+
const { __scopeCheckbox: d, checked: O, children: I, defaultChecked: M, disabled: x, form: j, name: H, onCheckedChange: y, required: A, value: G = "on", internal_do_not_use_render: W } = n, [F, X] = s.useControllableState({ prop: O, defaultProp: M ?? !1, onChange: y, caller: V }), [v, P] = r.useState(null), [R, l] = r.useState(null), p = r.useRef(!1), h = v ? !!j || !!v.closest("form") : !0, T = { checked: F, disabled: x, setChecked: X, control: v, setControl: P, name: H, form: j, value: G, hasConsumerStoppedPropagationRef: p, required: A, defaultChecked: _(M) ? !1 : M, isFormControl: h, bubbleInput: R, setBubbleInput: l };
|
|
160
|
+
return e.jsxRuntimeExports.jsx(se, { scope: d, ...T, children: ce(W) ? W(T) : I });
|
|
161
|
+
}
|
|
162
|
+
var U = "CheckboxTrigger", ie = r.forwardRef(({ __scopeCheckbox: n, onKeyDown: d, onClick: O, ...I }, M) => {
|
|
163
|
+
const { control: x, value: j, disabled: H, checked: y, required: A, setControl: G, setChecked: W, hasConsumerStoppedPropagationRef: F, isFormControl: X, bubbleInput: v } = K(U, n), P = a.useComposedRefs(M, G), R = r.useRef(y);
|
|
164
|
+
return r.useEffect(() => {
|
|
165
|
+
const l = x?.form;
|
|
166
|
+
if (l) {
|
|
167
|
+
const p = () => W(R.current);
|
|
168
|
+
return l.addEventListener("reset", p), () => l.removeEventListener("reset", p);
|
|
169
|
+
}
|
|
170
|
+
}, [x, W]), e.jsxRuntimeExports.jsx(a.Primitive.button, { type: "button", role: "checkbox", "aria-checked": _(y) ? "mixed" : y, "aria-required": A, "data-state": he(y), "data-disabled": H ? "" : void 0, disabled: H, value: j, ...I, ref: P, onKeyDown: s.composeEventHandlers(d, (l) => {
|
|
171
|
+
l.key === "Enter" && l.preventDefault();
|
|
172
|
+
}), onClick: s.composeEventHandlers(O, (l) => {
|
|
173
|
+
W((p) => _(p) ? !0 : !p), v && X && (F.current = l.isPropagationStopped(), F.current || l.stopPropagation());
|
|
174
|
+
}) });
|
|
175
|
+
});
|
|
176
|
+
ie.displayName = U;
|
|
177
|
+
var Q = r.forwardRef((n, d) => {
|
|
178
|
+
const { __scopeCheckbox: O, name: I, checked: M, defaultChecked: x, required: j, disabled: H, value: y, onCheckedChange: A, form: G, ...W } = n;
|
|
179
|
+
return e.jsxRuntimeExports.jsx($, { __scopeCheckbox: O, checked: M, defaultChecked: x, disabled: H, required: j, onCheckedChange: A, name: I, form: G, value: y, internal_do_not_use_render: ({ isFormControl: F }) => e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment, { children: [e.jsxRuntimeExports.jsx(ie, { ...W, ref: d, __scopeCheckbox: O }), F && e.jsxRuntimeExports.jsx(ge, { __scopeCheckbox: O })] }) });
|
|
180
|
+
});
|
|
181
|
+
Q.displayName = V;
|
|
182
|
+
var ae = "CheckboxIndicator", te = r.forwardRef((n, d) => {
|
|
183
|
+
const { __scopeCheckbox: O, forceMount: I, ...M } = n, x = K(ae, O);
|
|
184
|
+
return e.jsxRuntimeExports.jsx(c.Presence, { present: I || _(x.checked) || x.checked === !0, children: e.jsxRuntimeExports.jsx(a.Primitive.span, { "data-state": he(x.checked), "data-disabled": x.disabled ? "" : void 0, ...M, ref: d, style: { pointerEvents: "none", ...n.style } }) });
|
|
185
|
+
});
|
|
186
|
+
te.displayName = ae;
|
|
187
|
+
var oe = "CheckboxBubbleInput", ge = r.forwardRef(({ __scopeCheckbox: n, ...d }, O) => {
|
|
188
|
+
const { control: I, hasConsumerStoppedPropagationRef: M, checked: x, defaultChecked: j, required: H, disabled: y, name: A, value: G, form: W, bubbleInput: F, setBubbleInput: X } = K(oe, n), v = a.useComposedRefs(O, X), P = t.usePrevious(x), R = o.useSize(I);
|
|
189
|
+
r.useEffect(() => {
|
|
190
|
+
const p = F;
|
|
191
|
+
if (!p) return;
|
|
192
|
+
const h = window.HTMLInputElement.prototype, T = Object.getOwnPropertyDescriptor(h, "checked").set, C = !M.current;
|
|
193
|
+
if (P !== x && T) {
|
|
194
|
+
const m = new Event("click", { bubbles: C });
|
|
195
|
+
p.indeterminate = _(x), T.call(p, _(x) ? !1 : x), p.dispatchEvent(m);
|
|
196
|
+
}
|
|
197
|
+
}, [F, P, x, M]);
|
|
198
|
+
const l = r.useRef(_(x) ? !1 : x);
|
|
199
|
+
return e.jsxRuntimeExports.jsx(a.Primitive.input, { type: "checkbox", "aria-hidden": !0, defaultChecked: j ?? l.current, required: H, disabled: y, name: A, value: G, form: W, ...d, tabIndex: -1, ref: v, style: { ...d.style, ...R, position: "absolute", pointerEvents: "none", opacity: 0, margin: 0, transform: "translateX(-100%)" } });
|
|
200
|
+
});
|
|
201
|
+
ge.displayName = oe;
|
|
202
|
+
function ce(n) {
|
|
203
|
+
return typeof n == "function";
|
|
204
|
+
}
|
|
205
|
+
function _(n) {
|
|
206
|
+
return n === "indeterminate";
|
|
207
|
+
}
|
|
208
|
+
function he(n) {
|
|
209
|
+
return _(n) ? "indeterminate" : n ? "checked" : "unchecked";
|
|
210
|
+
}
|
|
211
|
+
const le = L.cva("peer h-4 w-4 shrink-0 rounded-0 bg-primary-white dark:bg-primary-gray-650 focus-visible:outline-hidden focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50", { variants: { color: { blue: "border-primary-blue-600 hover:bg-primary-blue-100 dark:border-primary-blue-400 dark:hover:bg-primary-blue-200", red: "border-accent-dark-red hover:bg-accent-light-red dark:border-accent-red dark:hover:bg-accent-light-red", black: "border-primary-gray-700 hover:bg-primary-gray-400 dark:border-primary-gray-100 dark:hover:bg-primary-gray-550", custom: "border-custom-color-600 hover:bg-custom-color-100 dark:border-custom-color-400 dark:hover:bg-custom-color-200" }, variant: { light: "border", normal: "border-2" } }, defaultVariants: { color: "red", variant: "normal" } }), g = L.cva("h-4 w-4", { variants: { color: { blue: "stroke-primary-blue-600 dark:stroke-primary-blue-400", red: "stroke-accent-dark-red dark:stroke-accent-red", black: "stroke-primary-gray-700 dark:stroke-primary-gray-100", custom: "stroke-custom-color-600 dark:stroke-custom-color-400" }, variant: { light: "-mt-px", normal: "-mt-0.5" } }, defaultVariants: { color: "red", variant: "normal" } }), S = i.forwardRef(({ className: n, labelClassName: d, checkBoxClassName: O, checkIconClassName: I, label: M, color: x, variant: j, ...H }, y) => {
|
|
212
|
+
const A = H.id || D.generateRandomId();
|
|
213
|
+
return e.jsxRuntimeExports.jsxs("div", { className: D.cn("flex flex-row gap-2 items-center", n), children: [e.jsxRuntimeExports.jsx(Q, { ...H, ref: y, className: D.cn(le({ color: x, variant: j }), O), id: A, children: e.jsxRuntimeExports.jsx(te, { className: D.cn("flex items-center justify-center text-current"), children: e.jsxRuntimeExports.jsx(k.Check, { className: D.cn(g({ color: x, variant: j }), I), strokeWidth: j === "light" ? 2 : 4 }) }) }), M ? e.jsxRuntimeExports.jsx(b.Label, { className: D.cn("mt-0.5 text-base!", d), htmlFor: A, children: M }) : null] });
|
|
214
|
+
});
|
|
215
|
+
S.displayName = Q.displayName, u.Checkbox = S;
|
|
216
|
+
}(ye)), ye;
|
|
217
|
+
}
|
|
218
|
+
var Ae;
|
|
219
|
+
function ja() {
|
|
220
|
+
return Ae || (Ae = 1, function(u) {
|
|
221
|
+
Object.defineProperty(u, Symbol.toStringTag, { value: "Module" });
|
|
222
|
+
const e = /* @__PURE__ */ be(), i = ne, a = /* @__PURE__ */ Va(), s = /* @__PURE__ */ xe(), t = i.createContext({ selectedValues: [], onValueChange: () => {
|
|
223
|
+
}, color: void 0, variant: void 0 }), o = i.forwardRef(({ className: L, children: b, value: D, variant: k, color: f, onValueChange: r, defaultValue: V, ...N }, de) => {
|
|
224
|
+
const [se, K] = i.useState(V || []), $ = D !== void 0 ? D : se, U = i.useCallback((Q, ae) => {
|
|
225
|
+
const te = ae ? [...$, Q] : $.filter((oe) => oe !== Q);
|
|
226
|
+
D === void 0 && K(te), r?.(te);
|
|
227
|
+
}, [$, D, r]), ie = i.useMemo(() => ({ selectedValues: $, color: f, variant: k, onValueChange: U }), [$, U, f, k]);
|
|
228
|
+
return e.jsxRuntimeExports.jsx(t.Provider, { value: ie, children: e.jsxRuntimeExports.jsx("div", { ...N, className: s.cn("flex gap-x-4 gap-y-2 flex-row flex-wrap", L), ref: de, children: b }) });
|
|
229
|
+
});
|
|
230
|
+
o.displayName = "CheckboxGroup";
|
|
231
|
+
const c = i.forwardRef(({ value: L, ...b }, D) => {
|
|
232
|
+
const { selectedValues: k, onValueChange: f, color: r, variant: V } = i.useContext(t);
|
|
233
|
+
return e.jsxRuntimeExports.jsx(a.Checkbox, { ref: D, ...b, value: L, color: r, variant: V, checked: k.includes(L), onCheckedChange: (N) => f(L, N === !0) });
|
|
234
|
+
});
|
|
235
|
+
c.displayName = "CheckboxGroupItem", u.CheckboxGroup = o, u.CheckboxGroupItem = c;
|
|
236
|
+
}(ke)), ke;
|
|
237
|
+
}
|
|
238
|
+
var Lt = /* @__PURE__ */ ja(), Oe = {}, fe = {}, Me = {}, Pe;
|
|
239
|
+
function _e() {
|
|
240
|
+
if (Pe) return Me;
|
|
241
|
+
Pe = 1;
|
|
242
|
+
const u = ne;
|
|
243
|
+
function e(t) {
|
|
244
|
+
const o = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
245
|
+
if (t) {
|
|
246
|
+
for (const c in t) if (c !== "default") {
|
|
247
|
+
const L = Object.getOwnPropertyDescriptor(t, c);
|
|
248
|
+
Object.defineProperty(o, c, L.get ? L : { enumerable: !0, get: () => t[c] });
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
return o.default = t, Object.freeze(o);
|
|
252
|
+
}
|
|
253
|
+
const i = e(u);
|
|
254
|
+
var a = i.createContext(void 0);
|
|
255
|
+
function s(t) {
|
|
256
|
+
const o = i.useContext(a);
|
|
257
|
+
return t || o || "ltr";
|
|
258
|
+
}
|
|
259
|
+
return Me.useDirection = s, Me;
|
|
260
|
+
}
|
|
261
|
+
var Ee;
|
|
262
|
+
function Ra() {
|
|
263
|
+
if (Ee) return fe;
|
|
264
|
+
Ee = 1;
|
|
265
|
+
const u = ne, e = /* @__PURE__ */ Ce(), i = /* @__PURE__ */ Ye(), a = /* @__PURE__ */ De(), s = /* @__PURE__ */ Ke(), t = /* @__PURE__ */ Xe(), o = /* @__PURE__ */ _e(), c = /* @__PURE__ */ be();
|
|
266
|
+
function L(g) {
|
|
267
|
+
const S = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
268
|
+
if (g) {
|
|
269
|
+
for (const n in g) if (n !== "default") {
|
|
270
|
+
const d = Object.getOwnPropertyDescriptor(g, n);
|
|
271
|
+
Object.defineProperty(S, n, d.get ? d : { enumerable: !0, get: () => g[n] });
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return S.default = g, Object.freeze(S);
|
|
275
|
+
}
|
|
276
|
+
const b = L(u);
|
|
277
|
+
var D = "rovingFocusGroup.onEntryFocus", k = { bubbles: !1, cancelable: !0 }, f = "RovingFocusGroup", [r, V, N] = i.createCollection(f), [de, se] = e.createContextScope(f, [N]), [K, $] = de(f), U = b.forwardRef((g, S) => c.jsxRuntimeExports.jsx(r.Provider, { scope: g.__scopeRovingFocusGroup, children: c.jsxRuntimeExports.jsx(r.Slot, { scope: g.__scopeRovingFocusGroup, children: c.jsxRuntimeExports.jsx(ie, { ...g, ref: S }) }) }));
|
|
278
|
+
U.displayName = f;
|
|
279
|
+
var ie = b.forwardRef((g, S) => {
|
|
280
|
+
const { __scopeRovingFocusGroup: n, orientation: d, loop: O = !1, dir: I, currentTabStopId: M, defaultCurrentTabStopId: x, onCurrentTabStopIdChange: j, onEntryFocus: H, preventScrollOnEntryFocus: y = !1, ...A } = g, G = b.useRef(null), W = a.useComposedRefs(S, G), F = o.useDirection(I), [X, v] = e.useControllableState({ prop: M, defaultProp: x ?? null, onChange: j, caller: f }), [P, R] = b.useState(!1), l = t.useCallbackRef(H), p = V(n), h = b.useRef(!1), [T, C] = b.useState(0);
|
|
281
|
+
return b.useEffect(() => {
|
|
282
|
+
const m = G.current;
|
|
283
|
+
if (m) return m.addEventListener(D, l), () => m.removeEventListener(D, l);
|
|
284
|
+
}, [l]), c.jsxRuntimeExports.jsx(K, { scope: n, orientation: d, dir: F, loop: O, currentTabStopId: X, onItemFocus: b.useCallback((m) => v(m), [v]), onItemShiftTab: b.useCallback(() => R(!0), []), onFocusableItemAdd: b.useCallback(() => C((m) => m + 1), []), onFocusableItemRemove: b.useCallback(() => C((m) => m - 1), []), children: c.jsxRuntimeExports.jsx(a.Primitive.div, { tabIndex: P || T === 0 ? -1 : 0, "data-orientation": d, ...A, ref: W, style: { outline: "none", ...g.style }, onMouseDown: e.composeEventHandlers(g.onMouseDown, () => {
|
|
285
|
+
h.current = !0;
|
|
286
|
+
}), onFocus: e.composeEventHandlers(g.onFocus, (m) => {
|
|
287
|
+
const E = !h.current;
|
|
288
|
+
if (m.target === m.currentTarget && E && !P) {
|
|
289
|
+
const q = new CustomEvent(D, k);
|
|
290
|
+
if (m.currentTarget.dispatchEvent(q), !q.defaultPrevented) {
|
|
291
|
+
const z = p().filter((B) => B.focusable), Z = z.find((B) => B.active), J = z.find((B) => B.id === X), Y = [Z, J, ...z].filter(Boolean).map((B) => B.ref.current);
|
|
292
|
+
ce(Y, y);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
h.current = !1;
|
|
296
|
+
}), onBlur: e.composeEventHandlers(g.onBlur, () => R(!1)) }) });
|
|
297
|
+
}), Q = "RovingFocusGroupItem", ae = b.forwardRef((g, S) => {
|
|
298
|
+
const { __scopeRovingFocusGroup: n, focusable: d = !0, active: O = !1, tabStopId: I, children: M, ...x } = g, j = s.useId(), H = I || j, y = $(Q, n), A = y.currentTabStopId === H, G = V(n), { onFocusableItemAdd: W, onFocusableItemRemove: F, currentTabStopId: X } = y;
|
|
299
|
+
return b.useEffect(() => {
|
|
300
|
+
if (d) return W(), () => F();
|
|
301
|
+
}, [d, W, F]), c.jsxRuntimeExports.jsx(r.ItemSlot, { scope: n, id: H, focusable: d, active: O, children: c.jsxRuntimeExports.jsx(a.Primitive.span, { tabIndex: A ? 0 : -1, "data-orientation": y.orientation, ...x, ref: S, onMouseDown: e.composeEventHandlers(g.onMouseDown, (v) => {
|
|
302
|
+
d ? y.onItemFocus(H) : v.preventDefault();
|
|
303
|
+
}), onFocus: e.composeEventHandlers(g.onFocus, () => y.onItemFocus(H)), onKeyDown: e.composeEventHandlers(g.onKeyDown, (v) => {
|
|
304
|
+
if (v.key === "Tab" && v.shiftKey) {
|
|
305
|
+
y.onItemShiftTab();
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
if (v.target !== v.currentTarget) return;
|
|
309
|
+
const P = ge(v, y.orientation, y.dir);
|
|
310
|
+
if (P !== void 0) {
|
|
311
|
+
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
|
|
312
|
+
v.preventDefault();
|
|
313
|
+
let R = G().filter((l) => l.focusable).map((l) => l.ref.current);
|
|
314
|
+
if (P === "last") R.reverse();
|
|
315
|
+
else if (P === "prev" || P === "next") {
|
|
316
|
+
P === "prev" && R.reverse();
|
|
317
|
+
const l = R.indexOf(v.currentTarget);
|
|
318
|
+
R = y.loop ? _(R, l + 1) : R.slice(l + 1);
|
|
319
|
+
}
|
|
320
|
+
setTimeout(() => ce(R));
|
|
321
|
+
}
|
|
322
|
+
}), children: typeof M == "function" ? M({ isCurrentTabStop: A, hasTabStop: X != null }) : M }) });
|
|
323
|
+
});
|
|
324
|
+
ae.displayName = Q;
|
|
325
|
+
var te = { ArrowLeft: "prev", ArrowUp: "prev", ArrowRight: "next", ArrowDown: "next", PageUp: "first", Home: "first", PageDown: "last", End: "last" };
|
|
326
|
+
function oe(g, S) {
|
|
327
|
+
return S !== "rtl" ? g : g === "ArrowLeft" ? "ArrowRight" : g === "ArrowRight" ? "ArrowLeft" : g;
|
|
328
|
+
}
|
|
329
|
+
function ge(g, S, n) {
|
|
330
|
+
const d = oe(g.key, n);
|
|
331
|
+
if (!(S === "vertical" && ["ArrowLeft", "ArrowRight"].includes(d)) && !(S === "horizontal" && ["ArrowUp", "ArrowDown"].includes(d))) return te[d];
|
|
332
|
+
}
|
|
333
|
+
function ce(g, S = !1) {
|
|
334
|
+
const n = document.activeElement;
|
|
335
|
+
for (const d of g) if (d === n || (d.focus({ preventScroll: S }), document.activeElement !== n)) return;
|
|
336
|
+
}
|
|
337
|
+
function _(g, S) {
|
|
338
|
+
return g.map((n, d) => g[(S + d) % g.length]);
|
|
339
|
+
}
|
|
340
|
+
var he = U, le = ae;
|
|
341
|
+
return fe.Item = le, fe.Root = he, fe.createRovingFocusGroupScope = se, fe;
|
|
342
|
+
}
|
|
343
|
+
var Be;
|
|
344
|
+
function Aa() {
|
|
345
|
+
return Be || (Be = 1, function(u) {
|
|
346
|
+
Object.defineProperty(u, Symbol.toStringTag, { value: "Module" });
|
|
347
|
+
const e = /* @__PURE__ */ be(), i = ne, a = /* @__PURE__ */ Ce(), s = /* @__PURE__ */ De(), t = /* @__PURE__ */ Ra(), o = /* @__PURE__ */ _e(), c = /* @__PURE__ */ qe(), L = /* @__PURE__ */ Ge(), b = /* @__PURE__ */ Fe(), D = /* @__PURE__ */ We(), k = /* @__PURE__ */ Se(), f = /* @__PURE__ */ xe(), r = /* @__PURE__ */ ze();
|
|
348
|
+
function V(l) {
|
|
349
|
+
const p = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
350
|
+
if (l) {
|
|
351
|
+
for (const h in l) if (h !== "default") {
|
|
352
|
+
const T = Object.getOwnPropertyDescriptor(l, h);
|
|
353
|
+
Object.defineProperty(p, h, T.get ? T : { enumerable: !0, get: () => l[h] });
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return p.default = l, Object.freeze(p);
|
|
357
|
+
}
|
|
358
|
+
const N = V(i);
|
|
359
|
+
/**
|
|
360
|
+
* @license lucide-react v0.488.0 - ISC
|
|
361
|
+
*
|
|
362
|
+
* This source code is licensed under the ISC license.
|
|
363
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
364
|
+
*/
|
|
365
|
+
const de = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], se = r.createLucideIcon("circle", de);
|
|
366
|
+
var K = "Radio", [$, U] = a.createContextScope(K), [ie, Q] = $(K), ae = N.forwardRef((l, p) => {
|
|
367
|
+
const { __scopeRadio: h, name: T, checked: C = !1, required: m, disabled: E, value: q = "on", onCheck: z, form: Z, ...J } = l, [Y, B] = N.useState(null), ee = s.useComposedRefs(p, (pe) => B(pe)), re = N.useRef(!1), ue = Y ? Z || !!Y.closest("form") : !0;
|
|
368
|
+
return e.jsxRuntimeExports.jsxs(ie, { scope: h, checked: C, disabled: E, children: [e.jsxRuntimeExports.jsx(s.Primitive.button, { type: "button", role: "radio", "aria-checked": C, "data-state": _(C), "data-disabled": E ? "" : void 0, disabled: E, value: q, ...J, ref: ee, onClick: a.composeEventHandlers(l.onClick, (pe) => {
|
|
369
|
+
C || z?.(), ue && (re.current = pe.isPropagationStopped(), re.current || pe.stopPropagation());
|
|
370
|
+
}) }), ue && e.jsxRuntimeExports.jsx(ce, { control: Y, bubbles: !re.current, name: T, value: q, checked: C, required: m, disabled: E, form: Z, style: { transform: "translateX(-100%)" } })] });
|
|
371
|
+
});
|
|
372
|
+
ae.displayName = K;
|
|
373
|
+
var te = "RadioIndicator", oe = N.forwardRef((l, p) => {
|
|
374
|
+
const { __scopeRadio: h, forceMount: T, ...C } = l, m = Q(te, h);
|
|
375
|
+
return e.jsxRuntimeExports.jsx(b.Presence, { present: T || m.checked, children: e.jsxRuntimeExports.jsx(s.Primitive.span, { "data-state": _(m.checked), "data-disabled": m.disabled ? "" : void 0, ...C, ref: p }) });
|
|
376
|
+
});
|
|
377
|
+
oe.displayName = te;
|
|
378
|
+
var ge = "RadioBubbleInput", ce = N.forwardRef(({ __scopeRadio: l, control: p, checked: h, bubbles: T = !0, ...C }, m) => {
|
|
379
|
+
const E = N.useRef(null), q = s.useComposedRefs(E, m), z = L.usePrevious(h), Z = c.useSize(p);
|
|
380
|
+
return N.useEffect(() => {
|
|
381
|
+
const J = E.current;
|
|
382
|
+
if (!J) return;
|
|
383
|
+
const Y = window.HTMLInputElement.prototype, B = Object.getOwnPropertyDescriptor(Y, "checked").set;
|
|
384
|
+
if (z !== h && B) {
|
|
385
|
+
const ee = new Event("click", { bubbles: T });
|
|
386
|
+
B.call(J, h), J.dispatchEvent(ee);
|
|
387
|
+
}
|
|
388
|
+
}, [z, h, T]), e.jsxRuntimeExports.jsx(s.Primitive.input, { type: "radio", "aria-hidden": !0, defaultChecked: h, ...C, tabIndex: -1, ref: q, style: { ...C.style, ...Z, position: "absolute", pointerEvents: "none", opacity: 0, margin: 0 } });
|
|
389
|
+
});
|
|
390
|
+
ce.displayName = ge;
|
|
391
|
+
function _(l) {
|
|
392
|
+
return l ? "checked" : "unchecked";
|
|
393
|
+
}
|
|
394
|
+
var he = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], le = "RadioGroup", [g, S] = a.createContextScope(le, [t.createRovingFocusGroupScope, U]), n = t.createRovingFocusGroupScope(), d = U(), [O, I] = g(le), M = N.forwardRef((l, p) => {
|
|
395
|
+
const { __scopeRadioGroup: h, name: T, defaultValue: C, value: m, required: E = !1, disabled: q = !1, orientation: z, dir: Z, loop: J = !0, onValueChange: Y, ...B } = l, ee = n(h), re = o.useDirection(Z), [ue, pe] = a.useControllableState({ prop: m, defaultProp: C ?? null, onChange: Y, caller: le });
|
|
396
|
+
return e.jsxRuntimeExports.jsx(O, { scope: h, name: T, required: E, disabled: q, value: ue, onValueChange: pe, children: e.jsxRuntimeExports.jsx(t.Root, { asChild: !0, ...ee, orientation: z, dir: re, loop: J, children: e.jsxRuntimeExports.jsx(s.Primitive.div, { role: "radiogroup", "aria-required": E, "aria-orientation": z, "data-disabled": q ? "" : void 0, dir: re, ...B, ref: p }) }) });
|
|
397
|
+
});
|
|
398
|
+
M.displayName = le;
|
|
399
|
+
var x = "RadioGroupItem", j = N.forwardRef((l, p) => {
|
|
400
|
+
const { __scopeRadioGroup: h, disabled: T, ...C } = l, m = I(x, h), E = m.disabled || T, q = n(h), z = d(h), Z = N.useRef(null), J = s.useComposedRefs(p, Z), Y = m.value === C.value, B = N.useRef(!1);
|
|
401
|
+
return N.useEffect(() => {
|
|
402
|
+
const ee = (ue) => {
|
|
403
|
+
he.includes(ue.key) && (B.current = !0);
|
|
404
|
+
}, re = () => B.current = !1;
|
|
405
|
+
return document.addEventListener("keydown", ee), document.addEventListener("keyup", re), () => {
|
|
406
|
+
document.removeEventListener("keydown", ee), document.removeEventListener("keyup", re);
|
|
407
|
+
};
|
|
408
|
+
}, []), e.jsxRuntimeExports.jsx(t.Item, { asChild: !0, ...q, focusable: !E, active: Y, children: e.jsxRuntimeExports.jsx(ae, { disabled: E, required: m.required, checked: Y, ...z, ...C, name: m.name, ref: J, onCheck: () => m.onValueChange(C.value), onKeyDown: a.composeEventHandlers((ee) => {
|
|
409
|
+
ee.key === "Enter" && ee.preventDefault();
|
|
410
|
+
}), onFocus: a.composeEventHandlers(C.onFocus, () => {
|
|
411
|
+
B.current && Z.current?.click();
|
|
412
|
+
}) }) });
|
|
413
|
+
});
|
|
414
|
+
j.displayName = x;
|
|
415
|
+
var H = "RadioGroupIndicator", y = N.forwardRef((l, p) => {
|
|
416
|
+
const { __scopeRadioGroup: h, ...T } = l, C = d(h);
|
|
417
|
+
return e.jsxRuntimeExports.jsx(oe, { ...C, ...T, ref: p });
|
|
418
|
+
});
|
|
419
|
+
y.displayName = H;
|
|
420
|
+
var A = M, G = j, W = y;
|
|
421
|
+
const F = D.cva("aspect-square h-4 w-4 bg-primary-white dark:bg-primary-gray-650 rounded-full text-primary-gray-700 dark:text-primary-white shadow-sm focus:outline-hidden focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50", { variants: { color: { blue: "border-primary-blue-600 hover:bg-primary-blue-100 dark:border-primary-blue-400 dark:hover:bg-primary-blue-200", red: "border-accent-dark-red hover:bg-accent-light-red dark:border-accent-red dark:hover:bg-accent-light-red", black: "border-primary-gray-700 hover:bg-primary-gray-400 dark:border-primary-gray-100 dark:hover:bg-primary-gray-550", custom: "border-custom-color-600 hover:bg-custom-color-100 dark:border-custom-color-400 dark:hover:bg-custom-color-200" }, variant: { light: "border", normal: "border-2" } }, defaultVariants: { color: "red", variant: "normal" } }), X = D.cva("stroke-0", { variants: { color: { blue: "fill-primary-blue-600 dark:fill-primary-blue-400", red: "fill-accent-dark-red dark:fill-accent-red", black: "fill-primary-gray-700 dark:fill-primary-gray-100", custom: "fill-custom-color-600 dark:fill-custom-color-400" }, variant: { light: "h-1.5 w-1.5", normal: "h-2.5 w-2.5" } }, defaultVariants: { color: "red", variant: "normal" } }), v = i.createContext({ color: null, variant: null }), P = i.forwardRef(({ className: l, color: p, variant: h, ...T }, C) => {
|
|
422
|
+
const m = i.useMemo(() => ({ color: p, variant: h }), [p, h]);
|
|
423
|
+
return e.jsxRuntimeExports.jsx(v.Provider, { value: m, children: e.jsxRuntimeExports.jsx(A, { ...T, className: f.cn("flex gap-x-4 gap-y-2 flex-row flex-wrap rtl:[direction:rtl]", l), ref: C }) });
|
|
424
|
+
});
|
|
425
|
+
P.displayName = A.displayName;
|
|
426
|
+
const R = i.forwardRef(({ className: l, radioClassName: p, labelClassName: h, label: T, ...C }, m) => {
|
|
427
|
+
const E = C.id || f.generateRandomId(), { color: q, variant: z } = i.useContext(v);
|
|
428
|
+
return e.jsxRuntimeExports.jsxs("div", { className: f.cn("flex flex-row gap-2 items-center", l), children: [e.jsxRuntimeExports.jsx(G, { ...C, ref: m, className: f.cn(F({ color: q, variant: z }), p), id: E, children: e.jsxRuntimeExports.jsx(W, { className: "flex items-center justify-center", children: e.jsxRuntimeExports.jsx(se, { className: X({ color: q, variant: z }) }) }) }), e.jsxRuntimeExports.jsx(k.Label, { className: f.cn("mt-0.5 text-base!", h), htmlFor: E, children: T })] });
|
|
429
|
+
});
|
|
430
|
+
R.displayName = G.displayName, u.RadioGroup = P, u.RadioGroupItem = R;
|
|
431
|
+
}(Oe)), Oe;
|
|
432
|
+
}
|
|
433
|
+
var Ot = /* @__PURE__ */ Aa();
|
|
434
|
+
function w(u, e, i) {
|
|
435
|
+
return e.findIndex((a) => a.chartConfigId === u) === -1 ? void 0 : typeof e[e.findIndex((a) => a.chartConfigId === u)].columnId == "object" ? e[e.findIndex((a) => a.chartConfigId === u)].columnId.map(
|
|
436
|
+
(a) => i.findIndex((s) => s.value === a) === -1 ? a : i[i.findIndex((s) => s.value === a)].label
|
|
437
|
+
) : i.findIndex(
|
|
438
|
+
(a) => a.value === e[e.findIndex((s) => s.chartConfigId === u)].columnId
|
|
439
|
+
) === -1 ? e[e.findIndex((a) => a.chartConfigId === u)].columnId : i[i.findIndex(
|
|
440
|
+
(a) => a.value === e[e.findIndex((s) => s.chartConfigId === u)].columnId
|
|
441
|
+
)].label;
|
|
442
|
+
}
|
|
443
|
+
function Mt(u) {
|
|
444
|
+
const {
|
|
445
|
+
settings: e,
|
|
446
|
+
graph: i,
|
|
447
|
+
graphData: a,
|
|
448
|
+
debugMode: s,
|
|
449
|
+
graphDataConfiguration: t,
|
|
450
|
+
readableHeader: o,
|
|
451
|
+
updateFilters: c
|
|
452
|
+
} = u;
|
|
453
|
+
if (s && (console.log(`Graph: ${i}`), console.log("Transformed data:", a), console.log("Settings:", e)), typeof a == "string")
|
|
454
|
+
return /* @__PURE__ */ me.jsx(
|
|
455
|
+
"div",
|
|
456
|
+
{
|
|
457
|
+
className: `flex my-0 mx-auto grow flex-col justify-center ${e?.width ? "w-fit" : "w-full"}`,
|
|
458
|
+
style: { height: "inherit" },
|
|
459
|
+
children: /* @__PURE__ */ me.jsx(
|
|
460
|
+
Ne.P,
|
|
461
|
+
{
|
|
462
|
+
size: "sm",
|
|
463
|
+
marginBottom: "none",
|
|
464
|
+
className: "p-2 text-center text-accent-dark-red dark:text-accent-red",
|
|
465
|
+
children: a
|
|
466
|
+
}
|
|
467
|
+
)
|
|
468
|
+
}
|
|
469
|
+
);
|
|
470
|
+
const L = {
|
|
471
|
+
barChart: Ta,
|
|
472
|
+
bulletChart: Na,
|
|
473
|
+
groupedBarChart: va,
|
|
474
|
+
stackedBarChart: ya,
|
|
475
|
+
lineChart: ta,
|
|
476
|
+
dualAxisLineChart: aa,
|
|
477
|
+
multiLineChart: oa,
|
|
478
|
+
multiLineAltChart: ra,
|
|
479
|
+
stackedAreaChart: pa,
|
|
480
|
+
choroplethMap: na,
|
|
481
|
+
biVariateChoroplethMap: la,
|
|
482
|
+
dotDensityMap: sa,
|
|
483
|
+
donutChart: Ze,
|
|
484
|
+
slopeChart: ua,
|
|
485
|
+
scatterPlot: ha,
|
|
486
|
+
dumbbellChart: La,
|
|
487
|
+
treeMap: fa,
|
|
488
|
+
circlePacking: Ue,
|
|
489
|
+
heatMap: Je,
|
|
490
|
+
stripChart: Oa,
|
|
491
|
+
beeSwarmChart: Ma,
|
|
492
|
+
butterflyChart: $e,
|
|
493
|
+
histogram: ea,
|
|
494
|
+
sparkLine: ia,
|
|
495
|
+
paretoChart: ga,
|
|
496
|
+
dataTable: Qe,
|
|
497
|
+
statCard: ma,
|
|
498
|
+
geoHubCompareMap: ca,
|
|
499
|
+
geoHubMap: da,
|
|
500
|
+
unitChart: ba,
|
|
501
|
+
differenceLineChart: xa,
|
|
502
|
+
geoHubMapWithLayerSelection: Da,
|
|
503
|
+
sankeyChart: Ca,
|
|
504
|
+
lineChartWithConfidenceInterval: wa,
|
|
505
|
+
dataCards: ka,
|
|
506
|
+
radarChart: Sa,
|
|
507
|
+
threeDGlobe: Ia
|
|
508
|
+
}, b = (f) => {
|
|
509
|
+
switch (f) {
|
|
510
|
+
case "barChart":
|
|
511
|
+
return {
|
|
512
|
+
timeline: e?.timeline,
|
|
513
|
+
customLayers: e?.customLayers,
|
|
514
|
+
precision: e?.precision,
|
|
515
|
+
theme: e?.theme,
|
|
516
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
517
|
+
orientation: e?.orientation,
|
|
518
|
+
data: a,
|
|
519
|
+
colors: e?.colors,
|
|
520
|
+
graphTitle: e?.graphTitle,
|
|
521
|
+
graphDescription: e?.graphDescription,
|
|
522
|
+
footNote: e?.footNote,
|
|
523
|
+
height: e?.height,
|
|
524
|
+
width: e?.width,
|
|
525
|
+
suffix: e?.suffix,
|
|
526
|
+
prefix: e?.prefix,
|
|
527
|
+
sources: e?.sources,
|
|
528
|
+
barPadding: e?.barPadding,
|
|
529
|
+
showValues: e?.showValues,
|
|
530
|
+
showTicks: e?.showTicks,
|
|
531
|
+
leftMargin: e?.leftMargin,
|
|
532
|
+
rightMargin: e?.rightMargin,
|
|
533
|
+
truncateBy: e?.truncateBy,
|
|
534
|
+
colorDomain: e?.colorDomain,
|
|
535
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("color", t || [], o || []),
|
|
536
|
+
backgroundColor: e?.backgroundColor,
|
|
537
|
+
padding: e?.padding,
|
|
538
|
+
topMargin: e?.topMargin,
|
|
539
|
+
bottomMargin: e?.bottomMargin,
|
|
540
|
+
relativeHeight: e?.relativeHeight,
|
|
541
|
+
showLabels: e?.showLabels,
|
|
542
|
+
showColorScale: e?.showColorScale,
|
|
543
|
+
maxValue: e?.maxValue,
|
|
544
|
+
minValue: e?.minValue,
|
|
545
|
+
labelOrder: e?.labelOrder,
|
|
546
|
+
tooltip: e?.tooltip,
|
|
547
|
+
refValues: e?.refValues,
|
|
548
|
+
graphID: e?.graphID,
|
|
549
|
+
highlightedDataPoints: e?.highlightedDataPoints,
|
|
550
|
+
graphDownload: e?.graphDownload,
|
|
551
|
+
dataDownload: e?.dataDownload,
|
|
552
|
+
sortData: e?.sortData,
|
|
553
|
+
language: e?.language,
|
|
554
|
+
minHeight: e?.minHeight,
|
|
555
|
+
showNAColor: e?.showNAColor,
|
|
556
|
+
maxBarThickness: e?.maxBarThickness,
|
|
557
|
+
minBarThickness: e?.minBarThickness,
|
|
558
|
+
maxNumberOfBars: e?.maxNumberOfBars,
|
|
559
|
+
ariaLabel: e?.ariaLabel,
|
|
560
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
561
|
+
onSeriesMouseClick: (r) => {
|
|
562
|
+
c?.(r.label);
|
|
563
|
+
},
|
|
564
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
565
|
+
detailsOnClick: e?.detailsOnClick,
|
|
566
|
+
barAxisTitle: e?.barAxisTitle,
|
|
567
|
+
noOfTicks: e?.noOfTicks,
|
|
568
|
+
valueColor: e?.valueColor,
|
|
569
|
+
styles: e?.styles,
|
|
570
|
+
classNames: e?.classNames,
|
|
571
|
+
filterNA: e?.filterNA,
|
|
572
|
+
animate: e?.animate,
|
|
573
|
+
naLabel: e?.naLabel
|
|
574
|
+
};
|
|
575
|
+
case "groupedBarChart":
|
|
576
|
+
return {
|
|
577
|
+
timeline: e?.timeline,
|
|
578
|
+
customLayers: e?.customLayers,
|
|
579
|
+
precision: e?.precision,
|
|
580
|
+
theme: e?.theme,
|
|
581
|
+
orientation: e?.orientation,
|
|
582
|
+
data: a,
|
|
583
|
+
colors: e?.colors,
|
|
584
|
+
graphTitle: e?.graphTitle,
|
|
585
|
+
graphDescription: e?.graphDescription,
|
|
586
|
+
footNote: e?.footNote,
|
|
587
|
+
width: e?.width,
|
|
588
|
+
height: e?.height,
|
|
589
|
+
showColorScale: e?.showColorScale,
|
|
590
|
+
sources: e?.sources,
|
|
591
|
+
barPadding: e?.barPadding,
|
|
592
|
+
showTicks: e?.showTicks,
|
|
593
|
+
truncateBy: e?.truncateBy,
|
|
594
|
+
colorDomain: e?.colorDomain || w("size", t || [], o || []),
|
|
595
|
+
colorLegendTitle: e?.colorLegendTitle,
|
|
596
|
+
suffix: e?.suffix,
|
|
597
|
+
prefix: e?.prefix,
|
|
598
|
+
showValues: e?.showValues,
|
|
599
|
+
backgroundColor: e?.backgroundColor,
|
|
600
|
+
padding: e?.padding,
|
|
601
|
+
leftMargin: e?.leftMargin,
|
|
602
|
+
rightMargin: e?.rightMargin,
|
|
603
|
+
topMargin: e?.topMargin,
|
|
604
|
+
showLabels: e?.showLabels,
|
|
605
|
+
bottomMargin: e?.bottomMargin,
|
|
606
|
+
relativeHeight: e?.relativeHeight,
|
|
607
|
+
tooltip: e?.tooltip,
|
|
608
|
+
refValues: e?.refValues,
|
|
609
|
+
graphID: e?.graphID,
|
|
610
|
+
labelOrder: e?.labelOrder,
|
|
611
|
+
maxValue: e?.maxValue,
|
|
612
|
+
minValue: e?.minValue,
|
|
613
|
+
graphDownload: e?.graphDownload,
|
|
614
|
+
dataDownload: e?.dataDownload,
|
|
615
|
+
language: e?.language,
|
|
616
|
+
minHeight: e?.minHeight,
|
|
617
|
+
maxBarThickness: e?.maxBarThickness,
|
|
618
|
+
ariaLabel: e?.ariaLabel,
|
|
619
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
620
|
+
detailsOnClick: e?.detailsOnClick,
|
|
621
|
+
barAxisTitle: e?.barAxisTitle,
|
|
622
|
+
noOfTicks: e?.noOfTicks,
|
|
623
|
+
valueColor: e?.valueColor,
|
|
624
|
+
styles: e?.styles,
|
|
625
|
+
classNames: e?.classNames,
|
|
626
|
+
animate: e?.animate,
|
|
627
|
+
naLabel: e?.naLabel
|
|
628
|
+
};
|
|
629
|
+
case "stackedBarChart":
|
|
630
|
+
return {
|
|
631
|
+
timeline: e?.timeline,
|
|
632
|
+
customLayers: e?.customLayers,
|
|
633
|
+
precision: e?.precision,
|
|
634
|
+
theme: e?.theme,
|
|
635
|
+
orientation: e?.orientation,
|
|
636
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
637
|
+
data: a,
|
|
638
|
+
colors: e?.colors,
|
|
639
|
+
graphTitle: e?.graphTitle,
|
|
640
|
+
graphDescription: e?.graphDescription,
|
|
641
|
+
footNote: e?.footNote,
|
|
642
|
+
showColorScale: e?.showColorScale,
|
|
643
|
+
width: e?.width,
|
|
644
|
+
height: e?.height,
|
|
645
|
+
sources: e?.sources,
|
|
646
|
+
barPadding: e?.barPadding,
|
|
647
|
+
showTicks: e?.showTicks,
|
|
648
|
+
leftMargin: e?.leftMargin,
|
|
649
|
+
rightMargin: e?.rightMargin,
|
|
650
|
+
truncateBy: e?.truncateBy,
|
|
651
|
+
colorDomain: e?.colorDomain || w("size", t || [], o || []),
|
|
652
|
+
colorLegendTitle: e?.colorLegendTitle,
|
|
653
|
+
backgroundColor: e?.backgroundColor,
|
|
654
|
+
padding: e?.padding,
|
|
655
|
+
topMargin: e?.topMargin,
|
|
656
|
+
bottomMargin: e?.bottomMargin,
|
|
657
|
+
suffix: e?.suffix,
|
|
658
|
+
prefix: e?.prefix,
|
|
659
|
+
labelOrder: e?.labelOrder,
|
|
660
|
+
showValues: e?.showValues,
|
|
661
|
+
showLabels: e?.showLabels,
|
|
662
|
+
relativeHeight: e?.relativeHeight,
|
|
663
|
+
tooltip: e?.tooltip,
|
|
664
|
+
refValues: e?.refValues,
|
|
665
|
+
graphID: e?.graphID,
|
|
666
|
+
maxValue: e?.maxValue,
|
|
667
|
+
graphDownload: e?.graphDownload,
|
|
668
|
+
dataDownload: e?.dataDownload,
|
|
669
|
+
language: e?.language,
|
|
670
|
+
minHeight: e?.minHeight,
|
|
671
|
+
maxBarThickness: e?.maxBarThickness,
|
|
672
|
+
minBarThickness: e?.minBarThickness,
|
|
673
|
+
maxNumberOfBars: e?.maxNumberOfBars,
|
|
674
|
+
sortParameter: e?.sortParameter,
|
|
675
|
+
ariaLabel: e?.ariaLabel,
|
|
676
|
+
detailsOnClick: e?.detailsOnClick,
|
|
677
|
+
barAxisTitle: e?.barAxisTitle,
|
|
678
|
+
noOfTicks: e?.noOfTicks,
|
|
679
|
+
valueColor: e?.valueColor,
|
|
680
|
+
styles: e?.styles,
|
|
681
|
+
classNames: e?.classNames,
|
|
682
|
+
animate: e?.animate,
|
|
683
|
+
naLabel: e?.naLabel
|
|
684
|
+
};
|
|
685
|
+
case "bulletChart":
|
|
686
|
+
return {
|
|
687
|
+
customLayers: e?.customLayers,
|
|
688
|
+
precision: e?.precision,
|
|
689
|
+
theme: e?.theme,
|
|
690
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
691
|
+
orientation: e?.orientation,
|
|
692
|
+
data: a,
|
|
693
|
+
barColor: e?.colors,
|
|
694
|
+
graphTitle: e?.graphTitle,
|
|
695
|
+
graphDescription: e?.graphDescription,
|
|
696
|
+
footNote: e?.footNote,
|
|
697
|
+
height: e?.height,
|
|
698
|
+
width: e?.width,
|
|
699
|
+
suffix: e?.suffix,
|
|
700
|
+
prefix: e?.prefix,
|
|
701
|
+
sources: e?.sources,
|
|
702
|
+
barPadding: e?.barPadding,
|
|
703
|
+
showValues: e?.showValues,
|
|
704
|
+
showTicks: e?.showTicks,
|
|
705
|
+
leftMargin: e?.leftMargin,
|
|
706
|
+
rightMargin: e?.rightMargin,
|
|
707
|
+
truncateBy: e?.truncateBy,
|
|
708
|
+
colorDomain: e?.colorDomain,
|
|
709
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("color", t || [], o || []),
|
|
710
|
+
backgroundColor: e?.backgroundColor,
|
|
711
|
+
padding: e?.padding,
|
|
712
|
+
topMargin: e?.topMargin,
|
|
713
|
+
bottomMargin: e?.bottomMargin,
|
|
714
|
+
relativeHeight: e?.relativeHeight,
|
|
715
|
+
showLabels: e?.showLabels,
|
|
716
|
+
showColorScale: e?.showColorScale,
|
|
717
|
+
maxValue: e?.maxValue,
|
|
718
|
+
minValue: e?.minValue,
|
|
719
|
+
labelOrder: e?.labelOrder,
|
|
720
|
+
tooltip: e?.tooltip,
|
|
721
|
+
refValues: e?.refValues,
|
|
722
|
+
graphID: e?.graphID,
|
|
723
|
+
highlightedDataPoints: e?.highlightedDataPoints,
|
|
724
|
+
graphDownload: e?.graphDownload,
|
|
725
|
+
dataDownload: e?.dataDownload,
|
|
726
|
+
sortData: e?.sortData,
|
|
727
|
+
language: e?.language,
|
|
728
|
+
minHeight: e?.minHeight,
|
|
729
|
+
showNAColor: e?.showNAColor,
|
|
730
|
+
maxBarThickness: e?.maxBarThickness,
|
|
731
|
+
minBarThickness: e?.minBarThickness,
|
|
732
|
+
maxNumberOfBars: e?.maxNumberOfBars,
|
|
733
|
+
ariaLabel: e?.ariaLabel,
|
|
734
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
735
|
+
onSeriesMouseClick: (r) => {
|
|
736
|
+
c?.(r.label);
|
|
737
|
+
},
|
|
738
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
739
|
+
detailsOnClick: e?.detailsOnClick,
|
|
740
|
+
barAxisTitle: e?.barAxisTitle,
|
|
741
|
+
noOfTicks: e?.noOfTicks,
|
|
742
|
+
valueColor: e?.valueColor,
|
|
743
|
+
styles: e?.styles,
|
|
744
|
+
classNames: e?.classNames,
|
|
745
|
+
filterNA: e?.filterNA,
|
|
746
|
+
qualitativeRangeColors: e?.qualitativeRangeColors,
|
|
747
|
+
targetStyle: e?.targetStyle,
|
|
748
|
+
targetColor: e?.targetColor,
|
|
749
|
+
measureBarWidthFactor: e?.measureBarWidthFactor,
|
|
750
|
+
animate: e?.animate,
|
|
751
|
+
naLabel: e?.naLabel
|
|
752
|
+
};
|
|
753
|
+
case "lineChart":
|
|
754
|
+
return {
|
|
755
|
+
customLayers: e?.customLayers,
|
|
756
|
+
precision: e?.precision,
|
|
757
|
+
theme: e?.theme,
|
|
758
|
+
curveType: e?.curveType,
|
|
759
|
+
data: a,
|
|
760
|
+
graphID: e?.graphID,
|
|
761
|
+
lineColor: e?.lineColor,
|
|
762
|
+
graphTitle: e?.graphTitle,
|
|
763
|
+
graphDescription: e?.graphDescription,
|
|
764
|
+
footNote: e?.footNote,
|
|
765
|
+
width: e?.width,
|
|
766
|
+
height: e?.height,
|
|
767
|
+
suffix: e?.suffix,
|
|
768
|
+
prefix: e?.prefix,
|
|
769
|
+
sources: e?.sources,
|
|
770
|
+
noOfXTicks: e?.noOfXTicks,
|
|
771
|
+
dateFormat: e?.dateFormat,
|
|
772
|
+
showValues: e?.showValues,
|
|
773
|
+
backgroundColor: e?.backgroundColor,
|
|
774
|
+
padding: e?.padding,
|
|
775
|
+
leftMargin: e?.leftMargin,
|
|
776
|
+
rightMargin: e?.rightMargin,
|
|
777
|
+
topMargin: e?.topMargin,
|
|
778
|
+
bottomMargin: e?.bottomMargin,
|
|
779
|
+
relativeHeight: e?.relativeHeight,
|
|
780
|
+
tooltip: e?.tooltip,
|
|
781
|
+
refValues: e?.refValues,
|
|
782
|
+
highlightAreaSettings: e?.highlightAreaSettings,
|
|
783
|
+
maxValue: e?.maxValue,
|
|
784
|
+
minValue: e?.minValue,
|
|
785
|
+
graphDownload: e?.graphDownload,
|
|
786
|
+
dataDownload: e?.dataDownload,
|
|
787
|
+
language: e?.language,
|
|
788
|
+
minHeight: e?.minHeight,
|
|
789
|
+
animate: e?.animate,
|
|
790
|
+
strokeWidth: e?.strokeWidth,
|
|
791
|
+
showDots: e?.showDots,
|
|
792
|
+
customHighlightAreaSettings: e?.customHighlightAreaSettings,
|
|
793
|
+
annotations: e?.annotations,
|
|
794
|
+
regressionLine: e?.regressionLine,
|
|
795
|
+
ariaLabel: e?.ariaLabel,
|
|
796
|
+
yAxisTitle: e?.yAxisTitle,
|
|
797
|
+
noOfYTicks: e?.noOfYTicks,
|
|
798
|
+
minDate: e?.minDate,
|
|
799
|
+
maxDate: e?.maxDate,
|
|
800
|
+
styles: e?.styles,
|
|
801
|
+
classNames: e?.classNames
|
|
802
|
+
};
|
|
803
|
+
case "lineChartWithConfidenceInterval":
|
|
804
|
+
return {
|
|
805
|
+
customLayers: e?.customLayers,
|
|
806
|
+
precision: e?.precision,
|
|
807
|
+
theme: e?.theme,
|
|
808
|
+
data: a,
|
|
809
|
+
curveType: e?.curveType,
|
|
810
|
+
graphID: e?.graphID,
|
|
811
|
+
lineColor: e?.lineColor,
|
|
812
|
+
graphTitle: e?.graphTitle,
|
|
813
|
+
graphDescription: e?.graphDescription,
|
|
814
|
+
footNote: e?.footNote,
|
|
815
|
+
width: e?.width,
|
|
816
|
+
height: e?.height,
|
|
817
|
+
suffix: e?.suffix,
|
|
818
|
+
prefix: e?.prefix,
|
|
819
|
+
sources: e?.sources,
|
|
820
|
+
noOfXTicks: e?.noOfXTicks,
|
|
821
|
+
dateFormat: e?.dateFormat,
|
|
822
|
+
showValues: e?.showValues,
|
|
823
|
+
backgroundColor: e?.backgroundColor,
|
|
824
|
+
padding: e?.padding,
|
|
825
|
+
leftMargin: e?.leftMargin,
|
|
826
|
+
rightMargin: e?.rightMargin,
|
|
827
|
+
topMargin: e?.topMargin,
|
|
828
|
+
bottomMargin: e?.bottomMargin,
|
|
829
|
+
relativeHeight: e?.relativeHeight,
|
|
830
|
+
tooltip: e?.tooltip,
|
|
831
|
+
refValues: e?.refValues,
|
|
832
|
+
highlightAreaSettings: e?.highlightAreaSettings,
|
|
833
|
+
maxValue: e?.maxValue,
|
|
834
|
+
minValue: e?.minValue,
|
|
835
|
+
graphDownload: e?.graphDownload,
|
|
836
|
+
dataDownload: e?.dataDownload,
|
|
837
|
+
language: e?.language,
|
|
838
|
+
minHeight: e?.minHeight,
|
|
839
|
+
animate: e?.animate,
|
|
840
|
+
strokeWidth: e?.strokeWidth,
|
|
841
|
+
showDots: e?.showDots,
|
|
842
|
+
customHighlightAreaSettings: e?.customHighlightAreaSettings,
|
|
843
|
+
annotations: e?.annotations,
|
|
844
|
+
regressionLine: e?.regressionLine,
|
|
845
|
+
ariaLabel: e?.ariaLabel,
|
|
846
|
+
showIntervalDots: e?.showIntervalDots,
|
|
847
|
+
showIntervalValues: e?.showIntervalValues,
|
|
848
|
+
intervalLineStrokeWidth: e?.intervalLineStrokeWidth,
|
|
849
|
+
intervalLineColors: e?.intervalLineColors,
|
|
850
|
+
intervalAreaColor: e?.intervalAreaColor,
|
|
851
|
+
intervalAreaOpacity: e?.intervalAreaOpacity,
|
|
852
|
+
yAxisTitle: e?.yAxisTitle,
|
|
853
|
+
noOfYTicks: e?.noOfYTicks,
|
|
854
|
+
minDate: e?.minDate,
|
|
855
|
+
maxDate: e?.maxDate,
|
|
856
|
+
colorLegendTitle: e?.colorLegendTitle,
|
|
857
|
+
colorLegendColors: e?.colorLegendColors,
|
|
858
|
+
colorLegendDomain: e?.colorLegendDomain,
|
|
859
|
+
styles: e?.styles,
|
|
860
|
+
classNames: e?.classNames
|
|
861
|
+
};
|
|
862
|
+
case "dualAxisLineChart":
|
|
863
|
+
return {
|
|
864
|
+
customLayers: e?.customLayers,
|
|
865
|
+
precision: e?.precision,
|
|
866
|
+
theme: e?.theme,
|
|
867
|
+
data: a,
|
|
868
|
+
curveType: e?.curveType,
|
|
869
|
+
graphTitle: e?.graphTitle,
|
|
870
|
+
graphDescription: e?.graphDescription,
|
|
871
|
+
labels: e?.labels || [
|
|
872
|
+
w("y1", t || [], o || []),
|
|
873
|
+
w("y2", t || [], o || [])
|
|
874
|
+
],
|
|
875
|
+
footNote: e?.footNote,
|
|
876
|
+
width: e?.width,
|
|
877
|
+
height: e?.height,
|
|
878
|
+
suffix: e?.suffix,
|
|
879
|
+
prefix: e?.prefix,
|
|
880
|
+
sources: e?.sources,
|
|
881
|
+
noOfXTicks: e?.noOfXTicks,
|
|
882
|
+
dateFormat: e?.dateFormat,
|
|
883
|
+
showValues: e?.showValues,
|
|
884
|
+
backgroundColor: e?.backgroundColor,
|
|
885
|
+
padding: e?.padding,
|
|
886
|
+
leftMargin: e?.leftMargin,
|
|
887
|
+
rightMargin: e?.rightMargin,
|
|
888
|
+
topMargin: e?.topMargin,
|
|
889
|
+
bottomMargin: e?.bottomMargin,
|
|
890
|
+
lineColors: e?.lineColors,
|
|
891
|
+
sameAxes: e?.sameAxes,
|
|
892
|
+
relativeHeight: e?.relativeHeight,
|
|
893
|
+
tooltip: e?.tooltip,
|
|
894
|
+
highlightAreaSettings: e?.highlightAreaSettings,
|
|
895
|
+
graphID: e?.graphID,
|
|
896
|
+
graphDownload: e?.graphDownload,
|
|
897
|
+
dataDownload: e?.dataDownload,
|
|
898
|
+
language: e?.language,
|
|
899
|
+
minHeight: e?.minHeight,
|
|
900
|
+
animate: e?.animate,
|
|
901
|
+
strokeWidth: e?.strokeWidth,
|
|
902
|
+
showDots: e?.showDots,
|
|
903
|
+
colorLegendTitle: e?.colorLegendTitle,
|
|
904
|
+
ariaLabel: e?.ariaLabel,
|
|
905
|
+
noOfYTicks: e?.noOfYTicks,
|
|
906
|
+
minDate: e?.minDate,
|
|
907
|
+
maxDate: e?.maxDate,
|
|
908
|
+
lineSuffixes: e?.lineSuffixes,
|
|
909
|
+
linePrefixes: e?.linePrefixes,
|
|
910
|
+
styles: e?.styles,
|
|
911
|
+
classNames: e?.classNames
|
|
912
|
+
};
|
|
913
|
+
case "multiLineChart":
|
|
914
|
+
return {
|
|
915
|
+
customLayers: e?.customLayers,
|
|
916
|
+
precision: e?.precision,
|
|
917
|
+
theme: e?.theme,
|
|
918
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
919
|
+
data: a,
|
|
920
|
+
curveType: e?.curveType,
|
|
921
|
+
lineColors: e?.lineColors,
|
|
922
|
+
graphTitle: e?.graphTitle,
|
|
923
|
+
graphDescription: e?.graphDescription,
|
|
924
|
+
footNote: e?.footNote,
|
|
925
|
+
width: e?.width,
|
|
926
|
+
height: e?.height,
|
|
927
|
+
sources: e?.sources,
|
|
928
|
+
noOfXTicks: e?.noOfXTicks,
|
|
929
|
+
dateFormat: e?.dateFormat,
|
|
930
|
+
suffix: e?.suffix,
|
|
931
|
+
prefix: e?.prefix,
|
|
932
|
+
showColorScale: e?.showColorScale,
|
|
933
|
+
labels: e?.labels || w("y", t || [], o || []),
|
|
934
|
+
backgroundColor: e?.backgroundColor,
|
|
935
|
+
padding: e?.padding,
|
|
936
|
+
leftMargin: e?.leftMargin,
|
|
937
|
+
rightMargin: e?.rightMargin,
|
|
938
|
+
topMargin: e?.topMargin,
|
|
939
|
+
bottomMargin: e?.bottomMargin,
|
|
940
|
+
showValues: e?.showValues,
|
|
941
|
+
relativeHeight: e?.relativeHeight,
|
|
942
|
+
showColorLegendAtTop: e?.showColorLegendAtTop,
|
|
943
|
+
tooltip: e?.tooltip,
|
|
944
|
+
refValues: e?.refValues,
|
|
945
|
+
highlightAreaSettings: e?.highlightAreaSettings,
|
|
946
|
+
graphID: e?.graphID,
|
|
947
|
+
maxValue: e?.maxValue,
|
|
948
|
+
minValue: e?.minValue,
|
|
949
|
+
highlightedLines: e?.highlightedLines,
|
|
950
|
+
graphDownload: e?.graphDownload,
|
|
951
|
+
dataDownload: e?.dataDownload,
|
|
952
|
+
language: e?.language,
|
|
953
|
+
minHeight: e?.minHeight,
|
|
954
|
+
animate: e?.animate,
|
|
955
|
+
strokeWidth: e?.strokeWidth,
|
|
956
|
+
showDots: e?.showDots,
|
|
957
|
+
colorLegendTitle: e?.colorLegendTitle,
|
|
958
|
+
customHighlightAreaSettings: e?.customHighlightAreaSettings,
|
|
959
|
+
annotations: e?.annotations,
|
|
960
|
+
ariaLabel: e?.ariaLabel,
|
|
961
|
+
yAxisTitle: e?.yAxisTitle,
|
|
962
|
+
noOfYTicks: e?.noOfYTicks,
|
|
963
|
+
minDate: e?.minDate,
|
|
964
|
+
maxDate: e?.maxDate,
|
|
965
|
+
styles: e?.styles,
|
|
966
|
+
classNames: e?.classNames,
|
|
967
|
+
dashedLines: e?.dashedLines,
|
|
968
|
+
dashSettings: e?.dashSettings,
|
|
969
|
+
labelsToBeHidden: e?.labelsToBeHidden
|
|
970
|
+
};
|
|
971
|
+
case "multiLineAltChart":
|
|
972
|
+
return {
|
|
973
|
+
naLabel: e?.naLabel,
|
|
974
|
+
customLayers: e?.customLayers,
|
|
975
|
+
precision: e?.precision,
|
|
976
|
+
theme: e?.theme,
|
|
977
|
+
data: a,
|
|
978
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
979
|
+
curveType: e?.curveType,
|
|
980
|
+
colors: e?.colors,
|
|
981
|
+
graphTitle: e?.graphTitle,
|
|
982
|
+
graphDescription: e?.graphDescription,
|
|
983
|
+
footNote: e?.footNote,
|
|
984
|
+
width: e?.width,
|
|
985
|
+
height: e?.height,
|
|
986
|
+
sources: e?.sources,
|
|
987
|
+
noOfXTicks: e?.noOfXTicks,
|
|
988
|
+
dateFormat: e?.dateFormat,
|
|
989
|
+
suffix: e?.suffix,
|
|
990
|
+
prefix: e?.prefix,
|
|
991
|
+
backgroundColor: e?.backgroundColor,
|
|
992
|
+
padding: e?.padding,
|
|
993
|
+
leftMargin: e?.leftMargin,
|
|
994
|
+
rightMargin: e?.rightMargin,
|
|
995
|
+
topMargin: e?.topMargin,
|
|
996
|
+
bottomMargin: e?.bottomMargin,
|
|
997
|
+
relativeHeight: e?.relativeHeight,
|
|
998
|
+
tooltip: e?.tooltip,
|
|
999
|
+
refValues: e?.refValues,
|
|
1000
|
+
showLabels: e?.showLabels,
|
|
1001
|
+
highlightAreaSettings: e?.highlightAreaSettings,
|
|
1002
|
+
graphID: e?.graphID,
|
|
1003
|
+
maxValue: e?.maxValue,
|
|
1004
|
+
minValue: e?.minValue,
|
|
1005
|
+
highlightedLines: e?.highlightedLines,
|
|
1006
|
+
graphDownload: e?.graphDownload,
|
|
1007
|
+
dataDownload: e?.dataDownload,
|
|
1008
|
+
language: e?.language,
|
|
1009
|
+
minHeight: e?.minHeight,
|
|
1010
|
+
animate: e?.animate,
|
|
1011
|
+
strokeWidth: e?.strokeWidth,
|
|
1012
|
+
showDots: e?.showDots,
|
|
1013
|
+
colorLegendTitle: e?.colorLegendTitle,
|
|
1014
|
+
customHighlightAreaSettings: e?.customHighlightAreaSettings,
|
|
1015
|
+
annotations: e?.annotations,
|
|
1016
|
+
ariaLabel: e?.ariaLabel,
|
|
1017
|
+
yAxisTitle: e?.yAxisTitle,
|
|
1018
|
+
noOfYTicks: e?.noOfYTicks,
|
|
1019
|
+
minDate: e?.minDate,
|
|
1020
|
+
maxDate: e?.maxDate,
|
|
1021
|
+
styles: e?.styles,
|
|
1022
|
+
classNames: e?.classNames,
|
|
1023
|
+
colorDomain: e?.colorDomain,
|
|
1024
|
+
showNAColor: e?.showNAColor
|
|
1025
|
+
};
|
|
1026
|
+
case "differenceLineChart":
|
|
1027
|
+
return {
|
|
1028
|
+
customLayers: e?.customLayers,
|
|
1029
|
+
precision: e?.precision,
|
|
1030
|
+
theme: e?.theme,
|
|
1031
|
+
data: a,
|
|
1032
|
+
curveType: e?.curveType,
|
|
1033
|
+
lineColors: e?.lineColors,
|
|
1034
|
+
diffAreaColors: e?.diffAreaColors,
|
|
1035
|
+
graphTitle: e?.graphTitle,
|
|
1036
|
+
graphDescription: e?.graphDescription,
|
|
1037
|
+
footNote: e?.footNote,
|
|
1038
|
+
width: e?.width,
|
|
1039
|
+
height: e?.height,
|
|
1040
|
+
sources: e?.sources,
|
|
1041
|
+
noOfXTicks: e?.noOfXTicks,
|
|
1042
|
+
dateFormat: e?.dateFormat,
|
|
1043
|
+
suffix: e?.suffix,
|
|
1044
|
+
prefix: e?.prefix,
|
|
1045
|
+
labels: e?.labels || [
|
|
1046
|
+
w("y1", t || [], o || []),
|
|
1047
|
+
w("y2", t || [], o || [])
|
|
1048
|
+
],
|
|
1049
|
+
backgroundColor: e?.backgroundColor,
|
|
1050
|
+
padding: e?.padding,
|
|
1051
|
+
leftMargin: e?.leftMargin,
|
|
1052
|
+
rightMargin: e?.rightMargin,
|
|
1053
|
+
topMargin: e?.topMargin,
|
|
1054
|
+
bottomMargin: e?.bottomMargin,
|
|
1055
|
+
showValues: e?.showValues,
|
|
1056
|
+
relativeHeight: e?.relativeHeight,
|
|
1057
|
+
showColorLegendAtTop: e?.showColorLegendAtTop,
|
|
1058
|
+
tooltip: e?.tooltip,
|
|
1059
|
+
refValues: e?.refValues,
|
|
1060
|
+
highlightAreaSettings: e?.highlightAreaSettings,
|
|
1061
|
+
graphID: e?.graphID,
|
|
1062
|
+
maxValue: e?.maxValue,
|
|
1063
|
+
minValue: e?.minValue,
|
|
1064
|
+
graphDownload: e?.graphDownload,
|
|
1065
|
+
dataDownload: e?.dataDownload,
|
|
1066
|
+
language: e?.language,
|
|
1067
|
+
minHeight: e?.minHeight,
|
|
1068
|
+
animate: e?.animate,
|
|
1069
|
+
strokeWidth: e?.strokeWidth,
|
|
1070
|
+
showDots: e?.showDots,
|
|
1071
|
+
colorLegendTitle: e?.colorLegendTitle,
|
|
1072
|
+
customHighlightAreaSettings: e?.customHighlightAreaSettings,
|
|
1073
|
+
annotations: e?.annotations,
|
|
1074
|
+
ariaLabel: e?.ariaLabel,
|
|
1075
|
+
yAxisTitle: e?.yAxisTitle,
|
|
1076
|
+
noOfYTicks: e?.noOfYTicks,
|
|
1077
|
+
minDate: e?.minDate,
|
|
1078
|
+
maxDate: e?.maxDate,
|
|
1079
|
+
styles: e?.styles,
|
|
1080
|
+
classNames: e?.classNames
|
|
1081
|
+
};
|
|
1082
|
+
case "stackedAreaChart":
|
|
1083
|
+
return {
|
|
1084
|
+
customLayers: e?.customLayers,
|
|
1085
|
+
precision: e?.precision,
|
|
1086
|
+
theme: e?.theme,
|
|
1087
|
+
data: a,
|
|
1088
|
+
curveType: e?.curveType,
|
|
1089
|
+
colors: e?.colors,
|
|
1090
|
+
graphTitle: e?.graphTitle,
|
|
1091
|
+
graphDescription: e?.graphDescription,
|
|
1092
|
+
footNote: e?.footNote,
|
|
1093
|
+
width: e?.width,
|
|
1094
|
+
height: e?.height,
|
|
1095
|
+
sources: e?.sources,
|
|
1096
|
+
noOfXTicks: e?.noOfXTicks,
|
|
1097
|
+
dateFormat: e?.dateFormat,
|
|
1098
|
+
colorDomain: e?.colorDomain || w("y", t || [], o || []),
|
|
1099
|
+
backgroundColor: e?.backgroundColor,
|
|
1100
|
+
padding: e?.padding,
|
|
1101
|
+
colorLegendTitle: e?.colorLegendTitle,
|
|
1102
|
+
leftMargin: e?.leftMargin,
|
|
1103
|
+
rightMargin: e?.rightMargin,
|
|
1104
|
+
topMargin: e?.topMargin,
|
|
1105
|
+
relativeHeight: e?.relativeHeight,
|
|
1106
|
+
bottomMargin: e?.bottomMargin,
|
|
1107
|
+
tooltip: e?.tooltip,
|
|
1108
|
+
refValues: e?.refValues,
|
|
1109
|
+
highlightAreaSettings: e?.highlightAreaSettings,
|
|
1110
|
+
graphID: e?.graphID,
|
|
1111
|
+
maxValue: e?.maxValue,
|
|
1112
|
+
minValue: e?.minValue,
|
|
1113
|
+
graphDownload: e?.graphDownload,
|
|
1114
|
+
dataDownload: e?.dataDownload,
|
|
1115
|
+
showColorScale: e?.showColorScale,
|
|
1116
|
+
language: e?.language,
|
|
1117
|
+
minHeight: e?.minHeight,
|
|
1118
|
+
customHighlightAreaSettings: e?.customHighlightAreaSettings,
|
|
1119
|
+
annotations: e?.annotations,
|
|
1120
|
+
ariaLabel: e?.ariaLabel,
|
|
1121
|
+
yAxisTitle: e?.yAxisTitle,
|
|
1122
|
+
noOfYTicks: e?.noOfYTicks,
|
|
1123
|
+
suffix: e?.suffix,
|
|
1124
|
+
prefix: e?.prefix,
|
|
1125
|
+
styles: e?.styles,
|
|
1126
|
+
classNames: e?.classNames
|
|
1127
|
+
};
|
|
1128
|
+
case "choroplethMap":
|
|
1129
|
+
return {
|
|
1130
|
+
timeline: e?.timeline,
|
|
1131
|
+
customLayers: e?.customLayers,
|
|
1132
|
+
theme: e?.theme,
|
|
1133
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1134
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1135
|
+
graphTitle: e?.graphTitle,
|
|
1136
|
+
mapData: e?.mapData,
|
|
1137
|
+
mapProjection: e?.mapProjection,
|
|
1138
|
+
graphDescription: e?.graphDescription,
|
|
1139
|
+
footNote: e?.footNote,
|
|
1140
|
+
width: e?.width,
|
|
1141
|
+
height: e?.height,
|
|
1142
|
+
sources: e?.sources,
|
|
1143
|
+
colorDomain: e?.colorDomain,
|
|
1144
|
+
colors: e?.colors,
|
|
1145
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("x", t || [], o || []),
|
|
1146
|
+
scaleType: e?.scaleType,
|
|
1147
|
+
categorical: e?.categorical,
|
|
1148
|
+
data: a,
|
|
1149
|
+
scale: e?.scale,
|
|
1150
|
+
centerPoint: e?.centerPoint,
|
|
1151
|
+
backgroundColor: e?.backgroundColor,
|
|
1152
|
+
mapBorderWidth: e?.mapBorderWidth,
|
|
1153
|
+
mapNoDataColor: e?.mapNoDataColor,
|
|
1154
|
+
mapBorderColor: e?.mapBorderColor,
|
|
1155
|
+
relativeHeight: e?.relativeHeight,
|
|
1156
|
+
padding: e?.padding,
|
|
1157
|
+
isWorldMap: e?.isWorldMap,
|
|
1158
|
+
tooltip: e?.tooltip,
|
|
1159
|
+
showColorScale: e?.showColorScale,
|
|
1160
|
+
zoomScaleExtend: e?.zoomScaleExtend,
|
|
1161
|
+
zoomTranslateExtend: e?.zoomTranslateExtend,
|
|
1162
|
+
graphID: e?.graphID,
|
|
1163
|
+
highlightedIds: e?.highlightedIds,
|
|
1164
|
+
graphDownload: e?.graphDownload,
|
|
1165
|
+
dataDownload: e?.dataDownload,
|
|
1166
|
+
mapProperty: e?.mapProperty,
|
|
1167
|
+
showAntarctica: e?.showAntarctica,
|
|
1168
|
+
language: e?.language,
|
|
1169
|
+
minHeight: e?.minHeight,
|
|
1170
|
+
ariaLabel: e?.ariaLabel,
|
|
1171
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1172
|
+
onSeriesMouseClick: (r) => {
|
|
1173
|
+
c?.(r.id);
|
|
1174
|
+
},
|
|
1175
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1176
|
+
styles: e?.styles,
|
|
1177
|
+
classNames: e?.classNames,
|
|
1178
|
+
zoomInteraction: e?.zoomInteraction,
|
|
1179
|
+
animate: e?.animate
|
|
1180
|
+
};
|
|
1181
|
+
case "biVariateChoroplethMap":
|
|
1182
|
+
return {
|
|
1183
|
+
timeline: e?.timeline,
|
|
1184
|
+
customLayers: e?.customLayers,
|
|
1185
|
+
theme: e?.theme,
|
|
1186
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1187
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1188
|
+
data: a,
|
|
1189
|
+
mapData: e?.mapData,
|
|
1190
|
+
mapProjection: e?.mapProjection,
|
|
1191
|
+
graphTitle: e?.graphTitle,
|
|
1192
|
+
graphDescription: e?.graphDescription,
|
|
1193
|
+
footNote: e?.footNote,
|
|
1194
|
+
width: e?.width,
|
|
1195
|
+
height: e?.height,
|
|
1196
|
+
sources: e?.sources,
|
|
1197
|
+
xColorLegendTitle: Object.keys(e || {}).indexOf("xColorLegendTitle") !== -1 ? e?.xColorLegendTitle : w("x", t || [], o || []),
|
|
1198
|
+
yColorLegendTitle: Object.keys(e || {}).indexOf("yColorLegendTitle") !== -1 ? e?.yColorLegendTitle : w("y", t || [], o || []),
|
|
1199
|
+
xDomain: e?.xDomain,
|
|
1200
|
+
yDomain: e?.yDomain,
|
|
1201
|
+
colors: e?.colors,
|
|
1202
|
+
scale: e?.scale,
|
|
1203
|
+
centerPoint: e?.centerPoint,
|
|
1204
|
+
backgroundColor: e?.backgroundColor,
|
|
1205
|
+
mapBorderWidth: e?.mapBorderWidth,
|
|
1206
|
+
mapNoDataColor: e?.mapNoDataColor,
|
|
1207
|
+
padding: e?.padding,
|
|
1208
|
+
mapBorderColor: e?.mapBorderColor,
|
|
1209
|
+
relativeHeight: e?.relativeHeight,
|
|
1210
|
+
tooltip: e?.tooltip,
|
|
1211
|
+
isWorldMap: e?.isWorldMap,
|
|
1212
|
+
zoomScaleExtend: e?.zoomScaleExtend,
|
|
1213
|
+
zoomTranslateExtend: e?.zoomTranslateExtend,
|
|
1214
|
+
graphID: e?.graphID,
|
|
1215
|
+
highlightedIds: e?.highlightedIds,
|
|
1216
|
+
mapProperty: e?.mapProperty,
|
|
1217
|
+
graphDownload: e?.graphDownload,
|
|
1218
|
+
dataDownload: e?.dataDownload,
|
|
1219
|
+
showAntarctica: e?.showAntarctica,
|
|
1220
|
+
language: e?.language,
|
|
1221
|
+
minHeight: e?.minHeight,
|
|
1222
|
+
ariaLabel: e?.ariaLabel,
|
|
1223
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1224
|
+
onSeriesMouseClick: (r) => {
|
|
1225
|
+
c?.(r.id);
|
|
1226
|
+
},
|
|
1227
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1228
|
+
styles: e?.styles,
|
|
1229
|
+
classNames: e?.classNames,
|
|
1230
|
+
zoomInteraction: e?.zoomInteraction,
|
|
1231
|
+
animate: e?.animate
|
|
1232
|
+
};
|
|
1233
|
+
case "dotDensityMap":
|
|
1234
|
+
return {
|
|
1235
|
+
timeline: e?.timeline,
|
|
1236
|
+
customLayers: e?.customLayers,
|
|
1237
|
+
theme: e?.theme,
|
|
1238
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1239
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1240
|
+
graphTitle: e?.graphTitle,
|
|
1241
|
+
mapData: e?.mapData,
|
|
1242
|
+
mapProjection: e?.mapProjection,
|
|
1243
|
+
graphDescription: e?.graphDescription,
|
|
1244
|
+
footNote: e?.footNote,
|
|
1245
|
+
maxRadiusValue: e?.maxRadiusValue,
|
|
1246
|
+
width: e?.width,
|
|
1247
|
+
height: e?.height,
|
|
1248
|
+
radius: e?.radius,
|
|
1249
|
+
sources: e?.sources,
|
|
1250
|
+
colors: e?.colors,
|
|
1251
|
+
colorDomain: e?.colorDomain,
|
|
1252
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("color", t || [], o || []),
|
|
1253
|
+
data: a,
|
|
1254
|
+
scale: e?.scale,
|
|
1255
|
+
centerPoint: e?.centerPoint,
|
|
1256
|
+
backgroundColor: e?.backgroundColor,
|
|
1257
|
+
mapBorderWidth: e?.mapBorderWidth,
|
|
1258
|
+
mapNoDataColor: e?.mapNoDataColor,
|
|
1259
|
+
mapBorderColor: e?.mapBorderColor,
|
|
1260
|
+
padding: e?.padding,
|
|
1261
|
+
showLabels: e?.showLabels,
|
|
1262
|
+
relativeHeight: e?.relativeHeight,
|
|
1263
|
+
isWorldMap: e?.isWorldMap,
|
|
1264
|
+
tooltip: e?.tooltip,
|
|
1265
|
+
showColorScale: e?.showColorScale,
|
|
1266
|
+
zoomScaleExtend: e?.zoomScaleExtend,
|
|
1267
|
+
zoomTranslateExtend: e?.zoomTranslateExtend,
|
|
1268
|
+
graphID: e?.graphID,
|
|
1269
|
+
highlightedDataPoints: e?.highlightedDataPoints,
|
|
1270
|
+
graphDownload: e?.graphDownload,
|
|
1271
|
+
dataDownload: e?.dataDownload,
|
|
1272
|
+
showAntarctica: e?.showAntarctica,
|
|
1273
|
+
language: e?.language,
|
|
1274
|
+
minHeight: e?.minHeight,
|
|
1275
|
+
ariaLabel: e?.ariaLabel,
|
|
1276
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1277
|
+
styles: e?.styles,
|
|
1278
|
+
classNames: e?.classNames,
|
|
1279
|
+
zoomInteraction: e?.zoomInteraction,
|
|
1280
|
+
animate: e?.animate
|
|
1281
|
+
};
|
|
1282
|
+
case "threeDGlobe":
|
|
1283
|
+
return {
|
|
1284
|
+
globeOffset: e?.globeOffset,
|
|
1285
|
+
polygonAltitude: e?.polygonAltitude,
|
|
1286
|
+
highlightedIds: e?.highlightedIds,
|
|
1287
|
+
scale: e?.scale,
|
|
1288
|
+
theme: e?.theme,
|
|
1289
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1290
|
+
graphTitle: e?.graphTitle,
|
|
1291
|
+
mapData: e?.mapData,
|
|
1292
|
+
graphDescription: e?.graphDescription,
|
|
1293
|
+
footNote: e?.footNote,
|
|
1294
|
+
width: e?.width,
|
|
1295
|
+
height: e?.height,
|
|
1296
|
+
sources: e?.sources,
|
|
1297
|
+
colorDomain: e?.colorDomain,
|
|
1298
|
+
colors: e?.colors,
|
|
1299
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("x", t || [], o || []),
|
|
1300
|
+
scaleType: e?.scaleType,
|
|
1301
|
+
data: a,
|
|
1302
|
+
centerPoint: e?.centerPoint,
|
|
1303
|
+
backgroundColor: e?.backgroundColor,
|
|
1304
|
+
mapNoDataColor: e?.mapNoDataColor,
|
|
1305
|
+
mapBorderColor: e?.mapBorderColor,
|
|
1306
|
+
relativeHeight: e?.relativeHeight,
|
|
1307
|
+
padding: e?.padding,
|
|
1308
|
+
tooltip: e?.tooltip,
|
|
1309
|
+
showColorScale: e?.showColorScale,
|
|
1310
|
+
graphID: e?.graphID,
|
|
1311
|
+
dataDownload: e?.dataDownload,
|
|
1312
|
+
mapProperty: e?.mapProperty,
|
|
1313
|
+
language: e?.language,
|
|
1314
|
+
minHeight: e?.minHeight,
|
|
1315
|
+
ariaLabel: e?.ariaLabel,
|
|
1316
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1317
|
+
onSeriesMouseClick: (r) => {
|
|
1318
|
+
c?.(r.id);
|
|
1319
|
+
},
|
|
1320
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1321
|
+
styles: e?.styles,
|
|
1322
|
+
classNames: e?.classNames,
|
|
1323
|
+
categorical: e?.categorical,
|
|
1324
|
+
autoRotate: e?.autoRotate,
|
|
1325
|
+
globeMaterial: e?.globeMaterial,
|
|
1326
|
+
atmosphereColor: e?.atmosphereColor,
|
|
1327
|
+
enableZoom: e?.enableZoom
|
|
1328
|
+
};
|
|
1329
|
+
case "donutChart":
|
|
1330
|
+
return {
|
|
1331
|
+
precision: e?.precision,
|
|
1332
|
+
theme: e?.theme,
|
|
1333
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1334
|
+
mainText: e?.mainText,
|
|
1335
|
+
data: a,
|
|
1336
|
+
colors: e?.colors,
|
|
1337
|
+
graphTitle: e?.graphTitle,
|
|
1338
|
+
suffix: e?.suffix,
|
|
1339
|
+
prefix: e?.prefix,
|
|
1340
|
+
sources: e?.sources,
|
|
1341
|
+
graphDescription: e?.graphDescription,
|
|
1342
|
+
subNote: e?.subNote,
|
|
1343
|
+
footNote: e?.footNote,
|
|
1344
|
+
radius: e?.radius,
|
|
1345
|
+
strokeWidth: e?.strokeWidth,
|
|
1346
|
+
showColorScale: e?.showColorScale,
|
|
1347
|
+
backgroundColor: e?.backgroundColor,
|
|
1348
|
+
padding: e?.padding,
|
|
1349
|
+
tooltip: e?.tooltip,
|
|
1350
|
+
graphID: e?.graphID,
|
|
1351
|
+
graphDownload: e?.graphDownload,
|
|
1352
|
+
dataDownload: e?.dataDownload,
|
|
1353
|
+
colorDomain: e?.colorDomain,
|
|
1354
|
+
sortData: e?.sortData,
|
|
1355
|
+
language: e?.language,
|
|
1356
|
+
width: e?.width,
|
|
1357
|
+
height: e?.height,
|
|
1358
|
+
minHeight: e?.minHeight,
|
|
1359
|
+
relativeHeight: e?.relativeHeight,
|
|
1360
|
+
topMargin: e?.topMargin,
|
|
1361
|
+
bottomMargin: e?.bottomMargin,
|
|
1362
|
+
ariaLabel: e?.ariaLabel,
|
|
1363
|
+
legendMaxWidth: e?.legendMaxWidth,
|
|
1364
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1365
|
+
onSeriesMouseClick: (r) => {
|
|
1366
|
+
c?.(r.label);
|
|
1367
|
+
},
|
|
1368
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1369
|
+
styles: e?.styles,
|
|
1370
|
+
classNames: e?.classNames,
|
|
1371
|
+
colorScaleMaxWidth: e?.colorScaleMaxWidth
|
|
1372
|
+
};
|
|
1373
|
+
case "slopeChart":
|
|
1374
|
+
return {
|
|
1375
|
+
customLayers: e?.customLayers,
|
|
1376
|
+
theme: e?.theme,
|
|
1377
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1378
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1379
|
+
data: a,
|
|
1380
|
+
graphTitle: e?.graphTitle,
|
|
1381
|
+
graphDescription: e?.graphDescription,
|
|
1382
|
+
footNote: e?.footNote,
|
|
1383
|
+
width: e?.width,
|
|
1384
|
+
height: e?.height,
|
|
1385
|
+
sources: e?.sources,
|
|
1386
|
+
showLabels: e?.showLabels,
|
|
1387
|
+
colors: e?.colors,
|
|
1388
|
+
colorDomain: e?.colorDomain,
|
|
1389
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("color", t || [], o || []),
|
|
1390
|
+
radius: e?.radius,
|
|
1391
|
+
axisTitles: e?.axisTitles,
|
|
1392
|
+
backgroundColor: e?.backgroundColor,
|
|
1393
|
+
padding: e?.padding,
|
|
1394
|
+
leftMargin: e?.leftMargin,
|
|
1395
|
+
rightMargin: e?.rightMargin,
|
|
1396
|
+
topMargin: e?.topMargin,
|
|
1397
|
+
bottomMargin: e?.bottomMargin,
|
|
1398
|
+
relativeHeight: e?.relativeHeight,
|
|
1399
|
+
tooltip: e?.tooltip,
|
|
1400
|
+
highlightedDataPoints: e?.highlightedDataPoints,
|
|
1401
|
+
showColorScale: e?.showColorScale,
|
|
1402
|
+
graphID: e?.graphID,
|
|
1403
|
+
maxValue: e?.maxValue,
|
|
1404
|
+
minValue: e?.minValue,
|
|
1405
|
+
graphDownload: e?.graphDownload,
|
|
1406
|
+
dataDownload: e?.dataDownload,
|
|
1407
|
+
fillContainer: e?.fillContainer,
|
|
1408
|
+
language: e?.language,
|
|
1409
|
+
minHeight: e?.minHeight,
|
|
1410
|
+
ariaLabel: e?.ariaLabel,
|
|
1411
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1412
|
+
styles: e?.styles,
|
|
1413
|
+
classNames: e?.classNames,
|
|
1414
|
+
animate: e?.animate
|
|
1415
|
+
};
|
|
1416
|
+
case "scatterPlot":
|
|
1417
|
+
return {
|
|
1418
|
+
timeline: e?.timeline,
|
|
1419
|
+
customLayers: e?.customLayers,
|
|
1420
|
+
precision: e?.precision,
|
|
1421
|
+
theme: e?.theme,
|
|
1422
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1423
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1424
|
+
data: a,
|
|
1425
|
+
graphTitle: e?.graphTitle,
|
|
1426
|
+
graphDescription: e?.graphDescription,
|
|
1427
|
+
footNote: e?.footNote,
|
|
1428
|
+
width: e?.width,
|
|
1429
|
+
height: e?.height,
|
|
1430
|
+
sources: e?.sources,
|
|
1431
|
+
showLabels: e?.showLabels,
|
|
1432
|
+
colors: e?.colors,
|
|
1433
|
+
colorDomain: e?.colorDomain,
|
|
1434
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("color", t || [], o || []),
|
|
1435
|
+
radius: e?.radius,
|
|
1436
|
+
xAxisTitle: Object.keys(e || {}).indexOf("xAxisTitle") !== -1 ? e?.xAxisTitle : w("x", t || [], o || []),
|
|
1437
|
+
yAxisTitle: Object.keys(e || {}).indexOf("yAxisTitle") !== -1 ? e?.yAxisTitle : w("y", t || [], o || []),
|
|
1438
|
+
backgroundColor: e?.backgroundColor,
|
|
1439
|
+
padding: e?.padding,
|
|
1440
|
+
leftMargin: e?.leftMargin,
|
|
1441
|
+
rightMargin: e?.rightMargin,
|
|
1442
|
+
topMargin: e?.topMargin,
|
|
1443
|
+
bottomMargin: e?.bottomMargin,
|
|
1444
|
+
relativeHeight: e?.relativeHeight,
|
|
1445
|
+
tooltip: e?.tooltip,
|
|
1446
|
+
refXValues: e?.refXValues,
|
|
1447
|
+
refYValues: e?.refYValues,
|
|
1448
|
+
highlightedDataPoints: e?.highlightedDataPoints,
|
|
1449
|
+
highlightAreaSettings: e?.highlightAreaSettings,
|
|
1450
|
+
showColorScale: e?.showColorScale,
|
|
1451
|
+
graphID: e?.graphID,
|
|
1452
|
+
maxRadiusValue: e?.maxRadiusValue,
|
|
1453
|
+
maxXValue: e?.maxXValue,
|
|
1454
|
+
minXValue: e?.minXValue,
|
|
1455
|
+
maxYValue: e?.maxYValue,
|
|
1456
|
+
minYValue: e?.minYValue,
|
|
1457
|
+
graphDownload: e?.graphDownload,
|
|
1458
|
+
dataDownload: e?.dataDownload,
|
|
1459
|
+
language: e?.language,
|
|
1460
|
+
minHeight: e?.minHeight,
|
|
1461
|
+
showNAColor: e?.showNAColor,
|
|
1462
|
+
customHighlightAreaSettings: e?.customHighlightAreaSettings,
|
|
1463
|
+
annotations: e?.annotations,
|
|
1464
|
+
regressionLine: e?.regressionLine,
|
|
1465
|
+
ariaLabel: e?.ariaLabel,
|
|
1466
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1467
|
+
noOfXTicks: e?.noOfXTicks,
|
|
1468
|
+
noOfYTicks: e?.noOfYTicks,
|
|
1469
|
+
labelColor: e?.labelColor,
|
|
1470
|
+
xSuffix: e?.xSuffix,
|
|
1471
|
+
ySuffix: e?.ySuffix,
|
|
1472
|
+
xPrefix: e?.xPrefix,
|
|
1473
|
+
yPrefix: e?.yPrefix,
|
|
1474
|
+
styles: e?.styles,
|
|
1475
|
+
classNames: e?.classNames,
|
|
1476
|
+
animate: e?.animate
|
|
1477
|
+
};
|
|
1478
|
+
case "dumbbellChart":
|
|
1479
|
+
return {
|
|
1480
|
+
timeline: e?.timeline,
|
|
1481
|
+
customLayers: e?.customLayers,
|
|
1482
|
+
precision: e?.precision,
|
|
1483
|
+
theme: e?.theme,
|
|
1484
|
+
orientation: e?.orientation,
|
|
1485
|
+
refValues: e?.refValues,
|
|
1486
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1487
|
+
data: a,
|
|
1488
|
+
colors: e?.colors,
|
|
1489
|
+
graphTitle: e?.graphTitle,
|
|
1490
|
+
graphDescription: e?.graphDescription,
|
|
1491
|
+
footNote: e?.footNote,
|
|
1492
|
+
width: e?.width,
|
|
1493
|
+
height: e?.height,
|
|
1494
|
+
sources: e?.sources,
|
|
1495
|
+
barPadding: e?.barPadding,
|
|
1496
|
+
showTicks: e?.showTicks,
|
|
1497
|
+
leftMargin: e?.leftMargin,
|
|
1498
|
+
rightMargin: e?.rightMargin,
|
|
1499
|
+
topMargin: e?.topMargin,
|
|
1500
|
+
bottomMargin: e?.bottomMargin,
|
|
1501
|
+
truncateBy: e?.truncateBy,
|
|
1502
|
+
labelOrder: e?.labelOrder,
|
|
1503
|
+
showColorScale: e?.showColorScale,
|
|
1504
|
+
colorDomain: e?.colorDomain || w("x", t || [], o || []),
|
|
1505
|
+
colorLegendTitle: e?.colorLegendTitle,
|
|
1506
|
+
backgroundColor: e?.backgroundColor,
|
|
1507
|
+
padding: e?.padding,
|
|
1508
|
+
radius: e?.radius,
|
|
1509
|
+
relativeHeight: e?.relativeHeight,
|
|
1510
|
+
showValues: e?.showValues,
|
|
1511
|
+
showLabels: e?.showLabels,
|
|
1512
|
+
tooltip: e?.tooltip,
|
|
1513
|
+
graphID: e?.graphID,
|
|
1514
|
+
maxValue: e?.maxValue,
|
|
1515
|
+
minValue: e?.minValue,
|
|
1516
|
+
graphDownload: e?.graphDownload,
|
|
1517
|
+
dataDownload: e?.dataDownload,
|
|
1518
|
+
suffix: e?.suffix,
|
|
1519
|
+
prefix: e?.prefix,
|
|
1520
|
+
language: e?.language,
|
|
1521
|
+
minHeight: e?.minHeight,
|
|
1522
|
+
sortParameter: e?.sortParameter,
|
|
1523
|
+
arrowConnector: e?.arrowConnector,
|
|
1524
|
+
connectorStrokeWidth: e?.connectorStrokeWidth,
|
|
1525
|
+
maxBarThickness: e?.maxBarThickness,
|
|
1526
|
+
minBarThickness: e?.minBarThickness,
|
|
1527
|
+
maxNumberOfBars: e?.maxNumberOfBars,
|
|
1528
|
+
ariaLabel: e?.ariaLabel,
|
|
1529
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1530
|
+
axisTitle: e?.axisTitle,
|
|
1531
|
+
noOfTicks: e?.noOfTicks,
|
|
1532
|
+
valueColor: e?.valueColor,
|
|
1533
|
+
styles: e?.styles,
|
|
1534
|
+
classNames: e?.classNames,
|
|
1535
|
+
animate: e?.animate,
|
|
1536
|
+
highlightedDataPoints: e?.highlightedDataPoints,
|
|
1537
|
+
dimmedOpacity: e?.dimmedOpacity
|
|
1538
|
+
};
|
|
1539
|
+
case "treeMap":
|
|
1540
|
+
return {
|
|
1541
|
+
precision: e?.precision,
|
|
1542
|
+
theme: e?.theme,
|
|
1543
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1544
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1545
|
+
data: a,
|
|
1546
|
+
colors: e?.colors,
|
|
1547
|
+
graphTitle: e?.graphTitle,
|
|
1548
|
+
graphDescription: e?.graphDescription,
|
|
1549
|
+
footNote: e?.footNote,
|
|
1550
|
+
width: e?.width,
|
|
1551
|
+
height: e?.height,
|
|
1552
|
+
suffix: e?.suffix,
|
|
1553
|
+
prefix: e?.prefix,
|
|
1554
|
+
sources: e?.sources,
|
|
1555
|
+
leftMargin: e?.leftMargin,
|
|
1556
|
+
rightMargin: e?.rightMargin,
|
|
1557
|
+
colorDomain: e?.colorDomain,
|
|
1558
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("color", t || [], o || []),
|
|
1559
|
+
backgroundColor: e?.backgroundColor,
|
|
1560
|
+
padding: e?.padding,
|
|
1561
|
+
topMargin: e?.topMargin,
|
|
1562
|
+
bottomMargin: e?.bottomMargin,
|
|
1563
|
+
relativeHeight: e?.relativeHeight,
|
|
1564
|
+
showLabels: e?.showLabels,
|
|
1565
|
+
tooltip: e?.tooltip,
|
|
1566
|
+
showColorScale: e?.showColorScale,
|
|
1567
|
+
showValues: e?.showValues,
|
|
1568
|
+
graphID: e?.graphID,
|
|
1569
|
+
highlightedDataPoints: e?.highlightedDataPoints,
|
|
1570
|
+
graphDownload: e?.graphDownload,
|
|
1571
|
+
dataDownload: e?.dataDownload,
|
|
1572
|
+
language: e?.language,
|
|
1573
|
+
minHeight: e?.minHeight,
|
|
1574
|
+
showNAColor: e?.showNAColor,
|
|
1575
|
+
ariaLabel: e?.ariaLabel,
|
|
1576
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1577
|
+
onSeriesMouseClick: (r) => {
|
|
1578
|
+
c?.(r.label);
|
|
1579
|
+
},
|
|
1580
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1581
|
+
styles: e?.styles,
|
|
1582
|
+
classNames: e?.classNames,
|
|
1583
|
+
animate: e?.animate
|
|
1584
|
+
};
|
|
1585
|
+
case "circlePacking":
|
|
1586
|
+
return {
|
|
1587
|
+
precision: e?.precision,
|
|
1588
|
+
theme: e?.theme,
|
|
1589
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1590
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1591
|
+
data: a,
|
|
1592
|
+
colors: e?.colors,
|
|
1593
|
+
graphTitle: e?.graphTitle,
|
|
1594
|
+
graphDescription: e?.graphDescription,
|
|
1595
|
+
footNote: e?.footNote,
|
|
1596
|
+
width: e?.width,
|
|
1597
|
+
height: e?.height,
|
|
1598
|
+
suffix: e?.suffix,
|
|
1599
|
+
prefix: e?.prefix,
|
|
1600
|
+
sources: e?.sources,
|
|
1601
|
+
leftMargin: e?.leftMargin,
|
|
1602
|
+
rightMargin: e?.rightMargin,
|
|
1603
|
+
colorDomain: e?.colorDomain,
|
|
1604
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("color", t || [], o || []),
|
|
1605
|
+
backgroundColor: e?.backgroundColor,
|
|
1606
|
+
padding: e?.padding,
|
|
1607
|
+
topMargin: e?.topMargin,
|
|
1608
|
+
bottomMargin: e?.bottomMargin,
|
|
1609
|
+
relativeHeight: e?.relativeHeight,
|
|
1610
|
+
showLabels: e?.showLabels,
|
|
1611
|
+
tooltip: e?.tooltip,
|
|
1612
|
+
showColorScale: e?.showColorScale,
|
|
1613
|
+
showValues: e?.showValues,
|
|
1614
|
+
graphID: e?.graphID,
|
|
1615
|
+
highlightedDataPoints: e?.highlightedDataPoints,
|
|
1616
|
+
graphDownload: e?.graphDownload,
|
|
1617
|
+
dataDownload: e?.dataDownload,
|
|
1618
|
+
language: e?.language,
|
|
1619
|
+
minHeight: e?.minHeight,
|
|
1620
|
+
showNAColor: e?.showNAColor,
|
|
1621
|
+
ariaLabel: e?.ariaLabel,
|
|
1622
|
+
radius: e?.radius,
|
|
1623
|
+
maxRadiusValue: e?.maxRadiusValue,
|
|
1624
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1625
|
+
onSeriesMouseClick: (r) => {
|
|
1626
|
+
c?.(r.label);
|
|
1627
|
+
},
|
|
1628
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1629
|
+
styles: e?.styles,
|
|
1630
|
+
classNames: e?.classNames,
|
|
1631
|
+
animate: e?.animate
|
|
1632
|
+
};
|
|
1633
|
+
case "heatMap":
|
|
1634
|
+
return {
|
|
1635
|
+
precision: e?.precision,
|
|
1636
|
+
theme: e?.theme,
|
|
1637
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1638
|
+
data: a,
|
|
1639
|
+
colors: e?.colors,
|
|
1640
|
+
graphTitle: e?.graphTitle,
|
|
1641
|
+
graphDescription: e?.graphDescription,
|
|
1642
|
+
footNote: e?.footNote,
|
|
1643
|
+
width: e?.width,
|
|
1644
|
+
height: e?.height,
|
|
1645
|
+
sources: e?.sources,
|
|
1646
|
+
scaleType: e?.scaleType,
|
|
1647
|
+
colorDomain: e?.colorDomain,
|
|
1648
|
+
showColumnLabels: e?.showColumnLabels,
|
|
1649
|
+
leftMargin: e?.leftMargin,
|
|
1650
|
+
rightMargin: e?.rightMargin,
|
|
1651
|
+
truncateBy: e?.truncateBy,
|
|
1652
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("color", t || [], o || []),
|
|
1653
|
+
backgroundColor: e?.backgroundColor,
|
|
1654
|
+
padding: e?.padding,
|
|
1655
|
+
topMargin: e?.topMargin,
|
|
1656
|
+
bottomMargin: e?.bottomMargin,
|
|
1657
|
+
suffix: e?.suffix,
|
|
1658
|
+
prefix: e?.prefix,
|
|
1659
|
+
showValues: e?.showValues,
|
|
1660
|
+
showRowLabels: e?.showRowLabels,
|
|
1661
|
+
relativeHeight: e?.relativeHeight,
|
|
1662
|
+
tooltip: e?.tooltip,
|
|
1663
|
+
graphID: e?.graphID,
|
|
1664
|
+
noDataColor: e?.noDataColor,
|
|
1665
|
+
showColorScale: e?.showColorScale,
|
|
1666
|
+
graphDownload: e?.graphDownload,
|
|
1667
|
+
dataDownload: e?.dataDownload,
|
|
1668
|
+
fillContainer: e?.fillContainer,
|
|
1669
|
+
language: e?.language,
|
|
1670
|
+
minHeight: e?.minHeight,
|
|
1671
|
+
showNAColor: e?.showNAColor,
|
|
1672
|
+
ariaLabel: e?.ariaLabel,
|
|
1673
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1674
|
+
styles: e?.styles,
|
|
1675
|
+
classNames: e?.classNames,
|
|
1676
|
+
animate: e?.animate
|
|
1677
|
+
};
|
|
1678
|
+
case "stripChart":
|
|
1679
|
+
return {
|
|
1680
|
+
customLayers: e?.customLayers,
|
|
1681
|
+
precision: e?.precision,
|
|
1682
|
+
theme: e?.theme,
|
|
1683
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1684
|
+
orientation: e?.orientation,
|
|
1685
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1686
|
+
data: a,
|
|
1687
|
+
graphTitle: e?.graphTitle,
|
|
1688
|
+
graphDescription: e?.graphDescription,
|
|
1689
|
+
footNote: e?.footNote,
|
|
1690
|
+
width: e?.width,
|
|
1691
|
+
height: e?.height,
|
|
1692
|
+
sources: e?.sources,
|
|
1693
|
+
colors: e?.colors,
|
|
1694
|
+
colorDomain: e?.colorDomain,
|
|
1695
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("color", t || [], o || []),
|
|
1696
|
+
radius: e?.radius,
|
|
1697
|
+
backgroundColor: e?.backgroundColor,
|
|
1698
|
+
padding: e?.padding,
|
|
1699
|
+
leftMargin: e?.leftMargin,
|
|
1700
|
+
rightMargin: e?.rightMargin,
|
|
1701
|
+
topMargin: e?.topMargin,
|
|
1702
|
+
bottomMargin: e?.bottomMargin,
|
|
1703
|
+
relativeHeight: e?.relativeHeight,
|
|
1704
|
+
tooltip: e?.tooltip,
|
|
1705
|
+
highlightedDataPoints: e?.highlightedDataPoints,
|
|
1706
|
+
showColorScale: e?.showColorScale,
|
|
1707
|
+
graphID: e?.graphID,
|
|
1708
|
+
maxValue: e?.maxValue,
|
|
1709
|
+
minValue: e?.minValue,
|
|
1710
|
+
noOfTicks: e?.noOfTicks,
|
|
1711
|
+
graphDownload: e?.graphDownload,
|
|
1712
|
+
dataDownload: e?.dataDownload,
|
|
1713
|
+
prefix: e?.prefix,
|
|
1714
|
+
suffix: e?.suffix,
|
|
1715
|
+
stripType: e?.stripType,
|
|
1716
|
+
valueColor: e?.valueColor,
|
|
1717
|
+
language: e?.language,
|
|
1718
|
+
minHeight: e?.minHeight,
|
|
1719
|
+
highlightColor: e?.highlightColor,
|
|
1720
|
+
dotOpacity: e?.dotOpacity,
|
|
1721
|
+
showNAColor: e?.showNAColor,
|
|
1722
|
+
ariaLabel: e?.ariaLabel,
|
|
1723
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1724
|
+
styles: e?.styles,
|
|
1725
|
+
classNames: e?.classNames,
|
|
1726
|
+
animate: e?.animate
|
|
1727
|
+
};
|
|
1728
|
+
case "beeSwarmChart":
|
|
1729
|
+
return {
|
|
1730
|
+
customLayers: e?.customLayers,
|
|
1731
|
+
precision: e?.precision,
|
|
1732
|
+
theme: e?.theme,
|
|
1733
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1734
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1735
|
+
data: a,
|
|
1736
|
+
colors: e?.colors,
|
|
1737
|
+
graphTitle: e?.graphTitle,
|
|
1738
|
+
graphDescription: e?.graphDescription,
|
|
1739
|
+
footNote: e?.footNote,
|
|
1740
|
+
width: e?.width,
|
|
1741
|
+
height: e?.height,
|
|
1742
|
+
sources: e?.sources,
|
|
1743
|
+
showTicks: e?.showTicks,
|
|
1744
|
+
leftMargin: e?.leftMargin,
|
|
1745
|
+
rightMargin: e?.rightMargin,
|
|
1746
|
+
colorDomain: e?.colorDomain,
|
|
1747
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : w("color", t || [], o || []),
|
|
1748
|
+
backgroundColor: e?.backgroundColor,
|
|
1749
|
+
padding: e?.padding,
|
|
1750
|
+
topMargin: e?.topMargin,
|
|
1751
|
+
bottomMargin: e?.bottomMargin,
|
|
1752
|
+
relativeHeight: e?.relativeHeight,
|
|
1753
|
+
showLabels: e?.showLabels,
|
|
1754
|
+
showColorScale: e?.showColorScale,
|
|
1755
|
+
tooltip: e?.tooltip,
|
|
1756
|
+
refValues: e?.refValues,
|
|
1757
|
+
graphID: e?.graphID,
|
|
1758
|
+
radius: e?.radius,
|
|
1759
|
+
maxRadiusValue: e?.maxRadiusValue,
|
|
1760
|
+
maxValue: e?.maxValue,
|
|
1761
|
+
minValue: e?.minValue,
|
|
1762
|
+
highlightedDataPoints: e?.highlightedDataPoints,
|
|
1763
|
+
graphDownload: e?.graphDownload,
|
|
1764
|
+
dataDownload: e?.dataDownload,
|
|
1765
|
+
language: e?.language,
|
|
1766
|
+
minHeight: e?.minHeight,
|
|
1767
|
+
showNAColor: e?.showNAColor,
|
|
1768
|
+
ariaLabel: e?.ariaLabel,
|
|
1769
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1770
|
+
orientation: e?.orientation,
|
|
1771
|
+
styles: e?.styles,
|
|
1772
|
+
classNames: e?.classNames,
|
|
1773
|
+
animate: e?.animate
|
|
1774
|
+
};
|
|
1775
|
+
case "butterflyChart":
|
|
1776
|
+
return {
|
|
1777
|
+
naLabel: e?.naLabel,
|
|
1778
|
+
timeline: e?.timeline,
|
|
1779
|
+
customLayers: e?.customLayers,
|
|
1780
|
+
precision: e?.precision,
|
|
1781
|
+
theme: e?.theme,
|
|
1782
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1783
|
+
data: a,
|
|
1784
|
+
graphTitle: e?.graphTitle,
|
|
1785
|
+
graphDescription: e?.graphDescription,
|
|
1786
|
+
leftBarTitle: Object.keys(e || {}).indexOf("leftBarTitle") !== -1 ? e?.leftBarTitle : w("leftBar", t || [], o || []),
|
|
1787
|
+
rightBarTitle: Object.keys(e || {}).indexOf("rightBarTitle") !== -1 ? e?.rightBarTitle : w("rightBar", t || [], o || []),
|
|
1788
|
+
footNote: e?.footNote,
|
|
1789
|
+
width: e?.width,
|
|
1790
|
+
height: e?.height,
|
|
1791
|
+
sources: e?.sources,
|
|
1792
|
+
backgroundColor: e?.backgroundColor,
|
|
1793
|
+
padding: e?.padding,
|
|
1794
|
+
leftMargin: e?.leftMargin,
|
|
1795
|
+
rightMargin: e?.rightMargin,
|
|
1796
|
+
topMargin: e?.topMargin,
|
|
1797
|
+
bottomMargin: e?.bottomMargin,
|
|
1798
|
+
barColors: e?.barColors,
|
|
1799
|
+
relativeHeight: e?.relativeHeight,
|
|
1800
|
+
tooltip: e?.tooltip,
|
|
1801
|
+
graphID: e?.graphID,
|
|
1802
|
+
graphDownload: e?.graphDownload,
|
|
1803
|
+
dataDownload: e?.dataDownload,
|
|
1804
|
+
barPadding: e?.barPadding,
|
|
1805
|
+
truncateBy: e?.truncateBy,
|
|
1806
|
+
suffix: e?.suffix,
|
|
1807
|
+
prefix: e?.prefix,
|
|
1808
|
+
showTicks: e?.showTicks,
|
|
1809
|
+
showValues: e?.showValues,
|
|
1810
|
+
centerGap: e?.centerGap,
|
|
1811
|
+
maxValue: e?.maxValue,
|
|
1812
|
+
minValue: e?.minValue,
|
|
1813
|
+
showColorScale: e?.showColorScale,
|
|
1814
|
+
refValues: e?.refValues,
|
|
1815
|
+
language: e?.language,
|
|
1816
|
+
minHeight: e?.minHeight,
|
|
1817
|
+
ariaLabel: e?.ariaLabel,
|
|
1818
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1819
|
+
styles: e?.styles,
|
|
1820
|
+
classNames: e?.classNames,
|
|
1821
|
+
animate: e?.animate
|
|
1822
|
+
};
|
|
1823
|
+
case "histogram":
|
|
1824
|
+
return {
|
|
1825
|
+
precision: e?.precision,
|
|
1826
|
+
theme: e?.theme,
|
|
1827
|
+
data: a,
|
|
1828
|
+
colors: e?.colors,
|
|
1829
|
+
graphTitle: e?.graphTitle,
|
|
1830
|
+
graphDescription: e?.graphDescription,
|
|
1831
|
+
footNote: e?.footNote,
|
|
1832
|
+
width: e?.width,
|
|
1833
|
+
height: e?.height,
|
|
1834
|
+
sources: e?.sources,
|
|
1835
|
+
barPadding: e?.barPadding,
|
|
1836
|
+
showValues: e?.showValues,
|
|
1837
|
+
showTicks: e?.showTicks,
|
|
1838
|
+
leftMargin: e?.leftMargin,
|
|
1839
|
+
rightMargin: e?.rightMargin,
|
|
1840
|
+
backgroundColor: e?.backgroundColor,
|
|
1841
|
+
padding: e?.padding,
|
|
1842
|
+
topMargin: e?.topMargin,
|
|
1843
|
+
bottomMargin: e?.bottomMargin,
|
|
1844
|
+
relativeHeight: e?.relativeHeight,
|
|
1845
|
+
showLabels: e?.showLabels,
|
|
1846
|
+
maxValue: e?.maxValue,
|
|
1847
|
+
tooltip: e?.tooltip,
|
|
1848
|
+
refValues: e?.refValues,
|
|
1849
|
+
graphID: e?.graphID,
|
|
1850
|
+
graphDownload: e?.graphDownload,
|
|
1851
|
+
dataDownload: e?.dataDownload,
|
|
1852
|
+
numberOfBins: e?.numberOfBins,
|
|
1853
|
+
truncateBy: e?.truncateBy,
|
|
1854
|
+
donutStrokeWidth: e?.donutStrokeWidth,
|
|
1855
|
+
sortData: e?.sortData,
|
|
1856
|
+
barGraphLayout: e?.barGraphLayout,
|
|
1857
|
+
graphType: e?.graphType,
|
|
1858
|
+
language: e?.language,
|
|
1859
|
+
minHeight: e?.minHeight,
|
|
1860
|
+
maxBarThickness: e?.maxBarThickness,
|
|
1861
|
+
ariaLabel: e?.ariaLabel,
|
|
1862
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1863
|
+
styles: e?.styles,
|
|
1864
|
+
classNames: e?.classNames
|
|
1865
|
+
};
|
|
1866
|
+
case "sparkLine":
|
|
1867
|
+
return {
|
|
1868
|
+
customLayers: e?.customLayers,
|
|
1869
|
+
theme: e?.theme,
|
|
1870
|
+
data: a,
|
|
1871
|
+
curveType: e?.curveType,
|
|
1872
|
+
lineColor: e?.lineColor,
|
|
1873
|
+
graphTitle: e?.graphTitle,
|
|
1874
|
+
graphDescription: e?.graphDescription,
|
|
1875
|
+
footNote: e?.footNote,
|
|
1876
|
+
width: e?.width,
|
|
1877
|
+
height: e?.height,
|
|
1878
|
+
sources: e?.sources,
|
|
1879
|
+
dateFormat: e?.dateFormat,
|
|
1880
|
+
area: e?.area,
|
|
1881
|
+
backgroundColor: e?.backgroundColor,
|
|
1882
|
+
padding: e?.padding,
|
|
1883
|
+
leftMargin: e?.leftMargin,
|
|
1884
|
+
rightMargin: e?.rightMargin,
|
|
1885
|
+
topMargin: e?.topMargin,
|
|
1886
|
+
bottomMargin: e?.bottomMargin,
|
|
1887
|
+
relativeHeight: e?.relativeHeight,
|
|
1888
|
+
tooltip: e?.tooltip,
|
|
1889
|
+
graphID: e?.graphID,
|
|
1890
|
+
maxValue: e?.maxValue,
|
|
1891
|
+
minValue: e?.minValue,
|
|
1892
|
+
graphDownload: e?.graphDownload,
|
|
1893
|
+
dataDownload: e?.dataDownload,
|
|
1894
|
+
language: e?.language,
|
|
1895
|
+
minHeight: e?.minHeight,
|
|
1896
|
+
ariaLabel: e?.ariaLabel,
|
|
1897
|
+
styles: e?.styles,
|
|
1898
|
+
classNames: e?.classNames
|
|
1899
|
+
};
|
|
1900
|
+
case "paretoChart":
|
|
1901
|
+
return {
|
|
1902
|
+
naLabel: e?.naLabel,
|
|
1903
|
+
customLayers: e?.customLayers,
|
|
1904
|
+
precision: e?.precision,
|
|
1905
|
+
theme: e?.theme,
|
|
1906
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1907
|
+
data: a,
|
|
1908
|
+
showValues: e?.showValues,
|
|
1909
|
+
graphTitle: e?.graphTitle,
|
|
1910
|
+
graphDescription: e?.graphDescription,
|
|
1911
|
+
barTitle: Object.keys(e || {}).indexOf("barTitle") !== -1 ? e?.barTitle : w("barTitle", t || [], o || []),
|
|
1912
|
+
lineTitle: Object.keys(e || {}).indexOf("lineTitle") !== -1 ? e?.lineTitle : w("lineTitle", t || [], o || []),
|
|
1913
|
+
footNote: e?.footNote,
|
|
1914
|
+
width: e?.width,
|
|
1915
|
+
height: e?.height,
|
|
1916
|
+
sources: e?.sources,
|
|
1917
|
+
backgroundColor: e?.backgroundColor,
|
|
1918
|
+
padding: e?.padding,
|
|
1919
|
+
leftMargin: e?.leftMargin,
|
|
1920
|
+
rightMargin: e?.rightMargin,
|
|
1921
|
+
topMargin: e?.topMargin,
|
|
1922
|
+
bottomMargin: e?.bottomMargin,
|
|
1923
|
+
barColor: e?.barColor,
|
|
1924
|
+
curveType: e?.curveType,
|
|
1925
|
+
lineColor: e?.lineColor,
|
|
1926
|
+
sameAxes: e?.sameAxes,
|
|
1927
|
+
relativeHeight: e?.relativeHeight,
|
|
1928
|
+
tooltip: e?.tooltip,
|
|
1929
|
+
graphID: e?.graphID,
|
|
1930
|
+
graphDownload: e?.graphDownload,
|
|
1931
|
+
dataDownload: e?.dataDownload,
|
|
1932
|
+
barPadding: e?.barPadding,
|
|
1933
|
+
truncateBy: e?.truncateBy,
|
|
1934
|
+
showLabels: e?.showLabels,
|
|
1935
|
+
language: e?.language,
|
|
1936
|
+
minHeight: e?.minHeight,
|
|
1937
|
+
ariaLabel: e?.ariaLabel,
|
|
1938
|
+
detailsOnClick: e?.detailsOnClick,
|
|
1939
|
+
noOfTicks: e?.noOfTicks,
|
|
1940
|
+
lineSuffix: e?.lineSuffix,
|
|
1941
|
+
barSuffix: e?.barSuffix,
|
|
1942
|
+
linePrefix: e?.lineSuffix,
|
|
1943
|
+
barPrefix: e?.barPrefix,
|
|
1944
|
+
barAxisTitle: e?.barAxisTitle,
|
|
1945
|
+
lineAxisTitle: e?.lineAxisTitle,
|
|
1946
|
+
styles: e?.styles,
|
|
1947
|
+
classNames: e?.classNames,
|
|
1948
|
+
animate: e?.animate
|
|
1949
|
+
};
|
|
1950
|
+
case "dataTable":
|
|
1951
|
+
return {
|
|
1952
|
+
naLabel: e?.naLabel,
|
|
1953
|
+
precision: e?.precision,
|
|
1954
|
+
theme: e?.theme,
|
|
1955
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
1956
|
+
graphTitle: e?.graphTitle,
|
|
1957
|
+
sources: e?.sources,
|
|
1958
|
+
graphDescription: e?.graphDescription,
|
|
1959
|
+
footNote: e?.footNote,
|
|
1960
|
+
graphID: e?.graphID,
|
|
1961
|
+
width: e?.width,
|
|
1962
|
+
height: e?.height,
|
|
1963
|
+
columnData: e?.columnData || [],
|
|
1964
|
+
data: a,
|
|
1965
|
+
language: e?.language,
|
|
1966
|
+
ariaLabel: e?.ariaLabel,
|
|
1967
|
+
minWidth: e?.minWidth,
|
|
1968
|
+
backgroundColor: e?.backgroundColor,
|
|
1969
|
+
padding: e?.padding,
|
|
1970
|
+
styles: e?.styles,
|
|
1971
|
+
classNames: e?.classNames
|
|
1972
|
+
};
|
|
1973
|
+
case "statCard":
|
|
1974
|
+
return {
|
|
1975
|
+
precision: e?.precision,
|
|
1976
|
+
theme: e?.theme,
|
|
1977
|
+
year: e?.year,
|
|
1978
|
+
data: a,
|
|
1979
|
+
graphTitle: e?.graphTitle || "",
|
|
1980
|
+
graphDescription: e?.graphDescription,
|
|
1981
|
+
suffix: e?.suffix,
|
|
1982
|
+
prefix: e?.prefix,
|
|
1983
|
+
sources: e?.sources || [],
|
|
1984
|
+
footNote: e?.footNote,
|
|
1985
|
+
backgroundColor: e?.backgroundColor,
|
|
1986
|
+
padding: e?.padding,
|
|
1987
|
+
graphID: e?.graphID,
|
|
1988
|
+
aggregationMethod: e?.aggregationMethod,
|
|
1989
|
+
language: e?.language,
|
|
1990
|
+
minHeight: e?.minHeight,
|
|
1991
|
+
countOnly: e?.countOnly,
|
|
1992
|
+
ariaLabel: e?.ariaLabel,
|
|
1993
|
+
textBackground: e?.textBackground,
|
|
1994
|
+
headingFontSize: e?.headingFontSize,
|
|
1995
|
+
centerAlign: e?.centerAlign,
|
|
1996
|
+
verticalAlign: e?.verticalAlign,
|
|
1997
|
+
styles: e?.styles,
|
|
1998
|
+
classNames: e?.classNames,
|
|
1999
|
+
layout: e?.layout
|
|
2000
|
+
};
|
|
2001
|
+
case "geoHubCompareMap":
|
|
2002
|
+
return {
|
|
2003
|
+
theme: e?.theme,
|
|
2004
|
+
graphTitle: e?.graphTitle,
|
|
2005
|
+
sources: e?.sources,
|
|
2006
|
+
graphDescription: e?.graphDescription,
|
|
2007
|
+
footNote: e?.footNote,
|
|
2008
|
+
backgroundColor: e?.backgroundColor,
|
|
2009
|
+
padding: e?.padding,
|
|
2010
|
+
width: e?.width,
|
|
2011
|
+
height: e?.height,
|
|
2012
|
+
relativeHeight: e?.relativeHeight,
|
|
2013
|
+
graphID: e?.graphID,
|
|
2014
|
+
mapStyles: e?.mapStyles,
|
|
2015
|
+
center: e?.center,
|
|
2016
|
+
zoomLevel: e?.zoomLevel,
|
|
2017
|
+
language: e?.language,
|
|
2018
|
+
minHeight: e?.minHeight,
|
|
2019
|
+
ariaLabel: e?.ariaLabel,
|
|
2020
|
+
styles: e?.styles,
|
|
2021
|
+
classNames: e?.classNames,
|
|
2022
|
+
mapLegend: e?.mapLegend
|
|
2023
|
+
};
|
|
2024
|
+
case "geoHubMap":
|
|
2025
|
+
return {
|
|
2026
|
+
theme: e?.theme,
|
|
2027
|
+
mapStyle: e?.mapStyle,
|
|
2028
|
+
center: e?.center,
|
|
2029
|
+
zoomLevel: e?.zoomLevel,
|
|
2030
|
+
graphTitle: e?.graphTitle,
|
|
2031
|
+
sources: e?.sources,
|
|
2032
|
+
graphDescription: e?.graphDescription,
|
|
2033
|
+
footNote: e?.footNote,
|
|
2034
|
+
backgroundColor: e?.backgroundColor,
|
|
2035
|
+
padding: e?.padding,
|
|
2036
|
+
width: e?.width,
|
|
2037
|
+
height: e?.height,
|
|
2038
|
+
relativeHeight: e?.relativeHeight,
|
|
2039
|
+
graphID: e?.graphID,
|
|
2040
|
+
language: e?.language,
|
|
2041
|
+
minHeight: e?.minHeight,
|
|
2042
|
+
includeLayers: e?.includeLayers,
|
|
2043
|
+
excludeLayers: e?.excludeLayers,
|
|
2044
|
+
ariaLabel: e?.ariaLabel,
|
|
2045
|
+
uiMode: e?.uiMode,
|
|
2046
|
+
styles: e?.styles,
|
|
2047
|
+
classNames: e?.classNames,
|
|
2048
|
+
mapLegend: e?.mapLegend
|
|
2049
|
+
};
|
|
2050
|
+
case "geoHubMapWithLayerSelection":
|
|
2051
|
+
return {
|
|
2052
|
+
theme: e?.theme,
|
|
2053
|
+
mapStyle: e?.mapStyle,
|
|
2054
|
+
center: e?.center,
|
|
2055
|
+
zoomLevel: e?.zoomLevel,
|
|
2056
|
+
graphTitle: e?.graphTitle,
|
|
2057
|
+
sources: e?.sources,
|
|
2058
|
+
graphDescription: e?.graphDescription,
|
|
2059
|
+
footNote: e?.footNote,
|
|
2060
|
+
backgroundColor: e?.backgroundColor,
|
|
2061
|
+
padding: e?.padding,
|
|
2062
|
+
width: e?.width,
|
|
2063
|
+
height: e?.height,
|
|
2064
|
+
relativeHeight: e?.relativeHeight,
|
|
2065
|
+
graphID: e?.graphID,
|
|
2066
|
+
language: e?.language,
|
|
2067
|
+
minHeight: e?.minHeight,
|
|
2068
|
+
layerSelection: e?.layerSelection,
|
|
2069
|
+
excludeLayers: e?.excludeLayers,
|
|
2070
|
+
ariaLabel: e?.ariaLabel,
|
|
2071
|
+
uiMode: e?.uiMode,
|
|
2072
|
+
mapLegend: e?.mapLegend
|
|
2073
|
+
};
|
|
2074
|
+
case "unitChart":
|
|
2075
|
+
return {
|
|
2076
|
+
precision: e?.precision,
|
|
2077
|
+
theme: e?.theme,
|
|
2078
|
+
totalNoOfDots: e?.totalNoOfDots,
|
|
2079
|
+
gridSize: e?.gridSize,
|
|
2080
|
+
unitPadding: e?.unitPadding,
|
|
2081
|
+
size: e?.size,
|
|
2082
|
+
graphTitle: e?.graphTitle,
|
|
2083
|
+
sources: e?.sources,
|
|
2084
|
+
colors: e?.colors,
|
|
2085
|
+
graphDescription: e?.graphDescription,
|
|
2086
|
+
footNote: e?.footNote,
|
|
2087
|
+
backgroundColor: e?.backgroundColor,
|
|
2088
|
+
padding: e?.padding,
|
|
2089
|
+
graphID: e?.graphID,
|
|
2090
|
+
graphDownload: e?.graphDownload,
|
|
2091
|
+
dataDownload: e?.dataDownload,
|
|
2092
|
+
language: e?.language,
|
|
2093
|
+
showColorScale: e?.showColorScale,
|
|
2094
|
+
showStrokeForWhiteDots: e?.showStrokeForWhiteDots,
|
|
2095
|
+
note: e?.note,
|
|
2096
|
+
data: a,
|
|
2097
|
+
width: e?.width,
|
|
2098
|
+
height: e?.height,
|
|
2099
|
+
minHeight: e?.minHeight,
|
|
2100
|
+
relativeHeight: e?.relativeHeight,
|
|
2101
|
+
ariaLabel: e?.ariaLabel,
|
|
2102
|
+
styles: e?.styles,
|
|
2103
|
+
classNames: e?.classNames,
|
|
2104
|
+
animate: e?.animate
|
|
2105
|
+
};
|
|
2106
|
+
case "sankeyChart":
|
|
2107
|
+
return {
|
|
2108
|
+
customLayers: e?.customLayers,
|
|
2109
|
+
precision: e?.precision,
|
|
2110
|
+
theme: e?.theme,
|
|
2111
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
2112
|
+
data: a,
|
|
2113
|
+
graphTitle: e?.graphTitle,
|
|
2114
|
+
graphDescription: e?.graphDescription,
|
|
2115
|
+
footNote: e?.footNote,
|
|
2116
|
+
width: e?.width,
|
|
2117
|
+
height: e?.height,
|
|
2118
|
+
sources: e?.sources,
|
|
2119
|
+
showLabels: e?.showLabels,
|
|
2120
|
+
leftMargin: e?.leftMargin,
|
|
2121
|
+
rightMargin: e?.rightMargin,
|
|
2122
|
+
topMargin: e?.topMargin,
|
|
2123
|
+
bottomMargin: e?.bottomMargin,
|
|
2124
|
+
truncateBy: e?.truncateBy,
|
|
2125
|
+
padding: e?.padding,
|
|
2126
|
+
backgroundColor: e?.backgroundColor,
|
|
2127
|
+
tooltip: e?.tooltip,
|
|
2128
|
+
suffix: e?.suffix,
|
|
2129
|
+
prefix: e?.prefix,
|
|
2130
|
+
relativeHeight: e?.relativeHeight,
|
|
2131
|
+
showValues: e?.showValues,
|
|
2132
|
+
graphID: e?.graphID,
|
|
2133
|
+
graphDownload: e?.graphDownload,
|
|
2134
|
+
dataDownload: e?.dataDownload,
|
|
2135
|
+
fillContainer: e?.fillContainer,
|
|
2136
|
+
language: e?.language,
|
|
2137
|
+
minHeight: e?.minHeight,
|
|
2138
|
+
ariaLabel: e?.ariaLabel,
|
|
2139
|
+
sourceColors: e?.sourceColors,
|
|
2140
|
+
targetColors: e?.targetColors,
|
|
2141
|
+
sourceColorDomain: e?.sourceColorDomain,
|
|
2142
|
+
targetColorDomain: e?.targetColorDomain,
|
|
2143
|
+
nodePadding: e?.nodePadding,
|
|
2144
|
+
nodeWidth: e?.nodeWidth,
|
|
2145
|
+
highlightedSourceDataPoints: e?.highlightedSourceDataPoints,
|
|
2146
|
+
highlightedTargetDataPoints: e?.highlightedTargetDataPoints,
|
|
2147
|
+
defaultLinkOpacity: e?.defaultLinkOpacity,
|
|
2148
|
+
sourceTitle: e?.sourceTitle,
|
|
2149
|
+
targetTitle: e?.targetTitle,
|
|
2150
|
+
sortNodes: e?.sortNodes,
|
|
2151
|
+
detailsOnClick: e?.detailsOnClick,
|
|
2152
|
+
styles: e?.styles,
|
|
2153
|
+
classNames: e?.classNames,
|
|
2154
|
+
animate: e?.animate
|
|
2155
|
+
};
|
|
2156
|
+
case "dataCards":
|
|
2157
|
+
return {
|
|
2158
|
+
theme: e?.theme,
|
|
2159
|
+
graphTitle: e?.graphTitle,
|
|
2160
|
+
sources: e?.sources,
|
|
2161
|
+
graphDescription: e?.graphDescription,
|
|
2162
|
+
footNote: e?.footNote,
|
|
2163
|
+
graphID: e?.graphID,
|
|
2164
|
+
width: e?.width,
|
|
2165
|
+
height: e?.height,
|
|
2166
|
+
columnData: e?.columnData || [],
|
|
2167
|
+
data: a,
|
|
2168
|
+
language: e?.language,
|
|
2169
|
+
ariaLabel: e?.ariaLabel,
|
|
2170
|
+
cardTemplate: e?.cardTemplate,
|
|
2171
|
+
cardBackgroundColor: e?.cardBackgroundColor,
|
|
2172
|
+
cardFilters: e?.cardFilters || [],
|
|
2173
|
+
cardSortingOptions: e?.cardSortingOptions,
|
|
2174
|
+
cardSearchColumns: e?.cardSearchColumns,
|
|
2175
|
+
cardMinWidth: e?.cardMinWidth,
|
|
2176
|
+
backgroundColor: e?.backgroundColor,
|
|
2177
|
+
padding: e?.padding,
|
|
2178
|
+
detailsOnClick: e?.detailsOnClick,
|
|
2179
|
+
allowDataDownloadOnDetail: e?.allowDataDownloadOnDetail,
|
|
2180
|
+
noOfItemsInAPage: e?.noOfItemsInAPage,
|
|
2181
|
+
uiMode: e?.uiMode,
|
|
2182
|
+
styles: e?.styles,
|
|
2183
|
+
classNames: e?.classNames
|
|
2184
|
+
};
|
|
2185
|
+
case "radarChart":
|
|
2186
|
+
return {
|
|
2187
|
+
customLayers: e?.customLayers,
|
|
2188
|
+
precision: e?.precision,
|
|
2189
|
+
graphTitle: e?.graphTitle,
|
|
2190
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
2191
|
+
graphDescription: e?.graphDescription,
|
|
2192
|
+
footNote: e?.footNote,
|
|
2193
|
+
sources: e?.sources,
|
|
2194
|
+
ariaLabel: e?.ariaLabel,
|
|
2195
|
+
colors: e?.colors,
|
|
2196
|
+
colorDomain: e?.colorDomain,
|
|
2197
|
+
colorLegendTitle: e?.colorLegendTitle,
|
|
2198
|
+
backgroundColor: e?.backgroundColor,
|
|
2199
|
+
styles: e?.styles,
|
|
2200
|
+
classNames: e?.classNames,
|
|
2201
|
+
width: e?.width,
|
|
2202
|
+
height: e?.height,
|
|
2203
|
+
minHeight: e?.minHeight,
|
|
2204
|
+
relativeHeight: e?.relativeHeight,
|
|
2205
|
+
padding: e?.padding,
|
|
2206
|
+
radius: e?.radius,
|
|
2207
|
+
leftMargin: e?.leftMargin,
|
|
2208
|
+
rightMargin: e?.rightMargin,
|
|
2209
|
+
topMargin: e?.topMargin,
|
|
2210
|
+
bottomMargin: e?.bottomMargin,
|
|
2211
|
+
maxValue: e?.maxValue,
|
|
2212
|
+
minValue: e?.minValue,
|
|
2213
|
+
showValues: e?.showValues,
|
|
2214
|
+
showDots: e?.showDots,
|
|
2215
|
+
strokeWidth: e?.strokeWidth,
|
|
2216
|
+
fillShape: e?.fillShape,
|
|
2217
|
+
noOfTicks: e?.noOfTicks,
|
|
2218
|
+
showColorScale: e?.showColorScale,
|
|
2219
|
+
showNAColor: e?.showNAColor,
|
|
2220
|
+
highlightedLines: e?.highlightedLines,
|
|
2221
|
+
axisLabels: e?.axisLabels,
|
|
2222
|
+
curveType: e?.curveType,
|
|
2223
|
+
resetSelectionOnDoubleClick: e?.resetSelectionOnDoubleClick,
|
|
2224
|
+
graphDownload: e?.graphDownload,
|
|
2225
|
+
dataDownload: e?.dataDownload,
|
|
2226
|
+
tooltip: e?.tooltip,
|
|
2227
|
+
detailsOnClick: e?.detailsOnClick,
|
|
2228
|
+
language: e?.language,
|
|
2229
|
+
theme: e?.theme,
|
|
2230
|
+
graphID: e?.graphID,
|
|
2231
|
+
animate: e?.animate
|
|
2232
|
+
};
|
|
2233
|
+
default:
|
|
2234
|
+
return {};
|
|
2235
|
+
}
|
|
2236
|
+
}, D = L[i], k = b(i);
|
|
2237
|
+
return /* @__PURE__ */ me.jsx(
|
|
2238
|
+
"div",
|
|
2239
|
+
{
|
|
2240
|
+
className: `grow my-0 ${i !== "statCard" ? "mx-auto" : "mx-0"} flex flex-col h-inherit ${e?.width ? "w-fit" : "w-full"} ${i !== "unitChart" && i !== "statCard" ? "justify-center" : "justify-start"} ${e?.theme || "light"}`,
|
|
2241
|
+
style: { minHeight: "inherit" },
|
|
2242
|
+
children: D ? /* @__PURE__ */ me.jsx(D, { ...k }) : /* @__PURE__ */ me.jsx(
|
|
2243
|
+
Ne.P,
|
|
2244
|
+
{
|
|
2245
|
+
size: "sm",
|
|
2246
|
+
marginBottom: "none",
|
|
2247
|
+
className: "p-2 text-center text-accent-dark-red dark:text-accent-red",
|
|
2248
|
+
children: `Invalid chart type: ${i}`
|
|
2249
|
+
}
|
|
2250
|
+
)
|
|
2251
|
+
}
|
|
2252
|
+
);
|
|
2253
|
+
}
|
|
2254
|
+
function St(u, e) {
|
|
2255
|
+
return e.findIndex((i) => i.chartConfigId === u) === -1 ? !1 : typeof e[e.findIndex((i) => i.chartConfigId === u)].columnId != "string";
|
|
2256
|
+
}
|
|
2257
|
+
export {
|
|
2258
|
+
Lt as C,
|
|
2259
|
+
Mt as G,
|
|
2260
|
+
Tt as L,
|
|
2261
|
+
Ot as R,
|
|
2262
|
+
St as c
|
|
2263
|
+
};
|
|
2264
|
+
//# sourceMappingURL=checkIfMultiple-CaefP4X2.js.map
|